| 364 | } |
| 365 | |
| 366 | void FillIntTensor(TfLiteTensor* tensor, const std::vector<int32_t>& data) { |
| 367 | int count = NumElements(tensor); |
| 368 | ASSERT_EQ(count, data.size()); |
| 369 | for (int i = 0; i < count; ++i) { |
| 370 | tensor->data.i32[i] = data[i]; |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | void CheckIntTensor(const TfLiteTensor* tensor, const std::vector<int>& shape, |
| 375 | const std::vector<int32_t>& data) { |
no test coverage detected