Skip to content

Commit 1fad20c

Browse files
jClugstorChrisRackauckas
authored andcommitted
fix adjoint test
1 parent 5af9fac commit 1fad20c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/BracketingNonlinearSolve/test/adjoint_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
return sum(abs2, res)
1111
end
1212

13-
p = [3.0, 2.0]
13+
p = [2.0, 2.0]
1414

15-
∂p_zygote = only(Zygote.gradient(solve_nlprob, p))
15+
∂p_zygote = Zygote.gradient(solve_nlprob, p)
1616
∂p_forwarddiff = ForwardDiff.gradient(solve_nlprob, p)
1717
@test ∂p_zygote ∂p_forwarddiff
1818
end

0 commit comments

Comments
 (0)