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
using ZygoteStructArrays, Zygote, StructArrays
gradient(randn(2), randn(2)) do X, Y
S =StructArray(Complex.(X, Y))
sum(S.re) +sum(S.im)
end
fails, but
using ZygoteStructArrays, Zygote, StructArrays
struct Point
x::Float64; y::Float64endgradient(randn(2), randn(2)) do X, Y
S =StructArray(Point.(X, Y))
sum(S.x) +sum(S.y)
end
works fine. The issue is that sensitivities for Complex in Zygote are not NamedTuple, see
fails, but
works fine. The issue is that sensitivities for Complex in Zygote are not NamedTuple, see
FluxML/Zygote.jl#680
The text was updated successfully, but these errors were encountered: