aboutsummaryrefslogtreecommitdiff
path: root/operators/reduction/reduce_min/reduce_min_21_f32_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_21_f32_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_21_f32_axis0')
-rw-r--r--operators/reduction/reduce_min/reduce_min_21_f32_axis0/Conformance-result-0.json6
-rw-r--r--operators/reduction/reduce_min/reduce_min_21_f32_axis0/desc.json23
-rw-r--r--operators/reduction/reduce_min/reduce_min_21_f32_axis0/input-0.json26
-rw-r--r--operators/reduction/reduce_min/reduce_min_21_f32_axis0/test.json50
4 files changed, 105 insertions, 0 deletions
diff --git a/operators/reduction/reduce_min/reduce_min_21_f32_axis0/Conformance-result-0.json b/operators/reduction/reduce_min/reduce_min_21_f32_axis0/Conformance-result-0.json
new file mode 100644
index 000000000..68ed65636
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_21_f32_axis0/Conformance-result-0.json
@@ -0,0 +1,6 @@
+{
+ "type": "float32",
+ "data": [
+ -1.9705508947372437
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_min/reduce_min_21_f32_axis0/desc.json b/operators/reduction/reduce_min/reduce_min_21_f32_axis0/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_21_f32_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_21_f32_axis0/input-0.json b/operators/reduction/reduce_min/reduce_min_21_f32_axis0/input-0.json
new file mode 100644
index 000000000..56625c9a0
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_21_f32_axis0/input-0.json
@@ -0,0 +1,26 @@
+{
+ "type": "float32",
+ "data": [
+ 0.8010603785514832,
+ -0.7505334615707397,
+ 1.329039216041565,
+ 1.2190574407577515,
+ -0.45008647441864014,
+ -0.8466875553131104,
+ 0.7299820184707642,
+ -1.4409900903701782,
+ -1.2003672122955322,
+ -1.9705508947372437,
+ 1.1476975679397583,
+ 0.6594034433364868,
+ 0.8206614851951599,
+ 1.1229161024093628,
+ -0.1643369048833847,
+ 0.2749647796154022,
+ -1.4408119916915894,
+ -1.541879653930664,
+ 0.6736118197441101,
+ -0.11561517417430878,
+ 0.2609444260597229
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_min/reduce_min_21_f32_axis0/test.json b/operators/reduction/reduce_min/reduce_min_21_f32_axis0/test.json
new file mode 100644
index 000000000..d82fb9df7
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_21_f32_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: [
+ 21
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}