From 35ea9a7521b4b858a6bcc33a244b6e7f94b6e3a3 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Fri, 23 Aug 2019 12:02:06 +0100 Subject: COMPMID-2317: Add new QASYMM16 data type Change-Id: I9fbbba633f10d542474a08b1898150b9799b7ae5 Signed-off-by: Michele Di Giorgio Reviewed-on: https://review.mlplatform.org/c/1805 Comments-Addressed: Arm Jenkins Reviewed-by: Michalis Spyrou Tested-by: Arm Jenkins --- arm_compute/core/PixelValue.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'arm_compute/core/PixelValue.h') diff --git a/arm_compute/core/PixelValue.h b/arm_compute/core/PixelValue.h index 4a07fa6c5d..e237498920 100644 --- a/arm_compute/core/PixelValue.h +++ b/arm_compute/core/PixelValue.h @@ -43,7 +43,7 @@ public: * * @param[in] v int value. * @param[in] datatype DataType that @p v have to be stored - * @param[in] qinfo (Optional) QuantizationInfo to apply in case of QASYMM8 datatype to @p v + * @param[in] qinfo (Optional) QuantizationInfo to apply in case of quantized data types to @p v */ PixelValue(uint64_t v, DataType datatype, QuantizationInfo qinfo = QuantizationInfo()) : PixelValue() @@ -68,6 +68,9 @@ public: case DataType::S16: value.s16 = static_cast(v); break; + case DataType::QASYMM16: + value.u16 = quantize_qasymm16(static_cast(v), qinfo); + break; case DataType::QSYMM16: value.s16 = quantize_qsymm16(static_cast(v), qinfo); break; -- cgit v1.2.1