From 32620427d9d4cbb8e31285f6324d7230d4b4aee5 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Thu, 27 Jun 2019 17:14:32 +0100 Subject: COMPMID-2426: Logical dead code fix Removes unneeded conditional Change-Id: I42f7b33bdd9ba2a9e67fb21ab3861fb3fc137018 Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/1436 Tested-by: Arm Jenkins Reviewed-by: VidhyaSudhan Loganathan Comments-Addressed: Arm Jenkins --- src/core/NEON/kernels/NEScaleKernel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/NEON/kernels') diff --git a/src/core/NEON/kernels/NEScaleKernel.cpp b/src/core/NEON/kernels/NEScaleKernel.cpp index e99b97bbe5..4a51627a20 100644 --- a/src/core/NEON/kernels/NEScaleKernel.cpp +++ b/src/core/NEON/kernels/NEScaleKernel.cpp @@ -134,8 +134,7 @@ std::pair validate_and_configure_window_nhwc(ITensorInfo *input, if(use_padding) { - AccessWindowStatic input_access(input, 0, -border_size.top, use_padding ? ceil_to_multiple(input->tensor_shape()[0], num_elems_processed_per_iteration) : num_elems_processed_per_iteration, - input->tensor_shape()[1]); + AccessWindowStatic input_access(input, 0, -border_size.top, ceil_to_multiple(input->tensor_shape()[0], num_elems_processed_per_iteration), input->tensor_shape()[1]); AccessWindowHorizontal output_access(output, 0, num_elems_processed_per_iteration); window_changed = update_window_and_padding(win, input_access, output_access); output->set_valid_region(calculate_valid_region_scale(*input, output->tensor_shape(), policy, sampling_policy, border_undefined)); -- cgit v1.2.1