From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/armnn_tf_parser_2test_2_split_8cpp.xhtml | 229 +++++++++++++++++++++++++ 1 file changed, 229 insertions(+) create mode 100644 21.02/armnn_tf_parser_2test_2_split_8cpp.xhtml (limited to '21.02/armnn_tf_parser_2test_2_split_8cpp.xhtml') diff --git a/21.02/armnn_tf_parser_2test_2_split_8cpp.xhtml b/21.02/armnn_tf_parser_2test_2_split_8cpp.xhtml new file mode 100644 index 0000000000..8be75ac359 --- /dev/null +++ b/21.02/armnn_tf_parser_2test_2_split_8cpp.xhtml @@ -0,0 +1,229 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfParser/test/Split.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Split.cpp File Reference
+
+
+
#include "armnnTfParser/ITfParser.hpp"
+#include "ParserPrototxtFixture.hpp"
+#include <armnn/utility/IgnoreUnused.hpp>
+#include <boost/test/unit_test.hpp>
+
+

Go to the source code of this file.

+ + + + + + + + +

+Functions

 BOOST_FIXTURE_TEST_CASE (ParseAxisOneSplitTwo, SplitFixture)
 
 BOOST_FIXTURE_TEST_CASE (ParseSplit, InputFirstSplitFixture)
 
 BOOST_FIXTURE_TEST_CASE (SplitLastDimTest, SplitLastDimFixture)
 
+

Function Documentation

+ +

◆ BOOST_FIXTURE_TEST_CASE() [1/3]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseAxisOneSplitTwo ,
SplitFixture  
)
+
+ +

Definition at line 151 of file Split.cpp.

+
152 {
153  BOOST_TEST(
154  (m_Parser->GetNetworkOutputBindingInfo("Relu_1").second.GetShape() == armnn::TensorShape({ 1, 1, 2, 2 })));
155 
156  BOOST_TEST(
157  (m_Parser->GetNetworkOutputBindingInfo("Relu_2").second.GetShape() == armnn::TensorShape({ 1, 1, 2, 2 })));
158 
159  RunTest<4>({ { "graphInput", { -1.0f, -0.5f, 1.25f, -3.0f, 0.0f, 0.5f, -0.75f, 1.75f } } },
160  { { "Relu_1", { 0.0f, 0.0f, 1.25f, 0.0f } },
161  { "Relu_2", { 0.0f, 0.5f, 0.0f, 1.75f } } });
162 }
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [2/3]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (ParseSplit ,
InputFirstSplitFixture  
)
+
+ +

Definition at line 164 of file Split.cpp.

+ +

References armnn::IgnoreUnused().

+
165 {
166 
167  BOOST_TEST(
168  (m_Parser->GetNetworkOutputBindingInfo("Relu_1").second.GetShape() == armnn::TensorShape({ 1, 2, 2, 1 })));
169 
170  BOOST_TEST(
171  (m_Parser->GetNetworkOutputBindingInfo("Relu_2").second.GetShape() == armnn::TensorShape({ 1, 2, 2, 1 })));
172 
173  RunTest<4>({ { "graphInput", { -1.0f, -0.5f, 1.25f, -3.0f, 0.0f, 0.5f, -0.75f , 1.75f } } ,
174  { "graphInput2", { -1.0f, -0.5f, 1.25f, -3.0f, 0.0f, 0.5f, -0.75f , 1.75f } } },
175  { { "Relu_1", { 1.0f, 1.5625f, 0, 0.5625f } },
176  { "Relu_2", { 0.25, 9.0f, 0.25f, 3.0625f } } });
177 }
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [3/3]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (SplitLastDimTest ,
SplitLastDimFixture  
)
+
+ +

Definition at line 381 of file Split.cpp.

+ +

References BOOST_AUTO_TEST_SUITE_END().

+
382 {
383  BOOST_TEST(
384  (m_Parser->GetNetworkOutputBindingInfo("sub0").second.GetShape() == armnn::TensorShape({ 1, 2, 2, 1 })));
385 
386  BOOST_TEST(
387  (m_Parser->GetNetworkOutputBindingInfo("sub1").second.GetShape() == armnn::TensorShape({ 1, 2, 2, 1 })));
388 
389  BOOST_TEST(
390  (m_Parser->GetNetworkOutputBindingInfo("sub2").second.GetShape() == armnn::TensorShape({ 1, 2, 2, 1 })));
391 
392  RunTest<4>({ { "Placeholder", { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f } } },
393  { { "sub0", { -2.0f, 1.0f, 4.0f, 7.0f } },
394  { "sub1", { 0.0f, 3.0f, 6.0f, 9.0f } },
395  { "sub2", { 2.0f, 5.0f, 8.0f, 11.0f } } });
396 }
+
+
+
+
+
+ + + + -- cgit v1.2.1