Skip to content
Discussion options

You must be logged in to vote

Sadly, you currently have to downgrade PyG, really sorry. I will look into ways to make this more performant across different releases. With downgrading, you can then do

In PyG 1.*
data = torch.load('data.pt')
torch.save(data.to_dict(), 'data_dict.pt')

# In PyG 2.*
data_dict = torch.load('data_dict.pt')
data = Data.from_dict(data_dict)
torch.save(data, 'data.pt')

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@zwangeo
Comment options

@jasperhyp
Comment options

@rishabh-ranjan
Comment options

@rusty1s
Comment options

Answer selected by zwangeo
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