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

Method constructor

tfjs-converter/src/executor/graph_model.ts:104–112  ·  view source on GitHub ↗

* @param modelUrl url for the model, or an `io.IOHandler`. * @param weightManifestUrl url for the weight file generated by * scripts/convert.py script. * @param requestOption options for Request, which allows to send credentials * and custom headers. * @param onProgress Optional, prog

(
      private modelUrl: ModelURL, private loadOptions: io.LoadOptions = {},
      tfio = io)

Source from the content-addressed store, hash-verified

102 * before the load is completed.
103 */
104 constructor(
105 private modelUrl: ModelURL, private loadOptions: io.LoadOptions = {},
106 tfio = io) {
107 this.io = tfio;
108 if (loadOptions == null) {
109 this.loadOptions = {};
110 }
111 this.resourceManager = new ResourceManager();
112 }
113
114 private findIOHandler() {
115 type IOHandler = UrlIOHandler<ModelURL>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected