But there are several key advantages of the Functional approach over the subclassing approach: 1. Your model has known inputs shapes. 2. You get access to the internal connectivity graph. 3. The model is a data structure, not a piece of bytecode. Let's see what these are about.
...and so when loading the model, you will get a different Python object wrapping the TF graph, not your original subclassed model class.
-
-
If you have a Functional model, then using SavedModel or the h5 format both work fine. If you have a subclassed model, then SavedModel is a kind of one-way export. If you want idempotency you should load the model by reinstantiating the Python class 1st, then loading the weights
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.