mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Fix equalized split handling of num_splits == num_blocks case. (#23191)
This commit is contained in:
parent
72713e815b
commit
1d5f18fe0a
1 changed files with 1 additions and 1 deletions
|
@ -632,7 +632,7 @@ class Dataset(Generic[T]):
|
|||
This assume that the given splits are sorted in ascending order.
|
||||
"""
|
||||
if target_size == 0:
|
||||
return splits
|
||||
return splits, []
|
||||
new_splits = []
|
||||
leftovers = []
|
||||
for split in splits:
|
||||
|
|
Loading…
Add table
Reference in a new issue