diff options
author | Pablo Tello <pablo.tello@arm.com> | 2019-06-04 11:28:05 +0100 |
---|---|---|
committer | Pablo Marquez <pablo.tello@arm.com> | 2019-06-07 10:12:46 +0000 |
commit | e4cad159b62bd2abe12a186995976857115e15f9 (patch) | |
tree | ae77f2470c62b4c369d10ddba0fe735b69451e88 /src | |
parent | 6260e194b34842ac6d932dd5c96842c0d1214d70 (diff) | |
download | ComputeLibrary-e4cad159b62bd2abe12a186995976857115e15f9.tar.gz |
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 <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/1276
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Giuseppe Rossini <giuseppe.rossini@arm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/CL/kernels/CLDepthwiseConvolutionLayer3x3NHWCKernel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |