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

AttributeError: module 'tensorflow_core._api.v2.nn' has no attribute 'rnn_cell' #143

Closed
dusty-dusty opened this issue Nov 3, 2019 · 2 comments

Comments

@dusty-dusty
Copy link

Python 3.7.4
tensorflow 2.0.0

Traceback (most recent call last):
File "train.py", line 8, in
from nmt import nmt
File "D:\Coding\aichatbot\nmt-chatbot-master/nmt\nmt\nmt.py", line 28, in
from . import inference
File "D:\Coding\aichatbot\nmt-chatbot-master/nmt\nmt\inference.py", line 25, in
from . import gnmt_model
File "D:\Coding\aichatbot\nmt-chatbot-master/nmt\nmt\gnmt_model.py", line 261, in
class GNMTAttentionMultiCell(tf.nn.rnn_cell.MultiRNNCell):
AttributeError: module 'tensorflow_core._api.v2.nn' has no attribute 'rnn_cell'

@dusty-dusty
Copy link
Author

dusty-dusty commented Nov 3, 2019

pip install tensorflow-gpu==1.14

solves the issue dont use v2

also you will need to download numpy v (1.16.4)

@nora-illanes
Copy link

pip install tensorflow-gpu==1.14

I have the same problem, and it didnt solve it. Im working with tensorflow 2.0 but the code is written in tensorflow 1.7. To rewrite the code is unrealistic. I use v1. compatible for all variables, but I have problems with this issue. How to make it compatible?

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