Skip to content

Commit

Permalink
Use provided rng to initialise VarInfo in Gibbs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhauru committed Sep 24, 2024
1 parent 85bcfa5 commit 6f9679a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mcmc/gibbs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function DynamicPPL.initialstep(
samplers = alg.samplers

# 1. Run the model once to get the varnames present + initial values to condition on.
vi_base = DynamicPPL.VarInfo(model)
vi_base = DynamicPPL.VarInfo(rng, model)

# Simple way of setting the initial parameters: set them in the `vi_base`
# if they are given so they propagate to the subset varinfos used by each sampler.
Expand Down

0 comments on commit 6f9679a

Please sign in to comment.