24 #ifndef ARM_COMPUTE_CLTENSOR_H 25 #define ARM_COMPUTE_CLTENSOR_H 36 class ITensorAllocator;
38 class IRuntimeContext;
39 class CLRuntimeContext;
75 void map(
bool blocking =
true);
88 const cl::Buffer &
cl_buffer()
const override;
95 uint8_t *do_map(cl::CommandQueue &q,
bool blocking)
override;
96 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.
TensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
const cl::Buffer & cl_buffer() const override
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing ...
void associate_memory_group(IMemoryGroup *memory_group) override
Associates a memory managable object with the memory group that manages it.
CLTensorAllocator * allocator()
Return a pointer to the tensor's allocator.
OpenCL quantization data.
Copyright (c) 2017-2021 Arm Limited.
Basic implementation of a CL memory tensor allocator.
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer.
~CLTensor()=default
Destructor.
CLQuantization quantization() const override
Interface to be implemented by the child class to return the wrapped quantization info data...
void unmap(cl::CommandQueue &q)
Enqueue an unmap operation of the allocated and mapped buffer on the given queue. ...
CLTensor(IRuntimeContext *ctx=nullptr)
Constructor.
CLRuntimeContext * context()
Interface for OpenCL tensor.
Interface of an object than can be memory managed.
CLTensor & operator=(const CLTensor &)=delete
Prevent copaingy by assignment.
Wrapper to configure the Khronos OpenCL C++ header.
Store the tensor's metadata.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
Basic implementation of the OpenCL tensor interface.