From 9aed8fb43441228343b925b42464a55042c47ca0 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 17 Nov 2021 13:16:45 +0000 Subject: IVGCVSW-6040 Update 21.11 Doxygen Documents Signed-off-by: Nikhil Raj Change-Id: Ia36ec98c4bebc27a69103911ea3409cd7db587a5 --- .../classarmnn_onnx_parser_1_1_i_onnx_parser.xhtml | 458 +++++++++++++++++++++ 1 file changed, 458 insertions(+) create mode 100644 21.11/classarmnn_onnx_parser_1_1_i_onnx_parser.xhtml (limited to '21.11/classarmnn_onnx_parser_1_1_i_onnx_parser.xhtml') diff --git a/21.11/classarmnn_onnx_parser_1_1_i_onnx_parser.xhtml b/21.11/classarmnn_onnx_parser_1_1_i_onnx_parser.xhtml new file mode 100644 index 0000000000..6b83b42e22 --- /dev/null +++ b/21.11/classarmnn_onnx_parser_1_1_i_onnx_parser.xhtml @@ -0,0 +1,458 @@ + + + + + + + + + + + + + +ArmNN: IOnnxParser Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ + +
+ +

#include <IOnnxParser.hpp>

+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

armnn::INetworkPtr CreateNetworkFromBinaryFile (const char *graphFile)
 Create the network from a protobuf binary file on disk. More...
 
armnn::INetworkPtr CreateNetworkFromTextFile (const char *graphFile)
 Create the network from a protobuf text file on disk. More...
 
armnn::INetworkPtr CreateNetworkFromString (const std::string &protoText)
 Create the network directly from protobuf text in a string. Useful for debugging/testing. More...
 
armnn::INetworkPtr CreateNetworkFromBinaryFile (const char *graphFile, const std::map< std::string, armnn::TensorShape > &inputShapes)
 Create the network from a protobuf binary file on disk, with inputShapes specified. More...
 
armnn::INetworkPtr CreateNetworkFromTextFile (const char *graphFile, const std::map< std::string, armnn::TensorShape > &inputShapes)
 Create the network from a protobuf text file on disk, with inputShapes specified. More...
 
armnn::INetworkPtr CreateNetworkFromString (const std::string &protoText, const std::map< std::string, armnn::TensorShape > &inputShapes)
 Create the network directly from protobuf text in a string, with inputShapes specified. More...
 
BindingPointInfo GetNetworkInputBindingInfo (const std::string &name) const
 Retrieve binding info (layer id and tensor info) for the network input identified by the given layer name. More...
 
BindingPointInfo GetNetworkOutputBindingInfo (const std::string &name) const
 Retrieve binding info (layer id and tensor info) for the network output identified by the given layer name. More...
 
+ + + + + + + +

+Static Public Member Functions

static IOnnxParserCreateRaw ()
 
static IOnnxParserPtr Create ()
 
static void Destroy (IOnnxParser *parser)
 
+

Detailed Description

+
+

Definition at line 23 of file IOnnxParser.hpp.

+

Member Function Documentation

+ +

◆ Create()

+ +
+
+ + + + + +
+ + + + + + + +
IOnnxParserPtr Create ()
+
+static
+
+ +

Definition at line 38 of file OnnxParser.cpp.

+ +

Referenced by TEST_SUITE().

+
39 {
41 }
static IOnnxParser * CreateRaw()
Definition: OnnxParser.cpp:33
+
static void Destroy(IOnnxParser *parser)
Definition: OnnxParser.cpp:43
+
std::unique_ptr< IOnnxParser, void(*)(IOnnxParser *parser)> IOnnxParserPtr
Definition: IOnnxParser.hpp:21
+
+
+
+ +

◆ CreateNetworkFromBinaryFile() [1/2]

+ +
+
+ + + + + + + + +
armnn::INetworkPtr CreateNetworkFromBinaryFile (const char * graphFile)
+
+ +

Create the network from a protobuf binary file on disk.

+ +

Definition at line 48 of file OnnxParser.cpp.

+ +

References IOnnxParser::CreateNetworkFromBinaryFile().

+ +

Referenced by IOnnxParser::CreateNetworkFromBinaryFile().

+
49 {
50  return pOnnxParserImpl->CreateNetworkFromBinaryFile(graphFile);
51 }
+
+
+ +

◆ CreateNetworkFromBinaryFile() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + +
armnn::INetworkPtr CreateNetworkFromBinaryFile (const char * graphFile,
const std::map< std::string, armnn::TensorShape > & inputShapes 
)
+
+ +

Create the network from a protobuf binary file on disk, with inputShapes specified.

+ +
+
+ +

◆ CreateNetworkFromString() [1/2]

+ +
+
+ + + + + + + + +
armnn::INetworkPtr CreateNetworkFromString (const std::string & protoText)
+
+ +

Create the network directly from protobuf text in a string. Useful for debugging/testing.

+ +

Definition at line 58 of file OnnxParser.cpp.

+
59 {
60  return pOnnxParserImpl->CreateNetworkFromString(protoText);
61 }
+
+
+ +

◆ CreateNetworkFromString() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + +
armnn::INetworkPtr CreateNetworkFromString (const std::string & protoText,
const std::map< std::string, armnn::TensorShape > & inputShapes 
)
+
+ +

Create the network directly from protobuf text in a string, with inputShapes specified.

+

Useful for debugging/testing

+ +
+
+ +

◆ CreateNetworkFromTextFile() [1/2]

+ +
+
+ + + + + + + + +
armnn::INetworkPtr CreateNetworkFromTextFile (const char * graphFile)
+
+ +

Create the network from a protobuf text file on disk.

+ +

Definition at line 53 of file OnnxParser.cpp.

+
54 {
55  return pOnnxParserImpl->CreateNetworkFromTextFile(graphFile);
56 }
+
+
+ +

◆ CreateNetworkFromTextFile() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + +
armnn::INetworkPtr CreateNetworkFromTextFile (const char * graphFile,
const std::map< std::string, armnn::TensorShape > & inputShapes 
)
+
+ +

Create the network from a protobuf text file on disk, with inputShapes specified.

+ +
+
+ +

◆ CreateRaw()

+ +
+
+ + + + + +
+ + + + + + + +
IOnnxParser * CreateRaw ()
+
+static
+
+ +

Definition at line 33 of file OnnxParser.cpp.

+
34 {
35  return new IOnnxParser();
36 }
+
+
+ +

◆ Destroy()

+ +
+
+ + + + + +
+ + + + + + + + +
void Destroy (IOnnxParserparser)
+
+static
+
+ +

Definition at line 43 of file OnnxParser.cpp.

+
44 {
45  delete parser;
46 }
+
+
+ +

◆ GetNetworkInputBindingInfo()

+ +
+
+ + + + + + + + +
BindingPointInfo GetNetworkInputBindingInfo (const std::string & name) const
+
+ +

Retrieve binding info (layer id and tensor info) for the network input identified by the given layer name.

+ +

Definition at line 82 of file OnnxParser.cpp.

+
83 {
84  return pOnnxParserImpl->GetNetworkInputBindingInfo(name);
85 }
+
+
+ +

◆ GetNetworkOutputBindingInfo()

+ +
+
+ + + + + + + + +
BindingPointInfo GetNetworkOutputBindingInfo (const std::string & name) const
+
+ +

Retrieve binding info (layer id and tensor info) for the network output identified by the given layer name.

+ +

Definition at line 87 of file OnnxParser.cpp.

+ +

References CheckLocation::AsString().

+
88 {
89  return pOnnxParserImpl->GetNetworkOutputBindingInfo(name);
90 }
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1