It can be quite tricky getting around to deploying TF models –
In fact there are multiple ways to save/load TF models, with each serving a slightly different purpose / use-case.
- simple_save
- saver
- estimator
- keras
- tflite
References:
- https://blog.metaflow.fr/tensorflow-how-to-freeze-a-model-and-serve-it-with-a-python-api-d4f3596b3adc
- https://gist.github.com/omimo/5d393ed5b64d2ca0c591e4da04af6009
Code: