Tensorflow: how to save/restore a model?

前端 未结 26 2614
迷失自我
迷失自我 2020-11-21 11:37

After you train a model in Tensorflow:

  1. How do you save the trained model?
  2. How do you later restore this saved model?
26条回答
  •  一个人的身影
    2020-11-21 12:14

    As described in issue 6255:

    use '**./**model_name.ckpt'
    saver.restore(sess,'./my_model_final.ckpt')
    

    instead of

    saver.restore('my_model_final.ckpt')
    

提交回复
热议问题