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

One-argument `fmapstructure(x)`

Open mcabbott opened this issue 2 years ago • 9 comments

Maybe this should be called fstructure(x) since there's no map. The point is to strip all the types for saving etc. Apparently others believe this method should exist: https://discourse.julialang.org/t/how-to-load-bson-file-of-the-model-build-with-flux-0-12-10-to-use-with-flux-0-13-flux-diagonal-deprecated-problem/91588/2

PR Checklist

  • [ ] Tests are added
  • [ ] Documentation, if applicable

mcabbott avatar Dec 13 '22 21:12 mcabbott