Skip to content

Commit

Permalink
Update src/solutions/zygote.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Aug 11, 2023
1 parent 2326334 commit 32890b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solutions/zygote.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ end
function ODESolution_getindex_pullback(Δ)
i = issymbollike(sym) ? sym_to_index(sym, VA) : sym
if i === nothing
throw("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.")
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."))

Check warning on line 14 in src/solutions/zygote.jl

View check run for this annotation

Codecov / codecov/patch

src/solutions/zygote.jl#L10-L14

Added lines #L10 - L14 were not covered by tests
else
Δ′ = [[i == k ? Δ[j] : zero(x[1]) for k in 1:length(x)]

Check warning on line 16 in src/solutions/zygote.jl

View check run for this annotation

Codecov / codecov/patch

src/solutions/zygote.jl#L16

Added line #L16 was not covered by tests
for (x, j) in zip(VA.u, 1:length(VA))]
Expand Down

0 comments on commit 32890b2

Please sign in to comment.