From b88272e2dcf09803cd275cfeb5ca1ea743a091ff Mon Sep 17 00:00:00 2001 From: SiCongLi Date: Wed, 24 Feb 2021 15:40:57 +0000 Subject: 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 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5203 Reviewed-by: Georgios Pinitas Tested-by: Arm Jenkins --- src/core/NEON/kernels/NEReductionOperationKernel.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/core/NEON/kernels/NEReductionOperationKernel.cpp') 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) -- cgit v1.2.1