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

Method loadSync

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

* Synchronously construct the in memory weight map and * compile the inference graph. * * @doc {heading: 'Models', subheading: 'Classes', ignoreCI: true}

(artifacts: io.ModelArtifacts)

Source from the content-addressed store, hash-verified

174 * @doc {heading: 'Models', subheading: 'Classes', ignoreCI: true}
175 */
176 loadSync(artifacts: io.ModelArtifacts) {
177 const weightMap = this.io.decodeWeights(
178 artifacts.weightData, artifacts.weightSpecs);
179
180 return this.loadWithWeightMap(artifacts, weightMap);
181 }
182
183 private async loadStreaming(artifacts: io.ModelArtifacts): Promise<boolean> {
184 if (artifacts.getWeightStream == null) {

Callers 2

loadMethod · 0.95

Calls 1

loadWithWeightMapMethod · 0.95

Tested by

no test coverage detected