Skip to content

Commit

Permalink
Drop ChainRulesCore v0.9 support, use NoTangent()
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed Jun 8, 2021
1 parent c942918 commit cba9dae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ WoodburyMatrices = "efce3f68-66dc-5838-9240-27a6d6f5f9b6"

[compat]
AxisAlgorithms = "0.3, 1"
ChainRulesCore = "0.9, 0.10"
ChainRulesCore = "0.10"
OffsetArrays = "0.10, 0.11, 1.0.1"
Ratios = "0.3, 0.4"
Requires = "1.1"
Expand Down
2 changes: 1 addition & 1 deletion src/chainrules/chainrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ChainRulesCore.jl `rrule` for integration with automatic differentiation librari
function ChainRulesCore.rrule(itp::AbstractInterpolation, x...)
y = itp(x...)
function pullback(Δy)
(ChainRulesCore.DoesNotExist(), Δy * Interpolations.gradient(itp, x...))
(ChainRulesCore.NoTangent(), Δy * Interpolations.gradient(itp, x...))
end
y, pullback
end

0 comments on commit cba9dae

Please sign in to comment.