MCPcopy Create free account
hub / github.com/ARM-software/armnn / AveragePool3dFP32H1Test

Function AveragePool3dFP32H1Test

delegate/test/Pooling3dTest.cpp:214–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void 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
247void AveragePool3dFP32Test(const std::vector<armnn::BackendId>& backends = {})
248{

Callers 1

Pooling3dTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected