From d7c6508aaffa0df157b2e4dd80cc3363ec5440e1 Mon Sep 17 00:00:00 2001 From: Hashim Sharif <hsharif3@tyler.cs.illinois.edu> Date: Sun, 19 Jul 2020 23:48:05 -0500 Subject: [PATCH] Fixing epsilon for FP16 sampling tests --- llvm/projects/hpvm-tensor-rt/dnn_sources/src/unit_tests.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/projects/hpvm-tensor-rt/dnn_sources/src/unit_tests.cc b/llvm/projects/hpvm-tensor-rt/dnn_sources/src/unit_tests.cc index 6926849d8b..954e54a503 100644 --- a/llvm/projects/hpvm-tensor-rt/dnn_sources/src/unit_tests.cc +++ b/llvm/projects/hpvm-tensor-rt/dnn_sources/src/unit_tests.cc @@ -1000,7 +1000,7 @@ void testSamplingCalls(void* input, void* filter, unitTestResults.compareTensors((Tensor*) res, (Tensor*) res_sim, 0.01, test_name); std::string fp16_test_name = std::string("SAMP_FP16 ") + suffix; - unitTestResults.compareTensors((Tensor*) res_half, (Tensor*) res_sim, 0.0001, fp16_test_name); + unitTestResults.compareTensors((Tensor*) res_half, (Tensor*) res_sim, 0.04, fp16_test_name); } -- GitLab