From fa017a13f19b8f94f8f873f627f5eb2613d2e191 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:07:09 +0100 Subject: Updating REDUCE_SUM tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I86ab2dcba84953549f3ea932d92aa85812c15dbc --- .../Conformance-result-0.json | 28 ++ .../reduce_sum_24x21_i32_axis0/desc.json | 20 + .../reduce_sum_24x21_i32_axis0/input-0.json | 557 +++++++++++++++++++++ .../reduce_sum_24x21_i32_axis0/test.json | 52 ++ 4 files changed, 657 insertions(+) create mode 100644 operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/Conformance-result-0.json create mode 100644 operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/desc.json create mode 100644 operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/input-0.json create mode 100644 operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/test.json (limited to 'operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0') diff --git a/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/Conformance-result-0.json b/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/Conformance-result-0.json new file mode 100644 index 000000000..ad237fe8e --- /dev/null +++ b/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/Conformance-result-0.json @@ -0,0 +1,28 @@ +{ + "type": "int32", + "data": [ + [ + -377580556, + -44815707, + -426507435, + 251914302, + 326193254, + -88554121, + -105288746, + -98776559, + 262494202, + -127400562, + -93394762, + 403435960, + 424787365, + -277971577, + -135039899, + 199050970, + 118127280, + 219830724, + 125697064, + -598805107, + 217410276 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/desc.json b/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/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_sum/reduce_sum_24x21_i32_axis0/input-0.json b/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/input-0.json new file mode 100644 index 000000000..0e025105f --- /dev/null +++ b/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/input-0.json @@ -0,0 +1,557 @@ +{ + "type": "int32", + "data": [ + [ + 46732769, + 38919074, + 51193201, + 2366987, + -66551658, + 60800313, + -8878783, + 62977, + -23121595, + -56809956, + 76372569, + 50388458, + 25745665, + -17463630, + 57760440, + 8129857, + -10126424, + -8865609, + -48812532, + -72990121, + 9768328 + ], + [ + 69415591, + -78057943, + 64118724, + 58631881, + -39950409, + 23562261, + -59909590, + 46186599, + 35884982, + -26033592, + -77323728, + 84234692, + -9719603, + 70351764, + 31839847, + 49818667, + 46510816, + -54646532, + -24354965, + -5955509, + -395219 + ], + [ + -81639496, + 8333937, + -61867306, + 43553814, + 32757886, + 75614301, + 43801893, + -23865227, + 83664125, + -15953951, + -31169767, + 72573451, + -23182139, + -75816340, + -5448200, + 52913992, + -55571265, + -6632044, + -66228127, + 33371575, + -4347773 + ], + [ + -30387550, + -48871476, + 11542705, + 30389397, + 78795844, + -11247103, + -60722219, + 59535081, + 23222226, + 35838835, + -72079102, + -33578298, + 47932535, + 59460207, + -11593429, + 54539705, + 61148141, + -20136529, + 71240555, + -37880162, + -46607950 + ], + [ + 32658842, + 24474481, + -64468805, + 59545559, + -53703519, + 54563821, + -88160956, + 53122049, + 51347117, + 50173148, + 29501209, + -5088258, + 36715774, + -39885639, + 50238416, + 9958411, + -7352309, + 1003277, + 12301716, + -82810135, + -64460838 + ], + [ + -45547920, + -68982531, + -10806572, + 30136883, + 27636120, + -5172536, + 63544042, + 11674455, + -75305558, + 47423392, + 13350301, + 24108782, + 11699012, + 9588407, + -73270992, + 10595534, + 52776668, + -35084497, + 18403620, + -83963419, + -27291081 + ], + [ + -11324865, + 86389400, + -51077063, + -39988234, + -16369437, + 88165946, + 63243943, + -83269938, + -47613384, + 57565884, + -79044804, + 63649778, + -39122877, + 74741759, + -36937836, + -11754466, + 28976088, + -66879668, + 10206301, + 897557, + 50805563 + ], + [ + 88781788, + 29405053, + -16251720, + -16752724, + -14681855, + 56196136, + -31994691, + -59597518, + -29654702, + -85414002, + -70483530, + -73363793, + 48596197, + 39792755, + 35213504, + -6822336, + 38844133, + -60617777, + 71694042, + 186969, + 78392349 + ], + [ + -62221173, + -477802, + 35132899, + -782781, + -9635710, + -59733315, + -21292081, + -46749598, + -35520796, + 32874513, + 23314978, + 19183548, + -24729597, + 82265191, + -73792922, + -28169479, + -68360507, + -28822129, + 82659806, + -23933073, + 73118362 + ], + [ + -883035, + 35738983, + -7620438, + -41899203, + 47285702, + 83962382, + -42318875, + 49884417, + -42745662, + 38814011, + 51719738, + -9062113, + 42398413, + -40758961, + -75295517, + -72228651, + -9480475, + 72048504, + -66647719, + -7914142, + 36512959 + ], + [ + -53264151, + 39659799, + -34725415, + 55236991, + 14176893, + 8394383, + -57843764, + -6584560, + 63818611, + -85984531, + 46263871, + -1295221, + 39274425, + 29223317, + -12152424, + -34240339, + 22782804, + -64384375, + 15049917, + -72532210, + 26816093 + ], + [ + 23039866, + -74366586, + 46079253, + -15066853, + 51340331, + -82031339, + -57363494, + -1075385, + -55794279, + -30447522, + 28740318, + -63614875, + 31801179, + -70973804, + -58127877, + 15684607, + 52520870, + -58949685, + -35792685, + 76078208, + 87632309 + ], + [ + 14506455, + -9477892, + -27403716, + 20124054, + 16269960, + -36730376, + -85397574, + -62366808, + 82062367, + -14646749, + -3166924, + -5886333, + 50597439, + -77854055, + -74673375, + -40113698, + -2387585, + 30623839, + -1663049, + -10528383, + 78352095 + ], + [ + -60663023, + 12836234, + 7559977, + -4744257, + 55046706, + -41701330, + 81205816, + -30141902, + 8053865, + 3699470, + 62595192, + -10932221, + -38554676, + -85610853, + -24395727, + 58392214, + -87703913, + 70895731, + 7664206, + -64379934, + -35401388 + ], + [ + 9670144, + -32983172, + -70048100, + 29704867, + 30823565, + -68205110, + -39149740, + -45835667, + 28529791, + 41213000, + 40622268, + 78519382, + 48076341, + -32090664, + -70197492, + 20516133, + 74448219, + 85032356, + -48280087, + -47163136, + -82783248 + ], + [ + -64198640, + 9816231, + 8375774, + -23099357, + -34009799, + 59018173, + -7152207, + 55163749, + 82894992, + -32724270, + -53197051, + 81049503, + 24128963, + -37416711, + 21807694, + 2694578, + 72572811, + -43671749, + 87936377, + 78033036, + -57140604 + ], + [ + -60020769, + 5933646, + -81441417, + -36006508, + -11614834, + 83997625, + 88114039, + -62359356, + 70093376, + -73206139, + 44490137, + 61855171, + 69935040, + -49496287, + 70410018, + -68722894, + 3374835, + -5450082, + -32940780, + -85520999, + 48678520 + ], + [ + -29423452, + 28930409, + -16066771, + -22609831, + 69130346, + -72573017, + 42344325, + 44164721, + -21476367, + -42509347, + -88528748, + 78170757, + 80124665, + -46355122, + -83767781, + -67510098, + -77373324, + 59254920, + 70135286, + -62047189, + 44155745 + ], + [ + -57397172, + -23763876, + 17785243, + 39357431, + 67030487, + -81463927, + -54325133, + -39279513, + -33943901, + 89125556, + 49643529, + -32137589, + 84436627, + -124020, + 132640, + -11865054, + -63727024, + 77733983, + -86984490, + -58290127, + -48379938 + ], + [ + -39496250, + -65887981, + -86264166, + 31793257, + 83986280, + -67675710, + -36411444, + 1132785, + 76504527, + 34764616, + 47636220, + 14516382, + -14847025, + -53727240, + 65196598, + 54425203, + -84986429, + 38548607, + -74376646, + 42767853, + 58331712 + ], + [ + -66024787, + -11840534, + -67331880, + 12040621, + 76515298, + -75006316, + -18329097, + 84668214, + -35621620, + -65817384, + -2042965, + 1498332, + 29145686, + -33332963, + 81536957, + 3762165, + -38216937, + 82371110, + 76022429, + -149470, + -85029706 + ], + [ + 17347392, + 9878074, + -62955553, + 23975780, + 60987384, + -70527407, + 39965142, + -64363736, + 44529195, + -14475057, + -88313291, + 83435450, + -59776929, + 17187484, + -57003481, + 77492523, + 42650016, + 54467507, + -12154777, + -5837290, + 24034130 + ], + [ + 50960404, + 62094408, + -86286469, + 29270446, + -69946407, + -37951091, + 58953546, + -44647407, + 53117486, + -6620012, + -47845803, + -29663157, + 5506432, + 47449934, + 18972270, + 77528426, + 65809448, + 45339380, + 18451744, + -37606767, + -15645928 + ], + [ + -68201524, + -22515643, + 76320180, + -13263918, + -69125920, + 27189115, + 82788156, + 65765009, + -40430594, + -8250475, + 5550621, + -45125868, + -41394182, + -47126106, + 88508770, + 44025970, + 60998623, + 56652186, + 82166922, + -70638239, + 68295784 + ] + ] +} \ No newline at end of file diff --git a/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/test.json b/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/test.json new file mode 100644 index 000000000..23f3fb487 --- /dev/null +++ b/operators/reduction/reduce_sum/reduce_sum_24x21_i32_axis0/test.json @@ -0,0 +1,52 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "REDUCE_SUM", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 24, + 21 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 1, + 21 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1