Skip to content

Commit 32b9f3b

Browse files
committed
fix docs
1 parent 6e03f04 commit 32b9f3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/internals/submodel_condition.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ Take these models, for example:
102102
unwrap_sampling_context(ctx::DynamicPPL.SamplingContext) = ctx.context
103103
unwrap_sampling_context(ctx::DynamicPPL.AbstractContext) = ctx
104104
@model function inner()
105-
println("inner context: $(unwrap_sampling_context(__context__))")
105+
println("inner context: $(unwrap_sampling_context(__model.context__))")
106106
x ~ Normal()
107107
return y ~ Normal()
108108
end
109109
110110
@model function outer()
111-
println("outer context: $(unwrap_sampling_context(__context__))")
111+
println("outer context: $(unwrap_sampling_context(__model.context__))")
112112
return a ~ to_submodel(inner())
113113
end
114114
@@ -118,7 +118,7 @@ with_outer_cond = outer() | (@varname(a.x) => 1.0)
118118
# 'Inner conditioning'
119119
inner_cond = inner() | (@varname(x) => 1.0)
120120
@model function outer2()
121-
println("outer context: $(unwrap_sampling_context(__context__))")
121+
println("outer context: $(unwrap_sampling_context(__model.context__))")
122122
return a ~ to_submodel(inner_cond)
123123
end
124124
with_inner_cond = outer2()

0 commit comments

Comments
 (0)