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 ed570bc44..8cbf9bd11 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 9ba3e6af4..0eeb948d3 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.3