Skip to content

Commit f23e451

Browse files
committed
fix manual Model invocation
1 parent 0d9057b commit f23e451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

developers/compiler/model-manual/index.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function gdemo2(model, varinfo, x)
5454
# value and the updated varinfo.
5555
return nothing, varinfo
5656
end
57-
gdemo2(x) = DynamicPPL.Model(gdemo2, (; x))
57+
gdemo2(x) = DynamicPPL.Model{false}(gdemo2, (; x))
5858
5959
# Instantiate a Model object with our data variables.
6060
model2 = gdemo2([1.5, 2.0])
@@ -66,4 +66,4 @@ We can sample from this model in the same way:
6666
chain = sample(model2, NUTS(), 1000; progress=false)
6767
```
6868

69-
The subsequent pages in this section will show how the `@model` macro does this behind-the-scenes.
69+
The subsequent pages in this section will show how the `@model` macro does this behind-the-scenes.

0 commit comments

Comments
 (0)