DimensionalData.jl icon indicating copy to clipboard operation
DimensionalData.jl copied to clipboard

implement some chainrules

Open lazarusA opened this issue 2 years ago • 2 comments

maybe defining a few chainrules for DD, similar to

https://github.com/mcabbott/AxisKeys.jl/blob/master/src/chainrules.jl

would be useful for a wider adoption of DD.

lazarusA avatar Aug 08 '23 13:08 lazarusA

I guess we can just duplicate these tests?

https://github.com/mcabbott/AxisKeys.jl/blob/master/test/_chainrules.jl

I dont understand differentiation or its package ecosystem like invenia people do, but I can copy their code 😅

rafaqz avatar Aug 08 '23 16:08 rafaqz

I'd be happy to help with this. While ChainRulesCore was originally intended to be a lightweight dep, it's more commonly now used as a weak dep in an extension.

sethaxen avatar Aug 08 '23 16:08 sethaxen