Resizes the temp tensor that stores resolved axis.
| 77 | |
| 78 | // Resizes the temp tensor that stores resolved axis. |
| 79 | TfLiteStatus ResizeTempAxis(TfLiteContext* context, OpContext* op_context, |
| 80 | TfLiteTensor* resolved_axis) { |
| 81 | TfLiteIntArray* axis_size = TfLiteIntArrayCreate(1); |
| 82 | axis_size->data[0] = static_cast<int>(NumElements(op_context->axis)); |
| 83 | return context->ResizeTensor(context, resolved_axis, axis_size); |
| 84 | } |
| 85 | |
| 86 | // Resizes the temp tensor that stores temp sum of reduced elements. |
| 87 | TfLiteStatus ResizeTempSum(TfLiteContext* context, OpContext* op_context, |
no test coverage detected