| 49 | } |
| 50 | |
| 51 | TfLiteStatus ResizeTensor(TfLiteContext* context, TfLiteTensor* tensor, |
| 52 | TfLiteIntArray* new_size) { |
| 53 | TestContext* c = static_cast<TestContext*>(context); |
| 54 | c->new_size.clear(); |
| 55 | for (int i = 0; i < new_size->size; ++i) { |
| 56 | c->new_size.push_back(new_size->data[i]); |
| 57 | } |
| 58 | TfLiteIntArrayFree(new_size); |
| 59 | return kTfLiteOk; |
| 60 | } |
| 61 | |
| 62 | TEST(UtilTest, ConvertStatus) { |
| 63 | TestContext context; |
nothing calls this directly
no test coverage detected