MCPcopy
hub / github.com/tensorflow/tfjs / isLazyIteratorObject

Function isLazyIteratorObject

tfjs-layers/src/engine/training_dataset.ts:528–531  ·  view source on GitHub ↗
(iterator: Dataset<T>|
                                 LazyIterator<T>)

Source from the content-addressed store, hash-verified

526// Check if provided object is a LazyIterator object by checking it's .next
527// element.
528function isLazyIteratorObject<T>(iterator: Dataset<T>|
529 LazyIterator<T>): boolean {
530 return (typeof (iterator as LazyIterator<T>).next === 'function');
531}
532
533export async function evaluateDataset<T>(
534 // Type `model` as `any` here to avoid circular dependency w/

Callers 1

evaluateDatasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…