MCPcopy Index your code
hub / github.com/tensorflow/tfjs / removeModel

Function removeModel

tfjs-core/src/io/model_management.ts:245–249  ·  view source on GitHub ↗

* Remove a model specified by URL from a registered storage medium. * * ```js * // First create and save a model. * const model = tf.sequential(); * model.add(tf.layers.dense( * {units: 1, inputShape: [10], activation: 'sigmoid'})); * await model.save('localstorage://demo/management/model

(url: string)

Source from the content-addressed store, hash-verified

243 * }
244 */
245async function removeModel(url: string): Promise<ModelArtifactsInfo> {
246 const schemeAndPath = parseURL(url);
247 const manager = ModelStoreManagerRegistry.getManager(schemeAndPath.scheme);
248 return manager.removeModel(schemeAndPath.path);
249}
250
251/**
252 * Copy a model from one URL to another.

Callers

nothing calls this directly

Calls 3

parseURLFunction · 0.85
getManagerMethod · 0.80
removeModelMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…