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/_get_tensor_ids_8cpp.xhtml | 484 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 484 insertions(+) create mode 100644 21.02/_get_tensor_ids_8cpp.xhtml (limited to '21.02/_get_tensor_ids_8cpp.xhtml') diff --git a/21.02/_get_tensor_ids_8cpp.xhtml b/21.02/_get_tensor_ids_8cpp.xhtml new file mode 100644 index 0000000000..6e69958b45 --- /dev/null +++ b/21.02/_get_tensor_ids_8cpp.xhtml @@ -0,0 +1,484 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/GetTensorIds.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
GetTensorIds.cpp File Reference
+
+
+
#include <boost/test/unit_test.hpp>
+#include "ParserFlatbuffersFixture.hpp"
+#include "../TfLiteParser.hpp"
+
+

Go to the source code of this file.

+ + + + +

+Typedefs

using ModelPtr = TfLiteParserImpl::ModelPtr
 
+ + + + + + + + + + + + + + + + + + + + + +

+Functions

 BOOST_FIXTURE_TEST_CASE (GetEmptyInputTensorIds, GetEmptyTensorIdsFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetEmptyOutputTensorIds, GetEmptyTensorIdsFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetInputTensorIds, GetInputOutputTensorIdsFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetOutputTensorIds, GetInputOutputTensorIdsFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetInputTensorIdsNullModel, GetInputOutputTensorIdsFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetOutputTensorIdsNullModel, GetInputOutputTensorIdsFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetInputTensorIdsInvalidSubgraph, GetInputOutputTensorIdsFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetOutputTensorIdsInvalidSubgraph, GetInputOutputTensorIdsFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetInputTensorIdsInvalidOperator, GetInputOutputTensorIdsFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetOutputTensorIdsInvalidOperator, GetInputOutputTensorIdsFixture)
 
+

Typedef Documentation

+ +

◆ ModelPtr

+ +
+
+ + + + +
using ModelPtr = TfLiteParserImpl::ModelPtr
+
+ +

Definition at line 10 of file GetTensorIds.cpp.

+ +
+
+

Function Documentation

+ +

◆ BOOST_FIXTURE_TEST_CASE() [1/10]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetEmptyInputTensorIds ,
GetEmptyTensorIdsFixture  
)
+
+ +

Definition at line 92 of file GetTensorIds.cpp.

+
93 {
94  TfLiteParserImpl::ModelPtr model = TfLiteParserImpl::LoadModelFromBinary(m_GraphBinary.data(),
95  m_GraphBinary.size());
96  std::vector<int32_t> expectedIds = { };
97  std::vector<int32_t> inputTensorIds = TfLiteParserImpl::GetInputTensorIds(model, 0, 0);
98  BOOST_CHECK_EQUAL_COLLECTIONS(expectedIds.begin(), expectedIds.end(),
99  inputTensorIds.begin(), inputTensorIds.end());
100 }
TfLiteParserImpl::ModelPtr ModelPtr
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [2/10]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetEmptyOutputTensorIds ,
GetEmptyTensorIdsFixture  
)
+
+ +

Definition at line 102 of file GetTensorIds.cpp.

+
103 {
104  TfLiteParserImpl::ModelPtr model = TfLiteParserImpl::LoadModelFromBinary(m_GraphBinary.data(),
105  m_GraphBinary.size());
106  std::vector<int32_t> expectedIds = { };
107  std::vector<int32_t> outputTensorIds = TfLiteParserImpl::GetOutputTensorIds(model, 0, 0);
108  BOOST_CHECK_EQUAL_COLLECTIONS(expectedIds.begin(), expectedIds.end(),
109  outputTensorIds.begin(), outputTensorIds.end());
110 }
TfLiteParserImpl::ModelPtr ModelPtr
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [3/10]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetInputTensorIds ,
GetInputOutputTensorIdsFixture  
)
+
+ +

Definition at line 112 of file GetTensorIds.cpp.

+
113 {
114  TfLiteParserImpl::ModelPtr model = TfLiteParserImpl::LoadModelFromBinary(m_GraphBinary.data(),
115  m_GraphBinary.size());
116  std::vector<int32_t> expectedInputIds = { 0, 1, 2 };
117  std::vector<int32_t> inputTensorIds = TfLiteParserImpl::GetInputTensorIds(model, 0, 0);
118  BOOST_CHECK_EQUAL_COLLECTIONS(expectedInputIds.begin(), expectedInputIds.end(),
119  inputTensorIds.begin(), inputTensorIds.end());
120 }
TfLiteParserImpl::ModelPtr ModelPtr
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [4/10]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetOutputTensorIds ,
GetInputOutputTensorIdsFixture  
)
+
+ +

