Skip to content

Commit cc59a15

Browse files
Merge pull request #1007 from DhairyaLGandhi/dg/emsemble
Remove `literal_getproperty(::EnsembleSolution)`
2 parents fb14ff5 + 50105e1 commit cc59a15

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ext/SciMLBaseZygoteExt.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ end
7070
function EnsembleSolution_adjoint(p̄::EnsembleSolution)
7171
(p̄, nothing, nothing, nothing)
7272
end
73+
function EnsembleSolution_adjoint(p̄::NamedTuple)
74+
(p̄.u, nothing, nothing, nothing)
75+
end
7376
out, EnsembleSolution_adjoint
7477
end
7578

@@ -82,11 +85,6 @@ end
8285
VA[:, i], ODESolution_getindex_pullback
8386
end
8487

85-
@adjoint function Zygote.literal_getproperty(sim::EnsembleSolution,
86-
::Val{:u})
87-
sim.u, p̄ -> (EnsembleSolution(p̄, 0.0, true, sim.stats),)
88-
end
89-
9088
@adjoint function Base.getindex(VA::ODESolution, sym)
9189
function ODESolution_getindex_pullback(Δ)
9290
i = symbolic_type(sym) != NotSymbolic() ? variable_index(VA, sym) : sym

0 commit comments

Comments
 (0)