diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:06:24 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:06:24 +0100 |
commit | d5e8f519efe996800ca8ed8235735bd9cc124050 (patch) | |
tree | 1fb8a024b2f64d934a18e7d0f603cc7a819ee43c /operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0 | |
parent | 3556a8fcdd6c62795fdc9828c9cae59e4e62b96c (diff) | |
download | conformance_tests-d5e8f519efe996800ca8ed8235735bd9cc124050.tar.gz |
Updating SLICE tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I750905470261d35fee2e6db822ea7ad41b515a5e
Diffstat (limited to 'operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0')
3 files changed, 422 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0/desc.json b/operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0/desc.json new file mode 100644 index 000000000..c31061a63 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0/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": "Starting point smaller than zero" +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0/input-0.json b/operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0/input-0.json new file mode 100644 index 000000000..1b6608e73 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0/input-0.json @@ -0,0 +1,345 @@ +{ + "type": "int32", + "data": [ + [ + 142582898, + 1559723945, + -154700734, + -2145693004, + -1159982298, + -1907219424, + 818959, + -582464542, + -1578721469, + 802721895, + -1388955213, + -679874875, + 2094656878, + -1862672266, + -1083593486, + -782371098, + 37515521, + -1095298871, + 2018752414, + -2124205786, + 1924391656, + 149473078, + -1983057426, + -1646493259, + -1704876367, + -912696490, + -716990123, + 606405703, + -810889458, + 966864521, + -885637483, + -1015950347 + ], + [ + -964813028, + -733607597, + 1450581455, + -1087016546, + -973841811, + 1962321596, + 660324359, + -1329207652, + 1581315859, + -1360728947, + -1451203685, + -236071607, + 821512693, + -1334419027, + 1088055334, + -1474425954, + 1210156744, + -1735684170, + -152757612, + 602030926, + -1006828159, + 481389619, + 810242627, + 644944709, + -442831102, + 1173814596, + 994985582, + -745786657, + 1002527902, + 1797116251, + 1360246782, + 1001606177 + ], + [ + 1144682069, + 1308713422, + -905726114, + 949025267, + -1290959985, + -607928374, + 1866281238, + -931868369, + 1475846718, + -332786653, + -1246125623, + -1730741423, + 207102024, + -209248653, + 48722130, + -1962194537, + -995901319, + -2130535879, + -848302668, + 1853273833, + -1493309518, + 813195624, + -2122658619, + 265630615, + 1807908293, + -682461545, + -1300682064, + 302958466, + -949420203, + 1681805153, + 1498935558, + 654467691 + ], + [ + 597171654, + 440156829, + 1010571521, + -170920359, + 2017538456, + -662726208, + -2109092807, + 852753361, + 696761222, + 2065797411, + -449572778, + -323163246, + 266290705, + -462975124, + 1223454077, + -308750286, + 1218150601, + -319786223, + -1180693025, + 2107217356, + 113750538, + 888105853, + 391977644, + -604798186, + 2027825784, + -551893103, + 2117816869, + -297224946, + -2050206921, + -1989806003, + 2034343413, + 119470536 + ], + [ + -482599153, + 1337371003, + 503152307, + 689633420, + 796497256, + -1295272601, + -1768371158, + 979399609, + -2053816076, + 942567537, + -1589421809, + -1019886303, + 892316007, + 527742632, + 1209190781, + 476522468, + -1941972930, + 1459376732, + -1220868333, + -1563057519, + 1625812613, + -1310658644, + 154929422, + -60260523, + 1157534429, + -1957881678, + -1689247480, + -362520161, + -114838048, + 1237891359, + 454115273, + -1508760190 + ], + [ + 2056780192, + -172018866, + 1995403470, + 2103542839, + -1925546559, + 25426264, + -334857982, + -7199121, + -816300960, + 252516519, + -33516960, + -1348600961, + -908336135, + -1515419585, + 1475753447, + 761732331, + -483046547, + -447678143, + -1807755010, + -902344161, + 1822880197, + -2012657668, + -1519890619, + 1486275568, + 87308302, + -2008632227, + -43951585, + 1073669342, + -665410421, + -506855280, + 564005904, + 423860918 + ], + [ + 1730498196, + -1083714736, + -961771916, + -1480047164, + 708327137, + 143400371, + -657338791, + 840171602, + -529625662, + -1307846340, + 171140025, + -273336240, + -406320201, + -237705093, + 1778982825, + -1219860267, + -962877313, + 279385244, + -1946892132, + -1520694646, + 284916278, + 41872380, + 656357877, + -1660299017, + 1519887067, + -62094882, + -1481650265, + -809175898, + -1170564355, + -205100614, + -131503110, + -284544335 + ], + [ + -167470598, + 1752059421, + 1972020704, + -43226270, + 1988669970, + 1367942375, + 1374215527, + -1178314001, + -264457377, + -635299560, + -1733229096, + -1824977214, + 525847242, + -340385630, + 1398965441, + 724560497, + -1781667606, + 1452416352, + -16766627, + 283102390, + 2000106151, + 601607534, + -2051765766, + -1386127347, + -316332732, + -1987684931, + -1428194429, + 1252791044, + -1534208919, + -1430060010, + 20108907, + -1755913475 + ], + [ + -1049328453, + 1879315858, + 564673869, + 1990809099, + -625991107, + 499321265, + -1122878083, + -521248945, + -1397342456, + 1431252930, + -1357009598, + -1268218118, + -155443365, + -303257645, + -799557951, + -614106025, + -880359370, + 1772532963, + 345201672, + 1802930270, + 2090846040, + 648050118, + 1398717682, + -1671858368, + 1930229374, + -76481387, + 916695321, + -1093806339, + -1737309186, + 1653200185, + -217117251, + -1553048153 + ], + [ + 680651267, + -1914222790, + -212716223, + 878016013, + 946700309, + -200634781, + -558500669, + 1453266126, + -1354045999, + -1826951823, + -1473848846, + 1293112143, + -129265268, + -1987132106, + -1422596681, + -2026923865, + 1350457590, + -166147582, + -1855159203, + -1197044796, + 500170839, + 402518781, + 1371328346, + -2036600503, + -1849413835, + -1995486721, + -454985310, + 975595362, + 700098631, + -1244831149, + 675335864, + 671806430 + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0/test.json b/operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0/test.json new file mode 100644 index 000000000..1179208d8 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_StartSmallerZero_10x32_i32_perm0/test.json @@ -0,0 +1,59 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + -2, + -3 + ], + size: [ + 1, + 2 + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 32 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 1, + 2 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |