Skip to content

Commit 6dff16a

Browse files
thomasthomas
thomas
authored and
thomas
committed
update
1 parent 7b51b6c commit 6dff16a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lightning/data/processing/data_processor.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def _map_items_to_workers_sequentially(num_workers: int, user_items: List[Any])
275275
end = num_items_cumsum_per_worker[worker_idx + 1]
276276
out.append(user_items[start : end])
277277

278-
assert len(out) == num_workers
278+
if len(out) != num_workers:
279+
raise RuntimeError("The items didn't haven't been assigned properly. Please, open an issue on Github.")
279280

280281
return out
281282

0 commit comments

Comments
 (0)