aboutsummaryrefslogtreecommitdiff
path: root/operators/reduction/reduce_min/reduce_min_24_bf16_axis0
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2022-12-14 12:22:49 +0000
committerJames Ward <james.ward@arm.com>2022-12-14 12:22:49 +0000
commit9438531ceffbf9f8c6c123b93ec81656f6685fef (patch)
tree14d6795076d0205339a1c06300d31f158cc744da /operators/reduction/reduce_min/reduce_min_24_bf16_axis0
parent4abeb4f0514409aec7e23cb5495dcc68417fc7ad (diff)
downloadconformance_tests-9438531ceffbf9f8c6c123b93ec81656f6685fef.tar.gz
Create MI tests for Reduction: REDUCE_MIN, REDUCE_MAX
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I203c8f2fdfe10342a4b6bf6572b643b7c7eda1e2
Diffstat (limited to 'operators/reduction/reduce_min/reduce_min_24_bf16_axis0')
-rw-r--r--operators/reduction/reduce_min/reduce_min_24_bf16_axis0/Conformance-result-0.json6
-rw-r--r--operators/reduction/reduce_min/reduce_min_24_bf16_axis0/desc.json23
-rw-r--r--operators/reduction/reduce_min/reduce_min_24_bf16_axis0/input-0.json29
-rw-r--r--operators/reduction/reduce_min/reduce_min_24_bf16_axis0/test.json50
4 files changed, 108 insertions, 0 deletions
diff --git a/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/Conformance-result-0.json b/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/Conformance-result-0.json
new file mode 100644
index 000000000..b61454890
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/Conformance-result-0.json
@@ -0,0 +1,6 @@
+{
+ "type": "float32",
+ "data": [
+ -1.8203125
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/desc.json b/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/desc.json
@@ -0,0 +1,23 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0"
+ ],
+ "ifm_file": [
+ "input-0.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/reduction/reduce_min/reduce_min_24_bf16_axis0/input-0.json b/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/input-0.json
new file mode 100644
index 000000000..78de11254
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/input-0.json
@@ -0,0 +1,29 @@
+{
+ "type": "float32",
+ "data": [
+ 1.3046875,
+ 0.5234375,
+ 1.03125,
+ -0.578125,
+ 1.875,
+ 1.5703125,
+ 1.109375,
+ -1.21875,
+ -0.1328125,
+ -1.8203125,
+ -1.3828125,
+ 0.73046875,
+ 0.9765625,
+ 1.8671875,
+ -0.6953125,
+ -0.515625,
+ -0.12158203125,
+ -1.234375,
+ -1.4765625,
+ -0.09716796875,
+ -1.0859375,
+ 0.67578125,
+ -0.25,
+ 1.328125
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/test.json b/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/test.json
new file mode 100644
index 000000000..293f13ca3
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_24_bf16_axis0/test.json
@@ -0,0 +1,50 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "REDUCE_MIN",
+ attribute_type: "AxisAttribute",
+ attribute: {
+ axis: 0
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 24
+ ],
+ type: "BF16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1
+ ],
+ type: "BF16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}