aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/Validation.h
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2018-02-26 10:42:01 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:47:42 +0000
commit23fe7c2729e657a1886911f01dd544de732ebf61 (patch)
tree4de643b24c3bd0d31d1e4337dfcabca4464bd865 /tests/validation/Validation.h
parent3db5eef2f97b57b01048353055aba9c29bbd72c4 (diff)
downloadComputeLibrary-23fe7c2729e657a1886911f01dd544de732ebf61.tar.gz
Revert "COMPMID-945: Fix GEMM CL FP32 mismatch"
This reverts commit e415fc13e23da579ab3f58a6f52fc83dd438c4b2. Change-Id: Iaf52f98486164ed125602849ea6b3129994f7671 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/122165 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/Validation.h')
-rw-r--r--tests/validation/Validation.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/validation/Validation.h b/tests/validation/Validation.h
index 8ed22c29dc..651b7e5b3c 100644
--- a/tests/validation/Validation.h
+++ b/tests/validation/Validation.h
@@ -363,10 +363,7 @@ void validate(const IAccessor &tensor, const SimpleTensor<T> &reference, const V
const T &target_value = reinterpret_cast<const T *>(tensor(id))[c];
const T &reference_value = reinterpret_cast<const T *>(reference(id))[c];
- // Truncate numbers to the 4th decimal
- const T target_truncated_value = static_cast<T>(static_cast<int>(target_value * 10000) / 10000);
- const T reference_truncated_value = static_cast<T>(static_cast<int>(target_value * 10000) / 10000);
- if(!compare<U>(target_truncated_value, reference_truncated_value, tolerance_value))
+ if(!compare<U>(target_value, reference_value, tolerance_value))
{
ARM_COMPUTE_TEST_INFO("id = " << id);
ARM_COMPUTE_TEST_INFO("channel = " << c);