IVGCVSW-2399 Margin of error too severe for ValidateBiasTensorQuantisation
authorkevmay01 <kevin.may@arm.com>
Mon, 17 Dec 2018 15:32:45 +0000 (15:32 +0000)
committerkevmay01 <kevin.may@arm.com>
Mon, 17 Dec 2018 15:32:45 +0000 (15:32 +0000)
Change-Id: I56f56398e7c2c2ac57a96952237e7f1bc0ced208

src/backends/backendsCommon/WorkloadData.cpp

index bc25415..47d5364 100644 (file)
@@ -153,7 +153,7 @@ void ValidateBiasTensorQuantization(const TensorInfo& biasTensor, const TensorIn
             to_string(biasTensor.GetQuantizationOffset()));
     }
     const float expectedScale = inputTensorInfo.GetQuantizationScale() * weightsTensorInfo.GetQuantizationScale();
-    if (std::abs(biasTensor.GetQuantizationScale() - expectedScale) > 0.000000001f)
+    if (std::abs(biasTensor.GetQuantizationScale() - expectedScale) > 0.00000001f)
     {
         // Print the float values with extra precision to see very small differences
         std::stringstream msg;