Closed bks-nist closed 2 years ago
An extra method for _pow_grad_p
would solve this, but then we have to depend on ChainRules.jl
.
Instead, a custom rrule
for ^
is a better solution. We can probably just copy it over from here and write our own _pow_grad_{x,p}
methods to handle the math that are compatible with Unitful.jl
@bks-nist Should be fixed on main
. I have a couple more rules I want to include and then I'll tag a new release
That's great, thank you!
Sometimes one ends up using Quantities with fractional powers, but they don't currently work with
UnitfulChainRules.jl
: