From 4bc42cb7b4e35652ec2a64c054eec7d2aca997c3 Mon Sep 17 00:00:00 2001 From: Aron Virginas-Tar Date: Thu, 7 Nov 2019 11:12:15 +0000 Subject: 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 Change-Id: Ibadb848b60956f8c90fa8b538d50dea8d9a57d92 --- 1.2/HalPolicy.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.1