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

Method next

tfjs-data/src/iterators/lazy_iterator.ts:518–527  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

516 }
517
518 async next(): Promise<IteratorResult<T>> {
519 try {
520 return this.nextFn();
521 } catch (e) {
522 // Modify the error message but leave the stack trace intact
523 e.message =
524 `Error thrown while iterating through a dataset: ${e.message}`;
525 throw e;
526 }
527 }
528}
529
530class SerialIterator<T> extends LazyIterator<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected