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

Function deepMap

tfjs-data/src/util/deep_map.ts:51–54  ·  view source on GitHub ↗
(input: any, mapFn: (x: any) => DeepMapResult)

Source from the content-addressed store, hash-verified

49 * that the node should be processed recursively.
50 */
51export function deepMap(input: any, mapFn: (x: any) => DeepMapResult): any|
52 any[] {
53 return deepMapInternal(input, mapFn);
54}
55
56/**
57 * @param seen: A Map of known object mappings (i.e., memoized results of

Callers 2

deepCloneFunction · 0.90
deep_map_test.tsFile · 0.90

Calls 1

deepMapInternalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…