MCPcopy Index your code
hub / github.com/tensorflow/tfjs / iterator

Method iterator

tfjs-data/src/sources/url_data_source.ts:47–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 // to treat the downloaded file as a blob/buffer anyway, we may as well retain
46 // it-- but that raises GC issues. Also we may want a persistent disk cache.
47 async iterator(): Promise<ByteChunkIterator> {
48 if (isLocalPath(this.url)) {
49 return (new FileDataSource(this.url as string, this.fileOptions))
50 .iterator();
51 } else {
52 return urlChunkIterator(this.url, this.fileOptions);
53 }
54 }
55}

Callers

nothing calls this directly

Calls 2

isLocalPathFunction · 0.90
urlChunkIteratorFunction · 0.90

Tested by

no test coverage detected