From 5716de25c6981d004e32b81dc65b4869eda25f7c Mon Sep 17 00:00:00 2001 From: Aron Virginas-Tar Date: Fri, 15 Nov 2019 10:22:28 +0000 Subject: IVGCVSW-4140 Report per-axis quantization as unsupported for DepthwiseConvolution on ACL backends * This is a temporary measure that needs to be removed as soon as the NEON and CL DepthwiseConvolution workloads will have added support for per-axis quantization Signed-off-by: Aron Virginas-Tar Change-Id: I24eb285230293392a6ed50aece1101e5aed7f90e --- src/backends/cl/ClLayerSupport.cpp | 5 +++++ src/backends/neon/NeonLayerSupport.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/backends/cl/ClLayerSupport.cpp b/src/backends/cl/ClLayerSupport.cpp index ed570bc448..8cbf9bd114 100644 --- a/src/backends/cl/ClLayerSupport.cpp +++ b/src/backends/cl/ClLayerSupport.cpp @@ -361,6 +361,11 @@ bool ClLayerSupport::IsDepthwiseConvolutionSupported(const TensorInfo& input, const Optional& biases, Optional reasonIfUnsupported) const { + if (weights.HasPerAxisQuantization()) + { + return false; + } + FORWARD_WORKLOAD_VALIDATE_FUNC(ClDepthwiseConvolutionWorkloadValidate, reasonIfUnsupported, input, diff --git a/src/backends/neon/NeonLayerSupport.cpp b/src/backends/neon/NeonLayerSupport.cpp index 9ba3e6af41..0eeb948d3f 100644 --- a/src/backends/neon/NeonLayerSupport.cpp +++ b/src/backends/neon/NeonLayerSupport.cpp @@ -306,6 +306,11 @@ bool NeonLayerSupport::IsDepthwiseConvolutionSupported(const TensorInfo& input, const Optional& biases, Optional reasonIfUnsupported) const { + if (weights.HasPerAxisQuantization()) + { + return false; + } + FORWARD_WORKLOAD_VALIDATE_FUNC(NeonDepthwiseConvolutionWorkloadValidate, reasonIfUnsupported, input, -- cgit v1.2.1