aboutsummaryrefslogtreecommitdiff
path: root/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16
diff options
context:
space:
mode:
Diffstat (limited to 'operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16')
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/desc.json23
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/input-0.json35
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/input-1.json28
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/test.json99
4 files changed, 185 insertions, 0 deletions
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/desc.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/desc.json
new file mode 100644
index 000000000..3e33b7c32
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/desc.json
@@ -0,0 +1,23 @@
+{
+ "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-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/input-0.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/input-0.json
new file mode 100644
index 000000000..5c84587d0
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/input-0.json
@@ -0,0 +1,35 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ 0.294921875,
+ 0.45703125,
+ 0.44140625,
+ 0.30078125,
+ 0.91796875
+ ],
+ [
+ 0.78125,
+ 0.1103515625,
+ 0.99609375,
+ 0.87890625,
+ 0.283203125
+ ],
+ [
+ 0.8359375,
+ 0.10595703125,
+ 0.99609375,
+ 0.6640625,
+ 0.6484375
+ ],
+ [
+ 0.09033203125,
+ 0.89453125,
+ 0.0289306640625,
+ 0.240234375,
+ 0.142578125
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/input-1.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/input-1.json
new file mode 100644
index 000000000..c447ae3ca
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/input-1.json
@@ -0,0 +1,28 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ 0.7734375,
+ 0.197265625,
+ 0.91015625,
+ 0.65625,
+ 0.0361328125
+ ],
+ [
+ 0.005401611328125,
+ 0.051513671875,
+ 0.60546875,
+ 0.80078125,
+ 0.23828125
+ ],
+ [
+ 0.84765625,
+ 0.05712890625,
+ 0.80078125,
+ 0.92578125,
+ 0.76953125
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/test.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/test.json
new file mode 100644
index 000000000..04f3251d8
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongInputList_1x4x5_bf16/test.json
@@ -0,0 +1,99 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ 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,
+ 4,
+ 5
+ ],
+ type: "BF16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1,
+ 3,
+ 5
+ ],
+ type: "BF16"
+ },
+ {
+ name: "const-2",
+ shape: [
+ 1,
+ 3
+ ],
+ type: "INT32",
+ data: [
+ 3,
+ 0,
+ 0,
+ 0,
+ 3,
+ 0,
+ 0,
+ 0,
+ 2,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 4,
+ 5
+ ],
+ type: "BF16"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}