-
Notifications
You must be signed in to change notification settings - Fork 64
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
unhelpful ReadOnlyMemoryError
message
#1988
Comments
That error is being thrown by Julia itself, not Enzyme. Do you have a stacktrace or error log? |
Thank you very much for the quick feedback. The above is all the whole error message / stack trace. Maybe a hint as to what happens : setting the number of time step is set to Does this make sense to you? |
|
|
Will need to investigate this further, but perhaps it's useful to apply Checkpointing.jl on your timestep loop? Enzyme hasn't yet adapted to 1.11 changes so the 1.11 error is expected (and you should use 1.10 for now) |
I am trying to differentiate this function (main branch) and use the resulting adjoint.
The
autodiff
step does return a function,glacier_ad
, but this function errors out, and I have no idea what to do to resolve the issue.I looked through the docs of Enzyme.jl and searched for
ReadOnlyMemoryError
via github but did not immediately find any help.How should I proceed to debug this? Where is the error message actually coming from? Am I missing something obvious?
Please advise.
The text was updated successfully, but these errors were encountered: