ArmNN
 20.05
IOnnxParser Class Referenceabstract

#include <IOnnxParser.hpp>

Inheritance diagram for IOnnxParser:
OnnxParser

Public Member Functions

virtual armnn::INetworkPtr CreateNetworkFromBinaryFile (const char *graphFile)=0
 Create the network from a protobuf binary file on disk. More...
 
virtual armnn::INetworkPtr CreateNetworkFromTextFile (const char *graphFile)=0
 Create the network from a protobuf text file on disk. More...
 
virtual armnn::INetworkPtr CreateNetworkFromString (const std::string &protoText)=0
 Create the network directly from protobuf text in a string. Useful for debugging/testing. More...
 
virtual BindingPointInfo GetNetworkInputBindingInfo (const std::string &name) const =0
 Retrieve binding info (layer id and tensor info) for the network input identified by the given layer name. More...
 
virtual BindingPointInfo GetNetworkOutputBindingInfo (const std::string &name) const =0
 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)
 

Protected Member Functions

virtual ~IOnnxParser ()
 

Detailed Description

Definition at line 22 of file IOnnxParser.hpp.

Constructor & Destructor Documentation

◆ ~IOnnxParser()

virtual ~IOnnxParser ( )
inlineprotectedvirtual

Definition at line 45 of file IOnnxParser.hpp.

45 {};

Member Function Documentation

◆ Create()

IOnnxParserPtr Create ( )
static

Definition at line 439 of file OnnxParser.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

440 {
442 }
static IOnnxParser * CreateRaw()
Definition: OnnxParser.cpp:434
static void Destroy(IOnnxParser *parser)
Definition: OnnxParser.cpp:444
std::unique_ptr< IOnnxParser, void(*)(IOnnxParser *parser)> IOnnxParserPtr
Definition: IOnnxParser.hpp:20

◆ CreateNetworkFromBinaryFile()

virtual armnn::INetworkPtr CreateNetworkFromBinaryFile ( const char *  graphFile)
pure virtual

Create the network from a protobuf binary file on disk.

Implemented in OnnxParser.

◆ CreateNetworkFromString()

virtual armnn::INetworkPtr CreateNetworkFromString ( const std::string &  protoText)
pure virtual

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

Implemented in OnnxParser.

◆ CreateNetworkFromTextFile()

virtual armnn::INetworkPtr CreateNetworkFromTextFile ( const char *  graphFile)
pure virtual

Create the network from a protobuf text file on disk.

Implemented in OnnxParser.

◆ CreateRaw()

IOnnxParser * CreateRaw ( )
static

Definition at line 434 of file OnnxParser.cpp.

435 {
436  return new OnnxParser();
437 }

◆ Destroy()

void Destroy ( IOnnxParser parser)
static

Definition at line 444 of file OnnxParser.cpp.

445 {
446  delete parser;
447 }

◆ GetNetworkInputBindingInfo()

virtual BindingPointInfo GetNetworkInputBindingInfo ( const std::string &  name) const
pure virtual

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

Implemented in OnnxParser.

◆ GetNetworkOutputBindingInfo()

virtual BindingPointInfo GetNetworkOutputBindingInfo ( const std::string &  name) const
pure virtual

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

Implemented in OnnxParser.


The documentation for this class was generated from the following files: