aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:30 +0100
committerJeremy Johnson <jeremy.johnson@arm.com>2022-06-17 13:06:30 +0100
commit14a8c70ad3e31e45ced57b363202ccd5342f291a (patch)
tree2062c328e776f4411e99f23ca0c09cf24ef31c57 /operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32
parent440fbd6624908131c5e3db9d7abbf1143da62c18 (diff)
downloadconformance_tests-14a8c70ad3e31e45ced57b363202ccd5342f291a.tar.gz
Updating ADD tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I20fb64c5bea18b3f1cd77f70ec820b5ffa5d936a
Diffstat (limited to 'operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32')
-rw-r--r--operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/desc.json20
-rw-r--r--operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/input-0.json21
-rw-r--r--operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/input-1.json22
-rw-r--r--operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/test.json56
4 files changed, 119 insertions, 0 deletions
diff --git a/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/desc.json b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/desc.json
new file mode 100644
index 000000000..3a2350840
--- /dev/null
+++ b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/desc.json
@@ -0,0 +1,20 @@
+{
+ "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": "Input Dimensions do not match output"
+} \ No newline at end of file
diff --git a/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/input-0.json b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/input-0.json
new file mode 100644
index 000000000..2819aa420
--- /dev/null
+++ b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/input-0.json
@@ -0,0 +1,21 @@
+{
+ "type": "int32",
+ "data": [
+ 1970051135,
+ -1403882270,
+ 1564837559,
+ -677458498,
+ 584937987,
+ 525186745,
+ 1767913286,
+ 1299777077,
+ -234680725,
+ 2086958779,
+ -839790210,
+ -224293703,
+ -1062573747,
+ 2122743712,
+ -503356496,
+ -1216148218
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/input-1.json b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/input-1.json
new file mode 100644
index 000000000..b1547b00c
--- /dev/null
+++ b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/input-1.json
@@ -0,0 +1,22 @@
+{
+ "type": "int32",
+ "data": [
+ 1835284136,
+ -91463874,
+ -1675199335,
+ 691786456,
+ 1204239682,
+ 1476441646,
+ -306342361,
+ -1948939333,
+ -1556962952,
+ -891495047,
+ -928917403,
+ -1389547163,
+ 171339308,
+ 764870704,
+ 1522909748,
+ 2096223669,
+ -202019302
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/test.json b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/test.json
new file mode 100644
index 000000000..32d92335d
--- /dev/null
+++ b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_16_i32/test.json
@@ -0,0 +1,56 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "ADD",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 16
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 17
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 16
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}