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

Attempt to fix #62

Open mcabbott opened this issue 3 years ago • 0 comments

This tries to fix #62 by using functor(typeof(x), dx) only for gradients, and functor(aux) for the tree of offsets made by destructure.

But it doesn't quite work, as for an array of arrays like x = [[1.0, 2.0]] the offset structure is something like o = [4] which is leaflike.

mcabbott avatar Mar 26 '22 01:03 mcabbott