practical_seq2seq
practical_seq2seq copied to clipboard
__deepcopy__()
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?
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
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
Hi , any feedback for this issue?