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

Method constructor

tfjs-data/src/iterators/lazy_iterator.ts:1102–1106  ·  view source on GitHub ↗
(
      protected upstream: LazyIterator<T>, protected bufferSize: number)

Source from the content-addressed store, hash-verified

1100 protected buffer: RingBuffer<Promise<IteratorResult<T>>>;
1101
1102 constructor(
1103 protected upstream: LazyIterator<T>, protected bufferSize: number) {
1104 super();
1105 this.buffer = new RingBuffer<Promise<IteratorResult<T>>>(bufferSize);
1106 }
1107
1108 summary() {
1109 return `${this.upstream.summary()} -> Prefetch`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected