ONE - On-device Neural Engine
|
Struct to hold quantization information of a tensor. More...
#include <TypeInfo.h>
Data Fields | |
std::vector< float > | scales = {0.0f} |
std::vector< int32_t > | zero_points = {0} |
Struct to hold quantization information of a tensor.
For non-quantized tensors, scales, and zero_points have only one element, and scale value is zero. For per-channel quantized tensors, scales vectors should have same size as number of channels of the tensor. And zero_points vector should be same size as scales vector if quantization type is assymetric, otherwise it will be ignored.
Definition at line 44 of file TypeInfo.h.
std::vector<float> onert::ir::Quantization::scales = {0.0f} |
Definition at line 46 of file TypeInfo.h.
Referenced by onert::ir::TypeInfo::quantization(), onert::ir::TypeInfo::quantization(), onert::ir::TypeInfo::scale(), and onert::ir::TypeInfo::scales().
std::vector<int32_t> onert::ir::Quantization::zero_points = {0} |
Definition at line 47 of file TypeInfo.h.
Referenced by onert::ir::TypeInfo::quantization(), onert::ir::TypeInfo::quantization(), onert::ir::TypeInfo::zero_point(), and onert::ir::TypeInfo::zero_points().