tensorflow tf.train.Saver.restore() (用于下次训练时恢复模型)
生活随笔
收集整理的這篇文章主要介紹了
tensorflow tf.train.Saver.restore() (用于下次训练时恢复模型)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
# 保存當前的Session到文件目錄tf.train.Saver().save(sess, 'net/my_net.ckpt')
# 然后在下次訓(xùn)練時恢復(fù)模型:
tf.train.Saver().restore(sess, 'net/my_net.ckpt')。
參考文章:TF - Session的Saver 和 Restore
總結(jié)
以上是生活随笔為你收集整理的tensorflow tf.train.Saver.restore() (用于下次训练时恢复模型)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tensorflow tf.train.
- 下一篇: tensorflow 官方文档中文版 t