Skip to content

Commit 4cf7bd5

Browse files
Update test/mtk.jl
Co-authored-by: Christopher Rackauckas <[email protected]>
1 parent 7dd1cc7 commit 4cf7bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/mtk.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ prob = ODEProblem(sys, u0, tspan, p, jac = true)
3434
sol = solve(prob, Tsit5())
3535
mtkparams = SciMLSensitivity.parameter_values(sol)
3636

37-
gt = rand(1495)
37+
gt = rand(length(sol.u))
3838
dmtk, = Zygote.gradient(mtkparams) do p
3939
new_sol = solve(prob, Tsit5(), p = p)
4040
Zygote.ChainRules.ChainRulesCore.ignore_derivatives() do

0 commit comments

Comments
 (0)