* Synchronously construct the in memory weight map and * compile the inference graph. * * @doc {heading: 'Models', subheading: 'Classes', ignoreCI: true}
(artifacts: io.ModelArtifacts)
| 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) { |
no test coverage detected