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

What version of tensorflow does this code work on? #21

Open
aayushee opened this issue Mar 6, 2019 · 2 comments
Open

What version of tensorflow does this code work on? #21

aayushee opened this issue Mar 6, 2019 · 2 comments

Comments

@aayushee
Copy link

aayushee commented Mar 6, 2019

Hi

I tried running this code with multiple tensorflow versions (1.13, 1.1, 0.12) but it keeps giving some error or the other, specifically related to rnn_cell. (cannot import name rnn_cell). Even if I resolve it using contrib package, then I keep getting subsequent errors.
Can someone please tell me which version of tensorflow does this code work with without any errors?
Also, does it work with a specific version of python as well?

Thanks
Aayushee

@DDVD233
Copy link

DDVD233 commented Mar 15, 2019

I tried 0.12.0 and it's the only version for it to work

@aayushee
Copy link
Author

Hi..I tried with tf 0.12.0, python 2.7, cuda 8 but still getting this error:

~/deep-text-corrector$ python2 correct_text.py train_path movie_dialog_train.txt --val_path movie_dialog_val.txt --c Config DefaultMovieDialogConfig --data_reader_type MovieDialogReader --model_path movie_dialog_model
Training model.
Reading data; train = movie_dialog_train.txt, test = movie_dialog_val.txt
Creating 4 layers of 512 units.
Traceback (most recent call last):
File "correct_text.py", line 438, in
tf.app.run()
File "/home/ubuntu/anaconda3/envs/tf012/lib/python2.7/site-packages/tensorflow /python/platform/app.py", line 43, in run
sys.exit(main(sys.argv[:1] + flags_passthrough))
File "correct_text.py", line 434, in main
train(data_reader, FLAGS.train_path, FLAGS.val_path, FLAGS.model_path)
File "correct_text.py", line 148, in train
model = create_model(sess, False, model_path, config=config)
File "correct_text.py", line 124, in create_model
config=config)
File "/home/ubuntu/aayushee/deep-text-corrector/text_corrector_models.py", lin e 188, in init
self.outputs, self.losses = tf.contrib.legacy_seq2seq.model_with_buckets(
File "/home/ubuntu/anaconda3/envs/tf012/lib/python2.7/site-packages/tensorflow /init.py", line 36, in getattr
return getattr(contrib, item)
AttributeError: 'module' object has no attribute 'legacy_seq2seq'

Could you please help me resolve it if possible?

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