-
Notifications
You must be signed in to change notification settings - Fork 45.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/tutorials/rnn/translate/translate.py throws TypeError: can't pickle _thread.lock objects #1790
Comments
I ran into the same problem on my MacBook Pro, I thought perhaps there were some bugs in the new version 1.2.0, so I switched to Tensorflow 1.0.0 version and it worked. Will anybody give any clues to solve it? |
I'm having the same issue. |
@panyx0718, any thoughts on this? |
@ali01 Update: I actually get the issue on my own project too. It appears to only occur when a bucket of length > 1 is fed to the model ([100, 100), (200, 200)] fails while ([100, 100]) works fine. For more details, I linked the Stackoverflow in the main issue post. |
Well, I created a virtual environment by conda prompt on my Mac, installed python3.6 and tensorflow 1.0.0 along with kernel. Then I switched to tensorflow 1.0.0 kernel in my jupyter notebook. |
try to delete the file named 'pycache' in your python workspace , i have the same problem and fixed in this way |
I get the same problem as OP, also get the exact same error log. I'm also running Windows 10, and have tried both with and without gpu support on Tensorflow 1.2.0. I get it to work if I change the list of buckets ( |
also i have the same issue. |
…ome changes from applied _some_ chages from https://github.com/b0noI/tensorflow
same problem ... |
Try the answer suggested on StackOverflow: 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) |
System information
models/tutorials/rnn/translate/
No
Windows 10
Pip install
1.2.0
n/a
Not GPU
Not GPU
Run translate.py
Describe the problem
When I run translate.py, it loads all the data from the internet on first run, then creates 3 layers of 1024 units, then crashes with the log below. I believe the issue lies with having a list of buckets with len > 1.
Source code / logs
https://pastebin.com/5PQeXx0J
Stack-Overflow with more details:
https://stackoverflow.com/questions/44855603/typeerror-cant-pickle-thread-lock-objects-in-seq2seq
The text was updated successfully, but these errors were encountered: