aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/NEON/Fixedpoint
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation/NEON/Fixedpoint')
-rw-r--r--tests/validation/NEON/Fixedpoint/Exp_QS16.cpp7
-rw-r--r--tests/validation/NEON/Fixedpoint/Exp_QS8.cpp7
-rw-r--r--tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp7
-rw-r--r--tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp7
-rw-r--r--tests/validation/NEON/Fixedpoint/Log_QS16.cpp7
-rw-r--r--tests/validation/NEON/Fixedpoint/Log_QS8.cpp7
-rw-r--r--tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp7
-rw-r--r--tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp7
8 files changed, 24 insertions, 32 deletions
diff --git a/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp b/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp
index fe38a99d95..dc8603c963 100644
--- a/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp
+++ b/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp
@@ -23,7 +23,7 @@
*/
#include "AssetsLibrary.h"
#include "Globals.h"
-#include "NEON/NEAccessor.h"
+#include "NEON/Accessor.h"
#include "TypePrinter.h"
#include "Utils.h"
#include "validation/Datasets.h"
@@ -43,7 +43,6 @@
using namespace arm_compute;
using namespace arm_compute::test;
-using namespace arm_compute::test::neon;
using namespace arm_compute::test::validation;
namespace
@@ -80,7 +79,7 @@ Tensor compute_exp_qs16(const TensorShape &shape, int fixed_point_position)
// Fill tensors. Keep the range between [-1.0, 1.0) so the result won't
// overflow.
std::uniform_int_distribution<> distribution(-(1 << (fixed_point_position - 1)), (1 << (fixed_point_position - 1)));
- library->fill(NEAccessor(src), distribution, 0);
+ library->fill(Accessor(src), distribution, 0);
Iterator input(&src, window);
Iterator output(&dst, window);
@@ -113,7 +112,7 @@ BOOST_DATA_TEST_CASE(RunSmall, Small1DShape() * boost::unit_test::data::xrange(1
RawTensor ref_dst = Reference::compute_reference_fixed_point_operation(shape, DataType::QS16, DataType::QS16, FixedPointOp::EXP, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance, 0);
+ validate(Accessor(dst), ref_dst, tolerance, 0);
}
BOOST_AUTO_TEST_SUITE_END()
diff --git a/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp b/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp
index 8955099d81..dae01db41e 100644
--- a/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp
+++ b/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp
@@ -23,7 +23,7 @@
*/
#include "AssetsLibrary.h"
#include "Globals.h"
-#include "NEON/NEAccessor.h"
+#include "NEON/Accessor.h"
#include "TypePrinter.h"
#include "Utils.h"
#include "validation/Datasets.h"
@@ -43,7 +43,6 @@
using namespace arm_compute;
using namespace arm_compute::test;
-using namespace arm_compute::test::neon;
using namespace arm_compute::test::validation;
namespace
@@ -80,7 +79,7 @@ Tensor compute_exp_qs8(const TensorShape &shape, int fixed_point_position)
// Fill tensors. Keep the range between [-1.0, 1.0) so the result won't
// overflow. E.g. e^7 = 1096, which cannot be represented in QS8
std::uniform_int_distribution<> distribution(-(1 << (fixed_point_position - 1)), (1 << (fixed_point_position - 1)));
- library->fill(NEAccessor(src), distribution, 0);
+ library->fill(Accessor(src), distribution, 0);
Iterator input(&src, window);
Iterator output(&dst, window);
@@ -113,7 +112,7 @@ BOOST_DATA_TEST_CASE(RunSmall, Small1DShape() * boost::unit_test::data::xrange(1
RawTensor ref_dst = Reference::compute_reference_fixed_point_operation(shape, DataType::QS8, DataType::QS8, FixedPointOp::EXP, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance, 0);
+ validate(Accessor(dst), ref_dst, tolerance, 0);
}
BOOST_AUTO_TEST_SUITE_END()
diff --git a/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp b/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp
index 1d16ed5dd0..4306a9a8ba 100644
--- a/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp
+++ b/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp
@@ -23,7 +23,7 @@
*/
#include "AssetsLibrary.h"
#include "Globals.h"
-#include "NEON/NEAccessor.h"
+#include "NEON/Accessor.h"
#include "TypePrinter.h"
#include "Utils.h"
#include "validation/Datasets.h"
@@ -43,7 +43,6 @@
using namespace arm_compute;
using namespace arm_compute::test;
-using namespace arm_compute::test::neon;
using namespace arm_compute::test::validation;
namespace
@@ -79,7 +78,7 @@ Tensor compute_invsqrt_qs16(const TensorShape &shape, int fixed_point_position)
// Fill tensors. Keep the range between [1, 0x7FFF)
std::uniform_int_distribution<> distribution(1, 0x7FFF);
- library->fill(NEAccessor(src), distribution, 0);
+ library->fill(Accessor(src), distribution, 0);
Iterator input(&src, window);
Iterator output(&dst, window);
@@ -113,7 +112,7 @@ BOOST_DATA_TEST_CASE(RunSmall, boost::unit_test::data::xrange(1, 14), fixed_poin
RawTensor ref_dst = Reference::compute_reference_fixed_point_operation(shape, DataType::QS16, DataType::QS16, FixedPointOp::INV_SQRT, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance, 0);
+ validate(Accessor(dst), ref_dst, tolerance, 0);
}
BOOST_AUTO_TEST_SUITE_END()
diff --git a/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp b/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp
index 69805a0859..1a2acaf34b 100644
--- a/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp
+++ b/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp
@@ -23,7 +23,7 @@
*/
#include "AssetsLibrary.h"
#include "Globals.h"
-#include "NEON/NEAccessor.h"
+#include "NEON/Accessor.h"
#include "TypePrinter.h"
#include "Utils.h"
#include "validation/Datasets.h"
@@ -43,7 +43,6 @@
using namespace arm_compute;
using namespace arm_compute::test;
-using namespace arm_compute::test::neon;
using namespace arm_compute::test::validation;
namespace
@@ -79,7 +78,7 @@ Tensor compute_invsqrt_qs8(const TensorShape &shape, int fixed_point_position)
// Fill tensors. Keep the range between [1, 127).
std::uniform_int_distribution<> distribution(1, 127);
- library->fill(NEAccessor(src), distribution, 0);
+ library->fill(Accessor(src), distribution, 0);
Iterator input(&src, window);
Iterator output(&dst, window);
@@ -111,7 +110,7 @@ BOOST_DATA_TEST_CASE(Small1DShape, SmallShapes() * boost::unit_test::data::xrang
RawTensor ref_dst = Reference::compute_reference_fixed_point_operation(shape, DataType::QS8, DataType::QS8, FixedPointOp::INV_SQRT, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance, 0);
+ validate(Accessor(dst), ref_dst, tolerance, 0);
}
BOOST_AUTO_TEST_SUITE_END()
diff --git a/tests/validation/NEON/Fixedpoint/Log_QS16.cpp b/tests/validation/NEON/Fixedpoint/Log_QS16.cpp
index 0b5bc3a7cc..71582d8f96 100644
--- a/tests/validation/NEON/Fixedpoint/Log_QS16.cpp
+++ b/tests/validation/NEON/Fixedpoint/Log_QS16.cpp
@@ -23,7 +23,7 @@
*/
#include "AssetsLibrary.h"
#include "Globals.h"
-#include "NEON/NEAccessor.h"
+#include "NEON/Accessor.h"
#include "TypePrinter.h"
#include "Utils.h"
#include "validation/Datasets.h"
@@ -43,7 +43,6 @@
using namespace arm_compute;
using namespace arm_compute::test;
-using namespace arm_compute::test::neon;
using namespace arm_compute::test::validation;
namespace
@@ -80,7 +79,7 @@ Tensor compute_log_qs16(const TensorShape &shape, int fixed_point_position)
// Fill tensors. Keep the range between [(1 << (fixed_point_position - 1), 0x3FFF) so the result won't
// overflow.
std::uniform_int_distribution<> distribution((1 << (fixed_point_position - 1)), 0x3FFF);
- library->fill(NEAccessor(src), distribution, 0);
+ library->fill(Accessor(src), distribution, 0);
Iterator input(&src, window);
Iterator output(&dst, window);
@@ -112,7 +111,7 @@ BOOST_DATA_TEST_CASE(RunSmall, Small1DShape() * boost::unit_test::data::xrange(4
RawTensor ref_dst = Reference::compute_reference_fixed_point_operation(shape, DataType::QS16, DataType::QS16, FixedPointOp::LOG, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance, 0);
+ validate(Accessor(dst), ref_dst, tolerance, 0);
}
BOOST_AUTO_TEST_SUITE_END()
diff --git a/tests/validation/NEON/Fixedpoint/Log_QS8.cpp b/tests/validation/NEON/Fixedpoint/Log_QS8.cpp
index 685d0f1230..cc74d12e10 100644
--- a/tests/validation/NEON/Fixedpoint/Log_QS8.cpp
+++ b/tests/validation/NEON/Fixedpoint/Log_QS8.cpp
@@ -23,7 +23,7 @@
*/
#include "AssetsLibrary.h"
#include "Globals.h"
-#include "NEON/NEAccessor.h"
+#include "NEON/Accessor.h"
#include "TypePrinter.h"
#include "Utils.h"
#include "validation/Datasets.h"
@@ -43,7 +43,6 @@
using namespace arm_compute;
using namespace arm_compute::test;
-using namespace arm_compute::test::neon;
using namespace arm_compute::test::validation;
namespace
@@ -80,7 +79,7 @@ Tensor compute_log_qs8(const TensorShape &shape, int fixed_point_position)
// Fill tensors. Keep the range between [(1 << (fixed_point_position - 1), 63) so the result won't
// overflow. E.g. for Q2.5 ln(0.001) = -6.9, which cannot be represented.
std::uniform_int_distribution<> distribution((1 << (fixed_point_position - 1)), 0x3F);
- library->fill(NEAccessor(src), distribution, 0);
+ library->fill(Accessor(src), distribution, 0);
Iterator input(&src, window);
Iterator output(&dst, window);
@@ -112,7 +111,7 @@ BOOST_DATA_TEST_CASE(RunSmall, Small1DShape() * boost::unit_test::data::xrange(3
RawTensor ref_dst = Reference::compute_reference_fixed_point_operation(shape, DataType::QS8, DataType::QS8, FixedPointOp::LOG, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance, 0);
+ validate(Accessor(dst), ref_dst, tolerance, 0);
}
BOOST_AUTO_TEST_SUITE_END()
diff --git a/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp b/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp
index 9b62d3a8cf..2081948d6c 100644
--- a/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp
+++ b/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp
@@ -23,7 +23,7 @@
*/
#include "AssetsLibrary.h"
#include "Globals.h"
-#include "NEON/NEAccessor.h"
+#include "NEON/Accessor.h"
#include "TypePrinter.h"
#include "Utils.h"
#include "validation/Datasets.h"
@@ -43,7 +43,6 @@
using namespace arm_compute;
using namespace arm_compute::test;
-using namespace arm_compute::test::neon;
using namespace arm_compute::test::validation;
namespace
@@ -80,7 +79,7 @@ Tensor compute_reciprocal_qs16(const TensorShape &shape, int fixed_point_positio
// Fill tensors. Keep the range between [15, 0x7FFF) so the result won't
// overflow.
std::uniform_int_distribution<> distribution(15, 0x7FFF);
- library->fill(NEAccessor(src), distribution, 0);
+ library->fill(Accessor(src), distribution, 0);
Iterator input(&src, window);
Iterator output(&dst, window);
@@ -112,7 +111,7 @@ BOOST_DATA_TEST_CASE(RunSmall, Small1DShape() * boost::unit_test::data::xrange(1
RawTensor ref_dst = Reference::compute_reference_fixed_point_operation(shape, DataType::QS16, DataType::QS16, FixedPointOp::RECIPROCAL, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance, 0);
+ validate(Accessor(dst), ref_dst, tolerance, 0);
}
BOOST_AUTO_TEST_SUITE_END()
diff --git a/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp b/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp
index 527ce722ea..4b808ce3e0 100644
--- a/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp
+++ b/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp
@@ -23,7 +23,7 @@
*/
#include "AssetsLibrary.h"
#include "Globals.h"
-#include "NEON/NEAccessor.h"
+#include "NEON/Accessor.h"
#include "TypePrinter.h"
#include "Utils.h"
#include "validation/Datasets.h"
@@ -43,7 +43,6 @@
using namespace arm_compute;
using namespace arm_compute::test;
-using namespace arm_compute::test::neon;
using namespace arm_compute::test::validation;
namespace
@@ -80,7 +79,7 @@ Tensor compute_reciprocal_qs8(const TensorShape &shape, int fixed_point_position
// Fill tensors. Keep the range between [15, 100) so the result won't
// overflow. E.g. for Q2.5 reciprocal(0.001) = 1000, which cannot be represented.
std::uniform_int_distribution<> distribution(15, 0x7F);
- library->fill(NEAccessor(src), distribution, 0);
+ library->fill(Accessor(src), distribution, 0);
Iterator input(&src, window);
Iterator output(&dst, window);
@@ -112,7 +111,7 @@ BOOST_DATA_TEST_CASE(RunSmall, Small1DShape() * boost::unit_test::data::xrange(1
RawTensor ref_dst = Reference::compute_reference_fixed_point_operation(shape, DataType::QS8, DataType::QS8, FixedPointOp::RECIPROCAL, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance, 0);
+ validate(Accessor(dst), ref_dst, tolerance, 0);
}
BOOST_AUTO_TEST_SUITE_END()