Closed ablaom closed 3 months ago
This PR adds a check to the clean! method that throw an error if user passes an optimiser to a model that subtypes Flux.Optimise.AbstractOptimiser. Only optimisers from Optimisers.jl are now supported, and the error message explains as much.
clean!
optimiser
Flux.Optimise.AbstractOptimiser
This PR adds a check to the
clean!
method that throw an error if user passes anoptimiser
to a model that subtypesFlux.Optimise.AbstractOptimiser
. Only optimisers from Optimisers.jl are now supported, and the error message explains as much.