| { |
| "op": "ai.onnx.LRN", |
| "fixtureArrays": { |
| "onnx_backend_lrn_input_x": [1.764052391052246, 0.40015721321105957, 0.978738009929657, 2.2408931255340576, 1.8675580024719238, -0.9772778749465942, 0.9500884413719177, -0.15135720372200012, -0.10321885347366333, 0.4105985164642334, 0.14404356479644775, 1.4542734622955322, 0.7610377073287964, 0.12167501449584961, 0.44386324286460876, 0.3336743414402008, 1.4940791130065918, -0.2051582634449005, 0.3130677044391632, -0.8540957570075989, -2.5529897212982178, 0.653618574142456, 0.8644362092018127, -0.7421650290489197, 2.269754648208618, -1.4543657302856445, 0.04575851559638977, -0.18718385696411133, 1.5327792167663574, 1.4693588018417358, 0.154947429895401, 0.37816253304481506, -0.8877857327461243, -1.980796456336975, -0.34791216254234314, 0.15634897351264954, 1.2302906513214111, 1.202379822731018, -0.38732680678367615, -0.302302747964859, -1.0485529899597168, -1.420017957687378, -1.7062702178955078, 1.950775384902954, -0.5096521973609924, -0.4380742907524109, -1.2527953386306763, 0.7774903774261475, -1.6138978004455566, -0.21274028718471527, -0.8954665660858154, 0.38690251111984253, -0.5108051300048828, -1.18063223361969, -0.02818222902715206, 0.4283318817615509, 0.06651721894741058, 0.30247190594673157, -0.6343221068382263, -0.3627411723136902, -0.6724604368209839, -0.35955315828323364, -0.8131462931632996, -1.7262825965881348, 0.17742614448070526, -0.4017809331417084, -1.630198359489441, 0.46278226375579834, -0.9072983860969543, 0.05194539576768875, 0.7290905714035034, 0.12898291647434235, 1.1394007205963135, -1.234825849533081, 0.4023416340351105, -0.6848101019859314, -0.8707971572875977, -0.5788496732711792, -0.3115525245666504, 0.056165341287851334, -1.1651498079299927, 0.9008265137672424, 0.4656624495983124, -1.5362436771392822, 1.4882521629333496, 1.895889163017273, 1.1787796020507812, -0.1799248307943344, -1.0707526206970215, 1.0544517040252686, -0.4031769335269928, 1.222445011138916, 0.2082749754190445, 0.9766390323638916, 0.3563663959503174, 0.7065731883049011, 0.01050002034753561, 1.7858705520629883, 0.12691208720207214, 0.4019893705844879, 1.8831506967544556, -1.3477590084075928, -1.2704850435256958, 0.969396710395813, -1.1731233596801758, 1.9436211585998535, -0.4136189818382263, -0.747454822063446, 1.922942042350769, 1.4805147647857666, 1.8675589561462402, 0.9060446619987488, -0.8612256646156311, 1.910064935684204, -0.26800337433815, 0.8024563789367676, 0.9472519755363464, -0.15501008927822113, 0.6140793561935425, 0.922206699848175, 0.37642553448677063, -1.0994007587432861, 0.29823818802833557, 1.3263858556747437, -0.694567859172821, -0.14963454008102417, -0.4351535439491272, 1.8492637872695923, 0.6722947359085083, 0.40746182203292847, -0.7699160575866699, 0.5392491817474365, -0.6743326783180237, 0.0318305566906929, -0.6358460783958435, 0.676433265209198, 0.5765908360481262, -0.20829875767230988, 0.39600670337677, -1.0930615663528442, -1.4912575483322144, 0.43939170241355896, 0.16667349636554718, 0.6350314617156982, 2.3831448554992676, 0.9444794654846191, -0.9128222465515137, 1.117016315460205, -1.31590735912323, -0.46158459782600403, -0.06824160367250443, 1.7133426666259766, -0.7447548508644104, -0.8264385461807251, -0.09845252335071564, -0.6634783148765564, 1.1266359090805054, -1.0799314975738525, -1.1474686861038208, -0.43782004714012146, -0.49803245067596436, 1.9295320510864258, 0.9494208097457886, 0.08755124360322952, -1.225435495376587, 0.8443629741668701, -1.0002152919769287, -1.5447710752487183, 1.1880297660827637, 0.31694260239601135, 0.9208588004112244, 0.31872764229774475, 0.8568305969238281, -0.6510255932807922, -1.034242868423462, 0.6815944910049438, -0.8034096360206604, -0.6895498037338257, -0.4555324912071228, 0.01747915893793106, -0.3539939224720001, -1.3749512434005737, -0.6436184048652649, -2.223403215408325, 0.6252314448356628, -1.602057695388794, -1.1043833494186401, 0.05216507986187935, -0.73956298828125, 1.543014645576477, -1.2928569316864014, 0.2670508623123169, -0.039282817393541336, -1.1680934429168701, 0.523276686668396, -0.1715463250875473, 0.7717905640602112, 0.8235041499137878, 2.163235902786255, 1.336527943611145, -0.3691818416118622, -0.2393791824579239, 1.0996595621109009, 0.6552637219429016, 0.6401315331459045, -1.6169559955596924, -0.024326125159859657, -0.7380309104919434, 0.279924601316452, -0.09815038740634918, 0.9101788997650146, 0.31721821427345276, 0.7863279581069946, -0.4664191007614136, -0.9444462656974792, -0.410049706697464, -0.017020413652062416, 0.37915173172950745, 2.2593090534210205, -0.0422571524977684, -0.9559450149536133, -0.34598177671432495, -0.463595986366272, 0.4814814627170563, -1.5407969951629639, 0.06326199322938919, 0.15650653839111328, 0.23218104243278503, -0.5973160862922668, -0.23792172968387604, -1.4240609407424927, -0.49331986904144287, -0.5428614616394043, 0.4160500466823578, -1.1561824083328247, 0.7811980843544006, 1.494484543800354, -2.0699849128723145, 0.42625874280929565, 0.676908016204834, -0.6374370455741882, -0.3972718119621277, -0.1328805834054947, -0.29779088497161865, -0.3090129792690277, -1.6760038137435913, 1.1523315906524658, 1.0796185731887817, -0.8133642673492432, -1.4664243459701538, 0.5210648775100708, -0.5757879614830017, 0.14195317029953003, -0.3193284273147583, 0.6915387511253357, 0.694749116897583, -0.7255973815917969, -1.383363962173462, -1.5829384326934814, 0.6103793978691101, -1.188859224319458, -0.5068163275718689, -0.596314013004303, -0.05256729573011398, -1.9362797737121582, 0.1887785941362381, 0.523891031742096, 0.08842208981513977, -0.3108861744403839, 0.09740016609430313, 0.3990463316440582, -2.772592782974243, 1.9559123516082764, 0.3900933265686035, -0.6524085998535156, -0.3909533619880676, 0.4937417805194855, -0.11610393971204758, -2.030684471130371, 2.06449294090271, -0.11054065823554993, 1.0201727151870728, -0.6920498609542847, 1.5363770723342896, 0.28634369373321533, 0.6088438630104065, -1.0452533960342407, 1.211145281791687, 0.6898181438446045, 1.3018462657928467, -0.62808758020401, -0.48102712631225586, 2.3039166927337646, -1.0600157976150513, -0.13594970107078552, 1.1368913650512695, 0.09772496670484543, 0.582953691482544, -0.39944902062416077, 0.3700558841228485, -1.3065268993377686, 1.6581306457519531, -0.1181640475988388, -0.6801782250404358, 0.6663830876350403, -0.4607197940349579, -1.3342584371566772, -1.3467174768447876, 0.6937731504440308, -0.15957343578338623, -0.13370156288146973, 1.0777437686920166, -1.1268258094787598, -0.7306777238845825, -0.38487979769706726, 0.09435158967971802, -0.042171452194452286, -0.28688719868659973, -0.06162640079855919, -0.10730527341365814, -0.7196043729782104, -0.8129929900169373, 0.27451634407043457, -0.8909150958061218, -1.1573553085327148, -0.3122922480106354, -0.15766701102256775, 2.256723403930664, -0.7047002911567688, 0.9432607293128967, 0.7471883296966553, -1.188944935798645, 0.7732529640197754, -1.1838806867599487, -2.659172296524048, 0.6063195466995239, -1.7558906078338623, 0.4509344696998596, -0.684010922908783, 1.6595507860183716, 1.0685093402862549, -0.4533858001232147, -0.6878376007080078, -1.214077353477478, -0.4409226179122925, -0.2803554832935333, -0.3646935522556305, 0.1567038595676422, 0.5785214900970459, 0.3496544659137726, -0.7641439437866211, -1.4377914667129517, 1.3645318746566772, -0.6894491910934448, -0.6522936224937439, -0.5211893320083618, -1.8430695533752441, -0.477973997592926, -0.47965580224990845, 0.6203582882881165, 0.6984571218490601, 0.003770889015868306, 0.9318483471870422, 0.33996498584747314, -0.01568211242556572, 0.1609281748533249, -0.1906534880399704, -0.3948495090007782, -0.26773354411125183, -1.1280113458633423, 0.2804417014122009, -0.9931235909461975, 0.841631293296814, -0.24945858120918274, 0.04949498176574707, 0.49383679032325745, 0.6433144807815552, -1.5706233978271484, -0.20690368115901947, 0.8801789283752441, -1.698105812072754, 0.3872804641723633, -2.2555642127990723, -1.022506833076477, 0.03863055258989334, -1.6567151546478271, -0.9855107665061951, -1.4718350172042847, 1.6481349468231201, 0.16422775387763977, 0.5672903060913086, -0.22267509996891022, -0.353431761264801, -1.6164741516113281, -0.2918373644351959, -0.7614921927452087, 0.8579239249229431, 1.1411018371582031, 1.466578722000122, 0.8525519371032715, -0.5986539125442505, -1.1158969402313232, 0.7666631937026978, 0.35629281401634216, -1.768538475036621, 0.3554818034172058, 0.8145198225975037, 0.05892558768391609, -0.18505367636680603, -0.8076484799385071, -1.4465347528457642, 0.8002979755401611, -0.3091144561767578, -0.23346665501594543, 1.732721209526062, 0.6845011115074158, 0.37082499265670776, 0.14206179976463318, 1.519994854927063, 1.719589352607727, 0.9295051097869873, 0.5822246074676514, -2.0946030616760254, 0.12372191250324249, -0.13010695576667786, 0.09395322948694229, 0.9430460929870605, -2.7396771907806396, -0.5693120360374451, 0.26990434527397156, -0.4668455421924591, -1.4169061183929443, 0.8689634799957275, 0.276871919631958, -0.9711045622825623, 0.3148171901702881, 0.8215857148170471, 0.005292646121233702, 0.8005648255348206, 0.07826017588376999, -0.3952289819717407, -1.1594204902648926, -0.08593076467514038, 0.19429293274879456, 0.875832736492157, -0.1151074692606926, 0.4574156105518341, -0.9646120071411133, -0.782629132270813, -0.11038929969072342, -1.0546284914016724, 0.8202478289604187, 0.46313032507896423, 0.27909576892852783, 0.33890411257743835, 2.021043539047241, -0.46886420249938965, -2.2014412879943848, 0.19930019974708557, -0.05060354247689247, -0.5175190567970276, -0.9788298606872559, -0.43918952345848083, 0.18133842945098877, -0.5028166770935059, 2.4124536514282227, -0.9605043530464172, -0.793117344379425, -2.2886199951171875, 0.2514844238758087, -2.016406536102295, -0.5394546389579773, -0.27567052841186523, -0.709727942943573, 1.7388726472854614, 0.9943943619728088, 1.3191368579864502, -0.8824188113212585, 1.1285940408706665, 0.4960009455680847, 0.7714059352874756, 1.029438853263855, -0.9087632298469543, -0.4243176281452179, 0.8625960350036621, -2.6556191444396973, 1.5133280754089355, 0.5531320571899414, -0.045703962445259094, 0.2205076515674591, -1.0299352407455444, -0.3499433696269989, 1.1002843379974365, 1.2980220317840576, 2.6962239742279053, -0.07392466813325882, -0.6585529446601868, -0.5142339468002319, -1.0180418491363525, -0.07785475254058838, 0.38273242115974426, -0.03424227982759476, 1.0963468551635742, -0.23421579599380493, -0.3474506437778473, -0.5812684893608093, -1.6326345205307007, -1.5677677392959595, -1.1791579723358154, 1.3014280796051025, 0.8952602744102478, 1.3749641180038452, -1.3322116136550903, -1.9686247110366821, -0.6600562930107117, 0.17581894993782043, 0.49869027733802795, 1.0479722023010254, 0.2842796742916107, 1.7426687479019165, -0.22260567545890808, -0.9130792021751404, -1.6812182664871216, -0.8889713287353516, 0.2421179562807083, -0.8887202739715576, 0.9367424845695496, 1.4123276472091675, -2.369586944580078, 0.8640522956848145, -2.2396039962768555, 0.40149906277656555, 1.2248705625534058, 0.06485610455274582, -1.2796891927719116, -0.5854312181472778, -0.26164543628692627, -0.18224477767944336, -0.2028968334197998, -0.10988277941942215, 0.21348005533218384, -1.2085736989974976, -0.24201983213424683, 1.518261194229126, -0.3846454322338104, -0.4438360929489136, 1.0781973600387573, -2.5591845512390137, 1.1813786029815674, -0.6319037675857544, 0.1639285683631897, 0.09632135927677155, 0.9424681067466736, -0.26759475469589233, -0.6780257821083069, 1.2978458404541016, -2.3641738891601562, 0.020334182307124138, -1.3479254245758057, -0.7615733742713928, 2.011256694793701, -0.04459542781114578, 0.19506970047950745, -1.7815628051757812, -0.7290446758270264, 0.1965574026107788, 0.354757696390152, 0.616886556148529, 0.00862789899110794, 0.5270041823387146, 0.4537819027900696, -1.8297404050827026, 0.037005722522735596, 0.7679024338722229, 0.5898798108100891, -0.36385881900787354, -0.8056265115737915, -1.118311882019043, -0.13105401396751404, 1.1330798864364624, -1.9518041610717773, -0.6598917245864868, -1.1398024559020996, 0.7849575281143188, -0.554309606552124, -0.47063764929771423, -0.21694956719875336, 0.44539326429367065, -0.3923889994621277, -3.046143054962158, 0.5433118939399719, 0.43904295563697815, -0.2195410281419754, -1.0840365886688232, 0.35178011655807495, 0.37923553586006165, -0.47003287076950073, -0.2167314738035202, -0.9301565289497375, -0.1785890907049179, -1.550429344177246, 0.41731882095336914, -0.9443684816360474, 0.23810315132141113, -1.4059629440307617, -0.5900576710700989, -0.11048940569162369, -1.6606998443603516, 0.11514787375926971, -0.37914755940437317, -1.7423561811447144, -1.303242802619934, 0.605120062828064, 0.8955559730529785, -0.13190864026546478, 0.40476182103157043, 0.2238435596227646, 0.3296229839324951, 1.2859840393066406, -1.5069984197616577, 0.6764607429504395, -0.38200896978378296, -0.2242589294910431, -0.3022497296333313, -0.37514710426330566] |
| }, |
| "cases": [ |
| { |
| "name": "size_greater_than_channels", |
| "provenance": { |
| "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", |
| "test": "LRNTest.SizeGreaterThanChannels" |
| }, |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 1, "size": 5 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [1, 3, 2, 2], |
| "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] } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 2, 2], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "size_equals_channels", |
| "provenance": { |
| "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", |
| "test": "LRNTest.SizeEqualsChannels" |
| }, |
| "attrs": { "alpha": 0.0001, "beta": 0.75, "bias": 1, "size": 3 }, |
| "inputs": { |
| "x": { "dtype": "float32", "shape": [1, 3, 1, 1], "data": { "kind": "values", "values": [1.0, 2.0, 3.0] } } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 1, 1], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "multiple_batches", |
| "provenance": { "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", "test": "LRNTest.MultipleBatches" }, |
| "attrs": { "alpha": 0.01, "beta": 0.5, "bias": 1, "size": 3 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [2, 3, 2, 2], |
| "data": { |
| "kind": "values", |
| "values": [0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1.0, 1.05, 1.1, 1.15, 1.2] |
| } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [2, 3, 2, 2], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "zero_input", |
| "provenance": { "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", "test": "LRNTest.ZeroInput" }, |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 1, "size": 3 }, |
| "inputs": { "x": { "dtype": "float32", "shape": [1, 3, 2, 2], "data": { "kind": "constant", "value": 0.0 } } }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 2, 2] } } |
| }, |
| { |
| "name": "f32_tiny_square_bias_zero_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/Metal flushes subnormals to zero in f32; the subnormal squared input collapses to zero so the bias=0 LRN denominator is zero instead of subnormal." |
| }, |
| "provenance": { |
| "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", |
| "test": "LRNTest.SizeEqualsChannels", |
| "notes": "Valid bias=0 edge: tiny normal inputs have positive subnormal squares, so size=1 LRN should produce finite +/-1-style outputs." |
| }, |
| "attrs": { "alpha": 1, "beta": 0.5, "bias": 0, "size": 1 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [1, 4, 1, 1], |
| "data": { "kind": "values", "values": [1e-20, -1e-20, 2e-20, -2e-20] } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 4, 1, 1], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "f32_tiny_square_bias_zero_vec4w_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/Metal flushes subnormals to zero in f32; the subnormal squared input collapses to zero (vec4 path)." |
| }, |
| "provenance": { |
| "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", |
| "test": "LRNTest.LargerSpatialDims", |
| "notes": "Same finite bias=0 tiny-square edge as the scalar case, shaped to exercise the vectorized W-lane kernel." |
| }, |
| "attrs": { "alpha": 1, "beta": 0.5, "bias": 0, "size": 1 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [1, 4, 1, 4], |
| "data": { |
| "kind": "values", |
| "values": [1e-20, -1e-20, 2e-20, -2e-20, -1e-20, 1e-20, -2e-20, 2e-20, 3e-20, -3e-20, 4e-20, -4e-20, -3e-20, 3e-20, -4e-20, 4e-20] |
| } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 4, 1, 4], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "ort_many_channels_sliding_window", |
| "provenance": { |
| "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", |
| "test": "LRNTest.ManyChannels", |
| "notes": "C > size exercises the channel sliding-window path instead of only clamped edge windows." |
| }, |
| "attrs": { "alpha": 0.0001, "beta": 0.75, "bias": 1, "size": 3 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [1, 8, 2, 2], |
| "data": { |
| "kind": "values", |
| "values": [0.2, 0.4, 0.6, 0.8, 1.0, 0.2, 0.4, 0.6, 0.8, 1.0, 0.2, 0.4, 0.6, 0.8, 1.0, 0.2, 0.4, 0.6, 0.8, 1.0, 0.2, 0.4, 0.6, 0.8, 1.0, 0.2, 0.4, 0.6, 0.8, 1.0, 0.2, 0.4] |
| } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 8, 2, 2], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "size_one_channelwise_window", |
| "attrs": { "alpha": 0.5, "beta": 1, "bias": 1, "size": 1 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [1, 3, 1, 2], |
| "data": { "kind": "values", "values": [-2.0, -1.0, 0.0, 1.0, 2.0, 3.0] } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 1, 2], "tolerance": 0.000001 } } |
| }, |
| { |
| "name": "tiny_alpha_bias_beta_dominates", |
| "attrs": { "alpha": 1e-8, "beta": 0.5, "bias": 4, "size": 5 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [1, 2, 1, 3], |
| "data": { "kind": "values", "values": [-6.0, -2.0, 0.0, 2.0, 4.0, 8.0] } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 1, 3], "tolerance": 0.000001 } } |
| }, |
| { |
| "name": "f32_unaligned_width_w6_scalar_compact", |
| "provenance": { |
| "notes": "Compact sibling for the LRN unaligned-width scalar benchmark; width=6 bypasses the vec4-W path while preserving a larger spatial loop." |
| }, |
| "attrs": { "alpha": 0.0001, "beta": 0.75, "bias": 1, "size": 5 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [2, 16, 32, 6], |
| "data": { "kind": "fillFloat32", "sinStep": 0.011, "cosStep": 0.017, "scale": 1.0 } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [2, 16, 32, 6], "tolerance": 0.00001, "relTolerance": 0.00001 } } |
| }, |
| { |
| "name": "float16_small", |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 2, "size": 3 }, |
| "inputs": { |
| "x": { |
| "dtype": "float16", |
| "shape": [1, 2, 2, 2], |
| "data": { "kind": "values", "values": [0.9, 0.2, 0.7, 0.4, 0.3, 0.6, 0.8, 0.1] } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 2, 2, 2], "tolerance": 0.002 } } |
| }, |
| { |
| "name": "ort_lrn_1_bias2_size5", |
| "provenance": { "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", "test": "LRNTest.LRN_1" }, |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 2, "size": 5 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [1, 2, 5, 5], |
| "data": { |
| "kind": "values", |
| "values": [0.93150997, 0.22777775, 0.0239904, 0.68148804, 0.38188118, 0.37675565, 0.56248045, 0.38941276, 0.80423731, 0.06973697, 0.22548851, 0.92550498, 0.99807096, 0.13079064, 0.56333995, 0.68052572, 0.40238085, 0.36750308, 0.21684977, 0.34298277, 0.41941738, 0.09853589, 0.67301852, 0.17712493, 0.12575327, 0.25551194, 0.99063486, 0.55772477, 0.25830251, 0.65443498, 0.19408275, 0.47776002, 0.50554532, 0.7642616, 0.39078581, 0.5375315, 0.02074649, 0.05360929, 0.79922867, 0.66012126, 0.76942754, 0.14644335, 0.09823465, 0.79470968, 0.60738826, 0.19192833, 0.53565669, 0.57413113, 0.27340019, 0.17495774] |
| } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 5, 5], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "ort_lrn_2_default_bias", |
| "provenance": { "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", "test": "LRNTest.LRN_2" }, |
| "attrs": { "alpha": 0.0001, "beta": 0.75, "bias": 1, "size": 5 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [2, 3, 4, 4], |
| "data": { |
| "kind": "values", |
| "values": [0.97540224, 0.76555133, 0.44334042, 0.81262767, 0.80408305, 0.45893553, 0.39771056, 0.34420514, 0.94965851, 0.93253171, 0.42878076, 0.85962552, 0.14810622, 0.89759219, 0.34574565, 0.70201623, 0.15821661, 0.48984697, 0.94124645, 0.32628751, 0.15926595, 0.59950596, 0.88879001, 0.98674315, 0.80416244, 0.71297693, 0.94821811, 0.48053992, 0.16935933, 0.11691149, 0.22425655, 0.89018708, 0.75404555, 0.68191183, 0.31341696, 0.86113745, 0.11833113, 0.67812026, 0.92196965, 0.2754015, 0.80969357, 0.06198973, 0.01612644, 0.12104732, 0.26516402, 0.55688673, 0.88051248, 0.02725011, 0.05843787, 0.75477105, 0.14542344, 0.97296566, 0.90956807, 0.43174571, 0.76335925, 0.45990494, 0.40780696, 0.29402575, 0.54538655, 0.28858703, 0.56942707, 0.75392908, 0.66404897, 0.0093868, 0.6678884, 0.60093129, 0.54297262, 0.16187565, 0.81088668, 0.93738687, 0.17667364, 0.61121237, 0.46496955, 0.11731055, 0.09468836, 0.80042875, 0.63450789, 0.6306234, 0.01279899, 0.06116414, 0.61256766, 0.5070824, 0.60149539, 0.84250051, 0.99870878, 0.08305351, 0.25943553, 0.58913916, 0.19776763, 0.29520017, 0.21649282, 0.46786523, 0.93280208, 0.87324554, 0.63763618, 0.58810955] |
| } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [2, 3, 4, 4], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "ort_larger_spatial_dims_pattern", |
| "provenance": { |
| "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", |
| "test": "LRNTest.LargerSpatialDims" |
| }, |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 1, "size": 3 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [1, 3, 8, 8], |
| "data": { "kind": "cycle", "values": [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7] } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 8, 8], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "onnx_backend_lrn", |
| "attrs": { "alpha": 0.00019999999494757503, "beta": 0.5, "bias": 2, "size": 3 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [5, 5, 5, 5], |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_lrn_input_x" } } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [5, 5, 5, 5] } }, |
| "provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_lrn" } |
| }, |
| { |
| "name": "onnx_backend_lrn_default", |
| "attrs": { "size": 3 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [5, 5, 5, 5], |
| "data": { "kind": "values", "values": { "$ref": "#/fixtureArrays/onnx_backend_lrn_input_x" } } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [5, 5, 5, 5] } }, |
| "provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_lrn_default" } |
| }, |
| { |
| "name": "vec4w_float16_width8", |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 1.5, "size": 3 }, |
| "inputs": { |
| "x": { |
| "dtype": "float16", |
| "shape": [1, 3, 2, 8], |
| "data": { "kind": "fillFloat32", "sinStep": 0.19, "cosStep": 0.23 } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 3, 2, 8], "tolerance": 0.002 } } |
| }, |
| { |
| "name": "vec4w_size5_width12_clamped_window", |
| "attrs": { "alpha": 0.0001, "beta": 0.75, "bias": 1, "size": 5 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [2, 4, 3, 12], |
| "data": { "kind": "fillFloat32", "sinStep": 0.11, "cosStep": 0.29 } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [2, 4, 3, 12], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "ort_larger_spatial_dims_mod7", |
| "provenance": { |
| "source": "onnxruntime/test/providers/cpu/nn/lrn_op_test.cc", |
| "test": "LRNTest.LargerSpatialDims", |
| "notes": "Uses ORT's modulo-7 fill pattern over a 1x3x128x128 tensor to stress spatial indexing without inline bulk data." |
| }, |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 1, "size": 3 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [1, 3, 128, 128], |
| "data": { "kind": "cycle", "values": [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7] } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 3, 128, 128], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "empty_zero_dim", |
| "attrs": { "alpha": 0.0001, "beta": 0.75, "bias": 1, "size": 3 }, |
| "inputs": { "x": { "dtype": "float32", "shape": [0, 3, 2, 2], "data": { "kind": "values", "values": [] } } }, |
| "outputs": { "y": { "dtype": "float32", "shape": [0, 3, 2, 2], "tolerance": 0 } } |
| }, |
| { |
| "name": "empty_zero_dim_f16", |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 2, "size": 3 }, |
| "inputs": { "x": { "dtype": "float16", "shape": [0, 2, 2, 2], "data": { "kind": "values", "values": [] } } }, |
| "outputs": { "y": { "dtype": "float16", "shape": [0, 2, 2, 2], "tolerance": 0 } } |
| }, |
| { |
| "name": "f16_vec4w_path_w4_min_aligned", |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 1.5, "size": 3 }, |
| "inputs": { |
| "x": { |
| "dtype": "float16", |
| "shape": [2, 4, 3, 4], |
| "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31 } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float16", "shape": [2, 4, 3, 4], "tolerance": 0.002 } } |
| }, |
| { |
| "name": "f32_size_gt_channels_vec4w_fully_clamped_window", |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 1, "size": 7 }, |
| "inputs": { |
| "x": { |
| "dtype": "float32", |
| "shape": [1, 4, 3, 4], |
| "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.27 } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float32", "shape": [1, 4, 3, 4], "tolerance": 0.00001 } } |
| }, |
| { |
| "name": "f16_scalar_path_odd_w5_channel_window", |
| "attrs": { "alpha": 0.001, "beta": 0.75, "bias": 1.5, "size": 3 }, |
| "inputs": { |
| "x": { |
| "dtype": "float16", |
| "shape": [1, 4, 2, 5], |
| "data": { "kind": "fillFloat32", "sinStep": 0.19, "cosStep": 0.23 } |
| } |
| }, |
| "outputs": { "y": { "dtype": "float16", "shape": [1, 4, 2, 5], "tolerance": 0.002 } } |
| } |
| ] |
| } |
|
|