21.08
|
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 44 of file QuantizationInfo.h.
|
inline |
Default constructor.
Definition at line 47 of file QuantizationInfo.h.
Referenced by arm_compute::compute_requantization_scale_offset().
|
inline |
Constructor.
[in] | scale | Quantization scale |
[in] | offset | Quantization offset |
Definition at line 56 of file QuantizationInfo.h.
|
inline |
Checks if the scale and offset are both zero.
Definition at line 61 of file QuantizationInfo.h.
References UniformQuantizationInfo::offset, and UniformQuantizationInfo::scale.
int32_t offset |
Definition at line 67 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(), ClDequantizeKernel::configure(), ClScaleKernel::configure(), ClWidthConcatenate2TensorsKernel::configure(), ClHeightConcatenateKernel::configure(), ClPool2dKernel::configure(), ClWidthConcatenateKernel::configure(), ClActivationKernel::configure(), ClQuantizeKernel::configure(), ClWidthConcatenate4TensorsKernel::configure(), ClBatchConcatenateKernel::configure(), ClDepthConcatenateKernel::configure(), CLComputeAllAnchorsKernel::configure(), ClDirectConv2dKernel::configure(), CLComparisonKernel::configure(), CLReductionOperationKernel::configure(), CLRangeKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLBoundingBoxTransformKernel::configure(), ClMulKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLROIPoolingLayerKernel::configure(), CLROIAlignLayerKernel::configure(), ClGemmLowpMatrixMultiplyCore::configure(), NELSTMLayerQuantized::configure(), CpuGemmLowpMatrixMultiplyCore::configure(), CLGEMMDeconvolutionLayer::configure(), CLLSTMLayerQuantized::configure(), NEQLSTMLayer::configure(), CLQLSTMLayer::configure(), arm_compute::test::convolution_3d::detail::convolution3d(), arm_compute::test::validation::reference::dequantization_layer(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::dequantize(), arm_compute::dequantize_qasymm16(), 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::quantize_qasymm16(), arm_compute::roi_align_1x1_qasymm8(), CPPUpsampleKernel::run(), arm_compute::cpu::sub_qasymm8_neon(), arm_compute::cpu::sub_qasymm8_signed_neon(), QuantizationInfo::uniform(), ClGemmLowpMatrixMultiplyCore::validate(), NEGenerateProposalsLayer::validate(), CpuGemmLowpMatrixMultiplyCore::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 66 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(), ClDequantizeKernel::configure(), ClScaleKernel::configure(), ClWidthConcatenate2TensorsKernel::configure(), ClActivationKernel::configure(), ClPool2dKernel::configure(), ClHeightConcatenateKernel::configure(), ClWidthConcatenateKernel::configure(), ClQuantizeKernel::configure(), ClWidthConcatenate4TensorsKernel::configure(), ClDepthConcatenateKernel::configure(), ClBatchConcatenateKernel::configure(), CpuDepthwiseConv2dNativeKernel::configure(), NEQLSTMLayerNormalizationKernel::configure(), ClLogits1DMaxShiftExpSumKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), ClDirectConv2dKernel::configure(), CLComparisonKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLRangeKernel::configure(), CLReductionOperationKernel::configure(), CLBoundingBoxTransformKernel::configure(), ClMulKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLROIPoolingLayerKernel::configure(), CLROIAlignLayerKernel::configure(), ClLogits1DNormKernel::configure(), NELSTMLayerQuantized::configure(), CpuGemmLowpMatrixMultiplyCore::configure(), CLGEMMDeconvolutionLayer::configure(), CLLSTMLayerQuantized::configure(), NEQLSTMLayer::configure(), CLQLSTMLayer::configure(), arm_compute::test::convolution_3d::detail::convolution3d(), Qasymm8QuantizationHelper< QUANTIZED_TYPE >::dequantize(), arm_compute::dequantize(), arm_compute::dequantize_qasymm16(), arm_compute::dequantize_qsymm16(), arm_compute::dequantize_qsymm8(), arm_compute::cpu::elementwise_comp_quantized_signed(), arm_compute::cpu::elementwise_op_quantized(), arm_compute::cpu::elementwise_op_quantized_signed(), UniformQuantizationInfo::empty(), CpuPool2dAssemblyWrapperKernel::is_configured(), 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_qasymm16(), arm_compute::quantize_qsymm16(), arm_compute::quantize_qsymm8(), arm_compute::test::validation::reference::scale(), arm_compute::cpu::sub_qasymm8_neon(), arm_compute::cpu::sub_qasymm8_signed_neon(), arm_compute::cpu::sub_qsymm16_neon(), QuantizationInfo::uniform(), NEComputeAllAnchorsKernel::validate(), CpuPool2dAssemblyWrapperKernel::validate(), NEGenerateProposalsLayer::validate(), CpuGemmLowpMatrixMultiplyCore::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().