From 3a35398ed6cc5d9c0f45f33dabb2bfbb017bcf60 Mon Sep 17 00:00:00 2001 From: Sheri Zhang Date: Tue, 21 Apr 2020 13:10:24 +0100 Subject: COMPMID-3240: Add support for layer normalization to CLQLSTMLayer Signed-off-by: Sheri Zhang Change-Id: I45359a4ddb46c059097a2d77c008f802e8f4c143 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3065 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Reviewed-by: Sang-Hoon Park Comments-Addressed: Arm Jenkins --- src/core/NEON/kernels/NEQLSTMLayerNormalizationKernel.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/core/NEON') diff --git a/src/core/NEON/kernels/NEQLSTMLayerNormalizationKernel.cpp b/src/core/NEON/kernels/NEQLSTMLayerNormalizationKernel.cpp index e966c6bdba..29ffee867b 100644 --- a/src/core/NEON/kernels/NEQLSTMLayerNormalizationKernel.cpp +++ b/src/core/NEON/kernels/NEQLSTMLayerNormalizationKernel.cpp @@ -172,10 +172,7 @@ void NEQLSTMLayerNormalizationKernel::run(const Window &window, const ThreadInfo inline QuantizationInfo NEQLSTMLayerNormalizationKernel::compute_output_qinfo() { - const UniformQuantizationInfo iq_info = _input->info()->quantization_info().uniform(); - const UniformQuantizationInfo wq_info = _weight->info()->quantization_info().uniform(); - const float output_scale = (wq_info.scale * iq_info.scale) * 1024; - return QuantizationInfo(output_scale); + return QuantizationInfo(1.f / 4096); } inline std::pair NEQLSTMLayerNormalizationKernel::sum_qsymm16(const int16_t *input_ptr) -- cgit v1.2.1