diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-06-27 17:14:32 +0100 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-07-01 08:28:00 +0000 |
commit | 32620427d9d4cbb8e31285f6324d7230d4b4aee5 (patch) | |
tree | 1ea212fbd2e797c083b956e8cdc2c23e69f7ae11 /src/core | |
parent | 338595bca8ab60492f10626860acb1ab3722b1ce (diff) | |
download | ComputeLibrary-32620427d9d4cbb8e31285f6324d7230d4b4aee5.tar.gz |
COMPMID-2426: Logical dead code fix
Removes unneeded conditional
Change-Id: I42f7b33bdd9ba2a9e67fb21ab3861fb3fc137018
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1436
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: VidhyaSudhan Loganathan <vidhyasudhan.loganathan@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/NEON/kernels/NEScaleKernel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<Status, Window> 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)); |