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;
Interface for CPU tensor.
OpenCL quantization data.
Copyright (c) 2017-2021 Arm Limited.
void unmap(T &tensor)
Unmaps a tensor if needed.
Interface for OpenCL tensor.
void map(T &tensor, bool blocking)
Maps a tensor if needed.