ONE - On-device Neural Engine
|
#include <TypeInfo.h>
Public Member Functions | |
TypeInfo ()=delete | |
TypeInfo (DataType type) | |
TypeInfo (DataType type, float scale, int32_t zero_point) | |
DataType | type () const |
float | scale () const |
const std::vector< float > & | scales () const |
int32_t | zero_point () const |
const std::vector< int32_t > & | zero_points () const |
const ir::Sparsity * | sparsity () const |
void | quantization (float scale, int32_t zero_point) |
void | quantization (std::vector< float > &&scales, std::vector< int32_t > &&zero_points) |
void | sparsity (std::shared_ptr< ir::Sparsity > sparsity) |
void | type (const DataType type) |
Definition at line 50 of file TypeInfo.h.
|
delete |
|
inlineexplicit |
Definition at line 55 of file TypeInfo.h.
|
inline |
Definition at line 57 of file TypeInfo.h.
References quantization(), scale(), and zero_point().
|
inline |
Definition at line 69 of file TypeInfo.h.
References onert::ir::requireQuantParam(), scale(), onert::ir::Quantization::scales, zero_point(), and onert::ir::Quantization::zero_points.
Referenced by onert::loader::BaseLoader< LoaderDomain >::loadQuantization(), and TypeInfo().
|
inline |
Definition at line 75 of file TypeInfo.h.
References onert::ir::requireQuantParam(), onert::ir::Quantization::scales, scales(), onert::ir::Quantization::zero_points, and zero_points().
|
inline |
Definition at line 64 of file TypeInfo.h.
References onert::ir::Quantization::scales.
Referenced by onert::backend::acl_common::asTensorInfo(), onert::backend::IPortableTensor::data_scale(), quantization(), and TypeInfo().
|
inline |
Definition at line 65 of file TypeInfo.h.
References onert::ir::Quantization::scales.
Referenced by onert::backend::IPortableTensor::data_scales(), onert::ir::operator==(), and quantization().
|
inline |
Definition at line 68 of file TypeInfo.h.
Referenced by onert::loader::BaseLoader< LoaderDomain >::loadSparsity(), and onert::backend::IPortableTensor::sparsity().
|
inline |
Definition at line 88 of file TypeInfo.h.
|
inline |
Definition at line 63 of file TypeInfo.h.
Referenced by onert::backend::acl_common::asPixelValue(), onert::backend::acl_common::asSet(), onert::backend::acl_common::asTensorInfo(), onert::backend::IPortableTensor::data_type(), onert::loader::BaseLoader< LoaderDomain >::loadOperand(), onert::ir::Operand::operandSize(), onert::ir::operator==(), onert::ir::OperandInfo::total_size(), and onert::ir::OperandInfo::type().
|
inline |
Definition at line 91 of file TypeInfo.h.
References type().
Referenced by type().
|
inline |
Definition at line 66 of file TypeInfo.h.
References onert::ir::Quantization::zero_points.
Referenced by onert::backend::acl_common::asTensorInfo(), onert::backend::IPortableTensor::data_zero_point(), quantization(), and TypeInfo().
|
inline |
Definition at line 67 of file TypeInfo.h.
References onert::ir::Quantization::zero_points.
Referenced by onert::backend::IPortableTensor::data_zero_points(), and quantization().