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

__deepcopy__() #80

Open DaCodaHUB opened 5 years ago

DaCodaHUB commented 5 years ago

NotImplementedError: deepcopy() is only available when eager execution is enabled.

I got this error and I'm not sure how to solve it. I was running the python script in virtualenv with python3.

Any help would be appreciated. Thanks

P/s: Which tensorflow version would run this project best?

amiralessigue commented 5 years ago

try this :

setattr(tf.contrib.rnn.GRUCell, 'deepcopy', lambda self, : self) setattr(tf.contrib.rnn.BasicLSTMCell, 'deepcopy', lambda self, : self) setattr(tf.contrib.rnn.MultiRNNCell, 'deepcopy', lambda self, _: self)

it worked for me

mursigkeit22 commented 5 years ago

try this :

setattr(tf.contrib.rnn.GRUCell, 'deepcopy', lambda self, : self) setattr(tf.contrib.rnn.BasicLSTMCell, 'deepcopy', lambda self, : self) setattr(tf.contrib.rnn.MultiRNNCell, 'deepcopy', lambda self, _: self)

it worked for me

sorry for stupid question, but where in the code should I put it? I've tried several places and it didn't work

NazaninSA commented 5 years ago

Hi , any feedback for this issue?