diff options
author | Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> | 2019-11-15 10:22:28 +0000 |
---|---|---|
committer | Áron Virginás-Tar <aron.virginas-tar@arm.com> | 2019-11-15 16:54:32 +0000 |
commit | 5716de25c6981d004e32b81dc65b4869eda25f7c (patch) | |
tree | 0d0124d5935a5c3b551c259c51c30937d63d954b | |
parent | cdfb9417ddce28a5cbd33f8049a147168a26aa9b (diff) | |
download | armnn-5716de25c6981d004e32b81dc65b4869eda25f7c.tar.gz armnn-5716de25c6981d004e32b81dc65b4869eda25f7c.tar.bz2 armnn-5716de25c6981d004e32b81dc65b4869eda25f7c.zip |
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 <Aron.Virginas-Tar@arm.com>
Change-Id: I24eb285230293392a6ed50aece1101e5aed7f90e
-rw-r--r-- | src/backends/cl/ClLayerSupport.cpp | 5 | ||||
-rw-r--r-- | src/backends/neon/NeonLayerSupport.cpp | 5 |
2 files changed, 10 insertions, 0 deletions
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<TensorInfo>& biases, Optional<std::string&> 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<TensorInfo>& biases, Optional<std::string&> reasonIfUnsupported) const { + if (weights.HasPerAxisQuantization()) + { + return false; + } + FORWARD_WORKLOAD_VALIDATE_FUNC(NeonDepthwiseConvolutionWorkloadValidate, reasonIfUnsupported, input, |