From 3d22f3c4cdff3ed1e392048265f84d07c01080d5 Mon Sep 17 00:00:00 2001 From: Louis Verhaard Date: Wed, 3 Feb 2021 08:43:54 +0100 Subject: MLBEDSW-3932: Remove Squeeze from supported operators - Squeeze is no longer listed as supported operator - Added missing doc-string for a Pad constraint Change-Id: Ifd5e493acb0eb28bc4f104df74b3491589db8c29 Signed-off-by: Louis Verhaard --- ethosu/vela/supported_operators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ethosu') diff --git a/ethosu/vela/supported_operators.py b/ethosu/vela/supported_operators.py index 8bb9c581..8446ec29 100644 --- a/ethosu/vela/supported_operators.py +++ b/ethosu/vela/supported_operators.py @@ -98,7 +98,7 @@ class SupportedOperators: ) split_ops = set((Op.Split, Op.SplitV, Op.StridedSlice, Op.Slice, Op.UnpackReshaped, Op.Unpack,)) concat_ops = set((Op.Concat, Op.ConcatTFLite, Op.PackReshaped, Op.Pack,)) - memory_only_ops = set((Op.Squeeze, Op.Reshape, Op.QuantizedReshape,)) | concat_ops | split_ops + memory_only_ops = set((Op.Reshape, Op.QuantizedReshape,)) | concat_ops | split_ops shapeless_input_ops = binary_elem_wise_main_ops | set((Op.Split, Op.SplitV,)) per_axis_quant_ops = convolution_like_ops # per-axis/channel quantization only currently supported for conv ops supported_fused_activations = relu_ops | set((Op.Tanh, Op.Sigmoid, Op.LUT,)) @@ -839,6 +839,7 @@ class SupportedOperators: @staticmethod def constraint_pad_constant(op): + "The padding tensor must be constant" pad_tensor = op.inputs[1].values valid = pad_tensor is not None return valid, f"Op has non-constant padding tensor: {op.inputs[1].values}" -- cgit v1.2.1