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 <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6378
Reviewed-by: Giorgio Arena <giorgio.arena@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
diff --git a/src/core/utils/quantization/AsymmHelpers.cpp b/src/core/utils/quantization/AsymmHelpers.cpp
index 81e813c..4ce6099 100644
--- a/src/core/utils/quantization/AsymmHelpers.cpp
+++ b/src/core/utils/quantization/AsymmHelpers.cpp
@@ -61,12 +61,6 @@
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);