You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is a result of invperm((:a, :b)) call inside an @adjoint for permutedims. Fixed it by defining a more specific adjoint, but would be nice to be able to write chainrules (which would mean that permutedims adjoint gets removed from Zygote, since that takes precedence)
The text was updated successfully, but these errors were encountered:
We only have the following:
but we could port the generic
permutedims
rules from Zygotehttps://github.com/FluxML/Zygote.jl/blob/05d0c2ae04f334a2ec61e42decfe1172d0f2e6e8/src/lib/array.jl#L104-L109
I ran into this when trying out
which is a result of
invperm((:a, :b))
call inside an@adjoint
for permutedims. Fixed it by defining a more specific adjoint, but would be nice to be able to write chainrules (which would mean thatpermutedims
adjoint gets removed from Zygote, since that takes precedence)The text was updated successfully, but these errors were encountered: