aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/test/testutil.py
diff options
context:
space:
mode:
authorLouis Verhaard <louis.verhaard@arm.com>2020-09-21 11:56:18 +0200
committerpatrik.gustavsson <patrik.gustavsson@arm.com>2020-09-28 10:21:20 +0000
commitfa2f92a51246630532d53b24228b7620b66595d1 (patch)
tree0b48513eeaf1d8d23e4b5258680bae9f5ab80cde /ethosu/vela/test/testutil.py
parentf3d737ea14eabffede935cb418611b1f624e180a (diff)
downloadethos-u-vela-fa2f92a51246630532d53b24228b7620b66595d1.tar.gz
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 <louis.verhaard@arm.com>
Diffstat (limited to 'ethosu/vela/test/testutil.py')
-rw-r--r--ethosu/vela/test/testutil.py8
1 files changed, 8 insertions, 0 deletions
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()