Open ChrisRackauckas opened 4 years ago
Hi @ChrisRackauckas ,
could you explain how to use Flux.destructure
just to fit a function with Flux and Optim? It is not documented in Flux. Thx
p,re = Flux.destructure(ann)
gives the parameters of the neural network and a restructure function. re(p)
gives back a new neural network that matches ann
in structure but uses the parameters p
.
The README states:
This is now covered by
Flux.destructure
, which is featured in the DiffEqFlux.jl README:https://github.com/JuliaDiffEq/DiffEqFlux.jl#neural-ordinary-differential-equations