After playing a grand game of whack-a-mole adding back(::AbstractZero) overloads in https://github.com/FluxML/Zygote.jl/pull/1389, it'd probably be better to enable this by default for all @adjoints. This change is effectively non-functional without that PR since @adjoint pullbacks should never see CR zero types, so I think it should be pretty safe until we trigger a PR like https://github.com/FluxML/Zygote.jl/pull/1389.
After playing a grand game of whack-a-mole adding
back(::AbstractZero)
overloads in https://github.com/FluxML/Zygote.jl/pull/1389, it'd probably be better to enable this by default for all@adjoint
s. This change is effectively non-functional without that PR since@adjoint
pullbacks should never see CR zero types, so I think it should be pretty safe until we trigger a PR like https://github.com/FluxML/Zygote.jl/pull/1389.PR Checklist