ArmNN
 20.02
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 395 of file TfParser.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

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

◆ 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 390 of file TfParser.cpp.

391 {
392  return new TfParser();
393 }

◆ Destroy()

void Destroy ( ITfParser parser)
static

Definition at line 400 of file TfParser.cpp.

401 {
402  delete parser;
403 }

◆ 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: