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

BatchSchema collate fix for PyG graphs #337

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

laserkelvin
Copy link
Collaborator

This PR fixes an issue with collating PyG graphs in BatchSchema, where we relied on a non-existent method for determining the number of edges.

The fix was to swap the non-existent method with edge_index.size(-1), which is a reliable way to get the number of edges per graph.

@laserkelvin laserkelvin added the bug Something isn't working label Dec 20, 2024
@laserkelvin laserkelvin merged commit 32d690c into IntelLabs:main Dec 20, 2024
2 of 3 checks passed
@laserkelvin laserkelvin deleted the batchschema-pyg-collate-fix branch December 20, 2024 21:30
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

Successfully merging this pull request may close these issues.

2 participants