MCPcopy Create free account
hub / github.com/ray-project/ray / _create_batch_iterator

Method _create_batch_iterator

python/ray/data/iterator.py:219–229  ·  view source on GitHub ↗
(
        self,
        ref_bundles_iter: Iterator[RefBundle],
        prefetch_bytes_callback: Optional[Callable[[int], None]] = None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

217 )
218
219 def _create_batch_iterator(
220 self,
221 ref_bundles_iter: Iterator[RefBundle],
222 prefetch_bytes_callback: Optional[Callable[[int], None]] = None,
223 **kwargs,
224 ) -> BatchIterator:
225 return BatchIterator(
226 ref_bundles_iter,
227 prefetch_bytes_callback=prefetch_bytes_callback,
228 **kwargs,
229 )
230
231 def _iter_batches(
232 self,

Callers 1

_create_iteratorMethod · 0.95

Calls 1

BatchIteratorClass · 0.90

Tested by

no test coverage detected