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 --- tests/datasets/DilatedDepthwiseConvolutionLayerDataset.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/datasets') diff --git a/tests/datasets/DilatedDepthwiseConvolutionLayerDataset.h b/tests/datasets/DilatedDepthwiseConvolutionLayerDataset.h index 28b34561e2..8f4df3e201 100644 --- a/tests/datasets/DilatedDepthwiseConvolutionLayerDataset.h +++ b/tests/datasets/DilatedDepthwiseConvolutionLayerDataset.h @@ -55,6 +55,10 @@ public: // Asymmetric padding add_config(TensorShape(33U, 27U, 7U), Size2D(5U, 7U), PadStrideInfo(3, 2, 1, 1, 2, 0, DimensionRoundingType::FLOOR), Size2D(2U, 2U)); add_config(TensorShape(33U, 27U, 7U), Size2D(5U, 7U), PadStrideInfo(3, 2, 1, 1, 0, 2, DimensionRoundingType::FLOOR), Size2D(2U, 2U)); + // Dilation and padding 2 + add_config(TensorShape(33U, 33U, 3U), Size2D(3U, 3U), PadStrideInfo(1, 1, 2, 2, 2, 2, DimensionRoundingType::FLOOR), Size2D(2U, 2U)); + // Dilation and padding 4 + add_config(TensorShape(33U, 33U, 3U), Size2D(3U, 3U), PadStrideInfo(1, 1, 4, 4, 4, 4, DimensionRoundingType::FLOOR), Size2D(4U, 4U)); } }; -- cgit v1.2.1