-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
TypeError: cannot pickle '_thread.RLock' object #14180
Comments
i am having the same issue. Can someone please assist. |
Same issue..Who's got a solution |
I have the same issue too. |
has anyone found a fix for this yet? I'm not even using multiprocessing |
Can you please share full error details and the code where you got this error. |
As mentioned in this link, you can save and load keras models without using pickle. Save the model:
Load the model:
Hope this helps! |
This is as other way to do it -
|
@GOURAVSUMAN could you please try as per the above comment and let us know if this issue still persists ? Thanks ! |
Closing this issue due to lack of recent activity .Please feel free to reopen if you still have concern.Thanks! |
I can confirm saving as json with weights file fixes the threading issue during deepcopy |
*TypeError: cannot pickle '_thread.RLock' object
TypeError Traceback (most recent call last)
in
----> 1 pickle.dump(learner, open('model.pkl','wb'))
2
3 model = pickle.load(open('model.pkl','rb'))
4 print(model.predict([['GST TDS RETURN', 'Tax teturn filled', 'Good bless u']]))
TypeError: cannot pickle '_thread.RLock' object
The text was updated successfully, but these errors were encountered: