We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
my_variable = {:my_variable_address} ~ normal(0, 1)
will generate the following error
syntax: { } vector syntax is discontinued around ...
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.
The text was updated successfully, but these errors were encountered:
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)
@gen function...end
Hope that helps!
Sorry, something went wrong.
That definitely helps. It is working now. Thank you very much! @alex-lew
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: