Skip to content

Commit

Permalink
remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanishsingh committed Feb 5, 2025
1 parent 6ba9d94 commit 1288e77
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion torchdata/stateful_dataloader/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def __next__(self) -> list[int]:
return batch
except StopIteration:
if self.drop_last or len(batch) == 0:
# Reset the iterator for the next epoch
raise StopIteration
else:
return batch
Expand Down

0 comments on commit 1288e77

Please sign in to comment.