practical_seq2seq icon indicating copy to clipboard operation
practical_seq2seq copied to clipboard

__deepcopy__()

Open DaCodaHUB opened this issue 5 years ago • 3 comments

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?

DaCodaHUB avatar Apr 26 '19 22:04 DaCodaHUB

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

amiralessigue avatar May 04 '19 06:05 amiralessigue

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

mursigkeit22 avatar May 08 '19 11:05 mursigkeit22

Hi , any feedback for this issue?

NazaninSA avatar Jun 18 '19 19:06 NazaninSA