21.02
|
Accessor implementation for GCTensor objects. More...
#include <GCAccessor.h>
Public Member Functions | |
GCAccessor (GCTensor &tensor) | |
Create an accessor for the given tensor . More... | |
GCAccessor (const GCAccessor &)=delete | |
Prevent instances of this class from being copy constructed. More... | |
GCAccessor & | operator= (const GCAccessor &)=delete |
Prevent instances of this class from being copied. More... | |
GCAccessor (GCAccessor &&)=default | |
Allow instances of this class to be move constructed. More... | |
GCAccessor & | operator= (GCAccessor &&)=delete |
Prevent instances of this class to be moved. More... | |
~GCAccessor () | |
Destructor that unmaps the GLES memory. More... | |
TensorShape | shape () const override |
Shape of the tensor. More... | |
size_t | element_size () const override |
Size of each element in the tensor in bytes. More... | |
size_t | size () const override |
Total size of the tensor in bytes. More... | |
Format | format () const override |
Image format of the tensor. More... | |
DataLayout | data_layout () const override |
Data layout of the tensor. More... | |
DataType | data_type () const override |
Data type of the tensor. More... | |
int | num_channels () const override |
Number of channels of the tensor. More... | |
int | num_elements () const override |
Number of elements of the tensor. More... | |
PaddingSize | padding () const override |
Available padding around the tensor. More... | |
QuantizationInfo | quantization_info () const override |
Quantization info in case of asymmetric quantized type. More... | |
const void * | operator() (const Coordinates &coord) const override |
Read only access to the specified element. More... | |
void * | operator() (const Coordinates &coord) override |
Access to the specified element. More... | |
![]() | |
virtual | ~IAccessor ()=default |
Virtual destructor. More... | |
Accessor implementation for GCTensor objects.
Definition at line 35 of file GCAccessor.h.
|
inline |
Create an accessor for the given tensor
.
[in,out] | tensor | To be accessed tensor. |
Definition at line 76 of file GCAccessor.h.
References GCTensor::map().
|
delete |
Prevent instances of this class from being copy constructed.
|
default |
Allow instances of this class to be move constructed.
|
inline |
Destructor that unmaps the GLES memory.
Definition at line 82 of file GCAccessor.h.
References GCTensor::unmap().
|
inlineoverridevirtual |
Data layout of the tensor.
Implements IAccessor.
Definition at line 107 of file GCAccessor.h.
References TensorInfo::data_layout(), and GCTensor::info().
|
inlineoverridevirtual |
Data type of the tensor.
Implements IAccessor.
Definition at line 112 of file GCAccessor.h.
References TensorInfo::data_type(), and GCTensor::info().
|
inlineoverridevirtual |
Size of each element in the tensor in bytes.
Implements IAccessor.
Definition at line 92 of file GCAccessor.h.
References TensorInfo::element_size(), and GCTensor::info().
|
inlineoverridevirtual |
Image format of the tensor.
Implements IAccessor.
Definition at line 102 of file GCAccessor.h.
References TensorInfo::format(), and GCTensor::info().
|
inlineoverridevirtual |
Number of channels of the tensor.
Implements IAccessor.
Definition at line 117 of file GCAccessor.h.
References GCTensor::info(), and TensorInfo::num_channels().
|
inlineoverridevirtual |
Number of elements of the tensor.
Implements IAccessor.
Definition at line 122 of file GCAccessor.h.
References GCTensor::info(), TensorInfo::tensor_shape(), and TensorShape::total_size().
|
inlineoverridevirtual |
Read only access to the specified element.
[in] | coord | Coordinates of the desired element. |
Implements IAccessor.
Definition at line 137 of file GCAccessor.h.
References ITensor::ptr_to_element().
|
inlineoverridevirtual |
Access to the specified element.
[in] | coord | Coordinates of the desired element. |
Implements IAccessor.
Definition at line 142 of file GCAccessor.h.
References ITensor::ptr_to_element().
|
delete |
Prevent instances of this class from being copied.
|
delete |
Prevent instances of this class to be moved.
|
inlineoverridevirtual |
Available padding around the tensor.
Implements IAccessor.
Definition at line 127 of file GCAccessor.h.
References GCTensor::info(), and TensorInfo::padding().
|
inlineoverridevirtual |
Quantization info in case of asymmetric quantized type.
Implements IAccessor.
Definition at line 132 of file GCAccessor.h.
References GCTensor::info(), and TensorInfo::quantization_info().
|
inlineoverridevirtual |
Shape of the tensor.
Implements IAccessor.
Definition at line 87 of file GCAccessor.h.
References GCTensor::info(), and TensorInfo::tensor_shape().
|
inlineoverridevirtual |
Total size of the tensor in bytes.
Implements IAccessor.
Definition at line 97 of file GCAccessor.h.
References GCTensor::info(), and TensorInfo::total_size().