File size: 104,255 Bytes
c1d13ab 5a831e9 c1d13ab 5a831e9 c1d13ab 5a831e9 c1d13ab 5a831e9 c1d13ab 5a831e9 c1d13ab 5a831e9 c1d13ab 5a831e9 c1d13ab | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 | {
"fixtureArrays": {
"onnx_backend_slice_input_data": [1.764052391052246, 0.40015721321105957, 0.978738009929657, 2.2408931255340576, 1.8675580024719238, -0.9772778749465942, 0.9500884413719177, -0.15135720372200012, -0.10321885347366333, 0.4105985164642334, 0.14404356479644775, 1.4542734622955322, 0.7610377073287964, 0.12167501449584961, 0.44386324286460876, 0.3336743414402008, 1.4940791130065918, -0.2051582634449005, 0.3130677044391632, -0.8540957570075989, -2.5529897212982178, 0.653618574142456, 0.8644362092018127, -0.7421650290489197, 2.269754648208618, -1.4543657302856445, 0.04575851559638977, -0.18718385696411133, 1.5327792167663574, 1.4693588018417358, 0.154947429895401, 0.37816253304481506, -0.8877857327461243, -1.980796456336975, -0.34791216254234314, 0.15634897351264954, 1.2302906513214111, 1.202379822731018, -0.38732680678367615, -0.302302747964859, -1.0485529899597168, -1.420017957687378, -1.7062702178955078, 1.950775384902954, -0.5096521973609924, -0.4380742907524109, -1.2527953386306763, 0.7774903774261475, -1.6138978004455566, -0.21274028718471527, -0.8954665660858154, 0.38690251111984253, -0.5108051300048828, -1.18063223361969, -0.02818222902715206, 0.4283318817615509, 0.06651721894741058, 0.30247190594673157, -0.6343221068382263, -0.3627411723136902, -0.6724604368209839, -0.35955315828323364, -0.8131462931632996, -1.7262825965881348, 0.17742614448070526, -0.4017809331417084, -1.630198359489441, 0.46278226375579834, -0.9072983860969543, 0.05194539576768875, 0.7290905714035034, 0.12898291647434235, 1.1394007205963135, -1.234825849533081, 0.4023416340351105, -0.6848101019859314, -0.8707971572875977, -0.5788496732711792, -0.3115525245666504, 0.056165341287851334, -1.1651498079299927, 0.9008265137672424, 0.4656624495983124, -1.5362436771392822, 1.4882521629333496, 1.895889163017273, 1.1787796020507812, -0.1799248307943344, -1.0707526206970215, 1.0544517040252686, -0.4031769335269928, 1.222445011138916, 0.2082749754190445, 0.9766390323638916, 0.3563663959503174, 0.7065731883049011, 0.01050002034753561, 1.7858705520629883, 0.12691208720207214, 0.4019893705844879, 1.8831506967544556, -1.3477590084075928, -1.2704850435256958, 0.969396710395813, -1.1731233596801758, 1.9436211585998535, -0.4136189818382263, -0.747454822063446, 1.922942042350769, 1.4805147647857666, 1.8675589561462402, 0.9060446619987488, -0.8612256646156311, 1.910064935684204, -0.26800337433815, 0.8024563789367676, 0.9472519755363464, -0.15501008927822113, 0.6140793561935425, 0.922206699848175, 0.37642553448677063, -1.0994007587432861, 0.29823818802833557, 1.3263858556747437, -0.694567859172821, -0.14963454008102417, -0.4351535439491272, 1.8492637872695923, 0.6722947359085083, 0.40746182203292847, -0.7699160575866699, 0.5392491817474365, -0.6743326783180237, 0.0318305566906929, -0.6358460783958435, 0.676433265209198, 0.5765908360481262, -0.20829875767230988, 0.39600670337677, -1.0930615663528442, -1.4912575483322144, 0.43939170241355896, 0.16667349636554718, 0.6350314617156982, 2.3831448554992676, 0.9444794654846191, -0.9128222465515137, 1.117016315460205, -1.31590735912323, -0.46158459782600403, -0.06824160367250443, 1.7133426666259766, -0.7447548508644104, -0.8264385461807251, -0.09845252335071564, -0.6634783148765564, 1.1266359090805054, -1.0799314975738525, -1.1474686861038208, -0.43782004714012146, -0.49803245067596436, 1.9295320510864258, 0.9494208097457886, 0.08755124360322952, -1.225435495376587, 0.8443629741668701, -1.0002152919769287, -1.5447710752487183, 1.1880297660827637, 0.31694260239601135, 0.9208588004112244, 0.31872764229774475, 0.8568305969238281, -0.6510255932807922, -1.034242868423462, 0.6815944910049438, -0.8034096360206604, -0.6895498037338257, -0.4555324912071228, 0.01747915893793106, -0.3539939224720001, -1.3749512434005737, -0.6436184048652649, -2.223403215408325, 0.6252314448356628, -1.602057695388794, -1.1043833494186401, 0.05216507986187935, -0.73956298828125, 1.543014645576477, -1.2928569316864014, 0.2670508623123169, -0.039282817393541336, -1.1680934429168701, 0.523276686668396, -0.1715463250875473, 0.7717905640602112, 0.8235041499137878, 2.163235902786255, 1.336527943611145, -0.3691818416118622, -0.2393791824579239, 1.0996595621109009, 0.6552637219429016, 0.6401315331459045, -1.6169559955596924, -0.024326125159859657, -0.7380309104919434, 0.279924601316452, -0.09815038740634918, 0.9101788997650146, 0.31721821427345276, 0.7863279581069946, -0.4664191007614136, -0.9444462656974792, -0.410049706697464, -0.017020413652062416, 0.37915173172950745, 2.2593090534210205, -0.0422571524977684, -0.9559450149536133, -0.34598177671432495, -0.463595986366272, 0.4814814627170563, -1.5407969951629639, 0.06326199322938919, 0.15650653839111328, 0.23218104243278503, -0.5973160862922668, -0.23792172968387604, -1.4240609407424927, -0.49331986904144287, -0.5428614616394043, 0.4160500466823578, -1.1561824083328247, 0.7811980843544006, 1.494484543800354, -2.0699849128723145, 0.42625874280929565, 0.676908016204834, -0.6374370455741882, -0.3972718119621277, -0.1328805834054947, -0.29779088497161865, -0.3090129792690277, -1.6760038137435913, 1.1523315906524658, 1.0796185731887817, -0.8133642673492432, -1.4664243459701538, 0.5210648775100708, -0.5757879614830017, 0.14195317029953003, -0.3193284273147583, 0.6915387511253357, 0.694749116897583, -0.7255973815917969, -1.383363962173462, -1.5829384326934814, 0.6103793978691101, -1.188859224319458, -0.5068163275718689, -0.596314013004303, -0.05256729573011398, -1.9362797737121582, 0.1887785941362381, 0.523891031742096, 0.08842208981513977, -0.3108861744403839, 0.09740016609430313, 0.3990463316440582, -2.772592782974243, 1.9559123516082764, 0.3900933265686035, -0.6524085998535156, -0.3909533619880676, 0.4937417805194855, -0.11610393971204758, -2.030684471130371, 2.06449294090271, -0.11054065823554993, 1.0201727151870728, -0.6920498609542847, 1.5363770723342896, 0.28634369373321533, 0.6088438630104065, -1.0452533960342407, 1.211145281791687, 0.6898181438446045, 1.3018462657928467, -0.62808758020401, -0.48102712631225586, 2.3039166927337646, -1.0600157976150513, -0.13594970107078552, 1.1368913650512695, 0.09772496670484543, 0.582953691482544, -0.39944902062416077, 0.3700558841228485, -1.3065268993377686, 1.6581306457519531, -0.1181640475988388, -0.6801782250404358, 0.6663830876350403, -0.4607197940349579, -1.3342584371566772, -1.3467174768447876, 0.6937731504440308, -0.15957343578338623, -0.13370156288146973, 1.0777437686920166, -1.1268258094787598, -0.7306777238845825, -0.38487979769706726, 0.09435158967971802, -0.042171452194452286, -0.28688719868659973, -0.06162640079855919, -0.10730527341365814, -0.7196043729782104, -0.8129929900169373, 0.27451634407043457, -0.8909150958061218, -1.1573553085327148, -0.3122922480106354, -0.15766701102256775, 2.256723403930664, -0.7047002911567688, 0.9432607293128967, 0.7471883296966553, -1.188944935798645, 0.7732529640197754, -1.1838806867599487, -2.659172296524048, 0.6063195466995239, -1.7558906078338623, 0.4509344696998596, -0.684010922908783, 1.6595507860183716, 1.0685093402862549, -0.4533858001232147, -0.6878376007080078, -1.214077353477478, -0.4409226179122925, -0.2803554832935333, -0.3646935522556305, 0.1567038595676422, 0.5785214900970459, 0.3496544659137726, -0.7641439437866211, -1.4377914667129517, 1.3645318746566772, -0.6894491910934448, -0.6522936224937439, -0.5211893320083618, -1.8430695533752441, -0.477973997592926, -0.47965580224990845, 0.6203582882881165, 0.6984571218490601, 0.003770889015868306, 0.9318483471870422, 0.33996498584747314, -0.01568211242556572, 0.1609281748533249, -0.1906534880399704, -0.3948495090007782, -0.26773354411125183, -1.1280113458633423, 0.2804417014122009, -0.9931235909461975, 0.841631293296814, -0.24945858120918274, 0.04949498176574707, 0.49383679032325745, 0.6433144807815552, -1.5706233978271484, -0.20690368115901947, 0.8801789283752441, -1.698105812072754, 0.3872804641723633, -2.2555642127990723, -1.022506833076477, 0.03863055258989334, -1.6567151546478271, -0.9855107665061951, -1.4718350172042847, 1.6481349468231201, 0.16422775387763977, 0.5672903060913086, -0.22267509996891022, -0.353431761264801, -1.6164741516113281, -0.2918373644351959, -0.7614921927452087, 0.8579239249229431, 1.1411018371582031, 1.466578722000122, 0.8525519371032715, -0.5986539125442505, -1.1158969402313232, 0.7666631937026978, 0.35629281401634216, -1.768538475036621, 0.3554818034172058, 0.8145198225975037, 0.05892558768391609, -0.18505367636680603, -0.8076484799385071, -1.4465347528457642, 0.8002979755401611, -0.3091144561767578, -0.23346665501594543, 1.732721209526062, 0.6845011115074158, 0.37082499265670776, 0.14206179976463318, 1.519994854927063, 1.719589352607727, 0.9295051097869873, 0.5822246074676514, -2.0946030616760254, 0.12372191250324249, -0.13010695576667786, 0.09395322948694229, 0.9430460929870605, -2.7396771907806396, -0.5693120360374451, 0.26990434527397156, -0.4668455421924591, -1.4169061183929443, 0.8689634799957275, 0.276871919631958, -0.9711045622825623, 0.3148171901702881, 0.8215857148170471, 0.005292646121233702, 0.8005648255348206, 0.07826017588376999, -0.3952289819717407, -1.1594204902648926, -0.08593076467514038, 0.19429293274879456, 0.875832736492157, -0.1151074692606926, 0.4574156105518341, -0.9646120071411133, -0.782629132270813, -0.11038929969072342, -1.0546284914016724, 0.8202478289604187, 0.46313032507896423, 0.27909576892852783, 0.33890411257743835, 2.021043539047241, -0.46886420249938965, -2.2014412879943848, 0.19930019974708557, -0.05060354247689247, -0.5175190567970276, -0.9788298606872559, -0.43918952345848083, 0.18133842945098877, -0.5028166770935059, 2.4124536514282227, -0.9605043530464172, -0.793117344379425, -2.2886199951171875, 0.2514844238758087, -2.016406536102295, -0.5394546389579773, -0.27567052841186523, -0.709727942943573, 1.7388726472854614, 0.9943943619728088, 1.3191368579864502, -0.8824188113212585, 1.1285940408706665, 0.4960009455680847, 0.7714059352874756, 1.029438853263855, -0.9087632298469543, -0.4243176281452179, 0.8625960350036621, -2.6556191444396973, 1.5133280754089355, 0.5531320571899414, -0.045703962445259094, 0.2205076515674591, -1.0299352407455444, -0.3499433696269989, 1.1002843379974365, 1.2980220317840576, 2.6962239742279053, -0.07392466813325882, -0.6585529446601868, -0.5142339468002319, -1.0180418491363525, -0.07785475254058838, 0.38273242115974426, -0.03424227982759476, 1.0963468551635742, -0.23421579599380493, -0.3474506437778473, -0.5812684893608093, -1.6326345205307007, -1.5677677392959595, -1.1791579723358154, 1.3014280796051025, 0.8952602744102478, 1.3749641180038452, -1.3322116136550903, -1.9686247110366821, -0.6600562930107117, 0.17581894993782043, 0.49869027733802795, 1.0479722023010254, 0.2842796742916107, 1.7426687479019165, -0.22260567545890808, -0.9130792021751404, -1.6812182664871216, -0.8889713287353516, 0.2421179562807083, -0.8887202739715576, 0.9367424845695496, 1.4123276472091675, -2.369586944580078, 0.8640522956848145, -2.2396039962768555, 0.40149906277656555, 1.2248705625534058, 0.06485610455274582, -1.2796891927719116, -0.5854312181472778, -0.26164543628692627, -0.18224477767944336, -0.2028968334197998, -0.10988277941942215, 0.21348005533218384, -1.2085736989974976, -0.24201983213424683, 1.518261194229126, -0.3846454322338104, -0.4438360929489136, 1.0781973600387573, -2.5591845512390137, 1.1813786029815674, -0.6319037675857544, 0.1639285683631897, 0.09632135927677155, 0.9424681067466736, -0.26759475469589233, -0.6780257821083069, 1.2978458404541016, -2.3641738891601562, 0.020334182307124138, -1.3479254245758057, -0.7615733742713928, 2.011256694793701, -0.04459542781114578, 0.19506970047950745, -1.7815628051757812, -0.7290446758270264, 0.1965574026107788, 0.354757696390152, 0.616886556148529, 0.00862789899110794, 0.5270041823387146, 0.4537819027900696, -1.8297404050827026, 0.037005722522735596, 0.7679024338722229, 0.5898798108100891, -0.36385881900787354, -0.8056265115737915, -1.118311882019043, -0.13105401396751404, 1.1330798864364624, -1.9518041610717773, -0.6598917245864868, -1.1398024559020996, 0.7849575281143188, -0.554309606552124, -0.47063764929771423, -0.21694956719875336, 0.44539326429367065, -0.3923889994621277, -3.046143054962158, 0.5433118939399719, 0.43904295563697815, -0.2195410281419754, -1.0840365886688232, 0.35178011655807495, 0.37923553586006165, -0.47003287076950073, -0.2167314738035202, -0.9301565289497375, -0.1785890907049179, -1.550429344177246, 0.41731882095336914, -0.9443684816360474, 0.23810315132141113, -1.4059629440307617, -0.5900576710700989, -0.11048940569162369, -1.6606998443603516, 0.11514787375926971, -0.37914755940437317, -1.7423561811447144, -1.303242802619934, 0.605120062828064, 0.8955559730529785, -0.13190864026546478, 0.40476182103157043, 0.2238435596227646, 0.3296229839324951, 1.2859840393066406, -1.5069984197616577, 0.6764607429504395, -0.38200896978378296, -0.2242589294910431, -0.3022497296333313, -0.37514710426330566, -1.2261961698532104, 0.1833391934633255, 1.670943021774292, -0.05613302066922188, -0.0013850427931174636, -0.6872990131378174, -0.11747454851865768, 0.4661664366722107, -0.3702424466609955, -0.45380404591560364, 0.4032645523548126, -0.9180047512054443, 0.2524966299533844, 0.820321798324585, 1.3599485158920288, -0.09038200974464417, 1.367597222328186, 1.0344098806381226, -0.9962126612663269, -1.2179385423660278, -0.3049636483192444, 1.0289355516433716, -0.07228700816631317, -0.60065758228302, 1.5522432327270508, 0.2869044840335846, -2.320594310760498, 0.31716063618659973, 0.5200406312942505, 0.22560866177082062, 0.4497120976448059, -0.06727560609579086, -1.3183958530426025, -0.3707039952278137, -0.9456157684326172, -0.9327409267425537, -1.2630683183670044, 0.45248907804489136, 0.09789614379405975, -0.4481653571128845, -0.6493379473686218, -0.023423105478286743, 1.0791947841644287, -2.004215717315674, 0.3768765330314636, -0.5457119941711426, -1.8845858573913574, -1.9457030296325684, -0.9127835035324097, 0.219509556889534, 0.39306291937828064, -0.9389815926551819, 1.0170209407806396, 1.4229835271835327, 0.39608657360076904, -0.5914026498794556, 1.1244192123413086, 0.7553957104682922, 0.8674074411392212, -0.6564636826515198, -2.834554433822632, 2.116791009902954, -1.610878348350525, -0.03576807305216789, 2.3807454109191895, 0.33057674765586853, 0.9492464661598206, -1.502396583557129, -1.7776669263839722, -0.5327028036117554, 1.090749740600586, -0.34624946117401123, -0.7946363091468811, 0.1979672908782959, 1.081935167312622, -1.444940209388733, -1.2105430364608765, -0.788669228553772, 1.0946383476257324, 0.23482152819633484, 2.1321535110473633, 0.9364457130432129, -0.035095177590847015, 1.265077829360962, 0.2114970088005066, -0.7049213647842407, 0.6799748539924622, -0.6963266730308533, -0.29039710760116577, 1.3277827501296997, -0.10128148645162582, -0.8031414151191711, -0.46433767676353455, 1.021790623664856, -0.55254065990448, -0.3868708610534668, -0.5102927684783936, 0.18392549455165863, -0.3854897618293762, -1.601836085319519, -0.8871809244155884, -0.9327890276908875, 1.2433193922042847, 0.8126740455627441, 0.5872593522071838, -0.5053583383560181, -0.8157915472984314, -0.5075175762176514, -1.051880121231079, 2.4972004890441895, -2.245321750640869, 0.5640085339546204, -1.2845523357391357, -0.1043434888124466, -0.9880019426345825, -1.177628993988037, -1.1401963233947754, 1.7549861669540405, -0.13298842310905457, -0.7657021880149841, 0.5557869672775269, 0.010349314659833908, 0.7200337648391724, -1.8242566585540771, 0.3036039173603058, 0.7726948261260986, -1.6615983247756958, 0.44819527864456177, 1.6961815357208252, -0.014857703819870949, 0.8214059472084045, 0.670570433139801, -0.7075057029724121, 0.03976673632860184, -1.5669946670532227, -0.45130303502082825, 0.2656879723072052, 0.723100483417511, 0.024612125009298325, 0.7199837565422058, -1.1029062271118164, -0.10169727355241776, 0.01927938498556614, 1.8495912551879883, -0.21416665613651276, -0.4990166425704956, 0.021351223811507225, -0.9191134572029114, 0.1927538514137268, -0.3650552034378052, -1.7913275957107544, -0.05858655273914337, -0.317543089389801, -1.6324232816696167, -0.06713415682315826, 1.4893559217453003, 0.5213037729263306, 0.6119272112846375, -1.3414967060089111, 0.4768983721733093, 0.1484495848417282, 0.5290452241897583, 0.42262861132621765, -1.3597806692123413, -0.041400812566280365, -0.7578708529472351, -0.05008409544825554, -0.8974009156227112, 1.3124703168869019, -0.8589723706245422, -0.8989421725273132, 0.0745864063501358, -1.077099084854126, -0.4246633052825928, -0.8299645781517029, 1.4111720323562622, 0.7858038544654846, -0.05746951699256897, -0.39121705293655396, 0.9409176111221313, 0.40520408749580383, 0.4980524182319641, -0.026192236691713333, -1.688230037689209, -0.1124659851193428, -0.5324898958206177, 0.6450552940368652, 1.0118424892425537, -0.6579510569572449, 0.4683852195739746, 1.7358789443969727, -0.6677127480506897, 1.6819217205047607, -0.8525858521461487, 0.0229597557336092, -0.011145612224936485, 0.011498900130391121, -0.8376780152320862, -0.5911831259727478, -0.6677202582359314, 0.32696259021759033, 0.33003512024879456, 2.2259442806243896, 1.3709889650344849, -0.5098432302474976, 0.3248696029186249, 0.9971179962158203, 0.030601823702454567, -0.06964157521724701, 0.0515749417245388, 0.8672766089439392, -0.8483205437660217, -0.32566946744918823, 0.47043314576148987, 0.3114470839500427, 0.23958276212215424, -0.3698011636734009, 0.9725357890129089, 2.1338682174682617, 0.40641549229621887, -0.19317670166492462, 0.7557402849197388, -0.5391326546669006, -0.7496903538703918, 0.03280874714255333, -2.582796573638916, -1.1539503335952759, -0.3479618430137634, -1.3533889055252075, -1.0326430797576904, -0.43674832582473755, -1.642965316772461, -0.4060717821121216, -0.5352701544761658, 0.02540520764887333, 1.1541839838027954, 0.17250441014766693, 0.02106202207505703, 0.09945445507764816, 0.22739277780056, -1.0167386531829834, -0.11477532237768173, 0.30875125527381897, -1.3707599639892578, 0.8656529188156128, 1.081376075744629, -0.6313759684562683, -0.24133779108524323, -0.8781903386116028, 0.6993804574012756, -1.0612223148345947, -0.2224770039319992, -0.8589199185371399, 0.05095427855849266, -1.79422926902771, 1.326461672782898, -0.9646064043045044, 0.059894684702157974, -0.21252304315567017, -0.7621145248413086, -0.8877801299095154, 0.9363985657691956, -0.525640606880188, 0.2711701989173889, -0.8014968633651733, -0.6471814513206482, 0.4722471535205841, 0.9304084777832031, -0.17531640827655792, -1.421919822692871, 1.9979560375213623, -0.8565493226051331, -1.5415873527526855, 2.5944244861602783, -0.40403228998184204, -1.4617327451705933, -0.6834397912025452, 0.36754488945007324, 0.19031155109405518, -0.8517292141914368, 1.822723627090454, -0.5215796828269958, -1.184686541557312, 0.9606934189796448, 1.329062819480896, -0.8174930810928345, -1.401347279548645, 1.0304383039474487, -2.047323703765869, -1.2266216278076172, 0.9674461483955383, -0.05535254627466202, -0.2639373540878296, 0.3528166115283966, -0.15277442336082458, -1.2986867427825928, 1.2760753631591797, 1.3250139951705933, 0.20533256232738495, 0.04513401538133621, 2.3396248817443848, -0.2764328420162201, -0.2595769762992859, 0.36448124051094055, 1.471321940422058, 1.5927706956863403, -0.25857263803482056, 0.3083312511444092, -1.3780834674835205, -0.3119761049747467, -0.840290367603302, -1.0068317651748657, 1.6815767288208008, -0.7922866344451904, -0.5316058993339539, 0.3658487796783447, 1.2978252172470093, 0.4811151325702667, 2.759355068206787, -0.07466797530651093, 0.2587164342403412, 0.2756006717681885, 1.4350494146347046, 0.5072389245033264, -0.11622969806194305, -0.9474886059761047, 0.24444346129894257, 1.4013447761535645, -0.4103817939758301, 0.5289435982704163, 0.2461477816104889, 0.8635196685791016, -0.8047537207603455, 2.346647024154663, -1.2791610956192017, -0.36555108428001404, 0.9380925297737122, 0.29673317074775696, 0.8299861550331116, -0.49610233306884766, -0.07480498403310776, 0.012231983244419098, 1.5692596435546875, 0.6904290318489075, 0.7966721057891846, -0.657926082611084, 0.9688826203346252, 0.22558166086673737, 1.3891453742980957, 2.0140602588653564, -0.30676576495170593, -0.40630313754081726, -0.8640449643135071, -0.14357951283454895, -0.38202545046806335, 0.3595044016838074, -0.14456681907176971, -0.36159926652908325, 1.0645850896835327, -0.9378802180290222, 0.4331079423427582, -0.4059417247772217, 0.7243685126304626, 1.3852615356445312, -0.30309826135635376, 0.44103291630744934, 0.17879286408424377, -0.7994223833084106, 0.24078750610351562, 0.28912049531936646, 0.4128708243370056, -0.1983989030122757, 0.09419230371713638, -1.1476109027862549, -0.3581140637397766],
"ort_2d_two_axes_negative_end_input_data": [0, 1, 2, 3, 10, 11, 12, 13, 20, 21, 22, 23, 30, 31, 32, 33, 40, 41, 42, 43, 50, 51, 52, 53],
"ort_3d_positive_and_negative_steps_subset_axes_input_data": [27, 20, 2, 4, 26, 11, 26, 5, 17, 0, 21, 6, 22, 13, 29, 19, 17, 27, 4, 20, 12, 3, 9, 24, 17, 6, 24],
"ort_5d_subset_axes_offset_input_data": [1, 2, 3, 4, 5, 6, 7, 8, -1, -2, -3, -4, -5, -6, -7, -8],
"inner_vec4_uint8_aligned_2d_input_data": [0, 1, 2, 3, 4, 5, 6, 7, 248, 249, 250, 251, 252, 253, 254, 255],
"inner_vec4_bool_aligned_2d_input_data": [1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1]
},
"cases": [
{
"name": "int16_step2_boundaries",
"inputs": {
"data": {
"dtype": "int16",
"shape": [6],
"data": { "kind": "values", "values": [-32768, -1, 0, 1, 32767, -32767] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [6] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } }
},
"outputs": {
"output": {
"dtype": "int16",
"shape": [3],
"tolerance": 0,
"data": { "kind": "values", "values": [-1, 1, -32767] }
}
}
},
{
"name": "rank2_axis1",
"inputs": {
"data": {
"dtype": "float32",
"shape": [3, 5],
"data": {
"kind": "values",
"values": [0.0, 1.0, 2.0, 3.0, 4.0, 10.0, 11.0, 12.0, 13.0, 14.0, 20.0, 21.0, 22.0, 23.0, 24.0]
}
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [4] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [3, 3] } }
},
{
"name": "rank2_axis0_odd_width_x4",
"inputs": {
"data": { "dtype": "float32", "shape": [6, 5], "data": { "kind": "linspace", "start": -1.0, "end": 1.0 } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [5] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [4, 5], "tolerance": 0 } }
},
{
"name": "rank2_axis0_odd_width_reverse_x4",
"inputs": {
"data": { "dtype": "float32", "shape": [6, 5], "data": { "kind": "linspace", "start": -1.0, "end": 1.0 } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [5] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [4, 5], "tolerance": 0 } }
},
{
"name": "end_past_dim_clamped",
"inputs": {
"data": {
"dtype": "float32",
"shape": [2, 5],
"data": { "kind": "values", "values": [0.0, 1.0, 2.0, 3.0, 4.0, 10.0, 11.0, 12.0, 13.0, 14.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [3] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [999] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 2] } }
},
{
"name": "empty_output_start_equals_end",
"inputs": {
"data": {
"dtype": "float32",
"shape": [6],
"data": { "kind": "values", "values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [0] } }
},
{
"name": "rank3_axis_step_f16",
"inputs": {
"data": { "dtype": "float16", "shape": [2, 3, 4] },
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 4] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 2] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 2] } }
},
"outputs": { "output": { "dtype": "float16", "shape": [2, 1, 2] } },
"tolerance": 0.001
},
{
"name": "rank5_subset_axes_offset",
"inputs": {
"data": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2],
"data": { "kind": "fillFloat32", "sinStep": 0.11, "cosStep": 0.23 }
},
"starts": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [0, 1, 0, 0] } },
"ends": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [1, 2, 2, 2] } },
"axes": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [0, 1, 2, 3] } },
"steps": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [1, 1, 1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 2, 2, 2], "tolerance": 0.000001 } }
},
{
"name": "rank6_last_axis_step",
"inputs": {
"data": {
"dtype": "float32",
"shape": [1, 2, 1, 2, 1, 4],
"data": { "kind": "fillFloat32", "sinStep": 0.11, "cosStep": 0.23 }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [4] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [5] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 1, 2, 1, 2], "tolerance": 0.000001 } }
},
{
"name": "ort_1d_start_greater_than_end_empty",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_InvalidStartEndRange"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6],
"data": { "kind": "values", "values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [3] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [0], "tolerance": 0.000001 } }
},
{
"name": "ort_1d_start_end_out_of_bounds_empty",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_StartAndEndOutOfBounds"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6],
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1000] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1001] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [0], "tolerance": 0.000001 } }
},
{
"name": "ort_2d_start_end_out_of_bounds_empty_axis",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_StartAndEndOutOfBounds"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [2, 3],
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1000] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [10, 1000] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 0], "tolerance": 0.000001 } }
},
{
"name": "ort_1d_negative_step_regular",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_WithNegativeSteps_Regular"
},
"inputs": {
"data": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-4] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [3], "tolerance": 0.000001 } }
},
{
"name": "ort_1d_negative_step_start_out_of_bounds",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_WithNegativeSteps_StartOutOfBounds"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6],
"data": { "kind": "values", "values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [7] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-3] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2], "tolerance": 0.000001 } }
},
{
"name": "ort_2d_positive_steps_subset_axes",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_WithPositiveSteps_1"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [2, 4],
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 0] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 3] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 2] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 } }
},
{
"name": "ort_2d_two_axes_negative_end",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_TwoAxes"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6, 4],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_2d_two_axes_negative_end_input_data" } }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 3] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1000, -1] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 0] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 } }
},
{
"name": "ort_2d_reverse_all_axes",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_ReverseAllAxes"
},
"inputs": {
"data": { "dtype": "float32", "shape": [2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [-1, -1] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [-2147483648, -2147483648] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [-1, -1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 } }
},
{
"name": "ort_2d_reverse_negative_axis",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_ReverseSubsetOfNegAxes_1"
},
"inputs": {
"data": { "dtype": "float32", "shape": [2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2147483648] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 } }
},
{
"name": "ort_2d_mixed_negative_steps_single_value",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_WithNegativeSteps_2"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [2, 4],
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 3] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [-1, -2] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1], "tolerance": 0.000001 } }
},
{
"name": "ort_3d_positive_and_negative_steps_subset_axes",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice3D_WithPositiveAndNegativeSteps_SubsetOfAxes_1"
},
"inputs": {
"data": {
"dtype": "int32",
"shape": [3, 3, 3],
"data": {
"kind": "values",
"values": { "$ref": "#/fixtureArrays/ort_3d_positive_and_negative_steps_subset_axes_input_data" }
}
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 4] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1000, 1] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 2] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [3, -2] } }
},
"outputs": {
"output": {
"dtype": "int32",
"shape": [3, 1, 1],
"tolerance": 0,
"data": { "kind": "values", "values": [11, 29, 24] }
}
}
},
{
"name": "ort_3d_positive_and_negative_steps_subset_axes_empty",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice3D_WithPositiveAndNegativeSteps_SubsetOfAxes_2"
},
"inputs": {
"data": {
"dtype": "int32",
"shape": [3, 3, 3],
"data": {
"kind": "values",
"values": { "$ref": "#/fixtureArrays/ort_3d_positive_and_negative_steps_subset_axes_input_data" }
}
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 4] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1000, 2] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 2] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [3, -2] } }
},
"outputs": { "output": { "dtype": "int32", "shape": [3, 1, 0], "tolerance": 0 } }
},
{
"name": "ort_5d_subset_axes_offset",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice5D_SubsetOfAxes_Flatten2Dims_OffsetInput"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_5d_subset_axes_offset_input_data" } }
},
"starts": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [0, 1, 1, 0] } },
"ends": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [1, 2, 2147483647, 6] } },
"axes": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [0, 1, 2, 3] } },
"steps": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [1, 1, 1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 1, 2, 2], "tolerance": 0.000001 } }
},
{
"name": "ort_5d_large_step",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice5D_LargeStep"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_5d_subset_axes_offset_input_data" } }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2147483647] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 2, 2, 2], "tolerance": 0.000001 } }
},
{
"name": "ort_3d_flatten_innermost_dims_copy",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice3D_FlattenInnermostDimsIncopy"
},
"inputs": {
"data": {
"dtype": "int32",
"shape": [3, 3, 3],
"data": {
"kind": "values",
"values": { "$ref": "#/fixtureArrays/ort_3d_positive_and_negative_steps_subset_axes_input_data" }
}
},
"starts": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [0, 0, 1] } },
"ends": {
"dtype": "int32",
"shape": [3],
"data": { "kind": "values", "values": [2147483647, 2147483647, 2147483647] }
},
"axes": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [2, 1, 0] } },
"steps": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [1, 1, 2] } }
},
"outputs": { "output": { "dtype": "int32", "shape": [1, 3, 3], "tolerance": 0 } }
},
{
"name": "ort_5d_copy_axis2_large_block",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice5D_CopyAxis2LargeBlock"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [1, 3, 4, 2, 2],
"data": {
"kind": "values",
"values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, -1.0, -2.0, -3.0, -4.0, -5.0, -6.0, -7.0, -8.0]
}
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 3] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 2] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 2, 2, 2], "tolerance": 0 } }
},
{
"name": "ort_coalesce_dims_negative_and_positive_steps",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.CoalesceDims / negative and positive steps"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [2, 2, 2, 2],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_5d_subset_axes_offset_input_data" } }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 2] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [-1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 2, 2], "tolerance": 0 } }
},
{
"name": "ort_coalesce_dims_middle_axis_full_extent",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.CoalesceDims / middle axis full extent"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_5d_subset_axes_offset_input_data" } }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2147483647] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 2, 1, 2, 2], "tolerance": 0 } }
},
{
"name": "ort_coalesce_dims_two_subset_axes",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.CoalesceDims / two subset axes"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_5d_subset_axes_offset_input_data" } }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2147483647, 2147483647] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 3] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 2, 1, 2], "tolerance": 0 } }
},
{
"name": "f16_reverse_last_axis",
"inputs": {
"data": {
"dtype": "float16",
"shape": [2, 3],
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2147483648] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": { "output": { "dtype": "float16", "shape": [2, 3], "tolerance": 0.001 } }
},
{
"name": "ort_empty_dim_positive_step",
"provenance": { "source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc", "test": "SliceTest.EmptyDim" },
"inputs": {
"data": { "dtype": "float32", "shape": [0, 6], "data": { "kind": "values", "values": [] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [0, 6], "tolerance": 0.000001 } }
},
{
"name": "ort_empty_dim_negative_step",
"provenance": { "source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc", "test": "SliceTest.EmptyDim" },
"inputs": {
"data": { "dtype": "float32", "shape": [0, 6], "data": { "kind": "values", "values": [] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [0, 6], "tolerance": 0.000001 } }
},
{
"name": "ort_1d_regular_int32_data",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_Int32"
},
"inputs": {
"data": { "dtype": "int32", "shape": [6], "data": { "kind": "values", "values": [0, 1, 2, 3, 4, 5] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [4] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "int32", "shape": [2], "tolerance": 0 } }
},
{
"name": "onnx_backend_slice",
"inputs": {
"data": {
"dtype": "float32",
"shape": [20, 10, 5],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_slice_input_data" } }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 0] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [3, 10] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [3, 10, 5] } },
"provenance": {
"source": "cmake/external/onnx/onnx/backend/test/data/node/test_slice",
"notes": "ONNX int64 index values are adapted to supported int32 where representable."
}
},
{
"name": "onnx_backend_slice_default_axes",
"inputs": {
"data": {
"dtype": "float32",
"shape": [20, 10, 5],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_slice_input_data" } }
},
"starts": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [0, 0, 3] } },
"ends": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [20, 10, 4] } },
"axes": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [0, 1, 2] } },
"steps": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [1, 1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [20, 10, 1] } },
"provenance": {
"source": "cmake/external/onnx/onnx/backend/test/data/node/test_slice_default_axes",
"notes": "ONNX int64 index values use supported int32 storage where representable. Omitted axes and steps use their standard defaults; this also subsumes test_slice_default_steps."
}
},
{
"name": "onnx_backend_slice_end_out_of_bounds",
"inputs": {
"data": {
"dtype": "float32",
"shape": [20, 10, 5],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_slice_input_data" } }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1000] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [20, 9, 5] } },
"provenance": {
"source": "cmake/external/onnx/onnx/backend/test/data/node/test_slice_end_out_of_bounds",
"notes": "ONNX int64 index values are adapted to supported int32 where representable."
}
},
{
"name": "onnx_backend_slice_neg",
"inputs": {
"data": {
"dtype": "float32",
"shape": [20, 10, 5],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_slice_input_data" } }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [20, 9, 5] } },
"provenance": {
"source": "cmake/external/onnx/onnx/backend/test/data/node/test_slice_neg",
"notes": "ONNX int64 index values are adapted to supported int32 where representable."
}
},
{
"name": "onnx_backend_slice_neg_steps",
"inputs": {
"data": {
"dtype": "float32",
"shape": [20, 10, 5],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_slice_input_data" } }
},
"starts": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [20, 10, 4] } },
"ends": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [0, 0, 1] } },
"axes": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [0, 1, 2] } },
"steps": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [-1, -3, -2] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [19, 3, 2] } },
"provenance": {
"source": "cmake/external/onnx/onnx/backend/test/data/node/test_slice_neg_steps",
"notes": "ONNX int64 index values are adapted to supported int32 where representable."
}
},
{
"name": "onnx_backend_slice_negative_axes",
"inputs": {
"data": {
"dtype": "float32",
"shape": [20, 10, 5],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_slice_input_data" } }
},
"starts": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [0, 0, 3] } },
"ends": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [20, 10, 4] } },
"axes": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [0, -2, -1] } },
"steps": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [1, 1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [20, 10, 1] } },
"provenance": {
"source": "cmake/external/onnx/onnx/backend/test/data/node/test_slice_negative_axes",
"notes": "ONNX int64 index values are adapted to supported int32 where representable. ONNX omitted steps input represented with default unit steps."
}
},
{
"name": "ort_negative_step_regular_1d",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_WithNegativeSteps_Regular"
},
"inputs": {
"data": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-4] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [3], "tolerance": 0 } }
},
{
"name": "ort_negative_step_end_out_of_bounds_1d",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_WithNegativeSteps_EndOutOfBounds_2"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6],
"data": { "kind": "values", "values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-10] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1], "tolerance": 0 } }
},
{
"name": "ort_negative_step_valid_range_1d",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_WithNegativeSteps_ValidStartEndRange"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6],
"data": { "kind": "values", "values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [5] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [5], "tolerance": 0 } }
},
{
"name": "ort_reverse_subset_axis1",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_ReverseSubsetOfAxes_1"
},
"inputs": {
"data": { "dtype": "float32", "shape": [2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2147483648] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 2], "tolerance": 0 } }
},
{
"name": "ort_positive_negative_steps_subset_axes_int32",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice3D_WithPositiveAndNegativeSteps_SubsetOfAxes_1"
},
"inputs": {
"data": {
"dtype": "int32",
"shape": [3, 3, 3],
"data": {
"kind": "values",
"values": { "$ref": "#/fixtureArrays/ort_3d_positive_and_negative_steps_subset_axes_input_data" }
}
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 4] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1000, 1] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 2] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [3, -2] } }
},
"outputs": { "output": { "dtype": "int32", "shape": [3, 1, 1], "tolerance": 0 } }
},
{
"name": "ort_5d_subset_axes_flatten_offset",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice5D_SubsetOfAxes_Flatten2Dims_OffsetInput"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_5d_subset_axes_offset_input_data" } }
},
"starts": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [0, 1, 1, 0] } },
"ends": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [1, 2, 2147483647, 6] } },
"axes": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [0, 1, 2, 3] } },
"steps": { "dtype": "int32", "shape": [4], "data": { "kind": "values", "values": [1, 1, 1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 1, 2, 2], "tolerance": 0 } }
},
{
"name": "ort_5d_large_step_axis1",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice5D_LargeStep"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [1, 2, 2, 2, 2],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_5d_subset_axes_offset_input_data" } }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2147483647] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [1, 1, 2, 2, 2], "tolerance": 0 } }
},
{
"name": "onnx_backend_slice_start_out_of_bounds",
"inputs": {
"data": {
"dtype": "float32",
"shape": [20, 10, 5],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_slice_input_data" } }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1000] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1000] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [20, 0, 5] } },
"provenance": {
"source": "cmake/external/onnx/onnx/backend/test/data/node/test_slice_start_out_of_bounds",
"notes": "ONNX int64 index values are adapted to supported int32 where representable."
}
},
{
"name": "ort_1d_positive_step_every_other",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_WithPositiveSteps"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6],
"data": { "kind": "values", "values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [6] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [3],
"tolerance": 0,
"data": { "kind": "values", "values": [0.0, 2.0, 4.0] }
}
}
},
{
"name": "ort_1d_reverse_all_axes_end_int32_max",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_ReverseAllAxes_1",
"notes": "Uses int32 max as the package-representable sentinel for the ONNX int64 maximum end value."
},
"inputs": {
"data": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2147483647] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [4],
"tolerance": 0,
"data": { "kind": "values", "values": [4.0, 3.0, 2.0, 1.0] }
}
}
},
{
"name": "ort_1d_reverse_all_axes_end_int32_min",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_ReverseAllAxes_2",
"notes": "Uses int32 min as the package-representable sentinel for the ONNX int64 minimum end value."
},
"inputs": {
"data": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2147483648] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [4],
"tolerance": 0,
"data": { "kind": "values", "values": [4.0, 3.0, 2.0, 1.0] }
}
}
},
{
"name": "ort_1d_reverse_all_axes_end_before_negative_dim",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_ReverseAllAxes_3"
},
"inputs": {
"data": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-5] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [4],
"tolerance": 0,
"data": { "kind": "values", "values": [4.0, 3.0, 2.0, 1.0] }
}
}
},
{
"name": "ort_2d_reverse_subset_axis0",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_ReverseSubsetOfAxes_2",
"notes": "Uses int32 min as the package-representable sentinel for the ONNX int64 minimum end value."
},
"inputs": {
"data": { "dtype": "float32", "shape": [2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2147483648] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [2, 2],
"tolerance": 0,
"data": { "kind": "values", "values": [3.0, 4.0, 1.0, 2.0] }
}
}
},
{
"name": "ort_2d_implicit_full_axis_copy",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_ImplicitCopyBySlicingADimensionFully",
"notes": "Uses int32 max as a package-representable oversized positive end value."
},
"inputs": {
"data": { "dtype": "float32", "shape": [2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2147483647] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [2, 2],
"tolerance": 0,
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] }
}
}
},
{
"name": "ort_int8_reverse_all_axes_end_int32_min",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_ReverseAllAxes_2",
"notes": "Reverse-slice sentinel case with logical int8 edge values."
},
"inputs": {
"data": { "dtype": "int8", "shape": [4], "data": { "kind": "values", "values": [-128, -1, 0, 127] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2147483648] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": {
"output": {
"dtype": "int8",
"shape": [4],
"tolerance": 0,
"data": { "kind": "values", "values": [127, 0, -1, -128] }
}
}
},
{
"name": "uint8_positive_step_every_other_edge_values",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_WithPositiveSteps",
"notes": "Positive-step slice with logical uint8 edge values."
},
"inputs": {
"data": { "dtype": "uint8", "shape": [6], "data": { "kind": "values", "values": [0, 1, 127, 128, 254, 255] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [6] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } }
},
"outputs": {
"output": {
"dtype": "uint8",
"shape": [3],
"tolerance": 0,
"data": { "kind": "values", "values": [0, 127, 254] }
}
}
},
{
"name": "inner_vec4_step1_aligned_2d_f32",
"inputs": {
"data": {
"dtype": "float32",
"shape": [6, 16],
"data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.23 }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 4] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [6, 16] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [4, 12], "tolerance": 0 } }
},
{
"name": "inner_vec4_step1_misaligned_start_2d_f32",
"inputs": {
"data": {
"dtype": "float32",
"shape": [4, 12],
"data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.29 }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [10] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [4, 8], "tolerance": 0 } }
},
{
"name": "inner_vec4_reverse_inner_2d_f32",
"inputs": {
"data": {
"dtype": "float32",
"shape": [2, 8],
"data": { "kind": "fillFloat32", "sinStep": 0.19, "cosStep": 0.11 }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2147483648] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 8], "tolerance": 0 } }
},
{
"name": "inner_vec4_outer_slice_rank3_f16",
"inputs": {
"data": { "dtype": "float16", "shape": [3, 5, 8] },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [5] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float16", "shape": [3, 4, 8], "tolerance": 0.001 } }
},
{
"name": "inner_vec4_inner_step2_f16",
"inputs": {
"data": { "dtype": "float16", "shape": [2, 16] },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [16] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } }
},
"outputs": { "output": { "dtype": "float16", "shape": [2, 8], "tolerance": 0.001 } }
},
{
"name": "inner_vec4_outer_slice_u32",
"inputs": {
"data": {
"dtype": "uint32",
"shape": [8, 4],
"data": {
"kind": "values",
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]
}
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [8] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": {
"output": {
"dtype": "uint32",
"shape": [7, 4],
"tolerance": 0,
"data": {
"kind": "values",
"values": [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]
}
}
}
},
{
"name": "inner_vec4_rank1_tail_f32",
"inputs": {
"data": {
"dtype": "float32",
"shape": [8],
"data": { "kind": "values", "values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [4] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [8] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [4],
"tolerance": 0,
"data": { "kind": "values", "values": [4.0, 5.0, 6.0, 7.0] }
}
}
},
{
"name": "ort_1d_regular",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_Regular"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6],
"data": { "kind": "values", "values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [2] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [4] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [2],
"tolerance": 0,
"data": { "kind": "values", "values": [2.0, 3.0] }
}
}
},
{
"name": "ort_1d_end_out_of_bounds_full_copy",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice1D_EndOutOfBounds"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6],
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [10] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [6],
"tolerance": 0,
"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] }
}
}
},
{
"name": "ort_2d_one_axis_axis0",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_OneAxis"
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6, 4],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_2d_two_axes_negative_end_input_data" } }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [3] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [2, 4],
"tolerance": 0,
"data": { "kind": "values", "values": [10.0, 11.0, 12.0, 13.0, 20.0, 21.0, 22.0, 23.0] }
}
}
},
{
"name": "ort_2d_one_axis_default_steps",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_OneAxis",
"notes": "ORT omits the optional steps input here; ONNX defaults it to unit steps."
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [6, 4],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_2d_two_axes_negative_end_input_data" } }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [3] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [2, 4],
"tolerance": 0,
"data": { "kind": "values", "values": [10.0, 11.0, 12.0, 13.0, 20.0, 21.0, 22.0, 23.0] }
}
}
},
{
"name": "ort_2d_default_axes_and_steps",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_DefaultAxes",
"notes": "ORT omits optional axes and steps; ONNX defaults axes to [0] and steps to [1]."
},
"inputs": {
"data": { "dtype": "float32", "shape": [2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [1, 2],
"tolerance": 0,
"data": { "kind": "values", "values": [1.0, 2.0] }
}
}
},
{
"name": "ort_3d_clamped_multi_axis",
"provenance": { "source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc", "test": "SliceTest.Slice3D" },
"inputs": {
"data": {
"dtype": "float32",
"shape": [3, 3, 3],
"data": {
"kind": "values",
"values": [111.0, 112.0, 113.0, 121.0, 122.0, 123.0, 131.0, 132.0, 133.0, 211.0, 212.0, 213.0, 221.0, 222.0, 223.0, 231.0, 232.0, 233.0, 311.0, 312.0, 313.0, 321.0, 322.0, 323.0, 331.0, 332.0, 333.0]
}
},
"starts": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [0, 1, 1] } },
"ends": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [1000, 1000, 1000] } },
"axes": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [0, 1, 2] } },
"steps": { "dtype": "int32", "shape": [3], "data": { "kind": "values", "values": [1, 1, 1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [3, 2, 2],
"tolerance": 0,
"data": {
"kind": "values",
"values": [122.0, 123.0, 132.0, 133.0, 222.0, 223.0, 232.0, 233.0, 322.0, 323.0, 332.0, 333.0]
}
}
}
},
{
"name": "ort_bool_reverse_subset_axis1",
"provenance": {
"source": "onnxruntime/test/providers/cpu/tensor/slice_op.test.cc",
"test": "SliceTest.Slice2D_ReverseSubsetOfAxes_1",
"notes": "Same reverse-subset slice behavior with a bool payload."
},
"inputs": {
"data": { "dtype": "bool", "shape": [2, 2], "data": { "kind": "values", "values": [1, 0, 0, 1] } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2147483648] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-1] } }
},
"outputs": {
"output": {
"dtype": "bool",
"shape": [2, 2],
"tolerance": 0,
"data": { "kind": "values", "values": [0, 1, 1, 0] }
}
}
},
{
"name": "ort_caseB_empty",
"inputs": {
"data": {
"dtype": "float32",
"shape": [3, 5],
"data": {
"kind": "values",
"values": [0.0, 1.0, 2.0, 3.0, 4.0, 10.0, 11.0, 12.0, 13.0, 14.0, 20.0, 21.0, 22.0, 23.0, 24.0]
}
},
"starts": { "dtype": "int32", "shape": [0], "data": { "kind": "values", "values": [] } },
"ends": { "dtype": "int32", "shape": [0], "data": { "kind": "values", "values": [] } },
"axes": { "dtype": "int32", "shape": [0], "data": { "kind": "values", "values": [] } },
"steps": { "dtype": "int32", "shape": [0], "data": { "kind": "values", "values": [] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [3, 5],
"data": {
"kind": "values",
"values": [0.0, 1.0, 2.0, 3.0, 4.0, 10.0, 11.0, 12.0, 13.0, 14.0, 20.0, 21.0, 22.0, 23.0, 24.0]
},
"tolerance": 0.001
}
}
},
{
"name": "inner_vec4_int8_aligned_2d",
"provenance": {
"notes": "An aligned int8 inner-axis slice with step=1, inner_start=0, and last dimension 8 exercises vec4<i32> loads and stores for logical int8 data."
},
"inputs": {
"data": {
"dtype": "int8",
"shape": [2, 8],
"data": { "kind": "values", "values": [-128, -1, 0, 1, 2, 3, 4, 127, 10, 20, 30, 40, 50, 60, 70, 80] }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 0] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 8] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }
},
"outputs": {
"output": {
"dtype": "int8",
"shape": [1, 8],
"tolerance": 0,
"data": { "kind": "values", "values": [10, 20, 30, 40, 50, 60, 70, 80] }
}
}
},
{
"name": "inner_vec4_uint8_aligned_2d",
"provenance": {
"notes": "uint8 aligned inner_vec4 full-copy store (step=1, start=0, last dim 8 %4==0). uint8 maps to u32 storage -> binding vec4<u32>. Edge values 0..255 to catch any narrowing."
},
"inputs": {
"data": {
"dtype": "uint8",
"shape": [2, 8],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/inner_vec4_uint8_aligned_2d_input_data" } }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 0] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 8] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }
},
"outputs": {
"output": {
"dtype": "uint8",
"shape": [2, 8],
"tolerance": 0,
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/inner_vec4_uint8_aligned_2d_input_data" } }
}
}
},
{
"name": "inner_vec4_bool_aligned_2d",
"provenance": {
"notes": "A unit-step Boolean slice over an eight-element inner dimension exercises aligned vector stores with logical Boolean values held in u32 slots."
},
"inputs": {
"data": {
"dtype": "bool",
"shape": [2, 8],
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/inner_vec4_bool_aligned_2d_input_data" } }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 0] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 8] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }
},
"outputs": {
"output": {
"dtype": "bool",
"shape": [2, 8],
"tolerance": 0,
"data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/inner_vec4_bool_aligned_2d_input_data" } }
}
}
},
{
"name": "inner_vec4_reversed_axes_order_rank2",
"inputs": {
"data": {
"dtype": "float32",
"shape": [6, 16],
"data": { "kind": "fillFloat32", "sinStep": 0.11, "cosStep": 0.23 }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [4, 1] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [16, 5] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 0] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [4, 12], "tolerance": 0 } }
},
{
"name": "inner_vec4_negative_inner_axis_step2_rank3",
"inputs": {
"data": {
"dtype": "float32",
"shape": [3, 5, 16],
"data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.17 }
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 0] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [3, 16] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, -1] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 2] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [3, 2, 8], "tolerance": 0 } }
},
{
"name": "generic_metadata_negative_axis_rank4",
"inputs": {
"data": {
"dtype": "float32",
"shape": [2, 3, 4, 5],
"data": { "kind": "fillFloat32", "sinStep": 0.07, "cosStep": 0.19 }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [3] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 3, 2, 5], "tolerance": 0 } }
},
{
"name": "generic_metadata_no_axes_rank3_negative_start",
"inputs": {
"data": {
"dtype": "float32",
"shape": [4, 6, 5],
"data": { "kind": "fillFloat32", "sinStep": 0.09, "cosStep": 0.21 }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [4] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 6, 5], "tolerance": 0 } }
},
{
"name": "steps_without_axes_reverse_stride2",
"provenance": {
"notes": "Pins the independent optional-input combination in which steps is supplied while axes is omitted. Implicit axis 0 with a negative stride of magnitude two must select rows 4 and 2, so neither silently defaulting steps nor requiring axes can pass."
},
"inputs": {
"data": {
"dtype": "float32",
"shape": [5, 3],
"data": {
"kind": "values",
"values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0]
}
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [4] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [2, 3],
"tolerance": 0,
"data": { "kind": "values", "values": [12.0, 13.0, 14.0, 6.0, 7.0, 8.0] }
}
}
},
{
"name": "rank7_last_axis",
"inputs": {
"data": {
"dtype": "float32",
"shape": [2, 1, 2, 1, 2, 1, 4],
"data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.29 }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [4] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [6] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 1, 2, 1, 2, 1, 3], "tolerance": 0 } }
},
{
"name": "rank8_last_axis",
"attrs": {},
"inputs": {
"data": {
"dtype": "float32",
"shape": [2, 1, 2, 1, 2, 1, 2, 4],
"data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.29 }
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [4] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [7] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float32", "shape": [2, 1, 2, 1, 2, 1, 2, 3], "tolerance": 0 } }
},
{
"name": "rank2_axis0_odd_width_x4_f16",
"provenance": {
"notes": "A float16 odd-width x4 row slice checks half-precision storage and its guarded final group. Slice is a copy, so the tolerance remains zero."
},
"inputs": {
"data": { "dtype": "float16", "shape": [6, 5], "data": { "kind": "linspace", "start": -1.0, "end": 1.0 } },
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [5] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } },
"steps": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": { "output": { "dtype": "float16", "shape": [4, 5], "tolerance": 0 } }
},
{
"name": "inner_vec4_no_axes_no_steps_outer_rows_f32",
"inputs": {
"data": {
"dtype": "float32",
"shape": [6, 8],
"data": {
"kind": "values",
"values": [-20.0, -19.0, -18.0, -17.0, -16.0, -15.0, -14.0, -13.0, -12.0, -11.0, -10.0, -9.0, -8.0, -7.0, -6.0, -5.0, -4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0, 27.0]
}
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [5] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [4, 8],
"tolerance": 0,
"data": {
"kind": "values",
"values": [-12.0, -11.0, -10.0, -9.0, -8.0, -7.0, -6.0, -5.0, -4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0]
}
}
}
},
{
"name": "inner_vec4_no_axes_no_steps_inner_misaligned_f16",
"inputs": {
"data": {
"dtype": "float16",
"shape": [3, 12],
"data": {
"kind": "values",
"values": [-8.0, -5.0, -2.0, 1.0, 4.0, 7.0, -7.0, -4.0, -1.0, 2.0, 5.0, 8.0, -6.0, -3.0, 0.0, 3.0, 6.0, -8.0, -5.0, -2.0, 1.0, 4.0, 7.0, -7.0, -4.0, -1.0, 2.0, 5.0, 8.0, -6.0, -3.0, 0.0, 3.0, 6.0, -8.0, -5.0]
}
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 2] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [3, 10] } }
},
"outputs": {
"output": {
"dtype": "float16",
"shape": [3, 8],
"tolerance": 0,
"data": {
"kind": "values",
"values": [-2.0, 1.0, 4.0, 7.0, -7.0, -4.0, -1.0, 2.0, 0.0, 3.0, 6.0, -8.0, -5.0, -2.0, 1.0, 4.0, 2.0, 5.0, 8.0, -6.0, -3.0, 0.0, 3.0, 6.0]
}
}
}
},
{
"name": "inner_vec4_no_axes_no_steps_negative_start_rank3_u32",
"inputs": {
"data": {
"dtype": "uint32",
"shape": [2, 5, 4],
"data": {
"kind": "values",
"values": [1, 8, 15, 22, 29, 36, 43, 50, 57, 64, 71, 78, 85, 92, 99, 106, 113, 120, 127, 134, 141, 148, 155, 162, 169, 176, 183, 190, 197, 204, 211, 218, 225, 232, 239, 246, 253, 260, 267, 274]
}
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [-1, 1] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 4] } }
},
"outputs": {
"output": {
"dtype": "uint32",
"shape": [1, 3, 4],
"tolerance": 0,
"data": { "kind": "values", "values": [169, 176, 183, 190, 197, 204, 211, 218, 225, 232, 239, 246] }
}
}
},
{
"name": "inner_vec4_no_axes_no_steps_rank1_f32",
"inputs": {
"data": {
"dtype": "float32",
"shape": [16],
"data": {
"kind": "values",
"values": [-3.0, -2.5, -2.0, -1.5, -1.0, -0.5, 0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5]
}
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [4] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [12] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [8],
"tolerance": 0,
"data": { "kind": "values", "values": [-1.0, -0.5, 0.0, 0.5, 1.0, 1.5, 2.0, 2.5] }
}
}
},
{
"name": "inner_vec4_steps_without_axes_inner_step2_f32",
"inputs": {
"data": {
"dtype": "float32",
"shape": [2, 16],
"data": {
"kind": "values",
"values": [-15.0, -14.0, -13.0, -12.0, -11.0, -10.0, -9.0, -8.0, -7.0, -6.0, -5.0, -4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0]
}
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 16] } },
"steps": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 2] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [2, 8],
"tolerance": 0,
"data": {
"kind": "values",
"values": [-14.0, -12.0, -10.0, -8.0, -6.0, -4.0, -2.0, 0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0]
}
}
}
},
{
"name": "inner_vec4_no_steps_negative_axis_f32",
"inputs": {
"data": {
"dtype": "float32",
"shape": [4, 8],
"data": {
"kind": "values",
"values": [-5.0, 0.0, 5.0, -1.0, 4.0, -2.0, 3.0, -3.0, 2.0, -4.0, 1.0, -5.0, 0.0, 5.0, -1.0, 4.0, -2.0, 3.0, -3.0, 2.0, -4.0, 1.0, -5.0, 0.0, 5.0, -1.0, 4.0, -2.0, 3.0, -3.0, 2.0, -4.0]
}
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [3] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [-2] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [2, 8],
"tolerance": 0,
"data": {
"kind": "values",
"values": [2.0, -4.0, 1.0, -5.0, 0.0, 5.0, -1.0, 4.0, -2.0, 3.0, -3.0, 2.0, -4.0, 1.0, -5.0, 0.0]
}
}
}
},
{
"name": "inner_vec4_no_steps_inner_misaligned_i32",
"inputs": {
"data": {
"dtype": "int32",
"shape": [2, 12],
"data": {
"kind": "values",
"values": [100, 97, 94, 91, 88, 85, 82, 79, 76, 73, 70, 67, 64, 61, 58, 55, 52, 49, 46, 43, 40, 37, 34, 31]
}
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [3] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [11] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } }
},
"outputs": {
"output": {
"dtype": "int32",
"shape": [2, 8],
"tolerance": 0,
"data": { "kind": "values", "values": [91, 88, 85, 82, 79, 76, 73, 70, 55, 52, 49, 46, 43, 40, 37, 34] }
}
}
},
{
"name": "inner_vec4_no_steps_two_axes_f32",
"inputs": {
"data": {
"dtype": "float32",
"shape": [4, 8],
"data": {
"kind": "values",
"values": [-40.0, -37.0, -34.0, -31.0, -28.0, -25.0, -22.0, -19.0, -16.0, -13.0, -10.0, -7.0, -4.0, -1.0, 2.0, 5.0, 8.0, 11.0, 14.0, 17.0, 20.0, 23.0, 26.0, 29.0, 32.0, 35.0, 38.0, 41.0, 44.0, 47.0, 50.0, 53.0]
}
},
"starts": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [1, 0] } },
"ends": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [3, 8] } },
"axes": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [0, 1] } }
},
"outputs": {
"output": {
"dtype": "float32",
"shape": [2, 8],
"tolerance": 0,
"data": {
"kind": "values",
"values": [-16.0, -13.0, -10.0, -7.0, -4.0, -1.0, 2.0, 5.0, 8.0, 11.0, 14.0, 17.0, 20.0, 23.0, 26.0, 29.0]
}
}
}
},
{
"name": "generic_no_steps_inner_dim_not_multiple_of_four",
"provenance": {
"notes": "An omitted steps input with an innermost extent of 6 leaves the vec4 inner route inapplicable, so the general metadata-driven route carries the slice."
},
"inputs": {
"data": {
"dtype": "int32",
"shape": [4, 6],
"data": {
"kind": "values",
"values": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
}
},
"starts": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [1] } },
"ends": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [3] } },
"axes": { "dtype": "int32", "shape": [1], "data": { "kind": "values", "values": [0] } }
},
"outputs": {
"output": {
"dtype": "int32",
"shape": [2, 6],
"tolerance": 0,
"data": { "kind": "values", "values": [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] }
}
}
}
]
}
|