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

Function copyModel

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

* Copy a model from one URL to another. * * This function supports: * * 1. Copying within a storage medium, e.g., * `tf.io.copyModel('localstorage://model-1', 'localstorage://model-2')` * 2. Copying between two storage mediums, e.g., * `tf.io.copyModel('localstorage://model-1', 'indexed

(
    sourceURL: string, destURL: string)

Source from the content-addressed store, hash-verified

296 * }
297 */
298async function copyModel(
299 sourceURL: string, destURL: string): Promise<ModelArtifactsInfo> {
300 const deleteSource = false;
301 return cloneModelInternal(sourceURL, destURL, deleteSource);
302}
303
304/**
305 * Move a model from one URL to another.

Callers

nothing calls this directly

Calls 1

cloneModelInternalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…