24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CLSUBTENSOR_H
25 #define ARM_COMPUTE_CLSUBTENSOR_H
52 bool extend_parent =
false);
72 void map(
bool blocking =
true);
93 const cl::Buffer &
cl_buffer()
const override;
98 uint8_t *do_map(cl::CommandQueue &q,
bool blocking)
override;
99 void do_unmap(cl::CommandQueue &q)
override;
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.
Basic implementation of the OpenCL sub-tensor interface.
Interface for OpenCL tensor.
CLSubTensor & operator=(const CLSubTensor &)=delete
Restrict instances of this class to be copied.
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.
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.
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer.
~CLSubTensor()=default
Destructor: free the tensor's memory.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.