From fa2f92a51246630532d53b24228b7620b66595d1 Mon Sep 17 00:00:00 2001 From: Louis Verhaard Date: Mon, 21 Sep 2020 11:56:18 +0200 Subject: MLBEDSW-3035: Updated StridedSlice checks Updated supported operator checks for StridedSlice: - allow negative indices in begin/end values - added more checks on shapes Change-Id: I3ac76bfa6b313f0e2250f0749f152fb0e3aa033c Signed-off-by: Louis Verhaard --- ethosu/vela/test/testutil.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ethosu/vela/test/testutil.py') diff --git a/ethosu/vela/test/testutil.py b/ethosu/vela/test/testutil.py index d4ae97b4..13b6bf40 100644 --- a/ethosu/vela/test/testutil.py +++ b/ethosu/vela/test/testutil.py @@ -56,6 +56,14 @@ def create_elemwise_op(type, name, ifm_shape, ifm2_shape, ofm_shape, datatype=Da return op +def create_op(op_type, inputs, output, attrs=dict()): + op = Operation(op_type, output.name + "_op") + op.inputs = inputs + op.outputs = [output] + op.attrs = attrs + return op + + def create_subgraph(op_list): # Creates subgraph using the given list of operations sg = Subgraph() -- cgit v1.2.1