aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/Utils.h
diff options
context:
space:
mode:
authorMichele Di Giorgio <michele.digiorgio@arm.com>2019-08-23 12:02:06 +0100
committerMichele Di Giorgio <michele.digiorgio@arm.com>2019-08-23 15:24:50 +0000
commit35ea9a7521b4b858a6bcc33a244b6e7f94b6e3a3 (patch)
tree570c1c70fcf06491188d8df4cc287e9ab8a3e640 /arm_compute/core/Utils.h
parent29a01c90fc372d31188ab7157b45b32ce24fa9b3 (diff)
downloadComputeLibrary-35ea9a7521b4b858a6bcc33a244b6e7f94b6e3a3.tar.gz
COMPMID-2317: Add new QASYMM16 data type
Change-Id: I9fbbba633f10d542474a08b1898150b9799b7ae5 Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com> Reviewed-on: https://review.mlplatform.org/c/1805 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/Utils.h')
-rw-r--r--arm_compute/core/Utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arm_compute/core/Utils.h b/arm_compute/core/Utils.h
index eb4cf05ae9..6ffab4b9ea 100644
--- a/arm_compute/core/Utils.h
+++ b/arm_compute/core/Utils.h
@@ -120,6 +120,7 @@ inline size_t data_size_from_type(DataType data_type)
case DataType::U16:
case DataType::S16:
case DataType::QSYMM16:
+ case DataType::QASYMM16:
case DataType::F16:
return 2;
case DataType::F32:
@@ -195,6 +196,7 @@ inline size_t element_size_from_data_type(DataType dt)
case DataType::U16:
case DataType::S16:
case DataType::QSYMM16:
+ case DataType::QASYMM16:
case DataType::F16:
return 2;
case DataType::U32:
@@ -532,7 +534,9 @@ inline DataType get_promoted_data_type(DataType dt)
case DataType::QSYMM8:
case DataType::QASYMM8:
case DataType::QSYMM8_PER_CHANNEL:
+ case DataType::QASYMM8_PER_CHANNEL:
case DataType::QSYMM16:
+ case DataType::QASYMM16:
case DataType::F16:
case DataType::U32:
case DataType::S32:
@@ -1017,6 +1021,7 @@ inline bool is_data_type_quantized(DataType dt)
case DataType::QSYMM8_PER_CHANNEL:
case DataType::QASYMM8_PER_CHANNEL:
case DataType::QSYMM16:
+ case DataType::QASYMM16:
return true;
default:
return false;
@@ -1035,6 +1040,7 @@ inline bool is_data_type_quantized_asymmetric(DataType dt)
{
case DataType::QASYMM8:
case DataType::QASYMM8_PER_CHANNEL:
+ case DataType::QASYMM16:
return true;
default:
return false;