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 --- utils/TypePrinter.h | 3 +++ utils/Utils.h | 1 + 2 files changed, 4 insertions(+) (limited to 'utils') diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 904115360a..41bfd1d6c8 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -646,6 +646,9 @@ inline ::std::ostream &operator<<(::std::ostream &os, const DataType &data_type) case DataType::QSYMM16: os << "QSYMM16"; break; + case DataType::QASYMM16: + os << "QASYMM16"; + break; case DataType::U32: os << "U32"; break; diff --git a/utils/Utils.h b/utils/Utils.h index 8605f4e3e1..ec08896257 100644 --- a/utils/Utils.h +++ b/utils/Utils.h @@ -173,6 +173,7 @@ inline std::string get_typestring(DataType data_type) case DataType::QSYMM8_PER_CHANNEL: return no_endianness + "i" + support::cpp11::to_string(sizeof(int8_t)); case DataType::U16: + case DataType::QASYMM16: return endianness + "u" + support::cpp11::to_string(sizeof(uint16_t)); case DataType::S16: case DataType::QSYMM16: -- cgit v1.2.1