ArmNN  NotReleased
ITfParser Class Referenceabstract

Parses a directed acyclic graph from a tensorflow protobuf file. More...

#include <ITfParser.hpp>

Inheritance diagram for ITfParser:
TfParser

Public Member Functions

virtual armnn::INetworkPtr CreateNetworkFromTextFile (const char *graphFile, const std::map< std::string, armnn::TensorShape > &inputShapes, const std::vector< std::string > &requestedOutputs)=0
 Create the network from a protobuf text file on the disk. More...
 
virtual armnn::INetworkPtr CreateNetworkFromBinaryFile (const char *graphFile, const std::map< std::string, armnn::TensorShape > &inputShapes, const std::vector< std::string > &requestedOutputs)=0
 Create the network from a protobuf binary file on the disk. More...
 
virtual armnn::INetworkPtr CreateNetworkFromString (const char *protoText, const std::map< std::string, armnn::TensorShape > &inputShapes, const std::vector< std::string > &requestedOutputs)=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 ITfParserCreateRaw ()
 
static ITfParserPtr Create ()
 
static void Destroy (ITfParser *parser)
 

Protected Member Functions

virtual ~ITfParser ()
 

Detailed Description

Parses a directed acyclic graph from a tensorflow protobuf file.

Definition at line 25 of file ITfParser.hpp.

Constructor & Destructor Documentation

◆ ~ITfParser()

virtual ~ITfParser ( )
inlineprotectedvirtual

Definition at line 57 of file ITfParser.hpp.

57 {};

Member Function Documentation

◆ Create()

ITfParserPtr Create ( )
static

Definition at line 393 of file TfParser.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

394 {
396 }
static void Destroy(ITfParser *parser)
Definition: TfParser.cpp:398
static ITfParser * CreateRaw()
Definition: TfParser.cpp:388
std::unique_ptr< ITfParser, void(*)(ITfParser *parser)> ITfParserPtr
Definition: ITfParser.hpp:22

◆ CreateNetworkFromBinaryFile()

virtual armnn::INetworkPtr CreateNetworkFromBinaryFile ( const char *  graphFile,
const std::map< std::string, armnn::TensorShape > &  inputShapes,
const std::vector< std::string > &  requestedOutputs 
)
pure virtual

Create the network from a protobuf binary file on the disk.

Implemented in TfParser.

◆ CreateNetworkFromString()

virtual armnn::INetworkPtr CreateNetworkFromString ( const char *  protoText,
const std::map< std::string, armnn::TensorShape > &  inputShapes,
const std::vector< std::string > &  requestedOutputs 
)
pure virtual

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

Implemented in TfParser.

◆ CreateNetworkFromTextFile()

virtual armnn::INetworkPtr CreateNetworkFromTextFile ( const char *  graphFile,
const std::map< std::string, armnn::TensorShape > &  inputShapes,
const std::vector< std::string > &  requestedOutputs 
)
pure virtual

Create the network from a protobuf text file on the disk.

Implemented in TfParser.

◆ CreateRaw()

ITfParser * CreateRaw ( )
static

Definition at line 388 of file TfParser.cpp.

389 {
390  return new TfParser();
391 }

◆ Destroy()

void Destroy ( ITfParser parser)
static

Definition at line 398 of file TfParser.cpp.

399 {
400  delete parser;
401 }

◆ 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 TfParser.

◆ 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 TfParser.


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