aboutsummaryrefslogtreecommitdiff
path: root/operators/reduction/reduce_min/reduce_min_27x3_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_27x3_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_27x3_bf16_axis0')
-rw-r--r--operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/Conformance-result-0.json10
-rw-r--r--operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/desc.json23
-rw-r--r--operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/input-0.json140
-rw-r--r--operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/test.json52
4 files changed, 225 insertions, 0 deletions
diff --git a/operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/Conformance-result-0.json b/operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/Conformance-result-0.json
new file mode 100644
index 000000000..8c6ef30e4
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/Conformance-result-0.json
@@ -0,0 +1,10 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ -1.9375,
+ -1.953125,
+ -1.8515625
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/desc.json b/operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_27x3_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_27x3_bf16_axis0/input-0.json b/operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/input-0.json
new file mode 100644
index 000000000..12fb36e2e
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/input-0.json
@@ -0,0 +1,140 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ -1.265625,
+ 1.9140625,
+ -0.1650390625
+ ],
+ [
+ 1.1328125,
+ 0.54296875,
+ 0.2890625
+ ],
+ [
+ -1.4140625,
+ 1.78125,
+ -0.79296875
+ ],
+ [
+ 0.310546875,
+ 0.796875,
+ 0.59375
+ ],
+ [
+ 1.7578125,
+ -1.3984375,
+ 0.033203125
+ ],
+ [
+ -0.3828125,
+ -0.10302734375,
+ -1.515625
+ ],
+ [
+ -1.4609375,
+ -0.88671875,
+ -0.77734375
+ ],
+ [
+ -0.287109375,
+ 0.443359375,
+ 0.53515625
+ ],
+ [
+ -0.3515625,
+ -0.36328125,
+ -1.125
+ ],
+ [
+ 0.3515625,
+ -0.73046875,
+ -1.8515625
+ ],
+ [
+ -0.326171875,
+ -0.10302734375,
+ -1.09375
+ ],
+ [
+ 0.2890625,
+ 0.26171875,
+ 0.8046875
+ ],
+ [
+ 0.58984375,
+ 0.609375,
+ -0.734375
+ ],
+ [
+ 1.1484375,
+ 0.1962890625,
+ -0.2734375
+ ],
+ [
+ 0.50390625,
+ -0.5546875,
+ 0.05078125
+ ],
+ [
+ 0.9453125,
+ 1.5390625,
+ 1.6796875
+ ],
+ [
+ 0.0145263671875,
+ 0.0810546875,
+ 1.1953125
+ ],
+ [
+ -0.7421875,
+ 1.34375,
+ -0.0233154296875
+ ],
+ [
+ -1.53125,
+ -1.7109375,
+ 1.3671875
+ ],
+ [
+ -1.7734375,
+ -0.875,
+ -0.66015625
+ ],
+ [
+ -1.3046875,
+ -0.7421875,
+ 0.96875
+ ],
+ [
+ -1.9375,
+ 1.3046875,
+ 1.421875
+ ],
+ [
+ -0.5078125,
+ -1.3828125,
+ 0.40234375
+ ],
+ [
+ -1.515625,
+ -0.5390625,
+ 1.828125
+ ],
+ [
+ 1.9765625,
+ 1.0859375,
+ -0.75390625
+ ],
+ [
+ 0.75,
+ 0.8203125,
+ -0.447265625
+ ],
+ [
+ 0.5625,
+ -1.953125,
+ -1.15625
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/test.json b/operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/test.json
new file mode 100644
index 000000000..f9e57e1cf
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_27x3_bf16_axis0/test.json
@@ -0,0 +1,52 @@
+{
+ 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: [
+ 27,
+ 3
+ ],
+ type: "BF16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 3
+ ],
+ type: "BF16"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}