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 --- ...nx_parser_2test_2_get_inputs_outputs_8cpp.xhtml | 350 +++++++++++++++++++++ 1 file changed, 350 insertions(+) create mode 100644 20.02/armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.xhtml (limited to '20.02/armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.xhtml') diff --git a/20.02/armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.xhtml b/20.02/armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.xhtml new file mode 100644 index 0000000000..a97f2c45f2 --- /dev/null +++ b/20.02/armnn_onnx_parser_2test_2_get_inputs_outputs_8cpp.xhtml @@ -0,0 +1,350 @@ + + + + + + + + + + + + + +ArmNN: src/armnnOnnxParser/test/GetInputsOutputs.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.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 OnnxParser::LoadModelFromString().

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

◆ BOOST_AUTO_TEST_CASE() [2/2]

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

Definition at line 152 of file GetInputsOutputs.cpp.

+ +

References OnnxParser::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:564
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

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

Definition at line 69 of file GetInputsOutputs.cpp.

+ +

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

+
70 {
72  std::vector<std::string> tensors = armnnOnnxParser::OnnxParser::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:564
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

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

Definition at line 78 of file GetInputsOutputs.cpp.

+ +

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

+
79 {
81  std::vector<std::string> tensors = armnnOnnxParser::OnnxParser::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:564
+
+
+
+ +

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

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

Definition at line 140 of file GetInputsOutputs.cpp.

+ +

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

+
141 {
142  ModelPtr model = armnnOnnxParser::OnnxParser::LoadModelFromString(m_Prototext.c_str());
143  std::vector<std::string> tensors = armnnOnnxParser::OnnxParser::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:564
+
+
+
+ +

◆ 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(), OnnxParser::GetInputs(), and OnnxParser::LoadModelFromString().

+
245 {
246  ModelPtr model = armnnOnnxParser::OnnxParser::LoadModelFromString(m_Prototext.c_str());
247  std::vector<std::string> tensors = armnnOnnxParser::OnnxParser::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:564
+
+
+
+
+
+ + + + -- cgit v1.2.1