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
Probably this generalises to others in Base.Iterators
Sometimes this works in Zygote and sometimes it doesn't - i haven't worked out what the difference is:
x, y = rand(3,), rand(3,) Zygote.gradient(() -> sum(first(zip(x, y)))) # works Zygote.gradient(() -> sum(map(_ -> 1.0, (x, y)))) # works Zygote.gradient(() -> sum(map(_ -> 1.0, zip(x, y)))) # errors Need an adjoint for constructor Base.Iterators.Zip{Tuple{Vector{Float64}, Vector{Float64}}}
Anyway, it looks like zip is missing from CR.
zip
The text was updated successfully, but these errors were encountered:
Xref an attempt to do this within Zygote: FluxML/Zygote.jl#785 Which always got stuck on yet more weird cases.
Sorry, something went wrong.
map
Successfully merging a pull request may close this issue.
Probably this generalises to others in Base.Iterators
Sometimes this works in Zygote and sometimes it doesn't - i haven't worked out what the difference is:
Anyway, it looks like
zip
is missing from CR.The text was updated successfully, but these errors were encountered: