attentive-reader-tensorflow icon indicating copy to clipboard operation
attentive-reader-tensorflow copied to clipboard

Loading a checkpointed model

Open rabberbock opened this issue 9 years ago • 0 comments

Hello. Thanks so much for working in this project.

I a running into an issue when loading the checkpointed model. I get the floowing error after running python main.py --dataset cnn --forward_only True

File "main.py", line 49, in <module>
    tf.app.run()
  File "/usr/local/lib/python2.7/site-packages/tensorflow/python/platform/default/_app.py", line 30, in run
    sys.exit(main(sys.argv))
  File "main.py", line 46, in main
    model.load(sess, FLAGS.checkpoint_dir, FLAGS.dataset)
  File "/Users/raphaelabberbock/Desktop/junk/attentive2/model/base_model.py", line 29, in load
    self.saver = tf.train.Saver()
  File "/usr/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 705, in __init__
    raise ValueError("No variables to save")
ValueError: No variables to save

An issue has already been opened regarding this matter, but I did not see a resolution to the problem.

Any help would be much appreciated.

Thanks,

Raffi

rabberbock avatar Apr 19 '16 18:04 rabberbock