Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c8cdedf

Browse files
authored
fix_loader_state (pytorch#1457)
1 parent d155220 commit c8cdedf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchdata/nodes/loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def next(self):
123123
self._cached_state_dict = None
124124
else:
125125
item = next(self.root)
126-
self._num_yielded += 1
126+
self._num_yielded += 1
127127
return item
128128

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

0 commit comments

Comments
 (0)