Skip to content

Commit

Permalink
fix_loader_state (#1457)
Browse files Browse the repository at this point in the history
  • Loading branch information
divyanshk authored Feb 26, 2025
1 parent d155220 commit c8cdedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchdata/nodes/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def next(self):
self._cached_state_dict = None
else:
item = next(self.root)
self._num_yielded += 1
self._num_yielded += 1
return item

def get_state(self) -> Dict[str, Any]:
Expand Down

0 comments on commit c8cdedf

Please sign in to comment.