diff options
Diffstat (limited to 'operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32')
4 files changed, 783 insertions, 0 deletions
diff --git a/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/desc.json b/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/desc.json new file mode 100644 index 000000000..33c84b150 --- /dev/null +++ b/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/desc.json @@ -0,0 +1,24 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "Input data type not supported for this operator", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/input-0.json b/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/input-0.json new file mode 100644 index 000000000..026fc4a3f --- /dev/null +++ b/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/input-0.json @@ -0,0 +1,291 @@ +{ + "type": "int32", + "data": [ + [ + [ + 724218992, + 1914562225 + ], + [ + 1899864904, + -431620213 + ], + [ + 661043472, + 1404920226 + ], + [ + 1052204177, + 432079153 + ], + [ + -1468662132, + 565265054 + ], + [ + -1415114214, + -208965018 + ] + ], + [ + [ + 315363928, + -2034982068 + ], + [ + -298051518, + -801626817 + ], + [ + -1670095697, + 633465146 + ], + [ + 980692858, + 1690786090 + ], + [ + 854512118, + -1361451029 + ], + [ + -1754168669, + 1384100709 + ] + ], + [ + [ + -1938504340, + -514156923 + ], + [ + -520492819, + -1367033983 + ], + [ + 570948005, + 1160999379 + ], + [ + 1690359618, + -131465869 + ], + [ + -281296422, + -1274707711 + ], + [ + -1786264069, + 1463047128 + ] + ], + [ + [ + 1462290570, + 2065999130 + ], + [ + -1611042855, + -337051436 + ], + [ + 590091098, + 1635284909 + ], + [ + -371714845, + -1552868418 + ], + [ + 1759090329, + -1789971903 + ], + [ + 880085660, + -574618337 + ] + ], + [ + [ + -2146871203, + 110936828 + ], + [ + -546483313, + -274293655 + ], + [ + -1373062056, + 742428500 + ], + [ + -929725122, + -1493136680 + ], + [ + -433981699, + -1341983956 + ], + [ + 177747656, + 138993444 + ] + ], + [ + [ + 1281539577, + 2059742934 + ], + [ + -1776277206, + -1986757456 + ], + [ + -252959111, + -1858920497 + ], + [ + 1506323278, + 1322706388 + ], + [ + -291283666, + 1979883302 + ], + [ + 82871417, + 195340246 + ] + ], + [ + [ + 1196603498, + 219567052 + ], + [ + 914374586, + -1119268749 + ], + [ + 42939963, + 1332137449 + ], + [ + 2006149465, + -1321960442 + ], + [ + -1991947629, + 401827988 + ], + [ + -1913363873, + 783854790 + ] + ], + [ + [ + -311975751, + 1290827019 + ], + [ + -1469525992, + -1950022972 + ], + [ + -1217587353, + -1875660143 + ], + [ + -1502884072, + 1106082949 + ], + [ + 826218333, + 523818428 + ], + [ + -338149186, + -1187603242 + ] + ], + [ + [ + 1435269550, + 1616462127 + ], + [ + -1072091320, + 1702935689 + ], + [ + 530112353, + -662585676 + ], + [ + -1230757975, + 389339859 + ], + [ + -2085274574, + -788673507 + ], + [ + 811398271, + -13809344 + ] + ], + [ + [ + -1522480302, + -1463710343 + ], + [ + 832410426, + 1448758853 + ], + [ + 818927567, + -1472657786 + ], + [ + 722173042, + -958745135 + ], + [ + 394964195, + 388782393 + ], + [ + 1653228579, + 1396737137 + ] + ], + [ + [ + -1822626661, + -2147404548 + ], + [ + 1854648492, + -834419608 + ], + [ + -1864147432, + -1326154874 + ], + [ + -20086004, + 1669154289 + ], + [ + 1817771809, + 672093144 + ], + [ + -992441181, + 912407228 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/input-1.json b/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/input-1.json new file mode 100644 index 000000000..a294576fe --- /dev/null +++ b/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/input-1.json @@ -0,0 +1,401 @@ +{ + "type": "int32", + "data": [ + [ + [ + 1451289041, + -384069857, + 400244313, + -46652339, + 1551280954, + 483049354, + -1938888393, + 1595731021, + 240266268, + -297221717, + -1337233465, + 852686691, + -2069879836, + -1402170414, + 811552718 + ], + [ + -977373497, + 1072384601, + -1021489997, + 1014884354, + 769445537, + 974851555, + 1003011997, + 1288240336, + -567650366, + -130610972, + -1846810170, + -654656481, + -172979447, + 1163777727, + 1730345833 + ] + ], + [ + [ + 714942739, + -1597396418, + -1288462846, + 143373576, + -277913619, + 1850039529, + -1365058033, + 304946067, + 1197880880, + -268035014, + -1086064308, + -1588868816, + 526973638, + 562537880, + 1010895157 + ], + [ + 1449613606, + 2111423183, + -1342349342, + -287150550, + -756001960, + 1599705724, + -1640970657, + 705894744, + -794285312, + -2111198126, + 418808895, + -466952754, + 818923262, + -454759264, + -1330758240 + ] + ], + [ + [ + -1633697541, + -1370586041, + -270196557, + -993281188, + -1647293423, + -786530014, + 1440465412, + 1459236297, + -593146960, + 93306989, + -1360981796, + -378003515, + 437326038, + -2065796757, + 1535803523 + ], + [ + 1737347037, + 1867999633, + -1240416991, + 1693444270, + -1658540044, + 1640903467, + -1564766664, + -652613885, + 1926767585, + 23284897, + -1217111501, + -552724501, + -729160140, + 1813599908, + -376684199 + ] + ], + [ + [ + -1748798261, + -1435821184, + 233301226, + -2088806270, + -1087031391, + 447002751, + 1504845934, + -1733245368, + -690552019, + -470031302, + 1562011840, + 1230200896, + 1838430313, + 519013927, + -1408888228 + ], + [ + 1883779189, + 1092006974, + 691003594, + -644338470, + 1267948483, + -415425685, + -755574701, + -969025038, + 687154601, + 501079469, + -1171657804, + -673592060, + -1171482439, + 1033437153, + -673118992 + ] + ], + [ + [ + 1196114145, + -1151196832, + -450403424, + -2034529596, + -2127108198, + -2023888918, + -1863666519, + 1837771733, + -971469098, + 136458714, + 1949370450, + -54846023, + -456085453, + 983442966, + 1048982531 + ], + [ + -1714682837, + 1872940402, + -1618941746, + -679984548, + 1946374158, + 263238339, + 293382649, + 1513205630, + -220528438, + 493053147, + 195256620, + -1665499805, + -839755208, + 1157824075, + -735920634 + ] + ], + [ + [ + 1735564293, + 1972628106, + 1154383294, + -2144074018, + 1084645793, + 2067017330, + 1098207338, + 590595446, + 483350797, + -19741971, + -1083148097, + -95719721, + 1764538980, + -1779924846, + -1593831047 + ], + [ + 1610157816, + 1405724526, + 45133650, + -603982846, + -1671191341, + 746551603, + 168163159, + 1310382113, + -589921224, + 1282430100, + 1952518774, + -1455381403, + 1137481709, + 476389537, + -395934787 + ] + ], + [ + [ + -1225944090, + -1482404191, + -1665999417, + -1004732965, + 58245386, + 163937491, + 2093912740, + 1036364416, + 2068730848, + 1090224388, + 315255673, + 1359462301, + 1168979132, + 1321595537, + -1075124948 + ], + [ + 962853570, + -1183855400, + -782985476, + 887010143, + 22441267, + 1228358671, + 947263632, + 1038682537, + -1512765357, + -1698627125, + -1080893842, + -617304685, + 1374054402, + -1957731281, + 173098971 + ] + ], + [ + [ + 1229057567, + -587598901, + -808543208, + -1269269000, + -301786673, + 497338617, + 338822858, + 1504685285, + -2145110638, + -890588824, + -626548927, + -466453934, + 976173529, + -1713868910, + -918842606 + ], + [ + -1912683192, + 302698275, + 1993689320, + 2049435431, + -1941423763, + -1640006245, + 304664715, + -995397507, + -1154569386, + 790130171, + -826857682, + 422528216, + -1980395102, + 2053008898, + -1784579583 + ] + ], + [ + [ + -1998866366, + -353285972, + 1623472459, + 594045231, + -49198621, + -958191081, + -1172959850, + 657626014, + 14449436, + 484772666, + -377114445, + -856181827, + -1377246691, + -892424527, + -1205186140 + ], + [ + -52251935, + -909924988, + 1269815182, + 224192340, + -834180158, + -1790574608, + -1623363602, + -1765895368, + -765798755, + -722644761, + -1936134039, + 890307594, + 123574360, + 2054304821, + 1664165206 + ] + ], + [ + [ + -2095929955, + 858607672, + 2028687619, + 1294492872, + 799042252, + -1549486845, + 1722221097, + 1382615379, + 156072058, + 1810379114, + -159174504, + 141584509, + 1224751536, + 945753703, + 219519578 + ], + [ + 1216181719, + 1706671806, + 638746557, + 1688193670, + -382264537, + 130805293, + 638165091, + 316816721, + -1380268087, + -187795847, + -1569111092, + 813493434, + 1283381214, + 783213541, + 1567567639 + ] + ], + [ + [ + 646792875, + -518673392, + -1879692803, + -2005056644, + 1991072650, + 1198467169, + -706082969, + 1956489340, + -1089991432, + 1168984078, + -1241033301, + 901438656, + -1849912835, + 785492331, + -184514574 + ], + [ + 353661935, + -1968956326, + -559872348, + -1456404027, + 500166441, + -2124826974, + 1739042261, + -1397233166, + 92997240, + 2127063175, + -387129816, + 178042394, + 1974730846, + -1859082641, + 267920223 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/test.json b/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/test.json new file mode 100644 index 000000000..41cda1f19 --- /dev/null +++ b/operators/tensor/matmul/matmul_ERRORIF_WrongInputType_11x6x2_i32_acci32/test.json @@ -0,0 +1,67 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "MATMUL", + attribute_type: "MatMulAttribute", + attribute: { + a_zp: 0, + b_zp: 0, + accum_dtype: "INT32" + }, + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 6, + 2 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 11, + 2, + 15 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 11, + 6, + 15 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |