Skip to content
This repository has been archived by the owner on Oct 19, 2019. It is now read-only.

Bug in forward.py #31

Open
omidme opened this issue Apr 26, 2017 · 2 comments
Open

Bug in forward.py #31

omidme opened this issue Apr 26, 2017 · 2 comments

Comments

@omidme
Copy link

omidme commented Apr 26, 2017

Hello,
the following error occurred when I execute the forward.py file

Traceback (most recent call last):
File "forward.py", line 11, in
new_saver.restore(sess, [checkpoint_fn(layers)])
File "/home/msf/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1428, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/home/msf/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 767, in run
run_metadata_ptr)
File "/home/msf/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 944, in _run
% (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (1,) for Tensor u'save/Const:0', which has shape '()'

Could you please help me?

Thanks much!
Omid

@ghost
Copy link

ghost commented Dec 7, 2017

@omidme I encountered the same issue , How did you fix it? plaease

@xianefeng
Copy link

@hhxjzyr copy the pretrained .ckpt .meta to the folder of forward.py

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

No branches or pull requests

2 participants