From d5c020a20514cad8c78f0ab2cc46a03607854a49 Mon Sep 17 00:00:00 2001 From: Sang-Hoon Park Date: Wed, 6 May 2020 21:01:19 +0100 Subject: COMPMID-3239: Fix projection and peephole in NEQLSTMLayer - Peephole and projection has been fixed to be working - Small internal kernel copying data between tensors to cover the case where num_units and output_size is different is added. Below is strictly outside of this patch's scope but are changes helping this patch working (directly or indirectly) or making NEQLSTM more complete. - Consideration for layer normalization is added to InfoHelpers - QSYMM8 data type is added to helper function to print out tensors. - NE/CLLSTMLayer::validate() logic has been modified to use correct value for shape validation. Change-Id: I40b4e71dfdbe8432caa2fe4a9af60a725362cc33 Signed-off-by: Sang-Hoon Park Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3157 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- src/core/Utils.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/Utils.cpp') diff --git a/src/core/Utils.cpp b/src/core/Utils.cpp index 892cbcd41c..bdde082a1f 100644 --- a/src/core/Utils.cpp +++ b/src/core/Utils.cpp @@ -493,6 +493,7 @@ void arm_compute::print_consecutive_elements(std::ostream &s, DataType dt, const print_consecutive_elements_impl(s, ptr, n, stream_width, element_delim); break; case DataType::S8: + case DataType::QSYMM8: case DataType::QASYMM8_SIGNED: case DataType::QSYMM8_PER_CHANNEL: print_consecutive_elements_impl(s, reinterpret_cast(ptr), n, stream_width, element_delim); @@ -533,6 +534,7 @@ int arm_compute::max_consecutive_elements_display_width(std::ostream &s, DataTyp case DataType::QASYMM8: return max_consecutive_elements_display_width_impl(s, ptr, n); case DataType::S8: + case DataType::QSYMM8: case DataType::QASYMM8_SIGNED: case DataType::QSYMM8_PER_CHANNEL: return max_consecutive_elements_display_width_impl(s, reinterpret_cast(ptr), n); -- cgit v1.2.1