MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / DeepCopy

Function DeepCopy

tensorflow/core/framework/tensor_util.cc:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace tensor {
31
32Tensor DeepCopy(const Tensor& other) {
33 Tensor tmp = Tensor(other.dtype(), other.shape());
34 DeepCopy(other, &tmp);
35 return tmp;
36}
37
38void DeepCopy(const Tensor& input, Tensor* output) {
39 if (DataTypeCanUseMemcpy(input.dtype())) {

Callers 15

TESTFunction · 0.70
TensorStatMethod · 0.50
TensorStatClass · 0.50
RunMethod · 0.50
ComputeMethod · 0.50
ComputeMethod · 0.50
ComputeMethod · 0.50
ComputeMethod · 0.50
ComputeMethod · 0.50

Calls 8

DataTypeCanUseMemcpyFunction · 0.85
tensor_dataMethod · 0.80
TensorClass · 0.70
dtypeMethod · 0.45
shapeMethod · 0.45
NumElementsMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by 3

TESTFunction · 0.56
ByteSwapFunction · 0.40