Skip to content

Commit d16f464

Browse files
committed
Fix multithreaded
1 parent 566e01d commit d16f464

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,9 @@ for n in NS
147147
end
148148

149149
@model function multithreaded(x)
150+
a ~ Normal()
150151
Threads.@threads for i in eachindex(x)
151-
x[i] ~ Normal(x, 1)
152+
x[i] ~ Normal(a)
152153
end
153154
end
154155
add_model!(MODELS, multithreaded([1.5, 2.0, 2.5, 1.5, 2.0, 2.5]))

0 commit comments

Comments
 (0)