-
Notifications
You must be signed in to change notification settings - Fork 68
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
error when differentiating reshape
#2214
Comments
Per the error message, did setting runtime activity resolve it for you? |
Ok, much simpler reproducer: autodiff(Reverse, x -> sum(reshape(reshape(x, 4), 2, 2) .- x), Active, Const(rand(2, 2))) # errors
autodiff(set_runtime_activity(Reverse), x -> sum(reshape(reshape(x, 4), 2, 2) .- x), Active, Const(rand(2, 2))) # works The first one still throws the following error:
while the second one with runtime activity does indeed work. |
Both work fine in Julia 1.10, so I presume this is due to Memory related changes? |
yeah almost certainly (especially since the error message says the type of relevance is Memory{Float64}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get the following error when trying to differentiate a Lux model through Enzyme:
Unfortunately, I wasn't able to narrow this down to a more minimal example, so here is the code to reproduce:
The text was updated successfully, but these errors were encountered: