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

Method clone

tfjs-core/src/tensor.ts:481–484  ·  view source on GitHub ↗

* Returns a copy of the tensor. See `tf.clone` for details. * @doc {heading: 'Tensors', subheading: 'Classes'}

(this: T)

Source from the content-addressed store, hash-verified

479 * @doc {heading: 'Tensors', subheading: 'Classes'}
480 */
481 clone<T extends Tensor>(this: T): T {
482 this.throwIfDisposed();
483 return opHandler.clone(this);
484 }
485
486 /**
487 * Returns a human-readable description of the tensor. Useful for logging.

Callers

nothing calls this directly

Calls 2

throwIfDisposedMethod · 0.95
cloneMethod · 0.65

Tested by

no test coverage detected