From 83ca105b1fc8c440fe56e3389e8ffd7346612411 Mon Sep 17 00:00:00 2001 From: Gunes Bayir Date: Tue, 16 Apr 2024 09:45:58 +0100 Subject: Fix v7 test failure when core matmul result is dequantized into fp32 Partially Resolves: ONCPUML-1444, MLINFSW-439 Change-Id: Ic7498d6944df2848f3e82eaf4e11cc5cb6ef5754 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/11424 Reviewed-by: Anitha Raj Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins Tested-by: Arm Jenkins --- tests/validation/NEON/GEMMLowp.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/validation/NEON/GEMMLowp.cpp b/tests/validation/NEON/GEMMLowp.cpp index 1231c21ddb..9b1da61ed7 100644 --- a/tests/validation/NEON/GEMMLowp.cpp +++ b/tests/validation/NEON/GEMMLowp.cpp @@ -53,7 +53,6 @@ namespace { constexpr AbsoluteTolerance tolerance_batched(1); constexpr AbsoluteTolerance tolerance_quant(1); - constexpr AbsoluteTolerance tolerance_dequantized(0.01f); } // namespace @@ -357,7 +356,10 @@ FIXTURE_DATA_TEST_CASE(RunLarge, NEGEMMLowpMatrixMultiplyCoreDynamicQuantization } TEST_SUITE_END() // DynamicQuantization +#ifdef __aarch64__ +// Deqaunt tests involve returning F32 from the MatrixMultiplyCore kernels and is only implemented in aarch64 TEST_SUITE(Dequant) +constexpr AbsoluteTolerance tolerance_dequantized(0.01f); FIXTURE_DATA_TEST_CASE(RunSmall, NEGEMMLowpDequantizedMatrixMultiplyValidationFixture, framework::DatasetMode::ALL, datasets::SmallGEMMLowpDataset()) { // Validate output @@ -370,6 +372,7 @@ FIXTURE_DATA_TEST_CASE(RunLarge, NEGEMMLowpDequantizedMatrixMultiplyValidationFi validate(Accessor(_target), _reference, tolerance_dequantized); } TEST_SUITE_END() // Dequant +#endif // __aarch64__ TEST_SUITE_END() // MatrixMultiplyCore TEST_SUITE_END() // GEMMLowp -- cgit v1.2.1