From 665a964aab8858447c3e1261f2c38d59b150da82 Mon Sep 17 00:00:00 2001 From: Kevin May Date: Wed, 21 Aug 2019 16:53:50 +0100 Subject: IVGCVSW-3575 Fix DepthwiseConvolution VTS Test Failures Failing VTS tests were "NeuralnetworksHidlTest.depthwise_conv2d_*" In depthwise convolution there was a difference in weight tensor channel order between the reference and ACL implementations. This specifically related to NCHW. This commit: * Adds ReorderWeightChannelsForAcl to WorkloadUtils which will correct the weight tensor channel order. * Add unit tests to detect this problem. Signed-off-by: Colm Donelan Change-Id: Icaeac08e14b3d5da9e222ad2f118db55ebb15d09 --- src/backends/neon/test/NeonLayerTests.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/backends/neon/test/NeonLayerTests.cpp') diff --git a/src/backends/neon/test/NeonLayerTests.cpp b/src/backends/neon/test/NeonLayerTests.cpp index 27f1dd24da..954f281144 100644 --- a/src/backends/neon/test/NeonLayerTests.cpp +++ b/src/backends/neon/test/NeonLayerTests.cpp @@ -104,6 +104,14 @@ ARMNN_AUTO_TEST_CASE(Convolution2d2x2Dilation2x2Padding2x2Stride3x3NhwcUint8, , false, DataLayout::NHWC) +ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dMult4, + DepthwiseConvolution2dMult4Test, + false, + armnn::DataLayout::NCHW) +ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dMult2, + DepthwiseConvolution2dMult2Test, + false, + armnn::DataLayout::NCHW) // Depthwise Convolution ARMNN_AUTO_TEST_CASE(DepthwiseConvolution2dDepthMul1, -- cgit v1.2.1