Skip to content

Commit ee39e26

Browse files
committed
Fix type instability in benchmark model
1 parent 2f15b72 commit ee39e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/src/Models.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ a variable vector; observations passed as arguments, and as literals.
5656
for i in 1:length(x)
5757
x[i] ~ Normal(means[i], stds[i])
5858
end
59-
y ~ product_distribution([Normal(means[i], stds[i]) for i in 1:length(x)])
59+
y ~ product_distribution(map((mean, std) -> Normal(mean, std), means, stds))
6060
0.0 ~ Normal(sum(y), 1)
6161
return (; m=m, means=means, stds=stds)
6262
end

0 commit comments

Comments
 (0)