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

Function serialMapAsync

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

* Maps this stream through a 1-to-1 transform, forcing serial execution. * * @param transform A function mapping a stream element to a transformed * element. * * @returns A `LazyIterator` of transformed elements.

(transform: (value: T) => Promise<O>)

Source from the content-addressed store, hash-verified

295 * @returns A `LazyIterator` of transformed elements.
296 */
297 serialMapAsync<O>(transform: (value: T) => Promise<O>): LazyIterator<O> {
298 return new AsyncMapIterator(this, transform).serial();
299 }
300
301 /**
302 * Maps this stream through a 1-to-many transform.

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…