#include <Serializer.hpp>
Definition at line 365 of file Serializer.hpp.
◆ SerializerImpl()
◆ ~SerializerImpl()
◆ 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 2562 of file Serializer.cpp.
2566 auto bytesToWrite = armnn::numeric_cast<std::streamsize>(fbBuilder.GetSize());
2567 stream.write(
reinterpret_cast<const char*
>(fbBuilder.GetBufferPointer()), bytesToWrite);
2568 return !stream.bad();
◆ Serialize()
Serializes the network to ArmNN SerializedGraph.
- Parameters
-
[in] | inNetwork | The network to be serialized. |
Definition at line 2543 of file Serializer.cpp.
2550 auto serializedGraph = serializer::CreateSerializedGraph(
2553 fbBuilder.CreateVector(m_SerializerStrategy.
GetInputIds()),
2554 fbBuilder.CreateVector(m_SerializerStrategy.
GetOutputIds()),
2558 fbBuilder.Finish(serializedGraph);
References INetwork::ExecuteStrategy().
The documentation for this class was generated from the following files: