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 df9c20a commit 7844ed7Copy full SHA for 7844ed7
lib/OptimizationOptimisers/test/runtests.jl
@@ -1,5 +1,6 @@
1
using OptimizationOptimisers, Optimization, ForwardDiff
2
using Test
3
+using Zygote
4
5
@testset "OptimizationOptimisers.jl" begin
6
rosenbrock(x, p) = (p[1] - x[1])^2 + p[2] * (x[2] - x[1]^2)^2
@@ -22,7 +23,7 @@ using Test
22
23
_p = ones(2)
24
sumfunc(x0, _p) = sum(abs2, (x0 - _p))
25
l1 = sumfunc(x0, _p)
-using Zygote
26
+
27
optprob = OptimizationFunction(sumfunc, Optimization.AutoZygote())
28
29
prob = OptimizationProblem(optprob, x0, _p)
0 commit comments