From 6f9679ac659210276fd1cb9acdc2a728573699e3 Mon Sep 17 00:00:00 2001 From: Markus Hauru Date: Tue, 24 Sep 2024 16:11:34 +0100 Subject: [PATCH] Use provided rng to initialise VarInfo in Gibbs --- src/mcmc/gibbs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcmc/gibbs.jl b/src/mcmc/gibbs.jl index 445bc433f..571d694e3 100644 --- a/src/mcmc/gibbs.jl +++ b/src/mcmc/gibbs.jl @@ -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.