24 #ifndef __ARM_COMPUTE_TEST_GCACCESSOR_H__ 25 #define __ARM_COMPUTE_TEST_GCACCESSOR_H__ 61 size_t size()
const override;
int fixed_point_position() const override
Number of bits for the fractional part.
int fixed_point_position() const override
Fixed point position used when the tensor data type is QS8 or QS16.
QuantizationInfo quantization_info() const override
Quantization info in case of asymmetric quantized type.
const void * operator()(const Coordinates &coord) const override
Read only access to the specified element.
GCAccessor(GCTensor &tensor)
Create an accessor for the given tensor.
Accessor implementation for GCTensor objects.
Container for 2D border size.
size_t num_channels() const override
The number of channels for each tensor element.
DataLayout data_layout() const override
Get the data layout of the tensor.
int num_channels() const override
Number of channels of the tensor.
Format format() const override
Image format of the tensor.
QuantizationInfo quantization_info() const override
Get the quantization settings (scale and offset) of the tensor.
PaddingSize padding() const override
Padding of tensor.
Interface for OpenGL ES tensor.
This file contains all available output stages for GEMMLowp on OpenCL.
Format format() const override
Colour format of the image.
DataType data_type() const override
Data type used for each element of the tensor.
uint8_t * ptr_to_element(const Coordinates &id) const
Return a pointer to the element at the passed coordinates.
Format
Image colour formats.
PaddingSize padding() const override
Available padding around the tensor.
size_t total_size() const override
Returns the total size of the tensor in bytes.
~GCAccessor()
Destructor that unmaps the GLES memory.
DataType data_type() const override
Data type of the tensor.
void unmap()
Enqueue an unmap operation of the allocated and mapped buffer on the given queue. ...
int num_elements() const override
Number of elements of the tensor.
size_t size() const override
Total size of the tensor in bytes.
Common interface to provide information and access to tensor like structures.
void map(bool blocking=true)
Enqueue a map operation of the allocated buffer on the given queue.
size_t total_size() const
Collapses all dimensions to a single linear total size.
Quantization settings (used for QASYMM8 data type)
DataLayout data_layout() const override
Data layout of the tensor.
TensorShape shape() const override
Shape of the tensor.
const TensorShape & tensor_shape() const override
Size for each dimension of the tensor.
DataType
Available data types.
size_t element_size() const override
Size of each element in the tensor in bytes.
TensorInfo * info() const override
Interface to be implemented by the child class to return the tensor's metadata.
DataLayout
Supported tensor data layouts.
size_t element_size() const override
Element size in bytes calculated as data_size() * num_channels()
GCAccessor & operator=(const GCAccessor &)=delete
Prevent instances of this class from being copied.