These functional API advantages seem like they could also be implemented in a sub-classing style (though they haven’t been yet.) Classes are perfectly capable of holding/serializing/being reconstructed from data structures, including graphs and input shapes. What am I missing?https://twitter.com/fchollet/status/1414667159326715908 …
-
-
Well, no, I mean that in concept at least, a base class that provides functionality for building layers up into graphs that isn’t defined in the `call` method (even if it runs there) seems possible.
-
And building up a serializable data structure like a graph of layers doesn’t seem to have an inherent relationship with either functional or sub-classing *styles* (even if it is currently substantially easier to do with one API than the other.)
- Show replies
New conversation -
-
-
I like the approach that
@DeepMind's haiku takes. "Haiku is a simple neural network library for JAX that enables users to use familiar object-oriented programming models while allowing full access to JAX's pure function transformations."https://github.com/deepmind/dm-haiku …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.