Skip to content

Commit

Permalink
Ignure cumulative_integral
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Jul 13, 2024
1 parent 30c99c7 commit 353cdff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/DataInterpolationsChainRulesCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,10 @@ function ChainRulesCore.rrule(::Type{ReadOnlyArray}, parent)
read_only_array, ReadOnlyArray_pullback
end

function ChainRulesCore.rrule(::typeof(cumulative_integral), A, u)
I = cumulative_integral(A, u)
cumulative_integral_pullback(Δ) = NoTangent(), NoTangent()
I, cumulative_integral_pullback
end

end # module

0 comments on commit 353cdff

Please sign in to comment.