From 08b130e2d92cfe2f377e2e4cb8a825969a7039e5 Mon Sep 17 00:00:00 2001 From: Vaibhav Dixit Date: Fri, 5 Jan 2024 01:07:09 -0500 Subject: [PATCH] local i in optimisers --- lib/OptimizationFlux/src/OptimizationFlux.jl | 1 + lib/OptimizationOptimisers/src/OptimizationOptimisers.jl | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/OptimizationFlux/src/OptimizationFlux.jl b/lib/OptimizationFlux/src/OptimizationFlux.jl index 989346a38..1d5e18608 100644 --- a/lib/OptimizationFlux/src/OptimizationFlux.jl +++ b/lib/OptimizationFlux/src/OptimizationFlux.jl @@ -41,6 +41,7 @@ function SciMLBase.__solve(cache::OptimizationCache{ P, C, } + local i if cache.data != Optimization.DEFAULT_DATA maxiters = length(cache.data) data = cache.data diff --git a/lib/OptimizationOptimisers/src/OptimizationOptimisers.jl b/lib/OptimizationOptimisers/src/OptimizationOptimisers.jl index 5a41997af..fcaffecef 100644 --- a/lib/OptimizationOptimisers/src/OptimizationOptimisers.jl +++ b/lib/OptimizationOptimisers/src/OptimizationOptimisers.jl @@ -41,6 +41,7 @@ function SciMLBase.__solve(cache::OptimizationCache{ P, C, } + local i if cache.data != Optimization.DEFAULT_DATA maxiters = length(cache.data) data = cache.data