21.05
|
Quantization info when assuming per layer quantization. More...
#include <QuantizationInfo.h>
Public Member Functions | |
UniformQuantizationInfo () | |
Default constructor. More... | |
UniformQuantizationInfo (float scale, int32_t offset) | |
Constructor. More... | |
bool | empty () const |
Checks if the scale and offset are both zero. More... | |
Data Fields | |
float | scale |
int32_t | offset |
Quantization info when assuming per layer quantization.
Definition at line 43 of file QuantizationInfo.h.
|
inline |
|
inline |
Constructor.
[in] | scale | Quantization scale |
[in] | offset | Quantization offset |
Definition at line 55 of file QuantizationInfo.h.
|
inline |
Checks if the scale and offset are both zero.
Definition at line 60 of file QuantizationInfo.h.
References UniformQuantizationInfo::offset, and UniformQuantizationInfo::scale.
int32_t offset |
Definition at line 66 of file QuantizationInfo.h.
Referenced by arm_compute::cpu::add_qasymm8_neon(), arm_compute::cpu::add_qasymm8_signed_neon(), arm_compute::compute_requantization_scale_offset(), ClWidthConcatenate2TensorsKernel::configure(), ClActivationKernel::configure(), ClPoolingKernel::configure(), ClWidthConcatenateKernel::configure(), ClHeightConcatenateKernel::configure(), ClWidthConcatenate4TensorsKernel::configure(), ClQuantizationKernel::configure(), ClBatchConcatenateKernel::configure(), ClDepthConcatenateKernel::configure(), ClDirectConvolutionKernel::configure(), CLComparisonKernel::configure(), ClMulKernel::configure(), CLBoundingBoxTransformKernel::configure(), CLROIPoolingLayerKernel::configure(), CLROIAlignLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), NELSTMLayerQuantized::configure(), NEGEMMLowpMatrixMultiplyCore::configure(), CLGEMMLowpMatrixMultiplyCore::configure(), CLGEMMDeconvolutionLayer::configure(), NEQLSTMLayer::configure(), CLLSTMLayerQuantized::configure(), CLQLSTMLayer::configure(), arm_compute::test::validation::reference::dequantization_layer(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::dequantize(), arm_compute::cpu::elementwise_comp_quantized_signed(), arm_compute::cpu::elementwise_op_quantized(), arm_compute::cpu::elementwise_op_quantized_signed(), UniformQuantizationInfo::empty(), arm_compute::get_quantized_activation_min_max(), main(), arm_compute::operator<<(), arm_compute::operator==(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), arm_compute::cpu::qasymm8_neon_activation(), arm_compute::cpu::qasymm8_signed_neon_activation(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::quantize(), arm_compute::roi_align_1x1_qasymm8(), CPPUpsampleKernel::run(), arm_compute::cpu::sub_qasymm8_neon(), arm_compute::cpu::sub_qasymm8_signed_neon(), QuantizationInfo::uniform(), NEGenerateProposalsLayer::validate(), NEGEMMLowpMatrixMultiplyCore::validate(), CLGEMMLowpMatrixMultiplyCore::validate(), NELSTMLayerQuantized::validate(), CLGenerateProposalsLayer::validate(), CLLSTMLayerQuantized::validate(), NEQLSTMLayer::validate(), arm_compute::validate(), CLQLSTMLayer::validate(), arm_compute::vdequantize(), arm_compute::vquantize(), arm_compute::vquantize_qasymm16(), and arm_compute::vquantize_signed().
float scale |
Definition at line 65 of file QuantizationInfo.h.
Referenced by arm_compute::cpu::add_qasymm8_neon(), arm_compute::cpu::add_qasymm8_signed_neon(), arm_compute::cpu::add_qsymm16_neon(), arm_compute::quantization::compute_quantized_multipliers_and_shifts(), arm_compute::compute_requantization_scale_offset(), ClActivationKernel::configure(), ClWidthConcatenate2TensorsKernel::configure(), ClHeightConcatenateKernel::configure(), ClPoolingKernel::configure(), ClWidthConcatenateKernel::configure(), ClWidthConcatenate4TensorsKernel::configure(), ClBatchConcatenateKernel::configure(), ClDepthConcatenateKernel::configure(), ClQuantizationKernel::configure(), NEQLSTMLayerNormalizationKernel::configure(), ClDirectConvolutionKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), CLComparisonKernel::configure(), CpuDepthwiseConvolutionNativeKernel::configure(), ClMulKernel::configure(), CLBoundingBoxTransformKernel::configure(), CLROIPoolingLayerKernel::configure(), CLROIAlignLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), NELSTMLayerQuantized::configure(), NEGEMMLowpMatrixMultiplyCore::configure(), CLGEMMDeconvolutionLayer::configure(), NEQLSTMLayer::configure(), CLLSTMLayerQuantized::configure(), CLQLSTMLayer::configure(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::dequantize(), arm_compute::cpu::elementwise_comp_quantized_signed(), arm_compute::cpu::elementwise_op_quantized(), arm_compute::cpu::elementwise_op_quantized_signed(), UniformQuantizationInfo::empty(), main(), arm_compute::cpu::neon_softmax_logits_1d_quantized(), arm_compute::operator<<(), arm_compute::operator==(), arm_compute::cpu::poolingMxN_q8_neon_nhwc(), arm_compute::cpu::qasymm8_neon_activation(), arm_compute::cpu::qasymm8_signed_neon_activation(), arm_compute::cpu::qsymm16_neon_activation(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::quantize(), arm_compute::quantize_qsymm8(), arm_compute::cpu::sub_qasymm8_neon(), arm_compute::cpu::sub_qasymm8_signed_neon(), arm_compute::cpu::sub_qsymm16_neon(), QuantizationInfo::uniform(), CpuDepthwiseConvolutionAssemblyDispatch::validate(), NEGenerateProposalsLayer::validate(), NEGEMMLowpMatrixMultiplyCore::validate(), NELSTMLayerQuantized::validate(), CLGenerateProposalsLayer::validate(), CLLSTMLayerQuantized::validate(), NEQLSTMLayer::validate(), arm_compute::validate(), CLQLSTMLayer::validate(), arm_compute::vdequantize(), arm_compute::vquantize(), arm_compute::vquantize_qasymm16(), arm_compute::vquantize_qsymm16(), and arm_compute::vquantize_signed().