| 179 | } |
| 180 | |
| 181 | void AveragePool3dFP32PaddingSameTest(const std::vector<armnn::BackendId>& backends = {}) |
| 182 | { |
| 183 | // Set input data and expected output data |
| 184 | std::vector<int32_t> inputShape = { 4, 2, 3, 1, 1 }; |
| 185 | std::vector<int32_t> outputShape = { 4, 2, 3, 1, 1 }; |
| 186 | |
| 187 | std::vector<float> inputValues = { 1, 2, 3, 4, 5, 6, |
| 188 | 1, 2, 3, 4, 5, 6, |
| 189 | 1, 2, 3, 4, 5, 6, |
| 190 | 1, 2, 3, 4, 5, 6 }; |
| 191 | std::vector<float> expectedOutputValues = { 3, 4, 4.5, 4.5, 5.5, 6, 3, 4, 4.5, 4.5, 5.5, 6, 3, 4, 4.5, 4.5 }; |
| 192 | |
| 193 | // poolType string required to create the correct pooling operator |
| 194 | // Padding type required to create the padding in custom options |
| 195 | std::string poolType = "kAverage"; |
| 196 | TfLitePadding padding = kTfLitePaddingSame; |
| 197 | |
| 198 | Pooling3dTest<float>(poolType, |
| 199 | ::tflite::TensorType_FLOAT32, |
| 200 | inputShape, |
| 201 | outputShape, |
| 202 | inputValues, |
| 203 | expectedOutputValues, |
| 204 | backends, |
| 205 | padding, |
| 206 | 1, |
| 207 | 1, |
| 208 | 1, |
| 209 | 2, |
| 210 | 2, |
| 211 | 2); |
| 212 | } |
| 213 | |
| 214 | void AveragePool3dFP32H1Test(const std::vector<armnn::BackendId>& backends = {}) |
| 215 | { |