Definition at line 122 of file GetTensorIds.cpp.

+
123 {
124  TfLiteParserImpl::ModelPtr model = TfLiteParserImpl::LoadModelFromBinary(m_GraphBinary.data(),
125  m_GraphBinary.size());
126  std::vector<int32_t> expectedOutputIds = { 3 };
127  std::vector<int32_t> outputTensorIds = TfLiteParserImpl::GetOutputTensorIds(model, 0, 0);
128  BOOST_CHECK_EQUAL_COLLECTIONS(expectedOutputIds.begin(), expectedOutputIds.end(),
129  outputTensorIds.begin(), outputTensorIds.end());
130 }
TfLiteParserImpl::ModelPtr ModelPtr
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [5/10]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetInputTensorIdsNullModel ,
GetInputOutputTensorIdsFixture  
)
+
+ +

Definition at line 132 of file GetTensorIds.cpp.

+
133 {
134  BOOST_CHECK_THROW(TfLiteParserImpl::GetInputTensorIds(nullptr, 0, 0), armnn::ParseException);
135 }
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [6/10]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetOutputTensorIdsNullModel ,
GetInputOutputTensorIdsFixture  
)
+
+ +

Definition at line 137 of file GetTensorIds.cpp.

+
138 {
139  BOOST_CHECK_THROW(TfLiteParserImpl::GetOutputTensorIds(nullptr, 0, 0), armnn::ParseException);
140 }
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [7/10]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetInputTensorIdsInvalidSubgraph ,
GetInputOutputTensorIdsFixture  
)
+
+ +

Definition at line 142 of file GetTensorIds.cpp.

+
143 {
144  TfLiteParserImpl::ModelPtr model = TfLiteParserImpl::LoadModelFromBinary(m_GraphBinary.data(),
145  m_GraphBinary.size());
146  BOOST_CHECK_THROW(TfLiteParserImpl::GetInputTensorIds(model, 1, 0), armnn::ParseException);
147 }
TfLiteParserImpl::ModelPtr ModelPtr
+ +
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [8/10]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetOutputTensorIdsInvalidSubgraph ,
GetInputOutputTensorIdsFixture  
)
+
+ +

Definition at line 149 of file GetTensorIds.cpp.

+
150 {
151  TfLiteParserImpl::ModelPtr model = TfLiteParserImpl::LoadModelFromBinary(m_GraphBinary.data(),
152  m_GraphBinary.size());
153  BOOST_CHECK_THROW(TfLiteParserImpl::GetOutputTensorIds(model, 1, 0), armnn::ParseException);
154 }
TfLiteParserImpl::ModelPtr ModelPtr
+ +
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [9/10]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetInputTensorIdsInvalidOperator ,
GetInputOutputTensorIdsFixture  
)
+
+ +

Definition at line 156 of file GetTensorIds.cpp.

+
157 {
158  TfLiteParserImpl::ModelPtr model = TfLiteParserImpl::LoadModelFromBinary(m_GraphBinary.data(),
159  m_GraphBinary.size());
160  BOOST_CHECK_THROW(TfLiteParserImpl::GetInputTensorIds(model, 0, 1), armnn::ParseException);
161 }
TfLiteParserImpl::ModelPtr ModelPtr
+ +
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [10/10]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetOutputTensorIdsInvalidOperator ,
GetInputOutputTensorIdsFixture  
)
+
+ +

Definition at line 163 of file GetTensorIds.cpp.

+ +

References BOOST_AUTO_TEST_SUITE_END().

+
164 {
165  TfLiteParserImpl::ModelPtr model = TfLiteParserImpl::LoadModelFromBinary(m_GraphBinary.data(),
166  m_GraphBinary.size());
167  BOOST_CHECK_THROW(TfLiteParserImpl::GetOutputTensorIds(model, 0, 1), armnn::ParseException);
168 }
TfLiteParserImpl::ModelPtr ModelPtr
+ +
+
+
+
+
+ + + + -- cgit v1.2.1