From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/armnn_onnx_parser_2test_2_pooling_8cpp.xhtml | 288 +++++++++++++++++++++ 1 file changed, 288 insertions(+) create mode 100644 20.02/armnn_onnx_parser_2test_2_pooling_8cpp.xhtml (limited to '20.02/armnn_onnx_parser_2test_2_pooling_8cpp.xhtml') diff --git a/20.02/armnn_onnx_parser_2test_2_pooling_8cpp.xhtml b/20.02/armnn_onnx_parser_2test_2_pooling_8cpp.xhtml new file mode 100644 index 0000000000..80014243d7 --- /dev/null +++ b/20.02/armnn_onnx_parser_2test_2_pooling_8cpp.xhtml @@ -0,0 +1,288 @@ + + + + + + + + + + + + + +ArmNN: src/armnnOnnxParser/test/Pooling.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Pooling.cpp File Reference
+
+
+
#include <boost/test/unit_test.hpp>
+#include "armnnOnnxParser/IOnnxParser.hpp"
+#include "ParserPrototxtFixture.hpp"
+
+

Go to the source code of this file.

+ + + + + + + + + + + + +

+Functions

 BOOST_FIXTURE_TEST_CASE (ValidMaxPoolTest, MaxPoolValidFixture)
 
 BOOST_FIXTURE_TEST_CASE (AveragePoolValid, AvgPoolValidFixture)
 
 BOOST_FIXTURE_TEST_CASE (ValidAvgWithPadTest, PoolingWithPadFixture)
 
 BOOST_FIXTURE_TEST_CASE (GlobalAvgTest, GlobalAvgFixture)
 
 BOOST_FIXTURE_TEST_CASE (IncorrectDataTypeMaxPool, MaxPoolInvalidFixture)
 
+

Function Documentation

+ +

◆ BOOST_FIXTURE_TEST_CASE() [1/5]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ValidMaxPoolTest ,
MaxPoolValidFixture  
)
+
+ +

Definition at line 113 of file Pooling.cpp.

+
114 {
115  RunTest<4>({{"Input", {1.0f, 2.0f, 3.0f, -4.0f}}}, {{"Output", {3.0f}}});
116 }
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [2/5]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (AveragePoolValid ,
AvgPoolValidFixture  
)
+
+ +

Definition at line 220 of file Pooling.cpp.

+
221 {
222  RunTest<4>({{"Input", {1.0f, 2.0f, 3.0f, -4.0f}}}, {{"Output", {0.5}}});
223 }
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [3/5]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ValidAvgWithPadTest ,
PoolingWithPadFixture  
)
+
+ +

Definition at line 225 of file Pooling.cpp.

+
226 {
227  RunTest<4>({{"Input", {1.0f, 2.0f, 3.0f, -4.0f}}}, {{"Output", {1.0/8.0}}});
228 }
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [4/5]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GlobalAvgTest ,
GlobalAvgFixture  
)
+
+ +

Definition at line 300 of file Pooling.cpp.

+
301 {
302  RunTest<4>({{"Input", {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0}}}, {{"Output", {10/4.0, 26/4.0}}});
303 }
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [5/5]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (IncorrectDataTypeMaxPool ,
MaxPoolInvalidFixture  
)
+
+ +

Definition at line 305 of file Pooling.cpp.

+ +

References BOOST_AUTO_TEST_SUITE_END().

+
306 {
307  BOOST_CHECK_THROW(Setup(), armnn::ParseException);
308 }
+
+
+
+
+
+ + + + -- cgit v1.2.1