MCPcopy Create free account
hub / github.com/tensorflow/tfjs / prefetch

Function prefetch

tfjs-data/src/iterators/lazy_iterator.ts:452–454  ·  view source on GitHub ↗

* Prefetch the first `bufferSize` items in this stream. * * Note this prefetches Promises, but makes no guarantees about when those * Promises resolve. * * @param bufferSize: An integer specifying the number of elements to be * prefetched.

(bufferSize: number)

Source from the content-addressed store, hash-verified

450 * prefetched.
451 */
452 prefetch(bufferSize: number): LazyIterator<T> {
453 return new PrefetchIterator(this, bufferSize);
454 }
455
456 // TODO(soergel): deep sharded shuffle, where supported
457

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…