From 4840dfb7543d66652dc11c5ff39c8f5c1e2f9370 Mon Sep 17 00:00:00 2001 From: Ryan OShea Date: Tue, 25 Aug 2020 12:35:58 +0100 Subject: Updating Doxygen Documentation for 20.08 release Signed-off-by: Ryan OShea Change-Id: I605409f8720de5353feceb161b39f8a5f0598180 --- ...ser_2test_2_depthwise_convolution2_d_8cpp.xhtml | 257 +++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 20.08/armnn_tf_lite_parser_2test_2_depthwise_convolution2_d_8cpp.xhtml (limited to '20.08/armnn_tf_lite_parser_2test_2_depthwise_convolution2_d_8cpp.xhtml') diff --git a/20.08/armnn_tf_lite_parser_2test_2_depthwise_convolution2_d_8cpp.xhtml b/20.08/armnn_tf_lite_parser_2test_2_depthwise_convolution2_d_8cpp.xhtml new file mode 100644 index 0000000000..3b4f0c4091 --- /dev/null +++ b/20.08/armnn_tf_lite_parser_2test_2_depthwise_convolution2_d_8cpp.xhtml @@ -0,0 +1,257 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/DepthwiseConvolution2D.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
DepthwiseConvolution2D.cpp File Reference
+
+
+
#include <boost/test/unit_test.hpp>
+#include "ParserFlatbuffersFixture.hpp"
+#include "../TfLiteParser.hpp"
+#include <string>
+#include <iostream>
+
+

Go to the source code of this file.

+ + + + + + + + + + +

+Functions

 BOOST_FIXTURE_TEST_CASE (ParseDepthwiseConv2DSame, DepthwiseConvolution2dSameFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParseDepthwiseConv2DValid, DepthwiseConvolution2dValidFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParseDepthwiseConv2DSameBias, DepthwiseConvolution2dSameBiasFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParseDynamicDepthwiseConv2DSameBias, DynamicDepthwiseConvolution2dSameBiasFixture)
 
+

Function Documentation

+ +

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseDepthwiseConv2DSame ,
DepthwiseConvolution2dSameFixture  
)
+
+ +

Definition at line 134 of file DepthwiseConvolution2D.cpp.

+
135 {
136  RunTest<4, armnn::DataType::QAsymmU8>(
137  0,
138  { 0, 1, 2,
139  3, 4, 5,
140  6, 7, 8 },
141  // the expected values were generated using the example python implementation at
142  // https://eli.thegreenplace.net/2018/depthwise-separable-convolutions-for-machine-learning/
143  // divide the expected values by the output scale, as it is not 1.0
144  { 14/2, 35/2, 38/2,
145  57/2, 120/2, 111/2,
146  110/2, 197/2, 158/2 });
147 }
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseDepthwiseConv2DValid ,
DepthwiseConvolution2dValidFixture  
)
+
+ +

Definition at line 161 of file DepthwiseConvolution2D.cpp.

+
162 {
163  RunTest<4, armnn::DataType::QAsymmU8>(
164  0,
165  { 0, 1, 2,
166  3, 4, 5,
167  6, 7, 8 },
168  // divide the expected values by the output scale, as it is not 1.0
169  { 120/2 });
170 }
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseDepthwiseConv2DSameBias ,
DepthwiseConvolution2dSameBiasFixture  
)
+
+ +

Definition at line 186 of file DepthwiseConvolution2D.cpp.

+
187 {
188  RunTest<4, armnn::DataType::QAsymmU8>(
189  0,
190  { 0, 1, 2,
191  3, 4, 5,
192  6, 7, 8 },
193  // divide the expected values by the output scale, as it is not 1.0
194  { ( 14+10)/2, ( 35+10)/2, ( 38+10)/2,
195  ( 57+10)/2, (120+10)/2, (111+10)/2,
196  (110+10)/2, (197+10)/2, (158+10)/2 });
197 }
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseDynamicDepthwiseConv2DSameBias ,
DynamicDepthwiseConvolution2dSameBiasFixture  
)
+
+ +

Definition at line 213 of file DepthwiseConvolution2D.cpp.

+ +

References BOOST_AUTO_TEST_SUITE_END().

+
214 {
215  RunTest<4, armnn::DataType::QAsymmU8, armnn::DataType::QAsymmU8>(0,
216  { { "inputTensor", { 0, 1, 2,
217  3, 4, 5,
218  6, 7, 8 } } },
219  { { "outputTensor", { ( 14+10)/2, ( 35+10)/2, ( 38+10)/2,
220  ( 57+10)/2, (120+10)/2, (111+10)/2,
221  (110+10)/2, (197+10)/2, (158+10)/2 } } },
222  true);
223 }
+
+
+
+
+ + + + -- cgit v1.2.1