ArmNN
 26.07
IDeserializer Class Reference

#include <IDeserializer.hpp>

Classes

class  DeserializerImpl
 

Public Member Functions

armnn::INetworkPtr CreateNetworkFromBinary (const std::vector< uint8_t > &binaryContent)
 Create an input network from binary file contents. More...
 
armnn::INetworkPtr CreateNetworkFromBinary (std::istream &binaryContent)
 Create an input network from a binary input stream. More...
 
BindingPointInfo GetNetworkInputBindingInfo (unsigned int layerId, const std::string &name) const
 Retrieve binding info (layer id and tensor info) for the network input identified by the given layer name and layers id. More...
 
BindingPointInfo GetNetworkOutputBindingInfo (unsigned int layerId, const std::string &name) const
 Retrieve binding info (layer id and tensor info) for the network output identified by the given layer name and layers id. More...
 

Static Public Member Functions

static IDeserializer * CreateRaw ()
 
static IDeserializerPtr Create ()
 
static void Destroy (IDeserializer *parser)
 

Detailed Description

Definition at line 27 of file IDeserializer.hpp.

Member Function Documentation

◆ Create()

IDeserializerPtr Create ( )
static

Definition at line 47 of file Deserializer.cpp.

48 {
50 }
static IDeserializer * CreateRaw()
static void Destroy(IDeserializer *parser)
std::unique_ptr< IDeserializer, void(*)(IDeserializer *parser)> IDeserializerPtr

◆ CreateNetworkFromBinary() [1/2]

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

Create an input network from binary file contents.

Definition at line 57 of file Deserializer.cpp.

58 {
59  return pDeserializerImpl->CreateNetworkFromBinary(binaryContent);
60 }

References IDeserializer::CreateNetworkFromBinary().

Referenced by IDeserializer::CreateNetworkFromBinary().

◆ CreateNetworkFromBinary() [2/2]

armnn::INetworkPtr CreateNetworkFromBinary ( std::istream &  binaryContent)

Create an input network from a binary input stream.

Definition at line 62 of file Deserializer.cpp.

63 {
64  return pDeserializerImpl->CreateNetworkFromBinary(binaryContent);
65 }

◆ CreateRaw()

IDeserializer * CreateRaw ( )
static

Definition at line 42 of file Deserializer.cpp.

43 {
44  return new IDeserializer();
45 }

◆ Destroy()

void Destroy ( IDeserializer *  parser)
static

Definition at line 52 of file Deserializer.cpp.

53 {
54  delete parser;
55 }

◆ GetNetworkInputBindingInfo()

BindingPointInfo GetNetworkInputBindingInfo ( unsigned int  layerId,
const std::string &  name 
) const

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

Definition at line 67 of file Deserializer.cpp.

68 {
69  return pDeserializerImpl->GetNetworkInputBindingInfo(layerId, name);
70 }

◆ GetNetworkOutputBindingInfo()

BindingPointInfo GetNetworkOutputBindingInfo ( unsigned int  layerId,
const std::string &  name 
) const

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

Definition at line 72 of file Deserializer.cpp.

73 {
74  return pDeserializerImpl->GetNetworkOutputBindingInfo(layerId, name);
75 }

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