24.08
|
#include <ClContextDeserializer.hpp>
Public Member Functions | |
ClContextDeserializer ()=default | |
~ClContextDeserializer ()=default | |
void | Deserialize (arm_compute::CLCompileContext &clCompileContext, cl::Context &context, cl::Device &device, const std::string &filePath) |
Deserializes the CLCompileContext built-in programs from a binary file. More... | |
void | DeserializeFromBinary (arm_compute::CLCompileContext &clCompileContext, cl::Context &context, cl::Device &device, const std::vector< uint8_t > &binaryContent) |
Deserializes the CLCompileContext built-in programs from binary file contents. More... | |
Definition at line 13 of file ClContextDeserializer.hpp.
|
default |
|
default |
void Deserialize | ( | arm_compute::CLCompileContext & | clCompileContext, |
cl::Context & | context, | ||
cl::Device & | device, | ||
const std::string & | filePath | ||
) |
Deserializes the CLCompileContext built-in programs from a binary file.
[in] | clCompileContext | The CLCompileContext to be serialized |
[in] | context | The CL Kernel context built-in program will be created from |
[in] | device | The CL Kernel device built-in program will be created from |
[in] | filePath | The serialized file |
Definition at line 36 of file ClContextDeserializer.cpp.
References ARMNN_LOG, ClContextDeserializer::DeserializeFromBinary(), and armnn::error.
void DeserializeFromBinary | ( | arm_compute::CLCompileContext & | clCompileContext, |
cl::Context & | context, | ||
cl::Device & | device, | ||
const std::vector< uint8_t > & | binaryContent | ||
) |
Deserializes the CLCompileContext built-in programs from binary file contents.
[in] | clCompileContext | The CLCompileContext to be serialized |
[in] | context | The CL Kernel context built-in program will be created from |
[in] | device | The CL Kernel device built-in program will be created from |
[in] | filePath | The serialized file |
Definition at line 81 of file ClContextDeserializer.cpp.
References CHECK_LOCATION, and armnn::GetClContext().
Referenced by ClContextDeserializer::Deserialize().