IVGCVSW-3643 Fix Ref Normalization failures
* Added check for unsupported optional parameters for L2Normalization and LocalResponseNormalization to skip the related tests rather than fail them.
Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: Ia17be706b14b2e2faf8eb5a0ec335c2e3863bf16
diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp
index cfbef5a..41b3c1c 100644
--- a/ConversionUtils.hpp
+++ b/ConversionUtils.hpp
@@ -2257,6 +2257,11 @@
typename Model = typename HalPolicy::Model>
bool ConvertL2Normalization(const Operation& operation, const Model& model, ConversionData& data)
{
+ if (operation.inputs.size() != 1)
+ {
+ return Fail("%s: Optional inputs are not supported", __func__);
+ }
+
using Operand = typename HalPolicy::Operand;
LayerInputHandle input = ConvertToLayerInputHandle<HalPolicy>(operation, 0, model, data);
@@ -2313,6 +2318,11 @@
const Model& model,
ConversionData& data)
{
+ if (operation.inputs.size() != 5)
+ {
+ return Fail("%s: Optional inputs are not supported", __func__);
+ }
+
using Operand = typename HalPolicy::Operand;
using OperandType = typename HalPolicy::OperandType;