Skip to content

Commit

Permalink
remove commented lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanishsingh committed Feb 5, 2025
1 parent 36c5b51 commit b9f194d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions torchdata/stateful_dataloader/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ def load_state_dict(self, state_dict: Dict[str, Any]) -> None:
# We skip x samples if underlying sampler is not stateful
for _ in range(self.samples_yielded):
next(self.sampler_iter)
# elif self.samples_yielded > 0:
# print("no fast forward, reset")
# # don't re-create sampler_iter unless necessary, we may already have one from init
# self.sampler_iter = iter(self.sampler)
# self.samples_yielded = 0


class BatchSampler(torch.utils.data.sampler.BatchSampler):
Expand Down

0 comments on commit b9f194d

Please sign in to comment.