From 4b66c69857f1871a32744363886902dc0f25757a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Shubham=20Gupta/System=20SW=20/SRI-Bangalore/Engineer/?= =?utf8?q?=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Thu, 25 Oct 2018 13:03:37 +0530 Subject: [PATCH] Remove unused headers and functions (#3316) This patch will remove all unused headers and functions from following files: CLActivationLayerExKernel.cpp CLBatchToSpaceNDKernel.cpp CLDepthToSpaceKernel.cpp CLEqualKernel.cpp CLGatherKernel.cpp CLNegKernel.cpp CLPixelWiseDivisionKernel.cpp CLReduceMaxKernel.cpp CLReduceSumKernel.cpp CLReductionMeanKernel.cpp CLSpaceToDepthKernel.cpp CLSquaredDifferenceKernel.cpp CLStridedSliceKernel.cpp Signed-off-by: shubham --- .../src/core/CL/kernels/CLActivationLayerExKernel.cpp | 3 --- .../src/core/CL/kernels/CLBatchToSpaceNDKernel.cpp | 3 --- .../src/core/CL/kernels/CLDepthToSpaceKernel.cpp | 3 --- libs/ARMComputeEx/src/core/CL/kernels/CLEqualKernel.cpp | 2 -- libs/ARMComputeEx/src/core/CL/kernels/CLGatherKernel.cpp | 3 --- libs/ARMComputeEx/src/core/CL/kernels/CLNegKernel.cpp | 2 -- .../src/core/CL/kernels/CLPixelWiseDivisionKernel.cpp | 3 --- libs/ARMComputeEx/src/core/CL/kernels/CLReduceMaxKernel.cpp | 3 --- libs/ARMComputeEx/src/core/CL/kernels/CLReduceSumKernel.cpp | 2 -- .../src/core/CL/kernels/CLReductionMeanKernel.cpp | 2 -- .../src/core/CL/kernels/CLSpaceToDepthKernel.cpp | 3 --- .../src/core/CL/kernels/CLSquaredDifferenceKernel.cpp | 2 -- .../src/core/CL/kernels/CLStridedSliceKernel.cpp | 12 ------------ 13 files changed, 43 deletions(-) diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLActivationLayerExKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLActivationLayerExKernel.cpp index 70331ff..b7c56cb 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLActivationLayerExKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLActivationLayerExKernel.cpp @@ -31,9 +31,6 @@ #include "arm_compute/core/Types.h" #include "arm_compute/core/TypesEx.h" -#include "support/ToolchainSupport.h" - -#include using namespace arm_compute; diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLBatchToSpaceNDKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLBatchToSpaceNDKernel.cpp index d939999..f8d7248 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLBatchToSpaceNDKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLBatchToSpaceNDKernel.cpp @@ -27,9 +27,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include -#include -#include #include using namespace arm_compute; diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLDepthToSpaceKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLDepthToSpaceKernel.cpp index ae22383..e95feae 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLDepthToSpaceKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLDepthToSpaceKernel.cpp @@ -27,9 +27,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include -#include -#include #include using namespace arm_compute; diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLEqualKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLEqualKernel.cpp index abe4c40..7bac251 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLEqualKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLEqualKernel.cpp @@ -27,8 +27,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include - using namespace arm_compute; CLEqualKernel::CLEqualKernel() : _input1(nullptr), _input2(nullptr), _output(nullptr) {} diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLGatherKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLGatherKernel.cpp index 1e56a78..e04f63e 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLGatherKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLGatherKernel.cpp @@ -27,9 +27,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include -#include -#include #include using namespace arm_compute; diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLNegKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLNegKernel.cpp index 86b46b6..5b4984f 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLNegKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLNegKernel.cpp @@ -27,8 +27,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include - using namespace arm_compute; CLNegKernel::CLNegKernel() : _input(nullptr), _output(nullptr) {} diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLPixelWiseDivisionKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLPixelWiseDivisionKernel.cpp index a3e0163..843e548 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLPixelWiseDivisionKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLPixelWiseDivisionKernel.cpp @@ -27,9 +27,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include -#include -#include #include using namespace arm_compute; diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLReduceMaxKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLReduceMaxKernel.cpp index 51318d7..a6392f8 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLReduceMaxKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLReduceMaxKernel.cpp @@ -27,9 +27,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include -#include -#include #include using namespace arm_compute; diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLReduceSumKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLReduceSumKernel.cpp index 40174f3..0501027 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLReduceSumKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLReduceSumKernel.cpp @@ -28,8 +28,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include "support/ToolchainSupport.h" - using namespace arm_compute; namespace diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLReductionMeanKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLReductionMeanKernel.cpp index 84a7712..100a6c6 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLReductionMeanKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLReductionMeanKernel.cpp @@ -28,8 +28,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include "support/ToolchainSupport.h" - using namespace arm_compute; namespace diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLSpaceToDepthKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLSpaceToDepthKernel.cpp index 6602956..dd23078 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLSpaceToDepthKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLSpaceToDepthKernel.cpp @@ -27,9 +27,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include -#include -#include #include using namespace arm_compute; diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLSquaredDifferenceKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLSquaredDifferenceKernel.cpp index 3eb26b5..c77b8b6 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLSquaredDifferenceKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLSquaredDifferenceKernel.cpp @@ -27,8 +27,6 @@ #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" -#include - using namespace arm_compute; namespace diff --git a/libs/ARMComputeEx/src/core/CL/kernels/CLStridedSliceKernel.cpp b/libs/ARMComputeEx/src/core/CL/kernels/CLStridedSliceKernel.cpp index 80ffd42..64a981d 100644 --- a/libs/ARMComputeEx/src/core/CL/kernels/CLStridedSliceKernel.cpp +++ b/libs/ARMComputeEx/src/core/CL/kernels/CLStridedSliceKernel.cpp @@ -31,11 +31,8 @@ #include -using namespace std; using namespace arm_compute; -static const int32_t maxDim = 4; - CLStridedSliceKernel::CLStridedSliceKernel() : _input(nullptr), _output(nullptr), _beginData(nullptr), _endData(nullptr), _stridesData(nullptr), _beginMask(0), _endMask(0), _shrinkAxisMask(0) @@ -153,15 +150,6 @@ inline int32_t StopForAxis(int32_t endMask, int32_t end, int32_t stride, return stop; } -inline int32_t offset4D(const TensorShape &shape, int32_t b, int32_t d, int32_t h, int32_t w) -{ - int32_t offset = b * shape[2] * shape[1] * shape[0]; - offset += d * shape[1] * shape[0]; - offset += h * shape[0]; - offset += w; - return offset; -} - inline int32_t getOutDim(int32_t start, int32_t stop, int32_t stride) { int32_t ret = 0; -- 2.7.4