You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a variable that expands in size between iterations crashes `dot_tilde:
MWE:
using Random, DynamicPPL, Distributions
Random.seed!(23)
@modelfunctiondynamic_model_with_dot_tilde(num_zs=10)
z =Vector(undef, num_zs)
z .~Exponential(1.0)
num_ms =Int(round(sum(z)))
@show num_ms
m =Vector(undef, num_ms)
return m .~Normal(1.0, 1.0)
end
m =dynamic_model_with_dot_tilde()
vi =VarInfo(m)
for k inkeys(vi)
set_flag!(vi, k, "del")
endm(vi)
This is caused by lots of checks in get_and_set_val! (which is a very ugly function itself) performing some checks based on vns[1] and others based on vns[i].
We should just clean up that impl and this will be good 👍
Currently a variable that expands in size between iterations crashes `dot_tilde:
MWE:
Output:
The text was updated successfully, but these errors were encountered: