By Saket Singh
We will see how can we save and load a trained model in tensorflow, not only weight but also the architecture of the model. We will do these things by using TensorFlow in Python.
We will be using Python throughout this topic.
It is very important to save our model because if we don't save our trained model all the hard work and time spent will be lost.
Saving model helps in keeping our work safe and also make it available for future use like integrating it with a web page or making an App which will use it.
tensorflow provides us an easy and simple way to save and load model in two formats:-
1. 'tf' format
2. 'h5' format
It is a very good practice to save your model, so let's see how can we that with TensorFlow.
pip install tensorflow
To install TensorFlow.
Submitted by Saket Singh (saketsingh)
Download packets of source code on Coders Packet
Comments