How many elements are in the array with this shape.
| 30 | |
| 31 | // How many elements are in the array with this shape. |
| 32 | inline 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. |
| 41 | inline void ReportOpError(struct TfLiteContext* context, const char* format, |
no outgoing calls
no test coverage detected