Resizes the temp tensor that stores temp sum of reduced elements.
| 85 | |
| 86 | // Resizes the temp tensor that stores temp sum of reduced elements. |
| 87 | TfLiteStatus ResizeTempSum(TfLiteContext* context, OpContext* op_context, |
| 88 | TfLiteTensor* temp_sum) { |
| 89 | TfLiteIntArray* size = TfLiteIntArrayCreate(1); |
| 90 | size->data[0] = static_cast<int>(NumElements(op_context->output)); |
| 91 | return context->ResizeTensor(context, temp_sum, size); |
| 92 | } |
| 93 | |
| 94 | // Resizes output array based on the input size and resolved axis. |
| 95 | TfLiteStatus ResizeOutputTensor(TfLiteContext* context, OpContext* op_context) { |
no test coverage detected