23.05
|
Common interface to provide information and access to tensor like structures. More...
#include <IAccessor.h>
Public Member Functions | |
virtual | ~IAccessor ()=default |
Virtual destructor. More... | |
virtual TensorShape | shape () const =0 |
Shape of the tensor. More... | |
virtual size_t | element_size () const =0 |
Size of each element in the tensor in bytes. More... | |
virtual size_t | size () const =0 |
Total size of the tensor in bytes. More... | |
virtual Format | format () const =0 |
Image format of the tensor. More... | |
virtual DataLayout | data_layout () const =0 |
Data layout of the tensor. More... | |
virtual DataType | data_type () const =0 |
Data type of the tensor. More... | |
virtual int | num_channels () const =0 |
Number of channels of the tensor. More... | |
virtual int | num_elements () const =0 |
Number of elements of the tensor. More... | |
virtual PaddingSize | padding () const =0 |
Available padding around the tensor. More... | |
virtual QuantizationInfo | quantization_info () const =0 |
Quantization info in case of asymmetric quantized type. More... | |
virtual const void * | operator() (const Coordinates &coord) const =0 |
Read only access to the specified element. More... | |
virtual void * | operator() (const Coordinates &coord)=0 |
Access to the specified element. More... | |
Common interface to provide information and access to tensor like structures.
Definition at line 37 of file IAccessor.h.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Data layout of the tensor.
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
Referenced by arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
|
pure virtual |
Data type of the tensor.
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
Referenced by arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
|
pure virtual |
Size of each element in the tensor in bytes.
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
Referenced by arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
|
pure virtual |
Image format of the tensor.
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
Referenced by arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
|
pure virtual |
Number of channels of the tensor.
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
Referenced by arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
|
pure virtual |
Number of elements of the tensor.
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
Referenced by arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
|
pure virtual |
Read only access to the specified element.
[in] | coord | Coordinates of the desired element. |
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, RawTensor, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
|
pure virtual |
Access to the specified element.
[in] | coord | Coordinates of the desired element. |
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, RawTensor, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
|
pure virtual |
Available padding around the tensor.
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
|
pure virtual |
Quantization info in case of asymmetric quantized type.
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
|
pure virtual |
Shape of the tensor.
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, CLAccessor, SimpleTensorAccessor< T >, and Accessor.
Referenced by arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
|
pure virtual |
Total size of the tensor in bytes.
Implemented in SimpleTensor< T >, SimpleTensor< uint8_t >, CLAccessor, SimpleTensorAccessor< T >, and Accessor.