24.02.1
|
Go to the documentation of this file.
40 : _parent(nullptr), _info()
83 uint8_t *CLSubTensor::do_map(cl::CommandQueue &q,
bool blocking)
86 if (_parent->
buffer() ==
nullptr)
88 _parent->
map(q, blocking);
93 void CLSubTensor::do_unmap(cl::CommandQueue &q)
void map(cl::CommandQueue &q, bool blocking=true)
Enqueue a map operation of the allocated buffer on the given queue.
CLQuantization quantization() const override
Interface to be implemented by the child class to return the wrapped quantization info data.
Interface for OpenCL tensor.
virtual const cl::Buffer & cl_buffer() const =0
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing ...
virtual CLQuantization quantization() const =0
Interface to be implemented by the child class to return the wrapped quantization info data.
const cl::Buffer & cl_buffer() const override
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing ...
ICLTensor * parent()
Return the parent tensor of the subtensor.
ITensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
Store the sub tensor's metadata.
uint8_t * buffer() const override
Interface to be implemented by the child class to return a pointer to CPU memory.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
CLSubTensor()
Default Constructor.
OpenCL quantization data.
void unmap(cl::CommandQueue &q)
Enqueue an unmap operation of the allocated and mapped buffer on the given queue.
Interface to enqueue OpenCL kernels and get/set the OpenCL CommandQueue and ICLTuner.
Wrapper to configure the Khronos OpenCL C++ header.
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer.
static CLScheduler & get()
Access the scheduler singleton.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.