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

Method tensor_data

tensorflow/core/framework/tensor.cc:1288–1291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1286}
1287
1288StringPiece Tensor::tensor_data() const {
1289 if (buf_ == nullptr) return StringPiece(); // Don't die for empty tensors
1290 return StringPiece(static_cast<char*>(buf_->data()), TotalBytes());
1291}
1292
1293void* Tensor::data() const {
1294 if (buf_ == nullptr) return nullptr; // Don't die for empty tensors

Callers 15

ComputeAsyncMethod · 0.80
RingAllreduceFunction · 0.80
RingAllgatherFunction · 0.80
ComputeAsyncMethod · 0.80
RingAllreduceFunction · 0.80
RingAllgatherFunction · 0.80
ComputeMethod · 0.80
ConfigureDelegateMethod · 0.80
CopyFromBufferHandleFunction · 0.80
ComputeMethod · 0.80
BuildBufferMethod · 0.80

Calls 1

dataMethod · 0.45

Tested by 13

ConfigureDelegateMethod · 0.64
BufferMethod · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
IsCUDATensorFunction · 0.64
IsCUDATensorFunction · 0.64
GetOutputMethod · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64