Skip to content

Commit

Permalink
Revert "fixed ESLogDensityFunction as suggested by @devmotion"
Browse files Browse the repository at this point in the history
This reverts commit 3780ca8.
  • Loading branch information
torfjelde committed Oct 7, 2023
1 parent 3780ca8 commit 348a29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mcmc/Inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 348a29d

Please sign in to comment.