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 --- .../desc.json | 18 + .../input-0.json | 413 +++++++++++++++++++++ .../test.json | 52 +++ 3 files changed, 483 insertions(+) create mode 100644 operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/desc.json create mode 100644 operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/input-0.json create mode 100644 operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/test.json (limited to 'operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0') diff --git a/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/desc.json b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/desc.json new file mode 100644 index 000000000..2d7a7c8f1 --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/desc.json @@ -0,0 +1,18 @@ +{ + "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": 2, + "expected_failure": true, + "expected_failure_desc": "Op input list does not match expected input" +} \ No newline at end of file diff --git a/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/input-0.json b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/input-0.json new file mode 100644 index 000000000..0a16c0d3d --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/input-0.json @@ -0,0 +1,413 @@ +{ + "type": "int32", + "data": [ + [ + -1826652323, + -1558003115, + 1386367084, + -851668, + 1269938640, + 504779502, + 107401137, + -1259354074, + 1289283323, + -1334703311, + 1829174140, + -617769848, + 1804535640, + 2091752043, + 849266336, + 817319036, + -136029862, + -515321241, + -2099762249, + 722541969, + -1023141835, + -532658182, + -1929644615, + 1946341827, + -79119672, + 734805502, + 1747957576, + 793504898, + 103564095, + 659584483, + -1318771054, + -930760287 + ], + [ + 1125557665, + 525316872, + 268719666, + 1451219259, + 1807955651, + 354573592, + 753557458, + -1148430205, + -1854701830, + -1114057613, + -1500872800, + -938560519, + -1109825595, + 96716714, + 1874102636, + -445834859, + -779979446, + 795765989, + 1966539763, + -1410776005, + 979619523, + 116330260, + 669203592, + 1464816472, + 1325112445, + 962528849, + 1937133696, + -2015547697, + 1776676402, + -1774602108, + -1473399175, + -384483957 + ], + [ + -657305084, + 338935398, + -1246509990, + -230574113, + 218262762, + 1303857927, + 785300659, + 195469034, + -2108832069, + 453605232, + 1651312307, + -1765946696, + 302850893, + -252478672, + 1620120474, + 1070724749, + 1199759973, + 1290914689, + -77540039, + -159326417, + 1297178061, + 457798316, + -2053784973, + -937380927, + -1791239953, + -2088364247, + 2135110484, + -531634670, + -1966511144, + -1720308820, + 816031748, + -680989631 + ], + [ + 2031235525, + 994188121, + -1861619028, + -295059204, + 1034484571, + 123886883, + 1227618138, + -1237370602, + 386667802, + 1446848499, + 1915641571, + 208774320, + 778818425, + 1670056678, + -202896586, + 1232183175, + 999083381, + 1205993828, + -1146645998, + 1957332107, + -218466540, + -1150923024, + -951750539, + 2118348048, + -643969899, + 15484182, + 320475390, + 185866685, + 541874906, + 99740806, + 548888674, + -1029643436 + ], + [ + 1961382304, + -1590076283, + -1020605254, + -1964586732, + 724074728, + -154747404, + 609588113, + 1604216825, + -1367794112, + -910453878, + -174809873, + 1206954198, + -111106360, + -1574429328, + 273760392, + -1381355932, + 287970563, + -639754549, + 1497397869, + 2084848394, + 1860713078, + 1485008867, + 947235581, + 153657821, + -1320065314, + 1512817467, + 777464541, + 1967382225, + -1535045987, + -1116810966, + -986782484, + -394978618 + ], + [ + 594568236, + -1302338899, + 181635591, + 1729665464, + 2008558387, + 1647961362, + -1796383857, + -2088038966, + 470266712, + 697043734, + -1053991170, + -1909287884, + -50587743, + 959737690, + 1958321982, + -792742822, + 1197991634, + -1560426417, + 1810264204, + 605610773, + -535621318, + 1798296163, + -1241485496, + 1605877977, + 364194668, + -1137603403, + 395026763, + 1581126975, + -2089217264, + -476491216, + -575060274, + -2144395548 + ], + [ + -1592304076, + 1440569803, + -677516950, + 694686914, + 1286159680, + 1577724482, + -1334289474, + -1378127563, + -693105204, + 283532551, + 749796104, + 1297471263, + -2050941343, + -2102399855, + -338026698, + 133426240, + -710999140, + 114168106, + 1280442211, + -702578364, + 47246849, + -203528282, + -983789940, + -2076120963, + 1054619917, + -1333988378, + 725613764, + -1429458090, + -827648991, + -1660956231, + 699568762, + -1148830331 + ], + [ + 713475894, + 106263457, + 558512950, + 1918186693, + -1927968467, + -291124449, + -1379016385, + 1912667119, + -775435517, + -1087026666, + -1371747237, + -498040865, + 928079738, + -745366695, + -1107385946, + -1901762009, + 809557780, + 1908008435, + -619342486, + 151979452, + 781644565, + -1391521110, + -1202298588, + 1443319381, + 1716293888, + -677267443, + 711940582, + 1512782656, + -807087402, + -455174893, + 1799245660, + 1688301187 + ], + [ + 774222049, + 236689405, + 3879225, + -960792175, + -776705217, + -1370063714, + 1938216533, + -1296882666, + -794535530, + -1526498818, + 1748361646, + -233223073, + -447366533, + -220097337, + -318745037, + -1927165115, + 1987238102, + 1351274423, + -1110835193, + 1358297259, + -1573087539, + 1169066054, + 1402319313, + 704180551, + -1045231309, + -263909485, + 1277806815, + -956017702, + -442850440, + 1619982405, + 1080660512, + -1365102489 + ], + [ + 1845497509, + 1805440304, + 1075132865, + -1071978432, + 412976641, + 400387771, + 277843780, + 492855473, + -246427025, + 1184977485, + -1007662017, + 1357664985, + -1696433534, + 1293020244, + 1265049803, + 1971576408, + 1603074543, + -1308749706, + 124792570, + -2044087424, + -1801722206, + 1595354212, + -1657421291, + 1436199315, + -346633392, + -1705936000, + 797953791, + 776874327, + 867861928, + -2031763089, + -807788556, + 953971362 + ], + [ + -654409315, + 507246188, + 24961299, + 1006579073, + -1622975573, + -50220566, + -1108739090, + 708248009, + -726575854, + 646747460, + 1615181047, + -1477456184, + -259311325, + -89915276, + 1829236857, + 355205975, + -1603549114, + 1804683404, + 710334208, + 955903482, + -73039070, + 1660829736, + 1574319440, + -754715693, + -1764620039, + 1115785893, + -888152782, + 2004989217, + 477305496, + 1073326550, + 411064473, + 1893271575 + ], + [ + 32693704, + 2054568274, + -1284243679, + -266388600, + 282587785, + -2067072685, + -1186855124, + 1930600885, + -1496537431, + 139045968, + -707508568, + 384836401, + -1786972050, + 1931700869, + 55792565, + -726288212, + 972960902, + -1306926137, + 1239266537, + -341852497, + -1157984179, + -210382289, + -1946736045, + 1023777166, + -951385728, + 1908453450, + 1211357193, + 1833846536, + 1531811451, + 2062908314, + -1522328166, + 1964240642 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/test.json b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/test.json new file mode 100644 index 000000000..ecebfaac3 --- /dev/null +++ b/operators/reduction/reduce_max/reduce_max_ERRORIF_WrongInputList_12x32_i32_axis0/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: 0 + }, + inputs: [ + + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12, + 32 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 1, + 32 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1