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

Function MaxPool3dFP32PaddingValidTest

delegate/test/Pooling3dTest.cpp:16–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#if defined(ARMNN_POST_TFLITE_2_5)
15
16void MaxPool3dFP32PaddingValidTest(const std::vector<armnn::BackendId>& backends = {})
17{
18 // Set input and expected output data
19 std::vector<int32_t> inputShape = { 1, 2, 3, 4, 1 };
20 std::vector<int32_t> outputShape = { 1, 1, 2, 3, 1 };
21
22 std::vector<float> inputValues = { 1, 2, 3, 4, 5, 6,
23 1, 2, 3, 4, 5, 6,
24 1, 2, 3, 4, 5, 6,
25 1, 2, 3, 4, 5, 6 };
26 std::vector<float> expectedOutputValues = { 6, 6, 4 };
27
28 // poolType string required to create the correct pooling operator
29 // Padding type required to create the padding in custom options
30 std::string poolType = "kMax";
31 TfLitePadding padding = kTfLitePaddingValid;
32
33 Pooling3dTest<float>(poolType,
34 ::tflite::TensorType_FLOAT32,
35 inputShape,
36 outputShape,
37 inputValues,
38 expectedOutputValues,
39 backends,
40 padding,
41 1,
42 1,
43 1,
44 2,
45 2,
46 2);
47}
48
49void MaxPool3dFP32PaddingSameTest(const std::vector<armnn::BackendId>& backends = {})
50{

Callers 1

Pooling3dTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected