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

ImportError: This module is deprecated. Use tf.nn.rnn_* instead. #4

Open
Chin-I opened this issue Feb 3, 2017 · 1 comment
Open

Comments

@Chin-I
Copy link

Chin-I commented Feb 3, 2017

Can anyone provide a new version code?

(tensorflow) dhcp-v097-009:stocks_rnn-master Gene$ python train_stock_lstm.py
Traceback (most recent call last):
File "train_stock_lstm.py", line 13, in
from tensorflow.models.rnn import rnn
File "/Users/Gene/anaconda2/envs/tensorflow/lib/python2.7/site-packages/tensorflow/models/rnn/rnn.py", line 21, in
raise ImportError("This module is deprecated. Use tf.nn.rnn_* instead.")
ImportError: This module is deprecated. Use tf.nn.rnn_* instead.

@shawnliucmcm
Copy link

Replace tensorflow.models.rnn with tensorflow.python.ops, and it should work.

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

2 participants