Optimisers.jl icon indicating copy to clipboard operation
Optimisers.jl copied to clipboard

Document `destructure` handling shared parameters differently to ComponentArrays.jl

Open mcabbott opened this issue 2 years ago • 0 comments

This came up here:

https://discourse.julialang.org/t/on-the-future-of-flux-destructure-and-sciml-integration/104760/4

Maybe the idea that ComponentArrays.jl treats shared arrays as independent should be mentioned as an important difference, perhaps at the end of this section:

https://fluxml.ai/Optimisers.jl/dev/#Obtaining-a-flat-parameter-vector

Edit, example here:

https://github.com/FluxML/Flux.jl/issues/2405#issuecomment-2015447460

mcabbott avatar Oct 09 '23 20:10 mcabbott