-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
pytorch 1.4 can not load model saved by 1.7 #48915
Comments
Pytorch doesn't guarantee forward compatibility, but for this particular issue using |
your solution fixed, thanks! but need to use with cpu (another flag: First, i use your solution, only use
no matter i choose which gpu to use by:
it still report GPU0 OOM error. Why does it must use gpu0 to load the model??? Finally, with help of this post, i did it. in 1.7:
then in 1.4:
|
🐛 Bug
model trained by pytorch 1.7.0 cuda 11.0.221, but cannot load by pytorch1.4.0, cuda 10.0.130
To Reproduce
Steps to reproduce the behavior:
Expected behavior
normal loaded.
Environment
env of 1.7:
env of 1.4:
Additional context
model trained and load by 1.4 is ok.
weird bug and i don't know why
it's urgent, please help....
The text was updated successfully, but these errors were encountered: