Skip to content

Commit b4b84f1

Browse files
Update native.jl
1 parent 7801a35 commit b4b84f1

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/native.jl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,3 @@ optf1 = OptimizationFunction(loss, AutoSparseForwardDiff())
6161
prob1 = OptimizationProblem(optf1, rand(5), data)
6262
sol1 = solve(prob1, OptimizationOptimisers.Adam(), maxiters = 1000, callback = callback)
6363
@test sol1.objective < l0
64-
65-
# Test Sophia with ComponentArrays + Enzyme (shadow generation fix)
66-
using ComponentArrays
67-
x0_comp = ComponentVector(a = 0.0, b = 0.0)
68-
rosenbrock_comp(x, p = nothing) = (1 - x.a)^2 + 100 * (x.b - x.a^2)^2
69-
70-
optf_sophia = OptimizationFunction(rosenbrock_comp, AutoEnzyme())
71-
prob_sophia = OptimizationProblem(optf_sophia, x0_comp)
72-
res_sophia = solve(prob_sophia, Optimization.Sophia=0.01, k=5), maxiters = 50)
73-
@test res_sophia.objective < rosenbrock_comp(x0_comp) # Test optimization progress
74-
@test res_sophia.retcode == Optimization.SciMLBase.ReturnCode.Success

0 commit comments

Comments
 (0)