Skip to content

Conversation

@alexbarghi-nv
Copy link
Member

Fixes a bug found when running movielens_mnmg.py on input with a large number of negative edges. Some batches end up with no positive edges of the input type, which causes PyTorch to throw an exception when trying to calculate the number of nodes, since the returned tensor is empty.

The fix is to check if the returned tensor is empty, and just set the number of output nodes to zero if it is.

@alexbarghi-nv alexbarghi-nv requested a review from a team as a code owner August 25, 2025 18:26
@alexbarghi-nv alexbarghi-nv self-assigned this Aug 25, 2025
Copy link
Member

@tingyu66 tingyu66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alexbarghi-nv
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit 3f11d45 into rapidsai:branch-25.10 Sep 9, 2025
137 of 139 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants