Diffractor.jl
Diffractor.jl copied to clipboard
Use rrule of KwFunc for Core.kwcall
This seems to fix non-differentiable keyword arguments by constructing the KwFunc defined in Diffractor.
@Keno I think this does not have the same concerns that #266 has, but I am not sure. Because for reverse mode everything is already bad.
Should we do this, and reconsider it later as needed? It unbreaks a lot of tests
Same as in #266 I think in order for this not to make inference worse, the method should be split into kw and non-kw versions.