From f78625be6890faa8355a73f8a0244257bc90367f Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Thu, 22 Feb 2018 12:00:22 +0000 Subject: COMPMID-765: Ignore window for StaticWindow valid region. Change-Id: I3bcb6047b22d122fac9e7e7267bfcb75f4ebdf33 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/121792 Reviewed-by: Anthony Barbier Tested-by: Jenkins --- src/core/AccessWindowStatic.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/core/AccessWindowStatic.cpp b/src/core/AccessWindowStatic.cpp index 2ddd59ed4d..a3a0f28198 100644 --- a/src/core/AccessWindowStatic.cpp +++ b/src/core/AccessWindowStatic.cpp @@ -49,6 +49,8 @@ ValidRegion AccessWindowStatic::compute_valid_region(const Window &window, Valid return input_valid_region; } + ARM_COMPUTE_UNUSED(window); + Coordinates &anchor = input_valid_region.anchor; TensorShape &shape = input_valid_region.shape; @@ -68,14 +70,6 @@ ValidRegion AccessWindowStatic::compute_valid_region(const Window &window, Valid shape.set(1, std::min(_end_y, _info->tensor_shape()[1])); } - // For higher dimension use the intersection of the window size and the - // valid region of the input - for(size_t d = 2; d < _info->num_dimensions(); ++d) - { - anchor.set(d, std::max(window[d].start(), input_valid_region.anchor[d])); - shape.set(d, std::min(window[d].end(), input_valid_region.shape[d]) - anchor[d]); - } - return input_valid_region; } -- cgit v1.2.1