22 using ICaffeParserPtr = std::unique_ptr<ICaffeParser, void(*)(ICaffeParser* parser)>;
33 const char* graphFile,
34 const std::map<std::string, armnn::TensorShape>& inputShapes,
35 const std::vector<std::string>& requestedOutputs) = 0;
39 const char* graphFile,
40 const std::map<std::string, armnn::TensorShape>& inputShapes,
41 const std::vector<std::string>& requestedOutputs) = 0;
45 const char* protoText,
46 const std::map<std::string, armnn::TensorShape>& inputShapes,
47 const std::vector<std::string>& requestedOutputs) = 0;
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.
std::pair< armnn::LayerBindingId, armnn::TensorInfo > BindingPointInfo
std::unique_ptr< ICaffeParser, void(*)(ICaffeParser *parser)> ICaffeParserPtr
static ICaffeParserPtr Create()
static ICaffeParser * CreateRaw()
static void Destroy(ICaffeParser *parser)
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.
std::unique_ptr< INetwork, void(*)(INetwork *network)> INetworkPtr
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...
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 ...
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/testin.g.