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

Function deepClone

tfjs-data/src/util/deep_clone.ts:22–24  ·  view source on GitHub ↗
(container: T)

Source from the content-addressed store, hash-verified

20import {deepMap, DeepMapResult, isIterable} from './deep_map';
21
22export function deepClone<T>(container: T): T {
23 return deepMap(container, cloneIfTensor);
24}
25
26// tslint:disable-next-line: no-any
27function cloneIfTensor(item: any): DeepMapResult {

Callers 1

nextMethod · 0.90

Calls 1

deepMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…