From 26c5c0fc10cbee1b523af0b27f884719dc50820a Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Fri, 26 Mar 2021 10:06:26 +0000 Subject: NEGEMMConvolution and NEGEMMConv2d produce different results Update validate of NEGEMMConv2d for not supporting dilation different than (1,1) Change-Id: I5c4ad489071bf34e9576c79800c78f8ebd9fa51c Resolves: COMPMID-4313 Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5331 Reviewed-by: Aleksandr Nikolaev Reviewed-by: Diana Bite Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- src/runtime/NEON/functions/NEGEMMConv2d.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/runtime/NEON/functions/NEGEMMConv2d.cpp b/src/runtime/NEON/functions/NEGEMMConv2d.cpp index c802298f98..0f6f93060d 100644 --- a/src/runtime/NEON/functions/NEGEMMConv2d.cpp +++ b/src/runtime/NEON/functions/NEGEMMConv2d.cpp @@ -128,6 +128,7 @@ Status NEGEMMConv2d::validate(const ITensorInfo *input, const ITensorInfo *weigh const TensorShape i_shape = input->tensor_shape(); const TensorShape w_shape = weights->tensor_shape(); ARM_COMPUTE_RETURN_ERROR_ON(w_shape[0] != i_shape[0]); + ARM_COMPUTE_RETURN_ERROR_ON(info.dilation != Size2D(1U, 1U)); ARM_COMPUTE_RETURN_ERROR_ON(weights->num_dimensions() > 4); // Validate biases if(biases != nullptr) -- cgit v1.2.1