#include <Serializer.hpp>
Definition at line 361 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 2510 of file Serializer.cpp.
2514 auto bytesToWrite = armnn::numeric_cast<std::streamsize>(fbBuilder.GetSize());
2515 stream.write(
reinterpret_cast<const char*
>(fbBuilder.GetBufferPointer()), bytesToWrite);
2516 return !stream.bad();
◆ Serialize()
Serializes the network to ArmNN SerializedGraph.
- Parameters
-
[in] | inNetwork | The network to be serialized. |
Definition at line 2491 of file Serializer.cpp.
2498 auto serializedGraph = serializer::CreateSerializedGraph(
2501 fbBuilder.CreateVector(m_SerializerStrategy.
GetInputIds()),
2502 fbBuilder.CreateVector(m_SerializerStrategy.
GetOutputIds()),
2506 fbBuilder.Finish(serializedGraph);
References INetwork::ExecuteStrategy().
The documentation for this class was generated from the following files: