24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_CLACCESSOR_H
25 #define ARM_COMPUTE_TEST_CLACCESSOR_H
62 const void *
data()
const;
72 size_t size()
const override;
Format format() const override
Image format of the tensor.
size_t size() const override
Total size of the tensor in bytes.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer.
Quantization information.
size_t num_channels() const override
The number of channels for each tensor element.
DataLayout
[DataLayout enum definition]
Container for 2D border size.
CLAccessor & operator=(const CLAccessor &)=delete
Prevent instances of this class from being copied.
const void * operator()(const Coordinates &coord) const override
Read only access to the specified element.
DataLayout data_layout() const override
Get the data layout of the tensor.
QuantizationInfo quantization_info() const override
Quantization info in case of asymmetric quantized type.
QuantizationInfo quantization_info() const override
Get the quantization settings (scale and offset) of the tensor.
Basic implementation of the OpenCL tensor interface.
DataType data_type() const override
Data type used for each element of the tensor.
PaddingSize padding() const override
Padding of tensor.
size_t element_size() const override
Size of each element in the tensor in bytes.
uint8_t * buffer() const override
Interface to be implemented by the child class to return a pointer to CPU memory.
~CLAccessor()
Destructor that unmaps the CL memory.
DataType data_type() const override
Data type of the tensor.
Format format() const override
Colour format of the image.
Accessor implementation for CLTensor objects.
size_t total_size() const override
Returns the total size of the tensor in bytes.
size_t total_size() const
Collapses all dimensions to a single linear total size.
TensorShape shape() const override
Shape of the tensor.
PaddingSize padding() const override
Available padding around the tensor.
CLTensor * tensor
Pointer to the auxiliary tensor.
static Framework & get()
Access to the singleton.
Format
Image colour formats.
DataLayout data_layout() const override
Data layout of the tensor.
int num_channels() const override
Number of channels of the tensor.
Copyright (c) 2017-2024 Arm Limited.
uint8_t * ptr_to_element(const Coordinates &id) const
Return a pointer to the element at the passed coordinates.
CLAccessor(CLTensor &tensor)
Create an accessor for the given tensor.
int num_elements() const override
Number of elements of the tensor.
TensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
Common interface to provide information and access to tensor like structures.
const void * data() const
Get the tensor data.
DataType
Available data types.
const TensorShape & tensor_shape() const override
Size for each dimension of the tensor.
size_t element_size() const override
Element size in bytes calculated as data_size() * num_channels()