Skip to content
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

Load gdata.pkl with PyG version>2 #2

Closed
NYXFLOWER opened this issue Nov 16, 2021 · 2 comments
Closed

Load gdata.pkl with PyG version>2 #2

NYXFLOWER opened this issue Nov 16, 2021 · 2 comments
Labels
good first issue Good for newcomers

Comments

@NYXFLOWER
Copy link
Owner

NYXFLOWER commented Nov 16, 2021

The kgdata.pkl is generated using PyG v1.4.2, therefore it is not able to load when using a PyG version >2.

If you are using the PyG with a version > 2, use the following steps to load the input data of APRILE:

  • download the kgdata_dict.pkl, whose data type is Dictionary.
  • load data and convert it to PyG Data type.
from torch_geometric.data import Data

# load data from file
gdata = AprileQuery.load_from_pkl('kgdata_dict.pkl')
# convert data type  to PyG Data
gdata = Data.from_dict(gdata)
@NYXFLOWER NYXFLOWER pinned this issue Nov 16, 2021
@NYXFLOWER NYXFLOWER added the good first issue Good for newcomers label Nov 16, 2021
@NYXFLOWER
Copy link
Owner Author

@all-contributors please add @laurenceyang33 for doc and test

@allcontributors
Copy link
Contributor

@NYXFLOWER

I've put up a pull request to add @laurenceyang33! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant