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_reshape_8cpp.xhtml | 261 +++++++++++++++++++++ 1 file changed, 261 insertions(+) create mode 100644 20.02/armnn_tf_lite_parser_2test_2_reshape_8cpp.xhtml (limited to '20.02/armnn_tf_lite_parser_2test_2_reshape_8cpp.xhtml') diff --git a/20.02/armnn_tf_lite_parser_2test_2_reshape_8cpp.xhtml b/20.02/armnn_tf_lite_parser_2test_2_reshape_8cpp.xhtml new file mode 100644 index 0000000000..565448bd2b --- /dev/null +++ b/20.02/armnn_tf_lite_parser_2test_2_reshape_8cpp.xhtml @@ -0,0 +1,261 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/Reshape.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Reshape.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 (ParseReshapeWithReshapeDims, ReshapeFixtureWithReshapeDims)
 
 BOOST_FIXTURE_TEST_CASE (ParseReshapeWithReshapeDimsFlatten, ReshapeFixtureWithReshapeDimsFlatten)
 
 BOOST_FIXTURE_TEST_CASE (ParseReshapeWithReshapeDimsFlattenTwoDims, ReshapeFixtureWithReshapeDimsFlattenTwoDims)
 
 BOOST_FIXTURE_TEST_CASE (ParseReshapeWithReshapeDimsFlattenOneDim, ReshapeFixtureWithReshapeDimsFlattenOneDim)
 
+

Function Documentation

+ +

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseReshapeWithReshapeDims ,
ReshapeFixtureWithReshapeDims  
)
+
+ +

Definition at line 86 of file Reshape.cpp.

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

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseReshapeWithReshapeDimsFlatten ,
ReshapeFixtureWithReshapeDimsFlatten  
)
+
+ +

Definition at line 101 of file Reshape.cpp.

+
102 {
103  SetupSingleInputSingleOutput("inputTensor", "outputTensor");
104  RunTest<1, armnn::DataType::QAsymmU8>(0,
105  { 1, 2, 3, 4, 5, 6, 7, 8, 9 },
106  { 1, 2, 3, 4, 5, 6, 7, 8, 9 });
107  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo(0, "outputTensor").second.GetShape()
108  == armnn::TensorShape({9})));
109 }
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseReshapeWithReshapeDimsFlattenTwoDims ,
ReshapeFixtureWithReshapeDimsFlattenTwoDims  
)
+
+ +

Definition at line 116 of file Reshape.cpp.

+
117 {
118  SetupSingleInputSingleOutput("inputTensor", "outputTensor");
119  RunTest<2, armnn::DataType::QAsymmU8>(0,
120  { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 },
121  { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 });
122  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo(0, "outputTensor").second.GetShape()
123  == armnn::TensorShape({2,9})));
124 }
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseReshapeWithReshapeDimsFlattenOneDim ,
ReshapeFixtureWithReshapeDimsFlattenOneDim  
)
+
+ +

Definition at line 131 of file Reshape.cpp.

+ +

References BOOST_AUTO_TEST_SUITE_END().

+
132 {
133  SetupSingleInputSingleOutput("inputTensor", "outputTensor");
134  RunTest<3, armnn::DataType::QAsymmU8>(0,
135  { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 },
136  { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6 });
137  BOOST_TEST((m_Parser->GetNetworkOutputBindingInfo(0, "outputTensor").second.GetShape()
138  == armnn::TensorShape({2,3,3})));
139 }
+
+
+
+
+
+ + + + -- cgit v1.2.1