stock-rnn icon indicating copy to clipboard operation
stock-rnn copied to clipboard

Error with code

Open pratishrutinayak opened this issue 6 years ago • 2 comments

File "C:\Users\PRATISHRUTI\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1100, in _run % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (0,) for Tensor 'inputs:0', which has shape '(?, 30, 1)' Uncaught exception. Entering post mortem debugging Running 'cont' or 'step' will restart the program

c:\users\pratishruti\anaconda3\lib\site-packages\tensorflow\python\client\session.py(1100)_run() -> % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))

pratishrutinayak avatar Feb 27 '18 21:02 pratishrutinayak

I'm having the same error

rishiswethan avatar Mar 11 '18 02:03 rishiswethan

File "C:\Users\PRATISHRUTI\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 1100, in _run % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape()))) ValueError: Cannot feed value of shape (0,) for Tensor 'inputs:0', which has shape '(?, 30, 1)' Uncaught exception. Entering post mortem debugging Running 'cont' or 'step' will restart the program

c:\users\pratishruti\anaconda3\lib\site-packages\tensorflow\python\client\session.py(1100)_run() -> % (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))

I guess the code in written in Python 2.7, and tensorflow version also needs updating. I try to run the code in tensorflow 1.10, Python 3.6. Not encountering the problem above, with data provided by https://github.com/jimenbian/stock-rnn

kprojiang avatar Jan 11 '19 03:01 kprojiang