ChainRules.jl
ChainRules.jl copied to clipboard
Make sum of bool arrays nondiffernetiable
This matches to https://github.com/FluxML/Zygote.jl/pull/794
Fixing this in chainrules won't actually fix it in Zygote becuase
Zygote defines sum(::AbstractArray) with a better definition than what ChainRules has right now, that will always take precidence.