aboutsummaryrefslogtreecommitdiff
path: root/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2022-11-21 10:32:30 +0000
committerJames Ward <james.ward@arm.com>2022-11-21 10:35:21 +0000
commit4c39d9a327b60518b34c6f333d379b2b82184510 (patch)
treec1a212eaf8cf9e30781c9e37f81ec061412300df /operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16
parenta25d672b327ad02b3813592803e41f5909aa0d5a (diff)
downloadconformance_tests-4c39d9a327b60518b34c6f333d379b2b82184510.tar.gz
Create MI tests for Scatter: SCATTER
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I5d8fa1a91ff561fad3dbaefe75262c3e04d42347
Diffstat (limited to 'operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16')
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/desc.json23
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/input-0.json163
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/input-1.json85
-rw-r--r--operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/test.json107
4 files changed, 378 insertions, 0 deletions
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/desc.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/desc.json
new file mode 100644
index 000000000..200d6a41d
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_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 output list does not match expected output",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/input-0.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/input-0.json
new file mode 100644
index 000000000..1899de36e
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/input-0.json
@@ -0,0 +1,163 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ 0.357421875,
+ 0.408203125,
+ 0.4296875,
+ 0.6328125,
+ 0.92578125,
+ 0.9296875,
+ 0.390625,
+ 0.328125,
+ 0.44921875,
+ 0.56640625,
+ 0.4609375
+ ],
+ [
+ 0.65625,
+ 0.55078125,
+ 0.3203125,
+ 0.345703125,
+ 0.376953125,
+ 0.09423828125,
+ 0.166015625,
+ 0.72265625,
+ 0.388671875,
+ 0.2138671875,
+ 0.5625
+ ],
+ [
+ 0.75390625,
+ 0.255859375,
+ 0.82421875,
+ 0.92578125,
+ 0.59375,
+ 0.66796875,
+ 0.052490234375,
+ 0.9453125,
+ 0.390625,
+ 0.921875,
+ 0.578125
+ ],
+ [
+ 0.004608154296875,
+ 0.038330078125,
+ 0.6796875,
+ 0.5625,
+ 0.0264892578125,
+ 0.7421875,
+ 0.8515625,
+ 0.49609375,
+ 0.46484375,
+ 0.005462646484375,
+ 0.78515625
+ ],
+ [
+ 0.330078125,
+ 0.875,
+ 0.373046875,
+ 0.5625,
+ 0.26953125,
+ 0.16015625,
+ 0.7734375,
+ 0.49609375,
+ 0.53515625,
+ 0.96484375,
+ 0.9609375
+ ],
+ [
+ 0.85546875,
+ 0.1875,
+ 0.59375,
+ 0.875,
+ 0.373046875,
+ 0.10107421875,
+ 0.80859375,
+ 0.48046875,
+ 0.5625,
+ 0.98046875,
+ 0.60546875
+ ],
+ [
+ 0.423828125,
+ 0.369140625,
+ 0.416015625,
+ 0.1181640625,
+ 0.79296875,
+ 0.8359375,
+ 0.283203125,
+ 0.302734375,
+ 0.87109375,
+ 0.02392578125,
+ 0.51953125
+ ],
+ [
+ 0.462890625,
+ 0.6875,
+ 0.1630859375,
+ 0.66796875,
+ 0.375,
+ 0.6171875,
+ 0.0400390625,
+ 0.4609375,
+ 0.51953125,
+ 0.2138671875,
+ 0.138671875
+ ],
+ [
+ 0.1875,
+ 0.34375,
+ 0.0966796875,
+ 0.9453125,
+ 0.404296875,
+ 0.80859375,
+ 0.97265625,
+ 0.08056640625,
+ 0.6484375,
+ 0.87109375,
+ 0.6328125
+ ],
+ [
+ 0.427734375,
+ 0.4296875,
+ 0.035888671875,
+ 0.53125,
+ 0.9921875,
+ 0.95703125,
+ 0.040283203125,
+ 0.703125,
+ 0.30078125,
+ 0.90234375,
+ 0.044921875
+ ],
+ [
+ 0.93359375,
+ 0.8359375,
+ 0.1171875,
+ 0.059814453125,
+ 0.83203125,
+ 0.1552734375,
+ 0.53125,
+ 0.9140625,
+ 0.56640625,
+ 0.396484375,
+ 0.443359375
+ ],
+ [
+ 0.06298828125,
+ 0.96875,
+ 0.310546875,
+ 0.1884765625,
+ 0.28515625,
+ 0.9609375,
+ 0.09423828125,
+ 0.8671875,
+ 0.70703125,
+ 0.828125,
+ 0.97265625
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/input-1.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/input-1.json
new file mode 100644
index 000000000..ce7b33793
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/input-1.json
@@ -0,0 +1,85 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ 0.83984375,
+ 0.94140625,
+ 0.1259765625,
+ 0.79296875,
+ 0.54296875,
+ 0.54296875,
+ 0.8984375,
+ 0.96875,
+ 0.703125,
+ 0.482421875,
+ 0.455078125
+ ],
+ [
+ 0.384765625,
+ 0.361328125,
+ 0.390625,
+ 0.08935546875,
+ 0.0771484375,
+ 0.77734375,
+ 0.4453125,
+ 0.9296875,
+ 0.609375,
+ 0.03515625,
+ 0.1572265625
+ ],
+ [
+ 0.205078125,
+ 0.97265625,
+ 0.2177734375,
+ 0.515625,
+ 0.93359375,
+ 0.9765625,
+ 0.236328125,
+ 0.049072265625,
+ 0.1533203125,
+ 0.06298828125,
+ 0.1943359375
+ ],
+ [
+ 0.56640625,
+ 0.91015625,
+ 0.53515625,
+ 0.625,
+ 0.201171875,
+ 0.796875,
+ 0.6171875,
+ 0.86328125,
+ 0.9453125,
+ 0.34765625,
+ 0.09033203125
+ ],
+ [
+ 0.2255859375,
+ 0.4375,
+ 0.9453125,
+ 0.376953125,
+ 0.76953125,
+ 0.5390625,
+ 0.1826171875,
+ 0.3203125,
+ 0.65234375,
+ 0.671875,
+ 0.43359375
+ ],
+ [
+ 0.228515625,
+ 0.71875,
+ 0.16796875,
+ 0.93359375,
+ 0.1875,
+ 0.10693359375,
+ 0.49609375,
+ 0.51953125,
+ 0.5078125,
+ 0.435546875,
+ 0.9921875
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/test.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/test.json
new file mode 100644
index 000000000..9c36edfdd
--- /dev/null
+++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputList_1x12x11_bf16/test.json
@@ -0,0 +1,107 @@
+{
+ 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",
+ "input-1"
+ ],
+ outputs: [
+
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 12,
+ 11
+ ],
+ type: "BF16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1,
+ 6,
+ 11
+ ],
+ type: "BF16"
+ },
+ {
+ name: "const-2",
+ shape: [
+ 1,
+ 6
+ ],
+ type: "INT32",
+ data: [
+ 1,
+ 0,
+ 0,
+ 0,
+ 5,
+ 0,
+ 0,
+ 0,
+ 6,
+ 0,
+ 0,
+ 0,
+ 5,
+ 0,
+ 0,
+ 0,
+ 11,
+ 0,
+ 0,
+ 0,
+ 5,
+ 0,
+ 0,
+ 0
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 12,
+ 11
+ ],
+ type: "BF16"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}