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 --- ...nx_parser_2test_2_get_inputs_outputs_8cpp.xhtml | 350 +++++++++++++++++++++ 1 file changed, 350 insertions(+) create mode 100644 21.02/armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.xhtml (limited to '21.02/armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.xhtml') diff --git a/21.02/armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.xhtml b/21.02/armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.xhtml new file mode 100644 index 0000000000..9696ef0425 --- /dev/null +++ b/21.02/armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.xhtml @@ -0,0 +1,350 @@ + + + + + + + + + + + + + +ArmNN: src/armnnOnnxParser/test/GetInputsOutputs.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
GetInputsOutputs.cpp File Reference
+
+
+
#include <boost/test/unit_test.hpp>
+#include "../OnnxParser.hpp"
+#include "ParserPrototxtFixture.hpp"
+#include <onnx/onnx.pb.h>
+#include "google/protobuf/stubs/logging.h"
+
+

Go to the source code of this file.

+ + + + +

+Typedefs

using ModelPtr = std::unique_ptr< onnx::ModelProto >
 
+ + + + + + + + + + + + + +

+Functions

 BOOST_FIXTURE_TEST_CASE (GetInput, GetInputsOutputsMainFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetOutput, GetInputsOutputsMainFixture)
 
 BOOST_FIXTURE_TEST_CASE (GetEmptyInputs, GetEmptyInputsOutputsFixture)
 
 BOOST_AUTO_TEST_CASE (GetInputsNullModel)
 
 BOOST_AUTO_TEST_CASE (GetOutputsNullModel)
 
 BOOST_FIXTURE_TEST_CASE (GetInputsMultipleInputs, GetInputsMultipleFixture)
 
+

Typedef Documentation

+ +

◆ ModelPtr

+ +
+
+ + + + +
using ModelPtr = std::unique_ptr<onnx::ModelProto>
+
+ +

Definition at line 12 of file GetInputsOutputs.cpp.

+ +
+
+

Function Documentation

+ +

◆ BOOST_AUTO_TEST_CASE() [1/2]

+ +
+
+ + + + + + + + +
BOOST_AUTO_TEST_CASE (GetInputsNullModel )
+
+ +

Definition at line 147 of file GetInputsOutputs.cpp.

+ +

References OnnxParserImpl::LoadModelFromString().

+
148 {
150 }
static ModelPtr LoadModelFromString(const std::string &inputString)
Definition: OnnxParser.cpp:609
+ +
+
+
+ +

◆ BOOST_AUTO_TEST_CASE() [2/2]

+ +
+
+ + + + + + + + +
BOOST_AUTO_TEST_CASE (GetOutputsNullModel )
+
+ +

Definition at line 152 of file GetInputsOutputs.cpp.

+ +

References OnnxParserImpl::LoadModelFromString().

+
153 {
154  auto silencer = google::protobuf::LogSilencer(); //get rid of errors from protobuf
156 }
static ModelPtr LoadModelFromString(const std::string &inputString)
Definition: OnnxParser.cpp:609
+ +
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetInput ,
GetInputsOutputsMainFixture  
)
+
+ +

Definition at line 69 of file GetInputsOutputs.cpp.

+ +

References OnnxParserImpl::GetInputs(), and OnnxParserImpl::LoadModelFromString().

+
70 {
72  std::vector<std::string> tensors = armnnOnnxParser::OnnxParserImpl::GetInputs(model);
73  BOOST_CHECK_EQUAL(1, tensors.size());
74  BOOST_CHECK_EQUAL("Input", tensors[0]);
75 
76 }
std::unique_ptr< onnx::ModelProto > ModelPtr
+
static std::vector< std::string > GetInputs(ModelPtr &model)
Retrieve inputs names.
+
static ModelPtr LoadModelFromString(const std::string &inputString)
Definition: OnnxParser.cpp:609
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetOutput ,
GetInputsOutputsMainFixture  
)
+
+ +

Definition at line 78 of file GetInputsOutputs.cpp.

+ +

References OnnxParserImpl::GetOutputs(), and OnnxParserImpl::LoadModelFromString().

+
79 {
81  std::vector<std::string> tensors = armnnOnnxParser::OnnxParserImpl::GetOutputs(model);
82  BOOST_CHECK_EQUAL(1, tensors.size());
83  BOOST_CHECK_EQUAL("Output", tensors[0]);
84 }
std::unique_ptr< onnx::ModelProto > ModelPtr
+
static std::vector< std::string > GetOutputs(ModelPtr &model)
Retrieve outputs names.
+
static ModelPtr LoadModelFromString(const std::string &inputString)
Definition: OnnxParser.cpp:609
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetEmptyInputs ,
GetEmptyInputsOutputsFixture  
)
+
+ +

Definition at line 140 of file GetInputsOutputs.cpp.

+ +

References OnnxParserImpl::GetInputs(), and OnnxParserImpl::LoadModelFromString().

+
141 {
143  std::vector<std::string> tensors = armnnOnnxParser::OnnxParserImpl::GetInputs(model);
144  BOOST_CHECK_EQUAL(0, tensors.size());
145 }
std::unique_ptr< onnx::ModelProto > ModelPtr
+
static std::vector< std::string > GetInputs(ModelPtr &model)
Retrieve inputs names.
+
static ModelPtr LoadModelFromString(const std::string &inputString)
Definition: OnnxParser.cpp:609
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

+ +
+
+ + + + + + + + + + + + + + + + + + +
BOOST_FIXTURE_TEST_CASE (GetInputsMultipleInputs ,
GetInputsMultipleFixture  
)
+
+ +

Definition at line 244 of file GetInputsOutputs.cpp.

+ +

References BOOST_AUTO_TEST_SUITE_END(), OnnxParserImpl::GetInputs(), and OnnxParserImpl::LoadModelFromString().

+
245 {
247  std::vector<std::string> tensors = armnnOnnxParser::OnnxParserImpl::GetInputs(model);
248  BOOST_CHECK_EQUAL(2, tensors.size());
249  BOOST_CHECK_EQUAL("Input0", tensors[0]);
250  BOOST_CHECK_EQUAL("Input1", tensors[1]);
251 }
std::unique_ptr< onnx::ModelProto > ModelPtr
+
static std::vector< std::string > GetInputs(ModelPtr &model)
Retrieve inputs names.
+
static ModelPtr LoadModelFromString(const std::string &inputString)
Definition: OnnxParser.cpp:609
+
+
+
+
+
+ + + + -- cgit v1.2.1