multipack len should use max, not min (#863)

This commit is contained in:
Wing Lian
2023-11-15 12:52:32 -05:00
committed by GitHub
parent db8a8afcba
commit 0c2a630326

View File

@@ -181,7 +181,7 @@ class MultipackBatchSampler(BatchSampler):
)
# shave off 1% + 1 for dealing with variance in packing from random sampler to sampler
return min(
return max(
1,
(
world_size