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

error 'tensorflow.python.ops.nn' has no attribute 'rnn_cell' #2

Open
irvanrahadhian opened this issue Mar 16, 2017 · 4 comments
Open

Comments

@irvanrahadhian
Copy link

irvanrahadhian commented Mar 16, 2017

i tried to run this code but i always get this error, i found the rnn_cell is in contrib folder in tensorflow, and i tried to add the
import tensorflow.contrib.python.ops , but still got the error.

im new to python and tensorflow, so any help or information on how to fix it will be helpful

im using :
python 3.5
TF 1.0.1
Windows 10

thank you in advance

@bluehole1604
Copy link

There is Elliot V solution:
"Just a note, using tensorflow 1.0 i ran into the error ".. no attribute 'rnn_cell'
to solve without solving
pip3 uninstall tensorflow
pip3 install tensorflow=0.12.1"

but it also works with pip only

@mdmss37
Copy link

mdmss37 commented Apr 15, 2017

I ran into this error and confirmed 'rnn_cell' has been moved to "contrib".
Below is what I found. Hope this helps.

tensorflow/tensorflow#7664
https://www.tensorflow.org/api_docs/python/tf/contrib/rnn
https://www.tensorflow.org/api_docs/python/tf/contrib/rnn/RNNCell

@leeladhargudala9
Copy link

What can I do to solve this issue? I understand that it is moved to contrib. How to get around with this issue? I am using windows and I am a newbie here.

@Halfish
Copy link

Halfish commented Aug 8, 2017

may try this, @leeladhargudala9

from tensorflow.contrib import rnn 

refer to stackoverflow

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

5 participants