Download build/webgpu/test.json from webgpu-kernels/ai.onnx.Resize: direct link, hf CLI and curl.
- Browser
- Download file 254 kB
-
https://huggingface.co/kernels/webgpu-kernels/ai.onnx.Resize/resolve/v1/build/webgpu/test.json
- Command line
-
hf download hf://webgpu-kernels/ai.onnx.Resize@v1/build/webgpu/test.json
-
curl -L -o test.json https://huggingface.co/kernels/webgpu-kernels/ai.onnx.Resize/resolve/v1/build/webgpu/test.json
254 kB
| { | |
| "fixtureArrays": { | |
| "resize_5d_ramp_64": [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, 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], | |
| "resize_4x4_ramp": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], | |
| "ort_linear_downsample_odd_third_3x6_to_1x2_input_x": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], | |
| "ort_cubic_align_corners_floor_nchw_input_x": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], | |
| "ort_linear_axes_scales_5d_output_y": [3.5, 4.8333335, 6.1666665, 8.833333, 10.166667, 11.5, 14.166667, 15.5, 16.833334, 24.833334, 26.166666, 27.5, 30.166666, 31.5, 32.833332, 35.5, 36.833332, 38.166668, 46.166668, 47.5, 48.833332, 51.5, 52.833332, 54.166668, 56.833332, 58.166668, 59.5], | |
| "suffix_cubic_exclude0_input_x": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.6067157983779907, -0.94154953956604, -0.9552274942398071, -0.6321859359741211, -0.100829117000103, 0.4243633449077606, 0.7401348352432251, 0.7450881004333496, 0.48099780082702637, 0.10598835349082947, -0.18646365404129028, -0.2628708779811859, -0.11306791752576828, 0.14889498054981232, 0.3461253046989441, 0.3319292664527893, 0.06842120736837387, -0.34844693541526794, -0.7305420637130737, -0.8864681720733643, -0.7150757908821106, -0.25821852684020996, 0.31331953406333923, 0.7748502492904663, 0.9486299157142639, 0.7829550504684448, 0.3723013997077942, -0.09049784392118454, -0.4065987765789032, -0.4635164737701416, -0.2834371030330658, -0.005032815970480442, 0.19131122529506683, 0.1775568276643753, -0.05513086915016174, -0.38978859782218933, -0.640857994556427, -0.6474397778511047, -0.3569943308830261, 0.1418544352054596, 0.6543782353401184, 0.9668905138969421, 0.9449092745780945, 0.5956639647483826, 0.0651111900806427, -0.4291747212409973, -0.6973186135292053, -0.6615476012229919, -0.38599538803100586, -0.038672156631946564, 0.19496312737464905, 0.20427490770816803, 0.006576883140951395, -0.264511376619339, -0.42935794591903687, -0.35643258690834045, -0.033661019057035446, 0.41863349080085754, 0.8005234599113464, 0.9262955784797668, 0.7143750190734863, 0.22987115383148193, -0.3412853181362152, -0.7749568223953247, -0.9093265533447266, -0.7159268856048584, -0.3079201877117157, 0.11754821985960007, 0.37462031841278076, 0.37557852268218994, 0.16775305569171906, -0.09652946144342422, -0.24135459959506989, -0.15947312116622925, 0.13027237355709076, 0.48894062638282776, 0.724475622177124, 0.6873340606689453, 0.34811994433403015, -0.18109869956970215, -0.6931602358818054, -0.9786273837089539, -0.9212916493415833, -0.5510678291320801, -0.02920547127723694, 0.4269854426383972, 0.6439146399497986, 0.5685639381408691, 0.28632715344429016, -0.02761402726173401, -0.19877606630325317, -0.14111578464508057, 0.10088767856359482, 0.3762235641479492, 0.5054440498352051, 0.3743533194065094, -0.0030330789741128683, -0.4838518500328064, -0.8594995141029358, -0.9528764486312866, -0.7033077478408813, -0.19820117950439453, 0.3642086684703827, 0.7637732625007629, 0.8570656180381775, 0.6392353177070618, 0.24030987918376923, -0.14136233925819397, -0.33580365777015686, -0.281379371881485, -0.04972825199365616, 0.19566740095615387, 0.2862280011177063, 0.1372540295124054, -0.2049930840730667, -0.5817833542823792], | |
| "suffix_cubic_exclude1_output_y": [0.7586753368377686, 0.7621676921844482, 0.40172407031059265, -0.22274881601333618, -0.8732494711875916, -1.279121994972229, -1.2612923383712769, -0.8162460327148438, 0.2532859444618225, 0.6567040681838989, 0.7388623356819153, 0.4772619307041168, 0.013534948229789734, -0.41728731989860535, -0.6019997000694275, -0.45301079750061035, -0.1771533489227295, 0.4360720217227936, 0.8361100554466248, 0.8676788806915283, 0.5482221841812134, 0.05456811934709549, -0.36589816212654114, -0.5161133408546448, -0.1270071119070053, 0.19705882668495178, 0.4364728629589081, 0.412126749753952, 0.0803142786026001, -0.43781551718711853, -0.9089186191558838, -1.0976639986038208, -0.7247937917709351, -0.1673286259174347, 0.4606802761554718, 0.8941773176193237, 0.9578861594200134, 0.645876944065094, 0.12069877982139587, -0.36694297194480896, -0.777565062046051, -0.4786939024925232, 0.04968312010169029, 0.5693163871765137, 0.8438891172409058, 0.750999391078949, 0.339768648147583, -0.19353322684764862, -0.4632266163825989, -0.5833221673965454, -0.4009808897972107, -0.07942823320627213, 0.15902887284755707, 0.15048576891422272, -0.12404005974531174, -0.5259643793106079, 0.050045743584632874, 0.07527760416269302, 0.05521005392074585, -0.010252541862428188, -0.09645698964595795, -0.16486689448356628, -0.181217223405838, -0.1322544664144516, 0.004118921235203743, 0.08258848637342453, 0.12278017401695251, 0.1075943186879158, 0.04609934985637665, -0.031110553070902824, -0.08683234453201294, -0.0952167734503746, -0.054053619503974915, 0.04192836955189705, 0.12218715995550156, 0.15295526385307312, 0.12294718623161316, 0.048275236040353775, -0.03557903692126274, -0.09082122147083282, -0.07729914039373398, -0.03750807046890259, 0.013820932246744633, 0.04339047148823738, 0.030683739110827446, -0.021185066550970078, -0.08652123808860779, -0.1295613795518875, -0.11615364253520966, -0.05099785327911377, 0.042213086038827896, 0.12365696579217911, 0.15790167450904846, 0.1304389238357544, 0.05438905209302902, -0.03581681475043297, -0.11035711318254471, -0.09282031655311584, -0.02849557064473629, 0.05380115658044815, 0.11593756824731827, 0.12864726781845093, 0.08555889874696732, 0.0063097295351326466, -0.08368546515703201, -0.13303697109222412, -0.12469946593046188, -0.072915218770504, -0.010397534817457199, 0.028633201494812965, 0.025589242577552795, -0.01354275643825531, -0.7040790915489197, -0.6669859290122986, -0.3265175223350525, 0.21380089223384857, 0.7475460171699524, 1.0569409132003784, 1.0120686292648315, 0.630713701248169, -0.2554658353328705, -0.546069860458374, -0.5661054849624634, -0.3199324309825897, 0.06054475158452988, 0.38156625628471375, 0.48264047503471375, 0.3149094581604004, 0.09589695930480957, -0.3834860026836395, -0.6676766872406006, -0.6505761742591858, -0.3684815764427185, 0.021665938198566437, 0.3212222754955292, 0.3873565196990967, 0.006576883140951395, -0.264511376619339, -0.42935794591903687, -0.35643258690834045, -0.033661019057035446, 0.41863349080085754, 0.8005234599113464, 0.9262955784797668, 0.5622090101242065, 0.09070003032684326, -0.4084576368331909, -0.7253587245941162, -0.7359043955802917, -0.4574129283428192, -0.03688422963023186, 0.32190603017807007, 0.6262201070785522, 0.3453136682510376, -0.09745781123638153, -0.5021346211433411, -0.6858150959014893, -0.5691446661949158, -0.2132527381181717, 0.21050280332565308, 0.34419453144073486, 0.38862693309783936, 0.21333858370780945, -0.03577477112412453, -0.1815362125635147, -0.10964144021272659, 0.1695134937763214, 0.5221996307373047, 0.1829483062028885, 0.14504952728748322, 0.05227738246321678, -0.06102979555726051, -0.15131981670856476, -0.18519145250320435, -0.15399937331676483, -0.07687238603830338, 0.08007436245679855, 0.09763538837432861, 0.06415971368551254, -0.0018289341824129224, -0.06586801260709763, -0.09459707885980606, -0.07224251329898834, -0.008524224162101746, 0.022108400240540504, 0.0845991000533104, 0.09838555008172989, 0.06217527016997337, -0.0007942886441014707, -0.05484725907444954, -0.06989853829145432, -0.03658812865614891, 0.07563662528991699, 0.12498673051595688, 0.12770220637321472, 0.07371524721384048, -0.020391888916492462, -0.11797269433736801, -0.17870020866394043, -0.17703011631965637, -0.06977308541536331, 0.020938105881214142, 0.09273932874202728, 0.11612345278263092, 0.08552251756191254, 0.02113775908946991, -0.0416361503303051, -0.06995910406112671, -0.0965072438120842, -0.021213259547948837, 0.06073422357439995, 0.11212389171123505, 0.11069346219301224, 0.05950213596224785, -0.014903499744832516, -0.07559021562337875, -0.02930256351828575, 0.00497203366830945, 0.05405862629413605, 0.08410188555717468, 0.06938615441322327, 0.00644463486969471, -0.08267642557621002, -0.15981492400169373, 0.966266393661499, 0.871150016784668, 0.39714330434799194, -0.3020618259906769, -0.9589440822601318, -1.310868501663208, -1.2187786102294922, -0.7297403812408447, 0.37192675471305847, 0.6802070736885071, 0.6472983956336975, 0.3063451051712036, -0.16135571897029877, -0.5164519548416138, -0.5792106986045837, -0.3175988495349884, -0.05818986892700195, 0.5027227997779846, 0.7989324331283569, 0.7258824110031128, 0.35494062304496765, -0.10650705546140671, -0.4195045232772827, -0.4314023554325104, 0.11187534034252167, 0.4508723020553589, 0.6143530011177063, 0.4594934284687042, 0.0005352247389964759, -0.5889957547187805, -1.0529001951217651, -1.1718090772628784, -0.6523482799530029, -0.05496616289019585, 0.53960120677948, 0.8824101686477661, 0.8448314070701599, 0.47515082359313965, -0.029290568083524704, -0.42027249932289124, -0.7559318542480469, -0.36684519052505493, 0.18905818462371826, 0.6604152917861938, 0.8356979489326477, 0.6429961919784546, 0.1828484833240509, -0.32145923376083374, -0.3782816529273987, -0.3677549660205841, -0.12176451086997986, 0.16582918167114258, 0.2836493253707886, 0.11582769453525543, -0.2931487560272217, -0.7544384598731995], | |
| "suffix_crop_preserves_last_axis_input_x": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.6067157983779907, -0.94154953956604, -0.9552274942398071, -0.6321859359741211, -0.100829117000103, 0.4243633449077606, 0.7401348352432251, 0.7450881004333496, 0.48099780082702637, 0.10598835349082947, -0.18646365404129028, -0.2628708779811859, -0.11306791752576828, 0.14889498054981232, 0.3461253046989441, 0.3319292664527893, 0.06842120736837387, -0.34844693541526794, -0.7305420637130737, -0.8864681720733643, -0.7150757908821106, -0.25821852684020996, 0.31331953406333923, 0.7748502492904663, 0.9486299157142639, 0.7829550504684448, 0.3723013997077942, -0.09049784392118454, -0.4065987765789032, -0.4635164737701416, -0.2834371030330658, -0.005032815970480442, 0.19131122529506683, 0.1775568276643753, -0.05513086915016174, -0.38978859782218933, -0.640857994556427, -0.6474397778511047, -0.3569943308830261, 0.1418544352054596, 0.6543782353401184, 0.9668905138969421, 0.9449092745780945, 0.5956639647483826, 0.0651111900806427, -0.4291747212409973, -0.6973186135292053, -0.6615476012229919, -0.38599538803100586, -0.038672156631946564, 0.19496312737464905, 0.20427490770816803, 0.006576883140951395, -0.264511376619339, -0.42935794591903687, -0.35643258690834045], | |
| "cubic_suffix_half_pixel_float32_output_y": [0.6404713988304138, 0.7443139553070068, 0.506507933139801, -0.015929220244288445, -0.14557339251041412, -0.40676218271255493, -0.5597310662269592, -0.5527774095535278, -0.6017633080482483, -0.7619543075561523, -0.6801546812057495, -0.3717152774333954, -0.16799449920654297, 0.4014134705066681, 0.7636761665344238, 0.7985656261444092, 0.42846110463142395, 0.24519595503807068, 0.06040099635720253, -0.022114237770438194, 0.3116217851638794, 0.12621665000915527, -0.019363809376955032, -0.08451589941978455, -0.1677270084619522, 0.1473032832145691, 0.4007769525051117, 0.4126231372356415, 0.4601939618587494, 0.3086530566215515, -0.04498772695660591, -0.46438074111938477, -0.32831475138664246, -0.4277171194553375, -0.40879133343696594, -0.2776765823364258, -0.5349868535995483, -0.4652445614337921, -0.23334141075611115, 0.0833471342921257, 0.3361763656139374, 0.6173760294914246, 0.6531712412834167, 0.45831817388534546, 0.23273427784442902, 0.06908044219017029, -0.02792450040578842, -0.023488849401474, 0.07706713676452637, -0.053530506789684296, -0.12006867676973343, -0.1237763836979866, 0.003107464639469981, 0.19712936878204346, 0.23730884492397308, 0.07129109650850296, 0.10953766852617264, -0.35318195819854736, -0.7853219509124756, -0.9736510515213013, -0.5094077587127686, -0.36816129088401794, -0.11991676688194275, 0.15246674418449402, -0.33008328080177307, 0.03664395958185196, 0.42279306054115295, 0.6840468049049377, 0.9486299157142639, 0.7829550504684448, 0.3723013997077942, -0.09049784392118454, -0.07373204827308655, -0.17826271057128906, -0.1396806687116623, -0.022899240255355835, -0.25563719868659973, -0.28720155358314514, -0.2354678511619568, -0.15721766650676727, 0.22268842160701752, 0.21119916439056396, -0.043149784207344055, -0.40997985005378723, -0.42507538199424744, -0.6391733884811401, -0.6189561486244202, -0.3356417417526245, -0.10613549500703812, 0.11351025849580765, 0.30212321877479553, 0.39932137727737427, 0.27461478114128113, 0.5086602568626404, 0.5933581590652466, 0.4915773272514343, 0.4476882517337799, 0.043798476457595825, -0.312797486782074, -0.48694100975990295, -0.25169870257377625, -0.18435275554656982, -0.07610244303941727, -0.00928481575101614, -0.2815675437450409, -0.19165033102035522, -0.09781588613986969, -0.04095153138041496, 0.1183028593659401, -0.09015710651874542, -0.32461467385292053, -0.4320374131202698, -0.7612050771713257, -0.7564111948013306, -0.402275413274765, 0.18790754675865173, 0.2062104046344757, 0.45018115639686584, 0.5658836364746094, 0.5191359519958496, 0.6801059246063232, 0.780061662197113, 0.6287863254547119, 0.2746492028236389, 0.008565991185605526, -0.5067510008811951, -0.7657743096351624, -0.6980947852134705, -0.33855777978897095, -0.15607327222824097, -0.015880746766924858, 0.00037548437830992043, -0.256216436624527, -0.09247306734323502, 0.015869781374931335, 0.04662344232201576, 0.014665697701275349, -0.30756697058677673, -0.48893532156944275, -0.3843136429786682], | |
| "cubic_suffix_half_pixel_float16_input_x": [0.5478515625, 0.59765625, 0.35986328125, -0.10137939453125, -0.60693359375, -0.94140625, -0.955078125, -0.63232421875, -0.100830078125, 0.42431640625, 0.740234375, 0.7451171875, 0.48095703125, 0.10601806640625, -0.1865234375, -0.262939453125, -0.11309814453125, 0.14892578125, 0.34619140625, 0.33203125, 0.06842041015625, -0.348388671875, -0.73046875, -0.88623046875, -0.71484375, -0.25830078125, 0.313232421875, 0.77490234375, 0.94873046875, 0.78271484375, 0.372314453125, -0.09051513671875, -0.406494140625, -0.463623046875, -0.283447265625, -0.005031585693359375, 0.1912841796875, 0.1776123046875, -0.055145263671875, -0.389892578125, -0.640625, -0.6474609375, -0.35693359375, 0.141845703125, 0.654296875, 0.966796875, 0.94482421875, 0.595703125, 0.06512451171875, -0.42919921875, -0.697265625, -0.66162109375, -0.385986328125, -0.038665771484375, 0.1949462890625, 0.2042236328125, 0.0065765380859375, -0.264404296875, -0.429443359375, -0.3564453125], | |
| "cubic_suffix_half_pixel_float16_output_y": [0.640625, 0.74462890625, 0.50634765625, -0.01593017578125, -0.145751953125, -0.406494140625, -0.5595703125, -0.552734375, -0.60205078125, -0.76171875, -0.68017578125, -0.371826171875, -0.16796875, 0.4013671875, 0.763671875, 0.798828125, 0.428466796875, 0.2452392578125, 0.06036376953125, -0.0221710205078125, 0.3115234375, 0.126220703125, -0.019378662109375, -0.08453369140625, -0.167724609375, 0.1473388671875, 0.40087890625, 0.412841796875, 0.460205078125, 0.308837890625, -0.044921875, -0.46435546875, -0.328369140625, -0.427734375, -0.40869140625, -0.277587890625, -0.53515625, -0.46533203125, -0.2332763671875, 0.08331298828125, 0.336181640625, 0.6171875, 0.6533203125, 0.458251953125, 0.2327880859375, 0.06903076171875, -0.0279388427734375, -0.0235137939453125, 0.07708740234375, -0.05352783203125, -0.12005615234375, -0.123779296875, 0.00307464599609375, 0.1971435546875, 0.2373046875, 0.0712890625, 0.1094970703125, -0.35302734375, -0.78515625, -0.9736328125, -0.50927734375, -0.3681640625, -0.11993408203125, 0.152587890625, -0.329833984375, 0.0364990234375, 0.422607421875, 0.68408203125, 0.94873046875, 0.78271484375, 0.372314453125, -0.09051513671875, -0.0736083984375, -0.178466796875, -0.1396484375, -0.0229034423828125, -0.255615234375, -0.287353515625, -0.2354736328125, -0.1572265625, 0.22265625, 0.2113037109375, -0.04315185546875, -0.41015625, -0.4248046875, -0.63916015625, -0.61865234375, -0.33544921875, -0.10601806640625, 0.11346435546875, 0.302001953125, 0.3994140625, 0.274658203125, 0.5087890625, 0.59326171875, 0.49169921875, 0.44775390625, 0.043670654296875, -0.312744140625, -0.487060546875, -0.251708984375, -0.1844482421875, -0.07611083984375, -0.0093231201171875, -0.281494140625, -0.191650390625, -0.09783935546875, -0.040985107421875, 0.1182861328125, -0.090087890625, -0.32470703125, -0.43212890625, -0.7607421875, -0.75634765625, -0.402099609375, 0.1878662109375, 0.206298828125, 0.4501953125, 0.56591796875, 0.51904296875, 0.68017578125, 0.77978515625, 0.62890625, 0.274658203125, 0.008575439453125, -0.5068359375, -0.765625, -0.6982421875, -0.338623046875, -0.1561279296875, -0.015869140625, 0.0003085136413574219, -0.256103515625, -0.0924072265625, 0.0158233642578125, 0.046600341796875, 0.0146636962890625, -0.307373046875, -0.489013671875, -0.38427734375] | |
| }, | |
| "cases": [ | |
| { | |
| "name": "linear_align_corners_exact_subnormal_pixel_gpu_gap", | |
| "skipGpu": { | |
| "category": "permanent", | |
| "reason": "Portable WGSL floating-point semantics do not guarantee preservation of the subnormal values required by this fixture. Backend evidence: WebGPU f32 flushes subnormals to zero (Metal/Dawn FTZ), so a positive-subnormal payload (1e-40) carried through an exact-pixel linear resize cannot survive on the GPU; CPU-reference-only." | |
| }, | |
| "provenance": { | |
| "notes": "Linear align_corners resize to a singleton spatial output samples the exact top-left source pixel, so a positive subnormal payload should survive." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 2], | |
| "data": { "kind": "values", "values": [1e-40, 0.0, 0.0, 0.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 1], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "nearest_half_pixel_2x_f32", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_floor" | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 4] } } | |
| }, | |
| { | |
| "name": "linear_align_corners_f32", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 3, 3] } }, | |
| "tolerance": 0.000001 | |
| }, | |
| { | |
| "name": "linear_f16", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { | |
| "x": { "dtype": "float16", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 1, 4, 4] } }, | |
| "tolerance": 0.002 | |
| }, | |
| { | |
| "name": "nearest_round_prefer_ceil_ties", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "asymmetric", | |
| "nearest_mode": "round_prefer_ceil" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 4], | |
| "data": { "kind": "values", "values": [10.0, 20.0, 30.0, 40.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 8], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "nearest_round_prefer_floor_near_half_scale", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestUpSampleTest", | |
| "notes": "Valid near-half source coordinate: output column 1 maps to 0.5000006, which is above the round_prefer_floor tie and should select input column 1." | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_floor", | |
| "scales": [1, 1, 1, 1.499999] | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 1, 2], "data": { "kind": "values", "values": [10.0, 20.0] } } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 2], | |
| "tolerance": 0, | |
| "data": { "kind": "values", "values": [10.0, 20.0] } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "nearest_asymmetric_inferred_scale_half_tie", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpNearestDownSampleTest_tf", | |
| "notes": "With sizes-driven 7-to-2 downsampling, output column 1 maps to exactly 3.5; round_prefer_ceil must choose source column 4, not an f32-rounded column 3." | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "asymmetric", | |
| "nearest_mode": "round_prefer_ceil" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 7], | |
| "data": { "kind": "values", "values": [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0] } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 2], | |
| "tolerance": 0, | |
| "data": { "kind": "values", "values": [0.0, 4.0] } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "nearest_floor_align_corners_ort_4x4_to_8x8", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "align_corners", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 8, 8], "tolerance": 0 } }, | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestUpSample_Floor_Align_Corners" | |
| } | |
| }, | |
| { | |
| "name": "nearest_round_prefer_ceil_half_pixel_ort_2x2_to_7x8", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_ceil" | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 7, 8], "tolerance": 0 } }, | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestUpSample_RoundPreferCeil_HalfPixel_2x2to7x8" | |
| } | |
| }, | |
| { | |
| "name": "nearest_round_prefer_ceil_half_pixel_tie", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_ceil" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 20], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.0, 0.052631579, 0.105263158, 0.157894737, 0.210526316, 0.263157895, 0.315789474, 0.368421053, 0.421052632, 0.473684211, 0.526315789, 0.578947368, 0.631578947, 0.684210526, 0.736842105, 0.789473684, 0.842105263, 0.894736842, 0.947368421, 1.0] | |
| } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 6], "tolerance": 0.000001 } }, | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestUpSample_RoundPreferCeil_HalfPixel_GH28291_Regression" | |
| } | |
| }, | |
| { | |
| "name": "linear_pytorch_half_pixel_downsample_ort", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearDownSampleTest_2DBilinear_pytorch_half_pixel", | |
| "notes": "Projects ORT's rank-2 PyTorch half-pixel downsample into rank-4 NCHW form." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 2, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "linear_align_corners_non_square_multichannel", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 2, 3], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 4.0, 8.0, 16.0, 32.0, -1.0, -2.0, -4.0, -8.0, -16.0, -32.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 4, 5], "tolerance": 0.000003 } } | |
| }, | |
| { | |
| "name": "nearest_ceil_asymmetric_downsample", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "ceil" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 7], | |
| "data": { "kind": "values", "values": [10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 3], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "ort_linear_downsample_half_scale_2x4_to_1x2", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearDownSampleTest_4DBilinear1" | |
| }, | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "ort_linear_downsample_explicit_scale_point6_2x4_to_1x2", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearDownSampleTest_4DBilinear", | |
| "notes": "ORT supplies explicit spatial scales of 0.6; output shape alone would imply 0.5, so this catches accidental scale inference." | |
| }, | |
| "attrs": { "mode": "linear", "scales": [1, 1, 0.6, 0.6] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 2], | |
| "tolerance": 0.000001, | |
| "data": { "kind": "values", "values": [2.6666665, 4.3333331] } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_linear_downsample_odd_third_3x6_to_1x2", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearDownSampleTest_4DBilinear1_OddNumber" | |
| }, | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 6], | |
| "data": { | |
| "kind": "values", | |
| "values": { "$ref": "#/fixtureArrays/ort_linear_downsample_odd_third_3x6_to_1x2_input_x" } | |
| } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "ort_linear_align_corners_sizes_2x4_to_1x2", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearDownSampleTest_4DBilinear_align_corners_sizes" | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "ort_nearest_downsample_default_half_pixel_2x4_to_1x2", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestDownSampleTest" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 2], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "ort_nearest_downsample_with_sizes_2x4_to_1x3", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestDownSampleTest_WithSizes" | |
| }, | |
| "attrs": { "mode": "nearest" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 3], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "ort_nearest_ceil_sizes_2x2_to_7x8", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestUpSampleTest_WithSizes_CeilMode" | |
| }, | |
| "attrs": { "mode": "nearest", "nearest_mode": "ceil" }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 7, 8], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "ort_nearest_ceil_sizes_rank5_2x2_to_7x8", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestUpSample5dTest_WithSizes_CeilMode", | |
| "notes": "A rank-5 NCDHW tensor exercises ceil-mode nearest resizing from explicit sizes." | |
| }, | |
| "attrs": { "mode": "nearest", "nearest_mode": "ceil" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 2, 2], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 7, 8], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "ort_nearest_asymmetric_rank5_scale_1p5", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestUpSampleTest_5D_CudaRegression_Optimized3DMapping", | |
| "notes": "Covers rank-5 nearest-neighbor upsampling by 1.5 with asymmetric coordinates." | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "asymmetric", | |
| "nearest_mode": "floor", | |
| "scales": [1, 1, 1.5, 1.5, 1.5] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 2, 2], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": [1.0, 1.0, 2.0, 1.0, 1.0, 2.0, 3.0, 3.0, 4.0, 1.0, 1.0, 2.0, 1.0, 1.0, 2.0, 3.0, 3.0, 4.0, 5.0, 5.0, 6.0, 5.0, 5.0, 6.0, 7.0, 7.0, 8.0] | |
| }, | |
| "tolerance": 0 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_nearest_asymmetric_rank5_downsample_0p5", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestDownSampleTest_5D_CudaRegression_Optimized3DMapping", | |
| "notes": "Covers rank-5 nearest-neighbor downsampling by 0.5 with asymmetric coordinates." | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "asymmetric", | |
| "nearest_mode": "floor", | |
| "scales": [1, 1, 0.5, 0.5, 0.5] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": [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, 28.0, 29.0, 30.0, 31.0, 32.0, 33.0, 34.0, 35.0, 36.0, 37.0, 38.0, 39.0, 40.0, 41.0, 42.0, 43.0, 44.0, 45.0, 46.0, 47.0, 48.0, 49.0, 50.0, 51.0, 52.0, 53.0, 54.0, 55.0, 56.0, 57.0, 58.0, 59.0, 60.0, 61.0, 62.0, 63.0, 64.0] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 2, 2], | |
| "data": { "kind": "values", "values": [1.0, 3.0, 9.0, 11.0, 33.0, 35.0, 41.0, 43.0] }, | |
| "tolerance": 0 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_linear_asymmetric_upsample_batch2_2x2_to_4x8", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearUpSampleTest_4DBilinear_asymmetric_scales" | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [2, 1, 2, 2], | |
| "data": { "kind": "values", "values": [1.0, 3.0, 4.0, 8.0, 6.0, 2.0, 7.0, 11.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [2, 1, 4, 8], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "ort_linear_noop_scales_batch2", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearScalesNoOpTest" | |
| }, | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [2, 1, 2, 2], | |
| "data": { "kind": "values", "values": [1.0, 3.0, 4.0, 8.0, 6.0, 2.0, 7.0, 11.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [2, 1, 2, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "ort_nearest_round_prefer_ceil_half_pixel_26_to_64", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestUpSample_RoundPreferCeil_HalfPixel" | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_ceil" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 26], | |
| "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, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0] | |
| } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 64], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "ort_linear_5d_trilinear_pytorch_half_pixel", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearUpSampleTest_5DTrilinear_pytorch_half_pixel", | |
| "notes": "Valid NCDHW trilinear Resize case from ORT." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 2, 1, 2], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 1.0, 2.0, 1.0, 2.0, 1.0, 2.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 4, 2, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "ort_linear_align_corners_rank2_projection_2x2_to_4x8", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearUpSampleTest_2DBilinear_align_corners", | |
| "notes": "Projects ORT's rank-2 align-corners bilinear upsample into rank-4 NCHW form." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 3.0, 4.0, 8.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 8], "tolerance": 0.00001 } } | |
| }, | |
| { | |
| "name": "ort_nearest_asymmetric_floor_2x_2x2_to_4x4", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpNearestUpSample_Nearest2xOptimization_Scales" | |
| }, | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 4], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "ort_linear_half_pixel_symmetric_downsample_scales", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpHalfPixelSymmetricDownSample_ver19", | |
| "notes": "ONNX scales input represented by `scales` adaptation so half_pixel_symmetric can use fractional output width." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel_symmetric", "scales": [1, 1, 1, 0.6] }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 1, 4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 2], "tolerance": 0.00001 } } | |
| }, | |
| { | |
| "name": "ort_linear_half_pixel_symmetric_upsample_scales", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpHalfPixelSymmetricUpSample_ver19", | |
| "notes": "ONNX scales input represented by `scales` adaptation so half_pixel_symmetric can use fractional output width." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "half_pixel_symmetric", | |
| "scales": [1, 1, 2.3, 2.94] | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 5], "tolerance": 0.00001 } } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_downsample_scales_linear", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_downsample_scales_linear", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 2], "tolerance": 0.0001 } }, | |
| "attrs": { "mode": "linear" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_downsample_scales_linear_align_corners", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_downsample_scales_linear_align_corners", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 2], "tolerance": 0.0001 } }, | |
| "attrs": { "coordinate_transformation_mode": "align_corners", "mode": "linear" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_downsample_scales_nearest", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_downsample_scales_nearest", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 2], "tolerance": 0.0001 } }, | |
| "attrs": { "mode": "nearest" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_downsample_sizes_linear_pytorch_half_pixel", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_downsample_sizes_linear_pytorch_half_pixel", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 3, 1], "tolerance": 0.0001 } }, | |
| "attrs": { "coordinate_transformation_mode": "pytorch_half_pixel", "mode": "linear" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_downsample_sizes_nearest", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_downsample_sizes_nearest", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 3], "tolerance": 0.0001 } }, | |
| "attrs": { "mode": "nearest" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_upsample_scales_linear", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_upsample_scales_linear", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 4], "tolerance": 0.0001 } }, | |
| "attrs": { "mode": "linear" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_upsample_scales_linear_align_corners", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_upsample_scales_linear_align_corners", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 4], "tolerance": 0.0001 } }, | |
| "attrs": { "coordinate_transformation_mode": "align_corners", "mode": "linear" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_upsample_scales_nearest", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_upsample_scales_nearest", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 6], "tolerance": 0.0001 } }, | |
| "attrs": { "mode": "nearest" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_upsample_sizes_nearest", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_upsample_sizes_nearest", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 7, 8], "tolerance": 0.0001 } }, | |
| "attrs": { "mode": "nearest" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_upsample_sizes_nearest_ceil_half_pixel", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_upsample_sizes_nearest_ceil_half_pixel", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 8, 8], "tolerance": 0.0001 } }, | |
| "attrs": { "coordinate_transformation_mode": "half_pixel", "mode": "nearest", "nearest_mode": "ceil" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_upsample_sizes_nearest_floor_align_corners", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_upsample_sizes_nearest_floor_align_corners", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 8, 8], "tolerance": 0.0001 } }, | |
| "attrs": { "coordinate_transformation_mode": "align_corners", "mode": "nearest", "nearest_mode": "floor" } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_upsample_sizes_nearest_round_prefer_ceil_asymmetric", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_upsample_sizes_nearest_round_prefer_ceil_asymmetric", | |
| "notes": "The fixture represents the official scales or sizes input through the declared output shape." | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 8, 8], "tolerance": 0.0001 } }, | |
| "attrs": { | |
| "coordinate_transformation_mode": "asymmetric", | |
| "mode": "nearest", | |
| "nearest_mode": "round_prefer_ceil" | |
| } | |
| }, | |
| { | |
| "name": "onnx_backend_resize_upsample_scales_nearest_axes_2_3_shape", | |
| "provenance": { | |
| "source": "cmake/external/onnx/onnx/backend/test/data/node/test_resize_upsample_scales_nearest_axes_2_3", | |
| "notes": "Official axes/scales inputs map to the full NCHW output shape; test_resize_upsample_scales_nearest_axes_3_2 and ORT ResizeOpNearestUpSampleTest map to this same request." | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 6], "tolerance": 0 } }, | |
| "attrs": { "mode": "nearest" } | |
| }, | |
| { | |
| "name": "ort_cubic_half_pixel_2x2_to_4x4", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpCubicUpSampleTest", | |
| "notes": "Compact cubic half-pixel case using cubic_coeff_a=-0.75, derived from ONNX Runtime's CPU provider." | |
| }, | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "half_pixel", "cubic_coeff_a": -0.75 }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.68359375, 1.015625, 1.5625, 1.89453125, 1.34765625, 1.6796875, 2.2265625, 2.55859375, 2.44140625, 2.7734375, 3.3203125, 3.65234375, 3.10546875, 3.4375, 3.984375, 4.31640625] | |
| }, | |
| "tolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_cubic_downsample_coeff_minus_half", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpCubicDownSampleTest_coeff", | |
| "notes": "Valid cubic downsample with cubic_coeff_a=-0.5." | |
| }, | |
| "attrs": { "mode": "cubic", "cubic_coeff_a": -0.5, "scales": [1, 1, 0.8, 0.8] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": [1.38574, 2.68359, 4.00684, 6.57715, 7.875, 9.19824, 11.8701, 13.168, 14.4912] | |
| }, | |
| "tolerance": 0.0001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_cubic_pytorch_half_pixel_boundary_clamp", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpCubicDownSample_PytorchHalfPixel_GH28292_SpecDifference", | |
| "notes": "Covers ONNX cubic boundary clamping with pytorch_half_pixel coordinates." | |
| }, | |
| "attrs": { | |
| "mode": "cubic", | |
| "coordinate_transformation_mode": "pytorch_half_pixel", | |
| "cubic_coeff_a": -0.5, | |
| "antialias": 0, | |
| "scales": [1, 1, 0.5, 0.5] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 8, 8], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.0, 0.015873016, 0.031746034, 0.04761905, 0.06349207, 0.07936508, 0.0952381, 0.11111111, 0.12698413, 0.14285715, 0.15873016, 0.17460318, 0.1904762, 0.20634921, 0.22222222, 0.23809524, 0.25396827, 0.26984128, 0.2857143, 0.3015873, 0.31746033, 0.33333334, 0.34920636, 0.36507937, 0.3809524, 0.3968254, 0.41269842, 0.42857143, 0.44444445, 0.46031746, 0.47619048, 0.4920635, 0.50793654, 0.52380955, 0.53968257, 0.5555556, 0.5714286, 0.5873016, 0.6031746, 0.61904764, 0.63492066, 0.6507937, 0.6666667, 0.6825397, 0.6984127, 0.71428573, 0.73015875, 0.74603176, 0.7619048, 0.7777778, 0.7936508, 0.8095238, 0.82539684, 0.84126985, 0.85714287, 0.8730159, 0.8888889, 0.9047619, 0.9206349, 0.93650794, 0.95238096, 0.96825397, 0.984127, 1.0] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.0625, 0.0952381, 0.12698413, 0.15972222, 0.32440478, 0.35714287, 0.3888889, 0.42162699, 0.57837301, 0.61111116, 0.64285719, 0.67559528, 0.84027779, 0.87301588, 0.90476191, 0.9375] | |
| }, | |
| "tolerance": 0.0001, | |
| "relTolerance": 0.0001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_cubic_align_corners_floor_nchw", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.NoAntialias_AlignCorners_Cubic_Floor_NCHW", | |
| "notes": "Valid cubic align_corners fixture from ORT." | |
| }, | |
| "attrs": { | |
| "mode": "cubic", | |
| "coordinate_transformation_mode": "align_corners", | |
| "cubic_coeff_a": -0.75, | |
| "antialias": 0, | |
| "exclude_outside": 0, | |
| "extrapolation_value": 0, | |
| "nearest_mode": "floor" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": { "$ref": "#/fixtureArrays/ort_cubic_align_corners_floor_nchw_input_x" } | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 6, 8], | |
| "data": { | |
| "kind": "values", | |
| "values": [1.0, 1.34111, 1.80029, 2.32945, 2.67055, 3.19971, 3.65889, 4.0, 2.264, 2.60511, 3.06429, 3.59345, 3.93455, 4.46371, 4.92289, 5.264, 3.912, 4.25311, 4.71229, 5.24145, 5.58256, 6.11171, 6.5709, 6.912, 6.088, 6.42911, 6.88829, 7.41745, 7.75856, 8.28771, 8.7469, 9.08801, 7.736, 8.07711, 8.53629, 9.06545, 9.40655, 9.93571, 10.3949, 10.736, 9.0, 9.34111, 9.80029, 10.3295, 10.6706, 11.1997, 11.6589, 12.0, 13.0, 13.3411, 13.8003, 14.3295, 14.6706, 15.1997, 15.6589, 16.0, 14.264, 14.6051, 15.0643, 15.5934, 15.9346, 16.4637, 16.9229, 17.264, 15.912, 16.2531, 16.7123, 17.2415, 17.5826, 18.1117, 18.5709, 18.912, 18.088, 18.4291, 18.8883, 19.4175, 19.7586, 20.2877, 20.7469, 21.088, 19.736, 20.0771, 20.5363, 21.0654, 21.4066, 21.9357, 22.3949, 22.736, 21.0, 21.3411, 21.8003, 22.3295, 22.6706, 23.1997, 23.6589, 24.0] | |
| }, | |
| "tolerance": 0.0001, | |
| "relTolerance": 0.0001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_cubic_align_corners_floor_nhwc", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_sample_test_gen.py", | |
| "test": "ResizeOpTest.NoAntialias_AlignCorners_Cubic_Floor_NHWC", | |
| "notes": "Covers rank-4 cubic align_corners with NHWC-style height and width resize axes, using pinned ORT expectations." | |
| }, | |
| "attrs": { | |
| "mode": "cubic", | |
| "coordinate_transformation_mode": "align_corners", | |
| "cubic_coeff_a": -0.75, | |
| "antialias": 0, | |
| "exclude_outside": 0, | |
| "extrapolation_value": 0, | |
| "nearest_mode": "floor" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 4, 2], | |
| "data": { | |
| "kind": "values", | |
| "values": { "$ref": "#/fixtureArrays/ort_cubic_align_corners_floor_nchw_input_x" } | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 6, 8, 2], | |
| "data": { | |
| "kind": "values", | |
| "values": [1.0, 2.0, 1.6822, 2.6822, 2.6006, 3.6006, 3.6589, 4.6589, 4.3411, 5.3411, 5.3994, 6.3994, 6.3178, 7.3178, 7.0, 8.0, 3.528, 4.528, 4.2102, 5.2102, 5.1286, 6.1286, 6.1869, 7.1869, 6.8691, 7.8691, 7.9274, 8.9274, 8.8458, 9.8458, 9.528, 10.528, 6.824, 7.824, 7.5062, 8.5062, 8.4246, 9.4246, 9.4829, 10.4829, 10.1651, 11.1651, 11.2234, 12.2234, 12.1418, 13.1418, 12.824, 13.824, 11.176, 12.176, 11.8582, 12.8582, 12.7766, 13.7766, 13.8349, 14.8349, 14.5171, 15.5171, 15.5754, 16.5754, 16.4938, 17.4938, 17.176, 18.176, 14.472, 15.472, 15.1542, 16.1542, 16.0726, 17.0726, 17.1309, 18.1309, 17.8131, 18.8131, 18.8714, 19.8714, 19.7898, 20.7898, 20.472, 21.472, 17.0, 18.0, 17.6822, 18.6822, 18.6006, 19.6006, 19.6589, 20.6589, 20.3411, 21.3411, 21.3994, 22.3994, 22.3178, 23.3178, 23.0, 24.0] | |
| }, | |
| "tolerance": 0.0001, | |
| "relTolerance": 0.0001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_antialias_bilinear_no_exclude_outside", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.Antialias_Bilinear_No_ExcludeOutside", | |
| "notes": "Uses axes-relative scales, including a negative axis, for the same 4x4 to 3x3 antialiased downsample." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "antialias": 1, | |
| "exclude_outside": 0, | |
| "axes": [2, -1], | |
| "scales": [0.75, 0.75] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": [2.3636363, 3.590909, 4.818182, 7.2727275, 8.5, 9.727273, 12.181818, 13.409091, 14.636364] | |
| }, | |
| "tolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_antialias_bilinear_exclude_outside", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.Antialias_Bilinear_ExcludeOutside", | |
| "notes": "Valid antialiased linear downsample." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "antialias": 1, | |
| "exclude_outside": 1 | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3], | |
| "data": { "kind": "values", "values": [2.5, 3.7, 4.9, 7.3, 8.5, 9.7, 12.1, 13.3, 14.5] }, | |
| "tolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_nearest_uint8_2x2_to_4x4", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.NhwcResizeOpLinearDownSampleTest_4DBilinear_uint8", | |
| "notes": "Compact NCHW nearest uint8 adaptation to preserve integer tensor support." | |
| }, | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { "dtype": "uint8", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [10, 20, 30, 40] } } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "uint8", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": [10, 10, 20, 20, 10, 10, 20, 20, 30, 30, 40, 40, 30, 30, 40, 40] }, | |
| "tolerance": 0 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "f32_antialias_linear_8x_downsample_compact", | |
| "provenance": { | |
| "source": "ONNX Runtime's CPU provider (opset 19)", | |
| "test": "Resize linear antialias 8x downsample, scales [1,1,0.125,0.125]", | |
| "notes": "Pinned values from ONNX Runtime's CPU provider for the exact `fillFloat32(0.017,0.031,0.5)` input verify an 8x antialiased linear downsample." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "antialias": 1, | |
| "scales": [1, 1, 0.125, 0.125] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 4, 32, 32], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.017, "cosStep": 0.031, "scale": 0.5 } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 4, 4, 4], | |
| "tolerance": 0.0001, | |
| "relTolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.14381, 0.134832, 0.122264, 0.107406, 0.010124, 0.021276, 0.032032, 0.041531, -0.058779, -0.062911, -0.066305, -0.068616, 0.049954, 0.043287, 0.034385, 0.023672, 0.033038, 0.038028, 0.042104, 0.045359, -0.060355, -0.056795, -0.052536, -0.047923, 0.018086, 0.006446, -0.005784, -0.017588, 0.145374, 0.151656, 0.15382, 0.151574, -0.103847, -0.109422, -0.113012, -0.11396, -0.011121, -0.019306, -0.02784, -0.036078, 0.072642, 0.069839, 0.065722, 0.0607, 0.041272, 0.058634, 0.073706, 0.08536, -0.05019, -0.07342, -0.095276, -0.113782, 0.074633, 0.069684, 0.062911, 0.054858, 0.004398, 0.011032, 0.017827, 0.024365, -0.069399, -0.067173, -0.06541, -0.064116] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_nearest_int8_2x2_to_4x4", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.NhwcResizeOpLinearDownSampleTest_4DBilinear_int8", | |
| "notes": "Compact NCHW nearest int8 adaptation to preserve signed integer tensor support." | |
| }, | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [-8, -1, 7, 12] } } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "int8", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": [-8, -8, -1, -1, -8, -8, -1, -1, 7, 7, 12, 12, 7, 7, 12, 12] }, | |
| "tolerance": 0 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_nhwc_linear_asymmetric_uint8_upsample", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.NhwcResizeOpLinearUpSampleTest_4DBilinear_asymmetric_uint8" | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [2, 2, 2, 1], | |
| "data": { "kind": "values", "values": [1, 3, 4, 8, 6, 2, 7, 11] } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "uint8", | |
| "shape": [2, 4, 8, 1], | |
| "data": { | |
| "kind": "values", | |
| "values": [1, 1, 2, 2, 3, 3, 3, 3, 2, 3, 4, 4, 5, 5, 5, 5, 4, 5, 6, 7, 8, 8, 8, 8, 4, 5, 6, 7, 8, 8, 8, 8, 6, 5, 4, 3, 2, 2, 2, 2, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 9, 10, 11, 11, 11, 11, 7, 8, 9, 10, 11, 11, 11, 11] | |
| }, | |
| "tolerance": 0 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_nhwc_linear_asymmetric_int8_upsample", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.NhwcResizeOpLinearUpSampleTest_4DBilinear_asymmetric_int8" | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "int8", | |
| "shape": [2, 2, 2, 1], | |
| "data": { "kind": "values", "values": [1, -3, -4, 8, 6, -2, -7, 11] } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "int8", | |
| "shape": [2, 4, 8, 1], | |
| "data": { | |
| "kind": "values", | |
| "values": [1, 0, -1, -2, -3, -3, -3, -3, -1, 0, 0, 1, 2, 2, 2, 2, -4, -1, 2, 5, 8, 8, 8, 8, -4, -1, 2, 5, 8, 8, 8, 8, 6, 4, 2, 0, -2, -2, -2, -2, 0, 0, 2, 3, 4, 4, 4, 4, -7, -2, 2, 6, 11, 11, 11, 11, -7, -2, 2, 6, 11, 11, 11, 11] | |
| }, | |
| "tolerance": 0 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "nearest_asymmetric_floor_3x_integer_scale", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 12, 12], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "nearest_asymmetric_floor_4x_integer_scale", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.41 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 16, 16], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "nearest_asymmetric_floor_mixed_3x2_integer_scale", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.31 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 9, 8], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "nearest_asymmetric_floor_nonsquare_2x_scalar_path", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 5], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.19, "cosStep": 0.37 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 10], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "nearest_half_pixel_round_prefer_floor_3x_integer_scale", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_floor" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 6, 12], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "nearest_half_pixel_round_prefer_ceil_2x_integer_scale", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_ceil" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.29, "cosStep": 0.13 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 6, 8], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "nearest_asymmetric_floor_2x_integer_scale_f16", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { "dtype": "float16", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 1, 4, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": [1.0, 1.0, 2.0, 2.0, 1.0, 1.0, 2.0, 2.0, 3.0, 3.0, 4.0, 4.0, 3.0, 3.0, 4.0, 4.0] | |
| }, | |
| "tolerance": 0 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "nearest_half_pixel_default_2x_larger_grid", | |
| "attrs": { "mode": "nearest" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 64, 64], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.11, "cosStep": 0.43 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 128, 128], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "linear_half_pixel_2x_stencil_multichannel", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 8, 16], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.21, "cosStep": 0.33 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 16, 32] } } | |
| }, | |
| { | |
| "name": "linear_pytorch_half_pixel_2x_stencil", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.27, "cosStep": 0.39 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 8, 8] } } | |
| }, | |
| { | |
| "name": "linear_asymmetric_2x_stencil", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 6], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.15, "cosStep": 0.47 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 8, 12] } } | |
| }, | |
| { | |
| "name": "linear_half_pixel_2x_stencil_explicit_scales", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.25, "cosStep": 0.35 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 8, 8] } } | |
| }, | |
| { | |
| "name": "ort_linear_axes_scales_5d", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.Axes_and_Scale_18" | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "axes": [2, 3, 4], | |
| "exclude_outside": 0, | |
| "antialias": 0, | |
| "scales": [0.75, 0.75, 0.75] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_5d_ramp_64" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3, 3], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_linear_axes_scales_5d_output_y" } }, | |
| "tolerance": 0.00002, | |
| "relTolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_linear_negative_axes_scales_5d", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.Axes_NegativeInRange_18" | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "axes": [-3, -2, -1], | |
| "exclude_outside": 0, | |
| "antialias": 0, | |
| "scales": [0.75, 0.75, 0.75] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_5d_ramp_64" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3, 3], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_linear_axes_scales_5d_output_y" } }, | |
| "tolerance": 0.00002, | |
| "relTolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_linear_axes_sizes_5d", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.Axes_and_Size_18", | |
| "notes": "The axes-specific sizes {3,3,3} are represented through the declared output shape with scale attributes omitted." | |
| }, | |
| "attrs": { "mode": "linear", "axes": [2, 3, 4], "exclude_outside": 0, "antialias": 0 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_5d_ramp_64" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3, 3], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/ort_linear_axes_scales_5d_output_y" } }, | |
| "tolerance": 0.00002, | |
| "relTolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_antialias_trilinear_no_exclude_outside", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.Antialias_Trilinear_No_ExcludeOutside", | |
| "notes": "Rank-5 NCDHW adaptation of ORT's rank-3 trilinear antialias coverage." | |
| }, | |
| "attrs": { "mode": "linear", "antialias": 1, "exclude_outside": 0, "scales": [1, 1, 0.75, 0.75, 0.75] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_5d_ramp_64" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": [5.7272725, 6.9545455, 8.181818, 10.636364, 11.863636, 13.090909, 15.545455, 16.772728, 18.0, 25.363636, 26.59091, 27.818182, 30.272728, 31.5, 32.727272, 35.18182, 36.409092, 37.636364, 45.0, 46.227272, 47.454544, 49.909092, 51.136364, 52.363636, 54.81818, 56.045456, 57.272728] | |
| }, | |
| "tolerance": 0.00001, | |
| "relTolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_antialias_trilinear_exclude_outside", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.Antialias_Trilinear_ExcludeOutside", | |
| "notes": "Rank-5 NCDHW adaptation of ORT's rank-3 trilinear antialias coverage." | |
| }, | |
| "attrs": { "mode": "linear", "antialias": 1, "exclude_outside": 1, "scales": [1, 1, 0.75, 0.75, 0.75] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_5d_ramp_64" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": [6.3, 7.5, 8.7, 11.1, 12.3, 13.5, 15.9, 17.1, 18.3, 25.5, 26.7, 27.9, 30.3, 31.5, 32.7, 35.1, 36.3, 37.5, 44.7, 45.9, 47.1, 49.5, 50.7, 51.9, 54.3, 55.5, 56.7] | |
| }, | |
| "tolerance": 0.00001, | |
| "relTolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "nearest_tf_crop_and_resize_default_roi_singleton", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/cpu/tensor/upsample.cc", | |
| "test": "Resize with omitted roi input", | |
| "notes": "ONNX Runtime defaults an omitted ROI to [0, 1] per axis. A singleton output samples the center of the full source interval, covering the default-ROI nearest compiler path." | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "tf_crop_and_resize", | |
| "nearest_mode": "round_prefer_floor" | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 4], "data": { "kind": "values", "values": [0.0, 10.0, 20.0, 30.0] } } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1], "data": { "kind": "values", "values": [10.0] } } } | |
| }, | |
| { | |
| "name": "linear_tf_crop_and_resize_default_roi", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/cpu/tensor/upsample.cc", | |
| "test": "Resize with omitted roi input", | |
| "notes": "The default full ROI maps the first and last output coordinates to the source endpoints; the middle output interpolates at source coordinate 1.5." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "tf_crop_and_resize" }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 4], "data": { "kind": "values", "values": [0.0, 10.0, 20.0, 30.0] } } | |
| }, | |
| "outputs": { | |
| "y": { "dtype": "float32", "shape": [1, 3], "data": { "kind": "values", "values": [0.0, 15.0, 30.0] } } | |
| } | |
| }, | |
| { | |
| "name": "ort_tf_crop_and_resize_rank2_roi", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearDownSampleTest_tf_crop_and_resize", | |
| "notes": "Pinned ORT expected values for ROI-based tf_crop_and_resize." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "tf_crop_and_resize", "roi": [0.4, 0.6, 0.6, 0.8] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [3, 3], | |
| "data": { "kind": "values", "values": [7.600004, 7.9, 8.2, 8.8, 9.1, 9.4, 10.0, 10.3, 10.6] }, | |
| "tolerance": 0.00002, | |
| "relTolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_tf_crop_and_resize_extrapolation_nchw", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearDownSampleTest_tf_crop_and_resize_with_extrapolation", | |
| "notes": "Pinned ORT values expressed with axes-relative ROI and scales; the negative width axis also verifies axis normalization." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "tf_crop_and_resize", | |
| "extrapolation_value": 10, | |
| "axes": [2, -1], | |
| "roi": [0.4, 0.6, 1.2, 1.7], | |
| "scales": [0.8, 0.8] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3], | |
| "data": { "kind": "values", "values": [7.6, 10.0, 10.0, 12.4, 10.0, 10.0, 10.0, 10.0, 10.0] }, | |
| "tolerance": 0.00002, | |
| "relTolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_nhwc_tf_crop_and_resize_extrapolation_uint8", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.NhwcResizeOpLinearDownSampleTest_tf_crop_and_resize_with_extrapolation_uint8", | |
| "notes": "Pinned ORT NHWC integer crop-and-resize case with extrapolation." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "tf_crop_and_resize", | |
| "extrapolation_value": 10, | |
| "roi": [0, 0.4, 0.6, 0, 1, 1.2, 1.7, 1], | |
| "scales": [1, 0.8, 0.8, 1] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 4, 4, 1], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "uint8", | |
| "shape": [1, 3, 3, 1], | |
| "data": { "kind": "values", "values": [7, 10, 10, 12, 10, 10, 10, 10, 10] }, | |
| "tolerance": 0 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_nhwc_tf_crop_and_resize_no_extrapolation_int8", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.NhwcResizeOpLinearDownSampleTest_tf_crop_and_resize_without_extrapolation_int8", | |
| "notes": "Pinned ORT NHWC signed integer crop-and-resize case where out-of-ROI samples use the integer zero value." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "tf_crop_and_resize", | |
| "roi": [0, 0.4, 0.6, 0, 1, 1.2, 1.7, 1], | |
| "scales": [1, 0.8, 0.8, 1] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "int8", | |
| "shape": [1, 4, 4, 1], | |
| "data": { "kind": "values", "values": [1, -2, 3, -4, -5, 6, -7, 8, 9, -10, 11, -12, -13, 14, -15, 16] } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "int8", | |
| "shape": [1, 3, 3, 1], | |
| "data": { "kind": "values", "values": [-2, 0, 0, 0, 0, 0, 0, 0, 0] }, | |
| "tolerance": 0 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_linear_align_corners_scales_2x4_to_1x2", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpLinearDownSampleTest_4DBilinear_align_corners", | |
| "notes": "Explicit scales exercise align_corners coordinate handling independently of an inferred sizes input." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners", "scales": [1, 1, 0.6, 0.6] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 2], | |
| "data": { "kind": "values", "values": [1.0, 4.0] }, | |
| "tolerance": 0.000001 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_cubic_downsample_asymmetric", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpCubicDownSampleTest_asymmetric" | |
| }, | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "asymmetric", "scales": [1, 1, 0.8, 0.8] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": [1.0, 2.29688, 3.59375, 6.1875, 7.48438, 8.78125, 11.375, 12.6719, 13.9688] | |
| }, | |
| "tolerance": 0.00005 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "empty_input_zero_dim", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_floor" | |
| }, | |
| "inputs": { "x": { "dtype": "float32", "shape": [0, 1, 2, 2], "data": { "kind": "values", "values": [] } } }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [0, 1, 2, 2], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "linear_half_pixel_downsample_f16_vec4_feature_map", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 32, 64, 64], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.29 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 32, 32, 32], "tolerance": 0.02, "relTolerance": 0.01 } } | |
| }, | |
| { | |
| "name": "linear_half_pixel_exact_2x_f16_x8_route", | |
| "provenance": { | |
| "notes": "A non-square multichannel 2x bilinear resize checks half-pixel coordinates across row and plane boundaries." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 7, 12], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 3, 14, 24], "tolerance": 0.02, "relTolerance": 0.01 } } | |
| }, | |
| { | |
| "name": "linear_half_pixel_upsample_f16_scalar_w_odd", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 16, 40, 40], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 16, 80, 82], "tolerance": 0.03, "relTolerance": 0.01 } } | |
| }, | |
| { | |
| "name": "nearest_asymmetric_floor_3x_f16_scalar_w_odd", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "asymmetric", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 8, 10, 10], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.19 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 8, 30, 30], "tolerance": 0, "relTolerance": 0 } } | |
| }, | |
| { | |
| "name": "linear_align_corners_f16_upsample_scalar", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 4, 8, 8], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.11, "cosStep": 0.37 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 4, 15, 15], "tolerance": 0.02, "relTolerance": 0.01 } } | |
| }, | |
| { | |
| "name": "empty_spatial_dim_h_zero_nearest_nchw", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_floor" | |
| }, | |
| "inputs": { "x": { "dtype": "float32", "shape": [1, 2, 0, 4], "data": { "kind": "values", "values": [] } } }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 0, 8], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "empty_spatial_dim_w_zero_linear_nchw", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { "x": { "dtype": "float32", "shape": [1, 2, 3, 0], "data": { "kind": "values", "values": [] } } }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 0], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "nchw_uint8_linear_asymmetric_3x_fractional_round_vs_trunc", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric" }, | |
| "inputs": { | |
| "x": { "dtype": "uint8", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1, 4, 7, 10] } } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 1, 6, 6] } } | |
| }, | |
| { | |
| "name": "linear_align_corners_out1_axis_singleton_source_pixel", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": { "$ref": "#/fixtureArrays/ort_linear_downsample_odd_third_3x6_to_1x2_input_x" } | |
| } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 1, 1], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "linear_half_pixel_channel_quad_odd_width_tail", | |
| "provenance": { | |
| "source": "ONNX Resize-19 linear half-pixel semantics", | |
| "notes": "Locks four-output scalar batching across odd row tails without allowing a batch to cross an NCHW row boundary." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 4, 5], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.19, "cosStep": 0.31, "scale": 1.0 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 7, 9], "tolerance": 0.000001, "relTolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "rank7_nearest_last_axis", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "asymmetric", | |
| "nearest_mode": "floor", | |
| "scales": [1, 1, 1, 1, 1, 1, 2] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 1, 2, 1, 3], | |
| "data": { "kind": "linspace", "start": 0.0, "end": 11.0 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 2, 1, 2, 1, 6], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "ort_cubic_exclude_outside_rank2", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpCubicDownSampleTest_exclude_outside", | |
| "notes": "exclude_outside=1 zeroes cubic taps outside the input range and renormalizes the remaining per-axis weights; clamp-replicating the edge instead changes every border value." | |
| }, | |
| "attrs": { | |
| "mode": "cubic", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "cubic_coeff_a": -0.5, | |
| "exclude_outside": 1, | |
| "scales": [0.8, 0.8] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [3, 3], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [1.36812973, 2.66949376, 4.01334, 6.57362935, 7.875, 9.21884343, 11.94896221, 13.25033, 14.59417723] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_cubic_exclude_outside_nchw", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.ResizeOpCubicDownSampleTest_exclude_outside", | |
| "notes": "exclude_outside=1 zeroes cubic taps outside the input range and renormalizes the remaining per-axis weights; clamp-replicating the edge instead changes every border value." | |
| }, | |
| "attrs": { | |
| "mode": "cubic", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "cubic_coeff_a": -0.5, | |
| "exclude_outside": 1, | |
| "scales": [1, 1, 0.8, 0.8] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/resize_4x4_ramp" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 3], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [1.36812973, 2.66949376, 4.01334, 6.57362935, 7.875, 9.21884343, 11.94896221, 13.25033, 14.59417723] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_cubic_antialias_nchw", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.Antialias_Bicubic_No_ExcludeOutside", | |
| "notes": "antialias=1 with cubic widens the filter support to 2*filter_scale; the plain bicubic kernel must not be selected for this combination." | |
| }, | |
| "attrs": { | |
| "mode": "cubic", | |
| "antialias": 1, | |
| "coordinate_transformation_mode": "half_pixel", | |
| "cubic_coeff_a": -0.75 | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 4, 6], | |
| "data": { | |
| "kind": "values", | |
| "values": [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, 28.0, 29.0, 30.0, 31.0, 32.0, 33.0, 34.0, 35.0, 36.0, 37.0, 38.0, 39.0, 40.0, 41.0, 42.0, 43.0, 44.0, 45.0, 46.0, 47.0, 48.0] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [2.175381, 3.65532, 5.204702, 6.684642, 10.24537, 11.725309, 13.274693, 14.754631, 18.315359, 19.795298, 21.344679, 22.824617, 26.175383, 27.655321, 29.204706, 30.684639, 34.245377, 35.725315, 37.274696, 38.754627, 42.315361, 43.795296, 45.344681, 46.824615] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_cubic_antialias_rank2", | |
| "provenance": { | |
| "source": "onnxruntime/test/providers/cpu/tensor/resize_op_test.cc", | |
| "test": "ResizeOpTest.Antialias_Bicubic_No_ExcludeOutside", | |
| "notes": "A rank-2 tensor exercises generic antialiased bicubic resizing." | |
| }, | |
| "attrs": { | |
| "mode": "cubic", | |
| "antialias": 1, | |
| "coordinate_transformation_mode": "half_pixel", | |
| "cubic_coeff_a": -0.75 | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [4, 6], | |
| "data": { | |
| "kind": "values", | |
| "values": { "$ref": "#/fixtureArrays/ort_cubic_align_corners_floor_nchw_input_x" } | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [3, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [2.175381, 3.65532, 5.204702, 6.684642, 10.24537, 11.725309, 13.274693, 14.754631, 18.315359, 19.795298, 21.344679, 22.824617] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_linear_antialias_fractional_scale06", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/cpu/tensor/upsample_antialias.h", | |
| "test": "explicit-scale coordinate transform", | |
| "notes": "Because floor(7*0.6)=4, the explicit 0.6 scale and inferred 4/7 shape ratio give different centers and filter scales; source coordinates must use the explicit scale." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "antialias": 1, | |
| "coordinate_transformation_mode": "half_pixel", | |
| "scales": [1, 1, 0.6, 0.6] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 7, 7], | |
| "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, 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, 28.0, 29.0, 30.0, 31.0, 32.0, 33.0, 34.0, 35.0, 36.0, 37.0, 38.0, 39.0, 40.0, 41.0, 42.0, 43.0, 44.0, 45.0, 46.0, 47.0, 48.0] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [3.0, 4.625, 6.375, 7.875, 14.375001, 16.0, 17.75, 19.25, 26.625, 28.250002, 30.0, 31.499998, 37.125, 38.749996, 40.499996, 41.999996] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "rank5_antialias_linear_fractional_scales_per_axis", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/cpu/tensor/upsample_antialias.h", | |
| "test": "rank-5 explicit-scale coordinate transform", | |
| "notes": "Rank-5 linear antialias coverage with distinct fractional scales [0.6,0.7,0.8]. Each output extent truncates, so the supplied scales differ from the inferred shape ratios and any dropped or shifted axis changes the result. Pinned values follow ONNX Runtime's separable antialias algorithm in `onnxruntime/core/providers/cpu/tensor/upsample_antialias.h`, including edge-clamped taps and per-axis weight normalization." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "antialias": 1, | |
| "coordinate_transformation_mode": "half_pixel", | |
| "exclude_outside": 0, | |
| "scales": [1, 1, 0.6, 0.7, 0.8] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 7, 5, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": [1.18, -2.64, 3.54, -0.28, -4.1, 2.08, -1.74, 4.44, 0.62, -3.2, 2.98, -0.84, -4.66, 1.52, -2.29, 3.89, 0.07, -3.75, 2.43, -1.39, 4.79, 0.97, -2.85, 3.33, -0.49, -4.31, 1.87, -1.95, 4.23, 0.41, -3.41, 2.77, -1.05, -4.87, 1.31, -2.51, 3.67, -0.15, -3.97, 2.21, -1.61, 4.57, 0.75, -3.07, 3.12, -0.7, -4.52, 1.66, -2.16, 4.02, 0.2, -3.62, 2.56, -1.26, 4.92, 1.1, -2.72, 3.46, -0.36, -4.18, 2.0, -1.82, 4.36, 0.54, -3.28, 2.9, -0.92, -4.74, 1.44, -2.38, 3.8, -0.02, -3.84, 2.35, -1.47, 4.71, 0.89, -2.93, 3.25, -0.57, -4.39, 1.79, -2.03, 4.15, 0.33, -3.49, 2.69, -1.13, -4.95, 1.23, -2.59, 3.59, -0.23, -4.05, 2.13, -1.69, 4.49, 0.67, -3.15, 3.03, -0.79, -4.61, 1.58, -2.24, 3.94] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 3, 2], | |
| "tolerance": 0.0001, | |
| "relTolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.861608, -0.57944, -0.209847, 0.732485, -1.521765, 0.617429, -1.078995, 0.120811, -0.055723, -0.187044, 1.076578, -0.13302, 0.260176, -0.213807, -0.91959, -0.214676, 0.22326, 0.241922, 1.164493, 0.039813, 0.958422, -0.624769, 0.270865, -0.932433] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "rank5_antialias_cubic_fractional_scales_per_axis", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/cpu/tensor/upsample_antialias.h", | |
| "test": "rank-5 explicit-scale coordinate transform, cubic filter", | |
| "notes": "Cubic counterpart to the rank-5 fractional-scale case, covering the cubic route's independent scale plumbing. Depth and width truncate, so scales 0.6 and 0.8 differ from inferred shape ratios; height remains unchanged to bound the tap count. Pinned values follow the Keys-cubic separable algorithm in `onnxruntime/core/providers/cpu/tensor/upsample_antialias.h`, including edge-clamped taps and per-axis normalization." | |
| }, | |
| "attrs": { | |
| "mode": "cubic", | |
| "antialias": 1, | |
| "coordinate_transformation_mode": "half_pixel", | |
| "exclude_outside": 0, | |
| "cubic_coeff_a": -0.75, | |
| "scales": [1, 1, 0.6, 1, 0.8] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 7, 2, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": [1.18, -2.64, 3.54, -0.28, -4.1, 2.08, -1.74, 4.44, 0.62, -3.2, 2.98, -0.84, -4.66, 1.52, -2.29, 3.89, 0.07, -3.75, 2.43, -1.39, 4.79, 0.97, -2.85, 3.33, -0.49, -4.31, 1.87, -1.95, 4.23, 0.41, -3.41, 2.77, -1.05, -4.87, 1.31, -2.51, 3.67, -0.15, -3.97, 2.21, -1.61, 4.57] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 2, 2], | |
| "tolerance": 0.0001, | |
| "relTolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [-0.182603, 1.118934, -1.642603, -0.341066, -1.538309, 1.475514, 1.706941, -0.683816, -0.811055, -0.656666, -0.779036, 1.324795, -0.110369, -0.125005, -1.54873, 0.731214] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "ort_nearest_round_prefer_ceil_tie_scale03", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/webgpu/tensor/resize_impl.cc", | |
| "test": "nearest half-tie epsilon", | |
| "notes": "Output col 4 maps to x_original = 4.5/0.3 - 0.5 = 14.5 exactly in reals, but f32 division can land just below .5; round_prefer_ceil must still pick 15." | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "nearest_mode": "round_prefer_ceil", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "scales": [1, 1, 1, 0.3] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 20], | |
| "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, 15.0, 16.0, 17.0, 18.0, 19.0] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 6], | |
| "tolerance": 0, | |
| "data": { "kind": "values", "values": [1.0, 5.0, 8.0, 11.0, 15.0, 18.0] } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "linear_half_pixel_2x_stencil_odd_width_scalar", | |
| "provenance": { | |
| "notes": "An input width of 3 produces a doubled output width of 6, which is not divisible by four. The case therefore exercises the scalar 2x linear stencil." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 3], | |
| "data": { "kind": "values", "values": [1.0, 2.0, 4.0, 8.0, 16.0, 32.0] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 6], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "rank8_nearest_last_axis", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "asymmetric", | |
| "nearest_mode": "floor", | |
| "scales": [1, 1, 1, 1, 1, 1, 1, 2] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 1, 2, 1, 2, 3], | |
| "data": { "kind": "linspace", "start": 1.0, "end": 24.0 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 2, 1, 2, 1, 2, 6], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "rank2_nearest_half_pixel_sizes", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "Rank-2 sizes-driven half-pixel nearest resize." | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_floor" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "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] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "rank2_nearest_pytorch_half_pixel_sizes", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "The singleton first output axis exercises pytorch_half_pixel's size-one rule." | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "pytorch_half_pixel", | |
| "nearest_mode": "round_prefer_floor" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "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] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "rank2_nearest_half_pixel_symmetric_scales", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "Fractional exact scales make the half_pixel_symmetric adjustment observable." | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel_symmetric", | |
| "nearest_mode": "round_prefer_floor", | |
| "scales": [0.6, 0.5] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "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] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "rank2_linear_asymmetric_scales", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "Rank-2 linear resize with exact fractional scales and asymmetric coordinates." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric", "scales": [0.6, 0.5] }, | |
| "inputs": { | |
| "x": { | |
| "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] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "rank2_linear_pytorch_half_pixel_scales", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "Exact scales combine a singleton first output axis with a non-singleton second axis." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel", "scales": [0.6, 0.5] }, | |
| "inputs": { | |
| "x": { | |
| "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] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "rank2_linear_align_corners_scales", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "Exact scales combine align_corners' singleton and non-singleton output rules." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners", "scales": [0.6, 0.5] }, | |
| "inputs": { | |
| "x": { | |
| "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] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "rank2_linear_half_pixel_symmetric_scales", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "Fractional exact scales make the half_pixel_symmetric offset observable on both axes." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel_symmetric", "scales": [0.6, 0.5] }, | |
| "inputs": { | |
| "x": { | |
| "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] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "rank2_linear_align_corners_sizes", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "Sizes-driven align_corners resize combines singleton and non-singleton output axes." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "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] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "rank2_linear_pytorch_half_pixel_sizes", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "Sizes-driven pytorch_half_pixel resize combines singleton and non-singleton output axes." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "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] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 } } | |
| }, | |
| { | |
| "name": "rank5_linear_align_corners_ncdhw", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification (coordinate_transformation_mode=align_corners)", | |
| "test": "rank-5 NCDHW trilinear align_corners", | |
| "notes": "Rank-5 align_corners uses the no-explicit-scale coordinate formula. Its three spatial axes have distinct (in-1)/(out-1) ratios: D 4->3 gives 1.5, H 2->3 gives 0.5, and W 3->4 gives 2/3, so swapping or dropping an axis changes the output." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 2, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.41, "cosStep": 0.73, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { "dtype": "float32", "shape": [1, 1, 3, 3, 4], "tolerance": 0.00001, "relTolerance": 0.000001 } | |
| } | |
| }, | |
| { | |
| "name": "rank5_linear_half_pixel_symmetric_explicit_scales_ncdhw", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification (coordinate_transformation_mode=half_pixel_symmetric)", | |
| "test": "rank-5 NCDHW trilinear half_pixel_symmetric with per-axis scales", | |
| "notes": "Rank-5 half_pixel_symmetric resize with explicit scales. Each spatial product is non-integral (3*1.4, 4*0.6, and 3*0.8), producing three distinct symmetry offsets and making a dropped or axis-shifted scale observable. This is valid ONNX opset-19 behavior: output dimensions are floor(input_dim*scale), with scales supplied by the compile-time adaptation." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "half_pixel_symmetric", | |
| "scales": [1, 1, 1.4, 0.6, 0.8] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 3, 4, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.67, "cosStep": 1.13, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { "dtype": "float32", "shape": [1, 1, 4, 2, 2], "tolerance": 0.00001, "relTolerance": 0.000001 } | |
| } | |
| }, | |
| { | |
| "name": "rank5_linear_half_pixel_f16_ncdhw", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification (T = tensor(float16))", | |
| "test": "rank-5 NCDHW trilinear half_pixel, float16", | |
| "notes": "Rank-5 NCDHW float16 uses mixed resizing: D 2->3, H 3->2, and W 2->4, so all three axes have distinct scales and directions. The tolerance covers float16 output rounding after float32 accumulation." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 1, 2, 3, 2], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.83, "cosStep": 1.31, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 1, 3, 2, 4], "tolerance": 0.002, "relTolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "antialias_linear_asymmetric_downsample", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/cpu/tensor/upsample_antialias.h", | |
| "test": "antialiased linear downsample, asymmetric coordinates", | |
| "notes": "Covers valid ONNX linear antialiasing with asymmetric coordinates, where center=output*ratio and no half-pixel shift is applied. Different H/W ratios expose axis mix-ups, while the first output exercises edge-clamped taps. Pinned values follow the separable triangle filter in `onnxruntime/core/providers/cpu/tensor/upsample_antialias.h`; window starts remain clear of floating-point floor boundaries." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "asymmetric", | |
| "antialias": 1, | |
| "exclude_outside": 0 | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 5], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.91, "cosStep": 0.31, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 3], | |
| "tolerance": 0.00001, | |
| "relTolerance": 0.00001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.369885653, 0.24363111, -0.345615536, -0.281011194, -0.20116964, 0.148209721] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "antialias_linear_half_pixel_f16", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/cpu/tensor/upsample_antialias.h", | |
| "test": "antialiased linear downsample, float16", | |
| "notes": "Covers the float16 storage route for linear antialiasing with distinct H/W ratios. Inputs are exact multiples of 0.125, isolating tolerance to the final f32-to-f16 rounding. Pinned values follow the separable triangle filter in `onnxruntime/core/providers/cpu/tensor/upsample_antialias.h`; window starts remain clear of floating-point floor boundaries." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "antialias": 1, | |
| "exclude_outside": 0 | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 1, 5, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": [1.25, -2.5, 0.75, 3.0, -1.875, 2.125, -0.375, 1.5, -2.75, 0.25, 2.875, -1.125, 0.625, -3.0, 1.75] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 1, 3, 2], | |
| "tolerance": 0.001, | |
| "relTolerance": 0.001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.515625, 0.0885416642, 0.694444418, -0.518518507, 0.0572916679, 0.182291672] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "nearest_align_corners_scalar_x4_odd_width", | |
| "provenance": { | |
| "notes": "nearest + align_corners on the scalar-x4 path checks the no-explicit-scale coordinate formula at width 7, which is at least four but not divisible by four." | |
| }, | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "align_corners", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.97, "cosStep": 1.31, "scale": 0.5, "offset": 0.5 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 8, 7], "tolerance": 0.0002 } } | |
| }, | |
| { | |
| "name": "rank5_nearest_align_corners_ncdhw", | |
| "provenance": { | |
| "notes": "Rank-5 NCDHW nearest + align_corners checks the no-explicit-scale coordinate formula. D 2->4, H 4->8, and W 4->8 keep the three axes independently addressable." | |
| }, | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "align_corners", "nearest_mode": "floor" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 2, 4, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 1.13, "cosStep": 0.89, "scale": 0.5, "offset": 0.5 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 8, 8], "tolerance": 0.0002 } } | |
| }, | |
| { | |
| "name": "cubic_half_pixel_f16", | |
| "provenance": { | |
| "notes": "Float16 NCHW cubic resize doubles each spatial axis with half-pixel coordinates and coefficient -0.75. Expected values were independently derived from the bicubic formula using the same float16 input values." | |
| }, | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "half_pixel", "cubic_coeff_a": -0.75 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.91, "cosStep": 1.19, "scale": 0.4, "offset": 0.5 } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 1, 8, 8], | |
| "tolerance": 0.02, | |
| "relTolerance": 0.01, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.595215, 0.71875, 0.922852, 1.049805, 1.040039, 0.835449, 0.544922, 0.368408, 0.371094, 0.451904, 0.583496, 0.731445, 0.815918, 0.803711, 0.696289, 0.631836, -0.012573, -0.000332, 0.013382, 0.201416, 0.448975, 0.760254, 0.957031, 1.081055, 0.224976, 0.139893, -0.00399, 0.002836, 0.14563, 0.4375, 0.717773, 0.890625, 0.966309, 0.804199, 0.541992, 0.237793, 0.061188, -0.000281, 0.098633, 0.155884, 1.098633, 1.001953, 0.849121, 0.560059, 0.30249, 0.073669, 0.009857, -0.032959, 0.559082, 0.635254, 0.762207, 0.806152, 0.74707, 0.621094, 0.494873, 0.41748, 0.23999, 0.420654, 0.716309, 0.958496, 1.015625, 0.947754, 0.781738, 0.682129] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "rank3_linear_half_pixel_f16_generic", | |
| "provenance": { | |
| "notes": "Rank 3 makes this float16 half-pixel linear resize use the generic rank-N path, including its float16 storage declarations." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [2, 4, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 1.07, "cosStep": 0.83, "scale": 0.4, "offset": 0.5 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [2, 4, 8], "tolerance": 0.02, "relTolerance": 0.01 } } | |
| }, | |
| { | |
| "name": "nearest_tf_crop_and_resize_roi_axis_to_one", | |
| "provenance": { | |
| "notes": "Nearest-neighbor tf_crop_and_resize with an explicit ROI reduces output height to one, taking the ROI midpoint rule for that axis; width remains three and uses ordinary ROI coordinates. nearest_mode is floor, no coordinate is a rounding tie, and every selected sample lies within the input bounds." | |
| }, | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "tf_crop_and_resize", | |
| "nearest_mode": "floor", | |
| "roi": [0, 0, 0.1, 0.1, 1, 1, 0.9, 0.9] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.79, "cosStep": 1.21, "scale": 0.5, "offset": 0.5 } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 3], | |
| "tolerance": 0.0002, | |
| "data": { "kind": "values", "values": [-0.055154, -0.323958, 0.122715] } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "linear_asymmetric_exact_2x_f16_x8_route", | |
| "provenance": { | |
| "notes": "Exercises the float16 x8 linear stencil with asymmetric coordinates. Width 8 keeps the vectorized stencil aligned while distinct sampling positions verify the asymmetric coordinate transform." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 1, 4, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.87, "cosStep": 1.09, "scale": 0.4, "offset": 0.5 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 1, 8, 8], "tolerance": 0.02, "relTolerance": 0.01 } } | |
| }, | |
| { | |
| "name": "antialias_linear_align_corners_axis_to_one", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/cpu/tensor/upsample_antialias.h", | |
| "test": "antialiased linear resize, align_corners coordinates", | |
| "notes": "Antialiased linear resize with align_corners maps an 8-element axis to one element, taking the defined output-size-one coordinate instead of dividing by output_size - 1; the 6->3 axis uses the ordinary formula. Expected values were independently derived from the separable antialias filter." | |
| }, | |
| "attrs": { "mode": "linear", "antialias": 1, "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [8, 6], | |
| "data": { "kind": "fillFloat32", "sinStep": 1.03, "cosStep": 0.77, "scale": 0.5, "offset": 0.5 } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 3], | |
| "tolerance": 0.0001, | |
| "relTolerance": 0.0001, | |
| "data": { "kind": "values", "values": [0.785487, 0.321457, 0.443004] } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "antialias_linear_pytorch_half_pixel_axis_to_one", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/cpu/tensor/upsample_antialias.h", | |
| "test": "antialiased linear resize, pytorch_half_pixel coordinates", | |
| "notes": "Antialiased linear resize with pytorch_half_pixel maps one axis from 8 to 1, where the coordinate is zero rather than a half-pixel offset; the other axis maps 6 to 3 and uses the ordinary formula. Expected values were independently derived from the separable antialias filter." | |
| }, | |
| "attrs": { "mode": "linear", "antialias": 1, "coordinate_transformation_mode": "pytorch_half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [8, 6], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.93, "cosStep": 1.27, "scale": 0.5, "offset": 0.5 } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 3], | |
| "tolerance": 0.0001, | |
| "relTolerance": 0.0001, | |
| "data": { "kind": "values", "values": [0.693016, 0.605582, 0.168189] } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "antialias_linear_upsampled_axis_unit_filter_scale", | |
| "provenance": { | |
| "source": "onnxruntime/core/providers/cpu/tensor/upsample_antialias.h", | |
| "test": "antialiased linear resize, half_pixel coordinates", | |
| "notes": "Mixed-direction antialiasing upsamples axis 0 from 4 to 8, clamping its filter scale to 1, while downsampling axis 1 from 6 to 3 with filter scale 2. Pinned values follow the separable antialias filter." | |
| }, | |
| "attrs": { "mode": "linear", "antialias": 1, "coordinate_transformation_mode": "half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [4, 6], | |
| "data": { "kind": "fillFloat32", "sinStep": 1.17, "cosStep": 0.71, "scale": 0.5, "offset": 0.5 } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [8, 3], | |
| "tolerance": 0.0001, | |
| "relTolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.595145, 0.064221, 0.678453, 0.683032, 0.080117, 0.624435, 0.858805, 0.111908, 0.516397, 0.826848, 0.241738, 0.586882, 0.587161, 0.469606, 0.83589, 0.337075, 0.525641, 0.96268, 0.076591, 0.409842, 0.967253, -0.053651, 0.351942, 0.96954] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "axes_scales_differ_from_output_ratio_nchw", | |
| "provenance": { | |
| "notes": "The opset-18 `axes` form names the two spatial dimensions and supplies scale 0.7 for each. Because 5*0.7 truncates to 3, the explicit scale differs from the inferred 3/5 shape ratio and must determine the source coordinates." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "axes": [2, 3], | |
| "scales": [0.7, 0.7] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 5, 5], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.29, "cosStep": 0.13, "scale": 3.0 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 3, 3], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "cubic_half_pixel_symmetric_fractional_scales", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "Cubic interpolation with the symmetric half-pixel transform. The scales make out_size / (in_size * scale) differ from one on both spatial axes, so the symmetric offset is nonzero and a plain half-pixel transform gives different coordinates." | |
| }, | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "half_pixel_symmetric", "scales": [1, 1, 0.6, 0.7] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 7, 5], | |
| "data": { | |
| "kind": "values", | |
| "values": [1.0, 3.0, 2.0, 5.0, 4.0, 6.0, 2.0, 8.0, 3.0, 7.0, 4.0, 9.0, 1.0, 6.0, 2.0, 8.0, 5.0, 3.0, 7.0, 9.0, 2.0, 6.0, 4.0, 1.0, 5.0, 9.0, 3.0, 7.0, 2.0, 8.0, 5.0, 1.0, 6.0, 4.0, 3.0] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 4, 3], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [2.2176567, 5.65625, 4.4600036, 7.9989539, 0.662037, 5.4977763, 4.737444, 3.630787, 3.1282799, 3.6801203, 6.78125, 3.8350036] | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "antialias_linear_rank1_downsample", | |
| "provenance": { | |
| "source": "ONNX Resize-19 specification", | |
| "notes": "A batchless waveform downsampled with antialiasing. The single resized axis is the whole tensor, so the filter support is widened by the downsample ratio and every output sample averages a source window." | |
| }, | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "antialias": 1 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [12], | |
| "data": { "kind": "values", "values": [1.0, 4.0, 2.0, 7.0, 3.0, 9.0, 5.0, 8.0, 6.0, 2.0, 7.0, 4.0] } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [5], | |
| "tolerance": 0.00001, | |
| "data": { "kind": "values", "values": [2.4035088, 4.8983051, 6.5178571, 5.5932203, 4.754386] } | |
| } | |
| } | |
| }, | |
| { | |
| "name": "scales_linear_float32_half_pixel_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 6], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_linear_float32_half_pixel_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 6], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 12], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_linear_float32_pytorch_half_pixel_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 6], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_linear_float32_pytorch_half_pixel_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 6], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 12], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_linear_float32_asymmetric_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 6], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_linear_float32_asymmetric_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 6], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 12], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_linear_float16_half_pixel_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 6, 6], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "scales_linear_float16_half_pixel_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 6], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 6, 12], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "scales_linear_float16_half_pixel_w8", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 8], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 6, 16], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "scales_linear_float16_pytorch_half_pixel_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 6, 6], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "scales_linear_float16_pytorch_half_pixel_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 6], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 6, 12], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "scales_linear_float16_pytorch_half_pixel_w8", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 8], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 6, 16], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "scales_linear_float16_asymmetric_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 6, 6], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "scales_linear_float16_asymmetric_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 6], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 6, 12], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "scales_linear_float16_asymmetric_w8", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 8], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 6, 16], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "scales_linear_int8_half_pixel_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 2, 3, 3], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 2, 6, 6], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_int8_half_pixel_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 2, 3, 6], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 2, 6, 12], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_int8_pytorch_half_pixel_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 2, 3, 3], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 2, 6, 6], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_int8_pytorch_half_pixel_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 2, 3, 6], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 2, 6, 12], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_int8_asymmetric_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 2, 3, 3], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 2, 6, 6], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_int8_asymmetric_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 2, 3, 6], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 2, 6, 12], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_uint8_half_pixel_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 2, 3, 3], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 2, 6, 6], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_uint8_half_pixel_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 2, 3, 6], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 2, 6, 12], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_uint8_pytorch_half_pixel_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 2, 3, 3], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 2, 6, 6], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_uint8_pytorch_half_pixel_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 2, 3, 6], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 2, 6, 12], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_uint8_asymmetric_w3", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 2, 3, 3], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 2, 6, 6], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_linear_uint8_asymmetric_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "asymmetric", "scales": [1, 1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 2, 3, 6], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 2, 6, 12], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "scales_nearest_3x_round_prefer_floor_w3", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_floor", | |
| "scales": [1, 1, 3, 3] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 2, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 9], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_nearest_3x_round_prefer_floor_w4", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_floor", | |
| "scales": [1, 1, 3, 3] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 2, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 12], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_nearest_3x_round_prefer_ceil_w3", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_ceil", | |
| "scales": [1, 1, 3, 3] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 2, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 9], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_nearest_3x_round_prefer_ceil_w4", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "half_pixel", | |
| "nearest_mode": "round_prefer_ceil", | |
| "scales": [1, 1, 3, 3] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 2, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 12], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_nearest_reversed_negative_axes", | |
| "attrs": { | |
| "mode": "nearest", | |
| "coordinate_transformation_mode": "asymmetric", | |
| "nearest_mode": "floor", | |
| "axes": [-1, -2], | |
| "scales": [2, 3] | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 5], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 9, 10], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "scales_linear_exact_boundary_2", | |
| "attrs": { "mode": "linear", "axes": [-1, -2], "scales": [2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 8], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_linear_exact_boundary_2.01", | |
| "attrs": { "mode": "linear", "axes": [-1, -2], "scales": [2.01, 2.01] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 8], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_channel_nonidentity", | |
| "attrs": { "mode": "linear", "scales": [1, 1.01, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 8], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "scales_fullrank_reordered_identity", | |
| "attrs": { "mode": "linear", "axes": [-1, 1, -2, 0], "scales": [2, 1, 2, 1] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 8], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float32_c1", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 1], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 6, 10, 1], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float32_c3", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 6, 10, 3], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float32_c4", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 6, 10, 4], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float32_c7", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 7], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 6, 10, 7], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float32_c8", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 8], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 6, 10, 8], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float32_c16", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 16], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 6, 10, 16], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float16_c1", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 1], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 6, 10, 1], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float16_c3", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 3], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 6, 10, 3], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float16_c4", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 6, 10, 4], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float16_c7", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 7], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 6, 10, 7], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float16_c8", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 8], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 6, 10, 8], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "suffix_linear_float16_c16", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 16], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 6, 10, 16], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "suffix_linear_int8_c1", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 3, 5, 1], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 6, 10, 1], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_int8_c3", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 3, 5, 3], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 6, 10, 3], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_int8_c4", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 3, 5, 4], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 6, 10, 4], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_int8_c7", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 3, 5, 7], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 6, 10, 7], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_int8_c8", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { "dtype": "int8", "shape": [1, 3, 5, 8], "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 6, 10, 8], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_int8_c16", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "int8", | |
| "shape": [1, 3, 5, 16], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "int8", "shape": [1, 6, 10, 16], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_uint8_c1", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 3, 5, 1], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 6, 10, 1], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_uint8_c3", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 3, 5, 3], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 6, 10, 3], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_uint8_c4", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 6, 10, 4], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_uint8_c7", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 3, 5, 7], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 6, 10, 7], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_uint8_c8", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 3, 5, 8], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 6, 10, 8], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_uint8_c16", | |
| "attrs": { "mode": "linear" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "uint8", | |
| "shape": [1, 3, 5, 16], | |
| "data": { "kind": "cycle", "values": [1, 7, 13, 3, 31, 23, 5] } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "uint8", "shape": [1, 6, 10, 16], "tolerance": 0 } } | |
| }, | |
| { | |
| "name": "suffix_linear_1axes_float32", | |
| "attrs": { "mode": "linear", "exclude_outside": 0 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 5, 4], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_linear_1axes_float16", | |
| "attrs": { "mode": "linear", "exclude_outside": 0 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 5, 4], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "suffix_linear_3axes_float32", | |
| "attrs": { "mode": "linear", "exclude_outside": 0 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 3, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 5, 5, 5, 4], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_linear_3axes_float16", | |
| "attrs": { "mode": "linear", "exclude_outside": 0 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 3, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 5, 5, 5, 4], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "suffix_linear_exclude0", | |
| "attrs": { "mode": "linear", "exclude_outside": 0 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 8], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 5, 7, 8], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_cubic_1axes_float32", | |
| "attrs": { "mode": "cubic", "exclude_outside": 1 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.6067157983779907, -0.94154953956604, -0.9552274942398071, -0.6321859359741211, -0.100829117000103, 0.4243633449077606, 0.7401348352432251, 0.7450881004333496] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.6824644207954407, 0.7768414616584778, 0.5130004286766052, -0.03955153003334999, 0.11072936654090881, -0.030184630304574966, -0.21086882054805756, -0.37676340341567993, -0.6067157983779907, -0.94154953956604, -0.9552274942398071, -0.6321859359741211, -0.35301265120506287, -0.15396517515182495, 0.06099933758378029, 0.228301540017128, -0.041890863329172134, 0.5834988355636597, 0.9376527667045593, 0.9055472016334534] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator; generated from the exact dtype-rounded, channel-distinct input. No GPU output is used as the reference." | |
| } | |
| }, | |
| { | |
| "name": "suffix_cubic_1axes_float16", | |
| "attrs": { "mode": "cubic", "exclude_outside": 1 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.5478515625, 0.59765625, 0.35986328125, -0.10137939453125, -0.60693359375, -0.94140625, -0.955078125, -0.63232421875, -0.100830078125, 0.42431640625, 0.740234375, 0.7451171875] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 5, 4], | |
| "tolerance": 0.002, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.6826171875, 0.77685546875, 0.51318359375, -0.039520263671875, 0.110595703125, -0.0300445556640625, -0.2108154296875, -0.376708984375, -0.60693359375, -0.94140625, -0.955078125, -0.63232421875, -0.35302734375, -0.1539306640625, 0.061126708984375, 0.228271484375, -0.0418701171875, 0.58349609375, 0.93798828125, 0.90576171875] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator; generated from the exact dtype-rounded, channel-distinct input. No GPU output is used as the reference." | |
| } | |
| }, | |
| { | |
| "name": "suffix_cubic_3axes_float32", | |
| "attrs": { "mode": "cubic", "exclude_outside": 1 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 3, 3, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.6067157983779907, -0.94154953956604, -0.9552274942398071, -0.6321859359741211, -0.100829117000103, 0.4243633449077606, 0.7401348352432251, 0.7450881004333496, 0.48099780082702637, 0.10598835349082947, -0.18646365404129028, -0.2628708779811859, -0.11306791752576828, 0.14889498054981232, 0.3461253046989441, 0.3319292664527893, 0.06842120736837387, -0.34844693541526794, -0.7305420637130737, -0.8864681720733643, -0.7150757908821106, -0.25821852684020996, 0.31331953406333923, 0.7748502492904663, 0.9486299157142639, 0.7829550504684448, 0.3723013997077942, -0.09049784392118454, -0.4065987765789032, -0.4635164737701416, -0.2834371030330658, -0.005032815970480442, 0.19131122529506683, 0.1775568276643753, -0.05513086915016174, -0.38978859782218933, -0.640857994556427, -0.6474397778511047, -0.3569943308830261, 0.1418544352054596, 0.6543782353401184, 0.9668905138969421, 0.9449092745780945, 0.5956639647483826, 0.0651111900806427, -0.4291747212409973, -0.6973186135292053, -0.6615476012229919, -0.38599538803100586, -0.038672156631946564, 0.19496312737464905, 0.20427490770816803, 0.006576883140951395, -0.264511376619339, -0.42935794591903687, -0.35643258690834045, -0.033661019057035446, 0.41863349080085754, 0.8005234599113464, 0.9262955784797668, 0.7143750190734863, 0.22987115383148193, -0.3412853181362152, -0.7749568223953247, -0.9093265533447266, -0.7159268856048584, -0.3079201877117157, 0.11754821985960007, 0.37462031841278076, 0.37557852268218994, 0.16775305569171906, -0.09652946144342422, -0.24135459959506989, -0.15947312116622925, 0.13027237355709076, 0.48894062638282776, 0.724475622177124, 0.6873340606689453, 0.34811994433403015, -0.18109869956970215, -0.6931602358818054, -0.9786273837089539, -0.9212916493415833, -0.5510678291320801, -0.02920547127723694, 0.4269854426383972, 0.6439146399497986, 0.5685639381408691, 0.28632715344429016, -0.02761402726173401, -0.19877606630325317, -0.14111578464508057, 0.10088767856359482, 0.3762235641479492, 0.5054440498352051, 0.3743533194065094, -0.0030330789741128683, -0.4838518500328064, -0.8594995141029358, -0.9528764486312866, -0.7033077478408813, -0.19820117950439453, 0.3642086684703827, 0.7637732625007629] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 5, 5, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.7432787418365479, 0.9132190942764282, 0.6635444164276123, 0.042314864695072174, 0.12642253935337067, -0.033214271068573, -0.24471837282180786, -0.446912944316864, -0.6634915471076965, -1.1093947887420654, -1.1867103576660156, -0.8469285368919373, -0.456932932138443, -0.21705828607082367, 0.05439233407378197, 0.2766657769680023, -0.16791024804115295, 0.6260585784912109, 1.1307491064071655, 1.1725295782089233, 0.7876991033554077, 0.6435420513153076, 0.2821037471294403, -0.16660848259925842, 0.22682416439056396, 0.06851925700902939, -0.10961366444826126, -0.26050058007240295, -0.48882871866226196, -0.6182807087898254, -0.5446015000343323, -0.32472923398017883, -0.2901049852371216, -0.21575714647769928, -0.13106928765773773, -0.055936507880687714, -0.019733425229787827, 0.19950826466083527, 0.24859051406383514, 0.15291628241539001, 0.6006025671958923, 0.1680566668510437, -0.1841135174036026, -0.2820415198802948, 0.3053925037384033, 0.20355510711669922, 0.11826957762241364, 0.06496023386716843, -0.08127054572105408, 0.17074745893478394, 0.36373642086982727, 0.34680160880088806, -0.01900172047317028, -0.17283308506011963, -0.33826330304145813, -0.4581291675567627, 0.09390562027692795, -0.4198538064956665, -0.8972083330154419, -1.0990961790084839, -0.44827356934547424, -0.29322975873947144, 0.03785201907157898, 0.4325440526008606, 0.059865016490221024, 0.18966707587242126, 0.30559396743774414, 0.3701954483985901, 0.639599621295929, 0.6849501132965088, 0.5135636329650879, 0.1839308887720108, 0.16870597004890442, 0.0015852834330871701, -0.14775273203849792, -0.2462252378463745, -0.2782662808895111, -0.5870095491409302, -0.6702660322189331, -0.5302920937538147, -1.1872845888137817, -0.5499987602233887, 0.28202834725379944, 0.9781785607337952, -0.13436415791511536, 0.15601608157157898, 0.4038272202014923, 0.538221001625061, 1.0990897417068481, 0.926224410533905, 0.4661213755607605, -0.052412137389183044, 0.25972017645835876, 0.12242601066827774, 0.028333138674497604, -0.02056124247610569, -0.5717331171035767, -0.6024657487869263, -0.304485559463501, 0.10537240654230118, 0.5431990623474121, 0.6653679013252258, 0.39966973662376404, -0.16926805675029755, -0.029742106795310974, -0.1334308683872223, -0.2680082321166992, -0.379580020904541, -0.6927260756492615, -0.977826714515686, -0.8987318277359009, -0.4590931832790375, -0.20126274228096008, 0.04617256298661232, 0.2753198742866516, 0.41572484374046326, 0.275287389755249, 0.9459046721458435, 1.2483367919921875, 1.0729814767837524, 0.5787198543548584, 0.3657740354537964, -0.0067281099036335945, -0.3993290364742279, 0.04935897886753082, -0.08973284065723419, -0.21992726624011993, -0.3021027743816376, -0.5744829773902893, -0.5848383903503418, -0.405703604221344, -0.11920420080423355, -0.1682385504245758, -0.05853994935750961, 0.03539836406707764, 0.09572435915470123, 0.2388370931148529, 0.41449669003486633, 0.39208516478538513, 0.22206860780715942, 0.45645731687545776, -0.05720566585659981, -0.42243021726608276, -0.4880915582180023, 0.1518409103155136, 0.014013544656336308, -0.07675495743751526, -0.11033373326063156, -0.23182670772075653, 0.052953287959098816, 0.2640175223350525, 0.26355499029159546, -0.10266454517841339, -0.1923764944076538, -0.2835155725479126, -0.32848602533340454, 0.05892513319849968, -0.37958255410194397, -0.745386004447937, -0.8288409113883972, -0.26636919379234314, -0.12359093874692917, 0.15742379426956177, 0.4613192081451416, 0.13039319217205048, 0.20191428065299988, 0.2529818117618561, 0.25598084926605225, 0.5390699505805969, 0.49159684777259827, 0.2615587115287781, -0.07269496470689774, -0.01503952406346798, -0.1562410295009613, -0.2526892423629761, -0.282505601644516, -0.49353206157684326, -0.6830220222473145, -0.6324237585067749, -0.37978532910346985, -0.7768123149871826, -0.09900995343923569, 0.6560715436935425, 1.175046443939209, 0.09683164209127426, 0.32211580872535706, 0.4706657826900482, 0.4921348989009857, 1.0466201305389404, 0.7035425305366516, 0.14351794123649597, -0.3864467442035675, 0.03803092613816261, -0.10643447935581207, -0.17466694116592407, -0.17506243288516998, -0.8686578273773193, -0.7683965563774109, -0.3519245982170105, 0.1328982263803482, 0.3081381916999817, 0.3608585298061371, 0.07106426358222961, -0.41553041338920593, -0.19194257259368896, -0.20907706022262573, -0.2339211255311966, -0.2227601408958435, -0.6705507040023804, -0.7183641791343689, -0.4213000535964966, 0.13458214700222015, 0.18249621987342834, 0.40716099739074707, 0.5418750047683716, 0.5382997989654541, 0.8930037617683411, 1.3234094381332397, 1.2828415632247925, 0.7732293009757996, 0.244020476937294, -0.047859907150268555, -0.4062945544719696, -0.6831417679786682, -0.19057175517082214, -0.28273364901542664, -0.3283226490020752, -0.3028366267681122, -0.623114287853241, -0.4517116844654083, -0.128863126039505, 0.22734525799751282, 0.04782251641154289, 0.18547014892101288, 0.26719391345977783, 0.2830093204975128, 0.6163873076438904, 0.6834646463394165, 0.5238897800445557, 0.23193728923797607, 0.1176672950387001, -0.4746701717376709, -0.801273763179779, -0.762420117855072, -0.11836764961481094, -0.2777528762817383, -0.3442893326282501, -0.3219175636768341, -0.38599538803100586, -0.038672156631946564, 0.19496312737464905, 0.20427490770816803, -0.160208061337471, -0.16005127131938934, -0.1527506709098816, -0.10382091999053955, 0.05231345817446709, -0.29082274436950684, -0.5020943880081177, -0.4217577278614044, -0.048386093229055405, 0.07147782295942307, 0.2752772271633148, 0.443547785282135, 0.17974050343036652, 0.16775967180728912, 0.13197658956050873, 0.05861019343137741, 0.3456082344055176, 0.17539143562316895, -0.11763429641723633, -0.4279927611351013, -0.26587870717048645, -0.3470330834388733, -0.3498179316520691, -0.27227434515953064, -0.7444339394569397, -0.7326176166534424, -0.47727566957473755, -0.07328692823648453, -0.1485947072505951, 0.5472615957260132, 1.1356650590896606, 1.3443350791931152, 0.38647738099098206, 0.4945840835571289, 0.485056608915329, 0.3418121933937073, 0.8425735235214233, 0.261157751083374, -0.4037608504295349, -0.8890420794487, -0.3074985146522522, -0.4245978593826294, -0.4218845069408417, -0.32904163002967834, -1.2325705289840698, -0.8884813189506531, -0.2809578776359558, 0.29647547006607056, 0.4647754430770874, 0.4984232187271118, 0.19883355498313904, -0.24008555710315704, 0.02044747956097126, 0.04776854068040848, 0.04473710432648659, 0.05388808622956276, -0.4081227779388428, -0.3768264949321747, -0.0572161041200161, 0.4159482717514038, 0.33574551343917847, 0.42034298181533813, 0.39858973026275635, 0.2565348744392395, 0.9572643637657166, 1.0803766250610352, 0.7515439391136169, 0.07644447684288025, 0.02965991199016571, -0.20039591193199158, -0.43546226620674133, -0.545045018196106, -0.18487665057182312, -0.18885023891925812, -0.15209245681762695, -0.0662379339337349, -0.33568474650382996, -0.08020228147506714, 0.24409005045890808, 0.51183021068573, 0.261321485042572, 0.3137311339378357, 0.29038816690444946, 0.20287983119487762, 0.7266120314598083, 0.5846256613731384, 0.25568318367004395, -0.12468871474266052, -0.4875977635383606, -0.945973813533783, -1.0336804389953613, -0.7378020286560059, -0.37878063321113586, -0.4221583604812622, -0.35440513491630554, -0.20859649777412415, -0.17188170552253723, 0.251732736825943, 0.47687774896621704, 0.43270179629325867, 0.07797660678625107, 0.0895530954003334, 0.08598917722702026, 0.10133404284715652, 0.22584746778011322, -0.1466912478208542, -0.34579381346702576, -0.253697007894516, -0.17267516255378723, -0.07925083488225937, 0.08578608930110931, 0.2024310827255249, -0.01749955303966999, -0.047557685524225235, -0.07770582288503647, -0.11976667493581772, 0.10494633764028549, -0.0506257526576519, -0.2726518511772156, -0.45511487126350403, -0.27022796869277954, -0.24624191224575043, -0.15682096779346466, -0.019868921488523483, -0.567431628704071, -0.3895914554595947, -0.03779011592268944, 0.35846927762031555, 0.14873230457305908, 0.6876492500305176, 1.0130125284194946, 0.9274564385414124, 0.2818869948387146, 0.2684645652770996, 0.16092745959758759, -0.029722679406404495, 0.28013375401496887, -0.33062857389450073, -0.8643561005592346, -1.0943996906280518, -0.4945235550403595, -0.4543231725692749, -0.2999415695667267, -0.09139400720596313, -1.06400465965271, -0.4413299560546875, 0.2931447923183441, 0.8311271071434021, 0.620782732963562, 0.6524550318717957, 0.34984251856803894, -0.06830058246850967, 0.20481762290000916, 0.24981540441513062, 0.24378328025341034, 0.23015516996383667, -0.2189471572637558, -0.1706451028585434, 0.12771956622600555, 0.5198678374290466, 0.38186269998550415, 0.3673880398273468, 0.24693730473518372, 0.028014397248625755, 0.8973234295845032, 0.8361010551452637, 0.3547690212726593, -0.3840402364730835, -0.06992103159427643, -0.2408035546541214, -0.38756999373435974, -0.3942137658596039, -0.13904696702957153, -0.08630005270242691, -0.0036571077071130276, 0.10791538655757904, -0.1158309280872345, 0.16995029151439667, 0.4703625738620758, 0.6609333157539368, 0.38085874915122986, 0.3657224774360657, 0.2672194540500641, 0.1114380955696106, 0.7421607971191406, 0.46524614095687866, 0.035533495247364044, -0.3887113630771637, -0.8739916682243347, -1.2201805114746094, -1.13887357711792, -0.6720839738845825, -0.5234272480010986, -0.477736234664917, -0.315414160490036, -0.08852414041757584, 0.012362286448478699, 0.4812368154525757, 0.6962196826934814, 0.6110053658485413, 0.2631559669971466, 0.267535001039505, 0.23889535665512085, 0.21324077248573303, 0.3546348214149475, -0.056082431226968765, -0.27305373549461365, -0.20073352754116058, -0.3019254505634308, -0.2239714413881302, -0.07404458522796631, 0.028166258707642555, -0.17114035785198212, -0.20000290870666504, -0.2109331488609314, -0.2167142927646637, -0.03849233314394951, -0.1619902104139328, -0.3208620846271515, -0.4134009778499603, -0.2298930138349533, -0.13899420201778412, 0.0019914975855499506, 0.1640077382326126, -0.3936958611011505, -0.1286771297454834, 0.25853922963142395, 0.6228460669517517, 0.258396714925766, 0.6787464618682861, 0.8395626544952393, 0.591448187828064, 0.15468843281269073, 0.07221393287181854, -0.07997754216194153, -0.27690955996513367, -0.09814589470624924, -0.6891291737556458, -1.108156681060791, -1.1582196950912476, -0.5721187591552734, -0.42096880078315735, -0.16734319925308228, 0.11012706905603409, -0.8768607974052429, -0.0915946289896965, 0.7030993103981018, 1.1959912776947021] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator; generated from the exact dtype-rounded, channel-distinct input. No GPU output is used as the reference." | |
| } | |
| }, | |
| { | |
| "name": "suffix_cubic_3axes_float16", | |
| "attrs": { "mode": "cubic", "exclude_outside": 1 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 3, 3, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.5478515625, 0.59765625, 0.35986328125, -0.10137939453125, -0.60693359375, -0.94140625, -0.955078125, -0.63232421875, -0.100830078125, 0.42431640625, 0.740234375, 0.7451171875, 0.48095703125, 0.10601806640625, -0.1865234375, -0.262939453125, -0.11309814453125, 0.14892578125, 0.34619140625, 0.33203125, 0.06842041015625, -0.348388671875, -0.73046875, -0.88623046875, -0.71484375, -0.25830078125, 0.313232421875, 0.77490234375, 0.94873046875, 0.78271484375, 0.372314453125, -0.09051513671875, -0.406494140625, -0.463623046875, -0.283447265625, -0.005031585693359375, 0.1912841796875, 0.1776123046875, -0.055145263671875, -0.389892578125, -0.640625, -0.6474609375, -0.35693359375, 0.141845703125, 0.654296875, 0.966796875, 0.94482421875, 0.595703125, 0.06512451171875, -0.42919921875, -0.697265625, -0.66162109375, -0.385986328125, -0.038665771484375, 0.1949462890625, 0.2042236328125, 0.0065765380859375, -0.264404296875, -0.429443359375, -0.3564453125, -0.033660888671875, 0.418701171875, 0.80029296875, 0.92626953125, 0.71435546875, 0.2298583984375, -0.34130859375, -0.77490234375, -0.9091796875, -0.7158203125, -0.307861328125, 0.1175537109375, 0.37451171875, 0.37548828125, 0.167724609375, -0.0965576171875, -0.2413330078125, -0.159423828125, 0.1302490234375, 0.489013671875, 0.724609375, 0.6875, 0.34814453125, -0.18115234375, -0.693359375, -0.978515625, -0.92138671875, -0.55126953125, -0.029205322265625, 0.427001953125, 0.64404296875, 0.568359375, 0.286376953125, -0.027618408203125, -0.19873046875, -0.14111328125, 0.10089111328125, 0.376220703125, 0.50537109375, 0.374267578125, -0.003032684326171875, -0.48388671875, -0.859375, -0.95263671875, -0.703125, -0.1982421875, 0.3642578125, 0.763671875] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 5, 5, 5, 4], | |
| "tolerance": 0.002, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.7431640625, 0.91357421875, 0.66357421875, 0.042388916015625, 0.126220703125, -0.033050537109375, -0.24462890625, -0.447021484375, -0.66357421875, -1.109375, -1.1865234375, -0.84716796875, -0.45703125, -0.217041015625, 0.054534912109375, 0.276611328125, -0.1678466796875, 0.6259765625, 1.130859375, 1.1728515625, 0.78759765625, 0.6435546875, 0.2822265625, -0.1666259765625, 0.2266845703125, 0.06866455078125, -0.10955810546875, -0.260498046875, -0.489013671875, -0.6181640625, -0.54443359375, -0.32470703125, -0.290283203125, -0.2156982421875, -0.1309814453125, -0.055877685546875, -0.01971435546875, 0.199462890625, 0.2486572265625, 0.153076171875, 0.6005859375, 0.1680908203125, -0.1842041015625, -0.2822265625, 0.305419921875, 0.20361328125, 0.11822509765625, 0.06494140625, -0.081298828125, 0.1707763671875, 0.36376953125, 0.346923828125, -0.019012451171875, -0.1727294921875, -0.338134765625, -0.4580078125, 0.09393310546875, -0.419677734375, -0.89697265625, -1.0986328125, -0.447998046875, -0.293212890625, 0.037750244140625, 0.4326171875, 0.05999755859375, 0.1895751953125, 0.3056640625, 0.3701171875, 0.6396484375, 0.6845703125, 0.513671875, 0.1839599609375, 0.1688232421875, 0.0014791488647460938, -0.147705078125, -0.24609375, -0.2783203125, -0.5869140625, -0.67041015625, -0.5302734375, -1.1865234375, -0.55029296875, 0.281982421875, 0.97802734375, -0.1341552734375, 0.1558837890625, 0.40380859375, 0.5380859375, 1.099609375, 0.92578125, 0.466064453125, -0.052459716796875, 0.259765625, 0.1221923828125, 0.0283203125, -0.020599365234375, -0.57177734375, -0.6025390625, -0.304443359375, 0.1053466796875, 0.54296875, 0.66552734375, 0.399658203125, -0.1693115234375, -0.0298004150390625, -0.13330078125, -0.267822265625, -0.379638671875, -0.69287109375, -0.9775390625, -0.8984375, -0.459228515625, -0.2012939453125, 0.046142578125, 0.275390625, 0.415771484375, 0.275146484375, 0.94580078125, 1.248046875, 1.0732421875, 0.57861328125, 0.365966796875, -0.006702423095703125, -0.3994140625, 0.04931640625, -0.08966064453125, -0.2198486328125, -0.30224609375, -0.57470703125, -0.5849609375, -0.405517578125, -0.1192626953125, -0.1683349609375, -0.05853271484375, 0.03546142578125, 0.09576416015625, 0.23876953125, 0.41455078125, 0.39208984375, 0.22216796875, 0.45654296875, -0.057220458984375, -0.42236328125, -0.48828125, 0.15185546875, 0.01401519775390625, -0.07672119140625, -0.1103515625, -0.2318115234375, 0.052978515625, 0.26416015625, 0.263671875, -0.1026611328125, -0.1922607421875, -0.283447265625, -0.328369140625, 0.058929443359375, -0.37939453125, -0.74560546875, -0.82861328125, -0.266357421875, -0.12359619140625, 0.1573486328125, 0.46142578125, 0.1304931640625, 0.201904296875, 0.2529296875, 0.256103515625, 0.5390625, 0.491455078125, 0.261474609375, -0.07269287109375, -0.014984130859375, -0.15625, -0.252685546875, -0.282470703125, -0.493408203125, -0.68310546875, -0.63232421875, -0.379638671875, -0.77685546875, -0.0989990234375, 0.65576171875, 1.1748046875, 0.09698486328125, 0.322021484375, 0.470458984375, 0.4921875, 1.046875, 0.703125, 0.1435546875, -0.386474609375, 0.03814697265625, -0.10650634765625, -0.1746826171875, -0.175048828125, -0.86865234375, -0.7685546875, -0.351806640625, 0.1329345703125, 0.30810546875, 0.36083984375, 0.071044921875, -0.415771484375, -0.19189453125, -0.208984375, -0.23388671875, -0.2227783203125, -0.67041015625, -0.71826171875, -0.421142578125, 0.134521484375, 0.1824951171875, 0.406982421875, 0.5419921875, 0.53857421875, 0.89306640625, 1.3232421875, 1.283203125, 0.7734375, 0.2440185546875, -0.047821044921875, -0.40625, -0.68310546875, -0.1905517578125, -0.28271484375, -0.328369140625, -0.302978515625, -0.623046875, -0.45166015625, -0.1287841796875, 0.227294921875, 0.0478515625, 0.1854248046875, 0.26708984375, 0.282958984375, 0.6162109375, 0.68359375, 0.52392578125, 0.23193359375, 0.11767578125, -0.474609375, -0.80126953125, -0.7626953125, -0.11834716796875, -0.27783203125, -0.34423828125, -0.322021484375, -0.385986328125, -0.038665771484375, 0.1949462890625, 0.2042236328125, -0.16015625, -0.1600341796875, -0.15283203125, -0.10382080078125, 0.05230712890625, -0.290771484375, -0.501953125, -0.421875, -0.048370361328125, 0.071533203125, 0.275146484375, 0.443603515625, 0.1796875, 0.167724609375, 0.1318359375, 0.05859375, 0.345703125, 0.1754150390625, -0.11767578125, -0.427978515625, -0.265869140625, -0.346923828125, -0.349853515625, -0.272216796875, -0.744140625, -0.732421875, -0.477294921875, -0.07330322265625, -0.1485595703125, 0.54736328125, 1.1357421875, 1.3447265625, 0.386474609375, 0.49462890625, 0.48486328125, 0.341796875, 0.8427734375, 0.26123046875, -0.40380859375, -0.88916015625, -0.307373046875, -0.424560546875, -0.421875, -0.3291015625, -1.232421875, -0.88818359375, -0.28076171875, 0.29638671875, 0.464599609375, 0.498291015625, 0.1988525390625, -0.2401123046875, 0.0204620361328125, 0.0477294921875, 0.044708251953125, 0.05389404296875, -0.407958984375, -0.376708984375, -0.057220458984375, 0.416015625, 0.3359375, 0.42041015625, 0.398681640625, 0.256591796875, 0.95751953125, 1.080078125, 0.75146484375, 0.076416015625, 0.029541015625, -0.200439453125, -0.435546875, -0.544921875, -0.1849365234375, -0.1888427734375, -0.152099609375, -0.06634521484375, -0.335693359375, -0.0802001953125, 0.244140625, 0.51171875, 0.261474609375, 0.313720703125, 0.290283203125, 0.202880859375, 0.7265625, 0.58447265625, 0.255615234375, -0.12469482421875, -0.48779296875, -0.94580078125, -1.0341796875, -0.73779296875, -0.37890625, -0.422119140625, -0.3544921875, -0.208740234375, -0.171875, 0.251708984375, 0.47705078125, 0.4326171875, 0.0780029296875, 0.089599609375, 0.08599853515625, 0.10125732421875, 0.225830078125, -0.1466064453125, -0.345703125, -0.253662109375, -0.1727294921875, -0.0792236328125, 0.085693359375, 0.2022705078125, -0.017547607421875, -0.047515869140625, -0.0777587890625, -0.11981201171875, 0.10491943359375, -0.050628662109375, -0.2724609375, -0.455078125, -0.270263671875, -0.2462158203125, -0.15673828125, -0.019866943359375, -0.5673828125, -0.3896484375, -0.037750244140625, 0.3583984375, 0.148681640625, 0.6875, 1.0126953125, 0.92724609375, 0.281982421875, 0.2685546875, 0.160888671875, -0.0296630859375, 0.280029296875, -0.33056640625, -0.8642578125, -1.09375, -0.494384765625, -0.454345703125, -0.2998046875, -0.09136962890625, -1.0634765625, -0.44140625, 0.293212890625, 0.8310546875, 0.62060546875, 0.65234375, 0.349853515625, -0.06829833984375, 0.2047119140625, 0.249755859375, 0.2437744140625, 0.230224609375, -0.218994140625, -0.1705322265625, 0.127685546875, 0.52001953125, 0.382080078125, 0.36767578125, 0.2469482421875, 0.02801513671875, 0.8974609375, 0.83642578125, 0.354736328125, -0.384033203125, -0.07012939453125, -0.2408447265625, -0.3876953125, -0.394287109375, -0.13916015625, -0.0863037109375, -0.003688812255859375, 0.10784912109375, -0.1158447265625, 0.1700439453125, 0.470458984375, 0.66064453125, 0.380859375, 0.36572265625, 0.267333984375, 0.11138916015625, 0.7421875, 0.46533203125, 0.03558349609375, -0.388671875, -0.8740234375, -1.2197265625, -1.138671875, -0.67236328125, -0.5234375, -0.4775390625, -0.3154296875, -0.0887451171875, 0.012359619140625, 0.481201171875, 0.6962890625, 0.61083984375, 0.26318359375, 0.267578125, 0.239013671875, 0.213134765625, 0.354736328125, -0.05609130859375, -0.27294921875, -0.20068359375, -0.302001953125, -0.223876953125, -0.07415771484375, 0.027984619140625, -0.171142578125, -0.199951171875, -0.2109375, -0.216796875, -0.038482666015625, -0.1619873046875, -0.32080078125, -0.413330078125, -0.2298583984375, -0.1390380859375, 0.0020961761474609375, 0.1640625, -0.3935546875, -0.1287841796875, 0.258544921875, 0.62255859375, 0.258544921875, 0.6787109375, 0.83935546875, 0.59130859375, 0.1546630859375, 0.07220458984375, -0.0799560546875, -0.27685546875, -0.09814453125, -0.68896484375, -1.1083984375, -1.158203125, -0.57177734375, -0.421142578125, -0.167236328125, 0.11016845703125, -0.87646484375, -0.0916748046875, 0.703125, 1.1962890625] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator; generated from the exact dtype-rounded, channel-distinct input. No GPU output is used as the reference." | |
| } | |
| }, | |
| { | |
| "name": "suffix_cubic_exclude0", | |
| "attrs": { "mode": "cubic", "exclude_outside": 0 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 8], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_cubic_exclude0_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 7, 8], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.7233729362487793, 0.7336375713348389, 0.39322036504745483, -0.20384369790554047, -0.829484224319458, -1.222733974456787, -1.2096322774887085, -0.7848795056343079, 0.21102911233901978, 0.6281259655952454, 0.7374323010444641, 0.5088569521903992, 0.07282055914402008, -0.34577110409736633, -0.5383478999137878, -0.41441479325294495, -0.17213872075080872, 0.42102065682411194, 0.8084926605224609, 0.8397957682609558, 0.5313867330551147, 0.05396386235952377, -0.3532790541648865, -0.4995208978652954, -0.12455382198095322, 0.18858198821544647, 0.4205716848373413, 0.3980120122432709, 0.07822109758853912, -0.4220866560935974, -0.8775243759155273, -1.0604934692382812, -0.7011576890945435, -0.16258986294269562, 0.4447183609008789, 0.8644341826438904, 0.9267793297767639, 0.6256147623062134, 0.11780473589897156, -0.354292094707489, -0.7730526924133301, -0.45722341537475586, 0.07639999687671661, 0.5926097631454468, 0.8616838455200195, 0.7674391269683838, 0.3612992465496063, -0.1634398251771927, -0.45241478085517883, -0.5628825426101685, -0.3820827007293701, -0.06865958869457245, 0.16246242821216583, 0.1534765064716339, -0.11311724781990051, -0.502774178981781, -0.010197075083851814, 0.01734209433197975, 0.026588590815663338, 0.008801295422017574, -0.029565848410129547, -0.06966123729944229, -0.08939266204833984, -0.0745115876197815, -0.01748599484562874, 0.035379327833652496, 0.07410138845443726, 0.08140985667705536, 0.05455540865659714, 0.0065208193846046925, -0.040254030376672745, -0.06460048258304596, -0.04383600503206253, 0.008596916683018208, 0.06203051283955574, 0.09287519007921219, 0.0873483344912529, 0.04796639829874039, -0.007648120168596506, -0.0550713874399662, -0.07343611121177673, -0.057639602571725845, -0.02206793986260891, 0.012228282168507576, 0.026608092710375786, 0.014159214682877064, -0.016966985538601875, -0.04781544953584671, -0.06492447108030319, -0.04134200140833855, 0.006813435349613428, 0.05869223549962044, 0.09059163182973862, 0.08720521628856659, 0.049003493040800095, -0.007818218320608139, -0.05425909161567688, -0.058053772896528244, -0.030759453773498535, 0.015849987044930458, 0.0599978044629097, 0.08031628280878067, 0.06617790460586548, 0.02295287698507309, -0.05185975134372711, -0.09478938579559326, -0.10068709403276443, -0.0713568851351738, -0.023610327392816544, 0.019254028797149658, 0.03874391317367554, 0.02977639064192772, -0.6964299082756042, -0.6646209955215454, -0.33020496368408203, 0.20509599149227142, 0.7362735271453857, 1.0460455417633057, 1.0039429664611816, 0.6264730095863342, -0.22512882947921753, -0.5380902886390686, -0.5825660824775696, -0.3562830090522766, 0.01379984337836504, 0.3354911804199219, 0.4462519586086273, 0.29280924797058105, 0.09589695930480957, -0.3834860026836395, -0.6676766872406006, -0.6505761742591858, -0.3684815764427185, 0.021665938198566437, 0.3212222754955292, 0.3873565196990967, 0.006576883140951395, -0.264511376619339, -0.42935794591903687, -0.35643258690834045, -0.033661019057035446, 0.41863349080085754, 0.8005234599113464, 0.9262955784797668, 0.5622090101242065, 0.09070003032684326, -0.4084576368331909, -0.7253587245941162, -0.7359043955802917, -0.4574129283428192, -0.03688422963023186, 0.32190603017807007, 0.6460253000259399, 0.3429313004016876, -0.11833447217941284, -0.5340627431869507, -0.7208017706871033, -0.6013928651809692, -0.24029406905174255, 0.18858495354652405, 0.34787577390670776, 0.3870481848716736, 0.20782312750816345, -0.04312555864453316, -0.1887737214565277, -0.11567063629627228, 0.16476567089557648, 0.5181756019592285, 0.11620108783245087, 0.08346137404441833, 0.023155702278017998, -0.04050545021891594, -0.08286666870117188, -0.0898253545165062, -0.0636904165148735, -0.0212148018181324, 0.05141275003552437, 0.04607603698968887, 0.014219902455806732, -0.027248946949839592, -0.05636674910783768, -0.057015784084796906, -0.027021097019314766, 0.02051893062889576, 0.029044121503829956, 0.04942892864346504, 0.03925453498959541, 0.006006988231092691, -0.03106100484728813, -0.050712455064058304, -0.04048875719308853, -0.0031752472277730703, 0.07290951907634735, 0.0978531464934349, 0.0869060829281807, 0.041246335953474045, -0.02226663939654827, -0.07845775038003922, -0.10517388582229614, -0.0932387113571167, -0.020542491227388382, 0.027494171634316444, 0.0551624596118927, 0.05148334801197052, 0.021331362426280975, -0.01738606207072735, -0.042883895337581635, -0.04048928990960121, -0.043774574995040894, 0.006054755300283432, 0.04876311868429184, 0.06524650007486343, 0.04947409778833389, 0.011112305335700512, -0.02945386804640293, -0.051249563694000244, -0.00025772160734049976, 0.03636763244867325, 0.06901324540376663, 0.07732468843460083, 0.05135336518287659, -0.0027448527980595827, -0.06472404301166534, -0.1091468408703804, 0.925905704498291, 0.8395830988883972, 0.3877197206020355, -0.28284981846809387, -0.9148902297019958, -1.2550437450408936, -1.168448567390442, -0.6994799971580505, 0.3214282691478729, 0.6452656984329224, 0.6414818167686462, 0.3347487151622772, -0.10491436719894409, -0.4475782811641693, -0.5171442031860352, -0.2780246138572693, -0.05536003038287163, 0.48644739389419556, 0.7719978094100952, 0.7006034255027771, 0.34165480732917786, -0.10415312647819519, -0.40590089559555054, -0.41636568307876587, 0.1099415123462677, 0.43773412704467773, 0.5951850414276123, 0.44450876116752625, -0.00009279672667616978, -0.5704904198646545, -1.0188617706298828, -1.1332769393920898, -0.6300426721572876, -0.05229097232222557, 0.5221899151802063, 0.8528831005096436, 0.8158008456230164, 0.4580240845680237, -0.029430028051137924, -0.40664222836494446, -0.7562529444694519, -0.35449981689453125, 0.20382212102413177, 0.6717597246170044, 0.8448212742805481, 0.6565508842468262, 0.2080647200345993, -0.2823373079299927, -0.3697308301925659, -0.352724552154541, -0.11016520112752914, 0.16957873106002808, 0.2825796902179718, 0.11822684109210968, -0.27890801429748535, -0.725376307964325] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator; generated from the exact dtype-rounded, channel-distinct input. No GPU output is used as the reference." | |
| } | |
| }, | |
| { | |
| "name": "suffix_cubic_exclude1", | |
| "attrs": { "mode": "cubic", "exclude_outside": 1 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 8], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_cubic_exclude0_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 7, 8], | |
| "tolerance": 0.0001, | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_cubic_exclude1_output_y" } } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator; generated from the exact dtype-rounded, channel-distinct input. No GPU output is used as the reference." | |
| } | |
| }, | |
| { | |
| "name": "suffix_reversed_axes_identity", | |
| "attrs": { "mode": "linear", "axes": [-1, -3, -2], "scales": [1, 2, 2] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 6, 10, 4], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "suffix_same_extent_nonidentity_scale", | |
| "attrs": { "mode": "linear", "scales": [1, 2, 2, 1.01] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 6, 10, 4], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "suffix_crop_preserves_last_axis", | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "tf_crop_and_resize", | |
| "axes": [-1, -3, -2], | |
| "roi": [0, -0.2, 0.1, 1, 1.1, 0.9], | |
| "extrapolation_value": -0.25 | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_crop_preserves_last_axis_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 6, 10, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [-0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, 0.046351704746484756, -0.053411711007356644, -0.18382853269577026, -0.3026971220970154, -0.34835684299468994, -0.531123161315918, -0.5507460236549377, -0.3978938162326813, -0.5480718016624451, -0.7121115922927856, -0.6364467144012451, -0.34021279215812683, -0.3188007175922394, -0.24030926823616028, -0.10347014665603638, 0.05379939451813698, -0.0895296111702919, 0.23149307072162628, 0.42950639128685, 0.4478115737438202, 0.08721799403429031, 0.39099499583244324, 0.5370446443557739, 0.48895153403282166, 0.21144205331802368, 0.2381962239742279, 0.21914410591125488, 0.17721889913082123, 0.33566612005233765, 0.08539744466543198, -0.09875642508268356, -0.134513720870018, 0.26423484086990356, 0.06568225473165512, -0.07683777064085007, -0.11526843905448914, 0.10386911034584045, 0.10645972192287445, 0.0995444506406784, 0.05442165210843086, -0.12579743564128876, -0.20642399787902832, -0.2601556181907654, -0.2549774646759033, -0.45188260078430176, -0.3828943073749542, -0.19094181060791016, 0.055123113095760345, -0.5375227928161621, -0.37554216384887695, -0.07134860754013062, 0.26187238097190857, -0.09418383985757828, 0.03621947392821312, 0.1590793877840042, 0.24124865233898163, 0.34915512800216675, 0.4479811191558838, 0.38950735330581665, 0.2206249237060547, 0.45386677980422974, 0.4916653633117676, 0.37081071734428406, 0.1555277407169342, 0.21995078027248383, 0.16727186739444733, 0.10298919677734375, 0.0459570586681366, -0.01396520808339119, -0.1571216583251953, -0.16483232378959656, -0.06361362338066101, -0.04580215364694595, -0.1544266939163208, -0.16594165563583374, -0.10570500046014786, 0.0142151964828372, -0.0030548463109880686, -0.04581793025135994, -0.11712391674518585, -0.22542333602905273, -0.26265189051628113, -0.23671504855155945, -0.13468970358371735, -0.3857431411743164, -0.143866166472435, 0.1491154432296753, 0.38730737566947937, -0.3511597514152527, 0.010156235657632351, 0.39068374037742615, 0.6430642008781433, 0.11221083253622055, 0.24169939756393433, 0.3148750960826874, 0.3130922317504883, 0.575581431388855, 0.47324255108833313, 0.2390664517879486, -0.016879772767424583, 0.5920546650886536, 0.41398218274116516, 0.1286190152168274, -0.14447523653507233, 0.16163015365600586, 0.06391802430152893, -0.016467247158288956, -0.06969399005174637, -0.26879438757896423, -0.2861461341381073, -0.1615535169839859, 0.0050872634164988995, -0.26517754793167114, -0.27274054288864136, -0.18443207442760468, -0.0724765807390213, -0.06426876783370972, -0.09412110596895218, -0.15176156163215637, -0.21928833425045013, -0.161871999502182, -0.10111495107412338, 0.011202518828213215, 0.14887621998786926, 0.06214286386966705, 0.2994602620601654, 0.4447421133518219, 0.4476183354854584, 0.23078463971614838, 0.5063947439193726, 0.6208183169364929, 0.527246356010437, 0.2776056230068207, 0.287319540977478, 0.23047491908073425, 0.12482315301895142, 0.3244265913963318, 0.0682443380355835, -0.1598685085773468, -0.2776000499725342, 0.21620595455169678, -0.06499624252319336, -0.2844776213169098, -0.36928144097328186, -0.04705645516514778, -0.11240208894014359, -0.14335215091705322, -0.15022078156471252, -0.31031885743141174, -0.159807950258255, -0.0022266656160354614, 0.0688399076461792, -0.28056445717811584, -0.1620156466960907, -0.04404227435588837, 0.013998039066791534, -0.11762036383152008, -0.143678680062294, -0.16901308298110962, -0.1653452217578888, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25, -0.25] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator; generated from the exact dtype-rounded, channel-distinct input. No GPU output is used as the reference." | |
| } | |
| }, | |
| { | |
| "name": "suffix_crop_nonidentity_last_axis", | |
| "provenance": { | |
| "notes": "A same-extent channel ROI must sample at 0.75, 1.25, 1.75, 2.25, not preserve channels 0, 1, 2, 3. The exact dyadic reference is verified with the ONNX ReferenceEvaluator; ONNX Runtime's CPU provider ignores this channel ROI when selecting its NHWC linear path. Spatial 2-to-3 interpolation uses only dyadic weights, making the zero-tolerance reference exact through the complete accumulation." | |
| }, | |
| "attrs": { | |
| "mode": "linear", | |
| "coordinate_transformation_mode": "tf_crop_and_resize", | |
| "axes": [-1, -3, -2], | |
| "roi": [0.25, 0, 0, 0.75, 1, 1] | |
| }, | |
| "inputs": { | |
| "x": { "dtype": "float32", "shape": [1, 2, 2, 4], "data": { "kind": "cycle", "values": [0.0, 1.0, 2.0, 3.0] } } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 3, 4], | |
| "data": { "kind": "cycle", "values": [0.75, 1.25, 1.75, 2.25] }, | |
| "tolerance": 0, | |
| "relTolerance": 0 | |
| } | |
| } | |
| }, | |
| { | |
| "name": "suffix_singleton_resized", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "pytorch_half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 4], "tolerance": 0.0001 } } | |
| }, | |
| { | |
| "name": "vec2_linear_w5", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 7, 5], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "vec2_linear_w6", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 7, 6], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "vec2_linear_w7", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 7, 7], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "vec2_linear_w8", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 7, 8], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "vec2_linear_w10", | |
| "attrs": { "mode": "linear", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 7, 10], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "vec2_nearest_w5", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 7, 5], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "vec2_nearest_w6", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 7, 6], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "vec2_nearest_w7", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 7, 7], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "vec2_nearest_w8", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 7, 8], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "vec2_nearest_w10", | |
| "attrs": { "mode": "nearest", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 2, 3, 4], | |
| "data": { "kind": "fillFloat32", "sinStep": 0.71, "cosStep": 0.39, "scale": 0.6 } | |
| } | |
| }, | |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 7, 10], "tolerance": 0.002 } } | |
| }, | |
| { | |
| "name": "cubic_suffix_half_pixel_float32", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "half_pixel", "cubic_coeff_a": -0.5 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_crop_preserves_last_axis_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 7, 4], | |
| "tolerance": 0.0001, | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float32_output_y" } } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_pytorch_half_pixel_float32", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "pytorch_half_pixel", "cubic_coeff_a": -0.5 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_crop_preserves_last_axis_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 7, 4], | |
| "tolerance": 0.0001, | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float32_output_y" } } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_align_corners_float32", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "align_corners", "cubic_coeff_a": -0.5 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_crop_preserves_last_axis_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 7, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.3020682632923126, -0.5867043733596802, -0.6911739110946655, -0.5769338607788086, -0.563902735710144, -0.6390489339828491, -0.5159884691238403, -0.22609102725982666, -0.100829117000103, 0.4243633449077606, 0.7401348352432251, 0.7450881004333496, 0.37134605646133423, 0.24773278832435608, 0.11142420768737793, 0.04273451492190361, 0.34807661175727844, 0.09511809796094894, -0.09729644656181335, -0.16129742562770844, -0.11306791752576828, 0.14889498054981232, 0.3461253046989441, 0.3319292664527893, 0.3525111973285675, 0.14322912693023682, -0.20872075855731964, -0.5582000613212585, -0.5116433501243591, -0.5340193510055542, -0.3883296251296997, -0.12808942794799805, -0.4483359754085541, -0.3026631772518158, -0.04737329110503197, 0.231980100274086, 0.47912031412124634, 0.6794173121452332, 0.6230693459510803, 0.3629857301712036, 0.21153268218040466, 0.07769797742366791, 0.002534132683649659, 0.00587644474580884, 0.007453613914549351, -0.15346840023994446, -0.20210762321949005, -0.15043674409389496, 0.050667550414800644, 0.19085516035556793, 0.16888640820980072, -0.031014416366815567, 0.06842120736837387, -0.34844693541526794, -0.7305420637130737, -0.8864681720733643, -0.6061660051345825, -0.36207684874534607, -0.00034181828959845006, 0.34670761227607727, -0.2299691140651703, 0.10312654823064804, 0.4324053227901459, 0.6383460760116577, 0.9486299157142639, 0.7829550504684448, 0.3723013997077942, -0.09049784392118454, 0.012279565446078777, -0.10311650484800339, -0.10387127101421356, -0.03390529006719589, -0.32982757687568665, -0.36590003967285156, -0.2643640339374542, -0.11270378530025482, 0.19131122529506683, 0.1775568276643753, -0.05513086915016174, -0.38978859782218933, -0.31618839502334595, -0.5570669770240784, -0.6119142174720764, -0.4213741421699524, -0.16496212780475616, 0.12899214029312134, 0.38340938091278076, 0.5082457065582275, 0.20210212469100952, 0.42712849378585815, 0.5363337993621826, 0.4855527877807617, 0.572461724281311, 0.19930215179920197, -0.1854981929063797, -0.4282468557357788, -0.1679210215806961, -0.16816328465938568, -0.10738855600357056, -0.05038993060588837, -0.3588292896747589, -0.25009435415267944, -0.10458671301603317, -0.002177613554522395, 0.11796774715185165, -0.041685909032821655, -0.26732292771339417, -0.4182179570198059, -0.640857994556427, -0.6474397778511047, -0.3569943308830261, 0.1418544352054596, 0.31425395607948303, 0.5919826626777649, 0.680806577205658, 0.5543286800384521, 0.5924316644668579, 0.6583585143089294, 0.5217130780220032, 0.22470486164093018, 0.0651111900806427, -0.4291747212409973, -0.6973186135292053, -0.6615476012229919, -0.30323830246925354, -0.18935391306877136, -0.08399389684200287, -0.05729459598660469, -0.30309298634529114, -0.0766613632440567, 0.07607404887676239, 0.1022743508219719, 0.006576883140951395, -0.264511376619339, -0.42935794591903687, -0.35643258690834045] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_asymmetric_float32", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "asymmetric", "cubic_coeff_a": -0.5 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_crop_preserves_last_axis_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 7, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.36418119072914124, -0.6686753034591675, -0.7605839967727661, -0.6041274070739746, -0.5100820660591125, -0.4710348844528198, -0.3016871213912964, -0.0502622090280056, -0.011411412619054317, 0.4641095995903015, 0.7325966358184814, 0.7122482657432556, 0.4589241147041321, 0.1472424864768982, -0.107735276222229, -0.18212445080280304, 0.16167305409908295, 0.11454925686120987, 0.0785631611943245, 0.03452378138899803, -0.15636716783046722, 0.15202228724956512, 0.38494375348091125, 0.37528204917907715, 0.29978886246681213, 0.028768282383680344, -0.34747111797332764, -0.6653186082839966, -0.6147074103355408, -0.5479721426963806, -0.300677090883255, 0.034664224833250046, -0.2400401532649994, -0.04397020861506462, 0.1736830472946167, 0.34590381383895874, 0.6205887794494629, 0.700818657875061, 0.5397529602050781, 0.22729992866516113, -0.0022226395085453987, -0.19272835552692413, -0.20951414108276367, -0.07894790172576904, -0.01377609372138977, -0.051409997045993805, -0.08903901278972626, -0.13931149244308472, 0.10215616971254349, 0.23349083960056305, 0.1521395742893219, -0.12109940499067307, -0.07007851451635361, -0.45443645119667053, -0.743544340133667, -0.7804080247879028, -0.5081701874732971, -0.17876487970352173, 0.21407057344913483, 0.5239936113357544, 0.09910906851291656, 0.32419490814208984, 0.47290632128715515, 0.49728745222091675, 0.8160984516143799, 0.5461984872817993, 0.12955625355243683, -0.2555310130119324, -0.34880784153938293, -0.3536597490310669, -0.18378846347332, 0.03165720775723457, -0.1520194113254547, -0.16837581992149353, -0.19141885638237, -0.2215961068868637, 0.22957667708396912, 0.15210828185081482, -0.1319187879562378, -0.4654705226421356, -0.5407198667526245, -0.6171284914016724, -0.4312189519405365, -0.027011824771761894, 0.22272373735904694, 0.5258491039276123, 0.6572816967964172, 0.572605311870575, 0.4520896375179291, 0.4597814679145813, 0.345941960811615, 0.14525476098060608, 0.13893303275108337, -0.27997660636901855, -0.5446839332580566, -0.572242021560669, -0.3671548366546631, -0.1295143961906433, 0.06902820616960526, 0.11883904784917831, -0.1750333607196808, -0.1554671972990036, -0.13881996273994446, -0.1069764494895935, 0.07180465012788773, -0.20301716029644012, -0.41530880331993103, -0.4131110906600952, -0.691926121711731, -0.6689672470092773, -0.3300988972187042, 0.21589365601539612, 0.45810985565185547, 0.7524488568305969, 0.7994735836982727, 0.5876766443252563, 0.5654193162918091, 0.5030253529548645, 0.3046678900718689, 0.03163624182343483, -0.07950611412525177, -0.5460068583488464, -0.7614467144012451, -0.6737105846405029, -0.37264689803123474, -0.05709332227706909, 0.15046189725399017, 0.1467975676059723, -0.18228164315223694, -0.15116597712039948, -0.12174704670906067, -0.06994300335645676, 0.020811576396226883, -0.31735026836395264, -0.5062811970710754, -0.3958221971988678] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_half_pixel_symmetric_float32", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "half_pixel_symmetric", "cubic_coeff_a": -0.5 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_crop_preserves_last_axis_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 7, 4], | |
| "tolerance": 0.0001, | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float32_output_y" } } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_identity_float32", | |
| "attrs": { "mode": "cubic" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [2, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.6067157983779907, -0.94154953956604, -0.9552274942398071, -0.6321859359741211] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [2, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.6067157983779907, -0.94154953956604, -0.9552274942398071, -0.6321859359741211] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_singleton_float32", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "pytorch_half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_crop_preserves_last_axis_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 1, 1, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "ONNX Runtime's CPU provider, NHWC transposed to NCHW and back, agrees exactly with ONNX Resize-19 pytorch_half_pixel singleton coordinate zero and first-pixel cubic sampling. The ONNX ReferenceEvaluator instead uses -0.5 here and is not this fixture's reference." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_half_pixel_float16", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "half_pixel", "cubic_coeff_a": -0.5 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float16_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 5, 7, 4], | |
| "tolerance": 0.002, | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float16_output_y" } } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_pytorch_half_pixel_float16", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "pytorch_half_pixel", "cubic_coeff_a": -0.5 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float16_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 5, 7, 4], | |
| "tolerance": 0.002, | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float16_output_y" } } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_align_corners_float16", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "align_corners", "cubic_coeff_a": -0.5 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float16_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 5, 7, 4], | |
| "tolerance": 0.002, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.5478515625, 0.59765625, 0.35986328125, -0.10137939453125, -0.30224609375, -0.58642578125, -0.69091796875, -0.5771484375, -0.56396484375, -0.63916015625, -0.515625, -0.2261962890625, -0.100830078125, 0.42431640625, 0.740234375, 0.7451171875, 0.371337890625, 0.2476806640625, 0.11138916015625, 0.042694091796875, 0.34814453125, 0.09515380859375, -0.09735107421875, -0.161376953125, -0.11309814453125, 0.14892578125, 0.34619140625, 0.33203125, 0.3525390625, 0.143310546875, -0.2086181640625, -0.55810546875, -0.51171875, -0.5341796875, -0.38818359375, -0.1280517578125, -0.4482421875, -0.302734375, -0.047332763671875, 0.23193359375, 0.479248046875, 0.67919921875, 0.623046875, 0.363037109375, 0.2115478515625, 0.07757568359375, 0.002521514892578125, 0.005859375, 0.00746917724609375, -0.1534423828125, -0.2021484375, -0.1505126953125, 0.050628662109375, 0.19091796875, 0.1689453125, -0.0310211181640625, 0.06842041015625, -0.348388671875, -0.73046875, -0.88623046875, -0.60595703125, -0.362060546875, -0.00038886070251464844, 0.346923828125, -0.229736328125, 0.10296630859375, 0.432373046875, 0.63818359375, 0.94873046875, 0.78271484375, 0.372314453125, -0.09051513671875, 0.01239013671875, -0.103271484375, -0.1038818359375, -0.033905029296875, -0.329833984375, -0.365966796875, -0.264404296875, -0.11273193359375, 0.1912841796875, 0.1776123046875, -0.055145263671875, -0.389892578125, -0.316162109375, -0.55712890625, -0.61181640625, -0.421142578125, -0.164794921875, 0.12890625, 0.38330078125, 0.50830078125, 0.2021484375, 0.427001953125, 0.5361328125, 0.485595703125, 0.57275390625, 0.19921875, -0.1854248046875, -0.42822265625, -0.1678466796875, -0.168212890625, -0.10736083984375, -0.0504150390625, -0.35888671875, -0.25, -0.1046142578125, -0.0022106170654296875, 0.11798095703125, -0.041595458984375, -0.267333984375, -0.418212890625, -0.640625, -0.6474609375, -0.35693359375, 0.141845703125, 0.314208984375, 0.591796875, 0.6806640625, 0.55419921875, 0.59228515625, 0.658203125, 0.521484375, 0.2247314453125, 0.06512451171875, -0.42919921875, -0.697265625, -0.66162109375, -0.30322265625, -0.1893310546875, -0.083984375, -0.057373046875, -0.302978515625, -0.07659912109375, 0.0760498046875, 0.10223388671875, 0.0065765380859375, -0.264404296875, -0.429443359375, -0.3564453125] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_asymmetric_float16", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "asymmetric", "cubic_coeff_a": -0.5 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float16_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 5, 7, 4], | |
| "tolerance": 0.002, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.5478515625, 0.59765625, 0.35986328125, -0.10137939453125, -0.364501953125, -0.66845703125, -0.76025390625, -0.60400390625, -0.51025390625, -0.470947265625, -0.301513671875, -0.050323486328125, -0.01140594482421875, 0.464111328125, 0.73291015625, 0.71240234375, 0.458984375, 0.147216796875, -0.1077880859375, -0.1822509765625, 0.16162109375, 0.11456298828125, 0.07855224609375, 0.0345458984375, -0.1563720703125, 0.152099609375, 0.385009765625, 0.37548828125, 0.2998046875, 0.0288543701171875, -0.347412109375, -0.6650390625, -0.61474609375, -0.5478515625, -0.30078125, 0.034698486328125, -0.239990234375, -0.0440673828125, 0.1737060546875, 0.345947265625, 0.62060546875, 0.70068359375, 0.53955078125, 0.227294921875, -0.0021610260009765625, -0.19287109375, -0.2095947265625, -0.0789794921875, -0.01377105712890625, -0.0513916015625, -0.08905029296875, -0.1392822265625, 0.10211181640625, 0.2335205078125, 0.1522216796875, -0.12115478515625, -0.070068359375, -0.454345703125, -0.74365234375, -0.7802734375, -0.5078125, -0.1788330078125, 0.2139892578125, 0.52392578125, 0.09930419921875, 0.323974609375, 0.472900390625, 0.497314453125, 0.81640625, 0.5458984375, 0.1295166015625, -0.255615234375, -0.3486328125, -0.353759765625, -0.183837890625, 0.031646728515625, -0.1519775390625, -0.1683349609375, -0.19140625, -0.2216796875, 0.2294921875, 0.1522216796875, -0.1319580078125, -0.465576171875, -0.54052734375, -0.6171875, -0.43115234375, -0.0269775390625, 0.2227783203125, 0.52587890625, 0.6572265625, 0.57275390625, 0.4521484375, 0.459716796875, 0.345947265625, 0.145263671875, 0.138916015625, -0.280029296875, -0.54443359375, -0.572265625, -0.3671875, -0.1295166015625, 0.06903076171875, 0.1187744140625, -0.175048828125, -0.1553955078125, -0.138916015625, -0.10699462890625, 0.07177734375, -0.202880859375, -0.415283203125, -0.4130859375, -0.69189453125, -0.6689453125, -0.330078125, 0.2158203125, 0.4580078125, 0.75244140625, 0.79931640625, 0.587890625, 0.5654296875, 0.5029296875, 0.3046875, 0.0316162109375, -0.0794677734375, -0.5458984375, -0.76123046875, -0.673828125, -0.37255859375, -0.057098388671875, 0.1505126953125, 0.146728515625, -0.1822509765625, -0.151123046875, -0.121826171875, -0.0699462890625, 0.02081298828125, -0.317138671875, -0.50634765625, -0.395751953125] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_half_pixel_symmetric_float16", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "half_pixel_symmetric", "cubic_coeff_a": -0.5 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float16_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 5, 7, 4], | |
| "tolerance": 0.002, | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float16_output_y" } } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_identity_float16", | |
| "attrs": { "mode": "cubic" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [2, 4], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.5478515625, 0.59765625, 0.35986328125, -0.10137939453125, -0.60693359375, -0.94140625, -0.955078125, -0.63232421875] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [2, 4], | |
| "tolerance": 0.002, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.5478515625, 0.59765625, 0.35986328125, -0.10137939453125, -0.60693359375, -0.94140625, -0.955078125, -0.63232421875] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_singleton_float16", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "pytorch_half_pixel" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float16_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 1, 1, 4], | |
| "tolerance": 0.002, | |
| "data": { "kind": "values", "values": [0.5478515625, 0.59765625, 0.35986328125, -0.10137939453125] } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "ONNX Runtime's CPU provider, NHWC transposed to NCHW and back, agrees exactly with ONNX Resize-19 pytorch_half_pixel singleton coordinate zero and first-pixel cubic sampling. The ONNX ReferenceEvaluator instead uses -0.5 here and is not this fixture's reference." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_alignment_c3", | |
| "attrs": { "mode": "cubic", "exclude_outside": 1 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 3], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.6067157983779907, -0.94154953956604, -0.9552274942398071, -0.6321859359741211, -0.100829117000103, 0.4243633449077606, 0.7401348352432251, 0.7450881004333496, 0.48099780082702637, 0.10598835349082947, -0.18646365404129028, -0.2628708779811859, -0.11306791752576828, 0.14889498054981232, 0.3461253046989441, 0.3319292664527893, 0.06842120736837387, -0.34844693541526794, -0.7305420637130737, -0.8864681720733643, -0.7150757908821106, -0.25821852684020996, 0.31331953406333923, 0.7748502492904663, 0.9486299157142639, 0.7829550504684448, 0.3723013997077942, -0.09049784392118454, -0.4065987765789032, -0.4635164737701416, -0.2834371030330658, -0.005032815970480442, 0.19131122529506683, 0.1775568276643753, -0.05513086915016174, -0.38978859782218933, -0.640857994556427, -0.6474397778511047, -0.3569943308830261, 0.1418544352054596, 0.6543782353401184] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 7, 3], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.7136825323104858, 0.8053693175315857, 0.5136407017707825, 0.29920247197151184, -0.07998990267515182, -0.49420174956321716, -0.5399563908576965, -0.9081819653511047, -0.975213348865509, -1.0259203910827637, -0.6207269430160522, -0.00929835345596075, 0.11334598809480667, 0.5636476874351501, 0.7486834526062012, 0.6601384282112122, 0.6079676747322083, 0.3677116632461548, 0.4368803799152374, -0.06818031519651413, -0.3974471390247345, 0.23301686346530914, 0.3996378183364868, 0.40309590101242065, 0.2471713423728943, 0.07989455759525299, -0.17968149483203888, -0.17252317070960999, -0.48057234287261963, -0.6891632676124573, -0.7778193354606628, -0.7256383895874023, -0.4299665093421936, -0.3122756779193878, 0.0888468399643898, 0.43051809072494507, 0.38220545649528503, 0.5440213084220886, 0.5332643985748291, 0.7159470915794373, 0.4569023549556732, 0.11703826487064362, -0.31740784645080566, -0.15291841328144073, 0.15610158443450928, 0.13225030899047852, 0.22964400053024292, 0.19852130115032196, 0.2454780787229538, 0.07959365844726562, -0.24479182064533234, -0.34844693541526794, -0.7305420637130737, -0.8864681720733643, -0.8116090297698975, -0.5612481832504272, -0.09634652733802795, -0.062160346657037735, 0.3454969525337219, 0.6471034288406372, 0.9082764387130737, 1.0567059516906738, 0.8250119686126709, 0.11940652132034302, -0.15690214931964874, -0.25372952222824097, -0.05499482527375221, -0.05694778636097908, -0.010866406373679638, -0.10012106597423553, -0.010231618769466877, -0.009708716534078121, 0.041728224605321884, -0.14683307707309723, -0.3973013460636139, -0.47542470693588257, -0.5806370377540588, -0.4959963858127594, -0.34398984909057617, -0.1274109184741974, 0.1756603866815567, 0.1154230535030365, 0.5732355713844299, 0.8610358834266663, 0.5362255573272705, -0.06393441557884216, -0.5123068690299988, -0.17277474701404572, -0.2937347888946533, -0.23051612079143524, -0.4268658459186554, -0.17351962625980377, 0.0860803946852684, 0.2541956603527069, 0.2833547592163086, 0.041723962873220444, -0.1414894163608551, -0.4820721447467804, -0.6985126733779907, -0.47416338324546814, -0.440795361995697, -0.19085828959941864, -0.5011255741119385, 0.11352969706058502, 0.7646614909172058] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_alignment_c7", | |
| "attrs": { "mode": "cubic", "exclude_outside": 1 }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 7], | |
| "data": { | |
| "kind": "values", | |
| "values": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.6067157983779907, -0.94154953956604, -0.9552274942398071, -0.6321859359741211, -0.100829117000103, 0.4243633449077606, 0.7401348352432251, 0.7450881004333496, 0.48099780082702637, 0.10598835349082947, -0.18646365404129028, -0.2628708779811859, -0.11306791752576828, 0.14889498054981232, 0.3461253046989441, 0.3319292664527893, 0.06842120736837387, -0.34844693541526794, -0.7305420637130737, -0.8864681720733643, -0.7150757908821106, -0.25821852684020996, 0.31331953406333923, 0.7748502492904663, 0.9486299157142639, 0.7829550504684448, 0.3723013997077942, -0.09049784392118454, -0.4065987765789032, -0.4635164737701416, -0.2834371030330658, -0.005032815970480442, 0.19131122529506683, 0.1775568276643753, -0.05513086915016174, -0.38978859782218933, -0.640857994556427, -0.6474397778511047, -0.3569943308830261, 0.1418544352054596, 0.6543782353401184, 0.9668905138969421, 0.9449092745780945, 0.5956639647483826, 0.0651111900806427, -0.4291747212409973, -0.6973186135292053, -0.6615476012229919, -0.38599538803100586, -0.038672156631946564, 0.19496312737464905, 0.20427490770816803, 0.006576883140951395, -0.264511376619339, -0.42935794591903687, -0.35643258690834045, -0.033661019057035446, 0.41863349080085754, 0.8005234599113464, 0.9262955784797668, 0.7143750190734863, 0.22987115383148193, -0.3412853181362152, -0.7749568223953247, -0.9093265533447266, -0.7159268856048584, -0.3079201877117157, 0.11754821985960007, 0.37462031841278076, 0.37557852268218994, 0.16775305569171906, -0.09652946144342422, -0.24135459959506989, -0.15947312116622925, 0.13027237355709076, 0.48894062638282776, 0.724475622177124, 0.6873340606689453, 0.34811994433403015, -0.18109869956970215, -0.6931602358818054, -0.9786273837089539, -0.9212916493415833, -0.5510678291320801, -0.02920547127723694, 0.4269854426383972, 0.6439146399497986, 0.5685639381408691, 0.28632715344429016, -0.02761402726173401, -0.19877606630325317, -0.14111578464508057, 0.10088767856359482, 0.3762235641479492, 0.5054440498352051, 0.3743533194065094, -0.0030330789741128683, -0.4838518500328064, -0.8594995141029358, -0.9528764486312866, -0.7033077478408813] | |
| } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 7, 7], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.7266889214515686, 0.714167594909668, 0.37954434752464294, -0.18025867640972137, -0.7532244324684143, -1.1059147119522095, -1.089758276939392, -0.12348340451717377, 0.23668290674686432, 0.43338724970817566, 0.3834059238433838, 0.12832528352737427, -0.18817374110221863, -0.3928180932998657, -0.6601659655570984, -0.21061931550502777, 0.3204496502876282, 0.7131717801094055, 0.8120567798614502, 0.5959862470626831, 0.18441453576087952, -0.1581866294145584, -0.21225561201572418, -0.04916737228631973, 0.21121230721473694, 0.3909560739994049, 0.34788647294044495, 0.052593592554330826, -0.45318010449409485, -0.8096780180931091, -0.8695454597473145, -0.5994580388069153, -0.11199269443750381, 0.38608187437057495, 0.6894049644470215, 0.20743320882320404, -0.11228076368570328, -0.412335067987442, -0.5295796990394592, -0.38673970103263855, -0.032856535166502, 0.3774108290672302, 1.0713251829147339, 0.9320597648620605, 0.5078760385513306, 0.001010822830721736, -0.3707849979400635, -0.4753948152065277, -0.32304179668426514, 0.4566069543361664, 0.502626359462738, 0.26235270500183105, -0.19811825454235077, -0.6922462582588196, -0.9977915287017822, -0.9617306590080261, -0.1508861929178238, 0.2416428178548813, 0.486432284116745, 0.48090997338294983, 0.2457606941461563, -0.08777572214603424, -0.34397250413894653, -0.571584165096283, -0.15870945155620575, 0.3492685556411743, 0.7363097071647644, 0.8376325964927673, 0.6160055994987488, 0.17797741293907166, -0.254302054643631, -0.39672601222991943, -0.28825613856315613, -0.0276864692568779, 0.21076157689094543, 0.2688891291618347, 0.08742588013410568, -0.380441814661026, -0.71670001745224, -0.7843450307846069, -0.5336230397224426, -0.0595250241458416, 0.440188467502594, 0.7558510303497314, 0.30664438009262085, 0.016488635912537575, -0.29388734698295593, -0.4563468396663666, -0.37512171268463135, -0.07568661123514175, 0.3054830729961395, 1.0781984329223633, 0.9049910306930542, 0.4351772367954254, -0.13048645853996277, -0.5621114373207092, -0.7052465081214905, -0.5473889112472534, 0.026486124843358994, 0.19574019312858582, 0.13485640287399292, -0.14665517210960388, -0.5093137621879578, -0.7515913248062134, -0.7112503051757812, -0.18730807304382324, 0.24636076390743256, 0.5620454549789429, 0.626183032989502, 0.4237622320652008, 0.06317741423845291, -0.2777431607246399, -0.43357497453689575, -0.10389453917741776, 0.3491498529911041, 0.7203779220581055, 0.8310955166816711, 0.6153464317321777, 0.15365710854530334, -0.4291747212409973, -0.6973186135292053, -0.6615476012229919, -0.38599538803100586, -0.038672156631946564, 0.19496312737464905, 0.20427490770816803, -0.21210439503192902, -0.5224264860153198, -0.6202417612075806, -0.42505282163619995, 0.003048494691029191, 0.4872801899909973, 0.8150827884674072, 0.47403350472450256, 0.23000384867191315, -0.10209577530622482, -0.3465557098388672, -0.3757723271846771, -0.17333687841892242, 0.1576908677816391, 1.0086584091186523, 0.802036464214325, 0.28890660405158997, -0.33992883563041687, -0.841341495513916, -1.0282483100891113, -0.8517283797264099, -0.24020881950855255, 0.11401595920324326, 0.2697659134864807, 0.1743549257516861, -0.08538252115249634, -0.3311726748943329, -0.3873797655105591, -0.18377424776554108, 0.23777712881565094, 0.5768585801124573, 0.6800510287284851, 0.5014932155609131, 0.12444325536489487, -0.2785024046897888, -0.35908210277557373, -0.17068511247634888, 0.18259479105472565, 0.5195391178131104, 0.656024694442749, 0.4972028434276581, 0.08767586201429367, -0.6164894700050354, -0.9083498120307922, -0.8659756183624268, -0.5280209183692932, -0.057525407522916794, 0.33683541417121887, 0.49878939986228943, 0.08221068978309631, -0.23481173813343048, -0.41567736864089966, -0.34426000714302063, -0.0340745784342289, 0.37510061264038086, 0.6832544803619385, 0.6117947697639465, 0.392939031124115, 0.028245797380805016, -0.30321404337882996, -0.4454716444015503, -0.3404028117656708, -0.0542222335934639, 0.6743395328521729, 0.5216745734214783, 0.08788464963436127, -0.46988528966903687, -0.9223326444625854, -1.0727684497833252, -0.8488729000091553, -0.3617227077484131, 0.10716624557971954, 0.39112359285354614, 0.40153664350509644, 0.19468405842781067, -0.06467007100582123, -0.19263418018817902, -0.1748538464307785, 0.23064477741718292, 0.5746312141418457, 0.6944600939750671, 0.5277741551399231, 0.1433078497648239, -0.2905551791191101, -0.3282421827316284, -0.2293250411748886, 0.06010875478386879, 0.3745807111263275, 0.528389036655426, 0.410418838262558, 0.043365396559238434, -0.7239158153533936, -1.0114011764526367, -0.9515531063079834, -0.5702995657920837, -0.028102556243538857, 0.45401716232299805, 0.6951348185539246, 0.2694734036922455, -0.056978605687618256, -0.29369431734085083, -0.3036769926548004, -0.07223962992429733, 0.28441599011421204, 0.5760106444358826, 0.6840717196464539, 0.475726842880249, 0.09083017706871033, -0.29038944840431213, -0.49662482738494873, -0.4463376998901367, -0.18444132804870605, 0.4405060410499573, 0.3333275020122528, -0.03458772972226143, -0.5291230082511902, -0.9334429502487183, -1.0494563579559326, -0.793953537940979] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_nonidentity_scale", | |
| "attrs": { "mode": "cubic", "scales": [1, 2, 2, 1.01] }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_crop_preserves_last_axis_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 6, 10, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.7238608598709106, 0.8785911798477173, 0.6545232534408569, 0.07709836959838867, 0.3147515654563904, 0.2632814049720764, 0.0640518069267273, -0.24000795185565948, -0.3637910485267639, -0.7673379778862, -0.9316179752349854, -0.7824146747589111, -0.6611230373382568, -0.8675280213356018, -0.804652750492096, -0.4649427831172943, -0.42501962184906006, 0.02328305132687092, 0.39188504219055176, 0.5553529858589172, 0.030709413811564445, 0.4771023988723755, 0.7353125214576721, 0.7250179648399353, 0.48671483993530273, 0.27222105860710144, 0.05213232710957527, -0.05000413581728935, 0.49575716257095337, 0.14535778760910034, -0.14194828271865845, -0.2478966861963272, 0.04518527165055275, 0.1406841278076172, 0.22566331923007965, 0.21090906858444214, -0.22242608666419983, 0.13633103668689728, 0.4417845606803894, 0.4810366928577423, 0.5850828289985657, 0.527138352394104, 0.1981656402349472, -0.3031705915927887, 0.17573070526123047, 0.07140041142702103, -0.12044186890125275, -0.3389214277267456, -0.5089868903160095, -0.6962501406669617, -0.6624965667724609, -0.408928245306015, -0.6118952035903931, -0.6280179619789124, -0.4372640550136566, -0.08769263327121735, -0.07713937014341354, 0.24897544085979462, 0.4462500214576721, 0.45909541845321655, 0.29274654388427734, 0.5498066544532776, 0.6160807609558105, 0.48094263672828674, 0.31791234016418457, 0.12499187141656876, -0.017292268574237823, -0.041826359927654266, 0.2201288491487503, -0.047694046050310135, -0.207553893327713, -0.2091822326183319, 0.03783014789223671, 0.1020282730460167, 0.12507466971874237, 0.05558497831225395, -0.071994349360466, 0.1886015385389328, 0.32012739777565, 0.21037374436855316, 0.3680497705936432, -0.04584680125117302, -0.5574145913124084, -0.9435745477676392, -0.05125729739665985, -0.24618759751319885, -0.4302724301815033, -0.5112853050231934, -0.762229859828949, -0.5933218598365784, -0.22880132496356964, 0.20434033870697021, -0.543811023235321, -0.24327360093593597, 0.16485944390296936, 0.5386981964111328, 0.5007280111312866, 0.6303083300590515, 0.5462339520454407, 0.3081633150577545, 0.7356098294258118, 0.682809054851532, 0.43061771988868713, 0.08440837264060974, 0.04289852827787399, -0.1181887537240982, -0.13360151648521423, -0.02886100299656391, -0.23469363152980804, -0.370585560798645, -0.3212089240550995, -0.1486070454120636, 0.027032651007175446, 0.04069066420197487, -0.038964733481407166, -0.2014167308807373, 0.17832157015800476, 0.28127729892730713, 0.12563323974609375, -0.23544876277446747, -0.11230221390724182, -0.5712547302246094, -0.897401750087738, -0.9072211980819702, -0.24909436702728271, -0.3922378122806549, -0.43843501806259155, -0.33062198758125305, -0.4902615547180176, -0.10327184945344925, 0.323330283164978, 0.6336243748664856, -0.10996724665164948, 0.28455063700675964, 0.6206510066986084, 0.7668707966804504, 0.7039564251899719, 0.5717856287956238, 0.29160571098327637, -0.013287140056490898, 0.6640592217445374, 0.3632872402667999, -0.01172469463199377, -0.3216020464897156, -0.21509180963039398, -0.24513176083564758, -0.14493997395038605, -0.005770944058895111, -0.48527276515960693, -0.41792890429496765, -0.22113382816314697, -0.015497935004532337, -0.019290870055556297, -0.06694130599498749, -0.18796701729297638, -0.3220045864582062, 0.2534106373786926, 0.13873538374900818, -0.1700982004404068, -0.505381166934967, -0.5847155451774597, -0.7523845434188843, -0.6298031806945801, -0.2146395742893219, -0.3060607314109802, -0.2842748463153839, -0.14032018184661865, 0.10104687511920929, 0.15333589911460876, 0.4971657693386078, 0.6821062564849854, 0.636504590511322, 0.44464200735092163, 0.6573892831802368, 0.6727224588394165, 0.4679746627807617, 0.41778168082237244, 0.10645535588264465, -0.17384469509124756, -0.323731005191803, 0.11849978566169739, -0.22832292318344116, -0.4611530900001526, -0.5078121423721313, -0.3103700280189514, -0.18415167927742004, -0.04490475729107857, 0.014404726214706898, -0.3901050388813019, -0.16298896074295044, 0.03615841269493103, 0.11497760564088821, -0.07498124986886978, -0.1600872278213501, -0.23778970539569855, -0.2380818873643875, 0.1108696311712265, -0.15852990746498108, -0.40006566047668457, -0.44699111580848694, -0.8754286766052246, -0.8707082271575928, -0.4774341285228729, 0.19813351333141327, -0.3439294695854187, -0.22297993302345276, 0.0368751659989357, 0.36149463057518005, 0.5417033433914185, 0.8642402291297913, 0.906655490398407, 0.6468486189842224, 0.7833215594291687, 0.8898162245750427, 0.7128649950027466, 0.29473763704299927, 0.2516115605831146, -0.1715632528066635, -0.4558773338794708, -0.5148879885673523, -0.2075120061635971, -0.5867173075675964, -0.7374274730682373, -0.6267579197883606, -0.37224122881889343, -0.15042449533939362, 0.014381918124854565, 0.0268721804022789, -0.3385239839553833, -0.0122676407918334, 0.19124294817447662, 0.1952783614397049, -0.10904480516910553, -0.21766702830791473, -0.2704266309738159, -0.19057752192020416, 0.02757635898888111, -0.3382496237754822, -0.5428271889686584, -0.4176795184612274] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_axes_reordered", | |
| "attrs": { | |
| "mode": "cubic", | |
| "axes": [-1, -3, -2], | |
| "scales": [1, 2, 2], | |
| "exclude_outside": 1, | |
| "coordinate_transformation_mode": "asymmetric" | |
| }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float16", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/cubic_suffix_half_pixel_float16_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float16", | |
| "shape": [1, 6, 10, 4], | |
| "tolerance": 0.002, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.5478515625, 0.59765625, 0.35986328125, -0.10137939453125, -0.0234375, -0.2230224609375, -0.386474609375, -0.462158203125, -0.60693359375, -0.94140625, -0.955078125, -0.63232421875, -0.5166015625, -0.373046875, -0.143798828125, 0.10113525390625, -0.100830078125, 0.42431640625, 0.740234375, 0.7451171875, 0.293212890625, 0.38916015625, 0.3857421875, 0.314453125, 0.48095703125, 0.10601806640625, -0.1865234375, -0.262939453125, 0.2083740234375, 0.10205078125, 0.023223876953125, -0.0263671875, -0.11309814453125, 0.14892578125, 0.34619140625, 0.33203125, -0.2244873046875, 0.156982421875, 0.446044921875, 0.443603515625, 0.389404296875, 0.1907958984375, -0.1705322265625, -0.54833984375, -0.24755859375, -0.354248046875, -0.382568359375, -0.318603515625, -0.7734375, -0.734375, -0.429443359375, 0.026336669921875, -0.2327880859375, -0.024993896484375, 0.1805419921875, 0.326904296875, 0.45458984375, 0.69189453125, 0.66357421875, 0.412109375, 0.38232421875, 0.34765625, 0.254638671875, 0.1455078125, 0.073486328125, -0.1907958984375, -0.271728515625, -0.1629638671875, 0.0236663818359375, -0.05438232421875, -0.09869384765625, -0.124267578125, 0.0418701171875, 0.199951171875, 0.19482421875, -0.0008578300476074219, 0.03594970703125, 0.273193359375, 0.2822265625, 0.029541015625, 0.06842041015625, -0.348388671875, -0.73046875, -0.88623046875, -0.43212890625, -0.396484375, -0.25830078125, -0.05267333984375, -0.71484375, -0.25830078125, 0.313232421875, 0.77490234375, 0.1705322265625, 0.387451171875, 0.501953125, 0.489990234375, 0.94873046875, 0.78271484375, 0.372314453125, -0.09051513671875, 0.37109375, 0.197021484375, 0.028564453125, -0.09283447265625, -0.406494140625, -0.463623046875, -0.283447265625, -0.005031585693359375, -0.1981201171875, -0.222412109375, -0.2156982421875, -0.2066650390625, 0.1912841796875, 0.1776123046875, -0.055145263671875, -0.389892578125, 0.303466796875, 0.2978515625, -0.01233673095703125, -0.462158203125, -0.357666015625, -0.591796875, -0.62109375, -0.3955078125, -0.231689453125, -0.08203125, 0.09857177734375, 0.259033203125, 0.0191497802734375, 0.46533203125, 0.7646484375, 0.79833984375, 0.4208984375, 0.450439453125, 0.373046875, 0.2183837890625, 0.55908203125, 0.155517578125, -0.2398681640625, -0.47216796875, 0.03924560546875, -0.11297607421875, -0.2056884765625, -0.2369384765625, -0.471435546875, -0.28173828125, -0.03204345703125, 0.130615234375, -0.240234375, -0.1988525390625, -0.15576171875, -0.12396240234375, 0.11712646484375, -0.05987548828125, -0.292724609375, -0.43359375, 0.2274169921875, -0.018280029296875, -0.341552734375, -0.53955078125, -0.640625, -0.6474609375, -0.35693359375, 0.141845703125, 0.0018396377563476562, 0.2100830078125, 0.37890625, 0.45703125, 0.654296875, 0.966796875, 0.94482421875, 0.595703125, 0.5234375, 0.383544921875, 0.1622314453125, -0.07159423828125, 0.06512451171875, -0.42919921875, -0.697265625, -0.66162109375, -0.25244140625, -0.34375, -0.3466796875, -0.2939453125, -0.385986328125, -0.038665771484375, 0.1949462890625, 0.2042236328125, -0.2115478515625, -0.127685546875, -0.0675048828125, -0.0259246826171875, 0.0065765380859375, -0.264404296875, -0.429443359375, -0.3564453125, 0.0802001953125, -0.306640625, -0.54638671875, -0.461669921875, -0.7734375, -0.70361328125, -0.286865234375, 0.334716796875, 0.083251953125, 0.323974609375, 0.498291015625, 0.552734375, 0.9111328125, 1.1962890625, 1.0634765625, 0.56201171875, 0.58935546875, 0.3828125, 0.09844970703125, -0.1768798828125, -0.10052490234375, -0.65625, -0.89794921875, -0.7685546875, -0.369384765625, -0.445068359375, -0.4169921875, -0.331787109375, -0.382080078125, 0.041015625, 0.28466796875, 0.243408203125, -0.214111328125, -0.1099853515625, -0.03973388671875, 0.00795745849609375, -0.0280609130859375, -0.34716796875, -0.49951171875, -0.35009765625, 0.038330078125, -0.420166015625, -0.646484375, -0.46142578125] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_symmetric_scales", | |
| "attrs": { "mode": "cubic", "scales": [1, 1.9, 1.7, 1], "coordinate_transformation_mode": "half_pixel_symmetric" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_crop_preserves_last_axis_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 5, 8, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.610567569732666, 0.6934481859207153, 0.45307934284210205, -0.04979953542351723, -0.10358461737632751, -0.3564276099205017, -0.5205748081207275, -0.5420322418212891, -0.6435925364494324, -0.9381226301193237, -0.9161919355392456, -0.5717750787734985, -0.38977473974227905, -0.005774990189820528, 0.313799649477005, 0.4645549952983856, 0.11963396519422531, 0.48419272899627686, 0.6656522750854492, 0.620492160320282, 0.4967964291572571, 0.16521120071411133, -0.11273398995399475, -0.1995379477739334, 0.27968549728393555, 0.10806243866682053, -0.02192535623908043, -0.08161544054746628, -0.14871779084205627, 0.1487281620502472, 0.3815757930278778, 0.3820991814136505, 0.43068984150886536, 0.2144915759563446, -0.17726930975914001, -0.5855074524879456, -0.35905808210372925, -0.4461781680583954, -0.41432979702949524, -0.2733379304409027, -0.7329445481300354, -0.6429625153541565, -0.3162797689437866, 0.12735426425933838, 0.12182886898517609, 0.36799293756484985, 0.46074727177619934, 0.3948853015899658, 0.4975113868713379, 0.5936485528945923, 0.5034730434417725, 0.28151485323905945, 0.11418100446462631, -0.12598392367362976, -0.20496422052383423, -0.11209208518266678, 0.014058100990951061, -0.10129181295633316, -0.14996545016765594, -0.14593596756458282, 0.04588225856423378, 0.2172052264213562, 0.20868906378746033, -0.004677650053054094, 0.09904029220342636, -0.3519730269908905, -0.7713361382484436, -0.9513924717903137, -0.5138176679611206, -0.4033425748348236, -0.17991961538791656, 0.08474122732877731, -0.5937720537185669, -0.1387748420238495, 0.39680254459381104, 0.8035596609115601, 0.607935905456543, 0.6401142477989197, 0.4760937988758087, 0.21221178770065308, 0.7344767451286316, 0.5280641317367554, 0.18947871029376984, -0.14467954635620117, -0.29989001154899597, -0.3761115074157715, -0.23444801568984985, 0.005113411229103804, -0.2614809274673462, -0.2874862551689148, -0.24170182645320892, -0.17623035609722137, 0.21467749774456024, 0.20260992646217346, -0.046208661049604416, -0.40482479333877563, -0.3633696734905243, -0.6312868595123291, -0.6835829615592957, -0.45892709493637085, -0.21965381503105164, -0.00774189131334424, 0.20902177691459656, 0.3625822067260742, 0.09029368311166763, 0.4996834695339203, 0.7573664784431458, 0.7582963109016418, 0.5485913157463074, 0.3471495807170868, 0.08539063483476639, -0.12990719079971313, 0.32359427213668823, 0.005486638285219669, -0.27246221899986267, -0.41838133335113525, -0.4074142873287201, -0.2624913454055786, -0.048913806676864624, 0.09754914790391922, -0.300271213054657, -0.2249382734298706, -0.13688309490680695, -0.07610305398702621, 0.1436776965856552, -0.04484080150723457, -0.2986367344856262, -0.4581141173839569, -0.7194821238517761, -0.7232306599617004, -0.3949959874153137, 0.16222268342971802, 0.12991756200790405, 0.3779532015323639, 0.523539125919342, 0.5231339931488037, 0.7353315949440002, 0.9758093357086182, 0.8821654915809631, 0.48505276441574097, 0.32505229115486145, -0.040687672793865204, -0.3149227499961853, -0.41447246074676514, -0.17167726159095764, -0.5009785294532776, -0.6340392231941223, -0.5518339276313782, -0.3768756687641144, -0.06343869864940643, 0.14865046739578247, 0.1516111046075821, -0.24681608378887177, -0.09904535114765167, -0.000012396681086102035, 0.03535468876361847, 0.015089533291757107, -0.29019895195961, -0.4681949317455292, -0.37740686535835266] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| }, | |
| { | |
| "name": "cubic_suffix_rank5_ncdhw_identity_channels", | |
| "attrs": { "mode": "cubic", "coordinate_transformation_mode": "align_corners" }, | |
| "inputs": { | |
| "x": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 3, 5, 4], | |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/suffix_cubic_exclude0_input_x" } } | |
| } | |
| }, | |
| "outputs": { | |
| "y": { | |
| "dtype": "float32", | |
| "shape": [1, 2, 5, 7, 4], | |
| "tolerance": 0.0001, | |
| "data": { | |
| "kind": "values", | |
| "values": [0.547941267490387, 0.5975310802459717, 0.359794020652771, -0.10139164328575134, -0.2994222939014435, -0.608792245388031, -0.7296128273010254, -0.6181144714355469, -0.6080741286277771, -0.6648613810539246, -0.5161381363868713, -0.20157909393310547, -0.100829117000103, 0.4243633449077606, 0.7401348352432251, 0.7450881004333496, 0.39194217324256897, 0.27733415365219116, 0.14025352895259857, 0.06487586349248886, 0.35862454771995544, 0.08412099629640579, -0.12175215035676956, -0.18761442601680756, -0.11306791752576828, 0.14889498054981232, 0.3461253046989441, 0.3319292664527893, 0.3746761679649353, 0.1525726467370987, -0.22039411962032318, -0.5903351306915283, -0.5668521523475647, -0.600810706615448, -0.4450516104698181, -0.15798252820968628, -0.48441454768180847, -0.3082863688468933, -0.01954539865255356, 0.2853515148162842, 0.5067302584648132, 0.7172963619232178, 0.6564949750900269, 0.3808310329914093, 0.2533394694328308, 0.10856693238019943, 0.021398022770881653, 0.0174234788864851, -0.01045132614672184, -0.18933147192001343, -0.23889833688735962, -0.17469727993011475, 0.05644049867987633, 0.2046698033809662, 0.1805810034275055, -0.032056793570518494, 0.06842120736837387, -0.34844693541526794, -0.7305420637130737, -0.8864681720733643, -0.6532754898071289, -0.40230971574783325, -0.02185710147023201, 0.3479923903942108, -0.20308132469654083, 0.14883214235305786, 0.48430243134498596, 0.6822687387466431, 0.9486299157142639, 0.7829550504684448, 0.3723013997077942, -0.09049784392118454, 0.04604094475507736, -0.0844961628317833, -0.09909150004386902, -0.037262722849845886, -0.3689488172531128, -0.4001939296722412, -0.28442275524139404, -0.11666352301836014, 0.19131122529506683, 0.1775568276643753, -0.05513086915016174, -0.38978859782218933, -0.3311733901500702, -0.586628794670105, -0.6459872126579285, -0.4459078013896942, -0.20376509428024292, 0.1250997632741928, 0.4141837954521179, 0.560812771320343, 0.2553498446941376, 0.49323180317878723, 0.5974407196044922, 0.525093674659729, 0.6052573323249817, 0.21050813794136047, -0.19699299335479736, -0.45435890555381775, -0.16957604885101318, -0.1832067221403122, -0.12588746845722198, -0.06612840294837952, -0.4089497923851013, -0.27869173884391785, -0.10868173837661743, 0.010299077257514, 0.12747959792613983, -0.04079022631049156, -0.2798621654510498, -0.4407716393470764, -0.640857994556427, -0.6474397778511047, -0.3569943308830261, 0.1418544352054596, 0.3120928108692169, 0.6137937903404236, 0.7175204753875732, 0.592488169670105, 0.6378448605537415, 0.6850639581680298, 0.5229963660240173, 0.20219716429710388, 0.0651111900806427, -0.4291747212409973, -0.6973186135292053, -0.6615476012229919, -0.32033655047416687, -0.21407407522201538, -0.1078062579035759, -0.07584309577941895, -0.3125307857990265, -0.06638051569461823, 0.09756001830101013, 0.12395837903022766, 0.006576883140951395, -0.264511376619339, -0.42935794591903687, -0.35643258690834045, -0.033661019057035446, 0.41863349080085754, 0.8005234599113464, 0.9262955784797668, 0.6592934727668762, 0.3943850100040436, 0.014465764164924622, -0.3385445773601532, 0.21499444544315338, -0.14949285984039307, -0.4840754270553589, -0.6711178421974182, -0.9093265533447266, -0.7159268856048584, -0.3079201877117157, 0.11754821985960007, -0.05134916305541992, 0.03886229544878006, 0.024022210389375687, -0.04460325464606285, 0.3233630657196045, 0.3284147083759308, 0.20880615711212158, 0.06399878859519958, -0.24135459959506989, -0.15947312116622925, 0.13027237355709076, 0.48894062638282776, 0.4136112332344055, 0.6627824306488037, 0.6875360012054443, 0.4449526071548462, 0.2007877677679062, -0.1294599175453186, -0.40508291125297546, -0.5315455198287964, -0.2629280686378479, -0.5018842220306396, -0.5971784591674805, -0.5154865980148315, -0.5523539185523987, -0.1643691509962082, 0.20583517849445343, 0.40961167216300964, 0.11411546915769577, 0.10694079101085663, 0.05180559307336807, 0.017709827050566673, 0.3433908224105835, 0.21691998839378357, 0.07468507438898087, -0.001164049026556313, -0.08760911226272583, 0.13077861070632935, 0.3844617009162903, 0.5212847590446472, 0.724475622177124, 0.6873340606689453, 0.34811994433403015, -0.18109869956970215, -0.3206402063369751, -0.6103372573852539, -0.6955738663673401, -0.5589995980262756, -0.6591821312904358, -0.6959709525108337, -0.5227711200714111, -0.20027218759059906, -0.02920547127723694, 0.4269854426383972, 0.6439146399497986, 0.5685639381408691, 0.2444835752248764, 0.14871938526630402, 0.07522467523813248, 0.08722932636737823, 0.263007253408432, 0.04900897666811943, -0.07070944458246231, -0.057691775262355804, 0.10088767856359482, 0.3762235641479492, 0.5054440498352051, 0.3743533194065094, 0.4317965805530548, 0.1269317865371704, -0.29810261726379395, -0.670805811882019, -0.5803017616271973, -0.5899497270584106, -0.41798630356788635, -0.13820889592170715, -0.5233535766601562, -0.3250575661659241, -0.026371123269200325, 0.26942476630210876, 0.49644142389297485, 0.6402584314346313, 0.5313467979431152, 0.25588351488113403, 0.1786271184682846, 0.08888538926839828, 0.06838678568601608, 0.11880574375391006, -0.01041469071060419, -0.12762874364852905, -0.12697650492191315, -0.0460733100771904, 0.22564305365085602, 0.3069603741168976, 0.18539783358573914, -0.11445757746696472, -0.0030330789741128683, -0.4838518500328064, -0.8594995141029358, -0.9528764486312866, -0.6562257409095764, -0.38117673993110657, -0.007266264408826828, 0.32391712069511414, -0.22361688315868378, 0.14832046627998352, 0.47728431224823, 0.6508381366729736, 0.8570656180381775, 0.6392353177070618, 0.24030987918376923, -0.14136233925819397, 0.057302042841911316, 0.008453198708593845, 0.051948431879282, 0.12566354870796204, -0.27251991629600525, -0.25187790393829346, -0.13083438575267792, -0.01163786556571722, 0.2862280011177063, 0.1372540295124054, -0.2049930840730667, -0.5817833542823792] | |
| } | |
| } | |
| }, | |
| "provenance": { | |
| "notes": "Expected output from the ONNX ReferenceEvaluator, using exact dtype-rounded channel-distinct input. No GPU outputs used." | |
| } | |
| } | |
| ] | |
| } | |