easy_seq2seq
easy_seq2seq copied to clipboard
AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'seq2seq'
Hi guys, Im trying to running it into a python3.5, tf 1.0.1 and I'm getting this:
AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'seq2seq'
I already have installed the tensorflow.models into the tensorflow, but cant find the seq2seq anywhere to update it.
What should I do?
I'm using the older version of tensorflow (0.12.1) without problem.
@canivel use virtual environment and install tensorflow 0.12
AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'Seq2Seq'....how to solve it..
AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'seq2seq' ...need help here @suriyadeepan
@vivek9237 try what I wrote above.
I change the version of my tensorflow from 1.4.0 to 0.12.1,and solve the problem. But I don`t know why.
See the change log of tensorflow then it will be clear. https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md After update to 1.0.0 and above, they change the location of seq2seq from tf.nn.seq2seq to tf.contrib.legacy_seq2seq https://www.tensorflow.org/api_docs/python/tf/contrib/legacy_seq2seq
use tensorflow.contrib.seq2seq wherever tensorflow.python.ops.nn you have written it worked for me