Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore called with invalid save path #19

Open
linamede opened this issue Nov 22, 2016 · 0 comments
Open

Restore called with invalid save path #19

linamede opened this issue Nov 22, 2016 · 0 comments

Comments

@linamede
Copy link

linamede commented Nov 22, 2016

When I run the test mode

$ python main.py --task copy --test_max_length 120 --max_length 130

it shows the error "Restore called with invalid save path" but the path exists! Anyone else encountered the same problem?

I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so locally
{'checkpoint_dir': 'checkpoint',
'continue_train': None,
'controller_dim': 100,
'controller_layer_size': 1,
'epoch': 100000,
'input_dim': 10,
'is_train': False,
'max_length': 130,
'min_length': 1,
'output_dim': 10,
'read_head_size': 1,
'task': 'copy',
'test_max_length': 120,
'write_head_size': 1}
changepoint/copy_130
ln: failed to create symbolic link ‘copy_130/copy_10’: File exists
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:925] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
name: GeForce GTX 960
major: 5 minor: 2 memoryClockRate (GHz) 1.253
pciBusID 0000:01:00.0
Total memory: 3.94GiB
Free memory: 229.88MiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0: Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 960, pci bus id: 0000:01:00.0)
[] Building a NTM model
Percent: [####################] 100.00% Finished.
[
] Build a NTM model finished
[*] Reading checkpoints...
Traceback (most recent call last):
File "/home/user/Desktop/NTM-tensorflow-master/main.py", line 83, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 30, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "/home/user/Desktop/NTM-tensorflow-master/main.py", line 70, in main
ntm.load(FLAGS.checkpoint_dir, FLAGS.task)
File "/home/user/Desktop/NTM-tensorflow-master/ntm.py", line 266, in load
self.saver.restore(self.sess, os.path.join(checkpoint_dir, ckpt_name))
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1342, in restore
"File path is: %r" % (save_path, file_path))
ValueError: Restore called with invalid save path: u'checkpoint/copy_130/NTM-copy_copy.model-3402'. File path is: u'checkpoint/copy_130/NTM-copy_copy.model-3402'
[Finished in 286.5s with exit code 1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant