| 45 | } |
| 46 | |
| 47 | void ResizeNearestNeighbourFloat32Test(const std::vector<armnn::BackendId>& backends = {}) |
| 48 | { |
| 49 | // Set input data |
| 50 | std::vector<float> input1Values { 1.0f, 2.0f, 3.0f, 4.0f } |
| 51 | ; |
| 52 | const std::vector<int32_t> input2NewShape { 1, 1 }; |
| 53 | |
| 54 | // Calculate output data |
| 55 | std::vector<float> expectedOutputValues { 1.0f }; |
| 56 | |
| 57 | const std::vector<int32_t> input1Shape { 1, 2, 2, 1 }; |
| 58 | const std::vector<int32_t> input2Shape { 2 }; |
| 59 | const std::vector<int32_t> expectedOutputShape = { 1, 1, 1, 1 }; |
| 60 | |
| 61 | ResizeFP32TestImpl(tflite::BuiltinOperator_RESIZE_NEAREST_NEIGHBOR, |
| 62 | input1Values, |
| 63 | input1Shape, |
| 64 | input2NewShape, |
| 65 | input2Shape, |
| 66 | expectedOutputValues, |
| 67 | expectedOutputShape); |
| 68 | } |
| 69 | |
| 70 | TEST_SUITE("ResizeTestsTests") |
| 71 | { |
no test coverage detected