Skip to content

Commit 35937c0

Browse files
chore: handle nothing dtunables for SteadyStateAdjoint
1 parent 9789034 commit 35937c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SciMLSensitivity"
22
uuid = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
33
authors = ["Christopher Rackauckas <[email protected]>", "Yingbo Ma <[email protected]>"]
4-
version = "7.76.0"
4+
version = "7.77.0"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

src/concrete_solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ function DiffEqBase._concrete_solve_adjoint(
17931793
end
17941794
end
17951795

1796-
dp = Zygote.accum(dp, isempty(Δtunables) ? nothing : Δtunables)
1796+
dp = Zygote.accum(dp, (isempty(Δtunables) || isnothing(Δtunables)) ? nothing : Δtunables)
17971797

17981798
if originator isa SciMLBase.TrackerOriginator ||
17991799
originator isa SciMLBase.ReverseDiffOriginator

0 commit comments

Comments
 (0)