2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
8 #include <arm_compute/core/CL/CLCompileContext.h>
10 #include <flatbuffers/flatbuffers.h>
15 class ClContextSerializer
18 ClContextSerializer() = default;
19 ~ClContextSerializer() = default;
21 /// Serializes the CLCompileContext built-in programs
22 /// @param [in] clCompileContext The CLCompileContext to be serialized.
23 void Serialize(const arm_compute::CLCompileContext& clCompileContext);
25 /// Serializes the ClContext to the stream.
26 /// @param [stream] the stream to save to
27 /// @return true if ClContext is Serialized to the Stream, false otherwise
28 bool SaveSerializedToStream(std::ostream& stream);
31 /// FlatBufferBuilder to create the CLContext FlatBuffers.
32 flatbuffers::FlatBufferBuilder m_FlatBufferBuilder;