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] Improve the Warning Displayed for Uneven Batch Distributions #4920

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/cugraph/cugraph/gnn/data_loading/dist_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ def get_start_batch_offset(
warnings.warn(
"Not all ranks received the same number of batches. "
"This might cause your training loop to hang "
"due to uneven inputs."
"due to uneven inputs. This is the number of "
f"batches receieved on each rank: {t.tolist()}."
)

return (0 if rank == 0 else t.cumsum(dim=0)[rank - 1], input_size_is_equal)
Expand Down