Removing ambigous/unused num_elem_processed_per_iteration variable (#3315)
authorShubham Gupta/System SW /SRI-Bangalore/Engineer/삼성전자 <shub98.gupta@samsung.com>
Mon, 29 Oct 2018 11:36:49 +0000 (17:06 +0530)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 29 Oct 2018 11:36:49 +0000 (20:36 +0900)
This patch will remove unused num_elem_processed_per_iteration variable from CLGatherKernel.cpp

Signed-off-by: shubham <shub98.gupta@samsung.com>
libs/ARMComputeEx/src/core/CL/kernels/CLGatherKernel.cpp

index e04f63e..dcf3eac 100644 (file)
@@ -33,7 +33,7 @@ using namespace arm_compute;
 
 namespace
 {
-constexpr unsigned int num_elems_processed_per_iteration = 16;
+constexpr unsigned int num_elems_processed_per_iteration = 1;
 
 Status validate_arguments(const ITensorInfo *input1, const ITensorInfo *input2,
                           const ITensorInfo *output)
@@ -86,7 +86,6 @@ void CLGatherKernel::configure(const ICLTensor *input1, const ICLTensor *input2,
       static_cast<cl::Kernel>(CLKernelLibraryEx::get().create_kernel(kernel_name, build_opts));
 
   // Configure kernel window
-  const unsigned int num_elems_processed_per_iteration = 1;
   Window win = calculate_max_window(*input2->info(), Steps(num_elems_processed_per_iteration));
   output->info()->set_valid_region(ValidRegion(Coordinates(), output->info()->tensor_shape()));