easy_seq2seq icon indicating copy to clipboard operation
easy_seq2seq copied to clipboard

AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'seq2seq'

Open canivel opened this issue 7 years ago • 8 comments

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?

canivel avatar Apr 09 '17 23:04 canivel

I'm using the older version of tensorflow (0.12.1) without problem.

AkishinoShiame avatar Apr 29 '17 11:04 AkishinoShiame

@canivel use virtual environment and install tensorflow 0.12

Denisolt avatar May 16 '17 03:05 Denisolt

AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'Seq2Seq'....how to solve it..

sowntharsakthi avatar Aug 01 '17 11:08 sowntharsakthi

AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'seq2seq' ...need help here @suriyadeepan

vivek9237 avatar Aug 03 '17 13:08 vivek9237

@vivek9237 try what I wrote above.

Denisolt avatar Aug 03 '17 21:08 Denisolt

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.

blueseasky avatar Nov 09 '17 08:11 blueseasky

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

AkishinoShiame avatar Nov 09 '17 09:11 AkishinoShiame

use tensorflow.contrib.seq2seq wherever tensorflow.python.ops.nn you have written it worked for me

manav1289 avatar Aug 15 '18 16:08 manav1289