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

Method removeModel

tfjs-core/src/io/local_storage.ts:380–389  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

378 }
379
380 async removeModel(path: string): Promise<ModelArtifactsInfo> {
381 path = maybeStripScheme(path);
382 const keys = getModelKeys(path);
383 if (this.LS.getItem(keys.info) == null) {
384 throw new Error(`Cannot find model at path '${path}'`);
385 }
386 const info = JSON.parse(this.LS.getItem(keys.info)) as ModelArtifactsInfo;
387 removeItems(keys);
388 return info;
389 }
390}

Callers

nothing calls this directly

Calls 4

removeItemsFunction · 0.85
getItemMethod · 0.80
maybeStripSchemeFunction · 0.70
getModelKeysFunction · 0.70

Tested by

no test coverage detected