| 107 | } |
| 108 | |
| 109 | TfLiteIntArray* GetOutputShape(TfLiteContext* context, TfLiteNode* node) { |
| 110 | if (NumInputs(node) == 2 && ShapeIsVector(context, node)) { |
| 111 | return GetOutputShapeFromTensor(context, node); |
| 112 | } else { |
| 113 | return GetOutputShapeFromParam(context, node); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { |
| 118 | TF_LITE_ENSURE(context, NumInputs(node) == 1 || NumInputs(node) == 2); |
no test coverage detected