Skip to content

Commit

Permalink
Merge pull request #684 from DhairyaLGandhi/dg/sde2
Browse files Browse the repository at this point in the history
chore: Remove mentions of SDESolution
  • Loading branch information
ChrisRackauckas authored May 2, 2024
2 parents c261a03 + 3e64e25 commit 4a48d01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ext/SciMLBaseChainRulesCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ end

function ChainRulesCore.rrule(
::Type{
<:ODESolution{uType, tType, isinplace, P, NP, F, G, K,
<:RODESolution{uType, tType, isinplace, P, NP, F, G, K,
ND
}}, u,
args...) where {uType, tType, isinplace, P, NP, F, G, K, ND}
function SDESolutionAdjoint(ȳ)
function RODESolutionAdjoint(ȳ)
(NoTangent(), ȳ, ntuple(_ -> NoTangent(), length(args))...)
end

SDESolution{uType, tType, isinplace, P, NP, F, G, K, ND}(u, args...), SDESolutionAdjoint
RODESolution{uType, tType, isinplace, P, NP, F, G, K, ND}(u, args...), RODESolutionAdjoint
end

function ChainRulesCore.rrule(::SciMLBase.EnsembleSolution, sim, time, converged)
Expand Down
4 changes: 2 additions & 2 deletions ext/SciMLBaseZygoteExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ end
@adjoint function SDEProblem{uType, tType, isinplace, P, NP, F, G, K, ND}(u,
args...) where
{uType, tType, isinplace, P, NP, F, G, K, ND}
function SDESolutionAdjoint(ȳ)
function SDEProblemAdjoint(ȳ)
(ȳ, ntuple(_ -> nothing, length(args))...)
end

SDESolution{uType, tType, isinplace, P, NP, F, G, K, ND}(u, args...), SDESolutionAdjoint
SDEProblem{uType, tType, isinplace, P, NP, F, G, K, ND}(u, args...), SDEProblemAdjoint
end

@adjoint function NonlinearSolution{T, N, uType, R, P, A, O, uType2}(u,
Expand Down

0 comments on commit 4a48d01

Please sign in to comment.