(weightsManifest: WeightsManifestConfig)
| 232 | } |
| 233 | |
| 234 | private async loadWeights(weightsManifest: WeightsManifestConfig): |
| 235 | Promise<[WeightsManifestEntry[], WeightData]> { |
| 236 | const fetchURLs = await this.getWeightUrls(weightsManifest); |
| 237 | const weightSpecs = getWeightSpecs(weightsManifest); |
| 238 | |
| 239 | const buffers = await loadWeightsAsArrayBuffer(fetchURLs, this.loadOptions); |
| 240 | return [weightSpecs, buffers]; |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | /** |
no test coverage detected