ArmNN
 20.02
ITfLiteParser Class Referenceabstract

#include <ITfLiteParser.hpp>

Inheritance diagram for ITfLiteParser:
TfLiteParser

Classes

struct  TfLiteParserOptions
 

Public Member Functions

virtual armnn::INetworkPtr CreateNetworkFromBinaryFile (const char *graphFile)=0
 Create the network from a flatbuffers binary file on disk. More...
 
virtual armnn::INetworkPtr CreateNetworkFromBinary (const std::vector< uint8_t > &binaryContent)=0
 Create the network from a flatbuffers binary. More...
 
virtual BindingPointInfo GetNetworkInputBindingInfo (size_t subgraphId, const std::string &name) const =0
 Retrieve binding info (layer id and tensor info) for the network input identified by the given layer name and subgraph id. More...
 
virtual BindingPointInfo GetNetworkOutputBindingInfo (size_t subgraphId, const std::string &name) const =0
 Retrieve binding info (layer id and tensor info) for the network output identified by the given layer name and subgraph id. More...
 
virtual size_t GetSubgraphCount () const =0
 Return the number of subgraphs in the parsed model. More...
 
virtual std::vector< std::string > GetSubgraphInputTensorNames (size_t subgraphId) const =0
 Return the input tensor names for a given subgraph. More...
 
virtual std::vector< std::string > GetSubgraphOutputTensorNames (size_t subgraphId) const =0
 Return the output tensor names for a given subgraph. More...
 

Static Public Member Functions

static ITfLiteParserCreateRaw (const armnn::Optional< TfLiteParserOptions > &options=armnn::EmptyOptional())
 
static ITfLiteParserPtr Create (const armnn::Optional< TfLiteParserOptions > &options=armnn::EmptyOptional())
 
static void Destroy (ITfLiteParser *parser)
 

Protected Member Functions

virtual ~ITfLiteParser ()
 

Detailed Description

Definition at line 25 of file ITfLiteParser.hpp.

Constructor & Destructor Documentation

◆ ~ITfLiteParser()

virtual ~ITfLiteParser ( )
inlineprotectedvirtual

Definition at line 66 of file ITfLiteParser.hpp.

66 {};

Member Function Documentation

◆ Create()

ITfLiteParserPtr Create ( const armnn::Optional< TfLiteParserOptions > &  options = armnn::EmptyOptional())
static

Definition at line 3054 of file TfLiteParser.cpp.

References ITfLiteParser::CreateRaw(), and ITfLiteParser::Destroy().

3055 {
3057 }
std::unique_ptr< ITfLiteParser, void(*)(ITfLiteParser *parser)> ITfLiteParserPtr
static void Destroy(ITfLiteParser *parser)
static ITfLiteParser * CreateRaw(const armnn::Optional< TfLiteParserOptions > &options=armnn::EmptyOptional())

◆ CreateNetworkFromBinary()

virtual armnn::INetworkPtr CreateNetworkFromBinary ( const std::vector< uint8_t > &  binaryContent)
pure virtual

Create the network from a flatbuffers binary.

Implemented in TfLiteParser.

◆ CreateNetworkFromBinaryFile()

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

Create the network from a flatbuffers binary file on disk.

Implemented in TfLiteParser.

◆ CreateRaw()

ITfLiteParser * CreateRaw ( const armnn::Optional< TfLiteParserOptions > &  options = armnn::EmptyOptional())
static

Definition at line 3049 of file TfLiteParser.cpp.

References TfLiteParser::TfLiteParser().

Referenced by ITfLiteParser::Create().

3050 {
3051  return new TfLiteParser(options);
3052 }

◆ Destroy()

void Destroy ( ITfLiteParser parser)
static

Definition at line 3059 of file TfLiteParser.cpp.

Referenced by ITfLiteParser::Create().

3060 {
3061  delete parser;
3062 }

◆ GetNetworkInputBindingInfo()

virtual BindingPointInfo GetNetworkInputBindingInfo ( size_t  subgraphId,
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 and subgraph id.

Implemented in TfLiteParser.

◆ GetNetworkOutputBindingInfo()

virtual BindingPointInfo GetNetworkOutputBindingInfo ( size_t  subgraphId,
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 and subgraph id.

Implemented in TfLiteParser.

◆ GetSubgraphCount()

virtual size_t GetSubgraphCount ( ) const
pure virtual

Return the number of subgraphs in the parsed model.

Implemented in TfLiteParser.

◆ GetSubgraphInputTensorNames()

virtual std::vector<std::string> GetSubgraphInputTensorNames ( size_t  subgraphId) const
pure virtual

Return the input tensor names for a given subgraph.

Implemented in TfLiteParser.

◆ GetSubgraphOutputTensorNames()

virtual std::vector<std::string> GetSubgraphOutputTensorNames ( size_t  subgraphId) const
pure virtual

Return the output tensor names for a given subgraph.

Implemented in TfLiteParser.


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