When 'RuntimeError: The 'data' object was created by an older version of PyG.' evokes? #4502
-
Dear PyG team, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
The # Install PyG 1.7.2
data = torch.load('data.pt').to_dict()
torch.save(data, 'data_dict.pt')
# Install PyG 2.0
data_dict = torch.load('data_dict.pt')
data = Data.from_dict(data_dict)
torch.save(data, 'data.pt') |
Beta Was this translation helpful? Give feedback.
-
A possible simpler solution from my experience might be directly reading from For example,
|
Beta Was this translation helpful? Give feedback.
The
data
format changed slightly intorch-geometric==2.0
. Thus, we cannot longer load in the data that were created by previous PyG versions. I am really sorry for the inconveniences! Once thing you can do is to re-process your to fit into the PyG 2.0 format. That is: