diff --git a/src/mcmc/Inference.jl b/src/mcmc/Inference.jl index 1abb1c5de..1b09668ec 100644 --- a/src/mcmc/Inference.jl +++ b/src/mcmc/Inference.jl @@ -104,7 +104,7 @@ externalsampler(sampler::AbstractSampler) = ExternalSampler(sampler) A log density function for the External sampler. """ -const ESLogDensityFunction{M<:Model,S<:Sampler{<:ExternalSampler},V<:AbstractVarInfo} = Turing.LogDensityFunction{V,M,<:DynamicPPL.SamplingContext{<:S}} +const ESLogDensityFunction{M<:Model,S<:Sampler{<:ExternalSampler},V<:AbstractVarInfo} = Turing.LogDensityFunction{V,M,<:DynamicPPL.DefaultContext} function LogDensityProblems.logdensity(f::ESLogDensityFunction, x::NamedTuple) return DynamicPPL.logjoint(f.model, DynamicPPL.unflatten(f.varinfo, x)) end