Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Oct 14, 2024
1 parent f91a4dd commit 8c8c622
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/deprecations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function update!(opt::Optimise.AbstractOptimiser, model, grad)
end

# TODO this friendly error should go in Optimisers.jl.
# remove after https://github.com/FluxML/Optimisers.jl/pull/181
function update!(opt::Optimisers.AbstractRule, model, grad)
error("""Invalid input to `update!`.
`update!(state, model, grad)` needs `state = Flux.setup(opt, model)`.
Expand Down

0 comments on commit 8c8c622

Please sign in to comment.