TensorFlow 面试题与答案
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') |
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗? 是 否
用户评价最有帮助的内容: