From d5e8f519efe996800ca8ed8235735bd9cc124050 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:24 +0100 Subject: Updating SLICE tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I750905470261d35fee2e6db822ea7ad41b515a5e --- .../desc.json | 18 +++++++ .../input-0.json | 18 +++++++ .../test.json | 55 ++++++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/desc.json create mode 100644 operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/input-0.json create mode 100644 operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/test.json (limited to 'operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0') diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/desc.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/desc.json new file mode 100644 index 000000000..2d7a7c8f1 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/desc.json @@ -0,0 +1,18 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0" + ], + "ifm_file": [ + "input-0.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "Op input list does not match expected input" +} \ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/input-0.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/input-0.json new file mode 100644 index 000000000..3adf17adb --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/input-0.json @@ -0,0 +1,18 @@ +{ + "type": "int32", + "data": [ + -24718, + -8288, + -30266, + -1362, + 1299, + -24305, + 29064, + -11480, + -24907, + -20475, + 29339, + 733, + -10482 + ] +} \ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/test.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/test.json new file mode 100644 index 000000000..4597ee53c --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputList_13_i16_perm0/test.json @@ -0,0 +1,55 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 6 + ], + size: [ + 6 + ] + }, + inputs: [ + + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 13 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 6 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1