Skip to content
Discussion options

You must be logged in to vote

The data format changed slightly in torch-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:

# 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')

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
11 replies
@rusty1s
Comment options

@eason1021
Comment options

@rusty1s
Comment options

@eason1021
Comment options

@rusty1s
Comment options

Answer selected by songsong0425
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants