TensorFlow Interview Questions and Answers
Question: How can you save and load a TensorFlow model?Answer: A TensorFlow model can be saved using the tf.keras.models.save_model method. It can be loaded using the tf.keras.models.load_model method for further use or deployment.Example: model.save('saved_model.h5') loaded_model = tf.keras.models.load_model('saved_model.h5') |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: