Closed sherlockhoatszx closed 6 years ago
See this answer on StackOverflow and also https://github.com/tensorflow/tensorflow/issues/11157 . Basically, the workaround is 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)
Thanks for the bug report, @sherlockhoatszx . And thanks for the workaround, @maxim5 .
I'm just getting around to triaging everything and about to go through and start updating all the code. I'll see if I can apply the fix (or something else by now) to the code.
This should be fixed now. I pushed an update to chapter 9. If you run into this error again, please re-open and also share the Python version and TensorFlow version you are running. Thanks!
Hi, in 09_Recurrent_Neural_Networks/05_Creating_A_Sequence_To_Sequence_Model/ the code report error, my python is 3.5,tensorflow 1.3.0