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

Function NumElements

tensorflow/lite/kernels/kernel_util.h:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80inline int64_t NumElements(const TfLiteIntArray* dims) {
81 int64_t count = 1;
82 for (int i = 0; i < dims->size; ++i) {
83 count *= dims->data[i];
84 }
85 return count;
86}
87
88inline int64_t NumElements(const TfLiteTensor* t) {
89 return NumElements(t->dims);

Callers 15

CheckValueFunction · 0.70
EvalFunction · 0.70
PrepareFunction · 0.70
ResizeOutputFunction · 0.70
PrepareFunction · 0.70
EvalHybridFunction · 0.70
GetSizeSplitsVectorFunction · 0.70
PrepareFunction · 0.70
PrepareFunction · 0.70
PrepareFunction · 0.70
PrepareFunction · 0.70
EvalFunction · 0.70

Calls

no outgoing calls

Tested by 3

FillIntTensorFunction · 0.56
CheckIntTensorFunction · 0.56
CheckBoolTensorFunction · 0.56