From 1322065a3fbd15b00dbfb0969d6b438b5ba15530 Mon Sep 17 00:00:00 2001 From: Sangwon Ha Date: Tue, 9 Apr 2024 11:23:48 +0100 Subject: Specify absolute tolerance - Add absolute tolerance value of 0.001f to DFT validation test to to disregard cases of floating-point round off error, in line with other tests. Resolves: COMPMID-6945 Change-Id: Id92c22d31cf3045968ae813985c49713354ea955 Signed-off-by: Sangwon Ha Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/11399 Tested-by: Arm Jenkins Reviewed-by: Gunes Bayir Benchmark: Arm Jenkins Comments-Addressed: Arm Jenkins --- tests/validation/CPP/DFT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/validation/CPP/DFT.cpp b/tests/validation/CPP/DFT.cpp index e19e850589..84431399be 100644 --- a/tests/validation/CPP/DFT.cpp +++ b/tests/validation/CPP/DFT.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019-2020 Arm Limited. + * Copyright (c) 2019-2020, 2024 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -125,7 +125,7 @@ DATA_TEST_CASE(Real, framework::DatasetMode::ALL, shapes_2d_dft, auto backward = reference::ridft_2d(forward, is_odd); // Validate with input - validate(SimpleTensorAccessor(src), backward, RelativeTolerance(0.1f)); + validate(SimpleTensorAccessor(src), backward, RelativeTolerance(0.1f), 0.f, AbsoluteTolerance(0.001f)); } DATA_TEST_CASE(Complex, framework::DatasetMode::ALL, shapes_2d_dft, -- cgit v1.2.1