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 --- ...armnn_tf_lite_parser_2test_2_squeeze_8cpp.xhtml | 297 +++++++++++++++++++++ 1 file changed, 297 insertions(+) create mode 100644 20.02/armnn_tf_lite_parser_2test_2_squeeze_8cpp.xhtml (limited to '20.02/armnn_tf_lite_parser_2test_2_squeeze_8cpp.xhtml') diff --git a/20.02/armnn_tf_lite_parser_2test_2_squeeze_8cpp.xhtml b/20.02/armnn_tf_lite_parser_2test_2_squeeze_8cpp.xhtml new file mode 100644 index 0000000000..2ac2061378 --- /dev/null +++ b/20.02/armnn_tf_lite_parser_2test_2_squeeze_8cpp.xhtml @@ -0,0 +1,297 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/Squeeze.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Squeeze.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 (ParseSqueezeWithSqueezeDims, SqueezeFixtureWithSqueezeDims)
 
 BOOST_FIXTURE_TEST_CASE (ParseSqueezeWithoutSqueezeDims, SqueezeFixtureWithoutSqueezeDims)
 
 BOOST_FIXTURE_TEST_CASE (ParseSqueezeInvalidInput, SqueezeFixtureWithInvalidInput)
 
 BOOST_FIXTURE_TEST_CASE (ParseSqueezeInvalidSqueezeDims, SqueezeFixtureWithSqueezeDimsSizeInvalid)
 
 BOOST_FIXTURE_TEST_CASE (ParseSqueezeNegativeSqueezeDims, SqueezeFixtureWithNegativeSqueezeDims)
 
+

Function Documentation

+ +

◆ BOOST_FIXTURE_TEST_CASE() [1/5]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseSqueezeWithSqueezeDims ,
SqueezeFixtureWithSqueezeDims  
)
+
+ +

Definition at line 85 of file Squeeze.cpp.

+
86 {
87  SetupSingleInputSingleOutput("inputTensor", "outputTensor");
88  RunTest<3, armnn::DataType::QAsymmU8>(0, { 1, 2, 3, 4 }, { 1, 2, 3, 4 });
89  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo(0, "outputTensor").second.GetShape()
90  == armnn::TensorShape({2,2,1})));
91 
92 }
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [2/5]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseSqueezeWithoutSqueezeDims ,
SqueezeFixtureWithoutSqueezeDims  
)
+
+ +

Definition at line 99 of file Squeeze.cpp.

+
100 {
101  SetupSingleInputSingleOutput("inputTensor", "outputTensor");
102  RunTest<2, armnn::DataType::QAsymmU8>(0, { 1, 2, 3, 4 }, { 1, 2, 3, 4 });
103  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo(0, "outputTensor").second.GetShape()
104  == armnn::TensorShape({2,2})));
105 }
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [3/5]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseSqueezeInvalidInput ,
SqueezeFixtureWithInvalidInput  
)
+
+ +

Definition at line 112 of file Squeeze.cpp.

+ +

References armnn::MaxNumOfTensorDimensions.

+
113 {
114  static_assert(armnn::MaxNumOfTensorDimensions == 5, "Please update SqueezeFixtureWithInvalidInput");
115  BOOST_CHECK_THROW((SetupSingleInputSingleOutput("inputTensor", "outputTensor")),
117 }
+
constexpr unsigned int MaxNumOfTensorDimensions
Definition: Types.hpp:18
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [4/5]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseSqueezeInvalidSqueezeDims ,
SqueezeFixtureWithSqueezeDimsSizeInvalid  
)
+
+ +

Definition at line 126 of file Squeeze.cpp.

+
127 {
128  BOOST_CHECK_THROW((SetupSingleInputSingleOutput("inputTensor", "outputTensor")), armnn::ParseException);
129 }
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [5/5]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseSqueezeNegativeSqueezeDims ,
SqueezeFixtureWithNegativeSqueezeDims  
)
+
+ +

Definition at line 139 of file Squeeze.cpp.

+ +

References BOOST_AUTO_TEST_SUITE_END().

+
140 {
141  BOOST_CHECK_THROW((SetupSingleInputSingleOutput("inputTensor", "outputTensor")), armnn::ParseException);
142 }
+
+
+
+
+
+ + + + -- cgit v1.2.1