From 3689fcd5915cd902cb4ea5f618f2a6e42f6dc4a1 Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Fri, 14 Jun 2019 17:18:12 +0100 Subject: COMPMID-2408: Add QSYMM16 support for ElementwiseAddition for NEON Change-Id: I22991e9369ffba9b51a94522ff4977933e887b94 Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/1352 Comments-Addressed: Arm Jenkins Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins Reviewed-by: Giuseppe Rossini --- src/core/Utils.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/Utils.cpp') diff --git a/src/core/Utils.cpp b/src/core/Utils.cpp index aa795bd117..22be0002ee 100644 --- a/src/core/Utils.cpp +++ b/src/core/Utils.cpp @@ -159,6 +159,7 @@ const std::string &arm_compute::string_from_data_type(DataType dt) { DataType::F64, "F64" }, { DataType::SIZET, "SIZET" }, { DataType::QASYMM8, "QASYMM8" }, + { DataType::QSYMM16, "QSYMM16" }, }; return dt_map[dt]; @@ -294,6 +295,7 @@ std::string arm_compute::string_from_pixel_value(const PixelValue &value, const converted_string = ss.str(); break; case DataType::S16: + case DataType::QSYMM16: ss << value.get(); converted_string = ss.str(); break; @@ -409,6 +411,7 @@ void arm_compute::print_consecutive_elements(std::ostream &s, DataType dt, const print_consecutive_elements_impl(s, reinterpret_cast(ptr), n, stream_width, element_delim); break; case DataType::S16: + case DataType::QSYMM16: print_consecutive_elements_impl(s, reinterpret_cast(ptr), n, stream_width, element_delim); break; case DataType::U32: @@ -440,6 +443,7 @@ int arm_compute::max_consecutive_elements_display_width(std::ostream &s, DataTyp case DataType::U16: return max_consecutive_elements_display_width_impl(s, reinterpret_cast(ptr), n); case DataType::S16: + case DataType::QSYMM16: return max_consecutive_elements_display_width_impl(s, reinterpret_cast(ptr), n); case DataType::U32: return max_consecutive_elements_display_width_impl(s, reinterpret_cast(ptr), n); -- cgit v1.2.1