Skip to content

Commit

Permalink
local i in optimisers
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed Jan 5, 2024
1 parent 9e20780 commit 08b130e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/OptimizationFlux/src/OptimizationFlux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function SciMLBase.__solve(cache::OptimizationCache{
P,
C,
}
local i

Check warning on line 44 in lib/OptimizationFlux/src/OptimizationFlux.jl

View check run for this annotation

Codecov / codecov/patch

lib/OptimizationFlux/src/OptimizationFlux.jl#L44

Added line #L44 was not covered by tests
if cache.data != Optimization.DEFAULT_DATA
maxiters = length(cache.data)
data = cache.data
Expand Down
1 change: 1 addition & 0 deletions lib/OptimizationOptimisers/src/OptimizationOptimisers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function SciMLBase.__solve(cache::OptimizationCache{
P,
C,
}
local i

Check warning on line 44 in lib/OptimizationOptimisers/src/OptimizationOptimisers.jl

View check run for this annotation

Codecov / codecov/patch

lib/OptimizationOptimisers/src/OptimizationOptimisers.jl#L44

Added line #L44 was not covered by tests
if cache.data != Optimization.DEFAULT_DATA
maxiters = length(cache.data)
data = cache.data
Expand Down

0 comments on commit 08b130e

Please sign in to comment.