24.04
|
Quantization information. More...
#include <QuantizationInfo.h>
Public Member Functions | |
QuantizationInfo () noexcept | |
Default constructor. More... | |
QuantizationInfo (float scale) | |
Construct quantization info. More... | |
QuantizationInfo (float scale, int offset, bool is_dynamic=false) | |
Construct quantization info. More... | |
QuantizationInfo (std::vector< float > scale) | |
Construct quantization info. More... | |
QuantizationInfo (std::vector< float > scale, std::vector< int32_t > offset, bool is_dynamic=false) | |
Construct quantization info. More... | |
const std::vector< float > & | scale () const |
Scale vector accessor. More... | |
const std::vector< int32_t > & | offset () const |
Offset vector accessor. More... | |
bool | is_dynamic () const |
is_dynamic accessor More... | |
bool | empty () const |
Indicates whether this QuantizationInfo has valid settings or not. More... | |
UniformQuantizationInfo | uniform () const |
Return per layer quantization info. More... | |
Quantization information.
Definition at line 67 of file QuantizationInfo.h.
|
inlinenoexcept |
Default constructor.
Definition at line 71 of file QuantizationInfo.h.
|
inline |
Construct quantization info.
[in] | scale | Scale. |
Definition at line 80 of file QuantizationInfo.h.
|
inline |
Construct quantization info.
[in] | scale | Scale. |
[in] | offset | Offset. |
[in] | is_dynamic | Whether this QuantizationInfo is dynamic, i.e. the scale and offset may change. |
Definition at line 91 of file QuantizationInfo.h.
|
inline |
Construct quantization info.
[in] | scale | Scale. |
Definition at line 101 of file QuantizationInfo.h.
|
inline |
Construct quantization info.
[in] | scale | Scale. |
[in] | offset | Offset. |
[in] | is_dynamic | Whether this QuantizationInfo is dynamic, i.e. the scale and offset may change. |
Definition at line 112 of file QuantizationInfo.h.
|
inline |
Indicates whether this QuantizationInfo has valid settings or not.
Definition at line 144 of file QuantizationInfo.h.
Referenced by arm_compute::test::validation::reference::activation_layer< int16_t >(), arm_compute::test::validation::reference::activation_layer< int8_t >(), arm_compute::test::validation::reference::activation_layer< uint8_t >(), GraphBuilder::add_convolution_node(), GraphBuilder::add_depthwise_convolution_node(), GraphBuilder::add_detection_post_process_node(), FullyConnectedLayerNode::compute_output_descriptor(), FullyConnectedLayerNode::compute_weights_descriptor(), ActivationLayerNode::configure_output(), DeconvolutionLayerNode::configure_output(), ArgMinMaxLayerNode::configure_output(), EltwiseLayerNode::configure_output(), ConcatenateLayerNode::configure_output(), DepthwiseConvolutionLayerNode::configure_output(), ConvolutionLayerNode::configure_output(), and UnaryEltwiseLayerNode::configure_output().
|
inline |
is_dynamic accessor
Definition at line 136 of file QuantizationInfo.h.
Referenced by CpuGemmLowpMatrixMultiplyCore::configure(), invert_qinfo_offset(), CpuGemmLowpMatrixMultiplyCore::run(), and CpuGemmLowpMatrixMultiplyCore::validate().
|
inline |
Offset vector accessor.
Definition at line 128 of file QuantizationInfo.h.
Referenced by ClDequantizeKernel::configure(), ClQuantizeKernel::configure(), ClScaleKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLRangeKernel::configure(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::dequantize(), arm_compute::dequantize_qasymm16(), arm_compute::dequantize_s32(), dynamic_qinfo(), invert_qinfo_offset(), main(), arm_compute::operator<<(), arm_compute::operator==(), print_quantization_info(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::quantize(), arm_compute::quantize_qasymm16(), and arm_compute::test::validation::TEST_CASE().
|
inline |
Scale vector accessor.
Definition at line 120 of file QuantizationInfo.h.
Referenced by arm_compute::quantization::calculate_quantized_multipliers(), arm_compute::cpu::compute_all_anchors_qasymm16(), arm_compute::quantization::compute_quantized_multipliers_and_shifts(), ClDequantizeKernel::configure(), ClQuantizeKernel::configure(), ClScaleKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLRangeKernel::configure(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::dequantize(), arm_compute::dequantize_qasymm16(), arm_compute::dequantize_qsymm16(), arm_compute::dequantize_qsymm8(), arm_compute::dequantize_s32(), dynamic_qinfo(), invert_qinfo_offset(), main(), arm_compute::operator<<(), arm_compute::operator==(), print_quantization_info(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::quantize(), arm_compute::quantize_qasymm16(), arm_compute::quantize_qsymm16(), arm_compute::quantize_qsymm8_per_channel(), arm_compute::cpu::run_depthwise_quanitized8bit(), arm_compute::test::validation::TEST_CASE(), and CpuDepthwiseConv2dAssemblyWrapperKernel::validate().
|
inline |
Return per layer quantization info.
Definition at line 152 of file QuantizationInfo.h.
References UniformQuantizationInfo::offset, and UniformQuantizationInfo::scale.
Referenced by arm_compute::cpu::add_qasymm8_signed_sve2(), arm_compute::cpu::add_qasymm8_sve2(), arm_compute::cpu::add_qsymm16_neon(), arm_compute::cpu::add_qsymm16_sve2(), arm_compute::cpu::add_sub_q8_neon_fixedpoint_possible(), arm_compute::cpu::add_sub_qasymm8_neon(), arm_compute::cpu::add_sub_qasymm8_signed_neon(), arm_compute::cpu::avg_poolingMxNxD_q8_neon_ndhwc(), arm_compute::cpu::bounding_box_transform_qsymm16(), arm_compute::cpu::compute_all_anchors_qasymm16(), arm_compute::quantization::compute_quantized_multipliers_and_shifts(), ClTransposedConvolutionKernel::configure(), ClMatMulLowpNativeMMULKernel::configure(), ClWidthConcatenate2TensorsKernel::configure(), ClWidthConcatenate4TensorsKernel::configure(), ClMatMulLowpNativeKernel::configure(), NEQLSTMLayerNormalizationKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), CLComparisonKernel::configure(), CLRangeKernel::configure(), ClDirectConv2dKernel::configure(), ClDirectConv3dKernel::configure(), ClMulKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLBoundingBoxTransformKernel::configure(), CLROIPoolingLayerKernel::configure(), CLROIAlignLayerKernel::configure(), ClGemmLowpMatrixMultiplyCore::configure(), NELSTMLayerQuantized::configure(), CpuGemmLowpMatrixMultiplyCore::configure(), CLGEMMDeconvolutionLayer::configure(), NEQLSTMLayer::configure(), CLLSTMLayerQuantized::configure(), CLQLSTMLayer::configure(), arm_compute::test::validation::convert_to_asymmetric(), arm_compute::test::validation::convert_to_symmetric(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::dequantize(), arm_compute::dequantize_qasymm16(), arm_compute::dequantize_qsymm16(), arm_compute::dequantize_s32(), arm_compute::cpu::directconv3d_quantized_neon_ndhwc(), arm_compute::cpu::elementwise_arithmetic_quantized_op(), arm_compute::cpu::elementwise_comp_quantized_signed(), arm_compute::cpu::elementwise_comparison_quantized_op(), arm_compute::cpu::elementwise_op< int8_t >(), arm_compute::cpu::elementwise_op< uint8_t >(), arm_compute::cpu::elementwise_op_quantized(), arm_compute::cpu::elementwise_op_quantized_signed(), arm_compute::quantization::get_quantized_asymmetric_output_min_max(), arm_compute::test::validation::get_quantized_bounds(), arm_compute::test::validation::get_quantized_qasymm8_signed_bounds(), main(), arm_compute::cpu::max_poolingMxNxD_q8_neon_ndhwc(), arm_compute::cpu::neon_qasymm8_meanstddevnorm(), arm_compute::cpu::neon_softmax_non_x_quantized(), arm_compute::cpu::neon_softmax_x_quantized(), arm_compute::operator<<(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), arm_compute::test::validation::reference::quantization_layer(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::quantize(), arm_compute::quantize_qasymm16(), arm_compute::quantize_qsymm16(), arm_compute::quantize_qsymm8(), arm_compute::cpu::roi_align_1x1_qasymm8(), CPPUpsampleKernel::run(), CpuGemmLowpMatrixMultiplyCore::run(), arm_compute::cpu::sub_qsymm16_neon(), arm_compute::test::validation::suggest_mac_dst_q_info_and_bias(), arm_compute::cpu::sve2_softmax_logits_1d_quantized(), ClGemmLowpMatrixMultiplyCore::validate(), NEGenerateProposalsLayer::validate(), CpuGemmLowpMatrixMultiplyCore::validate(), NELSTMLayerQuantized::validate(), CLGenerateProposalsLayer::validate(), CLLSTMLayerQuantized::validate(), NEQLSTMLayer::validate(), arm_compute::validate(), and CLQLSTMLayer::validate().