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

Function TF_Dim

tensorflow/c/tf_tensor.cc:171–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169int TF_NumDims(const TF_Tensor* t) { return t->tensor.dims(); }
170
171int64_t TF_Dim(const TF_Tensor* t, int dim_index) {
172 return static_cast<int64_t>(t->tensor.dim_size(dim_index));
173}
174
175size_t TF_TensorByteSize(const TF_Tensor* t) {
176 return tensorflow::TensorCApi::Buffer(t->tensor)->size();

Callers 8

TF_TensorElementCountFunction · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85
TEST_FFunction · 0.85
BitcastOp_ComputeFunction · 0.85

Calls 1

dim_sizeMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68