diff options
Diffstat (limited to '1.2/HalPolicy.cpp')
-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(); |