From: Shubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 Date: Mon, 22 Oct 2018 04:53:27 +0000 (+0530) Subject: Patch to remove unused shape variables (#3271) X-Git-Tag: 0.3~560 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af4d70ad44fc83c8774a3c134bbcfb8f50284ff7;p=platform%2Fcore%2Fml%2Fnnfw.git Patch to remove unused shape variables (#3271) This patch will remove unused shape variables. Signed-off-by: shubham --- diff --git a/runtimes/pure_arm_compute/src/internal/layers/SimpleBatchToSpaceNd.cc b/runtimes/pure_arm_compute/src/internal/layers/SimpleBatchToSpaceNd.cc index 4344b65..87175ee 100644 --- a/runtimes/pure_arm_compute/src/internal/layers/SimpleBatchToSpaceNd.cc +++ b/runtimes/pure_arm_compute/src/internal/layers/SimpleBatchToSpaceNd.cc @@ -41,10 +41,6 @@ inline void BatchToSpaceND(const ::arm_compute::ITensor *input, const ::arm_compute::TensorShape &output_shape, const ::arm_compute::Coordinates &axises) { - const int input_batch = input_shape[axises[0]]; - const int input_height = input_shape[axises[1]]; - const int input_width = input_shape[axises[2]]; - const int output_batch = output_shape[axises[0]]; const int output_height = output_shape[axises[1]]; const int output_width = output_shape[axises[2]]; diff --git a/runtimes/pure_arm_compute/src/internal/layers/SimpleDepthToSpace.cc b/runtimes/pure_arm_compute/src/internal/layers/SimpleDepthToSpace.cc index 1e8e9d0..d62a832 100644 --- a/runtimes/pure_arm_compute/src/internal/layers/SimpleDepthToSpace.cc +++ b/runtimes/pure_arm_compute/src/internal/layers/SimpleDepthToSpace.cc @@ -42,11 +42,6 @@ inline void DepthToSpace(const ::arm_compute::ITensor *input, const ::arm_compute::TensorShape &output_shape, const ::arm_compute::Coordinates &axises) { - const int input_batch = input_shape[axises[0]]; - const int input_height = input_shape[axises[1]]; - const int input_width = input_shape[axises[2]]; - const int input_depth = input_shape[axises[3]]; - const int output_batch = output_shape[axises[0]]; const int output_height = output_shape[axises[1]]; const int output_width = output_shape[axises[2]]; diff --git a/runtimes/pure_arm_compute/src/internal/layers/SimpleSpaceToBatchND.cc b/runtimes/pure_arm_compute/src/internal/layers/SimpleSpaceToBatchND.cc index a16f389..49e1f47 100644 --- a/runtimes/pure_arm_compute/src/internal/layers/SimpleSpaceToBatchND.cc +++ b/runtimes/pure_arm_compute/src/internal/layers/SimpleSpaceToBatchND.cc @@ -50,9 +50,6 @@ SpaceToBatchND(const ::arm_compute::ITensor *input, const ::arm_compute::TensorS const int input_height = input_shape[axises[1]]; const int input_width = input_shape[axises[2]]; - const int output_batch = output_shape[axises[0]]; - const int output_height = output_shape[axises[1]]; - const int output_width = output_shape[axises[2]]; const int depth = output_shape[axises[3]]; const int padded_height = input_height + padding_size_data[0] + padding_size_data[1]; diff --git a/runtimes/pure_arm_compute/src/internal/layers/SimpleSpaceToDepth.cc b/runtimes/pure_arm_compute/src/internal/layers/SimpleSpaceToDepth.cc index ee8a14f..3519da1 100644 --- a/runtimes/pure_arm_compute/src/internal/layers/SimpleSpaceToDepth.cc +++ b/runtimes/pure_arm_compute/src/internal/layers/SimpleSpaceToDepth.cc @@ -47,11 +47,6 @@ inline void SpaceToDepth(const ::arm_compute::ITensor *input, const int input_width = input_shape[axises[2]]; const int input_depth = input_shape[axises[3]]; - const int output_batch = output_shape[axises[0]]; - const int output_height = output_shape[axises[1]]; - const int output_width = output_shape[axises[2]]; - const int output_depth = output_shape[axises[3]]; - for (int in_b = 0; in_b < input_batch; ++in_b) { for (int in_h = 0; in_h < input_height; ++in_h)