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

Function TF_TensorByteSize

tensorflow/c/tf_tensor.cc:175–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175size_t TF_TensorByteSize(const TF_Tensor* t) {
176 return tensorflow::TensorCApi::Buffer(t->tensor)->size();
177}
178
179void* TF_TensorData(const TF_Tensor* t) {
180 return tensorflow::TensorCApi::Buffer(t->tensor)->data();

Callers 15

TF_TensorToPyArrayFunction · 0.85
SetTensorProtoFunction · 0.85
StringTensorWriterMethod · 0.85
StringTensorReaderMethod · 0.85
ExpectOutputValueMethod · 0.85
RunMethod · 0.85

Calls 2

BufferClass · 0.50
sizeMethod · 0.45

Tested by 15

SetTensorProtoFunction · 0.68
ExpectOutputValueMethod · 0.68
RunMethod · 0.68
CompareInt32TensorMethod · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
RunMinTestFunction · 0.68
ScalarFloatFromTensorFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
TestScalarTensorHandleFunction · 0.68