You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@modelfunctionouter1(nms)
N =length(nms)
a =Vector(undef, N)
for i in1:N
a[i] ~to_submodel(inner())
endend
This is arguably better than looping over to_submodel with the same variable name a. If one writes
@modelfunctionouter1(nms)
for i in1:2
a ~Normal()
endend
An error will be thrown during inference due to a clash of variable names. Maybe we should also throw an error if users try to loop over to_submodel with the same variable name.
Reported via Julia Slack: https://julialang.slack.com/archives/CCYDC34A0/p1738281740089319
There is a fairly small (10%) performance regression:
The text was updated successfully, but these errors were encountered: