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

[BUG] Fix Empty Batch Fill by Allowing Specification of Empty Tensor #4942

Open
wants to merge 6 commits into
base: branch-25.04
Choose a base branch
from

Conversation

alexbarghi-nv
Copy link
Member

The BulkSampler does not handle empty edge index tensors correctly. Instead, it creates a 1D tensor which cannot be 2D-indexed. When encountering an empty batch, the incorrectly dimensioned tensor causes an indexing error.

This PR fixes this bug by adding an option to specify the tensor to use when filling empty batches. This could be useful for resolving other issues as well (i.e. using it to pass in a default batch). It specifies the correct tensor when calling sample_from_edges.

@alexbarghi-nv alexbarghi-nv requested a review from a team as a code owner February 14, 2025 06:27
@alexbarghi-nv alexbarghi-nv self-assigned this Feb 14, 2025
@alexbarghi-nv alexbarghi-nv added non-breaking Non-breaking change CRITICAL BUG! BUG that needs to be FIX NOW !!!! and removed python labels Feb 14, 2025
@alexbarghi-nv alexbarghi-nv added this to the 25.04 milestone Feb 14, 2025
@alexbarghi-nv alexbarghi-nv added the bug Something isn't working label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CRITICAL BUG! BUG that needs to be FIX NOW !!!! non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant