IVGCVSW-4079 Modify the channel dimension accordingly with the weights permutation

Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com>
Change-Id: Ie4a27d805d6d953fc54264ef9a0947f82c5b1ff8
diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp
index 88c1537..bcccd27 100644
--- a/ConversionUtils.hpp
+++ b/ConversionUtils.hpp
@@ -755,6 +755,12 @@
     }
 
     armnn::TensorInfo tensorInfo = GetTensorInfoForOperand(operand);
+    // Android datalayout might be different than armnn datalayout, e.g. the kernel for the depthwise convolution.
+    if (tensorInfo.HasPerAxisQuantization())
+    {
+        tensorInfo.SetQuantizationDim(dimensionMappings[tensorInfo.GetQuantizationDim().value()]);
+    }
+
     if (overrideTensorShape != nullptr)
     {
         tensorInfo.SetShape(*overrideTensorShape);