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

[FIX] PyG Graph Store Improperly Handles Contiguous Edge Index #3070

Closed
Tracked by #3255
alexbarghi-nv opened this issue Dec 9, 2022 · 1 comment
Closed
Tracked by #3255
Assignees
Labels
bug Something isn't working
Milestone

Comments

@alexbarghi-nv
Copy link
Member

Device is not set in PyG's graph store, causing an error to be thrown. Currently, the workaround is to either patch the PyG installation or force the edge index to be non-contiguous.

RuntimeError: Attempted to set the storage of a tensor on device "cpu" to a storage on different device "cuda:0".  This is no longer allowed; the devices must match.

Current:

out = torch.empty(0, dtype=src.dtype)

Fixed:

out = torch.empty(0, dtype=src.dtype, device=src.device)
@alexbarghi-nv alexbarghi-nv self-assigned this Dec 9, 2022
@alexbarghi-nv alexbarghi-nv added this to the 23.02 milestone Dec 9, 2022
@alexbarghi-nv alexbarghi-nv modified the milestones: 23.02, 23.04 Jan 20, 2023
@kingmesal kingmesal added bug Something isn't working and removed Fix labels Feb 9, 2023
@alexbarghi-nv
Copy link
Member Author

Was fixed in latest version of PyG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants