Skip to content

Commit c630723

Browse files
committed
fix ldf
1 parent 10a130a commit c630723

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mcmc/external_sampler.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ function AbstractMCMC.step(
156156
end
157157

158158
# Construct LogDensityFunction
159-
f = DynamicPPL.LogDensityFunction(model, varinfo; adtype=alg.adtype)
159+
f = DynamicPPL.LogDensityFunction(
160+
model, DynamicPPL.getlogjoint, varinfo; adtype=alg.adtype
161+
)
160162

161163
# Then just call `AbstractMCMC.step` with the right arguments.
162164
if initial_state === nothing

0 commit comments

Comments
 (0)