Open YudiXie opened 1 month ago
Hi @YudiXie, thanks for trying out Gen!
That syntax is Gen syntax, not general Julia syntax, and can only be used inside of a Gen function:
@gen function my_function()
my_variable = {:my_variable_address} ~ normal(0, 1)
end
We should perhaps emphasize this more clearly in the tutorial (e.g. by wrapping all such code blocks inside @gen function...end
)
Hope that helps!
That definitely helps. It is working now. Thank you very much! @alex-lew
Hi Gen team,
I am trying to run the tutorial here: https://www.gen.dev/tutorials/intro-to-modeling/tutorial#julia-gen-jupyter In the first tutorial, just by running
will generate the following error
I am wondering if there is a fix around this, and perhaps I should be using an older julia version? I am using julia 1.10 now.