Skip to content

Commit

Permalink
Internal
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 699267409
  • Loading branch information
Grain Team authored and copybara-github committed Nov 22, 2024
1 parent 8954853 commit edbe5c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions grain/_src/python/dataset/transformations/prefetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ def __next__(self) -> T:
if return_element:
with self._stats.record_self_time(offset_ns=timer.value()):
return element
with self._stats.record_self_time(offset_ns=timer.value()):
raise StopIteration
raise StopIteration

def get_state(self):
return {"next_index": self._next_index}
Expand Down

0 comments on commit edbe5c5

Please sign in to comment.