-
Notifications
You must be signed in to change notification settings - Fork 402
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 2.6.0: Weights only load failed #497
Comments
I'm having this problem too. |
Having the same issue. This needs to be fixed, though a workaround for now could be the following: import torch
from torch_geometric.data.storage import GlobalStorage
from torch_geometric.data.data import DataEdgeAttr, DataTensorAttr
torch.serialization.add_safe_globals([GlobalStorage, DataEdgeAttr, DataTensorAttr])
# the rest of the code
|
Drops the PyTorch constraint added for OGB. Adds workarounds for snap-stanford/ogb#497. Merge after #151 Authors: - Alex Barghi (https://github.com/alexbarghi-nv) Approvers: - Bradley Dice (https://github.com/bdice) - Tingyu Wang (https://github.com/tingyu66) URL: #153
I ran into the same issue with the version |
When upgrade from PyTorch 2.5.1 to 2.6.0, for code like
I got error:
I am wondering if the library should handle this issue in a future version, or if we should add something like (not tested codes):
What would be the recommended approach? Thank you!☺️
The text was updated successfully, but these errors were encountered: