IVGCVSW-3575 Fix DepthwiseConvolution VTS Test Failures
authorKevin May <kevin.may@arm.com>
Wed, 21 Aug 2019 15:53:50 +0000 (16:53 +0100)
committermike.kelly <mike.kelly@arm.com>
Mon, 26 Aug 2019 16:22:55 +0000 (16:22 +0000)
commit665a964aab8858447c3e1261f2c38d59b150da82
tree1a752fe37dec8e639ccea9bdab0993f20e1acd25
parentdcaa6109c95034aa3b945acd50a2882e40f13370
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 <Colm.Donelan@arm.com>
Change-Id: Icaeac08e14b3d5da9e222ad2f118db55ebb15d09
src/backends/backendsCommon/WorkloadUtils.cpp
src/backends/backendsCommon/WorkloadUtils.hpp
src/backends/backendsCommon/test/LayerTests.cpp
src/backends/backendsCommon/test/LayerTests.hpp
src/backends/neon/test/NeonLayerTests.cpp
src/backends/reference/test/RefLayerTests.cpp