File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -102,13 +102,13 @@ Take these models, for example:
102102unwrap_sampling_context(ctx::DynamicPPL.SamplingContext) = ctx.context
103103unwrap_sampling_context(ctx::DynamicPPL.AbstractContext) = ctx
104104@model function inner()
105- println("inner context: $(unwrap_sampling_context(__model.context__ ))")
105+ println("inner context: $(unwrap_sampling_context(__model__.context ))")
106106 x ~ Normal()
107107 return y ~ Normal()
108108end
109109
110110@model function outer()
111- println("outer context: $(unwrap_sampling_context(__model.context__ ))")
111+ println("outer context: $(unwrap_sampling_context(__model__.context ))")
112112 return a ~ to_submodel(inner())
113113end
114114
@@ -118,7 +118,7 @@ with_outer_cond = outer() | (@varname(a.x) => 1.0)
118118# 'Inner conditioning'
119119inner_cond = inner() | (@varname(x) => 1.0)
120120@model function outer2()
121- println("outer context: $(unwrap_sampling_context(__model.context__ ))")
121+ println("outer context: $(unwrap_sampling_context(__model__.context ))")
122122 return a ~ to_submodel(inner_cond)
123123end
124124with_inner_cond = outer2()
You can’t perform that action at this time.
0 commit comments