-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dot-tilde (.~) broadcasting not supported in Turing models #1360
Comments
I think this issue is more relevant to Turing.jl, I will be moving the issue there. |
Try |
Looks like a duplicate of TuringLang/DynamicPPL.jl#137 and should be fixed by TuringLang/DynamicPPL.jl#147. |
@devmotion I've been using |
In the example above it shouldn't make any difference since So I think both versions are "correct" in some way, but personally I would use |
Fixed in Turing 0.14 (which includes TuringLang/DynamicPPL.jl#147). |
It appears that broadcasting the
~
operator does not work. For example:results in an error:
The code works if you replace
y .~ Normal(μ,σ)
withy ~ filldist(Normal(μ,σ), length(y))
.The text was updated successfully, but these errors were encountered: