diff options
author | Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> | 2019-11-07 11:12:15 +0000 |
---|---|---|
committer | Áron Virginás-Tar <aron.virginas-tar@arm.com> | 2019-11-07 11:15:30 +0000 |
commit | 4bc42cb7b4e35652ec2a64c054eec7d2aca997c3 (patch) | |
tree | f26a57280cee2073bc6e3ded740a9796aa48d25d | |
parent | fb45e2f86a6c6ba7ff08554c872c8876820f0a7f (diff) | |
download | android-nn-driver-4bc42cb7b4e35652ec2a64c054eec7d2aca997c3.tar.gz |
IVGCVSW-4104 Skip per-axis quantization VTS/NeruralNetworks tests for GROUPED_CONV2D
* Report per-axis quantization as unsupported in ConvertGroupedConv2d()
until support will have been added
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com>
Change-Id: Ibadb848b60956f8c90fa8b538d50dea8d9a57d92
-rw-r--r-- | 1.2/HalPolicy.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/1.2/HalPolicy.cpp b/1.2/HalPolicy.cpp index 5d6274fc..12c08047 100644 --- a/1.2/HalPolicy.cpp +++ b/1.2/HalPolicy.cpp @@ -702,7 +702,12 @@ bool HalPolicy::ConvertGroupedConv2d(const Operation& operation, const Model& mo } ConstTensor weights = weightsPin.GetConstTensor(); - ConstTensor biases = biasesPin.GetConstTensor(); + if (weights.GetInfo().HasPerAxisQuantization()) + { + return Fail("%s: Per-axis quantization is not supported", __func__); + } + + ConstTensor biases = biasesPin.GetConstTensor(); SanitizeBiasQuantizationScale(biases.GetInfo(), weights.GetInfo(), inputInfo); const TensorShape& inputShape = inputInfo.GetShape(); |