aboutsummaryrefslogtreecommitdiff
path: root/src/core/Utils.cpp
diff options
context:
space:
mode:
authorManuel Bottini <manuel.bottini@arm.com>2019-06-14 17:18:12 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-06-20 17:41:16 +0000
commit3689fcd5915cd902cb4ea5f618f2a6e42f6dc4a1 (patch)
tree9d068e7548af2a6054468c35f3259b52bdda91a5 /src/core/Utils.cpp
parenta28aebc5f80630683f50ce934e8584c6b0004beb (diff)
downloadComputeLibrary-3689fcd5915cd902cb4ea5f618f2a6e42f6dc4a1.tar.gz
COMPMID-2408: Add QSYMM16 support for ElementwiseAddition for NEON
Change-Id: I22991e9369ffba9b51a94522ff4977933e887b94 Signed-off-by: Manuel Bottini <manuel.bottini@arm.com> Reviewed-on: https://review.mlplatform.org/c/1352 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Giuseppe Rossini <giuseppe.rossini@arm.com>
Diffstat (limited to 'src/core/Utils.cpp')
-rw-r--r--src/core/Utils.cpp4
1 files changed, 4 insertions, 0 deletions
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<int16_t>();
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<uint16_t>(s, reinterpret_cast<const uint16_t *>(ptr), n, stream_width, element_delim);
break;
case DataType::S16:
+ case DataType::QSYMM16:
print_consecutive_elements_impl<int16_t>(s, reinterpret_cast<const int16_t *>(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<uint16_t>(s, reinterpret_cast<const uint16_t *>(ptr), n);
case DataType::S16:
+ case DataType::QSYMM16:
return max_consecutive_elements_display_width_impl<int16_t>(s, reinterpret_cast<const int16_t *>(ptr), n);
case DataType::U32:
return max_consecutive_elements_display_width_impl<uint32_t>(s, reinterpret_cast<const uint32_t *>(ptr), n);