We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94c2e43 commit 68877c2Copy full SHA for 68877c2
lib/BracketingNonlinearSolve/test/adjoint_tests.jl
@@ -12,7 +12,7 @@
12
13
p = [2.0, 2.0]
14
15
- ∂p_zygote = Zygote.gradient(solve_nlprob, p)
+ ∂p_zygote = only(Zygote.gradient(solve_nlprob, p))
16
∂p_forwarddiff = ForwardDiff.gradient(solve_nlprob, p)
17
@test ∂p_zygote ≈ ∂p_forwarddiff
18
end
0 commit comments