Skip to content

Commit

Permalink
Merge pull request #701 from DhairyaLGandhi/dg/rm_literal
Browse files Browse the repository at this point in the history
Remove `literal_getproperty` adjoint from SciMLBase
  • Loading branch information
ChrisRackauckas committed Jun 3, 2024
2 parents de51914 + e1bce73 commit 9185795
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ext/SciMLBaseZygoteExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,6 @@ end
NonlinearSolution{T, N, uType, R, P, A, O, uType2}(u, args...), NonlinearSolutionAdjoint
end

@adjoint function literal_getproperty(sol::AbstractTimeseriesSolution,
::Val{:u})
function solu_adjoint(Δ)
zerou = zero(sol.prob.u0)
= @. ifelse=== nothing, (zerou,), Δ)
(build_solution(sol.prob, sol.alg, sol.t, _Δ),)
end
sol.u, solu_adjoint
end

@adjoint function literal_getproperty(sol::SciMLBase.AbstractNoTimeSolution,
::Val{:u})
function solu_adjoint(Δ)
Expand Down

0 comments on commit 9185795

Please sign in to comment.