diff options
-rw-r--r-- | src/core/AccessWindowStatic.cpp | 10 | ||||
-rw-r--r-- | tests/datasets/ReshapeLayerDataset.h | 3 |
2 files changed, 4 insertions, 9 deletions
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<int>(_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<int>(window[d].end(), input_valid_region.shape[d]) - anchor[d]); - } - return input_valid_region; } diff --git a/tests/datasets/ReshapeLayerDataset.h b/tests/datasets/ReshapeLayerDataset.h index fa938a63ed..6af65a1c20 100644 --- a/tests/datasets/ReshapeLayerDataset.h +++ b/tests/datasets/ReshapeLayerDataset.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -102,6 +102,7 @@ class SmallReshapeLayerDataset final : public ReshapeLayerDataset public: SmallReshapeLayerDataset() { + add_config(TensorShape(3U), TensorShape(1U, 1U, 3U)); add_config(TensorShape(16U), TensorShape(4U, 2U, 2U)); add_config(TensorShape(2U, 2U, 8U), TensorShape(4U, 8U)); add_config(TensorShape(3U, 3U, 16U), TensorShape(144U)); |