suriyadeepan / practical_seq2seq

A simple, minimal wrapper for tensorflow's seq2seq module, for experimenting with datasets rapidly
http://suriyadeepan.github.io/2016-12-31-practical-seq2seq/
GNU General Public License v3.0
570 stars 270 forks source link

AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'DropoutWrapper' #83

Open Nish0106 opened 3 years ago

Nish0106 commented 3 years ago

Hi,

I am using Python - 3.6.8, TF version - 2.3.0

fw_cells = [rnn.DropoutWrapper(cell) for cell in fw_cells]

Facing the below error AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'DropoutWrapper'

Please help to resolve the issue

Thanks in Advance, Nishar Ahamed A

saran-gangster commented 3 years ago

use tensorflow version 1.14.0 because tensorflow contrib was removed from the future versions use : pip install tensorflow==1.4.0

saran-gangster commented 3 years ago

if it works don't forget to close this issue

hamdifhal commented 2 years ago

it dosen't work ERROR: Could not find a version that satisfies the requirement tensorflow==1.14 (from versions: 2.5.0rc0, 2.5.0rc1, 2.5.0rc2, 2.5.0rc3, 2.5.0, 2.5.1, 2.5.2, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.8.0rc0, 2.8.0rc1) ERROR: No matching distribution found for tensorflow==1.14