aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSiCong Li <sicong.li@arm.com>2020-12-03 12:52:28 +0000
committerSiCong Li <sicong.li@arm.com>2020-12-08 09:42:37 +0000
commit6bc4e9617f4c7679f612e967bceeb8177c3ffb68 (patch)
tree28b949065fc3cc0db679a0d890dc61000ba0b400 /tests
parentf7c5a41aebf8951ef783aa3d45f0bc4e98656e7b (diff)
downloadComputeLibrary-6bc4e9617f4c7679f612e967bceeb8177c3ffb68.tar.gz
Fix invalid usage of dataset::make
* To create a dataset with an enumerated list of items, the list needs to be enclosed with braces, otherwise it calls into the other make overloads where the items start denoting the range markers. * Remove dead code. Resolves COMPMID-4045 Signed-off-by: SiCong Li <sicong.li@arm.com> Change-Id: Id27ebbd0e8c9ec683839684f7ebcdd2378cf64b4 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4651 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/validation/CL/GEMM.cpp5
-rw-r--r--tests/validation/CL/GEMMLowpMatrixMultiplyNative.cpp2
-rw-r--r--tests/validation/NEON/GEMMLowp.cpp5
3 files changed, 2 insertions, 10 deletions
diff --git a/tests/validation/CL/GEMM.cpp b/tests/validation/CL/GEMM.cpp
index 392eeb1510..838920c29d 100644
--- a/tests/validation/CL/GEMM.cpp
+++ b/tests/validation/CL/GEMM.cpp
@@ -49,8 +49,7 @@ RelativeTolerance<float> tolerance_f32(0.001f); /**< Tolerance value for compari
constexpr float abs_tolerance_f32(
0.0001f); /**< Absolute tolerance value for comparing reference's output against implementation's output for floating point data types in case using relative tolerance fails because of small values */
RelativeTolerance<half_float::half> tolerance_f16(half(0.2)); /**< Tolerance value for comparing reference's output against implementation's output for floating point data types */
-constexpr float tolerance_num = 0.02f; /**< Tolerance number */
-const auto data_interleave = framework::dataset::make("M", 8, 14) * framework::dataset::make("N", 7, 14);
+constexpr float tolerance_num = 0.02f; /**< Tolerance number */
/** CNN data types */
const auto CNNDataTypes = framework::dataset::make("DataType",
@@ -60,8 +59,6 @@ const auto CNNDataTypes = framework::dataset::make("DataType",
});
} // namespace
-const auto data_transpose = framework::dataset::make("M", 8, 14) * framework::dataset::make("N", 7, 14);
-
TEST_SUITE(CL)
TEST_SUITE(GEMM)
diff --git a/tests/validation/CL/GEMMLowpMatrixMultiplyNative.cpp b/tests/validation/CL/GEMMLowpMatrixMultiplyNative.cpp
index 1cfeac59af..4a574d8f1d 100644
--- a/tests/validation/CL/GEMMLowpMatrixMultiplyNative.cpp
+++ b/tests/validation/CL/GEMMLowpMatrixMultiplyNative.cpp
@@ -81,7 +81,7 @@ const auto n0_values_precommit = framework::dataset::make("N0", { 4 });
const auto k0_values_precommit = framework::dataset::make("K0", { 16 });
/** M0 values to test - Nightly */
-const auto m0_values_nightly = framework::dataset::make("M0", 1, 2, 7);
+const auto m0_values_nightly = framework::dataset::make("M0", {1, 2, 7});
/** N0 values to test - Nightly */
const auto n0_values_nightly = framework::dataset::make("N0", { 1, 2, 3, 4, 8 });
diff --git a/tests/validation/NEON/GEMMLowp.cpp b/tests/validation/NEON/GEMMLowp.cpp
index 04282c2c3c..178e7c9388 100644
--- a/tests/validation/NEON/GEMMLowp.cpp
+++ b/tests/validation/NEON/GEMMLowp.cpp
@@ -46,11 +46,6 @@ namespace test
{
namespace validation
{
-namespace
-{
-const auto data_matrix_multiply = framework::dataset::make("M", 12, 20) * framework::dataset::make("N", 12, 20) * framework::dataset::make("K", 16);
-} // namespace
-
TEST_SUITE(NEON)
TEST_SUITE(GEMMLowp)
TEST_SUITE(MatrixMultiplyCore)