Skip to content

Commit a4a4304

Browse files
committed
fix VAIMAcc bug
1 parent 422fc68 commit a4a4304

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mcmc/prior.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ function AbstractMCMC.step(
4343
for vn in keys(vi)
4444
DynamicPPL.set_flag!(vi, vn, "del")
4545
end
46+
# need to replace the old VAIMAcc, this should probably be fixed in
47+
# DPPL when calling evaluate!!
48+
vi = DynamicPPL.setacc!!(vi, DynamicPPL.ValuesAsInModelAccumulator(true))
4649
sampling_model = DynamicPPL.contextualize(
4750
model, DynamicPPL.SamplingContext(rng, DynamicPPL.SampleFromPrior(), model.context)
4851
)

0 commit comments

Comments
 (0)