Optimisers.jl
Optimisers.jl copied to clipboard
Attempt to fix #62
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.