TensorFlow-Summarization icon indicating copy to clipboard operation
TensorFlow-Summarization copied to clipboard

AttributeError

Open yasersakkaf opened this issue 6 years ago • 9 comments

AttributeError: module 'tensorflow.contrib.seq2seq' has no attribute 'DynamicAttentionWrapper' AttributeError: module 'tensorflow.contrib.seq2seq' has no attribute 'DynamicAttentionWrapperState'

I was getting this errors, which removed by removing the Dynamic from both DynamicAttentionWrapper and DynamicAttentionWrapperState

After that I am getting this error: File "C:\Users\yaser.sakkaf\Downloads\TensorFlow-Summarization-master\src\bigr u_model.py", line 90, in init self.init_state, self.prev_att) TypeError: new() missing 3 required positional arguments: 'time', 'alignment s', and 'alignment_history'

Please help.

yasersakkaf avatar Apr 25 '18 06:04 yasersakkaf

Hi , I am getting the same error.... and I am also not able to solve it. if you solved that please let me know how Thankyou

Himanshu-1203 avatar May 22 '18 14:05 Himanshu-1203

Hi All.

same error for me.

AttributeError: module 'tensorflow.contrib.seq2seq' has no attribute 'DynamicAttentionWrapper'

Is there any solution ?

Thank you. Regards,

chocosando avatar May 28 '18 00:05 chocosando

AttributeError: module 'tensorflow.contrib.seq2seq' has no attribute 'DynamicAttentionWrapper' AttributeError: module 'tensorflow.contrib.seq2seq' has no attribute 'DynamicAttentionWrapperState'

I was getting this errors, which removed by removing the Dynamic from both DynamicAttentionWrapper and DynamicAttentionWrapperState

After that I am getting this error: File "C:\Users\yaser.sakkaf\Downloads\TensorFlow-Summarization-master\src\bigr u_model.py", line 90, in init self.init_state, self.prev_att) TypeError: new() missing 3 required positional arguments: 'time', 'alignment s', and 'alignment_history'

Please help.

Did you fix it?

anirudhsr7 avatar Oct 10 '18 18:10 anirudhsr7

We get this AttributeError: module 'tensorflow.contrib.seq2seq' has no attribute 'DynamicAttentionWrapper' error only when we are not using Tensorflow 1.1 version. So make sure, you have installed only 1.1 version by typing - python3 -c 'import tensorflow as tf; print(tf.version)'

shalaka92 avatar Oct 11 '18 06:10 shalaka92

I am using tensorflow 1.11.0 . It is showing same errors as above. How to manage it.

shwetapandey261993 avatar Oct 11 '18 08:10 shwetapandey261993

any solution for this?

datomnurdin avatar Dec 31 '18 19:12 datomnurdin

I have same error. i am using tensorflow 1.12 on windows cpu. removing "Dynamic" worked by am now facing: TypeError: new() missing 4 required positional arguments: 'time', 'alignments', 'alignment_history', and 'attention_state'

BAG-OF-CHIPS-XX avatar Feb 23 '19 23:02 BAG-OF-CHIPS-XX

pip3 install tensorflow==1.1.0 or pip install tensorflow-gpu==1.1.0 (with gpu support) fixed the problem for me. This might be a temporary fix, and you dont want to downgrade to an earlier version, so install it in a virtualenv if you havent started using virtualenv already.

Meanwhile lets wait for the compability of this project with tensorflow's latest version 😄

gigatesseract avatar Jun 19 '19 09:06 gigatesseract

Hi,

Any working solution to this problem AttributeError: module 'tensorflow.contrib.seq2seq' has no attribute 'DynamicAttentionWrapper'? I'm using the TensorFlow version: 1.14.0. I also tried a few workarounds as mentioned in the above comments but still could not succeed Any leads or help on this is greatly appreciated.

Note: version 1.1.0 is deprecated now and not available to downgrade the tensorflow version

Kaarthic29 avatar Oct 13 '19 15:10 Kaarthic29