aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/minimum/minimum_1_f16
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/minimum/minimum_1_f16
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/minimum/minimum_1_f16')
-rw-r--r--operators/ew_binary/minimum/minimum_1_f16/Conformance-result-0.json52
-rw-r--r--operators/ew_binary/minimum/minimum_1_f16/desc.json25
-rw-r--r--operators/ew_binary/minimum/minimum_1_f16/input-0.json6
-rw-r--r--operators/ew_binary/minimum/minimum_1_f16/input-1.json52
-rw-r--r--operators/ew_binary/minimum/minimum_1_f16/test.json56
5 files changed, 191 insertions, 0 deletions
diff --git a/operators/ew_binary/minimum/minimum_1_f16/Conformance-result-0.json b/operators/ew_binary/minimum/minimum_1_f16/Conformance-result-0.json
new file mode 100644
index 000000000..ec584322d
--- /dev/null
+++ b/operators/ew_binary/minimum/minimum_1_f16/Conformance-result-0.json
@@ -0,0 +1,52 @@
+{
+ "type": "float16",
+ "data": [
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.44140625,
+ -1.2001953125,
+ -1.970703125,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.4404296875,
+ -1.5419921875,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.876953125,
+ -1.0927734375,
+ -1.1416015625,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.7666015625,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.0927734375,
+ -1.33203125,
+ -1.9091796875,
+ -1.6396484375
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/minimum/minimum_1_f16/desc.json b/operators/ew_binary/minimum/minimum_1_f16/desc.json
new file mode 100644
index 000000000..5ee7961df
--- /dev/null
+++ b/operators/ew_binary/minimum/minimum_1_f16/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/minimum/minimum_1_f16/input-0.json b/operators/ew_binary/minimum/minimum_1_f16/input-0.json
new file mode 100644
index 000000000..76d96eb17
--- /dev/null
+++ b/operators/ew_binary/minimum/minimum_1_f16/input-0.json
@@ -0,0 +1,6 @@
+{
+ "type": "float16",
+ "data": [
+ -1.0927734375
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/minimum/minimum_1_f16/input-1.json b/operators/ew_binary/minimum/minimum_1_f16/input-1.json
new file mode 100644
index 000000000..92cc3d122
--- /dev/null
+++ b/operators/ew_binary/minimum/minimum_1_f16/input-1.json
@@ -0,0 +1,52 @@
+{
+ "type": "float16",
+ "data": [
+ 0.67919921875,
+ -0.25146484375,
+ 1.3310546875,
+ 0.80126953125,
+ -0.75048828125,
+ 1.3291015625,
+ 1.21875,
+ -0.4501953125,
+ -0.8466796875,
+ 0.72998046875,
+ -1.44140625,
+ -1.2001953125,
+ -1.970703125,
+ 1.1474609375,
+ 0.6591796875,
+ 0.82080078125,
+ 1.123046875,
+ -0.164306640625,
+ 0.27490234375,
+ -1.4404296875,
+ -1.5419921875,
+ 0.673828125,
+ -0.1156005859375,
+ 0.260986328125,
+ 1.0595703125,
+ 0.5390625,
+ 0.21435546875,
+ 0.23681640625,
+ -0.7841796875,
+ -1.876953125,
+ -0.253173828125,
+ -1.1416015625,
+ -0.365966796875,
+ 1.4140625,
+ -1.064453125,
+ -1.7666015625,
+ -0.87451171875,
+ -0.82568359375,
+ 0.6474609375,
+ 0.2281494140625,
+ 1.1357421875,
+ 0.6572265625,
+ -0.37451171875,
+ 1.255859375,
+ -1.33203125,
+ -1.9091796875,
+ -1.6396484375
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/minimum/minimum_1_f16/test.json b/operators/ew_binary/minimum/minimum_1_f16/test.json
new file mode 100644
index 000000000..254af6217
--- /dev/null
+++ b/operators/ew_binary/minimum/minimum_1_f16/test.json
@@ -0,0 +1,56 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "MINIMUM",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1
+ ],
+ type: "FP16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 47
+ ],
+ type: "FP16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 47
+ ],
+ type: "FP16"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}