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