Skip to content

Commit afd78dd

Browse files
committed
test: allow up to 7% mismatches in DequantizeF32 tests
Change-Id: I3e13f356ebb6861cecc235cf6c24f35d744d25ff Signed-off-by: Pablo Marquez Tello <[email protected]>
1 parent 88d79e5 commit afd78dd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/validation/NEON/ConvolutionLayer.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ constexpr float tolerance_num = 0.07f;
8787
#endif /* ARM_COMPUTE_ENABLE_FP16 */
8888

8989
#if __aarch64__
90-
constexpr float tolerance_num_dequantize_f32 = 1e-5f; /**< Tolerance number for the FP32 dequantization */
90+
constexpr float tolerance_num_dequantize_f32 = 0.07f; /**< Tolerance number for the FP32 dequantization */
9191
#endif // #if __aarch64__
9292

9393
constexpr AbsoluteTolerance<float> tolerance_qasymm8(0.0); /**< Tolerance value for comparing reference's output against implementation's output for quantized data types */
@@ -321,9 +321,7 @@ FIXTURE_DATA_TEST_CASE(
321321
)
322322
)
323323
{
324-
325-
constexpr float tolerance_percentage = 0.02f;
326-
validate(Accessor(_target), _reference, rel_tolerance_f32, tolerance_percentage, float(abs_tolerance_f32));
324+
validate(Accessor(_target), _reference, rel_tolerance_f32, tolerance_num_dequantize_f32, float(abs_tolerance_f32));
327325
}
328326

329327
FIXTURE_DATA_TEST_CASE(
@@ -1595,8 +1593,7 @@ FIXTURE_DATA_TEST_CASE(
15951593
)
15961594
)
15971595
{
1598-
constexpr float tolerance_percentage = 0.02f;
1599-
validate(Accessor(_target), _reference, rel_tolerance_f32, tolerance_percentage, float(abs_tolerance_f32));
1596+
validate(Accessor(_target), _reference, rel_tolerance_f32, tolerance_num_dequantize_f32, float(abs_tolerance_f32));
16001597
}
16011598

16021599
FIXTURE_DATA_TEST_CASE(

0 commit comments

Comments
 (0)