aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/maximum/maximum_20_f32
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2022-12-14 12:16:05 +0000
committerEric Kunze <eric.kunze@arm.com>2022-12-15 16:42:21 +0000
commite926477175d04742f000925b4780d97e0c919e86 (patch)
treeba29abe6262d8f302365da95f10c99a49b68b9f5 /operators/ew_binary/maximum/maximum_20_f32
parent7125e9b2ef21580734f6ec654f6c47da6d870ebe (diff)
downloadconformance_tests-e926477175d04742f000925b4780d97e0c919e86.tar.gz
Create MI tests for EW Binary: MINIMUM, MAXIMUM
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I59cc5c683e270dcea7ced52fc1d037a553ff544f
Diffstat (limited to 'operators/ew_binary/maximum/maximum_20_f32')
-rw-r--r--operators/ew_binary/maximum/maximum_20_f32/Conformance-result-0.json25
-rw-r--r--operators/ew_binary/maximum/maximum_20_f32/desc.json25
-rw-r--r--operators/ew_binary/maximum/maximum_20_f32/input-0.json25
-rw-r--r--operators/ew_binary/maximum/maximum_20_f32/input-1.json6
-rw-r--r--operators/ew_binary/maximum/maximum_20_f32/test.json56
5 files changed, 137 insertions, 0 deletions
diff --git a/operators/ew_binary/maximum/maximum_20_f32/Conformance-result-0.json b/operators/ew_binary/maximum/maximum_20_f32/Conformance-result-0.json
new file mode 100644
index 000000000..0b52367c9
--- /dev/null
+++ b/operators/ew_binary/maximum/maximum_20_f32/Conformance-result-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "float32",
+ "data": [
+ -0.09718029201030731,
+ 1.3105247020721436,
+ 0.5266575813293457,
+ 1.032351016998291,
+ -0.09718029201030731,
+ 1.8827921152114868,
+ 1.5724844932556152,
+ 1.1135339736938477,
+ -0.09718029201030731,
+ -0.09718029201030731,
+ -0.09718029201030731,
+ -0.09718029201030731,
+ 0.7321957945823669,
+ 0.9790486097335815,
+ 1.8700389862060547,
+ -0.09718029201030731,
+ -0.09718029201030731,
+ -0.09718029201030731,
+ -0.09718029201030731,
+ -0.09718029201030731
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/maximum/maximum_20_f32/desc.json b/operators/ew_binary/maximum/maximum_20_f32/desc.json
new file mode 100644
index 000000000..5ee7961df
--- /dev/null
+++ b/operators/ew_binary/maximum/maximum_20_f32/desc.json
@@ -0,0 +1,25 @@
+{
+ "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"
+ ],
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/maximum/maximum_20_f32/input-0.json b/operators/ew_binary/maximum/maximum_20_f32/input-0.json
new file mode 100644
index 000000000..0e6e507b1
--- /dev/null
+++ b/operators/ew_binary/maximum/maximum_20_f32/input-0.json
@@ -0,0 +1,25 @@
+{
+ "type": "float32",
+ "data": [
+ -1.7447309494018555,
+ 1.3105247020721436,
+ 0.5266575813293457,
+ 1.032351016998291,
+ -0.5818961262702942,
+ 1.8827921152114868,
+ 1.5724844932556152,
+ 1.1135339736938477,
+ -1.2214452028274536,
+ -0.1331159919500351,
+ -1.8247849941253662,
+ -1.3828420639038086,
+ 0.7321957945823669,
+ 0.9790486097335815,
+ 1.8700389862060547,
+ -0.6966985464096069,
+ -0.5181611776351929,
+ -0.1217767521739006,
+ -1.242114543914795,
+ -1.480314016342163
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/maximum/maximum_20_f32/input-1.json b/operators/ew_binary/maximum/maximum_20_f32/input-1.json
new file mode 100644
index 000000000..11c16f14b
--- /dev/null
+++ b/operators/ew_binary/maximum/maximum_20_f32/input-1.json
@@ -0,0 +1,6 @@
+{
+ "type": "float32",
+ "data": [
+ -0.09718029201030731
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/maximum/maximum_20_f32/test.json b/operators/ew_binary/maximum/maximum_20_f32/test.json
new file mode 100644
index 000000000..296f19240
--- /dev/null
+++ b/operators/ew_binary/maximum/maximum_20_f32/test.json
@@ -0,0 +1,56 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "MAXIMUM",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 20
+ ],
+ type: "FP32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 1
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}