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
using DynamicPPL, Distributions
@modelfunctionsubmodel()
x ~Normal(0, 1)
return x
end@modelfunctionparentmodel()
x1 ~to_submodel(prefix(submodel(), :a), false)
x2 ~to_submodel(prefix(submodel(), :b), false)
return x1 + x2
end
m =parentmodel()
vi =VarInfo(m)
values_as_in_model(m, false, vi)
# OrderedDict{Any, Any} with 1 entry:# x => -1.28582
This leads to the following issue when sampling in Turing:
using Turing
@modelfunctionsubmodel()
x ~Normal(0, 1)
return x
end@modelfunctionparentmodel()
x1 ~to_submodel(DynamicPPL.prefix(submodel(), :a), false)
x2 ~to_submodel(DynamicPPL.prefix(submodel(), :b), false)
return x1 + x2
endsample(parentmodel(), NUTS(), 1000; check_model=false)
MWE
This leads to the following issue when sampling in Turing:
The text was updated successfully, but these errors were encountered: