aboutsummaryrefslogtreecommitdiff
path: root/operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2
diff options
context:
space:
mode:
Diffstat (limited to 'operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2')
-rw-r--r--operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/desc.json22
-rw-r--r--operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/input-0.json85
-rw-r--r--operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/test.json65
3 files changed, 172 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/desc.json b/operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/desc.json
new file mode 100644
index 000000000..41275b4d0
--- /dev/null
+++ b/operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/desc.json
@@ -0,0 +1,22 @@
+{
+ "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": "Input Rank does not match output rank",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/input-0.json b/operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/input-0.json
new file mode 100644
index 000000000..41ab24e04
--- /dev/null
+++ b/operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/input-0.json
@@ -0,0 +1,85 @@
+{
+ "type": "bool",
+ "data": [
+ [
+ false,
+ false,
+ true,
+ true,
+ true,
+ true
+ ],
+ [
+ true,
+ false,
+ true,
+ false,
+ false,
+ true
+ ],
+ [
+ true,
+ false,
+ false,
+ true,
+ false,
+ false
+ ],
+ [
+ false,
+ false,
+ false,
+ false,
+ false,
+ true
+ ],
+ [
+ false,
+ true,
+ true,
+ true,
+ false,
+ true
+ ],
+ [
+ false,
+ true,
+ true,
+ true,
+ false,
+ false
+ ],
+ [
+ true,
+ false,
+ false,
+ true,
+ true,
+ false
+ ],
+ [
+ true,
+ true,
+ true,
+ true,
+ false,
+ false
+ ],
+ [
+ true,
+ true,
+ false,
+ false,
+ false,
+ true
+ ],
+ [
+ false,
+ false,
+ false,
+ false,
+ true,
+ true
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/test.json b/operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/test.json
new file mode 100644
index 000000000..566ead54f
--- /dev/null
+++ b/operators/data_layout/slice/slice_ERRORIF_RankMismatch_10x6_b_perm2/test.json
@@ -0,0 +1,65 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "SLICE",
+ attribute_type: "SliceAttribute",
+ attribute: {
+ start: [
+ 1,
+ 1
+ ],
+ size: [
+ 6,
+ 1
+ ]
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 6
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 6,
+ 1,
+ 1
+ ],
+ type: "BOOL"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}