Commit 9928588
* 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 <ToucheSir@users.noreply.github.com>
* edit warning to indicate that this is a correctness issue
* Update ext/OptimisersAdaptExt.jl
Co-authored-by: Michael Abbott <32575566+mcabbott@users.noreply.github.com>
---------
Co-authored-by: Brian Chen <ToucheSir@users.noreply.github.com>
Co-authored-by: Michael Abbott <32575566+mcabbott@users.noreply.github.com>
1 parent d842ddb commit 9928588
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments