aboutsummaryrefslogtreecommitdiff
path: root/operators/reduction/reduce_min/reduce_min_22x7_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_22x7_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_22x7_f32_axis0')
-rw-r--r--operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/Conformance-result-0.json14
-rw-r--r--operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/desc.json23
-rw-r--r--operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/input-0.json203
-rw-r--r--operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/test.json52
4 files changed, 292 insertions, 0 deletions
diff --git a/operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/Conformance-result-0.json b/operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/Conformance-result-0.json
new file mode 100644
index 000000000..1f9476510
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/Conformance-result-0.json
@@ -0,0 +1,14 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ -1.9950677156448364,
+ -1.9819995164871216,
+ -1.9293248653411865,
+ -1.8748658895492554,
+ -1.9933571815490723,
+ -1.8105039596557617,
+ -1.4471784830093384
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/desc.json b/operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/desc.json
new file mode 100644
index 000000000..d418e4060
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_22x7_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_22x7_f32_axis0/input-0.json b/operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/input-0.json
new file mode 100644
index 000000000..c59eb5177
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/input-0.json
@@ -0,0 +1,203 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ -0.6140285730361938,
+ -1.5045208930969238,
+ -1.836212158203125,
+ 1.1093724966049194,
+ -0.04120103269815445,
+ 1.942160725593567,
+ -0.1401061713695526
+ ],
+ [
+ 1.9116679430007935,
+ -0.35369598865509033,
+ 1.1747286319732666,
+ -1.6607228517532349,
+ 0.2218468338251114,
+ 1.208239197731018,
+ 1.698806643486023
+ ],
+ [
+ 1.290332317352295,
+ -1.8521170616149902,
+ -0.5091906189918518,
+ -1.805206060409546,
+ -1.5628708600997925,
+ 0.7012225389480591,
+ 0.8530327677726746
+ ],
+ [
+ 1.0948827266693115,
+ 1.461826205253601,
+ 0.9577258825302124,
+ 1.2034863233566284,
+ -1.8041452169418335,
+ -1.061859369277954,
+ 0.48759108781814575
+ ],
+ [
+ 1.432501196861267,
+ -1.9819995164871216,
+ 0.05851736664772034,
+ 0.7091495990753174,
+ -1.881570816040039,
+ -0.3945777714252472,
+ 1.5825395584106445
+ ],
+ [
+ 0.686451256275177,
+ -1.0493665933609009,
+ 1.4111244678497314,
+ -0.60787433385849,
+ 1.4133787155151367,
+ -0.8042253851890564,
+ 0.36128100752830505
+ ],
+ [
+ -0.4122397303581238,
+ -0.90069979429245,
+ 1.5462301969528198,
+ -1.249625325202942,
+ -1.660753607749939,
+ -0.6322922706604004,
+ 0.8705565929412842
+ ],
+ [
+ 1.2297264337539673,
+ 1.9949734210968018,
+ -0.8145517706871033,
+ -0.36823219060897827,
+ -1.4527149200439453,
+ 0.2994877099990845,
+ 1.9903202056884766
+ ],
+ [
+ 0.8035240173339844,
+ 0.3808513581752777,
+ -0.4305236339569092,
+ 1.6611950397491455,
+ -0.012333615683019161,
+ -1.4625324010849,
+ -0.538486123085022
+ ],
+ [
+ -1.7313333749771118,
+ -1.1920838356018066,
+ -1.9293248653411865,
+ -0.18688033521175385,
+ 0.538161039352417,
+ -0.6268301606178284,
+ -0.3184729218482971
+ ],
+ [
+ 1.8368370532989502,
+ 1.0078524351119995,
+ 0.16342654824256897,
+ -0.8618364930152893,
+ 1.5879871845245361,
+ -1.0596115589141846,
+ -0.6986290812492371
+ ],
+ [
+ 1.6362591981887817,
+ 0.11816821992397308,
+ 0.9692717790603638,
+ 0.3629791736602783,
+ 0.6137568354606628,
+ -0.8024668097496033,
+ -1.0345118045806885
+ ],
+ [
+ -0.7100306153297424,
+ -1.378233790397644,
+ 1.4972574710845947,
+ -0.8670122623443604,
+ 0.24595758318901062,
+ 1.1678977012634277,
+ 1.1352964639663696
+ ],
+ [
+ -0.24645496904850006,
+ -0.09497076272964478,
+ 1.978806972503662,
+ 0.6983898878097534,
+ 1.2585537433624268,
+ 1.6102159023284912,
+ 1.1503593921661377
+ ],
+ [
+ -1.2592825889587402,
+ 0.2486829310655594,
+ -1.5924233198165894,
+ 0.611688494682312,
+ 1.8213976621627808,
+ 0.050928257405757904,
+ -0.2681100368499756
+ ],
+ [
+ -1.8566290140151978,
+ 1.8390980958938599,
+ -1.5879892110824585,
+ -1.8356835842132568,
+ -1.0157335996627808,
+ -1.7378783226013184,
+ -0.1795286238193512
+ ],
+ [
+ 0.06435120850801468,
+ -0.7497202157974243,
+ -1.7961580753326416,
+ -1.5535985231399536,
+ -0.46198248863220215,
+ -1.7578861713409424,
+ 0.7927588820457458
+ ],
+ [
+ -1.1719177961349487,
+ -0.7917137145996094,
+ -0.42349690198898315,
+ -0.3335614800453186,
+ -1.9933571815490723,
+ -1.5517184734344482,
+ 1.451058268547058
+ ],
+ [
+ -1.9950677156448364,
+ 0.03266942501068115,
+ -0.04199197515845299,
+ -0.6676233410835266,
+ -0.2746919095516205,
+ 1.1223245859146118,
+ 1.3648148775100708
+ ],
+ [
+ -0.9586058259010315,
+ -0.7100382447242737,
+ -1.0300686359405518,
+ -0.08054640144109726,
+ 0.7330334186553955,
+ -1.0869884490966797,
+ -0.6770570278167725
+ ],
+ [
+ 1.7215384244918823,
+ -1.8057228326797485,
+ -0.15692158043384552,
+ 0.8462321758270264,
+ -1.3981839418411255,
+ -1.8105039596557617,
+ -1.4471784830093384
+ ],
+ [
+ 1.675292730331421,
+ -1.9629608392715454,
+ -1.2467120885849,
+ -1.8748658895492554,
+ -1.557482123374939,
+ 0.4805971384048462,
+ -1.0334444046020508
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/test.json b/operators/reduction/reduce_min/reduce_min_22x7_f32_axis0/test.json
new file mode 100644
index 000000000..afeb20ae4
--- /dev/null
+++ b/operators/reduction/reduce_min/reduce_min_22x7_f32_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: [
+ 22,
+ 7
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 7
+ ],
+ type: "FP32"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}