2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
8 #include <arm_compute/core/CL/CLCompileContext.h>
13 class ClContextDeserializer
16 ClContextDeserializer() = default;
17 ~ClContextDeserializer() = default;
19 /// Deserializes the CLCompileContext built-in programs from a binary file
20 /// @param [in] clCompileContext The CLCompileContext to be serialized
21 /// @param [in] context The CL Kernel context built-in program will be created from
22 /// @param [in] device The CL Kernel device built-in program will be created from
23 /// @param [in] filePath The serialized file
24 void Deserialize(arm_compute::CLCompileContext& clCompileContext,
27 const std::string& filePath);
29 /// Deserializes the CLCompileContext built-in programs from binary file contents
30 /// @param [in] clCompileContext The CLCompileContext to be serialized
31 /// @param [in] context The CL Kernel context built-in program will be created from
32 /// @param [in] device The CL Kernel device built-in program will be created from
33 /// @param [in] filePath The serialized file
34 void DeserializeFromBinary(arm_compute::CLCompileContext& clCompileContext,
37 const std::vector<uint8_t>& binaryContent);