Skip to content

Commit

Permalink
Replace prefetch with mp_prefetch in PyGrain.
Browse files Browse the repository at this point in the history
This is a no-op change.

PiperOrigin-RevId: 689791881
  • Loading branch information
iindyk authored and The kauldron Authors committed Oct 30, 2024
1 parent bc8767c commit 35efcd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kauldron/data/py/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _root_ds(self) -> grain.IterDataset:
num_workers,
enable_profiling=self.enable_profiling,
)
ds = ds.prefetch(multiprocessing_options)
ds = ds.mp_prefetch(multiprocessing_options)
return ds

def __iter__(self) -> iterators.Iterator:
Expand Down

0 comments on commit 35efcd5

Please sign in to comment.