You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Essentially the issue is that in some cases differentiability w.r.t. the coefficients of the spline is needed for function fitting, like in SplineLayer of DiffEqFlux. Currently we just have DoesNotExist() which gives zero gradients in Zygote. While it's preferred to use the overload functions because they ensure numerical stability, on some interpolations it's okay, and those ones that are okay are just the most basic ones. So for now those are excluded from the derivative overload by #82 until analytical solutions for the coefficients are added, in which case we can add it right back when it's available. That fixes the DiffEqFlux tests while retaining the more numerically stable overloads on B-splines and such, which isn't the best solution because if you use the wrong interpolation you'll get zero'd gradients on the coefficients, but it's the best for now.
The text was updated successfully, but these errors were encountered:
See #82 and SciML/DiffEqFlux.jl#380 (comment)
Essentially the issue is that in some cases differentiability w.r.t. the coefficients of the spline is needed for function fitting, like in
SplineLayer
of DiffEqFlux. Currently we just haveDoesNotExist()
which gives zero gradients in Zygote. While it's preferred to use the overload functions because they ensure numerical stability, on some interpolations it's okay, and those ones that are okay are just the most basic ones. So for now those are excluded from the derivative overload by #82 until analytical solutions for the coefficients are added, in which case we can add it right back when it's available. That fixes the DiffEqFlux tests while retaining the more numerically stable overloads on B-splines and such, which isn't the best solution because if you use the wrong interpolation you'll get zero'd gradients on the coefficients, but it's the best for now.The text was updated successfully, but these errors were encountered: