From e4cad159b62bd2abe12a186995976857115e15f9 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Tue, 4 Jun 2019 11:28:05 +0100 Subject: COMPMID-2195: DepthwiseConv allow padding > 1 (top/bottom) Removed assert from CLDepthwiseConvolutionLayer3x3NHWCKernel.cpp Added a test case for padding (2,2,2,2) and dilation (2,2) Added a test case for padding (4,4,4,4) and dilation (4,4) When dilation is > 1 padding > 1 is required to support SAME_PADDING Change-Id: I36d3f3eec1935f29f097d886a81589533009fede Signed-off-by: Pablo Tello Reviewed-on: https://review.mlplatform.org/c/1276 Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins Reviewed-by: Giuseppe Rossini --- src/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NHWCKernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NHWCKernel.cpp') diff --git a/src/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NHWCKernel.cpp b/src/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NHWCKernel.cpp index e32faa10df..f489e82cb9 100644 --- a/src/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NHWCKernel.cpp +++ b/src/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NHWCKernel.cpp @@ -55,7 +55,7 @@ Status validate_arguments(const ITensorInfo *input, const ITensorInfo *weights, ARM_COMPUTE_RETURN_ERROR_ON(depth_multiplier > 1); // COMPMID-1071 Add depth multiplier support for NHWC ARM_COMPUTE_RETURN_ERROR_ON(conv_info.stride().first < 1); - ARM_COMPUTE_RETURN_ERROR_ON(std::max(conv_info.pad_top(), conv_info.pad_bottom()) > 1); + ARM_COMPUTE_RETURN_ERROR_ON(std::max(conv_info.pad_top(), conv_info.pad_bottom()) > 4); ARM_COMPUTE_RETURN_ERROR_ON((dilation.x() < 1) || (dilation.y() < 1)); -- cgit v1.2.1