You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Adapt.adapt_structure method for Optimisers.Leaf (#180)
* Adapt.adapt_structure method for Optimisers.Leaf
* import Adapt.jl
* add Adapt.jl to Project.toml
* adapt compat
* based on discussion: adapt_structure method does not maintain IdDict handled by functors. So we add a warning referring the user to Flux.gpu or MLDataDevices.gpu_device()
* Update ext/OptimisersAdaptExt.jl
Co-authored-by: Brian Chen <[email protected]>
* edit warning to indicate that this is a correctness issue
* Update ext/OptimisersAdaptExt.jl
Co-authored-by: Michael Abbott <[email protected]>
---------
Co-authored-by: Brian Chen <[email protected]>
Co-authored-by: Michael Abbott <[email protected]>
0 commit comments