Closed willtebbutt closed 1 year ago
Has it caused you problems previously?
I can't wait for us to be rid of this rule
Maybe in the not-so-distant future: https://github.com/JuliaDiff/ChainRules.jl/pull/741
Has it caused you problems previously?
Not so much. It was just frustrating to have CI broken for so long (in Zygote and Tracker) because of changes in Base and to have to patch the issue in the AD itself instead of in ChainRules. I'm glad to see progress is being made on a proper rule :)
The current
kron
rules do not handlekron(::AbstractMatrix, ::AbstractVector)
orkron(::AbstractVector, ::AbstractMatrix)
. This PR adds support for both. Fortunately, the implementation strategy is precisely the same as the one currently taken.A method of
_pullback
forkron
is removed in favour of a single method of_pullback
which can handle all four combinations of argument types.Fixes https://github.com/JuliaGaussianProcesses/TemporalGPs.jl/pull/115
PR Checklist