| 212 | } |
| 213 | |
| 214 | void AveragePool3dFP32H1Test(const std::vector<armnn::BackendId>& backends = {}) |
| 215 | { |
| 216 | // Set input data and expected output data |
| 217 | std::vector<int32_t> inputShape = { 1, 2, 3, 4, 1 }; |
| 218 | std::vector<int32_t> outputShape = { 1, 1, 2, 2, 1 }; |
| 219 | |
| 220 | std::vector<float> inputValues = { 1, 2, 3, 4, 5, 6, |
| 221 | 1, 2, 3, 4, 5, 6, |
| 222 | 1, 2, 3, 4, 5, 6, |
| 223 | 1, 2, 3, 4, 5, 6 }; |
| 224 | std::vector<float> expectedOutputValues = { 1.5, 3.5 }; |
| 225 | |
| 226 | // poolType string required to create the correct pooling operator |
| 227 | // Padding type required to create the padding in custom options |
| 228 | std::string poolType = "kAverage"; |
| 229 | TfLitePadding padding = kTfLitePaddingUnknown; |
| 230 | |
| 231 | Pooling3dTest<float>(poolType, |
| 232 | ::tflite::TensorType_FLOAT32, |
| 233 | inputShape, |
| 234 | outputShape, |
| 235 | inputValues, |
| 236 | expectedOutputValues, |
| 237 | backends, |
| 238 | padding, |
| 239 | 2, |
| 240 | 2, |
| 241 | 2, |
| 242 | 2, |
| 243 | 1, |
| 244 | 2); |
| 245 | } |
| 246 | |
| 247 | void AveragePool3dFP32Test(const std::vector<armnn::BackendId>& backends = {}) |
| 248 | { |