From d2f0a9657439fe7ad7c60208a9eacafdcb1af5be Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:07:05 +0100 Subject: Updating REDUCE_MAX tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: Ifad1bf01c9285e09596729029bd9cba05a6042a1 --- .../Conformance-result-0.json | 71 +++++++ .../reduce_max/reduce_max_22x7_i32_axis1/desc.json | 20 ++ .../reduce_max_22x7_i32_axis1/input-0.json | 203 +++++++++++++++++++++ .../reduce_max/reduce_max_22x7_i32_axis1/test.json | 52 ++++++ 4 files changed, 346 insertions(+) create mode 100644 operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/Conformance-result-0.json create mode 100644 operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/desc.json create mode 100644 operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/input-0.json create mode 100644 operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/test.json (limited to 'operators/reduction/reduce_max/reduce_max_22x7_i32_axis1') diff --git a/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/Conformance-result-0.json b/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/Conformance-result-0.json new file mode 100644 index 000000000..d37491faf --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/Conformance-result-0.json @@ -0,0 +1,71 @@ +{ + "type": "int32", + "data": [ + [ + 955997166 + ], + [ + 2011377632 + ], + [ + 1797194256 + ], + [ + 2134747600 + ], + [ + 2143638494 + ], + [ + 1705245463 + ], + [ + 1560978648 + ], + [ + 1763677756 + ], + [ + 1758516522 + ], + [ + 2061785083 + ], + [ + 2010887443 + ], + [ + 1486608045 + ], + [ + 847714800 + ], + [ + 1508096590 + ], + [ + 1345735574 + ], + [ + 2062463846 + ], + [ + 1649893267 + ], + [ + 1160728390 + ], + [ + 2061701037 + ], + [ + 1915660441 + ], + [ + 858031148 + ], + [ + 1892338580 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/desc.json b/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/desc.json @@ -0,0 +1,20 @@ +{ + "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" + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/input-0.json b/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/input-0.json new file mode 100644 index 000000000..3760a4455 --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/input-0.json @@ -0,0 +1,203 @@ +{ + "type": "int32", + "data": [ + [ + -2008418516, + 799277802, + 191169088, + -2094644015, + -1736551740, + -196202860, + 955997166 + ], + [ + 1397580258, + -295057410, + -878926294, + 2011377632, + -178034634, + -792895113, + -247758938 + ], + [ + -2095550405, + -850715376, + 66805884, + 1797194256, + 1023173185, + 1208148682, + 192851337 + ], + [ + -1672510040, + -468467234, + 2134747600, + -1957770612, + 1628651703, + 792402845, + -928106193 + ], + [ + 1193952274, + 1446959791, + -1961859040, + -1690415239, + 711889167, + 2143638494, + -2044548159 + ], + [ + 711610523, + -1561115116, + 644782032, + 529633338, + -1759043684, + 776221277, + 1705245463 + ], + [ + 1560978648, + -2022931731, + -1091280102, + -1113135015, + -200607915, + -1533209372, + 1521907242 + ], + [ + 1188709253, + 1324352108, + -1296202975, + -2084894871, + 1763677756, + -906631482, + 671170413 + ], + [ + 1758516522, + -1992165990, + -2123975696, + -2124162688, + -1476069698, + -1925614584, + 1374307293 + ], + [ + 454945173, + 2061785083, + 1294854517, + 1989376910, + -1122907086, + -911393801, + 1500699553 + ], + [ + -1095720072, + -1901674337, + 726408362, + 1292629908, + 2010887443, + 1837367381, + -1631097277 + ], + [ + 1168696675, + 1486608045, + 850922287, + 1373529264, + 1451613985, + -229565183, + -1975035130 + ], + [ + -188143786, + -1280836082, + -1659019541, + -1610940531, + 847714800, + 19460454, + 171105901 + ], + [ + 1053074992, + 207308505, + 558396620, + -1778011336, + 1508096590, + -219984924, + -1480848922 + ], + [ + 1345735574, + 1007689916, + -1919738994, + -1318376758, + -2079840307, + -984583666, + -1718071220 + ], + [ + 901533810, + 96864962, + 2062463846, + 1071268226, + 479076139, + 40000552, + -1913406578 + ], + [ + -1845971645, + 499543222, + -2128675220, + -1965589414, + -1206302812, + 1649893267, + -176393744 + ], + [ + 900131880, + -379837215, + -1403905210, + -553378528, + -1753544928, + 1160728390, + -1359214433 + ], + [ + -530957479, + 2061701037, + 394979121, + -177980686, + 184738437, + 1220118382, + -1054492731 + ], + [ + 585869368, + 1600697868, + 311012110, + -229608747, + -1524153951, + -1081088293, + 1915660441 + ], + [ + 177210145, + -853226897, + -350605346, + 335081390, + 161263779, + 858031148, + -1041561191 + ], + [ + 640951521, + -246199606, + 1892338580, + -1469210430, + -1509943041, + -164675655, + 35874738 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/test.json b/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/test.json new file mode 100644 index 000000000..edc0fcb3a --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_22x7_i32_axis1/test.json @@ -0,0 +1,52 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "REDUCE_MAX", + attribute_type: "AxisAttribute", + attribute: { + axis: 1 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 22, + 7 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 22, + 1 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1