| 349 | } |
| 350 | |
| 351 | void AveragePool2dFP32PaddingValidTest(const std::vector<armnn::BackendId>& backends = {}) |
| 352 | { |
| 353 | // Set input data |
| 354 | std::vector<int32_t> inputShape { 1, 3, 4, 1 }; |
| 355 | std::vector<int32_t> outputShape { 1, 1, 2, 1 }; |
| 356 | |
| 357 | std::vector<float> inputValues = { -5.0f, 8.0f, -10.0f, 7.0f, |
| 358 | 8.0f, 12.0f, -15.0f, 2.0f, |
| 359 | 3.0f, -4.0f, -1.0f, -11.0f }; |
| 360 | |
| 361 | std::vector<float> expectedOutputValues = { 5.75f, -4.0f }; |
| 362 | |
| 363 | Pooling2dTest<float>(tflite::BuiltinOperator_AVERAGE_POOL_2D, |
| 364 | ::tflite::TensorType_FLOAT32, |
| 365 | inputShape, |
| 366 | outputShape, |
| 367 | inputValues, |
| 368 | expectedOutputValues, |
| 369 | backends, |
| 370 | ::tflite::Padding_VALID, |
| 371 | 2, |
| 372 | 2, |
| 373 | 2, |
| 374 | 2); |
| 375 | } |
| 376 | |
| 377 | void AveragePool2dInt8PaddingValidTest(const std::vector<armnn::BackendId>& backends = {}) |
| 378 | { |