Recommended way of serializing HeteroData instance #9147
Unanswered
genesis-jamin
asked this question in
Q&A
Replies: 1 comment
-
If you want to be PyG version agnostic, it is recommended to save data instances as dictionary, e.g.: torch.save(data.to_dict(), path)
HeteroData.from_dict(torch.load(path)) I think using pickling is the easiest and best approach to do it, but there certainly exists other ways, e.g., via databases, text, csv, etc. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Are there any recommended ways of serializing a HeteroData instance? The use case here is that we have a featurization pipeline that produces HeteroData, and we want to store it on Google Cloud Storage for use in a training pipeline. We're currently just saving things as bytestrings but I'm wondering if there are any official ways of doing it.
Beta Was this translation helpful? Give feedback.
All reactions