You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i =symbolic_type(sym) !=NotSymbolic() ?variable_index(VA, sym) : sym
168
-
@show sym
169
168
ifis_observed(VA, sym)
170
169
f =observed(VA, sym)
171
170
p =parameter_values(VA)
@@ -177,7 +176,6 @@ end
177
176
f.f_oop(u, _p)
178
177
end
179
178
gs =back(Δ)
180
-
# (gs[1], nothing)
181
179
((u = gs[1], prob = (p = gs[2],)), nothing)
182
180
elseif i ===nothing
183
181
throw(error("Zygote AD of purely-symbolic slicing for observed quantities is not yet supported. Work around this by using `A[sym,i]` to access each element sequentially in the function being differentiated."))
@@ -227,7 +225,6 @@ end
227
225
uType2
228
226
}
229
227
functionNonlinearSolutionAdjoint(ȳ)
230
-
@show ȳ
231
228
(ȳ, ntuple(_ ->nothing, length(args))...)
232
229
end
233
230
NonlinearSolution{T, N, uType, R, P, A, O, uType2}(u, args...), NonlinearSolutionAdjoint
0 commit comments