ArmNN
 24.02
ISerializer Class Reference

#include <ISerializer.hpp>

Classes

class  SerializerImpl
 

Public Member Functions

void Serialize (const armnn::INetwork &inNetwork)
 Serializes the network to ArmNN SerializedGraph. More...
 
bool SaveSerializedToStream (std::ostream &stream)
 Serializes the SerializedGraph to the stream. More...
 

Static Public Member Functions

static ISerializerCreateRaw ()
 
static ISerializerPtr Create ()
 
static void Destroy (ISerializer *serializer)
 

Detailed Description

Definition at line 17 of file ISerializer.hpp.

Member Function Documentation

◆ Create()

ISerializerPtr Create ( )
static

Definition at line 35 of file Serializer.cpp.

36 {
38 }

Referenced by armnn_driver::SerializeNetwork().

◆ CreateRaw()

ISerializer * CreateRaw ( )
static

Definition at line 30 of file Serializer.cpp.

31 {
32  return new ISerializer();
33 }

◆ Destroy()

void Destroy ( ISerializer serializer)
static

Definition at line 40 of file Serializer.cpp.

41 {
42  delete serializer;
43 }

◆ SaveSerializedToStream()

bool SaveSerializedToStream ( std::ostream &  stream)

Serializes the SerializedGraph to the stream.

Parameters
[stream]the stream to save to
Returns
true if graph is Serialized to the Stream, false otherwise

Definition at line 50 of file Serializer.cpp.

51 {
52  return pSerializerImpl->SaveSerializedToStream(stream);
53 }

◆ Serialize()

void Serialize ( const armnn::INetwork inNetwork)

Serializes the network to ArmNN SerializedGraph.

Parameters
[in]inNetworkThe network to be serialized.

Definition at line 45 of file Serializer.cpp.

46 {
47  pSerializerImpl->Serialize(inNetwork);
48 }

The documentation for this class was generated from the following files:
armnnSerializer::ISerializer::Destroy
static void Destroy(ISerializer *serializer)
Definition: Serializer.cpp:40
armnnSerializer
Definition: ISerializer.hpp:11
armnnSerializer::ISerializer::CreateRaw
static ISerializer * CreateRaw()
Definition: Serializer.cpp:30
armnnSerializer::ISerializerPtr
std::unique_ptr< ISerializer, void(*)(ISerializer *serializer)> ISerializerPtr
Definition: ISerializer.hpp:15