Skip to content

Commit

Permalink
fix test optimisers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Jan 4, 2024
1 parent d1d326a commit 7e8bf0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/OptimizationOptimisers/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ using Zygote
optprob = OptimizationFunction(rosenbrock, Optimization.AutoZygote())

prob = OptimizationProblem(optprob, x0, _p)
function callback(θ, l, state, iter)
Optimisers.adjust!(state, 0.1/iter)
function callback(state, l)
Optimisers.adjust!(state.solver_state, 0.1/state.iter)
return false
end
sol = solve(prob, Optimisers.Adam(0.1), maxiters = 1000, progress = false, callback = callback)
Expand Down

0 comments on commit 7e8bf0c

Please sign in to comment.