ChainRules.jl
ChainRules.jl copied to clipboard
broadcast type preservation
appears to solve the diffractor-zygote case in
https://github.com/FluxML/Zygote.jl/issues/1301
@mcabbott
Do you know what the test errors are? Weird it doesn't print them in CI.
Xref comments on testing this a https://github.com/FluxML/Zygote.jl/pull/1302
Edit: note also that https://github.com/JuliaDiff/ChainRules.jl/pull/671/files#r955087897 wants to change CR to use reversed map for this step. A broadcast
which iterates backwards would be harder to write.