| 68 | } |
| 69 | |
| 70 | inline TfLiteIntArray* GetOutputShapeFromTensor(TfLiteContext* context, |
| 71 | TfLiteNode* node) { |
| 72 | const TfLiteTensor* shape = GetInput(context, node, kShapeTensor); |
| 73 | |
| 74 | TfLiteIntArray* output_shape = TfLiteIntArrayCreate(shape->dims->data[0]); |
| 75 | for (int i = 0; i < output_shape->size; ++i) { |
| 76 | output_shape->data[i] = shape->data.i32[i]; |
| 77 | } |
| 78 | |
| 79 | return output_shape; |
| 80 | } |
| 81 | |
| 82 | inline TfLiteIntArray* GetOutputShapeFromParam(TfLiteContext* context, |
| 83 | TfLiteNode* node) { |
no test coverage detected