Skip to content

Commit

Permalink
Fix typed examples iterable state dict (#7121)
Browse files Browse the repository at this point in the history
fix typed examples iterable state dict
  • Loading branch information
lhoestq authored Aug 22, 2024
1 parent cedffa5 commit 3813ce8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/datasets/iterable_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1601,8 +1601,7 @@ def iter_arrow(self):
return self._iter_arrow

def _init_state_dict(self) -> dict:
if not self._state_dict:
self._state_dict = self.ex_iterable._init_state_dict()
self._state_dict = self.ex_iterable._init_state_dict()
return self._state_dict

def __iter__(self):
Expand Down

0 comments on commit 3813ce8

Please sign in to comment.