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

Function func

tfjs-data/src/iterators/lazy_iterator_test.ts:306–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304 it('can be created from a function', async () => {
305 let i = -1;
306 const func = () =>
307 ++i < 7 ? {value: i, done: false} : {value: null, done: true};
308
309 const readIterator = iteratorFromFunction(func);
310 const result = await readIterator.toArrayForTest();

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…