diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-06-30 12:48:43 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:15:39 +0100 |
commit | 94450f1fc91a89778354c2e1c07a328ba86d9cfc (patch) | |
tree | 9a84b1b86f5361027492b6698ea946d2e321baba /tests/validation/NEON/Fixedpoint | |
parent | d4f8c27f08c968f608a9e0e9b88df1871f62cdd3 (diff) | |
download | ComputeLibrary-94450f1fc91a89778354c2e1c07a328ba86d9cfc.tar.gz |
COMPMID-417: Use a common create_tensor function
Change-Id: I6b0511484a5b433ebec3fd62d778e64dcb4f89b5
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79362
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/validation/NEON/Fixedpoint')
-rw-r--r-- | tests/validation/NEON/Fixedpoint/Exp_QS16.cpp | 5 | ||||
-rw-r--r-- | tests/validation/NEON/Fixedpoint/Exp_QS8.cpp | 5 | ||||
-rw-r--r-- | tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp | 5 | ||||
-rw-r--r-- | tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp | 5 | ||||
-rw-r--r-- | tests/validation/NEON/Fixedpoint/Log_QS16.cpp | 5 | ||||
-rw-r--r-- | tests/validation/NEON/Fixedpoint/Log_QS8.cpp | 5 | ||||
-rw-r--r-- | tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp | 5 | ||||
-rw-r--r-- | tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp | 5 |
8 files changed, 16 insertions, 24 deletions
diff --git a/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp b/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp index e6d7d860cb..bb8961af73 100644 --- a/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp +++ b/tests/validation/NEON/Fixedpoint/Exp_QS16.cpp @@ -22,7 +22,6 @@ * SOFTWARE. */ #include "Globals.h" -#include "NEON/Helper.h" #include "NEON/NEAccessor.h" #include "TensorLibrary.h" #include "TypePrinter.h" @@ -60,8 +59,8 @@ const float tolerance = 1.0f; /**< Tolerance value for comparing reference's out Tensor compute_exp_qs16(const TensorShape &shape, int fixed_point_position) { // Create tensors - Tensor src = create_tensor(shape, DataType::QS16, 1, fixed_point_position); - Tensor dst = create_tensor(shape, DataType::QS16, 1, fixed_point_position); + Tensor src = create_tensor<Tensor>(shape, DataType::QS16, 1, fixed_point_position); + Tensor dst = create_tensor<Tensor>(shape, DataType::QS16, 1, fixed_point_position); constexpr unsigned int num_elems_processed_per_iteration = 8; Window window = calculate_max_window(*src.info(), Steps(num_elems_processed_per_iteration)); diff --git a/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp b/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp index f8fc0c2ea3..e901f60986 100644 --- a/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp +++ b/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp @@ -22,7 +22,6 @@ * SOFTWARE. */ #include "Globals.h" -#include "NEON/Helper.h" #include "NEON/NEAccessor.h" #include "TensorLibrary.h" #include "TypePrinter.h" @@ -60,8 +59,8 @@ const float tolerance = 0.0f; /**< Tolerance value for comparing reference's out Tensor compute_exp_qs8(const TensorShape &shape, int fixed_point_position) { // Create tensors - Tensor src = create_tensor(shape, DataType::QS8, 1, fixed_point_position); - Tensor dst = create_tensor(shape, DataType::QS8, 1, fixed_point_position); + Tensor src = create_tensor<Tensor>(shape, DataType::QS8, 1, fixed_point_position); + Tensor dst = create_tensor<Tensor>(shape, DataType::QS8, 1, fixed_point_position); constexpr unsigned int num_elems_processed_per_iteration = 16; Window window = calculate_max_window(*src.info(), Steps(num_elems_processed_per_iteration)); diff --git a/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp b/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp index 9211ccfe50..6b674860d8 100644 --- a/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp +++ b/tests/validation/NEON/Fixedpoint/Invsqrt_QS16.cpp @@ -22,7 +22,6 @@ * SOFTWARE. */ #include "Globals.h" -#include "NEON/Helper.h" #include "NEON/NEAccessor.h" #include "TensorLibrary.h" #include "TypePrinter.h" @@ -60,8 +59,8 @@ const float tolerance = 5.0f; /**< Tolerance value for comparing reference's out Tensor compute_invsqrt_qs16(const TensorShape &shape, int fixed_point_position) { // Create tensors - Tensor src = create_tensor(shape, DataType::QS16, 1, fixed_point_position); - Tensor dst = create_tensor(shape, DataType::QS16, 1, fixed_point_position); + Tensor src = create_tensor<Tensor>(shape, DataType::QS16, 1, fixed_point_position); + Tensor dst = create_tensor<Tensor>(shape, DataType::QS16, 1, fixed_point_position); constexpr unsigned int num_elems_processed_per_iteration = 8; Window window = calculate_max_window(*src.info(), Steps(num_elems_processed_per_iteration)); diff --git a/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp b/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp index ab63cbe76f..78719d1290 100644 --- a/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp +++ b/tests/validation/NEON/Fixedpoint/Invsqrt_QS8.cpp @@ -22,7 +22,6 @@ * SOFTWARE. */ #include "Globals.h" -#include "NEON/Helper.h" #include "NEON/NEAccessor.h" #include "TensorLibrary.h" #include "TypePrinter.h" @@ -60,8 +59,8 @@ const float tolerance = 4.0f; /**< Tolerance value for comparing reference's out Tensor compute_invsqrt_qs8(const TensorShape &shape, int fixed_point_position) { // Create tensors - Tensor src = create_tensor(shape, DataType::QS8, 1, fixed_point_position); - Tensor dst = create_tensor(shape, DataType::QS8, 1, fixed_point_position); + Tensor src = create_tensor<Tensor>(shape, DataType::QS8, 1, fixed_point_position); + Tensor dst = create_tensor<Tensor>(shape, DataType::QS8, 1, fixed_point_position); constexpr unsigned int num_elems_processed_per_iteration = 16; Window window = calculate_max_window(*src.info(), Steps(num_elems_processed_per_iteration)); diff --git a/tests/validation/NEON/Fixedpoint/Log_QS16.cpp b/tests/validation/NEON/Fixedpoint/Log_QS16.cpp index c23d12725b..f7a9bc8ccc 100644 --- a/tests/validation/NEON/Fixedpoint/Log_QS16.cpp +++ b/tests/validation/NEON/Fixedpoint/Log_QS16.cpp @@ -22,7 +22,6 @@ * SOFTWARE. */ #include "Globals.h" -#include "NEON/Helper.h" #include "NEON/NEAccessor.h" #include "TensorLibrary.h" #include "TypePrinter.h" @@ -60,8 +59,8 @@ const float tolerance = 7.0f; /**< Tolerance value for comparing reference's out Tensor compute_log_qs16(const TensorShape &shape, int fixed_point_position) { // Create tensors - Tensor src = create_tensor(shape, DataType::QS16, 1, fixed_point_position); - Tensor dst = create_tensor(shape, DataType::QS16, 1, fixed_point_position); + Tensor src = create_tensor<Tensor>(shape, DataType::QS16, 1, fixed_point_position); + Tensor dst = create_tensor<Tensor>(shape, DataType::QS16, 1, fixed_point_position); constexpr unsigned int num_elems_processed_per_iteration = 8; Window window = calculate_max_window(*src.info(), Steps(num_elems_processed_per_iteration)); diff --git a/tests/validation/NEON/Fixedpoint/Log_QS8.cpp b/tests/validation/NEON/Fixedpoint/Log_QS8.cpp index 6789ec7264..8cdbd30867 100644 --- a/tests/validation/NEON/Fixedpoint/Log_QS8.cpp +++ b/tests/validation/NEON/Fixedpoint/Log_QS8.cpp @@ -22,7 +22,6 @@ * SOFTWARE. */ #include "Globals.h" -#include "NEON/Helper.h" #include "NEON/NEAccessor.h" #include "TensorLibrary.h" #include "TypePrinter.h" @@ -60,8 +59,8 @@ const float tolerance = 5; /**< Tolerance value for comparing reference's output Tensor compute_log_qs8(const TensorShape &shape, int fixed_point_position) { // Create tensors - Tensor src = create_tensor(shape, DataType::QS8, 1, fixed_point_position); - Tensor dst = create_tensor(shape, DataType::QS8, 1, fixed_point_position); + Tensor src = create_tensor<Tensor>(shape, DataType::QS8, 1, fixed_point_position); + Tensor dst = create_tensor<Tensor>(shape, DataType::QS8, 1, fixed_point_position); constexpr unsigned int num_elems_processed_per_iteration = 16; Window window = calculate_max_window(*src.info(), Steps(num_elems_processed_per_iteration)); diff --git a/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp b/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp index c66cf0e6e6..1ef73e2847 100644 --- a/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp +++ b/tests/validation/NEON/Fixedpoint/Reciprocal_QS16.cpp @@ -22,7 +22,6 @@ * SOFTWARE. */ #include "Globals.h" -#include "NEON/Helper.h" #include "NEON/NEAccessor.h" #include "TensorLibrary.h" #include "TypePrinter.h" @@ -60,8 +59,8 @@ const float tolerance = 9.0f; /**< Tolerance value for comparing reference's out Tensor compute_reciprocal_qs16(const TensorShape &shape, int fixed_point_position) { // Create tensors - Tensor src = create_tensor(shape, DataType::QS16, 1, fixed_point_position); - Tensor dst = create_tensor(shape, DataType::QS16, 1, fixed_point_position); + Tensor src = create_tensor<Tensor>(shape, DataType::QS16, 1, fixed_point_position); + Tensor dst = create_tensor<Tensor>(shape, DataType::QS16, 1, fixed_point_position); constexpr unsigned int num_elems_processed_per_iteration = 8; Window window = calculate_max_window(*src.info(), Steps(num_elems_processed_per_iteration)); diff --git a/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp b/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp index f1f130a9cb..9c33a9ebcb 100644 --- a/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp +++ b/tests/validation/NEON/Fixedpoint/Reciprocal_QS8.cpp @@ -22,7 +22,6 @@ * SOFTWARE. */ #include "Globals.h" -#include "NEON/Helper.h" #include "NEON/NEAccessor.h" #include "TensorLibrary.h" #include "TypePrinter.h" @@ -60,8 +59,8 @@ const float tolerance = 3; /**< Tolerance value for comparing reference's output Tensor compute_reciprocal_qs8(const TensorShape &shape, int fixed_point_position) { // Create tensors - Tensor src = create_tensor(shape, DataType::QS8, 1, fixed_point_position); - Tensor dst = create_tensor(shape, DataType::QS8, 1, fixed_point_position); + Tensor src = create_tensor<Tensor>(shape, DataType::QS8, 1, fixed_point_position); + Tensor dst = create_tensor<Tensor>(shape, DataType::QS8, 1, fixed_point_position); constexpr unsigned int num_elems_processed_per_iteration = 16; Window window = calculate_max_window(*src.info(), Steps(num_elems_processed_per_iteration)); |