tf.train.Saver
时间: 2023-11-03 11:04:59 浏览: 79
TensorFlow入门使用 tf.train.Saver()保存模型
5星 · 资源好评率100%
tf.train.Saver is a class in TensorFlow that allows you to save and restore models. It can be used to save the weights of a trained model or the entire model including the graph. A Saver instance is created with a list of variables that need to be saved or restored. The save method is used to save the variables to disk, while the restore method is used to restore the saved variables. Saver can also be used to save and restore checkpoints during training to resume training from the last saved checkpoint.
阅读全文