aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/add/add_20_i32
diff options
context:
space:
mode:
Diffstat (limited to 'operators/ew_binary/add/add_20_i32')
-rw-r--r--operators/ew_binary/add/add_20_i32/Conformance-result-0.json25
-rw-r--r--operators/ew_binary/add/add_20_i32/desc.json22
-rw-r--r--operators/ew_binary/add/add_20_i32/input-0.json25
-rw-r--r--operators/ew_binary/add/add_20_i32/input-1.json6
-rw-r--r--operators/ew_binary/add/add_20_i32/test.json56
5 files changed, 134 insertions, 0 deletions
diff --git a/operators/ew_binary/add/add_20_i32/Conformance-result-0.json b/operators/ew_binary/add/add_20_i32/Conformance-result-0.json
new file mode 100644
index 000000000..ff7598866
--- /dev/null
+++ b/operators/ew_binary/add/add_20_i32/Conformance-result-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "int32",
+ "data": [
+ 1492538583,
+ 462304859,
+ 571342617,
+ 383813930,
+ 678392973,
+ -493436163,
+ -2147483648,
+ 908963672,
+ -763334637,
+ -548732397,
+ -1105162123,
+ -1913682791,
+ 1282697808,
+ 659079152,
+ 67652123,
+ -969370976,
+ 836006711,
+ -355127283,
+ -793278028,
+ -763018460
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/add/add_20_i32/desc.json b/operators/ew_binary/add/add_20_i32/desc.json
new file mode 100644
index 000000000..be172ba86
--- /dev/null
+++ b/operators/ew_binary/add/add_20_i32/desc.json
@@ -0,0 +1,22 @@
+{
+ "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": 0,
+ "expected_failure": false,
+ "expected_result_file": [
+ "Conformance-result-0.npy"
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/add/add_20_i32/input-0.json b/operators/ew_binary/add/add_20_i32/input-0.json
new file mode 100644
index 000000000..edf16b732
--- /dev/null
+++ b/operators/ew_binary/add/add_20_i32/input-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "int32",
+ "data": [
+ 2042782445,
+ 1012548721,
+ 1121586479,
+ 934057792,
+ 1228636835,
+ 56807699,
+ -1597239786,
+ 1459207534,
+ -213090775,
+ 1511465,
+ -554918261,
+ -1363438929,
+ 1832941670,
+ 1209323014,
+ 617895985,
+ -419127114,
+ 1386250573,
+ 195116579,
+ -243034166,
+ -212774598
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/add/add_20_i32/input-1.json b/operators/ew_binary/add/add_20_i32/input-1.json
new file mode 100644
index 000000000..5e388d45c
--- /dev/null
+++ b/operators/ew_binary/add/add_20_i32/input-1.json
@@ -0,0 +1,6 @@
+{
+ "type": "int32",
+ "data": [
+ -550243862
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/add/add_20_i32/test.json b/operators/ew_binary/add/add_20_i32/test.json
new file mode 100644
index 000000000..677860b7f
--- /dev/null
+++ b/operators/ew_binary/add/add_20_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: [
+ 20
+ ],
+ type: "INT32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20
+ ],
+ type: "INT32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}