aboutsummaryrefslogtreecommitdiff
path: root/tests/datasets
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2019-06-04 11:28:05 +0100
committerPablo Marquez <pablo.tello@arm.com>2019-06-07 10:12:46 +0000
commite4cad159b62bd2abe12a186995976857115e15f9 (patch)
treeae77f2470c62b4c369d10ddba0fe735b69451e88 /tests/datasets
parent6260e194b34842ac6d932dd5c96842c0d1214d70 (diff)
downloadComputeLibrary-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 'tests/datasets')
-rw-r--r--tests/datasets/DilatedDepthwiseConvolutionLayerDataset.h4
1 files changed, 4 insertions, 0 deletions
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));
}
};