diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-11-11 18:24:22 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-11-12 21:22:47 +0000 |
commit | 8217c8e4f488eb32733c481ab3a4d905069479f1 (patch) | |
tree | f54e10c459d5bc5b847ef0caba075a636d9f1df5 /arm_compute/core/QuantizationInfo.h | |
parent | 94e0cf960ea6116eb57fa88d9b951f859b52c602 (diff) | |
download | ComputeLibrary-8217c8e4f488eb32733c481ab3a4d905069479f1.tar.gz |
COMPMID-2895: Remove QASYMM8_PER_CHANNEL data type
Change-Id: I2d1b77370f8eceeaeae95306b4db5d90ababb76f
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-on: https://review.mlplatform.org/c/2266
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/QuantizationInfo.h')
-rw-r--r-- | arm_compute/core/QuantizationInfo.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/arm_compute/core/QuantizationInfo.h b/arm_compute/core/QuantizationInfo.h index 949ee66b7c..ebd9b677da 100644 --- a/arm_compute/core/QuantizationInfo.h +++ b/arm_compute/core/QuantizationInfo.h @@ -265,21 +265,6 @@ inline int8_t quantize_qsymm8_per_channel(float value, const QuantizationInfo &q return quantized; } -/** Quantize a value given a 8-bit asymmetric per channel quantization scheme - * - * @param[in] value Value to quantize - * @param[in] qinfo Quantization information to use for quantizing - * @param[in] channel_id channel index into the scale vector of quantization info - * - * @return Quantized value - */ -inline int8_t quantize_qasymm8_per_channel(float value, const QuantizationInfo &qinfo, size_t channel_id = 0) -{ - int quantized = arm_compute::round(value / qinfo.scale()[channel_id], RoundingPolicy::TO_NEAREST_UP); - quantized = std::max(0, std::min(quantized, 255)); - return quantized; -} - /** Dequantize a value given a 8-bit asymmetric quantization scheme * * @param[in] value Value to dequantize |