Skip to content

Commit

Permalink
Update tests/dataloader/samplers/test_distributed_samplers.py
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Stollenwerk <[email protected]>
  • Loading branch information
le1nux and flxst authored Oct 24, 2024
1 parent 09554b1 commit 856fba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/dataloader/samplers/test_distributed_samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_dropping_and_reusing(
if drop_last:
# if drop_last is true, we drop the last samples so that every data parallel rank
# has the same number of samples.
# Note that also means that the last, remaining samples (i.e., maximum num_ranks -1)
# Note that also means that the last, remaining samples (i.e., maximum num_replicas - 1)
# are not used at all
cut_off_samples = len(dataset) - (len(dataset) - skip_num_global_samples) % num_replicas
padded_samples = []
Expand Down

0 comments on commit 856fba7

Please sign in to comment.