From 58e9e06102da7042bed34482ae89b3a6f8c77dca Mon Sep 17 00:00:00 2001 From: Pablo Marquez Tello Date: Tue, 5 Oct 2021 16:48:57 +0100 Subject: Fix the multipliers calculation * Removed code forcing the multipliers and shifts to 0 * Resolves COMPMID-4833 Change-Id: I7c0eadde3691732c263818bb1cd0fc0cb75ce5a9 Signed-off-by: Pablo Marquez Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6378 Reviewed-by: Giorgio Arena Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- src/core/utils/quantization/AsymmHelpers.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/utils/quantization/AsymmHelpers.cpp b/src/core/utils/quantization/AsymmHelpers.cpp index 81e813caff..4ce60996f5 100644 --- a/src/core/utils/quantization/AsymmHelpers.cpp +++ b/src/core/utils/quantization/AsymmHelpers.cpp @@ -61,12 +61,6 @@ Status calculate_quantized_multiplier_less_than_one(float multiplier, ARM_COMPUTE_RETURN_ERROR_ON(right_shift == nullptr); ARM_COMPUTE_RETURN_ERROR_ON(multiplier < -internal_epsilon); ARM_COMPUTE_RETURN_ERROR_ON(multiplier > 1.0f + internal_epsilon); - if(std::fabs(0.0f - multiplier) < internal_epsilon) - { - *quant_multiplier = 0; - *right_shift = 0; - return Status{}; - } int shift_exp = 0; const double q = std::frexp(multiplier, &shift_exp); -- cgit v1.2.1