Skip to content

Commit

Permalink
Merge pull request #626 from ArnoStrouwen/destats
Browse files Browse the repository at this point in the history
deprecate destats in extensions
  • Loading branch information
ChrisRackauckas authored Feb 17, 2024
2 parents eca78b8 + 1fa8e29 commit 3b7832e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ext/SciMLBaseChainRulesCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function ChainRulesCore.rrule(config::ChainRulesCore.RuleConfig{
typeof(VA.alg),
typeof(VA.interp),
typeof(VA.alg_choice),
typeof(VA.destats),
typeof(VA.stats),
}(du,
nothing,
nothing,
Expand All @@ -54,7 +54,7 @@ function ChainRulesCore.rrule(config::ChainRulesCore.RuleConfig{
VA.interp,
VA.dense,
0,
VA.destats,
VA.stats,
VA.alg_choice,
VA.retcode)
(NoTangent(), Δ′, NoTangent(), NoTangent())
Expand Down
8 changes: 4 additions & 4 deletions ext/SciMLBaseZygoteExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ using RecursiveArrayTools
N = length(VA.prob.p)
Δ′ = ODESolution{T, N, typeof(du), Nothing, Nothing, typeof(VA.t),
typeof(VA.k), typeof(dprob), typeof(VA.alg), typeof(VA.interp),
typeof(VA.destats), typeof(VA.alg_choice)}(du, nothing, nothing,
VA.t, VA.k, dprob, VA.alg, VA.interp, VA.dense, 0, VA.destats,
typeof(VA.stats), typeof(VA.alg_choice)}(du, nothing, nothing,
VA.t, VA.k, dprob, VA.alg, VA.interp, VA.dense, 0, VA.stats,
VA.alg_choice, VA.retcode)
(Δ′, nothing, nothing)
end
Expand Down Expand Up @@ -53,8 +53,8 @@ end
N = length(VA.prob.p)
Δ′ = ODESolution{T, N, typeof(du), Nothing, Nothing, typeof(VA.t),
typeof(VA.k), typeof(dprob), typeof(VA.alg), typeof(VA.interp),
typeof(VA.destats), typeof(VA.alg_choice)}(du, nothing, nothing,
VA.t, VA.k, dprob, VA.alg, VA.interp, VA.dense, 0, VA.destats,
typeof(VA.stats), typeof(VA.alg_choice)}(du, nothing, nothing,
VA.t, VA.k, dprob, VA.alg, VA.interp, VA.dense, 0, VA.stats,
VA.alg_choice, VA.retcode)
(Δ′, nothing, nothing)
end
Expand Down

0 comments on commit 3b7832e

Please sign in to comment.