Skip to content
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
5 changes: 3 additions & 2 deletions pytorch_lightning/utilities/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ def has_len(dataloader: DataLoader) -> bool:
if has_len and has_iterable_dataset(dataloader):
rank_zero_warn(
'Your `IterableDataset` has `__len__` defined.'
' In combination with multi-processing data loading (e.g. batch size > 1),'
' this can lead to unintended side effects since the samples will be duplicated.'
' In combination with multi-process data loading (when num_workers > 1),'
' `__len__` could be inaccurate if each worker is not configured independently'
' to avoid having duplicate data.'
)
return has_len

Expand Down