Skip to content

Commit

Permalink
use evaluate!! instead
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxd3 committed May 15, 2024
1 parent 1a67b5f commit 09cae5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sampler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function AbstractMCMC.step(
vi = VarInfo()
model(rng, vi, sampler)
else
vi = model(rng, SimpleVarInfo{Float64}(OrderedDict()), sampler)
vi = last(evaluate!!(model, rng, SimpleVarInfo{Float64}(OrderedDict()), sampler))
end
return vi, nothing
end
Expand Down

0 comments on commit 09cae5b

Please sign in to comment.