Skip to content

Commit

Permalink
chore: rm unwanted adjoint
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaLGandhi committed May 16, 2024
1 parent 4ce8257 commit 839bd63
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 @@ -215,16 +215,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 839bd63

Please sign in to comment.