Removing unused variables and rearranging by name in TransposeConv (#3656)
authorShubham Gupta/SNAP /SRI-Bangalore/Engineer/삼성전자 <shub98.gupta@samsung.com>
Wed, 21 Nov 2018 06:27:35 +0000 (11:57 +0530)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 21 Nov 2018 06:27:35 +0000 (15:27 +0900)
This patch will remove unused variables and rearranges the variables by their name

Signed-off-by: shubham <shub98.gupta@samsung.com>
runtimes/pure_arm_compute/src/internal/layers/SimpleTransposeConv.cc

index 5001446..d054f17 100644 (file)
@@ -45,16 +45,16 @@ inline void ApplyTransposeConv(const ::arm_compute::TensorShape &input_shape,
                                const ::arm_compute::Coordinates axises)
 {
   const int batches = input_shape[axises[0]];
-  const int input_depth = input_shape[axises[3]];
-  const int output_depth = output_shape[axises[3]];
   const int input_height = input_shape[axises[1]];
   const int input_width = input_shape[axises[2]];
-  const int filter_batch = filter_shape[axises[0]];
+  const int input_depth = input_shape[axises[3]];
+
   const int filter_height = filter_shape[axises[1]];
   const int filter_width = filter_shape[axises[2]];
-  const int filter_depth = filter_shape[axises[3]];
+
   const int output_height = output_shape[axises[1]];
   const int output_width = output_shape[axises[2]];
+  const int output_depth = output_shape[axises[3]];
 
   const int pad_width = (stride_width * (input_width - 1) + filter_width - output_width) / 2;
   const int pad_height = (stride_height * (input_height - 1) + filter_height - output_height) / 2;