How to restore a model by filename in Tensorflow r12?

前端 未结 6 551
隐瞒了意图╮
隐瞒了意图╮ 2020-12-28 08:44

I have run the distributed mnist example: https://github.com/tensorflow/tensorflow/blob/r0.12/tensorflow/tools/dist_test/python/mnist_replica.py

Though I have set th

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-28 09:15

    OK, I can answer my own question. What I found was that my python script was adding an extra '/' to my path so I was executing: saver.restore(sess,'/path/to/train//model.ckpt-1234')

    somehow that was causing a problem with tensorflow.

    When I removed it, calling: saver.restore(sess,'/path/to/trian/model.ckpt-1234')

    it worked as expected.

提交回复
热议问题