diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-07-18 15:44:21 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | d58cec032556abb103cdf7564ab29762d5c4c051 (patch) | |
tree | 1c938fdb7f087129ee54654eeee55c53ffe97ca5 /tests/validation/NEON/TableLookup.cpp | |
parent | 81527bff7d6fc337fb9edec23c0b63a96b500bd4 (diff) | |
download | ComputeLibrary-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/TableLookup.cpp')
-rw-r--r-- | tests/validation/NEON/TableLookup.cpp | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/tests/validation/NEON/TableLookup.cpp b/tests/validation/NEON/TableLookup.cpp index 862e13a8b6..70b767eb16 100644 --- a/tests/validation/NEON/TableLookup.cpp +++ b/tests/validation/NEON/TableLookup.cpp @@ -23,9 +23,9 @@ */ #include "AssetsLibrary.h" #include "Globals.h" +#include "NEON/Accessor.h" #include "NEON/Helper.h" -#include "NEON/NEAccessor.h" -#include "NEON/NELutAccessor.h" +#include "NEON/LutAccessor.h" #include "PaddingCalculator.h" #include "RawLutAccessor.h" #include "TypePrinter.h" @@ -48,7 +48,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_table_lookup(const TensorShape &shape, DataType data_type, Lut &l BOOST_TEST(!dst.info()->is_resizable()); // Fill tensors - library->fill_tensor_uniform(NEAccessor(src), 0); + library->fill_tensor_uniform(Accessor(src), 0); // Compute function table_lookup.run(); @@ -102,11 +101,11 @@ BOOST_DATA_TEST_CASE(Configuration, (SmallShapes() + LargeShapes()) * boost::uni if(data_type == DataType::U8) { - fill_lookuptable(NELutAccessor<uint8_t>(lut)); + fill_lookuptable(LutAccessor<uint8_t>(lut)); } else { - fill_lookuptable(NELutAccessor<int16_t>(lut)); + fill_lookuptable(LutAccessor<int16_t>(lut)); } // Create tensors @@ -146,7 +145,7 @@ BOOST_DATA_TEST_CASE(RunSmall, std::map<uint8_t, uint8_t> rawlut; //Fill the Lut - fill_lookuptable(NELutAccessor<uint8_t>(lut)); + fill_lookuptable(LutAccessor<uint8_t>(lut)); fill_lookuptable(RawLutAccessor<uint8_t>(rawlut)); // Compute function @@ -156,7 +155,7 @@ BOOST_DATA_TEST_CASE(RunSmall, RawTensor ref_dst = Reference::compute_reference_table_lookup(shape, data_type, rawlut); // Validate output - validate(NEAccessor(dst), ref_dst); + validate(Accessor(dst), ref_dst); } else { @@ -164,7 +163,7 @@ BOOST_DATA_TEST_CASE(RunSmall, std::map<int16_t, int16_t> rawlut; //Fill the Lut - fill_lookuptable(NELutAccessor<int16_t>(lut)); + fill_lookuptable(LutAccessor<int16_t>(lut)); fill_lookuptable(RawLutAccessor<int16_t>(rawlut)); // Compute function @@ -174,7 +173,7 @@ BOOST_DATA_TEST_CASE(RunSmall, RawTensor ref_dst = Reference::compute_reference_table_lookup(shape, data_type, rawlut); // Validate output - validate(NEAccessor(dst), ref_dst); + validate(Accessor(dst), ref_dst); } } @@ -193,7 +192,7 @@ BOOST_DATA_TEST_CASE(RunLarge, std::map<uint8_t, uint8_t> rawlut; //Fill the Lut - fill_lookuptable(NELutAccessor<uint8_t>(lut)); + fill_lookuptable(LutAccessor<uint8_t>(lut)); fill_lookuptable(RawLutAccessor<uint8_t>(rawlut)); // Compute function @@ -203,7 +202,7 @@ BOOST_DATA_TEST_CASE(RunLarge, RawTensor ref_dst = Reference::compute_reference_table_lookup(shape, data_type, rawlut); // Validate output - validate(NEAccessor(dst), ref_dst); + validate(Accessor(dst), ref_dst); } else { @@ -211,7 +210,7 @@ BOOST_DATA_TEST_CASE(RunLarge, std::map<int16_t, int16_t> rawlut; //Fill the Lut - fill_lookuptable(NELutAccessor<int16_t>(lut)); + fill_lookuptable(LutAccessor<int16_t>(lut)); fill_lookuptable(RawLutAccessor<int16_t>(rawlut)); // Compute function @@ -221,7 +220,7 @@ BOOST_DATA_TEST_CASE(RunLarge, RawTensor ref_dst = Reference::compute_reference_table_lookup(shape, data_type, rawlut); // Validate output - validate(NEAccessor(dst), ref_dst); + validate(Accessor(dst), ref_dst); } } |