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:
102
102
unwrap_sampling_context(ctx::DynamicPPL.SamplingContext) = ctx.context
103
103
unwrap_sampling_context(ctx::DynamicPPL.AbstractContext) = ctx
104
104
@model function inner()
105
- println("inner context: $(unwrap_sampling_context(__model.context__ ))")
105
+ println("inner context: $(unwrap_sampling_context(__model__.context ))")
106
106
x ~ Normal()
107
107
return y ~ Normal()
108
108
end
109
109
110
110
@model function outer()
111
- println("outer context: $(unwrap_sampling_context(__model.context__ ))")
111
+ println("outer context: $(unwrap_sampling_context(__model__.context ))")
112
112
return a ~ to_submodel(inner())
113
113
end
114
114
@@ -118,7 +118,7 @@ with_outer_cond = outer() | (@varname(a.x) => 1.0)
118
118
# 'Inner conditioning'
119
119
inner_cond = inner() | (@varname(x) => 1.0)
120
120
@model function outer2()
121
- println("outer context: $(unwrap_sampling_context(__model.context__ ))")
121
+ println("outer context: $(unwrap_sampling_context(__model__.context ))")
122
122
return a ~ to_submodel(inner_cond)
123
123
end
124
124
with_inner_cond = outer2()
You can’t perform that action at this time.
0 commit comments