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

Method cloneTensorMap

tfjs-converter/src/executor/graph_executor.ts:215–220  ·  view source on GitHub ↗
(tensorsMap: NamedTensorsMap)

Source from the content-addressed store, hash-verified

213 }
214
215 private cloneTensorMap(tensorsMap: NamedTensorsMap): NamedTensorsMap {
216 return Object.fromEntries(
217 Object.entries(tensorsMap).map(([name, tensorsList]) => {
218 return [name, this.cloneTensorList(tensorsList)];
219 }));
220 }
221
222 /**
223 * Executes the inference for given input tensors.

Callers 2

executeMethod · 0.95
_executeAsyncMethod · 0.95

Calls 1

cloneTensorListMethod · 0.95

Tested by

no test coverage detected