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 #25

Open
yasersakkaf opened this issue Apr 25, 2018 · 9 comments
Open

AttributeError #25

yasersakkaf opened this issue Apr 25, 2018 · 9 comments

Comments

@yasersakkaf
Copy link

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.

@Himanshu-1203
Copy link

Himanshu-1203 commented May 22, 2018

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

@chocosando
Copy link

Hi All.

same error for me.

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

Is there any solution ?

Thank you.
Regards,

@anirudhsr7
Copy link

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?

@shalaka92
Copy link

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)'

@shwetapandey261993
Copy link

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

@datomnurdin
Copy link

any solution for this?

@BAG-OF-CHIPS-XX
Copy link

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'

@gigatesseract
Copy link

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 😄

@Kaarthic29
Copy link

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

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

10 participants