From 9f7d55a3566b0f1044110000b033d663b26d3a6c Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Mon, 8 Feb 2021 13:20:24 +0000 Subject: Fix CLDepthwiseConvolutionLayer 3x3 QASYMM8 Fix errors when computing tensors with one element only - Replace Tensor3D with raw pointers so to get rid of offset to first element for NCHW layout - Add stronger out of bound constraints for NHWC layout - Set the border size to the input's padding for NHWC - Fill the strides == 0 with the largest stride, so to avoid accessing empty strides and multiplying by 0 Resolve COMPMID-4088 Change-Id: I751a4e6d7094b3c42306ff7f53af848fd35f19ac Signed-off-by: Giorgio Arena Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5024 Tested-by: Arm Jenkins Reviewed-by: Manuel Bottini Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- tests/validation/UNIT/TensorInfo.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/validation/UNIT/TensorInfo.cpp') diff --git a/tests/validation/UNIT/TensorInfo.cpp b/tests/validation/UNIT/TensorInfo.cpp index b5928cc277..44c9342389 100644 --- a/tests/validation/UNIT/TensorInfo.cpp +++ b/tests/validation/UNIT/TensorInfo.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 Arm Limited. + * Copyright (c) 2017-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -60,11 +60,11 @@ DATA_TEST_CASE(AutoPadding, framework::DatasetMode::ALL, zip(zip(zip( PaddingSize{ 4, 36, 4, 4 }})), framework::dataset::make("Strides", { Strides{}, - Strides{ 1U, 50U }, - Strides{ 1U, 50U }, - Strides{ 1U, 50U, 900U }, - Strides{ 1U, 50U, 900U, 9000U }, - Strides{ 1U, 50U, 900U, 9000U, 90000U }, + Strides{ 1U, 50U, 50U, 50U, 50U, 50U }, + Strides{ 1U, 50U, 900U, 900U, 900U, 900U }, + Strides{ 1U, 50U, 900U, 900U, 900U, 900U }, + Strides{ 1U, 50U, 900U, 9000U, 9000U, 9000U }, + Strides{ 1U, 50U, 900U, 9000U, 90000U, 90000U }, Strides{ 1U, 50U, 900U, 9000U, 90000U, 900000U }})), framework::dataset::make("Offset", { 0U, 4U, 204U, 204U, 204U, 204U, 204U })), shape, auto_padding, strides, offset) -- cgit v1.2.1