aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmark/CL
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-06-30 12:48:43 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:15:39 +0100
commit94450f1fc91a89778354c2e1c07a328ba86d9cfc (patch)
tree9a84b1b86f5361027492b6698ea946d2e321baba /tests/benchmark/CL
parentd4f8c27f08c968f608a9e0e9b88df1871f62cdd3 (diff)
downloadComputeLibrary-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/benchmark/CL')
-rw-r--r--tests/benchmark/CL/ActivationLayer.cpp1
-rw-r--r--tests/benchmark/CL/BitwiseAnd.cpp8
-rw-r--r--tests/benchmark/CL/ConvolutionLayer.cpp1
-rw-r--r--tests/benchmark/CL/FullyConnectedLayer.cpp1
-rw-r--r--tests/benchmark/CL/GEMM.cpp1
-rw-r--r--tests/benchmark/CL/GEMM.h8
-rw-r--r--tests/benchmark/CL/NormalizationLayer.cpp1
-rw-r--r--tests/benchmark/CL/PoolingLayer.cpp1
8 files changed, 8 insertions, 14 deletions
diff --git a/tests/benchmark/CL/ActivationLayer.cpp b/tests/benchmark/CL/ActivationLayer.cpp
index 5180d3d900..52a357b2a6 100644
--- a/tests/benchmark/CL/ActivationLayer.cpp
+++ b/tests/benchmark/CL/ActivationLayer.cpp
@@ -22,7 +22,6 @@
* SOFTWARE.
*/
#include "CL/CLAccessor.h"
-#include "CL/Helper.h"
#include "Globals.h"
#include "TensorLibrary.h"
#include "benchmark/Datasets.h"
diff --git a/tests/benchmark/CL/BitwiseAnd.cpp b/tests/benchmark/CL/BitwiseAnd.cpp
index a3deb3eb5b..4858c73948 100644
--- a/tests/benchmark/CL/BitwiseAnd.cpp
+++ b/tests/benchmark/CL/BitwiseAnd.cpp
@@ -22,7 +22,6 @@
* SOFTWARE.
*/
#include "CL/CLAccessor.h"
-#include "CL/Helper.h"
#include "Globals.h"
#include "TensorLibrary.h"
#include "benchmark/Datasets.h"
@@ -59,11 +58,12 @@ public:
profiler.add(std::make_shared<WallClockTimer>());
const std::string image_name = *(DataSet().begin() + state.range(0));
+ const RawTensor &raw = library->get(image_name);
// Create tensors
- src1 = create_tensor(image_name, DataType::U8);
- src2 = create_tensor(image_name, DataType::U8);
- dst = create_tensor(image_name, DataType::U8);
+ src1 = create_tensor<CLTensor>(raw.shape(), DataType::U8);
+ src2 = create_tensor<CLTensor>(raw.shape(), DataType::U8);
+ dst = create_tensor<CLTensor>(raw.shape(), DataType::U8);
// Create and configure function
band.configure(&src1, &src2, &dst);
diff --git a/tests/benchmark/CL/ConvolutionLayer.cpp b/tests/benchmark/CL/ConvolutionLayer.cpp
index e1f4fabdc3..e790273f9c 100644
--- a/tests/benchmark/CL/ConvolutionLayer.cpp
+++ b/tests/benchmark/CL/ConvolutionLayer.cpp
@@ -22,7 +22,6 @@
* SOFTWARE.
*/
#include "CL/CLAccessor.h"
-#include "CL/Helper.h"
#include "Globals.h"
#include "TensorLibrary.h"
#include "benchmark/Datasets.h"
diff --git a/tests/benchmark/CL/FullyConnectedLayer.cpp b/tests/benchmark/CL/FullyConnectedLayer.cpp
index 6e8c89fa0b..fb8e1bc09f 100644
--- a/tests/benchmark/CL/FullyConnectedLayer.cpp
+++ b/tests/benchmark/CL/FullyConnectedLayer.cpp
@@ -22,7 +22,6 @@
* SOFTWARE.
*/
#include "CL/CLAccessor.h"
-#include "CL/Helper.h"
#include "Globals.h"
#include "TensorLibrary.h"
#include "benchmark/Datasets.h"
diff --git a/tests/benchmark/CL/GEMM.cpp b/tests/benchmark/CL/GEMM.cpp
index a10da09cbe..87dad05f30 100644
--- a/tests/benchmark/CL/GEMM.cpp
+++ b/tests/benchmark/CL/GEMM.cpp
@@ -22,7 +22,6 @@
* SOFTWARE.
*/
#include "CL/CLAccessor.h"
-#include "CL/Helper.h"
#include "Globals.h"
#include "TensorLibrary.h"
#include "benchmark/Datasets.h"
diff --git a/tests/benchmark/CL/GEMM.h b/tests/benchmark/CL/GEMM.h
index 02a339609c..ca3d9ad594 100644
--- a/tests/benchmark/CL/GEMM.h
+++ b/tests/benchmark/CL/GEMM.h
@@ -59,10 +59,10 @@ public:
TensorShape shape_d = gemm_obj.shape_d;
// Create tensors
- a = create_tensor(shape_a, data_type);
- b = create_tensor(shape_b, data_type);
- c = create_tensor(shape_c, data_type);
- d = create_tensor(shape_d, data_type);
+ a = create_tensor<CLTensor>(shape_a, data_type);
+ b = create_tensor<CLTensor>(shape_b, data_type);
+ c = create_tensor<CLTensor>(shape_c, data_type);
+ d = create_tensor<CLTensor>(shape_d, data_type);
// Create and configure function
gemm_layer = std::unique_ptr<Function>(new Function());
diff --git a/tests/benchmark/CL/NormalizationLayer.cpp b/tests/benchmark/CL/NormalizationLayer.cpp
index 81d3c65912..28f89dce1f 100644
--- a/tests/benchmark/CL/NormalizationLayer.cpp
+++ b/tests/benchmark/CL/NormalizationLayer.cpp
@@ -22,7 +22,6 @@
* SOFTWARE.
*/
#include "CL/CLAccessor.h"
-#include "CL/Helper.h"
#include "Globals.h"
#include "TensorLibrary.h"
#include "benchmark/Datasets.h"
diff --git a/tests/benchmark/CL/PoolingLayer.cpp b/tests/benchmark/CL/PoolingLayer.cpp
index 5285f279e7..05764a412a 100644
--- a/tests/benchmark/CL/PoolingLayer.cpp
+++ b/tests/benchmark/CL/PoolingLayer.cpp
@@ -22,7 +22,6 @@
* SOFTWARE.
*/
#include "CL/CLAccessor.h"
-#include "CL/Helper.h"
#include "Globals.h"
#include "TensorLibrary.h"
#include "benchmark/Datasets.h"