-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Functions in torch._C._nn and torch._C._onnx are not pickleable #38137
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
Comments
gpytorch models cannot be pickled because of this, see related issue cornellius-gp/gpytorch#907. A temporary fix is to use |
By the way I might be missing something but with pytorch 1.7 if I do a |
Yes it should be fixable by PyTorch. |
It seems this is a shortcoming in python3. The meaning of
I also opened an issue for CPython |
…orch#53107) Summary: Fixes pytorch#38137 As mentioned in the issue, this is a workaround for [python issue 43367](https://bugs.python.org/issue43367). There are a number of other places where `sys.modules` is modified, if something changes in python perhaps those should be reviewed as well. Pull Request resolved: pytorch#53107 Reviewed By: zou3519 Differential Revision: D26753571 Pulled By: ezyang fbshipit-source-id: 2bda03bab39ff9ca58ce4bc13befe021da91b9c4
…orch#53107) Summary: Fixes pytorch#38137 As mentioned in the issue, this is a workaround for [python issue 43367](https://bugs.python.org/issue43367). There are a number of other places where `sys.modules` is modified, if something changes in python perhaps those should be reviewed as well. Pull Request resolved: pytorch#53107 Reviewed By: zou3519 Differential Revision: D26753571 Pulled By: ezyang fbshipit-source-id: 2bda03bab39ff9ca58ce4bc13befe021da91b9c4
Uh oh!
There was an error while loading. Please reload this page.
This is due to the same bug fixed in #38136 We need to apply the same fix in the other situations too
cc @ezyang @gchanan @zou3519 @bdhirsh
The text was updated successfully, but these errors were encountered: