aboutsummaryrefslogtreecommitdiff
path: root/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8
diff options
context:
space:
mode:
Diffstat (limited to 'operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8')
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/desc.json24
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/input-0.json97
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/input-1.json124
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/test.json134
4 files changed, 379 insertions, 0 deletions
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/desc.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/desc.json
new file mode 100644
index 000000000..a4740efbc
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/desc.json
@@ -0,0 +1,24 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0",
+ "input-1"
+ ],
+ "ifm_file": [
+ "input-0.npy",
+ "input-1.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",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/input-0.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/input-0.json
new file mode 100644
index 000000000..058297d12
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/input-0.json
@@ -0,0 +1,97 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ [
+ -8,
+ 107,
+ -90,
+ -50,
+ -82,
+ -66,
+ 104
+ ],
+ [
+ 112,
+ -117,
+ 33,
+ -69,
+ -79,
+ -54,
+ -79
+ ],
+ [
+ -3,
+ 126,
+ 22,
+ 57,
+ -2,
+ -125,
+ -107
+ ],
+ [
+ -60,
+ -66,
+ 87,
+ 87,
+ 90,
+ 35,
+ 14
+ ],
+ [
+ 38,
+ -24,
+ 43,
+ 75,
+ 67,
+ 29,
+ -114
+ ],
+ [
+ 57,
+ -35,
+ 62,
+ 10,
+ 97,
+ -42,
+ 110
+ ],
+ [
+ 88,
+ -44,
+ -5,
+ 8,
+ 68,
+ 48,
+ 90
+ ],
+ [
+ -34,
+ 1,
+ -18,
+ 104,
+ -50,
+ 22,
+ -98
+ ],
+ [
+ 89,
+ -30,
+ -41,
+ 21,
+ -1,
+ 89,
+ 8
+ ],
+ [
+ 4,
+ -102,
+ -123,
+ -26,
+ 127,
+ 106,
+ 33
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/input-1.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/input-1.json
new file mode 100644
index 000000000..3f3a84ed6
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/input-1.json
@@ -0,0 +1,124 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ [
+ 33,
+ -28,
+ -83,
+ -126,
+ -42,
+ -47,
+ -79
+ ],
+ [
+ -62,
+ -122,
+ 27,
+ 109,
+ 48,
+ -14,
+ -21
+ ],
+ [
+ -50,
+ -92,
+ 25,
+ 17,
+ -127,
+ -22,
+ -57
+ ],
+ [
+ -85,
+ 51,
+ 6,
+ 34,
+ 54,
+ 123,
+ 77
+ ],
+ [
+ 30,
+ 97,
+ -6,
+ 124,
+ 66,
+ 38,
+ 103
+ ],
+ [
+ 3,
+ 56,
+ -56,
+ 118,
+ 31,
+ 72,
+ -11
+ ],
+ [
+ 93,
+ -110,
+ -99,
+ 1,
+ 59,
+ 79,
+ -16
+ ],
+ [
+ 38,
+ 13,
+ 118,
+ 39,
+ -22,
+ 120,
+ -101
+ ],
+ [
+ 124,
+ -89,
+ -55,
+ 82,
+ 59,
+ 120,
+ 63
+ ],
+ [
+ 35,
+ -40,
+ -127,
+ -97,
+ -52,
+ -118,
+ 2
+ ],
+ [
+ 70,
+ 118,
+ -3,
+ 96,
+ 124,
+ 92,
+ -9
+ ],
+ [
+ -45,
+ 122,
+ -67,
+ -23,
+ -110,
+ 75,
+ 38
+ ],
+ [
+ -107,
+ -72,
+ 14,
+ 10,
+ 77,
+ -60,
+ 108
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/test.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/test.json
new file mode 100644
index 000000000..0e28ac952
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x10x7_i8/test.json
@@ -0,0 +1,134 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CONST",
+ attribute_type: "NONE",
+ inputs: [
+
+ ],
+ outputs: [
+ "const-2"
+ ]
+ },
+ {
+ op: "SCATTER",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "const-2"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 10,
+ 7
+ ],
+ type: "INT8"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1,
+ 13,
+ 7
+ ],
+ type: "INT8"
+ },
+ {
+ name: "const-2",
+ shape: [
+ 1,
+ 13
+ ],
+ type: "INT32",
+ data: [
+ 4,
+ 0,
+ 0,
+ 0,
+ 8,
+ 0,
+ 0,
+ 0,
+ 2,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 3,
+ 0,
+ 0,
+ 0,
+ 9,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ 3,
+ 0,
+ 0,
+ 0,
+ 1,
+ 0,
+ 0,
+ 0,
+ 9,
+ 0,
+ 0,
+ 0,
+ 6,
+ 0,
+ 0,
+ 0,
+ 7,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 10,
+ 7
+ ],
+ type: "INT8"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}