24 #ifndef ARM_COMPUTE_ICLTENSOR_H 25 #define ARM_COMPUTE_ICLTENSOR_H 67 virtual const cl::Buffer &
cl_buffer()
const = 0;
77 void map(cl::CommandQueue &q,
bool blocking =
true);
85 void unmap(cl::CommandQueue &q);
90 void clear(cl::CommandQueue &q);
93 uint8_t *
buffer()
const override;
103 virtual uint8_t *do_map(cl::CommandQueue &q,
bool blocking) = 0;
111 virtual void do_unmap(cl::CommandQueue &q) = 0;
void map(cl::CommandQueue &q, bool blocking=true)
Enqueue a map operation of the allocated buffer on the given queue.
Interface for CPU tensor.
OpenCL quantization data.
Copyright (c) 2017-2021 Arm Limited.
uint8_t * buffer() const override
Interface to be implemented by the child class to return a pointer to CPU memory.
void clear(cl::CommandQueue &q)
Clear the contents of the tensor synchronously.
virtual ~ICLTensor()=default
Default virtual destructor.
void unmap(cl::CommandQueue &q)
Enqueue an unmap operation of the allocated and mapped buffer on the given queue.
ICLTensor()
Default constructor.
Interface for OpenCL tensor.
ICLTensor & operator=(const ICLTensor &)=delete
Prevent instances of this class from being copied.
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.