Open penelopeysm opened 3 weeks ago
Oh, I just noticed that @torfjelde wrote:
Note that this only works for observe-statements, i.e. when the LHS of ~ is “fixed” / not random.
Is the usecase above something we want to support, or is this a wontfix?
We might be able to support this particular case. Can you investigate why it causes crashes so we can discuss this in more detail?
Reported via Julia Slack: https://julialang.slack.com/archives/CCYDC34A0/p1723554415531969
MWE with current master branch of Turing:
The last line of this usually crashes, the error message tends to vary. Sometimes it's
destination has fewer elements than required
, sometimes it'sKeyError: key x[1] not found
, etc. and sometimes it actually runs correctly!Everything behaves as expected if you don't run Julia with multiple threads (
-t4
argument below) or if you removeThreads.@threads
from the above.