Skip to content

Commit

Permalink
Fix Zygote ODESolution constructor adjoint arg length
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jun 12, 2024
1 parent 5575f46 commit 38631ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/SciMLBaseZygoteExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,12 @@ end
@adjoint function ODESolution{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12
}(u,
args...) where {T1, T2, T3, T4, T5, T6, T7, T8,
T9, T10, T11, T12}
T9, T10, T11, T12, T13, T14}
function ODESolutionAdjoint(ȳ)
(ȳ, ntuple(_ -> nothing, length(args))...)
end

ODESolution{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12}(u, args...),
ODESolution{T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14}(u, args...),
ODESolutionAdjoint
end

Expand Down

0 comments on commit 38631ad

Please sign in to comment.