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
MWE:
using Flux ann = Chain(Dense(5, 50, tanh), Dense(50, 4)) p, st = Flux.destructure(ann) u0 = rand(5) using Zygote function dudt_(u, p, t) st(p)([u..., 1f1]) end out, back = Zygote.pullback(dudt_, u0, p, 0f0) d_u, d_p, d_t = back(rand(4)) typeof(d_u) # NTuple
d_u should be a vector but instead it becomes a tuple. This goes away if the function is instead:
d_u
function dudt_(u, p, t) st(p)([u;1f1]) end
This was isolated from SciML/SciMLSensitivity.jl#1082
The text was updated successfully, but these errors were encountered:
Dup of #599 I think. There's a PR which could be revived.
Sorry, something went wrong.
No branches or pull requests
MWE:
d_u
should be a vector but instead it becomes a tuple. This goes away if the function is instead:This was isolated from SciML/SciMLSensitivity.jl#1082
The text was updated successfully, but these errors were encountered: