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

Function ElementCount

tensorflow/lite/experimental/micro/testing/test_utils.h:32–38  ·  view source on GitHub ↗

How many elements are in the array with this shape.

Source from the content-addressed store, hash-verified

30
31// How many elements are in the array with this shape.
32inline int ElementCount(const TfLiteIntArray& dims) {
33 int result = 1;
34 for (int i = 0; i < dims.size; ++i) {
35 result *= dims.data[i];
36 }
37 return result;
38}
39
40// Wrapper to forward kernel errors to the interpreter's error reporter.
41inline void ReportOpError(struct TfLiteContext* context, const char* format,

Callers 15

IsScalarMethod · 0.85
IsScalarMethod · 0.85
TestPreluFloatFunction · 0.85
TestPreluQuantizedFunction · 0.85
TestComparisonFunction · 0.85
TestConvFloatFunction · 0.85
TestConvQuantizedFunction · 0.85
TestRoundFunction · 0.85
TestElementwiseFloatFunction · 0.85
TestElementwiseBoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected