Skip to content

Commit d4e1edf

Browse files
committed
fix a bug
1 parent d422134 commit d4e1edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ function init!!(
896896
varinfo::AbstractVarInfo,
897897
init_strategy::AbstractInitStrategy=InitFromPrior(),
898898
)
899-
new_model = contextualize(model, InitContext(rng, init_strategy))
899+
new_model = setleafcontext(model, InitContext(rng, init_strategy))
900900
return evaluate!!(new_model, varinfo)
901901
end
902902
function init!!(

0 commit comments

Comments
 (0)