From 07f25e009cc425183e268eaf3e5c02111214baaa Mon Sep 17 00:00:00 2001 From: Aron Virginas-Tar Date: Thu, 7 Nov 2019 15:19:52 +0000 Subject: IVGCVSW-4104 Report Conv2d per-axis quantization unsupported on ACL backends * Teporarily return false from IsConvolution2dSupported() whenever the weights tensor has per-axis quantization in order to avoid exceptions being thrown from ACL during attempted execution * Should be reverted once per-axis quantization support will have been added to the ACL backends Signed-off-by: Aron Virginas-Tar Change-Id: Ie2e1a7f3f5550a4b43f7f007ee5c86a8760872eb --- 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 de9d1c5bcb..6dcda96100 100644 --- a/src/backends/cl/ClLayerSupport.cpp +++ b/src/backends/cl/ClLayerSupport.cpp @@ -305,6 +305,11 @@ bool ClLayerSupport::IsConvolution2dSupported(const TensorInfo& input, const Optional& biases, Optional reasonIfUnsupported) const { + if (weights.HasPerAxisQuantization()) + { + return false; + } + FORWARD_WORKLOAD_VALIDATE_FUNC(ClConvolution2dWorkloadValidate, reasonIfUnsupported, input, diff --git a/src/backends/neon/NeonLayerSupport.cpp b/src/backends/neon/NeonLayerSupport.cpp index bc912ff9df..9ba3e6af41 100644 --- a/src/backends/neon/NeonLayerSupport.cpp +++ b/src/backends/neon/NeonLayerSupport.cpp @@ -273,6 +273,11 @@ bool NeonLayerSupport::IsConvolution2dSupported(const TensorInfo& input, const Optional& biases, Optional reasonIfUnsupported) const { + if (weights.HasPerAxisQuantization()) + { + return false; + } + FORWARD_WORKLOAD_VALIDATE_FUNC(NeonConvolution2dWorkloadValidate, reasonIfUnsupported, input, -- cgit v1.2.1