aboutsummaryrefslogtreecommitdiff
path: root/src/core/NEON/kernels/NEReductionOperationKernel.cpp
diff options
context:
space:
mode:
authorSiCongLi <sicong.li@arm.com>2021-02-24 15:40:57 +0000
committerSiCong Li <sicong.li@arm.com>2021-03-08 09:39:14 +0000
commitb88272e2dcf09803cd275cfeb5ca1ea743a091ff (patch)
tree6637bef6d413bc513ffa451b0993102d7da57f4d /src/core/NEON/kernels/NEReductionOperationKernel.cpp
parentc7b1e84ac5f3ada1b2f78c66979ef4d44804a955 (diff)
downloadComputeLibrary-b88272e2dcf09803cd275cfeb5ca1ea743a091ff.tar.gz
Remove usage of valid window region in NHWC CPU kernels - Part2
Remove set_valid_region methods from all NHWC CPU ML functions / operators / kernels Resolves COMPMID-4152 (2/2) Change-Id: If9725e9c5b0213b87db96675e81b7fb724970b98 Signed-off-by: SiCongLi <sicong.li@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5203 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/NEON/kernels/NEReductionOperationKernel.cpp')
-rw-r--r--src/core/NEON/kernels/NEReductionOperationKernel.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/NEON/kernels/NEReductionOperationKernel.cpp b/src/core/NEON/kernels/NEReductionOperationKernel.cpp
index 001025bdf5..a449fdee98 100644
--- a/src/core/NEON/kernels/NEReductionOperationKernel.cpp
+++ b/src/core/NEON/kernels/NEReductionOperationKernel.cpp
@@ -1669,9 +1669,6 @@ void NEReductionOperationKernel::configure(const ITensor *input, ITensor *output
_reduction_axis = axis;
// Configure kernel window
- Coordinates coord;
- coord.set_num_dimensions(input->info()->num_dimensions());
- input->info()->set_valid_region(ValidRegion(coord, input->info()->tensor_shape()));
Window win = calculate_max_window(*input->info(), Steps());
INEKernel::configure(win);
@@ -1681,7 +1678,6 @@ void NEReductionOperationKernel::configure(const ITensor *input, ITensor *output
const bool is_arg_min_max = (op == ReductionOperation::ARG_IDX_MIN || op == ReductionOperation::ARG_IDX_MAX);
DataType output_data_type = is_arg_min_max ? DataType::S32 : input->info()->data_type();
auto_init_if_empty(*output->info(), input->info()->clone()->set_tensor_shape(output_shape).set_data_type(output_data_type).reset_padding().set_is_resizable(true));
- output->info()->set_valid_region(ValidRegion(coord, output_shape));
}
Status NEReductionOperationKernel::validate(const ITensorInfo *input, const ITensorInfo *output, unsigned int axis, ReductionOperation op)