33 : _parent(nullptr), _info()
38 : _parent(nullptr), _info()
81 uint8_t *CLSubTensor::do_map(cl::CommandQueue &q,
bool blocking)
84 return static_cast<uint8_t *
>(q.enqueueMapBuffer(
cl_buffer(), blocking ? CL_TRUE : CL_FALSE, CL_MAP_READ | CL_MAP_WRITE, 0,
info()->total_size()));
87 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.
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer.
static CLScheduler & get()
Access the scheduler singleton.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Store the tensor's metadata.
OpenCL quantization data.
Store the sub tensor's metadata.
Copyright (c) 2017-2021 Arm Limited.
CLSubTensor()
Default Constructor.
uint8_t * buffer() const override
Interface to be implemented by the child class to return a pointer to CPU memory. ...
CLQuantization quantization() const override
Interface to be implemented by the child class to return the wrapped quantization info data...
Interface to enqueue OpenCL kernels and get/set the OpenCL CommandQueue and ICLTuner.
void unmap(cl::CommandQueue &q)
Enqueue an unmap operation of the allocated and mapped buffer on the given queue. ...
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
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.
Interface for OpenCL tensor.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
Wrapper to configure the Khronos OpenCL C++ header.
const cl::Buffer & cl_buffer() const override
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing ...
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...