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

Method constructor

tfjs-data/src/sources/url_data_source.ts:37–41  ·  view source on GitHub ↗

* Create a `URLDataSource`. * * @param url A source URL string, or a `Request` object. * @param options Options passed to the underlying `FileChunkIterator`s, * such as {chunksize: 1024}.

(
      protected readonly url: RequestInfo,
      protected readonly fileOptions: FileChunkIteratorOptions = {})

Source from the content-addressed store, hash-verified

35 * such as {chunksize: 1024}.
36 */
37 constructor(
38 protected readonly url: RequestInfo,
39 protected readonly fileOptions: FileChunkIteratorOptions = {}) {
40 super();
41 }
42
43 // TODO(soergel): provide appropriate caching options. Currently this
44 // will download the URL anew for each call to iterator(). Since we have

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected