aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/NEON/SoftmaxLayer.cpp
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-07-18 15:44:21 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:16:42 +0100
commitd58cec032556abb103cdf7564ab29762d5c4c051 (patch)
tree1c938fdb7f087129ee54654eeee55c53ffe97ca5 /tests/validation/NEON/SoftmaxLayer.cpp
parent81527bff7d6fc337fb9edec23c0b63a96b500bd4 (diff)
downloadComputeLibrary-d58cec032556abb103cdf7564ab29762d5c4c051.tar.gz
COMPMID-415: Cleanup accessors
Change-Id: Id19c8c1ea76f6e6679a4ac770e804f8012a2b5a6 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/80937 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/validation/NEON/SoftmaxLayer.cpp')
-rw-r--r--tests/validation/NEON/SoftmaxLayer.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/tests/validation/NEON/SoftmaxLayer.cpp b/tests/validation/NEON/SoftmaxLayer.cpp
index 020efc0419..92ca673f17 100644
--- a/tests/validation/NEON/SoftmaxLayer.cpp
+++ b/tests/validation/NEON/SoftmaxLayer.cpp
@@ -23,7 +23,7 @@
*/
#include "AssetsLibrary.h"
#include "Globals.h"
-#include "NEON/NEAccessor.h"
+#include "NEON/Accessor.h"
#include "PaddingCalculator.h"
#include "TypePrinter.h"
#include "Utils.h"
@@ -44,7 +44,6 @@
using namespace arm_compute;
using namespace arm_compute::test;
-using namespace arm_compute::test::neon;
using namespace arm_compute::test::validation;
namespace
@@ -83,13 +82,13 @@ Tensor compute_softmax_layer(const TensorShape &shape, DataType dt, int fixed_po
if(arm_compute::is_data_type_float(dt))
{
std::uniform_real_distribution<> distribution(-1000.f, 1000.f);
- library->fill(NEAccessor(src), distribution, 0);
+ library->fill(Accessor(src), distribution, 0);
}
else
{
int one_fixed = 1 << fixed_point_position;
std::uniform_int_distribution<> distribution(-one_fixed, one_fixed);
- library->fill(NEAccessor(src), distribution, 0);
+ library->fill(Accessor(src), distribution, 0);
}
// Compute function
@@ -143,7 +142,7 @@ BOOST_DATA_TEST_CASE(RunSmall, SmallShapes() * CNNFloatDataTypes(), shape, dt)
RawTensor ref_dst = Reference::compute_reference_softmax_layer(shape, dt);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance);
+ validate(Accessor(dst), ref_dst, tolerance);
}
BOOST_TEST_DECORATOR(*boost::unit_test::label("nightly"))
@@ -156,7 +155,7 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * CNNFloatDataTypes(), shape, dt)
RawTensor ref_dst = Reference::compute_reference_softmax_layer(shape, dt);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance);
+ validate(Accessor(dst), ref_dst, tolerance);
}
BOOST_AUTO_TEST_SUITE_END()
@@ -174,7 +173,7 @@ BOOST_DATA_TEST_CASE(RunSmall, SmallShapes() * boost::unit_test::data::xrange(1,
RawTensor ref_dst = Reference::compute_reference_softmax_layer(shape, DataType::QS8, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance_fixed_point);
+ validate(Accessor(dst), ref_dst, tolerance_fixed_point);
}
BOOST_TEST_DECORATOR(*boost::unit_test::label("nightly"))
@@ -188,7 +187,7 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * boost::unit_test::data::xrange(1,
RawTensor ref_dst = Reference::compute_reference_softmax_layer(shape, DataType::QS8, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance_fixed_point);
+ validate(Accessor(dst), ref_dst, tolerance_fixed_point);
}
BOOST_AUTO_TEST_SUITE_END()
@@ -205,7 +204,7 @@ BOOST_DATA_TEST_CASE(RunSmall, SmallShapes() * boost::unit_test::data::xrange(1,
RawTensor ref_dst = Reference::compute_reference_softmax_layer(shape, DataType::QS16, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance_fixed_point);
+ validate(Accessor(dst), ref_dst, tolerance_fixed_point);
}
BOOST_TEST_DECORATOR(*boost::unit_test::label("nightly"))
@@ -219,7 +218,7 @@ BOOST_DATA_TEST_CASE(RunLarge, LargeShapes() * boost::unit_test::data::xrange(1,
RawTensor ref_dst = Reference::compute_reference_softmax_layer(shape, DataType::QS16, fixed_point_position);
// Validate output
- validate(NEAccessor(dst), ref_dst, tolerance_fixed_point);
+ validate(Accessor(dst), ref_dst, tolerance_fixed_point);
}
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE_END()