index
int64
0
731k
package
stringlengths
2
98
name
stringlengths
1
76
docstring
stringlengths
0
281k
code
stringlengths
4
8.19k
signature
stringlengths
2
42.8k
embed_func_code
listlengths
768
768
714,690
sqlalchemy_jsonfield.jsonfield
__use_json
Helper to determine, which encoder to use. :return: use engine-based json encoder :rtype: bool
def __use_json(self, dialect: Dialect) -> bool: """Helper to determine, which encoder to use. :return: use engine-based json encoder :rtype: bool """ return hasattr(dialect, "_json_serializer") and not self.__enforce_string
(self, dialect: 'Dialect') -> 'bool'
[ 0.03114137053489685, -0.06433416903018951, 0.027088956907391548, 0.011030636727809906, 0.019774433225393295, -0.0004876348248217255, 0.0014660573797300458, 0.03093959018588066, 0.01721855439245701, -0.05908789113163948, 0.032789237797260284, -0.019454948604106903, -0.011198786087334156, -0.009021244943141937, 0.028720010071992874, -0.001376727712340653, -0.03334413468837738, 0.023288767784833908, 0.0930878072977066, -0.04143214598298073, -0.022296682000160217, -0.022195791825652122, 0.017319444566965103, 0.06029856950044632, -0.012535578571259975, 0.0678989440202713, 0.026517245918512344, -0.0026294447015970945, 0.0224816482514143, 0.023171061649918556, -0.0420374870300293, -0.0739859789609909, 0.11010458320379257, 0.024314481765031815, 0.015158717520534992, 0.020447032526135445, -0.024398555979132652, 0.023860476911067963, -0.08313333243131638, -0.04028872773051262, -0.05888611078262329, 0.06050034984946251, -0.04035598784685135, 0.0007062297663651407, -0.01615080237388611, 0.0001274261303478852, -0.07338063418865204, 0.06954681873321533, 0.03181396797299385, 0.031713079661130905, 0.03743017837405205, -0.025995980948209763, 0.009727474302053452, 0.06840340048074722, -0.07903047651052475, -0.03766558691859245, -0.0027954927645623684, 0.02641635574400425, -0.043584465980529785, 0.02646680176258087, -0.026063241064548492, 0.016428248956799507, 0.011560308746993542, -0.006398105528205633, -0.012577615678310394, -0.014847639948129654, -0.061139319092035294, -0.019723989069461823, 0.04348357394337654, 0.020295698195695877, -0.013897593133151531, 0.00287536415271461, 0.022128531709313393, 0.05387524142861366, -0.03067054972052574, 0.008869909681379795, -0.07674363255500793, 0.027526145800948143, 0.0015343682607635856, -0.016419842839241028, 0.0456358939409256, -0.014755157753825188, -0.013788294978439808, -0.021909937262535095, 0.020850593224167824, -0.004720809869468212, -0.06292171031236649, 0.054917771369218826, -0.021523192524909973, -0.0310236643999815, -0.010635484009981155, 0.010198294185101986, 0.043248165398836136, 0.08017389476299286, -0.0042121559381484985, 0.020329328253865242, 0.004922589752823114, -0.005679264198988676, 0.02927490510046482, -0.021590452641248703, -0.014200262725353241, 0.05424517020583153, -0.010240331292152405, -0.03460525721311569, -0.018025673925876617, -0.022397572174668312, -0.005817987956106663, 0.018916869536042213, -0.033512283116579056, -0.026836730539798737, -0.01293913833796978, -0.016596399247646332, 0.006171103101223707, 0.0045820861123502254, 0.05854981020092964, -0.05108395218849182, -0.023860476911067963, -0.00373503053560853, 0.01580609381198883, 0.02088422328233719, -0.020564738661050797, 0.020161177963018417, 0.03048558533191681, -0.008050178177654743, 0.09026288986206055, -0.02628183551132679, 0.03702661767601967, 0.03134315088391304, 0.06023130938410759, 0.03388221189379692, 0.0494697131216526, 0.04102858528494835, -0.008411700837314129, -0.03300783410668373, 0.01230857614427805, 0.014914900064468384, -0.0656457394361496, 0.04321453720331192, 0.055926673114299774, 0.013948038220405579, 0.011980683542788029, -0.02655087597668171, -0.007192614022642374, -0.04106221720576286, -0.021859493106603622, 0.022027643397450447, -0.04977238178253174, -0.03716113790869713, -0.04149940609931946, -0.05622934177517891, 0.10317680239677429, 0.00725567014887929, 0.018109748139977455, 0.008092216216027737, -0.04590493440628052, 0.019169094040989876, -0.051521141082048416, -0.026786286383867264, 0.0042520915158092976, 0.009046467021107674, 0.025895090773701668, -0.04287823662161827, -0.006927777547389269, -0.0037728643510490656, 0.035109709948301315, 0.017285814508795738, -0.018967313691973686, -0.07512939721345901, 0.013552885502576828, 0.024095887318253517, -0.0017088238382712007, 0.02054792270064354, -0.00804177112877369, 0.03467251732945442, 0.04556863382458687, 0.09402944892644882, 0.02448263205587864, 0.06315711885690689, -0.048998892307281494, 0.04186933487653732, 0.047989994287490845, -0.02128778211772442, 0.009567731991410255, -0.010719559155404568, 0.028299635276198387, -0.042306527495384216, 0.03927982598543167, -0.06241725757718086, 0.05878521874547005, 0.067461758852005, 0.03460525721311569, 0.0009064332698471844, -0.014351597987115383, -0.035042449831962585, 0.013889185152947903, -0.0350760780274868, 0.0636279359459877, -0.014780379831790924, -0.04637575522065163, 0.0257437564432621, -0.04173481464385986, -0.02908994071185589, 0.00015829740732442588, 0.015713611617684364, -0.04183570668101311, -0.028972234576940536, -0.020766519010066986, -0.03401673212647438, 0.05296723172068596, -0.08474757522344589, -0.07102653384208679, -0.06941229850053787, -0.01787433959543705, 0.07223721593618393, 0.04328179731965065, 0.01310728769749403, 0.0427100844681263, -0.03988516703248024, -0.0370938777923584, -0.0034575832542032003, 0.0647377297282219, 0.01928679831326008, 0.003535352647304535, -0.02486937679350376, 0.03035106509923935, -0.043920766562223434, -0.016461879014968872, -0.040187835693359375, 0.039313457906246185, -0.015268014743924141, -0.04415617510676384, 0.0422728955745697, 0.0344034768640995, 0.04055776819586754, 0.04909978434443474, 0.004222665447741747, 0.010240331292152405, -0.019774433225393295, 0.02421359159052372, -0.035513266921043396, 0.07001763582229614, -0.012628060765564442, -0.04381987452507019, -0.025491531938314438, -0.056801050901412964, -0.008878316730260849, 0.014519747346639633, 0.046846576035022736, 0.001664684503339231, -0.018900053575634956, 0.0031717282254248857, -0.012291761115193367, 0.004670364782214165, 0.0023751179687678814, -0.044660624116659164, -0.0535053126513958, 0.010400073602795601, 0.04489603638648987, 0.009845179505646229, -0.03149448335170746, -0.04267645627260208, 0.031107740476727486, -0.03273879364132881, 0.08198991417884827, -0.03769921883940697, -0.03975064679980278, 0.03988516703248024, 0.010921338573098183, -0.03139359503984451, 0.007268281187862158, -0.01733625866472721, 0.010147849097847939, 0.0004960423102602363, -0.03450436890125275, 0.014250707812607288, -0.012695320881903172, -0.015310052782297134, -0.0400196872651577, -0.01494012214243412, 0.008226736448705196, -0.016562769189476967, -0.012863471172749996, 0.04694746434688568, 0.012468318454921246, -0.012089980766177177, -0.07230447232723236, -0.029106754809617996, -0.003407138166949153, -0.0008428515866398811, -0.011694828979671001, -0.007852602750062943, 0.01426752284169197, -0.008542017079889774, 0.03702661767601967, 0.013065250590443611, -0.037127505987882614, 0.023927737027406693, -0.040389616042375565, 0.06271992623806, -0.07008489966392517, -0.005120165646076202, 0.028652749955654144, 0.07829061150550842, 0.03840544819831848, 0.00426890654489398, -0.023288767784833908, -0.018530122935771942, -0.0633925274014473, -0.0577763207256794, 0.014200262725353241, -0.04015420749783516, 0.02655087597668171, 0.013922815211117268, 0.007831583730876446, -0.017521224915981293, -0.014671082608401775, -0.016789771616458893, 0.04341631382703781, 0.006410716567188501, 0.03008202463388443, -0.03561415895819664, 0.013847148045897484, 0.011493048630654812, -0.05670016258955002, 0.018832793459296227, -0.02720666117966175, 0.05031046271324158, 0.010753189213573933, 0.019421318545937538, 0.021825863048434258, -0.032570645213127136, -0.03588319942355156, 0.04570315405726433, 0.03334413468837738, -0.009651807136833668, -0.039044417440891266, -0.008411700837314129, -0.02734118141233921, -0.037127505987882614, 0.031847599893808365, -0.0063392529264092445, -0.03188122808933258, 0.06618382036685944, -0.01687384769320488, -0.03927982598543167, 0.012064758688211441, 0.0224816482514143, -0.00004578144944389351, 0.023053357377648354, 0.0028774659149348736, -0.06551121920347214, 0.024297667667269707, 0.0384390763938427, 0.025525161996483803, -0.06850428879261017, -0.06278719007968903, -0.0037434380501508713, 0.0006568357348442078, -0.01203953567892313, 0.0011024330742657185, -0.004867940675467253, -0.02347373217344284, 0.010484148748219013, 0.04637575522065163, -0.017655743286013603, 0.050781283527612686, 0.022229421883821487, -0.030300619080662727, 0.011694828979671001, -0.023456918075680733, -0.0386744886636734, 0.008785834535956383, -0.0075163026340305805, 0.007697063498198986, -0.028585489839315414, 0.014603822492063046, 0.0058432104997336864, 0.0164114348590374, -0.023591436445713043, 0.009004429914057255, 0.01430955994874239, 0.01994258351624012, -0.03315917029976845, 0.002698806580156088, 0.016260098665952682, -0.01693269982933998, 0.00881105661392212, -0.02707214094698429, -0.058448921889066696, -0.0485617034137249, -0.0753311738371849, 0.0143347829580307, -0.033915843814611435, 0.05108395218849182, -0.06456957757472992, -0.005822191946208477, -0.02280113287270069, 0.006768035236746073, -0.0024150535464286804, 0.09793052822351456, -0.020194808021187782, -0.051453884690999985, 0.10041914880275726, 0.0032284788321703672, -0.02747570164501667, 0.03172989562153816, 0.04533322528004646, 0.004464380908757448, 0.03149448335170746, 0.008327625691890717, -0.03722839802503586, -0.07237173616886139, -0.07842513173818588, -0.019185908138751984, -0.0016751937801018357, 0.013746257871389389, 0.05037772282958031, 0.0022090699058026075, -0.003726623021066189, 0.05787720903754234, 0.012989583425223827, 0.029392609372735023, -0.04566952586174011, 0.05515317991375923, -0.010173071175813675, -0.002400340512394905, 0.028450969606637955, 0.0037917811423540115, -0.011518270708620548, 0.019034573808312416, 0.03894352540373802, -0.051453884690999985, 0.028064224869012833, -0.07391871511936188, 0.035042449831962585, 0.01330906804651022, 0.018378788605332375, -0.05189107358455658, -0.027660666033625603, 0.007083316333591938, 0.023221507668495178, 0.021775417029857635, -0.06376245617866516, -0.0032305808272212744, 0.0315953753888607, -0.020026657730340958, 0.004767050966620445, 0.09066645056009293, 0.036454908549785614, -0.020766519010066986, 0.0013630654430016875, 0.01470471266657114, -0.04701472446322441, -0.027845630422234535, -0.0267526563256979, -0.05020957440137863, 0.06820161640644073, 0.0057255057618021965, 0.027425255626440048, 0.030788253992795944, -0.0015312153846025467, -0.014671082608401775, -0.0013746258337050676, 0.05323627218604088, 0.019051387906074524, 0.04143214598298073, -0.07674363255500793, 0.015158717520534992, -0.034638889133930206, 0.04254193603992462, 0.023423288017511368, 0.07277529686689377, -0.02761022001504898, -0.03174670785665512, -0.03907804563641548, -0.014225484803318977, 0.03941434621810913, 0.006414920557290316, 0.013746257871389389, -0.013998482376337051, -0.0649731382727623, 0.006419124081730843, -0.021506378427147865, -0.0074868761003017426, 0.025760570541024208, -0.039918795228004456, -0.010795226320624352, -0.051252104341983795, 0.02507115714251995, 0.037396546453237534, 0.021809047088027, 0.013140917755663395, 0.026651766151189804, 0.0078399907797575, 0.044189807027578354, 0.017706189304590225, 0.007062297780066729, -0.039178937673568726, 0.01800885982811451, 0.02493663690984249, 0.061072058975696564, 0.048460815101861954, -0.004720809869468212, -0.00588945159688592, -0.002173338085412979, -0.07876143604516983, 0.027257105335593224, 0.015637945383787155, -0.03341139480471611, 0.014343190006911755, -0.029661649838089943, 0.06628470867872238, 0.014435673132538795, 0.025693312287330627, 0.034638889133930206, 0.007877824828028679, -0.005448058247566223, 0.011635975912213326, 0.012594430707395077, 0.014460895210504532, -0.008861501701176167, -0.023658696562051773, 0.015503425151109695, -0.04348357394337654, -0.008920354768633842, 0.04375261440873146, 0.01920272409915924, 0.009147357195615768, -0.006385494023561478, 0.012426280416548252, -0.012796211056411266, -0.015654759481549263, -0.05750728026032448, 0.05108395218849182, -0.04015420749783516, 0.044458843767642975, 0.01762211322784424, 0.059390559792518616, 0.04381987452507019, -0.034706149250268936, 0.01613398641347885, -0.024583522230386734, 0.013552885502576828, -0.021960383281111717, -0.0019463356584310532, -0.011577123776078224, 0.008962391875684261, 0.0011602345621213317, 0.017823893576860428, -0.015217569656670094, -0.044526103883981705, 0.029174014925956726, 0.02887134626507759, 0.03595045953989029, 0.0786941722035408, -0.02848459966480732, 0.04308001697063446, 0.04291186481714249, 0.010257146321237087, 0.019707173109054565, -0.005855822004377842, 0.049133412539958954, -0.090397410094738, 0.007680248469114304, 0.02488619089126587, 0.00012571836123242974, 0.008092216216027737, 0.09073370695114136, -0.01694110594689846, 0.019101833924651146, -0.002345691667869687, -0.02493663690984249, 0.033781323581933975, -0.01029918435961008, -0.003587899496778846, -0.0026231391821056604, -0.022717056795954704, 0.027240291237831116, -0.0239445511251688, -0.06423328071832657, -0.026231391355395317, -0.0022363942116498947, -0.03174670785665512, -0.005363983102142811, 0.027526145800948143, -0.0537407211959362, 0.01926998421549797, 0.07042119652032852, 0.025861460715532303, -0.040456876158714294, -0.009441619738936424, -0.0076003773137927055, 0.04186933487653732, -0.03783373907208443, 0.06796620786190033, 0.026988066732883453, -0.029560759663581848, -0.0537407211959362, 0.01551183219999075, -0.05794446915388107, -0.011846163310110569, 0.032654717564582825, -0.024179961532354355, -0.052395522594451904, 0.0690087378025055, 0.03927982598543167, -0.08118279278278351, 0.034975189715623856, 0.0004177475057076663, -0.02949349954724312, -0.04516507312655449, 0.04748554527759552, -0.02261616662144661, -0.07923225313425064, 0.018916869536042213, -0.01256920862942934, -0.01293913833796978, 0.011745273135602474, 0.02061518281698227, -0.035984087735414505, 0.07990485429763794, 0.06056760996580124, 0.026164131239056587, -0.04550137370824814, -0.050848543643951416, -0.021523192524909973, -0.04008694738149643, -0.023440102115273476, -0.05128573253750801, -0.07573473453521729, 0.0020440728403627872, -0.055455852299928665, 0.09362588822841644, -0.01906820386648178, -0.013662182725965977, -0.04119673743844032, -0.013687405735254288, -0.0239445511251688, 0.05535496026277542, -0.012728950940072536, -0.01023192424327135, -0.010198294185101986, 0.01507464237511158, 0.026853546500205994, -0.01787433959543705, 0.03310872241854668, 0.009609769098460674, 0.013494033366441727, 0.020564738661050797, -0.018832793459296227, -0.02133822813630104, 0.02414633147418499, 0.01928679831326008, -0.03408399224281311, 0.011635975912213326, 0.008920354768633842, -0.03216708451509476, 0.024449001997709274, 0.029308535158634186, -0.0034176476765424013, 0.017252184450626373, 0.03840544819831848, -0.03156174346804619, 0.004264703020453453, 0.051722921431064606, -0.0018139175372198224, -0.056666530668735504, -0.056262969970703125, 0.0465439036488533, -0.010072181932628155, -0.029913874343037605, 0.024247221648693085, 0.0458713062107563, -0.029123570770025253, -0.044055286794900894, -0.005166407208889723, -0.000708331645000726, 0.006095435470342636, 0.050714023411273956, -0.019841693341732025, -0.06524217873811722, -0.013140917755663395, -0.019185908138751984, 0.08441127091646194, -0.060063160955905914, 0.04089406505227089, -0.035378746688365936, -0.007377578876912594, 0.059525080025196075, -0.012846656143665314, 0.02349054627120495, -0.054985031485557556, -0.0625181496143341, 0.023625066503882408, 0.04116310551762581, -0.0964508056640625, 0.003356693312525749, 0.023103801533579826, -0.02254890836775303, 0.03753106668591499, 0.06685641407966614, -0.02767748013138771, -0.015495017170906067, -0.006507402751594782, 0.021573638543486595, -0.005670856684446335, -0.019169094040989876, -0.026651766151189804, 0.06335889548063278, -0.028635935857892036, -0.025962350890040398, 0.0239445511251688, 0.035176970064640045, -0.009912439621984959, 0.008659722283482552, 0.018042489886283875, 0.0000659791476209648, 0.04287823662161827, 0.014292744919657707, -0.035715047270059586, -0.024970266968011856, 0.008495775982737541, -0.04267645627260208, -0.009946068748831749, 0.027862446382641792, -0.012207685969769955, -0.026769470423460007, -0.024297667667269707, -0.003697196952998638, 0.050714023411273956, -0.0185469388961792, 0.02081696316599846, -0.03287331387400627, -0.01627691462635994, -0.028787270188331604, -0.03162900358438492, 0.010257146321237087, -0.013014805503189564, 0.008075401186943054, -0.003726623021066189, -0.026769470423460007, 0.0010835161665454507, -0.006398105528205633, -0.0028480396140366793, 0.035109709948301315, -0.007667637430131435, 0.07028667628765106, 0.01715129427611828, -0.046510275453329086, 0.011610753834247589, 0.031107740476727486, 0.029695279896259308, -0.02628183551132679, 0.029964320361614227, 0.017386704683303833, 0.02893860451877117, -0.023759586736559868, 0.06083665043115616, 0.02273387275636196, -0.018059303984045982, -0.09503834694623947, 0.0409276969730854, -0.03408399224281311, -0.01794159971177578, -0.03595045953989029, 0.002194356871768832, 0.03860722854733467, -0.01947176270186901 ]
714,692
sqlalchemy_jsonfield.jsonfield
__init__
JSONField. :param enforce_string: enforce String(UnicodeText) type usage :type enforce_string: bool :param enforce_unicode: do not encode non-ascii data :type enforce_unicode: bool :param json: JSON encoding/decoding library. By default: standard json package. :param json_type: the sqlalchemy/dialect class that will be used to render the DB JSON type. By default: sqlalchemy.JSON :param args: extra baseclass arguments :type args: typing.Any :param kwargs: extra baseclass keyworded arguments :type kwargs: typing.Any
def __init__( # pylint: disable=keyword-arg-before-vararg self, enforce_string: bool = False, enforce_unicode: bool = False, json: types.ModuleType | typing.Any = json, # pylint: disable=redefined-outer-name json_type: TypeEngine[typing.Any] | type[TypeEngine[typing.Any]] = sqlalchemy.JSON, *args: typing.Any, **kwargs: typing.Any, ) -> None: """JSONField. :param enforce_string: enforce String(UnicodeText) type usage :type enforce_string: bool :param enforce_unicode: do not encode non-ascii data :type enforce_unicode: bool :param json: JSON encoding/decoding library. By default: standard json package. :param json_type: the sqlalchemy/dialect class that will be used to render the DB JSON type. By default: sqlalchemy.JSON :param args: extra baseclass arguments :type args: typing.Any :param kwargs: extra baseclass keyworded arguments :type kwargs: typing.Any """ self.__enforce_string = enforce_string self.__enforce_unicode = enforce_unicode self.__json_codec = json self.__json_type = json_type super().__init__(*args, **kwargs)
(self, enforce_string: 'bool' = False, enforce_unicode: 'bool' = False, json: 'types.ModuleType | typing.Any' = <module 'json' from '/usr/local/lib/python3.10/json/__init__.py'>, json_type: 'TypeEngine[typing.Any] | type[TypeEngine[typing.Any]]' = <class 'sqlalchemy.sql.sqltypes.JSON'>, *args: 'typing.Any', **kwargs: 'typing.Any') -> 'None'
[ -0.02623772621154785, -0.021359726786613464, 0.03283411264419556, 0.037878409028053284, 0.008324011228978634, 0.011206465773284435, 0.00476251682266593, 0.04146299883723259, 0.00742786331102252, -0.07405690848827362, 0.0223944541066885, 0.08122608810663223, -0.005247545428574085, 0.0031642329413443804, -0.0017380183562636375, 0.02716159075498581, 0.0014747172826901078, 0.03604915738105774, 0.025202998891472816, -0.05860990658402443, 0.010836919769644737, 0.009959249757230282, 0.03778602182865143, 0.11322872340679169, 0.02511061355471611, 0.023262886330485344, -0.019345704466104507, 0.022837908938527107, 0.018698999658226967, -0.002706920262426138, 0.002315433230251074, -0.039023999124765396, 0.03765667974948883, 0.05258631706237793, -0.011576010845601559, -0.05461881682276726, -0.03880226984620094, 0.0457497276365757, -0.11995445191860199, 0.022172726690769196, 0.008245483040809631, 0.04050217941403389, -0.0587577261030674, -0.024999748915433884, 0.032021112740039825, 0.007035221438854933, 0.010264124721288681, 0.02703224867582321, -0.04279336333274841, -0.017109954729676247, 0.002001319546252489, -0.017867522314190865, 0.01969677209854126, -0.014172067865729332, -0.04482586309313774, 0.016906704753637314, -0.00103357236366719, 0.06308140605688095, -0.046304043382406235, 0.01731320470571518, -0.06278576701879501, 0.03033968061208725, -0.02573884092271328, 0.0016883607022464275, 0.008938380517065525, -0.0019816874992102385, -0.06869849562644958, -0.048706088215112686, 0.05953377112746239, -0.02464868128299713, 0.0066795339807868, 0.03135593235492706, 0.0435694083571434, 0.05716868117451668, 0.026311635971069336, 0.011631443165242672, -0.06019895151257515, 0.0034136760514229536, 0.015816545113921165, 0.029194090515375137, 0.06736813485622406, -0.010661385953426361, -0.034681838005781174, -0.020417384803295135, -0.005991255398839712, 0.011511340737342834, -0.06799636036157608, 0.02049129456281662, 0.020380431786179543, 0.01033803354948759, -0.06869849562644958, -0.03497747704386711, -0.028011543676257133, 0.04113040864467621, 0.009169346652925014, -0.03543940931558609, 0.021655362099409103, -0.03324061259627342, 0.012998760677874088, 0.06648122519254684, 0.0026399402413517237, 0.041389089077711105, -0.020084794610738754, -0.023078113794326782, 0.00503967609256506, -0.031706999987363815, -0.020084794610738754, -0.01089235208928585, -0.01142819318920374, -0.01168687455356121, -0.010023919865489006, -0.016694216057658195, -0.02730940841138363, -0.011160272173583508, 0.02243140898644924, 0.01686974987387657, 0.00015763423289172351, -0.04689531773328781, 0.06533563137054443, 0.029748408123850822, 0.03336995467543602, 0.006975170224905014, 0.01055052224546671, 0.057094771414995193, 0.08758226782083511, -0.0002859646629076451, 0.0014793366426602006, -0.024574771523475647, 0.049334317445755005, -0.0014562399592250586, 0.029360385611653328, 0.0257573164999485, -0.010698340833187103, 0.0035753522533923388, 0.03477422520518303, 0.015040499158203602, 0.00009512907854514197, 0.010384227149188519, -0.04427154362201691, 0.01771046593785286, 0.020528249442577362, 0.026311635971069336, 0.04242381826043129, -0.09098208695650101, -0.025202998891472816, -0.0016514061717316508, -0.01653715781867504, -0.060938041657209396, -0.030875522643327713, -0.010190215893089771, 0.015289942733943462, -0.021692316979169846, -0.001508207293227315, 0.04623013362288475, -0.036640431731939316, -0.01254606805741787, -0.04785613343119621, -0.05580136179924011, 0.03813708946108818, 0.02954515814781189, 0.017922954633831978, -0.00048473969218321145, -0.020380431786179543, -0.04220208898186684, -0.0169159434735775, 0.030875522643327713, 0.005108965560793877, -0.12320645153522491, -0.0209532268345356, 0.012398249469697475, -0.003910252824425697, -0.025073658674955368, 0.016758885234594345, 0.049666907638311386, -0.017424067482352257, 0.058240361511707306, 0.016648022457957268, 0.054729681462049484, -0.020454339683055878, 0.01517907902598381, 0.06577908992767334, -0.012971045449376106, 0.018384885042905807, -0.010836919769644737, 0.06951149553060532, -0.009206300601363182, 0.005686380434781313, 0.045343223959207535, 0.0635618194937706, 0.07468513399362564, 0.0339612253010273, -0.023484613746404648, -0.02843652106821537, -0.057094771414995193, 0.021230386570096016, 0.005390744190663099, 0.05654045194387436, -0.03749038651585579, -0.069068044424057, 0.027678953483700752, -0.052660226821899414, 0.003919491544365883, -0.01605674996972084, -0.0292495209723711, -0.017830567434430122, -0.024260658770799637, 0.014920397661626339, 0.013765567913651466, 0.017756657674908638, -0.12793663144111633, -0.022191204130649567, -0.040760863572359085, -0.023225931450724602, 0.027198543772101402, -0.005612471606582403, -0.0905386358499527, -0.003621545387431979, -0.02638554386794567, -0.0011929388856515288, 0.012703124433755875, 0.08484763652086258, 0.051551587879657745, -0.03449706733226776, -0.03721322491765022, 0.03673281520605087, 0.006610244046896696, 0.004018806852400303, -0.037120841443538666, 0.02209881693124771, 0.0015994388377293944, -0.08492154628038406, 0.032316748052835464, -0.023743294179439545, 0.0016548706917092204, 0.030690748244524002, -0.0337025448679924, 0.03547636419534683, -0.023780249059200287, -0.02159993164241314, -0.05229068174958229, 0.08366508781909943, 0.010374988429248333, -0.033776454627513885, 0.008591931313276291, -0.051255952566862106, 0.0015451618237420917, 0.012555306777358055, 0.05406449735164642, -0.016906704753637314, -0.015631772577762604, -0.017830567434430122, -0.01578882895410061, -0.0028385708574205637, 0.02163688652217388, -0.027050726115703583, -0.05018427222967148, 0.03909790888428688, -0.012583022005856037, 0.023262886330485344, -0.00833324994891882, -0.010726056061685085, -0.024574771523475647, -0.033610157668590546, 0.08351726830005646, 0.00800989754498005, -0.07664372771978378, 0.029101703315973282, -0.005617090500891209, -0.008961477316915989, 0.017581123858690262, 0.08676926791667938, -0.03131897747516632, 0.0794522687792778, -0.010421181097626686, -0.044714998453855515, -0.06400527060031891, -0.05528399720788002, -0.011280374601483345, 0.01096626091748476, -0.002138744341209531, -0.002845499897375703, -0.04829958826303482, 0.06411613523960114, 0.005658664740622044, 0.03839576989412308, -0.016527919098734856, -0.036141544580459595, 0.027586568146944046, -0.0724678635597229, -0.018135443329811096, 0.016805078834295273, 0.0223944541066885, 0.01597360149025917, 0.042017318308353424, -0.004138908814638853, -0.05317758768796921, -0.020546726882457733, 0.042682498693466187, 0.038543589413166046, -0.06917890906333923, 0.017405590042471886, 0.01168687455356121, 0.044234588742256165, 0.009478840976953506, -0.030616840347647667, -0.05288195237517357, -0.0298592709004879, -0.026588793843984604, -0.03174395486712456, 0.04120431840419769, 0.004268249962478876, 0.07147008925676346, -0.05181027203798294, 0.044788908213377, -0.0063330852426588535, 0.054877497255802155, 0.011603727005422115, -0.001635238528251648, 0.020713021978735924, 0.017802851274609566, 0.014966590330004692, -0.052992817014455795, 0.021248862147331238, -0.03713931515812874, -0.02176622673869133, -0.04053913429379463, 0.0263670664280653, 0.011853169649839401, 0.0035014429595321417, 0.008813658729195595, 0.009820669889450073, 0.016527919098734856, 0.02716159075498581, 0.017072999849915504, -0.020398909226059914, -0.02860281802713871, 0.006661056540906429, -0.04763440787792206, -0.03654804453253746, -0.012730840593576431, 0.004360636230558157, -0.030136430636048317, 0.03887617960572243, -0.032630860805511475, -0.05447099730372429, -0.038358818739652634, 0.047745272517204285, -0.05990331619977951, 0.07498077303171158, -0.005510846618562937, -0.008287056349217892, -0.05088640749454498, -0.005954300984740257, -0.01485572662204504, -0.029840795323252678, -0.08750835806131363, -0.015548624098300934, -0.036289364099502563, -0.03209502249956131, -0.027327885851264, 0.016112180426716805, -0.017581123858690262, -0.02827022597193718, 0.02049129456281662, -0.06001418083906174, 0.04353245347738266, 0.043606363236904144, -0.034718792885541916, 0.050627727061510086, 0.02845499850809574, 0.037582769989967346, -0.044899772852659225, -0.03351777046918869, 0.0024066646583378315, -0.011474385857582092, -0.006494760978966951, -0.01567796617746353, 0.03235370293259621, -0.06818113476037979, -0.03880226984620094, -0.026792043820023537, -0.042645543813705444, -0.04526931792497635, -0.03573504462838173, 0.0023200525902211666, -0.018809862434864044, 0.014449226669967175, -0.0028431902173906565, -0.005547801032662392, -0.002912479918450117, -0.040132634341716766, -0.02243140898644924, 0.027124635875225067, -0.0010358820436522365, -0.0025614118203520775, -0.0028362611774355173, -0.011834693141281605, 0.011261897161602974, 0.0278082937002182, 0.07590463757514954, -0.022597704082727432, -0.09696872532367706, 0.06736813485622406, 0.017849044874310493, 0.008735130541026592, 0.06843981891870499, 0.06936367601156235, 0.024851931259036064, 0.021969476714730263, 0.05672522634267807, 0.03721322491765022, -0.011169510893523693, -0.08277817815542221, -0.026404021307826042, 0.01383023802191019, -0.04460413381457329, 0.03749038651585579, -0.03765667974948883, -0.03761972486972809, 0.03139288350939751, 0.012601499445736408, 0.05938595160841942, -0.019585909321904182, 0.013451454229652882, -0.008554977364838123, 0.06104890629649162, 0.011649919673800468, 0.026089908555150032, -0.005095107946544886, 0.01413511298596859, 0.020565204322338104, 0.046599678695201874, 0.028177840635180473, -0.07087881863117218, -0.01485572662204504, 0.018717477098107338, 0.014541612938046455, -0.056318726390600204, -0.015225272625684738, -0.0031388266943395138, 0.011086363345384598, 0.004155076574534178, 0.026440976187586784, -0.0036677385214716196, 0.031097248196601868, 0.012832465581595898, 0.007982181385159492, 0.09186899662017822, 0.03579047694802284, 0.0021814729552716017, 0.0005947371828369796, 0.07265263050794601, 0.04419763386249542, -0.041536908596754074, -0.058388181030750275, -0.06182495132088661, 0.0047232527285814285, -0.02080540917813778, 0.045675817877054214, 0.025812748819589615, -0.02080540917813778, 0.008143858052790165, -0.01984458975493908, -0.030783135443925858, -0.04530627280473709, 0.014633999206125736, 0.01461552269756794, -0.0017622698796913028, -0.050295133143663406, 0.005270641762763262, 0.0021202669013291597, 0.07512858510017395, -0.005150539800524712, -0.002388187451288104, 0.0076172552071511745, 0.004725562408566475, 0.03083856776356697, -0.07121140509843826, -0.03444163501262665, -0.0724678635597229, -0.008388681337237358, 0.03229827061295509, -0.003697764128446579, -0.013349829241633415, 0.04841045290231705, -0.03292649984359741, 0.00026156887179240584, -0.04116736352443695, 0.008578073233366013, 0.03619697690010071, -0.027845248579978943, 0.07863926887512207, 0.02555406652390957, 0.05110813304781914, 0.03446011245250702, 0.00833324994891882, -0.024408476427197456, 0.008504164405167103, 0.016823556274175644, -0.0019920808263123035, 0.028177840635180473, 0.023318316787481308, -0.04220208898186684, 0.004489976912736893, 0.012980283237993717, -0.06540954113006592, 0.012074897065758705, 0.024223703891038895, 0.0007777776918374002, -0.004947289824485779, -0.017072999849915504, 0.03307431563735008, 0.017026806250214577, 0.000056803175539243966, -0.019271794706583023, 0.001525529776699841, -0.002653798321262002, 0.013285158202052116, -0.026163816452026367, -0.0013546149712055922, -0.049962542951107025, 0.019585909321904182, 0.027253976091742516, -0.04212817922234535, -0.0025406249333173037, 0.030930953100323677, 0.010624431073665619, -0.0009273280738852918, 0.061381496489048004, 0.023318316787481308, 0.030690748244524002, -0.024574771523475647, -0.045195408165454865, 0.024353044107556343, -0.024223703891038895, 0.053768862038850784, 0.01969677209854126, 0.07826972752809525, 0.048225678503513336, -0.050147317349910736, 0.04589754343032837, 0.07195049524307251, 0.015493192709982395, -0.012010226957499981, 0.0007564133265987039, -0.018976159393787384, -0.0020810028072446585, 0.04464108869433403, -0.011973272077739239, 0.0169159434735775, -0.04246077314019203, 0.007298522628843784, -0.009312544949352741, 0.014273692853748798, -0.013728613033890724, 0.004697846248745918, 0.030783135443925858, -0.011391238309442997, 0.035513315349817276, 0.009700567461550236, -0.004356016870588064, 0.02241293154656887, -0.042017318308353424, 0.037915363907814026, -0.022006431594491005, 0.008633505553007126, 0.04161081835627556, 0.07390908896923065, -0.024667158722877502, 0.04438240826129913, -0.008157715201377869, 0.02097170427441597, 0.002128350781276822, 0.01906854473054409, 0.01445846538990736, -0.021562976762652397, -0.054249271750450134, 0.017026806250214577, -0.026293158531188965, -0.03717627003788948, -0.01906854473054409, -0.013377545401453972, -0.040613044053316116, 0.009746761061251163, -0.05162549763917923, -0.012250431813299656, 0.005704857874661684, 0.06925281882286072, -0.003205806715413928, -0.044899772852659225, -0.0024551674723625183, 0.0023177429102361202, 0.026311635971069336, 0.0010664850706234574, -0.01986306719481945, 0.020731499418616295, -0.0367143414914608, -0.04541713371872902, 0.03924572467803955, -0.0527341328561306, -0.0467105433344841, 0.01940113492310047, -0.06869849562644958, -0.03414599969983101, 0.035956770181655884, 0.012019465677440166, -0.03346233814954758, 0.08699099719524384, -0.005104346200823784, -0.03414599969983101, -0.014236737973988056, 0.011834693141281605, -0.031706999987363815, -0.031097248196601868, -0.023281363770365715, -0.05129290744662285, -0.06430090963840485, 0.037564292550086975, 0.035199202597141266, -0.045195408165454865, 0.00920168124139309, 0.061270635575056076, 0.0358828641474247, 0.018625089898705482, -0.04113040864467621, -0.009903817437589169, -0.013294396921992302, -0.048558272421360016, -0.03494052216410637, -0.030432067811489105, 0.01206565834581852, -0.017387112602591515, -0.03832186385989189, -0.001531303976662457, -0.012259669601917267, -0.03194720298051834, -0.010938544757664204, 0.0039887810125947, 0.09977726638317108, 0.02254227176308632, 0.010180977173149586, -0.012823226861655712, -0.02047281712293625, 0.04438240826129913, -0.02317049913108349, 0.04530627280473709, -0.02557254396378994, -0.020786931738257408, 0.02222815901041031, -0.011566772125661373, -0.018763670697808266, 0.04737572744488716, -0.01081844326108694, -0.013950340449810028, 0.022523794323205948, 0.008490306325256824, -0.012740079313516617, -0.015779590234160423, 0.04024349898099899, 0.0009862243896350265, 0.01436607912182808, 0.01771046593785286, -0.009280210360884666, -0.003697764128446579, 0.0121580446138978, -0.02115647681057453, 0.00271846866235137, -0.08115217834711075, 0.04161081835627556, 0.05051686242222786, -0.016444772481918335, -0.0045361705124378204, 0.004697846248745918, 0.008712033741176128, -0.03065379522740841, 0.02147058956325054, 0.0005179410218261182, 0.05794472619891167, 0.06611167639493942, 0.009839147329330444, 0.007806647568941116, -0.03155918046832085, -0.03004404529929161, 0.050923362374305725, -0.04593449831008911, 0.007437102030962706, 0.016047511249780655, 0.028528908267617226, 0.017802851274609566, -0.06459654122591019, -0.020417384803295135, -0.007303141988813877, -0.05938595160841942, -0.007169181481003761, 0.013626988045871258, -0.11455908417701721, 0.008813658729195595, -0.008143858052790165, 0.013451454229652882, 0.06104890629649162, 0.019955454394221306, -0.0008984573651105165, -0.037434954196214676, 0.017765896394848824, 0.021027136594057083, 0.03235370293259621, -0.002547553973272443, -0.01301723811775446, 0.08159563690423965, -0.04064999893307686, 0.004845664836466312, 0.04977777227759361, 0.022265112027525902, -0.011187988333404064, -0.039652224630117416, 0.04944517835974693, 0.03244609013199806, 0.051699407398700714, -0.03032120317220688, -0.03198415786027908, 0.020047839730978012, 0.0067118690349161625, -0.001597129157744348, 0.00615755096077919, 0.056651316583156586, -0.040095679461956024, -0.06489218026399612, -0.01622304506599903, 0.009169346652925014, -0.030598362907767296, 0.0012529899831861258, 0.01587197743356228, -0.02352156676352024, -0.0558752715587616, -0.011058647185564041, -0.059792451560497284, 0.03617849946022034, -0.04427154362201691, 0.016065988689661026, 0.027715908363461494, -0.06526172161102295, 0.04493672400712967, -0.012749318033456802, 0.03270477056503296, 0.02224663645029068, 0.05495140701532364, 0.004813329316675663, 0.00635618157684803, 0.002132970141246915, 0.007492533884942532, -0.00959894247353077, 0.03627088665962219, -0.022209681570529938, 0.01908702217042446, 0.030579885467886925, 0.015003545209765434, -0.03510681539773941, 0.06969626992940903, -0.010042397305369377, -0.030247295275330544, -0.08935608714818954, -0.018052294850349426, -0.009104675613343716, -0.05942290648818016, 0.002492122119292617, 0.008236244320869446, -0.00179575989022851, 0.009284828789532185 ]
714,725
sqlalchemy_jsonfield.jsonfield
load_dialect_impl
Select impl by dialect. :return: dialect implementation depends on decoding method :rtype: TypeEngine
def load_dialect_impl(self, dialect: Dialect) -> TypeEngine[typing.Any]: """Select impl by dialect. :return: dialect implementation depends on decoding method :rtype: TypeEngine """ # types are handled by DefaultDialect, Dialect class is abstract if self.__use_json(dialect): return dialect.type_descriptor(self.__json_type) # type: ignore[arg-type] return dialect.type_descriptor(sqlalchemy.UnicodeText) # type: ignore[arg-type]
(self, dialect: 'Dialect') -> 'TypeEngine[typing.Any]'
[ 0.060490649193525314, -0.07936541736125946, 0.008018262684345245, 0.03056166134774685, 0.003372063860297203, 0.015737762674689293, 0.021036405116319656, -0.005786329507827759, -0.05026242136955261, -0.019876504316926003, 0.02950720489025116, -0.0187166016548872, -0.06210748478770256, 0.012143823318183422, 0.018206948414444923, 0.014164865016937256, -0.053320348262786865, 0.056835200637578964, 0.003640071488916874, -0.06312679499387741, -0.0027218156028538942, 0.009323151782155037, -0.01709098182618618, -0.021247297525405884, 0.009938252158463001, 0.009718573652207851, -0.03328567370772362, -0.00597964646294713, 0.01330372504889965, -0.06484907120466232, -0.005201985128223896, -0.04832925274968147, 0.05198470130562782, 0.005839052610099316, -0.03676538169384003, 0.03052651323378086, 0.009709786623716354, 0.039225779473781586, 0.061720848083496094, -0.009990974329411983, -0.08189611881971359, 0.028171561658382416, 0.0046615758910775185, 0.005382121540606022, -0.06224807724356651, -0.007069251500070095, -0.013400384224951267, -0.06347827613353729, 0.011432064697146416, 0.025605717673897743, 0.002201177878305316, 0.005474386271089315, 0.0007309799548238516, 0.023268338292837143, -0.02224902994930744, -0.057327281683683395, -0.07444462180137634, 0.0017145901219919324, -0.033496566116809845, 0.11121000349521637, 0.01634407415986061, 0.00953404325991869, 0.00507457135245204, 0.03848765790462494, -0.02386586368083954, 0.02321561612188816, -0.020456453785300255, -0.01577291078865528, 0.018786897882819176, 0.004832925274968147, 0.00322048575617373, -0.03414681553840637, 0.0321609228849411, 0.04347875341773033, 0.028066115453839302, 0.0003067259967792779, -0.008378534577786922, 0.0195953156799078, 0.06593867391347885, 0.023848289623856544, -0.038909442722797394, -0.001601455733180046, -0.016414372250437737, -0.0005546880420297384, 0.03792528435587883, -0.027872798964381218, -0.04938371106982231, 0.04196736589074135, -0.014261523261666298, -0.10270405560731888, 0.002348362235352397, -0.007899636402726173, 0.00020265334751456976, 0.07205452024936676, -0.020772792398929596, -0.019753484055399895, 0.03933122381567955, 0.03599211201071739, 0.002431840170174837, -0.020069820806384087, -0.007218632847070694, 0.06706342846155167, -0.012135036289691925, -0.051422324031591415, -0.016713134944438934, -0.013611274771392345, 0.0008787136757746339, -0.015649890527129173, -0.08140403777360916, 0.01643194630742073, -0.03108889050781727, 0.002640534657984972, 0.03933122381567955, 0.002398888347670436, 0.0323190912604332, -0.0349552296102047, -0.043408457189798355, -0.009112261235713959, 0.004714298993349075, 0.03330324962735176, -0.0684342235326767, 0.0349552296102047, 0.010360034182667732, 0.04207281023263931, 0.055077772587537766, 0.0020539932884275913, 0.031159186735749245, -0.023883437737822533, 0.03423468396067619, 0.004723086021840572, 0.08147433400154114, 0.01077303010970354, 0.008549883961677551, -0.01594865322113037, -0.008194005116820335, 0.034691616892814636, -0.056975796818733215, 0.00009109789243666455, 0.021440614014863968, 0.01475360244512558, -0.03432255610823631, -0.029876265674829483, 0.016809793189167976, -0.037152014672756195, -0.046360936015844345, 0.01991165243089199, -0.07578026503324509, -0.039753008633852005, -0.04316241666674614, -0.04745053872466087, 0.02810126356780529, -0.019314127042889595, 0.006089485716074705, -0.006019188556820154, -0.05268767103552818, -0.008317025378346443, -0.02766190655529499, 0.05711638927459717, -0.05729213356971741, -0.016370436176657677, 0.018751749768853188, -0.04056142270565033, -0.02251264452934265, -0.012240481562912464, -0.000559081556275487, 0.021071555092930794, -0.027029233053326607, -0.07943572103977203, 0.014200013130903244, 0.01868145354092121, -0.047766875475645065, 0.005188804119825363, 0.039225779473781586, 0.055253516882658005, -0.016572540625929832, 0.05947134271264076, 0.027503738179802895, 0.04175647348165512, 0.020017098635435104, 0.0024933500681072474, 0.08175551891326904, -0.006063124630600214, -0.0640406534075737, 0.010667583905160427, 0.02198541723191738, 0.00874320138245821, -0.014384543523192406, -0.0161595456302166, 0.044954992830753326, 0.0016333090607076883, 0.003240256803110242, -0.028206709772348404, 0.009244067594408989, -0.041826773434877396, 0.018470561131834984, 0.004472652450203896, 0.012934665195643902, 0.061685699969530106, -0.09377632290124893, 0.031422801315784454, 0.014674518257379532, 0.02485002391040325, 0.023373784497380257, 0.05342579260468483, -0.06108817458152771, -0.039225779473781586, 0.028241857886314392, -0.006019188556820154, 0.005232740193605423, -0.07145699858665466, -0.019577741622924805, -0.055780746042728424, -0.04892677813768387, 0.05465599149465561, 0.029981711879372597, -0.035517606884241104, -0.05163321644067764, -0.03351413831114769, -0.005992827471345663, 0.01217897143214941, 0.016352862119674683, 0.009024390019476414, 0.0017892807954922318, -0.01850571110844612, 0.06780155003070831, -0.06984016299247742, -0.05887381732463837, -0.06860996782779694, 0.031563397496938705, -0.021616356447339058, -0.0061553893610835075, -0.01114208996295929, 0.05518322065472603, -0.006049943622201681, 0.08435651659965515, 0.001669556018896401, -0.03484978526830673, -0.007192271761596203, 0.0611233226954937, 0.009015602059662342, 0.048294104635715485, 0.016853729262948036, -0.044111426919698715, -0.00605433713644743, -0.060104016214609146, 0.05922530218958855, -0.0073416526429355145, 0.010597286745905876, 0.04175647348165512, -0.023444080725312233, -0.02590448036789894, -0.035921815782785416, 0.023936161771416664, 0.0030579236336052418, 0.014103354886174202, -0.02427007257938385, -0.024305220693349838, -0.007653596345335245, 0.04889163002371788, -0.05599163472652435, 0.009288003668189049, 0.04161588102579117, -0.0029634619131684303, 0.05711638927459717, -0.002517514629289508, -0.05075450241565704, 0.001438893610611558, 0.010201865807175636, 0.018312392756342888, -0.030016859993338585, 0.01806635409593582, 0.0447441004216671, -0.015509296208620071, -0.027943095192313194, 0.02342650666832924, 0.01726672425866127, -0.03056166134774685, -0.01087847538292408, 0.028698788955807686, -0.015605955384671688, 0.0016453913412988186, -0.013488255441188812, 0.03240695968270302, 0.019718335941433907, -0.008418077602982521, 0.03620300441980362, -0.05929559841752052, -0.0652005523443222, 0.03154582157731056, 0.021440614014863968, -0.004995487164705992, -0.008273089304566383, -0.02251264452934265, 0.0450252890586853, 0.02444581501185894, 0.0206146240234375, 0.038733698427677155, 0.010729094035923481, 0.04179162159562111, -0.1038288101553917, -0.035043101757764816, -0.0011038840748369694, 0.07346046715974808, 0.06773125380277634, -0.010008549317717552, -0.024287646636366844, -0.010720307007431984, -0.04136984050273895, -0.04910252243280411, -0.011159664019942284, -0.017987269908189774, 0.012029590085148811, 0.0029129358008503914, 0.03026289865374565, -0.003169959643855691, 0.01305768545717001, -0.03295176476240158, -0.007280142977833748, 0.0053337919525802135, 0.006862754002213478, -0.046220339834690094, 0.05100054293870926, 0.004283729009330273, -0.04042083024978638, 0.03725745901465416, -0.008374141529202461, 0.009121048264205456, -0.013092833571135998, 0.0046220337972044945, 0.02096610888838768, 0.014384543523192406, 0.003967392258346081, 0.05416391044855118, 0.03658963739871979, 0.03571092337369919, -0.009982187300920486, 0.03876884654164314, 0.0024230529088526964, -0.00018851154891308397, 0.018031204119324684, 0.06070154160261154, -0.057503022253513336, 0.024428240954875946, -0.014384543523192406, 0.01854085922241211, 0.015069940127432346, -0.01568503864109516, -0.032178495079278946, 0.05462084338068962, 0.014999642968177795, 0.02708195522427559, -0.07191392779350281, -0.020579474046826363, -0.01924382895231247, -0.02915572002530098, -0.03170398995280266, -0.023531952872872353, 0.031159186735749245, -0.05774906277656555, -0.03817132115364075, 0.02664259821176529, -0.019894078373908997, -0.023285912349820137, 0.052336186170578, -0.051773808896541595, 0.03757379576563835, -0.025078488513827324, 0.013778231106698513, 0.045657962560653687, 0.024147052317857742, -0.007732680533081293, 0.005434844177216291, -0.0010313901584595442, 0.05026242136955261, 0.004569311160594225, -0.032969336956739426, -0.019718335941433907, 0.004753841087222099, -0.010324886068701744, 0.002581221517175436, -0.022582942619919777, 0.0042683519423007965, -0.00636628083884716, 0.016352862119674683, 0.015052365139126778, -0.052301038056612015, -0.009674637578427792, -0.043408457189798355, -0.027767352759838104, -0.01014914270490408, -0.0728277936577797, 0.03214334696531296, -0.030016859993338585, 0.028487898409366608, -0.012055952101945877, 0.036624785512685776, -0.07082432508468628, 0.04836440086364746, -0.021124277263879776, 0.10171989351511002, -0.021335167810320854, -0.05216044560074806, 0.08182581514120102, 0.010570925660431385, -0.04523618146777153, 0.03518369793891907, 0.03701142221689224, -0.010395183227956295, 0.01906808651983738, -0.02716982737183571, 0.0037455169949680567, 0.007271355949342251, -0.05743272602558136, -0.018962642177939415, -0.01775001734495163, 0.0015882749576121569, 0.09089414775371552, -0.005751180928200483, 0.007772222626954317, 0.03122948482632637, -0.003139204578474164, 0.026800768449902534, -0.04607974737882614, 0.0021122079342603683, -0.048294104635715485, 0.07964660972356796, 0.023971309885382652, 0.04832925274968147, -0.06196688860654831, 0.020315861329436302, 0.0034753126092255116, -0.014727241359651089, -0.0038070271257311106, -0.010693945921957493, 0.04491984471678734, -0.007855700328946114, 0.020913386717438698, -0.04600944742560387, -0.029050273820757866, -0.06386490911245346, -0.016133183613419533, 0.02678319253027439, -0.004709905479103327, 0.057854510843753815, 0.04144013673067093, -0.055780746042728424, -0.05061390995979309, 0.01947229541838169, -0.008246728219091892, -0.019806206226348877, -0.02655472792685032, 0.006840785965323448, 0.03718716278672218, 0.05173866078257561, 0.02687106467783451, -0.0317215658724308, 0.053847573697566986, 0.0037630912847816944, 0.06245896965265274, 0.07964660972356796, 0.016528604552149773, -0.0097976578399539, 0.030139880254864693, -0.04755598306655884, 0.03527156636118889, 0.014709667302668095, -0.038382213562726974, -0.05553470551967621, -0.005184410605579615, 0.011106940917670727, 0.034428004175424576, 0.06678224354982376, 0.0195953156799078, -0.03669508546590805, -0.06896144896745682, -0.0031062529888004065, 0.03203790262341499, -0.009454959072172642, 0.011678105220198631, -0.024252498522400856, -0.007073645014315844, 0.039401520043611526, -0.033988647162914276, 0.008527915924787521, -0.013910037465393543, -0.0045824917033314705, 0.029788393527269363, -0.04175647348165512, -0.03894459083676338, 0.00761844776570797, 0.010790604166686535, 0.04119409620761871, 0.06692283600568771, -0.02564086578786373, 0.05929559841752052, -0.031774286180734634, 0.01894506625831127, -0.00025963244843296707, -0.011792337521910667, -0.0497000478208065, 0.06586837768554688, 0.0036049229092895985, -0.02999928593635559, -0.03880399838089943, 0.026941360905766487, -0.058030251413583755, 0.02897997759282589, 0.03616785630583763, -0.002587811788544059, 0.011027856729924679, -0.04344360530376434, 0.011080579832196236, -0.03789013251662254, -0.003429180243983865, 0.027292847633361816, 0.010360034182667732, 0.05216044560074806, -0.0010017335880547762, -0.03405894339084625, 0.0030974657274782658, -0.03237181156873703, 0.010456693358719349, -0.01836511678993702, 0.024990618228912354, -0.00602358253672719, 0.06586837768554688, 0.02377799153327942, 0.022231455892324448, 0.049137670546770096, -0.031247058883309364, 0.02514878660440445, 0.0096482764929533, -0.03876884654164314, 0.01462179608643055, -0.00761844776570797, -0.014191226102411747, -0.02973567135632038, 0.01669556088745594, 0.019929226487874985, -0.014516349881887436, 0.0010868590325117111, -0.012758922763168812, -0.041158948093652725, -0.026888638734817505, -0.013901250436902046, -0.07922482490539551, 0.018154224380850792, 0.00389709509909153, -0.004758234601467848, 0.03810102492570877, -0.048786185681819916, 0.04407627880573273, 0.01977105811238289, -0.025131210684776306, 0.005329398438334465, -0.027257699519395828, 0.0349552296102047, 0.04667727276682854, 0.0004481439827941358, 0.024867597967386246, -0.009217706508934498, -0.004061853978782892, -0.01160780806094408, 0.09286246448755264, 0.035746071487665176, 0.0334789901971817, 0.006801243871450424, 0.06347827613353729, -0.05187925696372986, -0.02541239932179451, -0.030104730278253555, -0.013532190583646297, 0.06077183783054352, -0.02073764242231846, 0.028241857886314392, -0.004850499797612429, -0.006678224075585604, 0.02233690209686756, 0.0010028319666162133, -0.06340797990560532, -0.05694064870476723, 0.004683543927967548, -0.041686177253723145, -0.0014235161943361163, 0.003477509366348386, -0.02532452903687954, -0.010720307007431984, 0.05486688390374184, 0.006511268671602011, 0.008967272937297821, 0.01021943986415863, 0.03325052559375763, 0.008998028002679348, 0.00997340027242899, 0.01301374938338995, -0.0024450209457427263, -0.041861921548843384, -0.023549526929855347, 0.011423277668654919, -0.05180896073579788, -0.0789436399936676, 0.0555698536336422, -0.028874531388282776, -0.051598068326711655, 0.03985845297574997, 0.00925285555422306, -0.05571044608950615, -0.004714298993349075, 0.02386586368083954, -0.03687082603573799, 0.005056997295469046, -0.005593012552708387, -0.011133302003145218, -0.030139880254864693, 0.013874889351427555, -0.032705724239349365, 0.007925997488200665, -0.007688744924962521, 0.02052675187587738, 0.002550466451793909, 0.010237014852464199, 0.08435651659965515, 0.04161588102579117, -0.03637874498963356, -0.008475193753838539, 0.03848765790462494, -0.043232712894678116, -0.00100447959266603, 0.005505141336470842, -0.004863680340349674, -0.02096610888838768, 0.004652788862586021, 0.013444319367408752, -0.018927492201328278, -0.02637898549437523, -0.017284298315644264, -0.004916402976959944, -0.029542354866862297, 0.04903222247958183, 0.0053250049240887165, -0.010096420533955097, 0.016308926045894623, 0.038909442722797394, 0.011071792803704739, 0.014463627710938454, -0.009024390019476414, 0.006260835099965334, 0.033355969935655594, -0.0005132236983627081, 0.007029709406197071, 0.018154224380850792, -0.0148414745926857, 0.06368916481733322, -0.05325004830956459, 0.0296829491853714, 0.018417838960886, -0.05100054293870926, 0.01669556088745594, 0.06182629615068436, 0.027204975485801697, 0.003589545376598835, 0.04804806411266327, -0.05289856344461441, 0.016326500102877617, 0.0394718199968338, 0.010869688354432583, -0.05128173157572746, -0.022758685052394867, 0.036835677921772, -0.032125771045684814, 0.006678224075585604, 0.03122948482632637, 0.005566651001572609, -0.02818913571536541, -0.038909442722797394, -0.017389744520187378, 0.031194336712360382, -0.021739376708865166, 0.06059609726071358, 0.03026289865374565, -0.02242477424442768, 0.012565605342388153, -0.012530457228422165, 0.04966489598155022, -0.0953228622674942, 0.04105350375175476, -0.030192602425813675, -0.014718454331159592, 0.05504262447357178, -0.0842159166932106, -0.013207066804170609, -0.011792337521910667, -0.008861827664077282, 0.006498087663203478, 0.06266985833644867, -0.10769514739513397, 0.03091314807534218, -0.025113636627793312, -0.03137007728219032, 0.07054313272237778, 0.059963423758745193, -0.03368988260626793, -0.03038591891527176, -0.015184172429144382, 0.0681530311703682, 0.003158975625410676, -0.012249268591403961, 0.015931079164147377, 0.02035100944340229, -0.01530719269067049, 0.005918136797845364, -0.01868145354092121, -0.0004407298401929438, 0.032565128058195114, 0.06657134741544724, 0.03813617303967476, -0.024586409330368042, 0.047766875475645065, -0.039612412452697754, -0.04875103384256363, -0.012741348706185818, -0.04108865186572075, 0.011045430786907673, 0.008237941190600395, 0.029173294082283974, 0.029349036514759064, -0.014595434069633484, -0.01030731201171875, 0.015755336731672287, 0.09581494331359863, -0.02532452903687954, -0.005434844177216291, -0.012548031285405159, -0.028786661103367805, -0.05627282336354256, -0.03493765741586685, 0.03736290708184242, -0.03569335117936134, -0.07212481647729874, -0.03467404097318649, -0.09307335317134857, 0.03339112177491188, -0.04927826300263405, 0.06361886858940125, 0.07725650817155838, -0.0191559586673975, 0.04312726855278015, 0.005496354307979345, 0.0053953020833432674, 0.07187878340482712, 0.006603533402085304, 0.06976986676454544, -0.006212505977600813, 0.07521789520978928, -0.001930973376147449, -0.03377775475382805, 0.060139164328575134, -0.020772792398929596, 0.010254588909447193, -0.007249387912452221, -0.018734175711870193, 0.02219630777835846, -0.01854085922241211, -0.08428622037172318, -0.025359677150845528, -0.06836392730474472, 0.04421687126159668, -0.016792219132184982 ]
714,726
sqlalchemy_jsonfield.jsonfield
process_bind_param
Encode data, if required. :return: encoded value if required :rtype: typing.Union[str, typing.Any]
def process_bind_param(self, value: typing.Any, dialect: Dialect) -> str | typing.Any: """Encode data, if required. :return: encoded value if required :rtype: typing.Union[str, typing.Any] """ if self.__use_json(dialect) or value is None: return value return self.__json_codec.dumps(value, ensure_ascii=not self.__enforce_unicode)
(self, value: 'typing.Any', dialect: 'Dialect') -> 'str | typing.Any'
[ 0.00627613440155983, -0.05912665277719498, 0.044553183019161224, 0.013254919089376926, -0.02526068314909935, -0.011103596538305283, 0.00040960777550935745, -0.004313487093895674, 0.06204134598374367, -0.09007792919874191, 0.021252978593111038, -0.00886552780866623, 0.003361440496519208, -0.018147440627217293, 0.02411562390625477, 0.05652424693107605, 0.00736047001555562, 0.0315932035446167, 0.07529626786708832, 0.012049137614667416, 0.011407210491597652, -0.005942159332334995, 0.023473696783185005, 0.03020525351166725, -0.043893907219171524, -0.00734745804220438, 0.0074819158762693405, -0.02807128056883812, -0.037405241280794144, 0.058918461203575134, 0.04611462727189064, -0.0945887640118599, 0.07661481946706772, -0.02657923474907875, 0.02323080599308014, 0.03830740973353386, -0.020229365676641464, 0.04698209464550018, -0.059300146996974945, -0.0888981744647026, -0.07605963945388794, 0.0007720469729974866, -0.07019554823637009, -0.0017761418130248785, 0.0018932500388473272, 0.02277972362935543, -0.02069779857993126, 0.05978592857718468, 0.001186263165436685, 0.048508837819099426, 0.003968668170273304, 0.017262622714042664, -0.0030730071011930704, 0.003868909552693367, -0.007395168766379356, -0.030673686414957047, 0.0024180684704333544, 0.026405740529298782, 0.01251757051795721, 0.011086247861385345, 0.002637104131281376, 0.018234187737107277, 0.021495869383215904, -0.034195609390735626, 0.02971947006881237, 0.019032258540391922, -0.052256301045417786, -0.013280943036079407, 0.00002185613993788138, 0.004341679625213146, 0.009420707821846008, -0.06950157880783081, -0.04580233618617058, 0.07793337106704712, -0.00031066214432939887, 0.020350810140371323, -0.01098215114325285, 0.0492028146982193, -0.004961919970810413, -0.004109632223844528, 0.06981386244297028, -0.022033700719475746, 0.007707457523792982, -0.017210574820637703, 0.011181669309735298, -0.03490693122148514, -0.14282001554965973, 0.07987649738788605, -0.006649145856499672, -0.009576852433383465, 0.03202693536877632, -0.05728761851787567, 0.0002157827839255333, 0.13421472907066345, 0.019014909863471985, -0.004905534442514181, 0.021530568599700928, -0.004927221219986677, 0.02128767780959606, 0.011146970093250275, -0.015146000310778618, 0.0322524793446064, 0.007278060540556908, -0.006761916913092136, -0.012144559063017368, -0.0269088726490736, 0.05409533530473709, -0.018910814076662064, -0.04448378458619118, -0.008709384128451347, -0.014686241745948792, -0.011997089721262455, -0.02349104732275009, -0.06811362504959106, 0.019292499870061874, 0.018251536414027214, -0.03230452537536621, -0.006388905458152294, 0.0030990312807261944, 0.03973005712032318, -0.0011645765043795109, 0.024948393926024437, 0.04000764712691307, -0.027585498988628387, 0.049723293632268906, 0.016169613227248192, 0.008180228061974049, 0.0159614197909832, -0.016143588349223137, -0.012040462344884872, 0.02855706214904785, 0.012370101176202297, -0.030465492978692055, 0.0006196977919898927, 0.003324572928249836, -0.007351795677095652, -0.05020907521247864, 0.014599494636058807, 0.055066902190446854, 0.019622137770056725, 0.02239803597331047, -0.026787428185343742, 0.025902610272169113, -0.030066458508372307, 0.06280472129583359, -0.013350340537726879, 0.04368571192026138, -0.02900814637541771, -0.032061636447906494, -0.04864763468503952, 0.029580675065517426, 0.0046149324625730515, -0.01887611486017704, 0.014556121081113815, -0.018425030633807182, 0.04198547452688217, 0.0037539699114859104, -0.053956542164087296, -0.0007189144962467253, 0.007451554294675589, 0.02389008179306984, -0.08154203742742538, 0.013064075261354446, -0.02146117016673088, 0.007542638573795557, 0.06676037609577179, 0.006662158295512199, 0.005191798787564039, 0.05933484435081482, -0.020871292799711227, 0.01799129694700241, -0.042783547192811966, -0.0005212943651713431, 0.030083807185292244, 0.10069574415683746, 0.0365377739071846, 0.009333960711956024, 0.038342107087373734, -0.00774649390950799, 0.010817332193255424, 0.0743940994143486, -0.01877201907336712, 0.02470550313591957, 0.027585498988628387, 0.0551362968981266, -0.053089071065187454, 0.02675272896885872, 0.0011840944644063711, 0.022519482299685478, 0.04469197615981102, 0.041464995592832565, -0.0035696327686309814, -0.021981650963425636, -0.05135413631796837, -0.010392272844910622, -0.03567030653357506, 0.06401917338371277, -0.032877057790756226, -0.04160378873348236, -0.0036325242836028337, -0.0013120460789650679, -0.08619166910648346, 0.025295382365584373, 0.01904960907995701, -0.02411562390625477, -0.04448378458619118, 0.019882377237081528, 0.009125768207013607, 0.023629842326045036, -0.1010427325963974, -0.0007818060112185776, -0.05773870274424553, -0.03043079562485218, -0.003209633519873023, 0.022363338619470596, -0.0604105070233345, -0.00400336692109704, -0.05399123951792717, 0.017583586275577545, 0.020437557250261307, -0.004359029233455658, 0.006453965790569782, 0.0127951605245471, -0.04028523713350296, 0.09347840398550034, -0.023647191002964973, -0.00850119162350893, -0.039764754474163055, 0.0551362968981266, 0.002348670968785882, -0.04132619872689247, 0.004523848183453083, -0.0022922854404896498, 0.024080924689769745, 0.012977329082787037, 0.005725292023271322, 0.0445878803730011, -0.0745328962802887, -0.04743317887187004, -0.01602214388549328, 0.045038964599370956, 0.018945511430501938, -0.023369600996375084, 0.008184565231204033, -0.050000883638858795, -0.018234187737107277, 0.02989296428859234, 0.08702444285154343, -0.0018791536567732692, 0.00736047001555562, -0.0009287334396503866, 0.005742641631513834, -0.04545534774661064, -0.05059076473116875, -0.012083835899829865, -0.030396096408367157, -0.01640382967889309, 0.0298756156116724, 0.0031684287823736668, 0.004532522987574339, -0.03896668553352356, 0.022189844399690628, -0.06027171015739441, 0.1025000810623169, -0.020281413570046425, -0.02735995687544346, -0.02356044389307499, -0.02300526387989521, -0.007850590161979198, 0.020212016999721527, 0.009229864925146103, -0.004187704063951969, -0.007985047996044159, -0.01183227077126503, -0.028418269008398056, 0.0011352994479238987, -0.000253056816291064, -0.01518937386572361, -0.004376378376036882, -0.029355134814977646, 0.019500691443681717, -0.045767638832330704, 0.03251272067427635, -0.05034787207841873, 0.026041405275464058, 0.026509838178753853, -0.008783118799328804, -0.030517542734742165, 0.0007048181723803282, 0.00400336692109704, 0.003706259187310934, 0.02850501425564289, -0.03841150552034378, 0.06440085917711258, -0.010175405070185661, -0.027307908982038498, 0.0019518041517585516, -0.02366454154253006, 0.07376952469348907, -0.04299173876643181, -0.018477078527212143, 0.041534390300512314, 0.059681832790374756, 0.019899727776646614, -0.02487899735569954, -0.01799129694700241, -0.0226235780864954, -0.04302643612027168, -0.10826006531715393, 0.007234687451273203, -0.010444320738315582, 0.026405740529298782, -0.004762402269989252, 0.014556121081113815, 0.02158261649310589, -0.0049011968076229095, 0.01521539781242609, 0.02827947400510311, -0.0044305953197181225, 0.022484783083200455, -0.01628238335251808, -0.06665627658367157, 0.001984334085136652, -0.0783497542142868, 0.057044729590415955, 0.0037149337586015463, 0.038550298660993576, 0.019119005650281906, 0.04486547037959099, 0.035809099674224854, -0.02741200476884842, 0.026232248172163963, 0.01166745088994503, 0.012266004458069801, 0.03941776975989342, -0.006649145856499672, -0.01750551350414753, -0.0028908387757837772, -0.02356044389307499, -0.012057811953127384, -0.0219643022865057, 0.001167829497717321, 0.07411650568246841, 0.02239803597331047, -0.0048014381900429726, -0.01695900969207287, -0.03889728710055351, 0.01136383693665266, 0.04601052775979042, -0.020107919350266457, -0.03612138703465462, -0.024740202352404594, -0.00367372902110219, -0.014217808842658997, -0.023265505209565163, -0.020992737263441086, 0.003708427771925926, -0.008639986626803875, -0.03081248141825199, 0.03261681646108627, 0.09361720085144043, -0.011537331156432629, 0.03520187363028526, 0.022883819416165352, 0.027863088995218277, 0.08084806799888611, -0.02356044389307499, -0.015553710050880909, 0.02762019634246826, 0.02416767179965973, -0.04111800715327263, 0.01224865484982729, -0.022432735189795494, -0.029754169285297394, -0.04673920199275017, 0.007880951277911663, 0.027932485565543175, 0.01064383890479803, -0.030777782201766968, -0.02531273104250431, 0.029025496914982796, -0.017739729955792427, -0.008327697403728962, -0.020333461463451385, 0.028331521898508072, -0.011962390504777431, 0.0445878803730011, -0.016811540350317955, -0.07095891982316971, -0.041083309799432755, -0.06870350241661072, 0.007061193697154522, -0.02723851054906845, 0.01651659980416298, -0.04243655875325203, -0.016091540455818176, 0.010288176126778126, 0.020506955683231354, -0.013497809879481792, 0.07095891982316971, -0.031194167211651802, -0.059300146996974945, 0.01166745088994503, -0.005530111491680145, -0.004536860156804323, -0.025555621832609177, 0.029042845591902733, 0.05728761851787567, 0.007069868501275778, 0.02069779857993126, -0.02508718892931938, -0.03560090810060501, -0.0206457506865263, 0.0029754170682281256, 0.030257301405072212, -0.008054445497691631, -0.010938777588307858, -0.0072650485672056675, -0.027602847665548325, 0.017583586275577545, 0.009628900326788425, 0.030344048514962196, -0.06245773285627365, 0.07987649738788605, 0.0019474667496979237, 0.040250539779663086, 0.06197195127606392, -0.021114183589816093, 0.007690108381211758, 0.023681890219449997, 0.0024397552479058504, -0.030239952728152275, -0.013627930544316769, -0.04254065454006195, 0.019674185663461685, 0.054893407970666885, 0.036572471261024475, -0.025781163945794106, 0.03567030653357506, 0.0010572272585704923, -0.027811039239168167, 0.053678952157497406, -0.014105037786066532, 0.04066692292690277, 0.03764813393354416, -0.021547917276620865, -0.01728864759206772, 0.04375511035323143, 0.01904960907995701, -0.007520951796323061, 0.04077101871371269, -0.0009954201523214579, 0.016863588243722916, -0.050556063652038574, -0.03246067091822624, -0.03372717648744583, 0.008943600580096245, -0.04274884611368179, -0.007026494946330786, -0.009099744260311127, 0.003138067200779915, -0.021652013063430786, 0.017956597730517387, -0.011927692219614983, 0.014512748457491398, 0.04431029036641121, -0.030031759291887283, 0.019986474886536598, -0.03167995065450668, 0.020385509356856346, 0.026405740529298782, 0.06682977080345154, 0.023733938112854958, 0.018078044056892395, 0.05426882952451706, 0.0008658419828861952, 0.01222263090312481, -0.02409827522933483, 0.01166745088994503, -0.031940191984176636, -0.0206457506865263, 0.03520187363028526, 0.01557973399758339, -0.01749683916568756, 0.026058753952383995, 0.004684329964220524, 0.04431029036641121, -0.0031033684499561787, 0.014530097134411335, 0.030864529311656952, 0.026735378429293633, 0.08827359229326248, 0.027915136888623238, -0.006731555797159672, 0.0206457506865263, 0.04035463556647301, -0.028869351372122765, -0.07418590784072876, 0.014226483181118965, 0.017583586275577545, -0.003198790131136775, 0.014382627792656422, -0.01222263090312481, -0.050937749445438385, 0.012612991966307163, -0.09042491763830185, 0.026318993419408798, 0.04156909137964249, -0.06016761437058449, 0.05503220111131668, -0.02873055636882782, 0.0009178901091217995, 0.023647191002964973, -0.03567030653357506, 0.02602405473589897, 0.009091069921851158, 0.04143029451370239, -0.0008571672951802611, -0.06162496283650398, -0.03261681646108627, -0.046426914632320404, 0.04309583455324173, -0.01816479116678238, -0.00014855398330837488, 0.0038146928418427706, 0.00020399063942022622, -0.03209633380174637, -0.014955157414078712, -0.024688154458999634, 0.018529126420617104, -0.0031510794069617987, 0.008332034572958946, 0.03457729518413544, 0.03043079562485218, 0.023369600996375084, 0.013627930544316769, 0.0041031260043382645, 0.04243655875325203, -0.054511722177267075, -0.02911224216222763, -0.010539742186665535, 0.019240451976656914, -0.014963831752538681, -0.04684329777956009, 0.011372512206435204, -0.01976093277335167, 0.014833711087703705, 0.04111800715327263, -0.020385509356856346, -0.013489135541021824, -0.08251360058784485, -0.018130091950297356, -0.0025438512675464153, 0.06821772456169128, -0.04028523713350296, -0.0650254413485527, 0.025989355519413948, 0.0704384446144104, -0.024237070232629776, 0.053019676357507706, 0.007447217125445604, 0.036294881254434586, -0.058536775410175323, -0.007429867517203093, -0.027863088995218277, 0.03478548675775528, -0.013055400922894478, 0.0315932035446167, 0.010158056393265724, 0.00005807972775073722, -0.001518069882877171, -0.019934426993131638, 0.008327697403728962, 0.002686983672901988, -0.007937336340546608, -0.007434205152094364, -0.024740202352404594, 0.014434675686061382, -0.03660717234015465, -0.03247801959514618, -0.03237392380833626, 0.015657806769013405, -0.03509777411818504, 0.014148411341011524, 0.007872276939451694, -0.0312635637819767, -0.002194695407524705, 0.05707942694425583, -0.022276591509580612, -0.0411527045071125, -0.045490048825740814, -0.010470344685018063, 0.04545534774661064, 0.0007948180427774787, 0.11249331384897232, -0.006007219199091196, -0.10014056414365768, 0.004992281086742878, 0.017852501943707466, -0.03303319960832596, -0.00044701737351715565, 0.01337636448442936, -0.01601346768438816, 0.02867850847542286, 0.06214544177055359, 0.006215411704033613, -0.062388334423303604, 0.03973005712032318, -0.018633224070072174, 0.0070915548130869865, -0.027602847665548325, 0.0862610712647438, 0.002860477427020669, -0.03483753651380539, -0.0412915013730526, -0.010106008499860764, -0.045767638832330704, 0.002037466736510396, -0.007351795677095652, 0.004467462655156851, 0.056767139583826065, 0.01739274337887764, -0.022797072306275368, -0.023369600996375084, 0.0067272181622684, -0.06200664862990379, 0.013246243819594383, 0.021495869383215904, -0.06113918125629425, -0.08827359229326248, -0.025451526045799255, 0.00047819199971854687, 0.03428235650062561, 0.029146941378712654, -0.045212458819150925, -0.011537331156432629, -0.05437292531132698, -0.030066458508372307, 0.01042697113007307, -0.003222645493224263, 0.04635751619935036, 0.01799129694700241, -0.011355162598192692, -0.020593702793121338, 0.028713207691907883, 0.06179845705628395, -0.038376808166503906, -0.012500220909714699, -0.06009821593761444, -0.04021583870053291, -0.0021090328227728605, -0.02503514103591442, 0.01882406696677208, -0.008618299849331379, 0.05964713543653488, 0.06044520437717438, -0.015163348987698555, 0.041534390300512314, -0.005256859119981527, 0.023543095216155052, -0.054303526878356934, 0.006536375265568495, -0.005222160369157791, -0.05298497527837753, -0.016360456123948097, 0.014052989892661572, -0.08563648909330368, -0.04760667309165001, 0.04684329777956009, -0.04215896874666214, -0.029979711398482323, 0.0011396367335692048, -0.032217781990766525, -0.0057816775515675545, -0.018928162753582, -0.027932485565543175, -0.025902610272169113, 0.00637155631557107, 0.042783547192811966, -0.020559003576636314, -0.004640956409275532, -0.05763460695743561, 0.0007953601889312267, 0.07487988471984863, -0.03796042129397392, -0.014261182397603989, -0.03636427968740463, -0.003695415798574686, 0.058640871196985245, -0.016048166900873184, 0.00825829990208149, -0.040875114500522614, -0.04420619457960129, -0.04077101871371269, 0.021478520706295967, -0.06630929559469223, 0.019795631989836693, -0.024237070232629776, -0.004818787332624197, 0.07113241404294968, 0.022970566526055336, -0.03004910796880722, 0.004311318509280682, -0.026214897632598877, 0.05079895630478859, -0.01158070471137762, 0.050104979425668716, -0.027169113978743553, 0.0584326796233654, 0.001503973500803113, -0.04725968465209007, 0.019240451976656914, -0.03311994671821594, -0.01816479116678238, -0.07682301104068756, 0.0398341529071331, -0.01188431866466999, 0.05107654631137848, 0.001997346291318536, -0.0021654183510690928, -0.021617315709590912, 0.008713721297681332, 0.005209148395806551, -0.034646693617105484, 0.047467876225709915, 0.017262622714042664, 0.01158070471137762, -0.04635751619935036, 0.06009821593761444, 0.034369103610515594, -0.009698297828435898, 0.019899727776646614, -0.003480717306956649, 0.011650102213025093, -0.009759020991623402, 0.009559502825140953, -0.012179257348179817, -0.0352192223072052, -0.06377628445625305, 0.0019648161251097918, -0.029355134814977646, 0.075712651014328, 0.0406322255730629, -0.004048909060657024, 0.07925192266702652, -0.021756110712885857, 0.052152205258607864, -0.026232248172163963, 0.009984562173485756, -0.033328138291835785, 0.01679418981075287, 0.07238157093524933, -0.02845296636223793, 0.016612021252512932, 0.06301291286945343, 0.012101185508072376, 0.010418296791613102, 0.12012703716754913, 0.010617814026772976, -0.01727997325360775, -0.05333196371793747, 0.05017437785863876, -0.013159496709704399, -0.057599909603595734, -0.043442822992801666, 0.027307908982038498, 0.020073221996426582, 0.03605199232697487 ]
714,727
sqlalchemy_jsonfield.jsonfield
process_literal_param
Re-use of process_bind_param. :return: encoded value if required :rtype: typing.Union[str, typing.Any]
def process_literal_param(self, value: typing.Any, dialect: Dialect) -> typing.Any: """Re-use of process_bind_param. :return: encoded value if required :rtype: typing.Union[str, typing.Any] """ return self.process_bind_param(value, dialect)
(self, value: 'typing.Any', dialect: 'Dialect') -> 'typing.Any'
[ 0.036943599581718445, -0.053381964564323425, 0.06585598737001419, 0.04504317045211792, -0.013354035094380379, 0.011337687261402607, 0.016130786389112473, -0.01049184612929821, 0.02409365214407444, -0.0671546459197998, 0.006847894750535488, 0.003517929697409272, -0.014909015968441963, 0.007223824039101601, 0.009440952911973, 0.042582541704177856, 0.0012260422809049487, 0.030928730964660645, 0.008018401451408863, -0.016002628952264786, -0.02352975867688656, 0.017583239823579788, 0.030792029574513435, 0.05256175622344017, -0.021410884335637093, -0.04528239741921425, -0.011636721901595592, -0.019394535571336746, -0.044325485825538635, 0.006130211520940065, 0.07197338342666626, -0.07163162529468536, 0.035303182899951935, -0.03930170461535454, 0.0053313616663217545, -0.017514890059828758, -0.030399013310670853, 0.06739387661218643, -0.038447316735982895, -0.09507595002651215, -0.04374450445175171, -0.0004253234656061977, -0.04032696411013603, 0.009500759653747082, -0.03779798746109009, 0.0007481207139790058, -0.01390084158629179, -0.02241905778646469, -0.02375189960002899, 0.053416140377521515, 0.015336208045482635, 0.02563154511153698, -0.004331731237471104, -0.00786888413131237, -0.03632844239473343, -0.02052232436835766, -0.002755391178652644, 0.09432408958673477, 0.04975937306880951, 0.0270669125020504, 0.0031996711622923613, 0.0016724583692848682, -0.016933908686041832, -0.0031633598264306784, 0.05994364246726036, -0.009150462225079536, -0.02636631578207016, 0.004459889139980078, -0.008103840053081512, -0.003767837304621935, -0.025136003270745277, -0.08126908540725708, -0.035063955932855606, 0.06937605142593384, -0.005762825720012188, -0.018933167681097984, -0.005638940259814262, 0.06804320961236954, -0.0056474837474524975, 0.02693021111190319, 0.04852905869483948, -0.047332920134067535, 0.04514569416642189, -0.01099593285471201, -0.007975682616233826, -0.06339535862207413, -0.12419338524341583, 0.02793838456273079, -0.0015987677033990622, 0.0193774476647377, 0.014046086929738522, -0.05355284363031387, -0.011517107486724854, 0.10020225495100021, 0.01435366552323103, 0.012858492322266102, 0.05444140359759331, 0.0020740192849189043, 0.030928730964660645, -0.012140808627009392, -0.0013584719272330403, 0.02175263874232769, -0.02335888147354126, -0.028485190123319626, 0.02920287474989891, -0.012345860712230206, 0.050613757222890854, -0.04859741032123566, -0.02402530238032341, -0.007997042499482632, -0.009876688942313194, -0.01284994836896658, -0.030655328184366226, -0.04924674332141876, -0.02452084608376026, 0.05539831519126892, -0.048870813101530075, -0.013507824391126633, 0.010876319371163845, 0.04080542176961899, 0.033662762492895126, 0.010004846379160881, 0.013772684149444103, -0.02493095025420189, 0.07245183736085892, 0.056286875158548355, 0.0187110286206007, 0.005626124329864979, -0.027220701798796654, 0.02021474577486515, 0.048904988914728165, 0.03588416427373886, -0.03591834008693695, -0.00767664797604084, -0.015720682218670845, -0.030159784480929375, -0.05700455605983734, 0.011534195393323898, 0.04193320870399475, 0.008757445029914379, 0.006724008824676275, 0.021667199209332466, 0.04070289433002472, -0.02311965450644493, 0.023974038660526276, -0.018198397010564804, 0.015720682218670845, 0.01668613590300083, -0.035439882427453995, -0.01498591061681509, 0.00854812003672123, 0.0006835078820586205, 0.005450975149869919, 0.018164221197366714, -0.009714355692267418, 0.038276441395282745, 0.051707372069358826, -0.06062714755535126, 0.015652330592274666, -0.03056989051401615, 0.03485890105366707, -0.05307438597083092, -0.008236270397901535, -0.023546846583485603, -0.009184637106955051, 0.06165241077542305, 0.031424276530742645, -0.000056436125305481255, 0.036670196801424026, -0.03173185512423515, 0.026315053924918175, -0.04398373141884804, 0.01049184612929821, 0.06630026549100876, 0.08441322296857834, 0.0497935488820076, -0.012935386970639229, 0.023017127066850662, -0.002543930895626545, -0.0019746969919651747, 0.07231513410806656, -0.008971041068434715, 0.019992604851722717, -0.015763400122523308, 0.05864497646689415, -0.03451714664697647, 0.0031740397680550814, 0.023273443803191185, 0.01162817794829607, 0.0037101663183420897, 0.00877453200519085, -0.029254136607050896, -0.013354035094380379, -0.02479424886405468, -0.06486489623785019, -0.033799465745687485, 0.04651271179318428, -0.013994824141263962, -0.057927291840314865, 0.02542649395763874, 0.012345860712230206, -0.041147176176309586, 0.008278989233076572, 0.0047204764559865, -0.006002053618431091, -0.05857662484049797, 0.023068390786647797, 0.013430929742753506, 0.0044812485575675964, -0.11086498200893402, 0.011969931423664093, -0.04941761866211891, -0.005583405029028654, 0.021530497819185257, 0.023375969380140305, -0.05088716000318527, -0.08208929747343063, -0.037763811647892, 0.01787373051047325, 0.0031612240709364414, 0.04251419007778168, 0.0012890531215816736, 0.04220661148428917, -0.08311455696821213, 0.09746822714805603, -0.03198816999793053, -0.0036354076582938433, -0.04053201898932457, 0.02546066790819168, 0.041113000363111496, -0.01017572358250618, -0.004137358628213406, 0.03581581264734268, 0.012696159072220325, -0.003998521249741316, -0.008642102591693401, 0.053655367344617844, -0.038447316735982895, -0.03465384989976883, -0.0007278291159309447, 0.0007849661051295698, 0.01276450976729393, -0.028792768716812134, 0.012021195143461227, -0.0370803028345108, 0.03328683227300644, 0.02650301903486252, 0.08393476903438568, -0.013772684149444103, -0.010320968925952911, -0.017053522169589996, 0.014456192031502724, -0.01650671474635601, -0.01171361654996872, 0.002319654915481806, 0.0006829738849774003, -0.0544755794107914, 0.052014950662851334, 0.008189278654754162, 0.028775682672858238, -0.05867915228009224, 0.04353945329785347, -0.04316352307796478, 0.07279358804225922, 0.0028899568133056164, -0.047298744320869446, -0.0634637102484703, 0.03335518389940262, 0.036875251680612564, -0.0072708153165876865, -0.0021445059683173895, -0.019138220697641373, -0.01049184612929821, -0.0006108851521275938, -0.014994454570114613, 0.009107742458581924, 0.0335773229598999, -0.007732182741165161, 0.021359620615839958, -0.019958430901169777, 0.021325446665287018, -0.048870813101530075, 0.030535714700818062, -0.04558997601270676, -0.010329512879252434, 0.05577424168586731, -0.0022683918941766024, -0.02539231814444065, -0.010278250090777874, -0.03067241609096527, -0.002986075123772025, 0.012687615118920803, 0.011089915409684181, 0.08933448046445847, -0.009304250590503216, 0.015464365482330322, 0.044291310012340546, -0.04330022260546684, 0.06062714755535126, -0.07402390241622925, 0.00037325939047150314, 0.006074676290154457, 0.05519326031208038, 0.0039024027064442635, -0.02161593735218048, -0.04617095738649368, -0.04019026458263397, 0.0003724583948496729, -0.08817251771688461, 0.041488926857709885, -0.007774902042001486, 0.03337227180600166, -0.02528979256749153, -0.004575231112539768, 0.02657136879861355, 0.011611090041697025, 0.015208050608634949, 0.0026464571710675955, -0.0005436023348011076, 0.012217703275382519, 0.027084000408649445, -0.07361380010843277, -0.001263421610929072, -0.05437305197119713, -0.007975682616233826, -0.01667759194970131, 0.03444879874587059, 0.017002258449792862, 0.03354315087199211, 0.02569989673793316, -0.019360361620783806, 0.03280837833881378, 0.004303963854908943, -0.027989648282527924, 0.03133883699774742, -0.016899732872843742, -0.024435406550765038, 0.027357403188943863, -0.021205831319093704, -0.03632844239473343, 0.015011541545391083, -0.010286794044077396, 0.05218582600355148, 0.038276441395282745, -0.008505401201546192, 0.004336003214120865, -0.05761971324682236, 0.01821548491716385, 0.07375050336122513, -0.06794068217277527, -0.019890079274773598, -0.041352227330207825, -0.025341054424643517, -0.029459189623594284, -0.021445060148835182, 0.006471965461969376, 0.030621152371168137, 0.011867405846714973, -0.04975937306880951, -0.00867200642824173, 0.11489767581224442, -0.05553501471877098, 0.029322488233447075, -0.006788087543100119, 0.02612708881497383, 0.05761971324682236, -0.004857177846133709, -0.017531977966427803, 0.021974777802824974, 0.041488926857709885, -0.02980094403028488, 0.02011222019791603, -0.028314314782619476, -0.02021474577486515, -0.04347110167145729, -0.0054082563146948814, -0.026007475331425667, 0.01741236262023449, -0.05105803906917572, 0.005809816997498274, 0.04528239741921425, -0.003774245036765933, 0.04852905869483948, -0.016771575435996056, -0.007621112745255232, -0.025136003270745277, 0.022829163819551468, -0.004596590530127287, -0.060900554060935974, 0.003306469414383173, -0.04822148010134697, 0.005015239119529724, -0.017788292840123177, -0.017617415636777878, -0.04196738451719284, 0.012123720720410347, 0.030655328184366226, 0.005130581092089415, -0.002885684836655855, 0.05006695166230202, 0.004724748432636261, -0.026656808331608772, -0.009603286162018776, 0.010030478239059448, -0.008817251771688461, -0.02409365214407444, 0.05071628466248512, 0.07457070797681808, -0.03629427030682564, 0.012286053970456123, -0.021069129928946495, -0.03882324695587158, -0.00832170806825161, -0.02385442517697811, 0.011354774236679077, -0.07340874522924423, 0.006745368242263794, 0.01009028498083353, -0.038105566054582596, 0.0036183197516947985, 0.01590864546597004, -0.01082505565136671, -0.009731443598866463, 0.08639539778232574, -0.012593632563948631, 0.06561675667762756, 0.08181589096784592, -0.025118915364146233, -0.018796466290950775, 0.017702853307127953, -0.048904988914728165, -0.06038792058825493, -0.03571328520774841, -0.030586978420615196, 0.0023324706126004457, 0.05139979347586632, 0.016147874295711517, -0.01049184612929821, 0.039643459022045135, -0.01689118891954422, -0.025904947891831398, 0.057961467653512955, 0.023478494957089424, 0.05830322206020355, 0.02686185948550701, -0.041523102670907974, -0.045760851353406906, 0.05867915228009224, -0.003537153359502554, -0.009902320802211761, 0.018471799790859222, 0.00019904496730305254, 0.03091164492070675, -0.008740357123315334, -0.02235070802271366, -0.03301342949271202, -0.013883753679692745, -0.021496322005987167, 0.009159005247056484, 0.008065393194556236, 0.012012651190161705, 0.007689463905990124, 0.038447316735982895, -0.011149722151458263, 0.0050793178379535675, 0.0320906937122345, 0.0007433147984556854, -0.002319654915481806, -0.023170916363596916, 0.01045767031610012, 0.00522883515805006, 0.04347110167145729, 0.019155308604240417, 0.0019672210328280926, 0.05304021015763283, 0.01276450976729393, -0.0009948243387043476, -0.020932428538799286, 0.0028792768716812134, -0.029544629156589508, -0.02091534063220024, 0.005015239119529724, 0.00798849854618311, -0.008740357123315334, 0.008543848991394043, -0.0010279318084940314, 0.05259593203663826, 0.01804460771381855, -0.018027519807219505, 0.03571328520774841, -0.0028344218153506517, 0.10300463438034058, 0.0611397810280323, -0.019292009994387627, 0.00972289964556694, -0.008116655983030796, -0.06510412693023682, -0.047469623386859894, 0.03335518389940262, 0.05122891440987587, -0.026280878111720085, -0.01975337788462639, -0.04203573614358902, -0.050442881882190704, 0.051673196256160736, -0.07539092004299164, 0.04080542176961899, 0.03786633536219597, -0.059089258313179016, 0.02787003479897976, -0.04928091913461685, -0.007117026019841433, 0.013747052289545536, -0.023734811693429947, 0.020231833681464195, 0.020761551335453987, 0.08379806578159332, 0.017181679606437683, -0.059431008994579315, -0.030450277030467987, -0.011166810058057308, 0.000025147615815512836, -0.04449636489152908, -0.0335773229598999, 0.019052783027291298, -0.02643466740846634, -0.050169479101896286, -0.059260133653879166, -0.0119443004950881, 0.004139494616538286, 0.009646004997193813, -0.010064653120934963, 0.03173185512423515, 0.004810186568647623, 0.004682029131799936, 0.0325862392783165, -0.005788457579910755, 0.04558997601270676, -0.025050563737750053, 0.025682808831334114, -0.022504497319459915, 0.05830322206020355, 0.0025118915364146233, 0.008125199936330318, 0.011371862143278122, -0.026417579501867294, -0.017890818417072296, 0.04767467454075813, -0.028878208249807358, 0.023136742413043976, -0.06975197792053223, -0.029732592403888702, -0.027784595265984535, 0.07190503180027008, -0.034534234553575516, -0.0618232898414135, 0.024879686534404755, 0.06336118280887604, -0.04849488288164139, 0.07894515991210938, 0.013157526962459087, 0.007783445995301008, -0.017719941213726997, 0.018830642104148865, -0.025819510221481323, 0.030057258903980255, -0.007826165296137333, -0.011465844698250294, -0.009047935716807842, 0.01435366552323103, 0.015156786888837814, -0.044222958385944366, 0.031595151871442795, -0.029732592403888702, -0.012516737915575504, -0.0124483872205019, -0.027784595265984535, -0.0021893612574785948, -0.03422665596008301, 0.008116655983030796, -0.02539231814444065, 0.032329924404621124, -0.051707372069358826, -0.023273443803191185, 0.04019026458263397, 0.03070659190416336, 0.010620003566145897, 0.08960788697004318, -0.047298744320869446, -0.005814088974148035, -0.04641018435359001, 0.014114437624812126, 0.03272293880581856, 0.002962579485028982, 0.06465984880924225, 0.009176093153655529, -0.06800903379917145, 0.02202604152262211, -0.01040640752762556, -0.006070404313504696, -0.029732592403888702, 0.000040783528675092384, -0.009107742458581924, 0.06305360049009323, 0.044291310012340546, -0.009842513129115105, -0.004182213917374611, 0.02636631578207016, -0.019890079274773598, -0.005160484462976456, -0.0032637501135468483, 0.06773563474416733, 0.0077108233235776424, -0.03571328520774841, -0.0005724378279410303, 0.017198767513036728, -0.06124230474233627, 0.00756130600348115, 0.026212526485323906, -0.0009579790057614446, 0.021445060148835182, 0.033662762492895126, -0.030655328184366226, -0.021393796429038048, -0.0014599300920963287, -0.04931509494781494, 0.007791989948600531, -0.00011066953447880223, -0.03725117817521095, -0.05105803906917572, -0.01794208213686943, 0.01657506637275219, 0.006946148816496134, 0.024213267490267754, -0.002981803147122264, -0.007732182741165161, -0.04206991195678711, -0.045897554606199265, 0.015780488029122353, 0.020539412274956703, 0.026041651144623756, -0.01831801049411297, -0.03496142849326134, -0.012790141627192497, 0.028160525485873222, 0.0671546459197998, -0.04668358713388443, -0.04473559185862541, -0.021240007132291794, -0.0007700143614783883, 0.014003368094563484, 0.008167918771505356, 0.03817391395568848, 0.00048459641402587295, 0.021034955978393555, 0.04682029038667679, -0.0400877371430397, 0.004562415182590485, 0.025136003270745277, 0.019804641604423523, -0.041488926857709885, -0.03294508159160614, -0.001089874655008316, -0.02693021111190319, -0.07279358804225922, -0.010372231714427471, -0.08837757259607315, -0.02175263874232769, 0.056389398872852325, -0.041283875703811646, -0.01208100188523531, -0.0374220572412014, -0.023341793566942215, -0.023974038660526276, -0.01563524268567562, -0.042787592858076096, -0.026280878111720085, -0.029561715200543404, 0.057551365345716476, 0.013755596242845058, -0.019035695120692253, -0.06756475567817688, -0.008578023873269558, 0.03217613324522972, -0.04463306441903114, -0.0052331071346998215, -0.06835079193115234, 0.010508934035897255, 0.07306699454784393, -0.021205831319093704, -0.007911603897809982, -0.0248967744410038, -0.0621650405228138, -0.06219921633601189, -0.0008239473681896925, -0.04371032863855362, 0.02569989673793316, -0.032295748591423035, 0.02469172142446041, 0.12467183917760849, -0.016831381246447563, -0.025221440941095352, -0.03402160480618477, -0.015096980147063732, 0.02846810407936573, -0.0018134318524971604, 0.08496002852916718, -0.031099608168005943, 0.03557658568024635, 0.015934277325868607, -0.024777160957455635, 0.02542649395763874, -0.03414122015237808, -0.05823487043380737, -0.036704372614622116, 0.043095171451568604, -0.048734113574028015, 0.0484607070684433, -0.012089545838534832, -0.004981063771992922, 0.010654179379343987, -0.03759293258190155, 0.04384703189134598, -0.012038282118737698, 0.04975937306880951, 0.009030847810208797, 0.0010978844948112965, -0.023615198209881783, 0.047196220606565475, 0.032893817871809006, 0.011670896783471107, 0.064181387424469, -0.02045397274196148, 0.03272293880581856, 0.005651755724102259, 0.021137481555342674, -0.02419617958366871, -0.026690982282161713, -0.06004616618156433, -0.007168288808315992, -0.016634872183203697, 0.08537013083696365, 0.007527130655944347, -0.02486259862780571, 0.04104464873671532, 0.01947997510433197, 0.02720361389219761, -0.01790790632367134, 0.024452494457364082, 0.007689463905990124, -0.004263380542397499, 0.08359301090240479, -0.02318800427019596, 0.02035144716501236, 0.0524592287838459, -0.011072827503085136, 0.038549844175577164, 0.09596450626850128, -0.036601848900318146, 0.0012975969584658742, -0.056286875158548355, 0.08701055496931076, -0.004246292635798454, -0.06028539687395096, -0.03861819580197334, 0.01304645650088787, 0.005579133052378893, 0.03738788142800331 ]
714,728
sqlalchemy_jsonfield.jsonfield
process_result_value
Decode data, if required. :return: decoded result value if required :rtype: typing.Any
def process_result_value(self, value: str | typing.Any, dialect: Dialect) -> typing.Any: """Decode data, if required. :return: decoded result value if required :rtype: typing.Any """ if self.__use_json(dialect) or value is None: return value return self.__json_codec.loads(value)
(self, value: 'str | typing.Any', dialect: 'Dialect') -> 'typing.Any'
[ 0.06679366528987885, -0.029627637937664986, 0.011833523400127888, 0.001461659325286746, -0.003850277978926897, 0.017303241416811943, 0.012219209223985672, 0.0007078199996612966, 0.06784553825855255, -0.03500970080494881, 0.050805263221263885, 0.05413617938756943, 0.008033648133277893, -0.02996072918176651, 0.05648535490036011, 0.065531425178051, -0.009440522640943527, 0.07426193356513977, 0.06661835312843323, 0.046106915920972824, -0.027646617963910103, -0.03979570046067238, -0.012701315805315971, 0.04877164959907532, -0.014121338725090027, -0.03709590435028076, 0.029119234532117844, -0.06086814031004906, -0.04964820668101311, 0.027453774586319923, 0.03534279018640518, -0.019564758986234665, 0.009458052925765514, 0.033905237913131714, -0.025297444313764572, 0.01628643460571766, -0.044739484786987305, 0.012867861427366734, -0.0567658506333828, -0.010439797304570675, -0.08288726210594177, -0.00007190509495558217, -0.030591849237680435, 0.005123477429151535, -0.03246768191456795, -0.023088520392775536, -0.048946961760520935, -0.026577217504382133, -0.0435473658144474, 0.02733105607330799, 0.007433205842971802, -0.02321123704314232, -0.026086345314979553, 0.039865825325250626, 0.024070262908935547, -0.043757740408182144, -0.022019119933247566, 0.053925804793834686, 0.0040168240666389465, 0.03141581267118454, -0.020914657041430473, 0.0029627636540681124, -0.040251512080430984, 0.03199434280395508, 0.03681540861725807, 0.031170377507805824, 0.04477454721927643, 0.017531145364046097, -0.04119819402694702, 0.01835511066019535, -0.019845256581902504, -0.006530351936817169, -0.031468406319618225, 0.04312662035226822, 0.06574179977178574, 0.007424440234899521, -0.009624599479138851, -0.015734203159809113, 0.018565483391284943, -0.0061972602270543575, 0.054802361875772476, 0.04070731997489929, 0.013157125562429428, -0.05339987203478813, -0.00003170672061969526, -0.03374745696783066, -0.026314251124858856, 0.03618428483605385, -0.01468233484774828, 0.023544330149888992, 0.022527523338794708, -0.1135317012667656, -0.037025779485702515, 0.08646361529827118, -0.031556062400341034, 0.025542879477143288, 0.03902433067560196, 0.0026713083498179913, 0.006955482065677643, -0.021037375554442406, 0.04077744483947754, 0.05925527587532997, 0.009826207533478737, -0.05087538808584213, 0.044073302298784256, 0.00710011413320899, 0.014761225320398808, -0.007306104991585016, 0.007788211572915316, 0.009011008776724339, -0.04333699494600296, 0.0017673586262390018, -0.04067225754261017, -0.01195624191313982, -0.008038030937314034, 0.019845256581902504, -0.03357214480638504, -0.034904513508081436, -0.03374745696783066, 0.043757740408182144, -0.010378438979387283, 0.0082484045997262, 0.04466935992240906, 0.002320685423910618, 0.0339578315615654, 0.03737640380859375, 0.011141043156385422, -0.027962177991867065, 0.041899438947439194, 0.05785278230905533, 0.043196745216846466, 0.02135293558239937, -0.035079821944236755, -0.03639465942978859, -0.022755427286028862, 0.04291624575853348, -0.02968022972345352, 0.007301722187548876, 0.065531425178051, 0.0013477068860083818, 0.027594024315476418, 0.005351382307708263, 0.06556648761034012, -0.08302751183509827, -0.0036399043165147305, -0.026033751666545868, 0.0497884564101696, 0.016128653660416603, -0.034922044724226, -0.022106776013970375, 0.008059944026172161, -0.0042009009048342705, 0.02508706972002983, 0.01737336628139019, 0.004641370847821236, 0.012131553143262863, 0.026296719908714294, -0.03965545445680618, 0.00171476521063596, -0.00009306573338108137, 0.04470442235469818, -0.05378555506467819, 0.02701549604535103, -0.01610235869884491, 0.027278464287519455, 0.03453635796904564, 0.06991421431303024, -0.01677730679512024, 0.022176900878548622, -0.015287159942090511, -0.00517607107758522, -0.012385754846036434, -0.006188494618982077, 0.020283536985516548, 0.013753184117376804, 0.022913208231329918, 0.023176174610853195, 0.034027956426143646, 0.01756620779633522, 0.02333395555615425, -0.0026734997518360615, 0.005921144504100084, -0.03025875799357891, 0.018863514065742493, 0.03748159110546112, -0.005013907793909311, 0.007972288876771927, 0.01503295823931694, 0.060657765716314316, 0.013016875833272934, 0.014734928496181965, -0.019757602363824844, 0.006057010963559151, -0.03990088775753975, -0.003361597191542387, -0.04694841057062149, 0.05105069652199745, 0.023667046800255775, -0.04417848959565163, -0.04326687008142471, -0.017224350944161415, -0.056169793009757996, 0.0046808160841465, 0.057817719876766205, -0.09221383184194565, -0.028330331668257713, 0.012429582886397839, 0.07321006804704666, 0.006552265956997871, -0.07566442340612411, -0.02975035458803177, -0.03257286921143532, -0.007301722187548876, 0.03776209056377411, 0.028453050181269646, -0.07685654610395432, -0.018460296094417572, -0.061814822256565094, 0.030802223831415176, 0.02782192826271057, 0.020616628229618073, -0.029838010668754578, 0.02850564382970333, -0.028172552585601807, 0.05339987203478813, 0.000960378092713654, -0.08372875303030014, -0.034396108239889145, 0.05827353149652481, 0.005666942801326513, -0.02819008380174637, -0.018565483391284943, 0.007569072302430868, -0.011623149737715721, 0.05248825252056122, 0.0002303702203789726, 0.06051751598715782, -0.009712254628539085, -0.03329164534807205, 0.010807951912283897, 0.039374954998493195, -0.043652553111314774, -0.024929290637373924, 0.013989854604005814, -0.044844672083854675, 0.02587597258388996, 0.008769955486059189, 0.057712532579898834, -0.013236015103757381, -0.0164968091994524, 0.020756877958774567, 0.013253546319901943, 0.04719384387135506, 0.02137046679854393, 0.010843014344573021, -0.060552578419446945, 0.0024214896839112043, -0.048070404678583145, 0.07229844480752945, -0.0070212241262197495, 0.0062367054633796215, -0.04007619991898537, -0.030889879912137985, 0.07622542232275009, -0.05346999689936638, -0.057326849550008774, -0.02030106820166111, 0.010676467791199684, 0.0367102213203907, 0.0021957759745419025, 0.04929758235812187, -0.03385264426469803, -0.012035131454467773, -0.040461886674165726, -0.02850564382970333, 0.024841634556651115, -0.007569072302430868, -0.0005648316000588238, 0.014559617266058922, 0.006837146822363138, -0.018302517011761665, -0.02938220091164112, -0.006692515220493078, -0.05666066333651543, 0.03346695750951767, -0.0333617702126503, 0.045721229165792465, -0.046702973544597626, 0.009440522640943527, 0.01268378458917141, 0.022509992122650146, -0.051471445709466934, -0.05560879409313202, 0.05844883993268013, -0.005916761700063944, 0.00023927274742163718, -0.033046212047338486, -0.052348002791404724, 0.026770060881972313, -0.049928706139326096, -0.04151375591754913, -0.016146184876561165, 0.044458985328674316, 0.03257286921143532, -0.037236154079437256, 0.02750636823475361, 0.021984057500958443, -0.04379280284047127, -0.07790841162204742, 0.04109300673007965, 0.003175328951328993, 0.007218449376523495, -0.01640915311872959, -0.007525244727730751, -0.05024426430463791, -0.017504850402474403, 0.026296719908714294, 0.06086814031004906, 0.008204576559364796, -0.0036771579179912806, -0.002166192280128598, -0.056274980306625366, 0.02010822482407093, -0.007192152552306652, 0.08239638805389404, 0.0016501190839335322, -0.010360907763242722, 0.017986955121159554, 0.05511792376637459, 0.045335542410612106, -0.03385264426469803, -0.039480142295360565, 0.00678455363959074, 0.010606343857944012, 0.06784553825855255, -0.027646617963910103, -0.03183656185865402, -0.011149808764457703, 0.01024695485830307, 0.010264486074447632, 0.014086276292800903, -0.06647810339927673, 0.062410879880189896, 0.01147413533180952, 0.016654588282108307, 0.016514340415596962, 0.009256444871425629, -0.008717362768948078, 0.08064327389001846, -0.05666066333651543, -0.014769990928471088, -0.016829900443553925, -0.004143924452364445, 0.0040299720130860806, -0.04305649548768997, -0.02575325407087803, -0.020546503365039825, -0.006512820720672607, -0.008336059749126434, -0.004733409266918898, 0.025613004341721535, -0.02545522339642048, 0.004310470540076494, 0.024140387773513794, -0.021826276555657387, 0.0039773788303136826, -0.08667398989200592, -0.007016841322183609, 0.043091557919979095, 0.02556041069328785, -0.03600897267460823, 0.04470442235469818, -0.015111847780644894, -0.03344942629337311, 0.00726666022092104, -0.0003495272248983383, 0.03497463837265968, 0.013437623158097267, -0.014428133144974709, 0.06135901063680649, -0.01893363706767559, 0.015234566293656826, -0.09130220860242844, -0.015111847780644894, 0.05687103793025017, 0.0327657125890255, -0.02848811261355877, -0.022685302421450615, -0.06651316583156586, -0.05101563408970833, -0.048245713114738464, 0.0202134121209383, 0.011842289008200169, -0.023456674069166183, -0.01903882436454296, 0.018372641876339912, -0.024157918989658356, 0.019950443878769875, -0.012902923859655857, 0.037446528673172, -0.026401905342936516, 0.004062843043357134, 0.0090285399928689, 0.046702973544597626, -0.024350762367248535, -0.06879221647977829, 0.04028657451272011, 0.05862415209412575, -0.0448797345161438, 0.00016476538439746946, 0.03571094572544098, -0.08001215010881424, -0.003870000597089529, -0.02925948239862919, -0.029908135533332825, 0.03213459253311157, -0.02897898480296135, 0.05055982619524002, -0.012385754846036434, -0.006206025835126638, 0.008436864241957664, 0.0448797345161438, -0.026962902396917343, 0.003212582552805543, -0.042495496571063995, 0.042215000838041306, 0.08947896957397461, -0.003484315238893032, -0.010045346803963184, -0.01816226728260517, 0.022702833637595177, -0.08239638805389404, -0.023561861366033554, -0.05718659982085228, 0.03884901851415634, 0.03474673256278038, -0.025209788233041763, -0.010518687777221203, 0.04242537543177605, -0.039269767701625824, -0.015287159942090511, 0.09929641336202621, 0.01912648044526577, 0.03597391024231911, 0.04067225754261017, -0.050104014575481415, -0.018495358526706696, 0.051576633006334305, -0.03797246143221855, -0.060552578419446945, -0.014629741199314594, 0.009203852154314518, 0.006512820720672607, -0.020914657041430473, -0.0012764865532517433, 0.011386479251086712, -0.01940697804093361, 0.005684474017471075, 0.03408055007457733, 0.035079821944236755, -0.01072906143963337, -0.029136765748262405, 0.016225075349211693, -0.04274093359708786, 0.011772165074944496, 0.08548186719417572, -0.04964820668101311, 0.019371917471289635, -0.04719384387135506, 0.0169789157807827, -0.0441434271633625, 0.01755744218826294, 0.05876440182328224, 0.03355461359024048, 0.04302143305540085, -0.004558098036795855, 0.011298824101686478, -0.031100252643227577, 0.03315139561891556, -0.026682404801249504, 0.0015394537476822734, 0.01814473606646061, -0.0037626223638653755, -0.02457866631448269, -0.005009524989873171, -0.0007927365368232131, 0.06170963495969772, -0.008375504985451698, 0.03471167013049126, -0.006512820720672607, -0.01738213188946247, 0.0836586281657219, 0.026980433613061905, -0.0014298841124400496, -0.003278324380517006, -0.007818891666829586, 0.030223695561289787, -0.060552578419446945, 0.04081250727176666, 0.00838865339756012, 0.008726128377020359, 0.009466818533837795, -0.0237021092325449, -0.058413777500391006, 0.018688201904296875, -0.02605128288269043, -0.003129309508949518, 0.00335502321831882, -0.0535050593316555, 0.00580719206482172, -0.0649353638291359, 0.0679156631231308, 0.05876440182328224, -0.04000607505440712, -0.007459502667188644, 0.014410601928830147, 0.04274093359708786, 0.017215585336089134, -0.08078352361917496, 0.0038371295668184757, -0.02887379750609398, 0.0036968805361539125, -0.02948738820850849, 0.006771405227482319, -0.01854795217514038, 0.021984057500958443, -0.069844089448452, -0.016330262646079063, -0.003523760475218296, -0.04596666619181633, -0.04863139986991882, -0.013148359954357147, -0.023351486772298813, 0.051857128739356995, 0.034010425209999084, -0.04652766138315201, -0.020914657041430473, 0.05851896479725838, -0.056555476039648056, -0.005281257908791304, 0.009151258505880833, 0.04302143305540085, -0.03534279018640518, 0.012008835561573505, 0.03229236975312233, -0.03990088775753975, -0.009309038519859314, 0.10245201736688614, -0.0163127314299345, 0.021984057500958443, -0.08162501454353333, 0.0015372623456642032, 0.030100978910923004, 0.023842358961701393, -0.004746557679027319, -0.02606881409883499, 0.014138869009912014, 0.06917790323495865, -0.008309762924909592, -0.0023557478561997414, 0.032152123749256134, 0.03241508826613426, -0.0723685696721077, 0.02545522339642048, -0.016119888052344322, 0.025104600936174393, -0.041022881865501404, 0.03678034618496895, -0.030206164345145226, -0.0380425862967968, 0.008901439607143402, -0.06030714139342308, 0.01532222144305706, 0.02186133898794651, 0.008625323884189129, 0.008555199019610882, -0.015865687280893326, 0.006425165105611086, 0.015374815091490746, -0.013200952671468258, -0.05006895214319229, -0.0005122381844557822, 0.02596362680196762, -0.010045346803963184, 0.004693964496254921, -0.04810546338558197, -0.026419436559081078, 0.04049694910645485, 0.05865921452641487, -0.038007523864507675, 0.006916037295013666, -0.014761225320398808, -0.01009794045239687, 0.056555476039648056, 0.07121151685714722, 0.024841634556651115, -0.06774035096168518, 0.04291624575853348, -0.011176105588674545, -0.04382786527276039, -0.021160094067454338, 0.0007094635511748493, 0.03355461359024048, -0.00580719206482172, 0.05872933939099312, 0.033905237913131714, -0.04631728678941727, 0.03797246143221855, 0.029838010668754578, 0.009817441925406456, 0.006521586328744888, 0.015103082172572613, -0.002098259050399065, -0.012946751900017262, 0.03825296089053154, -0.01420022826641798, -0.018460296094417572, -0.02380729652941227, -0.05687103793025017, -0.022808020934462547, 0.055959418416023254, 0.025613004341721535, -0.0007132985047064722, 0.020564034581184387, 0.013087000697851181, -0.031468406319618225, -0.005228664260357618, -0.007227214984595776, -0.0271206833422184, -0.05189219117164612, -0.021125031635165215, -0.010115471668541431, 0.03797246143221855, 0.019371917471289635, -0.04351230338215828, -0.0020752493292093277, -0.011868585832417011, 0.003411999437958002, 0.03874383494257927, -0.051681820303201675, -0.003909445833414793, 0.01318342238664627, -0.04761459305882454, 0.033624738454818726, -0.03374745696783066, 0.005723919253796339, -0.032257307320833206, 0.025613004341721535, 0.004882424138486385, 0.06451461464166641, -0.007840804755687714, 0.0058203404769301414, 0.03590378910303116, 0.0027129449881613255, 0.02450854331254959, -0.01072906143963337, 0.04852621257305145, 0.008848845958709717, -0.04203968867659569, 0.060833077877759933, -0.06342768669128418, 0.0024697002954781055, -0.061814822256565094, -0.017110398039221764, 0.02938220091164112, -0.02876861020922661, -0.05638016760349274, 0.0060745421797037125, 0.031380750238895416, -0.048456087708473206, 0.004952549003064632, 0.013332436792552471, 0.010658936575055122, 0.01332367118448019, -0.029908135533332825, -0.038393210619688034, -0.016549402847886086, -0.018092142418026924, 0.06973890215158463, 0.015962108969688416, -0.02626165747642517, -0.02936466969549656, -0.005886082537472248, 0.07629554718732834, -0.07615529745817184, -0.025122132152318954, -0.05813328176736832, -0.005776512902230024, 0.010203126817941666, -0.051576633006334305, 0.024543603882193565, -0.014945302158594131, -0.049332644790410995, -0.07180757820606232, -0.06784553825855255, -0.027594024315476418, -0.002432446461170912, -0.026822654530405998, 0.012184146791696548, 0.12040391564369202, 0.015374815091490746, -0.06837146729230881, 0.00853328499943018, -0.0454757921397686, 0.02927701361477375, -0.0063813370652496815, -0.0190212931483984, -0.036745283752679825, -0.014401836320757866, -0.03416820243000984, -0.009282741695642471, 0.021230218932032585, -0.030118508264422417, -0.025052007287740707, -0.01531345583498478, 0.056274980306625366, -0.07426193356513977, 0.07110632956027985, 0.017697691917419434, 0.0034054252319037914, -0.0065040551126003265, 0.0009039497235789895, -0.008664769120514393, 0.05774759501218796, 0.03919964283704758, 0.02477150969207287, -0.006271767430007458, -0.017829176038503647, 0.05638016760349274, 0.07720717042684555, -0.021633435040712357, 0.020160818472504616, -0.011482900939881802, -0.03656997159123421, -0.055398423224687576, -0.02606881409883499, -0.0076216659508645535, 0.013008110225200653, 0.00573268486186862, -0.028084896504878998, -0.036850471049547195, 0.028856266289949417, 0.0011636298149824142, 0.018302517011761665, -0.015006661415100098, -0.012017601169645786, 0.03297608718276024, 0.023982608690857887, -0.007069434504956007, 0.0044748252257704735, 0.009685958735644817, 0.03141581267118454, -0.01602346822619438, 0.055293235927820206, 0.030574319884181023, 0.0073981438763439655, 0.03585119545459747, 0.07159720361232758, 0.0016599803930148482, -0.002932084258645773, -0.040356699377298355, 0.06437437236309052, -0.05006895214319229, -0.049998827278614044, -0.05346999689936638, -0.03422079607844353, 0.008454395458102226, 0.020651690661907196 ]
714,734
sqlalchemy_jsonfield.jsonfield
mutable_json_field
Mutable JSONField creator. :param enforce_string: enforce String(UnicodeText) type usage :type enforce_string: bool :param enforce_unicode: do not encode non-ascii data :type enforce_unicode: bool :param json: JSON encoding/decoding library. By default: standard json package. :param args: extra baseclass arguments :type args: typing.Any :param kwargs: extra baseclass keyworded arguments :type kwargs: typing.Any :return: Mutable JSONField via MutableDict.as_mutable :rtype: JSONField
def mutable_json_field( # pylint: disable=keyword-arg-before-vararg, redefined-outer-name enforce_string: bool = False, enforce_unicode: bool = False, json: types.ModuleType | typing.Any = json, *args: typing.Any, **kwargs: typing.Any, ) -> JSONField: """Mutable JSONField creator. :param enforce_string: enforce String(UnicodeText) type usage :type enforce_string: bool :param enforce_unicode: do not encode non-ascii data :type enforce_unicode: bool :param json: JSON encoding/decoding library. By default: standard json package. :param args: extra baseclass arguments :type args: typing.Any :param kwargs: extra baseclass keyworded arguments :type kwargs: typing.Any :return: Mutable JSONField via MutableDict.as_mutable :rtype: JSONField """ return sqlalchemy.ext.mutable.MutableDict.as_mutable( # type: ignore[return-value] JSONField( # type: ignore[misc] enforce_string=enforce_string, enforce_unicode=enforce_unicode, json=json, *args, # noqa: B026 **kwargs, ) )
(enforce_string: 'bool' = False, enforce_unicode: 'bool' = False, json: 'types.ModuleType | typing.Any' = <module 'json' from '/usr/local/lib/python3.10/json/__init__.py'>, *args: 'typing.Any', **kwargs: 'typing.Any') -> 'JSONField'
[ -0.028502175584435463, 0.0017802815418690443, -0.00432701176032424, 0.03707226365804672, -0.015717722475528717, 0.011892104521393776, 0.029809776693582535, 0.03876861184835434, 0.012042301706969738, -0.07414452731609344, 0.035906024277210236, 0.060255683958530426, 0.007872113958001137, 0.015788402408361435, -0.02047986350953579, 0.011909774504601955, 0.0053099216893315315, 0.0057649314403533936, 0.011936279945075512, -0.014772361144423485, 0.041560519486665726, -0.01710483990609646, 0.07697177678346634, 0.12340929359197617, 0.00035064478288404644, -0.016062291339039803, 0.019419647753238678, 0.050289642065763474, 0.05332893133163452, -0.009559625759720802, 0.01694580726325512, -0.03880395367741585, 0.0048019010573625565, 0.07711313664913177, -0.014692844823002815, -0.0463314950466156, -0.04177256301045418, 0.08177809417247772, -0.08347444236278534, -0.01172423642128706, -0.0004840002511627972, 0.048628631979227066, -0.033679571002721786, -0.049158740788698196, 0.05749911814928055, 0.004282836336642504, 0.01064634881913662, 0.08396921306848526, -0.023837219923734665, -0.0032557507511228323, 0.03256634250283241, -0.009683318436145782, 0.0022772583179175854, -0.021840477362275124, -0.015496842563152313, -0.004943263251334429, 0.04629615694284439, 0.04855795204639435, -0.03187720105051994, -0.00694000581279397, -0.04353959113359451, -0.0071122911758720875, -0.0406416617333889, -0.04502389580011368, -0.00693117082118988, -0.031594473868608475, -0.04110109061002731, -0.010001382790505886, 0.0735790804028511, -0.05470721423625946, -0.06152794510126114, 0.052692800760269165, 0.06043238565325737, -0.005345262121409178, -0.0015373150818049908, 0.01853613182902336, -0.01975538209080696, -0.007744004018604755, 0.01865982450544834, -0.027424287050962448, 0.05552004650235176, 0.007315499242395163, -0.023907899856567383, -0.0017526717856526375, -0.057711161673069, 0.0056677451357245445, -0.051067132502794266, 0.01064634881913662, 0.04523593932390213, -0.032106913626194, -0.015876753255724907, 0.013473594561219215, -0.019773053005337715, -0.003511969931423664, 0.009913031943142414, -0.03735499083995819, -0.025816291570663452, -0.031470783054828644, 0.01994975656270981, 0.07994038611650467, 0.019826063886284828, 0.05590879172086716, -0.055131301283836365, 0.0012059971923008561, 0.021275026723742485, -0.042620737105607986, 0.014268757775425911, 0.02353682368993759, 0.010893733240664005, -0.0365774966776371, -0.006639610975980759, -0.015859084203839302, -0.08651373535394669, -0.008883737958967686, 0.06170464679598808, 0.05693366751074791, -0.003573815803974867, -0.08559487760066986, 0.07937493920326233, 0.033061109483242035, 0.014524976722896099, -0.006533589214086533, 0.02507413923740387, 0.01764378324151039, 0.06619290262460709, -0.014622163958847523, 0.00023564985895063728, -0.004426407162100077, 0.08368648588657379, -0.01690163090825081, -0.02463238127529621, 0.03746101260185242, 0.00640989700332284, 0.023342451080679893, 0.04032359644770622, -0.00014191449736244977, 0.015311304479837418, 0.0349518321454525, -0.02604600600898266, 0.0026836751494556665, 0.025816291570663452, 0.04201994463801384, 0.03085232339799404, -0.025922313332557678, -0.02307739667594433, -0.03979349136352539, 0.01105276495218277, -0.016053456813097, -0.04382231459021568, 0.013084848411381245, 0.011432676576077938, -0.002973026130348444, -0.005155306775122881, 0.04940612614154816, -0.04219665005803108, 0.009886526502668858, -0.06555677205324173, -0.05467187240719795, 0.0373903289437294, 0.019614020362496376, 0.024190625175833702, 0.020020436495542526, -0.020815599709749222, -0.013049508444964886, 0.005336427129805088, 0.03003949113190174, 0.07746654748916626, -0.07958698272705078, -0.055131301283836365, 0.013323397375643253, 0.014065549708902836, 0.019932085648179054, 0.026364069432020187, 0.03625943139195442, 0.01592976413667202, 0.051067132502794266, -0.010045559145510197, 0.03194788098335266, -0.025692598894238472, 0.03528756648302078, 0.039722807705402374, 0.008976506069302559, 0.03873327374458313, -0.02519783191382885, 0.06389576196670532, -0.003982441034168005, -0.007359675131738186, 0.032248277217149734, 0.039122018963098526, 0.053753018379211426, 0.028767229989171028, -0.03161214664578438, -0.00002767885052890051, -0.06940889358520508, -0.005124383606016636, 0.0057649314403533936, 0.027830705046653748, -0.042620737105607986, -0.05491925776004791, 0.03813248127698898, -0.05746377632021904, 0.0009265857515856624, -0.006891412660479546, 0.004287253599613905, -0.011812588199973106, -0.03986417129635811, 0.02154008112847805, -0.013791659846901894, -0.017705628648400307, -0.07859744131565094, -0.008976506069302559, 0.009647977538406849, -0.0115828737616539, 0.023625176399946213, -0.003792485687881708, -0.07294294983148575, 0.03207157179713249, -0.008746792562305927, -0.027212243527173996, -0.013915352523326874, 0.02844916470348835, 0.052975524216890335, -0.00500952685251832, -0.0007476740865968168, 0.007978134788572788, -0.02300671488046646, -0.02275933139026165, -0.012342696078121662, 0.0043225944973528385, -0.009453603997826576, -0.018553802743554115, 0.0059637222439050674, -0.0018399187829345465, -0.01436594408005476, 0.03703692555427551, -0.04421105980873108, 0.0038521229289472103, -0.03809714317321777, 0.041631199419498444, -0.0033882777206599712, 0.029049953445792198, 0.0010552474996075034, 0.017246201634407043, 0.06767720729112625, -0.003118805820122361, 0.02820178121328354, 0.007841190323233604, 0.04495321214199066, -0.0044882530346512794, 0.012855134904384613, 0.01258124504238367, 0.05315222591161728, -0.045341961085796356, 0.04912340268492699, -0.022246893495321274, -0.009798174723982811, 0.04523593932390213, 0.014436625875532627, -0.01556752435863018, 0.006317127961665392, 0.0072404006496071815, -0.027989737689495087, -0.004077419172972441, 0.01501974556595087, -0.019278284162282944, -0.06711175292730331, 0.04979487136006355, 0.02882024087011814, -0.039687469601631165, 0.04272675886750221, 0.011211797595024109, -0.029049953445792198, 0.115422323346138, -0.007854443043470383, -0.028396153822541237, -0.07958698272705078, -0.029968809336423874, 0.006688204128295183, 0.05421244353055954, -0.0056058987975120544, -0.03511086478829384, -0.03731964901089668, 0.05145588144659996, -0.003054751083254814, 0.03475745767354965, -0.006688204128295183, -0.00841105729341507, 0.06067977100610733, -0.06103317439556122, -0.015302469953894615, 0.023678187280893326, -0.011008589528501034, -0.019826063886284828, 0.010398964397609234, -0.015337809920310974, -0.013500100001692772, -0.055166639387607574, 0.03442172333598137, 0.04739171266555786, -0.020426852628588676, 0.01755543239414692, 0.031594473868608475, -0.03097601607441902, 0.0060476562939584255, -0.01164472009986639, -0.06414314359426498, -0.030569598078727722, -0.0520213283598423, -0.021928828209638596, 0.042125966399908066, 0.011026260443031788, 0.047285690903663635, -0.07817335426807404, 0.04385765641927719, 0.019172262400388718, 0.029986480250954628, 0.03141777217388153, 0.04498855397105217, 0.052127350121736526, 0.007602641824632883, 0.03898065537214279, -0.05343495309352875, -0.03097601607441902, 0.007372927851974964, -0.04746239632368088, -0.06513268500566483, 0.022123200818896294, 0.03569398447871208, -0.017290377989411354, 0.015664711594581604, -0.023837219923734665, 0.00030205148505046964, -0.002498137066140771, 0.021045314148068428, -0.0463314950466156, 0.01011624000966549, 0.008707034401595592, -0.0646379142999649, -0.036966241896152496, -0.03958144783973694, -0.006595435086637735, 0.001017698203213513, 0.031470783054828644, -0.02154008112847805, -0.0568983294069767, -0.008852814324200153, 0.07421521097421646, 0.001942627364769578, 0.08672577887773514, -0.07781995087862015, 0.01669842191040516, -0.005389438010752201, -0.011777247302234173, -0.021557752043008804, -0.044705830514431, -0.05177394673228264, -0.000333526695612818, -0.05940750986337662, -0.019242944195866585, -0.032937418669462204, -0.016636576503515244, -0.03633011132478714, 0.016998818144202232, -0.0134117491543293, -0.05096111074090004, 0.028254792094230652, 0.036436133086681366, -0.030993685126304626, 0.03461609408259392, -0.022688649594783783, 0.03438638150691986, -0.03633011132478714, -0.006524754222482443, -0.011945115402340889, -0.029474040493369102, 0.03458075597882271, -0.04965351149439812, 0.043999020010232925, -0.0910373255610466, -0.036718860268592834, 0.014728185720741749, -0.05251609906554222, -0.06983298063278198, -0.015673546120524406, 0.040783025324344635, 0.007624729536473751, 0.028643537312746048, -0.022405926138162613, -0.0017394190654158592, -0.011980455368757248, -0.02207018993794918, -0.04763909801840782, 0.029562393203377724, 0.012404542416334152, -0.021328037604689598, 0.0003790828923229128, 0.012537069618701935, -0.0013252716744318604, 0.006577764637768269, 0.05414176359772682, -0.009913031943142414, -0.05993761867284775, 0.01637152209877968, -0.010920238681137562, -0.0422673299908638, 0.08425193279981613, 0.04304482415318489, 0.042620737105607986, -0.017864661291241646, 0.07626496255397797, 0.03986417129635811, 0.0016046831151470542, -0.08001106232404709, -0.031241070479154587, 0.033343832939863205, -0.029474040493369102, 0.013915352523326874, -0.0882100835442543, -0.025745609775185585, 0.02791905589401722, 0.007129961159080267, 0.005809107329696417, -0.05120849609375, 0.012678432278335094, -0.03191253915429115, 0.02141639031469822, 0.011971620842814445, 0.028307802975177765, -0.01286397036164999, 0.05064304545521736, 0.028555186465382576, 0.004581022076308727, 0.06735914200544357, -0.05583811178803444, -0.02442033775150776, -0.005897458642721176, 0.01873050630092621, -0.02844916470348835, -0.03703692555427551, -0.006219941657036543, 0.051879968494176865, 0.003997902851551771, 0.010195756331086159, -0.00554847065359354, 0.003925012890249491, 0.048628631979227066, 0.0027366860304027796, 0.07456861436367035, 0.03880395367741585, 0.017970683053135872, 0.01747591607272625, 0.11287780106067657, 0.03194788098335266, -0.016115302219986916, -0.05127917602658272, -0.054813235998153687, -0.009232725948095322, -0.07343772053718567, 0.019985096529126167, 0.02076258882880211, -0.007695410400629044, 0.01812971569597721, 0.0023125989828258753, 0.011812588199973106, -0.054848574101924896, -0.03816782310605049, 0.020462194457650185, -0.037531692534685135, -0.08799804002046585, -0.004070792812854052, 0.06817197054624557, -0.007205060217529535, -0.001421353779733181, -0.03060493990778923, 0.0036091564688831568, 0.026805827394127846, -0.0025025545619428158, -0.03553495183587074, -0.0022662144619971514, -0.04686160385608673, -0.010072064585983753, 0.04173722118139267, -0.01649521477520466, 0.0034368711058050394, 0.059195466339588165, -0.0019393141847103834, -0.012687266804277897, 0.006878159940242767, 0.025003457441926003, 0.017378728836774826, -0.06333031505346298, 0.04661422222852707, 0.023784209042787552, 0.022900693118572235, 0.0042607481591403484, 0.01274027768522501, -0.02385488897562027, -0.010354788973927498, 0.02572794072329998, -0.0010740222642198205, -0.006568929646164179, 0.03511086478829384, -0.024809084832668304, 0.042691417038440704, 0.00878213346004486, -0.06400178372859955, 0.02754797972738743, 0.016283171251416206, 0.004960933700203896, -0.024897435680031776, 0.004545681644231081, 0.033184800297021866, 0.03085232339799404, 0.0060918317176401615, -0.0017924298299476504, -0.01934896595776081, -0.014454295858740807, -0.019932085648179054, -0.02182280644774437, -0.08043514937162399, -0.033184800297021866, 0.0018631110433489084, 0.024720733985304832, -0.06371905654668808, -0.0005165798356756568, 0.004503714852035046, 0.003505343571305275, -0.01816505566239357, 0.032937418669462204, 0.007805849891155958, 0.03770839422941208, 0.01947265863418579, -0.05389437824487686, 0.03933406248688698, -0.004249704536050558, 0.019366636872291565, 0.04710898920893669, 0.051385197788476944, 0.036188751459121704, -0.03852123022079468, 0.03355587646365166, 0.0711405798792839, 0.04396367818117142, 0.008481738157570362, -0.0007150945020839572, 0.002838290063664317, 0.01589442417025566, 0.01274027768522501, 0.009400593116879463, -0.015629369765520096, -0.08269695192575455, 0.020921621471643448, -0.047568418085575104, 0.009153209626674652, -0.014913723804056644, -0.01885419711470604, 0.0024893018417060375, -0.03011017106473446, 0.026063675060868263, 0.01686629094183445, -0.028095759451389313, -0.011768411844968796, -0.004276209976524115, 0.04117177054286003, -0.021487070247530937, 0.026841167360544205, 0.012969992123544216, 0.10637513548135757, -0.0028095757588744164, 0.017873497679829597, 0.00849057361483574, 0.03958144783973694, 0.03150612488389015, 0.021557752043008804, 0.027583319693803787, -0.01853613182902336, -0.02023248001933098, -0.001814517774619162, -0.004066375084221363, 0.004472791682928801, -0.02519783191382885, -0.013915352523326874, -0.023501483723521233, 0.010876062326133251, -0.029880458489060402, -0.003576024668291211, 0.031594473868608475, 0.07156466692686081, -0.04194926470518112, -0.035623300820589066, 0.01235153153538704, 0.02207018993794918, 0.08283831179141998, 0.014312933199107647, -0.03926338255405426, 0.037248969078063965, -0.028678877279162407, -0.011777247302234173, 0.04449378699064255, -0.007129961159080267, -0.056226857006549835, 0.01617714948952198, -0.06753583997488022, -0.037814415991306305, 0.007337587419897318, 0.010363624431192875, -0.002498137066140771, 0.03134709224104881, 0.04463514685630798, -0.06548608839511871, -0.01637152209877968, 0.0015141228213906288, -0.052410077303647995, -0.03933406248688698, 0.0013241672422736883, -0.03286673501133919, -0.058665357530117035, 0.0373903289437294, 0.0015859083505347371, -0.07746654748916626, -0.00647174334153533, 0.05368233472108841, -0.0002625694323796779, -0.012757948599755764, -0.020550545305013657, -0.058382634073495865, -0.04279743880033493, -0.041595857590436935, -0.051915306597948074, -0.026364069432020187, -0.009162044152617455, -0.03339684382081032, -0.012749113142490387, 0.009807010181248188, 0.011874433606863022, -0.02857285551726818, -0.03449240326881409, 0.005049285013228655, 0.0731549933552742, 0.022617969661951065, 0.02632872946560383, -0.013606121763586998, -0.01894254982471466, 0.05113781616091728, -0.04505923390388489, 0.04315084591507912, 0.01221016887575388, -0.039652127772569656, 0.012448717840015888, -0.03475745767354965, -0.061351239681243896, 0.04311550408601761, -0.005822360049933195, -0.023554494604468346, 0.033838603645563126, -0.03323781117796898, -0.0036533321253955364, -0.04679092392325401, 0.025621918961405754, -0.027936726808547974, 0.004775395616889, 0.01003672368824482, -0.005976974964141846, 0.006290622521191835, 0.020373841747641563, -0.02576328068971634, 0.009895361959934235, -0.06513268500566483, 0.08623100817203522, 0.012872804887592793, -0.03799112141132355, -0.04421105980873108, -0.00664402823895216, 0.000690245651639998, 0.013906517066061497, -0.013482430018484592, 0.03629477322101593, 0.08269695192575455, 0.04823988676071167, 0.005610316526144743, 0.03442172333598137, 0.007377345580607653, -0.04990089312195778, 0.042090628296136856, -0.005036032292991877, 0.023430801928043365, 0.033343832939863205, 0.003640079405158758, 0.023625176399946213, 0.01070819515734911, -0.00555730564519763, -0.005844447761774063, -0.04474116861820221, -0.030463578179478645, 0.035746995359659195, -0.08510010689496994, -0.01630084030330181, 0.08156605064868927, 0.008154838345944881, 0.0674651637673378, -0.01481653656810522, 0.02138104848563671, -0.03162981569766998, 0.012908145785331726, 0.00554847065359354, 0.022423595190048218, -0.02040918357670307, -0.006599852815270424, 0.04074768349528313, -0.07237750291824341, -0.0011193023528903723, 0.04311550408601761, 0.021080654114484787, 0.007430356461554766, 0.006750050000846386, 0.012024631723761559, 0.019401976838707924, 0.017873497679829597, -0.012342696078121662, 0.014577987603843212, 0.009365253150463104, 0.02044452354311943, -0.013765154406428337, -0.015169942751526833, 0.025692598894238472, -0.06760652363300323, -0.06580415368080139, -0.05251609906554222, -0.05230405554175377, -0.041560519486665726, 0.023430801928043365, 0.06170464679598808, -0.008936748839914799, -0.03519921377301216, 0.033061109483242035, -0.05693366751074791, 0.010080899111926556, -0.02185814641416073, -0.016530554741621017, 0.047815799713134766, -0.03707226365804672, 0.02669980563223362, -0.00009352828783448786, 0.02032083086669445, -0.0268234983086586, 0.025798620656132698, -0.028307802975177765, 0.011088105849921703, -0.003651123261079192, 0.011450346559286118, -0.00956846121698618, 0.0013473595026880503, -0.05262211710214615, -0.017864661291241646, 0.044599808752536774, 0.002241917885839939, -0.06711175292730331, 0.0670410767197609, 0.01070819515734911, -0.013129024766385555, -0.0910373255610466, 0.007978134788572788, 0.0012115191202610731, -0.018076704815030098, -0.055696748197078705, 0.01042546983808279, -0.04880533739924431, 0.030004149302840233 ]
714,736
pytorch_optimizer.optimizer.a2grad
A2Grad
Optimal Adaptive and Accelerated Stochastic Gradient Descent. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: Optional[float]. learning rate. no needed. :param beta: float. beta. :param lips: float. Lipschitz constant. :param rho: float. represents the degree of weighting decrease, a constant smoothing factor between 0 and 1. :param variant: str. type of A2Grad optimizer. 'uni', 'inc', 'exp'.
class A2Grad(Optimizer, BaseOptimizer): r"""Optimal Adaptive and Accelerated Stochastic Gradient Descent. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: Optional[float]. learning rate. no needed. :param beta: float. beta. :param lips: float. Lipschitz constant. :param rho: float. represents the degree of weighting decrease, a constant smoothing factor between 0 and 1. :param variant: str. type of A2Grad optimizer. 'uni', 'inc', 'exp'. """ def __init__( self, params: PARAMETERS, lr: Optional[float] = None, beta: float = 10.0, lips: float = 10.0, rho: float = 0.5, variant: str = 'uni', ): self.validate_learning_rate(lr) self.validate_non_negative(lips, 'lips') self.validate_non_negative(rho, 'rho') self.validate_options(variant, 'variant', ['uni', 'inc', 'exp']) self.variant = variant defaults: DEFAULTS = {'beta': beta, 'lips': lips} if variant == 'exp': defaults.update({'rho': rho}) super().__init__(params, defaults) def __str__(self) -> str: return 'A2Grad' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['alpha_k'] = 1.0 state['v_k'] = torch.zeros((1,), dtype=p.dtype, device=p.device) state['avg_grad'] = torch.zeros_like(p) state['x_k'] = p.clone() if self.variant == 'exp': state['v_kk'] = torch.zeros((1,), dtype=p.dtype, device=p.device) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 gamma_k: float = 2.0 * group['lips'] / (group['step'] + 1) alpha_k_1: float = 2.0 / (group['step'] + 3) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['alpha_k'] = 1.0 state['v_k'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) state['avg_grad'] = grad.clone() state['x_k'] = p.clone() if self.variant == 'exp': state['v_kk'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) avg_grad = state['avg_grad'] avg_grad.add_(grad - avg_grad, alpha=group['step'] + 1) delta_k = grad.clone() delta_k.add_(avg_grad, alpha=-1.0) delta_k_sq = delta_k.pow(2).sum() v_k = state['v_k'] if self.variant in ('uni', 'inc'): if self.variant == 'inc': v_k.mul_((group['step'] / (group['step'] + 1)) ** 2) v_k.add_(delta_k_sq) else: v_kk = state['v_kk'] v_kk.mul_(group['rho']).add_(delta_k_sq, alpha=1.0 - group['rho']) torch.max(v_kk, v_k, out=v_k) h_k = v_k.sqrt() if self.variant != 'uni': h_k.mul_(math.sqrt(group['step'] + 1)) coefficient = -1.0 / (gamma_k + group['beta'] * h_k.item()) x_k = state['x_k'] x_k.add_(grad, alpha=coefficient) p.mul_(1.0 - alpha_k_1).add_(x_k, alpha=alpha_k_1) p.add_(grad, alpha=(1.0 - alpha_k_1) * state['alpha_k'] * coefficient) state['alpha_k'] = alpha_k_1 return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: Optional[float] = None, beta: float = 10.0, lips: float = 10.0, rho: float = 0.5, variant: str = 'uni')
[ -0.030478185042738914, -0.06773827224969864, -0.04052992910146713, 0.03384895250201225, 0.005363958887755871, 0.015551947988569736, -0.05187346786260605, -0.046908147633075714, -0.019689714536070824, -0.004914859775453806, -0.013432604260742664, 0.004324471112340689, 0.01746944896876812, 0.05683878809213638, -0.030296526849269867, 0.03465631976723671, 0.0037542665377259254, 0.012655511498451233, 0.041014350950717926, 0.0032824601512402296, -0.04008587822318077, -0.08792249858379364, -0.02192007191479206, 0.04412272199988365, -0.04739256948232651, -0.023171493783593178, 0.05756542086601257, -0.002376692835241556, -0.028681788593530655, -0.02765239216387272, -0.047190725803375244, -0.04702925309538841, 0.023756837472319603, 0.04081251099705696, 0.053124889731407166, -0.07209806144237518, 0.02775331400334835, 0.009708614088594913, -0.0833204984664917, -0.0014860638184472919, 0.02015395276248455, -0.025210101157426834, 0.023070573806762695, -0.03665455803275108, -0.019437411800026894, 0.02825791947543621, -0.031164448708295822, 0.04743293672800064, -0.009098040871322155, -0.03174979239702225, 0.04081251099705696, -0.07068517059087753, 0.019780544564127922, 0.0027273937594145536, -0.02393849566578865, 0.02002275548875332, 0.0652354285120964, -0.05776726081967354, 0.021233808249235153, -0.053407467901706696, 0.025210101157426834, -0.07633674889802933, 0.04153914377093315, 0.018307095393538475, -0.03843076899647713, -0.029812105000019073, -0.046464093029499054, -0.012796800583600998, 0.018690595403313637, 0.05506257340312004, 0.010899483226239681, -0.023595362901687622, 0.03750229626893997, -0.016732726246118546, -0.033223241567611694, -0.007437888067215681, -0.051389046013355255, -0.013432604260742664, -0.010485706850886345, -0.06765753030776978, -0.0012470068177208304, 0.012282103300094604, -0.04161987826228142, -0.03643253073096275, 0.005182300694286823, -0.005227715242654085, 0.0024725680705159903, -0.027733130380511284, 0.018619950860738754, -0.03600866347551346, -0.02204117737710476, -0.0025861042086035013, 0.030861685052514076, 0.040227167308330536, 0.05142941325902939, 0.042467616498470306, -0.031547948718070984, -0.07552938163280487, -0.017267607152462006, -0.058292049914598465, 0.03441410884261131, 0.006267203018069267, 0.026400970295071602, 0.044607143849134445, 0.015410657972097397, -0.08206906914710999, -0.04626225307583809, 0.014038130640983582, 0.037764690816402435, -0.04715035855770111, -0.03554442524909973, 0.004215980879962444, -0.025189917534589767, -0.01110132597386837, -0.047796253114938736, -0.013927117921411991, -0.023676099255681038, 0.014623473398387432, -0.03960145637392998, 0.03152776509523392, 0.04408235475420952, 0.013917025178670883, -0.05926089361310005, 0.051510151475667953, -0.0024082306772470474, -0.008613619022071362, 0.04363830015063286, 0.02573489211499691, 0.020315425470471382, -0.03843076899647713, -0.00017724274948704988, 0.03247642517089844, -0.015874896198511124, -0.012413300573825836, 0.034615952521562576, -0.017903409898281097, -0.020174136385321617, 0.02948915772140026, 0.013957394286990166, 0.03594811260700226, 0.035746268928050995, -0.01441153883934021, -0.030639659613370895, -0.03633161261677742, 0.021435650065541267, 0.004811415448784828, 0.053690046072006226, -0.007866802625358105, -0.005121747963130474, -0.007483302615582943, -0.00609563710168004, 0.06136005371809006, 0.050097253173589706, -0.017590554431080818, 0.009900364093482494, -0.024826601147651672, -0.04715035855770111, -0.007170447148382664, -0.01078847050666809, -0.017711659893393517, -0.042467616498470306, -0.031992003321647644, -0.017136409878730774, -0.01760064624249935, 0.01579415798187256, 0.013583986088633537, -0.019689714536070824, 0.02847994677722454, -0.026764286682009697, 0.011071049608290195, -0.010132482275366783, -0.06269221007823944, 0.031083712354302406, 0.03673529624938965, -0.04004551097750664, 0.09849903732538223, 0.012372932396829128, 0.015027157962322235, 0.014613381586968899, -0.024321995675563812, 0.02062828093767166, -0.02119343914091587, -0.04973394051194191, -0.048926569521427155, -0.0074126580730080605, 0.03128555417060852, 0.03281955420970917, 0.0002515144005883485, -0.0032143383286893368, 0.007442934438586235, 0.019084187224507332, -0.035120557993650436, 0.03617013618350029, -0.015158355236053467, -0.01668226532638073, 0.032153476029634476, 0.039500534534454346, 0.01171694416552782, 0.06491247564554214, 0.04525303840637207, -0.011676575988531113, -0.012857353314757347, -0.02187970280647278, 0.019104372709989548, -0.010495798662304878, -0.011192155070602894, 0.008865922689437866, 0.030034132301807404, 0.00790212582796812, 0.03592792525887489, -0.08372417837381363, 0.006413538474589586, 0.03405079245567322, 0.06789974123239517, 0.03996477276086807, -0.04210430011153221, 0.005048580002039671, 0.061925213783979416, 0.03584719076752663, -0.0017043057596310973, 0.010435245931148529, -0.06224815919995308, 0.01665198802947998, 0.01980072818696499, 0.061198581010103226, -0.04339608922600746, 0.05510294437408447, -0.009854949079453945, -0.029468974098563194, -0.016026277095079422, 0.026037653908133507, -0.06592168658971786, 0.042588721960783005, 0.01718687079846859, 0.03084150142967701, 0.062207791954278946, -0.03112407959997654, -0.0025369052309542894, -0.02074938639998436, -0.01734834350645542, -0.022061360999941826, -0.03923813998699188, -0.02971118502318859, 0.02074938639998436, -0.038168374449014664, 0.01957870088517666, 0.0706447958946228, 0.0455356203019619, -0.007609453983604908, 0.025654153898358345, -0.02718815580010414, -0.01876123994588852, -0.01731806807219982, 0.05401299521327019, -0.08299754559993744, -0.031648870557546616, 0.057323209941387177, 0.02377702109515667, 0.019356675446033478, -0.07330911606550217, -0.009829719550907612, -0.0107077332213521, -0.08089838922023773, 0.06959521770477295, -0.0017812581500038505, 0.023857757449150085, 0.08598481118679047, -0.030478185042738914, -0.009340251795947552, 0.03976292908191681, 0.07229990512132645, 0.08703438937664032, -0.08743807673454285, 0.00912831723690033, 0.012917906045913696, 0.05437631160020828, -0.010556351393461227, 0.02718815580010414, -0.015975816175341606, 0.014078499749302864, 0.050944991409778595, -0.033606741577386856, -0.05938199907541275, 0.020618189126253128, -0.04166024923324585, 0.022848546504974365, -0.013684906996786594, -0.031648870557546616, 0.07415685802698135, 0.018619950860738754, 0.04828067496418953, 0.0047004022635519505, 0.07012000679969788, 0.005596077535301447, 0.09639987349510193, 0.016974935308098793, -0.03342508152127266, 0.04957246407866478, -0.019134648144245148, -0.019750267267227173, 0.0708870068192482, 0.011868325993418694, 0.032436054199934006, -0.006009853910654783, -0.007119986694306135, -0.023514626547694206, 0.04694851487874985, -0.002567181596532464, 0.0606737919151783, -0.025492681190371513, -0.035342585295438766, 0.008517744019627571, 0.007417703978717327, 0.012080260552465916, -0.03326360881328583, -0.1039891466498375, 0.0010817485162988305, -0.04642372578382492, 0.03405079245567322, 0.07149253785610199, -0.04375940561294556, 0.04731183126568794, -0.01087929867208004, -0.010288910008966923, 0.0024195844307541847, -0.04071158915758133, 0.044768620282411575, 0.02831847220659256, -0.03185071423649788, -0.021778782829642296, -0.06955485045909882, -0.006247018463909626, 0.03011486865580082, 0.04480898752808571, -0.07173474878072739, -0.02131454460322857, 0.045737460255622864, 0.03606921434402466, -0.008043414913117886, -0.02882307767868042, 0.06317663192749023, 0.019659439101815224, -0.04832104220986366, 0.029347868636250496, -0.02169804461300373, -0.03253697603940964, 0.05546626076102257, -0.023232046514749527, 0.02125399187207222, 0.052115678787231445, -0.016096921637654305, 0.010076976381242275, 0.03166905418038368, 0.07314764708280563, 0.0882454439997673, 0.006802084855735302, -0.03875371813774109, -0.03336453065276146, 0.01980072818696499, -0.05780763179063797, 0.022525599226355553, 0.048361409455537796, -0.06051231548190117, 0.07238063961267471, 0.07625601440668106, -0.011646299622952938, -0.011494917795062065, -0.03752247989177704, 0.040792327374219894, -0.031830526888370514, 0.006166281644254923, -0.0676979050040245, 0.01281698513776064, 0.0189529899507761, -0.020002570003271103, -0.003920786548405886, -0.02037597820162773, -0.008270487189292908, 0.050218358635902405, 0.012726156041026115, 0.03897574543952942, 0.003433841746300459, -0.005974531639367342, 0.06309589743614197, 0.016349224373698235, -0.027934972196817398, 0.010495798662304878, -0.03919777274131775, 0.07411648333072662, -0.03919777274131775, 0.04622188210487366, 0.03649308532476425, 0.061198581010103226, 0.0019099325872957706, -0.029368052259087563, 0.028742341324687004, 0.036694929003715515, 0.019911741837859154, -0.06152152642607689, -0.03497926890850067, -0.06212705373764038, -0.02567433938384056, 0.02169804461300373, 0.00255078193731606, -0.007695237174630165, -0.07988917827606201, 0.05118720233440399, 0.07343022525310516, -0.011827957816421986, 0.06967595964670181, -0.04549524933099747, -0.005028395913541317, -0.04279056563973427, 0.03699769079685211, -0.01292799785733223, -0.005994715727865696, 0.029428604990243912, 0.0026466569397598505, -0.0004945136024616659, 0.053528573364019394, 0.018720872700214386, 0.007987908087670803, 0.03744174540042877, 0.03386913612484932, 0.013927117921411991, -0.012534406036138535, -0.07318801432847977, 0.007564039435237646, -0.030135052278637886, -0.031830526888370514, -0.0014671410899609327, -0.004392592702060938, -0.005979577545076609, -0.021213624626398087, -0.054820362478494644, -0.006009853910654783, -0.0042588720098137856, 0.030659843236207962, 0.03901611268520355, -0.01435098610818386, 0.012625235132873058, -0.01580425165593624, -0.016752909868955612, 0.028500130400061607, 0.01193897146731615, -0.028843263164162636, 0.036250874400138855, -0.003885464044287801, -0.06224815919995308, -0.01390693336725235, 0.015773974359035492, 0.006630518939346075, 0.028903815895318985, -0.015107895247638226, 0.018973175436258316, 0.006539689842611551, -0.031547948718070984, -0.03203237056732178, 0.006458953022956848, 0.0021685429383069277, 0.033223241567611694, 0.053245995193719864, -0.031709421426057816, 0.023171493783593178, -0.009698521345853806, 0.03201218694448471, 0.08081764727830887, -0.006988788954913616, -0.02074938639998436, -0.012958274222910404, -0.030377263203263283, -0.011363720521330833, -0.01029900275170803, -0.01152519416064024, -0.06305553019046783, 0.000558850821107626, -0.00862371176481247, 0.01415923610329628, -0.007952585816383362, -0.047917358577251434, 0.015208816155791283, -0.05970494821667671, 0.02355499379336834, 0.047796253114938736, 0.028681788593530655, 0.04803846403956413, 0.022243019193410873, 0.024402732029557228, -0.01829700358211994, 0.04178135097026825, -0.053124889731407166, -0.0604315809905529, 0.04327498748898506, 0.031870897859334946, -0.04525303840637207, -0.024321995675563812, 0.0429520383477211, 0.010526075027883053, 0.04682740941643715, -0.006236926652491093, 0.016258396208286285, 0.02113288640975952, -0.06959521770477295, 0.004639849532395601, 0.03612976893782616, -0.022687071934342384, -0.049209147691726685, 0.027854235842823982, -0.056717682629823685, 0.022687071934342384, -0.02444310113787651, 0.002341370563954115, 0.05393225699663162, 0.008008092641830444, 0.015592316165566444, -0.02825791947543621, -0.011081141419708729, 0.05098536238074303, 0.01004165317863226, -0.05029909685254097, 0.011656391434371471, 0.01860985904932022, 0.0033758122008293867, -0.0074076117016375065, 0.029509341344237328, 0.07625601440668106, 0.005061195231974125, -0.005379097070544958, 0.046060409396886826, -0.011474734172224998, -0.030135052278637886, -0.004511175211519003, -0.004102444276213646, 0.0835627019405365, -0.0427098274230957, -0.05231751874089241, -0.007397519890218973, -0.02181915007531643, -0.0761752799153328, -0.052115678787231445, 0.014290433377027512, 0.005964439362287521, 0.006842453498393297, -0.04581819847226143, -0.01831718720495701, 0.05373041704297066, 0.0190438199788332, 0.021556755527853966, -0.054578155279159546, -0.025371575728058815, -0.03342508152127266, 0.024604573845863342, 0.018650226294994354, 0.014542736113071442, 0.029791921377182007, 0.028621235862374306, -0.03560497984290123, -0.002241710899397731, 0.009976054541766644, -0.011908695101737976, -0.02539175935089588, -0.03730045258998871, 0.015188631601631641, -0.026622997596859932, 0.007342013064771891, 0.008250303566455841, 0.01932639814913273, -0.01062699593603611, -0.01813552901148796, 0.011333444155752659, -0.017590554431080818, -0.057161733508110046, -0.009441172704100609, 0.0033833812922239304, -0.0783955454826355, 0.01078847050666809, 0.04311351105570793, -0.02377702109515667, -0.02393849566578865, -0.040126245468854904, 0.055546995252370834, -0.024866970255970955, 0.0024271535221487284, 0.012544497847557068, 0.028156999498605728, 0.04497046023607254, -0.04884583130478859, 0.04059048369526863, -0.011202246882021427, 0.012070168741047382, -0.005818103905767202, 0.020951228216290474, -0.03263789787888527, -0.0706447958946228, -0.04194282740354538, 0.008951704949140549, -0.03691695258021355, 0.006458953022956848, 0.06071415916085243, 0.0035095326602458954, -0.059018682688474655, -0.03707842901349068, 0.05566810071468353, -0.013917025178670883, -0.02062828093767166, 0.015269368886947632, 0.007180539425462484, 0.023676099255681038, 0.03195163235068321, -0.03762340173125267, -0.006186466198414564, -0.012181181460618973, -0.007266322150826454, -0.0289845522493124, -0.045616354793310165, 0.0076447767205536366, -0.0034666412975639105, 0.007594315800815821, 0.07084663957357407, 0.0035423319786787033, -0.047634780406951904, 0.016137290745973587, 0.010384785942733288, 0.03257734328508377, -0.007352105341851711, -0.023817390203475952, 0.04497046023607254, -0.08186723291873932, -0.0024977982975542545, -0.00640849256888032, -0.013200485147535801, 0.006564920302480459, 0.027107419446110725, -0.0023136171512305737, 0.03639216348528862, -0.021112702786922455, 0.03847113996744156, 0.017237331718206406, -0.020507175475358963, -0.03901611268520355, -0.014845499768853188, 0.024927522987127304, 0.005843333899974823, 0.026501892134547234, -0.008618665859103203, -0.02365591563284397, 0.0189529899507761, 0.027773497626185417, 0.05417446792125702, 0.023474257439374924, 0.0006894175312481821, 0.030740579590201378, -0.037986718118190765, -0.021940255537629128, -0.01873096451163292, 0.026219312101602554, 0.04622188210487366, 0.03764358535408974, 0.025149548426270485, -0.016157474368810654, 0.0009183823713101447, -0.0005370897124521434, -0.019195200875401497, 0.027228524908423424, -0.03707842901349068, -0.0053690047934651375, -0.0029115749057382345, -0.01639968529343605, -0.00748834852129221, 0.022848546504974365, -0.08469302207231522, -0.02456420660018921, -0.03897574543952942, 0.006211696192622185, -0.003983862232416868, -0.024967890232801437, 0.06717310845851898, -0.02775331400334835, -0.03721971809864044, -0.01810525357723236, 0.01923556998372078, 0.06713274121284485, 0.005323590245097876, 0.024402732029557228, 0.03645271807909012, -0.03195163235068321, -0.031325921416282654, 0.013624354265630245, 0.010798562318086624, -0.027167972177267075, -0.04702925309538841, -0.03090205416083336, -0.005093994550406933, -0.0028106537647545338, 0.034959085285663605, -0.08816470950841904, -0.03742155805230141, -0.014673934318125248, -0.009844857268035412, -0.06761716306209564, 0.016440054401755333, -0.03865279629826546, -0.038491323590278625, 0.011444457806646824, 0.00881546176970005, 0.046181514859199524, -0.009390712715685368, -0.039944589138031006, 0.018579581752419472, -0.024039415642619133, -0.004798800218850374, 0.017005212604999542, -0.01592535711824894, -0.004955227952450514, 0.02646152302622795, 0.028136814013123512, 0.004334562923759222, -0.02563397027552128, -0.03964182361960411, 0.07072553783655167, -0.012827076949179173, -0.015319829806685448, 0.028903815895318985, 0.019861280918121338, -0.07060442864894867, -0.005575892981141806, 0.03340489789843559, -0.017681384459137917, 0.004637326579540968, -0.0214154664427042, 0.029347868636250496, 0.016026277095079422, -0.0074076117016375065, -0.027733130380511284, -0.0045414515770971775, -0.029872657731175423, 0.03548387438058853, -0.0031563087832182646, 0.005323590245097876, 0.04166024923324585, 0.0027349628508090973, 0.03649308532476425, -0.04363830015063286, -0.033505819737911224, -0.0007998000364750624, 0.044041987508535385, -0.022909099236130714, 0.002261894987896085, 0.0401868000626564, -0.04206393286585808, 0.056435100734233856, 0.0003475471748970449, 0.015965724363923073, 0.022949468344449997, 0.08412786573171616, -0.04884583130478859, -0.00197553145699203, -0.0631362646818161, -0.07742670178413391, -0.10269735753536224, -0.0027501010335981846, -0.052519362419843674, 0.056273628026247025, 0.0379059799015522, -0.009360436350107193, -0.0042513031512498856, 0.05134867876768112, -0.01901354268193245 ]
714,738
pytorch_optimizer.optimizer.a2grad
__init__
null
def __init__( self, params: PARAMETERS, lr: Optional[float] = None, beta: float = 10.0, lips: float = 10.0, rho: float = 0.5, variant: str = 'uni', ): self.validate_learning_rate(lr) self.validate_non_negative(lips, 'lips') self.validate_non_negative(rho, 'rho') self.validate_options(variant, 'variant', ['uni', 'inc', 'exp']) self.variant = variant defaults: DEFAULTS = {'beta': beta, 'lips': lips} if variant == 'exp': defaults.update({'rho': rho}) super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: Optional[float] = None, beta: float = 10.0, lips: float = 10.0, rho: float = 0.5, variant: str = 'uni')
[ 0.014398166909813881, -0.03201029449701309, -0.016448451206088066, -0.004557726439088583, -0.0388999879360199, -0.01989329792559147, -0.04096874222159386, -0.03744077682495117, -0.0377732552587986, 0.03431916981935501, -0.023513618856668472, 0.07233254611492157, -0.0043083676137030125, 0.06557215005159378, -0.03901081159710884, 0.008746032603085041, 0.0030084687750786543, 0.01478605903685093, -0.00928169209510088, -0.012458709068596363, -0.005665988195687532, 0.04329609125852585, -0.035778384655714035, 0.12094829976558685, 0.014315047301352024, 0.024511056020855904, 0.028223732486367226, 0.0005916501395404339, -0.05729713290929794, -0.0045300195924937725, 0.021149327978491783, 0.007425353396683931, -0.014028746634721756, 0.08334128558635712, -0.0025674731004983187, -0.027725014835596085, -0.023458207026124, 0.02142639271914959, -0.12560299038887024, 0.06221042573451996, 0.0073099094443023205, -0.014629054814577103, 0.043333034962415695, -0.0417814664542675, -0.0417814664542675, 0.004945618100464344, 0.007157523650676012, 0.015127772465348244, -0.02092767506837845, -0.03267525136470795, 0.05279020220041275, 0.0068758404813706875, 0.01197846233844757, -0.03638792783021927, -0.03382045403122902, 0.0593658871948719, 0.048467978835105896, 0.025249896571040154, 0.03149310499429703, 0.028482327237725258, -0.017510535195469856, -0.05467424541711807, -0.029590588063001633, -0.03871527686715126, 0.01956081949174404, -0.02844538353383541, -0.046288397163152695, -0.020022595301270485, 0.042150888592004776, 0.03487330302596092, 0.07122428715229034, -0.020059537142515182, -0.022405358031392097, 0.004336073994636536, 0.03627710044384003, 0.012347882613539696, -0.08991696685552597, -0.021611103788018227, -0.006931253708899021, -0.028242202475667, 0.025102127343416214, 0.02528683841228485, -0.007397647015750408, -0.016688574105501175, -0.04019295796751976, -0.03679428994655609, -0.02755877561867237, -0.07743055373430252, 0.04240948334336281, 0.030938973650336266, -0.08925200998783112, -0.013151372782886028, -0.015746552497148514, 0.0003018858842551708, 0.03926940634846687, 0.013862507417798042, 0.035187311470508575, -0.04662087559700012, 0.013751680962741375, -0.04307444021105766, -0.0278912540525198, -0.004310676362365484, -0.041596755385398865, 0.0002060674160020426, 0.0002753337612375617, -0.040820974856615067, -0.030680378898978233, 0.0037057502195239067, 0.05319656431674957, -0.030846618115901947, -0.019616233184933662, 0.061065223067998886, -0.07802162319421768, 0.03254595398902893, -0.07137205451726913, 0.019025159999728203, -0.014508993364870548, -0.0027429477777332067, -0.028870217502117157, -0.0023481296375393867, 0.004959471058100462, 0.03901081159710884, -0.07447519153356552, 0.07587898522615433, 0.03649875149130821, 0.0048070852644741535, -0.00045715796295553446, 0.013659325428307056, -0.012301704846322536, 0.0011463582050055265, 0.04111650958657265, 0.008547469042241573, -0.026154976338148117, -0.02844538353383541, 0.02558237500488758, -0.04566038399934769, 0.009660348296165466, 0.04355468600988388, -0.009406371042132378, 0.02048437111079693, 0.054046228528022766, 0.013751680962741375, 0.016032852232456207, -0.054046228528022766, 0.0267645213752985, 0.04119039326906204, -0.004054390825331211, -0.022627010941505432, -0.0359446220099926, 0.03402363508939743, 0.011091852560639381, 0.03915858268737793, 0.016577748581767082, 0.01994871161878109, 0.010334541089832783, -0.05208830162882805, 0.028408441692590714, -0.05618887022137642, 0.02192511036992073, -0.01170139666646719, 0.015894319862127304, 0.013049782253801823, 0.006691130343824625, -0.034596238285303116, -0.02029966004192829, 0.009909707121551037, -0.06265372782945633, -0.018812742084264755, 0.000547492818441242, 0.008815298788249493, -0.022682422772049904, -0.10868353396654129, -0.017602890729904175, 0.015201657079160213, -0.011609042063355446, 0.08156806230545044, 0.018609561026096344, 0.012975897639989853, -0.0017824543174356222, 0.004019757732748985, 0.06512884795665741, 0.000508819124661386, -0.031382277607917786, -0.01926528289914131, 0.045254021883010864, 0.0212416835129261, -0.03766242787241936, 0.03393128141760826, -0.028519269078969955, 0.010824022814631462, 0.051275577396154404, 0.010740903206169605, -0.0029622912406921387, -0.008044132962822914, 0.0011613658862188458, 0.03104979917407036, 0.06871222704648972, -0.036073919385671616, 0.021260153502225876, 0.04152287170290947, 0.06860139966011047, 0.02986765280365944, -0.03199182078242302, -0.0023619828280061483, -0.05194053426384926, 0.0062293545342981815, -0.007175994571298361, 0.013917920179665089, -0.013206785544753075, -0.03470706194639206, 0.005361216142773628, 0.0004842872731387615, 0.02434481680393219, 0.03101285733282566, 0.012486415915191174, -0.06003084406256676, -0.035372018814086914, 0.024326344951987267, 0.023716801777482033, -0.007725507952272892, 0.1159241795539856, -0.0476921983063221, -0.015691138803958893, -0.0014488212764263153, 0.02582249790430069, 0.0348178893327713, 0.03797643631696701, -0.04662087559700012, -0.07957319170236588, 0.06479636579751968, -0.03993436321616173, -0.03346950560808182, 0.048763517290353775, 0.015349425375461578, -0.0055505442433059216, 0.0777999758720398, -0.03718218207359314, 0.0454387292265892, -0.07602675259113312, -0.02068755216896534, 0.01473988126963377, 0.021703459322452545, -0.0025974884629249573, 0.004317603074014187, 0.003306314116343856, 0.011802987195551395, 0.01279118750244379, 0.0822330191731453, -0.05393540486693382, -0.03382045403122902, -0.004433047026395798, -0.02113085612654686, -0.009295545518398285, 0.04953929781913757, -0.013243727385997772, 0.028112905099987984, 0.05707547813653946, -0.01723347045481205, 0.044219642877578735, -0.05219912901520729, -0.013779387809336185, -0.02074296586215496, 0.005979995708912611, 0.08142029494047165, -0.015589548274874687, 0.007919454015791416, 0.022497713565826416, -0.009909707121551037, 0.020909205079078674, 0.00656645093113184, 0.11267327517271042, 0.04440435394644737, -0.02794666588306427, -0.003908931277692318, 0.04429352656006813, -0.032509010285139084, -0.013973332941532135, -0.018664974719285965, 0.016568513587117195, 0.041153453290462494, 0.04503236711025238, -0.016633162274956703, 0.042040061205625534, 0.020706024020910263, 0.006395593751221895, -0.0057629612274467945, 0.004287587478756905, 0.005790667608380318, -0.025896381586790085, 0.011802987195551395, -0.011923049576580524, 0.038678333163261414, 0.03189946711063385, 0.049502357840538025, 0.08570557087659836, 0.010685490444302559, 0.01195075549185276, 0.042003121227025986, 0.039823539555072784, -0.03612933307886124, 0.030938973650336266, -0.027835840359330177, 0.07092875242233276, -0.031179096549749374, -0.08614888042211533, -0.055967219173908234, 0.046879470348358154, -0.009817351587116718, 0.021906640380620956, 0.02192511036992073, 0.024307873100042343, 0.08851317316293716, 0.015090830624103546, 0.020022595301270485, 0.0260626208037138, -0.028279144316911697, 0.003200105857104063, -0.04968706890940666, 0.027096999809145927, 0.03295231610536575, -0.01691022701561451, 0.0212416835129261, -0.005605957470834255, -0.025914853438735008, -0.032065704464912415, -0.06028943881392479, -0.010537722148001194, 0.003992050886154175, -0.026782991364598274, -0.0023446662817150354, -0.03668346256017685, 0.008843004703521729, 0.029812240973114967, -0.023624446243047714, -0.01802772469818592, -0.030680378898978233, 0.021906640380620956, 0.07558345049619675, 0.00681580975651741, -0.010085181333124638, 0.062432076781988144, -0.028371499851346016, -0.03051413968205452, 0.04078403115272522, 0.015940498560667038, -0.03624015673995018, 0.004405340179800987, -0.06952495127916336, 0.03293384611606598, -0.019837884232401848, -0.03716370835900307, -0.00978040974587202, 0.0005293104331940413, 0.03415293246507645, 0.03441152721643448, -0.047027237713336945, -0.01994871161878109, -0.013363789767026901, 0.012855836190283298, -0.052864085882902145, -0.029313523322343826, -0.008561321534216404, -0.044810716062784195, 0.06224736571311951, 0.043517742305994034, -0.02864856645464897, 0.024160105735063553, -0.03337714821100235, 0.022996431216597557, 0.007000519894063473, 0.0022650097962468863, -0.06642182171344757, -0.023679858073592186, -0.03056955337524414, 0.017889192327857018, 0.01066701952368021, -0.004626992624253035, -0.019542347639799118, 0.033007729798555374, -0.04577120766043663, -0.009290927089750767, 0.00667727692052722, 0.0527532584965229, 0.028870217502117157, -0.018332496285438538, -0.041596755385398865, -0.00035152677446603775, 0.04004519060254097, 0.026505926623940468, 0.010537722148001194, -0.013548499904572964, 0.03346950560808182, 0.03744077682495117, -0.02909187041223049, -0.034097518771886826, -0.001679709181189537, 0.009378665126860142, 0.028242202475667, -0.027835840359330177, -0.01950540579855442, -0.02593332529067993, -0.07063321769237518, -0.015063123777508736, 0.025305310264229774, 0.0010961401276290417, -0.01794460415840149, 0.025249896571040154, 0.04385022073984146, 0.019727058708667755, 0.0032462833914905787, 0.019930239766836166, -0.021444864571094513, -0.03989742323756218, -0.014259634539484978, -0.04133816435933113, -0.0271154697984457, 0.07580510526895523, -0.003814267460256815, -0.0024589556269347668, 0.013391495682299137, 0.03956494480371475, 0.017889192327857018, 0.05851621925830841, 0.07074403762817383, 0.058146797120571136, 0.07403188198804855, 0.0212416835129261, 0.010731668211519718, 0.011913813650608063, -0.053159620612859726, -0.04854186251759529, 0.053750693798065186, -0.02814984880387783, -0.03204723447561264, 0.030588023364543915, -0.030643437057733536, -0.023273495957255363, 0.00987276528030634, -0.025840969756245613, 0.015266305766999722, 0.04754442721605301, -0.06904470920562744, -0.012006169185042381, 0.030938973650336266, -0.032564423978328705, -0.005735254380851984, 0.005749107804149389, -0.010583899915218353, -0.03605544939637184, -0.03901081159710884, 0.00028096165624447167, 0.0057306368835270405, 0.02632121555507183, -0.015940498560667038, 0.0012791187036782503, -0.03407904878258705, -0.02730018086731434, -0.018581854179501534, 0.0439610481262207, -0.06202571466565132, 0.02523142471909523, 0.022700894623994827, 0.013668561354279518, -0.008741414174437523, -0.052162185311317444, 0.038789160549640656, 0.07846493273973465, -0.023938452824950218, -0.023679858073592186, 0.002358519472181797, 0.007887129671871662, 0.03845668211579323, 0.0417814664542675, -0.025545433163642883, -0.055967219173908234, 0.015644961968064308, 0.006811191793531179, -0.005093386396765709, -0.01944999396800995, -0.028205260634422302, 0.010334541089832783, -0.011147266253829002, 0.018230905756354332, 0.06298620998859406, 0.012477179989218712, 0.011987697333097458, -0.05179276317358017, 0.025914853438735008, 0.02626580372452736, 0.050943098962306976, -0.0725911408662796, -0.02523142471909523, -0.006257060915231705, 0.06490719318389893, -0.034042105078697205, -0.011895342729985714, 0.031825583428144455, 0.014647525735199451, 0.05186665058135986, 0.0144905224442482, 0.012043111026287079, -0.021463336423039436, -0.015090830624103546, -0.00667727692052722, 0.03470706194639206, -0.04983483627438545, -0.0821591392159462, 0.041301220655441284, -0.049650125205516815, 0.010685490444302559, -0.03801337629556656, 0.012680361047387123, 0.023439735174179077, -0.021703459322452545, -0.03540896251797676, 0.006423300132155418, -0.0550067238509655, 0.06860139966011047, -0.010196007788181305, -0.008325816132128239, 0.014481286518275738, 0.017981545999646187, 0.04233559966087341, -0.038087259978055954, 0.0227193646132946, 0.040414612740278244, -0.015663431957364082, -0.06224736571311951, 0.07381023466587067, 0.016448451206088066, -0.019579291343688965, -0.05622581019997597, -0.05681688338518143, 0.03496565669775009, -0.022091349586844444, 0.037902552634477615, 0.02661675214767456, -0.033007729798555374, 0.006644952576607466, -0.04998260363936424, 0.013188314624130726, 0.020909205079078674, 0.0271524116396904, -0.008658294565975666, -0.02231300249695778, -0.031271450221538544, -0.02449258416891098, 0.05323350429534912, -0.03502107039093971, -0.00708363950252533, 0.005652134772390127, -0.0381242036819458, -0.06996826082468033, -0.015395602211356163, 0.011959991417825222, 0.013022075407207012, 0.013373024761676788, 0.0033848159946501255, 0.04573426768183708, 0.01555260643362999, 0.005647517275065184, -0.028168318793177605, 0.0004880392225459218, -0.0013206785079091787, -0.026801463216543198, 0.0011527076130732894, -0.001423423644155264, -0.027669601142406464, -0.018286319449543953, -0.007217554375529289, 0.04928070679306984, -0.033986691385507584, -0.008455113507807255, 0.026653693988919258, -0.03437458351254463, 0.005213447846472263, 0.03971271216869354, 0.026487454771995544, -0.037052884697914124, -0.00932325143367052, 0.011470508761703968, 0.001811315305531025, -0.08585334569215775, -0.07639617472887039, 0.01034377608448267, 0.021943582221865654, -0.042150888592004776, 0.030846618115901947, -0.011581335216760635, 0.014425873756408691, 0.013142136856913567, 0.05803597345948219, -0.032176531851291656, -0.040303785353899, -0.0659046322107315, 0.024178577587008476, -0.006511037703603506, -0.05984613299369812, 0.039971306920051575, 0.04835715517401695, -0.08814375102519989, 0.003207032335922122, 0.014924591407179832, -0.012006169185042381, 0.02364291623234749, -0.030292486771941185, -0.018360203132033348, 0.04706418141722679, -0.012726538814604282, -0.03431916981935501, 0.03289690241217613, -0.021758871152997017, 0.0006736153154633939, -0.03694205731153488, 0.00599846662953496, -0.018314024433493614, -0.06265372782945633, 0.018424851819872856, 0.08710937201976776, -0.03912163898348808, -0.058479275554418564, -0.007171377073973417, -0.004783996380865574, 0.033358678221702576, -0.07728278636932373, 0.013299141079187393, -0.005328891798853874, -0.08829151839017868, -0.017067231237888336, -0.03354338929057121, 0.02113085612654686, -0.02874092012643814, 0.01256953552365303, -0.025859439745545387, -0.0027060057036578655, -0.014850706793367863, 0.025637788698077202, 0.02133403904736042, 0.04063626378774643, 0.012301704846322536, 0.00015281890227925032, 0.01655004173517227, 0.018221670761704445, -0.01726117730140686, 0.019025159999728203, 0.010528486222028732, -0.05386152118444443, 0.02063213847577572, 0.05046284943819046, 0.006367887370288372, 0.0008006036514416337, 0.03310008347034454, -0.06764090806245804, 0.013142136856913567, 0.004493077751249075, 0.013299141079187393, 0.01980094239115715, 0.02626580372452736, 0.0696357786655426, 0.0249358881264925, -0.04643616825342178, -0.003031557658687234, 0.04636228084564209, 0.027872782200574875, 0.025914853438735008, -0.005356598179787397, -0.030735792592167854, -0.048061616718769073, -0.010953320190310478, -0.01900668814778328, -0.015386367216706276, -0.027337122708559036, -0.020816849544644356, 0.022793250158429146, 0.013493086211383343, 0.020410487428307533, -0.04059932008385658, -0.0256747305393219, 0.021740401163697243, -0.0010291826911270618, 0.020207306370139122, 0.026930760592222214, -0.0022615466732531786, -0.057703495025634766, 0.022497713565826416, 0.001783608691766858, -0.05297490954399109, 0.04588203504681587, 0.0037519277539104223, -0.01838790997862816, -0.05973530560731888, -0.019099043682217598, -0.013807093724608421, 0.002819140674546361, 0.031326863914728165, -0.06128687411546707, -0.05870093032717705, -0.08252855390310287, 0.01622679829597473, -0.004793231841176748, 0.002285789931192994, -0.023051844909787178, -0.05870093032717705, 0.09501497447490692, -0.013022075407207012, 0.007065168581902981, -0.00694972462952137, -0.016799401491880417, 0.027780426666140556, -0.08090310543775558, 0.02744794823229313, 0.02844538353383541, 0.010796315968036652, -0.0571863055229187, -0.011904577724635601, 0.05984613299369812, 0.0396018847823143, -0.00201449659653008, -0.058479275554418564, -0.018166257068514824, -0.010389953851699829, -0.05762961134314537, 0.0369974710047245, 0.0019890989642590284, 0.01980094239115715, -0.0212416835129261, -0.00500103086233139, 0.030938973650336266, 0.04399799183011055, -0.011609042063355446, 0.015340189449489117, 0.006243207957595587, -0.0462145134806633, -0.06265372782945633, 0.006063115317374468, -0.05027814209461212, 0.029461290687322617, 0.02523142471909523, 0.03694205731153488, 0.03051413968205452, 0.01197846233844757, 0.02508365735411644, -0.014730645343661308, -0.028814805671572685, 0.016217563301324844, 0.08090310543775558, -0.003557981923222542, -0.01926528289914131, 0.05541308596730232, -0.01959776133298874, 0.0034656268544495106, -0.025397663936018944, 0.025859439745545387, 0.05825762450695038, 0.02646898478269577, -0.040266841650009155, 0.03912163898348808, -0.030680378898978233, -0.05762961134314537, -0.05545002967119217, -0.015644961968064308, -0.05556085333228111, 0.06638487428426743, 0.04469988867640495, 0.00654336204752326, 0.020022595301270485, 0.0245849397033453, -0.019727058708667755 ]
714,741
pytorch_optimizer.optimizer.a2grad
__str__
null
def __str__(self) -> str: return 'A2Grad'
(self) -> str
[ 0.005812599789351225, -0.02458818629384041, 0.033089060336351395, 0.009974133223295212, 0.0023199596907943487, -0.05212289094924927, -0.009347574785351753, -0.0192878395318985, 0.05676281079649925, -0.028635414317250252, 0.003801685757935047, 0.009389909915626049, 0.013471006415784359, 0.03667907044291496, 0.010075737722218037, -0.012869849801063538, 0.015384550206363201, -0.046737875789403915, 0.008623645640909672, 0.03850794583559036, -0.015926439315080643, -0.014529382809996605, -0.009457645937800407, -0.011659067124128342, -0.014207636006176472, 0.036746807396411896, 0.02834753692150116, -0.0312771201133728, -0.025671962648630142, -0.019609587267041206, -0.038575679063797, -0.06865048408508301, -0.0027687109541147947, 0.032479435205459595, 0.013123859651386738, -0.017509769648313522, -0.02988853119313717, -0.010380549356341362, -0.03019334375858307, 0.0015473454259335995, 0.03407123312354088, -0.0002452785847708583, -0.03058282658457756, -0.010939371772110462, -0.03749190270900726, -0.030718298628926277, -0.05242770165205002, -0.011701402254402637, -0.023521343246102333, -0.03617104887962341, 0.017247291281819344, -0.03860954940319061, -0.03161580115556717, 0.03019334375858307, 0.013970560394227505, 0.03596784174442291, 0.03945624828338623, -0.02253917045891285, 0.011252650991082191, 0.010786965489387512, 0.0035286247730255127, -0.030819902196526527, 0.055204879492521286, -0.026857344433665276, -0.016451392322778702, 0.02733149565756321, -0.01916930265724659, 0.056627336889505386, 0.03378335386514664, 0.060318950563669205, 0.023318134248256683, -0.03352934494614601, -0.009364509023725986, 0.00021670243586413562, 0.031361792236566544, -0.005194508470594883, -0.06363801658153534, 0.0018902590963989496, 0.009753990918397903, -0.05649186670780182, 0.021184450015425682, 0.00033576972782611847, -0.012776711955666542, -0.042064085602760315, -0.002283975016325712, -0.0936112180352211, -0.02631545439362526, -0.06130112335085869, -0.0391853041946888, -0.008001320995390415, -0.03142952546477318, -0.03425750881433487, -0.03644199296832085, 0.04240276664495468, -0.006650833413004875, -0.00922903697937727, -0.007738843560218811, -0.08358628302812576, 0.021032042801380157, -0.006303686182945967, 0.028212064877152443, -0.006388355977833271, -0.03383415564894676, 0.032174624502658844, -0.019541850313544273, -0.06160593777894974, -0.03928690776228905, 0.03535821661353111, 0.007235056720674038, -0.01864434778690338, -0.04802485927939415, 0.018102459609508514, 0.03474859520792961, -0.008107158355414867, -0.026027576997876167, -0.02753470465540886, 0.013928225263953209, 0.012793646194040775, 0.033800289034843445, 0.005059036426246166, 0.037559639662504196, 0.018830621615052223, -0.05964159220457077, 0.060522161424160004, 0.0240632314234972, 0.10411030799150467, -0.03485019877552986, 0.01648526079952717, 0.011184914968907833, -0.08168967813253403, 0.052664779126644135, -0.004652619827538729, -0.07193568348884583, -0.0001870679116109386, 0.07024228572845459, -0.0018510991940274835, 0.0489392951130867, 0.015426885336637497, 0.08616025745868683, 0.12558263540267944, 0.014512448571622372, -0.01259890478104353, 0.01616351492702961, -0.006299452390521765, -0.006824406795203686, 0.04761844128370285, -0.022573038935661316, 0.09103725105524063, -0.0055374219082295895, 0.002163320081308484, 0.0015801549889147282, 0.06201235204935074, 0.04822806641459465, -0.03965945541858673, 0.020930439233779907, -0.026129180565476418, -0.001039325026795268, -0.02763630822300911, 0.04944731667637825, -0.02773791179060936, 0.0012721676612272859, -0.03437604382634163, -0.003865188220515847, 0.010990174487233162, 0.039117567241191864, 0.014487047679722309, 0.006667767185717821, 0.030311882495880127, -0.023893890902400017, -0.027043618261814117, -0.04006587341427803, -0.11718336492776871, -0.06218169257044792, 0.051039114594459534, 0.0006678351201117039, 0.030447354540228844, 0.009516915306448936, 0.09855595231056213, 0.03302132338285446, -0.005909970495849848, 0.02905876561999321, 0.010532955639064312, -0.07749003916978836, 0.010897036641836166, 0.042436633259058, -0.05303732678294182, -0.0034841729793697596, 0.03259797394275665, 0.03667907044291496, -0.033597081899642944, 0.0479232557117939, 0.023910826072096825, -0.03224235773086548, -0.006938711740076542, 0.027585506439208984, -0.06495887041091919, 0.00092078692978248, -0.045518625527620316, 0.0326995775103569, 0.015460752882063389, 0.009864062070846558, 0.017899250611662865, -0.019846662878990173, 0.062249429523944855, 0.05534035339951515, -0.009593117982149124, 0.03386802598834038, -0.03556142747402191, -0.007205422502011061, -0.01927090622484684, 0.01998213492333889, 0.03996426984667778, 0.009398376569151878, 0.02997320145368576, 0.0469072125852108, -0.03417283669114113, 0.05994640290737152, 0.004597584251314402, -0.036848410964012146, 0.042876917868852615, 0.05486619845032692, -0.0507681705057621, 0.014537849463522434, -0.008361168205738068, 0.0021125180646777153, -0.012370295822620392, 0.03149726241827011, -0.00867021456360817, -0.04294465482234955, 0.010964772664010525, 0.015088205225765705, -0.09171461313962936, -0.009313707239925861, 0.013691148720681667, -0.008234163746237755, 0.0974721759557724, -0.0456879660487175, 0.010956306010484695, -0.06455245614051819, -0.012666640803217888, -0.0283306036144495, 0.01634978875517845, -0.011701402254402637, 0.03488406538963318, 0.055001672357320786, -0.05191968381404877, 0.02414790168404579, -0.004157300107181072, -0.05313893035054207, -0.013081524521112442, 0.0391853041946888, -0.014927332289516926, -0.012835981324315071, 0.02262384071946144, -0.035527557134628296, -0.01728115975856781, -0.021540064364671707, -0.00680747302249074, 0.028212064877152443, -0.02662026695907116, -0.03402043133974075, -0.004686487838625908, -0.039591722190380096, 0.0418270118534565, 0.003126441966742277, 0.021133648231625557, -0.0005109308985993266, 0.022657709196209908, 0.016332855448126793, -0.021777139976620674, 0.05395176261663437, 0.03336000442504883, -0.05886262655258179, 0.034206703305244446, 0.005427350755780935, -0.004559482913464308, 0.026975881308317184, 0.03942238166928291, -0.048397406935691833, -0.035222746431827545, 0.005770264659076929, -0.04013361036777496, -0.042470503598451614, 0.042876917868852615, -0.019812794402241707, -0.03508727252483368, 0.03952398523688316, -0.036848410964012146, 0.04362201690673828, 0.022065017372369766, 0.06942944973707199, 0.01772991009056568, 0.014656387269496918, 0.021336855366826057, 0.0795898586511612, 0.025519557297229767, 0.0830443948507309, 0.028872491791844368, -0.013928225263953209, 0.017408164218068123, 0.012615839019417763, -0.008839554153382778, 0.0076372395269572735, -0.0204054843634367, -0.04782165214419365, -0.049413446336984634, 0.015460752882063389, -0.02976999431848526, 0.020879637449979782, 0.00829343218356371, -0.03620491921901703, 0.03518887609243393, -0.007061483338475227, 0.06976813077926636, -0.021438458934426308, 0.032479435205459595, 0.006125879008322954, -0.0010123364627361298, 0.03297052159905434, 0.05374855548143387, -0.03297052159905434, 0.0014637337299063802, -0.007704975549131632, -0.01998213492333889, 0.008323066867887974, -0.017814580351114273, -0.0430462583899498, 0.038270868360996246, 0.022268226370215416, 0.01651066169142723, -0.0895470604300499, -0.06292679160833359, 0.06912463903427124, -0.02313186042010784, -0.03080296888947487, -0.0038800055626779795, 0.04158993437886238, -0.01472412422299385, -0.023199597373604774, -0.028635414317250252, 0.04545088857412338, -0.02836447022855282, -0.0226407740265131, 0.04734749719500542, 0.005710995756089687, 0.03579850122332573, -0.030769100412726402, -0.0245712511241436, 0.02611224725842476, 0.02873701974749565, -0.0521906279027462, -0.008043656125664711, 0.003213228890672326, 0.045518625527620316, 0.02805965766310692, 0.039490118622779846, -0.02978692762553692, 0.02059175819158554, -0.006197848357260227, -0.012793646194040775, -0.001451033167541027, -0.04538315162062645, -0.01049908809363842, 0.02946518175303936, 0.005694061517715454, 0.001564279431477189, -0.015892570838332176, 0.007251990959048271, 0.04321559891104698, -0.018779819831252098, -0.0103551484644413, 0.022149687632918358, -0.026078378781676292, -0.016028042882680893, -0.05093751102685928, 0.04937957972288132, 0.030210278928279877, 0.009432245045900345, 0.021353790536522865, -0.03874501958489418, 0.019406378269195557, -0.013995961286127567, -0.021946480497717857, 0.07186795026063919, 0.01386048924177885, -0.004860061686486006, 0.0025633862242102623, -0.00947458017617464, 0.024960733950138092, -0.0003437075356487185, 0.00443247752264142, -0.00877181813120842, 0.018475007265806198, -0.03263184055685997, -0.0320899523794651, -0.05456138774752617, -0.00867021456360817, 0.003492640098556876, -0.04453645274043083, 0.017594438046216965, -0.05310506373643875, -0.026484794914722443, -0.0069641126319766045, -0.0021220433991402388, -0.04355427995324135, -0.007628772407770157, 0.020778033882379532, 0.05131005868315697, -0.019863596186041832, 0.007616071961820126, -0.028381405398249626, -0.004703422077000141, -0.032987456768751144, -0.015409951098263264, 0.05679667741060257, 0.023470541462302208, -0.04782165214419365, -0.053376007825136185, -0.03667907044291496, 0.017865383997559547, -0.03505340591073036, 0.03149726241827011, 0.029600653797388077, 0.05933677777647972, -0.003234396455809474, 0.0065153613686561584, -0.002878782106563449, 0.07186795026063919, 0.06086083874106407, 0.020253079012036324, -0.044096168130636215, 0.03048122301697731, -0.003232279559597373, -0.053274404257535934, -0.01473259087651968, -0.04761844128370285, -0.026992816478013992, -0.010668427683413029, 0.02292865328490734, -0.008119858801364899, 0.0576772466301918, -0.038778889924287796, 0.011574397794902325, 0.018898358568549156, -0.011345787905156612, -0.07159700244665146, -0.046941082924604416, -0.017458966001868248, -0.001680700690485537, -0.024012429639697075, -0.013479474000632763, 0.05269864574074745, -0.006519594695419073, -0.018424205482006073, 0.07566116750240326, -0.0012287743156775832, -0.021235251799225807, -0.0757289007306099, 0.050835903733968735, 0.001161038177087903, -0.037051618099212646, 0.03413897007703781, -0.043689750134944916, 0.0446719229221344, 0.0254856888204813, -0.008729483000934124, 0.0414205938577652, 0.006985280197113752, -0.03945624828338623, -0.007027615327388048, -0.0009276663768105209, -0.042673710733652115, 0.006113178562372923, -0.045315418392419815, -0.021997282281517982, 0.06231716647744179, -0.0525970421731472, -0.004953198600560427, 0.030159475281834602, -0.026586400344967842, -0.03647586330771446, -0.07098738104104996, -0.005325746722519398, 0.0919855535030365, 0.006358721759170294, 0.04484126344323158, -0.05486619845032692, -0.008043656125664711, -0.05364695191383362, -0.012065484188497066, 0.004495980218052864, -0.006625432521104813, -0.035629160702228546, 0.0037826350890100002, -0.051547132432460785, 0.043486542999744415, 0.02284398302435875, -0.055509693920612335, -0.10858088731765747, 0.0625542402267456, 0.029939332976937294, -0.008069057017564774, -0.030328815802931786, -0.01259890478104353, 0.0552387498319149, -0.023318134248256683, -0.026230785995721817, -0.020625626668334007, -0.020253079012036324, -0.03251330554485321, -0.016739271581172943, -0.02978692762553692, 0.059167440980672836, 0.0460943803191185, 0.009711655788123608, -0.011819940991699696, -0.0021146347280591726, 0.03617104887962341, -0.01864434778690338, 0.029041830450296402, -0.04863448441028595, -0.03293665498495102, -0.05977706238627434, -0.048363540321588516, -0.005139472894370556, 0.034409914165735245, 0.0007636180962435901, 0.005660193506628275, -0.015342215076088905, 0.06268971413373947, 0.025553423911333084, 0.050734300166368484, 0.025976775214076042, 0.07688041776418686, -0.03860954940319061, 0.06394282728433609, -0.025147007778286934, 0.006892142817378044, 0.013928225263953209, -0.008119858801364899, 0.0033444673754274845, -0.019491048529744148, 0.003748767077922821, -0.029702257364988327, 0.03854181244969368, -0.008310366421937943, 0.00022000986791681498, 0.00964391976594925, 0.022860916331410408, -0.025028470903635025, 0.0008345292881131172, -0.0028004623018205166, -0.03762737661600113, -0.04131899029016495, 0.015968773514032364, 0.09374669194221497, -0.004525614902377129, 0.018932225182652473, 0.04636532440781593, 0.0029719192534685135, -0.05594997853040695, -0.04534928500652313, 0.07952212542295456, 0.03996426984667778, -0.01784844882786274, 0.0402013435959816, -0.011684468947350979, 0.03779671713709831, -0.014368509873747826, -0.06136886030435562, 0.007662640418857336, -0.08209609240293503, 0.051039114594459534, 0.012937585823237896, -0.0854828953742981, 0.04158993437886238, 0.06069150194525719, -0.014868062920868397, -0.028008855879306793, 0.0069429450668394566, -0.008678681217133999, 0.055712901055812836, -0.002965569030493498, -0.03667907044291496, 0.014546317048370838, 0.016087312251329422, -0.021743271499872208, 0.010236610658466816, 0.009440711699426174, -0.06387509405612946, -0.04565409570932388, -0.021065911278128624, -0.01249730121344328, -0.03644199296832085, 0.0015547539805993438, -0.04646693170070648, -0.03539208695292473, -0.011955413036048412, 0.00851780828088522, -0.0019770460203289986, 0.008551675826311111, 0.007442498579621315, 0.019338641315698624, 0.029329709708690643, 0.0426398441195488, 0.057846587151288986, 0.059912536293268204, 0.009847127832472324, -0.036645203828811646, 0.0026819242630153894, 0.0070953513495624065, 0.02367374859750271, -0.01488499715924263, -0.04484126344323158, -0.008098691701889038, -0.002772944513708353, 0.021455394104123116, -0.001878616982139647, -0.05452752113342285, 0.07247757166624069, -0.022606907412409782, 0.022251293063163757, -0.045925039798021317, 0.06130112335085869, -0.000040449798689223826, 0.036950014531612396, 0.003865188220515847, -0.029126500710844994, 0.0444687157869339, -0.0854828953742981, 0.008907290175557137, 0.009423777461051941, 0.0033444673754274845, -0.12178941816091537, -0.01864434778690338, 0.013572610914707184, 0.026891211047768593, 0.04294465482234955, -0.0260953139513731, 0.024909932166337967, -0.05168260633945465, 0.04639919474720955, -0.029837729409337044, 0.045891173183918, -0.05019241198897362, -0.003736066399142146, -0.07532248646020889, -0.04758457466959953, -0.007429798133671284, -0.03259797394275665, -0.038304734975099564, 0.0280257910490036, -0.0011525711743161082, 0.02414790168404579, -0.013005321845412254, -0.01651066169142723, -0.00017595497774891555, 0.0046229856088757515, -0.03810152783989906, -0.022251293063163757, -0.0123364282771945, -0.016298986971378326, 0.03529048338532448, 0.02662026695907116, 0.06096244603395462, 0.023385871201753616, 0.023572145029902458, -0.01280211377888918, 0.005215676035732031, -0.05066656321287155, -0.049108635634183884, 0.023876957595348358, 0.0280257910490036, -0.026840409263968468, -0.02546875551342964, 0.012708975933492184, 0.06672000885009766, 0.002783528296276927, 0.06346867978572845, -0.008678681217133999, 0.013377869501709938, 0.009254437871277332, 0.0019019012106582522, -0.04179314151406288, 0.04937957972288132, 0.04738136753439903, -0.08189288526773453, 0.04213182255625725, 0.0120316157117486, -0.014605585485696793, -0.09293386340141296, -0.039015963673591614, -0.02030388079583645, -0.03637425974011421, 0.06949719041585922, 0.004297005478292704, -0.022285159677267075, 0.0025210510939359665, -0.018322601914405823, -0.033292267471551895, 0.01925397291779518, 0.019948266446590424, -0.015968773514032364, 0.05811753123998642, 0.03820313140749931, -0.002838563872501254, -0.002838563872501254, -0.02397856116294861, -0.01402136217802763, -0.060115743428468704, 0.0422334261238575, 0.0266033336520195, -0.046839479357004166, 0.03908370062708855, 0.03681454434990883, -0.0564579963684082, -0.028720084577798843, 0.020744165405631065, -0.011286519467830658, 0.021997282281517982, -0.008594010956585407, 0.010837768204510212, 0.011582864448428154, -0.0019886880181729794, -0.0201006717979908, 0.05466299131512642, -0.019541850313544273, -0.026738805696368217, -0.03356321156024933, -0.03833860531449318, 0.000728162529412657, 0.016375189647078514, -0.018000856041908264, 0.04457031935453415, 0.0055374219082295895, 0.023199597373604774, 0.023707617074251175, 0.014664854854345322, 0.06672000885009766, 0.03647586330771446, 0.045315418392419815, 0.025130074471235275, -0.007874315604567528, -0.0067185694351792336, -0.041149649769067764, 0.050835903733968735, 0.0017399698263034225, 0.029803860932588577, -0.03068443015217781, 0.001983396243304014, 0.07755777984857559, 0.04758457466959953, 0.0007525051478296518, 0.026230785995721817, 0.04230116307735443, -0.06797312200069427, 0.041556067764759064, -0.024909932166337967, -0.014292306266725063, -0.03742416575551033, 0.040438421070575714, -0.01081236731261015, 0.03515500947833061, -0.007840448059141636, -0.011193382553756237, 0.04013361036777496, -0.027060551568865776, -0.018779819831252098 ]
714,748
pytorch_optimizer.base.optimizer
apply_adam_debias
Apply AdamD variant. :param adam_debias: bool. whether to apply AdamD. :param step_size: float. step size. :param bias_correction1: float. bias_correction.
@staticmethod def apply_adam_debias(adam_debias: bool, step_size: float, bias_correction1: float) -> float: r"""Apply AdamD variant. :param adam_debias: bool. whether to apply AdamD. :param step_size: float. step size. :param bias_correction1: float. bias_correction. """ return step_size if adam_debias else step_size / bias_correction1
(adam_debias: bool, step_size: float, bias_correction1: float) -> float
[ 0.03366578370332718, 0.00440144632011652, 0.022036440670490265, -0.0161858182400465, -0.031113440170884132, 0.0003709999145939946, -0.025325728580355644, -0.059422895312309265, -0.026422157883644104, 0.0542103610932827, -0.04720040038228035, 0.008555746637284756, -0.009993687272071838, 0.056762706488370895, -0.0027568016666918993, 0.0029814799781888723, 0.002110851928591728, 0.08872093260288239, 0.012312366627156734, 0.009688124991953373, 0.004803620278835297, -0.004471096675843, -0.01854943297803402, 0.024696629494428635, -0.04022638872265816, 0.0165273305028677, 0.04518728330731392, -0.014810788445174694, -0.03023270145058632, 0.01075759343802929, 0.013489680364727974, -0.055216919630765915, 0.005572020076215267, 0.033072635531425476, 0.010568863712251186, 0.018819047138094902, 0.055037178099155426, 0.046193841844797134, -0.06492301821708679, -0.00697401212528348, -0.006690917536616325, 0.015781398862600327, 0.09447269886732101, -0.03406121954321861, -0.01729123666882515, -0.0030151817481964827, -0.0305023156106472, -0.01757882349193096, -0.06690018624067307, 0.08764248341321945, 0.03975905850529671, -0.10130291432142258, 0.052089396864175797, 0.029657525941729546, -0.0018030427163466811, 0.04964489862322807, 0.02805781550705433, -0.0006936939898878336, 0.0063089644536376, -0.020760267972946167, 0.0049294400960206985, -0.040118541568517685, 0.04191596806049347, -0.047739628702402115, -0.011332769878208637, 0.02151518687605858, -0.06265826523303986, 0.01190794538706541, 0.01730920933187008, 0.0224318727850914, -0.010640760883688927, -0.010694683529436588, -0.02412145398557186, 0.022162260487675667, -0.012276417575776577, 0.017803501337766647, -0.042275454849004745, -0.04029828682541847, -0.007454823236912489, -0.02832742966711521, 0.044144775718450546, -0.010335198603570461, 0.05374303087592125, -0.036343950778245926, 0.0497886948287487, -0.07272384315729141, -0.03582269698381424, 0.021371392533183098, 0.07099831849336624, -0.08979938924312592, 0.07628274708986282, -0.07272384315729141, 0.04561866447329521, 0.036703433841466904, 0.013552590273320675, 0.08419141918420792, -0.022359976544976234, -0.026530005037784576, -0.006470732856541872, 0.01914258487522602, 0.03522954508662224, 0.05126258358359337, 0.10885210335254669, 0.005347341764718294, -0.00444413535296917, -0.009948751889169216, -0.016608214005827904, -0.04029828682541847, 0.007949115708470345, -0.06341318041086197, -0.03735050559043884, -0.02334856055676937, -0.012231482192873955, 0.007576149422675371, -0.03749430179595947, -0.005347341764718294, 0.08397573232650757, -0.0019591941963881254, -0.023726020008325577, 0.06722372025251389, -0.002550097880885005, -0.004035220947116613, -0.015565707348287106, -0.02273743599653244, 0.06668449938297272, -0.008744476363062859, 0.010721644386649132, 0.05237698554992676, 0.0339893214404583, -0.0238338652998209, 0.05280837044119835, -0.002941037993878126, -0.04454021155834198, 0.01975370943546295, 0.05500122904777527, -0.009634202346205711, 0.025505471974611282, 0.055073127150535583, 0.022359976544976234, 0.051334477961063385, -0.007454823236912489, -0.003931868821382523, 0.03911198303103447, 0.015637604519724846, 0.002691645175218582, 0.008695047348737717, 0.018819047138094902, 0.01867525279521942, -0.020940009504556656, 0.02696138620376587, 0.00032718764850869775, 0.023096920922398567, 0.008609669283032417, 0.018585382029414177, 0.011449602432549, -0.029873216524720192, -0.011728202924132347, 0.021694928407669067, -0.02865096740424633, 0.014064856804907322, 0.007679501548409462, -0.02397765964269638, -0.02739276923239231, 0.03240758553147316, -0.014028907753527164, -0.05417441204190254, -0.0305023156106472, 0.07872724533081055, 0.0013435757718980312, 0.023869814351201057, 0.0666126012802124, -0.005450693424791098, -0.04471995308995247, 0.0012626915704458952, 0.043389856815338135, 0.08433521538972855, 0.0020052532199770212, 0.011791112832725048, 0.01602405123412609, -0.035589031875133514, 0.03503182902932167, 0.06014186516404152, -0.009930777363479137, -0.0383211188018322, 0.01496356911957264, 0.028453249484300613, -0.018279820680618286, 0.027033284306526184, -0.008056960999965668, -0.0004353140539024025, 0.014118779450654984, 0.0034937462769448757, 0.03147292509675026, -0.030735980719327927, 0.005877582356333733, -0.0051316507160663605, -0.016293665394186974, -0.045798409730196, 0.06107652559876442, 0.003653267864137888, 0.007032428402453661, 0.00754918809980154, 0.025829007849097252, 0.02554142102599144, 0.036847226321697235, 0.011701242066919804, -0.031401026993989944, 0.010550889186561108, -0.016446445137262344, -0.05467769131064415, -0.05190965533256531, -0.0032892890740185976, 0.045259181410074234, -0.0006139332544989884, 0.022971101105213165, -0.06107652559876442, 0.06722372025251389, 0.010371146723628044, 0.012851594015955925, 0.0005367000703699887, 0.00028014564304612577, -0.029549678787589073, 0.0336478091776371, 0.01019140426069498, 0.06197524070739746, -0.005891062784940004, 0.023007050156593323, -0.013480693101882935, -0.007077363785356283, 0.0033701732754707336, -0.006061818450689316, -0.02244984731078148, -0.02618849277496338, -0.00871302094310522, 0.10353172570466995, -0.027626434341073036, -0.042994424700737, -0.039938800036907196, -0.0018311274470761418, -0.010101532563567162, -0.001494110212661326, 0.007603111211210489, 0.026709746569395065, 0.06837407499551773, -0.03968716040253639, -0.029693473130464554, -0.024534862488508224, 0.0004339098231866956, -0.0633053332567215, -0.012096675112843513, -0.028902607038617134, -0.08526987582445145, 0.011323782615363598, 0.04471995308995247, -0.007526720408350229, 0.06233472377061844, 0.01914258487522602, 0.057697366923093796, 0.0037296584341675043, -0.026889489963650703, 0.06060919538140297, -0.03785378485918045, -0.06995581090450287, 0.051190685480833054, -0.0460500493645668, 0.0682302787899971, 0.05036386847496033, -0.023618174716830254, -0.018908919766545296, -0.020131168887019157, 0.10762985795736313, 0.04939325898885727, -0.05341949313879013, -0.06348507851362228, 0.0041969893500208855, 0.05884771794080734, 0.044468313455581665, -0.00878941174596548, -0.052089396864175797, 0.010344184935092926, 0.029783345758914948, -0.10123101621866226, -0.015817346051335335, 0.0677269995212555, -0.04910567030310631, 0.033701732754707336, 0.0012683086097240448, 0.0532757006585598, 0.04457616060972214, 0.0582006461918354, 0.039938800036907196, 0.012267431244254112, 0.08512608706951141, 0.04313821718096733, 0.007666020654141903, -0.0009565675281919539, 0.02818363532423973, -0.03228176757693291, -0.03904008865356445, 0.014909646473824978, -0.017884386703372, -0.010784554295241833, -0.005468667950481176, 0.02180277369916439, -0.03929172828793526, -0.017381107434630394, 0.01634758710861206, -0.010694683529436588, 0.020975958555936813, 0.008272652514278889, -0.03195822983980179, -0.033701732754707336, -0.02773427963256836, 0.012716786935925484, 0.002927557099610567, -0.07470101118087769, 0.013840178027749062, 0.020292937755584717, 0.025145987048745155, 0.019358275458216667, 0.00039543365710414946, 0.07635464519262314, -0.03582269698381424, -0.016698084771633148, -0.05579209700226784, -0.019088661298155785, 0.07258005440235138, 0.0076480465941131115, 0.017560848966240883, 0.009391549974679947, -0.05737382918596268, -0.020023323595523834, 0.022036440670490265, 0.01252805721014738, -0.013444744981825352, -0.04655332863330841, 0.054929330945014954, -0.025882931426167488, -0.02600875124335289, -0.02088608779013157, 0.027626434341073036, 0.023869814351201057, -0.013354873284697533, 0.02072431892156601, 0.06887735426425934, 0.013912075199186802, -0.006632501259446144, -0.0028197115752846003, 0.045726511627435684, -0.000725710648111999, 0.01650935597717762, -0.02399563416838646, -0.016913777217268944, 0.01977168396115303, 0.052880264818668365, -0.018639305606484413, -0.006012388970702887, 0.0261705182492733, 0.022036440670490265, -0.033557940274477005, -0.019052712246775627, -0.022198207676410675, -0.0057787238620221615, 0.04238329827785492, 0.04583435878157616, 0.013184118084609509, -0.08426331728696823, -0.0523410364985466, 0.05622347816824913, -0.007567162625491619, 0.011764151975512505, -0.020957984030246735, -0.010245326906442642, -0.009481420740485191, -0.003925128374248743, -0.011764151975512505, -0.026440132409334183, 0.01792033575475216, 0.029621576890349388, 0.1331533044576645, -0.03555308282375336, -0.025181934237480164, 0.004745204001665115, 0.012204521335661411, 0.03256935626268387, -0.014082830399274826, 0.015457861125469208, 0.0006498817238025367, 0.0006824600859545171, -0.061903342604637146, 0.02848919853568077, -0.005774230230599642, -0.043857187032699585, 0.03788973391056061, -0.0850541889667511, 0.005356328561902046, -0.03724266216158867, 0.03695507347583771, -0.05075930431485176, 0.008600682020187378, -0.024211324751377106, 0.01075759343802929, -0.024265248328447342, 0.03156279772520065, -0.03368375822901726, -0.029819292947649956, -0.01246514730155468, 0.04781152680516243, 0.007153754588216543, 0.08368813991546631, 0.02649405598640442, 0.018729176372289658, -0.04921351745724678, 0.042275454849004745, -0.013076272793114185, 0.008587201125919819, -0.059279102832078934, -0.035912565886974335, -0.011036193929612637, -0.034348804503679276, 0.051765862852334976, 0.023726020008325577, -0.03066408261656761, -0.0020793969742953777, 0.02196454256772995, -0.003563396632671356, -0.012860581278800964, 0.03760214522480965, -0.06326938420534134, -0.02649405598640442, -0.00014435575576499104, -0.015700513496994972, -0.026601901277899742, -0.024193350225687027, -0.006124728359282017, 0.006677436642348766, -0.012483121827244759, 0.026997335255146027, 0.06107652559876442, -0.050076283514499664, 0.0002186399942729622, -0.0392557792365551, -0.0018007959006354213, -0.053203802555799484, -0.009634202346205711, -0.061759550124406815, 0.04989653825759888, -0.007607604376971722, 0.0006296607316471636, -0.047559887170791626, 0.012033765204250813, -0.040406130254268646, 0.026512030512094498, -0.007266093511134386, 0.008609669283032417, -0.026404185220599174, 0.025343703106045723, -0.024804474785923958, -0.020292937755584717, 0.014244599267840385, 0.04188001900911331, -0.05295216292142868, -0.07966191321611404, 0.060034021735191345, 0.019591940566897392, 0.08872093260288239, 0.02836337871849537, 0.019717760384082794, 0.0025590849108994007, 0.033414144068956375, 0.02072431892156601, -0.04195191711187363, 0.051801811903715134, -0.0001569939049659297, -0.016707072034478188, -0.02509206347167492, -0.006326938513666391, 0.008479355834424496, 0.02011319436132908, 0.04403693228960037, 0.02288123033940792, -0.06370076537132263, 0.005998908542096615, 0.012833619490265846, 0.009795970283448696, -0.008358029648661613, -0.06323343515396118, -0.001453668111935258, 0.0019198753871023655, 0.022234156727790833, 0.010640760883688927, -0.039974749088287354, 0.052412934601306915, 0.0023838358465582132, 0.015314067713916302, -0.05500122904777527, 0.02147923782467842, -0.01558368094265461, 0.07002770900726318, -0.019394224509596825, -0.0006066312198527157, 0.012222494930028915, -0.06413215398788452, -0.02866894006729126, 0.012671851553022861, -0.0275725107640028, -0.031688615679740906, 0.0009824055014178157, -0.05852418392896652, 0.004542993847280741, -0.03506777808070183, -0.01331892516463995, -0.03113141469657421, 0.045726511627435684, 0.013193105347454548, -0.004203729331493378, -0.00381503626704216, 0.007126793265342712, 0.001515454612672329, -0.011179988272488117, 0.00502829859033227, 0.036703433841466904, -0.0460500493645668, -0.04277873411774635, -0.007014453876763582, 0.010802528820931911, 0.01496356911957264, -0.023582225665450096, 0.055971838533878326, 0.034959930926561356, 0.009112948551774025, -0.035283468663692474, 0.07959001511335373, 0.09670150279998779, 0.007315522991120815, 0.013363860547542572, 0.005468667950481176, -0.06046540290117264, -0.08426331728696823, -0.004237431101500988, 0.017821475863456726, -0.022683512419462204, 0.008524291217327118, -0.047128502279520035, -0.024085504934191704, 0.052125345915555954, 0.0076480465941131115, 0.039795007556676865, 0.04630168899893761, -0.022791359573602676, -0.06150791049003601, 0.00439470587298274, -0.037925682961940765, 0.03655964136123657, 0.02821958437561989, -0.008942193351686, -0.01393004972487688, 0.029837267473340034, 0.03086180053651333, -0.01980763114988804, -0.05298811197280884, -0.06589362770318985, 0.03454652428627014, 0.008313094265758991, 0.030646109953522682, 0.017012635245919228, -0.008443407714366913, -0.007827789522707462, -0.0059404922649264336, 0.02462473325431347, -0.03821327164769173, -0.07139375060796738, -0.009984700009226799, 0.002261386252939701, -0.08663592487573624, 0.003940856084227562, -0.014118779450654984, -0.05183775722980499, 0.014253586530685425, -0.054569847881793976, -0.025936853140592575, -0.0411251001060009, -0.04921351745724678, 0.013723345473408699, -0.005401264410465956, -0.03522954508662224, -0.0303764957934618, 0.0047182426787912846, 0.004495811183005571, -0.02913627214729786, -0.0775768980383873, -0.04457616060972214, -0.0275725107640028, -0.055360712110996246, -0.04576246067881584, -0.0019311093492433429, -0.023726020008325577, 0.003316250629723072, 0.012312366627156734, 0.032623276114463806, -0.029226142913103104, -0.023743994534015656, 0.030286625027656555, 0.03255138173699379, 0.033881474286317825, 0.041520535945892334, -0.015394951216876507, 0.003242106642574072, 0.00012167730164946988, -0.05733788013458252, -0.03785378485918045, 0.025918878614902496, 0.006668449379503727, 0.021605057641863823, -0.08483849465847015, -0.03760214522480965, 0.04116104915738106, 0.0038959202356636524, 0.03334224969148636, 0.018423613160848618, -0.0327131487429142, 0.0033634330611675978, -0.007603111211210489, -0.022377951070666313, -0.00997571274638176, -0.00634491303935647, -0.0021344430278986692, -0.05417441204190254, 0.018801072612404823, -0.022845281288027763, 0.03256935626268387, 0.0544620007276535, 0.049608949571847916, -0.03425893560051918, -0.009220793843269348, 0.03415108844637871, 0.003026415593922138, 0.0476677305996418, -0.005360822193324566, -0.049932487308979034, 0.04622979089617729, 0.031526848673820496, -0.02883070893585682, 0.009292691014707088, -0.004507045261561871, -0.02505611442029476, 0.006331432145088911, -0.0026017737109214067, 0.008982635103166103, 0.024013608694076538, -0.02599077671766281, 0.024265248328447342, -0.019897503778338432, -0.008420939557254314, 0.04436046630144119, -0.03641584515571594, 0.005338354501873255, 0.08807386457920074, -0.04594220221042633, -0.0822502002120018, 0.02413942851126194, -0.053203802555799484, -0.013543603010475636, -0.04482780024409294, 0.014523199759423733, -0.008569227531552315, 0.015008505433797836, -0.018333742395043373, -0.016787957400083542, -0.05762546882033348, -0.046014100313186646, -0.005239496007561684, -0.029154246672987938, -0.055863991379737854, 0.024211324751377106, -0.028129713609814644, 0.01060481183230877, -0.01011950708925724, 0.03506777808070183, -0.005383290350437164, -0.04569056257605553, 0.011323782615363598, 0.005077727604657412, 0.0022681267000734806, -0.0034780187997967005, -0.030771929770708084, -0.05158611759543419, 0.007935634814202785, -0.020778242498636246, 0.035121697932481766, -0.02135341800749302, -0.03911198303103447, 0.054749589413404465, -0.011871997267007828, 0.05859607830643654, -0.02537965215742588, 0.00895118061453104, 0.04349770396947861, -0.03386349976062775, -0.03116736188530922, 0.04130484536290169, -0.01898081600666046, -0.026044698432087898, -0.03587661683559418, -0.01122492365539074, 0.009679137729108334, -0.022521745413541794, 0.047739628702402115, -0.04310226812958717, 0.02412145398557186, 0.02759048528969288, 0.03366578370332718, -0.003797061974182725, 0.009751034900546074, -0.0013862645719200373, -0.0005454063648357987, -0.012429199181497097, 0.0230250246822834, -0.020185090601444244, 0.03594851493835449, -0.06506681442260742, 0.01073961891233921, 0.025775086134672165, -0.011602383106946945, -0.06024971231818199, -0.05690649896860123, -0.04356960207223892, -0.0033544457983225584, 0.011206950061023235, -0.01590721867978573, 0.013615500181913376, 0.015206222422420979, -0.018783099949359894, -0.01650935597717762, -0.05248483270406723, 0.025954827666282654, 0.04220355674624443, -0.026547977700829506, 0.006547123193740845, 0.010083558969199657, 0.01621278002858162, 0.02478650212287903, -0.0018974075792357326, 0.010407094843685627, 0.022054413333535194, 0.004817101173102856, -0.02304299920797348, 0.013372847810387611, 0.007409887854009867, -0.05467769131064415, 0.030735980719327927, 0.01824387162923813, -0.002718606498092413, 0.026889489963650703, 0.05298811197280884, -0.07293953746557236, 0.06377266347408295, -0.06294585019350052, -0.0074368491768836975, -0.08929610997438431, 0.0027118660509586334, -0.06373671442270279, 0.05190965533256531, -0.02460675872862339, 0.007859244011342525, -0.003875699359923601, 0.0030623641796410084, 0.02228808030486107 ]
714,749
pytorch_optimizer.base.optimizer
apply_ams_bound
Apply AMSBound variant. :param ams_bound: bool. whether to apply AMSBound. :param exp_avg_sq: torch.Tensor. exp_avg_sq. :param max_exp_avg_sq: Optional[torch.Tensor]. max_exp_avg_sq. :param eps: float. epsilon.
@staticmethod def apply_ams_bound( ams_bound: bool, exp_avg_sq: torch.Tensor, max_exp_avg_sq: Optional[torch.Tensor], eps: float ) -> torch.Tensor: r"""Apply AMSBound variant. :param ams_bound: bool. whether to apply AMSBound. :param exp_avg_sq: torch.Tensor. exp_avg_sq. :param max_exp_avg_sq: Optional[torch.Tensor]. max_exp_avg_sq. :param eps: float. epsilon. """ if ams_bound: torch.max(max_exp_avg_sq, exp_avg_sq, out=max_exp_avg_sq) de_nom = max_exp_avg_sq.add(eps) else: de_nom = exp_avg_sq.add(eps) return de_nom.sqrt_().add_(eps)
(ams_bound: bool, exp_avg_sq: torch.Tensor, max_exp_avg_sq: Optional[torch.Tensor], eps: float) -> torch.Tensor
[ 0.036371346563100815, -0.01825643517076969, 0.02802150510251522, -0.006142972037196159, -0.003754775505512953, -0.00125712004955858, -0.019724734127521515, -0.061739303171634674, 0.015284457243978977, 0.01363041065633297, 0.0000683082253090106, -0.0013721073046326637, 0.01210019551217556, -0.0014284952776506543, -0.04291677474975586, 0.07493630051612854, 0.02644706517457962, 0.018857907503843307, 0.03799885883927345, 0.002242251066491008, 0.00636410154402256, -0.02982592023909092, -0.03944946825504303, -0.035469140857458115, -0.0065542724914848804, 0.04061703011393547, 0.0013024515938013792, 0.00009860985301202163, -0.028799880295991898, -0.024501126259565353, -0.00393610168248415, -0.07536086440086365, 0.05452164262533188, -0.0395909920334816, 0.06135011464357376, -0.07896969467401505, 0.05883808434009552, -0.0001798057637643069, -0.09305121004581451, -0.05816585198044777, 0.009464334696531296, -0.03364703431725502, 0.029489804059267044, 0.054627783596515656, -0.010145412757992744, -0.0024766481947153807, 0.02064463123679161, 0.042846012860536575, 0.005112509708851576, 0.029719779267907143, -0.03205490484833717, -0.05169118568301201, 0.06407442688941956, 0.04114774242043495, -0.031099624931812286, 0.051125094294548035, -0.013683481141924858, -0.013329674489796162, 0.01221518311649561, -0.06177468225359917, 0.0254210252314806, -0.056962911039590836, -0.002947653643786907, -0.0607132613658905, 0.01540828961879015, 0.04447352513670921, -0.0822954848408699, 0.002518662717193365, 0.00807121954858303, 0.06014716997742653, -0.04426124319434166, -0.030834270641207695, -0.008800946176052094, 0.011817149817943573, -0.02635861374437809, 0.0382465235888958, -0.027402343228459358, 0.04691479355096817, -0.0014517138479277492, -0.029631327837705612, 0.0445442870259285, 0.0236166100949049, 0.006129704415798187, -0.0067046405747532845, -0.01650509051978588, -0.022608259692788124, -0.018840216100215912, 0.026730110868811607, 0.08930085599422455, -0.07047833502292633, 0.02154683880507946, 0.011940982192754745, 0.03504457324743271, 0.0841352790594101, 0.0008458195952698588, 0.03884799778461456, -0.04111235961318016, -0.04521651938557625, -0.04323520138859749, 0.006770979147404432, -0.0069876862689852715, 0.03125884011387825, 0.06262382119894028, 0.05091281235218048, 0.042173780500888824, -0.007712990045547485, 0.025067217648029327, -0.07720066606998444, -0.018185673281550407, 0.026570897549390793, -0.031966451555490494, -0.01533752866089344, -0.05540616065263748, -0.011392582207918167, -0.04390743374824524, 0.02464265003800392, 0.05020519718527794, 0.028959093615412712, 0.011366046033799648, 0.032957110553979874, 0.041183121502399445, -0.03881261497735977, 0.032638683915138245, -0.03750352934002876, 0.032178737223148346, 0.03216104581952095, 0.04910839721560478, -0.03679591789841652, -0.03476152569055557, -0.04390743374824524, 0.021794503554701805, -0.01717732474207878, -0.02227214351296425, 0.02244904637336731, 0.017938008531928062, -0.003538068849593401, 0.019335545599460602, 0.03630058839917183, -0.005046170670539141, 0.03980327397584915, -0.01930016651749611, 0.06004102900624275, -0.02618170902132988, -0.05682138726115227, 0.01663776859641075, 0.008562127128243446, 0.028233788907527924, 0.01187906600534916, 0.07083214074373245, -0.005024057812988758, -0.006580808199942112, 0.010552290827035904, -0.04553494602441788, 0.0033501090947538614, -0.0017358650220558047, 0.008624043315649033, 0.044367384165525436, -0.047339361160993576, 0.007257463876157999, 0.022785164415836334, -0.024341914802789688, 0.00021629210095852613, -0.08137558400630951, -0.03874185308814049, -0.008159670978784561, -0.013037784025073051, -0.024624958634376526, 0.026146329939365387, -0.008526746183633804, 0.0175488218665123, 0.020520798861980438, -0.0038985097780823708, -0.03440771996974945, -0.010755729861557484, 0.042032256722450256, -0.010853026062250137, -0.013462352566421032, 0.056609101593494415, 0.0012670708820223808, -0.015443670563399792, 0.0341777466237545, 0.021882956847548485, -0.03157726675271988, -0.04213840141892433, -0.037538912147283554, 0.048471543937921524, -0.023634299635887146, 0.03499150276184082, -0.048188500106334686, -0.01892866939306259, -0.05491082742810249, -0.047976214438676834, 0.016726220026612282, -0.08194167912006378, -0.05675062537193298, 0.01659354381263256, -0.03180724009871483, 0.010260399430990219, 0.02749079465866089, 0.03626520559191704, -0.07345031201839447, 0.0049665640108287334, -0.012400931678712368, 0.014178810641169548, 0.04373053088784218, -0.01767265424132347, 0.012648596428334713, 0.011003394611179829, -0.0373266264796257, -0.03679591789841652, -0.08675345033407211, -0.02411193959414959, -0.01799992471933365, 0.05951032042503357, 0.050134435296058655, 0.015815168619155884, 0.048683829605579376, 0.010012734681367874, 0.014205346815288067, 0.028003815561532974, -0.020450038835406303, -0.08441832661628723, 0.03502688184380531, 0.000054073025239631534, 0.07203508168458939, 0.03499150276184082, 0.04213840141892433, -0.002507606288418174, -0.0023815627209842205, 0.01700042188167572, 0.0011017767246812582, 0.03354089334607124, -0.03180724009871483, -0.02973746880888939, -0.03630058839917183, 0.06064249947667122, 0.019317856058478355, -0.04012170061469078, -0.006505624391138554, -0.022289834916591644, -0.006479088682681322, 0.018645623698830605, -0.07840360701084137, 0.08831019699573517, -0.03814038261771202, -0.04373053088784218, -0.026818562299013138, 0.015850549563765526, -0.003865340258926153, -0.000005441854227683507, -0.06311915069818497, -0.01623973622918129, -0.00847809761762619, 0.0014373405138030648, 0.0030272603034973145, 0.007580312434583902, -0.04330596327781677, 0.04008632153272629, 0.005364596843719482, -0.010897251777350903, 0.012887416407465935, -0.004555263556540012, -0.01638125814497471, 0.03009127639234066, -0.013143925927579403, 0.06272996217012405, 0.0017137521645054221, 0.025173360481858253, 0.021759124472737312, 0.03612368181347847, 0.03983865678310394, 0.05154966562986374, -0.017601892352104187, -0.05968722328543663, 0.02002546936273575, 0.07253041118383408, 0.01638125814497471, -0.01201174408197403, -0.02676549181342125, -0.02177681401371956, 0.0764930471777916, -0.0254210252314806, -0.038883376866579056, 0.07178741693496704, 0.011923291720449924, -0.0001176131481770426, -0.0009757330408319831, -0.041536927223205566, 0.04843616485595703, -0.021104581654071808, -0.03806962072849274, 0.012409776449203491, 0.0759977176785469, 0.03576987609267235, 0.01650509051978588, -0.05091281235218048, 0.02149376831948757, -0.027366962283849716, -0.011127226985991001, -0.00737687386572361, 0.04772854968905449, 0.0028193986508995295, 0.01614243909716606, 0.04528728127479553, -0.004088680725544691, -0.003341263858601451, -0.05915651097893715, 0.027455413714051247, 0.0445442870259285, -0.03785733878612518, -0.050629764795303345, -0.03076350875198841, -0.024076558649539948, -0.030798889696598053, 0.0019536775071173906, 0.057458240538835526, 0.02289130538702011, -0.016071677207946777, -0.0014539251569658518, 0.043518248945474625, -0.01691196858882904, 0.004466812126338482, 0.033947769552469254, -0.04659636691212654, -0.024005796760320663, -0.08194167912006378, -0.0018143659690394998, -0.015010257251560688, 0.009190133772790432, -0.028852952644228935, -0.057458240538835526, 0.028552215546369553, 0.04429662227630615, 0.000499475805554539, -0.06495894491672516, -0.0254210252314806, 0.045004237443208694, 0.004270006902515888, -0.0034518283791840076, -0.029719779267907143, -0.036371346563100815, 0.03860033303499222, -0.00002752023283392191, 0.05721057578921318, 0.04457966983318329, -0.006315452978014946, -0.04521651938557625, -0.024218082427978516, -0.00014414866745937616, -0.04164307191967964, -0.01736307330429554, -0.06202234700322151, 0.036902058869600296, -0.006523314397782087, 0.020768463611602783, 0.05706905201077461, 0.04457966983318329, -0.008022570982575417, -0.010968013666570187, -0.05360174551606178, 0.013320829719305038, 0.012427466921508312, -0.04560570791363716, -0.0030139924492686987, 0.01632818765938282, 0.02865835838019848, 0.015726715326309204, -0.009924283251166344, 0.06004102900624275, -0.015010257251560688, -0.01915864273905754, -0.0746532529592514, -0.004088680725544691, 0.039378706365823746, -0.038671091198921204, 0.03916642442345619, -0.07996035367250443, -0.0418199747800827, 0.03849418833851814, 0.024094250053167343, 0.04327058419585228, -0.021069200709462166, -0.0016816883580759168, -0.007239773403853178, 0.04606565833091736, -0.022413667291402817, -0.006147394888103008, 0.004913493059575558, 0.015346373431384563, -0.03297480195760727, 0.03361165523529053, 0.0052628773264586926, -0.014744902029633522, -0.024306533858180046, -0.10097648948431015, 0.009526250883936882, -0.02464265003800392, -0.0037746771704405546, -0.056962911039590836, 0.042209163308143616, -0.01907019130885601, 0.07260117679834366, -0.0005854398477822542, -0.007721835281699896, -0.023917345330119133, -0.026110948994755745, -0.02119303308427334, 0.02492569573223591, -0.009756225161254406, 0.05689214915037155, -0.035964470356702805, -0.020078541710972786, -0.03354089334607124, 0.026730110868811607, -0.017849557101726532, -0.02253749966621399, 0.013488887809216976, -0.02244904637336731, -0.05699829012155533, -0.024819552898406982, 0.037397388368844986, -0.013453506864607334, 0.01871638372540474, 0.008871708065271378, 0.03099348396062851, -0.06085478514432907, -0.03994479775428772, -0.06577269732952118, -0.05537077784538269, -0.06294224411249161, -0.0007120363879948854, -0.017248086631298065, -0.03302787244319916, -0.026075568050146103, 0.010348851792514324, 0.028764499351382256, -0.030621986836194992, 0.020591560751199722, -0.0008535591186955571, -0.06004102900624275, 0.0616331584751606, -0.004236837383359671, -0.005590148735791445, 0.04790545254945755, -0.012834344990551472, -0.04719783738255501, 0.033806249499320984, -0.003000724595040083, -0.01953013986349106, -0.026818562299013138, 0.002750848652794957, 0.011127226985991001, 0.03315170481801033, 0.05650296062231064, 0.02819840982556343, -0.04206763952970505, -0.003796790260821581, -0.03941408917307854, -0.010454993695020676, 0.018150294199585915, -0.00021311336604412645, 0.013046628795564175, -0.06014716997742653, 0.01493065059185028, 0.014444165863096714, 0.07429944723844528, 0.03760967403650284, 0.01218864694237709, 0.000219194422243163, -0.04033398628234863, 0.07302574068307877, -0.008655001409351826, 0.05586610734462738, -0.03341706097126007, 0.05491082742810249, -0.00267124199308455, -0.013683481141924858, 0.043659768998622894, 0.05551230162382126, 0.03177185729146004, 0.048188500106334686, 0.014426476322114468, 0.009658928029239178, 0.022926686331629753, -0.013550803996622562, 0.04886073246598244, -0.0598287433385849, -0.0359998494386673, 0.00879210140556097, -0.019229404628276825, 0.009039766155183315, 0.014948341064155102, 0.061597779393196106, 0.07840360701084137, -0.04928530007600784, -0.05632605776190758, 0.045145757496356964, 0.01921171322464943, 0.08781486749649048, 0.006678104866296053, -0.014063823968172073, -0.002784017939120531, -0.10656663775444031, -0.021086890250444412, 0.02186526544392109, 0.026889324188232422, -0.09439567476511002, -0.022024478763341904, -0.03355858474969864, 0.012675131671130657, 0.028039196506142616, -0.03035663068294525, -0.012675131671130657, 0.012843189761042595, 0.07677609473466873, -0.02029082551598549, 0.01714194379746914, -0.005784742534160614, 0.04861306771636009, -0.010623051784932613, -0.03244409337639809, 0.0033080943394452333, -0.06966457515954971, -0.037397388368844986, -0.0005484006833285093, -0.009968508966267109, -0.004696786403656006, 0.015629420056939125, 0.02131686545908451, 0.020856916904449463, 0.0584842786192894, 0.016407795250415802, 0.0472332201898098, 0.052646465599536896, 0.0021217355970293283, 0.06534813344478607, -0.030515844002366066, -0.029401352629065514, 0.009101682342588902, 0.0341954343020916, -0.03414236381649971, 0.00237271748483181, 0.02464265003800392, -0.006271227262914181, -0.006824050564318895, 0.09283892810344696, -0.017761105671525, 0.0040842583402991295, 0.032320261001586914, -0.016584698110818863, -0.010950323194265366, 0.03207259625196457, 0.02936597168445587, 0.027685388922691345, 0.017486905679106712, 0.009676618501543999, -0.06481742113828659, -0.02959594689309597, -0.04461504891514778, -0.022572878748178482, -0.0027420034166425467, 0.015717871487140656, 0.09022075682878494, 0.0020885663107037544, -0.04836540296673775, -0.03697282075881958, -0.0031356136314570904, 0.03799885883927345, 0.04259834811091423, 0.033169396221637726, -0.03341706097126007, -0.016469711437821388, 0.009420108050107956, -0.03483228757977486, -0.023245112970471382, 0.03626520559191704, 0.012896261177957058, -0.05119585618376732, -0.021918335929512978, -0.013453506864607334, 0.034973811358213425, -0.04447352513670921, -0.022166002541780472, -0.006483511067926884, 0.02991437166929245, 0.01781417615711689, -0.05607839301228523, 0.020839225500822067, -0.04910839721560478, 0.03665439411997795, -0.03796347975730896, 0.07819132506847382, 0.005886462051421404, -0.01839795894920826, -0.007774906232953072, -0.003973693586885929, -0.02729620225727558, 0.006678104866296053, 0.010331161320209503, 0.004661405924707651, -0.005568035878241062, 0.05901499092578888, -0.011330666020512581, -0.0025717339012771845, 0.03909566253423691, 0.009446644224226475, -0.017973389476537704, -0.03244409337639809, -0.06170392036437988, 0.008787678554654121, -0.045004237443208694, 0.052469562739133835, -0.003836593357846141, 0.03499150276184082, -0.0017071182373911142, -0.008195051923394203, -0.05537077784538269, 0.018946358934044838, 0.11052927374839783, 0.0422799214720726, 0.016115903854370117, 0.010578826069831848, -0.013710017316043377, 0.006602921057492495, 0.054875448346138, -0.03814038261771202, 0.05639681965112686, -0.036141373217105865, -0.0562199130654335, 0.021387627348303795, 0.01533752866089344, 0.05685676634311676, 0.043376725167036057, -0.08894705027341843, -0.02770308032631874, 0.045499566942453384, -0.008761143311858177, 0.04213840141892433, -0.007403409108519554, -0.0077616386115550995, -0.03725586459040642, -0.007584735285490751, 0.030445082113146782, -0.013285448774695396, 0.03994479775428772, 0.0494975820183754, -0.058271992951631546, 0.017203859984874725, -0.02073308452963829, 0.00971199944615364, -0.005576881114393473, -0.03221411630511284, 0.0021173132117837667, 0.027915364131331444, 0.022572878748178482, -0.002056502504274249, -0.037538912147283554, -0.016788136214017868, 0.03548683226108551, -0.04373053088784218, -0.06991223990917206, -0.06103168800473213, -0.05239880084991455, -0.017884938046336174, -0.006368523929268122, -0.019105572253465652, -0.004303176421672106, 0.01491296011954546, -0.02420039102435112, 0.022555189207196236, -0.016230890527367592, -0.03647749125957489, -0.044650427997112274, -0.010118876583874226, -0.031506504863500595, 0.02073308452963829, 0.0332932285964489, -0.0404755063354969, -0.024394985288381577, -0.008663846179842949, 0.007169011980295181, -0.02609325759112835, -0.0413954071700573, 0.03400084376335144, 0.026393994688987732, -0.010472684167325497, -0.023952726274728775, 0.054273977875709534, -0.005607839208096266, -0.02550947666168213, -0.01628396287560463, -0.04479195177555084, -0.007553777191787958, -0.0005644325283356011, 0.018150294199585915, -0.03552221134305, -0.0276676993817091, 0.003688436932861805, 0.017371919006109238, 0.020273134112358093, 0.051655806601047516, 0.019689353182911873, -0.0382465235888958, -0.03615906462073326, 0.00427442928776145, -0.0197954960167408, -0.017371919006109238, 0.05968722328543663, 0.01578863337635994, 0.013418125919997692, 0.006089901085942984, 0.007956232875585556, -0.006894811987876892, 0.027384653687477112, -0.017867248505353928, -0.015532121993601322, 0.024448055773973465, 0.057918187230825424, -0.013214686885476112, 0.010154257528483868, 0.013082009740173817, 0.01700042188167572, 0.038034241646528244, -0.09956125915050507, -0.009924283251166344, 0.004829464014619589, -0.03134728968143463, 0.01974242366850376, 0.022838234901428223, -0.04178459197282791, 0.007642228621989489, -0.0012825499288737774, -0.0010205117287114263, 0.07705914229154587, -0.058095090091228485, 0.040192462503910065, -0.015903620049357414, -0.025969425216317177, -0.011321820318698883, -0.013577339239418507, 0.0674709752202034, -0.0005580750876106322, 0.06067788228392601, -0.05653833970427513, 0.004612757358700037, -0.002943231025710702, -0.036866676062345505, -0.013639255426824093, 0.022643640637397766, -0.014771437272429466, 0.0427398718893528, 0.04960372671484947, 0.09149446338415146, 0.0337354876101017, 0.04259834811091423, -0.0074785929173231125, 0.033080942928791046, -0.041006218641996384, -0.02227214351296425, -0.04507499933242798, -0.002012276789173484, 0.029702087864279747, 0.022908996790647507, 0.0044535440392792225, -0.015222541056573391, 0.02865835838019848, -0.017486905679106712, 0.01182599551975727 ]
714,750
pytorch_optimizer.base.optimizer
apply_weight_decay
Apply weight decay. :param p: torch.Tensor. parameter. :param grad: torch.Tensor. gradient. :param lr: float. learning rate. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param ratio: Optional[float]. scale weight decay.
@staticmethod def apply_weight_decay( p: torch.Tensor, grad: Optional[torch.Tensor], lr: float, weight_decay: float, weight_decouple: bool, fixed_decay: bool, ratio: Optional[float] = None, ): r"""Apply weight decay. :param p: torch.Tensor. parameter. :param grad: torch.Tensor. gradient. :param lr: float. learning rate. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param ratio: Optional[float]. scale weight decay. """ if weight_decouple: p.mul_(1.0 - weight_decay * (1.0 if fixed_decay else lr) * (ratio if ratio is not None else 1.0)) elif weight_decay > 0.0 and grad is not None: grad.add_(p, alpha=weight_decay)
(p: torch.Tensor, grad: Optional[torch.Tensor], lr: float, weight_decay: float, weight_decouple: bool, fixed_decay: bool, ratio: Optional[float] = None)
[ -0.00025881416513584554, -0.01960071176290512, 0.0007143326220102608, 0.020645374432206154, -0.0023792642168700695, 0.003983884584158659, -0.03813905268907547, -0.01542205922305584, -0.006298963911831379, 0.03661632537841797, 0.00045206022332422435, 0.013306173495948315, 0.0780487209558487, 0.039874255657196045, -0.036757972091436386, 0.01080075278878212, 0.0031649747397750616, 0.03633302450180054, -0.0238678939640522, -0.017440561205148697, 0.004302595276385546, -0.08371468633413315, 0.027603892609477043, 0.07819037139415741, -0.05262268707156181, -0.009189493022859097, -0.020273545756936073, 0.009481645189225674, -0.047487903386354446, 0.029852572828531265, 0.019724654033780098, -0.06841657310724258, 0.012562515214085579, 0.06898316740989685, 0.015457470901310444, 0.04132616147398949, -0.01613030582666397, -0.004647864960134029, -0.033677101135253906, -0.042530179023742676, 0.05241021141409874, 0.016484428197145462, 0.027887189760804176, -0.016617223620414734, -0.015634533017873764, 0.01929970644414425, -0.015492883510887623, 0.02778095379471779, -0.01039351150393486, 0.0017329896800220013, 0.017599916085600853, -0.009083256125450134, 0.02459384687244892, -0.019034113734960556, -0.027125826105475426, 0.032331433147192, 0.03353545442223549, -0.011898534372448921, 0.015448618680238724, -0.05570355802774429, 0.08052758127450943, -0.0985170304775238, 0.00283741089515388, -0.013022875413298607, -0.0002957480901386589, -0.024912556633353233, -0.06512323021888733, -0.031074298545718193, 0.05403917655348778, -0.02813507616519928, 0.051029130816459656, -0.010552867315709591, -0.009295729920268059, 0.011314231902360916, -0.07408254593610764, -0.030560819432139397, 0.02151297591626644, -0.07107249647378922, -0.010915842838585377, -0.002489927690476179, 0.02351377159357071, -0.024009542539715767, 0.0018170939292758703, -0.006692925933748484, 0.06048421934247017, -0.03587266430258751, -0.042919714003801346, -0.03633302450180054, -0.014076391234993935, -0.016732314601540565, -0.00449072290211916, -0.0300473403185606, 0.03592578321695328, -0.016068333759903908, 0.09653394669294357, 0.011110611259937286, -0.006095343269407749, -0.05191443860530853, -0.014076391234993935, 0.05655345320701599, -0.018609166145324707, 0.03735998272895813, -0.011323085054755211, 0.008861929178237915, 0.06954976916313171, -0.03567789867520332, -0.06136952340602875, -0.010747634805738926, -0.012757282704114914, -0.03077329322695732, -0.01482004951685667, -0.06423792243003845, -0.02076931670308113, -0.03651008754968643, -0.009835767559707165, 0.05729711055755615, 0.003932978957891464, 0.017077583819627762, 0.025302091613411903, 0.03651008754968643, 0.050320886075496674, 0.012845814228057861, -0.022522225975990295, -0.037572454661130905, 0.022593051195144653, -0.0039728181436657906, 0.018016010522842407, 0.00027942523593083024, 0.03920142352581024, 0.03697044774889946, -0.044831980019807816, 0.04699213057756424, -0.03420828655362129, -0.011668354272842407, 0.04419455677270889, -0.0032756382133811712, -0.04044085368514061, 0.058784425258636475, 0.00043988722609356046, 0.00637421477586031, 0.03303968161344528, 0.013385851867496967, 0.05662427470088005, 0.047594137489795685, 0.028613142669200897, -0.003649680642411113, -0.030543113127350807, 0.029905691742897034, 0.00501084141433239, 0.06257354468107224, 0.019441355019807816, 0.04557563737034798, 0.040617913007736206, 0.028861029073596, 0.04971887543797493, 0.02884332276880741, -0.012739577330648899, 0.017564503476023674, -0.052587274461984634, -0.024540727958083153, 0.015280409716069698, -0.005882869008928537, -0.020273545756936073, -0.0015149826649576426, 0.011650648899376392, -0.02624051831662655, 0.018715403974056244, 0.04465491697192192, 0.04702754318714142, -0.002636003540828824, 0.04433620721101761, -0.10375805199146271, 0.04543398693203926, 0.022203516215085983, -0.004344647284597158, 0.07641975581645966, -0.020149601623415947, -0.04242394119501114, -0.007024915888905525, -0.0099862702190876, 0.06328178942203522, -0.008671588264405727, -0.003452699864283204, -0.05269351229071617, 0.019441355019807816, 0.02158379927277565, -0.03969719260931015, 0.03543001040816307, -0.025532271713018417, 0.0453631617128849, 0.017024464905261993, -0.04635470733046532, 0.02314194105565548, -0.030277520418167114, -0.015882419422268867, -0.021831685677170753, 0.03422599285840988, -0.018255043774843216, 0.007932356558740139, 0.05814700573682785, 0.0516311414539814, -0.031056592240929604, -0.0007392318802885711, 0.04111368581652641, 0.027993427589535713, -0.05754499509930611, -0.02234516479074955, 0.02307111769914627, -0.05088748410344124, -0.04054709151387215, 0.015855859965085983, 0.025178149342536926, 0.05287057161331177, 0.03268555924296379, 0.016165716573596, -0.017511384561657906, -0.050285473465919495, -0.0023792642168700695, 0.018980994820594788, -0.032136667519807816, -0.041786521673202515, -0.018662285059690475, 0.012208391912281513, 0.052587274461984634, 0.09702971577644348, -0.013562913052737713, 0.03197731077671051, -0.015121054835617542, 0.0038975668139755726, 0.022947173565626144, -0.010526307858526707, -0.01731661707162857, 0.010331540368497372, -0.009517056867480278, 0.09136375039815903, -0.06112163886427879, -0.03350004181265831, 0.02544374205172062, -0.005750073119997978, 0.016289660707116127, 0.03704127296805382, 0.01653754711151123, -0.014014420099556446, 0.030950354412198067, 0.00848124735057354, 0.014758078381419182, 0.0592447854578495, -0.005174623336642981, -0.01311140600591898, 0.01929970644414425, -0.036757972091436386, -0.04281347617506981, -0.005254300776869059, 0.04511527717113495, -0.018308162689208984, 0.03810364007949829, 0.013970154337584972, 0.006002385634928942, -0.051383256912231445, -0.019512180238962173, -0.017015613615512848, 0.008357304148375988, -0.015342380851507187, -0.004886898212134838, -0.005710234399884939, 0.009773796424269676, -0.002775439526885748, -0.015085642226040363, 0.00501526752486825, 0.028984971344470978, 0.04075956344604492, -0.004917883779853582, 0.032579321414232254, 0.011013226583600044, -0.022061865776777267, -0.013784239999949932, 0.03535918518900871, 0.036828797310590744, 0.016617223620414734, 0.006967370864003897, 0.011898534372448921, -0.047912850975990295, -0.029038090258836746, 0.024824026972055435, -0.03697044774889946, 0.03365939483046532, -0.009127521887421608, 0.06682302057743073, 0.058678191155195236, 0.03884729743003845, 0.026470698416233063, 0.016263101249933243, 0.09037220478057861, 0.03279179334640503, 0.017077583819627762, 0.054889071732759476, 0.06437957286834717, -0.011101758107542992, 0.0668584331870079, -0.02121197059750557, 0.05517237260937691, 0.01441280823200941, 0.03803281486034393, -0.0032756382133811712, -0.013890476897358894, -0.022185809910297394, 0.006732764653861523, 0.013509794138371944, -0.00893718097358942, 0.04709836468100548, -0.017918625846505165, -0.06806245446205139, -0.03396040201187134, 0.05736793577671051, 0.013961301185190678, -0.11261112987995148, 0.004054708871990442, 0.009224905632436275, -0.0009179533808492124, 0.022433696314692497, 0.009100962430238724, 0.013784239999949932, 0.0038599413819611073, 0.04968346282839775, -0.08583942800760269, -0.07606562972068787, 0.04557563737034798, 0.048266973346471786, -0.0008017567452043295, 0.0011542198481038213, -0.036368437111377716, 0.03704127296805382, 0.03118053451180458, -0.017883215099573135, -0.09681724011898041, 0.03006504662334919, 0.04387584701180458, 0.019866302609443665, -0.02730288729071617, -0.02356688864529133, 0.03153465688228607, 0.023761656135320663, -0.03220749273896217, 0.03898894786834717, -0.004123320337384939, 0.009463938884437084, -0.010535161010921001, 0.027940308675169945, 0.042140644043684006, -0.03980343043804169, 0.03477488458156586, -0.06427333503961563, -0.02307111769914627, 0.06441498547792435, 0.021070322021842003, -0.0177769772708416, -0.022663874551653862, -0.005958120338618755, 0.015696505084633827, -0.052941396832466125, -0.05003758892416954, -0.0177769772708416, -0.0081669632345438, 0.06158199906349182, 0.05364964157342911, 0.036368437111377716, -0.0177769772708416, 0.012279217131435871, -0.029091209173202515, 0.006458319257944822, 0.03342921659350395, -0.08626437932252884, -0.013509794138371944, 0.005342831369489431, -0.02848920039832592, -0.020185014232993126, -0.023726245388388634, 0.017529090866446495, 0.08534365892410278, 0.030737880617380142, -0.026435285806655884, -0.012872372753918171, 0.015714211389422417, 0.029197445139288902, 0.028347549960017204, -0.026807114481925964, -0.000020541903722914867, -0.04419455677270889, 0.013819652609527111, -0.03581954538822174, 0.017750417813658714, 0.022415990009903908, 0.0027090413495898247, 0.000724845624063164, -0.0910804495215416, 0.056765925139188766, 0.0013556273188441992, 0.037572454661130905, -0.08045675605535507, 0.014758078381419182, -0.005657115951180458, -0.0633172020316124, -0.04345089942216873, -0.01057057362049818, -0.041396986693143845, 0.04189275577664375, -0.03472176566720009, 0.1140984445810318, -0.01191624067723751, 0.07181615382432938, 0.0011232340475544333, -0.001873532310128212, -0.03920142352581024, 0.01682969741523266, -0.0016522053629159927, -0.022168103605508804, 0.0014607575722038746, -0.031446125358343124, -0.027426831424236298, 0.022929467260837555, 0.0717807412147522, -0.06611477583646774, 0.03884729743003845, 0.03697044774889946, 0.04051167890429497, -0.04940016567707062, 0.009649853222072124, 0.016289660707116127, 0.003975031431764364, -0.0032822780776768923, -0.021052615717053413, -0.0384223498404026, -0.00646274583414197, -0.040653325617313385, 0.02808195911347866, 0.030135871842503548, 0.03654550015926361, 0.056411802768707275, -0.0017075370997190475, -0.04114909842610359, 0.02315964736044407, -0.03686420992016792, -0.0011829923605546355, -0.05471201241016388, -0.030507700517773628, -0.03959095850586891, 0.0331813283264637, -0.03617367148399353, -0.08088170737028122, -0.024345960468053818, 0.012872372753918171, -0.005851883441209793, 0.05290598422288895, 0.04040544107556343, -0.019830891862511635, 0.007250669412314892, -0.009676412679255009, -0.059067726135253906, 0.04975428804755211, 0.0119339469820261, 0.04132616147398949, 0.004388912580907345, 0.01485546212643385, -0.007737588603049517, -0.0399450808763504, 0.03496965020895004, 0.048727333545684814, -0.0350404754281044, 0.010110213421285152, 0.011960506439208984, 0.042955126613378525, -0.012898932211101055, 0.021335914731025696, -0.05322469398379326, 0.017343176528811455, 0.03160548210144043, -0.027657009661197662, -0.00519675575196743, 0.05290598422288895, -0.015067935921251774, -0.008954886347055435, -0.039484720677137375, -0.0005151383811607957, 0.05056877061724663, -0.02811736986041069, -0.05088748410344124, -0.04302595183253288, 0.0211588516831398, 0.00789694394916296, 0.0592447854578495, -0.014864315278828144, -0.020928671583533287, 0.07691552489995956, 0.031322184950113297, -0.055986855179071426, -0.02618739940226078, -0.004450884182006121, -0.007582659833133221, 0.0357133112847805, 0.018255043774843216, 0.005905001889914274, -0.013173378072679043, -0.04313218966126442, 0.005453494843095541, 0.025585390627384186, -0.003919699694961309, -0.0729493498802185, 0.04284888878464699, -0.03535918518900871, 0.03206584230065346, -0.011756885796785355, 0.0641670972108841, -0.04054709151387215, 0.028188195079565048, -0.03498735651373863, -0.0424947664141655, -0.0028573304880410433, 0.03959095850586891, 0.02429284155368805, -0.0722765177488327, 0.04855027049779892, 0.07606562972068787, -0.030525406822562218, -0.059103138744831085, 0.028683967888355255, -0.005068386439234018, 0.003755917539820075, -0.05499530956149101, 0.037501633167266846, 0.005466774571686983, -0.006276831030845642, 0.042919714003801346, 0.0008427022257819772, 0.012987462803721428, -0.0031030033715069294, -0.021459857001900673, -0.038705650717020035, -0.04578810930252075, -0.07493244111537933, -0.043769609183073044, -0.0034106476232409477, -0.0002323932567378506, 0.018184218555688858, -0.028737084940075874, 0.02390330657362938, 0.09214282035827637, -0.039909668266773224, -0.024753201752901077, -0.049081455916166306, 0.0016588452272117138, -0.060307156294584274, -0.0004077948397025466, -0.027851779013872147, 0.08059840649366379, 0.02663005329668522, 0.010101360268890858, 0.0005480607505887747, -0.04511527717113495, 0.01852063648402691, 0.006843428127467632, -0.06342343986034393, -0.10064177215099335, 0.009100962430238724, 0.024558434262871742, 0.017068730667233467, -0.031339891254901886, 0.027869483456015587, 0.010074800811707973, -0.019760066643357277, -0.006090916693210602, -0.011606383137404919, 0.022911760956048965, 0.04461950436234474, -0.008822090923786163, -0.041007447987794876, -0.007020489778369665, 0.02540832944214344, -0.06604395061731339, 0.023726245388388634, -0.03396040201187134, -0.03364168852567673, -0.01463413517922163, -0.03824529051780701, -0.017006760463118553, 0.008255493827164173, -0.000012121106919948943, -0.012642192654311657, 0.03394269570708275, -0.029392212629318237, 0.00893718097358942, -0.0438404344022274, -0.026028044521808624, 0.01004824135452509, -0.058005355298519135, -0.0016223262064158916, -0.03188877925276756, -0.05340175703167915, 0.030560819432139397, 0.06278602033853531, 0.039059773087501526, -0.024806320667266846, -0.04901063069701195, 0.029958810657262802, -0.012845814228057861, -0.029905691742897034, 0.02459384687244892, -0.017290057614445686, 0.03849317505955696, 0.020238133147358894, -0.07220569252967834, -0.04323842376470566, 0.012332335114479065, -0.00769332330673933, -0.029905691742897034, -0.010234156623482704, -0.02737371250987053, -0.05279974639415741, 0.019742360338568687, 0.05570355802774429, 0.02234516479074955, -0.05793453007936478, -0.00635208236053586, 0.012810401618480682, 0.04129074886441231, -0.036403849720954895, -0.004962149076163769, -0.0006412946968339384, -0.07953603565692902, -0.013943594880402088, -0.046815067529678345, -0.018679991364479065, 0.012350041419267654, 0.03280949965119362, -0.03227831795811653, -0.015802741050720215, 0.03902436047792435, 0.030224403366446495, -0.003709438955411315, 0.024062661454081535, -0.06034256890416145, 0.031339891254901886, 0.036757972091436386, -0.024009542539715767, -0.0785444900393486, -0.00614846171811223, -0.00965870637446642, 0.016449015587568283, -0.033287566155195236, -0.022150397300720215, -0.012279217131435871, -0.04865650832653046, -0.01118143554776907, -0.040122140198946, 0.027249768376350403, 0.05966973304748535, 0.034544702619314194, 0.04546939954161644, 0.014828902669250965, -0.00683014839887619, -0.04189275577664375, 0.011075198650360107, -0.008534365333616734, -0.0026625627651810646, 0.03704127296805382, -0.008968166075646877, -0.006192727014422417, -0.0016986840637400746, -0.020627668127417564, 0.004019296728074551, -0.0733034685254097, -0.036439262330532074, 0.003337609814479947, -0.055278610438108444, 0.010747634805738926, 0.02346065267920494, -0.009534763172268867, -0.032543908804655075, 0.010703369043767452, -0.02997651696205139, -0.05432247743010521, 0.04851485788822174, -0.030206697061657906, 0.025160443037748337, 0.0006042224704287946, 0.04405290633440018, 0.02423972263932228, -0.016918228939175606, 0.02239828370511532, -0.013199936598539352, -0.008773398585617542, -0.04667341709136963, -0.045646462589502335, -0.008467967621982098, -0.013191083446145058, 0.04196358099579811, -0.09448003023862839, -0.06349426507949829, 0.0006601075292564929, 0.005834177136421204, -0.06522946804761887, -0.0016466722590848804, 0.0004918990307487547, -0.01731661707162857, -0.029887985438108444, 0.018786227330565453, 0.011686060577630997, 0.007927929982542992, -0.017830096185207367, 0.019441355019807816, -0.006573409307748079, -0.037537042051553726, 0.040972039103507996, 0.012792695313692093, 0.00521446205675602, 0.006958518177270889, 0.014492485672235489, 0.009490497410297394, -0.03852858766913414, -0.034526996314525604, 0.03941389545798302, -0.014492485672235489, 0.00569252809509635, 0.03305738791823387, 0.01272187102586031, -0.037537042051553726, -0.07493244111537933, 0.026098869740962982, 0.012774989008903503, -0.03396040201187134, -0.01119914185255766, 0.022575344890356064, -0.015599120408296585, 0.01958300545811653, -0.004003803711384535, 0.045292340219020844, 0.0663626566529274, 0.01559026725590229, -0.023637713864445686, 0.03040146455168724, 0.011889681220054626, -0.008609617128968239, 0.07259522378444672, -0.04805449768900871, -0.025213561952114105, 0.01621883548796177, 0.021725449711084366, -0.012288070283830166, -0.02962239272892475, 0.04844403266906738, -0.05591602995991707, 0.04274265095591545, 0.037961989641189575, -0.007941209711134434, -0.0021535109262913465, 0.04476115480065346, -0.0622902438044548, 0.04922310635447502, -0.051772791892290115, -0.08470623195171356, -0.041786521673202515, 0.021849391981959343, 0.006068783812224865, 0.04893980547785759, 0.019122645258903503, 0.012872372753918171, 0.005449068266898394, 0.04086580127477646, 0.025532271713018417 ]
714,751
pytorch_optimizer.base.optimizer
compute_hutchinson_hessian
Hutchinson's approximate hessian, added to the state under key `hessian`. :param param_groups: PARAMETERS. parameter groups. :param state: STATE. optimizer state. :param num_samples: int. number of times to sample `z` for the approximation of the hessian trace. :param alpha: float. alpha. :param distribution: HUTCHINSON_G. type of distribution.
@staticmethod def apply_weight_decay( p: torch.Tensor, grad: Optional[torch.Tensor], lr: float, weight_decay: float, weight_decouple: bool, fixed_decay: bool, ratio: Optional[float] = None, ): r"""Apply weight decay. :param p: torch.Tensor. parameter. :param grad: torch.Tensor. gradient. :param lr: float. learning rate. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param ratio: Optional[float]. scale weight decay. """ if weight_decouple: p.mul_(1.0 - weight_decay * (1.0 if fixed_decay else lr) * (ratio if ratio is not None else 1.0)) elif weight_decay > 0.0 and grad is not None: grad.add_(p, alpha=weight_decay)
(param_groups: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], state: Dict, num_samples: int = 1, alpha: float = 1.0, distribution: Literal['gaussian', 'rademacher'] = 'gaussian')
[ -0.00025881416513584554, -0.01960071176290512, 0.0007143326220102608, 0.020645374432206154, -0.0023792642168700695, 0.003983884584158659, -0.03813905268907547, -0.01542205922305584, -0.006298963911831379, 0.03661632537841797, 0.00045206022332422435, 0.013306173495948315, 0.0780487209558487, 0.039874255657196045, -0.036757972091436386, 0.01080075278878212, 0.0031649747397750616, 0.03633302450180054, -0.0238678939640522, -0.017440561205148697, 0.004302595276385546, -0.08371468633413315, 0.027603892609477043, 0.07819037139415741, -0.05262268707156181, -0.009189493022859097, -0.020273545756936073, 0.009481645189225674, -0.047487903386354446, 0.029852572828531265, 0.019724654033780098, -0.06841657310724258, 0.012562515214085579, 0.06898316740989685, 0.015457470901310444, 0.04132616147398949, -0.01613030582666397, -0.004647864960134029, -0.033677101135253906, -0.042530179023742676, 0.05241021141409874, 0.016484428197145462, 0.027887189760804176, -0.016617223620414734, -0.015634533017873764, 0.01929970644414425, -0.015492883510887623, 0.02778095379471779, -0.01039351150393486, 0.0017329896800220013, 0.017599916085600853, -0.009083256125450134, 0.02459384687244892, -0.019034113734960556, -0.027125826105475426, 0.032331433147192, 0.03353545442223549, -0.011898534372448921, 0.015448618680238724, -0.05570355802774429, 0.08052758127450943, -0.0985170304775238, 0.00283741089515388, -0.013022875413298607, -0.0002957480901386589, -0.024912556633353233, -0.06512323021888733, -0.031074298545718193, 0.05403917655348778, -0.02813507616519928, 0.051029130816459656, -0.010552867315709591, -0.009295729920268059, 0.011314231902360916, -0.07408254593610764, -0.030560819432139397, 0.02151297591626644, -0.07107249647378922, -0.010915842838585377, -0.002489927690476179, 0.02351377159357071, -0.024009542539715767, 0.0018170939292758703, -0.006692925933748484, 0.06048421934247017, -0.03587266430258751, -0.042919714003801346, -0.03633302450180054, -0.014076391234993935, -0.016732314601540565, -0.00449072290211916, -0.0300473403185606, 0.03592578321695328, -0.016068333759903908, 0.09653394669294357, 0.011110611259937286, -0.006095343269407749, -0.05191443860530853, -0.014076391234993935, 0.05655345320701599, -0.018609166145324707, 0.03735998272895813, -0.011323085054755211, 0.008861929178237915, 0.06954976916313171, -0.03567789867520332, -0.06136952340602875, -0.010747634805738926, -0.012757282704114914, -0.03077329322695732, -0.01482004951685667, -0.06423792243003845, -0.02076931670308113, -0.03651008754968643, -0.009835767559707165, 0.05729711055755615, 0.003932978957891464, 0.017077583819627762, 0.025302091613411903, 0.03651008754968643, 0.050320886075496674, 0.012845814228057861, -0.022522225975990295, -0.037572454661130905, 0.022593051195144653, -0.0039728181436657906, 0.018016010522842407, 0.00027942523593083024, 0.03920142352581024, 0.03697044774889946, -0.044831980019807816, 0.04699213057756424, -0.03420828655362129, -0.011668354272842407, 0.04419455677270889, -0.0032756382133811712, -0.04044085368514061, 0.058784425258636475, 0.00043988722609356046, 0.00637421477586031, 0.03303968161344528, 0.013385851867496967, 0.05662427470088005, 0.047594137489795685, 0.028613142669200897, -0.003649680642411113, -0.030543113127350807, 0.029905691742897034, 0.00501084141433239, 0.06257354468107224, 0.019441355019807816, 0.04557563737034798, 0.040617913007736206, 0.028861029073596, 0.04971887543797493, 0.02884332276880741, -0.012739577330648899, 0.017564503476023674, -0.052587274461984634, -0.024540727958083153, 0.015280409716069698, -0.005882869008928537, -0.020273545756936073, -0.0015149826649576426, 0.011650648899376392, -0.02624051831662655, 0.018715403974056244, 0.04465491697192192, 0.04702754318714142, -0.002636003540828824, 0.04433620721101761, -0.10375805199146271, 0.04543398693203926, 0.022203516215085983, -0.004344647284597158, 0.07641975581645966, -0.020149601623415947, -0.04242394119501114, -0.007024915888905525, -0.0099862702190876, 0.06328178942203522, -0.008671588264405727, -0.003452699864283204, -0.05269351229071617, 0.019441355019807816, 0.02158379927277565, -0.03969719260931015, 0.03543001040816307, -0.025532271713018417, 0.0453631617128849, 0.017024464905261993, -0.04635470733046532, 0.02314194105565548, -0.030277520418167114, -0.015882419422268867, -0.021831685677170753, 0.03422599285840988, -0.018255043774843216, 0.007932356558740139, 0.05814700573682785, 0.0516311414539814, -0.031056592240929604, -0.0007392318802885711, 0.04111368581652641, 0.027993427589535713, -0.05754499509930611, -0.02234516479074955, 0.02307111769914627, -0.05088748410344124, -0.04054709151387215, 0.015855859965085983, 0.025178149342536926, 0.05287057161331177, 0.03268555924296379, 0.016165716573596, -0.017511384561657906, -0.050285473465919495, -0.0023792642168700695, 0.018980994820594788, -0.032136667519807816, -0.041786521673202515, -0.018662285059690475, 0.012208391912281513, 0.052587274461984634, 0.09702971577644348, -0.013562913052737713, 0.03197731077671051, -0.015121054835617542, 0.0038975668139755726, 0.022947173565626144, -0.010526307858526707, -0.01731661707162857, 0.010331540368497372, -0.009517056867480278, 0.09136375039815903, -0.06112163886427879, -0.03350004181265831, 0.02544374205172062, -0.005750073119997978, 0.016289660707116127, 0.03704127296805382, 0.01653754711151123, -0.014014420099556446, 0.030950354412198067, 0.00848124735057354, 0.014758078381419182, 0.0592447854578495, -0.005174623336642981, -0.01311140600591898, 0.01929970644414425, -0.036757972091436386, -0.04281347617506981, -0.005254300776869059, 0.04511527717113495, -0.018308162689208984, 0.03810364007949829, 0.013970154337584972, 0.006002385634928942, -0.051383256912231445, -0.019512180238962173, -0.017015613615512848, 0.008357304148375988, -0.015342380851507187, -0.004886898212134838, -0.005710234399884939, 0.009773796424269676, -0.002775439526885748, -0.015085642226040363, 0.00501526752486825, 0.028984971344470978, 0.04075956344604492, -0.004917883779853582, 0.032579321414232254, 0.011013226583600044, -0.022061865776777267, -0.013784239999949932, 0.03535918518900871, 0.036828797310590744, 0.016617223620414734, 0.006967370864003897, 0.011898534372448921, -0.047912850975990295, -0.029038090258836746, 0.024824026972055435, -0.03697044774889946, 0.03365939483046532, -0.009127521887421608, 0.06682302057743073, 0.058678191155195236, 0.03884729743003845, 0.026470698416233063, 0.016263101249933243, 0.09037220478057861, 0.03279179334640503, 0.017077583819627762, 0.054889071732759476, 0.06437957286834717, -0.011101758107542992, 0.0668584331870079, -0.02121197059750557, 0.05517237260937691, 0.01441280823200941, 0.03803281486034393, -0.0032756382133811712, -0.013890476897358894, -0.022185809910297394, 0.006732764653861523, 0.013509794138371944, -0.00893718097358942, 0.04709836468100548, -0.017918625846505165, -0.06806245446205139, -0.03396040201187134, 0.05736793577671051, 0.013961301185190678, -0.11261112987995148, 0.004054708871990442, 0.009224905632436275, -0.0009179533808492124, 0.022433696314692497, 0.009100962430238724, 0.013784239999949932, 0.0038599413819611073, 0.04968346282839775, -0.08583942800760269, -0.07606562972068787, 0.04557563737034798, 0.048266973346471786, -0.0008017567452043295, 0.0011542198481038213, -0.036368437111377716, 0.03704127296805382, 0.03118053451180458, -0.017883215099573135, -0.09681724011898041, 0.03006504662334919, 0.04387584701180458, 0.019866302609443665, -0.02730288729071617, -0.02356688864529133, 0.03153465688228607, 0.023761656135320663, -0.03220749273896217, 0.03898894786834717, -0.004123320337384939, 0.009463938884437084, -0.010535161010921001, 0.027940308675169945, 0.042140644043684006, -0.03980343043804169, 0.03477488458156586, -0.06427333503961563, -0.02307111769914627, 0.06441498547792435, 0.021070322021842003, -0.0177769772708416, -0.022663874551653862, -0.005958120338618755, 0.015696505084633827, -0.052941396832466125, -0.05003758892416954, -0.0177769772708416, -0.0081669632345438, 0.06158199906349182, 0.05364964157342911, 0.036368437111377716, -0.0177769772708416, 0.012279217131435871, -0.029091209173202515, 0.006458319257944822, 0.03342921659350395, -0.08626437932252884, -0.013509794138371944, 0.005342831369489431, -0.02848920039832592, -0.020185014232993126, -0.023726245388388634, 0.017529090866446495, 0.08534365892410278, 0.030737880617380142, -0.026435285806655884, -0.012872372753918171, 0.015714211389422417, 0.029197445139288902, 0.028347549960017204, -0.026807114481925964, -0.000020541903722914867, -0.04419455677270889, 0.013819652609527111, -0.03581954538822174, 0.017750417813658714, 0.022415990009903908, 0.0027090413495898247, 0.000724845624063164, -0.0910804495215416, 0.056765925139188766, 0.0013556273188441992, 0.037572454661130905, -0.08045675605535507, 0.014758078381419182, -0.005657115951180458, -0.0633172020316124, -0.04345089942216873, -0.01057057362049818, -0.041396986693143845, 0.04189275577664375, -0.03472176566720009, 0.1140984445810318, -0.01191624067723751, 0.07181615382432938, 0.0011232340475544333, -0.001873532310128212, -0.03920142352581024, 0.01682969741523266, -0.0016522053629159927, -0.022168103605508804, 0.0014607575722038746, -0.031446125358343124, -0.027426831424236298, 0.022929467260837555, 0.0717807412147522, -0.06611477583646774, 0.03884729743003845, 0.03697044774889946, 0.04051167890429497, -0.04940016567707062, 0.009649853222072124, 0.016289660707116127, 0.003975031431764364, -0.0032822780776768923, -0.021052615717053413, -0.0384223498404026, -0.00646274583414197, -0.040653325617313385, 0.02808195911347866, 0.030135871842503548, 0.03654550015926361, 0.056411802768707275, -0.0017075370997190475, -0.04114909842610359, 0.02315964736044407, -0.03686420992016792, -0.0011829923605546355, -0.05471201241016388, -0.030507700517773628, -0.03959095850586891, 0.0331813283264637, -0.03617367148399353, -0.08088170737028122, -0.024345960468053818, 0.012872372753918171, -0.005851883441209793, 0.05290598422288895, 0.04040544107556343, -0.019830891862511635, 0.007250669412314892, -0.009676412679255009, -0.059067726135253906, 0.04975428804755211, 0.0119339469820261, 0.04132616147398949, 0.004388912580907345, 0.01485546212643385, -0.007737588603049517, -0.0399450808763504, 0.03496965020895004, 0.048727333545684814, -0.0350404754281044, 0.010110213421285152, 0.011960506439208984, 0.042955126613378525, -0.012898932211101055, 0.021335914731025696, -0.05322469398379326, 0.017343176528811455, 0.03160548210144043, -0.027657009661197662, -0.00519675575196743, 0.05290598422288895, -0.015067935921251774, -0.008954886347055435, -0.039484720677137375, -0.0005151383811607957, 0.05056877061724663, -0.02811736986041069, -0.05088748410344124, -0.04302595183253288, 0.0211588516831398, 0.00789694394916296, 0.0592447854578495, -0.014864315278828144, -0.020928671583533287, 0.07691552489995956, 0.031322184950113297, -0.055986855179071426, -0.02618739940226078, -0.004450884182006121, -0.007582659833133221, 0.0357133112847805, 0.018255043774843216, 0.005905001889914274, -0.013173378072679043, -0.04313218966126442, 0.005453494843095541, 0.025585390627384186, -0.003919699694961309, -0.0729493498802185, 0.04284888878464699, -0.03535918518900871, 0.03206584230065346, -0.011756885796785355, 0.0641670972108841, -0.04054709151387215, 0.028188195079565048, -0.03498735651373863, -0.0424947664141655, -0.0028573304880410433, 0.03959095850586891, 0.02429284155368805, -0.0722765177488327, 0.04855027049779892, 0.07606562972068787, -0.030525406822562218, -0.059103138744831085, 0.028683967888355255, -0.005068386439234018, 0.003755917539820075, -0.05499530956149101, 0.037501633167266846, 0.005466774571686983, -0.006276831030845642, 0.042919714003801346, 0.0008427022257819772, 0.012987462803721428, -0.0031030033715069294, -0.021459857001900673, -0.038705650717020035, -0.04578810930252075, -0.07493244111537933, -0.043769609183073044, -0.0034106476232409477, -0.0002323932567378506, 0.018184218555688858, -0.028737084940075874, 0.02390330657362938, 0.09214282035827637, -0.039909668266773224, -0.024753201752901077, -0.049081455916166306, 0.0016588452272117138, -0.060307156294584274, -0.0004077948397025466, -0.027851779013872147, 0.08059840649366379, 0.02663005329668522, 0.010101360268890858, 0.0005480607505887747, -0.04511527717113495, 0.01852063648402691, 0.006843428127467632, -0.06342343986034393, -0.10064177215099335, 0.009100962430238724, 0.024558434262871742, 0.017068730667233467, -0.031339891254901886, 0.027869483456015587, 0.010074800811707973, -0.019760066643357277, -0.006090916693210602, -0.011606383137404919, 0.022911760956048965, 0.04461950436234474, -0.008822090923786163, -0.041007447987794876, -0.007020489778369665, 0.02540832944214344, -0.06604395061731339, 0.023726245388388634, -0.03396040201187134, -0.03364168852567673, -0.01463413517922163, -0.03824529051780701, -0.017006760463118553, 0.008255493827164173, -0.000012121106919948943, -0.012642192654311657, 0.03394269570708275, -0.029392212629318237, 0.00893718097358942, -0.0438404344022274, -0.026028044521808624, 0.01004824135452509, -0.058005355298519135, -0.0016223262064158916, -0.03188877925276756, -0.05340175703167915, 0.030560819432139397, 0.06278602033853531, 0.039059773087501526, -0.024806320667266846, -0.04901063069701195, 0.029958810657262802, -0.012845814228057861, -0.029905691742897034, 0.02459384687244892, -0.017290057614445686, 0.03849317505955696, 0.020238133147358894, -0.07220569252967834, -0.04323842376470566, 0.012332335114479065, -0.00769332330673933, -0.029905691742897034, -0.010234156623482704, -0.02737371250987053, -0.05279974639415741, 0.019742360338568687, 0.05570355802774429, 0.02234516479074955, -0.05793453007936478, -0.00635208236053586, 0.012810401618480682, 0.04129074886441231, -0.036403849720954895, -0.004962149076163769, -0.0006412946968339384, -0.07953603565692902, -0.013943594880402088, -0.046815067529678345, -0.018679991364479065, 0.012350041419267654, 0.03280949965119362, -0.03227831795811653, -0.015802741050720215, 0.03902436047792435, 0.030224403366446495, -0.003709438955411315, 0.024062661454081535, -0.06034256890416145, 0.031339891254901886, 0.036757972091436386, -0.024009542539715767, -0.0785444900393486, -0.00614846171811223, -0.00965870637446642, 0.016449015587568283, -0.033287566155195236, -0.022150397300720215, -0.012279217131435871, -0.04865650832653046, -0.01118143554776907, -0.040122140198946, 0.027249768376350403, 0.05966973304748535, 0.034544702619314194, 0.04546939954161644, 0.014828902669250965, -0.00683014839887619, -0.04189275577664375, 0.011075198650360107, -0.008534365333616734, -0.0026625627651810646, 0.03704127296805382, -0.008968166075646877, -0.006192727014422417, -0.0016986840637400746, -0.020627668127417564, 0.004019296728074551, -0.0733034685254097, -0.036439262330532074, 0.003337609814479947, -0.055278610438108444, 0.010747634805738926, 0.02346065267920494, -0.009534763172268867, -0.032543908804655075, 0.010703369043767452, -0.02997651696205139, -0.05432247743010521, 0.04851485788822174, -0.030206697061657906, 0.025160443037748337, 0.0006042224704287946, 0.04405290633440018, 0.02423972263932228, -0.016918228939175606, 0.02239828370511532, -0.013199936598539352, -0.008773398585617542, -0.04667341709136963, -0.045646462589502335, -0.008467967621982098, -0.013191083446145058, 0.04196358099579811, -0.09448003023862839, -0.06349426507949829, 0.0006601075292564929, 0.005834177136421204, -0.06522946804761887, -0.0016466722590848804, 0.0004918990307487547, -0.01731661707162857, -0.029887985438108444, 0.018786227330565453, 0.011686060577630997, 0.007927929982542992, -0.017830096185207367, 0.019441355019807816, -0.006573409307748079, -0.037537042051553726, 0.040972039103507996, 0.012792695313692093, 0.00521446205675602, 0.006958518177270889, 0.014492485672235489, 0.009490497410297394, -0.03852858766913414, -0.034526996314525604, 0.03941389545798302, -0.014492485672235489, 0.00569252809509635, 0.03305738791823387, 0.01272187102586031, -0.037537042051553726, -0.07493244111537933, 0.026098869740962982, 0.012774989008903503, -0.03396040201187134, -0.01119914185255766, 0.022575344890356064, -0.015599120408296585, 0.01958300545811653, -0.004003803711384535, 0.045292340219020844, 0.0663626566529274, 0.01559026725590229, -0.023637713864445686, 0.03040146455168724, 0.011889681220054626, -0.008609617128968239, 0.07259522378444672, -0.04805449768900871, -0.025213561952114105, 0.01621883548796177, 0.021725449711084366, -0.012288070283830166, -0.02962239272892475, 0.04844403266906738, -0.05591602995991707, 0.04274265095591545, 0.037961989641189575, -0.007941209711134434, -0.0021535109262913465, 0.04476115480065346, -0.0622902438044548, 0.04922310635447502, -0.051772791892290115, -0.08470623195171356, -0.041786521673202515, 0.021849391981959343, 0.006068783812224865, 0.04893980547785759, 0.019122645258903503, 0.012872372753918171, 0.005449068266898394, 0.04086580127477646, 0.025532271713018417 ]
714,752
pytorch_optimizer.base.optimizer
get_adanorm_gradient
Get AdaNorm gradient. :param grad: torch.Tensor. gradient. :param adanorm: bool. whether to apply AdaNorm. :param exp_grad_norm: Optional[torch.Tensor]. exp_grad_norm. :param r: float. Optional[float]. momentum (ratio).
@staticmethod def get_adanorm_gradient( grad: torch.Tensor, adanorm: bool, exp_grad_norm: Optional[torch.Tensor] = None, r: Optional[float] = 0.95 ) -> torch.Tensor: r"""Get AdaNorm gradient. :param grad: torch.Tensor. gradient. :param adanorm: bool. whether to apply AdaNorm. :param exp_grad_norm: Optional[torch.Tensor]. exp_grad_norm. :param r: float. Optional[float]. momentum (ratio). """ if not adanorm: return grad grad_norm = torch.linalg.norm(grad) exp_grad_norm.mul_(r).add_(grad_norm, alpha=1.0 - r) return grad * exp_grad_norm / grad_norm if exp_grad_norm > grad_norm else grad
(grad: torch.Tensor, adanorm: bool, exp_grad_norm: Optional[torch.Tensor] = None, r: Optional[float] = 0.95) -> torch.Tensor
[ -0.04052235186100006, 0.029206544160842896, 0.055644694715738297, 0.0406261645257473, 0.07232426106929779, 0.016039375215768814, -0.01480225007981062, -0.07523107528686523, -0.0448133610188961, 0.0268534105271101, 0.030573438853025436, 0.014084198512136936, 0.0233756173402071, 0.03384360298514366, -0.04104142263531685, -0.0198978241533041, -0.020624525845050812, 0.12471609562635422, -0.022666215896606445, -0.022250957787036896, -0.02588447369635105, -0.042702458798885345, -0.020434198901057243, -0.0046111042611300945, -0.046128347516059875, -0.02278733439743519, 0.009403884410858154, -0.00022330982028506696, -0.04671663045883179, 0.022164445370435715, 0.0537068210542202, -0.07889919728040695, 0.06588774919509888, 0.027164854109287262, 0.011220642365515232, -0.01587500236928463, 0.02278733439743519, 0.03906894475221634, -0.12319348007440567, -0.04176812618970871, 0.00582227623090148, -0.0033869557082653046, 0.04017630219459534, -0.009230859577655792, 0.020382292568683624, -0.05197657644748688, -0.018738558515906334, -0.041698917746543884, -0.07751499861478806, 0.007042099256068468, 0.012803817167878151, -0.02420613542199135, 0.05214960128068924, 0.020416896790266037, 0.014291828498244286, 0.03761553764343262, 0.005692507605999708, 0.027458997443318367, 0.007323264144361019, -0.023133382201194763, 0.03917275741696358, -0.07543870806694031, -0.02031308226287365, -0.03823842480778694, 0.014058245345950127, 0.02126471698284149, -0.0606624074280262, 0.03581608086824417, 0.0523226261138916, 0.013288285583257675, -0.05474497005343437, 0.0031706748995929956, 0.026368942111730576, -0.03500286862254143, 0.0007310287328436971, -0.01212036982178688, 0.01525211427360773, -0.019326843321323395, 0.05090382322669029, -0.012985493056476116, 0.009282766841351986, 0.023998506367206573, 0.02446567267179489, 0.04246022552251816, 0.043844420462846756, -0.08575096726417542, -0.08782726526260376, -0.031127117574214935, 0.019517170265316963, -0.06709892302751541, 0.044259682297706604, -0.059901099652051926, 0.017458178102970123, 0.014923367649316788, -0.0007229181937873363, 0.0550910159945488, 0.019967032596468925, -0.00021519928122870624, 0.03064264915883541, -0.012232836335897446, -0.030538832768797874, 0.0706978291273117, 0.03050422854721546, 0.03110981546342373, 0.03297847881913185, -0.03534891456365585, -0.03372248634696007, -0.04872371256351471, 0.025175072252750397, -0.012189580127596855, -0.04671663045883179, -0.03484714403748512, 0.020364990457892418, -0.026818806305527687, -0.011506132781505585, -0.023842783644795418, 0.03280545398592949, -0.018323300406336784, -0.016532495617866516, 0.0007548196008428931, 0.09094170480966568, 0.020503409206867218, -0.02730327472090721, -0.029241150245070457, 0.01939605176448822, 0.010286309756338596, -0.009723979979753494, -0.01299414411187172, -0.00832248106598854, -0.008313830010592937, 0.011696459725499153, 0.04432889074087143, -0.0007802325999364257, -0.0013485101517289877, 0.07135532796382904, -0.024690603837370872, 0.031905729323625565, 0.023635154590010643, -0.04488256946206093, 0.024950141087174416, -0.0027640671469271183, 0.03848066180944443, 0.027112947776913643, -0.0009613676811568439, -0.014040942303836346, 0.026109404861927032, -0.04657820984721184, 0.048516083508729935, 0.027182158082723618, -0.02008815109729767, 0.03244210407137871, -0.011038966476917267, 0.029760222882032394, 0.03443188592791557, 0.02479441836476326, 0.0015485697658732533, -0.008067269809544086, -0.03192302957177162, -0.006263488903641701, -0.0012890328653156757, -0.01994973048567772, -0.0531531423330307, -0.0400724858045578, -0.030296599492430687, 0.0068863769993186, -0.03470872715115547, 0.02446567267179489, 0.0026602523867040873, -0.017406269907951355, 0.016065329313278198, 0.03119632601737976, -0.037580933421850204, -0.015105043537914753, 0.03678502142429352, -0.035470034927129745, 0.06630300730466843, -0.026472756639122963, 0.03692343831062317, -0.031023303046822548, -0.018911583349108696, 0.0461975559592247, 0.024552183225750923, 0.01276056095957756, -0.08083707094192505, 0.025780659168958664, -0.012137671932578087, -0.042425621300935745, -0.0032333964481949806, -0.005817950703203678, 0.009784538298845291, 0.014914716593921185, -0.03270164132118225, 0.0023336687590926886, -0.03489905223250389, 0.003698399756103754, -0.025192374363541603, -0.025192374363541603, -0.014957972802221775, 0.06841390579938889, 0.012613490223884583, 0.0015020694117993116, 0.03564305976033211, -0.008201363496482372, 0.03969183191657066, 0.03848066180944443, -0.002772718435153365, -0.02598828822374344, 0.021783791482448578, -0.011471527628600597, -0.02707834169268608, -0.022268259897828102, 0.007751499768346548, 0.03443188592791557, 0.052080389112234116, -0.00124902103561908, -0.03225177526473999, 0.06931363791227341, 0.023046869784593582, 0.060904644429683685, 0.013270983472466469, -0.0027229739353060722, -0.038307636976242065, 0.08332862704992294, 0.00562762375921011, 0.05498720332980156, -0.008564715273678303, -0.010416078381240368, -0.012215533293783665, -0.013072004541754723, 0.007838012650609016, -0.014274525456130505, -0.03192302957177162, -0.014828204177320004, 0.006605212111026049, 0.11260437965393066, -0.0019508518744260073, -0.005597344134002924, 0.03124823421239853, 0.024811720475554466, -0.0037740981206297874, -0.0464743934571743, 0.04280627518892288, 0.0030776741914451122, 0.04557466879487038, 0.012189580127596855, -0.019240330904722214, 0.008867508731782436, 0.020970575511455536, -0.05585232749581337, -0.05214960128068924, -0.11793353408575058, 0.000997054041363299, 0.025261584669351578, 0.05374142527580261, -0.025036653503775597, 0.02707834169268608, 0.01205116044729948, 0.09578639268875122, -0.00008644469198770821, -0.0397956483066082, 0.042287200689315796, -0.06824088096618652, -0.010355519130825996, 0.013651637360453606, -0.023548642173409462, -0.021662674844264984, 0.04574769362807274, 0.027251366525888443, 0.00372219062410295, 0.020330384373664856, 0.07599238306283951, 0.05896676704287529, -0.017233245074748993, -0.044121261686086655, 0.04834305867552757, 0.034016627818346024, 0.0631885677576065, -0.012898980639874935, -0.030383111909031868, 0.04477875307202339, -0.0063629779033362865, -0.04235640913248062, -0.07682289928197861, 0.07419292628765106, -0.036162130534648895, 0.015269416384398937, 0.023064173758029938, 0.022077932953834534, 0.002372599206864834, 0.03806539997458458, 0.04903515800833702, 0.009533653035759926, 0.07142453640699387, 0.013867917470633984, -0.0006942609907127917, 0.0028008350636810064, 0.048377666622400284, -0.0342242568731308, -0.04021090641617775, -0.016861243173480034, 0.024777116253972054, 0.012924933806061745, 0.0320095419883728, -0.0029976502992212772, -0.07087085396051407, -0.03342834487557411, -0.03356676176190376, 0.023669758811593056, 0.05827466771006584, -0.0154424412176013, -0.043256137520074844, -0.003631352912634611, -0.017008313909173012, 0.06433052569627762, -0.011514783836901188, -0.04931199923157692, -0.016947755590081215, -0.036888834089040756, 0.04291008785367012, 0.04266785457730293, -0.02145504392683506, 0.0842975601553917, 0.05581771954894066, -0.011333107948303223, -0.038307636976242065, -0.06806785613298416, 0.047270309180021286, 0.035608451813459396, 0.03233828768134117, 0.051388293504714966, -0.07377766817808151, -0.025400005280971527, -0.019915126264095306, 0.01911921240389347, -0.009663421660661697, -0.030763765797019005, 0.059728074818849564, -0.022752728313207626, -0.015312672592699528, -0.03965722769498825, -0.02292575314640999, 0.0301927849650383, -0.0005480012041516602, 0.03906894475221634, 0.022077932953834534, -0.015520302578806877, 0.045124802738428116, -0.0008564715390093625, 0.048965949565172195, -0.02214714325964451, 0.0030971395317465067, -0.023583246394991875, -0.05924360826611519, 0.03598910570144653, 0.03931117802858353, 0.024534881114959717, -0.03322071582078934, 0.013911173678934574, 0.012985493056476116, -0.02749360166490078, -0.04848147928714752, -0.01207711361348629, -0.02268351800739765, -0.006462466903030872, -0.015070438385009766, 0.01244046539068222, -0.08526650071144104, -0.009127045050263405, 0.03861907869577408, -0.014603272080421448, 0.03351485729217529, -0.03851526603102684, 0.0459207147359848, -0.04772017151117325, -0.020832156762480736, -0.030625345185399055, -0.011549388989806175, -0.034189652651548386, 0.03854987025260925, 0.014828204177320004, -0.049069762229919434, 0.012241487391293049, 0.010796732269227505, 0.013288285583257675, 0.01710347644984722, -0.02584986761212349, 0.0030971395317465067, 0.008512808009982109, -0.058482300490140915, -0.011471527628600597, -0.009395233355462551, -0.028116490691900253, 0.0067176781594753265, 0.0205899216234684, -0.0973782166838646, 0.009248162619769573, -0.014758994802832603, 0.03180191293358803, -0.06291172653436661, -0.008746391162276268, -0.002731625223532319, 0.011428271420300007, 0.00834843423217535, 0.0012522651813924313, -0.03439728170633316, -0.01706887222826481, -0.0018535255221650004, 0.007440055720508099, 0.0025586006231606007, 0.05419129133224487, 0.010390124283730984, -0.000235205254284665, 0.008024013601243496, 0.08941908925771713, 0.026697687804698944, 0.02451757900416851, 0.007245403248816729, -0.08533570915460587, -0.05100763961672783, 0.019655589014291763, 0.025832565501332283, -0.043152324855327606, -0.030677253380417824, 0.07613079994916916, 0.008612297475337982, 0.014473503455519676, -0.006570607423782349, 0.04920818284153938, -0.08872698992490768, -0.01797725073993206, -0.0007358950679190457, -0.015857700258493423, 0.0005407017306424677, -0.06135450676083565, -0.003064697375521064, 0.03782316669821739, 0.014335083775222301, 0.07419292628765106, 0.017051570117473602, -0.030088970437645912, 0.044674940407276154, -0.0158663522452116, 0.01136771310120821, -0.018998095765709877, -0.07149374485015869, -0.018132973462343216, 0.05332616716623306, 0.003953611012548208, 0.006912331096827984, -0.0628771260380745, -0.0014631388476118445, 0.02012275531888008, 0.029344964772462845, 0.030988696962594986, -0.008703134953975677, -0.00997486524283886, 0.001683745183981955, -0.03233828768134117, 0.017406269907951355, 0.06436513364315033, 0.021247414872050285, 0.007863965816795826, -0.05882834643125534, 0.01811567135155201, 0.012362604029476643, 0.04422507435083389, 0.08104470372200012, -0.012146323919296265, -0.04958883672952652, -0.008067269809544086, 0.033549461513757706, -0.01820218376815319, 0.03457030653953552, -0.05007330700755119, 0.013115260750055313, -0.02081485465168953, 0.014534062705934048, 0.013478612527251244, 0.023202592507004738, -0.011445574462413788, -0.040141697973012924, -0.039726436138153076, -0.015892304480075836, 0.011376364156603813, 0.012855724431574345, 0.026818806305527687, -0.04291008785367012, 0.012163626030087471, 0.02214714325964451, 0.02434455417096615, 0.008011036552488804, -0.02699183113873005, 0.03720027953386307, -0.011116827838122845, -0.014629226177930832, -0.04671663045883179, 0.00896267220377922, -0.00291113811545074, 0.0392419695854187, -0.006246186327189207, 0.004922548308968544, -0.06301554292440414, -0.04353297874331474, 0.023635154590010643, 0.029587198048830032, -0.009005928412079811, -0.0770997405052185, -0.004784129094332457, 0.004187194164842367, 0.00007549548172391951, -0.017449526116251945, 0.020105453208088875, -0.01770906336605549, 0.04747793823480606, 0.010087331756949425, 0.02758011408150196, -0.02067643404006958, -0.006704701576381922, 0.019361447542905807, -0.03806539997458458, -0.05439892038702965, 0.08021418005228043, -0.07049020379781723, -0.051492106169462204, -0.027095645666122437, 0.05131908133625984, -0.004042285960167646, 0.0021909233182668686, 0.00019951893773395568, 0.009611513465642929, -0.00004018089748569764, 0.016272958368062973, 0.04688965529203415, 0.022475888952612877, -0.01109087374061346, 0.01244046539068222, -0.01853092946112156, -0.017579294741153717, -0.08339783549308777, -0.011506132781505585, 0.011514783836901188, -0.01434373576194048, 0.018548231571912766, -0.0461975559592247, 0.022493191063404083, 0.016887197270989418, 0.018357904627919197, -0.008534436114132404, 0.027285972610116005, -0.005389714613556862, -0.024967443197965622, 0.018721256405115128, -0.06166595220565796, 0.024396462365984917, -0.029742920771241188, 0.03740790858864784, -0.06225423514842987, -0.029223846271634102, -0.008729089051485062, -0.025676842778921127, -0.013694893568754196, -0.09260273724794388, 0.026559269055724144, 0.03931117802858353, -0.041975755244493484, 0.024448368698358536, -0.00030549647635780275, -0.016385424882173538, -0.021143600344657898, -0.012319347821176052, -0.06363843381404877, -0.04294469580054283, -0.009152999147772789, -0.019915126264095306, -0.04643978923559189, 0.024361856281757355, 0.01898079365491867, -0.07516186684370041, 0.060350965708494186, -0.03408583626151085, 0.0448133610188961, -0.07945287227630615, -0.0406261645257473, -0.017146732658147812, -0.008041315712034702, -0.008257596753537655, 0.01884237304329872, 0.06266949325799942, 0.028531748801469803, -0.07260110229253769, -0.048654504120349884, -0.007998059503734112, 0.02187030389904976, -0.09807031601667404, 0.002366110682487488, -0.008979974314570427, -0.0166968684643507, 0.027026435360312462, 0.03948420286178589, 0.01299414411187172, -0.03810000792145729, -0.005848229862749577, -0.00550218066200614, 0.002257970394566655, -0.023773573338985443, -0.00443807989358902, 0.014629226177930832, -0.02790885977447033, -0.0034626538399606943, -0.08755042403936386, -0.023911993950605392, 0.001047339290380478, -0.02434455417096615, 0.003373978892341256, 0.027614718303084373, -0.0550910159945488, -0.027164854109287262, 0.007859640754759312, 0.03993406519293785, 0.11751827597618103, 0.0016350820660591125, 0.015987468883395195, -0.002316366182640195, -0.022614309564232826, -0.017501434311270714, -0.029517989605665207, 0.0464743934571743, -0.04235640913248062, -0.004286683164536953, -0.010839988477528095, -0.014871460385620594, 0.039276573807001114, -0.022389376536011696, -0.019361447542905807, -0.022250957787036896, 0.034656818956136703, 0.016731474548578262, 0.017994552850723267, 0.02584986761212349, -0.027649324387311935, 0.02470790594816208, 0.02507125772535801, -0.0542604997754097, -0.0027121598832309246, 0.025694146752357483, 0.03910354897379875, 0.013028749264776707, -0.03470872715115547, 0.010952454060316086, -0.011385015211999416, -0.035746872425079346, 0.03498556464910507, 0.023306407034397125, 0.04097221419215202, 0.013409403152763844, -0.0158663522452116, -0.01944795995950699, 0.04945041611790657, -0.0002553463855292648, -0.005882835015654564, 0.016705520451068878, -0.025694146752357483, -0.020278478041291237, -0.0160047709941864, -0.019223026931285858, -0.015502999536693096, -0.022856542840600014, 0.029483383521437645, -0.012241487391293049, -0.044709544628858566, -0.020295780152082443, 0.0120338574051857, 0.000030482060537906364, -0.011194688268005848, 0.07453897595405579, 0.03527970612049103, 0.0307464636862278, -0.042287200689315796, 0.07696132361888885, 0.019361447542905807, -0.019690193235874176, 0.030088970437645912, 0.013729498721659184, 0.0018383858259767294, -0.027320576831698418, -0.02465599961578846, 0.02886049635708332, -0.0004247212200425565, 0.03427616506814957, -0.000005229599537415197, -0.07772263139486313, -0.03837684541940689, 0.01338344905525446, -0.026957225054502487, 0.055921535938978195, -0.054917994886636734, -0.05682126432657242, 0.059762679040431976, -0.006514374632388353, -0.00040255242493003607, 0.02356594428420067, 0.0164200309664011, -0.04162970930337906, 0.007876942865550518, -0.009403884410858154, -0.03476063162088394, 0.05318774655461311, 0.03778856247663498, -0.029223846271634102, 0.01939605176448822, 0.03171540051698685, 0.052772488445043564, 0.025330794975161552, -0.0021444230806082487, 0.01200790423899889, 0.01299414411187172, 0.040003277361392975, 0.01674012467265129, 0.001041391515173018, -0.008512808009982109, -0.012492372654378414, 0.004589476156979799, 0.05682126432657242, 0.027182158082723618, 0.006354326847940683, -0.04772017151117325, -0.06367303431034088, 0.023496733978390694, -0.04664741829037666, -0.05934742093086243, 0.007920199073851109, 0.013867917470633984, 0.0461975559592247, 0.042287200689315796, -0.054917994886636734, 0.056752052158117294, 0.04657820984721184, 0.02488093078136444, -0.0631885677576065, 0.0048446874134242535, 0.019569076597690582, 0.045124802738428116, -0.02835872396826744, -0.002142260316759348, 0.05298011749982834, 0.010416078381240368, -0.03251131251454353, -0.04519401490688324, 0.016212400048971176, -0.023808179423213005, 0.06336159259080887, 0.0019865380600094795, -0.0025564378593117, 0.044847965240478516, 0.014914716593921185, -0.0486891083419323, 0.041837338358163834, -0.014222618192434311, -0.011514783836901188, -0.07696132361888885, 0.03519319370388985, -0.027839651331305504, -0.030625345185399055, 0.009447140619158745, -0.02145504392683506, 0.004033634904772043, -0.017466828227043152, -0.008080246858298779 ]
714,753
pytorch_optimizer.base.optimizer
get_rectify_step_size
Get step size for rectify optimizer. :param is_rectify: bool. whether to apply rectify-variant. :param step: int. number of steps. :param lr: float. learning rate. :param beta2: float. beta2. :param n_sma_threshold: float. SMA threshold. :param degenerated_to_sgd: bool. degenerated to SGD.
@staticmethod def get_rectify_step_size( is_rectify: bool, step: int, lr: float, beta2: float, n_sma_threshold: int, degenerated_to_sgd: bool, ) -> Tuple[float, float]: r"""Get step size for rectify optimizer. :param is_rectify: bool. whether to apply rectify-variant. :param step: int. number of steps. :param lr: float. learning rate. :param beta2: float. beta2. :param n_sma_threshold: float. SMA threshold. :param degenerated_to_sgd: bool. degenerated to SGD. """ step_size: float = lr n_sma: float = 0.0 if is_rectify: n_sma_max: float = 2.0 / (1.0 - beta2) - 1.0 beta2_t: float = beta2 ** step # fmt: skip n_sma: float = n_sma_max - 2 * step * beta2_t / (1.0 - beta2_t) if n_sma >= n_sma_threshold: rt = math.sqrt( (1.0 - beta2_t) * (n_sma - 4) / (n_sma_max - 4) * (n_sma - 2) / n_sma * n_sma_max / (n_sma_max - 2) ) elif degenerated_to_sgd: rt = 1.0 else: rt = -1.0 step_size *= rt return step_size, n_sma
(is_rectify: bool, step: int, lr: float, beta2: float, n_sma_threshold: int, degenerated_to_sgd: bool) -> Tuple[float, float]
[ -0.0014643481699749827, -0.05274483188986778, -0.06753451377153397, 0.007979636080563068, -0.008210725151002407, 0.012591979466378689, 0.007206196431070566, -0.04210531711578369, -0.07455206662416458, 0.01175251416862011, -0.014572740532457829, 0.005871540866792202, -0.029579361900687218, -0.0017319866456091404, -0.02718358486890793, 0.01721375435590744, 0.034370917826890945, 0.002279053907841444, 0.022033605724573135, 0.006904366426169872, 0.023467300459742546, 0.06889274716377258, -0.041841212660074234, 0.005715909879654646, -0.02635355107486248, 0.035351864993572235, 0.03980385884642601, -0.017770254984498024, -0.010922481305897236, 0.015063214115798473, 0.005965862888842821, -0.03325791656970978, 0.01843050867319107, 0.02267499454319477, -0.002118706703186035, -0.04765144735574722, 0.01550652738660574, 0.04331263527274132, -0.11280904710292816, -0.07077918946743011, -0.09417103230953217, -0.02807021141052246, 0.07051508873701096, 0.008682334795594215, 0.010903616435825825, -0.017185458913445473, -0.05440489575266838, -0.024580297991633415, -0.03938884288072586, -0.03135261312127113, 0.08587069809436798, -0.09085089713335037, 0.010752701200544834, 0.053197577595710754, -0.010818727314472198, 0.035502780228853226, 0.009752889163792133, 0.014912299811840057, 0.049085140228271484, -0.01634599268436432, 0.03376725688576698, -0.020920606330037117, -0.017741957679390907, -0.02027921751141548, -0.03135261312127113, -0.025542382150888443, -0.039954774081707, -0.01056405808776617, -0.027032669633626938, 0.04436904191970825, -0.006031888537108898, -0.00825788639485836, 0.011092260479927063, -0.010215066373348236, 0.0076164971105754375, 0.01634599268436432, 0.017383534461259842, -0.05700818449258804, 0.06391254812479019, -0.04546317830681801, 0.02182609774172306, 0.04093572497367859, 0.06168655306100845, -0.06870410591363907, -0.020996063947677612, -0.03086213953793049, 0.042293958365917206, 0.030220750719308853, 0.003770519746467471, -0.09319008141756058, 0.0056876130402088165, 0.0027141140308231115, 0.03405022248625755, 0.04218077287077904, -0.022071335464715958, 0.03497457876801491, -0.033918172121047974, -0.04693460091948509, -0.020864013582468033, -0.07228833436965942, -0.005244300235062838, 0.0074750143103301525, -0.021429946646094322, 0.03965294361114502, 0.02097720094025135, 0.020788555964827538, 0.018006058409810066, -0.014044537208974361, 0.009116215631365776, 0.0094887875020504, 0.007432569283992052, -0.04501043260097504, -0.06949640810489655, 0.04021887853741646, -0.06930776685476303, -0.022222250699996948, 0.0025749891065061092, 0.018232431262731552, 0.010365981608629227, -0.020939471200108528, -0.00192180962767452, -0.0118185393512249, -0.019769879058003426, 0.022297708317637444, 0.02109038643538952, 0.005258448421955109, 0.045991379767656326, 0.0807395875453949, -0.04418039694428444, -0.017553314566612244, 0.026711974292993546, -0.012507089413702488, -0.027315635234117508, 0.04206758737564087, 0.002534902188926935, 0.011365794576704502, 0.014157723635435104, 0.047538258135318756, 0.0387851819396019, -0.03772877901792526, 0.039879318326711655, 0.02835317701101303, -0.028126804158091545, -0.05753638595342636, -0.012026048265397549, 0.01736466959118843, 0.013214504346251488, 0.030239615589380264, 0.025580111891031265, 0.041841212660074234, -0.03984158858656883, 0.030107565224170685, 0.05436716973781586, -0.033635206520557404, 0.0332956463098526, -0.01849653385579586, -0.0010534581961110234, -0.03772877901792526, -0.015185832977294922, -0.03723830357193947, -0.025881942361593246, -0.004456711933016777, -0.019920794293284416, -0.06489349901676178, 0.025712162256240845, 0.032371290028095245, 0.011856268160045147, 0.058856893330812454, -0.02890024334192276, 0.043689925223588943, -0.017807982861995697, -0.01041314285248518, -0.03001324273645878, 0.016968518495559692, -0.0006319570238701999, 0.09741570055484772, -0.003480479819700122, -0.021203573793172836, 0.001667140400968492, -0.004746751859784126, 0.025410331785678864, -0.008837966248393059, 0.005140545777976513, -0.009884939529001713, -0.02154313214123249, 0.05508401617407799, -0.011148854158818722, -0.00318572367541492, -0.00548953702673316, 0.0027329784352332354, -0.009309575892984867, 0.009073770605027676, 0.028277719393372536, -0.005013211164623499, -0.007493878249078989, 0.0026410145219415426, 0.007899463176727295, 0.018722906708717346, 0.04135074093937874, -0.03489911928772926, 0.009102067910134792, -0.0026976075023412704, -0.004551033955067396, 0.046670496463775635, 0.011054531671106815, -0.009667999111115932, 0.01638372242450714, 0.012912673875689507, -0.008328627794981003, 0.03867199644446373, -0.09258642047643661, -0.0021022004075348377, 0.0035913081374019384, 0.02650446631014347, 0.06651583313941956, -0.02252408117055893, 0.03397476300597191, 0.04052070900797844, -0.017487289384007454, -0.00562630407512188, 0.058894623070955276, -0.03299381583929062, 0.0262215007096529, -0.0040912143886089325, 0.051084764301776886, -0.02761746570467949, 0.004423699341714382, -0.02693834714591503, 0.006286557763814926, -0.004081781953573227, -0.026674246415495872, -0.07160922139883041, 0.07198651134967804, 0.0030914016533643007, 0.015563121065497398, 0.03467274829745293, -0.03225810453295708, -0.040709350258111954, 0.0341256782412529, -0.015016053803265095, -0.039728403091430664, -0.007951339706778526, -0.05183934047818184, 0.022769317030906677, -0.02750427834689617, 0.0027872135397046804, 0.043878570199012756, -0.03569142520427704, -0.006677993573248386, 0.0027093978133052588, -0.04916059598326683, -0.05791367217898369, -0.0020597553811967373, 0.04150165617465973, 0.008550284430384636, 0.023486163467168808, 0.044444501399993896, 0.008163563907146454, 0.04255806282162666, -0.01621394231915474, 0.04983971640467644, -0.0061356425285339355, -0.008055093698203564, 0.030692361295223236, -0.09115272760391235, 0.009224685840308666, 0.019486913457512856, 0.006041320506483316, -0.02720244787633419, 0.015204697847366333, 0.11439365148544312, 0.036766692996025085, -0.076249860227108, -0.01917565055191517, 0.02095833607017994, 0.041992127895355225, 0.025240551680326462, 0.02452370524406433, 0.06308251619338989, -0.022071335464715958, 0.032371290028095245, -0.038898371160030365, 0.02282590977847576, 0.0314658023416996, -0.0487833097577095, -0.0020255637355148792, -0.03699306771159172, -0.07130739092826843, 0.03863426670432091, 0.016619525849819183, -0.026127178221940994, 0.0006578955799341202, 0.038181524723768234, 0.0322958342730999, 0.06862864643335342, 0.04742507264018059, 0.006960959639400244, -0.02648560144007206, 0.006145074497908354, 0.017374102026224136, 0.02805134654045105, 0.004645355977118015, -0.012110937386751175, 0.024712350219488144, 0.0024688770063221455, 0.001367668155580759, 0.064252108335495, -0.04165257140994072, -0.013205071911215782, -0.014893434941768646, -0.0609319768846035, 0.03172990307211876, 0.015232994221150875, -0.012422200292348862, 0.015497095882892609, 0.0011784348171204329, -0.018656879663467407, -0.006838340777903795, 0.01843050867319107, 0.035615965723991394, -0.0126108443364501, 0.034087952226400375, 0.015025485306978226, -0.011035667732357979, 0.015468798577785492, -0.045274533331394196, -0.007715534884482622, -0.01956237107515335, 0.008724779821932316, -0.018053220584988594, -0.06074333190917969, -0.06153563782572746, 0.012865513563156128, 0.023203197866678238, 0.04252033308148384, -0.04150165617465973, 0.04765144735574722, 0.06315797567367554, -0.019373727962374687, -0.019373727962374687, 0.057159099727869034, 0.0076164971105754375, 0.014685926958918571, 0.03499343991279602, 0.030673496425151825, -0.031371477991342545, 0.020448997616767883, -0.03787969425320625, 0.03835130110383034, 0.04451995715498924, -0.056744080036878586, -0.015261290594935417, 0.015025485306978226, 0.032522205263376236, 0.00939918216317892, 0.004579330328851938, -0.02435392513871193, -0.027824973687529564, 0.05274483188986778, -0.039766132831573486, -0.05029246211051941, 0.06587444245815277, -0.024900993332266808, 0.046557310968637466, 0.06602536141872406, -0.012299581430852413, -0.07394840568304062, -0.04900968074798584, -0.013789867982268333, -0.0063903117552399635, -0.03897382691502571, -0.01893041469156742, 0.016987381502985954, -0.011780810542404652, 0.011629895307123661, 0.055725403130054474, -0.03835130110383034, -0.03405022248625755, 0.01460103690624237, 0.05553676187992096, 0.003612530417740345, 0.0387851819396019, -0.0022330719511955976, 0.050518833100795746, 0.051348865032196045, -0.008720063604414463, -0.07840040326118469, -0.011224311776459217, 0.011384658515453339, -0.03431432321667671, 0.0067723155952990055, 0.009828346781432629, 0.004470860119909048, 0.00033896949025802314, -0.06568580120801926, -0.0126108443364501, -0.048255108296871185, 0.04976425692439079, -0.021882690489292145, 0.04025660455226898, -0.01854369416832924, 0.018741769716143608, 0.005829096306115389, -0.008248453959822655, -0.0436144657433033, -0.04546317830681801, 0.011290336959064007, 0.06496895849704742, -0.013440877199172974, 0.05297120288014412, 0.004673652350902557, -0.01877949945628643, 0.01168648898601532, 0.005447092466056347, -0.06538397073745728, -0.0030418827664107084, 0.0036809139419347048, 0.07077918946743011, -0.036634642630815506, -0.002671669004485011, 0.03101305477321148, 0.024863263592123985, 0.017619339749217033, 0.06798725575208664, 0.024731213226914406, -0.02224111370742321, -0.032220374792814255, -0.0094887875020504, -0.02439165487885475, -0.041841212660074234, -0.0028013617265969515, 0.010752701200544834, -0.029786869883537292, 0.0024335060734301805, -0.026598788797855377, -0.025976262986660004, -0.015383909456431866, 0.03367293253540993, 0.007541039492934942, -0.006314854137599468, 0.017591042444109917, -0.014525579288601875, 0.012158098630607128, 0.055159471929073334, 0.0028107939288020134, -0.07651396095752716, -0.026862889528274536, -0.027994753792881966, -0.046670496463775635, -0.036483727395534515, 0.0284663625061512, -0.026862889528274536, 0.03225810453295708, 0.010601786896586418, 0.013959648087620735, -0.027692923322319984, -0.006871353834867477, -0.020713098347187042, -0.0260517206043005, -0.04719870164990425, 0.04293534904718399, 0.02850409224629402, -0.019751016050577164, 0.0215619970113039, 0.016402585431933403, -0.010450871661305428, 0.03323905169963837, 0.03999250382184982, 0.017157161608338356, -0.02491985820233822, 0.030560309067368507, -0.0167327132076025, 0.040181148797273636, -0.0005603312747552991, 0.043274909257888794, 0.034917984157800674, -0.008687051013112068, 0.014478418044745922, -0.014336935244500637, -0.0027188300155103207, 0.04421812668442726, -0.01869460940361023, -0.022863639518618584, 0.056027233600616455, 0.013148479163646698, 0.02278818190097809, -0.08043775707483292, 0.010922481305897236, -0.03772877901792526, 0.03942657262086868, -0.042859893292188644, -0.025146231055259705, -0.00047367301885969937, 0.015761196613311768, -0.03461615368723869, -0.04685914143919945, 0.05564994737505913, 0.0006077870493754745, 0.06847773492336273, -0.008220157586038113, 0.009960397146642208, -0.042859893292188644, 0.02408982440829277, -0.013742707669734955, 0.00845596194267273, 0.013855893164873123, -0.0895681157708168, 0.04104891046881676, -0.05708364024758339, 0.030258480459451675, -0.038181524723768234, 0.0314658023416996, 0.050669748336076736, 0.03338996693491936, 0.03531413525342941, 0.012280717492103577, 0.03999250382184982, 0.03808720037341118, 0.03835130110383034, -0.016968518495559692, -0.03029620833694935, -0.01749671995639801, 0.022203385829925537, -0.05708364024758339, 0.027938159182667732, 0.009243550710380077, -0.005697045475244522, 0.0002554061356931925, 0.06436529755592346, -0.0199773870408535, 0.03927565738558769, 0.017421262338757515, 0.039464302361011505, 0.046519581228494644, 0.02422187477350235, 0.03699306771159172, -0.019486913457512856, -0.050669748336076736, 0.0017272706609219313, -0.02974914200603962, 0.029371853917837143, -0.019024735316634178, -0.03488025441765785, 0.03523867949843407, -0.07504253834486008, 0.07560846954584122, 0.03306927531957626, 0.05315984785556793, -0.015261290594935417, -0.038313575088977814, 0.004668936133384705, 0.05455581098794937, 0.03870972618460655, -0.007300518453121185, -0.0016789305955171585, -0.017487289384007454, -0.018685176968574524, -0.008182428777217865, 0.040709350258111954, -0.01799662783741951, -0.05240527167916298, -0.030843276530504227, 0.06244112551212311, -0.05131113901734352, -0.01982647180557251, 0.03459728881716728, -0.03338996693491936, 0.01723261922597885, -0.044142670929431915, 0.03288063034415245, 0.026579923927783966, -0.04550090432167053, 0.01069610845297575, -0.043689925223588943, -0.036898743361234665, -0.00048664226778782904, 0.00329419388435781, -0.03640827164053917, -0.03908701241016388, -0.018034355714917183, 0.03214491903781891, 0.01056405808776617, 0.021467674523591995, -0.03723830357193947, -0.03957748785614967, 0.02424073964357376, -0.11265812814235687, 0.02012830227613449, -0.02990005724132061, 0.059875570237636566, -0.045387718826532364, 0.05704591050744057, -0.0416148416697979, -0.08760622143745422, -0.040596164762973785, 0.003961521666496992, 0.01445012167096138, -0.0018899759743362665, -0.02467462047934532, -0.0032658972777426243, -0.00694209523499012, -0.012412767857313156, 0.04859466478228569, 0.059309639036655426, 0.013855893164873123, -0.04267124831676483, 0.03444637358188629, -0.029296396300196648, -0.003942657262086868, -0.09183184802532196, 0.0021528983488678932, 0.002648088615387678, 0.024580297991633415, -0.03467274829745293, -0.07062827050685883, 0.0024099256843328476, -0.03176762908697128, -0.013921919278800488, 0.04999063163995743, -0.006451621185988188, -0.0025749891065061092, -0.012176962569355965, 0.03389930725097656, -0.029296396300196648, 0.005079236812889576, -0.0052914610132575035, 0.018270161002874374, -0.039464302361011505, -0.03980385884642601, -0.09892485290765762, -0.004558107815682888, -0.0006113240960985422, 0.06919457763433456, -0.16072459518909454, 0.04451995715498924, 0.015770629048347473, 0.025297146290540695, 0.06168655306100845, -0.05614042282104492, 0.012082641012966633, 0.030409395694732666, 0.03189968317747116, -0.010120744816958904, 0.03371066227555275, -0.0012757042422890663, -0.02210906334221363, -0.02165631763637066, 0.02024148963391781, 0.06870410591363907, 0.08360697329044342, -0.0006578955799341202, 0.05112249404191971, -0.015761196613311768, -0.05123567953705788, 0.027126990258693695, 0.029862327501177788, 0.02467462047934532, -0.02307114750146866, -0.046821411699056625, -0.03314473107457161, -0.031522393226623535, 0.021297894418239594, -0.05123567953705788, 0.03586120158433914, -0.00992266833782196, 0.026976076886057854, -0.017100568860769272, 0.009762321598827839, 0.03580461069941521, -0.06802498549222946, -0.0027164719067513943, 0.014714223332703114, -0.05176388472318649, 0.03354088217020035, -0.016893060877919197, -0.00939918216317892, -0.022429758682847023, -0.04089799523353577, 0.01282778475433588, -0.020788555964827538, -0.02637241594493389, -0.002848522737622261, -0.029711412265896797, -0.020750828087329865, 0.04734961688518524, -0.045274533331394196, 0.004327019210904837, -0.0076778060756623745, 0.011941158212721348, 0.05764957144856453, 0.003987460397183895, -0.0026645949110388756, -0.004227980971336365, 0.009309575892984867, 0.0034050222020596266, -0.034521833062171936, -0.026730839163064957, 0.027655193582177162, 0.04225623235106468, -0.04436904191970825, 0.022354301065206528, -0.05764957144856453, -0.03693647310137749, 0.017553314566612244, -0.011299768462777138, 0.05825323238968849, -0.02224111370742321, -0.025033043697476387, -0.04463314265012741, -0.010290523990988731, 0.009224685840308666, -0.0036809139419347048, 0.0013393716653808951, -0.05655543878674507, -0.03348429128527641, -0.020222624763846397, -0.052216626703739166, -0.011677056550979614, -0.041011180728673935, 0.02282590977847576, -0.06202610954642296, 0.038747455924749374, 0.0003604866797104478, -0.04848147928714752, -0.07187332212924957, 0.04519907385110855, 0.07938134670257568, -0.019656693562865257, 0.04104891046881676, -0.035351864993572235, 0.011639327742159367, 0.003025376470759511, -0.020316947251558304, -0.0012438705889508128, -0.00013219809625297785, 0.03820038586854935, 0.0025797050911933184, -0.024731213226914406, 0.053197577595710754, -0.001377100357785821, 0.07062827050685883, 0.0377853699028492, 0.007828721776604652, -0.01908132992684841, -0.026674246415495872, 0.06278068572282791, -0.014082266017794609, -0.005593291483819485, 0.005946998484432697, -0.05780048668384552, 0.057159099727869034, 0.007913610897958279, 0.05255618691444397, -0.022146793082356453, 0.036634642630815506, -0.05183934047818184, 0.05995102599263191, -0.08315422385931015, -0.014563308097422123, -0.011365794576704502, 0.016893060877919197, -0.04218077287077904, 0.039162471890449524, 0.04153938591480255, 0.015242425724864006, 0.024618027731776237, -0.020750828087329865, 0.0010204454883933067 ]
714,762
pytorch_optimizer.optimizer.a2grad
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 gamma_k: float = 2.0 * group['lips'] / (group['step'] + 1) alpha_k_1: float = 2.0 / (group['step'] + 3) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['alpha_k'] = 1.0 state['v_k'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) state['avg_grad'] = grad.clone() state['x_k'] = p.clone() if self.variant == 'exp': state['v_kk'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) avg_grad = state['avg_grad'] avg_grad.add_(grad - avg_grad, alpha=group['step'] + 1) delta_k = grad.clone() delta_k.add_(avg_grad, alpha=-1.0) delta_k_sq = delta_k.pow(2).sum() v_k = state['v_k'] if self.variant in ('uni', 'inc'): if self.variant == 'inc': v_k.mul_((group['step'] / (group['step'] + 1)) ** 2) v_k.add_(delta_k_sq) else: v_kk = state['v_kk'] v_kk.mul_(group['rho']).add_(delta_k_sq, alpha=1.0 - group['rho']) torch.max(v_kk, v_k, out=v_k) h_k = v_k.sqrt() if self.variant != 'uni': h_k.mul_(math.sqrt(group['step'] + 1)) coefficient = -1.0 / (gamma_k + group['beta'] * h_k.item()) x_k = state['x_k'] x_k.add_(grad, alpha=coefficient) p.mul_(1.0 - alpha_k_1).add_(x_k, alpha=alpha_k_1) p.add_(grad, alpha=(1.0 - alpha_k_1) * state['alpha_k'] * coefficient) state['alpha_k'] = alpha_k_1 return loss
(self)
[ -0.01329310517758131, -0.04465578868985176, -0.048348844051361084, 0.07340884208679199, -0.001908940845169127, 0.018257999792695045, -0.026096316054463387, -0.02939368411898613, -0.002748592058196664, 0.0056856051087379456, -0.017080368474125862, -0.0056196581572294235, 0.025587579235434532, 0.059729475528001785, -0.02903568372130394, 0.02658621035516262, 0.015252684243023396, 0.03237073868513107, 0.03610147535800934, 0.0013354342663660645, -0.02342073805630207, -0.05196652561426163, -0.01294452603906393, 0.04789663106203079, -0.06560821086168289, -0.010843631811439991, 0.06685178726911545, 0.005784526467323303, -0.0011958848917856812, -0.019077632576227188, -0.04280926287174225, -0.031032947823405266, 0.026058631017804146, 0.01668468490242958, 0.0332186333835125, -0.05321010574698448, 0.010353736579418182, 0.005907000042498112, -0.07318273931741714, -0.028470421209931374, -0.027302211150527, -0.010523315519094467, -0.010165316052734852, -0.0052098422311246395, 0.007753526326268911, 0.019614631310105324, -0.017551422119140625, 0.059654105454683304, 0.008045579306781292, -0.009468157775700092, 0.007306026294827461, -0.04262084141373634, 0.03717547282576561, -0.020368315279483795, -0.0029676316771656275, 0.049479369074106216, 0.0643269494175911, -0.0805688425898552, 0.009920368902385235, -0.023929474875330925, 0.0524941049516201, -0.05023305490612984, 0.03866400197148323, 0.020688632503151894, -0.020481368526816368, -0.03325631469488144, -0.038814738392829895, -0.017815209925174713, 0.02021757885813713, 0.04970547556877136, 0.009986315853893757, 0.015667211264371872, 0.0212915800511837, -0.0100711053237319, -0.03764652833342552, -0.02368452586233616, -0.03676094859838486, -0.04525873810052872, 0.03693052753806114, -0.0495547391474247, -0.0021680197678506374, 0.0009226743713952601, -0.03587536886334419, 0.007282473612576723, -0.005869315937161446, -0.011408895254135132, 0.011700947768986225, -0.03148515895009041, 0.014348262920975685, -0.0060907104052603245, -0.014593211002647877, 0.02377873659133911, 0.008709763176739216, 0.036704421043395996, 0.04748210683465004, 0.05535810440778732, -0.029506737366318703, -0.02728336863219738, -0.04638926312327385, -0.05988021194934845, 0.04785894975066185, 0.019190683960914612, 0.02404252626001835, 0.03661021217703819, 0.03333168476819992, -0.06206589564681053, -0.007899552583694458, -0.015130210667848587, 0.029600948095321655, -0.03502747416496277, 0.0030877499375492334, -0.005897579248994589, -0.02626589499413967, 0.0022163025569170713, -0.03723200038075447, -0.03495210409164429, -0.020443685352802277, -0.008356473408639431, -0.05219263210892677, 0.03306789696216583, 0.02869652584195137, -0.026058631017804146, -0.05660168454051018, 0.025681789964437485, 0.002290493343025446, 0.03401000052690506, 0.07141157984733582, 0.02907336875796318, 0.030938737094402313, -0.04009599983692169, 0.013509789481759071, 0.011889368295669556, -0.0006029473734088242, -0.03127789497375488, 0.02690652757883072, -0.014734526164829731, -0.012162579223513603, 0.01308584213256836, 0.03005315735936165, 0.014263473451137543, 0.002882842207327485, -0.006783158052712679, -0.03434915840625763, 0.014451894909143448, 0.03971915692090988, 0.020104527473449707, 0.05562189593911171, 0.02617168426513672, 0.0005711513222195208, 0.0029558553360402584, 0.023533789440989494, 0.04951705411076546, 0.05599873885512352, -0.005614947527647018, 0.0007843026542104781, 0.010890737175941467, -0.023628000169992447, 0.00137076317332685, -0.02272357977926731, -0.03080684319138527, -0.023138105869293213, -0.0212915800511837, -0.015167894773185253, -0.003916802816092968, 0.01557300053536892, 0.016166526824235916, -0.012313315644860268, 0.028093580156564713, -0.0440528430044651, 0.019916106015443802, 0.0007613388006575406, -0.014282315969467163, 0.05449137091636658, 0.04435431584715843, -0.028828421607613564, 0.12300126254558563, 0.010127631947398186, 0.0010951973963528872, -0.01908705197274685, -0.014489579014480114, -0.00778650026768446, -0.01767389476299286, -0.021140841767191887, -0.03393463045358658, 0.004098157864063978, 0.02023642137646675, 0.03156052529811859, -0.009967474266886711, 0.038814738392829895, -0.005803368519991636, -0.017127474769949913, -0.02264821156859398, 0.045937053859233856, 0.0009615361923351884, -0.009388078935444355, 0.04017136991024017, 0.03357663378119469, 0.021762631833553314, 0.07668736577033997, 0.005558420903980732, -0.028828421607613564, -0.028451578691601753, -0.004524460528045893, 0.009543525986373425, -0.04902715981006622, -0.008893474005162716, -0.004484421107918024, 0.07186379283666611, 0.008931158110499382, 0.02306273765861988, -0.07126083970069885, -0.003780197352170944, 0.02441936917603016, 0.08079494535923004, 0.04043515771627426, -0.08584463596343994, -0.01629842072725296, 0.03463178873062134, 0.04925326257944107, -0.006420447491109371, -0.039869897067546844, -0.06018168479204178, 0.05385073646903038, 0.0012541776522994041, 0.037759579718112946, -0.04571094736456871, 0.036252211779356, -0.046954527497291565, -0.03237073868513107, -0.026322420686483383, 0.01116394717246294, -0.046276211738586426, 0.02441936917603016, 0.0014096250524744391, 0.018220316618680954, 0.021498842164874077, -0.05305936932563782, -0.017570262774825096, 0.013528632000088692, -0.006015342194586992, -0.031748946756124496, -0.05490589514374733, -0.02338305301964283, 0.037703052163124084, -0.02379757910966873, 0.043713685125112534, 0.0666256844997406, 0.03570578992366791, -0.002807473763823509, 0.05535810440778732, -0.03165473788976669, -0.03749578818678856, -0.033124420791864395, 0.036308735609054565, -0.04254547506570816, -0.03180547431111336, 0.07785557955503464, 0.028847264125943184, 0.05211726203560829, -0.04853726550936699, -0.003832013113424182, -0.030919894576072693, -0.047972001135349274, 0.06059621274471283, -0.03645947575569153, -0.0022940263152122498, 0.06206589564681053, -0.0333128422498703, 0.02837621048092842, 0.04849958047270775, 0.058636631816625595, 0.09330610930919647, -0.06707789748907089, -0.032446105033159256, 0.005892868619412184, 0.029487894847989082, -0.0049790265038609505, 0.028093580156564713, -0.002602565800771117, -0.02971399948000908, 0.06526905298233032, -0.048348844051361084, -0.08494020998477936, 0.013877211138606071, -0.0763482078909874, 0.03440568596124649, -0.01489468477666378, -0.04420357942581177, 0.06813305616378784, -0.01207778975367546, 0.017805790528655052, -0.003412776393815875, 0.06353557854890823, 0.004451447632163763, 0.08818105608224869, -0.005120342131704092, -0.05027073621749878, 0.016166526824235916, -0.026378948241472244, 0.013943158090114594, 0.0851663202047348, -0.03299252688884735, 0.008822815492749214, -0.005511316005140543, -0.012237947434186935, -0.003963907714933157, 0.04601242020726204, -0.017438368871808052, 0.01914357952773571, -0.04220631718635559, -0.02441936917603016, 0.01207778975367546, 0.015855630859732628, 0.014103315770626068, -0.02016105316579342, -0.10106905549764633, -0.00380139471963048, -0.05622484162449837, 0.03144747391343117, 0.0843372642993927, -0.02438168413937092, 0.022591684013605118, -0.006133105140179396, 0.04883873835206032, -0.007192973978817463, -0.020387157797813416, 0.06372400373220444, 0.015770841389894485, -0.03448105230927467, -0.023816421627998352, -0.0936075821518898, 0.005077947396785021, 0.05452905222773552, 0.05388842150568962, -0.07363494485616684, -0.015130210667848587, 0.0482734739780426, 0.005713868420571089, 0.01309526339173317, -0.04254547506570816, 0.07657431811094284, 0.003212579060345888, -0.0468037910759449, 0.013462684117257595, 0.009585920721292496, -0.023590316995978355, 0.0516650527715683, -0.010391421616077423, 0.049441684037446976, 0.03904084116220474, -0.004623381420969963, 0.0036789211444556713, 0.005205131601542234, 0.03904084116220474, 0.055848002433776855, 0.02907336875796318, -0.007254210766404867, -0.04571094736456871, 0.00919494777917862, -0.05739305168390274, 0.06134989485144615, 0.033162105828523636, -0.05411452800035477, 0.1033301055431366, 0.09172336757183075, -0.015403421595692635, -0.03393463045358658, -0.026473158970475197, 0.04993157833814621, -0.00882752612233162, 0.012313315644860268, -0.040962737053632736, 0.00515331607311964, 0.04002063348889351, -0.03304905444383621, -0.001897164504043758, -0.025097684934735298, -0.013858368620276451, 0.05807136744260788, 0.019350841641426086, 0.03410420939326286, -0.022252526134252548, -0.03238958120346069, 0.05094905197620392, 0.008643816225230694, -0.029129894450306892, 0.008733316324651241, -0.06820841878652573, 0.04152800142765045, -0.059654105454683304, 0.06997957825660706, 0.020104527473449707, 0.04993157833814621, 0.007480315864086151, -0.029695158824324608, 0.017542000859975815, 0.03685515746474266, 0.002076164586469531, -0.04329915717244148, -0.016901368275284767, -0.02903568372130394, -0.011569052934646606, -0.0014755723532289267, 0.007588658016175032, -0.0036388817243278027, -0.08946231752634048, 0.014734526164829731, 0.04525873810052872, 0.011616158299148083, 0.05362463369965553, -0.018323946744203568, -0.00008964720473159105, -0.06021936982870102, 0.004809447564184666, 0.012586526572704315, -0.040925052016973495, 0.0033609606325626373, -0.005954105406999588, -0.007009263150393963, 0.008535473607480526, 0.03495210409164429, 0.01329310517758131, 0.038381367921829224, 0.03623336926102638, -0.029619790613651276, -0.03336936980485916, -0.028093580156564713, -0.012162579223513603, -0.022855473682284355, 0.01520557887852192, -0.042319368571043015, -0.04190484434366226, -0.0033680263441056013, -0.011578474193811417, -0.035969577729701996, 0.011088578961789608, -0.01563894748687744, 0.04149031639099121, 0.03482021018862724, 0.015120789408683777, -0.010174737311899662, 0.01543168444186449, -0.03581884130835533, 0.00716471066698432, 0.010005158372223377, -0.01207778975367546, 0.04529642313718796, -0.04002063348889351, -0.08908547461032867, 0.016863685101270676, 0.00018547697982285172, 0.008266974240541458, 0.04209326207637787, -0.023194631561636925, 0.03651599958539009, 0.009232631884515285, -0.07747873663902283, -0.036308735609054565, -0.012011841870844364, 0.000804911192972213, 0.033180948346853256, 0.036346420645713806, -0.03514052554965019, 0.01985957846045494, -0.007904263213276863, -0.017551422119140625, 0.06101073697209358, 0.04311073571443558, -0.014385947957634926, -0.027452947571873665, -0.014385947957634926, -0.004717592149972916, -0.0018912763334810734, 0.0017558487597852945, -0.031748946756124496, -0.02440052665770054, -0.035931896418333054, 0.012652473524212837, 0.004898947663605213, -0.06832147389650345, -0.013547473587095737, -0.05004463344812393, 0.03201273828744888, 0.02767905220389366, -0.0012506447965279222, 0.05373768508434296, 0.018587736412882805, 0.020066842436790466, 0.031014105305075645, 0.05991789698600769, -0.040246736258268356, -0.06119915843009949, 0.0382683165371418, 0.038777053356170654, -0.028168948367238045, -0.041980210691690445, 0.04702989384531975, 0.01116394717246294, 0.0805688425898552, -0.01806957833468914, 0.008945289999246597, 0.06455305218696594, -0.044693473726511, -0.0069244736805558205, 0.006227315869182348, -0.023269999772310257, -0.029977789148688316, 0.016430316492915154, -0.04816042259335518, 0.01842757873237133, 0.009835579432547092, -0.013189474120736122, 0.020047999918460846, 0.00504497392103076, -0.0019230723846703768, -0.04424126446247101, 0.02903568372130394, 0.06862294673919678, 0.02728336863219738, -0.05170273780822754, 0.03080684319138527, -0.00503555266186595, 0.0036859868559986353, 0.011126263067126274, -0.01588389463722706, 0.07111010700464249, -0.009618895128369331, -0.00797492079436779, -0.0035517369396984577, 0.007956079207360744, -0.04424126446247101, 0.015252684243023396, 0.028847264125943184, 0.08923621475696564, -0.03286063298583031, -0.06391242146492004, -0.04152800142765045, -0.05000694841146469, -0.10106905549764633, -0.04488189518451691, 0.011738631874322891, -0.008394158445298672, 0.028941474854946136, -0.01488526351749897, -0.016562210395932198, 0.03713779151439667, 0.041339579969644547, 0.012793789617717266, -0.04476884379982948, -0.008365894667804241, -0.03677979111671448, 0.032427262514829636, -0.01132410578429699, -0.0002481858537066728, 0.043035369366407394, 0.03148515895009041, -0.020029157400131226, 0.005874026566743851, 0.0024918685667216778, -0.015507052652537823, -0.038419052958488464, -0.055395789444446564, 0.020688632503151894, -0.037401579320430756, -0.004086381755769253, 0.0006494638510048389, 0.017786948010325432, -0.03862631693482399, -0.01952042058110237, 0.02061326429247856, -0.020292947068810463, 0.002602565800771117, -0.003824947401881218, 0.005313473753631115, -0.036647893488407135, -0.008380026556551456, 0.04152800142765045, -0.016948474571108818, -0.028432738035917282, -0.03368968516588211, 0.035517368465662, -0.040209054946899414, 0.024664316326379776, 0.011069737374782562, -0.002295203972607851, 0.0708463191986084, -0.08335747569799423, 0.03696821257472038, -0.009454026818275452, 0.03676094859838486, -0.02408021129667759, 0.006354500073939562, -0.08614610880613327, -0.07114779204130173, -0.0008113881922326982, -0.010137053206562996, -0.03144747391343117, 0.0049837371334433556, 0.034895580261945724, 0.014791052788496017, -0.0552450530230999, -0.016420895233750343, 0.049102526158094406, 0.019595790654420853, -0.036252211779356, 0.01418810524046421, -0.01520557887852192, 0.0531347393989563, 0.018691368401050568, -0.038061052560806274, -0.035611581057310104, -0.03870168328285217, -0.0038908948190510273, -0.013217736966907978, -0.05603642016649246, -0.006971579045057297, 0.003963907714933157, -0.018361631780862808, 0.0552450530230999, -0.006123684346675873, -0.052983999252319336, 0.0072730528190732, -0.027773262932896614, -0.005826921202242374, 0.03180547431111336, -0.02585136890411377, 0.059691790491342545, -0.06142526492476463, -0.018559474498033524, -0.0301473680883646, -0.04804736748337746, 0.03442452847957611, 0.025286106392741203, -0.027189157903194427, 0.06353557854890823, -0.0006159013137221336, 0.042319368571043015, 0.024230947718024254, -0.027905158698558807, -0.06557052582502365, -0.023100420832633972, 0.04277157783508301, -0.0014284671051427722, 0.00007632524648215622, -0.015375157818198204, -0.0014673289842903614, -0.011050894856452942, 0.04789663106203079, 0.05784526467323303, 0.0016204210696741939, -0.009920368902385235, 0.04895178973674774, -0.03080684319138527, 0.004484421107918024, 0.015403421595692635, 0.008215158246457577, 0.05268252640962601, 0.020707473158836365, 0.027415264397859573, -0.039530739188194275, -0.02481505274772644, -0.003094815881922841, -0.045183368027210236, -0.00002550308454374317, -0.026096316054463387, -0.009552947245538235, 0.0020361249335110188, -0.04883873835206032, -0.03623336926102638, -0.019350841641426086, -0.0830560028553009, -0.03755231574177742, -0.06372400373220444, -0.00849778950214386, 0.003506986889988184, -0.034876737743616104, 0.056149475276470184, -0.01942620985209942, -0.028470421209931374, 0.0022139474749565125, 0.02402368374168873, 0.04424126446247101, -0.021517684683203697, 0.06033242121338844, 0.0325779989361763, -0.008370605297386646, -0.01563894748687744, 0.007296605501323938, -0.0002521603601053357, 0.0029440789949148893, -0.03651599958539009, -0.01840873621404171, 0.005530158057808876, 0.03651599958539009, -0.0027391710318624973, -0.07291895151138306, -0.03623336926102638, -0.01557300053536892, 0.011060316115617752, -0.046992212533950806, 0.02227136865258217, -0.04431663081049919, -0.0219322107732296, -0.012106052599847317, 0.008290526457130909, 0.021159684285521507, 0.0324837900698185, -0.04081200063228607, 0.02553105354309082, 0.023251159116625786, 0.00380139471963048, 0.01668468490242958, -0.041264209896326065, -0.0015968683874234557, -0.013114104978740215, 0.023816421627998352, -0.04789663106203079, -0.03399115800857544, -0.05807136744260788, 0.053662315011024475, -0.013368474319577217, -0.03613915666937828, 0.028187789022922516, 0.013048158027231693, -0.05302168428897858, 0.003726026276126504, 0.07269284129142761, -0.009529395028948784, 0.0009880329016596079, 0.010570420883595943, 0.0118611054494977, 0.017852894961833954, -0.0173441581428051, -0.008398868143558502, 0.0037660659290850163, -0.016835421323776245, 0.04846189543604851, 0.02449473738670349, -0.022459790110588074, 0.01345326378941536, 0.0060907104052603245, 0.03713779151439667, -0.004140552598983049, -0.06609810888767242, 0.0396437905728817, 0.04152800142765045, -0.01239810511469841, 0.0008531940984539688, 0.030674947425723076, -0.07280589640140533, 0.06915052980184555, 0.04488189518451691, 0.02342073805630207, 0.013707632198929787, 0.06319642066955566, -0.04770820960402489, 0.0026049211155623198, -0.05916421115398407, -0.04966779053211212, -0.06530673801898956, -0.03960610553622246, -0.03862631693482399, 0.05890042334794998, 0.06330947577953339, 0.010184157639741898, 0.015177316032350063, 0.07913684099912643, 0.0071741314604878426 ]
714,763
pytorch_optimizer.base.optimizer
set_hessian
Set hessian to state from external source. Generally useful when using functorch as a base. Example: ------- Here's an example:: # Hutchinson's Estimator using HVP noise = tree_map(lambda v: torch.randn_like(v), params) loss_, hvp_est = jvp(grad(run_model_fn), (params,), (noise,)) hessian_diag_est = tree_map(lambda a, b: a * b, hvp_est, noise) optimizer.set_hessian(hessian_diag_est) # OR optimizer.step(hessian=hessian_diag_est) :param param_groups: PARAMETERS. parameter groups. :param state: STATE. optimizer state. :param hessian: List[torch.Tensor]. sequence of hessian to set.
@staticmethod def apply_weight_decay( p: torch.Tensor, grad: Optional[torch.Tensor], lr: float, weight_decay: float, weight_decouple: bool, fixed_decay: bool, ratio: Optional[float] = None, ): r"""Apply weight decay. :param p: torch.Tensor. parameter. :param grad: torch.Tensor. gradient. :param lr: float. learning rate. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param ratio: Optional[float]. scale weight decay. """ if weight_decouple: p.mul_(1.0 - weight_decay * (1.0 if fixed_decay else lr) * (ratio if ratio is not None else 1.0)) elif weight_decay > 0.0 and grad is not None: grad.add_(p, alpha=weight_decay)
(param_groups: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], state: Dict, hessian: List[torch.Tensor])
[ -0.00025881416513584554, -0.01960071176290512, 0.0007143326220102608, 0.020645374432206154, -0.0023792642168700695, 0.003983884584158659, -0.03813905268907547, -0.01542205922305584, -0.006298963911831379, 0.03661632537841797, 0.00045206022332422435, 0.013306173495948315, 0.0780487209558487, 0.039874255657196045, -0.036757972091436386, 0.01080075278878212, 0.0031649747397750616, 0.03633302450180054, -0.0238678939640522, -0.017440561205148697, 0.004302595276385546, -0.08371468633413315, 0.027603892609477043, 0.07819037139415741, -0.05262268707156181, -0.009189493022859097, -0.020273545756936073, 0.009481645189225674, -0.047487903386354446, 0.029852572828531265, 0.019724654033780098, -0.06841657310724258, 0.012562515214085579, 0.06898316740989685, 0.015457470901310444, 0.04132616147398949, -0.01613030582666397, -0.004647864960134029, -0.033677101135253906, -0.042530179023742676, 0.05241021141409874, 0.016484428197145462, 0.027887189760804176, -0.016617223620414734, -0.015634533017873764, 0.01929970644414425, -0.015492883510887623, 0.02778095379471779, -0.01039351150393486, 0.0017329896800220013, 0.017599916085600853, -0.009083256125450134, 0.02459384687244892, -0.019034113734960556, -0.027125826105475426, 0.032331433147192, 0.03353545442223549, -0.011898534372448921, 0.015448618680238724, -0.05570355802774429, 0.08052758127450943, -0.0985170304775238, 0.00283741089515388, -0.013022875413298607, -0.0002957480901386589, -0.024912556633353233, -0.06512323021888733, -0.031074298545718193, 0.05403917655348778, -0.02813507616519928, 0.051029130816459656, -0.010552867315709591, -0.009295729920268059, 0.011314231902360916, -0.07408254593610764, -0.030560819432139397, 0.02151297591626644, -0.07107249647378922, -0.010915842838585377, -0.002489927690476179, 0.02351377159357071, -0.024009542539715767, 0.0018170939292758703, -0.006692925933748484, 0.06048421934247017, -0.03587266430258751, -0.042919714003801346, -0.03633302450180054, -0.014076391234993935, -0.016732314601540565, -0.00449072290211916, -0.0300473403185606, 0.03592578321695328, -0.016068333759903908, 0.09653394669294357, 0.011110611259937286, -0.006095343269407749, -0.05191443860530853, -0.014076391234993935, 0.05655345320701599, -0.018609166145324707, 0.03735998272895813, -0.011323085054755211, 0.008861929178237915, 0.06954976916313171, -0.03567789867520332, -0.06136952340602875, -0.010747634805738926, -0.012757282704114914, -0.03077329322695732, -0.01482004951685667, -0.06423792243003845, -0.02076931670308113, -0.03651008754968643, -0.009835767559707165, 0.05729711055755615, 0.003932978957891464, 0.017077583819627762, 0.025302091613411903, 0.03651008754968643, 0.050320886075496674, 0.012845814228057861, -0.022522225975990295, -0.037572454661130905, 0.022593051195144653, -0.0039728181436657906, 0.018016010522842407, 0.00027942523593083024, 0.03920142352581024, 0.03697044774889946, -0.044831980019807816, 0.04699213057756424, -0.03420828655362129, -0.011668354272842407, 0.04419455677270889, -0.0032756382133811712, -0.04044085368514061, 0.058784425258636475, 0.00043988722609356046, 0.00637421477586031, 0.03303968161344528, 0.013385851867496967, 0.05662427470088005, 0.047594137489795685, 0.028613142669200897, -0.003649680642411113, -0.030543113127350807, 0.029905691742897034, 0.00501084141433239, 0.06257354468107224, 0.019441355019807816, 0.04557563737034798, 0.040617913007736206, 0.028861029073596, 0.04971887543797493, 0.02884332276880741, -0.012739577330648899, 0.017564503476023674, -0.052587274461984634, -0.024540727958083153, 0.015280409716069698, -0.005882869008928537, -0.020273545756936073, -0.0015149826649576426, 0.011650648899376392, -0.02624051831662655, 0.018715403974056244, 0.04465491697192192, 0.04702754318714142, -0.002636003540828824, 0.04433620721101761, -0.10375805199146271, 0.04543398693203926, 0.022203516215085983, -0.004344647284597158, 0.07641975581645966, -0.020149601623415947, -0.04242394119501114, -0.007024915888905525, -0.0099862702190876, 0.06328178942203522, -0.008671588264405727, -0.003452699864283204, -0.05269351229071617, 0.019441355019807816, 0.02158379927277565, -0.03969719260931015, 0.03543001040816307, -0.025532271713018417, 0.0453631617128849, 0.017024464905261993, -0.04635470733046532, 0.02314194105565548, -0.030277520418167114, -0.015882419422268867, -0.021831685677170753, 0.03422599285840988, -0.018255043774843216, 0.007932356558740139, 0.05814700573682785, 0.0516311414539814, -0.031056592240929604, -0.0007392318802885711, 0.04111368581652641, 0.027993427589535713, -0.05754499509930611, -0.02234516479074955, 0.02307111769914627, -0.05088748410344124, -0.04054709151387215, 0.015855859965085983, 0.025178149342536926, 0.05287057161331177, 0.03268555924296379, 0.016165716573596, -0.017511384561657906, -0.050285473465919495, -0.0023792642168700695, 0.018980994820594788, -0.032136667519807816, -0.041786521673202515, -0.018662285059690475, 0.012208391912281513, 0.052587274461984634, 0.09702971577644348, -0.013562913052737713, 0.03197731077671051, -0.015121054835617542, 0.0038975668139755726, 0.022947173565626144, -0.010526307858526707, -0.01731661707162857, 0.010331540368497372, -0.009517056867480278, 0.09136375039815903, -0.06112163886427879, -0.03350004181265831, 0.02544374205172062, -0.005750073119997978, 0.016289660707116127, 0.03704127296805382, 0.01653754711151123, -0.014014420099556446, 0.030950354412198067, 0.00848124735057354, 0.014758078381419182, 0.0592447854578495, -0.005174623336642981, -0.01311140600591898, 0.01929970644414425, -0.036757972091436386, -0.04281347617506981, -0.005254300776869059, 0.04511527717113495, -0.018308162689208984, 0.03810364007949829, 0.013970154337584972, 0.006002385634928942, -0.051383256912231445, -0.019512180238962173, -0.017015613615512848, 0.008357304148375988, -0.015342380851507187, -0.004886898212134838, -0.005710234399884939, 0.009773796424269676, -0.002775439526885748, -0.015085642226040363, 0.00501526752486825, 0.028984971344470978, 0.04075956344604492, -0.004917883779853582, 0.032579321414232254, 0.011013226583600044, -0.022061865776777267, -0.013784239999949932, 0.03535918518900871, 0.036828797310590744, 0.016617223620414734, 0.006967370864003897, 0.011898534372448921, -0.047912850975990295, -0.029038090258836746, 0.024824026972055435, -0.03697044774889946, 0.03365939483046532, -0.009127521887421608, 0.06682302057743073, 0.058678191155195236, 0.03884729743003845, 0.026470698416233063, 0.016263101249933243, 0.09037220478057861, 0.03279179334640503, 0.017077583819627762, 0.054889071732759476, 0.06437957286834717, -0.011101758107542992, 0.0668584331870079, -0.02121197059750557, 0.05517237260937691, 0.01441280823200941, 0.03803281486034393, -0.0032756382133811712, -0.013890476897358894, -0.022185809910297394, 0.006732764653861523, 0.013509794138371944, -0.00893718097358942, 0.04709836468100548, -0.017918625846505165, -0.06806245446205139, -0.03396040201187134, 0.05736793577671051, 0.013961301185190678, -0.11261112987995148, 0.004054708871990442, 0.009224905632436275, -0.0009179533808492124, 0.022433696314692497, 0.009100962430238724, 0.013784239999949932, 0.0038599413819611073, 0.04968346282839775, -0.08583942800760269, -0.07606562972068787, 0.04557563737034798, 0.048266973346471786, -0.0008017567452043295, 0.0011542198481038213, -0.036368437111377716, 0.03704127296805382, 0.03118053451180458, -0.017883215099573135, -0.09681724011898041, 0.03006504662334919, 0.04387584701180458, 0.019866302609443665, -0.02730288729071617, -0.02356688864529133, 0.03153465688228607, 0.023761656135320663, -0.03220749273896217, 0.03898894786834717, -0.004123320337384939, 0.009463938884437084, -0.010535161010921001, 0.027940308675169945, 0.042140644043684006, -0.03980343043804169, 0.03477488458156586, -0.06427333503961563, -0.02307111769914627, 0.06441498547792435, 0.021070322021842003, -0.0177769772708416, -0.022663874551653862, -0.005958120338618755, 0.015696505084633827, -0.052941396832466125, -0.05003758892416954, -0.0177769772708416, -0.0081669632345438, 0.06158199906349182, 0.05364964157342911, 0.036368437111377716, -0.0177769772708416, 0.012279217131435871, -0.029091209173202515, 0.006458319257944822, 0.03342921659350395, -0.08626437932252884, -0.013509794138371944, 0.005342831369489431, -0.02848920039832592, -0.020185014232993126, -0.023726245388388634, 0.017529090866446495, 0.08534365892410278, 0.030737880617380142, -0.026435285806655884, -0.012872372753918171, 0.015714211389422417, 0.029197445139288902, 0.028347549960017204, -0.026807114481925964, -0.000020541903722914867, -0.04419455677270889, 0.013819652609527111, -0.03581954538822174, 0.017750417813658714, 0.022415990009903908, 0.0027090413495898247, 0.000724845624063164, -0.0910804495215416, 0.056765925139188766, 0.0013556273188441992, 0.037572454661130905, -0.08045675605535507, 0.014758078381419182, -0.005657115951180458, -0.0633172020316124, -0.04345089942216873, -0.01057057362049818, -0.041396986693143845, 0.04189275577664375, -0.03472176566720009, 0.1140984445810318, -0.01191624067723751, 0.07181615382432938, 0.0011232340475544333, -0.001873532310128212, -0.03920142352581024, 0.01682969741523266, -0.0016522053629159927, -0.022168103605508804, 0.0014607575722038746, -0.031446125358343124, -0.027426831424236298, 0.022929467260837555, 0.0717807412147522, -0.06611477583646774, 0.03884729743003845, 0.03697044774889946, 0.04051167890429497, -0.04940016567707062, 0.009649853222072124, 0.016289660707116127, 0.003975031431764364, -0.0032822780776768923, -0.021052615717053413, -0.0384223498404026, -0.00646274583414197, -0.040653325617313385, 0.02808195911347866, 0.030135871842503548, 0.03654550015926361, 0.056411802768707275, -0.0017075370997190475, -0.04114909842610359, 0.02315964736044407, -0.03686420992016792, -0.0011829923605546355, -0.05471201241016388, -0.030507700517773628, -0.03959095850586891, 0.0331813283264637, -0.03617367148399353, -0.08088170737028122, -0.024345960468053818, 0.012872372753918171, -0.005851883441209793, 0.05290598422288895, 0.04040544107556343, -0.019830891862511635, 0.007250669412314892, -0.009676412679255009, -0.059067726135253906, 0.04975428804755211, 0.0119339469820261, 0.04132616147398949, 0.004388912580907345, 0.01485546212643385, -0.007737588603049517, -0.0399450808763504, 0.03496965020895004, 0.048727333545684814, -0.0350404754281044, 0.010110213421285152, 0.011960506439208984, 0.042955126613378525, -0.012898932211101055, 0.021335914731025696, -0.05322469398379326, 0.017343176528811455, 0.03160548210144043, -0.027657009661197662, -0.00519675575196743, 0.05290598422288895, -0.015067935921251774, -0.008954886347055435, -0.039484720677137375, -0.0005151383811607957, 0.05056877061724663, -0.02811736986041069, -0.05088748410344124, -0.04302595183253288, 0.0211588516831398, 0.00789694394916296, 0.0592447854578495, -0.014864315278828144, -0.020928671583533287, 0.07691552489995956, 0.031322184950113297, -0.055986855179071426, -0.02618739940226078, -0.004450884182006121, -0.007582659833133221, 0.0357133112847805, 0.018255043774843216, 0.005905001889914274, -0.013173378072679043, -0.04313218966126442, 0.005453494843095541, 0.025585390627384186, -0.003919699694961309, -0.0729493498802185, 0.04284888878464699, -0.03535918518900871, 0.03206584230065346, -0.011756885796785355, 0.0641670972108841, -0.04054709151387215, 0.028188195079565048, -0.03498735651373863, -0.0424947664141655, -0.0028573304880410433, 0.03959095850586891, 0.02429284155368805, -0.0722765177488327, 0.04855027049779892, 0.07606562972068787, -0.030525406822562218, -0.059103138744831085, 0.028683967888355255, -0.005068386439234018, 0.003755917539820075, -0.05499530956149101, 0.037501633167266846, 0.005466774571686983, -0.006276831030845642, 0.042919714003801346, 0.0008427022257819772, 0.012987462803721428, -0.0031030033715069294, -0.021459857001900673, -0.038705650717020035, -0.04578810930252075, -0.07493244111537933, -0.043769609183073044, -0.0034106476232409477, -0.0002323932567378506, 0.018184218555688858, -0.028737084940075874, 0.02390330657362938, 0.09214282035827637, -0.039909668266773224, -0.024753201752901077, -0.049081455916166306, 0.0016588452272117138, -0.060307156294584274, -0.0004077948397025466, -0.027851779013872147, 0.08059840649366379, 0.02663005329668522, 0.010101360268890858, 0.0005480607505887747, -0.04511527717113495, 0.01852063648402691, 0.006843428127467632, -0.06342343986034393, -0.10064177215099335, 0.009100962430238724, 0.024558434262871742, 0.017068730667233467, -0.031339891254901886, 0.027869483456015587, 0.010074800811707973, -0.019760066643357277, -0.006090916693210602, -0.011606383137404919, 0.022911760956048965, 0.04461950436234474, -0.008822090923786163, -0.041007447987794876, -0.007020489778369665, 0.02540832944214344, -0.06604395061731339, 0.023726245388388634, -0.03396040201187134, -0.03364168852567673, -0.01463413517922163, -0.03824529051780701, -0.017006760463118553, 0.008255493827164173, -0.000012121106919948943, -0.012642192654311657, 0.03394269570708275, -0.029392212629318237, 0.00893718097358942, -0.0438404344022274, -0.026028044521808624, 0.01004824135452509, -0.058005355298519135, -0.0016223262064158916, -0.03188877925276756, -0.05340175703167915, 0.030560819432139397, 0.06278602033853531, 0.039059773087501526, -0.024806320667266846, -0.04901063069701195, 0.029958810657262802, -0.012845814228057861, -0.029905691742897034, 0.02459384687244892, -0.017290057614445686, 0.03849317505955696, 0.020238133147358894, -0.07220569252967834, -0.04323842376470566, 0.012332335114479065, -0.00769332330673933, -0.029905691742897034, -0.010234156623482704, -0.02737371250987053, -0.05279974639415741, 0.019742360338568687, 0.05570355802774429, 0.02234516479074955, -0.05793453007936478, -0.00635208236053586, 0.012810401618480682, 0.04129074886441231, -0.036403849720954895, -0.004962149076163769, -0.0006412946968339384, -0.07953603565692902, -0.013943594880402088, -0.046815067529678345, -0.018679991364479065, 0.012350041419267654, 0.03280949965119362, -0.03227831795811653, -0.015802741050720215, 0.03902436047792435, 0.030224403366446495, -0.003709438955411315, 0.024062661454081535, -0.06034256890416145, 0.031339891254901886, 0.036757972091436386, -0.024009542539715767, -0.0785444900393486, -0.00614846171811223, -0.00965870637446642, 0.016449015587568283, -0.033287566155195236, -0.022150397300720215, -0.012279217131435871, -0.04865650832653046, -0.01118143554776907, -0.040122140198946, 0.027249768376350403, 0.05966973304748535, 0.034544702619314194, 0.04546939954161644, 0.014828902669250965, -0.00683014839887619, -0.04189275577664375, 0.011075198650360107, -0.008534365333616734, -0.0026625627651810646, 0.03704127296805382, -0.008968166075646877, -0.006192727014422417, -0.0016986840637400746, -0.020627668127417564, 0.004019296728074551, -0.0733034685254097, -0.036439262330532074, 0.003337609814479947, -0.055278610438108444, 0.010747634805738926, 0.02346065267920494, -0.009534763172268867, -0.032543908804655075, 0.010703369043767452, -0.02997651696205139, -0.05432247743010521, 0.04851485788822174, -0.030206697061657906, 0.025160443037748337, 0.0006042224704287946, 0.04405290633440018, 0.02423972263932228, -0.016918228939175606, 0.02239828370511532, -0.013199936598539352, -0.008773398585617542, -0.04667341709136963, -0.045646462589502335, -0.008467967621982098, -0.013191083446145058, 0.04196358099579811, -0.09448003023862839, -0.06349426507949829, 0.0006601075292564929, 0.005834177136421204, -0.06522946804761887, -0.0016466722590848804, 0.0004918990307487547, -0.01731661707162857, -0.029887985438108444, 0.018786227330565453, 0.011686060577630997, 0.007927929982542992, -0.017830096185207367, 0.019441355019807816, -0.006573409307748079, -0.037537042051553726, 0.040972039103507996, 0.012792695313692093, 0.00521446205675602, 0.006958518177270889, 0.014492485672235489, 0.009490497410297394, -0.03852858766913414, -0.034526996314525604, 0.03941389545798302, -0.014492485672235489, 0.00569252809509635, 0.03305738791823387, 0.01272187102586031, -0.037537042051553726, -0.07493244111537933, 0.026098869740962982, 0.012774989008903503, -0.03396040201187134, -0.01119914185255766, 0.022575344890356064, -0.015599120408296585, 0.01958300545811653, -0.004003803711384535, 0.045292340219020844, 0.0663626566529274, 0.01559026725590229, -0.023637713864445686, 0.03040146455168724, 0.011889681220054626, -0.008609617128968239, 0.07259522378444672, -0.04805449768900871, -0.025213561952114105, 0.01621883548796177, 0.021725449711084366, -0.012288070283830166, -0.02962239272892475, 0.04844403266906738, -0.05591602995991707, 0.04274265095591545, 0.037961989641189575, -0.007941209711134434, -0.0021535109262913465, 0.04476115480065346, -0.0622902438044548, 0.04922310635447502, -0.051772791892290115, -0.08470623195171356, -0.041786521673202515, 0.021849391981959343, 0.006068783812224865, 0.04893980547785759, 0.019122645258903503, 0.012872372753918171, 0.005449068266898394, 0.04086580127477646, 0.025532271713018417 ]
714,766
pytorch_optimizer.base.optimizer
validate_betas
null
def validate_betas(self, betas: BETAS): self.validate_range(betas[0], 'beta1', 0.0, 1.0, range_type='[]') self.validate_range(betas[1], 'beta2', 0.0, 1.0, range_type='[]') if len(betas) < 3: return if betas[2] is not None: self.validate_range(betas[2], 'beta3', 0.0, 1.0, range_type='[]')
(self, betas: Union[Tuple[float, float], Tuple[float, float, float]])
[ 0.03217233717441559, -0.024072395637631416, -0.08600282669067383, -0.04398110508918762, -0.07074765115976334, -0.01299839373677969, -0.03684335947036743, -0.05531752482056618, -0.0018325460841879249, 0.001407211646437645, 0.001970315119251609, 0.019838731735944748, -0.0329245999455452, -0.07781541347503662, -0.05783672630786896, -0.018071791157126427, 0.028533484786748886, 0.04009733349084854, 0.04324633628129959, 0.026784038171172142, -0.01856163516640663, 0.015963707119226456, -0.06140559911727905, 0.02697647735476494, 0.024527251720428467, 0.06917314976453781, 0.06353992968797684, 0.002947818720713258, 0.003011236200109124, 0.04817977920174599, 0.04072713479399681, -0.03504142910242081, 0.026819027960300446, 0.01742449589073658, 0.0031839939765632153, -0.017949329689145088, 0.04006234183907509, -0.002381435129791498, -0.0392925851047039, 0.057101961225271225, 0.061615534126758575, -0.03507641702890396, 0.04191675782203674, -0.007588227745145559, -0.03673839196562767, -0.06878826767206192, 0.027396345511078835, 0.06298010051250458, -0.08208406716585159, -0.0012541350442916155, 0.05472271144390106, -0.03414921090006828, 0.0667589083313942, -0.026539115235209465, -0.018264230340719223, 0.07291696220636368, 0.014389203861355782, 0.09013152867555618, 0.057276904582977295, 0.014992763288319111, 0.00411557499319315, 0.006166801787912846, -0.005471396259963512, -0.07809532433748245, 0.0035688725765794516, -0.020521016791462898, -0.009814399294555187, -0.030177965760231018, -0.025174546986818314, 0.03771808370947838, -0.01661974936723709, 0.035163890570402145, -0.04936940222978592, 0.03171747922897339, -0.03925759717822075, -0.024317316710948944, 0.017503220587968826, 0.043456271290779114, -0.047619953751564026, -0.001641200273297727, 0.049054503440856934, -0.01621737703680992, 0.004745375830680132, -0.048599645495414734, 0.045905496925115585, -0.03537382557988167, -0.0345165953040123, 0.015666300430893898, 0.05608728155493736, -0.023914944380521774, -0.05220350623130798, -0.03460406884551048, 0.03761311620473862, -0.0361085906624794, 0.016208630055189133, 0.046990156173706055, 0.03365936502814293, -0.055912334471940994, -0.07739555090665817, -0.01696089096367359, -0.01494027953594923, -0.03649346902966499, -0.033274486660957336, 0.010094311088323593, -0.015517598018050194, -0.0018719086656346917, -0.038137950003147125, -0.06623407453298569, -0.004719133954495192, -0.00431238766759634, -0.003671652637422085, -0.0023945560678839684, 0.04754997789859772, 0.005711945239454508, -0.016182387247681618, -0.007745678070932627, -0.0016772826202213764, 0.015333905816078186, -0.040307264775037766, 0.00902714766561985, 0.04768993332982063, 0.038767751306295395, 0.02291776053607464, 0.04457591846585274, 0.08411342650651932, 0.029460692778229713, -0.008992158807814121, 0.03526885807514191, -0.03416670486330986, -0.003310828935354948, 0.02519204095005989, 0.005838780198246241, -0.031227635219693184, -0.009263323619961739, 0.0008288006647489965, -0.021518202498555183, -0.010120552964508533, -0.02239292487502098, 0.0026154236402362585, -0.03554876893758774, 0.014292984269559383, 0.025174546986818314, 0.003225543536245823, -0.09628958255052567, -0.052308473736047745, 0.02034607157111168, 0.006131812930107117, -0.055912334471940994, -0.008528555743396282, 0.004246783442795277, 0.007662578951567411, 0.0035120155662298203, -0.06483452022075653, -0.04520571976900101, -0.025734370574355125, -0.05878143012523651, 0.008825961500406265, -0.06322502344846725, 0.02330263890326023, -0.015981201082468033, -0.02221798151731491, 0.024719690904021263, 0.01873658038675785, 0.021238289773464203, 0.0021212047431617975, 0.056367192417383194, -0.035898659378290176, 0.059166308492422104, -0.005733813624829054, 0.00321460934355855, 0.021063346415758133, 0.08369355648756027, -0.043841149657964706, 0.04443596303462982, 0.009849388152360916, -0.002237105742096901, 0.0008517621317878366, -0.04765494540333748, 0.03161251172423363, -0.004264277871698141, -0.031052689999341965, -0.02993304282426834, 0.00481535354629159, 0.008637895807623863, 0.003708828240633011, -0.029320737347006798, -0.02667907066643238, 0.021395741030573845, -0.05797668173909187, -0.004371431656181812, -0.018299218267202377, 0.027326365932822227, 0.02485964633524418, 0.013155844062566757, -0.02102835662662983, 0.008121808990836143, 0.013680677860975266, -0.01176503300666809, -0.009691937826573849, -0.07991475611925125, 0.03525136411190033, -0.05731189250946045, 0.009980596601963043, 0.004657903220504522, 0.022130507975816727, -0.00722959078848362, -0.010068069212138653, -0.04342128336429596, 0.03673839196562767, -0.057101961225271225, -0.04880958050489426, 0.015403883531689644, -0.004706013016402721, 0.009726926684379578, -0.005348935257643461, -0.007776293437927961, 0.08908185362815857, -0.05335814133286476, 0.0018959635635837913, 0.050594016909599304, 0.0894317477941513, -0.04856465756893158, 0.046080440282821655, 0.002866906812414527, 0.03376433253288269, 0.0618254691362381, 0.0469551645219326, 0.059796109795570374, -0.014844059944152832, 0.04415604844689369, -0.04415604844689369, 0.021413234993815422, -0.018474163487553596, -0.017407000064849854, -0.057906705886125565, 0.045100752264261246, -0.002554193139076233, -0.05181862786412239, 0.015403883531689644, -0.007566359359771013, 0.04142691195011139, 0.0033676859457045794, -0.03267967700958252, 0.01759943924844265, 0.023809976875782013, -0.009639455005526543, 0.0023092704359441996, -0.021430728957057, -0.05108386278152466, -0.050069183111190796, -0.06927811354398727, 0.05003419145941734, 0.02415986731648445, 0.035793691873550415, -0.04541565105319023, 0.005720692686736584, -0.009429520927369595, -0.021955562755465508, 0.0740366131067276, -0.023670021444559097, 0.0340617373585701, -0.039677463471889496, 0.0010791902896016836, 0.0527983196079731, -0.008419214747846127, 0.056367192417383194, 0.05454776808619499, 0.014135533943772316, 0.05405792221426964, 0.033396948128938675, 0.06815847009420395, 0.0003154472215101123, 0.005921879317611456, 0.014721599407494068, 0.05265836417675018, 0.030702799558639526, 0.062140367925167084, -0.006744119338691235, 0.020748445764183998, 0.033169519156217575, 0.024754678830504417, 0.0020468533039093018, 0.02221798151731491, 0.02027609385550022, 0.07417656481266022, -0.014905290678143501, -0.007325810380280018, -0.04737503454089165, -0.009184597991406918, 0.0002740345080383122, 0.012447317130863667, -0.055107589811086655, 0.055387500673532486, -0.015552586875855923, 0.007951238192617893, -0.005239594727754593, 0.0803346186876297, -0.023949934169650078, 0.03229479864239693, -0.01457289606332779, 0.00208512251265347, -0.03051036037504673, 0.05514257773756981, -0.019173942506313324, -0.03680837154388428, -0.04583552107214928, 0.03521637246012688, -0.014205511659383774, 0.03726322576403618, -0.021343257278203964, 0.012351097539067268, 0.023984922096133232, -0.0060705821961164474, -0.00911462027579546, 0.06560427695512772, 0.010776595212519169, 0.018474163487553596, -0.06472954899072647, -0.04100704565644264, 0.00046305684372782707, -0.026311688125133514, -0.01800181344151497, 0.060705821961164474, -0.02491213008761406, -0.052238497883081436, -0.019838731735944748, 0.0008162265294231474, 0.00042314757592976093, -0.0821540430188179, 0.004209607373923063, -0.04985924810171127, -0.015535091981291771, 0.052588384598493576, 0.03694832697510719, -0.0019407931249588728, -0.0021780619863420725, -0.022655341774225235, -0.0033261366188526154, 0.030317921191453934, 0.0031293239444494247, 0.04964931309223175, -0.0478648766875267, 0.0505240373313427, -0.00168493646197021, 0.06966298818588257, -0.003907828126102686, 0.036598436534404755, 0.03131510689854622, -0.022987738251686096, 0.09230083972215652, -0.036423493176698685, 0.04692017659544945, 0.009333301335573196, 0.027098938822746277, -0.03161251172423363, -0.009648201987147331, 0.027973663061857224, -0.022725321352481842, 0.004248970188200474, 0.025751864537596703, 0.012272372841835022, -0.004552936647087336, -0.025069579482078552, 0.014634126797318459, 0.022008046507835388, -0.015631312504410744, 0.027868695557117462, -0.041042033582925797, 0.040202297270298004, -0.026784038171172142, 0.0392925851047039, 0.02095837891101837, 0.022497892379760742, -0.039957378059625626, 0.006503570359200239, 0.022812793031334877, 0.036703404039144516, 0.0059306262992322445, 0.030072998255491257, -0.023914944380521774, -0.01691715605556965, -0.028026144951581955, 0.025751864537596703, 0.022585364058613777, -0.0024579735472798347, -0.010995276272296906, -0.021325763314962387, -0.034131716936826706, -0.026416653767228127, 0.02309270389378071, 0.055912334471940994, -0.006337373051792383, 0.017809374257922173, 0.006114318501204252, -0.055282533168792725, 0.04359622672200203, 0.026119248941540718, -0.021920574828982353, 0.028096124529838562, -0.011607582680881023, -0.002117924625054002, -0.013234568759799004, -0.019803743809461594, 0.03666841611266136, -0.021395741030573845, 0.005362056195735931, -0.016138650476932526, 0.04016730934381485, -0.004146189894527197, 0.06123065575957298, -0.027326365932822227, 0.030142977833747864, -0.006083703134208918, -0.04985924810171127, 0.008471698500216007, 0.06028595566749573, 0.012875932268798351, -0.007474513724446297, -0.009893124923110008, -0.03617857024073601, 0.02307520993053913, -0.03222481906414032, 0.025209534913301468, 0.03192741423845291, 0.055387500673532486, 0.013007140718400478, -0.021553190425038338, -0.02977559342980385, -0.018649108707904816, -0.005064649973064661, 0.025174546986818314, 0.004207420628517866, -0.044016093015670776, -0.08537302911281586, 0.02228795923292637, -0.02743133343756199, -0.0685783326625824, 0.004964056890457869, 0.02085341140627861, -0.011485121212899685, 0.012193648144602776, 0.03138508275151253, 0.0465003103017807, 0.026311688125133514, 0.005843154154717922, -0.00974442157894373, 0.03981741890311241, -0.02353006601333618, -0.015587575733661652, -0.03999236598610878, -0.061965424567461014, -0.00010072989243781194, 0.018701592460274696, -0.01787935197353363, 0.016672233119606972, 0.0005316679598763585, -0.051853619515895844, -0.01731952838599682, -0.00701091019436717, -0.0007435150910168886, 0.025209534913301468, -0.026119248941540718, -0.01562256459146738, 0.02942570298910141, -0.03526885807514191, -0.009779410436749458, 0.05073397234082222, -0.035163890570402145, 0.032889608293771744, 0.06570924073457718, -0.051608696579933167, -0.03346692770719528, 0.051608696579933167, -0.014406698755919933, -0.008270512335002422, 0.022235475480556488, 0.07655581086874008, -0.0014859368093311787, 0.018019307404756546, -0.006989041808992624, 0.017345769330859184, 0.029845571145415306, -0.027291378006339073, 0.0867026075720787, -0.02267283760011196, 0.019453853368759155, -0.06476453691720963, -0.003527323016896844, -0.03971245512366295, -0.016488540917634964, -0.0758560374379158, -0.1065063551068306, 0.045450642704963684, 0.08355360478162766, -0.04524070769548416, -0.046815209090709686, 0.04713011160492897, 0.02095837891101837, 0.006875327788293362, 0.011362660676240921, 0.030072998255491257, 0.04268651455640793, -0.007618843112140894, -0.053393132984638214, -0.002185715828090906, -0.07529620826244354, 0.0029325110372155905, -0.049054503440856934, -0.01863161288201809, -0.038872718811035156, -0.050698984414339066, -0.01661974936723709, 0.02702896110713482, 0.011791274882853031, 0.048424702137708664, 0.012219889089465141, 0.02604927122592926, -0.023617537692189217, 0.03530384600162506, 0.04576554149389267, 0.013252063654363155, -0.026381665840744972, 0.039222609251737595, -0.02856847457587719, 0.03194490820169449, -0.01245606504380703, 0.013077118434011936, -0.05433783307671547, -0.0036607184447348118, -0.03764810413122177, 0.0559823140501976, -0.012158658355474472, 0.031455062329769135, 0.0014662555186077952, -0.023337626829743385, -0.010890309698879719, 0.01674221083521843, -0.011301429942250252, -0.051783639937639236, 0.03761311620473862, -0.008948422968387604, 0.02302272617816925, 0.018719086423516273, -0.030125482007861137, -0.013444502837955952, 0.024667207151651382, -0.016199881210923195, 0.030405394732952118, -0.027168916538357735, 0.008086820133030415, 0.04576554149389267, 0.04251157119870186, 0.045905496925115585, 0.047619953751564026, -0.022270463407039642, -0.07186729460954666, -0.021693145856261253, 0.028201090171933174, 0.07179731875658035, -0.01080283708870411, 0.004482958931475878, -0.04135693237185478, 0.006936558522284031, -0.027641266584396362, -0.0474100224673748, 0.007111503276973963, 0.04338629171252251, -0.021815607324242592, 0.013899358920753002, 0.06462458521127701, -0.004950935952365398, -0.006407350767403841, -0.04142691195011139, -0.042371612042188644, 0.04985924810171127, -0.03164750337600708, -0.049964215606451035, -0.009936860762536526, -0.10356727987527847, -0.006031219381839037, 0.029355725273489952, -0.043456271290779114, -0.06829842180013657, -0.08194410800933838, 0.045275695621967316, 0.05377801135182381, -0.05762679502367973, -0.012578526511788368, 0.006945305969566107, 0.06381984055042267, -0.0077325571328401566, 0.07186729460954666, 0.00321460934355855, -0.040307264775037766, -0.014362961985170841, 0.06962800025939941, -0.03894269838929176, -0.023739999160170555, -0.04387613758444786, 0.025576919317245483, 0.010610397905111313, 0.03890770673751831, 0.002037012716755271, 0.04079711064696312, 0.032994575798511505, 0.01291092112660408, 0.019278910011053085, 0.0018052109517157078, 0.03694832697510719, -0.04321134835481644, 0.01777438446879387, -0.000032101674150908366, -0.020870907232165337, -0.021168312057852745, -0.031105173751711845, -0.030650315806269646, -0.02541946992278099, 0.021325763314962387, 0.046815209090709686, 0.016296101734042168, 0.0007112596649676561, 0.002466720761731267, 0.007518249563872814, 0.02548944763839245, 0.006101197563111782, -0.07095758616924286, 0.011161473579704762, -0.06245527043938637, -0.025471951812505722, -0.09880878031253815, 0.05822160467505455, -0.011835010722279549, 0.021220795810222626, -0.06042591109871864, -0.049439381808042526, 0.013523227535188198, 0.02662658877670765, -0.021833103150129318, -0.028271067887544632, 0.01351448055356741, -0.02204303629696369, -0.00619741715490818, 0.016715969890356064, 0.037053294479846954, 0.05713694915175438, 0.014975269325077534, -0.07529620826244354, -0.014389203861355782, 0.051853619515895844, 0.015421377494931221, -0.001344887656159699, 0.008423589169979095, -0.03694832697510719, -0.037788063287734985, -0.004784738179296255, 0.029320737347006798, 0.05920129641890526, -0.0016051179263740778, 0.00427302485331893, -0.03220732510089874, -0.010619144886732101, -0.027641266584396362, 0.013741908594965935, -0.006193043664097786, -0.004161497578024864, 0.024929624050855637, -0.010627892799675465, -0.019628798589110374, 0.01139764953404665, 0.05129379406571388, -0.07935492694377899, -0.0065910425037145615, -0.03033541701734066, 0.0076494584791362286, 0.0300030205398798, 0.04450593888759613, -0.06210537999868393, 0.029670625925064087, -0.011922483332455158, -0.027851201593875885, 0.02559441328048706, -0.008895939216017723, -0.03918762132525444, -0.04992922767996788, -0.017861856147646904, -0.009613213129341602, -0.06119566783308983, 0.060355931520462036, 0.021833103150129318, 0.015316410921514034, -0.028148606419563293, -0.03925759717822075, 0.012141164392232895, 0.04720008745789528, -0.025681886821985245, 0.017153330147266388, 0.01134516578167677, 0.05486266687512398, -0.0004860183398704976, 0.009753168560564518, -0.002370501169934869, -0.06612911075353622, -0.06270018965005875, 0.08656265586614609, -0.013846875168383121, -0.01340076606720686, -0.007474513724446297, -0.004087146371603012, -0.0024054900277405977, -0.03365936502814293, -0.021395741030573845, 0.03021295554935932, 0.015246433205902576, -0.036248549818992615, -0.013575711287558079, 0.015333905816078186, 0.012062438763678074, -0.0014968708856031299, -0.01340076606720686, -0.026416653767228127, -0.05888639762997627, 0.05118882656097412, -0.015438872389495373, -0.03418419882655144, -0.0025323249865323305, -0.01510647777467966, -0.012088680639863014, -0.008038710802793503, 0.036703404039144516, -0.016777198761701584, 0.03761311620473862, 0.00334363104775548, -0.032592203468084335, -0.011966219171881676, -0.013558216392993927, -0.046710241585969925, 0.002195556415244937, 0.008878445252776146, 0.028813397511839867, 0.002379248384386301, 0.05202856287360191, -0.019803743809461594, 0.008812841027975082, -0.057101961225271225, 0.027116432785987854, 0.029723109677433968, -0.002420797711238265, 0.00401498144492507, 0.00862477533519268, -0.08243395388126373, -0.00010462514910614118, -0.012018702924251556, 0.02239292487502098, 0.029793087393045425, 0.07697568088769913, -0.014292984269559383, 0.0361085906624794, -0.009971849620342255, -0.04576554149389267, -0.060705821961164474, -0.0007243805448524654, 0.0722871646285057, 0.051608696579933167, 0.004443596117198467, -0.007758799009025097, -0.023739999160170555, -0.033904287964105606, -0.006875327788293362 ]
714,767
pytorch_optimizer.base.optimizer
validate_boundary
null
@staticmethod def validate_boundary(constant: float, boundary: float, bound_type: str = 'upper'): if bound_type == 'upper' and constant > boundary: raise ValueError(f'[-] constant {constant} must be in a range of (-inf, {boundary}]') if bound_type == 'lower' and constant < boundary: raise ValueError(f'[-] constant {constant} must be in a range of [{boundary}, inf)')
(constant: float, boundary: float, bound_type: str = 'upper')
[ 0.05158504843711853, 0.021397992968559265, -0.05046951398253441, 0.0066382791846990585, -0.03796199709177017, -0.0351562574505806, 0.01618370972573757, -0.048779308795928955, -0.07632964849472046, -0.07585638761520386, 0.03725211322307587, 0.04076773673295975, -0.008324258029460907, -0.06260518729686737, -0.04762997105717659, 0.025251658633351326, -0.01369910966604948, -0.0323336161673069, 0.016876693814992905, 0.0015328044537454844, -0.04022687301039696, -0.022175487130880356, 0.0008995058597065508, -0.01325120497494936, 0.03792819380760193, 0.03742113336920738, -0.025538993999361992, 0.0021455036476254463, 0.041849467903375626, -0.03596755862236023, -0.04617639258503914, -0.030406784266233444, -0.008624269627034664, 0.0027022147551178932, 0.02518405020236969, -0.059867050498723984, 0.056588053703308105, 0.007981992326676846, -0.09106823056936264, 0.031522318720817566, -0.0397874191403389, -0.03047439083456993, -0.01396109163761139, 0.04211990162730217, 0.010808859020471573, -0.04604117572307587, 0.03802960738539696, -0.018118994310498238, -0.061219215393066406, 0.028125006705522537, -0.006367846392095089, -0.042965006083250046, 0.03762395679950714, -0.01857534982264042, -0.02354455180466175, 0.014806193299591541, 0.022243093699216843, 0.06970404088497162, 0.010293346829712391, -0.006887584459036589, -0.015279451385140419, 0.0066213770769536495, -0.0517202652990818, -0.09093301743268967, 0.0404973067343235, 0.02354455180466175, -0.05817684903740883, -0.02253042906522751, 0.012769496999680996, 0.04391152039170265, 0.01583721861243248, -0.0003010677173733711, -0.02322341315448284, 0.051618851721286774, 0.01893029361963272, -0.02638409659266472, -0.018457036465406418, 0.05435698479413986, 0.008865123614668846, -0.0005894589121453464, 0.06449821591377258, -0.022581135854125023, 0.05665566399693489, -0.022614939138293266, 0.01761193387210369, -0.012245533056557178, -0.059664227068424225, -0.004910044837743044, 0.08937802910804749, -0.0022521978244185448, -0.07680290192365646, 0.0063467188738286495, -0.025691112503409386, -0.023122001439332962, 0.06077976152300835, 0.0732196718454361, 0.013901934027671814, -0.05557393282651901, -0.05259917303919792, -0.012262435629963875, 0.020282456651329994, 0.035697124898433685, 0.0024169927928596735, 0.00709886010736227, 0.030288469046354294, -0.025674210861325264, 0.04604117572307587, -0.04891452565789223, -0.05885292962193489, 0.008277777582406998, 0.016437241807579994, -0.05057092756032944, -0.030829334631562233, 0.013597697019577026, -0.08140026032924652, 0.08559197187423706, -0.016995009034872055, 0.018980998545885086, 0.013335715048015118, -0.0007769659860059619, 0.026772843673825264, -0.025809425860643387, -0.03299279510974884, -0.01138352882117033, 0.06368691474199295, 0.04181566461920738, -0.030271567404270172, 0.017104871571063995, -0.0402606762945652, 0.001795842545107007, 0.009541206061840057, 0.008256650529801846, -0.04935397952795029, -0.010876467451453209, -0.02564040571451187, 0.03532527759671211, -0.042288921773433685, 0.05290341004729271, 0.015372412279248238, 0.007403096649795771, 0.011408882215619087, 0.05337666720151901, 0.01616680808365345, -0.034361861646175385, 0.04113958403468132, 0.04989484325051308, -0.0017514746868982911, 0.003084623720496893, 0.00445791520178318, 0.0751803070306778, -0.01936974562704563, 0.02156701311469078, 0.0011324371444061399, 0.002026133006438613, 0.018288014456629753, -0.03786058723926544, 0.016471045091748238, -0.05817684903740883, 0.01243145577609539, 0.022682547569274902, -0.012406103312969208, 0.029325053095817566, -0.02308819629251957, -0.025454483926296234, 0.014586467295885086, 0.04320163279771805, 0.02947717159986496, 0.008991889655590057, 0.03037297911942005, 0.013335715048015118, -0.020874029025435448, -0.013724462129175663, -0.04982723668217659, 0.04979343339800835, 0.05479643866419792, 0.003133217105641961, 0.0028733480721712112, 0.01901480369269848, -0.0029853242449462414, 0.005391753278672695, 0.0561147965490818, -0.0028437695000320673, -0.02156701311469078, -0.005239634774625301, 0.011214508675038815, -0.006743916776031256, -0.01769644394516945, -0.002824754687026143, -0.024474164471030235, -0.03880710154771805, -0.04529748857021332, 0.0034649197477847338, 0.013158244080841541, -0.013572344556450844, -0.010808859020471573, -0.004593131598085165, 0.02124587446451187, 0.006443905644118786, 0.02564040571451187, -0.008387641049921513, -0.0007040759082883596, 0.008159463293850422, 0.01725699007511139, -0.020874029025435448, 0.013724462129175663, 0.02046838030219078, -0.006562219932675362, -0.02498122677206993, -0.0002474565408192575, -0.044722817838191986, -0.0541541613638401, -0.0053621744737029076, -0.024812206625938416, 0.05388372763991356, 0.02902081608772278, -0.022243093699216843, -0.06345028430223465, -0.004863564390689135, -0.00973557960242033, 0.020147239789366722, 0.07457183301448822, -0.017966875806450844, 0.06902796030044556, -0.04806942120194435, 0.07937201857566833, 0.04381010681390762, 0.02078951895236969, -0.0008931675693020225, 0.008028472773730755, 0.02099234238266945, 0.01451040804386139, -0.016302024945616722, -0.02376427873969078, -0.021634621545672417, -0.02133038453757763, 0.011070840992033482, 0.015178038738667965, -0.004407208878546953, 0.02045147679746151, 0.007031251676380634, -0.007335488684475422, 0.023899495601654053, -0.10033055394887924, 0.01662316359579563, 0.028665872290730476, -0.02276705764234066, 0.008713005110621452, 0.04137621074914932, -0.013732913881540298, 0.021600816398859024, -0.10675333440303802, -0.00002036828846030403, -0.05679088085889816, -0.012000453658401966, 0.0279390849173069, 0.06260518729686737, -0.041849467903375626, -0.06148964911699295, 0.05969803035259247, 0.04181566461920738, -0.02376427873969078, 0.004297345411032438, 0.016318926587700844, 0.040429696440696716, 0.00031664929701946676, -0.007707333657890558, -0.021397992968559265, -0.005674862302839756, 0.04384391009807587, 0.029325053095817566, 0.020535986870527267, 0.004394532181322575, 0.013673756271600723, -0.031387101858854294, 0.015127332881093025, 0.025927741080522537, 0.07484226673841476, 0.004850887693464756, 0.061658669263124466, 0.0008678145240992308, 0.026367194950580597, -0.0280573982745409, -0.02011343650519848, 0.03077862784266472, -0.027972888201475143, 0.025471385568380356, -0.010225738398730755, -0.05618240684270859, -0.0007426337106153369, -0.012862457893788815, -0.05412035435438156, -0.04137621074914932, 0.06345028430223465, -0.0006428060005418956, 0.021059950813651085, -0.03285758197307587, 0.10729419440031052, -0.06801383942365646, 0.04989484325051308, -0.037319719791412354, 0.02905461937189102, 0.01033560186624527, 0.027110883966088295, 0.004935397766530514, -0.006828427314758301, -0.053951334208250046, 0.002212055493146181, -0.02286846935749054, 0.0007769659860059619, -0.007048153784126043, -0.03069411776959896, 0.00016215401410590857, 0.003851554123684764, -0.011687765829265118, 0.06439679861068726, 0.09546276181936264, 0.03236741945147514, 0.005945295095443726, -0.05554012954235077, 0.023037491366267204, 0.01556678581982851, 0.03681265935301781, 0.016428790986537933, -0.00370999937877059, -0.05023288354277611, -0.004035363905131817, -0.004056491423398256, 0.023071294650435448, 0.002395865274593234, 0.0077707162126898766, -0.03321252390742302, 0.01761193387210369, 0.04573693871498108, -0.010411661118268967, 0.005755146965384483, 0.04850887507200241, 0.06125301867723465, 0.03596755862236023, 0.026772843673825264, -0.03873949125409126, 0.00659602414816618, 0.019538767635822296, 0.02344314008951187, 0.010479269549250603, 0.04607498273253441, -0.0062791104428470135, -0.05699370428919792, -0.001337374560534954, 0.050773750990629196, 0.03299279510974884, -0.058886732906103134, 0.016411887481808662, 0.010707447305321693, -0.03890851512551308, -0.025893935933709145, -0.03968600928783417, 0.06950122117996216, -0.07795224338769913, 0.025538993999361992, 0.021702228114008904, 0.08227916806936264, -0.04347206652164459, -0.012296239845454693, -0.01193284522742033, -0.026637626811861992, 0.009769383817911148, 0.04357348009943962, -0.002577562350779772, 0.023274119943380356, 0.03748873993754387, 0.00044499922660179436, -0.04948919638991356, -0.008907378651201725, -0.02188815176486969, -0.01077505573630333, 0.04462140426039696, 0.016555555164813995, -0.0018064063042402267, -0.02836163528263569, 0.05013147369027138, 0.03412523493170738, -0.0017620384460315108, 0.0020768390968441963, -0.0057297940365970135, -0.020637400448322296, -0.02420373260974884, 0.011949747800827026, 0.017679542303085327, -0.0006824201554991305, 0.039550792425870895, 0.05256536602973938, -0.0353928878903389, 0.02198956348001957, 0.009321479126811028, -0.03324632719159126, -0.002033527474850416, 0.011493392288684845, -0.024338947609066963, 0.05006386339664459, 0.03003493882715702, -0.05084135755896568, 0.054728828370571136, -0.06277420371770859, 0.05401894450187683, 0.05557393282651901, 0.01402024831622839, 0.030051840469241142, 0.040970563888549805, 0.015203392133116722, 0.02362906187772751, -0.026316488161683083, -0.032620951533317566, -0.017966875806450844, 0.0030275792814791203, 0.00711998762562871, -0.041950881481170654, 0.020941637456417084, -0.03684646263718605, -0.05192308872938156, -0.06885894387960434, 0.03708309307694435, -0.07457183301448822, 0.09181192517280579, 0.03388860449194908, 0.005336821544915438, 0.009752481244504452, 0.009744030423462391, -0.03934796527028084, 0.0004302099405322224, 0.0009591911802999675, -0.049996256828308105, 0.028006693348288536, -0.13643333315849304, -0.0659179836511612, 0.012034257873892784, -0.025031931698322296, -0.025877034291625023, 0.03660983592271805, 0.030829334631562233, -0.01660626195371151, 0.041410017758607864, 0.03857047110795975, 0.033178720623254776, 0.04357348009943962, -0.005501616280525923, -0.040733933448791504, 0.006274885032325983, -0.019504962489008904, -0.029882820323109627, -0.05310623347759247, -0.041173387318849564, -0.007614372298121452, -0.021871250122785568, 0.007284782361239195, 0.00029948315932415426, -0.02606295794248581, -0.10580682009458542, -0.0466158464550972, -0.0039550792425870895, -0.024930519983172417, -0.007212948985397816, 0.03860427811741829, -0.06236855685710907, -0.017011910676956177, -0.03890851512551308, 0.009634166955947876, 0.04330304637551308, -0.01353008858859539, 0.007183370180428028, 0.026198172941803932, -0.024609381332993507, -0.022496625781059265, 0.024034710600972176, -0.009093301370739937, 0.029747603461146355, 0.06730395555496216, 0.046142589300870895, 0.06436299532651901, 0.04587215557694435, -0.023037491366267204, 0.04583835229277611, 0.02726300247013569, -0.06635744124650955, 0.06703352183103561, -0.01967398263514042, -0.014104758389294147, -0.09208235144615173, 0.04495944455265999, -0.029967330396175385, -0.02143179625272751, -0.03704928979277611, -0.00796931516379118, 0.0042297374457120895, 0.0678110122680664, 0.021364187821745872, -0.0005406014388427138, -0.02927434630692005, 0.0074622537940740585, 0.05016527697443962, 0.003393086139112711, 0.00924541987478733, 0.01319204829633236, -0.055371109396219254, -0.041511427611112595, 0.022936077788472176, -0.018947195261716843, -0.005176252219825983, 0.010183483362197876, 0.012515965849161148, -0.0031818104907870293, 0.03573092818260193, 0.04705530032515526, 0.03464919701218605, 0.04022687301039696, 0.007593244779855013, 0.0013151905732229352, 0.021144460886716843, -0.019285235553979874, 0.006490386091172695, -0.008370739407837391, -0.005264987703412771, -0.024136124178767204, 0.009042595513164997, -0.03488582745194435, 0.05192308872938156, -0.04607498273253441, -0.01935284398496151, -0.0883639007806778, 0.005953746382147074, 0.007136889733374119, 0.028412342071533203, 0.018017582595348358, 0.09032454341650009, 0.01325120497494936, -0.024254437536001205, 0.020400771871209145, -0.02707708068192005, -0.021617718040943146, -0.07166468352079391, -0.0006750255124643445, -0.048441268503665924, 0.0022669872269034386, 0.05205830559134483, 0.028564460575580597, 0.028665872290730476, 0.019623277708888054, 0.017358403652906418, 0.0036149253137409687, -0.053275253623723984, -0.01879507675766945, 0.0009327817242592573, 0.014983665198087692, 0.023291021585464478, -0.024676989763975143, -0.005349498242139816, -0.008797516115009785, -0.02033316344022751, 0.029308149591088295, 0.030491294339299202, 0.05067233741283417, -0.04915115237236023, -0.027448924258351326, 0.07673529535531998, -0.001036306843161583, -0.10026294738054276, -0.02198956348001957, 0.00498187867924571, 0.019488060846924782, 0.005260762292891741, 0.04377630352973938, -0.00357267027720809, 0.014349838718771935, 0.03725211322307587, -0.02716159075498581, 0.009127105586230755, 0.02739821933209896, -0.016411887481808662, 0.009938403964042664, -0.05290341004729271, -0.04982723668217659, 0.016225965693593025, -0.024254437536001205, -0.052632976323366165, -0.06436299532651901, 0.012025807052850723, 0.03047439083456993, -0.0328068733215332, -0.01717248000204563, -0.024491066113114357, 0.05523589253425598, 0.02979831025004387, 0.08011570572853088, 0.021144460886716843, -0.03407452628016472, -0.0258601326495409, 0.0383000411093235, -0.01215257216244936, -0.0024486840702593327, 0.0039043729193508625, 0.023172706365585327, -0.001984934089705348, 0.017628835514187813, -0.006988996639847755, 0.043742500245571136, 0.024676989763975143, 0.011814530938863754, 0.007521410938352346, -0.042288921773433685, -0.07166468352079391, -0.06388974189758301, 0.006972094532102346, 0.02080642059445381, -0.027432022616267204, -0.022817764431238174, -0.015490726567804813, 0.008839771151542664, -0.042086098343133926, -0.00445791520178318, 0.0441819503903389, 0.015025920234620571, -0.008303130976855755, -0.020485281944274902, 0.009887698106467724, -0.0017884478438645601, 0.04022687301039696, -0.000434963614679873, 0.030744824558496475, -0.0917443111538887, -0.038773298263549805, -0.013403323478996754, 0.01847393810749054, 0.0169527530670166, -0.021871250122785568, -0.05763598158955574, -0.04299880936741829, 0.04147762432694435, 0.018321819603443146, 0.004331149626523256, -0.007534087635576725, 0.03600136190652847, -0.017206285148859024, -0.019065510481595993, -0.0116539616137743, 0.016555555164813995, 0.00472834799438715, 0.026924962177872658, -0.003253644099459052, -0.021516306325793266, 0.006186149548739195, -0.040970563888549805, 0.005357949063181877, 0.08126504719257355, 0.005949520505964756, -0.009127105586230755, 0.02165152318775654, 0.024676989763975143, 0.01639498583972454, -0.030660314485430717, 0.021516306325793266, -0.015093528665602207, -0.04485803470015526, -0.00450862105935812, 0.0422213152050972, 0.0016912610735744238, -0.04401293024420738, -0.0019585248082876205, 0.010597583837807178, -0.06314604729413986, -0.0005498447571881115, -0.006684759631752968, 0.05266677960753441, -0.05675707384943962, -0.01681753806769848, -0.026553116738796234, -0.0038578922394663095, -0.01618370972573757, -0.01803448423743248, -0.0045381998643279076, -0.028564460575580597, 0.0018085191259160638, 0.06855470687150955, -0.00018882755830418319, -0.07186750322580338, -0.013631501235067844, 0.09208235144615173, -0.005446685012429953, -0.05763598158955574, 0.029409563168883324, 0.00946514680981636, 0.05865010619163513, -0.00034860472078435123, -0.015862571075558662, -0.03880710154771805, 0.010242640972137451, -0.009110203944146633, -0.04725812375545502, -0.03721830993890762, 0.007990443147718906, 0.04381010681390762, 0.03089694306254387, -0.001908874954096973, -0.03948318213224411, -0.051077987998723984, 0.06179388612508774, -0.000992467044852674, -0.011975100263953209, 0.002408541738986969, -0.023172706365585327, 0.0631798505783081, -0.06950122117996216, 0.03637320548295975, 0.031725142151117325, 0.00847215112298727, -0.06852090358734131, -0.030271567404270172, 0.02628268301486969, -0.004360728431493044, 0.05665566399693489, -0.016775282099843025, -0.03880710154771805, -0.002717004157602787, 0.004842436406761408, 0.03971981257200241, -0.0583120621740818, 0.008091854862868786, -0.011763825081288815, -0.021076852455735207, -0.06365311145782471, -0.02432204596698284, -0.013707560487091541, 0.03224910795688629, 0.046379219740629196, -0.04864409193396568, 0.05293721333146095, 0.024896716699004173, -0.003652954939752817, -0.09012171626091003, 0.00555232260376215, -0.030085643753409386, 0.008172139525413513, 0.06899415701627731, -0.018659859895706177, 0.036035165190696716, -0.08599761873483658, -0.017899267375469208, 0.0541541613638401, -0.014062503352761269, 0.029189836233854294, -0.016800634562969208, -0.011180704459547997, -0.00500723160803318, -0.009921502321958542, 0.020958539098501205, -0.04157903790473938, 0.0180513858795166, -0.029629290103912354, 0.00018645070667844266, -0.007550989743322134, -0.05638523027300835, 0.009228518232703209, -0.005683313589543104, 0.07862832397222519, 0.034581590443849564, 0.032046280801296234, -0.02212478034198284, 0.02795598655939102, -0.025167148560285568, 0.04164664447307587 ]
714,768
pytorch_optimizer.base.optimizer
validate_learning_rate
null
@staticmethod def validate_learning_rate(learning_rate: Optional[float]): if learning_rate is not None and learning_rate < 0.0: raise NegativeLRError(learning_rate)
(learning_rate: Optional[float])
[ -0.0012103021144866943, -0.015351901762187481, 0.00925720576196909, 0.062116291373968124, -0.03844619169831276, -0.024130744859576225, -0.01278291642665863, 0.006094696000218391, 0.009230629540979862, -0.004805773962289095, 0.012641179375350475, 0.01735393889248371, 0.07175441831350327, -0.014448327012360096, -0.018000613898038864, 0.03217432647943497, -0.006821098737418652, 0.02361694723367691, 0.022500766441226006, 0.01940026879310608, -0.026292234659194946, 0.0030052699148654938, -0.018009472638368607, 0.01607830449938774, -0.03724142909049988, 0.08603443205356598, 0.030349459499120712, 0.031129013746976852, -0.04358416423201561, 0.018496694043278694, 0.004272045101970434, -0.035770904272794724, -0.0022013545967638493, 0.07717586308717728, -0.0038446192629635334, -0.0025114044547080994, -0.02425476349890232, -0.004130308050662279, -0.12274434417486191, -0.039580088108778, -0.009496387094259262, 0.0021781008690595627, 0.015847980976104736, 0.003306461265310645, -0.04875756800174713, -0.04432828351855278, -0.01915222778916359, 0.011144081130623817, -0.06789208203554153, -0.04163527861237526, 0.03656817600131035, 0.02985338121652603, 0.0385170616209507, 0.010577131994068623, -0.02832970581948757, 0.07157724350690842, 0.03259953856468201, 0.029552189633250237, 0.03380430117249489, -0.03809184953570366, -0.0161846075206995, -0.005301854107528925, -0.021614911034703255, -0.02677059732377529, 0.03470787778496742, -0.028896654024720192, -0.0717189833521843, -0.0074013350531458855, 0.04978516325354576, 0.05230099707841873, 0.008362489752471447, 0.00015156459994614124, -0.0495016872882843, 0.06601405888795853, 0.014811528846621513, -0.04404480755329132, -0.04578108713030815, 0.015980860218405724, -0.03224519267678261, 0.0016565525438636541, 0.01802719011902809, 0.004338484723120928, 0.05371836572885513, -0.00007647437450941652, 0.03507993742823601, -0.07887670397758484, -0.026646578684449196, -0.007755677681416273, 0.03564688563346863, 0.0129069359973073, -0.060628052800893784, -0.022500766441226006, -0.02418389543890953, -0.03623155131936073, 0.04184788465499878, 0.04613543301820755, 0.02000265009701252, -0.06275410950183868, -0.05329315736889839, -0.02028612419962883, 0.03479646146297455, 0.03531026095151901, 0.05697832256555557, 0.04255656898021698, 0.0448952317237854, -0.03543427959084511, 0.004462504759430885, -0.05432074889540672, 0.03943835198879242, 0.03550514951348305, -0.03623155131936073, -0.06254149973392487, -0.03515080362558365, 0.008468792773783207, -0.07937278598546982, 0.03830445557832718, 0.004655178636312485, 0.02340434119105339, -0.03196172043681145, 0.02010895311832428, 0.05502943694591522, 0.023351190611720085, -0.057970479130744934, -0.03375115245580673, 0.059565022587776184, -0.01862071454524994, 0.005868802312761545, 0.03311333432793617, 0.02556583285331726, 0.021862950176000595, 0.0236878152936697, 0.02737298049032688, -0.017398230731487274, 0.00697612389922142, -0.04082028940320015, 0.0004252113576512784, 0.03215660899877548, 0.03848162665963173, 0.01929396577179432, -0.016344061121344566, 0.03862336277961731, 0.02017982117831707, 0.058395691215991974, -0.011268100701272488, 0.04447001963853836, 0.06488016247749329, -0.0650927722454071, 0.03897770866751671, -0.007277315016835928, 0.03911944478750229, 0.02953447215259075, 0.008008146658539772, 0.021437738090753555, -0.014218004420399666, 0.0452495738863945, -0.022925978526473045, 0.013429591432213783, -0.05566725134849548, -0.0018148995004594326, -0.004249898716807365, 0.01257031038403511, 0.011028919368982315, 0.03153650835156441, -0.061372172087430954, 0.0027372981421649456, 0.008189748041331768, -0.005634050350636244, 0.04284004494547844, -0.004077156540006399, 0.04794257879257202, -0.0005057689850218594, -0.05403727665543556, -0.030774671584367752, 0.018248653039336205, 0.02336890809237957, 0.03623155131936073, 0.008699115365743637, 0.020729053765535355, -0.016096021980047226, 0.04390307143330574, 0.05928155034780502, 0.010187354870140553, -0.04475349560379982, -0.0448952317237854, 0.05460422486066818, 0.011427555233240128, -0.08327055722475052, 0.0038977707736194134, -0.06601405888795853, 0.028630897402763367, 0.028506876900792122, 0.009682416915893555, 0.007472203578799963, -0.004912076983600855, -0.02266022190451622, -0.03445983678102493, 0.023847270756959915, 0.01283606793731451, 0.04354872927069664, 0.013075249269604683, 0.08419184386730194, 0.03741860017180443, 0.003651945386081934, -0.010249365121126175, -0.027355263009667397, -0.02708950638771057, -0.07512067258358002, 0.01350931916385889, -0.05460422486066818, -0.02588474191725254, -0.02687690034508705, 0.020232973620295525, 0.0010724406456574798, 0.055844422429800034, 0.027851343154907227, -0.0013963320525363088, -0.03467244282364845, -0.0059839640744030476, -0.011082070879638195, 0.04117463156580925, 0.04354872927069664, -0.04861583188176155, 0.00871240347623825, -0.04074941948056221, 0.0912078320980072, 0.01614917255938053, 0.05028124153614044, -0.02106567844748497, -0.0441865473985672, 0.02549496479332447, -0.018062623217701912, -0.05814765393733978, -0.02907382696866989, -0.002739512827247381, 0.0005558752454817295, -0.009088892489671707, 0.03812728449702263, 0.03692251816391945, -0.03759577125310898, -0.004198961891233921, -0.016911009326577187, -0.006449038628488779, -0.05258446931838989, 0.005191121716052294, 0.028063949197530746, 0.036160681396722794, 0.02662886120378971, 0.03667448088526726, -0.04432828351855278, -0.00585994403809309, -0.04907647520303726, -0.018071481958031654, -0.004655178636312485, 0.01650351472198963, 0.018390391021966934, 0.005895378068089485, -0.04117463156580925, -0.03940291702747345, 0.0385170616209507, -0.015192447230219841, 0.004602027125656605, -0.0016598745714873075, -0.03527482599020004, 0.05261990427970886, -0.04436371847987175, 0.009788719937205315, 0.01111750490963459, 0.003321963595226407, 0.05276164039969444, -0.005297424737364054, 0.023492926731705666, 0.012712047435343266, -0.03265268728137016, -0.006320589687675238, 0.056836582720279694, 0.003306461265310645, 0.03623155131936073, -0.00541701540350914, 0.010515122674405575, 0.0819949209690094, 0.07760107517242432, -0.010736586526036263, 0.006165564525872469, 0.04493066668510437, -0.04361959919333458, 0.030402611941099167, -0.021189698949456215, -0.04177701473236084, -0.03929661586880684, 0.002183637348935008, 0.0516277439892292, 0.021579476073384285, 0.08709745854139328, 0.0424148328602314, 0.02411302737891674, 0.006958406418561935, 0.079160176217556, -0.04673781618475914, 0.06636840850114822, 0.002923327963799238, 0.0017351723508909345, -0.0009063424076884985, 0.07795541733503342, -0.03819815441966057, -0.005257561337202787, -0.07334896177053452, 0.017752574756741524, 0.009850729256868362, 0.010665718466043472, 0.03144792467355728, -0.030491197481751442, 0.018354956060647964, 0.00009363784920424223, 0.007870838977396488, 0.03702882304787636, 0.015484780073165894, 0.06845902651548386, -0.03158966079354286, 0.0004628602764569223, 0.00998360849916935, -0.02039242722094059, 0.008256186731159687, 0.006821098737418652, -0.029977399855852127, -0.07717586308717728, -0.08064842224121094, 0.022075556218624115, 0.014908973127603531, -0.04687955230474472, -0.00301855755969882, 0.027142658829689026, -0.07448285818099976, 0.05524204298853874, -0.04918278008699417, -0.03463700786232948, 0.012924653477966785, 0.019382551312446594, 0.01391681283712387, 0.029499037191271782, 0.03346767649054527, 0.009071175940334797, 0.012047654949128628, -0.010435394942760468, 0.026221366599202156, 0.035912640392780304, -0.0036076526157557964, 0.01446604449301958, -0.007162153720855713, 0.05116710066795349, 0.0011770824203267694, -0.0608406588435173, 0.04074941948056221, -0.04532044380903244, 0.0548168309032917, 0.01816006749868393, 0.004894359968602657, -0.013154976069927216, -0.02329803816974163, 0.015777112916111946, -0.02375868335366249, -0.009274922311306, -0.02351064421236515, -0.029109260067343712, 0.028506876900792122, -0.02088850736618042, -0.0077645364217460155, 0.017389371991157532, -0.007423481438308954, 0.003319749142974615, 0.010408819653093815, -0.02467997558414936, -0.06973466277122498, -0.009363507851958275, -0.004004073329269886, -0.009057887829840183, 0.03336137533187866, 0.02088850736618042, 0.024591390043497086, 0.022110991179943085, 0.014315448701381683, -0.008588382974267006, 0.0017196699045598507, -0.0010320233413949609, 0.004021790809929371, 0.05258446931838989, -0.028560029342770576, -0.025654418393969536, 0.005532176699489355, -0.02400672435760498, -0.0263453871011734, 0.02694777026772499, -0.014386317692697048, 0.03401690721511841, 0.007405764423310757, -0.04861583188176155, 0.028063949197530746, 0.03653274103999138, 0.032369215041399, -0.01721220090985298, -0.008362489752471447, -0.019347116351127625, 0.01746024191379547, -0.09418431669473648, 0.007547501474618912, -0.016131455078721046, 0.05414357781410217, -0.01233998779207468, 0.04613543301820755, -0.04677324742078781, 0.062328897416591644, -0.01434202492237091, -0.03798554837703705, -0.011542716063559055, 0.012481724843382835, 0.010081052780151367, 0.02248305082321167, 0.04695041850209236, 0.014749518595635891, -0.02687690034508705, -0.004156883805990219, 0.03541656211018562, -0.07427024841308594, 0.06877793371677399, 0.04712758958339691, 0.059352416545152664, -0.003516852157190442, -0.018177784979343414, -0.04103289544582367, -0.0029211135115474463, 0.004183459561318159, -0.04946625232696533, -0.0020064660347998142, -0.02570756897330284, -0.07334896177053452, 0.014218004420399666, -0.008734549395740032, -0.03605438023805618, 0.0402887761592865, -0.026504840701818466, -0.0073481835424900055, 0.08582182228565216, -0.056446805596351624, 0.04429284855723381, 0.04156440868973732, -0.006329447962343693, -0.04716302454471588, 0.02145545557141304, 0.017513392493128777, -0.02762102149426937, -0.0646321251988411, -0.0402887761592865, -0.0215617585927248, 0.02400672435760498, 0.023032281547784805, -0.014253438450396061, -0.023103149607777596, -0.07186071574687958, -0.03275899216532707, 0.03403462469577789, -0.03699338808655739, 0.016016293317079544, 0.04815518483519554, -0.05226556211709976, -0.020516447722911835, 0.008189748041331768, 0.03805641457438469, 0.05531290918588638, -0.020339276641607285, -0.017796866595745087, 0.02496344968676567, -0.016414929181337357, -0.03548743203282356, 0.035912640392780304, -0.04730476438999176, 0.016724979504942894, 0.0027727324049919844, 0.01003676000982523, -0.003293173387646675, 0.010275941342115402, 0.0053904396481812, 0.018009472638368607, -0.03598351031541824, -0.009833012707531452, 0.058395691215991974, -0.01212738174945116, -0.02659342624247074, -0.10197985917329788, 0.011711029335856438, -0.003457056824117899, -0.014607781544327736, -0.07292374968528748, -0.021473173052072525, 0.05254903435707092, 0.01423572190105915, -0.02964077517390251, -0.04184788465499878, 0.02283739298582077, -0.004734905436635017, 0.05474596098065376, 0.03357398137450218, 0.014669791795313358, 0.02783362567424774, -0.02620364911854267, -0.017265353351831436, 0.061797384172677994, -0.00521326856687665, -0.05297424644231796, 0.009363507851958275, -0.017159050330519676, 0.009602690115571022, -0.020906224846839905, 0.09283781051635742, 0.06548254936933517, 0.04305265098810196, -0.0006571951671503484, 0.01212738174945116, -0.0038246875628829002, 0.022288162261247635, 0.057828743010759354, 0.017079323530197144, 0.009354650042951107, 0.04741106554865837, 0.02312086708843708, -0.07111659646034241, 0.0427691750228405, -0.015369618311524391, -0.07132920622825623, -0.0530451163649559, 0.025867024436593056, 0.020481012761592865, 0.0254595298320055, -0.001799396937713027, 0.02017982117831707, 0.03217432647943497, -0.0672188252210617, 0.01792088709771633, -0.006891967263072729, -0.008273904211819172, -0.08504226803779602, -0.02641625516116619, -0.015422769822180271, 0.00153585453517735, 0.04992689937353134, -0.01127695944160223, 0.011578151024878025, 0.01929396577179432, -0.056234199553728104, 0.0784514918923378, -0.02694777026772499, -0.0125525938346982, 0.016264334321022034, 0.017008453607559204, 0.012224826030433178, 0.01294237095862627, 0.03965095803141594, 0.00723302224650979, 0.02074677124619484, 0.0498560294508934, 0.07689238339662552, 0.02336890809237957, -0.027071788907051086, -0.08525487780570984, 0.015475921332836151, -0.06977009773254395, -0.04174157977104187, -0.03350311145186424, -0.03936748579144478, -0.012995521537959576, -0.005576469469815493, 0.00502723827958107, -0.015387335792183876, -0.03408777713775635, 0.01311954203993082, -0.015422769822180271, -0.04461175575852394, 0.0344952717423439, -0.0055233184248209, 0.015847980976104736, -0.03795011341571808, -0.04294634610414505, 0.03901313990354538, -0.03585949167609215, -0.03286529332399368, -0.08511313796043396, 0.008823135867714882, -0.007051421795040369, -0.02195153571665287, -0.01844354160130024, -0.03467244282364845, 0.04673781618475914, 0.019311681389808655, 0.0029188988264650106, 0.0242193304002285, -0.05949415639042854, -0.02117198146879673, 0.04695041850209236, -0.03330822288990021, -0.01682242378592491, 0.08468792587518692, 0.06707709282636642, -0.03950922191143036, 0.02071133628487587, -0.0019477780442684889, 0.0020518661476671696, 0.02755015157163143, 0.04195418581366539, -0.02060503326356411, -0.006683791056275368, -0.02659342624247074, -0.058785468339920044, -0.026008760556578636, 0.04340699315071106, -0.0330778993666172, -0.03410549461841583, 0.030880974605679512, -0.014607781544327736, -0.005851085297763348, 0.0229791309684515, 0.02567213587462902, 0.01207423023879528, -0.010125345550477505, 0.0072950320318341255, 0.0018281873781234026, 0.006984982173889875, -0.0569428876042366, -0.02124284952878952, -0.0074013350531458855, -0.07533327490091324, -0.062399767339229584, -0.05566725134849548, -0.010063335299491882, -0.0251051876693964, -0.02343977615237236, -0.07937278598546982, -0.022110991179943085, -0.014802670106291771, 0.04928908124566078, -0.006497760768979788, 0.04319438710808754, 0.02843600884079933, -0.0477299727499485, 0.018390391021966934, -0.04050138220191002, -0.03777294233441353, -0.009363507851958275, 0.005802363157272339, -0.04790714383125305, -0.0012955658603459597, 0.05471052601933479, -0.0006893074605613947, -0.05240729823708534, 0.04609999805688858, 0.004280903842300177, -0.025087470188736916, 0.0228019580245018, 0.01813349314033985, -0.007618370000272989, 0.03943835198879242, 0.03463700786232948, -0.05035211145877838, -0.04751736670732498, -0.017858875915408134, 0.03155422583222389, 0.05120253190398216, -0.0031691533513367176, 0.03472559526562691, -0.04057224839925766, -0.03587720915675163, 0.03196172043681145, -0.02258935384452343, -0.057403530925512314, 0.009106609970331192, 0.016760414466261864, 0.06619123369455338, 0.04794257879257202, 0.010568274185061455, -0.05488769710063934, -0.05414357781410217, 0.0011881557293236256, 0.0005580898723565042, 0.009806436486542225, 0.06452582031488419, -0.0572972297668457, -0.01890418864786625, -0.01678699068725109, 0.015032992698252201, -0.03865879774093628, 0.08029408007860184, 0.061407607048749924, -0.02276652492582798, -0.05853743106126785, -0.01604286953806877, -0.0075962236151099205, 0.03548743203282356, -0.011587009765207767, -0.030331743881106377, -0.06842359155416489, 0.009168620221316814, 0.02538866177201271, -0.003302031895145774, 0.0254595298320055, 0.01067457627505064, -0.04500153288245201, 0.06700622290372849, 0.0008974838419817388, -0.005868802312761545, -0.008703544735908508, -0.03134161978960037, -0.022040121257305145, -0.08844396471977234, -0.006962835788726807, 0.01327899657189846, 0.002003144007176161, -0.06573058664798737, -0.030065985396504402, 0.004566592629998922, 0.01218053326010704, 0.007954996079206467, -0.02191610261797905, -0.021827515214681625, -0.017646271735429764, -0.006409175228327513, 0.029126977548003197, -0.0028103813529014587, -0.05697832256555557, -0.02319173514842987, -0.06006110459566116, -0.09219999611377716, 0.03759577125310898, -0.025867024436593056, 0.019099077209830284, 0.02875491790473461, 0.02071133628487587, 0.02567213587462902, 0.03353854641318321, -0.010825172066688538, -0.030615217983722687, 0.0039863563142716885, 0.058360256254673004, 0.03515080362558365, 0.027426132932305336, 0.04004073515534401, -0.02071133628487587, -0.04574565589427948, 0.035770904272794724, 0.0587146021425724, -0.04092659428715706, 0.014811528846621513, 0.009013595059514046, -0.015839122235774994, 0.004672895651310682, -0.0693448856472969, 0.022004688158631325, 0.0495016872882843, 0.04220222681760788, -0.029764793813228607, 0.008251757360994816, -0.004252113401889801, -0.02262478694319725, -0.009788719937205315, 0.013048673048615456, 0.012269118800759315, 0.010701152496039867, 0.02223500981926918, -0.02035699412226677, 0.02436106652021408, -0.030243156477808952, 0.016733838245272636 ]
714,769
pytorch_optimizer.base.optimizer
validate_non_negative
null
@staticmethod def validate_non_negative(x: Optional[float], name: str): if x is not None and x < 0.0: raise ValueError(f'[-] {name} must be non-negative')
(x: Optional[float], name: str)
[ 0.04426433891057968, -0.0165107399225235, 0.03505438566207886, 0.04528963193297386, -0.016104158014059067, -0.045961376279592514, 0.0006358358659781516, -0.0033145223278552294, 0.025349466130137444, -0.031076960265636444, 0.03500135615468025, 0.012117893435060978, 0.06650257110595703, -0.06639651209115982, -0.02299836464226246, 0.038961105048656464, 0.024129722267389297, 0.03980962187051773, 0.05200706422328949, 0.03733477741479874, 0.0197280365973711, -0.006359463557600975, -0.010880472138524055, -0.027682889252901077, 0.005957301240414381, 0.06858851760625839, 0.04115310683846474, 0.048895832151174545, -0.034029096364974976, -0.031713347882032394, -0.016837773844599724, -0.030193088576197624, 0.012365377508103848, 0.04985041543841362, -0.0008695096476003528, -0.005634687840938568, -0.026657598093152046, -0.0037365714088082314, -0.13159094750881195, -0.020930103957653046, 0.029061730951070786, -0.016342803835868835, -0.007207981310784817, 0.008162563666701317, -0.033375028520822525, -0.0317840576171875, 0.002435069065541029, 0.04295620694756508, -0.08364970237016678, -0.004417153540998697, 0.04758770018815994, 0.00552862323820591, 0.05395158380270004, 0.0007419005851261318, -0.026657598093152046, 0.08067989349365234, 0.06971987336874008, 0.06505302339792252, 0.02835463359951973, -0.000405476544983685, -0.017810033634305, 0.03722871467471123, -0.033375028520822525, -0.08435679972171783, -0.013063637539744377, -0.012957572005689144, -0.015467770397663116, -0.04401685670018196, -0.007070980966091156, 0.03397606313228607, 0.014937447383999825, 0.0026538274250924587, -0.04946151003241539, 0.06264889240264893, 0.0508403517305851, -0.026551533490419388, -0.019356809556484222, 0.01405357476323843, -0.010456212796270847, -0.04019852727651596, 0.0034669903106987476, -0.0216195248067379, -0.018260808661580086, -0.007760401349514723, -0.010597632266581059, -0.021513458341360092, -0.011790860444307327, -0.0056656235828995705, 0.07261897623538971, 0.06190643832087517, -0.09001358598470688, -0.003615038935095072, -0.025897467508912086, -0.0305289588868618, 0.03754690662026405, 0.0572042353451252, 0.04150665923953056, -0.0876801609992981, -0.042779434472322464, 0.04115310683846474, 0.050911061465740204, 0.04118846356868744, 0.03701658546924591, 0.03383464366197586, 0.02467772364616394, -0.03899645805358887, 0.020152295008301735, -0.05059286952018738, 0.028778892010450363, 0.01753603294491768, -0.02225591242313385, -0.0750938132405281, -0.0041122171096503735, -0.017253194004297256, -0.04118846356868744, -0.03572613000869751, 0.000632521347142756, 0.024571659043431282, -0.00935137178748846, 0.004949686583131552, 0.043026916682720184, 0.021548813208937645, -0.05253738909959793, 0.0033078931737691164, 0.022927654907107353, 0.001769954920746386, -0.014813704416155815, 0.014194994233548641, -0.0003449865325819701, 0.038077231496572495, 0.03470083698630333, -0.005484429653733969, -0.011746667325496674, 0.014141961932182312, -0.026268694549798965, 0.021831654012203217, 0.04822408780455589, 0.045077502727508545, 0.012860346585512161, 0.00467568589374423, 0.01602461002767086, -0.009254146367311478, 0.0019014308927580714, -0.0021334474440664053, 0.052466679364442825, 0.054128360003232956, -0.03470083698630333, 0.010783245787024498, -0.019816424697637558, 0.021973073482513428, -0.005046912468969822, 0.06636115163564682, -0.02147810347378254, -0.033905353397130966, 0.04525427892804146, -0.05366874486207962, 0.007371497340500355, -0.061871081590652466, 0.017102934420108795, 0.01024408359080553, -0.001862761564552784, 0.00934253353625536, 0.029150119051337242, -0.027559148147702217, 0.000019714501831913367, -0.017730483785271645, 0.013947510160505772, 0.04525427892804146, 0.017447644844651222, 0.057663850486278534, 0.0024991498794406652, -0.022662494331598282, -0.03256186842918396, 0.03523116186261177, 0.027170244604349136, 0.0031841511372476816, -0.005590494256466627, 0.0247837882488966, -0.012869184836745262, 0.016837773844599724, 0.04408756643533707, -0.0003554825088940561, -0.05490616708993912, -0.009987760335206985, 0.0546586811542511, -0.020152295008301735, -0.05674462020397186, 0.016828933730721474, -0.048895832151174545, 0.009316016919910908, -0.00825536996126175, 0.014486672356724739, 0.007415690924972296, -0.0074333688244223595, 0.006978174205869436, -0.024624690413475037, -0.011773183010518551, -0.03091786429286003, 0.07926569879055023, -0.02798340655863285, 0.0260919202119112, 0.014009380713105202, 0.018137065693736076, -0.013532090000808239, -0.03100625053048134, -0.02100081369280815, -0.027117211371660233, -0.02443023957312107, -0.053598035126924515, -0.020664941519498825, -0.007079819682985544, 0.02771824412047863, -0.036556970328092575, 0.023864559829235077, 0.0003640450304374099, -0.015087705105543137, 0.015874352306127548, -0.02363475412130356, 0.004587298724800348, 0.06922490149736404, 0.07283110171556473, -0.03203154355287552, 0.06367418169975281, 0.01628093421459198, 0.11433775722980499, 0.021212942898273468, 0.03213760629296303, -0.009236468933522701, -0.014654607512056828, -0.005661203991621733, -0.00024278875207528472, -0.010712536051869392, -0.03155425190925598, -0.03889039531350136, -0.07046232372522354, -0.004812686238437891, 0.024500949308276176, -0.000632521347142756, -0.025490885600447655, -0.03544329106807709, -0.022450363263487816, 0.00871498417109251, -0.06689147651195526, 0.06547728180885315, 0.05331519618630409, -0.03804187849164009, -0.0018329308368265629, 0.04295620694756508, -0.04645634442567825, 0.0381832979619503, -0.04249659553170204, 0.01642235368490219, -0.044547177851200104, 0.009678404778242111, 0.009307178668677807, 0.012992926873266697, -0.05179493501782417, -0.04475930705666542, 0.06788141280412674, 0.00028698239475488663, -0.010031954385340214, -0.05738100782036781, -0.013823767192661762, 0.027170244604349136, -0.0470220223069191, -0.013682347722351551, 0.011870409362018108, -0.04426433891057968, 0.04210769012570381, 0.03157192841172218, -0.004043716937303543, 0.0089050168171525, 0.025137336924672127, -0.014893253333866596, 0.05731029808521271, 0.00045961374416947365, 0.029150119051337242, -0.01316086295992136, 0.03995104134082794, 0.044830016791820526, 0.05607287958264351, -0.02149578183889389, -0.0017511725891381502, 0.04638563469052315, -0.03189012408256531, 0.020523522049188614, -0.003005166770890355, -0.05122925713658333, -0.05649713799357414, 0.0133553147315979, -0.009651889093220234, 0.016934998333454132, 0.06378024816513062, -0.00572307500988245, 0.0076543367467820644, -0.003864733036607504, 0.07268968224525452, -0.04642098769545555, 0.0394560731947422, -0.014707639813423157, 0.04334511235356331, 0.030988574028015137, 0.029203150421380997, -0.03498367592692375, 0.007879724726080894, -0.044547177851200104, -0.017217839136719704, 0.015600351616740227, -0.018614357337355614, 0.029804185032844543, -0.02147810347378254, 0.004631492309272289, -0.044547177851200104, -0.007751562632620335, 0.07056839019060135, 0.07968995720148087, 0.05886591598391533, -0.03272096440196037, -0.01533519010990858, 0.020276037976145744, 0.01321389526128769, -0.0013722121948376298, -0.019020939245820045, -0.012064861133694649, -0.07679085433483124, -0.03765297308564186, -0.04528963193297386, 0.009492792189121246, -0.02847837470471859, 0.02213216945528984, 0.011843892745673656, -0.010553439147770405, 0.062259986996650696, -0.044830016791820526, -0.03673374652862549, 0.016245579347014427, 0.040658138692379, 0.021831654012203217, 0.040764205157756805, 0.038713619112968445, -0.0018042050069198012, 0.014716478995978832, -0.014999317936599255, 0.005594913382083178, -0.019657326862215996, -0.010553439147770405, -0.011790860444307327, -0.03843078017234802, 0.10062005370855331, 0.031854767352342606, -0.0190739706158638, 0.030988574028015137, -0.04051671922206879, -0.012727765366435051, 0.036839809268713, 0.03196083381772041, 0.03151889890432358, -0.01539706066250801, 0.012789636850357056, -0.005236945115029812, 0.04104704409837723, -0.05734565481543541, -0.010774406604468822, -0.012427248992025852, -0.05331519618630409, -0.042143046855926514, 0.0775686576962471, -0.016988031566143036, 0.009660727344453335, 0.021159909665584564, -0.016970353201031685, -0.025738369673490524, -0.008551467210054398, -0.06112862750887871, -0.04274407774209976, 0.044441115111112595, 0.04338046908378601, 0.009978922083973885, -0.028655149042606354, -0.03100625053048134, 0.022273588925600052, -0.020664941519498825, -0.028460698202252388, 0.01354092825204134, 0.017615580931305885, -0.02275088056921959, -0.025773724541068077, 0.0190739706158638, -0.0007965901750139892, -0.00638597970828414, 0.03966820240020752, -0.03206689655780792, 0.0686238706111908, 0.012922217138111591, -0.025331789627671242, -0.03737013414502144, 0.04147130250930786, -0.01742996834218502, -0.05274951830506325, 0.015405899845063686, 0.005192751530557871, 0.01728854887187481, -0.048400864005088806, 0.015980416908860207, 0.007561529986560345, 0.027170244604349136, -0.005002718884497881, 0.021725589409470558, 0.005108783487230539, 0.10698393732309341, 0.007689691614359617, -0.021813975647091866, -0.010641826316714287, -0.01958661712706089, 0.013063637539744377, -0.0037873941473662853, 0.0007457674946635962, 0.005365106742829084, -0.030847154557704926, -0.04886047914624214, -0.002435069065541029, -0.07180581241846085, 0.046703826636075974, 0.03593825921416283, 0.032738640904426575, -0.02519037015736103, -0.016501901671290398, -0.028955666348338127, 0.010712536051869392, 0.04210769012570381, -0.07070980966091156, -0.00973143707960844, -0.03761761635541916, -0.08428609371185303, 0.06537121534347534, -0.02147810347378254, -0.043062273412942886, -0.016254417598247528, -0.05112319067120552, 0.04663311690092087, 0.07664943486452103, -0.021195264533162117, 0.04440575838088989, 0.024218108505010605, -0.009024339728057384, -0.011773183010518551, 0.004631492309272289, 0.02391759306192398, 0.005426977761089802, -0.06717431545257568, 0.0013976235641166568, 0.01882648654282093, 0.01753603294491768, -0.01277195941656828, -0.016740547493100166, -0.03917323425412178, -0.08683164417743683, -0.03014005534350872, 0.00247926265001297, -0.036556970328092575, -0.018632033839821815, 0.0432744026184082, -0.060739725828170776, -0.06279031187295914, -0.016307448968291283, 0.0686238706111908, 0.051299966871738434, -0.02872585877776146, -0.012356539256870747, -0.004538686014711857, -0.019763391464948654, -0.03254418820142746, -0.0014926398871466517, -0.04543105140328407, -0.00787530466914177, 0.039102524518966675, -0.005228106398135424, 0.029821861535310745, 0.0406934954226017, 0.00019749028433579952, 0.02632172591984272, -0.0013744218740612268, -0.009696082212030888, 0.06314385682344437, 0.0045652021653950214, 0.009651889093220234, -0.06717431545257568, 0.006050108000636101, 0.019533583894371986, 0.0017368096159771085, -0.03843078017234802, -0.03240276873111725, 0.03519580885767937, 0.018384549766778946, -0.00876801647245884, -0.0381479412317276, 0.013717702589929104, 0.005860075354576111, 0.050168607383966446, 0.013991703279316425, -0.012745442800223827, 0.03828936070203781, -0.026657598093152046, -0.03104160539805889, 0.030440572649240494, -0.03507206588983536, -0.007614562287926674, 0.018773453310132027, -0.004976202733814716, -0.03701658546924591, -0.0266929529607296, 0.06243675947189331, 0.040127817541360855, 0.05444655194878578, 0.024854497984051704, -0.0006358358659781516, -0.01271892711520195, 0.023122107610106468, 0.030741089954972267, -0.007685272488743067, 0.017270870506763458, 0.016210224479436874, -0.007809014525264502, -0.04129452630877495, 0.015423577278852463, 0.002861537504941225, -0.04663311690092087, -0.033109866082668304, 0.010191051289439201, 0.021389717236161232, 0.0356377437710762, -0.010173373855650425, 0.032597221434116364, 0.014760672114789486, -0.03779439255595207, 0.026657598093152046, -0.05434048920869827, 0.008432144299149513, -0.08661951869726181, -0.005705397576093674, 0.02515501342713833, 0.0394207164645195, 0.06130540370941162, -0.000042743526137201115, 0.01705874130129814, -0.02110687829554081, -0.034152835607528687, 0.07389175146818161, -0.013850283809006214, -0.023440301418304443, -0.027753598988056183, 0.0036901680286973715, 0.023122107610106468, -0.006381560117006302, 0.03761761635541916, 0.017262032255530357, -0.023475656285881996, 0.06982593238353729, 0.029291538521647453, 0.024642368778586388, -0.0071637872606515884, -0.06317921727895737, 0.10083218663930893, -0.07912427932024002, -0.09213487803936005, -0.0394207164645195, 0.009581179358065128, -0.01918003521859646, 0.03457709774374962, 0.015414738096296787, 0.0027488437481224537, -0.03369322419166565, 0.03192547708749771, 0.011357762850821018, -0.03284470736980438, 0.024518625810742378, 0.01283382996916771, 0.0048082671128213406, -0.07926569879055023, -0.03828936070203781, 0.019639648497104645, -0.05490616708993912, -0.051299966871738434, -0.06158824265003204, -0.008653112687170506, -0.007194723002612591, -0.007866466417908669, -0.03468316048383713, -0.03318057581782341, 0.06576012074947357, 0.0216195248067379, 0.004467975813895464, 0.04154201224446297, -0.003818329656496644, -0.03751155361533165, 0.02071797475218773, -0.006182688754051924, -0.009086210280656815, 0.06158824265003204, 0.025261079892516136, -0.023846883326768875, 0.021460426971316338, 0.009598856791853905, 0.016121836379170418, 0.015176092274487019, 0.05776991322636604, -0.0016672046622261405, -0.029910249635577202, -0.06056294962763786, -0.0776393711566925, 0.0013003975618630648, 0.03581451624631882, -0.02656920999288559, -0.002757682465016842, -0.007446626666933298, -0.0014926398871466517, -0.012948733754456043, -0.0005270090186968446, 0.011508021503686905, 0.0104827294126153, -0.03418819233775139, -0.016112998127937317, -0.0260565634816885, 0.009934728033840656, 0.013417186215519905, -0.0369105190038681, 0.02658688835799694, -0.049284737557172775, -0.06706825643777847, -0.04924938082695007, 0.0006546181393787265, -0.001547881867736578, -0.015679899603128433, -0.06349740922451019, -0.07424529641866684, 0.00450995983555913, 0.016634482890367508, -0.0003060408926103264, -0.012763120234012604, 0.034524064511060715, -0.01149918232113123, 0.00023422624508384615, -0.027364695444703102, 0.0007247755420394242, -0.011614086106419563, 0.033869996666908264, -0.06540657579898834, -0.042390529066324234, 0.0635327622294426, -0.025720693171024323, -0.02632172591984272, 0.05183028802275658, -0.012710087932646275, -0.043062273412942886, 0.05126461014151573, 0.050946418195962906, -0.01880880817770958, -0.025013593956828117, 0.028584439307451248, -0.02034674771130085, -0.024447916075587273, -0.04437040537595749, 0.03970355913043022, 0.06469947099685669, 0.006394818425178528, -0.026233339682221413, -0.027400050312280655, -0.08541744947433472, 0.01729738712310791, -0.044830016791820526, -0.024624690413475037, 0.02761217951774597, 0.010040792636573315, 0.026887403801083565, 0.022468041628599167, -0.011720150709152222, 0.007773659657686949, 0.005510945804417133, -0.022167524322867393, -0.014371768571436405, 0.06784605979919434, 0.004622653592377901, -0.025773724541068077, -0.012250474654138088, 0.005444655194878578, -0.04154201224446297, -0.03167799487709999, 0.04334511235356331, 0.03233205899596214, 0.008816629648208618, -0.02453630417585373, -0.0184199046343565, -0.019515907391905785, 0.023864559829235077, 0.012223958037793636, -0.04041065648198128, -0.026038886979222298, 0.04751699045300484, 0.06038617715239525, 0.02252107486128807, 0.006567173637449741, -0.0034426837228238583, -0.018879517912864685, 0.10118573904037476, -0.008374692872166634, -0.025614628568291664, -0.003241602797061205, 0.000030486698960885406, 0.026374759152531624, -0.10868097841739655, -0.016828933730721474, 0.009457437321543694, -0.0015567205846309662, -0.06141147017478943, -0.030829476192593575, 0.030334508046507835, 0.012745442800223827, 0.027046501636505127, 0.010270599275827408, -0.00934253353625536, 0.005007138475775719, 0.015715254470705986, 0.012931056320667267, -0.029291538521647453, -0.04652705416083336, -0.024713078513741493, -0.08414467424154282, -0.11921674013137817, 0.025384820997714996, -0.023175138980150223, 0.03397606313228607, 0.06522979587316513, 0.014203832484781742, 0.025649983435869217, 0.04217839986085892, -0.022079138085246086, -0.01638699881732464, 0.01181737706065178, -0.0033786031417548656, 0.042779434472322464, 0.05098177120089531, 0.037688326090574265, 0.01817242056131363, -0.07396245747804642, 0.05801739916205406, 0.04387543722987175, -0.009103887714445591, 0.07215935736894608, -0.027276309207081795, -0.0015147366793826222, 0.016342803835868835, -0.06434592604637146, 0.005939623806625605, 0.04642098769545555, 0.04161272197961807, -0.04500679299235344, -0.0035023451782763004, 0.0029366668313741684, -0.005471171345561743, -0.00040630518924444914, -0.029821861535310745, 0.044547177851200104, -0.012931056320667267, 0.02467772364616394, -0.025649983435869217, 0.0228923000395298, -0.04465324431657791, 0.06448734551668167 ]
714,770
pytorch_optimizer.base.optimizer
validate_nus
null
def validate_nus(self, nus: Union[float, Tuple[float, float]]): if isinstance(nus, float): self.validate_range(nus, 'nu', 0.0, 1.0, range_type='[]') else: self.validate_range(nus[0], 'nu1', 0.0, 1.0, range_type='[]') self.validate_range(nus[1], 'nu2', 0.0, 1.0, range_type='[]')
(self, nus: Union[float, Tuple[float, float]])
[ -0.0006477159331552684, 0.04244488477706909, 0.023888062685728073, 0.02320457063615322, -0.028057366609573364, 0.01527605764567852, -0.03306395187973976, -0.043811868876218796, -0.0046349335461854935, -0.009850835427641869, 0.02065856195986271, 0.020043417811393738, 0.014686545357108116, -0.06305218487977982, 0.013780917972326279, 0.0017065952997654676, -0.040155183523893356, -0.000589512288570404, 0.01951371133327484, 0.06920361518859863, -0.06602537631988525, 0.06332558393478394, 0.004331633914262056, 0.03497773036360741, -0.0025695045478641987, 0.028262415900826454, 0.043060027062892914, -0.008714529685676098, -0.006365024019032717, -0.04569147527217865, -0.024434857070446014, -0.007966959848999977, 0.059634722769260406, 0.03465307131409645, 0.04907476156949997, -0.043606821447610855, -0.007326185237616301, 0.008518025279045105, -0.10430095344781876, 0.06944283843040466, -0.01582285203039646, -0.05399590730667114, 0.022503990679979324, 0.05437183007597923, 0.008236085064709187, 0.01056850329041481, 0.026775818318128586, 0.03926664590835571, -0.12740300595760345, 0.021119918674230576, 0.03263676539063454, -0.027459312230348587, -0.010047339834272861, -0.04425613954663277, -0.06435082107782364, 0.06899856775999069, 0.03731869161128998, 0.06178772449493408, 0.03878819942474365, 0.018334686756134033, -0.010739375837147236, 0.028296589851379395, -0.013311016373336315, -0.11352810263633728, -0.04466623440384865, -0.0051774559542536736, -0.03092803619801998, -0.01663449965417385, -0.0015528094954788685, 0.06455586850643158, 0.009867923334240913, 0.027271350845694542, -0.00437862379476428, 0.02896299585700035, 0.07238185405731201, 0.006676867604255676, -0.030056582763791084, 0.07388553768396378, -0.01529314462095499, 0.005959200207144022, 0.01253354363143444, 0.01824924908578396, 0.03376452997326851, 0.0023260104935616255, 0.009705593809485435, 0.03455054759979248, -0.03789965808391571, 0.018676431849598885, 0.04493963345885277, 0.02048768848180771, -0.07839658856391907, -0.017292359843850136, -0.003391831647604704, -0.04603322222828865, 0.039881788194179535, 0.08782878518104553, 0.0189669169485569, -0.05259474739432335, -0.04511050507426262, -0.011627916246652603, 0.019154878333210945, -0.020265553146600723, 0.002086787950247526, -0.008902490139007568, -0.00626677181571722, -0.016412364318966866, -0.00336192874237895, -0.0028450374957174063, -0.014293537475168705, 0.03902742266654968, -0.012772765941917896, -0.02303369715809822, 0.03174822777509689, 0.018027115613222122, -0.05361998826265335, -0.006386382970958948, -0.011200733482837677, 0.004801535047590733, -0.035575784742832184, 0.021820498630404472, 0.013302473351359367, 0.07067312300205231, -0.027561835944652557, 0.06718731671571732, 0.03089386224746704, 0.013302473351359367, 0.015737414360046387, 0.027185915037989616, 0.025596793740987778, -0.006869099568575621, 0.02289699949324131, -0.009517633356153965, 0.005638813134282827, 0.039984311908483505, -0.024315245449543, 0.032397545874118805, -0.039710912853479385, -0.027578921988606453, 0.012285777367651463, 0.002744649536907673, -0.0039172666147351265, 0.047195158898830414, 0.023973500356078148, -0.01075646374374628, 0.017873328179121017, 0.06858847290277481, -0.05471357703208923, 0.040121011435985565, -0.06168519705533981, -0.03882237523794174, -0.06852012127637863, 0.051022715866565704, 0.06004481762647629, -0.0019372741226106882, -0.03745539113879204, -0.03731869161128998, 0.025186698883771896, -0.05351746454834938, 0.03162861615419388, 0.023392530158162117, -0.022709038108587265, 0.029954059049487114, 0.03455054759979248, 0.03275637701153755, -0.03892489895224571, 0.008013949729502201, -0.04196643829345703, -0.0009675690671429038, 0.03285890072584152, 0.020299727097153664, -0.031560268253088, 0.020043417811393738, -0.00002611488707771059, 0.0606941357254982, -0.029287653043866158, -0.014994116500020027, -0.0012633932055905461, -0.03003949485719204, -0.01934283785521984, 0.016950614750385284, -0.012362671084702015, -0.02651950903236866, 0.012396845035254955, -0.03707946836948395, -0.015011204406619072, 0.028672510758042336, -0.04107790067791939, -0.01020966935902834, -0.039813440293073654, -0.06592284888029099, 0.02255525253713131, 0.040155183523893356, -0.02031681500375271, 0.010508697479963303, 0.04699011147022247, 0.004857068415731192, 0.019154878333210945, 0.01029510609805584, -0.017924591898918152, -0.06817837804555893, 0.03188492730259895, -0.019530799239873886, -0.005732793360948563, 0.03075716271996498, -0.04569147527217865, -0.015617803670465946, 0.008137832395732403, 0.026775818318128586, 0.058882880955934525, -0.019154878333210945, 0.04148799553513527, 0.019872544333338737, -0.03079133667051792, 0.062163643538951874, -0.012106360867619514, -0.050680968910455704, 0.040565282106399536, -0.02279447577893734, 0.01720692403614521, -0.011388693936169147, 0.1289750337600708, -0.043880220502614975, 0.09042605757713318, -0.031577352434396744, 0.025340484455227852, 0.051672033965587616, 0.0124993696808815, 0.04664836451411247, 0.013165774755179882, 0.06062578409910202, -0.026058152318000793, 0.00004485419412958436, -0.00782598927617073, 0.021820498630404472, -0.015156446024775505, 0.015728870406746864, -0.01679682917892933, -0.005775511730462313, 0.03813888132572174, 0.013934703543782234, -0.0410437248647213, -0.031919099390506744, -0.07190341502428055, -0.025152524933218956, 0.0334569588303566, -0.0073176417499780655, 0.016873721033334732, 0.031115995720028877, -0.02452029287815094, 0.0038894994650036097, -0.054679401218891144, 0.010243844240903854, 0.007215117570012808, 0.03197036311030388, -0.026297373697161674, 0.0710148736834526, -0.06185607239603996, -0.017249641939997673, 0.0810622125864029, -0.039471693336963654, 0.015404212288558483, -0.024674080312252045, 0.0010604812996461987, 0.06947701424360275, -0.023922238498926163, -0.014660914428532124, 0.029543964192271233, 0.022145157679915428, 0.03325191140174866, 0.027596009895205498, 0.01765119470655918, 0.03484103083610535, 0.0030650366097688675, 0.00579259917140007, 0.04880136623978615, 0.012012381106615067, 0.08509481698274612, -0.03296142444014549, 0.003120570443570614, 0.07634611427783966, 0.017924591898918152, 0.011773158796131611, 0.024195635691285133, -0.004502506926655769, 0.06465838849544525, -0.016907894983887672, 0.0572424978017807, -0.00423338171094656, -0.035746656358242035, -0.0009483458707109094, -0.02323874458670616, -0.04610157012939453, 0.020333902910351753, -0.029680661857128143, -0.0010871802223846316, -0.02692960388958454, 0.035644132643938065, 0.012200341559946537, 0.02669038251042366, -0.024776604026556015, 0.006459004245698452, -0.013387909159064293, 0.0020547492895275354, -0.05990811809897423, 0.0617193728685379, -0.05225300043821335, 0.024981651455163956, -0.02069273591041565, -0.0002693921560421586, 0.014131207950413227, -0.026604946702718735, 0.015976637601852417, -0.016036443412303925, -0.02597271464765072, 0.0403602309525013, 0.01652343198657036, 0.021905934438109398, 0.002051545539870858, -0.015634890645742416, 0.047263506799936295, 0.01632692664861679, -0.0018080512527376413, 0.03844645246863365, -0.007727737072855234, -0.055397067219018936, 0.00477590411901474, -0.042068962007761, -0.007339000701904297, -0.06195859611034393, 0.02658785879611969, -0.018539734184741974, -0.05823356285691261, 0.006745216902345419, 0.014062858186662197, -0.022264769300818443, 0.01390052866190672, 0.03704529255628586, 0.005728521384298801, 0.03355948254466057, 0.0036844518035650253, -0.035336561501026154, 0.006830653175711632, -0.022076807916164398, -0.0007374243577942252, 0.027749795466661453, -0.043196726590394974, -0.04165886715054512, -0.02161545120179653, 0.02330709435045719, 0.07245020568370819, -0.054645225405693054, 0.042752455919981, -0.004229109734296799, -0.020470600575208664, 0.07750804722309113, 0.024127285927534103, 0.027561835944652557, -0.035712484270334244, 0.01332810427993536, 0.0027830961626023054, -0.0045879436656832695, -0.055533766746520996, 0.027852319180965424, -0.03748956322669983, 0.02523796074092388, -0.043811868876218796, 0.07374884188175201, 0.004976680036634207, 0.031235607340931892, 0.04111207276582718, -0.005164640489965677, -0.02980027347803116, -0.03841228038072586, -0.03126978129148483, -0.000986258382909, 0.036327626556158066, 0.04227401316165924, -0.017924591898918152, -0.05990811809897423, -0.08694024384021759, -0.04675088822841644, 0.0012473738752305508, 0.005408134311437607, 0.059634722769260406, 0.0048485249280929565, -0.023751365020871162, -0.027117565274238586, 0.027493486180901527, -0.058951228857040405, 0.019052352756261826, 0.06329140812158585, -0.0039642564952373505, 0.03912994638085365, 0.007330457214266062, -0.03484103083610535, 0.019120702520012856, 0.03513151407241821, -0.02503291331231594, -0.01886439323425293, -0.04077032953500748, -0.0451788529753685, -0.07497912645339966, -0.05956637114286423, 0.08659850060939789, 0.0063180336728692055, 0.0010476658353582025, -0.0022555252071470022, -0.026434073224663734, 0.008791422471404076, 0.02289699949324131, 0.02344379387795925, -0.013704025186598301, 0.0025716405361890793, -0.024947475641965866, -0.0156861525028944, 0.02496456354856491, -0.05003165081143379, -0.05201378092169762, -0.0038660045247524977, -0.03851480409502983, 0.005092019215226173, -0.08946917206048965, -0.0013306745095178485, 0.0620611198246479, 0.08830723166465759, -0.05037339776754379, 0.005630269646644592, -0.04196643829345703, -0.009175887331366539, 0.05594386160373688, -0.006518809590488672, 0.04288915544748306, -0.0073988065123558044, -0.054747749119997025, 0.048152048140764236, -0.062266167253255844, -0.07737135142087936, 0.00856928713619709, -0.022333117201924324, -0.05245805159211159, -0.008885402232408524, 0.02299952320754528, 0.051193587481975555, 0.011457042768597603, -0.012730048038065434, -0.031133083626627922, 0.01758284494280815, -0.020026329904794693, -0.0682808980345726, -0.07538922131061554, -0.04237653687596321, -0.030671726912260056, -0.017958765849471092, -0.04251323267817497, 0.05317571759223938, -0.012482281774282455, -0.08044707030057907, -0.043196726590394974, 0.023477967828512192, -0.0020526135340332985, -0.0018892160151153803, -0.012097817845642567, -0.03834392875432968, 0.018505560234189034, -0.02824532799422741, -0.016959158703684807, 0.0762094110250473, -0.04200061410665512, 0.02786940708756447, -0.013208492659032345, -0.04302585497498512, -0.015634890645742416, 0.03497773036360741, -0.018163813278079033, -0.0465458407998085, 0.026092326268553734, 0.06469256430864334, 0.03349113464355469, 0.05290231853723526, -0.050646793097257614, 0.03251715749502182, 0.013481889851391315, 0.0017119351541623473, 0.07566262036561966, -0.020145941525697708, -0.02282864972949028, -0.04880136623978615, -0.046819236129522324, -0.05235552787780762, 0.0018197988392785192, -0.022777387872338295, -0.07504747807979584, 0.013088881969451904, 0.0455205999314785, -0.039505865424871445, -0.01572032831609249, 0.0031227064318954945, -0.032124146819114685, -0.014558390714228153, 0.0035221222788095474, 0.024503206834197044, 0.05273144692182541, 0.0007400942267850041, -0.017061682417988777, 0.05802851542830467, 0.002462708856910467, 0.02587019093334675, 0.022042633965611458, -0.00630949018523097, -0.03865149989724159, -0.06893021613359451, 0.004669107962399721, 0.062163643538951874, 0.032192498445510864, 0.04835709556937218, -0.026536596938967705, -0.013370822183787823, -0.013524607755243778, -0.01848847232758999, 0.024400683119893074, 0.017787892371416092, 0.0029027073178440332, 0.024332333356142044, 0.007351816166192293, 0.055875513702631, 0.017634106799960136, -0.031782399863004684, -0.05300484225153923, -0.027835233137011528, -0.011918400414288044, 0.04292333126068115, -0.034328412264585495, 0.039847612380981445, -0.0334569588303566, -0.03079133667051792, -0.04986077919602394, 0.030962210148572922, 0.027783971279859543, -0.034362584352493286, 0.03031289204955101, -0.029954059049487114, 0.013567326590418816, 0.039813440293073654, 0.0001581911346875131, 0.03437967225909233, 0.018505560234189034, 0.014806156046688557, 0.015062466263771057, -0.0013883440988138318, 0.002712610876187682, 0.01408848911523819, -0.01775371842086315, 0.03509734198451042, 0.03769461065530777, 0.04982660338282585, -0.005625997669994831, -0.036156754940748215, 0.04521302878856659, 0.007069875486195087, -0.002285428112372756, -0.051774557679891586, -0.06130927801132202, 0.0011704809730872512, -0.005450852680951357, -0.1300002783536911, -0.02879212237894535, 0.010867530480027199, -0.06711896508932114, 0.00931258499622345, 0.05327824130654335, -0.009594526141881943, 0.01648925617337227, -0.03062046505510807, 0.01845429837703705, -0.019599147140979767, -0.013473345898091793, 0.007168127689510584, -0.008868315257132053, -0.04979242756962776, -0.06486343592405319, -0.01581430807709694, 0.017958765849471092, -0.03135521709918976, -0.029954059049487114, 0.036464326083660126, 0.05437183007597923, -0.055157843977212906, -0.01619022898375988, -0.01889856718480587, 0.02072690986096859, 0.08666685223579407, -0.025853104889392853, 0.0018080512527376413, -0.008590646088123322, -0.04288915544748306, 0.047844476997852325, -0.04548642784357071, -0.0327734649181366, 0.03800218179821968, 0.005318426061421633, -0.020128853619098663, 0.05218465253710747, -0.010790637694299221, -0.05245805159211159, 0.07231350988149643, 0.008509481325745583, 0.036088403314352036, -0.03055211529135704, 0.006843468639999628, -0.051193587481975555, 0.05642230808734894, 0.0322437584400177, -0.05238969996571541, -0.016822459176182747, 0.006283859256654978, -0.0016371781239286065, -0.042410708963871, -0.013524607755243778, -0.01629275269806385, 0.017463233321905136, -0.0023537774104624987, 0.018215075135231018, 0.013191405683755875, -0.01231140922755003, 0.0013840723549947143, -0.08078881353139877, -0.005297067109495401, -0.017053138464689255, -0.007732009049504995, -0.0699896290898323, 0.01648925617337227, -0.014857418835163116, 0.029356002807617188, -0.021905934438109398, -0.03909577056765556, -0.022845737636089325, 0.0014321303460747004, -0.023836800828576088, -0.018744781613349915, 0.004912602249532938, -0.024486118927598, 0.010346367955207825, 0.017044594511389732, 0.011781701818108559, 0.010354911908507347, -0.008240356110036373, -0.023614665493369102, -0.022743213921785355, 0.019667496904730797, -0.021735060960054398, 0.014122663997113705, 0.08249754458665848, 0.008103658445179462, -0.02993697114288807, 0.0076123978942632675, 0.0210344810038805, 0.007185215130448341, -0.00912462454289198, -0.010363454930484295, 0.0033063949085772038, -0.015788676217198372, 0.01567760854959488, 0.04456371068954468, 0.02851872518658638, 0.022042633965611458, 0.020607298240065575, 0.014498584903776646, -0.005502114538103342, 0.007257835939526558, 0.005762696266174316, -0.03789965808391571, 0.024981651455163956, 0.026502421125769615, 0.03150900453329086, 0.0758676677942276, 0.03875402361154556, -0.02879212237894535, -0.01490013673901558, -0.029321828857064247, -0.007373175583779812, 0.02059021219611168, -0.039984311908483505, 0.013866354711353779, -0.06404324620962143, -0.018180901184678078, 0.0028663966804742813, -0.026160676032304764, 0.005643085110932589, -0.0037634805776178837, 0.02790358103811741, 0.017822066321969032, -0.03308103606104851, -0.03735286369919777, -0.00027793581830337644, 0.02299952320754528, -0.008325792849063873, -0.010807725600898266, 0.09110955148935318, 0.017907503992319107, 0.01883021928369999, 0.005416678264737129, -0.06107005476951599, -0.03684024512767792, 0.049313984811306, -0.003968528471887112, 0.01619022898375988, -0.016403820365667343, -0.023717189207673073, -0.003112026723101735, -0.010850443504750729, -0.005737065337598324, 0.01019258238375187, 0.0014502856647595763, -0.019599147140979767, -0.03519986569881439, 0.06807585060596466, 0.04685341194272041, 0.04053110629320145, -0.001238830154761672, -0.06086500734090805, -0.011277626268565655, 0.020846521481871605, -0.022743213921785355, -0.02855289913713932, 0.0046349335461854935, 0.0279377568513155, -0.02293117344379425, -0.047536902129650116, 0.007270651403814554, -0.024332333356142044, 0.04100954905152321, 0.03673772141337395, -0.035985879600048065, -0.028843384236097336, -0.017856242135167122, -0.013319560326635838, 0.008676082827150822, 0.0600106418132782, -0.025853104889392853, -0.016805371269583702, 0.03193618729710579, 0.014729263260960579, 0.03523403778672218, -0.04480293393135071, -0.04251323267817497, 0.036669373512268066, 0.0023217385169118643, 0.0069887107238173485, -0.015404212288558483, -0.05625143274664879, 0.03694276884198189, 0.008936664089560509, 0.0014364022063091397, 0.03220958262681961, 0.05365416035056114, -0.035985879600048065, 0.06305218487977982, -0.03092803619801998, -0.03878819942474365, -0.042752455919981, 0.010064426809549332, 0.06988710910081863, 0.018095463514328003, 0.025579707697033882, -0.08331773430109024, 0.011653547175228596, -0.01855682209134102, 0.0018358181696385145 ]
714,771
pytorch_optimizer.base.optimizer
validate_options
null
@staticmethod def validate_options(x: str, name: str, options: List[str]): if x not in options: opts: str = ' or '.join([f'\'{option}\'' for option in options]).strip() raise ValueError(f'[-] {name} {x} must be one of ({opts})')
(x: str, name: str, options: List[str])
[ 0.012256664223968983, -0.014151752926409245, 0.03849838301539421, -0.030286330729722977, -0.018599947914481163, -0.04818439483642578, 0.03532235324382782, 0.003015911439433694, 0.06583679467439651, -0.0634152963757515, 0.04018290713429451, 0.03191821277141571, 0.016582028940320015, -0.03684895485639572, -0.012037324719130993, -0.005970407743006945, 0.021600505337119102, 0.011291571892797947, 0.04467497020959854, 0.04295535013079643, 0.06822320818901062, 0.04699118807911873, 0.0016954905586317182, 0.024846723303198814, 0.025197666138410568, 0.10563366860151291, 0.046710435301065445, 0.0027132234536111355, -0.04277988150715828, 0.013528830371797085, 0.004141120705753565, 0.019863341003656387, -0.010782705619931221, 0.07127640396356583, 0.015459013171494007, -0.014064017683267593, -0.0022504182998090982, 0.07432960718870163, -0.026162756606936455, -0.016257407143712044, 0.012028551660478115, -0.01587137021124363, 0.043201010674238205, 0.00576861621811986, -0.02405710332095623, -0.036217257380485535, -0.040463659912347794, 0.08913937211036682, -0.0840156152844429, -0.05422060191631317, 0.08310316503047943, -0.018108628690242767, -0.008843748830258846, -0.033181603997945786, -0.01849466562271118, 0.046745531260967255, 0.06183605268597603, 0.11286307871341705, 0.045903269201517105, 0.018126176670193672, -0.03674367070198059, 0.0335676409304142, -0.018196364864706993, -0.07594393938779831, 0.014529015868902206, -0.03958630561828613, -0.016871556639671326, -0.02753143198788166, -0.0026496152859181166, 0.02138994075357914, 0.015274768695235252, 0.005689654033631086, -0.07411903887987137, 0.029058031737804413, 0.036252353340387344, 0.015309862792491913, -0.037901781499385834, 0.045025911182165146, 0.02702256664633751, -0.0356031097471714, -0.010791479609906673, 0.02793501690030098, -0.014388639479875565, -0.017099669203162193, 0.016169670969247818, -0.01609070971608162, -0.014397412538528442, -0.017705045640468597, 0.0671352818608284, -0.015888918191194534, -0.04435912147164345, -0.03242707997560501, -0.02098635584115982, 0.03347990661859512, -0.045061007142066956, 0.02274106815457344, 0.021144280210137367, -0.06506472080945969, -0.05699304863810539, 0.016222313046455383, -0.03579612821340561, 0.023495594039559364, 0.014906278811395168, 0.010800252668559551, 0.018529759719967842, -0.038814231753349304, -0.023162199184298515, -0.048570431768894196, -0.023600878193974495, 0.014467600733041763, -0.025969738140702248, -0.07615450769662857, 0.013520056381821632, -0.026443511247634888, 0.008984126150608063, 0.024618610739707947, -0.03604178503155708, -0.07222394645214081, -0.034392356872558594, -0.050219859927892685, 0.02128465846180916, 0.015222127549350262, -0.024215027689933777, 0.011247704736888409, 0.058116063475608826, 0.012581286020576954, -0.0411655455827713, -0.0010879214387387037, 0.01715231128036976, 0.04018290713429451, 0.054711923003196716, 0.016283728182315826, -0.029514256864786148, -0.034936316311359406, 0.030268782749772072, 0.014581657014787197, -0.02112673409283161, 0.01393241435289383, 0.005562437232583761, -0.01604684256017208, 0.019793152809143066, 0.0178805161267519, -0.0007501394138671458, 0.009115729480981827, -0.004667534027248621, 0.010352801531553268, -0.03997234255075455, -0.02054767869412899, 0.011440723203122616, 0.03481348603963852, -0.022583143785595894, 0.06401189416646957, -0.031058404594659805, -0.07022357732057571, -0.0015638871118426323, -0.005755455698817968, -0.028022751212120056, -0.06436283886432648, 0.04207799583673477, -0.04832477122545242, 0.025688985362648964, -0.04299044609069824, -0.03751574456691742, 0.014213168062269688, 0.037059519439935684, 0.009571954607963562, 0.01798579841852188, 0.020266924053430557, 0.055554185062646866, 0.049307409673929214, 0.044078368693590164, 0.0020672702230513096, 0.019056173041462898, 0.04028819128870964, 0.00029309175442904234, 0.05239570140838623, -0.028128035366535187, 0.006834603380411863, 0.010800252668559551, -0.05513305217027664, -0.007242574356496334, 0.004097252618521452, -0.006689839996397495, -0.04035837948322296, 0.041446298360824585, -0.04481534659862518, -0.007053942419588566, 0.03295349329710007, -0.015099297277629375, 0.006970593705773354, -0.020337112247943878, -0.049307409673929214, 0.014450053684413433, -0.0049526747316122055, -0.029900293797254562, -0.041832335293293, -0.014107884839177132, -0.042218372225761414, 0.05088664963841438, -0.04618402197957039, -0.026478605344891548, -0.016327595338225365, -0.01740674301981926, -0.007764601148664951, 0.005593144800513983, 0.028215769678354263, 0.02365351840853691, -0.06011643633246422, -0.014213168062269688, -0.023355217650532722, 0.027285773307085037, -0.012984869070351124, -0.047693073749542236, 0.05036023631691933, 0.013221755623817444, 0.006365218199789524, 0.057133425027132034, -0.004465742036700249, -0.033655378967523575, 0.039796870201826096, 0.10401932895183563, 0.03130406513810158, 0.10689706355333328, 0.052887022495269775, 0.07127640396356583, 0.022425221279263496, -0.003827465698122978, 0.01131789293140173, -0.014186847023665905, 0.05516814813017845, -0.01572222076356411, -0.011703929863870144, 0.01996862329542637, 0.00017149568884633482, -0.07039904594421387, -0.03251481428742409, 0.03839309886097908, -0.03346236050128937, 0.060818322002887726, -0.010414216667413712, -0.00504479743540287, 0.030847838148474693, -0.024776535108685493, -0.010414216667413712, 0.04309573024511337, -0.023162199184298515, -0.02921595610678196, 0.004099445883184671, -0.011019592173397541, 0.01371307484805584, -0.038814231753349304, 0.058116063475608826, -0.01312524639070034, -0.000019946141037507914, -0.03170764818787575, 0.02837369404733181, -0.034638017416000366, -0.01067742332816124, 0.04737722501158714, -0.010177330113947392, -0.011396855115890503, 0.04267459735274315, -0.006474887486547232, 0.03419933840632439, -0.05794059485197067, -0.024548422545194626, 0.036252353340387344, 0.0035072308965027332, -0.010545819997787476, 0.034164246171712875, 0.005470314994454384, 0.0001890428102342412, -0.003750697011128068, 0.022688427940011024, 0.008527901023626328, 0.04997419938445091, 0.01977560482919216, -0.02007390558719635, 0.009905349463224411, 0.017389196902513504, 0.025180118158459663, 0.045797985047101974, -0.00016847977531142533, 0.030830292031168938, -0.017301460728049278, 0.010800252668559551, 0.011159968562424183, -0.0634152963757515, -0.03839309886097908, 0.04628930613398552, -0.02702256664633751, -0.007602290250360966, 0.06874962151050568, -0.021688241511583328, -0.012712889350950718, 0.021144280210137367, 0.1356743425130844, -0.062467750161886215, 0.020600320771336555, -0.04972853884100914, 0.006303803063929081, 0.016731180250644684, -0.038007065653800964, -0.00985270831733942, -0.03467310965061188, -0.06001115217804909, -0.006882857996970415, -0.05232551321387291, 0.03546272963285446, 0.017599761486053467, -0.05916889011859894, 0.04471006244421005, -0.029496710747480392, -0.01285326573997736, 0.08913937211036682, 0.06955678761005402, 0.010010632686316967, -0.0028075394220650196, -0.05436098203063011, 0.02237257920205593, -0.015222127549350262, 0.013151567429304123, -0.013169114477932453, -0.04516628757119179, -0.07257489114999771, 0.002388601889833808, -0.025495966896414757, 0.019003532826900482, 0.002976430347189307, 0.008378750644624233, -0.05737908557057381, -0.04972853884100914, 0.01221279613673687, -0.01140562817454338, 0.012572512030601501, -0.002331573748961091, 0.034164246171712875, 0.013634112663567066, 0.04032328352332115, 0.038112346082925797, 0.020161641761660576, 0.01645919866859913, -0.040568944066762924, -0.0031431280076503754, -0.011905721388757229, -0.018564853817224503, -0.013476189225912094, 0.028689542785286903, 0.06313454359769821, -0.0016296888934448361, -0.011256477795541286, 0.024583516642451286, 0.015915239229798317, -0.03863875940442085, 0.06348548084497452, 0.002719803713262081, -0.021986542269587517, 0.03212877735495567, 0.008694598451256752, -0.007918138056993484, 0.08829711377620697, -0.08176958560943604, 0.01645042560994625, -0.0056457859463989735, -0.04860552400350571, -0.034602921456098557, 0.0411655455827713, -0.04625421017408371, 0.012239117175340652, -0.029128219932317734, 0.014529015868902206, -0.0023337670136243105, 0.0167838204652071, -0.08829711377620697, 0.02138994075357914, 0.0329008512198925, 0.05078136920928955, 0.026390869170427322, -0.028689542785286903, -0.03604178503155708, -0.009501766413450241, 0.020284472033381462, 0.04021799936890602, 0.05794059485197067, -0.04576289281249046, -0.031391799449920654, -0.024478234350681305, 0.02186371199786663, 0.03256745636463165, 0.03140934556722641, 0.004064351785928011, -0.030795197933912277, 0.0424991250038147, 0.023934273049235344, -0.05783531069755554, -0.017898064106702805, -0.02675935998558998, -0.01842447742819786, -0.049412693828344345, 0.018477117642760277, 0.012379493564367294, -0.009150823578238487, 0.0013971894513815641, 0.039726682007312775, -0.031233875080943108, 0.037866685539484024, 0.009747426025569439, 0.0178015548735857, -0.014564109966158867, 0.06211680918931961, -0.01747693307697773, -0.03381330147385597, 0.006632811855524778, -0.03874404355883598, -0.0708552747964859, 0.004641213454306126, -0.02453087456524372, 0.04042856767773628, -0.009291200898587704, -0.020302018150687218, 0.005114985629916191, -0.06288888305425644, 0.00773389358073473, 0.10682687163352966, 0.029988029971718788, 0.005189560819417238, 0.000028068539904779755, -0.007317149545997381, 0.026741812005639076, -0.021038997918367386, -0.0806465670466423, 0.031391799449920654, -0.007163612172007561, -0.0931401178240776, 0.037164803594350815, -0.0320410430431366, -0.03404141589999199, -0.0033778208307921886, -0.004211308900266886, 0.014651846140623093, -0.008273467421531677, -0.019880887120962143, -0.014748355373740196, 0.0438678003847599, 0.006488048005849123, -0.04292025789618492, -0.045131195336580276, -0.0074004982598125935, -0.0015485334442928433, -0.036287445574998856, -0.023127105087041855, 0.04523647576570511, -0.03542763739824295, -0.036111973226070404, 0.02186371199786663, 0.0032177031971514225, -0.01435354445129633, 0.019512398168444633, -0.04032328352332115, 0.011484590359032154, 0.05239570140838623, -0.002851407043635845, 0.01217770203948021, 0.015397598966956139, -0.021232016384601593, 0.09475445002317429, 0.04113044962286949, 0.05078136920928955, 0.017898064106702805, 0.04120064154267311, -0.08183977007865906, -0.006404699292033911, 0.02324993535876274, 0.016906650736927986, 0.006913565564900637, 0.028794825077056885, 0.03934064507484436, 0.0769265815615654, 0.025969738140702248, -0.047482509166002274, 0.011247704736888409, 0.018635042011737823, 0.007589129731059074, 0.03260255232453346, 0.00866827741265297, -0.04527157172560692, 0.007589129731059074, -0.013809584081172943, -0.03737536817789078, 0.019512398168444633, -0.001970760989934206, -0.05955492705106735, 0.00018547855142969638, -0.03167255222797394, 0.04628930613398552, -0.027443697676062584, -0.014432506635785103, -0.03200594708323479, 0.046745531260967255, 0.01842447742819786, 0.04916703328490257, 0.012967322021722794, -0.0244606863707304, -0.02533804252743721, 0.058993421494960785, -0.012414587661623955, -0.033725567162036896, 0.034901224076747894, -0.040604036301374435, -0.04551723226904869, -0.09019219875335693, -0.023565784096717834, 0.05355381220579147, 0.02979501150548458, 0.06727565824985504, 0.00801026076078415, -0.04481534659862518, 0.02270597405731678, 0.020337112247943878, 0.015511655248701572, -0.0691707506775856, 0.001839157659560442, -0.03286575898528099, -0.031830478459596634, 0.011142421513795853, 0.0076329973526299, -0.03161991015076637, -0.03283066302537918, 0.03839309886097908, -0.0043780067935585976, 0.025969738140702248, 0.035199522972106934, 0.026004832237958908, 0.011203836649656296, -0.027268225327134132, 0.03100576251745224, -0.05794059485197067, 0.05885304510593414, -0.016608349978923798, 0.020775791257619858, 0.04123573377728462, 0.040568944066762924, 0.036392729729413986, -0.019986171275377274, -0.02175842970609665, -0.004130153451114893, 0.023723706603050232, 0.01930183358490467, 0.014107884839177132, -0.041656866669654846, -0.02702256664633751, 0.051939476281404495, 0.014344771392643452, -0.0011592066148295999, -0.006316963583230972, -0.09145559370517731, -0.0020168221089988947, 0.05225532501935959, 0.012625153176486492, -0.004114799667149782, -0.03860366716980934, -0.06601227074861526, -0.007084649987518787, -0.04439421743154526, -0.03902479633688927, -0.023671066388487816, -0.0031519015319645405, -0.0357610322535038, 0.06945150345563889, 0.03351500257849693, 0.02135484665632248, -0.03251481428742409, -0.0013664819998666644, 0.0007545261760242283, -0.05846700817346573, -0.004645600449293852, 0.04028819128870964, 0.0335676409304142, -0.04706137999892235, 0.026057474315166473, -0.0553436204791069, -0.0008905163849703968, -0.053764376789331436, -0.039867058396339417, 0.03279556706547737, 0.00959827471524477, 0.051097214221954346, -0.044078368693590164, -0.029093125835061073, 0.061520203948020935, -0.00917714461684227, 0.0195650402456522, 0.041832335293293, -0.007479460444301367, 0.005031636916100979, 0.031391799449920654, 0.04706137999892235, -0.020459942519664764, 0.015380050987005234, 0.011765344999730587, -0.031830478459596634, 0.007545262109488249, 0.01555552240461111, 0.017705045640468597, 0.048500243574380875, 0.041411206126213074, -0.03667348250746727, -0.005593144800513983, -0.034129150211811066, -0.05832662805914879, 0.004016097169369459, -0.007698799483478069, 0.006584557238966227, -0.004022677429020405, -0.0005129791097715497, -0.013914867304265499, -0.03425198048353195, 0.011484590359032154, 0.025197666138410568, 0.009378936141729355, -0.018038440495729446, 0.01460797805339098, -0.036392729729413986, 0.0022251943591982126, -0.04807911068201065, -0.024618610739707947, -0.038077253848314285, 0.012028551660478115, -0.09096427261829376, -0.09805331379175186, 0.004996542818844318, -0.06295906752347946, 0.01305505819618702, -0.0384632907807827, -0.046710435301065445, 0.007102197036147118, 0.004759656731039286, 0.003583999350667, -0.05829153582453728, 0.02503974176943302, -0.012528643943369389, -0.016283728182315826, -0.044078368693590164, 0.038989704102277756, -0.04306063428521156, 0.0634152963757515, -0.07215376198291779, -0.029637087136507034, 0.027987657114863396, -0.020337112247943878, -0.0009426093893125653, 0.049237221479415894, -0.03326934203505516, -0.013958734460175037, 0.0583617240190506, 0.03941083326935768, 0.007396111264824867, -0.038708947598934174, 0.00208372063934803, -0.014757128432393074, 0.016731180250644684, 0.01761730946600437, 0.08254165947437286, 0.033216699957847595, -0.03147953376173973, -0.04463987424969673, -0.019179003313183784, -0.06394170969724655, 0.012704115360975266, 0.03009331226348877, 0.0021089445799589157, -0.0712062194943428, -0.024478234350681305, 0.03283066302537918, -0.01074761152267456, 0.008777947165071964, -0.015380050987005234, -0.03590140864253044, 0.009571954607963562, -0.00037835980765521526, 0.035041600465774536, -0.030444255098700523, 0.0017514219507575035, -0.02921595610678196, -0.02753143198788166, -0.039621397852897644, 0.009405257180333138, 0.04814929887652397, 0.0305319894105196, -0.008466485887765884, -0.04899156093597412, 0.005268523003906012, -0.029093125835061073, 0.050991933792829514, 0.006145879160612822, -0.023425405845046043, -0.01597665436565876, -0.006492434535175562, 0.06520510464906693, 0.02854916639626026, 0.019179003313183784, -0.005347485188394785, -0.01378326304256916, 0.057203613221645355, -0.021477675065398216, -0.04642968252301216, -0.054641734808683395, -0.026039928197860718, 0.06425755470991135, -0.012116286903619766, 0.013467415235936642, 0.030268782749772072, 0.008185732178390026, -0.017968252301216125, -0.009335068054497242, -0.038042157888412476, 0.01251987088471651, -0.012037324719130993, 0.021196922287344933, -0.013230528682470322, 0.0068389903753995895, 0.04197271168231964, -0.01736287586390972, -0.03762102872133255, -0.01937202177941799, 0.006273095495998859, -0.06548585742712021, -0.06987263262271881, 0.019810698926448822, -0.02065296098589897, -0.008422617800533772, 0.0068389903753995895, 0.006751254666596651, 0.05485229939222336, 0.005163240246474743, -0.026022380217909813, -0.015932785347104073, 0.04793873429298401, -0.008365590125322342, 0.04463987424969673, 0.017319008708000183, 0.04035837948322296, 0.04706137999892235, -0.05211494863033295, -0.001892895670607686, 0.033655378967523575, 0.029707275331020355, 0.041446298360824585, -0.039691586047410965, -0.01963522844016552, -0.004141120705753565, -0.057133425027132034, -0.00687408447265625, 0.07461035996675491, 0.051062121987342834, -0.011151195503771305, -0.04302554205060005, 0.011054686270654202, -0.016476746648550034, 0.001388415927067399, -0.023635972291231155, 0.06334510445594788, 0.04537685588002205, 0.007102197036147118, -0.0031694488134235144, -0.039902154356241226, 0.001908249338157475, 0.03165500611066818 ]
714,772
pytorch_optimizer.base.optimizer
validate_positive
null
@staticmethod def validate_positive(x: Union[float, int], name: str): if x <= 0: raise ValueError(f'[-] {name} must be positive')
(x: Union[float, int], name: str)
[ 0.0139851039275527, -0.031333040446043015, 0.013389047235250473, 0.04053189232945442, -0.021653780713677406, -0.02055063098669052, 0.0032582979183644056, 0.010497724637389183, -0.00572481844574213, -0.052773308008909225, 0.02994520403444767, 0.03323686495423317, 0.0662602111697197, -0.04697286710143089, -0.02853957563638687, 0.0054534790106117725, 0.017997369170188904, 0.02754318155348301, 0.028148135170340538, 0.02900218777358532, 0.011396258138120174, 0.02063959464430809, 0.013780487701296806, -0.022632382810115814, 0.011405155062675476, 0.0855475589632988, 0.03643956035375595, 0.04704403877258301, -0.03611928969621658, -0.06508589535951614, -0.060388606041669846, -0.014047378674149513, 0.02336188592016697, 0.053520601242780685, -0.017107732594013214, -0.010150766000151634, -0.05672329664230347, -0.008620589040219784, -0.09743312001228333, 0.009643672034144402, 0.02453620731830597, -0.011769906617701054, -0.021119998767971992, 0.020088018849492073, -0.026404445990920067, -0.03215150535106659, -0.0024554000701755285, 0.03336141258478165, -0.08682863414287567, -0.007295028772205114, 0.03864585980772972, -0.011930041015148163, 0.04455305263400078, -0.012428238056600094, -0.024002423509955406, 0.04953502491116524, 0.06266608089208603, 0.0615985132753849, 0.009981734678149223, 0.013780487701296806, -0.014260891824960709, 0.05853815749287605, -0.03403753787279129, -0.0808502733707428, -0.008273630402982235, -0.022881479933857918, -0.007330614607781172, -0.053200334310531616, -0.014741295948624611, 0.03836117684841156, 0.02642223797738552, 0.01955423504114151, -0.0357278473675251, 0.05038907751441002, 0.06704309582710266, -0.022347697988152504, -0.022525625303387642, 0.028966601938009262, -0.025372466072440147, -0.008985340595245361, 0.025799492374062538, -0.03547874838113785, -0.009741532616317272, -0.0007889973931014538, -0.03868144750595093, -0.01119164191186428, -0.022685760632157326, -0.0275075975805521, 0.062452565878629684, 0.02791683003306389, -0.061278242617845535, -0.00627639377489686, -0.029820654541254044, -0.03211592137813568, 0.043271977454423904, 0.05942779779434204, 0.03893054276704788, -0.07971153408288956, -0.05181249603629112, 0.03651072829961777, 0.02410918101668358, 0.061135899275541306, 0.0016891994746401906, 0.0048796627670526505, 0.002711170818656683, -0.01969657838344574, 0.025924041867256165, -0.05113637447357178, 0.017926199361681938, 0.015070461668074131, -0.00288020190782845, -0.07693586498498917, 0.010711237788200378, -0.008433764800429344, -0.045620620250701904, -0.03583460673689842, 0.017018768936395645, 0.013050984591245651, -0.04871656000614166, 0.010462138801813126, 0.04757782071828842, 0.01577327586710453, -0.015461903065443039, 0.00414348766207695, 0.04480215162038803, 0.04498007893562317, -0.007553023751825094, 0.015666520223021507, -0.0005993933882564306, 0.05195483937859535, 0.02218756265938282, -0.027721108868718147, -0.020176982507109642, 0.019536443054676056, -0.02279251627624035, 0.026831472292542458, 0.04494449496269226, 0.05298681929707527, 0.002012805314734578, 0.01255278754979372, 0.028237098827958107, 0.0128107825294137, 0.01382496953010559, 0.01534624956548214, 0.04433954134583473, 0.03793415054678917, -0.030923806130886078, 0.02144026756286621, -0.04352107644081116, 0.02095986343920231, -0.00813128799200058, 0.051919255405664444, -0.01442992314696312, -0.0014089636970311403, 0.029678313061594963, -0.047969263046979904, 0.010782408528029919, -0.07843045890331268, 0.02241886965930462, 0.0024042457807809114, -0.006890243850648403, 0.01603127084672451, 0.0030714741442352533, -0.012419342063367367, 0.005698129069060087, -0.004701734986156225, -0.006547733210027218, 0.04095891863107681, 0.007183824200183153, 0.042382337152957916, 0.002149587031453848, -0.008273630402982235, -0.0029736137948930264, 0.04640350118279457, 0.03967783972620964, -0.01534624956548214, -0.018415499478578568, 0.029180115088820457, 0.018789147958159447, -0.0038632515352219343, 0.039179641753435135, 0.02651120163500309, -0.057043567299842834, -0.03583460673689842, 0.05419672653079033, -0.030051959678530693, -0.04622557386755943, 0.041208017617464066, -0.01583554968237877, -0.008024531416594982, -0.021458061411976814, 0.021333511918783188, 0.02289927378296852, -0.01829094998538494, 0.002840168308466673, -0.019358515739440918, -0.029126737266778946, -0.02942921407520771, 0.07024578750133514, -0.03295217826962471, 0.0158622395247221, 0.03547874838113785, 0.018646804615855217, 0.002019477542489767, -0.01434095948934555, -0.016369333490729332, -0.01857563480734825, -0.03398415818810463, -0.05138547345995903, -0.05238186568021774, -0.007308373227715492, 0.01797957718372345, -0.03167109936475754, 0.041243601590394974, -0.008918617852032185, -0.02232990600168705, 0.03215150535106659, -0.034535735845565796, 0.0190382469445467, 0.0540543831884861, 0.106258325278759, 0.011930041015148163, 0.06561967730522156, -0.007335062604397535, 0.13123935461044312, 0.005355618894100189, 0.003336141351610422, -0.014394337311387062, -0.030763670802116394, 0.016912011429667473, 0.013264497742056847, -0.021707158535718918, -0.014367648400366306, -0.03254294767975807, -0.0869709774851799, -0.0012199156917631626, 0.037827394902706146, -0.010702340863645077, -0.009367885068058968, -0.02839723415672779, -0.018486671149730682, 0.014723503030836582, -0.05063817650079727, 0.059676893055438995, 0.02934025041759014, -0.041065674275159836, 0.002090648515149951, 0.03626163303852081, -0.05757734924554825, 0.04014045000076294, -0.055726904422044754, 0.010497724637389183, -0.05149222910404205, -0.0014745744410902262, 0.007811018731445074, 0.021920671686530113, -0.0700678601861, -0.041635043919086456, 0.062274638563394547, -0.001223251805640757, -0.013193327002227306, -0.02722291275858879, -0.017588136717677116, 0.016022374853491783, -0.05419672653079033, -0.035229653120040894, 0.02731187641620636, -0.03389519453048706, 0.04188414290547371, 0.025123367086052895, -0.010257522575557232, 0.0025488119572401047, 0.01732124574482441, 0.0030892668291926384, 0.04437512531876564, 0.00826028548181057, 0.03606591001152992, 0.002493209671229124, 0.030301058664917946, 0.0282015148550272, 0.037115681916475296, -0.013077673502266407, 0.0011976746609434485, 0.045193593949079514, -0.0188069399446249, 0.021511439234018326, 0.028450611978769302, -0.03231164067983627, -0.057933203876018524, 0.003115955973044038, -0.02044387347996235, 0.004414827097207308, 0.0601750910282135, -0.025123367086052895, -0.001640269416384399, 0.015399628318846226, 0.06505030393600464, -0.038859374821186066, 0.0077798813581466675, -0.018913697451353073, 0.04643908515572548, 0.02321954257786274, 0.012410445138812065, -0.043129634112119675, -0.0005799325299449265, -0.06330661475658417, -0.017561446875333786, -0.007090412080287933, -0.044446296989917755, 0.030532365664839745, -0.025585979223251343, 0.0237355325371027, -0.025692736729979515, -0.018504463136196136, 0.04921475425362587, 0.06529940664768219, 0.05334267392754555, -0.021191168576478958, -0.02487426996231079, 0.03341479226946831, 0.030140923336148262, -0.007553023751825094, -0.013967311009764671, -0.005693681072443724, -0.07102867215871811, -0.027347462251782417, -0.04743548110127449, 0.007143790367990732, -0.02647561766207218, -0.000056957662309287116, -0.017250074073672295, -0.01043544989079237, 0.07501424849033356, -0.051598984748125076, -0.03658189997076988, 0.02496323361992836, 0.03615487366914749, 0.04932151362299919, 0.019020453095436096, 0.04953502491116524, 0.02505219727754593, 0.00966146495193243, -0.0005387868150137365, 0.016840841621160507, -0.004844076931476593, -0.0020039088558405638, -0.035460956394672394, -0.008611693046987057, 0.11536820977926254, 0.02754318155348301, -0.026528995484113693, 0.023717740550637245, -0.03355713188648224, -0.04377017170190811, 0.03747154027223587, 0.031653307378292084, 0.05868050083518028, -0.021226754412055016, -0.004692838527262211, -0.008380386978387833, 0.07999622076749802, -0.09430159628391266, 0.0046350122429430485, -0.018646804615855217, -0.07480073720216751, -0.0427737794816494, 0.08825206011533737, -0.038432348519563675, 0.03097718395292759, 0.02891322411596775, 0.013033191673457623, -0.0018404378788545728, -0.03159993141889572, -0.055406633764505386, -0.058787256479263306, 0.07465839385986328, 0.06789714843034744, 0.017161110416054726, -0.040496308356523514, -0.04597647488117218, 0.027863452211022377, -0.025657150894403458, -0.023575399070978165, 0.03403753787279129, 0.011058196425437927, -0.035283029079437256, -0.03079925663769245, 0.0060006058774888515, -0.02585287019610405, 0.024411657825112343, 0.047079626470804214, -0.03352154791355133, 0.057185910642147064, -0.0036208252422511578, -0.02058621495962143, -0.04433954134583473, 0.03864585980772972, -0.02496323361992836, -0.037115681916475296, 0.03138641640543938, 0.004937489051371813, 0.012205828912556171, -0.04288053512573242, -0.0061963265761733055, -0.007348407059907913, 0.030425608158111572, 0.0024376071523875, -0.005079830996692181, -0.00949243362993002, 0.08433765172958374, 0.038432348519563675, -0.000393942667869851, -0.014074067585170269, -0.018451085314154625, -0.0012087952345609665, -0.033396996557712555, -0.01372710894793272, 0.000623302417807281, -0.0465458445250988, -0.05423231050372124, 0.0008740689954720438, -0.046367913484573364, 0.045442692935466766, 0.04554944857954979, 0.024322694167494774, -0.005551339127123356, -0.017196696251630783, 0.0002157371345674619, 0.010097387246787548, 0.04989087954163551, -0.061135899275541306, -0.009874978102743626, -0.02293485961854458, -0.101561039686203, 0.06366246938705444, -0.023468641564249992, -0.05259538069367409, -0.012784093618392944, -0.05433906987309456, 0.05683005601167679, 0.09003133326768875, -0.020568422973155975, 0.046047646552324295, 0.03423325717449188, -0.0017069922760128975, -0.03501613810658455, -0.01273961178958416, 0.02227652631700039, -0.008011187426745892, -0.033681683242321014, 0.0007295028772205114, 0.02275693230330944, 0.028521783649921417, -0.03421546518802643, 0.007713158614933491, -0.020248154178261757, -0.07736289501190186, -0.019483065232634544, 0.0021173376590013504, -0.051207542419433594, 0.00800229050219059, 0.040176037698984146, -0.0719183087348938, -0.03925081342458725, -0.009483537636697292, 0.07038813084363937, 0.037720635533332825, -0.02934025041759014, 0.0036208252422511578, 0.009714843705296516, -0.03280983865261078, -0.023895667865872383, 0.006618904415518045, -0.04775575175881386, -0.029447006061673164, 0.04085216298699379, -0.011360673233866692, 0.03647514432668686, 0.02547922357916832, 0.0021851726341992617, 0.0338418185710907, -0.004256916232407093, -0.007633091416209936, 0.07273677736520767, -0.004428171552717686, 0.013771590776741505, -0.04818277433514595, 0.030532365664839745, -0.009305610321462154, -0.0016002357006072998, -0.008069013245403767, -0.05391204357147217, 0.03620825335383415, 0.024429449811577797, -0.004352552350610495, -0.056616540998220444, -0.014990394935011864, 0.008091254159808159, 0.0023397470358759165, 0.01146742980927229, 0.011369569227099419, 0.053662944585084915, -0.059214282780885696, -0.027863452211022377, 0.038894958794116974, -0.0035985843278467655, 0.04907241463661194, 0.005755955819040537, 0.003140420885756612, -0.04697286710143089, -0.04113684594631195, 0.06380481272935867, 0.022258734330534935, 0.055406633764505386, 0.017250074073672295, 0.00014623418974224478, 0.010408760979771614, 0.021404681727290154, 0.015364042483270168, -0.013771590776741505, 0.021458061411976814, -0.01358476746827364, -0.021742744371294975, -0.007633091416209936, 0.011547496542334557, 0.01485694944858551, -0.05024673417210579, -0.04024720937013626, -0.0103375893086195, 0.03811207786202431, 0.031955786049366, 0.0025488119572401047, 0.026973813772201538, 0.014963706023991108, -0.03304114192724228, 0.018397707492113113, -0.05683005601167679, -0.00894530676305294, -0.06444535404443741, 0.011422947980463505, 0.019732164219021797, 0.03658189997076988, 0.042702607810497284, 0.0024731927551329136, 0.03417987748980522, -0.015702104195952415, -0.03563888370990753, 0.03953549638390541, -0.013291186653077602, -0.01499929092824459, -0.04423278570175171, -0.014038482680916786, -0.011164953000843525, -0.0010998145444318652, 0.05583366006612778, 0.005364515352994204, -0.02519453875720501, 0.06270166486501694, 0.012410445138812065, 0.04672377184033394, -0.010960335843265057, -0.07700703293085098, 0.09102772921323776, -0.06953407824039459, -0.13337448239326477, -0.040176037698984146, -0.005480167921632528, -0.030051959678530693, 0.037862978875637054, 0.004586081951856613, 0.017819441854953766, -0.04974853992462158, 0.0286819189786911, 0.005471271462738514, -0.029785068705677986, 0.01069344487041235, 0.0042769331485033035, 0.0020639593712985516, -0.05138547345995903, 0.004125694744288921, -0.0004592754412442446, -0.02238328382372856, -0.07658001035451889, -0.058965183794498444, 0.0065788705833256245, 0.029073359444737434, -0.0014556696405634284, -0.0423111692070961, -0.027810074388980865, 0.05832464620471001, 0.02270355261862278, -0.000998062314465642, 0.03672424331307411, -0.00037976406747475266, -0.046189986169338226, 0.020906485617160797, 0.004377017263323069, -0.010444345884025097, 0.050460249185562134, 0.014972602017223835, -0.016271473839879036, 0.02590624801814556, 0.010453242808580399, 0.014616746455430984, 0.02430490031838417, 0.07295028865337372, 0.01160977128893137, -0.017926199361681938, -0.05035349354147911, -0.06430301070213318, 0.00966146495193243, -0.0072416504845023155, -0.016191406175494194, -0.01635153964161873, -0.010969232767820358, -0.004986419342458248, -0.006641145329922438, 0.00406564399600029, 0.00848714355379343, 0.026119761168956757, -0.04085216298699379, -0.019821127876639366, -0.03896613046526909, 0.004150159657001495, 0.012463823892176151, -0.014963706023991108, 0.02341526374220848, -0.017792753875255585, -0.04259585216641426, -0.060708872973918915, -0.0023909013252705336, 0.005933883134275675, -0.006770142819732428, -0.06743453443050385, -0.06213229522109032, -0.0010297555709257722, 0.006320875603705645, 0.016698498278856277, -0.0035919121000915766, 0.03455352783203125, -0.005489064380526543, 0.009350092150270939, -0.03377064689993858, 0.010844683274626732, -0.0018026282778009772, 0.01595120318233967, -0.06053094565868378, -0.0446598120033741, 0.0535917729139328, -0.033681683242321014, -0.006142948288470507, 0.06843093037605286, -0.02035490982234478, -0.038147661834955215, 0.06234580650925636, 0.0535917729139328, -0.010817994363605976, -0.008593900129199028, 0.031706687062978745, -0.027205120772123337, -0.019678784534335136, -0.020515045151114464, 0.04530034959316254, 0.07722055166959763, 0.007317269686609507, -0.007944464683532715, -0.02298823744058609, -0.08156198263168335, 0.02585287019610405, -0.053200334310531616, -0.016938701272010803, 0.0237355325371027, 0.007383992429822683, 0.016111338511109352, 0.004599426873028278, 0.006561077665537596, 0.03270307928323746, 0.008077910169959068, -0.011858870275318623, -0.01746358722448349, 0.05188366770744324, -0.02129792608320713, -0.005284447688609362, -0.011974522843956947, 0.02708057127892971, -0.04387693107128143, -0.044446296989917755, 0.013691524043679237, 0.009599190205335617, 0.0035518785007297993, -0.019109416753053665, -0.020337117835879326, -0.03398415818810463, 0.0020506149157881737, 0.012508305720984936, -0.009634776040911674, -0.015755483880639076, 0.05334267392754555, 0.04814719036221504, 0.031279660761356354, -0.004052299540489912, -0.03540758043527603, -0.0103375893086195, 0.09835834056138992, -0.03252515196800232, -0.03097718395292759, -0.010159661993384361, 0.01027531549334526, 0.0564030297100544, -0.09088538587093353, -0.01255278754979372, 0.000015507843272644095, -0.013442425057291985, -0.04387693107128143, -0.013602560386061668, 0.022543419152498245, 0.009705946780741215, 0.05113637447357178, 0.024144766852259636, -0.01608464866876602, -0.001645829644985497, 0.011947833932936192, 0.0030714741442352533, -0.015052669681608677, -0.04949944093823433, -0.04690169915556908, -0.0531291626393795, -0.09572501480579376, 0.020710764452815056, -0.02905556559562683, 0.03764946758747101, 0.058360230177640915, -0.025069989264011383, 0.018593426793813705, 0.04989087954163551, -0.006178533658385277, -0.012276999652385712, 0.027988001704216003, 0.0000883382381289266, 0.04199089854955673, 0.05853815749287605, 0.05341384559869766, 0.008064565248787403, -0.09707726538181305, 0.03318348526954651, 0.05142105743288994, 0.014607850462198257, 0.07501424849033356, -0.036830998957157135, 0.006298634689301252, 0.022579003125429153, -0.047399893403053284, -0.013860554434359074, 0.041528284549713135, 0.03417987748980522, -0.03704451397061348, -0.019518651068210602, -0.005804885644465685, -0.018273157998919487, -0.00146345398388803, -0.04871656000614166, 0.03145758807659149, -0.01332677248865366, 0.019376307725906372, -0.032044749706983566, 0.023664362728595734, -0.024607377126812935, 0.06690075248479843 ]
714,773
pytorch_optimizer.base.optimizer
validate_range
null
@staticmethod def validate_range(x: float, name: str, low: float, high: float, range_type: str = '[)'): if range_type == '[)' and not low <= x < high: raise ValueError(f'[-] {name} must be in the range [{low}, {high})') if range_type == '[]' and not low <= x <= high: raise ValueError(f'[-] {name} must be in the range [{low}, {high}]') if range_type == '(]' and not low < x <= high: raise ValueError(f'[-] {name} must be in the range ({low}, {high}]') if range_type == '()' and not low < x < high: raise ValueError(f'[-] {name} must be in the range ({low}, {high})')
(x: float, name: str, low: float, high: float, range_type: str = '[)')
[ 0.02251611463725567, -0.01847519911825657, 0.00739264814183116, -0.018920384347438812, -0.04078584164381027, -0.00801762007176876, -0.010299195535480976, -0.03260127827525139, -0.03506692126393318, -0.08513317257165909, 0.06629839539527893, 0.018646424636244774, 0.04379940778017044, -0.06766819953918457, -0.014554142020642757, 0.02285856381058693, 0.026796745136380196, -0.03063218854367733, 0.027875462546944618, 0.04410761222243309, -0.016608845442533493, 0.012371021322906017, 0.0035358003806322813, -0.024742042645812035, 0.019314203411340714, 0.09177670627832413, 0.005466364789754152, 0.0018834772054105997, -0.01332132052630186, -0.0654422715306282, -0.05684676766395569, -0.025752270594239235, 0.02451944909989834, 0.056744031608104706, 0.02527284063398838, -0.03640247881412506, 0.005534854717552662, -0.0015249744756147265, -0.045648638159036636, 0.05835355073213577, -0.02624882385134697, -0.035854559391736984, -0.04653900861740112, 0.005329384468495846, 0.012910380028188229, -0.045614395290613174, 0.011660436168313026, 0.0057060797698795795, -0.07362683862447739, -0.020358676090836525, 0.05215519666671753, -0.021625742316246033, 0.009100619703531265, -0.018372464925050735, -0.026522783562541008, 0.05955212563276291, 0.05612762272357941, 0.06657236069440842, 0.07164062559604645, 0.008184564299881458, 0.008146039210259914, 0.04451855272054672, -0.042600829154253006, -0.09020143747329712, 0.0029943007975816727, 0.01430586539208889, -0.014751051552593708, -0.04715542122721672, -0.0072471066378057, 0.049621064215898514, 0.042292624711990356, 0.03763530030846596, -0.03561484068632126, 0.03477583825588226, 0.0472581572830677, 0.00892939418554306, -0.058045342564582825, 0.05962061509490013, 0.021437395364046097, -0.024382468312978745, 0.041265275329351425, 0.042292624711990356, 0.02563241310417652, -0.006232597399502993, 0.016677334904670715, -0.014477090910077095, -0.04917587712407112, 0.021334661170840263, 0.055990640074014664, 0.012054254300892353, -0.06441491842269897, 0.012884696945548058, -0.031779397279024124, -0.021317537873983383, 0.028080932796001434, 0.03893661126494408, 0.022002438083291054, -0.07342136651277542, -0.017619073390960693, 0.0024057140108197927, 0.019742265343666077, 0.056675542145967484, -0.002733182394877076, 0.01702834665775299, -0.0072428262792527676, -0.06064796820282936, 0.013227147050201893, -0.02186545915901661, -0.037840768694877625, -0.0016994101461023092, -0.0032853835728019476, -0.044895246624946594, 0.03845718130469322, 0.003739130450412631, -0.044244591146707535, 0.07348985970020294, -0.0075553120113909245, 0.006164107471704483, -0.027378909289836884, -0.05489480122923851, 0.05345650762319565, -0.018303973600268364, -0.03354301676154137, 0.027687115594744682, 0.04982653260231018, 0.0646546334028244, -0.02732754312455654, 0.0292966328561306, -0.008441402576863766, 0.013047360815107822, 0.01712252013385296, -0.014442846179008484, -0.05475781857967377, 0.01885189488530159, 0.0010086235124617815, 0.03801199421286583, -0.03770378977060318, 0.025700902566313744, 0.005920111201703548, -0.013261391781270504, 0.01570991240441799, 0.024091385304927826, 0.0007261018618009984, -0.0188861396163702, 0.016223587095737457, 0.0188005268573761, -0.022310644388198853, 0.06232597306370735, 0.012234040535986423, 0.034792959690093994, -0.05900420621037483, 0.05355924367904663, 0.008548418059945107, -0.04198442026972771, 0.044278837740421295, -0.033474527299404144, 0.001122595276683569, -0.05424414575099945, 0.046607501804828644, -0.0031398420687764883, -0.03162529319524765, 0.01479385793209076, -0.014922276139259338, -0.021625742316246033, 0.01684856042265892, 0.034176550805568695, 0.010333441197872162, 0.005008337087929249, 0.01699410192668438, 0.04503222927451134, -0.02017032913863659, 0.006108459085226059, -0.008274458348751068, 0.04147074371576309, 0.015025011263787746, -0.00006424289313144982, -0.009460192173719406, 0.03794350475072861, -0.0016020258190110326, -0.006493716035038233, 0.014049028046429157, 0.0027888305485248566, -0.03225882723927498, -0.03097463957965374, -0.0028487592935562134, -0.047977302223443985, -0.022618848830461502, 0.0018396007362753153, -0.05420989915728569, 0.014348671771585941, -0.053011324256658554, -0.0036920434795320034, -0.010068042203783989, -0.005299420095980167, 0.0327211357653141, -0.005517732352018356, -0.032190337777137756, 0.044244591146707535, 0.008458524942398071, -0.007773624267429113, 0.03527239337563515, 0.048662204295396805, 0.019793633371591568, -0.007161494344472885, -0.01847519911825657, 0.004927005153149366, 0.009665662422776222, -0.029844552278518677, -0.00848848931491375, -0.05715497210621834, -0.052018217742443085, -0.012525123544037342, -0.03467310220003128, 0.04352544620633125, 0.028440507128834724, -0.013929170556366444, -0.0018278290517628193, -0.033474527299404144, 0.004060177598148584, 0.0164718646556139, 0.14067862927913666, 0.00454174866899848, 0.0472581572830677, -0.032464299350976944, 0.1041049212217331, 0.05027171969413757, 0.0009101689793169498, -0.03354301676154137, 0.0004722070007119328, 0.052703116089105606, -0.002032229211181402, -0.04174470528960228, 0.02049565687775612, -0.010350563563406467, -0.06256569176912308, 0.04619656130671501, 0.021317537873983383, -0.02700221538543701, 0.03308070823550224, 0.014151763170957565, -0.04780607670545578, 0.02689947932958603, -0.05890147015452385, -0.008719643577933311, 0.02083810791373253, -0.036847662180662155, -0.0017925138818100095, 0.06355879455804825, -0.049004651606082916, 0.008103232830762863, -0.08657146245241165, 0.012542245909571648, -0.03780652582645416, 0.013184340670704842, 0.011480649933218956, 0.07588700950145721, -0.02830352634191513, -0.04674448072910309, 0.07417476177215576, -0.0030799133237451315, 0.010658768936991692, -0.007414051331579685, 0.032138969749212265, 0.04338846728205681, -0.030460963025689125, -0.04821701720356941, 0.02664264105260372, 0.020701127126812935, 0.02191682532429695, 0.04133376479148865, 0.0022130857687443495, 0.031043129041790962, 0.00446469709277153, -0.01600099541246891, 0.06462039053440094, 0.02049565687775612, 0.08979049324989319, -0.056333091109991074, 0.026009108871221542, 0.014151763170957565, -0.0043641021475195885, 0.016463303938508034, -0.002758866176009178, 0.03335466980934143, 0.019331324845552444, -0.013569597154855728, 0.02227639965713024, -0.049689553678035736, -0.012525123544037342, 0.02047853358089924, -0.07684586942195892, -0.050374455749988556, 0.008167441934347153, -0.014391478151082993, 0.03403957188129425, 0.00866827555000782, 0.11458390951156616, -0.024724919348955154, -0.010538911446928978, -0.056024886667728424, 0.016206465661525726, 0.024793408811092377, 0.05962061509490013, -0.00433841859921813, -0.015607177279889584, -0.09246160835027695, -0.029108284041285515, -0.041196782141923904, -0.02696796879172325, -0.042600829154253006, -0.04184744134545326, 0.038525670766830444, -0.006934620905667543, -0.05287434160709381, 0.08177715539932251, 0.08170866966247559, 0.02528996206820011, -0.0018535128328949213, -0.01496508251875639, 0.04907314479351044, -0.0032960851676762104, 0.0007239615661092103, 0.02025594189763069, -0.01814987137913704, -0.039621513336896896, -0.01077006570994854, -0.0579768531024456, 0.054689329117536545, 0.0020761056803166866, -0.004588835407048464, -0.02022169716656208, -0.027669992297887802, 0.06051098555326462, -0.025050247088074684, 0.0012467334745451808, -0.0023265224881470203, 0.02823503687977791, 0.05328528210520744, 0.0006453049718402326, 0.019091609865427017, -0.0010872799903154373, 0.011591946706175804, 0.032806750386953354, -0.006784798577427864, 0.04784032329916954, -0.01890326291322708, -0.027344664558768272, -0.0035036958288401365, 0.026111843064427376, 0.047634851187467575, -0.030769169330596924, 0.03811473026871681, 0.0022665937431156635, -0.05482631176710129, -0.0015795525396242738, -0.0430460162460804, 0.07595550268888474, -0.05914118513464928, -0.0018021452706307173, 0.007996217347681522, 0.09403688460588455, -0.07424324750900269, -0.015513003803789616, -0.02189970389008522, -0.013732261024415493, -0.0007223563152365386, 0.038183219730854034, -0.024022895842790604, 0.024399591609835625, 0.02861173078417778, -0.0024549413938075304, -0.02224215306341648, -0.026043353602290154, -0.020666882395744324, -0.043936386704444885, 0.03804624080657959, 0.028714466840028763, 0.014956521801650524, -0.042909037321805954, -0.0289884265512228, 0.0275843795388937, 0.020632637664675713, -0.012319653294980526, 0.035854559391736984, -0.02015320584177971, -0.050511434674263, -0.016514670103788376, 0.012799084186553955, -0.016497548669576645, 0.042566586285829544, 0.03729284927248955, -0.01413464080542326, 0.02588925138115883, 0.022978423163294792, -0.06547651439905167, -0.02731041982769966, 0.009151986800134182, -0.026111843064427376, 0.011001219041645527, 0.002309399889782071, -0.0404091477394104, 0.004520345479249954, -0.020324431359767914, 0.024022895842790604, 0.046984195709228516, 0.023423608392477036, 0.030769169330596924, -0.0007261018618009984, 0.008715363219380379, 0.0317109078168869, 0.009691346436738968, -0.02693372406065464, -0.015829769894480705, -0.021351782605051994, 0.009562927298247814, -0.03100888431072235, -0.009015006944537163, -0.006365296896547079, -0.040888577699661255, -0.05188123509287834, 0.00504686264321208, -0.07033931463956833, 0.06160682812333107, 0.05547696724534035, 0.021796967834234238, 0.004447574727237225, -0.004524625837802887, -0.013894924893975258, -0.0034095218870788813, 0.025666657835245132, -0.02933087758719921, 0.03124859929084778, -0.07444871962070465, -0.08636599034070969, 0.03025549277663231, -0.02049565687775612, -0.04684721678495407, 0.012028570286929607, 0.043593935668468475, 0.02085522934794426, 0.04468977823853493, 0.01627495512366295, 0.06742848455905914, 0.04681297019124031, -0.013698016293346882, -0.04455279931426048, -0.04986077919602394, -0.0144942132756114, -0.028817201033234596, -0.05818232521414757, -0.03941604122519493, 0.03845718130469322, -0.013971976935863495, -0.009460192173719406, 0.03571757674217224, 0.0007833553245291114, -0.0826675295829773, -0.010693013668060303, 0.017961524426937103, -0.015127746388316154, 0.03198486939072609, 0.05256613716483116, -0.0418131947517395, -0.004205719102174044, -0.03544361889362335, 0.042224135249853134, 0.02659127488732338, -0.03681341931223869, 0.006369577720761299, 0.014382917433977127, -0.033440280705690384, -0.017670441418886185, 0.01314153429120779, -0.01814987137913704, -0.024057140573859215, 0.028543241322040558, 0.04174470528960228, 0.07027082145214081, 0.06256569176912308, -0.02965620532631874, 0.026009108871221542, -0.026711132377386093, -0.04003245383501053, 0.09485876560211182, -0.04215564578771591, 0.005248052533715963, -0.04657325521111488, 0.0275843795388937, -0.08999596536159515, 0.025135859847068787, -0.04520345479249954, -0.07828415930271149, 0.017062591388821602, 0.05218944326043129, -0.022036682814359665, -0.04147074371576309, 0.024810532107949257, -0.024673551321029663, 0.011994325555860996, 0.013073043897747993, 0.030546575784683228, 0.05325103923678398, -0.03647096827626228, -0.018064258620142937, 0.08588656038045883, 0.006998830009251833, 0.053148303180933, 0.003929618280380964, -0.026043353602290154, -0.0688667744398117, -0.06232597306370735, -0.0030884745065122843, 0.05092237517237663, 0.02422836609184742, -0.02630019187927246, -0.021677110344171524, 0.03260127827525139, 0.030118513852357864, 0.01332132052630186, -0.02289281040430069, -0.022772952914237976, -0.012054254300892353, -0.013115850277245045, -0.013963415287435055, 0.049997758120298386, -0.0063481745310127735, 0.010693013668060303, -0.0329437293112278, -0.031830765306949615, 0.0005719991750083864, 0.06427793949842453, 0.022481869906187057, 0.08369488269090652, -0.02958771586418152, -0.043936386704444885, 0.05729195475578308, -0.01780742034316063, -0.0047985864803195, -0.022344889119267464, 0.03866264969110489, -0.004670167341828346, 0.045580148696899414, 0.030084269121289253, -0.004944127518683672, 0.00019650768081191927, -0.016206465661525726, 0.028372015804052353, 0.011240934953093529, -0.009802643209695816, -0.004051616415381432, 0.0376010537147522, 0.035512108355760574, 0.050716906785964966, -0.0058730244636535645, 0.02224215306341648, -0.023697568103671074, -0.032121848315000534, 0.029091162607073784, 0.036881908774375916, 0.016369128599762917, -0.03354301676154137, -0.007341280579566956, 0.010633084923028946, -0.01600099541246891, -0.11869331449270248, -0.006142704281955957, -0.009888255037367344, -0.006596451159566641, -0.0002379762736381963, 0.011677558533847332, 0.005800253711640835, 0.0035871679428964853, 0.03832019865512848, -0.00925472192466259, -0.016925610601902008, 0.008338667452335358, 0.0076066795736551285, -0.013398372568190098, -0.07636643946170807, -0.029039794579148293, 0.018303973600268364, 0.002818794921040535, -0.07184609770774841, -0.09431084245443344, 0.022413378581404686, 0.039895471185445786, -0.04171045869588852, -0.026420049369335175, -0.03501555323600769, 0.04147074371576309, 0.06003155559301376, 0.0278925858438015, 0.013834996148943901, -0.010881361551582813, -0.019690899178385735, 0.031317088752985, 0.03409093618392944, -0.028200790286064148, -0.01688280515372753, -0.0004534792387858033, -0.03599153831601143, 0.05958637222647667, -0.017995769158005714, 0.005594783462584019, 0.041231028735637665, 0.02693372406065464, 0.0424296036362648, -0.015273287892341614, -0.0347415953874588, -0.06492859870195389, 0.02597486414015293, -0.0009936412097886205, -0.006181229837238789, -0.02357771061360836, 0.0038696895353496075, -0.016720140352845192, -0.026437170803546906, 0.013210024684667587, 0.04147074371576309, 0.02159149758517742, -0.013569597154855728, -0.019194345921278, -0.011377914808690548, -0.010787188075482845, 0.00323829660192132, -0.048627957701683044, 0.014905153773725033, -0.02698509208858013, -0.02183121256530285, -0.08403732627630234, 0.01681431569159031, -0.02417699806392193, 0.004237823653966188, -0.07184609770774841, -0.038559917360544205, 0.002088947454467416, 0.04140225425362587, 0.011985763907432556, -0.033834099769592285, 0.007914884947240353, -0.026026230305433273, -0.031214354559779167, -0.007743659894913435, 0.033851221203804016, -0.0058730244636535645, 0.0008299071341753006, -0.020598391070961952, -0.00976839754730463, 0.023714691400527954, -0.026505662128329277, 0.030187003314495087, 0.07540757954120636, -0.005958637222647667, -0.013115850277245045, 0.00758099602535367, 0.056675542145967484, 0.0004599001840688288, -0.05242915824055672, 0.00621975539252162, -0.009648540057241917, -0.03763530030846596, 0.025358453392982483, 0.0032168934121727943, 0.0498950257897377, -0.01582120917737484, -0.035786066204309464, 0.014511335641145706, -0.014006221666932106, 0.01332132052630186, 0.03129996731877327, 0.006934620905667543, -0.04051188379526138, 0.011651875451207161, 0.02124904841184616, -0.00022192391043063253, 0.010735820047557354, 0.03429640829563141, -0.03494706377387047, -0.03198486939072609, 0.003998108673840761, -0.0050340211018919945, -0.0072899130173027515, -0.06989412754774094, -0.013218585401773453, 0.04982653260231018, 0.058113835752010345, -0.06523679941892624, -0.009759836830198765, 0.03794350475072861, 0.04578562080860138, 0.0031912096310406923, -0.030426718294620514, -0.060442496091127396, -0.01058171782642603, -0.03681341931223869, -0.014168885536491871, -0.05023747310042381, 0.0026218858547508717, 0.03470734879374504, 0.018338220193982124, 0.013432617299258709, -0.024468081071972847, -0.03102600760757923, 0.07842114567756653, 0.000605174049269408, -0.07732529938220978, -0.04510071873664856, 0.001033772132359445, 0.07225703448057175, -0.0252557173371315, 0.040580373257398605, -0.006797640584409237, 0.0035893083550035954, -0.02227639965713024, -0.015649983659386635, -0.01746497116982937, 0.016026679426431656, 0.04318299517035484, 0.0011782434303313494, -0.019382692873477936, 0.020084716379642487, 0.01731942966580391, 0.009049251675605774, -0.06085343658924103, -0.039929717779159546, 0.038868121802806854, -0.04129951819777489, -0.08431129157543182, -0.01276483852416277, -0.031522560864686966, 0.0024806251749396324, 0.04852522164583206, 0.0020707547664642334, 0.02698509208858013, 0.032481420785188675, -0.04482675716280937, -0.054415371268987656, 0.0436624251306057, 0.013518230058252811, -0.007538189645856619, 0.027053581550717354, 0.03035822883248329, 0.0037412706296890974, -0.058730244636535645, 0.0011108234757557511, 0.007418332155793905, 0.013535352423787117, 0.05849052965641022, -0.05955212563276291, -0.002015106612816453, -0.011292302049696445, -0.026437170803546906, -0.012841890566051006, 0.037566810846328735, 0.016206465661525726, -0.04400487616658211, 0.0034758716356009245, -0.00007109859143383801, -0.028560364618897438, 0.003176227444782853, 0.002878723666071892, 0.10170777142047882, 0.025016002357006073, -0.0002878723607864231, -0.02691660262644291, 0.010205022059381008, -0.022635972127318382, 0.02494751289486885 ]
714,774
pytorch_optimizer.base.optimizer
validate_step
null
@staticmethod def validate_step(step: int, step_type: str): if step < 1: raise NegativeStepError(step, step_type=step_type)
(step: int, step_type: str)
[ 0.012826474383473396, 0.02584477886557579, -0.038819484412670135, 0.03655239939689636, -0.07062844187021255, -0.05318932235240936, 0.04750416800379753, 0.01834595575928688, -0.057130564004182816, -0.01836339570581913, 0.07177942991256714, 0.050643209367990494, 0.04781807214021683, -0.01672411896288395, -0.02431013621389866, 0.0063434806652367115, 0.0415399894118309, 0.01659332402050495, 0.019566694274544716, 0.016532287001609802, 0.009425845928490162, 0.040458764880895615, 0.010341399349272251, -0.008405656553804874, -0.006914611905813217, 0.0913809984922409, 0.04764368012547493, 0.01753503642976284, 0.00666174478828907, -0.04841100424528122, -0.03388421609997749, -0.0209443848580122, -0.022670859470963478, 0.04087730124592781, 0.00710208248347044, -0.056328363716602325, -0.06445499509572983, 0.0016163886757567525, -0.1261894851922989, 0.041260961443185806, -0.01290495041757822, 0.018537787720561028, -0.038749728351831436, 0.00028120583738200366, -0.013096780516207218, -0.05660739168524742, -0.03395397216081619, -0.010149569250643253, -0.07645311206579208, -0.052177853882312775, -0.003790829097852111, -0.027030639350414276, 0.08245217055082321, -0.009600237011909485, 0.02832113392651081, 0.055491287261247635, 0.028861748054623604, -0.021136216819286346, -0.005013747606426477, 0.035523492842912674, -0.03404116630554199, 0.027309665456414223, 0.008253064937889576, -0.025583192706108093, 0.03146017715334892, -0.032925061881542206, 0.0015063041355460882, -0.01681131310760975, 0.01745656132698059, 0.05329395830631256, 0.00787376333028078, 0.026106365025043488, -0.042098041623830795, 0.02408342808485031, 0.03595947101712227, -0.019706208258867264, -0.03180895745754242, 0.02328122779726982, 0.07791800051927567, 0.02340330183506012, 0.03013480268418789, 0.007838885299861431, -0.02593197487294674, -0.016261981800198555, -0.017020583152770996, 0.014047212898731232, 0.012686961330473423, -0.06243205815553665, -0.007612176705151796, 0.006801257841289043, -0.07324431091547012, -0.026315635070204735, -0.04607415944337845, -0.03676167130470276, 0.04928296059370041, 0.05995570123195648, -0.002280165208503604, -0.06121131777763367, -0.11593528091907501, -0.017343206331133842, 0.045481231063604355, 0.028722234070301056, 0.03843582421541214, 0.004970149602741003, 0.05437518283724785, -0.06877990067005157, 0.011745248921215534, -0.05573543533682823, -0.01569521054625511, 0.026228439062833786, 0.00434888107702136, -0.04237706586718559, -0.057235199958086014, -0.020456090569496155, -0.044679030776023865, 0.04576025530695915, 0.03266347572207451, 0.004904753062874079, -0.05538665130734444, -0.003910723142325878, 0.03154737129807472, -0.015302829444408417, -0.05702592805027962, 0.02167682908475399, 0.043772198259830475, 0.031338103115558624, -0.0045908489264547825, 0.02254878543317318, 0.00669662281870842, 0.01423032395541668, 0.022915005683898926, -0.045446351170539856, -0.048655152320861816, -0.002561371074989438, -0.07191894203424454, 0.06232742220163345, 0.03822655603289604, 0.06525719165802002, -0.018223881721496582, 0.012207385152578354, 0.0048437160439789295, 0.023978792130947113, 0.01004493422806263, -0.019775964319705963, 0.04356292635202408, 0.06239717826247215, -0.052108097821474075, 0.066861592233181, 0.006988728418946266, 0.07184918224811554, 0.005772349424660206, 0.010908170603215694, 0.017099060118198395, 0.00016935022722464055, 0.016009114682674408, -0.025513434782624245, -0.02755381353199482, -0.023630009964108467, 0.011204635724425316, -0.012102751061320305, -0.011518539860844612, -0.026420269161462784, 0.03175664320588112, 0.00037357868859544396, 0.01989803835749626, 0.06243205815553665, 0.004508012905716896, 0.042237553745508194, -0.014884290285408497, 0.021293168887495995, -0.005750550422817469, 0.030326632782816887, 0.002280165208503604, 0.027797961607575417, 0.012224824167788029, 0.05423567071557045, 0.043737318366765976, 0.026036608964204788, 0.043039754033088684, -0.018659859895706177, -0.01573008857667446, 0.029489556327462196, -0.06926819682121277, -0.020508408546447754, 0.041226085275411606, -0.02431013621389866, -0.050643209367990494, 0.011483661830425262, 0.0035466814879328012, -0.010097251273691654, -0.006936410907655954, 0.042063161730766296, 0.05507274717092514, -0.010742499493062496, 0.017099060118198395, 0.016506129875779152, -0.01829363964498043, -0.0033613909035921097, 0.08091752976179123, 0.00606009503826499, 0.01909583806991577, 0.0501549169421196, 0.03266347572207451, -0.004573409911245108, -0.025530874729156494, 0.0124864112585783, -0.014186725951731205, 0.011527259834110737, -0.061281073838472366, -0.006103692576289177, -0.05182906985282898, -0.010350119322538376, 0.009704871103167534, 0.06096716970205307, 0.024815870448946953, -0.06766379624605179, 0.021031580865383148, -0.02669929526746273, 0.02078743278980255, 0.0500502809882164, 0.06079278141260147, -0.005571799352765083, 0.045341718941926956, -0.047922708094120026, 0.09305515885353088, -0.021955855190753937, 0.013768186792731285, -0.05915350094437599, -0.08517267554998398, 0.01829363964498043, -0.053049810230731964, -0.027763081714510918, 0.005288413725793362, 0.0066312262788414955, 0.011649333871901035, 0.019619012251496315, 0.0024872547946870327, -0.03752899169921875, 0.021240850910544395, 0.019060960039496422, -0.03899387642741203, -0.023961354047060013, -0.052247609943151474, 0.03766850382089615, 0.0292628463357687, 0.017927417531609535, 0.019409742206335068, 0.0020828852429986, -0.029786020517349243, 0.02921053022146225, -0.03240188956260681, 0.0207351166754961, -0.06393182277679443, 0.0008245434728451073, 0.024397332221269608, 0.03916826844215393, 0.005196858197450638, -0.03895900025963783, 0.0747789591550827, 0.0333436019718647, -0.014945327304303646, -0.02753637358546257, -0.01753503642976284, 0.008575688116252422, -0.06100204959511757, -0.03079748898744583, 0.028600160032510757, 0.0076339757069945335, 0.07177942991256714, 0.053921766579151154, 0.0417143814265728, 0.046422943472862244, -0.0208746287971735, 0.03156480938196182, 0.05597958341240883, 0.01829363964498043, 0.01572136953473091, 0.02265341952443123, 0.021240850910544395, -0.022130245342850685, 0.062118154019117355, 0.018886569887399673, -0.005366889759898186, -0.0018103988841176033, -0.08440534770488739, 0.03003016859292984, 0.021380363032221794, -0.02659466117620468, -0.028164181858301163, 0.006862294394522905, -0.01848546974360943, 0.010524510405957699, 0.0503990612924099, -0.03507007285952568, 0.018694739788770676, 0.01597423665225506, -0.004305283073335886, -0.019636452198028564, -0.017343206331133842, -0.02335098385810852, 0.0033613909035921097, -0.014082090929150581, -0.012189946137368679, -0.010149569250643253, -0.040563397109508514, -0.03756386786699295, 0.005584878847002983, 0.0016436373116448522, 0.003976119682192802, -0.05744446814060211, -0.0417841374874115, 0.0336226262152195, -0.0251646526157856, -0.01245153322815895, 0.021397802978754044, 0.028983820229768753, 0.019810842350125313, 0.0036709352862089872, -0.027850277721881866, 0.053014930337667465, 0.002203869167715311, 0.04520220309495926, -0.006509152241051197, 0.002881814958527684, -0.03398884832859039, -0.014736058190464973, 0.009678713046014309, -0.007446505129337311, -0.03078005090355873, 0.003428967436775565, -0.01329733058810234, -0.004726001992821693, 0.06100204959511757, 0.008584408089518547, -0.013654832728207111, -0.018136687576770782, 0.025583192706108093, -0.021450120955705643, 0.02082231268286705, 0.021868659183382988, 0.04903881251811981, -0.013340928591787815, 0.036343131214380264, -0.01423032395541668, 0.08070825785398483, -0.01921791210770607, -0.00793916080147028, 0.0015019443817436695, 0.0751277357339859, 0.06333889067173004, -0.03400628641247749, 0.016235822811722755, -0.04617879539728165, -0.04896905645728111, -0.013079341500997543, -0.00134935206733644, 0.03515727072954178, -0.08635853230953217, -0.006683543790131807, -0.021171094849705696, 0.06602451950311661, -0.007773488759994507, -0.04031924903392792, 0.029768580570816994, -0.0045167324133217335, -0.034686412662267685, 0.020508408546447754, -0.05311956629157066, 0.03672679141163826, 0.06257157027721405, 0.01382050383836031, 0.012434094212949276, 0.00792608130723238, -0.029890654608607292, -0.0045559704303741455, 0.058142032474279404, 0.0757555440068245, 0.033744700253009796, -0.020211942493915558, 0.013157817535102367, 0.01092560961842537, -0.026054048910737038, -0.06951233744621277, 0.03501775860786438, 0.011797565966844559, -0.02664697915315628, -0.02342074178159237, 0.03247164562344551, -0.007838885299861431, -0.017064180225133896, 0.0291233342140913, -0.061385709792375565, 0.03510495275259018, -0.024868188425898552, 0.00994901917874813, -0.04401634261012077, -0.03177408128976822, -0.00643939571455121, -0.02842576988041401, -0.0034420466981828213, -0.032314691692590714, 0.04248170182108879, -0.030657976865768433, 0.02574014477431774, 0.002424038015305996, 0.008575688116252422, -0.012861352413892746, 0.011204635724425316, -0.023577693849802017, -0.012399216182529926, 0.01768326945602894, 0.017099060118198395, -0.020177064463496208, -0.01744784228503704, 0.017787905409932137, -0.03777313977479935, -0.008998586796224117, 0.008396937511861324, -0.04649269953370094, -0.019601574167609215, 0.02246158942580223, -0.005615397356450558, 0.06330401450395584, 0.03575019910931587, 0.04684148356318474, -0.005829026456922293, -0.02994297258555889, 0.012268422171473503, 0.0048785945400595665, 0.025670388713479042, -0.02263598144054413, 0.02846064791083336, -0.07777848839759827, -0.04492317885160446, 0.0041657704859972, -0.0005193588440306485, -0.04848076030611992, -0.0028055186849087477, 0.018572665750980377, 0.07694140821695328, 0.045550987124443054, -0.026054048910737038, 0.025216970592737198, 0.06926819682121277, 0.05674690380692482, -0.043004874140024185, 0.013968736864626408, -0.05559592321515083, -0.004388119094073772, -0.0031978990882635117, -0.05273590609431267, 0.002260546199977398, -0.012346898205578327, -0.053852010518312454, 0.01164061389863491, -0.024589162319898605, -0.09954250603914261, -0.02683880925178528, 0.016994424164295197, -0.018781933933496475, 0.06169961392879486, 0.06769867241382599, -0.07735994458198547, -0.03909851238131523, 0.0022256679367274046, 0.01679387502372265, 0.01293982844799757, 0.0209967028349638, 0.03510495275259018, 0.026978321373462677, -0.03665703535079956, -0.017090339213609695, 0.02587965689599514, -0.0166107639670372, 0.007799647282809019, 0.04031924903392792, -0.004364140331745148, -0.010088532231748104, -0.0014855952467769384, -0.011649333871901035, 0.03648264333605766, 0.004547250922769308, 0.03159968927502632, 0.04558586701750755, -0.037215087562799454, 0.008545169606804848, -0.08273119479417801, 0.024868188425898552, 0.014936608262360096, 0.016026552766561508, -0.014936608262360096, -0.06344352662563324, 0.029576750472187996, 0.031338103115558624, 0.030501024797558784, -0.03430275246500969, -0.020490968599915504, 0.029611628502607346, 0.039761196821928024, 0.0020665358752012253, 0.01827619969844818, 0.03979607671499252, 0.017857661470770836, -0.04269097000360489, 0.04349317029118538, -0.014160566963255405, 0.03177408128976822, 0.018904007971286774, -0.010350119322538376, -0.02420550212264061, 0.014831973239779472, 0.06947746127843857, 0.034634098410606384, 0.02179890312254429, 0.017753025516867638, 0.00041090932791121304, 0.026943443343043327, 0.0008834005566313863, 0.04848076030611992, 0.04576025530695915, 0.02172914706170559, -0.06543158739805222, 0.023909036070108414, -0.033779580146074295, 0.030344072729349136, -0.03003016859292984, -0.03008248656988144, -0.06176936998963356, 0.011291831731796265, 0.003622977528721094, 0.05580519139766693, 0.0416446253657341, 0.06504792720079422, 0.06557109951972961, 0.004943991079926491, 0.03013480268418789, -0.0747091993689537, -0.0021373825147747993, 0.004861155524849892, -0.001974980579689145, -0.011867322959005833, -0.021345485001802444, 0.005196858197450638, 0.01742168329656124, -0.024693796411156654, -0.016636922955513, -0.003394089173525572, 0.04527196288108826, -0.057235199958086014, -0.013463002629578114, -0.03165200725197792, 0.002925412729382515, 0.0011019345838576555, -0.03510495275259018, 0.0414702333509922, 0.03491312265396118, -0.008575688116252422, 0.06180424988269806, 0.09354344755411148, 0.016636922955513, -0.03139042109251022, -0.06299010664224625, 0.018799373880028725, -0.08838146924972534, -0.05273590609431267, -0.053956642746925354, -0.00047412613639608026, -0.049631740897893906, -0.022025611251592636, 0.011649333871901035, 0.02579246088862419, -0.014003614895045757, -0.0008534270455129445, -0.01173652894794941, -0.016532287001609802, 0.004930911585688591, -0.0036513162776827812, 0.036308251321315765, -0.04345829412341118, -0.022182563319802284, 0.014387276023626328, -0.007943520322442055, -0.032314691692590714, -0.05165468156337738, -0.029332604259252548, -0.009077062830328941, -0.008889592252671719, -0.06019984930753708, -0.06494329124689102, 0.04781807214021683, -0.0017210233490914106, 0.030431268736720085, -0.017125217244029045, -0.04771343991160393, -0.006975648924708366, 0.031163711100816727, 0.0331343337893486, -0.05186394974589348, -0.010559388436377048, 0.019845720380544662, -0.030274316668510437, 0.03913338854908943, 0.02753637358546257, 0.05102686956524849, 0.08133606612682343, 0.011326709762215614, -0.010777377523481846, -0.004300923552364111, -0.04429537057876587, -0.047260019928216934, 0.0021995091810822487, 0.011422624811530113, 0.016009114682674408, 0.0022779852151870728, -0.05486347898840904, -0.003343951655551791, 0.02003755047917366, -0.04272584989666939, 0.024065988138318062, 0.007023606449365616, -0.06187400594353676, -0.0417143814265728, -0.02676905319094658, -0.007442145142704248, -0.02096182480454445, 0.006378358695656061, 0.008017636835575104, -0.03913338854908943, -0.02753637358546257, -0.09898445755243301, -0.0331866480410099, 0.04108657315373421, -0.00435542082414031, -0.09368296712636948, -0.0293151643127203, -0.010167008265852928, -0.016183504834771156, 0.011073842644691467, 0.0001798409502953291, 0.012721839360892773, -0.033849336206912994, 0.026542343199253082, -0.04862027242779732, 0.02172914706170559, -0.030657976865768433, -0.012887511402368546, -0.02329866774380207, -0.026054048910737038, 0.047957584261894226, -0.014256482012569904, 0.003932522144168615, 0.08042923361063004, -0.03440738841891289, -0.026333075016736984, 0.01827619969844818, 0.021955855190753937, 0.04080754518508911, -0.008549530059099197, 0.008584408089518547, -0.04412097856402397, -0.023141715675592422, 0.04251657798886299, 0.0018267480190843344, 0.028809430077672005, 0.001906314049847424, 0.02750149555504322, 0.05095711350440979, -0.07624384015798569, 0.0041396114975214005, -0.05590982735157013, -0.047922708094120026, -0.021345485001802444, 0.06543158739805222, -0.001110109151341021, 0.001212019007652998, 0.024676358327269554, 0.008802397176623344, -0.018659859895706177, -0.027187591418623924, -0.012652083300054073, -0.030657976865768433, -0.00869776215404272, -0.08949757367372513, -0.012495131231844425, 0.011579576879739761, 0.02413574419915676, -0.04614391550421715, 0.005820306949317455, -0.011004085652530193, 0.0008049244643189013, -0.037110451608896255, 0.019496938213706017, -0.04680660367012024, 0.02580990083515644, -0.030187120661139488, -0.04614391550421715, -0.017909977585077286, 0.009957739152014256, 0.026524905115365982, 0.036343131214380264, 0.03100675903260708, -0.04767856001853943, -0.002321583218872547, 0.04778319597244263, 0.015067401342093945, -0.045481231063604355, -0.0124864112585783, 0.0018856050446629524, 0.0291756521910429, -0.01659332402050495, 0.02242671139538288, 0.018066929653286934, 0.007760409265756607, -0.0333784781396389, -0.022705737501382828, 0.0166107639670372, -0.0331866480410099, 0.017857661470770836, -0.04446976259350777, -0.008549530059099197, -0.05200346186757088, -0.04649269953370094, -0.008902671746909618, -0.04869002848863602, -0.06553622335195541, 0.008920110762119293, -0.03986583277583122, -0.05754910409450531, 0.058665208518505096, -0.016384055837988853, 0.00685793487355113, 0.0022910647094249725, -0.04610903933644295, 0.044679030776023865, 0.06354816257953644, 0.0005185413756407797, -0.031111393123865128, 0.037982407957315445, 0.02519953064620495, 0.013410684652626514, 0.05447981879115105, 0.05172443762421608, 0.01993291638791561, -0.11851627379655838, 0.026315635070204735, 0.03854046016931534, -0.001421288470737636, 0.06490841507911682, -0.02922796830534935, -0.055630799382925034, 0.028861748054623604, -0.06982624530792236, 0.011004085652530193, 0.03166944533586502, 0.011265672743320465, -0.0414702333509922, -0.0018779754173010588, 0.0036338770296424627, -0.027152713388204575, 0.03004760667681694, -0.028617599979043007, -0.0058813439682126045, 0.0332215279340744, 0.024414770305156708, 0.028146743774414062, 0.01504124328494072, 0.023978792130947113, 0.02668185718357563 ]
714,776
pytorch_optimizer.base.optimizer
zero_hessian
Zero-out hessian. :param param_groups: PARAMETERS. parameter groups. :param state: STATE. optimizer state. :param pre_zero: bool. zero-out hessian before computing the hessian.
@staticmethod def zero_hessian(param_groups: PARAMETERS, state: STATE, pre_zero: bool = True): r"""Zero-out hessian. :param param_groups: PARAMETERS. parameter groups. :param state: STATE. optimizer state. :param pre_zero: bool. zero-out hessian before computing the hessian. """ for group in param_groups: for p in group['params']: if p.requires_grad and p.grad is not None and not p.grad.is_sparse: if 'hessian' not in state[p]: state[p]['hessian'] = torch.zeros_like(p) elif pre_zero: state[p]['hessian'].zero_()
(param_groups: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], state: Dict, pre_zero: bool = True)
[ -0.034206997603178024, -0.005067703314125538, 0.03763515129685402, -0.02166815847158432, -0.02474231645464897, -0.019711876288056374, -0.05805501714348793, 0.0513477623462677, 0.011048339307308197, 0.030499378219246864, 0.0076108709909021854, 0.026959437876939774, 0.007079879753291607, 0.00167215580586344, -0.036666326224803925, 0.05164586007595062, -0.015603682957589626, -0.0048813908360898495, 0.06513489782810211, -0.07105963677167892, -0.036051493138074875, -0.06058886647224426, 0.014895694330334663, 0.0663272961974144, -0.03452372923493385, -0.02822636254131794, 0.0037262525875121355, -0.027853738516569138, 0.03920017555356026, -0.05835311487317085, -0.00595734640955925, 0.026251450181007385, -0.04836675897240639, 0.03085337206721306, 0.03746746852993965, -0.01766243763267994, 0.015976307913661003, 0.09569016844034195, -0.0439697802066803, 0.0082909120246768, 0.09382703900337219, -0.04061615467071533, 0.02768605761229992, -0.008370094932615757, 0.027201643213629723, 0.010321719571948051, 0.045385755598545074, 0.05507401376962662, 0.025711143389344215, -0.006506968755275011, 0.026270080357789993, -0.0405416265130043, 0.0471743568778038, 0.0140666039660573, -0.03525035083293915, -0.017625175416469574, 0.07534483075141907, -0.006581493653357029, 0.039684589952230453, -0.04613100737333298, 0.0351385623216629, 0.0165818240493536, -0.005603352561593056, -0.005198122467845678, 0.006190237123519182, -0.018882784992456436, -0.02699670009315014, -0.011616592295467854, 0.03377848118543625, 0.025711143389344215, -0.03698305785655975, 0.04456597939133644, 0.006823699921369553, 0.07255014032125473, 0.05559568852186203, -0.0341511033475399, -0.019544195383787155, -0.00801144354045391, -0.07009080797433853, -0.03338722512125969, 0.014811853878200054, -0.007238245569169521, -0.06561930477619171, 0.043448105454444885, -0.01660977117717266, -0.029865914955735207, 0.1034407690167427, -0.017205972224473953, 0.028095943853259087, -0.012706520967185497, -0.002200817922130227, 0.019320620223879814, 0.026773124933242798, -0.01943240687251091, 0.12877929210662842, 0.01980503275990486, -0.011057654395699501, -0.0017257207073271275, -0.008467908948659897, -0.07255014032125473, 0.050155360251665115, 0.011886745691299438, 0.02204078435897827, -0.005468275863677263, 0.012790362350642681, -0.035976968705654144, 0.041137829422950745, -0.030052227899432182, 0.03569750115275383, -0.03920017555356026, -0.020103132352232933, -0.0151099544018507, -0.016451405361294746, -0.0341511033475399, 0.01530558243393898, -0.0751585140824318, -0.0038520137313753366, 0.029008876532316208, 0.006097080651670694, 0.02714575082063675, -0.024108855053782463, 0.028412675485014915, -0.09181486070156097, -0.05205575004220009, 0.003046211553737521, 0.04333631694316864, 0.022636985406279564, -0.010563925839960575, 0.058651216328144073, -0.04016900435090065, -0.011849483475089073, 0.01677745208144188, -0.03957280144095421, 0.014709382317960262, -0.06323450803756714, -0.044603243470191956, 0.052242062985897064, -0.01106697041541338, 0.05816680192947388, -0.02498452365398407, 0.021258270367980003, -0.029251083731651306, -0.025226730853319168, 0.03359216824173927, 0.04873938485980034, 0.05991814285516739, 0.11648265272378922, 0.02597198076546192, 0.01599493995308876, 0.016097411513328552, 0.04795687273144722, 0.01276241522282362, -0.01179358921945095, -0.03061116486787796, -0.02258109115064144, -0.00649765320122242, 0.01437401957809925, -0.025413041934370995, -0.003341982839629054, -0.023009609431028366, -0.00659546721726656, 0.06159495562314987, 0.0006905212067067623, 0.02159363403916359, -0.011523435823619366, -0.0087194312363863, -0.0050816768780350685, -0.0016290710773319006, -0.007648133672773838, 0.023885279893875122, -0.03525035083293915, -0.054254237562417984, -0.06841399520635605, 0.029940439388155937, 0.07184214890003204, 0.011514120735228062, -0.008155835792422295, -0.010126091539859772, -0.050155360251665115, 0.009697572328150272, 0.03934922814369202, 0.02306550368666649, -0.06472500413656235, -0.0039405119605362415, -0.012240739539265633, 0.03428152576088905, -0.011122863739728928, -0.009487970732152462, 0.002624679123982787, -0.02552483044564724, -0.04154771566390991, 0.004345742054283619, 0.016097411513328552, 0.005556774325668812, 0.0402807891368866, 0.011020392179489136, 0.009865254163742065, -0.007727316115051508, 0.01650729961693287, -0.024649161845445633, -0.008048705756664276, 0.04557206854224205, 0.013386562466621399, -0.027723319828510284, -0.030965158715844154, 0.02908340096473694, -0.03739294409751892, 0.0464291088283062, -0.09293273836374283, 0.022841928526759148, 0.019059782847762108, -0.021612264215946198, -0.006003924645483494, 0.021798577159643173, 0.021016065031290054, -0.021183745935559273, 0.0393119640648365, 0.03430015593767166, 0.01589246653020382, 0.009338920935988426, -0.04557206854224205, -0.028468569740653038, -0.0009560167090967298, 0.009133976884186268, 0.033648062497377396, 0.011206705123186111, 0.006809726823121309, -0.025711143389344215, -0.030816109851002693, -0.03946101665496826, 0.03206440433859825, 0.0104428231716156, -0.02451874129474163, -0.05831585451960564, 0.010256510227918625, 0.03616328164935112, 0.03348037973046303, -0.03908839076757431, -0.01960008777678013, -0.009977041743695736, -0.022227097302675247, -0.04251654073596001, -0.0059713199734687805, -0.04016900435090065, 0.004743985366076231, 0.05999266728758812, 0.017382968217134476, 0.0024919314309954643, -0.03232524171471596, 0.005086334887892008, -0.005924741737544537, -0.03677811473608017, -0.03167314827442169, -0.03171040862798691, 0.012669258750975132, -0.061185069382190704, 0.034896355122327805, 0.03584655001759529, 0.01213826797902584, -0.034821830689907074, -0.05104966089129448, -0.10478222370147705, -0.04434240609407425, 0.0302199088037014, 0.015789994969964027, -0.010312404483556747, 0.015007481910288334, 0.02643776126205921, -0.0077878679148852825, 0.011420964263379574, 0.1169298067688942, 0.0004340501909609884, 0.007023985963314772, -0.05213027447462082, 0.019842294976115227, 0.024928629398345947, -0.004997836425900459, -0.04069067910313606, 0.05019262433052063, 0.07482314854860306, 0.078623928129673, -0.04188307747244835, -0.05049072206020355, 0.0244442168623209, 0.041286878287792206, 0.034821830689907074, -0.018836207687854767, -0.0053238836117088795, 0.015119269490242004, -0.024239273741841316, 0.025170836597681046, 0.05261468514800072, 0.0029693576507270336, -0.03569750115275383, 0.02908340096473694, -0.008076652884483337, 0.011085601523518562, 0.04970820993185043, -0.006315998267382383, 0.008933690376579762, 0.040429841727018356, 0.005570747423917055, 0.020084502175450325, -0.03323817253112793, 0.03498951345682144, -0.04069067910313606, 0.016712242737412453, 0.019469669088721275, 0.034188367426395416, 0.01052666362375021, 0.0020890303421765566, -0.00616694800555706, -0.009958409704267979, -0.016050832346081734, -0.02282329648733139, -0.06267556548118591, 0.06107328087091446, -0.021779946982860565, 0.02252519689500332, 0.08220113068819046, -0.019562825560569763, -0.03564160689711571, 0.033815741539001465, 0.03769104555249214, -0.061818528920412064, -0.0034887040965259075, -0.008789298124611378, -0.04195760563015938, -0.05179491266608238, -0.010489401407539845, -0.03633096441626549, -0.03430015593767166, 0.03845492750406265, 0.0019097044132649899, -0.019227463752031326, -0.006451074965298176, 0.023456759750843048, -0.004061615560203791, -0.05034167319536209, -0.0405416265130043, 0.016181251034140587, 0.0013367930660024285, -0.051534075289964676, 0.010386928915977478, -0.03198987990617752, -0.0310769472271204, -0.03718800097703934, 0.002801676280796528, 0.002190337749198079, 0.05634094029664993, 0.02705259434878826, 0.017606543377041817, 0.030797477811574936, 0.06610371917486191, 0.12348800897598267, 0.020680701360106468, -0.012240739539265633, 0.038902077823877335, 0.06796684861183167, -0.0464291088283062, 0.04288916662335396, 0.0052214115858078, -0.029418764635920525, 0.014383334666490555, 0.000788335339166224, -0.0886848121881485, 0.01820274442434311, 0.04009447619318962, 0.00006320801185211167, -0.07743152976036072, -0.0019201845861971378, -0.0690474584698677, -0.050006311386823654, -0.00543567119166255, -0.0078623928129673, -0.00477891881018877, -0.04165950417518616, 0.022711509838700294, 0.01687992364168167, -0.0002193540130974725, -0.01276241522282362, -0.03428152576088905, -0.02137005887925625, -0.017261864617466927, -0.024705054238438606, -0.016525929793715477, -0.006227499805390835, 0.0324370302259922, 0.04262832924723625, -0.07083605974912643, 0.07743152976036072, -0.020848384127020836, 0.021854471415281296, -0.0451994426548481, 0.019097045063972473, 0.050937872380018234, 0.08495856076478958, 0.03769104555249214, -0.03815682604908943, -0.02515220455825329, 0.032679233700037, -0.037821464240550995, -0.02953055128455162, 0.011299860663712025, -0.015277635306119919, -0.055334851145744324, -0.015240373089909554, 0.01469075120985508, 0.0201403945684433, 0.055334851145744324, 0.019320620223879814, -0.026400499045848846, -0.03871576488018036, -0.023885279893875122, 0.0016640046378597617, -0.02259972132742405, 0.041361402720212936, 0.04572112113237381, 0.030592534691095352, 0.013926869258284569, 0.02761153131723404, -0.0014695408754050732, 0.034505099058151245, 0.019050465896725655, 0.027946894988417625, -0.021779946982860565, -0.0911441370844841, -0.062191154807806015, -0.03184082731604576, 0.06751969456672668, -0.007513056974858046, -0.059806354343891144, 0.005617325659841299, 0.0070938533172011375, 0.006343944929540157, 0.0348777249455452, 0.03484046086668968, 0.055707477033138275, -0.04389525577425957, 0.02854309417307377, 0.05142228677868843, -0.018482211977243423, 0.038603976368904114, -0.0050537302158772945, 0.009031504392623901, 0.028412675485014915, 0.04072793945670128, -0.0031696436926722527, -0.00020479834347497672, 0.03092789649963379, 0.019711876288056374, 0.01299530640244484, -0.007037959527224302, 0.029567813500761986, -0.010433507151901722, -0.018118903040885925, -0.0033280092757195234, 0.0471743568778038, -0.018295900896191597, 0.007191667333245277, 0.009422761388123035, 0.016982397064566612, -0.06327176839113235, -0.011169441975653172, 0.012548156082630157, -0.01803506165742874, 0.02999633364379406, -0.043448105454444885, 0.011812220327556133, -0.020214920863509178, -0.021556371822953224, -0.0215004775673151, -0.027127118781208992, -0.022916452959179878, -0.037895988672971725, -0.06047707796096802, -0.02999633364379406, 0.012613365426659584, -0.03253018483519554, -0.016106726601719856, 0.005174833349883556, -0.00030246691312640905, 0.02999633364379406, 0.025767037644982338, 0.02574840560555458, -0.0683022066950798, 0.009949094615876675, -0.06871210038661957, 0.037895988672971725, -0.012631996534764767, 0.02483547292649746, -0.08965364098548889, 0.00783444568514824, -0.021071959286928177, -0.01997271366417408, -0.02837541326880455, -0.0014206337509676814, -0.018603315576910973, 0.03729978948831558, -0.031505465507507324, -0.01845426671206951, 0.02891572006046772, -0.052689213305711746, -0.03525035083293915, -0.044901344925165176, -0.0021495819091796875, 0.0675569623708725, -0.010424192063510418, -0.01626509241759777, 0.023848015815019608, -0.018435634672641754, -0.027183013036847115, -0.024425586685538292, -0.006860962603241205, 0.008933690376579762, 0.028897088021039963, -0.019395144656300545, 0.03359216824173927, 0.007284823805093765, -0.00659080920740962, 0.040839727967977524, 0.05145954713225365, -0.018025746569037437, 0.07415242493152618, 0.016283724457025528, 0.029195189476013184, -0.02852446399629116, -0.021221008151769638, 0.05168312415480614, 0.027630163356661797, -0.019301988184452057, -0.06893566995859146, -0.020233551040291786, 0.11186210066080093, 0.005486906971782446, -0.06636455655097961, -0.0009845457971096039, -0.10649629682302475, -0.09315631538629532, -0.0259160865098238, 0.003164985915645957, 0.0201403945684433, -0.01403865683823824, -0.03163588419556618, 0.024630529806017876, 0.009800043888390064, -0.012706520967185497, 0.04948463290929794, -0.04233022779226303, -0.03156135976314545, -0.08719430863857269, -0.050229884684085846, -0.001813054783269763, 0.020214920863509178, 0.10642177611589432, 0.0385667160153389, -0.0171966552734375, 0.06420332938432693, -0.0393119640648365, 0.056937139481306076, -0.023829385638237, -0.059880878776311874, 0.05906110256910324, 0.005030441097915173, -0.06420332938432693, 0.029176557436585426, -0.0073919533751904964, -0.014504438266158104, -0.013442455790936947, 0.027779212221503258, -0.02151910960674286, -0.03377848118543625, 0.015519842505455017, 0.02589745633304119, -0.022227097302675247, -0.0004980951780453324, 0.01426223199814558, -0.010899288579821587, 0.06055160611867905, 0.0434853695333004, -0.008537775836884975, -0.05049072206020355, -0.061334118247032166, -0.020867014303803444, 0.01476527564227581, 0.060961492359638214, -0.038678500801324844, 0.042218443006277084, 0.003155670128762722, 0.02820773236453533, -0.005491564981639385, -0.03841766342520714, 0.003260470926761627, 0.015137901529669762, -0.016497982665896416, -0.021798577159643173, 0.020214920863509178, -0.03530624508857727, 0.012939412146806717, 0.034356050193309784, -0.017010342329740524, 0.02397843636572361, 0.0894300639629364, -0.025114942342042923, 0.06655087321996689, -0.002389459405094385, -0.024705054238438606, 0.04810592159628868, -0.016106726601719856, -0.0680413693189621, -0.01476527564227581, -0.00859832763671875, -0.0015347503358498216, 0.06528394669294357, -0.004923311062157154, -0.008197755552828312, -0.006637387443333864, -0.01125328242778778, -0.002405761741101742, -0.029511921107769012, -0.022655615583062172, 0.022413410246372223, -0.004839470610022545, 0.013619453646242619, 0.013433140702545643, 0.004913995508104563, 0.040206264704465866, -0.07653722912073135, -0.03957280144095421, 0.0039102365262806416, 0.024686424061655998, 0.005621983669698238, -0.04251654073596001, 0.03592107445001602, 0.00796020682901144, -0.021854471415281296, 0.013470402918756008, 0.017522701993584633, 0.007927602156996727, -0.04859033226966858, -0.05414244905114174, 0.01950693316757679, 0.049931783229112625, -0.051161449402570724, -0.042143918573856354, -0.013740556314587593, 0.00270851980894804, -0.033648062497377396, -0.009059451520442963, -0.031132839620113373, -0.008654221892356873, -0.0044295829720795155, -0.02436969242990017, 0.026046505197882652, -0.0015149546088650823, 0.018947994336485863, 0.012427052482962608, -0.017233917489647865, 0.024034328758716583, -0.06751969456672668, -0.0011388359125703573, -0.00979072879999876, 0.011644539423286915, 0.04959642142057419, -0.019451038911938667, 0.02081112004816532, 0.013256143778562546, 0.0028622278477996588, 0.01790464296936989, -0.005710482131689787, -0.06848852336406708, 0.007331402041018009, -0.04061615467071533, -0.04616827145218849, 0.0036889901384711266, 0.0033745875116437674, 0.017606543377041817, 0.014075919054448605, -0.06625276803970337, 0.008551749400794506, 0.07161857187747955, 0.02351265400648117, 0.014075919054448605, 0.027183013036847115, 0.018165482208132744, 0.03135641664266586, -0.022767404094338417, -0.019022518768906593, -0.00426190160214901, -0.05831585451960564, -0.018407687544822693, -0.0690474584698677, 0.06666266173124313, -0.013731241226196289, 0.02830088883638382, -0.010964497923851013, -0.054477814584970474, -0.011234651319682598, 0.02181720919907093, -0.006320655811578035, -0.005267989821732044, 0.04750972241163254, -0.03061116486787796, 0.035436663776636124, -0.046540893614292145, 0.040057215839624405, -0.0020762213971465826, 0.004900021944195032, -0.020065870136022568, -0.01886415295302868, -0.04288916662335396, 0.0017140761483460665, 0.0033373250626027584, -0.039684589952230453, -0.013619453646242619, -0.012920781038701534, 0.006795753259211779, -0.0013123395619913936, -0.017252549529075623, 0.02375486120581627, 0.038902077823877335, -0.018407687544822693, 0.000723708129953593, -0.022543828934431076, -0.028561726212501526, -0.08428783714771271, -0.02699670009315014, -0.05406792461872101, 0.029120663180947304, -0.034206997603178024, 0.013982762582600117, -0.01913430728018284, 0.02213394083082676, -0.0281332079321146, 0.03946101665496826, -0.031878091394901276, 0.059582777321338654, 0.028282256796956062, -0.04139866679906845, 0.013367931358516216, 0.007238245569169521, 0.018761681392788887, -0.017336390912532806, 0.0021111550740897655, 0.061632219702005386, -0.0011050667380914092, 0.002906477078795433, -0.005715140141546726, 0.013209565542638302, -0.004033668432384729, 0.018566053360700607, 0.006329971831291914, 0.03815682604908943, 0.026419131085276604, 0.07538209110498428, -0.020177658647298813, -0.032809652388095856, -0.00043492353870533407, -0.04039257764816284, -0.03567886725068092, -0.013889606110751629, 0.014867748133838177, 0.031729042530059814, 0.0016651691403239965, 0.04896295815706253, 0.007904313504695892, 0.03920017555356026, -0.00003056691639358178 ]
714,777
pytorch_optimizer.optimizer.sgd
ASGD
Adaptive SGD with estimation of the local smoothness (curvature). :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param amplifier: float. amplifier. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param theta: float. theta. :param dampening: float. dampening for momentum. :param eps: float. term added to the denominator to improve numerical stability.
class ASGD(Optimizer, BaseOptimizer): r"""Adaptive SGD with estimation of the local smoothness (curvature). :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param amplifier: float. amplifier. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param theta: float. theta. :param dampening: float. dampening for momentum. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-2, amplifier: float = 0.02, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, theta: float = 1.0, dampening: float = 1.0, eps: float = 1e-5, ): self.validate_learning_rate(lr) self.validate_non_negative(amplifier, 'amplifier') self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'amplifier': amplifier, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'theta': theta, 'dampening': dampening, 'eps': eps, } super().__init__(params, defaults) def __str__(self) -> str: return 'ASGD' @torch.no_grad() def reset(self): for group in self.param_groups: for _ in group['params']: pass @staticmethod def get_norms_by_group(group: Dict, device: torch.device) -> Tuple[torch.Tensor, torch.Tensor]: r"""Get parameter & gradient norm by group.""" p_norm = torch.zeros(1, dtype=torch.float32, device=device) g_norm = torch.zeros(1, dtype=torch.float32, device=device) for p in group['params']: if p.grad is None: continue p_norm.add_(p.norm().pow(2)) g_norm.add_(p.grad.norm().pow(2)) p_norm.sqrt_() g_norm.sqrt_() return p_norm, g_norm @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'prev_param_norm' not in group and 'prev_grad_norm' not in group: group['prev_param_norm'], group['prev_grad_norm'] = self.get_norms_by_group( group, device=group['params'][0].device, ) group['curr_param_norm'], group['curr_grad_norm'] = self.get_norms_by_group( group, device=group['params'][0].device, ) param_diff_norm: float = (group['curr_param_norm'] - group['prev_param_norm']).item() grad_diff_norm: float = (group['curr_grad_norm'] - group['prev_grad_norm']).item() new_lr: float = group['lr'] * math.sqrt(1 + group['amplifier'] * group['theta']) if param_diff_norm > 0 and grad_diff_norm > 0: new_lr = min(new_lr, param_diff_norm / (group['dampening'] * grad_diff_norm)) + group['eps'] group['theta'] = new_lr / group['lr'] group['lr'] = new_lr group['prev_param_norm'].copy_(group['curr_param_norm']) group['prev_grad_norm'].copy_(group['curr_grad_norm']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) p.add_(grad, alpha=-new_lr) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.01, amplifier: float = 0.02, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, theta: float = 1.0, dampening: float = 1.0, eps: float = 1e-05)
[ -0.0028290324844419956, -0.03171386569738388, -0.023288268595933914, 0.009916989132761955, -0.023124266415834427, -0.004850868601351976, -0.06929080188274384, -0.044731516391038895, 0.007205833215266466, 0.0418819822371006, -0.046043530106544495, -0.0234522707760334, 0.030319849029183388, 0.0674457773566246, -0.024456782266497612, 0.06461674720048904, -0.024149278178811073, 0.03616241738200188, -0.007369834929704666, -0.02638380415737629, -0.023349769413471222, -0.06662576645612717, -0.021525248885154724, 0.04346049949526787, -0.006667701993137598, -0.027101311832666397, 0.03630591928958893, -0.01687169447541237, -0.055309638381004333, 0.0067087020725011826, 0.01767120324075222, -0.06273072212934494, 0.021258745342493057, 0.01024499349296093, 0.0476425476372242, -0.033046379685401917, 0.006790703162550926, -0.0011915762443095446, -0.07781889289617538, -0.020920490846037865, 0.022980764508247375, -0.03796643763780594, 0.0041564228013157845, -0.04776554927229881, 0.03558840975165367, 0.014637168496847153, -0.039995960891246796, 0.053997620940208435, -0.03876594826579094, -0.01412466261535883, 0.02677330933511257, -0.06330472975969315, 0.018942218273878098, 0.015088173560798168, -0.013530155643820763, 0.04149247705936432, 0.05030757933855057, 0.0032364747021347284, 0.04366550222039223, -0.08298495411872864, 0.07568687200546265, -0.10233718156814575, 0.0017450825544074178, -0.006503699813038111, -0.018050458282232285, -0.02632230333983898, -0.06289472430944443, -0.012894648127257824, 0.029889345169067383, 0.021689249202609062, 0.00634482316672802, -0.016984445974230766, 0.014391166158020496, -0.027859821915626526, -0.03931945189833641, 0.011562133207917213, -0.014985672198235989, -0.0482165552675724, -0.018439961597323418, -0.0589996799826622, 0.020356735214591026, 0.023882774636149406, -0.02742931619286537, -0.019290722906589508, -0.004002671223133802, -0.03427639603614807, -0.048052553087472916, -0.02552279457449913, 0.0019206159049645066, -0.061992716044187546, 0.044075507670640945, 0.0004340284503996372, 0.05227560177445412, 0.033599887043237686, 0.060844700783491135, 0.047191545367240906, -0.029622841626405716, -0.07593287527561188, 0.01575443148612976, -0.03261587396264076, 0.0007995092310011387, 0.012792147696018219, 0.020151732489466667, 0.05391561985015869, 0.04551052302122116, -0.045182522386312485, -0.019013969227671623, -0.04391150549054146, 0.03702342510223389, -0.03431739658117294, -0.0035670411307364702, 0.0021627750247716904, -0.028105823323130608, -0.008282095193862915, -0.03981145843863487, -0.002320370404049754, 0.00946598406881094, 0.032759375870227814, -0.028269825503230095, 0.018193960189819336, 0.02255026064813137, 0.04179998114705086, -0.043583501130342484, -0.005494063254445791, 0.03273887559771538, -0.015416177920997143, 0.020510485395789146, 0.02880283258855343, -0.01014761719852686, -0.03749493137001991, -0.0117261353880167, 0.023677771911025047, -0.027203813195228577, -0.018357962369918823, 0.04395250603556633, -0.0505535826086998, -0.004676616284996271, 0.038683947175741196, -0.024149278178811073, 0.010055365972220898, 0.026219801977276802, 0.033210381865501404, -0.009009853936731815, -0.014155413024127483, 0.04235348850488663, 0.014155413024127483, 0.0259327981621027, 0.013089400716125965, -0.02095124125480652, 0.00918410625308752, -0.00023735429567750543, 0.01898321881890297, 0.020172232761979103, 0.03036084957420826, -0.005750316195189953, -0.050266578793525696, -0.028905333951115608, -0.0027726569678634405, -0.027367815375328064, -0.01412466261535883, -0.041615478694438934, -0.059327684342861176, -0.026240302249789238, -0.04093897342681885, 0.0024574657436460257, 0.0037284805439412594, 0.015826182439923286, 0.0492415688931942, -0.01863471418619156, 0.014596167951822281, 0.01726119965314865, -0.0769168883562088, -0.012177140451967716, 0.01893196813762188, -0.019700726494193077, 0.08782301098108292, 0.027880320325493813, 0.004456238821148872, 0.022427259013056755, -0.05227560177445412, 0.04288649559020996, -0.005632440093904734, -0.0034952901769429445, -0.07585087418556213, -0.02074623852968216, 0.04235348850488663, -0.00756458705291152, 0.004617678001523018, -0.034050893038511276, 0.022816762328147888, 0.031590864062309265, -0.037289928644895554, 0.007503086235374212, -0.016687192022800446, -0.004294799640774727, 0.019270222634077072, 0.03318988159298897, 0.006677952129393816, 0.06924980133771896, 0.08081193268299103, 0.014329665340483189, -0.01863471418619156, 0.011756885796785355, 0.008440972305834293, 0.014216913841664791, -0.02455928362905979, -0.01848096214234829, 0.010429495014250278, -0.01968022622168064, 0.00825646985322237, -0.036469921469688416, 0.00797971710562706, 0.0469045415520668, 0.030483851209282875, 0.03220587223768234, -0.007784964516758919, 0.024477282539010048, 0.034604400396347046, 0.04571552574634552, -0.010403869673609734, -0.017189448699355125, -0.07047981023788452, 0.019905729219317436, 0.0018885842291638255, 0.06871679425239563, -0.026793809607625008, 0.0469045415520668, -0.007497961167246103, -0.009829862974584103, -0.035014402121305466, 0.04813455417752266, -0.06465774774551392, 0.023595772683620453, 0.0076670884154737, 0.06309972703456879, -0.01148013211786747, -0.026875808835029602, 0.022693760693073273, -0.011931137181818485, -0.03839694336056709, -0.0076978388242423534, -0.027921320870518684, -0.05145559459924698, 0.03384589031338692, -0.019762227311730385, 0.00682145357131958, 0.04600252956151962, 0.018870467320084572, 0.02984834462404251, 0.012956148944795132, -0.03700292482972145, 0.004671491216868162, -0.03351788595318794, 0.04489551857113838, -0.0821649432182312, -0.005150684155523777, 0.01857321336865425, 0.05207059904932976, -0.0036823549307882786, -0.057769667357206345, -0.028782332316040993, -0.013550655916333199, -0.08224694430828094, 0.07162782549858093, -0.013335403986275196, 0.039298951625823975, 0.0713818222284317, -0.01507792342454195, 0.0027829071041196585, 0.042312487959861755, 0.09520309418439865, 0.05895867943763733, -0.06654376536607742, -0.006283322349190712, 0.00592969311401248, 0.0652727484703064, 0.012894648127257824, 0.0065652006305754185, 0.035321906208992004, -0.0006419136188924313, 0.0766298845410347, -0.02083848975598812, -0.05211159959435463, -0.014206663705408573, -0.02773682028055191, 0.042517490684986115, -0.014237414114177227, -0.002083336468786001, 0.05063558369874954, 0.03784343600273132, 0.04706854373216629, -0.006185946054756641, 0.09471108764410019, -0.0019769915379583836, 0.07736789435148239, 0.028474828228354454, 0.00845634751021862, 0.020223483443260193, 0.004445988684892654, -0.03534240648150444, 0.06490375101566315, 0.008543473668396473, 0.03288237750530243, 0.03157036378979683, -0.008948353119194508, -0.03970895707607269, -0.009814487770199776, -0.0035849788691848516, 0.03679792210459709, 0.006519075017422438, -0.031795866787433624, -0.03261587396264076, -0.0003002964367624372, 0.020612986758351326, 0.0024228717666119337, -0.05904068052768707, -0.0081590935587883, -0.05526863783597946, 0.030299348756670952, 0.057072658091783524, -0.033804889768362045, 0.06383773684501648, 0.0065498254261910915, -0.02220175601541996, -0.05182459577918053, -0.032349374145269394, 0.046289533376693726, 0.051988597959280014, -0.015580179169774055, -0.013048400171101093, -0.04280449450016022, -0.020561736077070236, 0.01873721554875374, 0.008522973395884037, -0.02662980742752552, -0.0076927137561142445, 0.038581445813179016, 0.011459631845355034, 0.012781897559762001, -0.06170571222901344, 0.04011896252632141, 0.07257083803415298, -0.024743784219026566, 0.04961057007312775, -0.017281699925661087, -0.03962695598602295, 0.02482578530907631, 0.01836821250617504, 0.029889345169067383, -0.06609275937080383, -0.006319197826087475, -0.018419461324810982, -0.010485870763659477, 0.10266518592834473, 0.05858967453241348, 0.02863883040845394, -0.0036336667835712433, 0.004361425060778856, 0.05981969088315964, -0.05104558914899826, -0.027511317282915115, 0.026998810470104218, -0.043870504945516586, 0.05416162312030792, 0.08331295847892761, 0.006888079456984997, -0.0065549504943192005, -0.06830678880214691, 0.015457178466022015, -0.05321861431002617, -0.004750929772853851, -0.08774100989103317, 0.00034049610258080065, -0.012033638544380665, -0.05108658969402313, 0.0010775437112897635, -0.023083265870809555, -0.015036922879517078, 0.050266578793525696, 0.020828239619731903, 0.01979297772049904, -0.011264880187809467, 0.035219404846429825, 0.03603941574692726, 0.06867579370737076, -0.03417389467358589, 0.019362473860383034, -0.006252571940422058, 0.046248532831668854, -0.05325961485505104, 0.012361641973257065, 0.0026983434800058603, 0.0005637565045617521, -0.005009745247662067, -0.05539163947105408, 0.04768354818224907, 0.019516224041581154, 0.043009497225284576, -0.07798289507627487, -0.026445304974913597, -0.021566247567534447, -0.0453055202960968, 0.009255856275558472, 0.022386258468031883, -0.02658880688250065, -0.0913490504026413, 0.043378498405218124, 0.06924980133771896, -0.011193129234015942, 0.08077093213796616, -0.03448139876127243, 0.011992637999355793, -0.04346049949526787, 0.04003696143627167, 0.01615418680012226, -0.012751147150993347, -0.010752374306321144, 0.042271487414836884, 0.010178367607295513, 0.04772454872727394, 0.03333338350057602, -0.011244379915297031, 0.022427259013056755, 0.05182459577918053, 0.01863471418619156, -0.02677330933511257, -0.07187382876873016, -0.011244379915297031, -0.060188692063093185, -0.05010257661342621, -0.002936658915132284, -0.011182879097759724, -0.011992637999355793, -0.005453062709420919, -0.043009497225284576, 0.041307974606752396, 0.010834374465048313, 0.057769667357206345, 0.044526513665914536, -0.04469051584601402, 0.012894648127257824, -0.044075507670640945, -0.024579783901572227, -0.023431770503520966, -0.02230425737798214, -0.04018046334385872, 0.03731042891740799, -0.031098857522010803, -0.04620753228664398, -0.013786409050226212, 0.03181636705994606, 0.0017553326906636357, 0.043624501675367355, 0.028884833678603172, -0.011408381164073944, 0.0013024056097492576, 0.0065549504943192005, -0.050266578793525696, -0.014780670404434204, -0.011623634025454521, 0.004018046427518129, 0.023882774636149406, -0.002846970222890377, 0.030545352026820183, -0.025912297889590263, 0.03690042346715927, 0.06888079643249512, -0.0037643557880073786, -0.0225092601031065, 0.0018373336642980576, 0.00682145357131958, 0.0010121992090716958, 0.019885228946805, -0.04264049232006073, -0.015036922879517078, 0.01215664017945528, -0.04309149831533432, 0.011059877462685108, 0.002521529095247388, -0.006626701448112726, 0.02129974588751793, -0.07216083258390427, 0.0038694196846336126, 0.061541710048913956, 0.02300126478075981, 0.006631826516240835, -0.003631104249507189, 0.0280443225055933, 0.006052694749087095, 0.03966795653104782, -0.02320626750588417, -0.048503559082746506, 0.060188692063093185, 0.00873310025781393, -0.04259949177503586, -0.015262425877153873, 0.02607630006968975, -0.002908471040427685, 0.06158271059393883, 0.010055365972220898, 0.013417404145002365, -0.03603941574692726, -0.06580575555562973, -0.0072980839759111404, 0.0574006624519825, -0.03382539004087448, -0.07175082713365555, 0.032451875507831573, -0.039298951625823975, 0.05051258206367493, -0.024456782266497612, -0.026301803067326546, 0.008389721624553204, 0.014678169041872025, 0.01897296868264675, -0.018337462097406387, -0.014872921630740166, 0.027962321415543556, 0.025686796754598618, -0.04751954600214958, 0.012822898104786873, 0.04214848577976227, -0.04948756843805313, -0.0202849842607975, 0.007872090674936771, 0.05502263456583023, -0.01682044379413128, -0.021217744797468185, 0.047560546547174454, -0.013919660821557045, 0.020858990028500557, 0.010029740631580353, 0.015159924514591694, 0.0550636351108551, 0.019967230036854744, 0.007907966151833534, 0.009573610499501228, -0.05526863783597946, -0.08277995139360428, -0.03716692700982094, 0.0071084569208323956, 0.0202849842607975, 0.004479301627725363, -0.01908572018146515, 0.003126285970211029, 0.0410824716091156, -0.011039377190172672, 0.02129974588751793, -0.03862244635820389, -0.01407341193407774, -0.041205473244190216, 0.031939368695020676, -0.0410824716091156, 0.052890609949827194, 0.03624441847205162, -0.01291514839977026, -0.05981969088315964, 0.0006483199540525675, -0.017660953104496002, 0.021832751110196114, -0.035567909479141235, -0.06281272321939468, -0.014052911661565304, -0.015159924514591694, -0.03784343600273132, 0.02607630006968975, 0.024538783356547356, -0.003587541403248906, -0.04149247705936432, 0.037187427282333374, -0.019198471680283546, -0.02548179402947426, -0.008215469308197498, -0.02160724811255932, -0.047601547092199326, 0.008328220807015896, 0.019649475812911987, -0.028228824958205223, -0.014309165067970753, -0.038437943905591965, 0.06560075283050537, -0.04440351203083992, -0.0167179424315691, 0.0005214747507125139, 0.030750354751944542, 0.027757320553064346, -0.055965643376111984, 0.0410824716091156, 0.005786191672086716, -0.005586314480751753, -0.03839694336056709, 0.054202623665332794, 0.0041359225288033485, -0.07154582440853119, -0.034358397126197815, 0.03489140048623085, -0.049815572798252106, 0.01797870732843876, 0.048011552542448044, 0.029725342988967896, -0.04887256398797035, 0.002010304480791092, 0.033661387860774994, 0.007175082806497812, 0.0000477271132695023, -0.01185938622802496, 0.0034696650691330433, 0.009342982433736324, 0.021074242889881134, -0.05785166472196579, -0.003069910453632474, -0.012371892109513283, 0.01953672431409359, -0.037884436547756195, -0.0054376875050365925, -0.009824737906455994, -0.01716894842684269, 0.03298487886786461, 0.10496120899915695, 0.010762624442577362, 0.0046945540234446526, -0.018337462097406387, -0.002448496874421835, 0.018808966502547264, -0.024702785536646843, -0.03060685284435749, 0.016953695565462112, -0.08970903605222702, -0.029438339173793793, -0.04395250603556633, -0.024579783901572227, -0.023247268050909042, -0.0020628361962735653, -0.026260802522301674, 0.03070935420691967, 0.0017604577587917447, 0.03747443109750748, -0.00538643728941679, -0.03485039994120598, -0.025604795664548874, -0.0005070605548098683, 0.05018457770347595, -0.0002719484327826649, 0.018255461007356644, -0.011603133752942085, -0.023390769958496094, 0.013806909322738647, 0.0016054247971624136, 0.02185325138270855, 0.03806893900036812, -0.02033623494207859, 0.019864728674292564, -0.05481763184070587, -0.01903446950018406, 0.017855705693364143, -0.011357130482792854, 0.008317970670759678, 0.03323088213801384, 0.024641284719109535, -0.03286187723278999, -0.007195583079010248, -0.008692099712789059, 0.03202136978507042, 0.022898763418197632, -0.07818789780139923, -0.014770420268177986, -0.03614191710948944, 0.005806691944599152, 0.029684342443943024, -0.01125463005155325, -0.11168528348207474, -0.004553615115582943, -0.059327684342861176, 0.026609307155013084, -0.0004676616517826915, -0.014196413569152355, 0.030094346031546593, -0.06232071667909622, -0.010844624601304531, -0.0029725341591984034, 0.05075858533382416, 0.042558491230010986, 0.01912672072649002, -0.008379471488296986, 0.04551052302122116, -0.04305049777030945, -0.004653553478419781, -0.008000217378139496, 0.0379459373652935, 0.007303209044039249, -0.0645347461104393, -0.020315734669566154, 0.02431328035891056, -0.0231652669608593, 0.07732689380645752, -0.08897102624177933, -0.02007998153567314, -0.012792147696018219, 0.026445304974913597, -0.05207059904932976, -0.0036336667835712433, -0.0023165266029536724, -0.055309638381004333, 0.01003999076783657, 0.041205473244190216, 0.05362861603498459, 0.035424407571554184, 0.01495492272078991, 0.028905333951115608, 0.0019564912654459476, -0.0045561776496469975, -0.013868410140275955, -0.0026599057018756866, -0.002403652761131525, 0.045592524111270905, 0.0004942478844895959, 0.01831696182489395, -0.042107485234737396, -0.01348915509879589, 0.05301361158490181, -0.0014555167872458696, 0.013048400171101093, 0.03025834821164608, -0.018901217728853226, -0.036367420107126236, -0.051373593509197235, 0.015877433121204376, -0.02466178499162197, 0.031098857522010803, -0.013191902078688145, 0.02925383672118187, 0.04071347042918205, 0.0013991411542519927, 0.028003321960568428, -0.01938297413289547, 0.023903274908661842, 0.05371061712503433, 0.00518655963242054, -0.050922587513923645, 0.05916368216276169, -0.004325550049543381, 0.0613367073237896, -0.0024882161524146795, -0.039954960346221924, -0.016851194202899933, 0.03220587223768234, -0.011695384979248047, -0.05592464283108711, 0.019813477993011475, -0.04505952075123787, 0.08118093758821487, 0.010178367607295513, 0.01225914154201746, 0.014555167406797409, 0.057769667357206345, -0.048708561807870865, 0.03485039994120598, -0.0505535826086998, -0.06892179697751999, -0.104305200278759, -0.004492114298045635, -0.02970484271645546, 0.08343596011400223, 0.03931945189833641, -0.004912368953227997, -0.000002842806225089589, 0.013120151124894619, 0.019946729764342308 ]
714,779
pytorch_optimizer.optimizer.sgd
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-2, amplifier: float = 0.02, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, theta: float = 1.0, dampening: float = 1.0, eps: float = 1e-5, ): self.validate_learning_rate(lr) self.validate_non_negative(amplifier, 'amplifier') self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'amplifier': amplifier, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'theta': theta, 'dampening': dampening, 'eps': eps, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.01, amplifier: float = 0.02, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, theta: float = 1.0, dampening: float = 1.0, eps: float = 1e-05)
[ 0.006455053109675646, -0.0076621342450380325, 0.005667621735483408, 0.00690770847722888, -0.03960733860731125, -0.018125072121620178, -0.08321313560009003, -0.020407209172844887, -0.03904151916503906, 0.04322858154773712, -0.01764412596821785, 0.048999935388565063, 0.03832481428980827, 0.08796601742506027, -0.01957734115421772, 0.026536917313933372, 0.005049935542047024, 0.015201673842966557, -0.015003637410700321, -0.0005171940429136157, -0.0007868422544561327, -0.015908947214484215, -0.01188220176845789, 0.12085896730422974, -0.0033265450038015842, 0.01928500272333622, -0.03542027622461319, 0.0009023636230267584, -0.045227810740470886, 0.02023746445775032, 0.0036589638330042362, -0.01700286567211151, 0.005851512774825096, 0.08796601742506027, 0.04752880707383156, -0.018219375982880592, -0.03562774509191513, -0.0076149823144078255, -0.07506533712148666, 0.02829095721244812, 0.053337883204221725, -0.035910654813051224, 0.05990138649940491, -0.051112327724695206, -0.014588703401386738, 0.026687802746891975, 0.018530577421188354, 0.036834824830293655, -0.013928581029176712, -0.04519008845090866, 0.012231123633682728, -0.013438204303383827, 0.023934150114655495, -0.0002364947140449658, -0.03606154024600983, 0.03534483537077904, 0.061712007969617844, 0.03445838391780853, 0.018747473135590553, 0.0037226183339953423, -0.0001662093709455803, -0.0473024807870388, 0.009109687991440296, -0.015701480209827423, 0.00912383385002613, -0.02212352864444256, -0.09219079464673996, -0.017757290974259377, 0.028649307787418365, 0.034420665353536606, 0.11044789105653763, -0.02940373495221138, -0.01283466350287199, 0.005719488486647606, 0.003559945384040475, -0.005045220721513033, -0.07446179538965225, -0.053790539503097534, -0.035778630524873734, -0.018021339550614357, 0.01833253912627697, 0.047453366219997406, -0.022802511230111122, -0.024066174402832985, 0.02383984625339508, -0.04767969250679016, -0.05175359174609184, -0.06239099055528641, 0.017653556540608406, 0.02757425233721733, -0.062164660543203354, -0.01669166423380375, 0.011372964829206467, -0.026103122159838676, 0.0683886706829071, 0.013136434368789196, 0.0139097198843956, -0.038664307445287704, 0.03400573134422302, -0.008534438908100128, -0.019633924588561058, 0.000860516622196883, -0.0434926301240921, 0.012514033354818821, 0.02442452497780323, -0.04138023778796196, -0.04786830022931099, -0.026932990178465843, 0.023858707398176193, -0.06906765699386597, -0.018530577421188354, 0.04884904995560646, -0.04707615077495575, 0.030459929257631302, -0.058694303035736084, 0.04315314069390297, 0.015607177279889584, -0.004078613128513098, 0.006657805293798447, -0.00545072415843606, 0.022104667499661446, 0.0354391373693943, -0.04617084190249443, 0.03328902646899223, 0.03594837710261345, -0.027083875611424446, 0.011174927465617657, 0.018162794411182404, 0.008425990119576454, -0.03328902646899223, 0.030497651547193527, 0.007775297854095697, -0.05028245970606804, -0.020935308188199997, 0.024839458987116814, -0.04002227261662483, 0.017050016671419144, 0.059486452490091324, -0.04579363018274307, 0.01920956000685692, 0.062428709119558334, 0.0188134852796793, 0.04628400504589081, 0.013919150456786156, -0.02114277519285679, 0.009732089005410671, -0.04368123784661293, -0.0030412778723984957, -0.009501046501100063, 0.029837528243660927, 0.004597280640155077, 0.022802511230111122, 0.016144705936312675, 0.01701229438185692, 0.020539235323667526, -0.037947602570056915, 0.013928581029176712, -0.01132581289857626, 0.01238200906664133, 0.007478242740035057, -0.022274412214756012, 0.004439322743564844, 0.030101578682661057, -0.03770241513848305, -0.01756868325173855, 0.01535255927592516, -0.027027294039726257, -0.010590247809886932, 0.005997682921588421, -0.01345706544816494, 0.015748633071780205, -0.11535166203975677, -0.008275104686617851, 0.021840618923306465, -0.026763245463371277, 0.06337174028158188, 0.028837915509939194, 0.0012719142250716686, -0.009128548204898834, -0.016069263219833374, 0.06661577522754669, -0.006200434640049934, -0.02219897136092186, -0.0594487302005291, 0.03164815157651901, 0.01076942402869463, -0.03843798115849495, 0.0595996156334877, -0.03521281108260155, 0.033496491611003876, 0.07246257364749908, -0.0031167203560471535, -0.0084920022636652, 0.027781719341874123, -0.020331768319010735, 0.0050782267935574055, 0.061976056545972824, -0.01708773709833622, 0.020331768319010735, 0.07400914281606674, 0.06929398328065872, 0.025065787136554718, 0.019105825573205948, -0.014645284973084927, 0.020124301314353943, -0.009373736567795277, -0.01312700379639864, 0.017945896834135056, -0.051829032599925995, -0.031855616718530655, 0.026763245463371277, -0.01293839793652296, 0.04726475849747658, 0.03255346044898033, -0.009864113293588161, -0.029630061239004135, -0.004170558415353298, 0.026272868737578392, 0.014456679113209248, -0.009835822507739067, 0.08600451052188873, -0.025688188150525093, -0.012155680917203426, 0.014447248540818691, 0.047453366219997406, 0.027065014466643333, 0.05016929656267166, -0.055223945528268814, -0.06997296959161758, 0.023688960820436478, -0.017050016671419144, -0.060467205941677094, -0.0042318557389080524, 0.006290022749453783, 0.0556388795375824, -0.002125358209013939, -0.024594271555542946, 0.03498648479580879, -0.09188902378082275, -0.025952236726880074, 0.03515622764825821, 0.022029224783182144, 0.0021901915315538645, -0.019218990579247475, 0.005898664239794016, 0.018577728420495987, 0.03413775563240051, 0.03138410300016403, -0.029252849519252777, -0.02744222804903984, -0.021105052903294563, 0.00039017945528030396, -0.0024542405735701323, 0.045340973883867264, -0.038343675434589386, 0.036646220833063126, 0.0278948824852705, -0.010363920591771603, 0.011203219182789326, -0.009977277368307114, -0.011571001261472702, 0.014918764121830463, -0.014984776265919209, 0.07348104566335678, 0.01600325107574463, 0.008152510970830917, -0.012297135777771473, -0.008407128974795341, 0.037042293697595596, 0.005384712014347315, 0.11927467584609985, 0.011344674043357372, -0.006893563084304333, 0.012825233861804008, -0.014324653893709183, -0.03975822404026985, 0.010128162801265717, -0.03889063373208046, -0.004955632612109184, 0.0470007099211216, 0.015361989848315716, -0.04956575483083725, 0.015201673842966557, 0.005724203772842884, -0.011288091540336609, 0.014560412615537643, -0.003944230731576681, 0.04028632119297981, 0.014286933466792107, 0.014173769392073154, -0.0045218379236757755, 0.011759608052670956, 0.07167042046785355, 0.030007274821400642, 0.09128548949956894, -0.017710138112306595, 0.024066174402832985, -0.010892018675804138, 0.06359807401895523, -0.018219375982880592, 0.04692526534199715, -0.045227810740470886, 0.023783264681696892, -0.01205194741487503, -0.03391142562031746, -0.03708001226186752, 0.023142002522945404, 0.028272096067667007, 0.035722047090530396, 0.051564984023571014, 0.04749108478426933, 0.015399710275232792, 0.02285909280180931, 0.027423366904258728, 0.02297225594520569, -0.06861499696969986, 0.017766721546649933, -0.04734019935131073, 0.04281364753842354, 0.04726475849747658, 0.007930898107588291, 0.04262503981590271, -0.020407209172844887, -0.014862182550132275, -0.068539559841156, -0.07898835092782974, 0.033741679042577744, 0.020444931462407112, -0.01299497950822115, -0.006224010605365038, -0.051564984023571014, 0.0010892017744481564, 0.0033713390585035086, -0.05043334513902664, -0.052734341472387314, -0.009199275635182858, -0.00046768487663939595, 0.054318636655807495, -0.014220920391380787, -0.030026135966181755, 0.07400914281606674, -0.009020100347697735, -0.020350627601146698, 0.05684596300125122, -0.03064853698015213, -0.050584230571985245, -0.013994593173265457, -0.027989186346530914, 0.047377921640872955, -0.029441455379128456, -0.011080624535679817, 0.0016385179478675127, -0.003934800624847412, 0.08577817678451538, 0.058694303035736084, -0.019426457583904266, -0.03359079733490944, -0.0031143627129495144, 0.015239395201206207, -0.04601995646953583, -0.028837915509939194, -0.013607949949800968, -0.029969552531838417, 0.0634094625711441, 0.03743836656212807, -0.012212262488901615, 0.007459382060915232, -0.04813234880566597, 0.016785968095064163, 0.016418185085058212, 0.010062150657176971, -0.07785671204328537, -0.018672030419111252, -0.01689913123846054, 0.013334470801055431, -0.010571387596428394, -0.01875690370798111, 0.02429250068962574, 0.03476015478372574, -0.009288864210247993, 0.004453468136489391, 0.0006277055945247412, 0.045605022460222244, 0.027385646477341652, -0.008454280905425549, -0.032251689583063126, -0.007831879891455173, 0.030629675835371017, 0.06789829581975937, 0.0029988414607942104, -0.009076681919395924, 0.0006506919744424522, 0.005115948151797056, -0.031534984707832336, -0.05428091436624527, 0.046397168189287186, 0.006252301391214132, 0.04322858154773712, -0.06352262943983078, -0.03698571026325226, -0.010948600247502327, -0.061259351670742035, 0.006902993191033602, 0.029347151517868042, -0.002807877492159605, -0.003927727695554495, 0.026103122159838676, 0.041946057230234146, 0.015003637410700321, 0.06306996941566467, 0.024349084123969078, -0.016804827377200127, -0.025046925991773605, 0.013645671308040619, -0.017549823969602585, -0.03530711308121681, 0.005516736302524805, -0.02127479948103428, 0.024914901703596115, -0.008675893768668175, 0.024726295843720436, 0.0015642541693523526, 0.06906765699386597, 0.02757425233721733, 0.059033796191215515, 0.04164428636431694, -0.012259414419531822, 0.03194991871714592, -0.005446009337902069, -0.0594487302005291, -0.05982594192028046, -0.00467508053407073, -0.02895107865333557, -0.027611972764134407, 0.006445623002946377, 0.024518828839063644, 0.009816962294280529, 0.028460701927542686, 0.00736979441717267, -0.03481673821806908, 0.0061391377821564674, -0.08343946188688278, 0.015560026280581951, -0.032647762447595596, -0.0533001609146595, -0.025386419147253036, -0.004644432105123997, 0.005955246277153492, -0.04277592524886131, -0.000889396935235709, 0.04111618921160698, 0.009387882426381111, 0.038664307445287704, -0.007534824777394533, -0.013485356234014034, -0.023274026811122894, -0.009911265224218369, -0.04368123784661293, 0.061523400247097015, -0.023726683109998703, 0.05115005001425743, -0.007440521381795406, -0.0048613292165100574, -0.0279703252017498, -0.0434926301240921, 0.04383212327957153, 0.05688368156552315, 0.0015736845089122653, -0.010967460460960865, -0.0032463872339576483, 0.03268548473715782, 0.02272706851363182, 0.02868703007698059, -0.021199356764554977, -0.03785330057144165, 0.03636331111192703, -0.024198198691010475, -0.010477084666490555, 0.009251142852008343, -0.016870839521288872, 0.0014251569518819451, -0.05605381354689598, 0.020011136308312416, 0.06239099055528641, 0.0029186836909502745, -0.024839458987116814, -0.06265503913164139, -0.001988618401810527, 0.009873543865978718, 0.06095758080482483, -0.07257573306560516, -0.003255817573517561, 0.034873317927122116, 0.03325130417943001, -0.023990731686353683, -0.0054743001237511635, 0.03255346044898033, 0.002253846265375614, 0.02259504422545433, 0.02612198330461979, 0.019218990579247475, -0.037098873406648636, -0.046472612768411636, -0.005167814902961254, 0.04164428636431694, -0.04005999490618706, -0.11165497452020645, 0.0333833284676075, -0.04221010580658913, 0.01575806364417076, -0.013673962093889713, 0.00935016106814146, -0.016163567081093788, 0.024933762848377228, -0.04111618921160698, -0.025952236726880074, -0.0497920848429203, 0.06386212259531021, -0.006530495826154947, -0.03732520341873169, 0.04032404348254204, 0.066766656935215, 0.025631606578826904, -0.04873588681221008, -0.002607483183965087, 0.03419433534145355, 0.004880189895629883, -0.049603477120399475, 0.06997296959161758, 0.02815893292427063, -0.0163993239402771, -0.0383625365793705, -0.03923012688755989, 0.04107847064733505, -0.02402845211327076, 0.04654805362224579, 0.01394744124263525, -0.01666337251663208, -0.02644261345267296, -0.05062195286154747, 0.01991683430969715, 0.022670486941933632, 0.025424139574170113, -0.05560116097331047, -0.00579493073746562, 0.008652317337691784, -0.040437206625938416, 0.08042176067829132, -0.050395622849464417, 0.007393369916826487, -0.0005499054677784443, -0.032968394458293915, -0.06103302538394928, 0.018822915852069855, 0.03057309426367283, 0.0012483384925872087, 0.038343675434589386, 0.0012318354565650225, 0.02953575924038887, 0.04741564393043518, -0.048886772245168686, -0.01872861385345459, -0.011137206107378006, 0.016088124364614487, -0.0022998189087957144, 0.0005036379443481565, 0.006030688993632793, -0.02880019322037697, -0.07615925371646881, 0.008671178482472897, 0.0001237729302374646, -0.006874702405184507, 0.013089282438158989, 0.014975346624851227, -0.08313769102096558, 0.01769127883017063, 0.00180119089782238, 0.012815803289413452, -0.030101578682661057, -0.04654805362224579, 0.021237077191472054, 0.00545072415843606, -0.0821569412946701, -0.07416002452373505, 0.035061925649642944, -0.017549823969602585, -0.0354391373693943, 0.009303009137511253, -0.019002093002200127, -0.00609198585152626, -0.010137592442333698, 0.030309045687317848, -0.03751380741596222, -0.039720501750707626, -0.035193949937820435, 0.01809678226709366, -0.03287409245967865, -0.025028066709637642, 0.056016094982624054, 0.06657805293798447, -0.07238712906837463, -0.010882588103413582, 0.02161429077386856, -0.0235003549605608, 0.010335629805922508, -0.029290569946169853, -0.012363147921860218, 0.04696298763155937, -0.003029489889740944, -0.058241650462150574, 0.009614209644496441, -0.017927035689353943, 0.001577220857143402, -0.05190447345376015, 0.01875690370798111, -0.05092372000217438, -0.04749108478426933, 0.015635468065738678, 0.07461268454790115, -0.00017961810226552188, -0.0024565979838371277, -0.03811734914779663, -0.01381541695445776, 0.04386984184384346, -0.08547641336917877, -0.02612198330461979, -0.006228725425899029, -0.11769037693738937, 0.004580777604132891, -0.03774013742804527, 0.020916447043418884, -0.022481881082057953, -0.011816189624369144, -0.05986366420984268, 0.013513647019863129, 0.02297225594520569, 0.01976594887673855, 0.015673190355300903, 0.05428091436624527, -0.013447634875774384, 0.006011828314512968, 0.057260897010564804, 0.0004750523075927049, -0.026178564876317978, -0.008765481412410736, -0.03738178312778473, -0.011240940541028976, 0.0009182773064821959, 0.03806076571345329, 0.02500920556485653, -0.024707434698939323, 0.03956961631774902, -0.03873974829912186, 0.019860250875353813, -0.005379996728152037, -0.006360750179737806, 0.00545072415843606, 0.020388349890708923, 0.044624269008636475, -0.021331381052732468, -0.021123914048075676, -0.011240940541028976, 0.05292294919490814, 0.027065014466643333, 0.019954554736614227, -0.003930085338652134, -0.04722703620791435, -0.0062051499262452126, -0.012080238200724125, -0.029894111678004265, -0.04937715083360672, -0.011448407545685768, -0.03934329003095627, 0.02135024219751358, 0.02725362218916416, 0.004960347898304462, -0.04138023778796196, -0.05729861557483673, 0.015607177279889584, -0.013928581029176712, 0.04828323423862457, 0.029045382514595985, -0.00043556286254897714, -0.039645060896873474, 0.026103122159838676, -0.008029916323721409, -0.05537483096122742, 0.029026521369814873, -0.022877953946590424, -0.026423754170536995, -0.04990524798631668, 0.00789317674934864, 0.01655963994562626, -0.023028839379549026, 0.04643489047884941, -0.06525781005620956, -0.08359034359455109, -0.05892063304781914, 0.025631606578826904, -0.03621242567896843, -0.019426457583904266, 0.014428387396037579, -0.06303225457668304, 0.05658191442489624, 0.02082214318215847, 0.047830577939748764, -0.0038357821758836508, -0.02253846265375614, 0.013362761586904526, -0.05982594192028046, 0.031006887555122375, 0.05865658447146416, 0.02214238792657852, -0.06914310157299042, -0.019303862005472183, 0.026480335742235184, 0.027555391192436218, -0.02880019322037697, -0.029743226245045662, 0.010618538595736027, -0.012891246005892754, -0.038664307445287704, 0.013013839721679688, -0.005936385598033667, 0.006681380793452263, -0.06261731684207916, -0.031855616718530655, -0.007308497093617916, 0.03649533540010452, -0.033685099333524704, 0.034269779920578, 0.030497651547193527, -0.028517283499240875, 0.009633070789277554, 0.006733247544616461, -0.015494014136493206, 0.03215738758444786, 0.01299497950822115, 0.05054650828242302, 0.05963733792304993, 0.015748633071780205, 0.02966778352856636, -0.026178564876317978, 0.016587931662797928, 0.001396865933202207, 0.06031632050871849, -0.01584293507039547, -0.024405665695667267, 0.07151953876018524, 0.001893136533908546, -0.013513647019863129, -0.010514805093407631, 0.00040078855818137527, 0.028988800942897797, 0.04428477585315704, -0.055110782384872437, 0.025103509426116943, -0.02657463774085045, -0.08064808696508408, -0.09324699640274048, -0.0105430968105793, -0.03360965475440025, 0.09068194776773453, 0.021765176206827164, -0.0007391012622974813, 0.04605767875909805, 0.05413002893328667, 0.023538075387477875 ]
714,782
pytorch_optimizer.optimizer.sgd
__str__
null
def __str__(self) -> str: return 'ASGD'
(self) -> str
[ -0.0008266314980573952, -0.02784077450633049, 0.02617449313402176, -0.018467945978045464, 0.009181900881230831, -0.0675537958741188, 0.005554269067943096, -0.01129078771919012, 0.1260819137096405, -0.07651005685329437, -0.05738254263997078, -0.0031394639518111944, -0.00971997156739235, 0.026261279359459877, 0.022876646369695663, 0.01145568024367094, -0.018086088821291924, -0.03424553945660591, 0.02485535480082035, 0.013000461272895336, -0.012037143111228943, 0.030288124457001686, -0.007593727670609951, -0.03216268867254257, -0.002075257245451212, 0.07366349548101425, 0.013147996738553047, -0.02561906725168228, -0.02699027769267559, -0.010665932670235634, 0.03126012161374092, -0.06762322783470154, -0.00967657845467329, 0.019700298085808754, -0.015925131738185883, 0.02082850970327854, -0.017348412424325943, -0.0020405431278049946, -0.03794260323047638, 0.00434578163549304, -0.02631334960460663, 0.013061211444437504, -0.019787084311246872, -0.03971302509307861, -0.013738137669861317, -0.017417840659618378, -0.01864151656627655, 0.03249247372150421, 0.001441723434254527, -0.007715227082371712, 0.016419807448983192, 0.0028292059432715178, -0.04918999597430229, -0.002731572138145566, -0.022633647546172142, 0.02537606656551361, 0.03249247372150421, 0.016758272424340248, -0.01565609686076641, 0.023119645193219185, -0.02143600769340992, -0.03035755269229412, 0.06460309028625488, -0.0424901582300663, -0.020741723477840424, 0.0390881709754467, -0.023345287889242172, 0.037630174309015274, 0.02926405519247055, 0.04884285479784012, 0.04453829675912857, -0.05457069352269173, -0.01444109994918108, 0.004180889576673508, 0.022251790389418602, 0.006422123871743679, -0.08275861293077469, 0.0058580185286700726, 0.007984261959791183, -0.05724368616938591, 0.02537606656551361, -0.011065145954489708, -0.01930108480155468, -0.01038821879774332, -0.006205160170793533, -0.07741262763738632, -0.029437627643346786, -0.04012959450483322, -0.044225867837667465, 0.004365308675915003, 0.013512495905160904, -0.021939363330602646, -0.02490742690861225, 0.06005553528666496, -0.0388798862695694, 0.004178719595074654, 0.013599281199276447, -0.06140938773751259, 0.02124507911503315, 0.009919577278196812, 0.011091181077063084, -0.010205970145761967, -0.018103446811437607, 0.017313698306679726, -0.04856514185667038, -0.03832445666193962, -0.02518513984978199, 0.033620685338974, 0.00012760174286086112, 0.0023063234984874725, -0.036206893622875214, -0.0016988252755254507, 0.041900020092725754, -0.025289282202720642, 0.016740914434194565, -0.0687340795993805, 0.02860448695719242, 0.011039109900593758, 0.013920387253165245, -0.02603563666343689, 0.025080997496843338, 0.0056844474747776985, -0.048495713621377945, 0.01282689068466425, 0.05293912813067436, 0.0640476644039154, -0.053945839405059814, -0.009043044410645962, 0.004337103106081486, -0.06269381195306778, 0.04387872666120529, 0.029802124947309494, -0.06179124489426613, -0.031086551025509834, 0.08130061626434326, -0.015673452988266945, 0.045267295092344284, 0.008045012131333351, 0.024195784702897072, 0.13566303253173828, -0.02285928837954998, 0.0001450944400858134, 0.04030316695570946, -0.001992810983210802, 0.014362992718815804, 0.030999764800071716, -0.00797992292791605, 0.04689886048436165, -0.021366579458117485, -0.009025687351822853, 0.03985188156366348, 0.05554269254207611, 0.024056928232312202, -0.003254454582929611, -0.018554730340838432, -0.024299927055835724, -0.005380698479712009, -0.03245776146650314, 0.03063526563346386, -0.021418651565909386, -0.008413850329816341, -0.035825036466121674, -0.024438785389065742, -0.0059751789085567, 0.0067345513962209225, 0.008088404312729836, -0.003332561580464244, 0.027719274163246155, 0.01133418083190918, -0.027962274849414825, -0.04130987823009491, -0.06484609097242355, -0.09185373038053513, 0.038636885583400726, -0.0013939914060756564, 0.04054616391658783, 0.011195323430001736, 0.10108769685029984, 0.04807914420962334, -0.04387872666120529, 0.010232005268335342, 0.016541307792067528, -0.055369120091199875, 0.046933576464653015, 0.06429066509008408, -0.03459268435835838, 0.025983566418290138, 0.047454286366701126, 0.03627632185816765, -0.017148805782198906, 0.03054848127067089, 0.018467945978045464, -0.04481600970029831, -0.01444109994918108, 0.0030374908819794655, -0.05811154097318649, 0.006552301812916994, -0.06748437136411667, -0.037074748426675797, 0.046447575092315674, -0.00936415046453476, 0.039956025779247284, -0.04353158548474312, 0.038393884897232056, 0.05790325626730919, 0.02105415239930153, 0.03585975244641304, -0.031989119946956635, -0.01237560622394085, -0.04106687754392624, 0.015551953576505184, 0.012696712277829647, -0.009433578699827194, 0.019561441615223885, 0.02523721009492874, -0.0687340795993805, 0.018520016223192215, 0.01902337186038494, -0.016810342669487, 0.02811848744750023, 0.022112933918833733, -0.021227722987532616, 0.005185430869460106, -0.035408467054367065, -0.014258850365877151, 0.009095115587115288, 0.0137034235522151, -0.004504165146499872, -0.027910202741622925, -0.03967830911278725, -0.0002751370193436742, -0.07484377920627594, 0.0011433983454480767, 0.0373871736228466, 0.024542927742004395, 0.040580879896879196, -0.03167669102549553, -0.022234434261918068, -0.07852347940206528, -0.03299583122134209, -0.00852667074650526, 0.005732179619371891, 0.0017617447301745415, 0.018988657742738724, 0.02082850970327854, -0.04471186548471451, -0.03391575813293457, 0.016871092841029167, -0.009772042743861675, -0.0514117032289505, 0.04283730313181877, -0.05595926195383072, -0.0084051713347435, -0.012939712032675743, -0.03693589195609093, -0.05137699097394943, -0.03429761156439781, 0.04273315891623497, 0.02537606656551361, -0.006691158749163151, -0.07081693410873413, 0.017695555463433266, -0.05557740479707718, 0.04380929842591286, -0.001246456173248589, 0.03818560019135475, -0.006491552107036114, 0.022946074604988098, 0.033551257103681564, -0.02110622264444828, 0.10310111939907074, 0.04200416058301926, -0.06061096116900444, 0.013798887841403484, -0.021783148869872093, 0.004499826114624739, -0.010605182498693466, 0.04321915656328201, -0.07442720979452133, -0.06019439175724983, 0.019509371370077133, -0.026434849947690964, -0.006652105133980513, 0.050960421562194824, -0.009598471224308014, -0.06151353195309639, 0.038636885583400726, -0.03309997171163559, 0.035026609897613525, 0.03428025543689728, 0.05856282636523247, 0.018433231860399246, -0.004469451028853655, 0.012983104214072227, 0.04235130175948143, 0.013929065316915512, 0.0727609246969223, 0.015534596517682076, -0.02608770877122879, 0.004881681874394417, -0.009286044165492058, -0.008730617351830006, 0.01114325225353241, 0.0010018296306952834, -0.05061327666044235, 0.011420966126024723, -0.0084051713347435, -0.003892327658832073, 0.014987848699092865, 0.024872710928320885, -0.06245081499218941, 0.030236052349209785, 0.011750751174986362, 0.0659569501876831, 0.019040729850530624, 0.07414949685335159, -0.01292235404253006, 0.00482527120038867, 0.03780374303460121, 0.056132834404706955, -0.056792404502630234, 0.025254568085074425, -0.03195440396666527, -0.01620284467935562, 0.013929065316915512, -0.0007073014858178794, -0.04183059185743332, 0.05450126528739929, 0.03115597926080227, 0.026625778526067734, -0.06633879989385605, -0.05189770460128784, 0.025931494310498238, -0.013338924385607243, -0.013078568503260612, -0.001478607184253633, 0.03638046234846115, -0.04471186548471451, -0.02850034460425377, -0.04006016626954079, 0.06630408763885498, 0.023935429751873016, -0.02504628337919712, 0.03794260323047638, 0.025480210781097412, 0.020689653232693672, -0.05894468352198601, -0.02992362529039383, -0.00014156877296045423, -0.013625316321849823, -0.02447349950671196, -0.019596155732870102, 0.03870631381869316, 0.03638046234846115, 0.04481600970029831, 0.02082850970327854, -0.003569051856175065, 0.07071278989315033, -0.013052532449364662, 0.04165701940655708, 0.0010956664336845279, -0.06252024322748184, 0.009494328871369362, 0.013903030194342136, -0.013052532449364662, -0.00025642389664426446, 0.0005635630805045366, -0.023466788232326508, 0.06797037273645401, -0.05689654499292374, -0.02186993509531021, 0.006808319129049778, -0.03287433087825775, -0.011776786297559738, -0.023345287889242172, 0.06495023518800735, 0.030270766466856003, -0.0074678887613117695, -0.04859985411167145, -0.006725872866809368, 0.024785926565527916, -0.006413445342332125, 0.002014507306739688, 0.07165007293224335, 0.020516082644462585, -0.02214764803647995, 0.02351885847747326, 0.027424205094575882, -0.0035061324015259743, -0.008813062682747841, -0.021731078624725342, -0.03143369406461716, 0.008248957805335522, -0.014961812645196915, -0.04273315891623497, -0.0637352392077446, -0.046933576464653015, -0.028014345094561577, -0.05064799264073372, 0.045267295092344284, 0.013009140267968178, -0.03429761156439781, 0.02044665440917015, 0.005102985072880983, -0.033412400633096695, 0.007263942621648312, 0.018537374213337898, -0.005489180330187082, -0.03842860087752342, 0.005163734778761864, 0.0003449721843935549, -0.008292349986732006, -0.06654708832502365, -0.044087011367082596, 0.05415412411093712, 0.005636715330183506, -0.026452207937836647, 0.014215458184480667, -0.010119183920323849, 0.0014731831615790725, -0.036206893622875214, 0.05734783038496971, 0.015760239213705063, 0.06026381999254227, 0.012123928405344486, 0.00860911700874567, 0.025358710438013077, 0.058076828718185425, 0.056618832051754, -0.015543275512754917, -0.04349686950445175, 0.03183290362358093, -0.029697982594370842, -0.005003181751817465, 0.011707358062267303, -0.016489237546920776, 0.0073463888838887215, -0.03447118401527405, -0.03311733156442642, 0.006482873577624559, 0.0067345513962209225, -0.047072432935237885, -0.01987386867403984, 0.016871092841029167, 0.019908584654331207, -0.053806982934474945, -0.0585281103849411, -0.009286044165492058, 0.06651237607002258, -0.014848991297185421, 0.004903378430753946, 0.03686646372079849, -0.007927851751446724, -0.0247512124478817, 0.03348182886838913, -0.01976972632110119, 0.03585975244641304, -0.058215685188770294, -0.021922007203102112, -0.0019309764029458165, -0.07970376312732697, 0.05085627734661102, -0.05269612744450569, 0.03315204381942749, 0.03235361725091934, 0.03226683288812637, 0.004373987205326557, 0.04453829675912857, -0.04196944832801819, 0.016940521076321602, 0.028066417202353477, -0.011021752841770649, -0.004206925164908171, -0.027545703575015068, 0.009442257694900036, 0.05207127332687378, -0.04533672332763672, -0.0064264629036188126, -0.004946771077811718, -0.00046267497236840427, -0.022564219310879707, -0.038636885583400726, -0.015899095684289932, 0.06529738008975983, 0.006921140011399984, 0.03129483386874199, 0.005116002634167671, 0.02652163617312908, -0.043566297739744186, -0.0023063234984874725, 0.044468868523836136, 0.029333483427762985, -0.07470492273569107, -0.02143600769340992, 0.011403609067201614, 0.050821565091609955, -0.011221359483897686, -0.03247511759400368, -0.08248089998960495, 0.0309650506824255, 0.008517992682754993, -0.030565837398171425, -0.0319717638194561, -0.024299927055835724, 0.05359869822859764, -0.032509833574295044, -0.008296689949929714, 0.015664774924516678, 0.003959586378186941, -0.019335798919200897, -0.004215603694319725, -0.04523257911205292, 0.04155287519097328, 0.003675364190712571, 0.02836148627102375, 0.014927098527550697, 0.003697060514241457, -0.0005437651416286826, -0.019231656566262245, 0.0388798862695694, -0.01905808597803116, -0.03263133019208908, -0.04582272097468376, -0.03648460656404495, -0.0354778952896595, 0.035443179309368134, -0.0006178039475344121, 0.042143017053604126, -0.0530085563659668, 0.07310806959867477, -0.0015751559985801578, 0.0495024248957634, 0.023831285536289215, 0.06668594479560852, -0.0026447868440300226, 0.09546399861574173, -0.09622771292924881, 0.024265212938189507, 0.015551953576505184, 0.023466788232326508, 0.008288010954856873, -0.05144641920924187, 0.002744590165093541, -0.03974773734807968, 0.017365770414471626, -0.023727143183350563, 0.004163532052189112, 0.0024256533943116665, 0.03148576244711876, -0.007090371567755938, 0.007133764680474997, -0.024213142693042755, -0.01501388382166624, -0.04193473234772682, 0.035929180681705475, 0.06272853165864944, -0.014996526762843132, 0.024594997987151146, 0.025983566418290138, 0.013929065316915512, -0.04144873470067978, -0.017009949311614037, 0.060784533619880676, 0.027823416516184807, 0.003451891476288438, 0.05519555136561394, -0.018467945978045464, 0.043045587837696075, 0.0013896521413698792, -0.04405229911208153, -0.01650659367442131, -0.07831519842147827, 0.01574288122355938, 0.03599860891699791, -0.10310111939907074, 0.0497107096016407, 0.029385555535554886, 0.030079839751124382, -0.02001272700726986, 0.031225407496094704, -0.014692777767777443, 0.028621843084692955, 0.005380698479712009, -0.014649384655058384, -0.012644641101360321, 0.014501850120723248, 0.0010197290685027838, -0.008153493516147137, 0.02261628955602646, -0.06849107891321182, -0.05359869822859764, -0.002731572138145566, -0.009207936935126781, -0.025098353624343872, 0.014710134826600552, -0.05377227067947388, 0.01792987622320652, -0.012115249410271645, 0.014632027596235275, -0.01669752225279808, 0.04026845097541809, 0.05890996754169464, 0.018606802448630333, 0.04832214117050171, 0.10407312214374542, 0.06828279793262482, 0.010258041322231293, 0.024351999163627625, -0.03985188156366348, -0.01921430043876171, -0.021939363330602646, 0.0247512124478817, -0.017565377056598663, -0.012471070513129234, 0.0023063234984874725, -0.023865999653935432, 0.03506132587790489, -0.02978476881980896, -0.041240449994802475, 0.02305021695792675, 0.006990568712353706, 0.06637351959943771, -0.044746581465005875, 0.04859985411167145, -0.015829667448997498, 0.022841932252049446, 0.0029658928979188204, -0.013677387498319149, 0.02513306774199009, -0.0641518086194992, 0.031138621270656586, 0.005480501800775528, -0.03783845901489258, -0.07810690999031067, -0.037213604897260666, -0.0006546878139488399, 0.006890765391290188, 0.04866928234696388, -0.02603563666343689, 0.04957185313105583, -0.02181786298751831, 0.024872710928320885, -0.04162230342626572, 0.04957185313105583, -0.04026845097541809, 0.01040557585656643, -0.099629707634449, -0.0727609246969223, -0.06081924960017204, -0.0310171227902174, -0.03466211259365082, -0.005003181751817465, -0.011316823773086071, 0.003944398835301399, -0.0029333485290408134, -0.0008244618657045066, 0.0009882693411782384, 0.019596155732870102, -0.022460076957941055, -0.0291599128395319, -0.005719161592423916, -0.04533672332763672, -0.002571019111201167, -0.01996065489947796, 0.06519323587417603, 0.013720780611038208, -0.010162577033042908, -0.03742188960313797, -0.0010609521996229887, -0.03436703979969025, -0.027007633820176125, 0.030183982104063034, 0.0033672756981104612, -0.04273315891623497, -0.02978476881980896, 0.0014319600304588675, 0.04596157744526863, 0.012479748576879501, 0.10386483371257782, -0.03106919303536415, 0.043705154210329056, -0.015690810978412628, 0.017513304948806763, -0.08685488253831863, 0.018051374703645706, 0.022303862497210503, -0.04651700332760811, -0.0043132370337843895, 0.018520016223192215, -0.05720897391438484, -0.07220549881458282, -0.05443183705210686, -0.03780374303460121, 0.009945613332092762, 0.11337652057409286, 0.006508909165859222, -0.00009241294901585206, -0.014736170880496502, -0.011828857474029064, -0.007233568001538515, 0.015560632571578026, 0.05436240881681442, -0.005163734778761864, 0.004773200023919344, 0.028482986614108086, -0.01413735095411539, -0.01085686031728983, 0.013946423307061195, 0.014050565659999847, -0.017773661762475967, 0.061721816658973694, 0.03492246940732002, -0.05686183273792267, 0.02471649833023548, 0.04054616391658783, -0.08560517430305481, -0.035686179995536804, 0.030322838574647903, -0.004551897291094065, 0.046690575778484344, -0.020099511370062828, 0.007133764680474997, 0.00908643752336502, 0.0027814737986773252, 0.04464243724942207, 0.04925942420959473, -0.027910202741622925, 0.0014080940745770931, -0.03403725475072861, -0.009858828037977219, 0.005701804533600807, 0.051342274993658066, -0.04026845097541809, 0.030340194702148438, -0.004276353400200605, 0.017895160242915154, 0.01710541360080242, 0.016220202669501305, 0.05849339812994003, 0.04870399832725525, 0.01905808597803116, 0.033273544162511826, 0.023796571418642998, -0.03440175577998161, -0.006751908455044031, 0.06481137871742249, 0.020082155242562294, 0.01631566509604454, -0.04974542185664177, 0.03025341033935547, 0.07102521508932114, 0.0638393834233284, 0.01412867195904255, 0.018676230683922768, 0.024438785389065742, -0.04606572166085243, -0.001283339923247695, 0.01757405512034893, 0.008713260293006897, -0.016471879556775093, -0.012592569924890995, -0.050578564405441284, 0.019648227840662003, -0.003846765263006091, -0.0031893656123429537, 0.03783845901489258, -0.0265042781829834, 0.00663040904328227 ]
714,794
pytorch_optimizer.optimizer.sgd
get_norms_by_group
Get parameter & gradient norm by group.
@staticmethod def get_norms_by_group(group: Dict, device: torch.device) -> Tuple[torch.Tensor, torch.Tensor]: r"""Get parameter & gradient norm by group.""" p_norm = torch.zeros(1, dtype=torch.float32, device=device) g_norm = torch.zeros(1, dtype=torch.float32, device=device) for p in group['params']: if p.grad is None: continue p_norm.add_(p.norm().pow(2)) g_norm.add_(p.grad.norm().pow(2)) p_norm.sqrt_() g_norm.sqrt_() return p_norm, g_norm
(group: Dict, device: torch.device) -> Tuple[torch.Tensor, torch.Tensor]
[ 0.015354009345173836, -0.0013929128181189299, -0.05114958435297012, 0.018103299662470818, -0.001285589998587966, 0.006745351478457451, -0.013043143786489964, -0.04607116058468819, 0.008531020022928715, 0.09389602392911911, 0.0028040932957082987, -0.02140975557267666, 0.016166921705007553, 0.013655112124979496, 0.006411965936422348, -0.0188888106495142, -0.047094155102968216, 0.013253223150968552, 0.014111804775893688, -0.046546123921871185, -0.025392115116119385, 0.01144471950829029, -0.008384878747165203, 0.017820149660110474, -0.005918737500905991, -0.030050380155444145, 0.021464558318257332, -0.019637787714600563, -0.009891964495182037, 0.031000301241874695, 0.006896059960126877, -0.058164384216070175, 0.05060155317187309, 0.02115400694310665, -0.025702666491270065, -0.079866424202919, 0.03279053792357445, 0.029191799461841583, -0.08220469206571579, 0.0017251567915081978, 0.05699525028467178, -0.062037140130996704, 0.01287873461842537, -0.002678502816706896, 0.034708645194768906, 0.021208809688687325, -0.033046286553144455, 0.010211649350821972, -0.08710043877363205, -0.015655426308512688, -0.00006539982132380828, -0.023821093142032623, 0.012385506182909012, -0.010558735579252243, -0.025848807767033577, 0.011526924557983875, 0.01713511161506176, 0.01728125289082527, 0.01263212040066719, -0.009462673217058182, 0.044098250567913055, -0.038983289152383804, -0.050272732973098755, 0.013481569476425648, -0.03602392226457596, -0.08417760580778122, -0.08373917639255524, 0.0028977154288440943, -0.018477788195014, 0.04921320825815201, -0.051843758672475815, 0.038654472678899765, -0.007065036334097385, -0.04786139726638794, -0.05071115866303444, 0.029429279267787933, 0.048445962369441986, -0.01437668688595295, 0.05896816402673721, -0.015372277237474918, -0.03070801869034767, 0.05604533106088638, 0.006411965936422348, 0.013691647909581661, 0.02440565824508667, -0.04311179369688034, -0.021336684003472328, 0.004169604741036892, 0.04424438998103142, -0.061635248363018036, -0.048445962369441986, 0.013335427269339561, 0.03806990385055542, 0.018815740942955017, -0.000924802734516561, 0.06539839506149292, -0.04603462666273117, 0.0022880304604768753, -0.05801824480295181, -0.05111305043101311, -0.011188971810042858, -0.03288187459111214, 0.036754630506038666, 0.06291399151086807, 0.04822675138711929, -0.06539839506149292, -0.008562988601624966, -0.058383598923683167, -0.01065920852124691, 0.05378013476729393, -0.0232913289219141, 0.004384249914437532, 0.02241447940468788, 0.011764404363930225, 0.00011538626858964562, -0.049943916499614716, -0.04124848544597626, -0.01065920852124691, -0.020112747326493263, -0.015856372192502022, 0.017555268481373787, 0.06506957858800888, -0.004039447288960218, 0.021227078512310982, 0.0011234640842303634, 0.024588335305452347, 0.02480754815042019, 0.023017313331365585, 0.017326921224594116, 0.0034617308992892504, -0.028479358181357384, -0.00544834416359663, -0.03134738653898239, -0.019619518890976906, 0.035110536962747574, -0.05604533106088638, 0.016413535922765732, 0.004927714355289936, 0.05600879713892937, 0.011526924557983875, 0.0010361216263845563, 0.05330517515540123, -0.02725542150437832, 0.01593857631087303, 0.017390858381986618, 0.0423080138862133, 0.047422971576452255, 0.01958298310637474, -0.02219526655972004, -0.04106580838561058, -0.01807589828968048, 0.013024876825511456, 0.06791934370994568, -0.000614251708611846, 0.0020048811566084623, -0.004384249914437532, -0.01793888956308365, -0.05944312363862991, 0.018276842311024666, -0.04106580838561058, -0.045925021171569824, -0.04322139918804169, -0.049870844930410385, -0.012504247017204762, 0.026396838948130608, 0.03593258187174797, 0.0513322614133358, 0.0025072430726140738, -0.009919365867972374, -0.0033977937418967485, -0.0251911710947752, -0.014760308898985386, -0.010494798421859741, 0.00042358250357210636, -0.025611327961087227, 0.06934422254562378, 0.011234641075134277, -0.0268535315990448, -0.017893221229314804, 0.0149703873321414, -0.004034880083054304, -0.019564716145396233, 0.030360931530594826, -0.031018570065498352, -0.03741226717829704, 0.02676219306886196, 0.0035439354833215475, 0.023035580292344093, -0.044500138610601425, -0.017336055636405945, -0.0019375188276171684, -0.027748649939894676, -0.027529437094926834, 0.024697942659258842, 0.006311493460088968, 0.0394582524895668, -0.020971329882740974, 0.004936848301440477, 0.02321825735270977, 0.020642511546611786, -0.002609998919069767, -0.042527224868535995, -0.04691147804260254, 0.07679744809865952, -0.005092123989015818, -0.025629594922065735, -0.015582355670630932, 0.07117099314928055, -0.02274329774081707, 0.006325194146484137, 0.021848179399967194, 0.010860152542591095, 0.02084345556795597, 0.08702736347913742, 0.011325979605317116, -0.00627495814114809, 0.027620775625109673, 0.009462673217058182, -0.01863306388258934, -0.02321825735270977, -0.022706761956214905, -0.08636973053216934, 0.12327049672603607, 0.0225788876414299, -0.03615179657936096, 0.015810701996088028, 0.02787652425467968, -0.029630223289132118, -0.05652029067277908, -0.012193695642054081, 0.08403146266937256, -0.08921948820352554, -0.012577317655086517, 0.031931955367326736, -0.010933224111795425, -0.04139462858438492, -0.01840471662580967, 0.02241447940468788, 0.09404216706752777, -0.00044641713611781597, -0.021519361063838005, -0.02575746923685074, -0.017555268481373787, 0.05695871636271477, -0.0013255506055429578, -0.024442194029688835, 0.03048880584537983, -0.027456365525722504, 0.0153266079723835, 0.0075491308234632015, -0.07347272336483002, 0.04190612584352493, 0.018907079473137856, 0.02409510873258114, -0.018039362505078316, -0.07540909945964813, -0.016066450625658035, 0.07782044261693954, 0.06682328134775162, -0.07643209397792816, -0.01192881353199482, -0.003648974932730198, -0.03711998462677002, 0.016367867588996887, -0.0018907078774645925, -0.023565344512462616, 0.0696365088224411, 0.025556525215506554, -0.009983303025364876, 0.02321825735270977, 0.03748533874750137, 0.07957413792610168, -0.05155147612094879, -0.01751873269677162, -0.00864519365131855, 0.04329447075724602, 0.0522821843624115, 0.020861724391579628, 0.04318486526608467, -0.019765660166740417, 0.07847807556390762, -0.0029502350371330976, -0.07972028106451035, -0.01793888956308365, 0.01903495192527771, 0.06872311979532242, -0.006571808364242315, 0.014303616248071194, 0.0032904711551964283, 0.014824246056377888, 0.027511170133948326, -0.034873057156801224, -0.00756283150985837, -0.04475588724017143, -0.0456327348947525, 0.0008991137729026377, 0.007626768667250872, -0.015180465765297413, 0.02022235281765461, -0.02471620962023735, 0.015070859342813492, 0.01125290896743536, 0.07752815634012222, 0.07760122418403625, -0.011965349316596985, 0.013591174967586994, 0.05535115674138069, -0.05907776951789856, 0.03737573325634003, -0.02424125000834465, -0.003495982848107815, 0.02267022617161274, 0.005503147374838591, 0.004402517806738615, 0.014997788704931736, -0.01329889241605997, 0.007055902387946844, -0.02067904733121395, 0.011216373182833195, 0.07694359123706818, 0.021501094102859497, 0.019783928990364075, 0.05553383380174637, 0.0660560354590416, 0.0036078724078834057, -0.0036329906433820724, 0.030543608590960503, 0.01267778966575861, 0.0413580946624279, 0.04318486526608467, -0.07884342968463898, -0.005676690489053726, 0.02407683990895748, 0.07204784452915192, 0.030452270060777664, -0.0014454324264079332, 0.04669226333498955, -0.04318486526608467, 0.01934550330042839, -0.05315903201699257, 0.023894162848591805, 0.007087870966643095, -0.04881131649017334, 0.003760864492505789, 0.009133854880928993, -0.011737002991139889, 0.04501163586974144, 0.05283021554350853, 0.00487747834995389, -0.008261571638286114, -0.011636530980467796, 0.022999046370387077, 0.0006113973795436323, 0.0712805986404419, 0.06996532529592514, 0.06751745194196701, -0.026835264638066292, -0.021738573908805847, 0.04983431100845337, 0.02480754815042019, 0.03711998462677002, 0.020167550072073936, 0.0052793677896261215, 0.033594317734241486, 0.05195336416363716, -0.02385762706398964, 0.0011457278160378337, -0.03964092954993248, 0.03025132603943348, -0.0232913289219141, 0.007042201701551676, -0.0016383851179853082, 0.03277226909995079, -0.01965605467557907, -0.009919365867972374, -0.004258659668266773, -0.0027903926093131304, -0.06517918407917023, 0.04775179177522659, -0.03649888187646866, -0.005251966416835785, -0.010321255773305893, 0.06404658406972885, 0.07022107392549515, 0.028771640732884407, -0.031073372811079025, 0.004740470554679632, 0.017948023974895477, -0.057762496173381805, -0.02614109218120575, 0.05100344493985176, 0.029082192108035088, 0.04541352391242981, -0.007042201701551676, -0.04618076980113983, -0.004119368270039558, -0.005617320537567139, -0.026396838948130608, -0.09389602392911911, -0.04011588916182518, -0.013079679571092129, -0.03017825447022915, -0.07318044453859329, 0.025465186685323715, -0.028570696711540222, -0.0663117840886116, -0.00975495669990778, 0.01870613358914852, -0.00785054825246334, -0.011581727303564548, -0.049797773361206055, 0.020441565662622452, 0.006183619610965252, -0.022925974801182747, 0.0345807746052742, -0.010366925038397312, 0.00028386307531036437, 0.055168479681015015, 0.02787652425467968, 0.07380154728889465, 0.03799683600664139, -0.08118169754743576, 0.0209165271371603, 0.056593362241983414, 0.014239679090678692, -0.0282784141600132, 0.00979149155318737, -0.042600296437740326, -0.023510541766881943, -0.013947395607829094, 0.0011451570317149162, 0.03364912047982216, -0.05173415318131447, -0.03564029932022095, 0.005480312742292881, -0.015609757043421268, -0.004322596825659275, 0.09396909177303314, -0.0047541712410748005, -0.03198675811290741, -0.004098817240446806, -0.014404088258743286, -0.006923461798578501, -0.011892278678715229, -0.04808060824871063, -0.020879991352558136, 0.014888182282447815, -0.00013065693201497197, -0.0418330542743206, -0.04194265976548195, 0.036352742463350296, -0.013024876825511456, 0.09104625880718231, 0.0070696035400033, 0.09769570827484131, 0.018496055155992508, -0.015052592381834984, -0.07226705551147461, 0.0030552742537111044, 0.002742439741268754, 0.04643651470541954, 0.007206611335277557, -0.02889951504766941, 0.04241761937737465, -0.05071115866303444, -0.012951805256307125, 0.08929256349802017, -0.03096376731991768, 0.023474005982279778, 0.013810387812554836, 0.014120939187705517, -0.024058572947978973, 0.01547274924814701, -0.00527023384347558, -0.030342664569616318, 0.013362828642129898, 0.011033696122467518, 0.03569510206580162, -0.03744880482554436, -0.044975098222494125, -0.04274643957614899, -0.03785069286823273, -0.0002321997017133981, 0.01144471950829029, -0.06137950345873833, -0.014550230465829372, -0.02212219499051571, 0.035110536962747574, -0.006261256989091635, 0.015828968957066536, 0.015408812090754509, -0.0062429895624518394, 0.03299148380756378, -0.041650377213954926, -0.013792119920253754, -0.030762821435928345, 0.028534160926938057, 0.04716722294688225, 0.03653541952371597, -0.012275900691747665, -0.005178895313292742, -0.00112974364310503, 0.0225788876414299, -0.027821719646453857, 0.04866517707705498, -0.04534045234322548, -0.02409510873258114, -0.0067362175323069096, 0.007329917978495359, 0.026360303163528442, 0.01050393283367157, -0.05173415318131447, -0.043550219386816025, 0.026122823357582092, 0.0013061411445960402, -0.019254164770245552, -0.01697983592748642, 0.014632434584200382, 0.04428092762827873, 0.004717635922133923, 0.04954202473163605, 0.04413478448987007, -0.05436469987034798, -0.016139520332217216, -0.01200188510119915, 0.014668970368802547, -0.038033369928598404, -0.014468025416135788, -0.031073372811079025, -0.048372894525527954, 0.01967432163655758, 0.005156060680747032, -0.00395039189606905, -0.00048552145017310977, 0.006777320057153702, -0.02069731429219246, 0.002991337329149246, -0.018422983586788177, -0.12020152062177658, 0.0019546449184417725, 0.012129758484661579, 0.007722673937678337, 0.015682827681303024, -0.009097319096326828, 0.055789582431316376, 0.03828911855816841, 0.03931210935115814, -0.011389916762709618, 0.015929441899061203, 0.014057002030313015, -0.001424881280399859, 0.03227904066443443, -0.07475146651268005, 0.0006467910716310143, -0.013947395607829094, 0.022176997736096382, -0.0933845266699791, -0.028936050832271576, -0.05242832377552986, -0.029100460931658745, 0.011481255292892456, -0.10843712091445923, 0.029995577409863472, 0.04249069094657898, -0.041650377213954926, -0.011417318135499954, -0.01666928455233574, -0.016623614355921745, -0.0703306794166565, 0.01919936202466488, -0.0755552425980568, 0.002532361075282097, -0.013043143786489964, -0.007882516831159592, 0.04903053119778633, -0.005000785458832979, 0.024588335305452347, -0.01398393139243126, -0.018605660647153854, -0.05907776951789856, 0.02944754622876644, -0.018176371231675148, 0.04398864135146141, -0.01634046621620655, 0.03593258187174797, 0.03880061209201813, -0.03231557831168175, 0.006261256989091635, 0.03452596813440323, 0.037631481885910034, -0.03187715262174606, 0.047094155102968216, -0.0172903873026371, -0.018907079473137856, 0.0005831395392306149, -0.01054046768695116, -0.07504374533891678, 0.000252608151640743, -0.005959840025752783, 0.007690705358982086, 0.008937476202845573, 0.02977636456489563, 0.05019966512918472, 0.013910859823226929, -0.01133511308580637, -0.0617813915014267, 0.01784755103290081, 0.005334171000868082, -0.0009670468280091882, -0.05695871636271477, -0.04333100467920303, -0.03503746539354324, 0.013600309379398823, -0.004053147975355387, 0.05396281182765961, -0.05805477872490883, -0.03964092954993248, 0.013435900211334229, 0.06503304094076157, -0.00467653339728713, -0.021702038124203682, 0.023711485788226128, 0.006654012948274612, -0.005873068235814571, 0.0012410624185577035, -0.018907079473137856, 0.014340151101350784, -0.03752187266945839, 0.010997160337865353, -0.05582612007856369, -0.043477147817611694, -0.010156845673918724, 0.02186644822359085, -0.05297635495662689, 0.010284719988703728, 0.00418558856472373, 0.06576374918222427, -0.05268407240509987, -0.03666329011321068, -0.0335029773414135, 0.011088498868048191, 0.0625120997428894, 0.024752745404839516, 0.007982988841831684, 0.009147555567324162, 0.029904238879680634, -0.010513066314160824, -0.020277157425880432, 0.06342548877000809, -0.02471620962023735, -0.01618519052863121, 0.02181164361536503, -0.02835148386657238, -0.019382039085030556, 0.009782358072698116, -0.01991180330514908, -0.006959997117519379, -0.006800154689699411, -0.022012589499354362, -0.04683840647339821, -0.03669982776045799, 0.013499836437404156, 0.01634959876537323, -0.017737945541739464, -0.06382737308740616, 0.004790706560015678, -0.021848179399967194, 0.010056373663246632, 0.00239992025308311, -0.05242832377552986, -0.050345804542303085, 0.03942171484231949, -0.030598413199186325, 0.030744554474949837, -0.035731639713048935, 0.04227147996425629, 0.023729754611849785, -0.03839872404932976, 0.010668342001736164, 0.003945825155824423, 0.0865158662199974, 0.01863306388258934, -0.0015607473906129599, 0.02652471326291561, -0.0009430704521946609, -0.015171332284808159, 0.0036192897241562605, -0.018998418003320694, 0.04311179369688034, 0.021775109693408012, -0.03710171580314636, -0.021537628024816513, 0.021135739982128143, -0.030543608590960503, 0.01991180330514908, -0.02882644534111023, 0.01393826212733984, -0.000002417260247966624, 0.027054477483034134, 0.031785812228918076, -0.034873057156801224, -0.049176670610904694, -0.08666200935840607, 0.03880061209201813, -0.002245786366984248, -0.003907006233930588, 0.06448501348495483, 0.005443777423352003, 0.01927243359386921, 0.026835264638066292, -0.013481569476425648, 0.010960625484585762, 0.0029022821690887213, -0.030744554474949837, 0.04786139726638794, 0.018121566623449326, -0.0000032022010145738022, -0.01010204292833805, -0.009225193411111832, -0.010960625484585762, 0.05348785221576691, 0.01958298310637474, 0.04965163394808769, 0.015244402922689915, 0.007348185870796442, -0.01879747211933136, 0.03299148380756378, 0.02778518572449684, -0.01070487778633833, -0.016057316213846207, 0.01528093870729208, 0.03759494423866272, -0.006083147134631872, -0.004509840626269579, -0.0006673422176390886, 0.044353995472192764, 0.03986014053225517, -0.0345807746052742, -0.07208438217639923, 0.013043143786489964, 0.010312121361494064, 0.032333843410015106, 0.023254793137311935, -0.06547147035598755, -0.012485979124903679, -0.003938974812626839, 0.02124534547328949, -0.03395967185497284, 0.01287873461842537, -0.07789351046085358, 0.0772358700633049, 0.021848179399967194, 0.010832751169800758, -0.005873068235814571, 0.06072186306118965, -0.05630107969045639, 0.07095178216695786, -0.06097761169075966, -0.010385192930698395, -0.05867588147521019, -0.023565344512462616, 0.0019089755369350314, 0.00868172850459814, 0.049870844930410385, -0.0312560498714447, 0.008046925999224186, 0.024533532559871674, -0.009672751650214195 ]
714,804
pytorch_optimizer.optimizer.sgd
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 large_lr: float = group['lr'] * group['kappa'] / group['constant'] alpha: float = 1.0 - (group['xi'] * (group['constant'] ** 2) / group['kappa']) beta: float = 1.0 - alpha zeta: float = group['constant'] / (group['constant'] + beta) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['momentum_buffer'] = p.clone() self.apply_weight_decay( p, grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=False, fixed_decay=False, ) buf = state['momentum_buffer'] buf.mul_((1.0 / beta) - 1.0).add_(grad, alpha=-large_lr).add_(p).mul_(beta) p.add_(grad, alpha=-group['lr']).mul_(zeta).add_(buf, alpha=1.0 - zeta) return loss
(self)
[ -0.001747875357978046, 0.005683567374944687, -0.04250071942806244, 0.05338272824883461, -0.0030248945113271475, 0.0053601511754095554, -0.030001627281308174, -0.01677009090781212, -0.021193286404013634, 0.011585916392505169, -0.04485975578427315, 0.0013162571704015136, 0.0251123309135437, 0.08028336614370346, -0.02180206961929798, 0.040446072816848755, -0.0005204982589930296, 0.05186076834797859, 0.003345932811498642, 0.0030795899219810963, -0.0015564414206892252, -0.05855739116668701, -0.010197129100561142, 0.05928032100200653, -0.061334967613220215, -0.017112532630562782, 0.04748513549566269, 0.0030581874307245016, -0.019119616597890854, 0.00043488803203217685, -0.004242462106049061, -0.04173973947763443, 0.019091079011559486, 0.012442018836736679, 0.04189193621277809, -0.04337584599852562, -0.008993829600512981, 0.01640862599015236, -0.06007935106754303, -0.0398753397166729, -0.013098363764584064, -0.01048249565064907, -0.03121919371187687, 0.020184988155961037, 0.02281036786735058, 0.001809704932384193, -0.0078761400654912, 0.04329974949359894, 0.01703643426299095, -0.006149667780846357, -0.0074385772459208965, -0.032950423657894135, 0.046305619180202484, -0.032912373542785645, 0.022696221247315407, 0.0897195115685463, 0.05616030469536781, -0.07080916315317154, 0.026367949321866035, -0.02579721435904503, 0.062057897448539734, -0.07035257667303085, 0.021117188036441803, 0.008670412935316563, 0.010092494077980518, -0.03154261037707329, -0.047180745750665665, -0.016370577737689018, 0.03388262167572975, 0.04029387608170509, 0.021535726264119148, 0.018139854073524475, 0.02197328954935074, 0.0007467113900929689, -0.05068125203251839, -0.02583526261150837, -0.032113347202539444, -0.061373017728328705, 0.029564063996076584, -0.0390763096511364, -0.01070127822458744, -0.0005725183873437345, -0.04398462921380997, 0.016075696796178818, -0.03527140989899635, -0.03776362165808678, -0.010016395710408688, -0.04912124201655388, -0.034700676798820496, -0.008427850902080536, 0.003300749696791172, 0.014106662012636662, 0.005117588676512241, 0.03409189358353615, 0.0558178648352623, 0.047028549015522, -0.04200608283281326, -0.012984217144548893, -0.03521433845162392, -0.03903825953602791, 0.033673353493213654, 0.02037523314356804, 0.017236191779375076, 0.048740752041339874, 0.04919734224677086, -0.04828416556119919, -0.0007074733730405569, -0.036850444972515106, 0.019148152321577072, -0.04516414925456047, -0.006725158542394638, -0.005550396163016558, -0.04611537232995033, -0.013516902923583984, -0.04040802642703056, 0.00011318087490508333, 0.004213925451040268, 0.0097690774127841, -0.0251123309135437, 0.03953289985656738, 0.023057686164975166, -0.024903062731027603, -0.047865625470876694, -0.017122045159339905, 0.0104634715244174, 0.04900709539651871, 0.05254565179347992, 0.017083995044231415, 0.01548593770712614, -0.03702166676521301, -0.03217041864991188, 0.011662014760077, 0.008527729660272598, -0.01717911846935749, 0.010796399787068367, -0.011566892266273499, -0.004984417464584112, 0.008161507546901703, -0.004408926237374544, 0.008304191753268242, -0.006425522733479738, 0.012736898846924305, -0.016570333391427994, 0.023666469380259514, 0.04318559914827347, 0.01787351258099079, 0.04166364297270775, 0.04173973947763443, 0.0014565627789124846, 0.014715446159243584, 0.030001627281308174, 0.03169480711221695, 0.05353492498397827, 0.03894313797354698, -0.007776261772960424, 0.03675532341003418, -0.011490793898701668, 0.032075297087430954, -0.029012352228164673, -0.031143097206950188, -0.02655819244682789, -0.009921273216605186, -0.029640160501003265, -0.011566892266273499, 0.00880358461290598, 0.010920059867203236, -0.002879832638427615, 0.059660810977220535, -0.043870482593774796, 0.012061528861522675, 0.007738213054835796, -0.03397774696350098, 0.06947745382785797, 0.03734508156776428, -0.008361265063285828, 0.12647482752799988, 0.009688223712146282, -0.0020605905447155237, -0.010929571464657784, -0.0012074608821421862, 0.0028655643109232187, -0.007690651807934046, -0.02288646623492241, -0.05657884478569031, 0.004363743122667074, 0.024218181148171425, -0.0024398912210017443, 0.0011991376522928476, 0.03133334219455719, 0.002732392866164446, 0.02176402136683464, 0.011424208991229534, 0.05026271194219589, 0.00011147164332214743, -0.016674969345331192, 0.020470354706048965, 0.03393969684839249, 0.01891985908150673, 0.08911073207855225, 0.0078761400654912, -0.009997371584177017, -0.021022066473960876, 0.020508404821157455, 0.008342240937054157, -0.029278695583343506, -0.011452745646238327, -0.023495249450206757, 0.0705808699131012, -0.019404983147978783, -0.0040593515150249004, -0.05353492498397827, 0.0024054094683378935, 0.03867679461836815, 0.06921111047267914, 0.03563287854194641, -0.08987171202898026, -0.02842259407043457, 0.013678611256182194, 0.0697818398475647, -0.017378875985741615, -0.05444810166954994, -0.05928032100200653, 0.034947995096445084, -0.012832021340727806, 0.04394657909870148, -0.023171832785010338, 0.01720765419304371, -0.07271161675453186, -0.034339211881160736, -0.006349424831569195, -0.011157865636050701, -0.047294892370700836, 0.0014375383034348488, -0.006259058602154255, 0.04398462921380997, -0.0008418338256888092, -0.04680025577545166, -0.01546691358089447, -0.00410215649753809, -0.006601499393582344, -0.02674843743443489, -0.05528517812490463, -0.02642502263188362, 0.04154949262738228, -0.011471769772469997, 0.04565878584980965, 0.04683830216526985, 0.020831821486353874, -0.005845275707542896, 0.062057897448539734, -0.02328598126769066, -0.026139654219150543, -0.02754746749997139, 0.027966005727648735, -0.037249960005283356, -0.02161182463169098, 0.06365595757961273, 0.016170820221304893, 0.040598269551992416, -0.032151393592357635, 0.007490894291549921, -0.05151832848787308, -0.044745609164237976, 0.05323053523898125, -0.030077725648880005, 0.01477251946926117, 0.020660599693655968, -0.035880196839571, 0.06631938368082047, 0.04908319562673569, 0.07099941372871399, 0.07126575708389282, -0.04413682594895363, -0.036888495087623596, 0.005174662452191114, 0.0141542237251997, 0.007857115939259529, 0.018187416717410088, 0.002273427089676261, -0.04828416556119919, 0.060535937547683716, -0.05334468185901642, -0.09025219827890396, -0.020793771371245384, -0.0785331130027771, 0.04086461290717125, -0.008874926716089249, -0.003678861539810896, 0.05616030469536781, -0.011852259747684002, 0.026843560859560966, 0.004054595250636339, 0.0741574764251709, 0.004525451455265284, 0.08264239877462387, 0.0028465399518609047, -0.04683830216526985, 0.01321251131594181, -0.011443233117461205, 0.0075051626190543175, 0.08789315819740295, -0.04501195251941681, -0.016636919230222702, 0.00028298934921622276, -0.028289422392845154, -0.003626544028520584, 0.027775760740041733, 0.006834549363702536, -0.007419552654027939, -0.01381178293377161, 0.01208055391907692, -0.010539569891989231, -0.01108176726847887, 0.020831821486353874, -0.004913075361400843, -0.09352441132068634, -0.009269684553146362, -0.05265979841351509, 0.015514474362134933, 0.07716334611177444, -0.007400528062134981, 0.005693079903721809, 0.002984467428177595, 0.04927343875169754, -0.0394567996263504, -0.0016622651601210237, 0.06449303030967712, 0.022467928007245064, -0.04002753645181656, -0.02467476762831211, -0.05094759538769722, 0.005550396163016558, 0.051442231982946396, 0.030667483806610107, -0.06407449394464493, -0.006953452713787556, 0.040522173047065735, -0.003293615533038974, 0.024541597813367844, -0.05616030469536781, 0.07061892002820969, 0.01168103888630867, -0.021307433024048805, 0.010406398214399815, 0.008841633796691895, -0.015200570225715637, 0.023266956210136414, 0.0006991501431912184, 0.06723256409168243, -0.00032460541115142405, 0.003555202390998602, -0.0024375133216381073, -0.027014780789613724, 0.043147552758455276, 0.024408426135778427, 0.03861972317099571, 0.007176990155130625, -0.01757863163948059, 0.002501721028238535, -0.08028336614370346, 0.008637120015919209, 0.011814210563898087, -0.03281725198030472, 0.09770979732275009, 0.10737424343824387, 0.009602612815797329, -0.03738313168287277, -0.02140255644917488, 0.043071452528238297, -0.01640862599015236, 0.0097690774127841, -0.02707185409963131, -0.0021319324150681496, 0.03704068809747696, -0.04485975578427315, -0.02667234092950821, -0.028688937425613403, -0.01677960343658924, 0.06502571702003479, 0.04398462921380997, 0.04341389611363411, -0.04934953525662422, -0.015533499419689178, 0.033349938690662384, 0.026976732537150383, -0.02627282589673996, 0.025568919256329536, -0.0705428197979927, 0.012603727169334888, -0.06483547389507294, 0.06525401026010513, -0.015818865969777107, 0.010178104043006897, 0.01680814102292061, -0.033901646733284, 0.017083995044231415, 0.04672415554523468, 0.014401542022824287, -0.03300749510526657, -0.02539769932627678, -0.01969035156071186, -0.02809917740523815, -0.009816639125347137, 0.020261086523532867, -0.013079339638352394, -0.07708724588155746, -0.004806062672287226, 0.060612037777900696, 0.011015182361006737, 0.05536127835512161, -0.006026008632034063, 0.0011735734296962619, -0.054866641759872437, -0.004420816898345947, 0.038486551493406296, -0.047865625470876694, -0.0028037347365170717, -0.019481081515550613, 0.0027086122427135706, 0.006839305628091097, 0.054600298404693604, 0.004435085225850344, 0.03915240988135338, 0.019671326503157616, -0.03236066550016403, -0.04740903899073601, 0.002625380177050829, -0.027642589062452316, -0.04394657909870148, 0.011833234690129757, -0.053877364844083786, -0.054714445024728775, -0.025740141049027443, -0.019481081515550613, -0.028631864115595818, 0.015333741903305054, -0.01831107586622238, 0.029240647330880165, 0.05026271194219589, 0.018786687403917313, -0.005636006128042936, 0.023133784532546997, -0.015200570225715637, -0.024865012615919113, -0.017806926742196083, -0.019376447424292564, 0.05498078837990761, -0.03854362294077873, -0.09306782484054565, 0.03995143622159958, -0.012508604675531387, -0.0005421980749815702, 0.04672415554523468, -0.004259108565747738, 0.02703380584716797, 0.010035420767962933, -0.07313015311956406, -0.057225678116083145, -0.013849831186234951, 0.006064057350158691, 0.022829392924904823, 0.012584703043103218, -0.01827302575111389, 0.0037192886229604483, -0.019823523238301277, -0.023457201197743416, 0.05094759538769722, 0.05589396134018898, -0.014068612828850746, -0.009536027908325195, -0.007928458042442799, -0.021954266354441643, 0.03468165174126625, -0.034301161766052246, -0.00544100534170866, -0.018586929887533188, -0.04603927582502365, 0.004803684540092945, 0.03890509158372879, -0.05250760167837143, -0.022772319614887238, -0.05170857533812523, 0.0287079606205225, 0.030439190566539764, -0.007267356850206852, 0.051480282098054886, 0.017711803317070007, 0.00635893689468503, 0.05441005155444145, 0.06004130095243454, -0.05315443500876427, -0.048740752041339874, 0.05353492498397827, 0.03998948633670807, -0.025968434289097786, -0.019271811470389366, 0.03409189358353615, 0.02404695935547352, 0.08150093257427216, 0.001229457906447351, -0.00042745660175569355, 0.052165161818265915, -0.05087149515748024, -0.020603526383638382, -0.003935692366212606, -0.028289422392845154, -0.052279308438301086, -0.015153009444475174, -0.058975931257009506, 0.01684618927538395, 0.01976644992828369, -0.010843961499631405, -0.02052742801606655, 0.005136613268405199, -0.032741155475378036, -0.04748513549566269, 0.03911435976624489, 0.0566168949007988, 0.04432706907391548, -0.06312327086925507, 0.03521433845162392, -0.007838091813027859, -0.0010136488126590848, -0.0027466611936688423, -0.02762356586754322, 0.033502135425806046, -0.006458815652877092, -0.030401140451431274, -0.003046297002583742, -0.0024779404047876596, -0.016170820221304893, 0.03361628204584122, 0.051442231982946396, 0.07990287244319916, -0.004760879557579756, -0.06765110045671463, -0.021992314606904984, -0.07282575964927673, -0.11658209562301636, -0.04113095626235008, -0.011414696462452412, -0.016256429255008698, 0.016513260081410408, 0.007276868913322687, -0.02012791484594345, 0.04094070941209793, 0.011890308931469917, 0.004318560007959604, -0.05014856532216072, -0.008941512554883957, -0.052317358553409576, 0.036812394857406616, -0.038809966295957565, 0.02088889479637146, 0.0197283998131752, 0.018758151680231094, -0.0141542237251997, 0.01935742236673832, 0.00022740215354133397, 0.016389600932598114, -0.03308359533548355, -0.04858855903148651, 0.02260109782218933, -0.021421579644083977, 0.005707348231226206, 0.018986444920301437, 0.043832432478666306, -0.0318850502371788, -0.02802307903766632, 0.03584214672446251, 0.0022270549088716507, 0.017017409205436707, 0.005559908226132393, -0.0209269430488348, -0.011233964003622532, 0.006249546073377132, 0.029811382293701172, -0.037249960005283356, -0.026501119136810303, -0.038296304643154144, 0.024008911103010178, -0.032474812120199203, -0.0005255516152828932, -0.00820906925946474, -0.016018623486161232, 0.05817690119147301, -0.10356934368610382, 0.03882899135351181, -0.003350689075887203, 0.027281124144792557, -0.021383531391620636, 0.012565677985548973, -0.08903463184833527, -0.07160819321870804, 0.0004224032163619995, -0.007100892253220081, -0.045468538999557495, -0.0062828389927744865, 0.030553337186574936, 0.04847440868616104, -0.047180745750665665, -0.007310161832720041, 0.03249383717775345, 0.04508804902434349, -0.022467928007245064, 0.02292451448738575, -0.035880196839571, 0.05577981472015381, 0.008637120015919209, -0.025740141049027443, -0.055475424975156784, -0.04036997631192207, 0.013745197094976902, -0.002442269353196025, -0.05277394503355026, -0.018948396667838097, -0.009911761619150639, -0.015010325238108635, 0.04923538863658905, -0.017169605940580368, -0.03755434975028038, -0.018406197428703308, -0.0336923785507679, -0.01168103888630867, 0.02910747565329075, -0.018292050808668137, 0.05094759538769722, -0.06761305034160614, -0.016570333391427994, -0.040636319667100906, -0.06628133356571198, 0.03081968054175377, 0.008175776340067387, -0.030153822153806686, 0.06407449394464493, 0.012841532938182354, 0.03361628204584122, 0.031105047091841698, -0.024065984413027763, -0.0637701004743576, -0.026805512607097626, 0.05817690119147301, 0.009203098714351654, -0.029240647330880165, -0.012784459628164768, -0.02164987474679947, -0.010311275720596313, 0.042957305908203125, 0.04417487606406212, 0.0036836175713688135, -0.026881609112024307, 0.05829104781150818, -0.04908319562673569, 0.04565878584980965, 0.04508804902434349, 0.003312639892101288, 0.04447926580905914, 0.014487151987850666, 0.03791581466794014, -0.05536127835512161, -0.019595228135585785, -0.019709374755620956, -0.016817651689052582, 0.0013852209085598588, -0.039570946246385574, -0.018938884139060974, -0.003945204429328442, -0.058024704456329346, -0.02937381900846958, -0.03922850638628006, -0.08271849900484085, -0.036013368517160416, -0.05083344876766205, -0.0023947081062942743, 0.019633278250694275, -0.024104034528136253, 0.025188429281115532, -0.011852259747684002, -0.03097187541425228, 0.023305004462599754, 0.03540458157658577, 0.028403569012880325, -0.02416110783815384, 0.05090954527258873, 0.036298733204603195, 0.0005766799440607429, -0.010415910743176937, 0.02012791484594345, 0.001901260344311595, 0.017968634143471718, -0.03395872190594673, -0.009940298274159431, 0.02659624256193638, 0.03863874822854996, 0.004777526017278433, -0.06525401026010513, -0.03802996128797531, -0.01797814667224884, 0.04090266302227974, -0.04413682594895363, 0.012803484685719013, -0.02220158465206623, -0.011719088070094585, -0.006054545287042856, 0.04573488235473633, 0.015105447731912136, 0.053801268339157104, -0.032550908625125885, 0.02343817614018917, 0.03354018181562424, 0.0245225727558136, 0.017673755064606667, -0.031428463757038116, 0.026729414239525795, 0.002135499380528927, -0.005160394124686718, -0.05749202147126198, -0.040522173047065735, -0.043832432478666306, 0.04485975578427315, -0.02168792299926281, -0.054714445024728775, 0.03953289985656738, 0.009136512875556946, -0.031713832169771194, -0.01010200660675764, 0.04813196882605553, 0.020603526383638382, 0.005783446133136749, 0.01680814102292061, 0.015276668593287468, -0.0007425497751682997, -0.009702491573989391, 0.009036634117364883, 0.007976018823683262, 0.0017359850462526083, 0.04200608283281326, 0.04082656279206276, -0.019481081515550613, 0.017968634143471718, 0.008190044201910496, 0.040446072816848755, 0.016836676746606827, -0.04246266931295395, 0.0328933484852314, 0.0398753397166729, -0.019595228135585785, -0.01658935844898224, 0.03296944871544838, -0.08035945892333984, 0.07069502025842667, 0.041283152997493744, 0.018786687403917313, 0.032474812120199203, 0.05186076834797859, -0.051480282098054886, 0.021592799574136734, -0.05688323825597763, -0.05121393874287605, -0.0673847571015358, -0.031276267021894455, -0.03236066550016403, 0.08325118571519852, 0.05509493499994278, 0.013069827109575272, 0.0284986924380064, 0.07381503283977509, 0.029012352228164673 ]
714,819
pytorch_optimizer.optimizer.sgd
AccSGD
Accelerating Stochastic Gradient Descent For Least Squares Regression. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param kappa: float. ratio of long to short step. :param xi: float. statistical advantage parameter. :param constant: float. any small constant under 1. :param weight_decay: float. weight decay.
class AccSGD(Optimizer, BaseOptimizer): r"""Accelerating Stochastic Gradient Descent For Least Squares Regression. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param kappa: float. ratio of long to short step. :param xi: float. statistical advantage parameter. :param constant: float. any small constant under 1. :param weight_decay: float. weight decay. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, kappa: float = 1000.0, xi: float = 10.0, constant: float = 0.7, weight_decay: float = 0.0, ): self.validate_learning_rate(lr) self.validate_non_negative(kappa, 'kappa') self.validate_non_negative(xi, 'xi') self.validate_non_negative(weight_decay, 'weight_decay') self.validate_boundary(constant, boundary=1.0, bound_type='upper') defaults: DEFAULTS = { 'lr': lr, 'kappa': kappa, 'xi': xi, 'constant': constant, 'weight_decay': weight_decay, } super().__init__(params, defaults) def __str__(self) -> str: return 'AccSGD' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['momentum_buffer'] = p.clone() @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 large_lr: float = group['lr'] * group['kappa'] / group['constant'] alpha: float = 1.0 - (group['xi'] * (group['constant'] ** 2) / group['kappa']) beta: float = 1.0 - alpha zeta: float = group['constant'] / (group['constant'] + beta) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['momentum_buffer'] = p.clone() self.apply_weight_decay( p, grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=False, fixed_decay=False, ) buf = state['momentum_buffer'] buf.mul_((1.0 / beta) - 1.0).add_(grad, alpha=-large_lr).add_(p).mul_(beta) p.add_(grad, alpha=-group['lr']).mul_(zeta).add_(buf, alpha=1.0 - zeta) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, kappa: float = 1000.0, xi: float = 10.0, constant: float = 0.7, weight_decay: float = 0.0)
[ -0.035114794969558716, -0.033012714236974716, -0.01628613844513893, -0.003991455305367708, 0.013723598793148994, 0.011331228539347649, -0.0723116546869278, -0.030990710482001305, 0.007352285552769899, 0.008027954958379269, -0.03683650121092796, 0.02782757580280304, 0.030890610069036484, 0.04868824779987335, -0.04784741252660751, 0.05617566779255867, 0.0124423298984766, 0.021381188184022903, -0.01621606945991516, 0.002650126116350293, -0.015715572983026505, -0.0717911422252655, -0.019809629768133163, 0.0653047114610672, -0.039419062435626984, 0.00013873122225049883, 0.035575252026319504, -0.0290888249874115, -0.03565533086657524, -0.025565333664417267, -0.011231129057705402, -0.05093047022819519, 0.0008333257865160704, -0.00707200774922967, 0.03617584705352783, -0.062101539224386215, 0.020049868151545525, -0.004246708005666733, -0.05725673958659172, -0.01946929283440113, 0.015595453791320324, -0.030430154874920845, 0.01601587049663067, -0.05921868234872818, 0.014164035208523273, 0.011090990155935287, -0.03031003475189209, 0.06590531021356583, -0.010120028629899025, -0.034834519028663635, 0.03793759271502495, -0.08976895362138748, 0.0075524840503931046, -0.017637478187680244, -0.014164035208523273, 0.045565150678157806, 0.08208134025335312, -0.01608593948185444, 0.045845430344343185, -0.06546486914157867, 0.04300261288881302, -0.08792713284492493, 0.027046801522374153, 0.007797726895660162, -0.015785641968250275, -0.03255225718021393, -0.05485435575246811, -0.0405401736497879, 0.022181980311870575, 0.020820632576942444, 0.020059878006577492, -0.024444222450256348, 0.021341146901249886, -0.004411872010678053, -0.03317287191748619, -0.014484353363513947, -0.04744701832532883, -0.07351284474134445, -0.022121921181678772, -0.05405356362462044, 0.00941933412104845, 0.002059540944173932, -0.03999963775277138, -0.023363150656223297, -0.011201099492609501, -0.04086048901081085, -0.0028728467877954245, -0.03751717880368233, -0.01101091131567955, -0.019339164718985558, 0.01370357908308506, 0.0027627376839518547, 0.03645612671971321, 0.026366127654910088, 0.07463395595550537, 0.05517467483878136, -0.03225196152925491, -0.062101539224386215, 0.0006512703839689493, -0.010410316288471222, 0.02192172221839428, 0.0476071760058403, 0.025084856897592545, 0.07022958993911743, 0.020079897716641426, -0.046726301312446594, -0.030229955911636353, -0.033092793077230453, 0.03397366404533386, -0.07267201691865921, -0.02694670297205448, 0.012071962468326092, -0.021281087771058083, -0.026966722682118416, -0.028848586603999138, 0.0020257574506103992, 0.011371267959475517, 0.019979799166321754, -0.03819785267114639, 0.01796780526638031, 0.03875840827822685, 0.00758751854300499, -0.034694381058216095, 0.029689420014619827, 0.026205968111753464, -0.008348272182047367, 0.039018664509058, 0.03821787238121033, 0.017677517607808113, -0.04444403946399689, -0.028087833896279335, -0.003841306548565626, -0.0017755094449967146, 0.004787243902683258, 0.03593561053276062, -0.007952881045639515, -0.0111710699275136, 0.031971681863069534, -0.033753447234630585, 0.02572549320757389, 0.04090052843093872, 0.013763639144599438, -0.029168903827667236, -0.00028919283067807555, 0.042842455208301544, 0.01824808306992054, 0.035435114055871964, 0.031971681863069534, 0.007627558428794146, -0.004311772529035807, -0.006651591509580612, 0.016306158155202866, 0.010750653222203255, 0.012712597846984863, -0.022101901471614838, -0.012622508220374584, -0.026085849851369858, 0.006681621074676514, -0.017367210239171982, 0.002575051737949252, -0.043643247336149216, -0.022802595049142838, -0.04232193902134895, -0.030370095744729042, 0.002029511146247387, 0.013973847031593323, -0.0131430234760046, 0.038117773830890656, -0.04992947727441788, 0.009459373541176319, 0.008748669177293777, -0.06122066453099251, 0.03325295075774193, 0.02960934117436409, -0.019699521362781525, 0.08240165561437607, 0.01887870766222477, 0.024724500253796577, 0.03797763213515282, -0.03785751387476921, 0.02146126702427864, -0.014704571105539799, -0.06738677620887756, -0.06722661852836609, -0.02440418303012848, 0.042842455208301544, -0.00894886814057827, -0.006901839282363653, 0.00742735993117094, 0.042241860181093216, 0.02572549320757389, -0.021541345864534378, 0.017106952145695686, -0.029248984530568123, -0.021941743791103363, 0.028568308800458908, 0.02094075083732605, -0.0007132067694328725, 0.07215149700641632, 0.052451975643634796, 0.012762647122144699, 0.023363150656223297, 0.0460856668651104, 0.02094075083732605, 0.02828803099691868, -0.005970916710793972, -0.00006240559014258906, 0.012122011743485928, -0.03751717880368233, 0.01887870766222477, -0.06029975414276123, -0.00513008376583457, 0.02198178321123123, 0.04880836606025696, 0.023783568292856216, -0.02408386580646038, 0.008343267254531384, 0.03279249370098114, 0.06622562557458878, -0.03835801035165787, 0.03397366404533386, -0.0611005462706089, 0.016276128590106964, 0.007927856408059597, 0.0808401107788086, -0.03223193809390068, 0.0772765725851059, -0.034314002841711044, -0.03541509434580803, -0.026386147364974022, 0.021581385284662247, -0.06586527079343796, 0.03851816803216934, -0.002832807134836912, 0.05513463541865349, 0.0020495308563113213, -0.009269185364246368, 0.01587573252618313, 0.005780728533864021, -0.021341146901249886, -0.03873838856816292, -0.022322120144963264, -0.02408386580646038, 0.019859679043293, -0.036275945603847504, 0.021761564537882805, 0.0460856668651104, 0.03377346694469452, -0.024464242160320282, 0.026786543428897858, -0.03579547256231308, -0.02440418303012848, -0.04356316849589348, 0.01642627827823162, -0.07571502774953842, -0.033893585205078125, 0.030229955911636353, 0.045044638216495514, -0.006791730411350727, -0.06938876211643219, -0.0397794172167778, -0.02594571001827717, -0.08976895362138748, 0.07131066173315048, -0.01096086110919714, 0.030249975621700287, 0.06514455378055573, -0.004231693223118782, 0.03279249370098114, 0.047246817499399185, 0.12532418966293335, 0.08648569881916046, -0.0817209780216217, -0.008793714456260204, -0.0042141759768128395, 0.03407376632094383, 0.0006581521593034267, -0.009484398178756237, -0.0034834519028663635, -0.003275746013969183, 0.03435404226183891, -0.044243842363357544, -0.048047613352537155, -0.0028803541790694, -0.04416376352310181, 0.031591303646564484, -0.01677662506699562, -0.028708448633551598, 0.046165745705366135, 0.03205176070332527, 0.055494993925094604, 0.021541345864534378, 0.10114022344350815, -0.0040239873342216015, 0.08904824405908585, 0.029389122501015663, -0.02604581043124199, 0.026065830141305923, -0.0021946746855974197, 0.0013388267252594233, 0.07639570534229279, -0.0028177923522889614, -0.02778753638267517, -0.007051988039165735, -0.010270177386701107, -0.048047613352537155, -0.013933807611465454, 0.015755612403154373, 0.02600577101111412, 0.02282261662185192, -0.012011903338134289, -0.011551447212696075, -0.008483406156301498, 0.004209171049296856, -0.02342321164906025, -0.09064982831478119, -0.026085849851369858, -0.04840796813368797, 0.024844620376825333, 0.07295229285955429, -0.02262241765856743, 0.04788745194673538, -0.008643564768135548, -0.02258237823843956, -0.05353304743766785, -0.028648389503359795, 0.03467436134815216, 0.01835819147527218, -0.03593561053276062, -0.024844620376825333, -0.0340537466108799, -0.014934799633920193, 0.017217060551047325, 0.009839750826358795, -0.024944718927145004, -0.00673667574301362, 0.03925890475511551, 0.022101901471614838, -0.003658625530079007, -0.054373882710933685, 0.0525720939040184, 0.053853366523981094, -0.020250067114830017, 0.03931896388530731, -0.022242041304707527, -0.06494435667991638, 0.03499467670917511, 0.017177021130919456, 0.018618449568748474, -0.01590576209127903, -0.017327170819044113, -0.018928756937384605, 0.011601496487855911, 0.08792713284492493, 0.06498439610004425, 0.028728468343615532, -0.01204193290323019, -0.015255116857588291, 0.058177649974823, -0.07159094512462616, -0.010600504465401173, 0.017287129536271095, -0.045324914157390594, 0.05617566779255867, 0.06346289068460464, -0.008868788368999958, -0.023303091526031494, -0.05729677900671959, 0.036095768213272095, -0.044203802943229675, 0.008218144066631794, -0.08156082034111023, -0.013943817466497421, 0.02782757580280304, -0.057697173207998276, -0.005745693575590849, -0.027387138456106186, -0.02300279401242733, 0.025985749438405037, 0.011040940880775452, 0.05016971379518509, -0.03165136277675629, 0.0327124148607254, 0.04300261288881302, 0.03775741532444954, -0.024584362283349037, 0.011861754581332207, -0.018868697807192802, 0.06930868327617645, -0.06334277242422104, 0.02426404505968094, -0.00997988972812891, -0.002587564056739211, -0.0002460250398144126, -0.0759953036904335, 0.023022813722491264, 0.07767697423696518, 0.03785751387476921, -0.04296257346868515, -0.014394263736903667, -0.0340537466108799, -0.021941743791103363, -0.0005136340041644871, 0.02984957955777645, -0.00661655655130744, -0.05401352420449257, 0.03785751387476921, 0.05341292917728424, -0.005375326611101627, 0.09897807985544205, -0.027287039905786514, 0.005995941814035177, -0.012071962468326092, 0.03377346694469452, -0.0036811477039009333, -0.036656323820352554, -0.026546305045485497, 0.0287685077637434, 0.004471931606531143, 0.05657606199383736, 0.04236197844147682, -0.006781720090657473, 0.03321291133761406, 0.028087833896279335, 0.0016191044123843312, -0.012222111225128174, -0.06206149980425835, -0.023303091526031494, -0.04548507183790207, -0.037697356194257736, -0.030770491808652878, -0.012862746603786945, -0.048568129539489746, -0.012362250126898289, -0.04876832664012909, -0.005175128113478422, -0.018828658387064934, 0.053292810916900635, 0.03175146505236626, -0.011671565473079681, -0.0014314184663817286, -0.023643428459763527, 0.010560465045273304, -0.0022785079199820757, -0.014574442058801651, -0.025425195693969727, 0.054694198071956635, -0.011861754581332207, -0.04784741252660751, -0.0039013659115880728, 0.030249975621700287, 0.005855802912265062, 0.007742672692984343, 0.031411126255989075, -0.0029329063836485147, -0.008608530275523663, -0.014684551395475864, -0.04023987427353859, -0.021481286734342575, -0.0022810103837400675, 0.0048297857865691185, 0.03579547256231308, -0.020840652287006378, 0.008598520420491695, -0.018728557974100113, 0.0041265892796218395, 0.06446387618780136, 0.014204075559973717, -0.00849842093884945, 0.001845578895881772, 0.0006612802972085774, 0.003553521353751421, 0.024724500253796577, -0.04812769219279289, -0.03355325013399124, 0.00548043055459857, -0.052772294729948044, 0.0028002748731523752, 0.002010742435231805, -0.016506357118487358, 0.047206778079271317, -0.05865812674164772, 0.033373069018125534, 0.055214714258909225, 0.018998825922608376, 0.019829649478197098, 0.014043916948139668, 0.01045035570859909, 0.01824808306992054, 0.03789755329489708, -0.02614590898156166, -0.033753447234630585, 0.05553503334522247, 0.01901884563267231, -0.02538515441119671, -0.009804715402424335, 0.018758589401841164, 0.015595453791320324, 0.06230173632502556, 0.020149966701865196, 0.006096040830016136, -0.017717557027935982, -0.08776697516441345, 0.02174154482781887, 0.05241193622350693, -0.015795651823282242, -0.05657606199383736, 0.032111819833517075, -0.05565515160560608, 0.004712169524282217, -0.016406256705522537, -0.009399314410984516, 0.015675533562898636, 0.012742627412080765, 0.00917909573763609, -0.048888444900512695, -0.01890873722732067, 0.05861808732151985, 0.025365134701132774, -0.05725673958659172, 0.011561457067728043, 0.027106860652565956, -0.023903686553239822, -0.01283271610736847, 0.010500404983758926, 0.04984939843416214, 0.013683559373021126, -0.03457425907254219, 0.05129082500934601, 0.012782666832208633, -0.004647105000913143, 0.003503471612930298, 0.0026351113338023424, 0.08240165561437607, 0.012522408738732338, -0.018057893961668015, 0.03217187896370888, -0.05789737403392792, -0.059338800609111786, -0.05121074616909027, 0.0022034335415810347, 0.0009678340866230428, 0.027006762102246284, -0.02188168279826641, -0.014434303157031536, 0.04408368468284607, -0.016516366973519325, 0.03687654063105583, -0.05649598315358162, -0.00695689395070076, -0.06194138154387474, 0.027387138456106186, -0.03059031255543232, 0.03241211920976639, 0.014134005643427372, 0.008818739093840122, -0.04784741252660751, 0.02118098922073841, 0.011381277814507484, 0.03917882218956947, -0.040219854563474655, -0.04156118631362915, 0.016065919771790504, -0.016436288133263588, -0.014444313012063503, 0.02276255562901497, 0.04356316849589348, -0.024143924936652184, -0.028268011286854744, 0.05761709436774254, 0.006346288602799177, -0.03115086816251278, -0.015785641968250275, 0.011731625534594059, -0.06526467204093933, 0.014554422348737717, 0.02300279401242733, -0.01862845942378044, -0.006816755048930645, -0.027607357129454613, 0.04880836606025696, -0.03835801035165787, 0.00302800047211349, -0.0037111775018274784, 0.030650371685624123, 0.04980935901403427, -0.10986887663602829, 0.029148884117603302, -0.009634546935558319, -0.018968796357512474, -0.017837675288319588, 0.03293263539671898, -0.01639624685049057, -0.07923851907253265, -0.007026963401585817, 0.02834809198975563, -0.06374316662549973, -0.0005702525959350169, 0.056335825473070145, 0.02712688036262989, -0.06994931399822235, -0.008908827789127827, 0.026105869561433792, -0.004161623772233725, 0.004069032147526741, -0.006025971379131079, -0.0041265892796218395, 0.021160969510674477, 0.030209936201572418, -0.05565515160560608, -0.01636621728539467, -0.01803787425160408, 0.01587573252618313, 0.011141040362417698, -0.04344305023550987, 0.008573495782911777, -0.004061524756252766, 0.007277211174368858, 0.09337252378463745, -0.03453421965241432, 0.0159458015114069, -0.029969697818160057, -0.006716655567288399, 0.005125078838318586, -0.00844336673617363, -0.02198178321123123, 0.0332929901778698, -0.09257173538208008, -0.012632518075406551, -0.008648570626974106, -0.018678508698940277, -0.004204166121780872, 0.01431418489664793, -0.020820632576942444, 0.039659298956394196, 0.006761700380593538, 0.03603570908308029, 0.03006979636847973, -0.028428170830011368, -0.026225987821817398, -0.01148137729614973, 0.05353304743766785, 0.005180133040994406, 0.004166628699749708, -0.039098743349313736, -0.04276237636804581, 0.017907746136188507, 0.02031012624502182, 0.05253205448389053, 0.046686261892318726, -0.022922715172171593, 0.04001965746283531, -0.04924880340695381, 0.011651545763015747, 0.0327124148607254, -0.013133013620972633, 0.009514427743852139, 0.02576553262770176, 0.053012531250715256, -0.03705672174692154, 0.015305166132748127, -0.00928420014679432, 0.02492469921708107, 0.016756605356931686, -0.06666605919599533, -0.025565333664417267, -0.009063981473445892, -0.017497338354587555, 0.004269230645149946, -0.00043199057108722627, -0.08076002448797226, -0.009589502587914467, -0.06001947447657585, -0.00030858704121783376, 0.017006853595376015, -0.001052292762324214, 0.03611578792333603, -0.03841806948184967, -0.027046801522374153, -0.02031012624502182, 0.05121074616909027, 0.047206778079271317, 0.0143842538818717, -0.0003672389138955623, 0.033152852207422256, -0.06754693388938904, -0.014884749427437782, -0.014924789778888226, -0.011161060072481632, -0.02080061286687851, -0.045044638216495514, -0.003931395709514618, 0.02726702019572258, -0.014083956368267536, 0.061300743371248245, -0.07511443644762039, -0.03875840827822685, 0.0068868244998157024, 0.03115086816251278, -0.08168093860149384, 0.017287129536271095, 0.009444358758628368, -0.02324303239583969, 0.02356334961950779, 0.031591303646564484, 0.054093603044748306, 0.0010641795815899968, -0.028087833896279335, 0.02848822996020317, 0.004324285313487053, 0.03999963775277138, 0.0006068513612262905, -0.012592478655278683, 0.03663630411028862, 0.030770491808652878, -0.010900801979005337, 0.013253132812678814, -0.04300261288881302, -0.015525384806096554, 0.06290233135223389, 0.003328298218548298, -0.020430244505405426, 0.013183063827455044, 0.004116579424589872, -0.03931896388530731, -0.0418815016746521, 0.03181152418255806, -0.009799710474908352, 0.028788527473807335, -0.017707547172904015, 0.033333029597997665, 0.015895752236247063, -0.01410397607833147, 0.02062043361365795, 0.006516457535326481, 0.009814726188778877, 0.03527495637536049, 0.0069218589924275875, -0.001171160489320755, 0.07731661945581436, -0.004967422224581242, 0.06254197657108307, 0.0009390555205754936, -0.027867615222930908, -0.013483361341059208, 0.04356316849589348, -0.04132094606757164, -0.032312020659446716, 0.037216879427433014, -0.037697356194257736, 0.06494435667991638, -0.01856840029358864, 0.012842725962400436, 0.006661601364612579, 0.08712633699178696, -0.059338800609111786, -0.014123995788395405, -0.05557507276535034, -0.07471403479576111, -0.09473387897014618, 0.016576426103711128, -0.05777725204825401, 0.07615546882152557, 0.01803787425160408, 0.000902769563253969, 0.005380331538617611, 0.022802595049142838, 0.030249975621700287 ]
714,821
pytorch_optimizer.optimizer.sgd
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, kappa: float = 1000.0, xi: float = 10.0, constant: float = 0.7, weight_decay: float = 0.0, ): self.validate_learning_rate(lr) self.validate_non_negative(kappa, 'kappa') self.validate_non_negative(xi, 'xi') self.validate_non_negative(weight_decay, 'weight_decay') self.validate_boundary(constant, boundary=1.0, bound_type='upper') defaults: DEFAULTS = { 'lr': lr, 'kappa': kappa, 'xi': xi, 'constant': constant, 'weight_decay': weight_decay, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, kappa: float = 1000.0, xi: float = 10.0, constant: float = 0.7, weight_decay: float = 0.0)
[ 0.024657728150486946, -0.027528833597898483, -0.029086360707879066, -0.0009048438514582813, -0.035541657358407974, -0.02416982688009739, -0.05663396045565605, -0.024038469418883324, -0.02844833768904209, 0.043723367154598236, -0.008233316242694855, 0.058022599667310715, 0.027472537010908127, 0.045599907636642456, -0.04334805905818939, 0.01766761764883995, 0.02705969847738743, 0.025689823552966118, -0.011174792423844337, -0.008139489218592644, -0.0028054264839738607, -0.04199695214629173, -0.03786856681108475, 0.10951483994722366, 0.02323155850172043, 0.0255397018045187, -0.029386606067419052, 0.014655772596597672, -0.003429375821724534, -0.01408342830836773, -0.018061691895127296, -0.004262090194970369, 0.017320457845926285, 0.05738457292318344, 0.03565424680709839, -0.05760975927114487, -0.01073380559682846, -0.01800539530813694, -0.055282849818468094, 0.035973262041807175, 0.029405372217297554, -0.012441456317901611, 0.006187888793647289, -0.06391493231058121, -0.006549122277647257, 0.013135775923728943, 0.03850658982992172, 0.06113765388727188, -0.008491341024637222, -0.019816255196928978, 0.001120645902119577, 0.000596680911257863, 0.017601938918232918, -0.03841276094317436, -0.03146956488490105, 0.03569177910685539, 0.05524532124400139, 0.014702686108648777, 0.038956958800554276, -0.014439970254898071, -0.007327886298298836, -0.020885882899165154, 0.012375777587294579, -0.008721216581761837, 0.01327651645988226, -0.006441221572458744, -0.07179639488458633, -0.029649322852492332, 0.033158451318740845, 0.04012041166424751, 0.10245905071496964, -0.024282420054078102, -0.030174752697348595, 0.01166269276291132, 0.026196489110589027, -0.004644434899091721, -0.06913170963525772, -0.03552288934588432, -0.029086360707879066, -0.030756480991840363, 0.03184487298130989, 0.015612808056175709, -0.038881897926330566, -0.04008288308978081, -0.0025802417658269405, -0.012516518123447895, -0.03636733442544937, -0.07543688267469406, 0.05730951204895973, 0.028992533683776855, -0.09127487987279892, -0.010977755300700665, -0.017892803996801376, -0.01192540768533945, 0.07250948250293732, 0.032989561557769775, 0.025558466091752052, -0.07776379585266113, 0.017780210822820663, -0.020998476073145866, -0.006849368568509817, -0.0016818484291434288, -0.039294734597206116, 0.014252317138016224, 0.024413777515292168, -0.031056726351380348, -0.030587591230869293, -0.010996520519256592, 0.031300678849220276, -0.05126705765724182, -0.0331772156059742, 0.0553579106926918, -0.052392978221178055, 0.04409867525100708, -0.07986551523208618, 0.06008679047226906, 0.015528363175690174, 0.023344149813055992, 0.005775049794465303, 0.0038562885019928217, 0.0315258614718914, 0.016410337761044502, -0.051041871309280396, 0.0391821414232254, 0.047026075422763824, 0.018859220668673515, -0.0028945619706064463, 0.02341921254992485, 0.03336486965417862, -0.007618749979883432, 0.024957973510026932, -0.007060479372739792, -0.03212635591626167, -0.02657179720699787, -0.0022213535849004984, -0.01720786653459072, 0.005071347579360008, 0.04946557804942131, -0.030174752697348595, 0.03353375941514969, 0.06053715944290161, 0.010349114425480366, 0.04616286978125572, -0.008369365707039833, 0.0073513430543243885, 0.01641971990466118, -0.005273075774312019, 0.005038508214056492, 0.009654794819653034, 0.0365925170481205, 0.015340709127485752, 0.037924859672784805, 0.005770358722656965, 0.002332773059606552, 0.003910238854587078, -0.05224285647273064, 0.039895229041576385, -0.041509050875902176, 0.030343642458319664, -0.021317487582564354, -0.02563352882862091, 0.01991008222103119, 0.011597013100981712, -0.054945074021816254, -0.0276789553463459, 0.03161969035863876, -0.02818562090396881, 0.019384652376174927, 0.011390593834221363, -0.005671840161085129, -0.02792290598154068, -0.10163336992263794, -0.03666757792234421, 0.028073029592633247, -0.002650611801072955, 0.06421517580747604, 0.006248875986784697, -0.003340240102261305, 0.015547129325568676, -0.007782947272062302, 0.05014113336801529, -0.012966887094080448, -0.041509050875902176, -0.06417764723300934, 0.02529575116932392, 0.026440439745783806, -0.0476641021668911, 0.06395246088504791, -0.05329371988773346, 0.031957466155290604, 0.061850737780332565, 0.0037249308079481125, 0.0003017123381141573, 0.03467844799160957, -0.021767856553196907, 0.025558466091752052, 0.0749489814043045, 0.010499238036572933, 0.0037108566612005234, 0.07299738377332687, 0.06582900136709213, 0.03644239529967308, -0.0041846828535199165, -0.013970836065709591, 0.008730599656701088, -0.016522929072380066, -0.011765901930630207, -0.010386645793914795, -0.03223894536495209, -0.02799796685576439, -0.0017557371174916625, -0.023475507274270058, 0.013482935726642609, 0.01808045618236065, -0.015237499959766865, -0.005798506550490856, -0.028748583048582077, 0.022856250405311584, 0.02356933429837227, -0.016579225659370422, 0.10381016135215759, -0.00033924312447197735, 0.0002869052696041763, -0.013492317870259285, 0.0621509850025177, 0.02944290265440941, 0.06335196644067764, -0.06627937406301498, -0.09547832608222961, 0.02416982688009739, -0.005540482699871063, -0.061175182461738586, -0.008327143266797066, -0.013248368166387081, 0.020641934126615524, -0.007271590176969767, -0.0007746589253656566, 0.035016223788261414, -0.06691739708185196, -0.034434497356414795, 0.035804372280836105, 0.023118965327739716, -0.013013800606131554, -0.02067946456372738, -0.009523437358438969, 0.010452324524521828, 0.0157629307359457, 0.04578756168484688, -0.02452637068927288, -0.015340709127485752, -0.029480433091521263, -0.013013800606131554, -0.041921891272068024, 0.03584190085530281, -0.030005864799022675, 0.0476641021668911, 0.03252042829990387, -0.00872590858489275, 0.038431525230407715, -0.0008039798703975976, -0.025671059265732765, 0.007093318738043308, -0.01003948599100113, 0.08391883969306946, 0.013342195190489292, 0.018446382135152817, 0.013998983427882195, 0.005859494209289551, 0.042522381991147995, -0.0006532702827826142, 0.11401853710412979, 0.05160483345389366, -0.011887877248227596, -0.0024066618643701077, -0.015134289860725403, -0.027172289788722992, -0.01940341666340828, -0.0246764924377203, -0.0033238204196095467, 0.03355252370238304, 0.03259548917412758, -0.03777473792433739, 0.021561438217759132, 0.015340709127485752, -0.021561438217759132, 0.02017279900610447, -0.005850111600011587, 0.00012446733308024704, -0.011418742127716541, -0.002608389826491475, -0.0001941045484272763, 0.019684897735714912, 0.0706704705953598, 0.0008432698668912053, 0.0859455019235611, -0.015218734741210938, 0.011709606274962425, 0.0038164120633155107, 0.05603346601128578, -0.003886782331392169, 0.04072090610861778, -0.03184487298130989, 0.030268579721450806, -0.03389030322432518, -0.0204355139285326, -0.03081277757883072, 0.03798115625977516, 0.03066265396773815, 0.04327299818396568, 0.044736698269844055, 0.0195910707116127, 0.03193870186805725, 0.03176981210708618, -0.023888345807790756, 0.03610461950302124, -0.0544947050511837, 0.03445326164364815, -0.06481567025184631, 0.025314517319202423, 0.05160483345389366, 0.0159599669277668, 0.032820675522089005, -0.03370264917612076, -0.031788576394319534, -0.07344774901866913, -0.06200086325407028, 0.01846514828503132, 0.016147620975971222, -0.06549122184515, -0.04019547253847122, -0.01853082701563835, 0.023794518783688545, -0.0008004613337107003, -0.03115055337548256, -0.044323861598968506, -0.003434067126363516, 0.016063177958130836, 0.056408774107694626, -0.0020313540007919073, -0.015265648253262043, 0.04102114960551262, -0.01718910038471222, -0.015725400298833847, 0.03488486632704735, -0.0017827124102041125, -0.05764729157090187, -0.009514054283499718, -0.048151999711990356, 0.028729818761348724, -0.01848391257226467, -0.03811251372098923, -0.004787520971149206, 0.017170336097478867, 0.057759881019592285, 0.03678017109632492, -0.04049571976065636, -0.009673560969531536, -0.02715352550148964, 0.029236484318971634, -0.034021660685539246, -0.000011288557288935408, -0.003795300843194127, -0.05490754172205925, 0.05329371988773346, 0.03629227355122566, -0.005784432869404554, 0.011202939786016941, -0.030287345871329308, -0.0011482075788080692, 0.017085891216993332, 0.01853082701563835, -0.07858946919441223, -0.05941123887896538, -0.0019375269766896963, 0.028373274952173233, 0.008374056778848171, -0.013304664753377438, -0.008866648189723492, 0.01486219186335802, -0.013604911044239998, 0.009861214086413383, -0.004004065878689289, 0.06672973930835724, 0.017564408481121063, -0.027941672131419182, -0.04135892912745476, 0.013933304697275162, 0.010264670476317406, 0.06770554184913635, 0.008064428344368935, 0.0034622151870280504, -0.015687869861721992, 0.023194026201963425, -0.007440478540956974, -0.04113374277949333, 0.02722858637571335, 0.033927831798791885, 0.023043904453516006, -0.01124047115445137, -0.012929356656968594, -0.03678017109632492, -0.04751397669315338, -0.01824934594333172, 0.04008288308978081, 0.026008836925029755, 0.00027503029559738934, 0.013933304697275162, 0.0370616540312767, 0.003600609954446554, 0.045937683433294296, -0.0070698619820177555, -0.031544625759124756, -0.0015610462287440896, 0.0027115994598716497, -0.0157629307359457, -0.05032878741621971, 0.04698854684829712, 0.0028148090932518244, -0.00698072649538517, -0.0020853043533861637, 0.01841823384165764, -0.027040932327508926, 0.08909808844327927, 0.03047499991953373, 0.04454904422163963, 0.059298645704984665, -0.011718988418579102, -0.029330311343073845, 0.02349427342414856, -0.056146059185266495, -0.07723835855722427, 0.03047499991953373, -0.062113452702760696, -0.03186363726854324, -0.001996168866753578, -0.009368622675538063, -0.007984675467014313, 0.02383205108344555, 0.02229328826069832, -0.0055592479184269905, 0.024845382198691368, -0.06868134438991547, 0.044736698269844055, -0.0032323391642421484, -0.04488682374358177, -0.005549865309149027, 0.004801595117896795, 0.011775285005569458, -0.03220141679048538, -0.003924313001334667, 0.02462019771337509, -0.013407873921096325, 0.02989327162504196, -0.01246960461139679, -0.007961218245327473, -0.016044411808252335, -0.07371046394109726, -0.033064622431993484, 0.04631299152970314, -0.025952540338039398, 0.03456585481762886, 0.029855741187930107, -0.006328629329800606, -0.05791000649333, -0.06954454630613327, 0.037080418318510056, 0.047213729470968246, -0.015415770933032036, -0.0009060166776180267, -0.013323429971933365, 0.0006550295511260629, 0.01949724368751049, 0.031281910836696625, -0.026965871453285217, -0.035372767597436905, 0.02970561943948269, 0.012159975245594978, 0.01877477578818798, 0.007750107906758785, -0.03760584816336632, 0.009983189404010773, -0.03250166401267052, 0.0023632668890058994, 0.08459439873695374, 0.006319246254861355, -0.016569843515753746, -0.07356034219264984, 0.01540638878941536, -0.006178506184369326, 0.031713515520095825, -0.07506157457828522, 0.02844833768904209, 0.028955003246665, 0.061850737780332565, -0.010874546132981777, 0.00293678417801857, 0.0417342372238636, 0.0374557264149189, 0.05411939695477486, 0.030155988410115242, -0.005348137114197016, -0.014336761087179184, -0.05209273472428322, -0.003485671943053603, 0.024845382198691368, -0.03039993904531002, -0.09225067496299744, 0.007501466199755669, -0.012422691099345684, -0.030437469482421875, -0.0102177569642663, 0.007032331544905901, 0.002631846582517028, 0.006750850472599268, -0.05637124180793762, -0.044811759144067764, -0.07607490569353104, 0.06406505405902863, -0.03739942982792854, -0.03233277425169945, 0.03933226689696312, 0.02248094230890274, 0.04631299152970314, -0.06410258263349533, 0.013304664753377438, 0.04120880365371704, 0.03492239862680435, -0.07202158123254776, 0.06072481349110603, 0.028241917490959167, -0.020998476073145866, -0.04376089945435524, -0.0142616992816329, 0.04015794396400452, -0.014758982695639133, 0.03713671490550041, 0.026496736332774162, -0.04398608207702637, -0.04289769008755684, -0.02698463574051857, 0.007712577003985643, 0.023550570011138916, 0.013379725627601147, -0.03522264584898949, -0.001307713333517313, 0.001299503492191434, -0.04841471463441849, 0.06864380836486816, -0.0860205665230751, -0.01918761618435383, 0.015077994205057621, -0.01600688137114048, -0.03617968037724495, 0.008481957949697971, 0.012600962072610855, 0.024075999855995178, 0.027716487646102905, -0.012497751973569393, 0.05479494854807854, 0.05573321878910065, -0.02195551060140133, -0.04222213476896286, 0.02146761119365692, -0.0002877849037759006, -0.04833965376019478, 0.005821963306516409, -0.019947614520788193, -0.031788576394319534, -0.052392978221178055, 0.017949098721146584, 0.02842957153916359, -0.014214785769581795, 0.03049376606941223, 0.021993041038513184, -0.05813518911600113, 0.03139450401067734, 0.015134289860725403, 0.02604636736214161, -0.0655287578701973, -0.05941123887896538, 0.022030573338270187, 0.01788341999053955, -0.0468384250998497, -0.07994057983160019, 0.027697721496224403, 0.008646155707538128, -0.06440283358097076, 0.009739239700138569, -0.02051057480275631, 0.00888072233647108, 0.01396145299077034, 0.04713866859674454, -0.03569177910685539, -0.03107549250125885, -0.05652136728167534, 0.033252276480197906, -0.021730326116085052, -0.05423199012875557, 0.060649752616882324, 0.03820634260773659, -0.06582900136709213, -0.003980609122663736, 0.01051800325512886, 0.012460221536457539, 0.0024136987049132586, -0.0039055475499480963, -0.02214316464960575, 0.05303100496530533, 0.014336761087179184, -0.03612338379025459, 0.032051291316747665, -0.041921891272068024, 0.016185151413083076, -0.017967864871025085, -0.007149615325033665, 0.005169866140931845, -0.03193870186805725, 0.04075843468308449, 0.08316822350025177, -0.04845224693417549, -0.014214785769581795, -0.05254310369491577, 0.0011681457981467247, 0.04334805905818939, -0.056558895856142044, -0.005887642502784729, 0.011005903594195843, -0.1191977858543396, -0.008946401998400688, -0.0024699950590729713, 0.0382814034819603, -0.028898706659674644, -0.03353375941514969, -0.05216779559850693, -0.0010790101950988173, 0.0544947050511837, 0.03833770006895065, 0.02315649576485157, 0.018014777451753616, 0.024563901126384735, -0.010837014764547348, 0.031713515520095825, 0.012572813779115677, 0.002533328253775835, -0.008481957949697971, -0.039107080549001694, -0.010799484327435493, 0.004637397825717926, 0.05670902132987976, 0.020041441544890404, -0.03696782514452934, 0.010987138375639915, -0.05944876745343208, 0.014758982695639133, -0.013051331043243408, -0.0046420893631875515, 0.0032135737128555775, 0.020473044365644455, 0.05310606583952904, -0.02690957486629486, -0.04901520907878876, -0.00940146204084158, 0.03747449070215225, 0.009964424185454845, 0.0021627116948366165, -0.0038422143552452326, -0.015012315474450588, -0.06744282692670822, -0.03394659608602524, 0.015378240495920181, -0.0005280699115246534, -0.018737245351076126, -0.012544665485620499, 0.03259548917412758, 0.03227647766470909, 0.015021697618067265, -0.057159390300512314, -0.03593572974205017, -0.008622698485851288, -0.02842957153916359, 0.06785566359758377, 0.03880683332681656, -0.0030094999819993973, -0.044323861598968506, 0.03396536409854889, -0.036742642521858215, -0.05126705765724182, 0.04458657652139664, -0.001093670609407127, -0.0014191329246386886, -0.05745963752269745, 0.010095781646668911, 0.009152821265161037, 0.030193518847227097, 0.0033050549682229757, -0.052843350917100906, -0.0809163823723793, -0.0663544312119484, 0.0391821414232254, -0.018239963799715042, -0.008205168880522251, 0.00476641021668911, -0.056746549904346466, 0.08076625317335129, -0.00860393326729536, 0.030174752697348595, -0.003952461294829845, -0.030418703332543373, 0.006858751643449068, -0.05141717940568924, 0.058623090386390686, 0.02816685661673546, 0.014449353329837322, -0.0961538776755333, -0.019290825352072716, 0.05430705100297928, 0.018333788961172104, -0.020379217341542244, -0.03507252037525177, -0.002120489487424493, 0.006037765648216009, -0.05562062934041023, 0.0020372180733829737, -0.00613159267231822, 0.0019410453969612718, -0.036892764270305634, -0.023025138303637505, -0.010583681985735893, 0.008927635848522186, -0.011953555978834629, 0.03617968037724495, 0.028955003246665, -0.04139645770192146, 0.011381211690604687, 0.039294734597206116, -0.038168810307979584, -0.003464560955762863, 0.0009863560553640127, 0.05344384163618088, 0.0741233080625534, 0.03824387118220329, 0.025915009900927544, -0.03754955157637596, -0.022668596357107162, -0.017001446336507797, 0.07307244092226028, -0.025220690295100212, -0.024957973510026932, 0.07202158123254776, 0.008308378048241138, -0.017705149948596954, -0.012563431635499, 0.023362915962934494, 0.0037296221125870943, 0.04777669161558151, -0.03208882361650467, 0.0012760467361658812, -0.026515502482652664, -0.07254701107740402, -0.05475741997361183, -0.006924430374056101, -0.05348137393593788, 0.06181320920586586, 0.03629227355122566, 0.022199461236596107, 0.025933774188160896, 0.059373706579208374, 0.012657258659601212 ]
714,824
pytorch_optimizer.optimizer.sgd
__str__
null
def __str__(self) -> str: return 'AccSGD'
(self) -> str
[ -0.03074314445257187, -0.023840904235839844, 0.03002122789621353, -0.03449359908699989, 0.017607757821679115, -0.04578017070889473, 0.01221978385001421, -0.015151475556194782, 0.10212499648332596, -0.0657825842499733, -0.05754215270280838, 0.026253167539834976, 0.0006333290366455913, 0.0005224552005529404, 0.010828770697116852, -0.013223426416516304, 0.016639331355690956, -0.052682410925626755, 0.017748620361089706, 0.0133818956092, -0.01545961108058691, 0.040075257420539856, 0.011048868298530579, -0.019615042954683304, -0.028383705765008926, 0.06166236847639084, 0.014191852882504463, -0.023576786741614342, -0.009710678830742836, -0.004311699885874987, 0.0018532165559008718, -0.03658892214298248, -0.015336357057094574, 0.002539918990805745, -0.022942908108234406, 0.002729202387854457, -0.021129310131072998, -0.026288382709026337, -0.04246991127729416, 0.012290215119719505, -0.003970549441874027, 0.02236185222864151, -0.01933331787586212, -0.05102728307247162, -0.015741335228085518, 0.01059987023472786, -0.011022455990314484, 0.03389493376016617, 0.0013954148162156343, -0.026094697415828705, -0.013170602731406689, 0.006743771024048328, -0.05961986631155014, -0.020847585052251816, 0.0033454739023, 0.012897682376205921, 0.037680599838495255, -0.003908922430127859, -0.01429749932140112, 0.03162353113293648, -0.03599025681614876, -0.03944137692451477, 0.038737066090106964, -0.02246749959886074, 0.0023506355937570333, 0.04285728186368942, -0.031570710241794586, 0.03296172246336937, 0.03106008470058441, 0.016463253647089005, 0.037786249071359634, -0.07029017060995102, -0.026781398802995682, 0.02218577452003956, 0.03620155155658722, -0.028278058394789696, -0.07025495171546936, -0.004401939455419779, 0.0013348881620913744, -0.05729564279317856, 0.044195473194122314, -0.01922767236828804, -0.0212173480540514, -0.0014394342433661222, 0.009244073182344437, -0.04708314314484596, -0.012633565813302994, -0.058176033198833466, -0.06641646474599838, 0.048562195152044296, -0.0024254685267806053, -0.020847585052251816, -0.03505704551935196, 0.07187486439943314, -0.03178200125694275, 0.002480492927134037, -0.004252273589372635, -0.05236547067761421, 0.00018845802696887404, 0.029387347400188446, 0.020002413541078568, 0.014288695529103279, -0.024826938286423683, 0.03620155155658722, -0.043139006942510605, -0.06296534091234207, -0.033437132835388184, 0.0385257750749588, 0.02241467498242855, -0.008147990331053734, -0.011497865431010723, 0.004386532586067915, 0.06007767096161842, -0.01917484775185585, 0.014781712554395199, -0.05222461000084877, 0.017607757821679115, -0.015591669827699661, 0.00029245385667309165, -0.025989050045609474, 0.025848187506198883, -0.015732532367110252, -0.03518030047416687, 0.036518488079309464, 0.04493499919772148, 0.07620637863874435, -0.06046504154801369, -0.000848473806399852, 0.02241467498242855, -0.03389493376016617, 0.051661159843206406, -0.023118985816836357, -0.04606189578771591, -0.037751033902168274, 0.07923491299152374, -0.02010805904865265, 0.05225982517004013, 0.013152995146811008, 0.007756217382848263, 0.13783352077007294, -0.017607757821679115, 0.023259848356246948, 0.008363684639334679, 0.01924527995288372, 0.027027908712625504, 0.03167635574936867, -0.030056443065404892, 0.07916447520256042, -0.0033498757984489202, -0.026112305000424385, 0.0032310234382748604, 0.036941077560186386, 0.011973274871706963, -0.0014273289125412703, -0.05444318801164627, 0.00949058122932911, -0.01059987023472786, -0.030338166281580925, 0.029035191982984543, -0.014482380822300911, -0.01581176556646824, -0.03162353113293648, -0.024105019867420197, -0.015292337164282799, -0.005735727027058601, 0.007989520207047462, 0.0028612606693059206, 0.022150559350848198, -0.0019940785132348537, -0.015741335228085518, -0.04049784317612648, -0.07247353345155716, -0.08874309808015823, 0.02542560175061226, -0.03599025681614876, 0.018734654411673546, 0.013954147696495056, 0.09627921879291534, 0.04327986761927605, -0.042152971029281616, 0.01546841487288475, 0.014896162785589695, -0.05750693753361702, 0.03303215280175209, 0.05426710844039917, -0.032521527260541916, 0.01640162616968155, 0.056873057037591934, 0.05898598954081535, 0.001837809686549008, 0.021780796349048615, 0.017810247838497162, -0.03164114058017731, -0.02561928704380989, 0.010846379213035107, -0.05676741153001785, -0.009833932854235172, -0.06405702233314514, -0.036835428327322006, 0.018893124535679817, 0.0064972625114023685, 0.046484481543302536, -0.031482670456171036, 0.0424346961081028, 0.07437516748905182, 0.022854870185256004, 0.05528835952281952, -0.019421357661485672, 0.0019192455802112818, -0.028137197718024254, 0.023735256865620613, 0.023858511820435524, -0.024016981944441795, 0.02239706739783287, 0.016322391107678413, -0.034652065485715866, 0.002597144339233637, -0.010318146087229252, -0.028383705765008926, -0.00901517178863287, 0.051802024245262146, -0.024281097576022148, -0.0012897682609036565, -0.05567573010921478, -0.03849055990576744, 0.006215538363903761, 0.021851226687431335, -0.02435152977705002, -0.039934393018484116, -0.021551895886659622, 0.01064388919621706, -0.053562797605991364, 0.010282930918037891, 0.05789430812001228, 0.012571939267218113, 0.038948360830545425, -0.028313273563981056, -0.005828167777508497, -0.036518488079309464, -0.003655810607597232, -0.028225235641002655, 0.02023131400346756, 0.01111049484461546, 0.03415904939174652, 0.0450054295361042, -0.022749222815036774, -0.0350218303501606, 0.009895559400320053, -0.007223582826554775, -0.03088400699198246, 0.03849055990576744, -0.07275525480508804, -0.022661184892058372, -0.028260450810194016, -0.02871825359761715, -0.06071154773235321, -0.046519696712493896, 0.03718758374452591, 0.008641007356345654, -0.024950193241238594, -0.06687426567077637, 0.00950818881392479, -0.057049136608839035, 0.02355917915701866, -0.003558967960998416, 0.029193662106990814, 0.004291891120374203, 0.04901999607682228, 0.04173038527369499, -0.01386610884219408, 0.11311223357915878, 0.046343617141246796, -0.055781375616788864, 0.01924527995288372, -0.010326949879527092, -0.02149907313287258, -0.003422508016228676, 0.02551364153623581, -0.09071516990661621, -0.04718879237771034, 0.02359439618885517, -0.027873080223798752, -0.011198533698916435, 0.05507706478238106, -0.0054848166182637215, -0.07352999597787857, 0.028119588270783424, -0.04556887596845627, 0.02035456709563732, 0.030531851574778557, 0.053879737854003906, 0.0353739857673645, -0.01286246720701456, 0.015891000628471375, 0.03616633266210556, 0.03401818871498108, 0.05923249572515488, 0.029264094308018684, -0.020812369883060455, 0.03389493376016617, -0.0028370500076562166, -0.009913167916238308, -0.003473130287602544, -0.027045516297221184, -0.0165777038782835, -0.02778504230082035, -0.023928942158818245, -0.005405581556260586, 0.013628404587507248, 0.04384331777691841, -0.0656065046787262, 0.02567211166024208, 0.03218698129057884, 0.07578378915786743, -0.011982079595327377, 0.06440918147563934, -0.02979232557117939, 0.006730565335601568, 0.03231023624539375, 0.07374128699302673, -0.03620155155658722, 0.03331387788057327, -0.035655710846185684, -0.004525193944573402, -0.0021877638064324856, -0.011797198094427586, -0.03130659461021423, 0.04070913419127464, 0.02361200377345085, 0.02338310144841671, -0.07345956563949585, -0.05733085796236992, 0.03701150789856911, -0.02966907247900963, -0.0011423032265156507, 0.024703683331608772, 0.037645384669303894, -0.056978702545166016, -0.03553245589137077, -0.04370245337486267, 0.05141465365886688, 0.002308817347511649, -0.02646446041762829, 0.031517885625362396, 0.00530433701351285, 0.009305699728429317, -0.04606189578771591, -0.023118985816836357, -0.0073952581733465195, 0.00345992436632514, -0.033331483602523804, -0.010054029524326324, 0.05451361835002899, 0.04049784317612648, 0.05535878986120224, 0.013232230208814144, -0.02331267111003399, 0.048245254904031754, 0.005986637435853481, 0.013760462403297424, 0.018699439242482185, -0.05518271401524544, -0.0066513302735984325, 0.011365807615220547, -0.018611399456858635, 0.004472370259463787, -0.015565257519483566, -0.018611399456858635, 0.07198051363229752, -0.04250512644648552, -0.012078922241926193, 0.005009407177567482, -0.03201090544462204, 0.005713717546314001, -0.03283846750855446, 0.07011409103870392, 0.03127137944102287, 0.0014438361395150423, -0.05842253938317299, -0.014508792199194431, 0.027450494468212128, -0.00643123360350728, 0.018963554874062538, 0.07451602816581726, 0.02542560175061226, -0.008442919701337814, 0.00668214401230216, 0.03514508530497551, 0.00903277937322855, -0.005564051680266857, 0.0019236475927755237, -0.011603512801229954, -0.016744976863265038, -0.01718517206609249, -0.06521913409233093, -0.07571335881948471, -0.015926217660307884, -0.00877306517213583, -0.032609567046165466, 0.03100726194679737, -0.0030505440663546324, -0.014253480359911919, 0.006950662471354008, 0.0020347964018583298, -0.0424346961081028, 0.02454521507024765, 0.015019417740404606, -0.021727973595261574, -0.020565861836075783, -0.004899358376860619, -0.006721761543303728, -0.006708555854856968, -0.05085120350122452, -0.051696375012397766, 0.0620497390627861, 0.007100328337401152, -0.03489857539534569, 0.024844545871019363, -0.02780264988541603, -0.0018873314838856459, -0.01586459018290043, 0.03127137944102287, 0.020477822050452232, 0.07324827462434769, -0.0023198220878839493, 0.010503027588129044, 0.01383969746530056, 0.04391374811530113, 0.07113534212112427, -0.028383705765008926, -0.050499048084020615, 0.044301118701696396, -0.041026074439287186, -0.01906920224428177, 0.007527316454797983, -0.028348490595817566, -0.001593502121977508, -0.012122941203415394, -0.055922240018844604, 0.007065112702548504, -0.015037025325000286, -0.069691501557827, -0.01700909435749054, 0.012598350644111633, 0.030179696157574654, -0.030197303742170334, -0.07691068947315216, -0.032468706369400024, 0.04486456513404846, -0.008222823031246662, -0.007492100819945335, 0.03308497741818428, -0.01824163645505905, -0.01752852275967598, 0.033454738557338715, -0.0288943313062191, 0.018681831657886505, -0.05190766975283623, 0.00179158931132406, -0.0047893100418150425, -0.07740370184183121, 0.029281701892614365, -0.044089823961257935, 0.04370245337486267, 0.02683422341942787, 0.017845463007688522, 0.009860344231128693, 0.05444318801164627, -0.01690344698727131, 0.020037628710269928, 0.007351238746196032, 0.000015166056982707232, -0.00018543169426266104, -0.018875516951084137, 0.00714874966070056, 0.04578017070889473, -0.039863962680101395, -0.018382498994469643, -0.023136593401432037, 0.008671821095049381, -0.008258038200438023, -0.02891193889081478, 0.008856702595949173, 0.07148749381303787, -0.014482380822300911, -0.006880231201648712, -0.016216745600104332, 0.01547721866518259, -0.05972551554441452, 0.002561928704380989, 0.055781375616788864, 0.008641007356345654, -0.07860103249549866, -0.013276249170303345, 0.009965990670025349, 0.044125039130449295, -0.011691550724208355, -0.017361249774694443, -0.08979956805706024, 0.04077956825494766, -0.0015120662283152342, -0.03641284257173538, -0.029299309477210045, -0.007681384216994047, 0.04676620289683342, -0.0170443095266819, -0.012651174329221249, 0.012809643521904945, 0.009235269390046597, -0.041976895183324814, 0.006008647382259369, -0.033155407756567, 0.03179961070418358, 0.012642369605600834, 0.014279891736805439, 0.006400419864803553, 0.004701271187514067, 0.0006036159466020763, -0.031535495072603226, 0.046343617141246796, -0.02132299542427063, -0.047435298562049866, -0.039018791168928146, -0.012792035937309265, -0.01269519329071045, 0.03155310079455376, 0.0005513429059647024, 0.020953232422471046, -0.040110472589731216, 0.08141826838254929, -0.01430630311369896, 0.061274997889995575, -0.011621120385825634, 0.046519696712493896, 0.0037878688890486956, 0.08268602937459946, -0.08585542440414429, 0.02037217654287815, 0.04049784317612648, 0.02341831848025322, -0.0011511071352288127, -0.05236547067761421, -0.006462046876549721, -0.01690344698727131, -0.001640822971239686, -0.03746930882334709, -0.005836971569806337, 0.009314503520727158, 0.01768699288368225, -0.011920452117919922, -0.0037900698371231556, -0.022150559350848198, -0.0027622170746326447, -0.07846017181873322, 0.01742287538945675, 0.08825007826089859, -0.013276249170303345, 0.019456572830677032, 0.037645384669303894, 0.030373381450772285, -0.04972430691123009, -0.033718857914209366, 0.06331750005483627, 0.0257425419986248, 0.0165777038782835, 0.029193662106990814, -0.01607588306069374, 0.02970428764820099, 0.0014779511839151382, -0.03796232491731644, -0.007382052484899759, -0.06972672045230865, 0.0022758026607334614, 0.0729665458202362, -0.11036542803049088, 0.04067391902208328, 0.06455004215240479, 0.05391495302319527, -0.005511227995157242, 0.029440170153975487, -0.011647531762719154, 0.05310499668121338, 0.015318749472498894, -0.007364444900304079, -0.015653297305107117, 0.008218420669436455, -0.03162353113293648, -0.02151668071746826, 0.010529438965022564, -0.07029017060995102, -0.05648568645119667, 0.010335753671824932, -0.03428230434656143, -0.016357606276869774, 0.025108663365244865, -0.04901999607682228, -0.007831050083041191, -0.021780796349048615, 0.020020021125674248, 0.0004113062168471515, 0.02540799416601658, 0.0674729272723198, 0.011277768760919571, 0.027151161804795265, 0.1022658571600914, 0.0511329285800457, 0.016216745600104332, 0.004155430942773819, -0.03283846750855446, -0.004340312443673611, -0.021904051303863525, 0.03160592541098595, -0.010450203903019428, 0.029316917061805725, 0.007078318390995264, -0.012941702269017696, 0.03725801408290863, -0.04606189578771591, -0.02244989201426506, 0.02359439618885517, 0.010520635172724724, 0.05507706478238106, -0.04165995493531227, 0.05366844683885574, -0.020900407806038857, 0.03722279891371727, -0.006219940260052681, 0.002498100744560361, 0.04077956825494766, -0.04859741032123566, 0.012422272935509682, 0.0009656754555180669, -0.01820642128586769, -0.07557249814271927, -0.029246484860777855, 0.022132951766252518, 0.0031341807916760445, 0.04359680786728859, -0.004448159597814083, 0.04373766854405403, -0.023823296651244164, 0.04137822985649109, -0.028489351272583008, 0.043244652450084686, -0.05208374559879303, 0.034564029425382614, -0.08846137672662735, -0.06881111860275269, -0.03708193823695183, -0.03521551564335823, -0.036764997988939285, 0.02347114123404026, -0.00877306517213583, 0.01922767236828804, 0.008442919701337814, -0.023048555478453636, -0.025214308872818947, 0.02338310144841671, -0.024721292778849602, -0.031165732070803642, 0.002022691071033478, -0.06099327281117439, 0.04345594719052315, -0.03514508530497551, 0.06754335761070251, 0.022960515692830086, 0.026235559955239296, -0.03813840448856354, -0.03393014892935753, -0.03937094658613205, -0.009869148023426533, 0.026094697415828705, 0.007021093275398016, -0.045251935720443726, -0.005995441693812609, 0.004164234735071659, 0.04268120601773262, -0.0029823139775544405, 0.08663016557693481, -0.03634241223335266, 0.03320823237299919, -0.030355773866176605, 0.026446852833032608, -0.08860223740339279, 0.016278371214866638, 0.014095010235905647, -0.04303336143493652, -0.023840904235839844, -0.031324200332164764, -0.06310620158910751, -0.06937456876039505, -0.05127378925681114, -0.03489857539534569, -0.0005540941492654383, 0.08648930490016937, 0.02218577452003956, 0.0014471375616267323, -0.0005761038046330214, -0.002649967558681965, 0.0012094328412786126, 0.028084373101592064, 0.04370245337486267, 0.0038759077433496714, 0.023964159190654755, 0.01929810270667076, -0.017625365406274796, 0.009983598254621029, -0.009851540438830853, 0.0363071970641613, -0.013698835857212543, 0.08169999718666077, 0.04489978402853012, -0.04025133326649666, 0.03810318931937218, 0.03549724072217941, -0.08472853153944016, -0.040990859270095825, 0.04475891962647438, -0.006008647382259369, 0.03106008470058441, 0.015855785459280014, 0.007985117845237255, -0.010054029524326324, -0.009930775500833988, 0.040955644100904465, 0.05447840318083763, -0.009763501584529877, 0.013945343904197216, -0.028295665979385376, -0.006259557791054249, 0.014438360929489136, 0.03106008470058441, -0.05771822854876518, 0.06437396258115768, 0.000986034399829805, 0.013144191354513168, 0.007698992267251015, 0.021076485514640808, 0.0598311610519886, 0.059197280555963516, 0.04489978402853012, 0.035814180970191956, 0.050499048084020615, -0.01768699288368225, -0.04697749763727188, 0.06300055980682373, 0.0013778069987893105, 0.0011709159007295966, -0.013910128735005856, 0.030602283775806427, 0.07324827462434769, 0.05458404868841171, 0.009930775500833988, -0.0039111231453716755, 0.0010542644886299968, -0.05567573010921478, -0.011594708077609539, 0.0028612606693059206, -0.0029581033159047365, -0.002456282265484333, 0.03324344754219055, -0.03634241223335266, 0.006259557791054249, -0.017933500930666924, 0.02669336088001728, 0.03616633266210556, -0.009596227668225765, -0.00965785514563322 ]
714,860
pytorch_optimizer.optimizer.adabelief
AdaBelief
Adapting Step-sizes by the Belief in Observed Gradients. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param rectify: bool. perform the rectified update similar to RAdam. :param n_sma_threshold: number of SMA threshold (recommended is 5). :param degenerated_to_sgd: bool. perform SGD update when variance of gradient is high. :param ams_bound: bool. whether to use the AMSBound variant. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param adanorm: bool. whether to use the AdaNorm variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability.
class AdaBelief(Optimizer, BaseOptimizer): r"""Adapting Step-sizes by the Belief in Observed Gradients. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param rectify: bool. perform the rectified update similar to RAdam. :param n_sma_threshold: number of SMA threshold (recommended is 5). :param degenerated_to_sgd: bool. perform SGD update when variance of gradient is high. :param ams_bound: bool. whether to use the AMSBound variant. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param adanorm: bool. whether to use the AdaNorm variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, rectify: bool = False, n_sma_threshold: int = 5, degenerated_to_sgd: bool = True, ams_bound: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-16, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') self.n_sma_threshold = n_sma_threshold self.degenerated_to_sgd = degenerated_to_sgd defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'rectify': rectify, 'ams_bound': ams_bound, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults) def __str__(self) -> str: return 'AdaBelief' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['exp_avg'] = torch.zeros_like(p) state['exp_avg_var'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=p.dtype, device=p.device) if group['ams_bound']: state['max_exp_avg_var'] = torch.zeros_like(p) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) step_size, n_sma = self.get_rectify_step_size( is_rectify=group['rectify'], step=group['step'], lr=group['lr'], beta2=beta2, n_sma_threshold=self.n_sma_threshold, degenerated_to_sgd=self.degenerated_to_sgd, ) step_size = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=step_size, bias_correction1=bias_correction1, ) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_var'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) if group['ams_bound']: state['max_exp_avg_var'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) s_grad = self.get_adanorm_gradient( grad=grad, adanorm=group['adanorm'], exp_grad_norm=state.get('exp_grad_norm', None), r=group.get('r', None), ) exp_avg, exp_avg_var = state['exp_avg'], state['exp_avg_var'] exp_avg.mul_(beta1).add_(s_grad, alpha=1.0 - beta1) grad_residual = grad - exp_avg exp_avg_var.mul_(beta2).addcmul_(grad_residual, grad_residual, value=1.0 - beta2).add_(group['eps']) de_nom = self.apply_ams_bound( ams_bound=group['ams_bound'], exp_avg_sq=exp_avg_var, max_exp_avg_sq=state.get('max_exp_avg_var', None), eps=group['eps'], ) if not group['rectify']: de_nom.div_(bias_correction2_sq) p.addcdiv_(exp_avg, de_nom, value=-step_size) continue if n_sma >= self.n_sma_threshold: p.addcdiv_(exp_avg, de_nom, value=-step_size) elif step_size > 0: p.add_(exp_avg, alpha=-step_size) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, rectify: bool = False, n_sma_threshold: int = 5, degenerated_to_sgd: bool = True, ams_bound: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-16)
[ -0.004296859260648489, -0.039749179035425186, -0.009616903029382229, 0.009156987071037292, 0.0072501422837376595, -0.014479614794254303, -0.046301692724227905, -0.07019667327404022, -0.05721566453576088, 0.023853641003370285, -0.053701698780059814, 0.015316765755414963, 0.03801286593079567, 0.06722013652324677, -0.03392012417316437, 0.05142795294523239, 0.008283662609755993, 0.07218103110790253, 0.019698889926075935, -0.00599441584199667, -0.03759945556521416, -0.06680673360824585, -0.056802257895469666, 0.014396932907402515, -0.022510064765810966, -0.009730590507388115, 0.034416213631629944, 0.0005270951660349965, -0.05324694886803627, 0.017921235412359238, -0.0002349643036723137, -0.09789501130580902, 0.01832430809736252, -0.021269841119647026, 0.03232850506901741, -0.06854304671287537, 0.018603358417749405, -0.0024701126385480165, -0.08301232010126114, -0.02536257915198803, 0.023440232500433922, -0.03914973512291908, 0.05233744904398918, -0.01425223983824253, -0.01891341432929039, 0.008469696156680584, -0.012815647758543491, 0.027636323124170303, -0.03032347559928894, -0.008883103728294373, 0.009544556960463524, -0.08640226721763611, 0.0795396938920021, 0.05320560932159424, 0.00913114845752716, 0.065029077231884, 0.03284526243805885, -0.030240794643759727, 0.03447822481393814, -0.07292516529560089, 0.05448717251420021, -0.06763354688882828, 0.03348604589700699, -0.048492755740880966, -0.007110617123544216, 0.0021212997380644083, -0.0712301954627037, -0.003676747204735875, -0.008697070181369781, 0.017993582412600517, 0.0023603010922670364, -0.03232850506901741, 0.023853641003370285, 0.012784642167389393, -0.03976984694600105, -0.01390084344893694, -0.01346676517277956, -0.01673268899321556, 0.0022866628132760525, -0.03691733255982399, 0.032411184161901474, 0.04332515597343445, -0.02211732789874077, -0.02211732789874077, 0.019078778102993965, -0.0491955503821373, -0.011492742225527763, 0.012660619802772999, 0.029000569134950638, -0.06626930087804794, 0.04580560326576233, -0.009880450554192066, 0.047500576823949814, 0.06333409994840622, 0.03042682819068432, 0.03700001537799835, -0.010944976471364498, -0.047211192548274994, 0.022096656262874603, -0.028731854632496834, -0.017807548865675926, 0.010335199534893036, 0.0436558835208416, 0.054735217243433, -0.0030307972338050604, -0.052750859409570694, -0.039955880492925644, -0.023750288411974907, 0.03731007128953934, -0.055396668612957, -0.03863297775387764, -0.00165363191626966, -0.03042682819068432, 0.010014808736741543, -0.048203371465206146, 0.011430731043219566, 0.018158946186304092, 0.011658105067908764, -0.010009640827775002, 0.0416095145046711, 0.06246594712138176, -0.0003782037238124758, -0.06176315248012543, 0.0021846028976142406, 0.044441357254981995, -0.002622556872665882, 0.02507319487631321, 0.013880172744393349, 0.008753914386034012, -0.062259241938591, -0.015120397321879864, 0.0015050634974613786, -0.03848828375339508, 0.014159223064780235, 0.01432458683848381, -0.018500007688999176, 0.015585481189191341, 0.031543027609586716, -0.036131858825683594, -0.0003552724956534803, 0.025651965290308, 0.027016211301088333, 0.020319001749157906, -0.04045196995139122, 0.010273188352584839, -0.015606150962412357, 0.023336879909038544, -0.013973189517855644, -0.006630030460655689, 0.010800283402204514, 0.007462013978511095, -0.003413199679926038, -0.022551406174898148, 0.009177656844258308, 0.03815755620598793, -0.014531290158629417, -0.031873755156993866, 0.017869560047984123, -0.014365927316248417, -0.0077772377990186214, -0.028256434947252274, -0.05146929249167442, -0.0004541028174571693, 0.000003885792921209941, -0.005581007804721594, 0.0045371525920927525, -0.006020253989845514, 0.04456537961959839, -0.012939670123159885, 0.023192187771201134, 0.014448609203100204, -0.06941120326519012, -0.035739120095968246, 0.02842179872095585, -0.061597790569067, 0.09946595877408981, 0.023274868726730347, 0.011895814910531044, 0.01588520221412182, -0.02220000885426998, 0.022654756903648376, 0.0110793337225914, -0.02660280466079712, -0.046921804547309875, -0.028711184859275818, 0.015585481189191341, -0.0067023769952356815, 0.021662577986717224, -0.02087710238993168, 0.02277877926826477, -0.012577937915921211, -0.03747543320059776, 0.024473752826452255, -0.03226649388670921, -0.04956761747598648, 0.02048436552286148, -0.000801623915322125, -0.0033201829064637423, 0.08747713267803192, 0.01535810623317957, -0.011389389634132385, -0.010149165987968445, 0.010686595924198627, -0.0002661313919816166, 0.010159500874578953, -0.0025282481219619513, -0.016794700175523758, 0.007374165114015341, -0.011234361678361893, 0.004438968375325203, -0.07991176098585129, 0.0067023769952356815, 0.04791398346424103, 0.053701698780059814, 0.06358214467763901, -0.06114304065704346, 0.04398661106824875, 0.03776481747627258, 0.05146929249167442, 0.0221586674451828, -0.019688555970788002, -0.048740800470113754, 0.004754191730171442, 0.011503077112138271, 0.07102349400520325, -0.013167044147849083, 0.03280392289161682, 0.0011588342022150755, 0.010872630402445793, 0.016422631219029427, -0.010903635993599892, -0.028483809903264046, -0.005069415550678968, -0.001470182090997696, 0.08222685009241104, 0.06589723378419876, -0.04592962563037872, 0.001972731202840805, -0.03633856028318405, -0.007668718229979277, -0.0083250030875206, -0.008991623297333717, -0.02951733022928238, 0.024659786373376846, -0.005410477053374052, 0.00894511491060257, 0.07160226255655289, 0.020525706931948662, -0.04733521491289139, -0.01946118101477623, -0.01752849854528904, -0.013694139197468758, -0.0021729758009314537, 0.05564471334218979, -0.06957656145095825, -0.011885479092597961, 0.04671510308980942, 0.040327947586774826, 0.01719777286052704, -0.058042481541633606, 0.046963147819042206, -0.03373409062623978, -0.03677263855934143, 0.0568435974419117, -0.014820676296949387, 0.06064695119857788, 0.07061008363962173, -0.03563576936721802, 0.016825705766677856, 0.01516173779964447, 0.05518996715545654, 0.07519891113042831, -0.059820134192705154, 0.00332535058259964, -0.009792601689696312, 0.05572739616036415, 0.00022915075533092022, -0.013001681305468082, -0.02201397530734539, 0.008888271637260914, 0.052130747586488724, -0.022510064765810966, -0.049402255564928055, 0.04198158159852028, -0.038943033665418625, 0.03104694001376629, -0.02612738497555256, 0.0020657479763031006, 0.04869946092367172, 0.017187437042593956, 0.03239051625132561, 0.008433522656559944, 0.09872182458639145, -0.0024533180985599756, 0.06775756925344467, 0.019957270473241806, 0.032969288527965546, 0.019089113920927048, -0.032638560980558395, -0.022654756903648376, 0.0644916445016861, -0.016236597672104836, 0.05651286989450455, 0.01742514595389366, -0.06540114432573318, -0.04078269749879837, 0.014262575656175613, 0.028401128947734833, 0.05820784345269203, -0.03338269516825676, -0.00428394041955471, 0.010578076355159283, 0.008082126267254353, 0.019481850787997246, 0.0074930195696651936, -0.08499667793512344, -0.0014159223064780235, -0.042581021785736084, 0.03065420128405094, 0.05531398952007294, -0.05729834735393524, 0.028669843450188637, 0.016308944672346115, -0.032824594527482986, -0.009999305941164494, -0.051882702857255936, 0.07726595550775528, 0.00007234639633679762, -0.008257824927568436, -0.03214247152209282, -0.06755086779594421, -0.03664861619472504, 0.0436558835208416, 0.0037465097848325968, -0.05667823553085327, -0.022902801632881165, 0.01237123366445303, 0.029083251953125, 0.011730451136827469, -0.050022367388010025, 0.054321810603141785, 0.07614975422620773, -0.020525706931948662, 0.0726771205663681, 0.03017878346145153, -0.04861677810549736, 0.05527264624834061, 0.009901121258735657, 0.013187714852392673, 0.025941351428627968, -0.005694694817066193, -0.032783251255750656, -0.019771236926317215, 0.08028382807970047, 0.06308605521917343, 0.012019837275147438, -0.025279898196458817, -0.015523470006883144, 0.027760345488786697, -0.05667823553085327, -0.02110447734594345, 0.002143261954188347, -0.0733385756611824, 0.05696761980652809, 0.04654973745346069, 0.003449372947216034, -0.03234917297959328, -0.0401005744934082, 0.06271398812532425, -0.042622361332178116, 0.03392012417316437, -0.06378885358572006, 0.016815369948744774, -0.015719838440418243, -0.026809507980942726, -0.011906149797141552, -0.025486601516604424, 0.001470182090997696, 0.06866706907749176, 0.06709611415863037, 0.023006154224276543, 0.004844625014811754, -0.01200950238853693, 0.04270504415035248, 0.051551975309848785, -0.02211732789874077, 0.03148101642727852, -0.024081015959382057, 0.030819565057754517, -0.05593410134315491, 0.06205253675580025, 0.023171517997980118, -0.009374026209115982, -0.007849584333598614, -0.07970505952835083, 0.01640196144580841, 0.027160905301570892, 0.05134527012705803, -0.05700895935297012, -0.029724033549427986, -0.011875144205987453, 0.0047231861390173435, 0.022510064765810966, 0.0017027241410687566, -0.02602403238415718, -0.057711753994226456, 0.021641908213496208, 0.05713298171758652, -0.02110447734594345, 0.06399555504322052, 0.0032168307807296515, 0.015802519395947456, -0.06188717484474182, 0.02879386581480503, -0.009591065347194672, -0.01255726721137762, -0.02850447967648506, -0.013652798719704151, -0.0204120185226202, -0.03042682819068432, 0.039997223764657974, 0.03501565754413605, 0.02459777519106865, 0.031687721610069275, 0.002339630853384733, -0.007611874490976334, -0.09566260874271393, 0.01217486523091793, -0.07565365731716156, -0.04993968456983566, 0.0035811467096209526, -0.02310950681567192, -0.036421243101358414, -0.023192187771201134, -0.02536257915198803, 0.00789092481136322, -0.03743409365415573, 0.023440232500433922, 0.04456537961959839, -0.05477655678987503, 0.01574050821363926, -0.04886482283473015, 0.03470560163259506, 0.01614358089864254, -0.004084987565875053, -0.053701698780059814, 0.04210560396313667, -0.01255726721137762, -0.04803800955414772, -0.016391625627875328, 0.02831844612956047, -0.00958589743822813, 0.050642479211091995, 0.025383250787854195, -0.01428324542939663, -0.009270673617720604, 0.010009640827775002, -0.02780168689787388, 0.012825982645154, 0.016308944672346115, 0.01155475340783596, -0.009156987071037292, -0.0532882884144783, 0.020711740478873253, -0.0015515718841925263, 0.04473074525594711, 0.07110617309808731, -0.0045991637744009495, -0.007131287828087807, 0.021745260804891586, -0.003268506843596697, -0.028711184859275818, 0.04580560326576233, -0.04177487641572952, -0.008464528247714043, -0.01390084344893694, 0.01244358066469431, -0.0036664120852947235, -0.000551318284124136, 0.001904260483570397, 0.053660355508327484, -0.0697832703590393, -0.0073069860227406025, 0.032452527433633804, 0.018892744556069374, 0.04270504415035248, -0.0034855459816753864, 0.003180657746270299, 0.004356286488473415, 0.03439554572105408, -0.059282705187797546, -0.065029077231884, 0.05630616843700409, 0.046301692724227905, -0.04315979406237602, -0.04741789400577545, 0.04580560326576233, -0.002105796942487359, 0.08681567758321762, -0.05039443448185921, 0.014221234247088432, -0.02511453442275524, -0.06271398812532425, -0.014200564473867416, 0.027388278394937515, -0.03305196762084961, -0.0796637162566185, 0.0027853362262248993, -0.03443688526749611, 0.015843860805034637, -0.01602989435195923, -0.025858668610453606, 0.03170839324593544, 0.008779752068221569, 0.013766486197710037, -0.021476544439792633, 0.01895475573837757, 0.041196104139089584, 0.02372961863875389, -0.02579665742814541, 0.022468723356723785, 0.013022351078689098, -0.028876546770334244, -0.03516034781932831, 0.0030256297904998064, 0.044772084802389145, 0.007958103902637959, 0.0036870825570076704, 0.03757878392934799, 0.01705307886004448, 0.0059272367507219315, -0.00374392606317997, 0.06399555504322052, 0.0817720964550972, -0.0017001403030008078, 0.014055871404707432, -0.0017479406669735909, -0.023750288411974907, -0.0879732221364975, -0.02211732789874077, 0.000477680005133152, 0.0026587301399558783, -0.017187437042593956, -0.04144414886832237, -0.027305597439408302, 0.04977432265877724, 0.002477864036336541, 0.017156431451439857, -0.028959229588508606, -0.034312862902879715, 0.001766027184203267, 0.032927945256233215, -0.006490505300462246, 0.042994432151317596, 0.049691639840602875, -0.02124916948378086, -0.019998611882328987, 0.004849792458117008, 0.0008487782906740904, -0.0183346439152956, -0.04803800955414772, -0.04865812137722969, 0.014903358183801174, -0.0511799082159996, 0.029248615726828575, 0.017693862318992615, 0.012526261620223522, 0.0003672225575428456, -0.042911749333143234, 0.002868017880246043, -0.021621238440275192, -0.025011183694005013, -0.028049731627106667, -0.023956991732120514, -0.05936538800597191, 0.010820954106748104, -0.002878352999687195, -0.040948059409856796, -0.007875422015786171, -0.021910622715950012, 0.05175868049263954, -0.04869946092367172, -0.037227388471364975, -0.023956991732120514, 0.02507319487631321, 0.05502460151910782, -0.04733521491289139, 0.06097767874598503, -0.01993660070002079, 0.01446927897632122, -0.030075430870056152, 0.03214247152209282, -0.008231986314058304, -0.052130747586488724, -0.04460672289133072, 0.04332515597343445, -0.004586244933307171, 0.02980671636760235, 0.019409505650401115, 0.02974470518529415, -0.025155875831842422, 0.0012783349957317114, 0.04993968456983566, 0.008769417181611061, 0.0235435850918293, -0.005906566511839628, 0.01895475573837757, 0.016195258125662804, 0.01943017542362213, -0.039046384394168854, -0.024577105417847633, 0.006511175539344549, 0.020763415843248367, -0.02288213185966015, -0.0560581237077713, -0.027636323124170303, -0.006914248690009117, 0.01386983785778284, 0.09508383274078369, 0.0273676086217165, 0.003661244409158826, -0.01640196144580841, -0.018231291323900223, 0.029021240770816803, 0.005839387886226177, -0.0456402413547039, 0.0352843701839447, -0.08416986465454102, -0.010769277811050415, -0.016453638672828674, 0.014190228655934334, 0.029724033549427986, 0.008423187769949436, -0.050601135939359665, 0.033362023532390594, 0.04502012953162193, 0.05572739616036415, 0.0332380011677742, -0.02434973046183586, -0.04609499126672745, 0.011327378451824188, 0.011472071520984173, -0.016091905534267426, 0.0030178783927112818, 0.02139386348426342, 0.0025166210252791643, -0.02058771811425686, 0.0017763624200597405, 0.042911749333143234, 0.05076650157570839, -0.016412297263741493, 0.019853917881846428, -0.0776793584227562, -0.02153855562210083, 0.013539111241698265, 0.016257269307971, 0.02641676925122738, 0.054032422602176666, -0.01368380431085825, -0.013807826675474644, -0.032597217708826065, -0.015895536169409752, 0.0032788419630378485, -0.017249448224902153, -0.015296095050871372, 0.0072449748404324055, -0.022386042401194572, 0.04898884519934654, 0.021311180666089058, 0.03255587816238403, -0.09797769039869308, -0.03857096657156944, -0.053701698780059814, 0.01771453209221363, 0.016246933490037918, 0.006226957775652409, 0.01556481048464775, -0.047789961099624634, 0.005247697699815035, -0.011833803728222847, 0.02544526197016239, 0.04745923727750778, -0.011565088294446468, -0.019926264882087708, 0.03131565451622009, -0.029868727549910545, -0.011895814910531044, 0.026003362610936165, 0.008619556203484535, -0.017983246594667435, -0.042622361332178116, -0.02966202236711979, 0.014159223064780235, -0.01155475340783596, 0.03495364636182785, -0.06709611415863037, -0.028711184859275818, -0.0221586674451828, 0.018975427374243736, -0.04349052160978317, 0.008102796040475368, -0.009906289167702198, -0.045102812349796295, 0.0012486212654039264, 0.02135252207517624, 0.05295756086707115, -0.007968438789248466, 0.03542906418442726, -0.012918999418616295, -0.011802798137068748, 0.0022375707048922777, 0.03224582225084305, -0.009766764007508755, -0.008045952767133713, 0.03228716179728508, -0.0126296142116189, 0.013911178335547447, -0.023853641003370285, -0.06337544322013855, 0.06564918905496597, -0.04307711124420166, 0.042250294238328934, 0.04485476762056351, -0.020163973793387413, -0.054363150149583817, -0.04187822714447975, -0.021269841119647026, -0.01518240850418806, 0.043201133608818054, -0.039749179035425186, 0.04177487641572952, 0.010578076355159283, -0.0072398073971271515, 0.025279898196458817, -0.03108827956020832, 0.008082126267254353, 0.05576873570680618, 0.0021949380170553923, -0.0020450775045901537, 0.02503185346722603, 0.034932974725961685, 0.010903635993599892, -0.03143967688083649, -0.02094944939017296, -0.01705307886004448, 0.049691639840602875, -0.03315532207489014, -0.022179339081048965, 0.010366205126047134, -0.054321810603141785, 0.04406929016113281, 0.011637434363365173, 0.026292746886610985, 0.061721812933683395, 0.05696761980652809, -0.061101701110601425, 0.05225476995110512, -0.054032422602176666, -0.055520690977573395, -0.09822573512792587, 0.018975427374243736, -0.04613633081316948, 0.05721566453576088, 0.017073750495910645, -0.012825982645154, 0.01384916715323925, -0.0007157125510275364, 0.003780099330469966 ]
714,862
pytorch_optimizer.optimizer.adabelief
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, rectify: bool = False, n_sma_threshold: int = 5, degenerated_to_sgd: bool = True, ams_bound: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-16, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') self.n_sma_threshold = n_sma_threshold self.degenerated_to_sgd = degenerated_to_sgd defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'rectify': rectify, 'ams_bound': ams_bound, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, rectify: bool = False, n_sma_threshold: int = 5, degenerated_to_sgd: bool = True, ams_bound: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-16)
[ 0.00729964766651392, -0.03623736649751663, -0.02510054223239422, 0.0075700050219893456, -0.036427091807127, -0.030261047184467316, -0.09729068726301193, -0.026314780116081238, -0.04219471290707588, 0.02358274720609188, -0.04606509208679199, 0.06462014466524124, 0.02589738555252552, 0.06283673644065857, -0.06655532866716385, 0.05930785834789276, 0.023165354505181313, 0.025593826547265053, -0.01872580125927925, -0.00789253693073988, 0.007181069813668728, -0.000009023026905197185, -0.050618480890989304, 0.09888437390327454, 0.015936853364109993, 0.04253621771931648, -0.006934428121894598, 0.0011312318965792656, -0.03879864886403084, 0.016809584572911263, 0.009566854685544968, -0.02513848803937435, -0.0010002035414800048, 0.046444542706012726, 0.0305266622453928, -0.02612505480647087, -0.0184981320053339, 0.005928888451308012, -0.12241020798683167, 0.03297410532832146, 0.05308489874005318, -0.03287924453616142, 0.09144717454910278, -0.03318280354142189, -0.019560588523745537, -0.015538431704044342, 0.027946408838033676, 0.03927295655012131, -0.009500451385974884, -0.02318432554602623, 0.03342944383621216, -0.02815510705113411, 0.02005387283861637, 0.00001505381897004554, -0.0602564811706543, 0.06924942135810852, 0.036730650812387466, 0.07839413732290268, 0.05289517343044281, -0.005852998699992895, 0.01954161748290062, -0.029274480417370796, 0.024834929034113884, -0.0038608922623097897, -0.0071858130395412445, -0.0005442719557322562, -0.09152306616306305, -0.02174242027103901, 0.008475938811898232, 0.037831053137779236, 0.10821881890296936, 0.0002810293226502836, -0.011715483851730824, 0.041359927505254745, -0.007157354149967432, 0.01841275580227375, -0.08309930562973022, -0.0497078038752079, -0.043674565851688385, -0.013925774022936821, 0.06765573471784592, 0.055589258670806885, -0.00851388368755579, -0.049404244869947433, -0.004961294122040272, -0.05612048879265785, -0.025005681440234184, -0.04431962966918945, 0.014561350457370281, -0.018090225756168365, -0.04010774567723274, -0.004671964328736067, 0.020964549854397774, 0.0022363767493516207, 0.052401889115571976, 0.005758136510848999, 0.007498858496546745, -0.060787707567214966, 0.014570836909115314, -0.013470434583723545, -0.03690140321850777, 0.0007944710669107735, -0.04242238402366638, 0.018232518807053566, 0.02434164471924305, -0.022577207535505295, -0.04295361042022705, -0.030659468844532967, 0.03255671262741089, -0.0484556220471859, -0.02965392917394638, 0.05221216380596161, -0.0356871671974659, 0.02699778787791729, -0.07034981995820999, 0.005222165025770664, 0.01798587664961815, 0.014210360124707222, -0.008186609484255314, 0.014371626079082489, 0.040904588997364044, 0.02289973944425583, -0.035288743674755096, 0.042004991322755814, 0.046444542706012726, -0.010994531214237213, 0.0120000708848238, 0.016875987872481346, 0.01384039781987667, -0.03411245346069336, 0.029521122574806213, -0.018716314807534218, -0.01976928673684597, -0.018393784761428833, 0.018118683248758316, -0.034947242587804794, 0.026087108999490738, 0.051073819398880005, -0.028022298589348793, 0.004579473752528429, 0.06511342525482178, 0.013375572860240936, 0.034947242587804794, -0.0305266622453928, -0.012502840720117092, -0.0014229333028197289, -0.009732863865792751, -0.0152348717674613, -0.012958179228007793, 0.0372239351272583, 0.02157166786491871, -0.0035241313744336367, -0.01255027111619711, 0.0377361886203289, 0.0046197897754609585, -0.056158434599637985, 0.027585932984948158, -0.014732102863490582, -0.013043554499745369, 0.01762540079653263, -0.04272594302892685, 0.005682246759533882, 0.02699778787791729, -0.0491386279463768, -0.0036782824900001287, 0.015453055500984192, -0.031949594616889954, 0.013593755662441254, -0.017558995634317398, -0.009666459634900093, -0.004463267512619495, -0.08203684538602829, -0.06389918923377991, 0.016515512019395828, -0.031019944697618484, 0.057790063321590424, 0.029464205726981163, 0.008831672370433807, -0.0250246524810791, -0.01858350820839405, 0.06446836143732071, -0.004086189903318882, -0.014940799213945866, -0.07649689167737961, 0.006668813992291689, 0.004154965281486511, -0.023620693013072014, 0.03555436059832573, -0.03086816519498825, 0.026087108999490738, 0.06109126657247543, -0.008409535512328148, 0.019266515970230103, 0.011411924846470356, -0.012161335907876492, 0.006094897631555796, 0.028287913650274277, -0.025176431983709335, 0.00794945377856493, 0.05221216380596161, 0.07505498826503754, 0.034302178770303726, 0.011781887151300907, -0.02589738555252552, 0.026808062568306923, -0.007252216339111328, -0.019845176488161087, 0.0013494150480255485, -0.0155763765797019, -0.014257791452109814, -0.017160575836896896, -0.03826741874217987, 0.051073819398880005, 0.03435909375548363, 0.012588215991854668, -0.043902233242988586, 0.006270392797887325, 0.03314485773444176, 0.025688689202070236, 0.00817712303251028, 0.07991193234920502, -0.03578202798962593, -0.025309240445494652, -0.01329968310892582, 0.04033541679382324, 0.015718668699264526, 0.02751004323363304, -0.048873014748096466, -0.05771417170763016, 0.005881457589566708, -0.006886996794492006, -0.045989204198122025, -0.02629580721259117, -0.018223032355308533, 0.008940763771533966, 0.005155761726200581, -0.016838043928146362, 0.028079217299818993, -0.08309930562973022, -0.04435757175087929, 0.037091128528118134, 0.04181526601314545, 0.00032964619458653033, 0.010795320384204388, 0.01902936026453972, -0.01309098582714796, 0.026371696963906288, 0.01280639972537756, -0.0495939664542675, -0.03525080159306526, -0.03244287893176079, -0.02358274720609188, -0.006422172300517559, 0.05376790463924408, -0.04109431430697441, -0.006374740973114967, 0.04249827191233635, 0.014665698632597923, 0.02705470472574234, -0.010377926751971245, 0.0019873634446412325, -0.006132842507213354, -0.029293453320860863, 0.060673873871564865, 0.0013162132818251848, 0.033277664333581924, -0.00516050448641181, 0.002698830096051097, 0.022121869027614594, -0.003431640798225999, 0.09015705436468124, 0.04117020219564438, -0.03549744188785553, -0.0026324265636503696, -0.017321841791272163, 0.010169229470193386, 0.0013328141067177057, -0.04352278634905815, -0.006232447922229767, 0.0484556220471859, 0.04348484054207802, -0.027718739584088326, 0.03449190407991409, 0.026087108999490738, 0.007622179109603167, 0.005663274321705103, -0.021287081763148308, -0.013128930702805519, 0.003490929724648595, 0.009476735256612301, -0.016838043928146362, 0.011516273021697998, 0.07065337896347046, 0.011829318478703499, 0.10298242419958115, -0.015652265399694443, 0.04906274005770683, -0.018223032355308533, 0.048948902636766434, -0.018317895010113716, 0.05775211751461029, -0.040904588997364044, 0.06147071719169617, 0.007650637999176979, -0.061888109892606735, -0.03458676487207413, 0.037261880934238434, 0.0119716115295887, 0.03227212652564049, 0.03196856752038002, 0.015652265399694443, 0.04325717315077782, 0.07991193234920502, 0.0021071271039545536, 0.046861935406923294, -0.05744855850934982, 0.001866414095275104, -0.05854896083474159, 0.0311527531594038, 0.054830361157655716, -0.021457834169268608, 0.013641186989843845, 0.019977983087301254, -0.03908323496580124, -0.037034209817647934, -0.05904224514961243, 0.017407216131687164, 0.013897314667701721, -0.029122700914740562, -0.015111551620066166, -0.03747057542204857, -0.020736880600452423, 0.023032546043395996, -0.030678441748023033, -0.04655837640166283, 0.009751835837960243, -0.002257720800116658, 0.039690352976322174, 0.0025494222063571215, -0.03718598932027817, 0.09281319379806519, -0.008793727494776249, -0.010624567978084087, 0.06898380815982819, -0.009211121127009392, -0.022994602099061012, 0.024379590526223183, -0.02982468158006668, 0.02711162157356739, -0.00006095638673286885, -0.011345521546900272, 0.021761393174529076, -0.0028909260872751474, 0.11679436266422272, 0.04151170700788498, -0.007759729400277138, -0.007574748247861862, 0.017274409532546997, 0.028895031660795212, -0.05312284082174301, -0.01906730607151985, 0.001275896793231368, -0.037906941026449203, 0.04606509208679199, 0.012967664748430252, -0.01280639972537756, -0.024208838120102882, -0.03485237807035446, 0.03845714405179024, -0.01939932443201542, 0.010529706254601479, -0.07922892272472382, -0.028932975605130196, -0.00952890980988741, 0.019902093335986137, -0.0034861864987760782, -0.040031854063272476, 0.001488151028752327, 0.038589950650930405, -0.0010660141706466675, 0.006241933908313513, 0.011317062191665173, 0.05065642297267914, 0.028819141909480095, 0.02532821148633957, -0.034548819065093994, 0.010994531214237213, 0.012521812692284584, 0.060560040175914764, -0.019238058477640152, 0.006346282549202442, -0.015073606744408607, 0.011687025427818298, -0.015481513924896717, -0.07543443888425827, 0.021894199773669243, 0.03304999694228172, 0.055589258670806885, -0.057372670620679855, -0.03684448450803757, -0.018801691010594368, -0.05046670138835907, -0.01702776737511158, 0.0155763765797019, -0.023563774302601814, -0.025574853643774986, 0.031816788017749786, 0.021457834169268608, 0.009059341624379158, 0.06689683347940445, -0.007920995354652405, 0.004698051139712334, -0.04204293340444565, -0.009291754104197025, -0.047734666615724564, -0.03191164880990982, 0.0004064253007527441, 0.011762915179133415, 0.011696511879563332, -0.017558995634317398, 0.030488716438412666, 0.022292621433734894, 0.05866279453039169, 0.031304530799388885, 0.06416480243206024, 0.038191527128219604, -0.039576515555381775, 0.005117816850543022, -0.028534555807709694, -0.06644149869680405, -0.028743252158164978, 0.0036450806073844433, -0.049821637570858, -0.028629416599869728, 0.017796151340007782, 0.020129762589931488, -0.02948317676782608, -0.0031162239611148834, 0.010596109554171562, -0.02595430240035057, 0.02417089231312275, -0.06534109264612198, -0.0011466470314189792, -0.03432115167379379, -0.045989204198122025, -0.049404244869947433, -0.001458506565541029, -0.014608781784772873, -0.03988007456064224, -0.029065784066915512, 0.02792743779718876, 0.024948762729763985, 0.048303842544555664, 0.005312283989042044, -0.04120814800262451, -0.03382786735892296, 0.006664070766419172, -0.028060244396328926, 0.024872872978448868, -0.026371696963906288, 0.043446894735097885, -0.01705622673034668, -0.03508004918694496, 0.010833265259861946, -0.018080739304423332, 0.05562720447778702, 0.06936325132846832, -0.02855352684855461, -0.012882289476692677, -0.006607153452932835, 0.010529706254601479, -0.00672098807990551, 0.0375654399394989, -0.026447586715221405, -0.020907633006572723, 0.016344759613275528, -0.028003327548503876, -0.023962195962667465, -0.033846840262413025, 0.01009333971887827, 0.01728389598429203, -0.042574163526296616, 0.0007618622039444745, 0.08757679909467697, 0.01948469877243042, -0.011241172440350056, -0.047431107610464096, -0.0045818448998034, -0.0023407251574099064, 0.040487196296453476, -0.0727403461933136, -0.024474451318383217, 0.02993851527571678, 0.06716244667768478, -0.03411245346069336, -0.00010279210982844234, 0.026808062568306923, 0.0120000708848238, 0.04105636849999428, -0.011800860054790974, 0.009315470233559608, -0.0484556220471859, -0.06325412541627884, -0.031000973656773567, 0.030944054946303368, -0.024948762729763985, -0.09880848973989487, 0.00999847799539566, -0.03377094864845276, 0.013944745995104313, -0.03120967000722885, -0.004712280817329884, -0.02527129463851452, 0.02993851527571678, -0.01601274311542511, -0.022349538281559944, -0.04397812485694885, 0.04230855032801628, -0.027244428172707558, -0.03435909375548363, 0.048759181052446365, 0.04318128153681755, 0.035421550273895264, -0.025650743395090103, 0.005943118128925562, 0.04371251165866852, 0.007840362377464771, -0.02733929082751274, 0.09584878385066986, 0.025574853643774986, 0.01999695599079132, -0.05202243849635124, -0.03752749413251877, 0.046786047518253326, 0.020717907696962357, 0.060446206480264664, 0.01384039781987667, -0.025119515135884285, -0.04375045374035835, -0.03555436059832573, 0.010747889056801796, 0.024095002561807632, 0.012332088313996792, -0.03976624086499214, -0.025309240445494652, 0.019133709371089935, -0.023658636957406998, 0.056272268295288086, -0.03942473605275154, -0.03295513615012169, 0.0490247942507267, -0.011829318478703499, -0.021059412509202957, 0.03669270500540733, 0.04371251165866852, -0.025309240445494652, -0.0014004034455865622, -0.01685701683163643, 0.05278133973479271, 0.016401678323745728, -0.022178785875439644, -0.00524588068947196, 0.0003376502136234194, -0.0007417039596475661, -0.036977291107177734, 0.028458666056394577, 0.03221520781517029, -0.015140010043978691, -0.06822490692138672, 0.02225467562675476, -0.005781852174550295, -0.0023608834017068148, -0.004280657507479191, 0.002606339519843459, -0.05114970728754997, 0.029331397265195847, -0.003775516292080283, 0.0020181937143206596, -0.06742806732654572, -0.021116329357028008, 0.021723447367548943, -0.0305266622453928, -0.08006370812654495, -0.08021549135446548, 0.013897314667701721, 0.007256959564983845, -0.06928736716508865, 0.017416702583432198, -0.014058580622076988, 0.031361449509859085, -0.008243526332080364, 0.045344140380620956, -0.025347184389829636, -0.03358122333884239, -0.04921451956033707, 0.03162706270813942, -0.0036735394969582558, -0.03168398141860962, 0.03411245346069336, 0.058700740337371826, -0.07038776576519012, -0.010226147249341011, 0.01889655366539955, 0.03029899299144745, 0.010482274927198887, -0.010302037000656128, -0.005468806717544794, 0.03879864886403084, 0.02047126740217209, -0.04511646926403046, -0.000009560332728142384, -0.011952639557421207, 0.018592994660139084, -0.0361994206905365, 0.002381041646003723, -0.0494801327586174, -0.04617892578244209, 0.03029899299144745, 0.11148207634687424, 0.0007855777512304485, 0.02781360223889351, -0.02259618043899536, -0.027547987177968025, 0.04082869738340378, -0.06811106950044632, -0.023089462891221046, 0.013868856243789196, -0.11846394091844559, 0.003924924414604902, -0.04716549441218376, 0.03432115167379379, -0.024929791688919067, 0.017350299283862114, -0.08719734847545624, 0.014732102863490582, 0.0360286720097065, 0.029008865356445312, 0.04758288711309433, 0.02272898703813553, -0.0022197759244590998, 0.03310691565275192, 0.03786899894475937, -0.0024759038351476192, 0.0047217668034136295, -0.01734081283211708, -0.019977983087301254, -0.0354594960808754, -0.006635612342506647, 0.05225010961294174, 0.05372995883226395, -0.03663579002022743, 0.0615086629986763, -0.07038776576519012, -0.016506025567650795, 0.0034150397405028343, 0.014409570954740047, 0.010823778808116913, 0.02174242027103901, 0.03652195259928703, -0.02589738555252552, -0.03838125243782997, -0.014343167655169964, 0.03885556384921074, 0.006014264654368162, 0.002328867558389902, -0.0069723729975521564, -0.03248082473874092, 0.005672760773450136, -0.012768454849720001, -0.010558164678514004, -0.05179477110505104, -0.006441144738346338, -0.04276388883590698, 0.023962195962667465, 0.005682246759533882, 0.015718668699264526, -0.04447140917181969, -0.06776956468820572, 0.018052279949188232, -0.014447515830397606, 0.04485085606575012, 0.05612048879265785, -0.00557789858430624, -0.06283673644065857, 0.020774826407432556, -0.0024616746231913567, -0.06769368052482605, 0.020604074001312256, -0.01595582440495491, -0.023962195962667465, -0.0491386279463768, -0.013698103837668896, 0.01829892210662365, -0.000046060053136898205, 0.041132256388664246, -0.02866736240684986, -0.06537903845310211, -0.05953552946448326, 0.021059412509202957, -0.010292550548911095, -0.001677875523455441, -0.016819071024656296, -0.050959981977939606, 0.058928411453962326, -0.03213931992650032, 0.02561279945075512, 0.009064084850251675, 0.015908394008874893, 0.026846008375287056, -0.04492674767971039, 0.033163830637931824, 0.05851101502776146, 0.04094253480434418, -0.05190860480070114, -0.007868820801377296, 0.01584199070930481, 0.016306815668940544, 0.0035075305495411158, -0.04340895265340805, 0.01657242886722088, -0.04075280949473381, 0.012531299144029617, 0.03297410532832146, -0.004622161388397217, 0.005298054777085781, -0.06454425305128098, -0.003585791913792491, 0.008646691218018532, 0.05422324314713478, -0.034302178770303726, 0.039462681859731674, 0.023203298449516296, -0.031133780255913734, -0.005900430027395487, 0.007147868163883686, -0.01624041236937046, 0.04143581539392471, 0.014077553525567055, 0.05797978863120079, 0.08165739476680756, 0.02462623082101345, 0.03183576092123985, -0.03896939754486084, -0.018687857314944267, -0.014978744089603424, 0.05733472481369972, -0.01705622673034668, -0.0031636550556868315, 0.05577898398041725, -0.011630107648670673, 0.027794629335403442, -0.02694086916744709, 0.015946337953209877, 0.046786047518253326, 0.033903755247592926, -0.03822947293519974, 0.025043625384569168, -0.02606813795864582, -0.041359927505254745, -0.0863625630736351, -0.0007944710669107735, -0.04617892578244209, 0.06348179280757904, 0.02312740869820118, 0.012275170534849167, 0.03120967000722885, 0.02699778787791729, 0.005582641344517469 ]
714,865
pytorch_optimizer.optimizer.adabelief
__str__
null
def __str__(self) -> str: return 'AdaBelief'
(self) -> str
[ -0.00043541548075154424, -0.0738942101597786, 0.019931990653276443, -0.013308250345289707, -0.007266148459166288, -0.06958834826946259, 0.014358673244714737, 0.017605435103178024, 0.054726164788007736, -0.032363440841436386, -0.08278373628854752, 0.01684148982167244, -0.008524919860064983, 0.036912381649017334, -0.026720674708485603, -0.011042461730539799, -0.0036960127763450146, -0.0036916721146553755, 0.02248425781726837, 0.019168047234416008, -0.003867466002702713, 0.02012297697365284, -0.008559644222259521, -0.013820439577102661, 0.014749325811862946, 0.053996942937374115, -0.018108943477272987, -0.0033509358763694763, -0.030939728021621704, 0.027102645486593246, -0.021112632006406784, -0.08285319060087204, 0.020678572356700897, -0.0025761404540389776, -0.010443460196256638, 0.004904867149889469, -0.0109469685703516, 0.009549299255013466, -0.009827096946537495, -0.023352377116680145, 0.010330605320632458, -0.003164290450513363, -0.0031881637405604124, -0.02198074944317341, -0.04656585305929184, -0.02130361832678318, -0.013160670176148415, 0.03479417413473129, -0.02772769145667553, -0.021234167739748955, -0.00842074491083622, -0.018751351162791252, 0.006819067522883415, 0.05771249160170555, -0.022171735763549805, 0.044760167598724365, -0.0006510885432362556, -0.01164146326482296, -0.02856108546257019, 0.051323141902685165, -0.027883952483534813, -0.022206461057066917, 0.06323371827602386, -0.08174199610948563, 0.01581711135804653, 0.008077838458120823, -0.03923893719911575, 0.04729507118463516, 0.013160670176148415, 0.0531635507941246, 0.025696294382214546, -0.04618388041853905, 0.011762999929487705, 0.017414448782801628, -0.0118150869384408, -0.032224543392658234, -0.030002159997820854, 0.02411632053554058, 0.021859213709831238, -0.032953761518001556, 0.03573174029588699, 0.00695796636864543, 0.005799028556793928, -0.027640879154205322, 0.006636762525886297, -0.08118640631437302, -0.03805829584598541, -0.006944944616407156, 0.012570349499583244, -0.007583011407405138, -0.010677852667868137, -0.011849812231957912, -0.023230839520692825, 0.06743541359901428, -0.03677348047494888, 0.01622512750327587, 0.032016195356845856, -0.05080227181315422, 0.06566444784402847, -0.010703896172344685, -0.027415169402956963, 0.0236301738768816, -0.013099901378154755, 0.007713228929787874, -0.05788611248135567, -0.05340662598609924, -0.03604426234960556, 0.03218981996178627, 0.009618747979402542, -0.002860449021682143, -0.009158645756542683, -0.022623157128691673, 0.04094044864177704, 0.02856108546257019, -0.004034578800201416, -0.056010980159044266, 0.010538953356444836, -0.0223627220839262, 0.05090644583106041, 0.01135498471558094, 0.03043621964752674, 0.0006136509473435581, -0.034117039293050766, 0.011268172413110733, 0.038440268486738205, 0.09125657379627228, -0.04646167904138565, -0.011137954890727997, 0.016407432034611702, -0.02902986854314804, 0.042989205569028854, 0.014228455722332, -0.09979885071516037, 0.008915572427213192, 0.07174127548933029, -0.0033791495952755213, 0.058441709727048874, 0.025418497622013092, 0.04514214023947716, 0.1073688417673111, 0.0016353174578398466, -0.021008457988500595, 0.06972724199295044, -0.002352599985897541, -0.00047339563025161624, 0.00216378434561193, -0.03906531259417534, 0.007144611794501543, -0.019497932866215706, -0.0035723058972507715, 0.039725083857774734, 0.018299929797649384, -0.03243289142847061, -0.00526079535484314, 0.02666858769953251, -0.009783690795302391, -0.01679808460175991, -0.046531129628419876, 0.035419218242168427, -0.03566228970885277, 0.007261807564646006, -0.016346663236618042, -0.011433115229010582, 0.022206461057066917, -0.005160961765795946, 0.012153653427958488, 0.0013097731862217188, 0.01684148982167244, 0.014671195298433304, -0.01608622819185257, -0.049448005855083466, -0.09118711948394775, -0.09604858607053757, 0.063858762383461, -0.015452501364052296, 0.0456630103290081, 0.0011589375790208578, 0.08389493077993393, 0.05371914803981781, -0.00323373987339437, 0.010356648825109005, 0.023578086867928505, -0.06691454350948334, 0.005729579366743565, 0.06181000545620918, -0.07174127548933029, 0.0322592668235302, 0.05066337063908577, 0.033162109553813934, -0.01520942896604538, 0.014766688458621502, 0.016407432034611702, -0.01987990364432335, 0.0004809916717931628, -0.025939367711544037, -0.04889240860939026, -0.02165086567401886, -0.053059376776218414, -0.015296240337193012, -0.001255515730008483, 0.010842794552445412, 0.0034051930997520685, -0.02856108546257019, 0.06656729429960251, 0.0797974169254303, -0.00013754246174357831, 0.03029732033610344, -0.03757214918732643, -0.007721910253167152, -0.06632421910762787, -0.003185993293300271, 0.024012146517634392, 0.007904214784502983, 0.009141283109784126, 0.04222526401281357, -0.09757646918296814, 0.023213477805256844, 0.010556316003203392, -0.03708600252866745, 0.04010705649852753, 0.022640518844127655, 0.001968457829207182, 0.02607826702296734, 0.011320259422063828, -0.019115960225462914, 0.013872526586055756, 0.031200163066387177, -0.007639439310878515, 0.008507557213306427, 0.01391593273729086, -0.037502702325582504, -0.06437963992357254, -0.007908555679023266, 0.03383924439549446, 0.021720314398407936, 0.08014465868473053, -0.05094116926193237, 0.011233448050916195, -0.09834041446447372, -0.019220134243369102, 0.026356065645813942, 0.0036656286101788282, -0.00041669668280519545, 0.014471528120338917, 0.027172096073627472, -0.04601025953888893, 0.01590392366051674, -0.004904867149889469, -0.06288647651672363, -0.05052447319030762, 0.035054609179496765, -0.05243433266878128, 0.006571653764694929, -0.006445776671171188, -0.013889889232814312, -0.06521303206682205, -0.04267668351531029, -0.02106054499745369, 0.011085867881774902, -0.013968019746243954, -0.022900955751538277, 0.020452862605452538, -0.006319899577647448, 0.07354696094989777, -0.0035983494017273188, 0.03394341841340065, -0.004761627875268459, 0.023439187556505203, 0.0022896614391356707, -0.028752069920301437, 0.08695070445537567, 0.005542933940887451, -0.014948992989957333, 0.029463928192853928, -0.03840554505586624, -0.036565132439136505, -0.004514214117079973, 0.06128913536667824, -0.06437963992357254, -0.04118352010846138, 0.005742601118981838, -0.021720314398407936, -0.04316283017396927, 0.06917165219783783, -0.030852915719151497, -0.07139403373003006, 0.017761696130037308, -0.0028864925261586905, 0.01188453659415245, 0.005438759922981262, 0.07094261050224304, 0.01965419389307499, 0.05979597195982933, 0.010495547205209732, 0.03923893719911575, 0.03861389309167862, 0.08653400838375092, 0.02995007298886776, -0.01497503649443388, -0.01975836791098118, 0.0347420871257782, -0.02774505317211151, 0.03944728523492813, -0.015582719817757607, -0.0851450189948082, -0.03677348047494888, 0.017935318872332573, 0.020991094410419464, 0.015539313666522503, -0.007852127775549889, -0.021216806024312973, 0.03245025500655174, 0.019949354231357574, 0.07549154758453369, -0.001816537114791572, 0.013785715214908123, 0.015730299055576324, -0.012379364110529423, 0.02727627009153366, 0.05583735555410385, -0.04809373989701271, 0.016285894438624382, -0.05507341027259827, 0.005916224792599678, 0.006042101886123419, -0.020452862605452538, 0.026008818298578262, 0.007357300724834204, 0.031200163066387177, 0.01356868539005518, -0.08021411299705505, -0.027189457789063454, 0.05090644583106041, -0.0004375857824925333, -0.08132530003786087, 0.024411480873823166, 0.017544666305184364, 0.0132214380428195, -0.010035444982349873, -0.04785066843032837, 0.06486578285694122, 0.048406265676021576, -0.026060905307531357, 0.05264268070459366, 0.036669306457042694, 0.034360114485025406, -0.055281758308410645, -0.019497932866215706, 0.046739477664232254, 0.014176367782056332, -0.0022191267926245928, -0.0519481860101223, -0.007066481281071901, 0.04267668351531029, 0.024185769259929657, 0.017475217580795288, -0.025783106684684753, 0.025123337283730507, -0.013724946416914463, 0.01678072288632393, -0.011311578564345837, -0.07215797156095505, -0.022397445514798164, 0.045107416808605194, -0.032814864069223404, 0.007036096882075071, 0.0033335734624415636, -0.006949285045266151, 0.0738942101597786, -0.04305865615606308, 0.01409823726862669, 0.014176367782056332, -0.013594728894531727, -0.026477601379156113, 0.00009067764767678455, 0.027310995385050774, 0.034568462520837784, 0.0021182082127779722, 0.040315404534339905, 0.029880624264478683, 0.01847355253994465, 0.029290303587913513, -0.006198362912982702, 0.05385804548859596, 0.018108943477272987, -0.019011786207556725, 0.007973664440214634, 0.00725746713578701, 0.018664538860321045, -0.009844458661973476, 0.013863845728337765, -0.013299568556249142, -0.005438759922981262, -0.020435499027371407, -0.05924037843942642, -0.09993775188922882, 0.002951601520180702, -0.03128697723150253, -0.018282566219568253, -0.0028908331878483295, 0.023838521912693977, -0.01328220684081316, -0.036113712936639786, -0.0237690731883049, -0.041947465389966965, 0.06333789229393005, 0.009141283109784126, 0.054240018129348755, -0.037155453115701675, -0.027363082394003868, 0.01928958296775818, 0.007882512174546719, -0.06924109905958176, -0.05344134941697121, 0.04750342294573784, 0.00883744191378355, -0.017457854002714157, -0.0360095389187336, -0.030696654692292213, -0.05233015865087509, -0.02809230051934719, 0.055281758308410645, 0.04024595394730568, 0.036704033613204956, 0.010087531991302967, 0.02085219696164131, 0.014540977776050568, 0.053059376776218414, 0.07778338342905045, -0.016155676916241646, -0.05104534327983856, -0.027293631806969643, -0.009748966433107853, -0.05930982530117035, 0.007118568290024996, -0.03467263653874397, -0.015773706138134003, -0.05312882736325264, -0.022762056440114975, -0.008281846530735493, 0.03659985959529877, -0.05677492171525955, -0.00006402370490832254, 0.05028139799833298, -0.005490846931934357, -0.05708744376897812, -0.03805829584598541, -0.0042537786066532135, 0.06246977671980858, -0.015600081533193588, -0.014376034960150719, 0.03521087020635605, 0.022536344826221466, -0.016537649556994438, 0.025661570951342583, 0.0048744832165539265, -0.017562028020620346, -0.052469056099653244, 0.0154959075152874, 0.01409823726862669, -0.021598778665065765, -0.0034854940604418516, -0.06378931552171707, 0.009141283109784126, 0.02890833280980587, 0.007726250682026148, 0.02422049455344677, 0.027779778465628624, -0.044655993580818176, -0.0036005196161568165, 0.05444836616516113, -0.042537786066532135, 0.03885696455836296, -0.04656585305929184, 0.01539173349738121, 0.04795484244823456, -0.01527887862175703, -0.0028973440639674664, 0.00431671692058444, -0.015947328880429268, -0.02795340120792389, -0.06351152062416077, -0.04132242128252983, 0.0369471050798893, -0.008524919860064983, 0.03746797516942024, -0.030852915719151497, 0.014983718283474445, 0.002949431072920561, -0.0006727915024384856, 0.0010525931138545275, 0.01930694654583931, -0.031321700662374496, 0.022727331146597862, 0.0006169063854031265, 0.0369471050798893, 0.03179048374295235, -0.018647177144885063, -0.05489978566765785, 0.006085507571697235, -0.006263472139835358, -0.024255219846963882, -0.04410040006041527, -0.028352735564112663, 0.03547130525112152, -0.04667002707719803, -0.009905227459967136, -0.020418137311935425, -0.007031756453216076, -0.028474273160099983, 0.011103230528533459, -0.03659985959529877, 0.07396365702152252, 0.02633870206773281, 0.007938940078020096, -0.00863343384116888, 0.014132962562143803, 0.03453373536467552, -0.011415752582252026, 0.015539313666522503, 0.004748606123030186, -0.01731027476489544, -0.02291831746697426, -0.06889384984970093, -0.023109303787350655, 0.03889169171452522, 0.0005707876407541335, 0.01977572962641716, -0.028508998453617096, 0.07868622243404388, 0.020539673045277596, 0.029220854863524437, 0.022032836452126503, 0.06549082696437836, -0.007535264827311039, 0.06205308064818382, -0.08604786545038223, 0.03521087020635605, 0.013698902912437916, 0.012804741971194744, 0.03055775724351406, -0.0550386868417263, -0.014202412217855453, -0.029099317267537117, 0.02585255727171898, -0.007609054911881685, -0.017831144854426384, 0.01391593273729086, 0.008225418627262115, -0.006463139317929745, 0.024029508233070374, -0.00004428758620633744, -0.06052519381046295, -0.03965563327074051, 0.009870502166450024, 0.030609844252467155, 0.012040797621011734, 0.002795340260490775, 0.03021050989627838, 0.007270488888025284, -0.04153076931834221, -0.03021050989627838, 0.06410183757543564, 0.015643488615751266, 0.03394341841340065, 0.0295854639261961, -0.008763652294874191, 0.05934455245733261, 0.0132214380428195, -0.07299137115478516, 0.004935251083225012, -0.0760471448302269, 0.005985673982650042, -0.005686173215508461, -0.09577078372240067, 0.0635809674859047, 0.030523031949996948, -0.015574038028717041, -0.028508998453617096, 0.018907612189650536, -0.03930838778614998, 0.016364024952054024, -0.03311002254486084, -0.03941256180405617, -0.01451493427157402, 0.0009988783858716488, 0.012969683855772018, 0.02317875251173973, 0.005981333553791046, -0.05267740413546562, -0.05837225914001465, 0.0012739632511511445, 0.010512909851968288, -0.033978141844272614, -0.009861821308732033, -0.05583735555410385, 0.040315404534339905, -0.005082831252366304, 0.0032055259216576815, 0.015296240337193012, 0.03826664388179779, 0.01152860838919878, 0.022970404475927353, 0.04809373989701271, 0.06934527307748795, 0.07958906888961792, 0.02505388855934143, -0.009575342759490013, -0.04153076931834221, -0.0017101926496252418, -0.03217245638370514, 0.018786074593663216, 0.002235403982922435, -0.022258548066020012, -0.01520942896604538, -0.036704033613204956, 0.013091220520436764, -0.01977572962641716, -0.03239816799759865, 0.06035156920552254, 0.00027861163835041225, 0.024862902238965034, -0.03196410834789276, 0.04642695561051369, -0.009306225925683975, -0.006463139317929745, -0.0176748838275671, -0.05208708345890045, 0.03757214918732643, -0.03479417413473129, 0.05017722398042679, 0.0006928667426109314, -0.021320980042219162, -0.09500684589147568, -0.01895969919860363, 0.04344062879681587, 0.03930838778614998, 0.032953761518001556, -0.008741948753595352, 0.011059824377298355, -0.031998831778764725, 0.007695866748690605, -0.022553708404302597, 0.030002159997820854, 0.006836429703980684, 0.02411632053554058, -0.09563188999891281, -0.051913462579250336, -0.029759088531136513, -0.03102654032409191, -0.033630892634391785, -0.003088330151513219, -0.024480929598212242, 0.02458510361611843, 0.007843446917831898, 0.015947328880429268, 0.0223627220839262, 0.0510106198489666, -0.03243289142847061, -0.01882079988718033, -0.029168767854571342, -0.0195500198751688, 0.011806406080722809, -0.00020929783931933343, 0.08243649452924728, 0.01883816160261631, 0.004561960697174072, -0.00964479148387909, -0.006146275904029608, -0.02984589897096157, -0.021008457988500595, 0.03993343189358711, -0.02069593407213688, -0.04760759696364403, -0.0066931904293596745, 0.016364024952054024, -0.00919337011873722, 0.02210228703916073, 0.09313170611858368, -0.045350488275289536, -0.0021605289075523615, 0.006059464067220688, -0.025574758648872375, -0.06538665294647217, 0.05267740413546562, 0.04024595394730568, -0.056948546320199966, 0.024307306855916977, 0.010313242673873901, -0.058580607175827026, -0.0747276023030281, -0.042190536856651306, -0.02107790671288967, 0.035506028681993484, 0.09083987772464752, 0.007552627474069595, -0.009870502166450024, -0.04601025953888893, -0.009089196100831032, -0.008676839992403984, 0.049656353890895844, 0.05614987760782242, -0.03521087020635605, 0.013785715214908123, 0.011190041899681091, -0.008646456524729729, -0.003936915658414364, 0.01065180916339159, -0.013230119831860065, -0.023005129769444466, 0.03354408219456673, 0.06417129188776016, -0.048857685178518295, 0.005160961765795946, 0.02279677987098694, -0.050593920052051544, -0.023890608921647072, -0.002875641221180558, -0.05455254018306732, 0.030123697593808174, -0.03864861652255058, 0.019931990653276443, 0.015582719817757607, 0.0016830639215186238, 0.03757214918732643, 0.03368297964334488, -0.04962163046002388, -0.0015832303324714303, -0.04993415251374245, -0.0319293811917305, 0.03823192045092583, -0.0022961723152548075, -0.05722634494304657, 0.04656585305929184, 0.012379364110529423, 0.032224543392658234, 0.06326844543218613, -0.00041262738523073494, 0.07625549286603928, 0.015339646488428116, 0.05298992618918419, -0.0000833528974908404, -0.01720610074698925, -0.0055863396264612675, -0.027797140181064606, 0.04878823459148407, 0.006866814102977514, 0.04635750502347946, -0.0328669510781765, 0.02295304276049137, 0.03274541348218918, 0.058684781193733215, -0.010330605320632458, 0.04121824726462364, 0.04976052790880203, -0.06427546590566635, 0.05677492171525955, -0.0030926705803722143, -0.011372346431016922, -0.05628877505660057, 0.03594008833169937, -0.02692902274429798, 0.02856108546257019, 0.012153653427958488, -0.00447080796584487, 0.032346080988645554, -0.028977781534194946, 0.003077478613704443 ]
714,886
pytorch_optimizer.optimizer.adabelief
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) step_size, n_sma = self.get_rectify_step_size( is_rectify=group['rectify'], step=group['step'], lr=group['lr'], beta2=beta2, n_sma_threshold=self.n_sma_threshold, degenerated_to_sgd=self.degenerated_to_sgd, ) step_size = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=step_size, bias_correction1=bias_correction1, ) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_var'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) if group['ams_bound']: state['max_exp_avg_var'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) s_grad = self.get_adanorm_gradient( grad=grad, adanorm=group['adanorm'], exp_grad_norm=state.get('exp_grad_norm', None), r=group.get('r', None), ) exp_avg, exp_avg_var = state['exp_avg'], state['exp_avg_var'] exp_avg.mul_(beta1).add_(s_grad, alpha=1.0 - beta1) grad_residual = grad - exp_avg exp_avg_var.mul_(beta2).addcmul_(grad_residual, grad_residual, value=1.0 - beta2).add_(group['eps']) de_nom = self.apply_ams_bound( ams_bound=group['ams_bound'], exp_avg_sq=exp_avg_var, max_exp_avg_sq=state.get('max_exp_avg_var', None), eps=group['eps'], ) if not group['rectify']: de_nom.div_(bias_correction2_sq) p.addcdiv_(exp_avg, de_nom, value=-step_size) continue if n_sma >= self.n_sma_threshold: p.addcdiv_(exp_avg, de_nom, value=-step_size) elif step_size > 0: p.add_(exp_avg, alpha=-step_size) return loss
(self)
[ -0.0035200887359678745, -0.017545364797115326, -0.018837232142686844, 0.0574430413544178, 0.008782696910202503, -0.005553027614951134, -0.035571422427892685, -0.05263609066605568, -0.03456997498869896, 0.01627352461218834, -0.017715610563755035, 0.015492396429181099, 0.028160709887742996, 0.08444207161664963, -0.025817321613430977, 0.044183872640132904, 0.011847126297652721, 0.04754873737692833, 0.03533107414841652, -0.01001447718590498, -0.01884724572300911, -0.06180935353040695, -0.03412933647632599, 0.035150814801454544, -0.06305114924907684, 0.004253649152815342, 0.05391794443130493, 0.0024535469710826874, -0.02159121260046959, 0.008001566864550114, -0.012167589738965034, -0.08163801580667496, 0.019968867301940918, -0.005838440265506506, 0.03220655769109726, -0.061128370463848114, 0.0043738228268921375, 0.007355633657425642, -0.09301446378231049, -0.038796085864305496, -0.024174947291612625, -0.012387908063828945, 0.019357984885573387, 0.007415720261633396, -0.006439308635890484, -0.002025427995249629, -0.03799492493271828, 0.0345299169421196, -0.004203576594591141, -0.012908660806715488, 0.012377893552184105, -0.05864477902650833, 0.06337161362171173, 0.002479834947735071, 0.02673865482211113, 0.09333492815494537, 0.06064767390489578, -0.04810955002903938, 0.03142542764544487, -0.05664188414812088, 0.05712257698178291, -0.062249988317489624, 0.03110496699810028, -0.006434301380068064, 0.0018614409491419792, 0.0009958145674318075, -0.06805838644504547, -0.020339403301477432, 0.016323598101735115, 0.038335420191287994, 0.011055982671678066, -0.00016445649089291692, 0.004959669895470142, -0.005192506592720747, -0.049271225929260254, -0.015752771869301796, -0.035551395267248154, -0.056802116334438324, 0.031585659831762314, -0.031245168298482895, 0.015432309359312057, 0.005497947800904512, -0.028861723840236664, 0.0074708000756800175, 0.016593988984823227, -0.03390901908278465, -0.013299225829541683, -0.02481587417423725, -0.001573524670675397, -0.025376684963703156, 0.04198068752884865, 0.005029771011322737, 0.03110496699810028, 0.040718864649534225, 0.042741790413856506, 0.03897634521126747, -0.03769449144601822, -0.022492514923214912, -0.022552601993083954, -0.02439526654779911, 0.016624031588435173, 0.04518532007932663, 0.030744444578886032, 0.05692228674888611, 0.0357116274535656, -0.035911913961172104, -0.011877169832587242, -0.028861723840236664, 0.049671806395053864, -0.061889469623565674, -0.028861723840236664, -0.009789151139557362, -0.04414381459355354, -0.013108951039612293, -0.05083348602056503, -0.015442323870956898, -0.00793647300451994, 0.01770559512078762, -0.04099927097558975, 0.035931944847106934, 0.04999227076768875, -0.017945943400263786, -0.054118234664201736, 0.0024936047848314047, 0.025296568870544434, 0.014931585639715195, 0.05704246088862419, 0.022111965343356133, 0.018496738746762276, -0.07578956335783005, 0.0016536405310034752, -0.0038555737119168043, -0.003845559200271964, -0.006764779333025217, 0.01568267121911049, -0.012648284435272217, 0.0009970663813874125, 0.023053325712680817, -0.005402810405939817, -0.0044639534316957, -0.009443651884794235, 0.010069556534290314, -0.01137644611299038, -0.004065877757966518, 0.014260615222156048, 0.020749997347593307, 0.054438699036836624, 0.04206080362200737, 0.0027364559937268496, -0.004388844594359398, 0.01827642135322094, 0.014030282385647297, 0.010605331510305405, 0.011336388066411018, 0.013229124248027802, 0.015752771869301796, -0.02511630952358246, 0.04838995262980461, -0.01456104964017868, -0.01656394451856613, -0.028421085327863693, -0.024275092408061028, -0.018056102097034454, 0.005057311151176691, 0.023473935201764107, 0.0006991357076913118, -0.003970740363001823, 0.04955163225531578, -0.038756027817726135, 0.02399468794465065, 0.006028715055435896, -0.016794277355074883, 0.03823527321219444, 0.020229244604706764, -0.03999782353639603, 0.13155017793178558, 0.01141650415956974, 0.012468024156987667, -0.031165052205324173, -0.0071954019367694855, -0.0012586945667862892, -0.007906429469585419, -0.023674223572015762, -0.03707359358668327, -0.004556586965918541, 0.030163604766130447, 0.01255815476179123, -0.0027364559937268496, 0.020359432324767113, 0.0004684897721745074, -0.011446547694504261, -0.025096280500292778, 0.045826248824596405, -0.01667410507798195, -0.014200529083609581, 0.02002895437180996, 0.019067564979195595, 0.008211871609091759, 0.08997005969285965, 0.0018301457166671753, -0.024455353617668152, -0.005548020359128714, 0.030464040115475655, -0.006058758590370417, -0.03507069870829582, -0.00891789235174656, -0.028981896117329597, 0.05656176805496216, -0.0172649584710598, 0.014480933547019958, -0.0796351209282875, -0.0028416079003363848, 0.03775458037853241, 0.07290539145469666, 0.06168917939066887, -0.06701688468456268, 0.023113412782549858, 0.023914571851491928, 0.07066214829683304, 0.00816680584102869, -0.038335420191287994, -0.08195848017930984, 0.01257818378508091, 0.002919220132753253, 0.06625577807426453, -0.020609794184565544, 0.027980448678135872, -0.03258710727095604, -0.005863476544618607, 0.0019778592977672815, -0.005069829057902098, -0.019187739118933678, 0.01158674992620945, -0.024074804037809372, 0.03667301684617996, 0.0330878309905529, -0.04446427896618843, -0.021110517904162407, 0.006649612914770842, -0.00501224584877491, -0.034750234335660934, -0.03208638355135918, -0.026237931102514267, 0.04770896956324577, -0.008722609840333462, 0.034409742802381516, 0.07042180001735687, 0.01709471270442009, -0.023834455758333206, 0.036773160099983215, -0.02988320030272007, -0.03178595006465912, -0.021531125530600548, 0.04366312175989151, -0.05335713550448418, -0.017905885353684425, 0.07250481843948364, 0.05119400843977928, 0.047749027609825134, -0.0463469997048378, 0.04137982055544853, -0.058164082467556, -0.04474468529224396, 0.04506514593958855, -0.045866306871175766, 0.01705465465784073, 0.04999227076768875, -0.047348447144031525, 0.04286196082830429, 0.03967735916376114, 0.042701732367277145, 0.09213318675756454, -0.06305114924907684, -0.03062427043914795, 0.008407153189182281, 0.04478474333882332, 0.009383564814925194, 0.004418888129293919, -0.006829873658716679, -0.021831560879945755, 0.0650540441274643, -0.04903088137507439, -0.06553474068641663, 0.007951495237648487, -0.06237016245722771, 0.030804531648755074, -0.02285303734242916, -0.02083011344075203, 0.06701688468456268, 0.0008775185560807586, 0.031725864857435226, 0.010625360533595085, 0.09637932479381561, 0.011166142299771309, 0.08556368947029114, 0.003329813713207841, -0.007911437191069126, 0.0037604360841214657, -0.04059869050979614, 0.015452338382601738, 0.07819303870201111, -0.006985097657889128, 0.016593988984823227, 0.006529439240694046, -0.02639816142618656, -0.026818769052624702, 0.003970740363001823, 0.0038956315256655216, 0.0330878309905529, -0.025456801056861877, -0.0159530621021986, -0.0005551775684580207, 0.004616674035787582, 0.0163135826587677, 0.0004365686036180705, -0.08532334864139557, -0.0004156008071731776, -0.04598648101091385, 0.0340692512691021, 0.058764953166246414, -0.023814426735043526, 0.02243242971599102, 0.0338088758289814, 0.021110517904162407, -0.012247705832123756, -0.026838798075914383, 0.07574950903654099, 0.01928788237273693, -0.018837232142686844, -0.04041843116283417, -0.0901302918791771, -0.013819978572428226, 0.0510738343000412, 0.031205110251903534, -0.03813512995839119, -0.02437523752450943, 0.02639816142618656, -0.010274853557348251, 0.026117756962776184, -0.05491939187049866, 0.06337161362171173, 0.03847562149167061, -0.023433877155184746, 0.028060564771294594, 0.03931683674454689, -0.0370936244726181, 0.05463898926973343, 0.017204871401190758, 0.01453100610524416, 0.022091936320066452, -0.016033178195357323, -0.020589765161275864, -0.014691238291561604, 0.06301108747720718, 0.031305257230997086, 0.038375478237867355, -0.008016589097678661, -0.025436772033572197, 0.028080593794584274, -0.07735182344913483, 0.014691238291561604, 0.031165052205324173, -0.053637538105249405, 0.09117180109024048, 0.08420172333717346, -0.004403866361826658, -0.04474468529224396, -0.032406847923994064, 0.0550796240568161, -0.029402505606412888, 0.018246376886963844, -0.042982134968042374, 0.004751869477331638, 0.016323598101735115, -0.03937692567706108, -0.020950285717844963, -0.03346838429570198, -0.010455113835632801, 0.06333155184984207, 0.05303667113184929, 0.038695938885211945, -0.036292463541030884, -0.04338271543383598, 0.02868146263062954, 0.05043290555477142, -0.024495411664247513, 0.02197176218032837, -0.0519951656460762, 0.032106414437294006, -0.0612485408782959, 0.0705019161105156, 0.02559700421988964, 0.0027990464586764574, -0.007410713005810976, -0.06285085529088974, 0.03671307489275932, 0.024275092408061028, 0.04294207692146301, -0.04867035895586014, -0.008171813562512398, -0.03032383695244789, 0.011546691879630089, 0.026618480682373047, 0.00812674779444933, -0.02155115455389023, -0.07538898289203644, 0.003913157153874636, 0.028240825980901718, 0.01610327884554863, 0.06885954737663269, -0.016954509541392326, 0.009729065001010895, -0.05688222870230675, 0.002196925925090909, 0.002329617738723755, -0.04133976250886917, -0.02597755379974842, -0.02205187827348709, -0.01143653318285942, -0.006544461008161306, 0.03487040847539902, 0.02119063399732113, 0.027740102261304855, 0.0354512482881546, -0.032787397503852844, -0.04294207692146301, -0.0650540441274643, -0.010164693929255009, -0.06509409844875336, -0.011556706391274929, -0.025056222453713417, -0.03136534243822098, -0.02984314225614071, -0.01770559512078762, -0.028421085327863693, 0.0054078176617622375, -0.020930256694555283, 0.03857576474547386, 0.0519951656460762, 0.0015159414615482092, -0.0063291494734585285, -0.00018589373212307692, 0.004634199198335409, -0.008557370863854885, -0.0009983181953430176, -0.034089282155036926, 0.052836380898952484, -0.03963730111718178, -0.09117180109024048, 0.012648284435272217, 0.012307792901992798, 0.015672657638788223, 0.05239574611186981, 0.01553245447576046, 0.02519642375409603, -0.00294926343485713, -0.041820455342531204, -0.0295427069067955, -0.015882961452007294, 0.02439526654779911, 0.0007811292307451367, 0.021531125530600548, -0.03368870168924332, 0.02165129967033863, 0.0002162501186830923, 0.011486605741083622, 0.08283975720405579, 0.04530549421906471, -0.013058878481388092, 0.010344955138862133, -0.0086324792355299, -0.034770265221595764, 0.03110496699810028, -0.024655641987919807, -0.007540901191532612, -0.023694252595305443, -0.03312788903713226, -0.010765562765300274, 0.029582764953374863, -0.027680015191435814, 0.018947390839457512, -0.057603273540735245, 0.021471038460731506, 0.02796041965484619, -0.003084458876401186, 0.04518532007932663, 0.006304113194346428, 0.006319134961813688, 0.03941698372364044, 0.05467904359102249, -0.05379777029156685, -0.06625577807426453, 0.047789085656404495, 0.0385357066988945, -0.053998060524463654, -0.05988657474517822, 0.04282190278172493, 0.00640425831079483, 0.08860809355974197, -0.05123406648635864, 0.012377893552184105, 0.03314791992306709, -0.06100819632411003, -0.01476133894175291, 0.0026313038542866707, -0.0183164793998003, -0.06249033659696579, 0.012528111226856709, -0.05660182610154152, 0.014871498569846153, -0.009273406118154526, -0.021531125530600548, 0.006113838404417038, 0.0016173380427062511, -0.007896414957940578, -0.032787397503852844, 0.04438416287302971, 0.06180935353040695, 0.039877649396657944, -0.04338271543383598, 0.018777145072817802, -0.003780465107411146, -0.011526662856340408, -0.009984433650970459, -0.009618905372917652, 0.04554584249854088, -0.0019878738094121218, 0.006884953007102013, 0.00003794547956204042, 0.007500843610614538, -0.020569736137986183, 0.011096040718257427, 0.05820414051413536, 0.07911437004804611, -0.011076011694967747, -0.03150554373860359, -0.017885856330394745, -0.0668967068195343, -0.12081465125083923, -0.03330815210938454, -0.0024109852965921164, -0.010324926115572453, 0.025677120313048363, -0.020349416881799698, -0.04566601663827896, 0.03062427043914795, 0.02597755379974842, 0.023694252595305443, -0.01943810097873211, -0.012257720343768597, -0.013659747317433357, 0.035571422427892685, -0.004403866361826658, 0.02902195416390896, 0.033648643642663956, 0.008527327328920364, -0.0349905826151371, 0.024595556780695915, 0.00396823650225997, -0.00818683486431837, -0.0534372515976429, -0.055720552802085876, 0.007941480726003647, -0.05231563001871109, -0.004083402920514345, 0.027019059285521507, 0.02984314225614071, -0.02475578710436821, -0.0510738343000412, 0.011005910113453865, -0.03136534243822098, 0.006804837379604578, -0.003492548828944564, -0.01823636330664158, -0.04334265738725662, 0.011015924625098705, 0.011867155320942402, -0.04121958836913109, 0.0006759772077202797, -0.02023925818502903, 0.047308389097452164, -0.046226825565099716, -0.01294871885329485, -0.0076660821214318275, 0.004611666779965162, 0.05736292526125908, -0.10711485147476196, 0.04087909683585167, -0.007345619145780802, 0.024235034361481667, -0.03693339228630066, 0.019968867301940918, -0.07002122700214386, -0.07927460223436356, 0.01042507030069828, 0.025837350636720657, -0.036292463541030884, 0.020910227671265602, 0.009939368814229965, 0.013419399037957191, -0.042261093854904175, 0.004156007897108793, 0.04370317980647087, -0.00044814785360358655, -0.008246921934187412, -0.004461449570953846, -0.01019473746418953, 0.03366867080330849, 0.021751444786787033, -0.02902195416390896, -0.054879333823919296, -0.02319352887570858, -0.004040841478854418, -0.0223523136228323, -0.06841890513896942, -0.022212110459804535, -0.013809964060783386, -0.0022895599249750376, 0.07258492708206177, 0.004008294548839331, -0.03390901908278465, -0.0012787235900759697, -0.046146709471940994, -0.00398826552554965, 0.031665775924921036, -0.0255369171500206, 0.05856466293334961, -0.07170365750789642, -0.032106414437294006, -0.036312494426965714, -0.03803498297929764, 0.04678763821721077, 0.03787475451827049, -0.05616118758916855, 0.06681659072637558, 0.01686437986791134, 0.053317077457904816, 0.03767446428537369, -0.02673865482211113, -0.060807906091213226, -0.019067564979195595, 0.03489043936133385, -0.023113412782549858, -0.023914571851491928, -0.019398042932152748, 0.002308337017893791, -0.022272197529673576, 0.04011799395084381, 0.05536003038287163, 0.01698455400764942, -0.014731296338140965, 0.046186767518520355, -0.041900571435689926, 0.01138646062463522, 0.01789586991071701, 0.01042507030069828, 0.03541119024157524, 0.029582764953374863, 0.007165358401834965, -0.03537113219499588, -0.01646380126476288, -0.023513993248343468, -0.021811531856656075, -0.009478702209889889, -0.01550241094082594, -0.010875722393393517, 0.00009591991693014279, -0.021911676973104477, -0.007135314866900444, -0.002409733599051833, -0.09229341894388199, -0.042982134968042374, -0.06401253491640091, 0.0033122883178293705, 0.019177723675966263, -0.014581078663468361, 0.03497055545449257, -0.0385357066988945, -0.033228036016225815, 0.01991879567503929, 0.029422534629702568, 0.041139472275972366, -0.01865697093307972, 0.025296568870544434, 0.03771452233195305, -0.013259167782962322, 0.007475807331502438, 0.0231734998524189, -0.0002699214674066752, -0.0025987569242715836, -0.04278184473514557, -0.012087473645806313, 0.008387125097215176, 0.02471572905778885, 0.024154918268322945, -0.06769786775112152, -0.03693339228630066, -0.014971643686294556, 0.01419051457196474, -0.05351736769080162, 0.013799949549138546, -0.028160709887742996, -0.019958853721618652, -0.007861364632844925, 0.03292760252952576, 0.037213798612356186, 0.021370895206928253, -0.0038004941307008266, 0.005938584916293621, 0.017735639587044716, 0.0022945671807974577, 0.03068435750901699, -0.02443532459437847, 0.01313899364322424, 0.0020191690418869257, -0.019237810745835304, -0.017234915867447853, -0.023053325712680817, -0.06881948560476303, 0.059926632791757584, -0.023033296689391136, -0.007385676726698875, 0.038415536284446716, -0.01137644611299038, -0.059085413813591, -0.02205187827348709, 0.031165052205324173, -0.02321355789899826, 0.04786920174956322, 0.0012305289274081588, 0.02237234264612198, 0.010755548253655434, -0.0013970196014270186, 0.023814426735043526, -0.02287306636571884, -0.005077339708805084, 0.037894781678915024, 0.018957404419779778, -0.018266405910253525, -0.0020529679022729397, 0.024675671011209488, 0.01755537837743759, 0.00777624174952507, -0.03465009108185768, 0.010735519230365753, 0.050553079694509506, -0.02089019864797592, -0.01892736181616783, 0.023053325712680817, -0.0652543306350708, 0.0659753754734993, 0.034750234335660934, 0.037554290145635605, 0.05459893122315407, 0.0709024965763092, -0.04286196082830429, 0.014601107686758041, -0.0745077133178711, -0.06176929548382759, -0.07062209397554398, -0.007135314866900444, -0.025316597893834114, 0.06785809993743896, 0.029582764953374863, 0.016403714194893837, 0.018286434933543205, 0.04362306371331215, 0.029983345419168472 ]
714,901
pytorch_optimizer.optimizer.adabound
AdaBound
Adaptive Gradient Methods with Dynamic Bound of Learning Rate. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param final_lr: float. final learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param gamma: float. convergence speed of the bound functions. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param ams_bound: bool. whether to use the AMSBound variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability.
class AdaBound(Optimizer, BaseOptimizer): r"""Adaptive Gradient Methods with Dynamic Bound of Learning Rate. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param final_lr: float. final learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param gamma: float. convergence speed of the bound functions. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param ams_bound: bool. whether to use the AMSBound variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, final_lr: float = 1e-1, betas: BETAS = (0.9, 0.999), gamma: float = 1e-3, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'final_lr': final_lr, 'gamma': gamma, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'ams_bound': ams_bound, 'adam_debias': adam_debias, 'eps': eps, } super().__init__(params, defaults) self.base_lrs: List[float] = [group['lr'] for group in self.param_groups] def __str__(self) -> str: return 'AdaBound' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) if group['ams_bound']: state['max_exp_avg_sq'] = torch.zeros_like(p) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group, base_lr in zip(self.param_groups, self.base_lrs): if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) final_lr: float = group['final_lr'] * group['lr'] / base_lr lower_bound: float = final_lr * (1 - 1 / (group['gamma'] * group['step'] + 1)) upper_bound: float = final_lr * (1 + 1 / (group['gamma'] * group['step'])) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) if group['ams_bound']: state['max_exp_avg_sq'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) exp_avg, exp_avg_sq = state['exp_avg'], state['exp_avg_sq'] exp_avg.mul_(beta1).add_(grad, alpha=1.0 - beta1) exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) de_nom = self.apply_ams_bound( ams_bound=group['ams_bound'], exp_avg_sq=exp_avg_sq, max_exp_avg_sq=state.get('max_exp_avg_sq', None), eps=group['eps'], ) step_size = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'] * bias_correction2_sq, bias_correction1=bias_correction1, ) step_size = torch.full_like(de_nom, fill_value=step_size) step_size.div_(de_nom).clamp_(min=lower_bound, max=upper_bound).mul_(exp_avg) p.add_(-step_size) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, final_lr: float = 0.1, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), gamma: float = 0.001, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ -0.014855118468403816, -0.03549664840102196, -0.026537686586380005, 0.009627393446862698, -0.0028358411509543657, 0.001964137889444828, -0.054911062121391296, -0.07250973582267761, -0.04090395197272301, 0.005192806478589773, -0.04361758008599281, 0.009637370705604553, 0.03589571267366409, 0.05127958953380585, -0.046730272471904755, 0.0620143823325634, 0.004259997047483921, 0.06576557457447052, 0.0014416149351745844, -0.022108087316155434, -0.04182179644703865, -0.06492754071950912, -0.036135151982307434, 0.0327032096683979, -0.032822929322719574, -0.0033820585813373327, 0.03609524294734001, -0.007866528816521168, -0.05263640359044075, 0.0033346698619425297, -0.00982193648815155, -0.07526326924562454, 0.023245416581630707, -0.019244810566306114, 0.03896849602460861, -0.08508022129535675, 0.03188512846827507, -0.002420566277578473, -0.09314129501581192, -0.02857290767133236, 0.027655063197016716, -0.045293644070625305, 0.038130465894937515, -0.025320544838905334, 0.0039656879380345345, 0.006953672040253878, -0.0040604653768241405, 0.028712579980492592, -0.017738347873091698, -0.004866073839366436, 0.016361581161618233, -0.07913418114185333, 0.06388998031616211, 0.027295906096696854, -0.0019778558053076267, 0.059540193527936935, 0.03543679043650627, -0.013288795948028564, 0.04194151610136032, -0.09162485599517822, 0.03896849602460861, -0.09266241639852524, 0.012201349250972271, -0.04218095541000366, -0.0078066689893603325, 0.006365054287016392, -0.08683609962463379, -0.017618630081415176, 0.017239520326256752, 0.023444948717951775, 0.009712194092571735, -0.026098717004060745, 0.022267712280154228, 0.006784070283174515, -0.037013087421655655, -0.000010337055755371694, -0.03731238469481468, -0.021988367661833763, 0.0028158880304545164, -0.060857098549604416, 0.039906296879053116, 0.03407997637987137, -0.003935758490115404, -0.028113985434174538, 0.0237442459911108, -0.06225382164120674, -0.030987238511443138, -0.0061505576595664024, 0.04868568107485771, -0.08827272802591324, 0.03088747151196003, -0.016860410571098328, 0.05391340330243111, 0.07075385749340057, 0.04102367162704468, 0.02837337553501129, -0.037671543657779694, -0.046291302889585495, -0.0011797298211604357, -0.0277947336435318, -0.0027510402724146843, 0.004125313367694616, 0.0370929017663002, 0.0726693645119667, 0.015264158137142658, -0.03960699960589409, -0.027176186442375183, -0.04369739443063736, 0.014416148886084557, -0.048286616802215576, -0.04337814450263977, -0.003150103148072958, -0.03583585470914841, -0.0013979674549773335, -0.04792746156454086, 0.044974394142627716, -0.0008910327451303601, 0.015832822769880295, -0.026058809831738472, 0.05527021735906601, 0.05451199784874916, -0.0049309213645756245, -0.037811215966939926, 0.0012844838201999664, 0.0368335098028183, -0.004983298480510712, 0.028493095189332962, 0.018895629793405533, 0.006300206296145916, -0.06959658116102219, 0.0027460518758744, 0.010714840143918991, -0.05331480875611305, -0.001123611582443118, 0.035257212817668915, -0.007911423221230507, 0.014106875285506248, 0.046051863580942154, -0.03549664840102196, 0.017249496653676033, 0.027894500643014908, 0.033700864762067795, 0.009507674723863602, -0.034020114690065384, 0.03507763147354126, -0.005088052712380886, 0.03926779329776764, 0.01429643016308546, 0.0016199462115764618, 0.0009390449849888682, -0.003928275778889656, -0.007781727705150843, -0.0007532313466072083, 0.01919492706656456, 0.010355683974921703, -0.008445169776678085, -0.030428549274802208, 0.015194321982562542, -0.027974313125014305, -0.006794046610593796, -0.04130301624536514, -0.04377720504999161, -0.0408041849732399, -0.026278294622898102, -0.004172701854258776, 0.004980804398655891, -0.00526763079687953, 0.025200825184583664, -0.023684386163949966, 0.025520075112581253, 0.02063155360519886, -0.07865530997514725, -0.012660272419452667, 0.024442605674266815, -0.02901187725365162, 0.0850004106760025, 0.023365136235952377, 0.024342840537428856, 0.0006746657891198993, -0.020491883158683777, 0.05938056856393814, 0.004250020254403353, -0.03607529029250145, -0.08017174899578094, -0.03453889861702919, 0.03376072645187378, -0.015154415741562843, 0.021469587460160255, -0.02228766493499279, 0.033940304070711136, -0.01711980067193508, -0.03417974337935448, 0.031067050993442535, -0.05108005926012993, -0.03429945930838585, 0.026996608823537827, 0.005397326312959194, 0.030947331339120865, 0.08587834984064102, 0.03543679043650627, -0.01501474343240261, 0.0066543747670948505, 0.0038459692150354385, 0.00048635798157192767, 0.0041776904836297035, -0.007407606113702059, -0.018336942419409752, 0.01307928841561079, -0.012620366178452969, -0.0033770701847970486, -0.07757783681154251, 0.0014478502562269568, 0.03166564553976059, 0.05399321764707565, 0.044615238904953, -0.023045886307954788, 0.016940223053097725, 0.03066798858344555, 0.06568576395511627, 0.014845142140984535, 0.0020364681258797646, -0.07809662073850632, 0.016601018607616425, -0.0238240584731102, 0.06923741847276688, -0.019673803821206093, 0.04940399155020714, 0.0038434751331806183, -0.0006515949498862028, 0.014396196231245995, 0.02073132060468197, -0.048047177493572235, -0.00358408410102129, 0.002778475871309638, 0.06971629709005356, 0.03850957378745079, -0.03246377035975456, -0.0001850342669058591, -0.005856249015778303, -0.01170252077281475, -0.018716052174568176, 0.01290968619287014, -0.042420390993356705, 0.0392877459526062, -0.026976656168699265, 0.006250323262065649, 0.045972052961587906, 0.03637458756566048, -0.010026456788182259, -0.003474341705441475, -0.053793687373399734, -0.016501253470778465, -0.028772437945008278, 0.04481476917862892, -0.08220696449279785, 0.00016866644727997482, 0.03364100679755211, 0.038010746240615845, 0.012570482678711414, -0.05538993701338768, 0.0237442459911108, -0.021150335669517517, -0.06604491919279099, 0.05395331233739853, -0.007302851881831884, 0.0780567154288292, 0.0777374655008316, -0.0252606850117445, 0.02206818200647831, 0.02769496850669384, 0.05618806183338165, 0.07733839750289917, -0.06245335191488266, -0.012480693869292736, -0.010445472784340382, 0.07594168186187744, 0.01635160483419895, -0.003943240735679865, -0.01312917098402977, -0.007093343883752823, 0.07394636422395706, -0.03479829058051109, -0.05614815652370453, 0.01290968619287014, -0.025420309975743294, 0.03158583119511604, -0.02017263136804104, 0.004287432413548231, 0.0399661548435688, 0.022367479279637337, 0.04050488770008087, -0.010664957575500011, 0.09369998425245285, 0.01832696609199047, 0.07909427583217621, 0.012700178660452366, 0.021230148151516914, 0.015333994291722775, -0.019035302102565765, -0.016471322625875473, 0.03441917896270752, -0.006504726130515337, 0.05088052526116371, 0.021589305251836777, -0.048605866730213165, -0.045972052961587906, -0.004581741522997618, 0.017957832664251328, 0.05283593386411667, -0.02713628113269806, -0.015653245151042938, -0.01821722276508808, 0.017269449308514595, -0.001590016414411366, 0.014236570335924625, -0.07027498632669449, -0.003067796351388097, -0.029111642390489578, 0.020102795213460922, 0.06516698002815247, -0.05040165036916733, 0.049044836312532425, 0.012520600110292435, -0.03908821567893028, -0.019374506548047066, -0.042420390993356705, 0.06424913555383682, 0.028333470225334167, -0.016481298953294754, -0.035716135054826736, -0.05263640359044075, -0.023764198645949364, 0.0390283577144146, 0.00427246792241931, -0.04301898553967476, -0.023105744272470474, 0.03992624953389168, 0.026218436658382416, 0.004267479293048382, -0.057664595544338226, 0.0327032096683979, 0.07095339149236679, -0.020691413432359695, 0.06768107414245605, 0.026617499068379402, -0.05287583917379379, 0.03212456777691841, 0.01851652003824711, 0.010495355352759361, 0.0057664597406983376, -0.01339853834360838, -0.029869861900806427, -0.011672590859234333, 0.07027498632669449, 0.052676308900117874, -0.0024430134799331427, -0.007158191874623299, -0.00953760463744402, 0.03142620623111725, -0.05814347043633461, -0.012271185405552387, 0.01865619234740734, -0.07358720898628235, 0.0662444531917572, 0.07207076996564865, 0.012899709865450859, -0.022766541689634323, -0.04473495855927467, 0.039227887988090515, -0.04405654966831207, 0.01307928841561079, -0.08970934897661209, 0.00035323307383805513, 0.01428645383566618, -0.052796028554439545, -0.012231279164552689, -0.019613943994045258, -0.005080570001155138, 0.04361758008599281, 0.046849992126226425, 0.029630424454808235, 0.0028059114702045918, 0.013059334829449654, 0.03719266876578331, 0.038130465894937515, -0.0310071911662817, 0.014665563590824604, -0.021210195496678352, 0.03821027651429176, -0.05139930918812752, 0.052676308900117874, 0.011303458362817764, -0.02294611930847168, -0.004259997047483921, -0.0995263010263443, 0.03222433477640152, 0.025959044694900513, 0.04645092785358429, -0.05507068708539009, -0.0281339380890131, -0.029710236936807632, -0.006300206296145916, 0.012570482678711414, 0.011892075650393963, -0.015563455410301685, -0.061296068131923676, 0.05531012639403343, 0.07466467469930649, -0.013478350825607777, 0.08128912001848221, -0.03479829058051109, 0.009437838569283485, -0.0562678761780262, 0.03785112127661705, -0.005691635422408581, -0.025001293048262596, 0.0001694458769634366, -0.010131211020052433, -0.021389774978160858, 0.008130908012390137, 0.054232653230428696, 0.005751494783908129, 0.03850957378745079, 0.02438274584710598, 0.002214799402281642, -0.017678488045930862, -0.080770343542099, -0.0248416680842638, -0.07099329680204391, -0.05834300443530083, 0.007108308840543032, -0.015733057633042336, -0.0339602567255497, -0.023923823609948158, -0.03318208456039429, 0.013957226648926735, -0.01987333409488201, 0.04844624176621437, 0.052716214209795, -0.04944390058517456, 0.025739559903740883, -0.041542451828718185, 0.018576379865407944, 0.016411464661359787, -0.020142702385783195, -0.047049522399902344, 0.04389692470431328, -0.03166564553976059, -0.06612472981214523, -0.007233016192913055, 0.019125092774629593, -0.008993880823254585, 0.05231715366244316, 0.0223874319344759, -0.008071048185229301, -0.024761855602264404, -0.005995920859277248, -0.030189111828804016, 0.012121536768972874, 0.002698663156479597, 0.008091001771390438, 0.024861622601747513, -0.03400016203522682, 0.03390039876103401, -0.029810002073645592, 0.06009887903928757, 0.0729886144399643, -0.010026456788182259, -0.01645136997103691, 0.021210195496678352, 0.0024941435549408197, -0.0026263331528753042, 0.03773140162229538, -0.044295988976955414, -0.0196438729763031, 0.0066643510945141315, 0.004851108882576227, 0.020013006404042244, 0.01236097514629364, -0.008669642731547356, 0.04940399155020714, -0.05774440988898277, 0.017399145290255547, 0.04824671149253845, 0.012021771632134914, 0.03950723260641098, -0.023105744272470474, 0.031605783849954605, -0.011123879812657833, 0.034139834344387054, -0.048486147075891495, -0.05307537317276001, 0.058981504291296005, 0.05123968422412872, -0.059420473873615265, -0.04712933301925659, 0.03358114883303642, 0.0036115196999162436, 0.09625398367643356, -0.022547056898474693, 0.015942564234137535, -0.020771225914359093, -0.07510364800691605, -0.01008631568402052, 0.04952371120452881, -0.028732532635331154, -0.07769755274057388, 0.011682568117976189, -0.0403851717710495, 0.017618630081415176, -0.018716052174568176, -0.013608046807348728, 0.022247759625315666, 0.0008835503249429166, 0.013737741857767105, -0.0032498689834028482, 0.0049384040758013725, 0.031845223158597946, 0.018726028501987457, -0.03631472960114479, 0.0110241137444973, 0.03254358470439911, -0.036913324147462845, -0.033601101487874985, 0.02637806162238121, 0.035356976091861725, 0.00642990181222558, -0.011083973571658134, 0.037791259586811066, 0.008589830249547958, 0.02218789979815483, 0.0008548676851205528, 0.049723245203495026, 0.053115278482437134, 0.0068688709288835526, 0.025998951867222786, 0.0017059941310435534, -0.05355424806475639, -0.08627741038799286, -0.001604981254786253, -0.002763510914519429, 0.012241256423294544, 0.012111560441553593, -0.053234998136758804, -0.027395671233534813, 0.06369044631719589, -0.006599503569304943, 0.022666774690151215, -0.01339853834360838, -0.014356289990246296, -0.008754443377256393, 0.023444948717951775, -0.007267933804541826, 0.0454532690346241, 0.028213750571012497, -0.00692374212667346, -0.04988287016749382, 0.009168471209704876, 0.0021748931612819433, 0.006444866769015789, -0.03862929344177246, -0.0327032096683979, 0.014276477508246899, -0.021329915151000023, -0.008415239863097668, 0.016511229798197746, 0.005896155256778002, 0.01008631568402052, -0.014875071123242378, 0.034918006509542465, -0.02571960724890232, -0.034598756581544876, -0.020252443850040436, -0.02681702934205532, -0.05347443372011185, 0.01887567713856697, 0.00620542885735631, -0.029810002073645592, -0.013608046807348728, -0.03948727995157242, 0.07023508101701736, -0.03980652987957001, -0.02713628113269806, -0.03188512846827507, 0.029929721727967262, 0.04820680618286133, -0.06237353757023811, 0.05682656541466713, -0.002350730122998357, 0.004918450955301523, -0.0353170707821846, 0.05574909597635269, -0.011433153413236141, -0.05934065952897072, -0.024642137810587883, 0.05183827877044678, -0.059859443455934525, 0.011243598535656929, 0.03078770637512207, 0.028533000499010086, -0.026657404378056526, 0.006873859092593193, 0.02691679634153843, 0.011931981891393661, 0.012550530023872852, 0.007188121322542429, 0.00427995016798377, 0.003137632505968213, 0.005162877030670643, -0.04581242799758911, -0.03112691082060337, -0.0009851866634562612, 0.012321068905293941, -0.017059940844774246, -0.04293917492032051, -0.03212456777691841, -0.02152944542467594, 0.02747548371553421, 0.11508975178003311, 0.021270055323839188, -0.002431789878755808, -0.009806971997022629, -0.008485076017677784, 0.0317654125392437, 0.011832216754555702, -0.03242386505007744, 0.04537345841526985, -0.07745812088251114, -0.014974837191402912, -0.0034119882620871067, 0.0031750446651130915, 0.03388044610619545, 0.0034643651451915503, -0.03631472960114479, 0.02150949276983738, 0.031166816130280495, 0.04836643114686012, 0.024582277983427048, -0.021389774978160858, -0.03842976316809654, 0.003274810267612338, -0.003087749471887946, 0.004681507125496864, 0.012380927801132202, 0.009846878238022327, 0.001698511652648449, -0.00975708942860365, 0.013837507925927639, 0.03842976316809654, 0.03809055685997009, -0.01501474343240261, 0.012879756279289722, -0.054352372884750366, -0.012710154987871647, 0.008839244022965431, 0.00810596626251936, 0.006953672040253878, 0.05546975135803223, 0.010305800475180149, -0.031047098338603973, -0.02448251284658909, -0.0249214805662632, 0.0015164392534643412, -0.017568746581673622, -0.049284275621175766, 0.012550530023872852, -0.008205732330679893, 0.01798776164650917, 0.006414936855435371, 0.035795945674180984, -0.09298166632652283, -0.0483265221118927, -0.05263640359044075, 0.020551741123199463, 0.0032049743458628654, 0.0109842075034976, 0.01777825504541397, -0.05926084890961647, -0.005287583917379379, -0.01429643016308546, 0.03136634826660156, 0.024662090465426445, -0.018476614728569984, 0.006529667414724827, 0.05072090029716492, -0.009976574219763279, -0.022986026480793953, 0.01730935461819172, 0.02925131469964981, -0.004781273193657398, -0.0348980538547039, -0.02360457368195057, 0.021010665223002434, -0.0034244589041918516, 0.033381614834070206, -0.07119283080101013, -0.03761168196797371, -0.030528316274285316, 0.01708987168967724, -0.054352372884750366, 0.006175498943775892, -0.013737741857767105, -0.042540110647678375, -0.011123879812657833, 0.0281339380890131, 0.05443218722939491, 0.000631953589618206, 0.028952017426490784, 0.01708987168967724, -0.004334821365773678, 0.019344575703144073, 0.02140972763299942, 0.0017147236503660679, -0.006300206296145916, 0.03842976316809654, -0.020222514867782593, 0.027515390887856483, -0.007686950266361237, -0.04509411379694939, 0.058422815054655075, -0.021349867805838585, 0.036155104637145996, 0.034598756581544876, -0.04034526273608208, -0.037132807075977325, -0.03485814854502678, -0.0010338224237784743, -0.023325229063630104, 0.012750061228871346, -0.021010665223002434, 0.03431941196322441, 0.0317654125392437, -0.008145872503519058, 0.02835342288017273, -0.02450246550142765, 0.014725422486662865, 0.039666857570409775, -0.0018481602892279625, -0.0028483117930591106, 0.03950723260641098, 0.01907520927488804, 0.03154592588543892, -0.00971718318760395, -0.03012925200164318, -0.007223039399832487, 0.047288957983255386, -0.04082414135336876, -0.034060023725032806, 0.029550611972808838, -0.05167865380644798, 0.06468810141086578, 0.02801421843469143, 0.0220482274889946, 0.040764279663562775, 0.05487115681171417, -0.05878197401762009, 0.03258349001407623, -0.06392988562583923, -0.06221391260623932, -0.10008499026298523, 0.01213151402771473, -0.032942645251750946, 0.06209419667720795, 0.017858067527413368, -0.016301721334457397, 0.0046565658412873745, 0.007178144995123148, 0.0012757544172927737 ]
714,903
pytorch_optimizer.optimizer.adabound
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, final_lr: float = 1e-1, betas: BETAS = (0.9, 0.999), gamma: float = 1e-3, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'final_lr': final_lr, 'gamma': gamma, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'ams_bound': ams_bound, 'adam_debias': adam_debias, 'eps': eps, } super().__init__(params, defaults) self.base_lrs: List[float] = [group['lr'] for group in self.param_groups]
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, final_lr: float = 0.1, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), gamma: float = 0.001, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ 0.007992472499608994, -0.033163946121931076, -0.0298514012247324, 0.00981244444847107, -0.047184474766254425, -0.017804916948080063, -0.07491739094257355, -0.05457991734147072, -0.036611299961805344, 0.0261729396879673, -0.03738166019320488, 0.03266321122646332, 0.016967151314020157, 0.07826845347881317, -0.04471932724118233, 0.05130589380860329, 0.023650014773011208, 0.019037490710616112, -0.0005145755712874234, -0.008319874294102192, -0.0072028543800115585, -0.011208719573915005, -0.04175344482064247, 0.11401309818029404, 0.016456788405776024, 0.022378921508789062, -0.0033342090900987387, -0.002465147990733385, -0.02848401479423046, 0.015792354941368103, 0.009278008714318275, -0.014636816456913948, 0.0040443832986056805, 0.058046530932188034, 0.042562320828437805, -0.02422778308391571, -0.010881317779421806, 0.012576106935739517, -0.10161031782627106, 0.0535784512758255, 0.0608583427965641, -0.048532601445913315, 0.05650581419467926, -0.04776224493980408, -0.013134616427123547, -0.005344363860785961, 0.0474541001021862, 0.04190751537680626, -0.02740551345050335, -0.024805551394820213, 0.013760533183813095, -0.03530168905854225, 0.028175871819257736, -0.02193596586585045, -0.0548110269010067, 0.046568188816308975, 0.051691073924303055, 0.043525271117687225, 0.040482353419065475, 0.0004826779186259955, 0.013731644488871098, -0.039153482764959335, 0.011882783845067024, -0.014810146763920784, 0.004494561813771725, -0.0038493864703923464, -0.10330510884523392, -0.024535926058888435, 0.01442496757954359, 0.0560435988008976, 0.09074826538562775, -0.011054648086428642, -0.019393781200051308, 0.029543258249759674, -0.006572123151272535, 0.010293918661773205, -0.07141225785017014, -0.05527324229478836, -0.05153699964284897, -0.017930099740624428, 0.056582849472761154, 0.05407918617129326, -0.018180467188358307, -0.05165255442261696, 0.0029755106661468744, -0.04845556616783142, -0.04179196432232857, -0.05823912099003792, 0.032066185027360916, -0.0014901626855134964, -0.06151314824819565, -0.023746307939291, 0.027001075446605682, -0.000043106989323860034, 0.06748342514038086, 0.01109316572546959, -0.005849911831319332, -0.0511518232524395, 0.009099862538278103, -0.037208329886198044, -0.026115162298083305, -0.005748802330344915, -0.038344606757164, 0.0041888258419930935, 0.027328476309776306, -0.033318016678094864, -0.0511518232524395, -0.037323880940675735, 0.03333727642893791, -0.04568227380514145, -0.03742017596960068, 0.06521087139844894, -0.044026002287864685, 0.043525271117687225, -0.054849542677402496, 0.034030597656965256, 0.013028692454099655, 0.015869390219449997, -0.000011820568033726886, 0.015956055372953415, 0.03919200226664543, 0.02461296319961548, -0.029678070917725563, 0.0474541001021862, 0.035359468311071396, -0.00309106451459229, 0.011979078873991966, 0.008685794658958912, 0.012248704209923744, -0.04290898144245148, 0.04283194616436958, -0.0023038540966808796, -0.053039200603961945, -0.031469155102968216, 0.03505132347345352, -0.0401742085814476, 0.0035532796755433083, 0.04776224493980408, -0.04441118240356445, 0.020241176709532738, 0.05993391200900078, 0.031141752377152443, 0.03616834431886673, -0.023958157747983932, -0.012845732271671295, 0.01754492148756981, 0.009696890600025654, -0.028657345101237297, -0.012816843576729298, 0.036495745182037354, 0.030756574124097824, -0.012027226388454437, -0.01022651232779026, 0.036977220326662064, -0.003165693022310734, -0.04691484943032265, 0.0328558012843132, -0.015089401975274086, -0.009225046262145042, 0.0032066183630377054, -0.0359564945101738, 0.005373252555727959, 0.018613792955875397, -0.038344606757164, -0.00392401497811079, 0.016052350401878357, -0.031199529767036438, 0.0013204431161284447, -0.008228394202888012, -0.020780427381396294, -0.0015840502455830574, -0.090131975710392, -0.03520539402961731, 0.021011535078287125, -0.01358720287680626, 0.054733991622924805, 0.030852869153022766, -0.0042297509498894215, -0.00663952948525548, -0.007544700987637043, 0.06675158441066742, -0.011420568451285362, -0.016466418281197548, -0.08204320818185806, 0.015147179365158081, 0.011853895150125027, -0.04217714071273804, 0.05823912099003792, -0.051806624978780746, 0.016456788405776024, 0.050843678414821625, 0.00944652408361435, 0.007149892393499613, 0.01254721824079752, -0.02118486538529396, 0.023303352296352386, 0.03859497234225273, 0.008676165714859962, 0.014646446332335472, 0.0706033781170845, 0.053385861217975616, 0.022436698898673058, 0.002905696863308549, -0.021858930587768555, 0.02205151878297329, -0.013885716907680035, -0.01772788166999817, 0.012662772089242935, -0.012104261666536331, -0.023284094408154488, -0.00377716519869864, -0.022706324234604836, 0.046568188816308975, 0.02763662114739418, -0.0023580200504511595, -0.039866067469120026, -0.014116824604570866, 0.0280025415122509, 0.02230188623070717, 0.005151774268597364, 0.08789793401956558, -0.03971199318766594, 0.004362156614661217, -0.015792354941368103, 0.04129122942686081, 0.01905675046145916, 0.05369400605559349, -0.04860963672399521, -0.07218261808156967, 0.038672011345624924, -0.011256867088377476, -0.05384807661175728, -0.030236581340432167, -0.0016153460601344705, 0.01999080926179886, 0.014906441792845726, -0.027347736060619354, 0.028580309823155403, -0.10176439583301544, -0.032451361417770386, 0.04275491088628769, 0.040482353419065475, -0.015378287062048912, -0.00624472089111805, -0.0004185816505923867, -0.002616812475025654, 0.026230715215206146, 0.027675138786435127, -0.03747795522212982, -0.020375989377498627, -0.0414452999830246, -0.0025782943703234196, -0.006302497815340757, 0.04918740689754486, -0.05531175807118416, 0.0038999412208795547, 0.014752370305359364, 0.0014372005825862288, 0.035744644701480865, -0.011227979324758053, 0.004561968147754669, -0.009557262994349003, -0.026018867269158363, 0.09298229962587357, 0.009586151689291, 0.038286831229925156, 0.002477184869349003, -0.005243254359811544, 0.032470621168613434, 0.0018151578260585666, 0.1338883489370346, 0.036091309040784836, -0.019143415614962578, -0.001089937286451459, -0.0011519270483404398, -0.003825312713161111, -0.00597028061747551, -0.04210010543465614, -0.010862058959901333, 0.04236973077058792, 0.052538465708494186, -0.04198455065488815, 0.00428993534296751, 0.0003821701684501022, 0.02314927987754345, 0.008064692839980125, -0.01547458115965128, 0.018767865374684334, 0.0027323663234710693, 0.011237608268857002, -0.0001775436248863116, -0.0003571936977095902, 0.06898562610149384, 0.02251373417675495, 0.10877465456724167, -0.015195326879620552, 0.03559057414531708, 0.00015783327398821712, 0.04556671902537346, -0.009427265264093876, 0.03505132347345352, -0.040597908198833466, 0.06278423964977264, -0.00488455593585968, -0.04344823583960533, -0.04148381948471069, 0.030833609402179718, 0.018613792955875397, 0.044141557067632675, 0.04082901403307915, 0.03455059230327606, 0.035147618502378464, 0.06744491308927536, 0.002398945391178131, 0.038440901786088943, -0.05927910655736923, 0.01974044367671013, -0.061320558190345764, 0.03584093973040581, 0.03570612892508507, -0.006899525877088308, 0.03433874249458313, 0.009850963018834591, -0.03179655969142914, -0.04248528555035591, -0.057545799762010574, 0.018286390230059624, 0.03347208723425865, -0.027463288977742195, -0.014126453548669815, -0.05708358436822891, 0.0009406802710145712, 0.012296851724386215, -0.022128555923700333, -0.04857112094759941, -0.00925393495708704, 0.002194318687543273, 0.03851793706417084, 0.010419102385640144, -0.04980369284749031, 0.08119581639766693, -0.026384787634015083, -0.02218633145093918, 0.03944236785173416, -0.017034558579325676, -0.033568382263183594, 0.0005239041638560593, -0.01631234586238861, 0.02933141030371189, -0.01546495221555233, -0.019596001133322716, 0.0037266104482114315, 0.0044632661156356335, 0.09275119751691818, 0.031103234738111496, -0.0028406979981809855, -0.020029326900839806, -0.005508065223693848, 0.033529866486787796, -0.036495745182037354, 0.0009135973523370922, 0.010342066176235676, -0.05685247480869293, 0.05334734544157982, 0.03641870990395546, -0.016668638214468956, -0.0009659576462581754, -0.043794896453619, 0.04733854532241821, -0.0036929072812199593, 0.025614429265260696, -0.06856192648410797, -0.016052350401878357, -0.009042086079716682, 0.010669468902051449, -0.0018211762653663754, -0.039750512689352036, 0.005214365664869547, 0.02459370344877243, -0.010438361205160618, -0.0006355459918268025, -0.0013421094045042992, 0.05612063407897949, 0.024747775867581367, 0.0014155341777950525, -0.03919200226664543, 0.01656271331012249, 0.01144945714622736, 0.07322259992361069, 0.008040620014071465, 0.006292867939919233, -0.0031488414388149977, 0.025113696232438087, -0.015416804701089859, -0.046452634036540985, 0.03601427376270294, 0.029158079996705055, 0.0371120348572731, -0.04907185211777687, -0.049996282905340195, -0.019875256344676018, -0.05130589380860329, -0.010005034506320953, 0.02640404738485813, 0.004682336933910847, -0.02299520932137966, 0.03620686009526253, 0.03738166019320488, 0.01040947251021862, 0.0621294341981411, -0.024285560473799706, -0.012710919603705406, -0.03143063932657242, -0.0072943344712257385, -0.03322172164916992, -0.026962555944919586, -0.002814216772094369, -0.0028262536507099867, 0.033163946121931076, -0.009706520475447178, 0.02763662114739418, 0.014473115094006062, 0.06987153738737106, 0.015012366697192192, 0.061667218804359436, 0.05781542509794235, -0.03813275694847107, 0.0028575495816767216, -0.01782417669892311, -0.0719129890203476, -0.044257111847400665, 0.004087716341018677, -0.033318016678094864, -0.02898474782705307, 0.014704222790896893, 0.017015298828482628, -0.009369488805532455, 0.016110127791762352, 0.009586151689291, -0.02630775235593319, 0.014328672550618649, -0.06124352291226387, 0.006201387848705053, -0.02484407089650631, -0.04911037161946297, -0.0261729396879673, 0.016408640891313553, 0.00018235835887026042, -0.05373252183198929, -0.00474733579903841, 0.0182575024664402, 0.01552272867411375, 0.03616834431886673, -0.0280217994004488, -0.011584269814193249, -0.038440901786088943, -0.006658788770437241, -0.019933033734560013, 0.042446766048669815, -0.011834636330604553, 0.04649114981293678, -0.011825007386505604, -0.011016130447387695, 0.0018777494551613927, -0.04421859234571457, 0.023958157747983932, 0.07695884257555008, -0.010525026358664036, -0.018816012889146805, 0.0020378397312015295, -0.0038566086441278458, 0.027366995811462402, 0.04333268105983734, -0.02898474782705307, -0.05142144858837128, 0.01873897761106491, 0.00008606351912021637, -0.019268598407506943, -0.01479088794440031, -0.020664874464273453, 0.010688727721571922, -0.04063642397522926, 0.024189265444874763, 0.07137373834848404, 0.00143118214327842, 0.0019018232123926282, -0.05434881150722504, 0.01291313860565424, -0.0068321190774440765, 0.04676077514886856, -0.08065656572580338, -0.017554549500346184, 0.020915240049362183, 0.06925525516271591, -0.037920910865068436, -0.013953123241662979, 0.0426393561065197, 0.024324078112840652, 0.040482353419065475, 0.022860396653413773, 0.01637975312769413, -0.042446766048669815, -0.03154619038105011, -0.03168100491166115, 0.037323880940675735, -0.04964962229132652, -0.09814370423555374, -0.005989539436995983, -0.02861882746219635, 0.018883418291807175, -0.021974483504891396, -0.010852429084479809, -0.02424704283475876, 0.00908060371875763, -0.04179196432232857, -0.015378287062048912, -0.04575930908322334, 0.04614448919892311, -0.004249010235071182, -0.01715974137187004, 0.03982754796743393, 0.052538465708494186, 0.04040531814098358, -0.03520539402961731, 0.006562493741512299, 0.04606745392084122, 0.012065744027495384, -0.04005865380167961, 0.06555753201246262, 0.015262733213603497, -0.006774342153221369, -0.061320558190345764, -0.03994310274720192, 0.03433874249458313, 0.0013011840637773275, 0.051806624978780746, 0.01747751422226429, -0.0273862536996603, -0.038440901786088943, -0.033318016678094864, 0.010919835418462753, 0.021281160414218903, 0.020279694348573685, -0.03923052176833153, -0.014579039998352528, 0.012296851724386215, -0.02522924914956093, 0.06798416376113892, -0.03626463934779167, -0.015570876188576221, 0.025402579456567764, -0.02145449072122574, -0.04891778156161308, 0.017371589317917824, 0.016004202887415886, -0.006379533559083939, 0.016687896102666855, -0.0005967271281406283, 0.04830149561166763, 0.026230715215206146, -0.012807214632630348, 0.00789136253297329, -0.007424332667142153, 0.012104261666536331, -0.022687066346406937, -0.010833170264959335, 0.0012638698099181056, -0.015060514211654663, -0.06767601519823074, 0.025171471759676933, -0.0007486924296244979, -0.017949359491467476, -0.007361740805208683, -0.0045523387379944324, -0.03955792263150215, 0.020010069012641907, -0.003028472885489464, 0.028830677270889282, -0.05165255442261696, -0.041329748928546906, 0.026134420186281204, -0.02203226089477539, -0.09067122638225555, -0.07588034123182297, 0.023572977632284164, 0.011853895150125027, -0.054233256727457047, 0.0026288493536412716, -0.010881317779421806, 0.021396715193986893, -0.0027829210739582777, 0.07622700184583664, -0.015320509672164917, -0.026577377691864967, -0.04537413269281387, 0.016967151314020157, -0.032817281782627106, -0.026692930608987808, 0.02445889078080654, 0.05261550471186638, -0.06887007504701614, -0.011574639938771725, 0.026269232854247093, 0.019692296162247658, 0.004013087600469589, -0.01962488889694214, -0.015801984816789627, 0.04887926205992699, 0.004670300055295229, -0.03753573074936867, 0.00633620098233223, -0.021858930587768555, 0.00986059196293354, -0.029543258249759674, -0.0066491588950157166, -0.04163789004087448, -0.05785394459962845, 0.02607664465904236, 0.09922220557928085, -0.007607292849570513, -0.002356816316023469, -0.021704858168959618, -0.018430832773447037, 0.048417046666145325, -0.07041078805923462, -0.025652946904301643, 0.010120588354766369, -0.134042426943779, 0.013558314181864262, -0.030005473643541336, 0.03189285099506378, -0.016389383003115654, -0.012999803759157658, -0.05196069926023483, 0.009846148081123829, 0.019345633685588837, 0.022224850952625275, 0.019066378474235535, 0.02603812702000141, -0.01569605991244316, 0.009427265264093876, 0.04075197875499725, -0.015580506063997746, -0.006191758438944817, -0.0008022564579732716, -0.03144989535212517, -0.01925896853208542, 0.004824371542781591, 0.061320558190345764, 0.036457229405641556, -0.01999080926179886, 0.05500361695885658, -0.03141137957572937, -0.00520473625510931, -0.01437682006508112, -0.021396715193986893, 0.012662772089242935, 0.043294161558151245, 0.055696938186883926, -0.020607097074389458, -0.03620686009526253, -0.02717440575361252, 0.04818594083189964, -0.0008859125664457679, -0.022090038284659386, -0.005248068831861019, -0.038421642035245895, -0.005402140785008669, -0.02948548085987568, -0.006576938088983297, -0.06135907396674156, -0.024420373141765594, -0.033934302628040314, 0.008724313229322433, 0.0028744011651724577, 0.028406979516148567, -0.05130589380860329, -0.04664522409439087, 0.025402579456567764, -0.005281772464513779, 0.04834001138806343, 0.04437266290187836, -0.016389383003115654, -0.04005865380167961, 0.018286390230059624, -0.00392401497811079, -0.07118114829063416, 0.03959644213318825, -0.010342066176235676, -0.03200840577483177, -0.05457991734147072, -0.01040947251021862, 0.028580309823155403, -0.0024073710665106773, 0.017352331429719925, -0.013182763941586018, -0.06675158441066742, -0.08366096019744873, 0.017698992043733597, -0.02045302465558052, -0.022860396653413773, -0.009773926809430122, -0.06686714291572571, 0.07118114829063416, -0.02775217406451702, 0.04225417971611023, 0.012932397425174713, 0.002831068355590105, 0.013779792003333569, -0.052307359874248505, 0.036957960575819016, 0.044873397797346115, 0.030486948788166046, -0.07876918464899063, -0.012007967568933964, 0.040482353419065475, 0.04964962229132652, -0.012085002847015858, -0.04575930908322334, 0.007602477911859751, -0.02605738490819931, -0.002408574800938368, 0.04818594083189964, -0.009244305081665516, 0.01436719112098217, -0.06363163143396378, -0.01800713688135147, 0.013673868030309677, 0.052307359874248505, -0.027116628363728523, 0.03982754796743393, 0.045065987855196, -0.04233121499419212, 0.0069717466831207275, -0.005031405482441187, -0.036861665546894073, 0.04233121499419212, 0.005426214542239904, 0.037920910865068436, 0.06563456356525421, 0.02522924914956093, 0.04129122942686081, -0.03383800759911537, -0.001158547354862094, -0.01400127075612545, 0.05311623588204384, -0.017121223732829094, -0.022590771317481995, 0.08019434660673141, -0.030024733394384384, 0.0031969889532774687, -0.020260434597730637, 0.01937452331185341, 0.035359468311071396, 0.060203537344932556, -0.0450274683535099, 0.03508984297513962, -0.019576741382479668, -0.05977984145283699, -0.0925200879573822, -0.015484211035072803, -0.051459964364767075, 0.08304467797279358, 0.02153152786195278, 0.008252467960119247, 0.030005473643541336, 0.03543650358915329, -0.007833586074411869 ]
714,906
pytorch_optimizer.optimizer.adabound
__str__
null
def __str__(self) -> str: return 'AdaBound'
(self) -> str
[ -0.013849184848368168, -0.020647261291742325, -0.002745377365499735, -0.020613525062799454, -0.024898167699575424, -0.024290896952152252, 0.004803356248885393, 0.0022498599719256163, 0.039000384509563446, -0.10472074896097183, -0.07152319699525833, -0.0033842783886939287, 0.0021275619510561228, -0.020141201093792915, -0.028322510421276093, 0.009724793024361134, 0.010357367806136608, -0.022975139319896698, -0.006081158295273781, -0.022958271205425262, -0.01319130603224039, 0.004727446939796209, 0.00441959360614419, -0.013115396723151207, -0.0031797457486391068, 0.05677996948361397, -0.007536082062870264, -0.013267215341329575, -0.014169689267873764, 0.004799138754606247, -0.02840685285627842, -0.09244035184383392, 0.015746910125017166, -0.010947772301733494, 0.0018091656966134906, -0.022199179977178574, 0.0164806991815567, -0.02041110023856163, -0.04659128934144974, -0.0006984687061049044, 0.001986286835744977, -0.01655660755932331, -0.03235412389039993, -0.010509186424314976, 0.012027367018163204, -0.021153321489691734, 0.011015246622264385, 0.024999380111694336, -0.0035044678952544928, 0.0002633095136843622, -0.0273947324603796, -0.0030785338021814823, -0.00195676670409739, 0.040484827011823654, -0.009294641204178333, 0.043757349252700806, 0.027462206780910492, 0.041530683636665344, -0.023548673838377, 0.009699489921331406, -0.050774719566106796, -0.0300937220454216, 0.025893419981002808, -0.09392479807138443, 0.020495444536209106, 0.03012745827436447, -0.058163199573755264, 0.030734730884432793, 0.028002005070447922, 0.03208422660827637, 0.06285269558429718, -0.04827815666794777, 0.012845498509705067, 0.031915538012981415, -0.004778053145855665, -0.025842813774943352, -0.03798826411366463, 0.059344008564949036, 0.03765089064836502, -0.05799451470375061, 0.042610280215740204, 0.013629891909658909, 0.0015951443929225206, -0.01217075064778328, 0.0032113746274262667, -0.08346621692180634, -0.07732602208852768, -0.01260090246796608, 0.022958271205425262, -0.04304886609315872, -0.01655660755932331, -0.013343124650418758, -0.03203361853957176, 0.08069975674152374, -0.01828564703464508, 0.014068477787077427, 0.01432994194328785, -0.053946033120155334, 0.00883918721228838, 0.003082750830799341, -0.0070342388935387135, 0.010230853222310543, -0.010213984176516533, 0.04520805552601814, -0.038460586220026016, -0.05266401171684265, -0.014886608347296715, -0.005220855586230755, -0.03849432244896889, 0.03154442831873894, -0.0016468046233057976, -0.022047361359000206, 0.021085847169160843, -0.014954082667827606, -0.011167064309120178, 0.014886608347296715, 0.020394232124090195, -0.021372614428400993, 0.008940399624407291, 0.011436963453888893, 0.05090966820716858, -0.03815694898366928, -0.02390291728079319, -0.022081099450588226, 0.027310390025377274, 0.09217045456171036, -0.05263027548789978, -0.0033906041644513607, -0.007865021005272865, -0.05475572869181633, 0.08204925060272217, -0.013326255604624748, -0.08744722604751587, -0.007127016317099333, 0.07428965717554092, -0.009640449658036232, 0.0802949070930481, 0.035221800208091736, 0.004841310437768698, 0.12354619801044464, 0.00912595447152853, 0.021794332191348076, 0.05384482070803642, -0.017197616398334503, 0.03954017907381058, 0.005111209582537413, -0.05198926478624344, 0.040484827011823654, 0.010053732432425022, -0.008387950249016285, 0.007527647539973259, 0.007514995988458395, 0.00018898191046901047, 0.025859683752059937, -0.02678745985031128, 0.00599259790033102, -0.009210297837853432, -0.05158441513776779, 0.02977321669459343, -0.04618643969297409, -0.032995134592056274, -0.020613525062799454, -0.044735733419656754, -0.041058361530303955, -0.017079535871744156, 0.004124391824007034, 0.0015487554483115673, 0.007911410182714462, 0.00448285136371851, 0.006954112555831671, -0.04561290517449379, -0.08663752675056458, -0.07631389796733856, 0.0621442086994648, 0.0069878497160971165, 0.0002169206563849002, 0.0026125365402549505, 0.09642136096954346, 0.027664631605148315, -0.028389984741806984, 0.0663951188325882, 0.036267656832933426, -0.05144946649670601, -0.008143354207277298, 0.02854180335998535, -0.054924413561820984, 0.02707422710955143, 0.0306672565639019, 0.014431154355406761, 0.0005656278808601201, 0.035694122314453125, 0.01815069653093815, -0.02181120030581951, -0.0380220003426075, -0.002696879906579852, -0.03365301340818405, -0.004997345618903637, -0.019027868285775185, -0.01669999025762081, 0.021625645458698273, -0.010087469592690468, 0.020039988681674004, -0.04959391430020332, 0.04250906780362129, 0.0763813704252243, 0.03751593828201294, 0.039000384509563446, -0.03161190077662468, -0.003162877168506384, -0.07165814191102982, -0.007363177835941315, 0.0034833820536732674, -0.013064791448414326, 0.022738978266716003, 0.028457459062337875, -0.03545796126127243, -0.021473826840519905, -0.0037343036383390427, 0.020967766642570496, 0.02663564309477806, 0.04497189447283745, -0.035188060253858566, 0.044836945831775665, -0.049155328422784805, -0.010753782466053963, 0.018994132056832314, 0.023059481754899025, 0.011411660350859165, 0.012482821941375732, 0.0048961336724460125, 0.002496564295142889, -0.025876551866531372, -0.019145948812365532, 0.02628139965236187, 0.0408896766602993, 0.0536423958837986, -0.030296145007014275, 0.0034348845947533846, -0.055093102157115936, -0.038359373807907104, 0.005486537702381611, 0.0343446284532547, -0.030296145007014275, 0.03355180099606514, -0.012786458246409893, -0.07482945173978806, -0.03754967823624611, 0.020039988681674004, -0.009564540348947048, -0.03447957709431648, -0.020495444536209106, -0.04011371731758118, -0.01828564703464508, -0.018909787759184837, -0.019702615216374397, -0.05435087904334068, -0.05671249330043793, 0.000666312756948173, 0.019533928483724594, 0.012423781678080559, -0.04837936908006668, 0.04115957394242287, -0.046388864517211914, 0.03738098964095116, 0.015207112766802311, 0.07975511252880096, -0.010989943519234657, 0.010804387740790844, 0.03286018595099449, 0.0055329264141619205, 0.05384482070803642, 0.004274101462215185, -0.022873926907777786, 0.014439588412642479, -0.024425845593214035, -0.0033821698743849993, 0.030481701716780663, 0.043757349252700806, -0.07388480752706528, -0.047434721142053604, 0.018235040828585625, -0.020039988681674004, -0.05634138360619545, 0.05094340816140175, -0.04763714596629143, -0.055632900446653366, 0.030684124678373337, 0.0011207128409296274, -0.0032577633392065763, -0.0018038942944258451, 0.017796454951167107, 0.0016352074453607202, 0.04618643969297409, 0.030700992792844772, 0.0192977674305439, 0.02044483833014965, 0.07584157586097717, 0.022519685328006744, -0.007481258828192949, -0.013764841482043266, -0.005819693673402071, -0.03012745827436447, 0.033315639942884445, 0.004331033211201429, -0.06332501769065857, -0.015367365442216396, 0.01590716280043125, 0.034614525735378265, 0.030802205204963684, -0.018336253240704536, -0.054519567638635635, 0.018336253240704536, 0.029756348580121994, 0.04281270503997803, 0.04190179705619812, 0.0763813704252243, -0.013832315802574158, 0.006831814534962177, 0.01168155949562788, 0.07415470480918884, -0.05310259759426117, 0.03751593828201294, -0.03447957709431648, -0.013764841482043266, 0.008126485161483288, 0.01717231422662735, 0.01656504161655903, 0.03488442674279213, 0.04848058149218559, 0.0053473711013793945, -0.049087852239608765, -0.02771523781120777, 0.03501937538385391, -0.025690997019410133, -0.03311321511864662, 0.0127780232578516, 0.035154324024915695, 0.016792768612504005, -0.03738098964095116, -0.051786839962005615, 0.04979633539915085, 0.05138199403882027, -0.009589843451976776, 0.06771087646484375, 0.03910159692168236, 0.027732105925679207, -0.08123955130577087, -0.045781590044498444, 0.02422342076897621, 0.006646259222179651, -0.037853311747312546, -0.009547671303153038, 0.020647261291742325, 0.03613270819187164, 0.052900172770023346, -0.005009997170418501, 0.035761598497629166, 0.030397357419133186, -0.017214486375451088, 0.029621398076415062, 0.011234539560973644, -0.07813571393489838, -0.015611961483955383, 0.002566147595643997, -0.007055324502289295, 0.02263776585459709, 0.015637263655662537, -0.03208422660827637, 0.05101088061928749, -0.029790084809064865, -0.025825945660471916, -0.0300937220454216, -0.014372113160789013, 0.010509186424314976, -0.03981008008122444, 0.04723229631781578, 0.06430339813232422, 0.0048834821209311485, -0.034074727445840836, 0.010138075798749924, 0.01157191302627325, 0.03265776112675667, 0.006448051892220974, 0.05370987206697464, -0.001556135481223464, -0.030700992792844772, 0.010483883321285248, -0.006886637769639492, 0.0075909048318862915, 0.0025809076614677906, 0.026433218270540237, -0.05063977092504501, -0.03154442831873894, 0.004436462186276913, -0.09831065684556961, -0.09129328280687332, -0.00853133387863636, -0.04061977565288544, -0.01058509573340416, 0.02602837048470974, 0.009007873944938183, -0.03226977959275246, -0.005288330372422934, -0.0008850784506648779, -0.01793140545487404, 0.009092217311263084, 0.032809577882289886, 0.030363619327545166, -0.02174372598528862, -0.005819693673402071, -0.013638325966894627, -0.002907738322392106, -0.06065976619720459, -0.03338311240077019, 0.03446270897984505, -0.00007498654304072261, -0.002707422710955143, -0.01777958683669567, -0.04449957236647606, -0.04034987837076187, 0.008455424569547176, 0.01752655580639839, 0.04122705012559891, 0.021389484405517578, 0.024172814562916756, 0.011749033816158772, 0.022738978266716003, 0.019955646246671677, 0.0590403713285923, -0.023953523486852646, -0.04672623798251152, -0.0026821198407560587, -0.03748220205307007, -0.060828451067209244, 0.018707362934947014, 0.004339467268437147, -0.002644165186211467, -0.03711109235882759, 0.027344126254320145, 0.013756406493484974, 0.026956146582961082, -0.0451405830681324, 0.007683682721108198, 0.04433088377118111, -0.004537674132734537, -0.06585531681776047, -0.054519567638635635, -0.04352118819952011, 0.0565100722014904, -0.039978764951229095, 0.0054991887882351875, 0.00315022561699152, 0.03954017907381058, -0.02930089272558689, 0.013149134814739227, -0.030684124678373337, -0.05843310058116913, -0.04827815666794777, -0.010956206358969212, 0.002420655218884349, -0.06669875234365463, 0.04385856166481972, -0.05762340500950813, 0.0070342388935387135, -0.007017369847744703, 0.056138958781957626, 0.0012324678245931864, 0.026770591735839844, -0.05320381000638008, 0.015957769006490707, 0.028845438733696938, -0.03981008008122444, 0.017475949600338936, -0.044263411313295364, 0.030363619327545166, 0.051213305443525314, -0.019314635545015335, 0.034580789506435394, 0.01331782154738903, -0.0027411601040512323, -0.02343059331178665, -0.037313517183065414, -0.021068979054689407, 0.07516682893037796, -0.008472293615341187, 0.055531688034534454, -0.029655136168003082, 0.04557916894555092, -0.06983632594347, -0.0061486330814659595, 0.014675749465823174, 0.018488071858882904, -0.036200184375047684, -0.010829690843820572, 0.009623580612242222, 0.06008623167872429, 0.02783331833779812, -0.016210800036787987, -0.050673507153987885, 0.016075849533081055, -0.027462206780910492, -0.024172814562916756, -0.044364623725414276, -0.03203361853957176, 0.04790704697370529, -0.04119331017136574, -0.022300392389297485, 0.009260904043912888, -0.020326755940914154, -0.014355245046317577, 0.014490194618701935, -0.03259028494358063, 0.047097347676754, 0.05030239745974541, 0.014321507886052132, 0.029351498931646347, -0.00691194087266922, -0.014979385770857334, -0.04949270188808441, -0.005250376183539629, 0.005393759813159704, -0.013208175078034401, -0.01157191302627325, -0.06086219102144241, 0.004303621593862772, 0.015249284915626049, 0.015940900892019272, -0.0010954097378998995, -0.047502197325229645, 0.0650118812918663, 0.05728603154420853, 0.0717930942773819, 0.04527553170919418, 0.05620643496513367, 0.013992568477988243, 0.11362741142511368, -0.09250783175230026, -0.009809136390686035, -0.007388480938971043, 0.03525553643703461, 0.011234539560973644, -0.039405230432748795, 0.019719485193490982, -0.05209047719836235, 0.010028429329395294, -0.00041749977390281856, -0.013646760024130344, -0.008763277903199196, 0.007911410182714462, -0.0037574979942291975, 0.01767837442457676, -0.007999970577657223, -0.0022751628421247005, -0.04770462214946747, 0.0034770562779158354, 0.04186805710196495, -0.027124833315610886, -0.004261449910700321, 0.03711109235882759, 0.03640260547399521, -0.02044483833014965, -0.011487569659948349, 0.09311509877443314, 0.06086219102144241, -0.047535933554172516, 0.030397357419133186, -0.003449644660577178, 0.04520805552601814, 0.02084968611598015, -0.021507564932107925, -0.022772714495658875, -0.08724480122327805, -0.013857618905603886, 0.0026694682892411947, -0.08326379209756851, 0.07267026603221893, 0.030802205204963684, -0.0005097503308206797, -0.030970891937613487, 0.0026125365402549505, -0.018420595675706863, 0.023953523486852646, -0.026247663423419, -0.034428972750902176, -0.03370361775159836, 0.05320381000638008, 0.0017701569013297558, 0.012676811777055264, 0.016792768612504005, -0.061469461768865585, -0.05951269716024399, 0.016371052712202072, 0.004659972153604031, -0.028423722833395004, 0.011656256392598152, -0.03825816139578819, -0.017627768218517303, -0.004735881462693214, 0.019601402804255486, 0.0027748974971473217, 0.04439835995435715, 0.03447957709431648, 0.007675248198211193, 0.07037612050771713, 0.07584157586097717, 0.0771910697221756, 0.0030405791476368904, -0.0036077885888516903, -0.07152319699525833, -0.027209177613258362, -0.03532301262021065, 0.01951706036925316, 0.005220855586230755, -0.03247220441699028, -0.008096965029835701, -0.04601775482296944, 0.023160694167017937, 0.010922469198703766, 0.014296204783022404, 0.06902662664651871, 0.0036330914590507746, 0.034074727445840836, -0.03392291069030762, 0.05522805079817772, -0.0035824854858219624, 0.004240363836288452, 0.024813825264573097, -0.026585036888718605, 0.0416993722319603, -0.008721106685698032, 0.014945648610591888, 0.035221800208091736, -0.04338623955845833, -0.08333127200603485, -0.04564664140343666, 0.02634887397289276, 0.02952018566429615, 0.02685493603348732, -0.00457141175866127, 0.033349376171827316, -0.006426966283470392, -0.02326190657913685, -0.0033146950881928205, 0.05947895720601082, 0.010306762531399727, 0.024931905791163445, -0.06356117874383926, -0.04281270503997803, -0.03085281141102314, -0.044297147542238235, -0.012246659956872463, 0.007915627211332321, -0.02047857455909252, 0.012390043586492538, 0.004343684762716293, 0.013739538379013538, 0.00036583945620805025, 0.02837311662733555, -0.022890795022249222, -0.04598401486873627, -0.04713108763098717, -0.02984069101512432, 0.0004965717089362442, -0.054924413561820984, 0.05347370728850365, 0.01565413363277912, 0.0044533307664096355, -0.02663564309477806, -0.03146008402109146, 0.014709487557411194, -0.010289893485605717, -0.004799138754606247, -0.03741472586989403, -0.006081158295273781, -0.03196614608168602, 0.007215577177703381, 0.015266153030097485, 0.0028929782565683126, 0.06113208830356598, -0.03987755626440048, 0.01393352821469307, -0.025184936821460724, -0.017045799642801285, -0.06261653453111649, 0.06345996260643005, 0.05570037290453911, -0.06440461426973343, -0.011403226293623447, 0.05637511983513832, -0.008455424569547176, -0.04949270188808441, -0.061368249356746674, -0.01249125599861145, 0.04412846267223358, 0.07145571708679199, -0.014405851252377033, -0.021794332191348076, -0.04497189447283745, -0.01815069653093815, 0.02221604809165001, 0.0488179549574852, 0.03768462687730789, -0.0207316055893898, 0.00037321948911994696, 0.019095342606306076, -0.029418975114822388, -0.003917750436812639, 0.015190244652330875, 0.038359373807907104, -0.007835500873625278, 0.0717930942773819, 0.047097347676754, -0.018623020499944687, 0.008358430117368698, 0.03343372046947479, -0.02847432903945446, -0.02850806526839733, 0.04669250175356865, -0.0103658027946949, 0.04362240061163902, -0.0282550361007452, 0.013359992764890194, 0.0329613983631134, -0.03798826411366463, 0.05101088061928749, 0.0499650239944458, -0.026112712919712067, -0.015637263655662537, -0.0845458135008812, 0.004778053145855665, 0.007683682721108198, 0.010188681073486805, -0.047535933554172516, 0.0511120930314064, 0.0037617152556777, 0.05762340500950813, 0.004959391430020332, 0.02850806526839733, 0.06430339813232422, 0.049627650529146194, 0.0530688613653183, 0.012356306426227093, 0.04196926951408386, -0.04952643811702728, -0.01342746801674366, 0.05209047719836235, -0.005026866216212511, 0.043285027146339417, -0.03488442674279213, 0.02397039160132408, 0.0678795576095581, 0.09520681947469711, 0.008662066422402859, 0.0037195435725152493, 0.010897166095674038, -0.058736737817525864, 0.00048681951011531055, 0.020579786971211433, -0.014068477787077427, -0.02228352427482605, 0.019854433834552765, -0.014684184454381466, 0.0059546432457864285, 0.008156005293130875, 0.001721659442409873, 0.03481695055961609, -0.008906661532819271, 0.01815069653093815 ]
714,927
pytorch_optimizer.optimizer.adabound
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group, base_lr in zip(self.param_groups, self.base_lrs): if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) final_lr: float = group['final_lr'] * group['lr'] / base_lr lower_bound: float = final_lr * (1 - 1 / (group['gamma'] * group['step'] + 1)) upper_bound: float = final_lr * (1 + 1 / (group['gamma'] * group['step'])) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) if group['ams_bound']: state['max_exp_avg_sq'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) exp_avg, exp_avg_sq = state['exp_avg'], state['exp_avg_sq'] exp_avg.mul_(beta1).add_(grad, alpha=1.0 - beta1) exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) de_nom = self.apply_ams_bound( ams_bound=group['ams_bound'], exp_avg_sq=exp_avg_sq, max_exp_avg_sq=state.get('max_exp_avg_sq', None), eps=group['eps'], ) step_size = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'] * bias_correction2_sq, bias_correction1=bias_correction1, ) step_size = torch.full_like(de_nom, fill_value=step_size) step_size.div_(de_nom).clamp_(min=lower_bound, max=upper_bound).mul_(exp_avg) p.add_(-step_size) return loss
(self)
[ -0.01964079588651657, -0.027986688539385796, -0.038819000124931335, 0.060984767973423004, -0.008924130350351334, 0.002347884699702263, -0.025037677958607674, -0.05905731022357941, -0.033749788999557495, 0.02070089802145958, -0.028256531804800034, 0.00878920778632164, 0.024864206090569496, 0.08989663422107697, -0.030723677948117256, 0.04668302834033966, 0.005893202498555183, 0.04413878545165062, 0.034636419266462326, -0.016749609261751175, -0.02442089095711708, -0.04005257412791252, -0.022030843421816826, 0.05184861645102501, -0.05944279953837395, 0.010639567859470844, 0.049959708005189896, -0.00002699194010347128, -0.021645352244377136, 0.012162258848547935, -0.02099001593887806, -0.059828292578458786, 0.023996850475668907, -0.00536797009408474, 0.030916424468159676, -0.06406869739294052, 0.003736858954653144, 0.00414885301142931, -0.07671282440423965, -0.02960575371980667, -0.027581922709941864, -0.014513758011162281, 0.00456566596403718, 0.001075160107575357, -0.0018648154800757766, -0.0017949450993910432, -0.03664097562432289, 0.03446294739842415, 0.005237866658717394, -0.004799370188266039, 0.0006866568583063781, -0.05107763409614563, 0.05342913046479225, -0.008654286153614521, 0.021645352244377136, 0.07995095103979111, 0.04386894032359123, -0.056975655257701874, 0.039416514337062836, -0.04942002147436142, 0.06345191597938538, -0.07891012728214264, 0.010466095991432667, -0.0014998031547293067, 0.013444018550217152, -0.007064132951200008, -0.06784651428461075, -0.021934470161795616, 0.02050815150141716, 0.040091123431921005, 0.014831787906587124, 0.01132381521165371, 0.0065244450233876705, -0.004158490337431431, -0.042635366320610046, -0.0027273527812212706, -0.038645531982183456, -0.07197127491235733, 0.03396180644631386, -0.0427510142326355, 0.036390405148267746, 0.011044333688914776, -0.01581479236483574, -0.0002081052225548774, 0.0028430004604160786, -0.046528831124305725, -0.009825216606259346, -0.03945506364107132, 0.0008221812313422561, -0.040476616472005844, 0.010244438424706459, 0.002129840897396207, 0.02598213218152523, 0.03307517617940903, 0.04494831711053848, 0.04383039101958275, -0.052696697413921356, -0.030492383986711502, -0.03415455296635628, -0.04036096855998039, 0.024748558178544044, 0.0371035635471344, 0.020257582888007164, 0.05801648274064064, 0.03887682408094406, -0.03546522557735443, -0.014128265902400017, -0.03781672194600105, 0.029143162071704865, -0.04861048609018326, -0.03428947553038597, -0.004411469213664532, -0.04622044041752815, 0.0070352209731936455, -0.048186447471380234, 0.0034501496702432632, -0.016845982521772385, 0.007015946786850691, -0.033460669219493866, 0.04637463763356209, 0.044871218502521515, -0.023283690214157104, -0.04205713048577309, 0.008904855698347092, 0.023071670904755592, 0.03189942613244057, 0.0441773347556591, 0.028352905064821243, 0.030203264206647873, -0.06761521846055984, 0.0054980735294520855, -0.0003472435928415507, -0.026309799402952194, -0.02353426069021225, 0.040476616472005844, -0.011246716603636742, -0.012393553741276264, 0.02891186811029911, 0.0010781717719510198, 0.0022382603492587805, -0.011979150585830212, 0.01698090322315693, 0.002271990990266204, -0.0023683637846261263, 0.028854044154286385, 0.03573506698012352, 0.05936570093035698, 0.05651306360960007, 0.004816235508769751, -0.006297968793660402, 0.020199758931994438, 0.018021730706095695, 0.027119332924485207, 0.023784829303622246, -0.003758542938157916, 0.03230419382452965, -0.023090945556759834, 0.025153325870633125, -0.026194151490926743, -0.018995096907019615, -0.024729283526539803, -0.02794813923537731, -0.02831435576081276, -0.023688457906246185, 0.02002628706395626, -0.003968154080212116, -0.002074426505714655, 0.03496408462524414, -0.03698791563510895, 0.021452605724334717, 0.0013962022494524717, -0.036274757236242294, 0.047029972076416016, 0.025037677958607674, -0.030685128644108772, 0.14108991622924805, 0.006013668607920408, 0.010215526446700096, -0.03581216558814049, 0.003033336717635393, 0.009724024683237076, -0.01171894371509552, -0.01474505290389061, -0.05793938413262367, -0.009237341582775116, 0.037161387503147125, -0.00247919256798923, 0.0026623010635375977, 0.023495711386203766, 0.015593133866786957, -0.021221311762928963, -0.023264415562152863, 0.0396285355091095, -0.021414056420326233, -0.015747331082820892, 0.030029794201254845, 0.02168390154838562, 0.021741725504398346, 0.0878920778632164, -0.000032789372198749334, -0.011564747430384159, 0.0066063618287444115, 0.01474505290389061, 0.007117138244211674, -0.049766961485147476, -0.022300686687231064, -0.02511477656662464, 0.060984767973423004, 0.00398260960355401, 0.015679869800806046, -0.06349046528339386, 0.0066159991547465324, 0.020970741286873817, 0.07281935960054398, 0.052311208099126816, -0.06302787363529205, -0.01922639273107052, 0.02156825363636017, 0.0672297328710556, 0.006938848178833723, -0.0309742484241724, -0.08527073264122009, 0.015043809078633785, -0.013299459591507912, 0.0439460389316082, -0.011246716603636742, 0.03856843337416649, -0.050152454525232315, -0.008345892652869225, 0.011796042323112488, -0.00003721273606061004, -0.043907489627599716, 0.014687228947877884, -0.007878484204411507, 0.03916594386100769, 0.026676015928387642, -0.04972841218113899, -0.010620293207466602, 0.0025972495786845684, 0.0007751994417048991, -0.03912739455699921, -0.030029794201254845, -0.03274751082062721, 0.0470685213804245, -0.008003768511116505, 0.04182583466172218, 0.06449273973703384, 0.01563168317079544, -0.029355183243751526, 0.033923257142305374, -0.038125116378068924, -0.031128443777561188, -0.03008761815726757, 0.043522000312805176, -0.04475557059049606, -0.022050118073821068, 0.06372175365686417, 0.028275806456804276, 0.050537943840026855, -0.05670581012964249, 0.039300866425037384, -0.05080778896808624, -0.053274936974048615, 0.050923436880111694, -0.04764675721526146, 0.027196429669857025, 0.05061504244804382, -0.032574038952589035, 0.0597897432744503, 0.03037673607468605, 0.07856318354606628, 0.0917469933629036, -0.0605221763253212, -0.02771684341132641, 0.006736465264111757, 0.046914324164390564, -0.00026954294298775494, 0.010851588100194931, 0.0016515904571861029, -0.03799019381403923, 0.08056773990392685, -0.04591204598546028, -0.07821623980998993, -0.0038476877380162477, -0.04695287346839905, 0.02771684341132641, -0.02713860757648945, -0.030781501904129982, 0.04764675721526146, 0.002826135139912367, 0.03752760589122772, -0.0037513149436563253, 0.08149291574954987, 0.02334151417016983, 0.09876294434070587, 0.00961801502853632, -0.014475208707153797, 0.014610130339860916, -0.028256531804800034, 0.0168074332177639, 0.06618890166282654, -0.013954794965684414, 0.028642022982239723, -0.003585071535781026, -0.020238308236002922, -0.041633088141679764, 0.004122350364923477, -0.01060101855546236, 0.017732612788677216, -0.02110566385090351, -0.002049128757789731, -0.0037681800313293934, 0.013559666462242603, -0.0007938717026263475, 0.003389916615560651, -0.08866306394338608, -0.014812513254582882, -0.045565102249383926, 0.016720697283744812, 0.06368320435285568, -0.023900477215647697, 0.023861927911639214, 0.02206939272582531, 0.030781501904129982, -0.015120906755328178, -0.03504118323326111, 0.07524795830249786, 0.03575434163212776, -0.028931142762303352, -0.03444367274641991, -0.07305065542459488, -0.018137378618121147, 0.05535658821463585, 0.02567373961210251, -0.04209567978978157, -0.02099001593887806, 0.04853338748216629, -0.002515332540497184, 0.028738396242260933, -0.04934292286634445, 0.06125460937619209, 0.02852637693285942, -0.028256531804800034, 0.03189942613244057, 0.035869989544153214, -0.03268968686461449, 0.04363764449954033, 0.017231473699212074, 0.02733135223388672, 0.017751887440681458, -0.022493433207273483, -0.032381292432546616, -0.02118276245892048, 0.04329070448875427, 0.011998425237834454, 0.028584200888872147, -0.009555372409522533, -0.02567373961210251, 0.03328719735145569, -0.08064483851194382, 0.019756443798542023, 0.02031540498137474, -0.06480113416910172, 0.10454531759023666, 0.09837745130062103, 0.005339058116078377, -0.046528831124305725, -0.033345021307468414, 0.0470685213804245, -0.009709568694233894, 0.019872089847922325, -0.0470685213804245, 0.0007649598410353065, 0.028333630412817, -0.04248117282986641, -0.0219730194658041, -0.03213072195649147, -0.01303925272077322, 0.05813213065266609, 0.040399517863988876, 0.03340284526348114, -0.03203434869647026, -0.023592084646224976, 0.030916424468159676, 0.040862105786800385, -0.030415285378694534, 0.010128791444003582, -0.051116183400154114, 0.032959528267383575, -0.06252673268318176, 0.06961977481842041, 0.0236499086022377, 0.013935520313680172, -0.00017588053015060723, -0.0703522115945816, 0.037951644510030746, 0.02303312160074711, 0.030126165598630905, -0.0398598276078701, -0.023418612778186798, -0.03592781350016594, 0.009348170831799507, 0.009367445483803749, 0.00839407928287983, -0.00962765235453844, -0.0646083876490593, 0.012489927001297474, 0.050152454525232315, 0.006375066936016083, 0.05828632414340973, -0.021953744813799858, 0.009290346875786781, -0.04363764449954033, -0.0038091386668384075, 0.007227967027574778, -0.04641318693757057, -0.004859603010118008, -0.013077802024781704, -0.005661907605826855, 0.015573859214782715, 0.03700719028711319, 0.018320487812161446, 0.04475557059049606, 0.03700719028711319, -0.04641318693757057, -0.03290170431137085, -0.0472998172044754, -0.01983354054391384, -0.04864903539419174, -0.010485370643436909, -0.0214911550283432, -0.028545651584863663, -0.021317683160305023, -0.021433331072330475, -0.027774667367339134, 0.0050595770590007305, -0.018407221883535385, 0.05651306360960007, 0.03612056002020836, -0.0035561597906053066, 0.005686000920832157, -0.0011853865580633283, -0.0125477509573102, -0.006432890426367521, -0.0038260037545114756, -0.027022959664463997, 0.044292982667684555, -0.041633088141679764, -0.10500790178775787, 0.024073949083685875, -0.01737603172659874, 0.009646927006542683, 0.04460137337446213, 0.012576662935316563, 0.030318912118673325, 0.0047656395472586155, -0.050422295928001404, -0.02852637693285942, -0.010639567859470844, 0.00815796572715044, 0.013627126812934875, 0.026406172662973404, -0.018089191988110542, 0.027466274797916412, -0.01050464529544115, -0.006505170371383429, 0.07335904985666275, 0.04109340161085129, -0.016171371564269066, -0.003558569122105837, -0.008268794044852257, -0.015246191993355751, 0.048687584698200226, -0.02235851064324379, -0.020932191982865334, -0.014831787906587124, -0.023360788822174072, -0.004433153197169304, 0.027466274797916412, -0.046528831124305725, 0.01749167963862419, -0.04949711635708809, 0.03332574665546417, 0.03475206345319748, -0.0107455775141716, 0.039975475519895554, -0.013607852160930634, 0.02550026774406433, 0.036756619811058044, 0.06503242999315262, -0.0545085072517395, -0.06379885226488113, 0.03469424322247505, 0.05362187698483467, -0.04533381015062332, -0.06383740156888962, 0.04132469743490219, 0.011738218367099762, 0.09745226800441742, -0.026618193835020065, 0.024536538869142532, 0.021934470161795616, -0.051424574106931686, -0.00635097362101078, 0.014292100444436073, -0.01689416728913784, -0.057553891092538834, 0.007796566933393478, -0.053660426288843155, 0.017944632098078728, -0.003428465686738491, -0.0107455775141716, 0.008519363589584827, -0.021529704332351685, -0.022975297644734383, -0.04452427849173546, 0.04479411989450455, 0.07247241586446762, 0.04356054589152336, -0.04217277839779854, 0.024671461433172226, 0.0024671461433172226, -0.015429300256073475, -0.010099879465997219, -0.008032680489122868, 0.041941482573747635, 0.006938848178833723, -0.006134134717285633, 0.0028430004604160786, 0.0002903233398683369, -0.01669178530573845, 0.014802876859903336, 0.04930437356233597, 0.04845628887414932, -0.0012889874633401632, -0.01893727295100689, -0.02276327647268772, -0.08079903572797775, -0.11611006408929825, -0.03893464803695679, 0.0048475563526153564, -0.012287544086575508, 0.02403539977967739, -0.007545997388660908, -0.04032241925597191, 0.034617144614458084, 0.014475208707153797, 0.0183686725795269, -0.017722975462675095, -0.0004634933720808476, -0.026309799402952194, 0.0377010740339756, -0.019293854013085365, 0.019207118079066277, 0.01893727295100689, 0.015699144452810287, -0.03151393681764603, 0.01737603172659874, 0.018792714923620224, -0.0038910554721951485, -0.0439460389316082, -0.047608207911252975, 0.013810236006975174, -0.03446294739842415, 0.00036681932397186756, 0.016633961349725723, 0.01992991380393505, -0.018783077597618103, -0.033923257142305374, 0.02725425362586975, -0.023187318816781044, 0.012412828393280506, -0.006707553286105394, -0.01826266385614872, -0.03137901425361633, -0.004216314293444157, 0.021067114546895027, -0.032072898000478745, -0.0025466536171734333, -0.04020677134394646, 0.04649028554558754, -0.041633088141679764, 0.001925048534758389, -0.02178027294576168, 0.012123709544539452, 0.049073077738285065, -0.1210443526506424, 0.048880331218242645, -0.0050499397329986095, 0.03835641220211983, -0.03810584172606468, 0.04093920439481735, -0.08172421157360077, -0.07802349328994751, 0.015660595148801804, 0.01786753349006176, -0.040399517863988876, -0.004129578359425068, 0.008948222734034061, 0.029740674421191216, -0.04109340161085129, -0.0039609260857105255, 0.038645531982183456, 0.01863851770758629, -0.02451726421713829, -0.0005125832976773381, -0.014947435818612576, 0.038048017770051956, 0.016171371564269066, -0.02216576598584652, -0.04957421496510506, -0.017809711396694183, 0.019207118079066277, -0.019284216687083244, -0.06379885226488113, -0.033441394567489624, -0.01678815856575966, -0.0037151749711483717, 0.0761345848441124, -0.007608640007674694, -0.0380672924220562, -0.006085948087275028, -0.04078500717878342, -0.008244700729846954, 0.025519542396068573, -0.02118276245892048, 0.0461047925055027, -0.058055032044649124, -0.022589806467294693, -0.04695287346839905, -0.039416514337062836, 0.03633258119225502, 0.0297792237251997, -0.05593482777476311, 0.07316630333662033, 0.025134051218628883, 0.049458567053079605, 0.035503774881362915, -0.033441394567489624, -0.061485905200242996, -0.014658316969871521, 0.03615910932421684, -0.012432103045284748, -0.017559140920639038, -0.021259861066937447, -0.009512004442512989, -0.026907311752438545, 0.05038375034928322, 0.05246540158987045, 0.011632207781076431, -0.021548978984355927, 0.046837225556373596, -0.023418612778186798, 0.018522869795560837, 0.019081832841038704, 0.0022310325875878334, 0.03606273606419563, 0.029856322333216667, 0.029528655111789703, -0.03878045082092285, -0.02499912865459919, -0.023168044164776802, -0.018339762464165688, -0.005536622833460569, -0.03018398955464363, -0.011853866279125214, 0.013887333683669567, -0.02706150896847248, -0.013896971009671688, -0.02187664620578289, -0.09537061303853989, -0.045950595289468765, -0.05959699675440788, 0.006225688848644495, 0.011632207781076431, -0.01547748688608408, 0.023958301171660423, -0.04502541571855545, -0.016961628571152687, 0.013578941114246845, 0.020585250109434128, 0.030742952600121498, -0.038529884070158005, 0.03662170097231865, 0.04664447903633118, 0.006201595533639193, -0.009926407597959042, 0.026136329397559166, 0.004483748693019152, 0.013482567854225636, -0.044292982667684555, -0.007237604353576899, 0.011420187540352345, 0.028352905064821243, 0.013193449005484581, -0.06453128904104233, -0.038048017770051956, -0.0339810810983181, 0.015188368037343025, -0.05635886639356613, 0.021452605724334717, -0.033460669219493866, -0.022146491333842278, -0.007864028215408325, 0.0297792237251997, 0.03621693328022957, 0.026810938492417336, -0.009849309921264648, 0.0027683114167302847, 0.02706150896847248, 0.01748204231262207, 0.021510429680347443, -0.020488876849412918, 0.004211495630443096, 0.0015395570080727339, -0.02185737155377865, -0.017992818728089333, -0.022281412035226822, -0.07335904985666275, 0.03633258119225502, -0.0076857381500303745, -0.010090242139995098, 0.04063080996274948, -0.006216051522642374, -0.0489959791302681, -0.013800598680973053, 0.0437147431075573, -0.004018749576061964, 0.018975822255015373, 0.011044333688914776, 0.028140883892774582, 0.024575088173151016, -0.009598740376532078, 0.006047399248927832, -0.01689416728913784, -0.002053947187960148, 0.03847206011414528, 0.017819348722696304, -0.02031540498137474, 0.002152729546651244, 0.029027516022324562, 0.027813216671347618, 0.007358070462942123, -0.03750833123922348, 0.013810236006975174, 0.04915017634630203, -0.02625197544693947, -0.020758721977472305, 0.03592781350016594, -0.06830910593271255, 0.0751708596944809, 0.04463992267847061, 0.027678294107317924, 0.04051516577601433, 0.06499388068914413, -0.052773796021938324, 0.026810938492417336, -0.07860173285007477, -0.055510785430669785, -0.06279657781124115, -0.003370641963556409, -0.029046790674328804, 0.07813914120197296, 0.03860698267817497, 0.028661297634243965, 0.0182530265301466, 0.04251972213387489, 0.006775014568120241 ]
714,942
pytorch_optimizer.optimizer.adadelta
AdaDelta
An Adaptive Learning Rate Method. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param rho: float. coefficient used for computing a running average of squared gradients. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param eps: float. term added to the denominator to improve numerical stability.
class AdaDelta(Optimizer, BaseOptimizer): r"""An Adaptive Learning Rate Method. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param rho: float. coefficient used for computing a running average of squared gradients. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1.0, rho: float = 0.9, weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, eps: float = 1e-6, ): self.validate_learning_rate(lr) self.validate_range(rho, 'rho', 0.0, 1.0) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'rho': rho, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'eps': eps, } super().__init__(params, defaults) def __str__(self) -> str: return 'AdaDelta' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['square_avg'] = torch.zeros_like(p) state['acc_delta'] = torch.zeros_like(p) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 rho: float = group['rho'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['square_avg'] = torch.zeros_like(p) state['acc_delta'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) square_avg, acc_delta = state['square_avg'], state['acc_delta'] square_avg.mul_(rho).addcmul_(grad, grad, value=1.0 - rho) std = square_avg.add(group['eps']).sqrt_() delta = acc_delta.add(group['eps']).sqrt_().div_(std).mul_(grad) acc_delta.mul_(rho).addcmul_(delta, delta, value=1.0 - rho) p.add_(delta, alpha=-group['lr']) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 1.0, rho: float = 0.9, weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, eps: float = 1e-06)
[ -0.04154818877577782, -0.021370388567447662, -0.01603260077536106, 0.0030223422218114138, 0.0005554184899665415, -0.007097815629094839, -0.04685712605714798, -0.0350659042596817, -0.024197973310947418, 0.027256382629275322, -0.037297192960977554, 0.012224015779793262, 0.04501054063439369, 0.08001873642206192, -0.040701836347579956, 0.02962232008576393, -0.011791222728788853, 0.09025190025568008, -0.009954254142940044, -0.0058042434975504875, -0.020562507212162018, -0.05866758152842522, -0.037835780531167984, 0.03508513793349266, -0.04708794876933098, 0.010146606713533401, 0.03879754617810249, -0.01605183631181717, -0.06043722853064537, -0.006362066604197025, -0.006160096265375614, -0.04074030742049217, 0.014638043008744717, 0.021120330318808556, 0.03018014319241047, -0.05735958367586136, 0.0031209231819957495, 0.005847522988915443, -0.09040578454732895, -0.019514184445142746, 0.017917657271027565, -0.03177667036652565, 0.03491201996803284, -0.05081959068775177, 0.011041047051548958, -0.008040344342589378, -0.024332620203495026, 0.026583148166537285, -0.03500819578766823, -0.024217208847403526, 0.033527079969644547, -0.06840062886476517, 0.07217074185609818, 0.026467734947800636, 0.006958359852433205, 0.052897002547979355, 0.04397183284163475, -0.018456244841217995, 0.018485097214579582, -0.057821232825517654, 0.024101797491312027, -0.08809754997491837, 0.04489512741565704, -0.024775031954050064, -0.023774797096848488, -0.050550296902656555, -0.053012412041425705, -0.02641003020107746, 0.018446626141667366, 0.028179675340652466, 0.008343299850821495, -0.0307187307626009, 0.041355837136507034, -0.03210367262363434, -0.03500819578766823, -0.00915118120610714, -0.03645084425806999, -0.05124276876449585, 0.007896079681813717, -0.0492422990500927, -0.01080060563981533, 0.0027819012757390738, 0.0028299896512180567, 0.007790285628288984, 0.03775884211063385, -0.046587832272052765, -0.026775499805808067, -0.02406332641839981, 0.013637809082865715, -0.04812665283679962, 0.038451310247182846, -0.03243067115545273, 0.011041047051548958, 0.020293213427066803, 0.04343324527144432, 0.051396649330854416, -0.020254742354154587, -0.0485498309135437, 0.021043388172984123, -0.02312079817056656, 0.00572249386459589, 0.015147777274250984, 0.0365854911506176, 0.048819124698638916, 0.006891036406159401, -0.06597698479890823, -0.04116348549723625, -0.01649424619972706, 0.025409795343875885, -0.05585923418402672, -0.033527079969644547, 0.0033805991988629103, -0.029718497768044472, 0.002534247236326337, -0.04077877849340439, 0.0030776436906307936, 0.022755328565835953, 0.008997298777103424, -0.03623925521969795, 0.022601446136832237, 0.038989897817373276, 0.040701836347579956, -0.02983390912413597, 0.0036426798906177282, 0.01764836348593235, -0.02610226534307003, 0.0374126061797142, 0.02000468410551548, -0.005366641096770763, -0.024448031559586525, -0.01731174625456333, 0.021351153030991554, -0.027525676414370537, 0.006665022112429142, 0.053704883903265, -0.00583309680223465, 0.024986619129776955, 0.04270230606198311, -0.047972772270441055, 0.004599634557962418, 0.03862442821264267, 0.029487673193216324, 0.025736795738339424, -0.01416677888482809, -0.00017732517153490335, -0.0011120392009615898, 0.0036426798906177282, 0.023409327492117882, -0.013474308885633945, 0.018648596480488777, -0.016311511397361755, -0.00035074318293482065, 0.02171662263572216, 0.048626769334077835, 0.03698943182826042, -0.008420241065323353, -0.05166594311594963, 0.010617870837450027, -0.0433947779238224, -0.007511374074965715, -0.03329625725746155, -0.0254482664167881, -0.030334025621414185, -0.020677918568253517, -0.0029790629632771015, -0.015522865578532219, -0.02717944048345089, 0.010329341515898705, -0.041779011487960815, 0.00979556329548359, 0.025505973026156425, -0.06159134581685066, 0.0415097177028656, 0.04289465770125389, -0.03639313578605652, 0.08732814341783524, 0.013532014563679695, -0.0038879294879734516, 0.025409795343875885, -0.043894894421100616, 0.037489548325538635, 0.0027338131330907345, -0.02910296805202961, -0.05966781824827194, -0.003361363895237446, 0.02225521020591259, -0.015686364844441414, 0.012098986655473709, -0.010637106373906136, 0.03545060753822327, 0.017581040039658546, -0.024236444383859634, 0.00898768100887537, -0.01722518727183342, -0.02929532155394554, 0.012531780637800694, 0.01272413320839405, 0.019639214500784874, 0.10664035379886627, 0.05566687881946564, 0.006439007818698883, 0.026352323591709137, 0.023774797096848488, 0.023255445063114166, 0.028275851160287857, -0.012964573688805103, -0.026371559128165245, 0.009228122420608997, -0.042433012276887894, -0.013185779564082623, -0.02365938574075699, 0.030218614265322685, 0.054935939610004425, 0.0412788949906826, 0.011993193067610264, -0.018119627609848976, 0.03735490143299103, 0.0485498309135437, 0.07705650478601456, -0.0038398413453251123, -0.013291574083268642, -0.038451310247182846, 0.01722518727183342, 0.004238973371684551, 0.09586860239505768, -0.04993477091193199, 0.06251464039087296, 0.009877312928438187, -0.02162044681608677, -0.018033068627119064, -0.00615047849714756, -0.0748252123594284, -0.0065736547112464905, -0.0055686114355921745, 0.10094671696424484, 0.0331808477640152, -0.03879754617810249, -0.0016157629434019327, -0.035566020756959915, 0.0030031069181859493, -0.03027632087469101, -0.00746328616514802, -0.006304360926151276, 0.039970897138118744, -0.03518131375312805, -0.004202906973659992, 0.053858764469623566, 0.031199613586068153, -0.028429733589291573, 0.000716513954102993, -0.022120563313364983, -0.03660472482442856, -0.014109073206782341, 0.05989864096045494, -0.07632556557655334, 0.01428219024091959, 0.04966547712683678, 0.02846820466220379, -0.015965277329087257, -0.06736192852258682, 0.01573445275425911, -0.028410498052835464, -0.059090759605169296, 0.06197604909539223, -0.002988680498674512, 0.052589237689971924, 0.07705650478601456, -0.0417405441403389, 0.028179675340652466, 0.02933379076421261, 0.08802060782909393, 0.05016559362411499, -0.059629347175359726, -0.0034046433866024017, 0.002225280739367008, 0.028314322233200073, 0.02769879251718521, 0.018994832411408424, -0.022947680205106735, -0.015388218685984612, 0.01763874478638172, -0.048511359840631485, -0.06774663180112839, 0.005924464203417301, -0.051281239837408066, 0.019639214500784874, -0.015109307132661343, 0.03458502143621445, 0.03710484132170677, 0.048934534192085266, 0.07113204151391983, 0.00017146443133242428, 0.08040343970060349, -0.000030412018531933427, 0.08732814341783524, 0.06389957666397095, -0.036200784146785736, 0.02504432573914528, -0.009324298240244389, -0.004820840433239937, 0.03229602426290512, -0.0020617807749658823, 0.019600743427872658, -0.010435136035084724, -0.061360523104667664, -0.028814438730478287, 0.0034503270871937275, 0.026371559128165245, 0.048857592046260834, -0.0018213399453088641, 0.012878015637397766, -0.007602741941809654, -0.028525909408926964, 0.02983390912413597, -0.027525676414370537, -0.0980229526758194, -0.013878249563276768, -0.04035560414195061, 0.034296490252017975, 0.06974709779024124, -0.049165356904268265, 0.0780952125787735, -0.03468119725584984, -0.0270832646638155, -0.02866055630147457, -0.046280067414045334, 0.049588534981012344, 0.016080688685178757, -0.022274445742368698, -0.01894674450159073, -0.043817952275276184, -0.013974426314234734, 0.00872800499200821, 0.013089603744447231, -0.04939618334174156, -0.03691248968243599, 0.03435419872403145, 0.018485097214579582, -0.0007309403736144304, -0.028429733589291573, 0.04720336198806763, 0.07455591857433319, -0.021043388172984123, 0.04008631035685539, 0.011752751655876637, -0.05832134932279587, 0.034200314432382584, 0.024005621671676636, 0.041779011487960815, -0.014070602133870125, 0.003349341917783022, -0.007448859512805939, -0.033546317368745804, 0.08078815042972565, 0.06428427994251251, -0.008578931912779808, -0.026775499805808067, -0.0340079627931118, 0.0412788949906826, -0.08802060782909393, -0.04747265577316284, 0.008939593099057674, -0.029987791553139687, 0.07847991585731506, 0.05620546638965607, -0.002757857320830226, -0.04939618334174156, -0.0558207631111145, 0.015984512865543365, -0.02525591291487217, -0.00325076119042933, -0.06193757802248001, 0.016436541453003883, 0.0038590766489505768, -0.04955006390810013, -0.023024622350931168, 0.001318818423897028, -0.007275742013007402, 0.0511273555457592, 0.04366407170891762, 0.027121735736727715, -0.01139689888805151, 0.015340130776166916, 0.048819124698638916, 0.03327702358365059, -0.02812196873128414, 0.015378600917756557, -0.020350918173789978, 0.034296490252017975, -0.04335630685091019, 0.0316612608730793, -0.005361832212656736, -0.01841777376830578, -0.0027819012757390738, -0.08802060782909393, 0.034200314432382584, 0.01754256896674633, 0.03152661398053169, -0.08825143426656723, -0.039740074425935745, -0.0010326937772333622, -0.02140885964035988, 0.022389857098460197, 0.014907336793839931, -0.011002575978636742, -0.059321582317352295, 0.06047569960355759, 0.09740742295980453, -0.02619844116270542, 0.0921754315495491, -0.00807400606572628, 0.021774329245090485, -0.03339243307709694, 0.0609758161008358, 0.01550363004207611, -0.0036138270515948534, 0.018110008910298347, -0.03320008143782616, -0.0023226591292768717, 0.030507143586874008, 0.05639782175421715, -0.008309638127684593, 0.015070836059749126, 0.03585454821586609, 0.04762653633952141, -0.027044793590903282, -0.028218146413564682, 0.006434198934584856, -0.046818654984235764, -0.03281537443399429, 0.012493309564888477, -0.04143277928233147, -0.010338959284126759, -0.03650854900479317, -0.03722025454044342, 0.0170039813965559, 0.0053281704895198345, 0.05185829475522041, 0.05512829124927521, -0.018360069021582603, 0.001986041897907853, -0.03662395849823952, 0.020889505743980408, -0.00796340312808752, -0.03243067115545273, -0.046703241765499115, 0.07174757122993469, -0.03745107725262642, -0.054820530116558075, -0.006304360926151276, 0.02910296805202961, -0.0015532482648268342, 0.03531596064567566, 0.01572483591735363, -0.006708301603794098, -0.020081624388694763, -0.006732345558702946, -0.029353026300668716, -0.0006774422945454717, -0.00839138776063919, 0.04416418820619583, 0.015695983543992043, -0.0026400412898510695, 0.003152180463075638, -0.03521978482604027, 0.018533185124397278, 0.05828287824988365, -0.021312681958079338, -0.028006557375192642, -0.005121391266584396, 0.03521978482604027, -0.006145669613033533, 0.02779497019946575, -0.017484864220023155, -0.034719668328762054, -0.0003055102424696088, -0.007857609540224075, -0.022216740995645523, -0.012589486315846443, -0.022197505459189415, 0.026025325059890747, -0.07513297349214554, 0.02994932048022747, 0.019870037212967873, 0.016436541453003883, 0.024563442915678024, -0.003118518739938736, 0.027525676414370537, 0.01438798476010561, 0.040163248777389526, -0.0337771400809288, -0.0410480722784996, 0.04524136334657669, 0.029045263305306435, -0.040163248777389526, -0.053550999611616135, 0.03891295939683914, -0.00019370521476957947, 0.07259391993284225, -0.004325531888753176, 0.03604690358042717, -0.04354865849018097, -0.04955006390810013, -0.02129344828426838, 0.04585689306259155, -0.02269762195646763, -0.06651557236909866, 0.015792159363627434, -0.048742182552814484, 0.033950258046388626, -0.01831197924911976, 0.005900420248508453, 0.02779497019946575, 0.00295501877553761, 0.01926412619650364, -0.016984745860099792, -0.0033685772214084864, 0.05870605260133743, 0.0511273555457592, -0.07174757122993469, 0.011723899282515049, 0.024986619129776955, -0.02269762195646763, -0.01428219024091959, -0.0063284048810601234, 0.05282006040215492, -0.01332042645663023, -0.026179207488894463, 0.023986386135220528, 0.001372917671687901, 0.010300489142537117, 0.009107901714742184, 0.022409092634916306, 0.052704647183418274, -0.01936030201613903, -0.021351153030991554, -0.010935252532362938, -0.0417405441403389, -0.09325260668992996, -0.018033068627119064, 0.03281537443399429, 0.006645787041634321, -0.015474777668714523, -0.039740074425935745, -0.01710977591574192, 0.061129696667194366, -0.017581040039658546, 0.029141439124941826, -0.016773158684372902, -0.003988914657384157, -0.03700866550207138, 0.024121033027768135, -0.04978088662028313, 0.05947546288371086, 0.01979309692978859, 0.009896548464894295, -0.0378742516040802, -0.020620211958885193, 0.005227185320109129, 0.026987088844180107, -0.03937460482120514, -0.07555615156888962, -0.004246186465024948, -0.017302127555012703, 0.034296490252017975, 0.0340079627931118, 0.05008865147829056, -0.009030960500240326, -0.02150503545999527, 0.04162513092160225, -0.019129479303956032, -0.04697253555059433, -0.008006682619452477, -0.023390091955661774, -0.07567156106233597, 0.010512076318264008, -0.002221673959866166, -0.03177667036652565, -0.0031762244179844856, -0.04535677284002304, 0.051819827407598495, -0.060937345027923584, -0.011493075639009476, -0.044241126626729965, 0.03058408387005329, 0.028852909803390503, -0.04735724255442619, 0.05859064310789108, 0.03216137737035751, 0.005736920051276684, -0.0438564233481884, -0.0013969617430120707, -0.043894894421100616, -0.06001405045390129, -0.03491201996803284, 0.030199378728866577, -0.04354865849018097, 0.01186816394329071, 0.04427959769964218, 0.04504900798201561, -0.06055264174938202, -0.026352323591709137, 0.028699027374386787, -0.0009389217593707144, -0.005501287989318371, 0.012512545101344585, 0.01396480854600668, -0.012772221118211746, 0.012868397869169712, -0.06570769101381302, -0.010589017532765865, -0.010415900498628616, 0.015426688827574253, -0.038047369569540024, -0.0030560039449483156, -0.028699027374386787, -0.0016097519546747208, -0.005102156195789576, 0.0708242729306221, 0.02727561816573143, -0.0001438888575648889, -0.027256382629275322, -0.006636169273406267, -0.009824415668845177, -0.031488142907619476, -0.017292510718107224, 0.03168049454689026, -0.08386579155921936, -0.011194928549230099, -0.027410265058279037, 0.008372152224183083, 0.029449203982949257, -0.002019703621044755, -0.015263189561665058, 0.025640619918704033, 0.008708770386874676, 0.052358414977788925, 0.007578697521239519, 0.00017777600442059338, -0.06201452016830444, 0.011127605102956295, 0.025640619918704033, -0.015311277471482754, 0.01150269340723753, 0.0009978298330679536, -0.03510437533259392, 0.00537144998088479, -0.007799903396517038, 0.018658215180039406, 0.04824206605553627, -0.015782542526721954, 0.015061219222843647, -0.056744057685136795, 0.021447328850626945, 0.014243720099329948, 0.021985916420817375, 0.016859717667102814, 0.061245109885931015, 0.036970194429159164, -0.030430201441049576, 0.0070545366033911705, -0.014195631258189678, -0.02288997545838356, 0.004561163950711489, -0.009184842929244041, -0.0023190525826066732, -0.019321832805871964, 0.01337813213467598, 0.034296490252017975, -0.007400771137326956, -0.07590238749980927, -0.01787918619811535, -0.04651089012622833, 0.015965277329087257, 0.02331315167248249, -0.011300723068416119, 0.03410413861274719, -0.03477737307548523, 0.01616724766790867, -0.020158566534519196, -0.015003512613475323, 0.05435888096690178, 0.011377664282917976, -0.017888804897665977, 0.033757902681827545, -0.03018014319241047, 0.010021577589213848, 0.018013833090662956, 0.032776907086372375, -0.03298849239945412, -0.04720336198806763, -0.0058619496412575245, 0.015157395042479038, -0.007559462450444698, 0.03852825239300728, -0.09571471810340881, -0.044664304703474045, -0.009055004455149174, 0.0034767757169902325, -0.08040343970060349, 0.028718262910842896, 0.014070602133870125, -0.016426922753453255, 0.0014510608743876219, 0.04527983441948891, 0.06009099259972572, 0.013849396258592606, -0.01592680625617504, 0.022736093029379845, -0.016869334504008293, 0.001372917671687901, 0.04720336198806763, -0.006352448835968971, -0.006256272550672293, 0.047549594193696976, 0.0173502154648304, 0.03200749307870865, -0.05008865147829056, -0.02641003020107746, 0.07055497914552689, -0.04458736255764961, -0.006722727790474892, 0.02933379076421261, 0.008699152618646622, -0.05997558310627937, -0.05208912119269371, -0.0012538994196802378, -0.015638276934623718, -0.0017371856374666095, -0.031718965619802475, 0.03431572765111923, 0.03498896211385727, 0.013253103010356426, 0.00325076119042933, -0.006621742621064186, 0.0348350815474987, 0.037797313183546066, -0.0005920857656747103, 0.0303724966943264, 0.05328170582652092, -0.025948382914066315, 0.03950925171375275, -0.012820309959352016, -0.01817733235657215, 0.0170039813965559, 0.016936657950282097, -0.04524136334657669, -0.0017588252667337656, 0.04216371849179268, -0.05201217904686928, 0.05624393746256828, 0.008218270726501942, 0.008886695839464664, 0.025217443704605103, 0.04401030391454697, -0.07320944964885712, 0.03264226019382477, -0.0715167447924614, -0.05432040989398956, -0.09594554454088211, 0.027314087375998497, -0.038047369569540024, 0.08309637755155563, 0.04462583363056183, -0.005419538356363773, -0.003277209587395191, 0.02408256195485592, 0.011464223265647888 ]
714,944
pytorch_optimizer.optimizer.adadelta
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1.0, rho: float = 0.9, weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, eps: float = 1e-6, ): self.validate_learning_rate(lr) self.validate_range(rho, 'rho', 0.0, 1.0) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'rho': rho, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'eps': eps, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 1.0, rho: float = 0.9, weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, eps: float = 1e-06)
[ 0.007724184542894363, -0.015541431494057178, -0.019245317205786705, -0.01778423599898815, -0.03893733397126198, -0.014331619255244732, -0.06086285039782524, -0.0018926578341051936, -0.03035697527229786, 0.041059158742427826, -0.010395077057182789, 0.05736370012164116, 0.03631297126412392, 0.07523169368505478, -0.04020298272371292, 0.02484767697751522, 0.007123931311070919, 0.025517726317048073, -0.030021950602531433, -0.013829082250595093, -0.0029454268515110016, -0.02987305074930191, -0.03247879818081856, 0.11212165653705597, -0.006965725217014551, 0.016853611916303635, -0.021125178784132004, 0.025815527886152267, -0.055614128708839417, 0.0035293938126415014, 0.006961072329431772, 0.0016344095347449183, -0.012014363892376423, 0.09596601128578186, 0.039309583604335785, -0.0069843376986682415, -0.01134431455284357, 0.017979668453335762, -0.0619051493704319, 0.05818265303969383, 0.03186458721756935, -0.011083738878369331, 0.04306930676102638, -0.05289670452475548, -0.01985953003168106, 0.009659883566200733, 0.02529437653720379, 0.033651385456323624, -0.011093045584857464, -0.03893733397126198, 0.0248849019408226, -0.008813015185296535, 0.02449404075741768, -0.01926393061876297, -0.024419590830802917, 0.012181876227259636, 0.05475795269012451, 0.03015223704278469, 0.019561730325222015, -0.000667141517624259, -0.00420875009149313, -0.047573529183864594, 0.011381539516150951, -0.029686925932765007, -0.0007730000652372837, -0.027732614427804947, -0.059448301792144775, -0.035475410521030426, 0.04909975454211235, 0.02341451495885849, 0.09440255910158157, -0.015243631787598133, -0.0032269409857690334, 0.0024079913273453712, 0.012088813818991184, -0.015504206530749798, -0.06235184893012047, -0.05684255063533783, -0.03303717449307442, -0.03309301286935806, 0.02477322705090046, 0.029779987409710884, -0.033130235970020294, -0.03482397273182869, -0.01328001357614994, -0.03353971242904663, -0.039309583604335785, -0.05676810070872307, 0.021106567233800888, 0.039942409843206406, -0.05743815004825592, -0.026355288922786713, -0.009436533786356449, -0.03594072163105011, 0.09291356056928635, 0.03553124889731407, 0.01722586154937744, -0.046568457037210464, 0.04917420446872711, -0.02669031359255314, -0.032404348254203796, -0.013354463502764702, -0.03586627170443535, 0.005025372840464115, -0.005002107471227646, -0.053864553570747375, -0.04280873388051987, -0.012395920231938362, 0.032199613749980927, -0.06760057061910629, -0.03584766015410423, 0.05836877599358559, -0.05360397696495056, 0.02799318917095661, -0.051593828946352005, 0.03729943558573723, 0.02871907502412796, 0.016332462430000305, 0.00943188089877367, 0.0006799375987611711, 0.016695406287908554, 0.019319767132401466, -0.04898808151483536, 0.048243582248687744, 0.03193903714418411, 0.010125195607542992, -0.0027197503950446844, 0.016928061842918396, 0.011111658066511154, -0.004325077868998051, 0.031492337584495544, 0.0020590070635080338, -0.041059158742427826, -0.018165793269872665, 0.019170867279171944, -0.03353971242904663, 0.0023102755658328533, 0.05453460291028023, -0.01280539482831955, 0.006723762955516577, 0.07199312001466751, 0.012749557383358479, 0.03018946200609207, 0.007691612467169762, -0.0054720728658139706, 0.028011800721287727, -0.03586627170443535, -0.0034084126818925142, -0.0034433112014085054, 0.05799652636051178, 0.0018507797503843904, 0.04288318380713463, 0.02261417917907238, 0.051556605845689774, 0.017579499632120132, -0.03912346065044403, 0.015085425227880478, -0.01570894382894039, 0.010785939171910286, 0.013736019842326641, -0.0146573381498456, 0.022595565766096115, 0.029500801116228104, -0.02907271310687065, -0.028570175170898438, 0.0012458737473934889, -0.03845341131091118, -0.03394918516278267, 0.0168722253292799, 0.0004045309033244848, 0.004867166746407747, -0.11435515433549881, -0.008305824361741543, 0.028290988877415657, -0.006500413175672293, 0.06611157208681107, 0.032441575080156326, -0.00939465593546629, -0.016220787540078163, -0.012554125860333443, 0.08546856790781021, -0.012944988906383514, -0.02963108755648136, -0.0456378310918808, 0.04973258078098297, 0.04020298272371292, -0.035438187420368195, 0.03789503499865532, -0.030729224905371666, 0.025499114766716957, 0.06521817296743393, 0.02505241520702839, -0.011204720474779606, 0.03331636264920235, 0.00945049338042736, 0.004792716819792986, 0.0727003961801529, -0.02121824212372303, -0.003655028296634555, 0.07601341605186462, 0.07418939471244812, 0.02222331613302231, -0.006253797560930252, -0.028049025684595108, 0.020492354407906532, -0.013252094388008118, -0.017877299338579178, 0.008249986916780472, -0.035196222364902496, -0.02588997781276703, 0.015653105452656746, 0.005188232287764549, 0.04619620740413666, 0.014489825814962387, -0.012972907163202763, -0.03793225809931755, -0.0381183847784996, 0.016202174127101898, 0.00909220241010189, -0.03063616342842579, 0.08919106423854828, -0.015001668594777584, 0.0031222456600517035, 0.012796088121831417, 0.04619620740413666, 0.0059653036296367645, 0.036796897649765015, -0.06391529738903046, -0.07169532030820847, 0.0360523983836174, -0.01950589194893837, -0.05405067652463913, -0.011874769814312458, -0.005769872572273016, 0.04347878322005272, 0.019356992095708847, -0.04061245918273926, 0.061160650104284286, -0.09187126159667969, -0.0000691425011609681, 0.021441591903567314, 0.026895051822066307, -0.0006147939129732549, -0.030561713501811028, 0.010934839025139809, 0.012191182933747768, 0.03528928756713867, 0.037913646548986435, -0.04634510725736618, -0.025536339730024338, -0.027099788188934326, -0.03286966308951378, -0.007770715747028589, 0.04303208366036415, -0.038713984191417694, 0.03331636264920235, 0.043702132999897, -0.007286790758371353, 0.009734333492815495, -0.021516041830182076, -0.01918947882950306, 0.016928061842918396, 0.015001668594777584, 0.08420291543006897, 0.013494056649506092, 0.012796088121831417, -0.009161999449133873, -0.016825692728161812, 0.011958526447415352, 0.0023160921409726143, 0.12440589815378189, 0.03318607434630394, -0.004232015460729599, 0.0003527649096213281, 0.002533625578507781, -0.045935630798339844, 0.004701980855315924, -0.0311945378780365, -0.004236668813973665, 0.04779687896370888, 0.007012256421148777, -0.050514303147792816, 0.022949203848838806, 0.0020438842475414276, -0.014145494438707829, 0.009315552189946175, -0.018724167719483376, 0.044297732412815094, -0.0037155188620090485, 0.010785939171910286, -0.0008212762186303735, 0.010329932905733585, 0.06644659489393234, 0.03363277390599251, 0.09991186112165451, -0.004504223354160786, 0.024419590830802917, -0.0010562589159235358, 0.04589840769767761, -0.011455989442765713, 0.037988096475601196, -0.025778302922844887, 0.03748555853962898, -0.013270706869661808, -0.04790855571627617, -0.04742462933063507, 0.041617535054683685, 0.01946866698563099, 0.03793225809931755, 0.044297732412815094, 0.044372182339429855, 0.026932276785373688, 0.024196241050958633, 0.04277150705456734, 0.033725835382938385, -0.0684567466378212, 0.009497024118900299, -0.046010080724954605, 0.03355832397937775, 0.06149567663669586, -0.005634932313114405, 0.031287599354982376, -0.02896103821694851, -0.010785939171910286, -0.08658531308174133, -0.06197959929704666, 0.009022405371069908, 0.029612476006150246, -0.033372197300195694, 0.007375200279057026, -0.039905183017253876, 0.01610911265015602, 0.018258854746818542, -0.021664941683411598, -0.022390827536582947, -0.018528737127780914, 0.023116715252399445, 0.06242629885673523, -0.013950062915682793, -0.039867959916591644, 0.07552949339151382, 0.002104375045746565, 0.0033944533206522465, 0.03445172309875488, -0.028421275317668915, -0.05308282747864723, -0.012675107456743717, -0.043851032853126526, 0.04128250852227211, -0.03286966308951378, -0.002887262962758541, -0.005295254290103912, -0.01818440482020378, 0.07005742192268372, 0.04131973162293434, -0.02473600208759308, -0.03413531184196472, -0.010153114795684814, 0.02696950174868107, -0.057698726654052734, -0.033725835382938385, 0.000024628834580653347, -0.03886288404464722, 0.06767502427101135, 0.030859513208270073, -0.004141279496252537, 0.00564423855394125, -0.007700918707996607, 0.008501255884766579, 0.01859387941658497, 0.0004900320200249553, -0.054944079369306564, -0.03195764869451523, -0.021609103307127953, 0.01086969580501318, -0.004164545331150293, -0.022204702720046043, 0.010171727277338505, 0.056023601442575455, -0.011763094924390316, -0.0000015358941709564533, -0.007984759286046028, 0.04671735689043999, 0.011697951704263687, -0.03175291046500206, -0.04909975454211235, -0.0013971001608297229, 0.03893733397126198, 0.05457182973623276, 0.00021462531003635377, -0.0011993424268439412, -0.01045091450214386, 0.02361925318837166, -0.0169932059943676, -0.032683536410331726, 0.04225035756826401, 0.04079858213663101, 0.04686625674366951, -0.05974610149860382, -0.028570175170898438, -0.022074416279792786, -0.07839582115411758, -0.007477568928152323, 0.03804393485188484, -0.004225035663694143, -0.012433145195245743, 0.019692016765475273, 0.06093730032444, 0.027900125831365585, 0.048206355422735214, 0.02013871632516384, -0.026373902335762978, -0.02380537800490856, 0.016006743535399437, -0.030245300382375717, -0.035512637346982956, 0.029463576152920723, -0.015587962232530117, 0.029984725639224052, -0.004232015460729599, 0.04113360866904259, -0.002327724825590849, 0.07020632177591324, 0.039830733090639114, 0.06153289973735809, 0.05695422738790512, 0.02054819092154503, 0.03231128677725792, 0.013596425764262676, -0.047722429037094116, -0.06860564649105072, 0.016164949163794518, -0.03841618448495865, -0.037560008466243744, 0.010553283616900444, 0.013075276277959347, 0.02038067951798439, 0.028588788583874702, 0.015122650191187859, 0.005085863638669252, 0.013168338686227798, -0.08301171660423279, 0.003022203454747796, -0.04131973162293434, -0.05736370012164116, -0.0069285002537071705, 0.0197850801050663, -0.016723323613405228, -0.03837895765900612, -0.0029268143698573112, 0.04172920808196068, -0.018714861944317818, 0.02317255362868309, -0.025983039289712906, -0.02421485260128975, -0.027769839391112328, -0.03752278536558151, -0.021087953820824623, 0.04965813085436821, -0.04582395777106285, 0.05416235327720642, 0.0076823062263429165, 0.00227886694483459, -0.05513020232319832, -0.08196941763162613, 0.012005058117210865, 0.056098051369190216, -0.020082879811525345, -0.013745325617492199, -0.010311320424079895, 0.0316784605383873, 0.01954311691224575, 0.03733665868639946, -0.0276767760515213, -0.05393900349736214, 0.02138575352728367, -0.003910949919372797, -0.001694900100119412, -0.0023312147241085768, -0.04180365800857544, 0.0003710865566972643, -0.048206355422735214, 0.01228424534201622, 0.05423680320382118, 0.014210637658834457, -0.013121807016432285, -0.051035452634096146, 0.012619270011782646, 0.014294394291937351, 0.052636127918958664, -0.0735565721988678, 0.0035689454525709152, 0.007780021987855434, 0.046047307550907135, -0.00472757313400507, -0.013791857287287712, 0.035754598677158356, 0.029184387996792793, 0.05189162865281105, 0.029091326519846916, 0.00909220241010189, -0.043292656540870667, -0.024754615500569344, -0.010916226543486118, 0.015150568448007107, -0.033725835382938385, -0.0804804190993309, 0.02708117663860321, -0.0441860556602478, 0.00545346038416028, -0.005518604069948196, 0.01376393809914589, -0.016862917691469193, 0.0015576329315081239, -0.04969535395503044, -0.022632790729403496, -0.05032818019390106, 0.07973591983318329, -0.03074783831834793, -0.04556338116526604, 0.04113360866904259, 0.05226387828588486, 0.023991502821445465, -0.033446647226810455, 0.0029151816852390766, 0.03607100993394852, 0.012144651263952255, -0.06503205001354218, 0.07638566941022873, 0.018314693123102188, -0.014052432030439377, -0.04761075600981712, -0.05058875307440758, 0.03420976176857948, -0.024698777124285698, 0.023284228518605232, 0.024829065427184105, -0.02696950174868107, -0.0423620343208313, -0.05751259997487068, 0.019077803939580917, 0.01859387941658497, 0.024307915940880775, -0.034637849777936935, -0.008668768219649792, -0.011576970107853413, -0.011362927034497261, 0.058331552892923355, -0.0693129226565361, -0.014192025177180767, -0.0034758830443024635, -0.038825660943984985, -0.056544750928878784, 0.00689127529039979, 0.010609121061861515, 0.009362083859741688, 0.027211464941501617, -0.02808625064790249, 0.03705747425556183, 0.03584766015410423, -0.01946866698563099, -0.04474443197250366, 0.0037573969457298517, 0.017886605113744736, -0.011604889295995235, 0.006523678544908762, 0.014089656993746758, -0.033651385456323624, -0.06536707282066345, 0.005388316698372364, 0.00549533823505044, 0.0002227682707598433, 0.012461063452064991, 0.021274078637361526, -0.0484297052025795, 0.005718688480556011, 0.017532967031002045, 0.023265615105628967, -0.03147372603416443, -0.04947200417518616, 0.0021160077303647995, -0.015643799677491188, -0.06968516856431961, -0.08584081381559372, 0.026895051822066307, 0.0005327825783751905, -0.03852786123752594, 0.03322329744696617, -0.007575284224003553, 0.0014727134257555008, 0.017132800072431564, 0.022911978885531425, -0.03852786123752594, -0.05032818019390106, -0.0650692731142044, 0.0023754192516207695, -0.02847711369395256, -0.029649700969457626, 0.038155607879161835, 0.07675791531801224, -0.08948886394500732, -0.0220930278301239, 0.02907271310687065, -0.0031315519008785486, -0.014154800213873386, -0.029407737776637077, 0.00011014814663212746, 0.051035452634096146, 0.0036131502129137516, -0.06968516856431961, 0.009082896634936333, -0.02736036479473114, 0.008738565258681774, -0.017281699925661087, -0.00046909297816455364, -0.029686925932765007, -0.03608962148427963, 0.021199628710746765, 0.0707646980881691, -0.007798634469509125, -0.027714001014828682, -0.05088655278086662, 0.004511202685534954, 0.03169707581400871, -0.07206757366657257, 0.00841750018298626, 0.001619286835193634, -0.1238102987408638, 0.007105318829417229, -0.017384067177772522, 0.021609103307127953, -0.019971204921603203, -0.02959386259317398, -0.027211464941501617, 0.006300328765064478, 0.022632790729403496, 0.020082879811525345, 0.019803691655397415, 0.043813806027173996, -0.008101087063550949, 0.019933979958295822, 0.05308282747864723, -0.0002695903240237385, -0.0030594284180551767, -0.011930607259273529, -0.029407737776637077, 0.0020148023031651974, -0.008031290955841541, 0.043851032853126526, 0.020250391215085983, -0.025815527886152267, 0.03298133611679077, -0.05870380252599716, 0.017607418820261955, 0.006570209749042988, 0.011186107993125916, 0.009008446708321571, 0.007342628203332424, 0.04191533476114273, -0.006733069196343422, -0.005411582067608833, -0.012340082786977291, 0.034879811108112335, 0.014964443631470203, 0.0037713563069701195, -0.0036340891383588314, -0.03688995912671089, -0.03355832397937775, -0.032013487070798874, -0.02851433865725994, -0.03780197352170944, -0.02756510116159916, -0.020529579371213913, 0.015001668594777584, 0.029928887262940407, 0.015466981567442417, -0.06439922749996185, -0.01798897422850132, 0.006425963249057531, -0.006565556861460209, 0.05230110511183739, 0.04176643490791321, -0.004250627942383289, -0.04742462933063507, 0.03927236050367355, -0.015457674860954285, -0.06778670102357864, 0.04280873388051987, -0.01667679287493229, -0.021311303600668907, -0.05524187907576561, 0.0071937283501029015, 0.02097627893090248, -0.005923425778746605, 0.02756510116159916, -0.06648382544517517, -0.08732981234788895, -0.06760057061910629, 0.03830450773239136, -0.021646328270435333, -0.01418271940201521, 0.01092553324997425, -0.053827326744794846, 0.06897789984941483, 0.018966129049658775, 0.025536339730024338, 0.009799477644264698, -0.006593475583940744, 0.025852752849459648, -0.04783410578966141, 0.02836543880403042, 0.050477080047130585, 0.027751225978136063, -0.0893399640917778, -0.03754139691591263, 0.044967781752347946, 0.04463275521993637, -0.026820601895451546, -0.04459553211927414, 0.008319783955812454, -0.016695406287908554, -0.05457182973623276, 0.02628083899617195, 0.0053650508634746075, 0.0013784876791760325, -0.04854138195514679, -0.02337728999555111, 0.015001668594777584, 0.014852768741548061, -0.032683536410331726, 0.04031465947628021, 0.013456831686198711, -0.03927236050367355, 0.002763955155387521, 0.022949203848838806, -0.024419590830802917, 0.032962724566459656, 0.013950062915682793, 0.05118435248732567, 0.06577654927968979, -0.003278125310316682, 0.02987305074930191, -0.04682902991771698, -0.018817229196429253, 0.0007892859866842628, 0.048280805349349976, -0.011576970107853413, -0.017523661255836487, 0.08263946324586868, -0.010227564722299576, -0.01575547456741333, -0.0032478799112141132, 0.026336677372455597, 0.028812138363718987, 0.03588488698005676, -0.04615898057818413, 0.008305824361741543, -0.02170216664671898, -0.08881881088018417, -0.07095082104206085, 0.001419202541001141, -0.047573529183864594, 0.06801004707813263, 0.04072413221001625, 0.008403540588915348, 0.02711840160191059, 0.057214800268411636, 0.011502520181238651 ]
714,947
pytorch_optimizer.optimizer.adadelta
__str__
null
def __str__(self) -> str: return 'AdaDelta'
(self) -> str
[ 0.0006531590479426086, 0.0018565678037703037, 0.009820487350225449, -0.0066071972250938416, -0.006367775611579418, -0.05440331622958183, -0.009098022244870663, 0.020397042855620384, 0.0333678163588047, -0.016935931518673897, -0.04314630106091499, -0.018263250589370728, -0.011173009872436523, 0.02921784110367298, -0.006905423942953348, -0.019187334924936295, -0.019422555342316628, 0.001274815178476274, -0.004960648249834776, 0.01595304161310196, 0.012189501896500587, 0.0262775756418705, -0.019422555342316628, -0.02815934456884861, -0.009039216674864292, 0.04223901778459549, -0.005733518395572901, -0.032326120883226395, -0.034812744706869125, -0.010643761605024338, -0.01900251768529415, -0.04979969933629036, 0.000602754473220557, -0.006771011743694544, -0.05174867808818817, -0.009988502599298954, -0.016490690410137177, -0.02772250585258007, -0.06327451765537262, -0.023152492940425873, 0.025941545143723488, -0.010500948876142502, 0.02214440144598484, -0.015549805015325546, 0.014802137389779091, -0.029671480879187584, -0.03535039350390434, 0.0005250474787317216, -0.04361674189567566, -0.005384886637330055, 0.02026263065636158, -0.018868105486035347, 0.029402658343315125, 0.025437498465180397, -0.0193889532238245, 0.04677542671561241, 0.038576286286115646, 0.01728876307606697, -0.04092849791049957, 0.04771631211042404, -0.03924834728240967, 0.004347392823547125, 0.08131934702396393, -0.050169333815574646, -0.01549100037664175, -0.009022415615618229, 0.003532519331201911, 0.0243453998118639, 0.023589331656694412, 0.05631868913769722, 0.015138167887926102, -0.047010648995637894, 0.022009989246726036, 0.0007161647081375122, 0.0020214326214045286, -0.021354729309678078, -0.044423215091228485, 0.013214394450187683, 0.013189191929996014, -0.03545120358467102, -0.00929964054375887, -0.022934073582291603, 0.02153954654932022, 0.03199009224772453, 0.04953087493777275, -0.08622539043426514, -0.04106291010975838, -0.018179243430495262, -0.008505769073963165, -0.014886145479977131, -0.007266656961292028, -0.04764910787343979, -0.05238713324069977, 0.035854440182447433, -0.04842197522521019, 0.011861871927976608, 0.013726840727031231, -0.03750098869204521, 0.03484635055065155, 0.009106422774493694, 0.04102930799126625, 0.02936905436217785, 0.006161957047879696, 0.026378383859992027, -0.033535830676555634, -0.05631868913769722, -0.029570672661066055, -0.011920677497982979, -0.008178139105439186, 0.01549100037664175, -0.0065021878108382225, 0.01743997633457184, 0.04233982786536217, -0.008736789226531982, 0.000892580661457032, -0.03776981309056282, 0.004582614172250032, -0.016364678740501404, 0.00669540511444211, -0.00000393785603591823, 0.03736657649278641, 0.02540389634668827, -0.04197019338607788, 0.005876331124454737, 0.025219079107046127, 0.048791609704494476, -0.012659944593906403, -0.0005197969730943441, 0.010005304589867592, -0.0316876657307148, 0.059947818517684937, 0.011593047529459, -0.05168147012591362, 0.010232124477624893, 0.11048678308725357, -0.016322676092386246, 0.11572886258363724, 0.023706942796707153, 0.0032615948002785444, 0.11593047529459, -0.0137520432472229, 0.020245829597115517, 0.08145376294851303, 0.016700709238648415, -0.051211029291152954, 0.025185476988554, -0.04307909309864044, 0.052555151283741, -0.040390849113464355, 0.014222485013306141, 0.003486315021291375, 0.005737718660384417, 0.00012633953883778304, -0.0029381655622273684, 0.0278233140707016, -0.029117031022906303, -0.037400178611278534, -0.028730597347021103, 0.008980412036180496, -0.020783478394150734, -0.002952866954728961, -0.017028339207172394, -0.015919439494609833, -0.014062871225178242, 0.012575936503708363, -0.009156827814877033, -0.004981650039553642, 0.012357517145574093, -0.030125122517347336, 0.013012776151299477, -0.015440595336258411, -0.028797803446650505, -0.028243353590369225, 0.051446251571178436, -0.00687602162361145, 0.035081569105386734, 0.015919439494609833, 0.0820586159825325, 0.04220541566610336, -0.03965158388018608, 0.0017946121515706182, 0.03988680616021156, -0.04324710741639137, 0.03222531080245972, 0.049060434103012085, -0.0667356327176094, -0.005628508515655994, 0.05497456714510918, 0.021841974928975105, -0.037131354212760925, 0.021052302792668343, 0.019960204139351845, -0.018985716626048088, -0.02936905436217785, -0.03298138082027435, -0.03064597025513649, -0.019724981859326363, -0.055747438222169876, 0.05104301497340202, 0.004017663188278675, -0.01397046260535717, 0.04012202471494675, -0.01611265540122986, 0.04633858799934387, 0.06797894090414047, 0.0025454300921410322, 0.031066007912158966, -0.028696993365883827, -0.02815934456884861, -0.05433611199259758, 0.045968953520059586, 0.042877476662397385, 0.010912586003541946, -0.007249855436384678, 0.006359374616295099, -0.07258255779743195, 0.02533669024705887, 0.02142193540930748, 0.004998451564460993, 0.032057296484708786, 0.031183619052171707, 0.00398826040327549, -0.0038097442593425512, -0.02379094995558262, 0.009266037493944168, -0.018649686127901077, 0.05389927327632904, 0.014902946539223194, -0.04062607139348984, -0.041936591267585754, -0.023891760036349297, -0.09650792181491852, -0.05127823352813721, 0.005183268338441849, 0.08998893201351166, 0.05981340631842613, -0.05158066377043724, -0.01811203733086586, -0.05736038461327553, -0.038408271968364716, -0.013617631047964096, -0.004822035785764456, 0.03649289906024933, 0.075741246342659, 0.013197592459619045, -0.050505366176366806, -0.008980412036180496, 0.006993632297962904, -0.044692039489746094, -0.02347172051668167, 0.05235353112220764, -0.053697653114795685, -0.0026210369542241096, 0.03662731125950813, -0.00047779318992979825, -0.03148604556918144, -0.0036753322929143906, 0.011794665828347206, 0.014659324660897255, -0.019120128825306892, -0.03157005459070206, -0.03372064605355263, -0.053092800080776215, 0.05682273581624031, 0.005317680537700653, 0.03766900300979614, 0.008354554884135723, -0.0021946984343230724, 0.023589331656694412, -0.0003483689797576517, 0.0494636707007885, -0.012575936503708363, -0.057393986731767654, 0.007283458486199379, -0.026529597118496895, -0.03163725882768631, 0.029066627845168114, 0.026143163442611694, -0.07594286650419235, -0.049329258501529694, -0.02120351605117321, -0.05917494744062424, -0.03706414997577667, 0.04082769155502319, -0.06744129210710526, -0.05070698261260986, 0.029251443222165108, 0.003950457088649273, 0.006266966462135315, 0.03850908204913139, 0.06606356799602509, 0.034644730389118195, 0.012139096856117249, -0.003175487043336034, 0.02936905436217785, 0.06085510179400444, 0.04973249509930611, 0.013466416858136654, 0.0010007404489442706, 0.036089662462472916, -0.030007511377334595, -0.025941545143723488, 0.007711897138506174, -0.011257017031311989, -0.09113143384456635, 0.020833883434534073, 0.0301419235765934, 0.01777600683271885, 0.05658751353621483, -0.00527567695826292, -0.02589114010334015, 0.032057296484708786, -0.021052302792668343, 0.07876551896333694, -0.013105184771120548, 0.031838878989219666, -0.0020707871299237013, 0.0018912209197878838, 0.04136534035205841, 0.08111773431301117, -0.044154390692710876, 0.06760931015014648, -0.07977361232042313, 0.005246274173259735, 0.023186095058918, -0.012323914095759392, 0.018145639449357986, 0.023824553936719894, 0.06545871496200562, -0.002038234146311879, -0.06797894090414047, -0.04475924372673035, 0.027739306911826134, -0.0067500099539756775, -0.043919168412685394, -0.02400936931371689, 0.013886455446481705, -0.017574388533830643, -0.00966087356209755, 0.0041856784373521805, 0.08985452353954315, 0.04113011807203293, -0.0401892326772213, 0.03076357953250408, 0.046909838914871216, 0.01811203733086586, -0.004662421531975269, -0.006939026992768049, 0.056957148015499115, 0.012332314625382423, -0.015575007535517216, 0.0004667671746574342, -0.011492238380014896, 0.040390849113464355, 0.06314010918140411, -0.01717115193605423, 0.008287348784506321, 0.002835256280377507, -0.03052835911512375, 0.0022093995939940214, -0.0372321642935276, -0.04281026870012283, 0.003755139419808984, 0.029066627845168114, -0.033939067274332047, -0.02837776392698288, -0.017473578453063965, -0.05611707270145416, 0.06599636375904083, -0.01755758747458458, -0.017742402851581573, 0.04139894247055054, 0.02999071031808853, -0.008467965759336948, -0.043213505297899246, 0.04438961297273636, 0.04324710741639137, 0.011156207881867886, -0.013827649876475334, 0.014096474274992943, 0.02132112719118595, 0.0011204512557014823, -0.019691379740834236, 0.08709907531738281, 0.05544501170516014, 0.006796214263886213, 0.022514034062623978, -0.02197638712823391, 0.019036119803786278, -0.012071890756487846, 0.010257326997816563, -0.038072239607572556, -0.008518369868397713, -0.01049254834651947, -0.06061987951397896, -0.07876551896333694, -0.03125082328915596, -0.027520887553691864, -0.0659627616405487, 0.011509040370583534, 0.056352294981479645, -0.016473889350891113, -0.0005675763241015375, 0.002667241031304002, -0.039449963718652725, -0.008854400366544724, 0.03207409754395485, 0.0364592969417572, -0.06559313088655472, 0.02876419946551323, -0.0018397662788629532, -0.007220452651381493, -0.06189679354429245, -0.011735860258340836, 0.056889940053224564, 0.004973249509930611, -0.03672812134027481, -0.07654771953821182, -0.03538399934768677, -0.03572002798318863, -0.04015563055872917, 0.04694344103336334, 0.01876729540526867, 0.02081708237528801, 0.0401892326772213, 0.010030506178736687, 0.017708800733089447, 0.06757570803165436, 0.04499446600675583, 0.010265727527439594, -0.000321591563988477, -0.0181624423712492, 0.010232124477624893, -0.049833305180072784, 0.02269885130226612, -0.007938717491924763, 0.008102532476186752, -0.03582083806395531, -0.0012002584990113974, 0.023454919457435608, 0.003969358745962381, -0.057965237647295, 0.03444311395287514, 0.022614844143390656, -0.015264179557561874, -0.06314010918140411, -0.020632265135645866, -0.040222834795713425, 0.04664101451635361, -0.014978554099798203, 0.009240834973752499, 0.0573267824947834, 0.0102405259385705, -0.052319929003715515, 0.05998142063617706, -0.04741388559341431, -0.019691379740834236, -0.04825396090745926, -0.017641594633460045, -0.005477295257151127, -0.02832736074924469, 0.022043593227863312, -0.036358486860990524, 0.009770083241164684, 0.030444351956248283, 0.012626341544091702, 0.01049254834651947, 0.00669540511444211, -0.05074058473110199, -0.011735860258340836, 0.04801873862743378, -0.029469864442944527, 0.0029087630100548267, -0.007304460275918245, -0.017406372353434563, 0.0278233140707016, -0.032594945281744, -0.026815224438905716, -0.017759205773472786, -0.018011227250099182, -0.03535039350390434, -0.08293229341506958, -0.0046162172220647335, 0.046237777918577194, -0.013878053985536098, 0.045532114803791046, -0.0174567773938179, 0.010383338667452335, -0.006334172561764717, -0.019422555342316628, 0.009148427285254002, 0.019556967541575432, -0.05147985368967056, -0.01905292272567749, 0.006086349952965975, 0.005569703411310911, 0.014440905302762985, -0.04617057368159294, -0.0756068304181099, 0.009442453272640705, 0.004351593088358641, -0.034207891672849655, -0.009492858313024044, -0.040962103754282, 0.035652823746204376, -0.03157005459070206, -0.0013147188583388925, -0.0034779142588377, -0.011458635330200195, -0.0309147946536541, -0.0034464115742594004, -0.03770260885357857, 0.05010212957859039, 0.040995705872774124, 0.024429408833384514, 0.012920367531478405, -0.010400139726698399, 0.022178003564476967, 0.012853161431849003, 0.0024971256498247385, -0.024933453649282455, -0.026126360520720482, -0.02760489471256733, -0.07271697372198105, -0.029772290959954262, 0.03076357953250408, -0.05729317665100098, 0.005460493732243776, -0.03410708159208298, 0.07748860120773315, 0.022766057401895523, 0.0266640093177557, 0.04936286062002182, 0.07049917429685593, -0.01220630295574665, 0.075741246342659, -0.0897873118519783, -0.0014648823998868465, -0.03395586833357811, 0.03025953471660614, 0.030511558055877686, -0.04973249509930611, -0.019019318744540215, -0.0571923702955246, 0.010500948876142502, 0.011794665828347206, 0.001113100559450686, 0.03037714585661888, 0.06061987951397896, 0.027571292594075203, -0.022446827962994576, -0.006233363412320614, -0.06613077968358994, -0.011794665828347206, -0.00929964054375887, 0.07916875183582306, -0.010005304589867592, -0.002398416865617037, 0.04314630106091499, 0.004649820271879435, -0.03810584545135498, -0.047850724309682846, 0.07721977680921555, 0.0711040273308754, 0.012441524304449558, 0.06451783329248428, 0.013197592459619045, 0.028629787266254425, 0.015440595336258411, -0.0005633759428746998, -0.011660253629088402, -0.09166908264160156, 0.012197902426123619, -0.010576555505394936, -0.09267717599868774, 0.042877476662397385, 0.02103550173342228, -0.008161338046193123, -0.023723743855953217, 0.014886145479977131, -0.006947427988052368, 0.01021532341837883, -0.0045028068125247955, -0.029721885919570923, -0.010685766115784645, 0.032712556421756744, 0.01888490654528141, 0.012945570051670074, 0.06902063637971878, -0.05685633793473244, -0.09731439501047134, -0.016818320378661156, -0.02987309917807579, -0.0081151332706213, -0.005830126814544201, -0.04667462036013603, 0.017238358035683632, 0.003696334082633257, 0.007833708077669144, 0.004889241885393858, 0.03375425189733505, 0.0004389396635815501, 0.01755758747458458, 0.06008223071694374, 0.05201750248670578, 0.06774372607469559, 0.03753459081053734, -0.013575626537203789, -0.04344872757792473, -0.008551972918212414, -0.010072510689496994, -0.004330591298639774, 0.0006473835092037916, -0.03561921790242195, 0.0073716663755476475, -0.04314630106091499, 0.05880531668663025, -0.05020293593406677, -0.03689613565802574, 0.0618295893073082, -0.006145155522972345, 0.054571330547332764, -0.05379846319556236, 0.012953970581293106, -0.028747398406267166, 0.02224520966410637, 0.0009487607749179006, -0.010878982953727245, 0.042541444301605225, -0.077555812895298, 0.039113935083150864, 0.042037397623062134, -0.053092800080776215, -0.07963919639587402, -0.0380050353705883, 0.020178623497486115, 0.00897201057523489, 0.0033624039497226477, 0.005825926549732685, 0.010761372745037079, 0.0263447817414999, 0.020497852936387062, -0.0349135547876358, 0.04744748771190643, -0.0313684344291687, 0.008304150775074959, -0.06307289749383926, -0.0510094091296196, -0.056889940053224564, -0.0081151332706213, -0.014869343489408493, -0.028848206624388695, -0.014373699203133583, 0.028747398406267166, 0.004267585929483175, -0.005141264759004116, 0.005435291212052107, 0.03914753720164299, -0.0045406105928123, -0.031452443450689316, 0.0035241185687482357, -0.033098991960287094, -0.02881460450589657, -0.02400936931371689, 0.09381967782974243, -0.009106422774493694, 0.013533622957766056, 0.006308970041573048, 0.03015872649848461, -0.02147234044969082, -0.022598043084144592, 0.0006090550450608134, 0.0033225002698600292, -0.04422159865498543, -0.002016182290390134, -0.007086040452122688, 0.06421540677547455, 0.03454392030835152, 0.12937168776988983, -0.01656629703938961, -0.03252774104475975, 0.022934073582291603, 0.018347257748246193, -0.0533280186355114, 0.014079672284424305, 0.0588725209236145, -0.03175486996769905, 0.013878053985536098, 0.03803863748908043, -0.037904225289821625, -0.060384657233953476, -0.022295614704489708, -0.039113935083150864, -0.0004859314067289233, 0.092744380235672, -0.01217269990593195, -0.015037358738481998, -0.002549630356952548, -0.029335452243685722, -0.0160706527531147, 0.05981340631842613, 0.05611707270145416, 0.0044398014433681965, 0.009602067992091179, 0.038576286286115646, -0.013163989409804344, 0.009988502599298954, -0.023051682859659195, -0.01705354079604149, -0.034711938351392746, 0.0495980829000473, 0.07708536833524704, -0.033149395138025284, 0.007035635877400637, 0.049329258501529694, -0.03405667841434479, -0.043650344014167786, 0.011299021542072296, 0.004595215432345867, 0.054806552827358246, -0.05104301497340202, 0.0018891207873821259, 0.01772560179233551, 0.011324223130941391, 0.0067206076346337795, 0.01743997633457184, -0.05621788278222084, -0.010887384414672852, -0.06095590814948082, -0.031838878989219666, 0.0009498108411207795, 0.04351593181490898, -0.0018408163450658321, 0.011542643420398235, 0.016549495980143547, 0.03407347947359085, 0.010282529518008232, 0.007997523061931133, 0.06589555740356445, 0.03988680616021156, -0.00003941137401852757, 0.0239589661359787, 0.010450544767081738, 0.00521687138825655, 0.011156207881867886, 0.023824553936719894, -0.008888003416359425, 0.04445681720972061, -0.048186756670475006, 0.010366536676883698, 0.06199760362505913, 0.03126762434840202, -0.029671480879187584, 0.030679572373628616, 0.011122604832053185, -0.06576114147901535, 0.026025552302598953, 0.012164299376308918, 0.011996284127235413, -0.036022454500198364, 0.026815224438905716, -0.04677542671561241, 0.043314315378665924, 0.010248926468193531, -0.008677984587848186, 0.03303178399801254, -0.013617631047964096, -0.0039315554313361645 ]
714,983
pytorch_optimizer.optimizer.adafactor
AdaFactor
Adaptive Learning Rates with Sublinear Memory Cost. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param decay_rate: float. coefficient used to compute running averages of square gradient. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param clip_threshold: float. threshold of root-mean-square of final gradient update. :param ams_bound: bool. whether to use the AMSBound variant. :param scale_parameter: bool. if true, learning rate is scaled by root-mean-square of parameter. :param relative_step: bool. if true, time-dependent learning rate is computed instead of external learning rate. :param warmup_init: bool. time-dependent learning rate computation depends on whether warm-up initialization is being used. :param eps1: float. term added to the denominator to improve numerical stability. :param eps2: float. term added to the denominator to improve numerical stability.
class AdaFactor(Optimizer, BaseOptimizer): r"""Adaptive Learning Rates with Sublinear Memory Cost. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param decay_rate: float. coefficient used to compute running averages of square gradient. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param clip_threshold: float. threshold of root-mean-square of final gradient update. :param ams_bound: bool. whether to use the AMSBound variant. :param scale_parameter: bool. if true, learning rate is scaled by root-mean-square of parameter. :param relative_step: bool. if true, time-dependent learning rate is computed instead of external learning rate. :param warmup_init: bool. time-dependent learning rate computation depends on whether warm-up initialization is being used. :param eps1: float. term added to the denominator to improve numerical stability. :param eps2: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: Optional[float] = 1e-3, betas: BETAS = (0.9, 0.999), decay_rate: float = -0.8, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, clip_threshold: float = 1.0, ams_bound: bool = False, scale_parameter: bool = True, relative_step: bool = True, warmup_init: bool = False, eps1: float = 1e-30, eps2: float = 1e-3, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps1, 'eps1') self.validate_non_negative(eps2, 'eps2') self.decay_rate = decay_rate self.clip_threshold = clip_threshold self.eps1 = eps1 self.eps2 = eps2 defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'ams_bound': ams_bound, 'scale_parameter': scale_parameter, 'relative_step': relative_step, 'warmup_init': warmup_init, 'eps1': eps1, 'eps2': eps2, } super().__init__(params, defaults) def __str__(self) -> str: return 'AdaFactor' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] grad = p.grad grad_shape: Tuple[int, ...] = grad.shape factored: bool = self.get_options(grad_shape) state['exp_avg'] = torch.zeros_like(p) if factored: state['exp_avg_sq_row'] = torch.zeros(grad_shape[:-1], dtype=grad.dtype, device=grad.device) state['exp_avg_sq_col'] = torch.zeros( grad_shape[:-2] + grad_shape[-1:], dtype=grad.dtype, device=grad.device ) else: state['exp_avg_sq'] = torch.zeros_like(grad) if group['ams_bound']: state['exp_avg_sq_hat'] = torch.zeros_like(grad) state['RMS'] = 0.0 def get_lr( self, lr: float, step: int, rms: float, relative_step: bool, warmup_init: bool, scale_parameter: bool ) -> float: r"""Get AdaFactor learning rate.""" relative_step_size: float = lr if relative_step: min_step: float = 1e-6 * step if warmup_init else 1e-2 relative_step_size = min(min_step, 1.0 / math.sqrt(step)) param_scale: float = 1.0 if scale_parameter else max(self.eps2, rms) return param_scale * relative_step_size @staticmethod def get_options(shape: Tuple[int, ...]) -> bool: r"""Get `factored`.""" return len(shape) >= 2 @staticmethod def get_rms(x: torch.Tensor) -> float: r"""Get RMS.""" return x.norm(2) / math.sqrt(x.numel()) @staticmethod def approximate_sq_grad( exp_avg_sq_row: torch.Tensor, exp_avg_sq_col: torch.Tensor, output: torch.Tensor, ): r"""Get approximation of EMA of squared gradient.""" r_factor: torch.Tensor = (exp_avg_sq_row / exp_avg_sq_row.mean(dim=-1, keepdim=True)).rsqrt_().unsqueeze(-1) c_factor: torch.Tensor = exp_avg_sq_col.unsqueeze(-2).rsqrt() torch.mul(r_factor, c_factor, out=output) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, _ = group['betas'] beta2_t: float = 1.0 - math.pow(group['step'], self.decay_rate) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] grad_shape: Tuple[int, ...] = grad.shape factored: bool = self.get_options(grad_shape) if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) if factored: state['exp_avg_sq_row'] = torch.zeros(grad_shape[:-1], dtype=grad.dtype, device=grad.device) state['exp_avg_sq_col'] = torch.zeros( grad_shape[:-2] + grad_shape[-1:], dtype=grad.dtype, device=grad.device ) else: state['exp_avg_sq'] = torch.zeros_like(grad) if group['ams_bound']: state['exp_avg_sq_hat'] = torch.zeros_like(grad) state['RMS'] = 0.0 state['RMS'] = self.get_rms(p) lr: float = self.get_lr( lr=group['lr'], step=group['step'], rms=state['RMS'], relative_step=group['relative_step'], warmup_init=group['warmup_init'], scale_parameter=group['scale_parameter'], ) update = torch.mul(grad, grad).add_(self.eps1) if factored: exp_avg_sq_row, exp_avg_sq_col = state['exp_avg_sq_row'], state['exp_avg_sq_col'] exp_avg_sq_row.mul_(beta2_t).add_(update.mean(dim=-1), alpha=1.0 - beta2_t) exp_avg_sq_col.mul_(beta2_t).add_(update.mean(dim=-2), alpha=1.0 - beta2_t) self.approximate_sq_grad(exp_avg_sq_row, exp_avg_sq_col, update) else: exp_avg_sq = state['exp_avg_sq'] exp_avg_sq.mul_(beta2_t).add_(update, alpha=1.0 - beta2_t) torch.rsqrt(exp_avg_sq, out=update) if group['ams_bound']: exp_avg_sq_hat = state['exp_avg_sq_hat'] torch.max(exp_avg_sq_hat, 1 / update, out=exp_avg_sq_hat) torch.rsqrt(exp_avg_sq_hat / beta2_t, out=update) update.mul_(grad) update.div_((self.get_rms(update) / self.clip_threshold).clamp_(min=1.0)).mul_(lr) exp_avg = state['exp_avg'] exp_avg.mul_(beta1).add_(update, alpha=1.0 - beta1) self.apply_weight_decay( p=p, grad=None
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: Optional[float] = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), decay_rate: float = -0.8, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, clip_threshold: float = 1.0, ams_bound: bool = False, scale_parameter: bool = True, relative_step: bool = True, warmup_init: bool = False, eps1: float = 1e-30, eps2: float = 0.001)
[ -0.008027177304029465, -0.02753947116434574, 0.004272029269486666, 0.025079112499952316, 0.013955812901258469, -0.01165051944553852, -0.06496172398328781, -0.07335589081048965, -0.05454138666391373, 0.007086451631039381, -0.02239132672548294, 0.00927286222577095, 0.04685018211603165, 0.09882783144712448, -0.011681532487273216, 0.05838698893785477, 0.0006357648526318371, 0.06508577615022659, 0.025141138583421707, 0.009614004753530025, -0.045816417783498764, -0.05929670110344887, -0.05007552355527878, 0.017935805022716522, -0.03136439621448517, 0.007577489595860243, 0.05755997449159622, -0.01651954837143421, -0.058717790991067886, 0.016860689967870712, -0.012177739292383194, -0.05801483243703842, 0.012508544139564037, 0.0006451333174481988, 0.02006535790860653, -0.0782766044139862, 0.01983793079853058, -0.007215672172605991, -0.08158464729785919, -0.02352846786379814, 0.02685718797147274, -0.03198465704917908, 0.048876360058784485, -0.01549612171947956, -0.03030995838344097, -0.003401083406060934, -0.019383074715733528, 0.03516864776611328, -0.017894454300403595, -0.030682113021612167, 0.004662275314331055, -0.09188093990087509, 0.06640899926424026, 0.04573371633887291, -0.0013619839446619153, 0.06231528893113136, 0.019910292699933052, -0.0332251712679863, 0.027973651885986328, -0.06967569142580032, 0.03341124951839447, -0.08824209123849869, 0.038869522511959076, -0.02334238961338997, -0.011733220890164375, -0.0066884527914226055, -0.07546477019786835, -0.006590245291590691, 0.002579241059720516, 0.026030175387859344, -0.008549227379262447, -0.02917281910777092, 0.029772400856018066, -0.018948892131447792, -0.02950362302362919, -0.005411754362285137, -0.02753947116434574, -0.008507877588272095, -0.026154227554798126, -0.04821474850177765, 0.02714664116501808, 0.05822158604860306, -0.0332251712679863, -0.010720131918787956, 0.028986740857362747, -0.045940469950437546, -0.005292871501296759, -0.015051603317260742, -0.00427978252992034, -0.03957248479127884, 0.04494805634021759, -0.031798578798770905, 0.047015585005283356, 0.061653681099414825, 0.016860689967870712, 0.014514045789837837, -0.025513293221592903, -0.039489783346652985, -0.0018103790935128927, -0.040399495512247086, -0.011185325682163239, 0.007070945575833321, 0.03516864776611328, 0.06500307470560074, 0.014514045789837837, -0.049662020057439804, -0.03882817551493645, -0.038807500153779984, 0.05433463305234909, -0.04407969489693642, -0.06016506254673004, 0.013521632179617882, -0.05003417655825615, -0.009427927434444427, -0.04250837489962578, 0.009091953746974468, -0.02057190239429474, 0.014286617748439312, -0.03837331756949425, 0.05206035077571869, 0.06285284459590912, 0.026526382192969322, -0.055037591606378555, 0.017718713730573654, 0.02160566672682762, -0.015154979191720486, 0.03266694024205208, 0.014090202748775482, -0.00019447684462647885, -0.05727052316069603, -0.03347327560186386, 0.008249436505138874, -0.02222592383623123, -0.006404167506843805, 0.01802884228527546, -0.018587075173854828, 0.04445184767246246, 0.012653270736336708, -0.04461725056171417, 0.006559232249855995, 0.013159815222024918, 0.0693448856472969, -0.006367986090481281, -0.06483767181634903, 0.0036957061383873224, -0.018008168786764145, 0.03227411210536957, -0.0028144223615527153, -0.018452687188982964, -0.009045434184372425, -0.011495455168187618, -0.01015156228095293, -0.02092338167130947, 0.0012456855038180947, 0.04075097292661667, -0.005933804903179407, -0.0218744445592165, 0.017542973160743713, -0.02249470353126526, -0.005220507737249136, -0.051067937165498734, -0.03715347498655319, -0.053052764385938644, -0.005494455341249704, 0.0037008749786764383, -0.00474756071344018, -0.03014455735683441, 0.014296955429017544, -0.03647119179368019, 0.014307293109595776, 0.024955062195658684, -0.07740824669599533, -0.019290035590529442, 0.012891036458313465, -0.06554063409566879, 0.08150194585323334, 0.005949311424046755, 0.012539556249976158, 0.017946142703294754, -0.0076912036165595055, 0.031963981688022614, -0.005282533820718527, -0.029999829828739166, -0.042384322732686996, -0.027518795803189278, 0.01478282455354929, -0.010637431405484676, 0.03206735849380493, -0.013718047179281712, 0.029586324468255043, 0.003881783690303564, -0.04668477922677994, 0.010161899961531162, -0.05036497861146927, -0.0625220462679863, 0.008259774185717106, 0.0035923297982662916, 0.01473113615065813, 0.09767001867294312, 0.023114962503314018, -0.042425673454999924, 0.011485117487609386, 0.0032744472846388817, -0.014720798470079899, 0.0027730718720704317, -0.031136969104409218, -0.010394496843218803, 0.01351129449903965, -0.03442433848977089, 0.015134303830564022, -0.08112979680299759, 0.006187077146023512, 0.033101122826337814, 0.06281149387359619, 0.04250837489962578, -0.05706376954913139, 0.04924851283431053, 0.03008253127336502, 0.051067937165498734, 0.03177790343761444, -0.008027177304029465, -0.07186727225780487, -0.0060216751880943775, 0.0008670695242471993, 0.06380391120910645, -0.0009161732741631567, 0.03380408138036728, 0.02454155683517456, -0.020282449200749397, -0.002853188430890441, 0.0039541469886898994, -0.03622308745980263, -0.0003944455529563129, 0.0031193827744573355, 0.07046134769916534, 0.09560249000787735, -0.017935805022716522, 0.009303875267505646, -0.03030995838344097, -0.024334803223609924, -0.0075981649570167065, 0.0025598579086363316, -0.004866443574428558, 0.026650434359908104, -0.027787575498223305, 0.013604333624243736, 0.07013054937124252, 0.04544426128268242, -0.0526806116104126, -0.013873112387955189, -0.018928218632936478, -0.006228427868336439, 0.0039515625685453415, 0.05851103737950325, -0.08526484668254852, -0.018576737493276596, 0.028407832607626915, 0.06260474771261215, 0.02079933136701584, -0.06318365037441254, 0.040688950568437576, -0.014648434706032276, -0.03432096168398857, 0.05408652871847153, -0.011836596764624119, 0.059958308935165405, 0.046229925006628036, -0.017046768218278885, 0.00764468451961875, 0.02447953075170517, 0.07703609019517899, 0.08253571391105652, -0.05925535038113594, 0.0031348890624940395, -0.01113363727927208, 0.05024092644453049, -0.0058769481256604195, -0.003414005506783724, -0.02294955961406231, 0.018276946619153023, 0.04097840189933777, -0.03136439621448517, -0.04908311367034912, 0.026981238275766373, -0.015744224190711975, 0.010487535037100315, -0.0027730718720704317, 0.02012738399207592, 0.04230162128806114, 0.035023923963308334, 0.02330103889107704, -0.000567277951631695, 0.08026143163442612, 0.010539223439991474, 0.0664503425359726, 0.02402467466890812, 0.02154364064335823, 0.023032261058688164, -0.018907543271780014, 0.013997163623571396, 0.04494805634021759, 0.011381740681827068, 0.05776672810316086, 0.016354145482182503, -0.053052764385938644, -0.02193647064268589, -0.022412002086639404, 0.04507210850715637, 0.08274246752262115, -0.0015855354722589254, -0.0018452686490491033, -0.012684283778071404, -0.023445766419172287, 0.01605435460805893, -0.016467859968543053, -0.055037591606378555, 0.0016798664582893252, -0.031922630965709686, 0.03826994076371193, 0.056319460272789, -0.05743592604994774, 0.030785489827394485, 0.02629895508289337, -0.04052354767918587, -0.004292704630643129, -0.06599549204111099, 0.046105872839689255, 0.015671860426664352, -0.014317630790174007, -0.03998598828911781, -0.056319460272789, -0.037112124264240265, 0.021099122241139412, 0.004370237234979868, -0.047511789947748184, -0.03126102313399315, 0.0008619006839580834, 0.014896538108587265, 0.012374154292047024, -0.0182045828551054, 0.04804934933781624, 0.06996514648199081, -0.039386406540870667, 0.04106110334396362, 0.03523067384958267, -0.055327046662569046, 0.05437598377466202, 0.0069313873536884785, -0.014948226511478424, 0.018783491104841232, -0.021977821364998817, -0.035809583961963654, 0.0012004583841189742, 0.07980657368898392, 0.06595414131879807, 0.017770402133464813, -0.036553893238306046, -0.04879365861415863, 0.019083281978964806, -0.06839381903409958, -0.016488535329699516, 0.03142642229795456, -0.06893137842416763, 0.06124017760157585, 0.05193629860877991, 0.001616548397578299, -0.03839399293065071, -0.047801245003938675, 0.06533388048410416, -0.06359715759754181, 0.019651852548122406, -0.06806302070617676, 0.013842099346220493, -0.013108126819133759, -0.02685718797147274, -0.011681532487273216, -0.03487919643521309, 0.020344475284218788, 0.05065443366765976, 0.04916581138968468, 0.037794411182403564, -0.0007255730452015996, -0.028966065496206284, 0.027973651885986328, 0.039613835513591766, -0.013986825942993164, -0.013294204138219357, -0.022763481363654137, 0.04312863200902939, -0.03452771529555321, 0.04523751139640808, 0.06363850831985474, 0.0022639429662376642, -0.024665607139468193, -0.07844200730323792, 0.06053721532225609, 0.02594747580587864, 0.029524298384785652, -0.077821746468544, -0.030785489827394485, -0.02255672961473465, -0.00024874944938346744, 0.031509123742580414, 0.015423757955431938, -0.01297373790293932, -0.0478425957262516, 0.04383159056305885, 0.04097840189933777, -0.027063939720392227, 0.08733237534761429, -0.013542307540774345, 0.0024887865874916315, -0.061033423990011215, 0.039820585399866104, -0.03831129148602486, -0.022928884252905846, -0.006362817250192165, -0.03831129148602486, -0.002842850750312209, 0.019134970381855965, 0.04445184767246246, 0.011154312640428543, 0.0035251351073384285, 0.03498257324099541, 0.006083700805902481, -0.02437615394592285, -0.07831795513629913, 0.008998915553092957, -0.08274246752262115, -0.04924851283431053, 0.0003036681446246803, -0.012425842694938183, -0.015516797080636024, -0.026588408276438713, -0.027560146525502205, 0.013728384859859943, -0.024003999307751656, 0.018245933577418327, 0.028242431581020355, -0.0487523078918457, 0.04527886211872101, -0.03386610746383667, 0.038869522511959076, 0.008037514984607697, -0.005104209296405315, -0.028345806524157524, 0.03405218571424484, -0.0072105033323168755, -0.07972387224435806, -0.004517548251897097, 0.013232178054749966, 0.006802166812121868, 0.039820585399866104, 0.023280363529920578, 0.0012295329943299294, -0.018979905173182487, 0.01623009331524372, -0.027684198692440987, 0.02012738399207592, 0.0178634412586689, -0.0005485409637913108, 0.02079933136701584, -0.03758765757083893, 0.028738638386130333, -0.003261525183916092, 0.07178457081317902, 0.08253571391105652, 0.009226343594491482, 0.00035826381645165384, 0.0152893690392375, -0.01421425398439169, -0.008538889698684216, 0.019910292699933052, -0.060743968933820724, -0.0007404334028251469, 0.0004364422056823969, -0.0056753638200461864, 0.020551227033138275, 0.01051854807883501, 0.012932387180626392, 0.0473877377808094, -0.08398298174142838, 0.01583726331591606, 0.02402467466890812, 0.027684198692440987, 0.04221891984343529, 0.002201917115598917, 0.01583726331591606, -0.008373487740755081, 0.02035481110215187, -0.053838424384593964, -0.05507894232869148, 0.048256099224090576, 0.04436914995312691, -0.07728419452905655, -0.06190178543329239, 0.03008253127336502, 0.016478197649121284, 0.07112295925617218, -0.022742806002497673, 0.003486368805170059, -0.010239431634545326, -0.0858437567949295, -0.0009898289572447538, 0.02481033466756344, -0.0042384322732687, -0.1027974858880043, 0.0020003332756459713, -0.02927619405090809, 0.002819591201841831, -0.024045350030064583, -0.03285301849246025, 0.028800662606954575, -0.016374820843338966, 0.02437615394592285, -0.003742225468158722, 0.02979307621717453, 0.0350445993244648, 0.036326464265584946, -0.03833196684718132, -0.00056210916955024, 0.03183992952108383, -0.02516181394457817, -0.021688368171453476, 0.015413420274853706, 0.04267377406358719, -0.013304541818797588, 0.009210837073624134, 0.03204668313264847, 0.007877280935645103, 0.008616422303020954, -0.01325285341590643, 0.04982742294669151, 0.06698790192604065, 0.004468444734811783, 0.0035354727879166603, -0.012570569291710854, -0.03252221271395683, -0.06442417204380035, -0.01201233733445406, -0.018359648063778877, 0.006714296992868185, 0.011009586043655872, -0.06082667037844658, -0.04631262645125389, 0.03725685179233551, -0.00685385474935174, 0.037277527153491974, 0.01220875233411789, -0.01610604301095009, 0.002654189011082053, 0.025823423638939857, 0.013066776096820831, 0.03467244282364845, 0.043335385620594025, 0.0027885781601071358, -0.01758432388305664, 0.004328886512666941, -0.004987910855561495, -0.026981238275766373, -0.030371984466910362, -0.035189323127269745, 0.02006535790860653, -0.037897784262895584, -0.0020765732042491436, -0.0025353061500936747, -0.0013109418796375394, 0.022143224254250526, -0.026278279721736908, 0.0161577295511961, -0.02933822013437748, -0.02731204405426979, -0.02092338167130947, -0.0053032091818749905, -0.055988654494285583, 0.0005398186040110886, 0.011805584654211998, -0.026257604360580444, -0.006848685909062624, -0.0044322628527879715, 0.07261157780885696, -0.041536636650562286, -0.044410500675439835, -0.028573235496878624, 0.028635261580348015, 0.04924851283431053, -0.03990328684449196, 0.045030757784843445, -0.009551978670060635, 0.003840432967990637, -0.03831129148602486, 0.04635397344827652, -0.026774486526846886, -0.04709828644990921, -0.03829061612486839, 0.047511789947748184, -0.032770317047834396, 0.03934505581855774, 0.0393657311797142, 0.025120463222265244, -0.03851804509758949, 0.007350061554461718, 0.039262354373931885, -0.030454685911536217, 0.02006535790860653, -0.007282867096364498, 0.005458273459225893, 0.017222506925463676, 0.017677363008260727, -0.02588544972240925, -0.017212169244885445, 0.004207419231534004, 0.002102417405694723, -0.012126050889492035, -0.01831829734146595, -0.04445184767246246, -0.025906125083565712, 0.011743558570742607, 0.09692570567131042, 0.032542888075113297, -0.027270693331956863, 0.025823423638939857, -0.015217005275189877, 0.03237748518586159, 0.011474779807031155, -0.029917128384113312, 0.041577987372875214, -0.07682933658361435, -0.026133552193641663, -0.043169982731342316, 0.012064024806022644, 0.04726368561387062, -0.0018594828434288502, -0.032770317047834396, 0.02018941007554531, 0.015134303830564022, 0.05259791016578674, 0.027125965803861618, -0.01769803836941719, -0.02911079302430153, 0.01227077841758728, 0.030785489827394485, -0.006264609284698963, -0.013469943776726723, 0.016271444037556648, 0.017439598217606544, -0.028242431581020355, -0.007034763693809509, 0.043169982731342316, 0.05110928788781166, -0.0176360122859478, 0.000012750428140861914, -0.053176816552877426, -0.0017741973279044032, 0.011278364807367325, 0.018225258216261864, -0.0015196329914033413, 0.04817340150475502, 0.010053354315459728, -0.01792546734213829, -0.025347892194986343, -0.022246599197387695, -0.011485117487609386, -0.021564316004514694, -0.011102625168859959, 0.00259991642087698, -0.016540223732590675, 0.046271275728940964, -0.0006771154003217816, 0.06500307470560074, -0.1064363345503807, -0.028800662606954575, -0.037174150347709656, 0.012250103056430817, 0.019703540951013565, 0.009862108156085014, 0.02809770405292511, -0.05834563821554184, -0.003734472207725048, -0.0011481241090223193, 0.025017088279128075, 0.0352720245718956, -0.008699123747646809, 0.02294955961406231, 0.024913711473345757, -0.020034344866871834, -0.007132971193641424, 0.028242431581020355, 0.00259991642087698, -0.02330103889107704, -0.05607135593891144, -0.023755894973874092, -0.0029617336113005877, -0.006533388048410416, 0.03560283035039902, -0.07339724153280258, -0.05846969038248062, 0.007298373617231846, 0.017367234453558922, -0.043790239840745926, 0.0013335554394870996, 0.007360399235039949, -0.033721379935741425, -0.0027058771811425686, 0.021502289921045303, 0.05685701593756676, -0.011929635889828205, 0.022122548893094063, 0.013800748623907566, -0.009939640760421753, 0.006083700805902481, 0.03336989879608154, -0.002855772851034999, 0.02561667002737522, 0.031178319826722145, -0.0035277195274829865, 0.034631092101335526, -0.003747394308447838, -0.04132988303899765, 0.07488586008548737, -0.010539223439991474, 0.03566485643386841, 0.05094388872385025, -0.00907644722610712, -0.04928986355662346, -0.04122650623321533, -0.02131621167063713, -0.012818672694265842, 0.047015585005283356, -0.032356809824705124, 0.03998598828911781, 0.026753811165690422, 0.013914463110268116, 0.038476694375276566, -0.03645051643252373, -0.003876614850014448, 0.05081983655691147, -0.010017172433435917, 0.008502708747982979, 0.014700123108923435, 0.001873697154223919, 0.013077113777399063, -0.007670528255403042, -0.015537472441792488, 0.011361065320670605, 0.05301141366362572, -0.028304455801844597, -0.032770317047834396, 0.018731802701950073, -0.03839399293065071, 0.04912446066737175, -0.003967069089412689, 0.033618003129959106, 0.07964117079973221, 0.06256339699029922, -0.046560727059841156, 0.03291504457592964, -0.06649169325828552, -0.055492449551820755, -0.10039915144443512, 0.023363064974546432, -0.034961897879838943, 0.0432940348982811, 0.011340390890836716, -0.01595097780227661, -0.00026183301815763116, 0.01781175285577774, -0.008544058538973331 ]
714,985
pytorch_optimizer.optimizer.adafactor
__init__
null
def __init__( self, params: PARAMETERS, lr: Optional[float] = 1e-3, betas: BETAS = (0.9, 0.999), decay_rate: float = -0.8, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, clip_threshold: float = 1.0, ams_bound: bool = False, scale_parameter: bool = True, relative_step: bool = True, warmup_init: bool = False, eps1: float = 1e-30, eps2: float = 1e-3, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps1, 'eps1') self.validate_non_negative(eps2, 'eps2') self.decay_rate = decay_rate self.clip_threshold = clip_threshold self.eps1 = eps1 self.eps2 = eps2 defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'ams_bound': ams_bound, 'scale_parameter': scale_parameter, 'relative_step': relative_step, 'warmup_init': warmup_init, 'eps1': eps1, 'eps2': eps2, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: Optional[float] = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), decay_rate: float = -0.8, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, clip_threshold: float = 1.0, ams_bound: bool = False, scale_parameter: bool = True, relative_step: bool = True, warmup_init: bool = False, eps1: float = 1e-30, eps2: float = 0.001)
[ 0.015288850292563438, -0.05119548365473747, -0.023918893188238144, -0.009304411709308624, -0.04942231625318527, -0.027880223467946053, -0.08624383062124252, -0.03682151064276695, -0.03370903804898262, 0.021806182339787483, -0.037311963737010956, 0.05515681579709053, 0.020089605823159218, 0.07692527025938034, -0.0541381873190403, 0.06209857389330864, 0.028483854606747627, 0.01210092194378376, -0.0017354401061311364, -0.009875032119452953, 0.013562842272222042, -0.005517567973583937, -0.03489743918180466, 0.09839191287755966, 0.007186985574662685, 0.0393114909529686, -0.009408160112798214, 0.0022871969267725945, -0.0481773279607296, 0.013789203949272633, 0.013826930895447731, -0.020259376615285873, 0.0015479843132197857, 0.046592794358730316, 0.04048102721571922, -0.02276821993291378, -0.007899082265794277, 0.010025939904153347, -0.10865364223718643, 0.043386004865169525, 0.05764679238200188, -0.044706445187330246, 0.060174498707056046, -0.03612356260418892, -0.021825045347213745, -0.007441642694175243, 0.02374912053346634, 0.04632870480418205, -0.02518274635076523, -0.04240510240197182, 0.01137467846274376, -0.03525584191083908, 0.0439896360039711, -0.013383639045059681, -0.05855224281549454, 0.0541381873190403, 0.03846263512969017, 0.06824807077646255, 0.03648196905851364, 0.013808066956698895, 0.00014258138253353536, -0.031766101717948914, 0.01844848319888115, -0.006753125693649054, 0.01637350022792816, -0.005300637800246477, -0.09771282225847244, -0.023164352402091026, 0.0156283937394619, 0.047686878591775894, 0.10767274349927902, -0.00894128903746605, -0.030219294130802155, 0.03359585627913475, -0.014251358807086945, -0.00866776891052723, -0.07937752455472946, -0.03280359134078026, -0.04730960726737976, -0.024013210088014603, 0.04908277466893196, 0.06111767515540123, -0.018589958548545837, -0.0646262839436531, 0.02167413756251335, -0.043272823095321655, -0.025993874296545982, -0.038858767598867416, 0.01624145545065403, 0.011950014159083366, -0.051346391439437866, -0.015609529800713062, 0.020146196708083153, -0.008615894243121147, 0.06745580583810806, 0.00866776891052723, 0.0080971485003829, -0.057194069027900696, 0.01508135162293911, -0.023013444617390633, -0.037840139120817184, 0.014260790310800076, -0.051006849855184555, 0.018844615668058395, 0.025993874296545982, -0.02970997989177704, -0.04896959289908409, -0.0264277346432209, 0.027012502774596214, -0.056514985859394073, -0.029634525999426842, 0.0451214425265789, -0.03846263512969017, 0.016156570985913277, -0.053874097764492035, 0.023126626387238503, 0.0021362891420722008, 0.02099505253136158, 0.004489507991820574, 0.014336244203150272, 0.04368782043457031, 0.03327517956495285, -0.03459562361240387, 0.04538553208112717, 0.022183451801538467, -0.007186985574662685, 0.004039142746478319, 0.012129217386245728, -0.001509078429080546, -0.02761613391339779, 0.018646549433469772, -0.00014464456762652844, -0.04055648297071457, -0.00033453202922828496, 0.02397548221051693, -0.039160583168268204, 0.010846501216292381, 0.057307250797748566, -0.04100920632481575, 0.017816556617617607, 0.0559113547205925, 0.018391892313957214, 0.03699128329753876, -0.039160583168268204, -0.016571566462516785, 0.0027917949482798576, -0.012016036547720432, -0.04225419461727142, -0.008568735793232918, 0.04595143720507622, 0.018250416964292526, -0.007224712520837784, -0.015269987285137177, 0.030860653147101402, 0.01976892724633217, -0.04927140846848488, 0.017458150163292885, -0.020051879808306694, -0.0017625563777983189, 0.008564019575715065, -0.0481773279607296, 0.02174959145486355, 0.022390950471162796, -0.05274229124188423, -0.009559068828821182, 0.025031838566064835, -0.03506720811128616, 0.013100686483085155, 0.0036005666479468346, -0.005871258210390806, -0.0042820097878575325, -0.08956380188465118, -0.041273292154073715, 0.021900499239563942, -0.024032073095440865, 0.05904269218444824, 0.028049994260072708, 0.01116717979311943, -0.021278005093336105, -0.01005423441529274, 0.05119548365473747, -0.0052110361866652966, -0.031351104378700256, -0.07375620305538177, 0.011053998954594135, 0.028917714953422546, -0.025390243157744408, 0.05466636270284653, -0.051572754979133606, 0.0264277346432209, 0.05417591333389282, 0.01071445643901825, 0.024050936102867126, 0.022956855595111847, -0.023579349741339684, 0.004067437723278999, 0.03482198342680931, -0.006861590780317783, 0.013562842272222042, 0.04715869948267937, 0.05934450775384903, 0.03140769526362419, 0.017382696270942688, -0.024786612018942833, 0.02618250995874405, -0.0178071241825819, -0.017769398167729378, 0.013327048160135746, -0.02629568986594677, -0.019052114337682724, -0.024597978219389915, -0.02927612140774727, 0.03923603892326355, 0.021391186863183975, 0.00008046453149290755, -0.04961095005273819, -0.0022105639800429344, 0.02740863524377346, 0.0072624399326741695, 0.01459090132266283, 0.08865835517644882, -0.03278472647070885, -0.022183451801538467, -0.012336716055870056, 0.03900967538356781, 0.041046932339668274, 0.02961566299200058, -0.03799104690551758, -0.05670361965894699, 0.015883050858974457, -0.007361473049968481, -0.037179917097091675, -0.026786141097545624, -0.005366660188883543, 0.019231317564845085, 0.020598920062184334, -0.025465697050094604, 0.03340722247958183, -0.09220468997955322, -0.04244282841682434, 0.0565527118742466, 0.035991519689559937, 0.004819619003683329, -0.009139356203377247, 0.017165767028927803, -0.008257488720119, 0.0362556092441082, 0.009893895126879215, -0.04961095005273819, -0.028332946822047234, -0.025031838566064835, -0.013015801087021828, 0.0024215991143137217, 0.04357463866472244, -0.04300873354077339, -0.003638293594121933, 0.020919598639011383, -0.017684511840343475, 0.03236973285675049, -0.0038009912241250277, 0.007861355319619179, 0.0002777942281682044, -0.020410284399986267, 0.07786844670772552, -0.005310069769620895, 0.03427494317293167, -0.012166944332420826, -0.0074935173615813255, 0.011855697259306908, 0.01161047164350748, 0.10578639805316925, 0.018439050763845444, -0.019693473353981972, 0.0019016745500266552, -0.002607875969260931, -0.003334120148792863, -0.005809951573610306, -0.038292862474918365, -0.0027304887771606445, 0.047347333282232285, 0.05345910042524338, -0.027012502774596214, 0.025145018473267555, -0.00040320688276551664, 0.026125919073820114, -0.009394013322889805, -0.027370909228920937, 0.024560250341892242, 0.010044802911579609, 0.0017153976950794458, -0.0011223769979551435, 0.00941759254783392, 0.0879792720079422, 0.01065786648541689, 0.10608821362257004, -0.010686160996556282, 0.03704787418246269, -0.01476067304611206, 0.04961095005273819, -0.024730021134018898, 0.050327762961387634, -0.04059420898556709, 0.04832823574542999, 0.014024997130036354, -0.05127093940973282, -0.02697477675974369, 0.022824810817837715, 0.027370909228920937, 0.05870315060019493, 0.03363358601927757, 0.02499411068856716, 0.016005663201212883, 0.06549400091171265, 0.002713983180001378, 0.044932808727025986, -0.05085594207048416, 0.015411462634801865, -0.05206320434808731, 0.024013210088014603, 0.04236737638711929, -0.01896722801029682, 0.03095497004687786, 0.02422070875763893, -0.021900499239563942, -0.041046932339668274, -0.06858761608600616, 0.023126626387238503, 0.026899322867393494, -0.03180382773280144, -0.012223535217344761, -0.04772460460662842, -0.009059186093509197, 0.021806182339787483, -0.017967464402318, -0.04191465303301811, 0.005201604682952166, 0.000286489084828645, 0.05775997415184975, 0.00006742220284650102, -0.04651734232902527, 0.09982553124427795, -0.011582176201045513, -0.02431502565741539, 0.03946239873766899, -0.0016116485930979252, -0.03195473551750183, 0.017759965732693672, -0.029144076630473137, 0.02863476239144802, 0.011120021343231201, -0.0011041030520573258, 0.008922426030039787, 0.0026550348848104477, 0.10978545248508453, 0.03767037019133568, -0.019618019461631775, -0.02178731933236122, -0.01944824680685997, 0.03691583126783371, -0.05130866542458534, -0.020617783069610596, 0.011761379428207874, -0.056967709213495255, 0.04829050973057747, 0.0214289128780365, -0.007092668209224939, 0.0015220469795167446, -0.039386946707963943, 0.01717519760131836, -0.012468759901821613, 0.012242398224771023, -0.058288153260946274, -0.031105877831578255, -0.02176845632493496, 0.020976189523935318, -0.01678849756717682, -0.04063193500041962, 0.007026646286249161, 0.04572507366538048, 0.01253478229045868, 0.018118372187018394, 0.013393070548772812, 0.04357463866472244, 0.03006838634610176, 0.02442820556461811, -0.028879987075924873, 0.0033317620400339365, 0.00890356209129095, 0.08035842329263687, 0.0014831410953775048, 0.015996230766177177, 0.007573687005788088, 0.014128746464848518, -0.016335774213075638, -0.052666835486888885, 0.04021693766117096, 0.04229192063212395, 0.0559113547205925, -0.038066502660512924, -0.0464041605591774, -0.015864185988903046, -0.02795567736029625, -0.012572509236633778, 0.033199723809957504, -0.010195710696280003, -0.015439758077263832, 0.03778354823589325, 0.03236973285675049, 0.014024997130036354, 0.08149023354053497, -0.012676258571445942, -0.012695121578872204, -0.028559308499097824, -0.012478191405534744, -0.04331054911017418, -0.03295449912548065, -0.0030440939590334892, -0.0017578405095264316, 0.016543271020054817, -0.01714690402150154, 0.02506956458091736, 0.02010846883058548, 0.06994578242301941, 0.01976892724633217, 0.07198303937911987, 0.04033011943101883, -0.032086778432130814, 0.0022223538253456354, -0.014006134122610092, -0.07111532241106033, -0.03776468709111214, -0.002050224458798766, -0.047573696821928024, -0.03670833259820938, 0.02133459597826004, 0.015411462634801865, -0.011129452846944332, -0.011704789474606514, 0.013562842272222042, -0.022504132241010666, 0.015317145735025406, -0.05711861699819565, 0.0129309156909585, -0.018278712406754494, -0.04810187220573425, -0.033746764063835144, 0.0021575104910880327, -0.011101157404482365, -0.036085836589336395, -0.013298753648996353, 0.02024051360785961, 0.013138413429260254, 0.053345922380685806, -0.018118372187018394, -0.007875503040850163, -0.031898144632577896, -0.015911344438791275, -0.010676729492843151, 0.022032544016838074, -0.027880223467946053, 0.04074511677026749, -0.013100686483085155, -0.018297575414180756, -0.011120021343231201, -0.04210328683257103, 0.046894609928131104, 0.0715303122997284, -0.005074276123195887, -0.008507429622113705, 0.011402973905205727, 0.002869606949388981, -0.0011105873854830861, 0.043914180248975754, -0.025145018473267555, -0.023485032841563225, 0.01769394427537918, -0.014024997130036354, -0.021504366770386696, -0.013176140375435352, -0.010110825300216675, 0.013487388379871845, -0.052893199026584625, 0.00557887414470315, 0.08164113759994507, 0.0021362891420722008, -0.006743694189935923, -0.05670361965894699, 0.011940582655370235, 0.003032304346561432, 0.04795096442103386, -0.08503656834363937, -0.004046216607093811, 0.02440934255719185, 0.058288153260946274, -0.053232740610837936, -0.009224241599440575, 0.031200194731354713, 0.02540910802781582, 0.04146192967891693, 0.0024003777652978897, 0.0037491165567189455, -0.03118133172392845, -0.030558837577700615, -0.028672488406300545, 0.028049994260072708, -0.03306768089532852, -0.11597267538309097, -0.002713983180001378, -0.03578402101993561, 0.011667062528431416, -0.00983730424195528, -0.015147374011576176, -0.028597034513950348, 0.011176611296832561, -0.030785199254751205, -0.017260083928704262, -0.04319736734032631, 0.05304410681128502, -0.008512144908308983, -0.0267484150826931, 0.03912285715341568, 0.06636172533035278, 0.05002594739198685, -0.0470455177128315, 0.00964395422488451, 0.03161519393324852, 0.01701485924422741, -0.03912285715341568, 0.0842820256948471, 0.022145725786685944, 0.007418063469231129, -0.06417355686426163, -0.03744400665163994, 0.037179917097091675, 0.009705260396003723, 0.04595143720507622, -0.003294035093858838, -0.028332946822047234, -0.044366903603076935, -0.03602924570441246, 0.010912522673606873, 0.021070506423711777, 0.010233437642455101, -0.044593267142772675, -0.02618250995874405, 0.01343079749494791, -0.03301109001040459, 0.07368075102567673, -0.056741345673799515, -0.013968407176434994, 0.036312200129032135, -0.03161519393324852, -0.02606932818889618, 0.01658099889755249, 0.01774110272526741, -0.010780478827655315, 0.013732613064348698, -0.0049893902614712715, 0.052100930362939835, 0.027465226128697395, -0.027238864451646805, 0.007337893825024366, -0.006031597498804331, -0.012968642637133598, -0.034218352288007736, 0.012166944332420826, 0.009049754589796066, -0.0032775294966995716, -0.055307723581790924, 0.012336716055870056, 0.010356049984693527, -0.0030605995561927557, -0.0013440229231491685, -0.010855932720005512, -0.05213865637779236, 0.02697477675974369, -0.006823863834142685, 0.018712572753429413, -0.056741345673799515, -0.022805947810411453, 0.031992461532354355, -0.022730493918061256, -0.09537375718355179, -0.10224006325006485, 0.014958739280700684, 0.0005859468365088105, -0.05617544427514076, 0.007856639102101326, -0.023617075756192207, 0.01856166496872902, -0.008592315018177032, 0.06602218002080917, -0.02267390303313732, -0.015317145735025406, -0.04730960726737976, 0.017363833263516426, -0.016571566462516785, -0.020749827846884727, 0.02897430583834648, 0.06138176470994949, -0.059721775352954865, -0.008431975729763508, 0.033784493803977966, 0.018363596871495247, 0.007564255502074957, -0.02001415193080902, -0.014609765261411667, 0.02974770776927471, 0.020580057054758072, -0.04617779701948166, 0.009394013322889805, -0.01785428449511528, 0.008172602392733097, -0.030219294130802155, -0.00724357645958662, -0.053534556180238724, -0.053534556180238724, 0.025786377489566803, 0.09243105351924896, -0.009002596139907837, 0.00635699275881052, -0.022824810817837715, -0.015232260338962078, 0.04240510240197182, -0.06481491774320602, -0.03523698076605797, 0.012836597859859467, -0.1322707235813141, 0.0075029488652944565, -0.04549871385097504, 0.04783778637647629, -0.019806653261184692, 0.010837068781256676, -0.0786229819059372, -0.0026715402491390705, 0.0370667390525341, 0.0255411509424448, 0.03291677311062813, 0.0264277346432209, -0.0019099273486062884, 0.02022165060043335, 0.036972422152757645, -0.01475124154239893, -0.004116954281926155, -0.012025468051433563, -0.025145018473267555, -0.033671312034130096, 0.0006213158485479653, 0.052553653717041016, 0.04119784012436867, -0.021598683670163155, 0.05791088193655014, -0.05892951041460037, 0.0010763973696157336, -0.018523937091231346, 0.003058241680264473, 0.02654091641306877, 0.0317472368478775, 0.04240510240197182, -0.02356048673391342, -0.03389767184853554, -0.019504837691783905, 0.03855695202946663, 0.004871493671089411, 0.0012862535659223795, -0.00635699275881052, -0.025465697050094604, 0.0005685570649802685, -0.024824339896440506, 0.005196888465434313, -0.04564962163567543, -0.021938227117061615, -0.04783778637647629, 0.018797457218170166, 0.009323274716734886, 0.02112709730863571, -0.05557181313633919, -0.049573224037885666, 0.004904504865407944, -0.011940582655370235, 0.040858298540115356, 0.046026889234781265, -0.023937756195664406, -0.045687347650527954, 0.014100451022386551, -0.000592136406339705, -0.0541381873190403, 0.04564962163567543, -0.013100686483085155, -0.021806182339787483, -0.04531008005142212, -0.0013900026679039001, 0.015279418788850307, 0.010761614888906479, 0.029464755207300186, -0.031652919948101044, -0.06481491774320602, -0.09537375718355179, 0.011685925535857677, -0.03095497004687786, -0.0011954730143770576, -0.015722710639238358, -0.07205849140882492, 0.05779770016670227, -0.023918893188238144, 0.03633106127381325, 0.00718226982280612, 0.005564726423472166, 0.02686159498989582, -0.04066966101527214, 0.03616129234433174, 0.06787080317735672, 0.05308183282613754, -0.07247348874807358, -0.010063666850328445, 0.025503424927592278, 0.032879043370485306, -0.002810658421367407, -0.046253252774477005, 0.01690167747437954, -0.03370903804898262, 0.011195475235581398, 0.03240745887160301, -0.021070506423711777, 0.006347560789436102, -0.06111767515540123, -0.026578642427921295, 0.009969349019229412, 0.04429145157337189, -0.036085836589336395, 0.03659515082836151, 0.021032780408859253, -0.026823868975043297, -0.004680500831454992, 0.007446358446031809, -0.036519695073366165, 0.04331054911017418, 0.0005838836659677327, 0.056967709213495255, 0.05749588459730148, 0.025824103504419327, 0.028370672836899757, -0.036840375512838364, -0.0018509789370000362, -0.009846736676990986, 0.0451214425265789, -0.003937751520425081, -0.01696770079433918, 0.07156804203987122, -0.025145018473267555, 0.0028389536309987307, -0.01935392990708351, 0.01703372225165367, 0.04263146594166756, 0.06179675832390785, -0.05749588459730148, 0.03136996552348137, -0.021466640755534172, -0.07141713798046112, -0.09514739364385605, -0.005748645402491093, -0.0457628034055233, 0.07749117165803909, 0.022372087463736534, 0.01872200332581997, 0.0372176468372345, 0.03050224669277668, 0.008446123450994492 ]
714,988
pytorch_optimizer.optimizer.adafactor
__str__
null
def __str__(self) -> str: return 'AdaFactor'
(self) -> str
[ -0.018846049904823303, -0.010017269290983677, 0.07253182679414749, 0.026808930560946465, 0.012827198952436447, -0.04006907716393471, -0.006498491391539574, -0.04964490979909897, 0.025280872359871864, -0.028727492317557335, -0.015857847407460213, 0.015713529661297798, -0.005751440767198801, 0.04149526730179787, 0.013438422232866287, -0.012801731005311012, 0.021596554666757584, 0.0034211522433906794, 0.018710222095251083, 0.06108836457133293, -0.0002727159298956394, 0.05229354277253151, -0.010288923978805542, 0.004927987232804298, -0.010195543058216572, 0.04085008427500725, 0.025722309947013855, -0.01678317040205002, -0.037352532148361206, 0.002510684309527278, -0.023294396698474884, -0.04088404402136803, -0.0007099102949723601, 0.011672665365040302, -0.04753958433866501, -0.022751087322831154, -0.006816837005317211, 0.0021658099722117186, -0.05575714260339737, -0.008098707534372807, 0.05358390137553215, 0.012682882137596607, -0.009584319777786732, -0.015399429947137833, -0.05066361278295517, -0.03579051420092583, -0.021206051111221313, 0.014941012486815453, -0.04332893714308739, -0.017640581354498863, -0.009558851830661297, -0.037352532148361206, -0.003739497624337673, 0.022903893142938614, -0.015424896962940693, 0.05103714019060135, 0.012742306105792522, -0.03326072916388512, -0.022615259513258934, 0.05691167339682579, -0.05225958675146103, -0.032683465629816055, 0.07083398103713989, -0.04876203089952469, -0.009940866380929947, 0.017419861629605293, -0.03850706294178963, 0.06923800706863403, 0.029423607513308525, 0.03983138129115105, 0.028523750603199005, -0.034024760127067566, 0.006638563238084316, 0.009202305227518082, 0.033226773142814636, 0.0054712966084480286, -0.025111088529229164, 0.009881442412734032, 0.015925761312246323, -0.024245187640190125, 0.022071950137615204, -0.004575685132294893, -0.011978277005255222, -0.0015917271375656128, 0.031427059322595596, -0.0861145630478859, -0.030204614624381065, -0.04787915199995041, -0.0003379767294973135, 0.031206341460347176, -0.022326625883579254, -0.04492490738630295, -0.010314391925930977, 0.05494217574596405, -0.06169958785176277, 0.004074821714311838, 0.013574249111115932, -0.04108778387308121, 0.035994257777929306, 0.0006770146428607404, 0.031749650835990906, 0.025739289820194244, 0.004681800026446581, 0.03898245841264725, -0.04006907716393471, -0.06078275293111801, -0.030017852783203125, -0.001003849203698337, 0.023871662095189095, 0.025484612211585045, -0.04947512596845627, 0.034500155597925186, 0.04115569591522217, 0.017538711428642273, -0.019915690645575523, -0.0343133918941021, 0.014253386296331882, -0.020475978031754494, 0.016587918624281883, 0.024465907365083694, 0.023532094433903694, 0.028829362243413925, -0.034737855195999146, 0.010424751788377762, 0.035247206687927246, 0.0752483680844307, -0.011850939132273197, -0.009304176084697247, 0.0013954141177237034, -0.03837123513221741, 0.07198851555585861, 0.008616549894213676, -0.03894850239157677, -0.008158132433891296, 0.08557125180959702, -0.007725182455033064, 0.07721786946058273, 0.00020931211474817246, 0.026401447132229805, 0.11946018785238266, -0.014092091470956802, 0.017267055809497833, 0.028353966772556305, -0.004422879312187433, -0.017708495259284973, 0.014618421904742718, -0.017233099788427353, 0.030764902010560036, -0.03531511873006821, -0.018421588465571404, 0.003472087439149618, 0.04159713536500931, 0.011952809989452362, -0.025416700169444084, 0.016587918624281883, -0.006252304185181856, -0.003739497624337673, -0.03847310692071915, 0.024788497015833855, -0.028099289163947105, 0.002126547507941723, -0.018625330179929733, -0.019711948931217194, 0.005445829126983881, 0.022394539788365364, 0.007355901878327131, -0.014049644581973553, 0.005492520052939653, -0.00823877938091755, -0.014363746158778667, -0.026707058772444725, -0.1075073778629303, -0.05616462230682373, 0.05045987293124199, -0.006808347534388304, 0.015484321862459183, 0.0018230581190437078, 0.06091858074069023, 0.05528174713253975, -0.020204324275255203, 0.006927196402102709, 0.022666195407509804, -0.06241268292069435, 0.013370508328080177, 0.036469653248786926, -0.09399254620075226, 0.018285760655999184, 0.05062965676188469, 0.030391376465559006, -0.05409325659275055, 0.005174174439162016, 0.022886915132403374, -0.026044901460409164, -0.013871371746063232, -0.025960009545087814, -0.06224289909005165, -0.007916189730167389, -0.05338016152381897, 0.04258188605308533, -0.016222883015871048, -0.024686627089977264, 0.05086735635995865, -0.005798131227493286, 0.04652087762951851, 0.05113900825381279, 0.011766047216951847, 0.029389649629592896, -0.014499573037028313, -0.021324899047613144, -0.05731915682554245, 0.028099289163947105, 0.011783025227487087, 0.015331516042351723, 0.029814111068844795, 0.009974823333323002, -0.07640290260314941, 0.06981527805328369, 0.0030752168968319893, -0.011095399037003517, 0.04692836105823517, 0.034432243555784225, -0.019355401396751404, 0.024024467915296555, -0.003121907589957118, 0.011044464074075222, 0.004388922359794378, 0.031036557629704475, 0.005127483978867531, -0.04349872097373009, -0.0028353966772556305, -0.03952576965093613, -0.07572376728057861, -0.016604898497462273, 0.029780153185129166, 0.04146130755543709, 0.09127600491046906, -0.030934685841202736, 0.004915253259241581, -0.06271829456090927, -0.031206341460347176, -0.016469070687890053, 0.006825326010584831, 0.032870225608348846, 0.05572318285703659, 0.012462162412703037, -0.026231663301587105, -0.004410145338624716, 0.004898275248706341, -0.06373699754476547, -0.04034073278307915, 0.025841159746050835, -0.03755627200007439, 0.011044464074075222, 0.0031919435132294893, -0.004002663306891918, -0.03365123271942139, -0.03792979568243027, 0.024211231619119644, 0.021834252402186394, -0.0003690154117066413, -0.024703605100512505, 0.010951083153486252, -0.032326918095350266, 0.05436491221189499, -0.016146481037139893, 0.012343313544988632, -0.027029650285840034, 0.034585047513246536, 0.026622166857123375, -0.017640581354498863, 0.06737038493156433, 0.028438858687877655, -0.025297850370407104, 0.023650942370295525, -0.023566050454974174, -0.011893385089933872, 0.011944320984184742, 0.05714937299489975, -0.08421298116445541, -0.021392812952399254, -0.038269367069005966, -0.06241268292069435, -0.04590965434908867, 0.04930534213781357, -0.04298936575651169, -0.027912527322769165, 0.05236145481467247, -0.015908781439065933, 0.0036439939867705107, 0.028710512444376945, 0.04343080520629883, 0.011774536222219467, 0.034024760127067566, 0.031036557629704475, 0.015755977481603622, 0.027674829587340355, 0.07918736338615417, 0.0016670689219608903, -0.001999209402129054, 0.020306194201111794, -0.019915690645575523, -0.025518570095300674, 0.04621526598930359, -0.013540292158722878, -0.0749088004231453, -0.028744470328092575, 0.004567195661365986, 0.012300867587327957, 0.03680922091007233, 0.031579867005348206, -0.029966916888952255, 0.04849037528038025, 0.014771227724850178, 0.08821988850831985, 0.003119785338640213, 0.03816749528050423, 0.0019482740899547935, -0.0016479681944474578, 0.04506073519587517, 0.05460260808467865, -0.03470389544963837, 0.04903368651866913, -0.04142735153436661, -0.0021796049550175667, 0.010535111650824547, -0.005246332846581936, 0.016435112804174423, 0.020119430497288704, 0.04896577075123787, -0.014915544539690018, -0.10866190493106842, -0.029236843809485435, 0.018676266074180603, -0.016299286857247353, -0.07735369354486465, 0.016070077195763588, 0.027946485206484795, -0.013412954285740852, -0.017912236973643303, 0.007092736195772886, 0.06000174582004547, -0.008043527603149414, -0.04869411885738373, 0.031444039195775986, 0.035722602158784866, 0.023430224508047104, -0.04088404402136803, -0.014193961396813393, 0.031036557629704475, 0.002245396375656128, -0.021970080211758614, -0.05395742878317833, 0.035994257777929306, 0.004800648894160986, 0.04889785870909691, 0.033685192465782166, -0.014728781767189503, 0.012249932624399662, -0.033175837248563766, 0.010008780285716057, 0.008990075439214706, -0.06217498332262039, -0.002928778063505888, 0.028082311153411865, -0.028218138962984085, -0.010569068603217602, -0.028591664507985115, -0.03636778146028519, 0.09861068427562714, -0.030085764825344086, 0.002385468455031514, 0.023090654984116554, 0.007024822290986776, -0.04254792630672455, -0.017742451280355453, 0.05816807597875595, 0.031325191259384155, 0.017216121777892113, -0.019932668656110764, 0.030340442433953285, 0.031427059322595596, -0.006804103031754494, -0.034585047513246536, 0.08020607382059097, -0.017538711428642273, -0.010170075111091137, -0.008404319174587727, 0.00015850950148887932, 0.03461900353431702, 0.031817562878131866, -0.008489211089909077, 0.004002663306891918, 0.023701878264546394, -0.021121157333254814, -0.06095253676176071, -0.06828721612691879, -0.019847776740789413, -0.032174110412597656, -0.06136002019047737, -0.009677700698375702, 0.017844323068857193, -0.03925411403179169, 0.012937557883560658, 0.004066332243382931, -0.026724038645625114, 0.03636778146028519, 0.015679573640227318, 0.024109359830617905, -0.04984864965081215, 0.011876407079398632, 0.008302449248731136, -0.010237989015877247, -0.032123174518346786, -0.018608352169394493, 0.03925411403179169, -0.018998855724930763, -0.05596088245511055, -0.07246390730142593, -0.023175546899437904, -0.025926051661372185, 0.003518778132274747, 0.03579051420092583, -0.006078275386244059, 0.06142793595790863, 0.003635504748672247, 0.033107925206422806, 0.017037848010659218, 0.07361844182014465, 0.03487367928028107, 0.006668275687843561, -0.04889785870909691, -0.010433240793645382, 0.0164775587618351, -0.05263311043381691, 0.009465470910072327, -0.038744762539863586, -0.03728461638092995, -0.036265913397073746, -0.033328644931316376, -0.016256840899586678, 0.05728520080447197, -0.035722602158784866, 0.021528640761971474, 0.036435697227716446, 0.004660577047616243, -0.04611339792609215, -0.031477995216846466, -0.010144608095288277, -0.004694534000009298, -0.021800294518470764, -0.004304030444473028, 0.034109652042388916, -0.011154823936522007, -0.017861301079392433, 0.06614793837070465, 0.010925615206360817, -0.029695261269807816, -0.0783044844865799, 0.014321300201117992, 0.04227627441287041, -0.021256985142827034, 0.034941595047712326, -0.04034073278307915, 0.05283685401082039, 0.022988785058259964, 0.03745440021157265, 0.04125756770372391, 0.05456865206360817, -0.022037992253899574, -0.008646261878311634, 0.016104035079479218, 0.004214893560856581, -0.005293023306876421, -0.05137670785188675, -0.01730950176715851, 0.04808289557695389, -0.029168929904699326, -0.008998564444482327, -0.018200868740677834, 0.0035994257777929306, -0.030934685841202736, -0.06621585041284561, -0.006876261439174414, 0.029016124084591866, 0.0012818709947168827, 0.034381307661533356, -0.034432243555784225, 0.030085764825344086, -0.016604898497462273, -0.018795114010572433, 0.007517196703702211, -0.004465325269848108, -0.04448346793651581, 0.018981877714395523, -0.005382160190492868, 0.020832525566220284, 0.013302594423294067, -0.03670734912157059, -0.12061471492052078, 0.019287489354610443, -0.021307921037077904, -0.009626765735447407, -0.05636836588382721, -0.017657559365034103, 0.04044260457158089, -0.005246332846581936, -0.028269074857234955, -0.021596554666757584, 0.012547054328024387, -0.04332893714308739, -0.018489502370357513, -0.05704750120639801, 0.028082311153411865, 0.016885042190551758, 0.028863318264484406, 0.01732647977769375, 0.009304176084697247, -0.017878279089927673, -0.015874825417995453, 0.021223029121756554, -0.028557706624269485, -0.030646054074168205, -0.05246332660317421, -0.04665670543909073, -0.018421588465571404, 0.04475512355566025, -0.021104179322719574, 0.008574103936553001, -0.03579051420092583, 0.07748952507972717, 0.0039962963201105595, 0.020034538581967354, 0.03687713295221329, 0.10655657947063446, -0.020968351513147354, 0.05796433612704277, -0.09861068427562714, 0.0054628076031804085, 0.033600300550460815, 0.030153678730130196, -0.0036779509391635656, -0.016239861026406288, -0.005144461989402771, -0.05375368893146515, 0.04122361168265343, -0.018812092021107674, -0.002892698859795928, 0.030425334349274635, 0.05378764495253563, -0.016808638349175453, 0.014703314751386642, 0.005849066656082869, -0.04482303559780121, -0.04448346793651581, 0.025467634201049805, 0.06628376245498657, 7.088160032253654e-7, 0.022835979238152504, 0.03850706294178963, -0.016256840899586678, -0.03517929092049599, -0.033379580825567245, 0.06923800706863403, 0.018285760655999184, 0.008828779682517052, -0.005076548550277948, -0.022292669862508774, 0.030187636613845825, 0.0009587503154762089, -0.04078217223286629, -0.006286261137574911, -0.06682707369327545, 0.009312665089964867, 0.04923742637038231, -0.11816982179880142, 0.028455836698412895, 0.022903893142938614, -0.010755831375718117, -0.008332161232829094, 0.04689440503716469, -0.05083340033888817, 0.03680922091007233, -0.05799829214811325, -0.014686335809528828, 0.010798277333378792, 0.023701878264546394, 0.024890368804335594, -0.017861301079392433, 0.016944466158747673, -0.06641959398984909, -0.10200636833906174, -0.005980649497359991, -0.026690080761909485, -0.021036265417933464, -0.011409500613808632, -0.027437131851911545, -0.0003045504563488066, 0.005220864899456501, 0.007810074370354414, 0.0014039033558219671, -0.0053142462857067585, 0.019864754751324654, -0.012504608370363712, 0.03952576965093613, 0.08265096694231033, 0.08210765570402145, 0.013013960793614388, 0.021002309396862984, -0.037080876529216766, 0.021104179322719574, -0.020374108105897903, 0.03514533489942551, -0.0012850543716922402, -0.020849503576755524, -0.010755831375718117, -0.03833727911114693, 0.04655483737587929, -0.06373699754476547, -0.035722602158784866, 0.08788032084703445, -0.03809957951307297, 0.05321037769317627, -0.04736980050802231, 0.04716606065630913, -0.022768065333366394, 0.03847310692071915, -0.011375543661415577, -0.015450364910066128, 0.031172385439276695, -0.07667455822229385, 0.025331806391477585, 0.05993383377790451, -0.04618130996823311, -0.06193728744983673, -0.05124088004231453, 0.019083747640252113, 0.017037848010659218, 0.026944756507873535, 0.00044966291170567274, 0.012801731005311012, -0.031240297481417656, 0.034737855195999146, -0.05354994535446167, 0.020408064126968384, -0.0006106926593929529, 0.002945756306871772, -0.09874650835990906, -0.07083398103713989, -0.019610079005360603, -0.01717367395758629, -0.05796433612704277, -0.008625038899481297, -0.0007252970244735479, 0.030221592634916306, 0.024364037439227104, -0.023158568888902664, 0.010221011005342007, 0.05012030526995659, -0.012114104814827442, -0.020289216190576553, -0.032292962074279785, -0.04923742637038231, 0.012716839089989662, -0.04421181231737137, 0.06574045121669769, 0.010373816825449467, 0.013336551375687122, -0.034381307661533356, -0.030323464423418045, -0.038133539259433746, -0.032089218497276306, 0.039186201989650726, 0.014771227724850178, -0.05158044770359993, -0.032666485756635666, 0.03786188364028931, 0.027352239936590195, 0.029865046963095665, 0.10540205240249634, -0.026214685291051865, -0.0024873390793800354, -0.006579138804227114, 0.008811801671981812, -0.04305728152394295, 0.028201160952448845, 0.03969555348157883, -0.06478966027498245, 0.016825616359710693, -0.019711948931217194, -0.03562073037028313, -0.08502794057130814, -0.04339684918522835, -0.023379288613796234, -0.007937412708997726, 0.07979858666658401, 0.020119430497288704, -0.026401447132229805, 0.022513389587402344, -0.010883169248700142, -0.003866835730150342, 0.030102744698524475, 0.05012030526995659, 0.004766692407429218, 0.023345330730080605, -0.002468238351866603, -0.019830798730254173, -0.004957699682563543, -0.0005539210396818817, -0.013506335206329823, -0.019457273185253143, 0.04913555458188057, 0.05894908308982849, -0.03881267458200455, 0.013328062370419502, 0.007818563841283321, -0.016375688835978508, -0.019372381269931793, 0.05225958675146103, -0.011867918074131012, 0.033837996423244476, -0.017589645460247993, 0.006523958873003721, 0.05823599174618721, 0.021817274391651154, 0.027912527322769165, 0.014185472391545773, -0.05090131238102913, -0.015526767820119858, -0.03356634080410004, -0.05358390137553215, 0.021341877058148384, 0.025111088529229164, -0.037827927619218826, 0.03680922091007233, -0.019236553460359573, 0.021002309396862984, 0.033141881227493286, 0.004567195661365986, 0.05300663784146309, 0.024924324825406075, 0.016842596232891083, -0.007470506243407726, 0.008268492296338081, 0.023260438814759254, 0.005360937211662531, 0.05100318416953087, 0.026384469121694565, 0.032292962074279785, -0.05626649409532547, 0.015662595629692078, 0.04618130996823311, 0.017131227999925613, -0.016740724444389343, 0.07130938023328781, 0.030340442433953285, -0.05585901066660881, 0.03996720910072327, -0.013345040380954742, 0.017267055809497833, -0.06210707128047943, 0.011316118761897087, -0.029695261269807816, 0.03993324935436249, 0.010017269290983677, -0.014143026433885098, 0.012275399640202522, 0.010399283841252327, -0.018014106899499893 ]
714,998
pytorch_optimizer.optimizer.adafactor
approximate_sq_grad
Get approximation of EMA of squared gradient.
@staticmethod def approximate_sq_grad( exp_avg_sq_row: torch.Tensor, exp_avg_sq_col: torch.Tensor, output: torch.Tensor, ): r"""Get approximation of EMA of squared gradient.""" r_factor: torch.Tensor = (exp_avg_sq_row / exp_avg_sq_row.mean(dim=-1, keepdim=True)).rsqrt_().unsqueeze(-1) c_factor: torch.Tensor = exp_avg_sq_col.unsqueeze(-2).rsqrt() torch.mul(r_factor, c_factor, out=output)
(exp_avg_sq_row: torch.Tensor, exp_avg_sq_col: torch.Tensor, output: torch.Tensor)
[ -0.013864763081073761, -0.05076219514012337, 0.024044299498200417, 0.04765504226088524, 0.011155037209391594, -0.015635117888450623, 0.033257365226745605, -0.03555160015821457, -0.014515097253024578, 0.007600780576467514, 0.05043702945113182, 0.01191376056522131, 0.020666174590587616, 0.04783569276332855, -0.040609754621982574, 0.05925266817212105, 0.0029784401413053274, -0.011091810651123524, 0.0314689464867115, 0.01372024416923523, -0.04931700974702835, -0.08866222202777863, -0.030150214210152626, -0.015210594050586224, -0.03284187614917755, 0.002459076000377536, 0.03808067739009857, -0.004999443888664246, 0.03170379251241684, -0.047763433307409286, -0.005387837998569012, -0.07356002181768417, -0.0069459304213523865, -0.004236204549670219, 0.02731403522193432, -0.06481663882732391, 0.027675332501530647, -0.021153924986720085, -0.026735959574580193, -0.08425440639257431, -0.03219154104590416, 0.02809082344174385, 0.032498642802238464, 0.005523324478417635, 0.012871197424829006, 0.01860678382217884, -0.050509288907051086, 0.015806732699275017, -0.05751844495534897, -0.003696517553180456, 0.0031387656927108765, -0.03584063798189163, 0.003969748038798571, 0.05390547588467598, 0.024170752614736557, 0.03782777115702629, 0.023141058161854744, -0.03210121765732765, 0.005993010010570288, -0.018805496394634247, 0.028415990993380547, -0.07551102340221405, 0.02395397610962391, 0.033636730164289474, 0.02971665933728218, 0.015815766528248787, -0.032137345522642136, 0.0008535636006854475, 0.050726063549518585, 0.026735959574580193, -0.021370703354477882, 0.02458624541759491, 0.01492155622690916, -0.05358031019568443, 0.0028542443178594112, 0.003834261791780591, -0.01010727696120739, -0.022310074418783188, -0.03119797445833683, -0.027006933465600014, 0.006160109769552946, 0.008336923085153103, 0.0056407456286251545, 0.004608791787177324, 0.009005322121083736, -0.06413017213344574, -0.0007745299371890724, -0.030927002429962158, -0.007415615953505039, 0.03593096137046814, 0.032625097781419754, -0.023917846381664276, -0.00452298391610384, 0.027241775766015053, 0.003125217044726014, -0.008526603691279888, -0.03385350480675697, -0.028036627918481827, 0.011037616059184074, -0.012988618575036526, 0.011976988054811954, 0.06846573948860168, 0.016529327258467674, 0.02931923232972622, 0.045631781220436096, -0.026356598362326622, 0.036870334297418594, -0.041007183492183685, 0.07178966701030731, -0.015779636800289154, -0.004592984914779663, 0.0017545473529025912, -0.0006706570857204497, -0.0397065132856369, -0.02720564603805542, -0.02294234372675419, -0.027043063193559647, 0.05152091756463051, 0.04671567305922508, 0.030981197953224182, 0.09032419323921204, -0.009312423877418041, -0.045378874987363815, 0.03833358734846115, 0.028542444109916687, 0.03833358734846115, 0.013620887883007526, -0.019997775554656982, -0.00930339191108942, -0.02346622385084629, 0.016068672761321068, 0.005017508752644062, 0.028415990993380547, -0.05144865810871124, 0.0012588934041559696, 0.03645484149456024, 0.03753873333334923, -0.04021232947707176, 0.03891166299581528, -0.017288049682974815, 0.013964120298624039, 0.07337937504053116, -0.0006904155598022044, -0.018290648236870766, 0.014731875620782375, 0.06680376827716827, -0.0013548628194257617, 0.07955754548311234, 0.037863899022340775, -0.0334741435945034, -0.018055805936455727, 0.021316509693861008, -0.012835067696869373, -0.012789905071258545, 0.03927295655012131, -0.011751176789402962, 0.01429831888526678, 0.03611161187291145, -0.03334769234061241, -0.03296833112835884, -0.015490598976612091, -0.013006683439016342, -0.02595917321741581, -0.010595027357339859, 0.0037800674326717854, -0.014822199940681458, 0.002666821703314781, 0.03920069709420204, -0.06261272728443146, -0.014108638279139996, -0.00804788526147604, -0.05361643806099892, -0.04754665493965149, -0.016122868284583092, -0.02648305334150791, 0.05950557813048363, -0.014876394532620907, 0.03183024376630783, -0.014822199940681458, -0.028253406286239624, 0.019780997186899185, -0.008034336380660534, 0.04490918666124344, -0.02122618444263935, 0.029987631365656853, 0.027241775766015053, 0.00698657613247633, -0.022743631154298782, 0.010875032283365726, -0.00571300508454442, -0.06651473045349121, -0.07110320031642914, -0.002194877713918686, -0.06431082636117935, -0.0012487319763749838, -0.006038172170519829, 0.004723954945802689, 0.045993078500032425, 0.03237219154834747, 0.03735808655619621, -0.07587231695652008, -0.014072508551180363, -0.004836860578507185, -0.004791698418557644, 0.03293219953775406, -0.07197031378746033, 0.021659741178154945, -0.026374664157629013, -0.0464627631008625, 0.036617428064346313, -0.055856481194496155, 0.040862664580345154, -0.006002042442560196, 0.020864887163043022, 0.07077803462743759, 0.025525616481900215, 0.034503839910030365, -0.003969748038798571, 0.017793865874409676, 0.029102453961968422, -0.006959478836506605, -0.07818461954593658, -0.0018719688523560762, 0.015246723778545856, 0.07449939101934433, -0.05314675346016884, 0.008802092634141445, -0.008666605688631535, -0.01947389543056488, -0.04321109130978584, -0.005685907788574696, 0.0011098585091531277, 0.001711643417365849, -0.04490918666124344, -0.003536192001774907, 0.09184163808822632, -0.03779163956642151, 0.014018313959240913, 0.06850186735391617, 0.003353285603225231, -0.043753039091825485, -0.02458624541759491, -0.04530661553144455, 0.06998318433761597, -0.0015648666303604841, 0.00867563858628273, 0.027151452377438545, 0.021406833082437515, -0.03148701414465904, 0.02294234372675419, -0.0050355736166238785, 0.030637964606285095, 0.019564218819141388, 0.04256075993180275, -0.00899177324026823, -0.013765406794846058, 0.03945360705256462, 0.11221877485513687, 0.006119464058429003, -0.055495183914899826, 0.013575726188719273, -0.06011978164315224, 0.0673818439245224, -0.03181217983365059, -0.0722232237458229, 0.03614773973822594, 0.012473770417273045, 0.013413142412900925, -0.011127940379083157, 0.04357238858938217, 0.08634992688894272, 0.09870627522468567, -0.045631781220436096, -0.029554074630141258, 0.01491252426058054, 0.042235590517520905, 0.021804260089993477, 0.030728289857506752, 0.005333643406629562, -0.019022274762392044, 0.0009636462200433016, -0.0669482871890068, -0.009447909891605377, 0.08071369677782059, -0.0371774360537529, -0.003188443835824728, -0.004669760819524527, -0.012582159601151943, 0.06261272728443146, 0.033383820205926895, 0.035894833505153656, -0.025489486753940582, 0.015300917439162731, 0.035136111080646515, 0.0468963198363781, 0.054375164210796356, 0.029265036806464195, 0.04010394215583801, -0.010504703037440777, 0.04010394215583801, 0.015788668766617775, 0.03296833112835884, -0.03499159216880798, 0.011444075033068657, 0.0012780872639268637, -0.002240039873868227, -0.01949196122586727, -0.013584758155047894, 0.03753873333334923, 0.004328786861151457, -0.03334769234061241, 0.0002410526794847101, -0.06976640224456787, 0.03173992037773132, -0.09299778938293457, 0.025886913761496544, -0.005211705807596445, -0.03573225066065788, 0.04425885155797005, -0.011317620985209942, -0.015002847649157047, -0.006498825270682573, 0.07406583428382874, 0.017775800079107285, -0.03210121765732765, -0.05943331867456436, -0.045234356075525284, -0.0000407517327403184, -0.0014869619626551867, -0.04107944294810295, -0.040501367300748825, -0.04978669434785843, -0.005527840461581945, -0.003116184612736106, 0.007338840514421463, -0.03668968752026558, 0.029879242181777954, -0.007501423824578524, -0.01810096763074398, -0.008251114748418331, -0.012771840207278728, 0.041007183492183685, 0.014451870694756508, 0.036490973085165024, 0.026410793885588646, -0.010667286813259125, 0.011462139897048473, 0.00042170105734840035, -0.01586092822253704, 0.002227620454505086, 0.0052162217907607555, -0.05975848436355591, 0.008345955051481724, 0.0324263833463192, 0.05083445459604263, 0.08895125985145569, -0.03797229006886482, -0.036490973085165024, 0.03956199437379837, -0.030872808769345284, -0.029283102601766586, 0.0019995516631752253, -0.026266274973750114, -0.004613308236002922, -0.015888025984168053, 0.03352833911776543, -0.05950557813048363, 0.005947847850620747, 0.04046523571014404, -0.003881682176142931, -0.01423509232699871, -0.02783791534602642, 0.02046746201813221, 0.006282047368586063, -0.0549171082675457, 0.001366153359413147, -0.06431082636117935, 0.01517446432262659, 0.027115322649478912, -0.007794977631419897, 0.008535635657608509, -0.03542514890432358, -0.03155927360057831, -0.025254644453525543, 0.06506954878568649, 0.004814279265701771, -0.02483915165066719, -0.020250683650374413, -0.02623014524579048, -0.01920292340219021, -0.026934674009680748, 0.03620193526148796, -0.017920318990945816, -0.054483551532030106, -0.09769464284181595, 0.009036934934556484, 0.005762683227658272, 0.03504578769207001, -0.09393715858459473, 0.05451968312263489, -0.03829745575785637, 0.028289536014199257, 0.00540138641372323, -0.019997775554656982, -0.07298194617033005, -0.03304059058427811, -0.07572779804468155, 0.046137597411870956, 0.050617676228284836, 0.0454150028526783, -0.023285577073693275, -0.0034865138586610556, 0.0033239303156733513, 0.06290176510810852, -0.05278545618057251, 0.00985436886548996, -0.015481566078960896, -0.04631824418902397, -0.06543084233999252, 0.037610992789268494, -0.006250434089452028, -0.022364269942045212, -0.019943581894040108, 0.020991342142224312, -0.006196239497512579, -0.0551338866353035, -0.07572779804468155, -0.03410641476511955, -0.022165555506944656, -0.014704777859151363, -0.011182134971022606, -0.01898614503443241, -0.038261327892541885, 0.0027458553668111563, 0.002851986326277256, 0.009529202245175838, 0.010956324636936188, 0.031143780797719955, -0.0174777302891016, -0.04877506196498871, 0.046607282012701035, -0.00010627205483615398, -0.018516458570957184, -0.001558092306368053, -0.03148701414465904, -0.04169364646077156, 0.021768130362033844, -0.028560509905219078, -0.02646498754620552, -0.008187888190150261, 0.005550421308726072, 0.02756694331765175, 0.03546127676963806, 0.05715714767575264, -0.007067868020385504, -0.04046523571014404, 0.022490723058581352, -0.051123492419719696, 0.05665133148431778, 0.03797229006886482, -0.009944693185389042, 0.05025637894868851, 0.010522767901420593, -0.04382529854774475, 0.024279141798615456, 0.04516209661960602, 0.07832913845777512, 0.0087388651445508, 0.014153800904750824, -0.02722371183335781, 0.04993121325969696, -0.03627419471740723, -0.048341505229473114, -0.04006781056523323, 0.0324263833463192, -0.02760307304561138, -0.027801785618066788, 0.04552339017391205, 0.03184830769896507, -0.022292010486125946, -0.02756694331765175, -0.03916456922888756, -0.01945583149790764, 0.010025985538959503, 0.041765905916690826, 0.04440337046980858, -0.022743631154298782, -0.04808859899640083, 0.03945360705256462, -0.018534524366259575, -0.009059516713023186, 0.01334991492331028, 0.00835950393229723, 0.02294234372675419, -0.08064143359661102, -0.09538234770298004, 0.02496560662984848, 0.014813167043030262, 0.035118043422698975, 0.006169142201542854, 0.017161596566438675, 0.009185969829559326, -0.08295373618602753, 0.02173200063407421, -0.012618289329111576, -0.02684434875845909, -0.061854004859924316, 0.022996539250016212, -0.0005436387145891786, -0.021641675382852554, -0.01372024416923523, 0.031125716865062714, -0.004114266950637102, 0.024297207593917847, 0.038008417934179306, -0.04241624101996422, 0.03596709296107292, 0.04277753829956055, 0.10296957939863205, -0.015300917439162731, -0.03618387132883072, 0.033889636397361755, -0.05806038901209831, 0.031523142009973526, -0.022815890610218048, 0.04881119355559349, 0.026754025369882584, 0.028036627918481827, -0.010640189982950687, -0.0032494126353412867, -0.01492155622690916, 0.037141308188438416, 0.008178855292499065, 0.022689437493681908, -0.015210594050586224, 0.020792629569768906, 0.014831231907010078, -0.038116808980703354, -0.027386294677853584, -0.011931825429201126, -0.021750064566731453, -0.0013187332078814507, -0.0001871404383564368, -0.017920318990945816, -0.0821588858962059, 0.02771146222949028, -0.009195002727210522, 0.02646498754620552, 0.01798354648053646, -0.020395202562212944, 0.03340188413858414, 0.05737392604351044, 0.04364464804530144, 0.03905617818236351, 0.04855828359723091, 0.05993913114070892, -0.06427469104528427, -0.02023261785507202, -0.029915371909737587, -0.04227172210812569, -0.01609577052295208, -0.09704431146383286, 0.05517001450061798, 0.04093492403626442, 0.009944693185389042, 0.027801785618066788, 0.01067631971091032, 0.05704876035451889, -0.03607548028230667, 0.0028406959027051926, -0.08880674093961716, 0.017306115478277206, 0.05715714767575264, -0.008666605688631535, -0.009511137381196022, -0.016529327258467674, 0.06073398515582085, -0.08273696154356003, 0.02980698272585869, -0.02156941592693329, 0.015878992155194283, -0.07854591310024261, -0.003755228128284216, 0.011778274551033974, 0.00777239678427577, 0.03596709296107292, -0.050509288907051086, 0.02270750142633915, -0.03134249523282051, -0.005582035053521395, 0.006525922566652298, 0.0029377941973507404, -0.041765905916690826, -0.058241039514541626, 0.004922668449580669, -0.006123980041593313, -0.01983519271016121, 0.017820963636040688, 0.020630044862627983, 0.011444075033068657, -0.06051720678806305, 0.01945583149790764, 0.0686463862657547, -0.07753428816795349, -0.015002847649157047, -0.0022174587938934565, -0.012139570899307728, -0.0331670418381691, 0.011507301591336727, -0.024640439078211784, -0.02120812050998211, 0.030764419585466385, -0.017757736146450043, 0.025796588510274887, -0.04328335076570511, -0.008517570793628693, -0.049967341125011444, 0.03656323254108429, 0.008973708376288414, 0.07572779804468155, 0.0161048024892807, 0.04129622131586075, 0.01858871802687645, 0.011010519228875637, 0.002359719481319189, 0.012509900145232677, 0.01783902756869793, -0.034883201122283936, -0.05213512107729912, 0.00630011223256588, -0.010089212097227573, 0.030240539461374283, 0.02511012554168701, -0.06705667823553085, 0.005735585931688547, -0.02731403522193432, 0.04516209661960602, -0.00008051555050769821, -0.04147686809301376, -0.030637964606285095, -0.006950446404516697, 0.04657115414738655, -0.005329127423465252, 0.004360400140285492, -0.00985436886548996, 0.07121159136295319, -0.02794630452990532, -0.004746536258608103, -0.014768005348742008, -0.0064401146955788136, 0.025236578658223152, 0.018281616270542145, 0.013458304107189178, 0.059216540306806564, 0.03448577597737312, 0.00011099996481789276, -0.04364464804530144, 0.022255880758166313, 0.021370703354477882, 0.022508788853883743, 0.006665925029665232, -0.024730762466788292, -0.043102703988552094, -0.016944818198680878, 0.002227620454505086, -0.005514292046427727, -0.009402748197317123, 0.06051720678806305, -0.023014603182673454, -0.02044939622282982, -0.028018563985824585, 0.011182134971022606, -0.042235590517520905, -0.035389017313718796, 0.0032855423633009195, -0.030421188101172447, 0.022165555506944656, -0.05957783758640289, -0.03632839024066925, 0.00272779050283134, 0.03855036571621895, 0.04566790908575058, -0.002578755607828498, 0.03580451011657715, 0.03130636364221573, -0.00393587676808238, 0.016881590709090233, 0.05878298357129097, 0.015300917439162731, -0.0646359920501709, -0.05408612638711929, -0.07121159136295319, -0.041368480771780014, -0.016168029978871346, 0.030493447557091713, -0.036364518105983734, -0.021153924986720085, 0.02758500725030899, 0.01661061868071556, 0.019293246790766716, 0.04516209661960602, 0.06467211991548538, -0.021298443898558617, 0.05488097667694092, 0.04588468745350838, 0.024152688682079315, 0.01686352677643299, 0.02946375124156475, -0.030493447557091713, 0.014650583267211914, -0.006914316676557064, -0.027621136978268623, -0.028289536014199257, -0.0010855838190764189, 0.013386044651269913, 0.004597501363605261, 0.024730762466788292, -0.011100842617452145, -0.04628211632370949, 0.029283102601766586, -0.005189124960452318, -0.017071271315217018, 0.036996789276599884, -0.032245736569166183, -0.048341505229473114, -0.03204702213406563, 0.020033905282616615, -0.0057220375165343285, -0.0041323318146169186, 0.008838222362101078, 0.004030717071145773, -0.00830530934035778, 0.08345954865217209, 0.1123632937669754, 0.004084911663085222, 0.0574461854994297, -0.01328668836504221, -0.022761695086956024, 0.03448577597737312, -0.024405596777796745, 0.02147909253835678, 0.018516458570957184, 0.051231879740953445, -0.037647124379873276, -0.019419701769948006, 0.022526852786540985, -0.047257617115974426, -0.007379486225545406, 0.023050732910633087, -0.018552588298916817, 0.018805496394634247, 0.016294483095407486, 0.05292997509241104, 0.09350360184907913, 0.019401635974645615, -0.04144074022769928, 0.014867361634969711, -0.07580006122589111, -0.0481608584523201, -0.01773063838481903, 0.004220397677272558, 0.02194877900183201, -0.006580117158591747, 0.01609577052295208, -0.021027471870183945, 0.02756694331765175, -0.028614703565835953, -0.01011630892753601 ]
715,001
pytorch_optimizer.optimizer.adafactor
get_lr
Get AdaFactor learning rate.
def get_lr( self, lr: float, step: int, rms: float, relative_step: bool, warmup_init: bool, scale_parameter: bool ) -> float: r"""Get AdaFactor learning rate.""" relative_step_size: float = lr if relative_step: min_step: float = 1e-6 * step if warmup_init else 1e-2 relative_step_size = min(min_step, 1.0 / math.sqrt(step)) param_scale: float = 1.0 if scale_parameter else max(self.eps2, rms) return param_scale * relative_step_size
(self, lr: float, step: int, rms: float, relative_step: bool, warmup_init: bool, scale_parameter: bool) -> float
[ -0.028750242665410042, 0.010877972468733788, -0.0008788886480033398, 0.05212591961026192, 0.014439542777836323, 0.021387824788689613, -0.01094239391386509, -0.07483898103237152, -0.06401622295379639, 0.0385790690779686, -0.0005162320449016988, 0.012276832014322281, 0.05584394186735153, 0.09909814596176147, 0.009626361541450024, 0.044284943491220474, -0.0387631319463253, 0.04734034836292267, -0.027461819350719452, 0.01641819253563881, 0.026872826740145683, 0.08533042669296265, -0.02575005777180195, 0.022381750866770744, -0.023136397823691368, 0.04450581595301628, 0.04630960896611214, 0.023338865488767624, -0.07259344309568405, 0.0209276732057333, 0.01404381264001131, -0.010022091679275036, 0.007316403090953827, 0.0020614771638065577, -0.006635379046201706, -0.00499724131077528, -0.02512425184249878, -0.016611455008387566, -0.09571143239736557, -0.016556236892938614, 0.018820181488990784, 0.04343826696276665, 0.04325420781970024, -0.020854048430919647, -0.04608873650431633, -0.054629143327474594, -0.03653600066900253, -0.04340145364403725, 0.006534146144986153, -0.03438249230384827, 0.044321756809949875, 0.005038654897361994, 0.0037663369439542294, 0.002917358186095953, 0.002730997046455741, -0.01255292259156704, -0.028198061510920525, -0.03357262536883354, 0.02611817792057991, 0.01905025728046894, 0.04023561626672745, -0.07980861514806747, -0.017596179619431496, 0.00604638596996665, 0.03649918735027313, -0.027903564274311066, -0.047929342836141586, 0.015166581608355045, 0.000284287118120119, 0.02801400050520897, -0.028271684423089027, 0.0034465319477021694, 0.018175968900322914, -0.020762018859386444, -0.01836923323571682, 0.04649367183446884, -0.002885147463530302, -0.058163102716207504, 0.0019360858714208007, -0.019215911626815796, 0.005857723765075207, 0.10454633831977844, 0.022952338680624962, -0.016859937459230423, -0.03248666971921921, -0.08466780930757523, -0.04557336866855621, -0.04325420781970024, -0.0077673508785665035, -0.043659139424562454, -0.003455735044553876, -0.02324683591723442, 0.0290447399020195, 0.05499726161360741, -0.018249593675136566, -0.022142471745610237, -0.06081357225775719, 0.013887360692024231, -0.014706430025398731, -0.02641267515718937, 0.009134000167250633, 0.006939079146832228, 0.027774721384048462, 0.05426102131605148, 0.025602808222174644, 0.001303378026932478, -0.01080434862524271, -0.03824776038527489, 0.04030923917889595, 0.008278118446469307, -0.034916266798973083, 0.02221609652042389, -0.08533042669296265, 0.04896007850766182, -0.06854411214590073, 0.0484078973531723, 0.01709001325070858, -0.005554024130105972, -0.03294682130217552, 0.020798830315470695, 0.013243149034678936, 0.03567091375589371, 0.00017039971135091037, -0.006253453902900219, 0.00546659529209137, -0.011715447530150414, 0.029578514397144318, 0.031161434948444366, -0.03891037777066231, -0.013022276572883129, 0.03611265867948532, 0.008733668364584446, -0.034640178084373474, -0.028750242665410042, 0.03738267719745636, -0.004353029653429985, 0.06478928029537201, 0.051426488906145096, -0.013924173079431057, 0.028768649324774742, 0.0005838167271576822, 0.06659307330846786, 0.02228972129523754, -0.06258055567741394, 0.01064789667725563, 0.018268000334501266, 0.009930061176419258, 0.0709737092256546, -0.01905025728046894, -0.007334808818995953, -0.0067872293293476105, -0.032100141048431396, 0.04616235941648483, 0.01707160659134388, 0.04807658866047859, 0.013114307075738907, -0.026596734300255775, 0.005204309243708849, -0.02935764193534851, -0.018774166703224182, -0.019123880192637444, -0.00201891316100955, -0.028290091082453728, -0.08128109574317932, 0.01065710000693798, 0.008015832863748074, -0.038505446165800095, 0.011706245131790638, -0.014743242412805557, -0.007247380446642637, 0.011825883761048317, -0.0868029072880745, 0.019731279462575912, -0.0014241677708923817, -0.015304626896977425, 0.041450414806604385, -0.008687653578817844, 0.01838763989508152, 0.026707172393798828, 0.04988038167357445, 0.055917564779520035, 0.019105475395917892, 0.0058991373516619205, -0.077379010617733, -0.009157007560133934, 0.011034424416720867, -0.051095180213451385, 0.031032592058181763, -0.04704585298895836, 0.01965765655040741, 0.06865454465150833, 0.03701455518603325, -0.001821048092097044, -0.035928599536418915, -0.062359679490327835, -0.003331494051963091, 0.03298363462090492, 0.007215169724076986, 0.08319532126188278, 0.052972596138715744, 0.01706240326166153, 0.07553841173648834, -0.013648082502186298, 0.05245722830295563, -0.01274618599563837, -0.030517222359776497, -0.029412860050797462, 0.033719874918460846, -0.02024664916098118, 0.016013259068131447, -0.041119106113910675, 0.008071050979197025, 0.008926931768655777, 0.0023743798956274986, -0.018323218449950218, -0.05613843724131584, -0.0322473905980587, 0.030866937711834908, 0.0679183080792427, 0.044321756809949875, 0.023983076214790344, -0.08282720297574997, 0.03972024470567703, -0.02678079530596733, 0.023320458829402924, -0.014237076044082642, -0.0015829198528081179, -0.04965950921177864, -0.0869501605629921, 0.020449116826057434, -0.017927488312125206, -0.08187008649110794, 0.06335360556840897, 0.012433283030986786, 0.045352496206760406, 0.08201733976602554, 0.02096448466181755, 0.06261736899614334, -0.058494411408901215, -0.0013148818397894502, -0.0386526957154274, 0.04954907298088074, 0.007721336092799902, 0.03003866598010063, -0.05831035226583481, 0.023780610412359238, 0.0274250078946352, 0.0069298758171498775, -0.08128109574317932, -0.050837498158216476, -0.02381742186844349, 0.008071050979197025, 0.055917564779520035, 0.06007733196020126, -0.012672562152147293, 0.036296721547842026, 0.015019332990050316, 0.02547396719455719, 0.003911284729838371, -0.02287871390581131, 0.04892326891422272, 0.012175599113106728, -0.02510584518313408, 0.033388566225767136, -0.07148908078670502, 0.038542259484529495, -0.006198235787451267, 0.024884972721338272, 0.015580717474222183, 0.025584403425455093, 0.11205600202083588, 0.01836002990603447, -0.032652322202920914, -0.02164550870656967, 0.031419120728969574, 0.011071235872805119, 0.0007655764347873628, -0.02968895062804222, -0.010187746025621891, 0.014292294159531593, -0.0004172995686531067, -0.02606295980513096, 0.0014828370185568929, 0.03648078069090843, -0.05293578654527664, -0.021387824788689613, 0.027259353548288345, 0.02611817792057991, -0.025326717644929886, 0.0515737384557724, 0.02744341269135475, -0.03482423722743988, -0.0065433490090072155, 0.05735323578119278, 0.10079150646924973, 0.040750984102487564, 0.010307385586202145, -0.05577031522989273, 0.021516665816307068, 0.02004418335855007, -0.005360760726034641, -0.015497890301048756, 0.038505446165800095, 0.054629143327474594, -0.056248873472213745, -0.04056692495942116, -0.017927488312125206, -0.008775082416832447, 0.005043256562203169, 0.0017428223509341478, -0.055954378098249435, 0.05102155730128288, 0.03027794510126114, -0.019105475395917892, -0.05311984568834305, -0.047598034143447876, -0.02098289132118225, -0.005986566189676523, 0.02865821309387684, 0.021074920892715454, -0.046530481427907944, 0.03125346451997757, 0.010482242330908775, -0.04988038167357445, 0.029431266710162163, -0.05547581985592842, 0.009087984450161457, 0.04288608580827713, 0.030057070776820183, -0.022087253630161285, -0.027314571663737297, -0.06368491798639297, 0.0021362516563385725, -0.01404381264001131, -0.02287871390581131, -0.024424821138381958, 0.015028535388410091, 0.02937604859471321, 0.005880731623619795, 0.007537275552749634, 0.05772135779261589, -0.0009018962155096233, -0.008752074092626572, 0.01769741252064705, 0.04340145364403725, 0.009681579656898975, 0.05742686241865158, 0.016519425436854362, 0.013160321861505508, -0.04991719499230385, -0.04421132057905197, -0.07892511785030365, -0.04645685851573944, 0.032339420169591904, -0.021774351596832275, 0.028437340632081032, -0.05731642618775368, -0.002970275469124317, 0.03686730936169624, -0.04583105072379112, -0.01436591800302267, 0.023688580840826035, -0.03681208938360214, 0.043364644050598145, 0.037842828780412674, 0.0027862151619046926, -0.07826250046491623, -0.04053011164069176, 0.03773239254951477, -0.008637037128210068, -0.012286035344004631, -0.027314571663737297, 0.014421136118471622, -0.023596549406647682, -0.011117251589894295, 0.012976261787116528, 0.03002025932073593, -0.033020444214344025, 0.048849642276763916, 0.023762203752994537, 0.0030531026422977448, 0.026357457041740417, 0.0007811065297573805, 0.033388566225767136, 0.05507088825106621, -0.03644397109746933, -0.03686730936169624, -0.026559922844171524, -0.0038100513629615307, -0.02703848108649254, 0.0012320546666160226, 0.04807658866047859, -0.019142286852002144, -0.030756501480937004, -0.07318243384361267, -0.005922145210206509, 0.011651027016341686, 0.00008462466939818114, -0.03200811147689819, -0.007371621206402779, 0.003846863517537713, 0.009571143426001072, 0.019584031775593758, -0.015295423567295074, 0.009041969664394855, 0.005954355467110872, 0.038873568177223206, 0.012617344036698341, -0.043953634798526764, 0.012681765481829643, -0.0021972216200083494, 0.007583290804177523, -0.032376233488321304, 0.01864532381296158, -0.02611817792057991, -0.005540219601243734, 0.024866566061973572, -0.03576294705271721, -0.01193631999194622, 0.04413769766688347, 0.0034396296832710505, -0.004721150733530521, -0.02994663454592228, 0.044947560876607895, 0.06004051864147186, 0.027811534702777863, 0.011890305206179619, 0.017274074256420135, -0.054923638701438904, -0.012166395783424377, 0.023044368252158165, -0.009976076893508434, 0.011347326450049877, -0.03419843316078186, -0.007279590703547001, 0.012286035344004631, -0.027829939499497414, 0.03515554592013359, -0.02131420001387596, -0.08282720297574997, 0.07251981645822525, -0.06320635974407196, 0.004474969580769539, 0.01739371195435524, -0.037511520087718964, -0.04380638897418976, -0.003849164117127657, -0.02026505582034588, -0.04376957565546036, -0.032652322202920914, -0.01609608717262745, -0.01609608717262745, 0.03905762732028961, 0.02033868059515953, 0.023688580840826035, 0.0005274482537060976, -0.00032153059146367013, -0.03129027783870697, 0.03136390075087547, -0.024240761995315552, 0.06199156120419502, 0.021185357123613358, 0.028106030076742172, 0.03158477321267128, 0.024111919105052948, 0.05186823382973671, 0.05536538362503052, 0.02582368068397045, -0.03574454039335251, -0.01452236995100975, -0.009230631403625011, 0.026026148349046707, 0.04295970872044563, -0.044358570128679276, 0.027277758345007896, 0.0072059668600559235, -0.03353581577539444, -0.0030738094355911016, 0.004145961720496416, -0.007771952543407679, -0.008986751548945904, -0.07509666681289673, 0.02355973795056343, 0.011862696148455143, 0.005185903050005436, 0.04049329832196236, -0.09549055993556976, 0.07701089233160019, -0.027793128043413162, 0.020136212930083275, -0.024866566061973572, 0.021461447700858116, -0.010031295008957386, 0.0644947811961174, -0.08569854497909546, -0.070863276720047, 0.09144122898578644, -0.026486298069357872, 0.051757797598838806, 0.03835819661617279, -0.003414321457967162, -0.06626176089048386, -0.018544090911746025, 0.04649367183446884, 0.027940375730395317, 0.0026504704728722572, -0.12405674159526825, -0.016611455008387566, -0.017274074256420135, 0.025878898799419403, 0.003570772707462311, 0.030425192788243294, -0.01402540598064661, -0.0011060882825404406, -0.015442672185599804, 0.004548593889921904, -0.009009758941829205, 0.04410088434815407, 0.01194552332162857, -0.031216653063893318, -0.03894719108939171, 0.038873568177223206, 0.002041920553892851, -0.05610162392258644, 0.004647526424378157, 0.03843182325363159, -0.04892326891422272, -0.015102160163223743, 0.019234316423535347, 0.0035960811655968428, 0.04745078459382057, -0.02897111512720585, 0.018884602934122086, 0.027222540229558945, 0.011236890219151974, 0.04634642228484154, -0.054923638701438904, -0.05422420799732208, -0.05437145754694939, -0.0482974611222744, 0.019786497578024864, -0.023081179708242416, 0.03583656996488571, -0.002544635673984885, -0.029449671506881714, -0.020191431045532227, -0.022308126091957092, 0.07038471847772598, 0.04704585298895836, 0.008305727504193783, 0.04053011164069176, 0.006405303720384836, -0.04354870319366455, 0.014292294159531593, 0.0017117621609941125, -0.008278118446469307, -0.0069804927334189415, 0.02932083047926426, 0.022657841444015503, -0.04056692495942116, -0.005259527359157801, -0.02838212065398693, 0.04480031505227089, 0.005402174312621355, -0.012948652729392052, -0.03668324649333954, -0.011724650859832764, 0.04119272902607918, -0.02834530919790268, -0.011853492818772793, -0.004424353130161762, 0.006193634122610092, -0.004808579105883837, 0.001814145827665925, -0.03313088044524193, -0.006810236722230911, 0.016289349645376205, 0.000018873386579798535, -0.025860494002699852, 0.0003218181955162436, 0.034916266798973083, -0.0024871169589459896, -0.029725762084126472, -0.03810051456093788, 0.017623787745833397, -0.009571143426001072, -0.025602808222174644, 0.021792758256196976, -0.08569854497909546, -0.036259908229112625, -0.058862533420324326, 0.02551077865064144, -0.04373276233673096, -0.0354684479534626, -0.00492821866646409, -0.01483527198433876, -0.008963744156062603, -0.013795331120491028, 0.0176882091909647, 0.06946441531181335, -0.04053011164069176, -0.010620287619531155, 0.0048499926924705505, 0.0153138292953372, 0.012930247001349926, -0.012101974338293076, -0.001416115090250969, -0.013344382867217064, -0.02615498937666416, -0.03246826305985451, 0.0025354328099638224, 0.008650841191411018, 0.029486484825611115, -0.01612369529902935, 0.032063331454992294, -0.070863276720047, -0.037272240966558456, -0.041045479476451874, 0.07528072595596313, -0.005830114707350731, -0.004613014869391918, -0.035302795469760895, 0.008466781117022038, 0.026320643723011017, -0.0209092665463686, 0.017228057608008385, -0.004516383167356253, -0.041082292795181274, 0.0032808776013553143, -0.10388372093439102, 0.0031773436348885298, 0.02841893397271633, 0.008498990908265114, -0.07833612710237503, 0.031014185398817062, 0.041744910180568695, 0.00628566462546587, 0.05260447785258293, 0.004320818930864334, -0.013013074174523354, 0.010427024215459824, 0.07914599031209946, -0.033406972885131836, -0.0322105772793293, 0.027277758345007896, -0.01971287466585636, -0.049769945442676544, -0.01402540598064661, 0.04962269589304924, 0.03828457370400429, -0.04730353504419327, -0.00022834999253973365, 0.034971486777067184, 0.024719318374991417, 0.007063319906592369, -0.039536185562610626, 0.017182042822241783, 0.04671454429626465, 0.010923988185822964, -0.047929342836141586, -0.07877787202596664, -0.025860494002699852, 0.010546663776040077, -0.029836198315024376, -0.024369603022933006, 0.006593965459614992, -0.028492558747529984, 0.03638875111937523, 0.003064606571570039, -0.062396492809057236, -0.04538930580019951, 0.00394809665158391, -0.021038109436631203, 0.03567091375589371, 0.0209092665463686, 0.050800684839487076, -0.021774351596832275, -0.10565070062875748, 0.09755203872919083, 0.0033130880910903215, -0.06081357225775719, 0.02260262332856655, -0.06994297355413437, 0.02865821309387684, 0.009792015887796879, -0.021737540140748024, 0.02227131463587284, 0.02672557719051838, 0.014881287701427937, 0.0354684479534626, -0.05028531700372696, 0.02519787661731243, -0.04229709133505821, 0.023117993026971817, 0.03521076589822769, -0.02228972129523754, -0.0306276585906744, -0.011154063045978546, 0.04491075128316879, -0.021203763782978058, 0.028142843395471573, 0.0017865367699414492, -0.010583476163446903, 0.020798830315470695, -0.011558996513485909, 0.035560477524995804, 0.027793128043413162, 0.01485367864370346, -0.04262840002775192, 0.01737530715763569, 0.01222161389887333, 0.0354684479534626, 0.0019452888518571854, -0.041450414806604385, 0.012976261787116528, -0.027498630806803703, 0.01080434862524271, 0.0033130880910903215, -0.05739004909992218, 0.03035156801342964, -0.027314571663737297, 0.011503778398036957, 0.0678078681230545, -0.021516665816307068, 0.006635379046201706, 0.01288423128426075, 0.016050070524215698, 0.0482974611222744, -0.016556236892938614, -0.006883861031383276, -0.0029219596181064844, 0.024075107648968697, -0.007689125370234251, -0.004654428455978632, -0.000412122841225937, 0.013298367150127888, 0.017881473526358604, 0.014135842211544514, 0.05120561644434929, -0.016924358904361725, 0.025289906188845634, 0.05319346860051155, -0.001156129757873714, -0.007509666495025158, 0.027627473697066307, 0.02293393202126026, -0.03283638507127762, -0.014154248870909214, 0.026596734300255775, -0.04649367183446884, 0.03683049604296684, -0.05698511749505997, 0.012387268245220184, 0.051757797598838806, 0.018599309027194977, -0.06383216381072998, 0.009681579656898975, -0.03765876963734627, 0.01370330061763525, -0.034603364765644073, 0.026320643723011017, -0.04781890660524368, 0.055880751460790634, 0.034327272325754166, -0.004145961720496416, -0.009433098137378693, -0.02970735728740692, -0.03905762732028961 ]
715,002
pytorch_optimizer.optimizer.adafactor
get_options
Get `factored`.
@staticmethod def get_options(shape: Tuple[int, ...]) -> bool: r"""Get `factored`.""" return len(shape) >= 2
(shape: Tuple[int, ...]) -> bool
[ 0.021970009431242943, -0.08184300363063812, -0.012991633266210556, -0.019586065784096718, -0.0005177358980290592, -0.020718010142445564, 0.025983266532421112, -0.03140287846326828, 0.05573967844247818, -0.032260410487651825, 0.012957331724464893, 0.026412032544612885, -0.011799661442637444, -0.03154008463025093, -0.005552529823035002, -0.012511414475739002, 0.022656036540865898, 0.022450227290391922, 0.03140287846326828, 0.031025562435388565, 0.025811759755015373, 0.06308016926050186, -0.03742276504635811, -0.03512457385659218, 0.052583955228328705, 0.09913087636232376, 0.07114098221063614, 0.012322756461799145, 0.00019200712267775089, -0.0012541428441181779, -0.05731754004955292, 0.017176397144794464, 0.011550976894795895, 0.08801724016666412, -0.020203489810228348, -0.004969406872987747, 0.041950538754463196, 0.11635015159845352, 0.015752891078591347, 0.006225693505257368, -0.046855632215738297, -0.05158921703696251, 0.023599322885274887, -0.021781351417303085, -0.075737364590168, -0.03800588473677635, -0.001746152644045651, 0.004075428005307913, -0.09570074081420898, -0.023462116718292236, 0.06959742307662964, -0.04716434329748154, -0.012074071913957596, 0.011808237060904503, -0.06815676391124725, -0.01417502947151661, 0.01722784899175167, 0.07340487092733383, 0.02553734928369522, 0.017785245552659035, -0.02725241519510746, 0.04466034471988678, 0.03838320076465607, -0.04884510859847069, -0.031488630920648575, -0.05604839324951172, -0.05309847742319107, 0.015092589892446995, 0.0018265463877469301, 0.03618791326880455, -0.023633623495697975, 0.04761026054620743, -0.004386283922940493, 0.004141887184232473, -0.029499152675271034, -0.056391406804323196, 0.004514914005994797, -0.014638097025454044, 0.057969268411397934, -0.06239413842558861, -0.04973694309592247, 0.0391378290951252, 0.030905509367585182, -0.013506153598427773, 0.010290401987731457, -0.032551974058151245, 0.03728555887937546, 0.04706143960356712, 0.04143602028489113, -0.050594478845596313, -0.042705170810222626, 0.02371937781572342, 0.017030615359544754, 0.017433656379580498, -0.054744940251111984, 0.0587581992149353, 0.022896144539117813, -0.056871622800827026, -0.009733005426824093, -0.07189561426639557, -0.037937283515930176, -0.022707488387823105, 0.019037244841456413, -0.01662757433950901, 0.03251767158508301, -0.025348691269755363, -0.00704463804140687, -0.017905300483107567, -0.04092150181531906, -0.030442440882325172, -0.03495306521654129, -0.025297239422798157, -0.0007455181912519038, 0.009107005782425404, 0.008266623131930828, -0.025520198047161102, -0.008348088711500168, -0.02476556785404682, -0.06187961995601654, -0.022707488387823105, -0.05052587389945984, 0.0036295107565820217, -0.0061528030782938, -0.004073284100741148, 0.05292696878314018, 0.028109949082136154, 0.014029248617589474, 0.08314645290374756, -0.01292303018271923, -0.026566388085484505, 0.02972211316227913, 0.008849745616316795, -0.03536468371748924, 0.0019337381236255169, -0.019054394215345383, 0.02401093952357769, 0.013531879521906376, -0.02399378828704357, 0.0097844572737813, 0.01739078015089035, 0.003888914594426751, -0.0077135139144957066, -0.03373536840081215, -0.014929658733308315, -0.06356038898229599, 0.037491366267204285, 0.009364265948534012, -0.06500104069709778, 0.024988526478409767, 0.07086656987667084, 0.03666813299059868, 0.026737894862890244, 0.007168980315327644, -0.009098431095480919, 0.0006769155152142048, -0.03869191184639931, 0.029842166230082512, -0.08307784795761108, 0.013034509494900703, -0.007559157907962799, 0.012339907698333263, -0.01739078015089035, -0.031797342002391815, 0.024422554299235344, -0.01086494978517294, -0.002551162149757147, 0.0181625597178936, -0.07409089803695679, -0.0012209133710712194, 0.05937562137842178, 0.054436229169368744, -0.0046564070507884026, -0.009981689974665642, 0.009021252393722534, 0.007439103443175554, 0.11497809737920761, -0.030408138409256935, -0.0062728580087423325, 0.005020858719944954, -0.025005677714943886, -0.002771977102383971, -0.029138989746570587, -0.051657818257808685, 0.006894569378346205, 0.04030407592654228, 0.047781769186258316, -0.00026945312856696546, -0.021455489099025726, 0.024834170937538147, 0.02891603112220764, -0.01630171202123165, 0.0041097295470535755, -0.00838239025324583, -0.0016550397267565131, 0.0015285535482689738, -0.04342549666762352, -0.019980531185865402, -0.010985004715621471, 0.01378913875669241, -0.03498736768960953, 0.004510626196861267, 0.013703386299312115, -0.0443173311650753, 0.051314808428287506, 0.02972211316227913, 0.035467587411403656, 0.021163927391171455, 0.013248893432319164, -0.004253366496413946, 0.025331540033221245, -0.01570143923163414, -0.03862331062555313, 0.009441444650292397, 0.06798525899648666, 0.04743875563144684, -0.014569494873285294, 0.031317126005887985, 0.05326998233795166, -0.08733121305704117, 0.05028576776385307, 0.07957911491394043, -0.045792289078235626, 0.09446589648723602, 0.0517607256770134, 0.04030407592654228, 0.004480612929910421, 0.011422346346080303, 0.022913295775651932, -0.0022531694266945124, -0.046409714967012405, -0.03128282353281975, -0.0646580308675766, 0.004952256102114916, 0.0483991913497448, -0.0069503095000982285, 0.011276565492153168, 0.023650774732232094, -0.011388045735657215, 0.028075648471713066, 0.010316128842532635, -0.010281827300786972, -0.0018479847349226475, 0.0037517091259360313, 0.003715264145284891, -0.03800588473677635, -0.04201914370059967, 0.013291769661009312, 0.022450227290391922, -0.0030035111121833324, -0.007670637220144272, -0.08657658845186234, -0.022261571139097214, -0.02219296805560589, -0.014415138401091099, -0.017973903566598892, -0.01169675774872303, -0.05831228196620941, -0.021352585405111313, 0.03954944759607315, -0.039034925401210785, 0.004536352586001158, 0.010796347633004189, 0.03539898246526718, 0.07271884381771088, -0.04438593611121178, -0.019620366394519806, 0.03368391841650009, -0.009964539669454098, -0.04208774492144585, -0.030065124854445457, 0.001968039432540536, 0.08232321590185165, -0.05882680043578148, -0.006757364142686129, 0.020752310752868652, 0.004690708592534065, 0.0072761718183755875, 0.046581219881772995, 0.0053038448095321655, 0.013866317458450794, 0.07443390786647797, -0.003462291555479169, -0.035947807133197784, 0.040955800563097, -0.04798757657408714, 0.018539875745773315, 0.010316128842532635, 0.009810183197259903, 0.006255707237869501, 0.015495630912482738, -0.009955964051187038, 0.03078545443713665, 0.04815908148884773, 0.015812918543815613, 0.05004565790295601, 0.012108373455703259, 0.07086656987667084, -0.0195689145475626, 0.014518043026328087, -0.041950538754463196, -0.017802396789193153, -0.01769949123263359, -0.002977785188704729, -0.031162768602371216, 0.02246737852692604, -0.011954016983509064, 0.02912183851003647, -0.07217001914978027, 0.047644563019275665, 0.02600041590631008, -0.028590168803930283, -0.00379029824398458, -0.003794585820287466, 0.0018265463877469301, 0.06153660640120506, -0.006813103798776865, -0.016215959563851357, -0.012142674997448921, 0.0055825430899858475, 0.05961573123931885, -0.03852040693163872, -0.036393724381923676, -0.056905925273895264, -0.02310195378959179, -0.06424640864133835, -0.06870558857917786, -0.0566658154129982, -0.05326998233795166, 0.0029863605741411448, 0.059958744794130325, -0.06575567275285721, -0.003207175526767969, 0.04356270283460617, 0.03817739337682724, 0.020580803975462914, -0.03769717365503311, 0.050731685012578964, 0.014878206886351109, 0.015178343281149864, -0.03076830320060253, 0.03721695393323898, -0.01831691712141037, -0.029602058231830597, 0.04438593611121178, 0.047644563019275665, 0.042705170810222626, 0.03136857599020004, -0.009132731705904007, 0.0625656470656395, 0.013806289993226528, -0.009141307324171066, -0.04229355230927467, -0.004424872808158398, 0.0012487831991165876, 0.057351842522621155, 0.04112730920314789, -0.05124620348215103, 0.008892622776329517, 0.036565229296684265, 0.04863930121064186, 0.1015319675207138, -0.040406979620456696, 0.06441792100667953, 0.038589008152484894, 0.012322756461799145, -0.015032562427222729, -0.014072124846279621, -0.011113634333014488, 0.0052352421917021275, -0.06476093083620071, -0.04044128209352493, -0.03539898246526718, 0.002025922993198037, -0.06887709349393845, 0.031951699405908585, 0.035038821399211884, -0.04754165932536125, -0.00027106099878437817, -0.02016918919980526, -0.01769949123263359, -0.03666813299059868, 0.028127100318670273, 0.029602058231830597, 0.03618791326880455, -0.06880848854780197, -0.02740677259862423, -0.0790988951921463, 0.03490161523222923, -0.017459383234381676, 0.022913295775651932, -0.021215379238128662, -0.011705332435667515, 0.014432289637625217, -0.019363107159733772, -0.037491366267204285, 0.0006479737930931151, -0.013514728285372257, 0.014929658733308315, -0.050903189927339554, 0.026206225156784058, 0.018539875745773315, -0.04421442747116089, -0.001455663121305406, 0.017973903566598892, -0.03769717365503311, 0.016078753396868706, -0.007096089888364077, 0.08493012189865112, -0.006744501180946827, 0.019466010853648186, 0.004300530534237623, 0.001080492278560996, -0.008052240125834942, -0.010230375453829765, -0.04603239893913269, 0.023599322885274887, -0.013806289993226528, 0.07710941880941391, 0.024525459855794907, 0.026737894862890244, 0.07484553009271622, -0.02941340021789074, 0.033769670873880386, 0.07553155720233917, 0.011739633977413177, 0.02154124155640602, 0.016824807971715927, 0.019963379949331284, 0.03649662807583809, 0.0022231556940823793, -0.09439729154109955, 0.03313509747385979, 0.002510429359972477, -0.01470670010894537, 0.007893595844507217, -0.04157322645187378, -0.05193223059177399, -0.0006570850964635611, -0.013609057292342186, 0.011456647887825966, 0.06668180972337723, 0.02184995450079441, -0.050251465290784836, -0.011045032180845737, 0.006079912651330233, -0.026840800419449806, 0.0033486683387309313, -0.00040089694084599614, -0.0038631886709481478, -0.04757596179842949, 0.007241870742291212, 0.06990613043308258, -0.014320810325443745, -0.008909773081541061, 0.06482953578233719, -0.03289498761296272, -0.04126451537013054, -0.0009775882354006171, -0.036119312047958374, -0.042705170810222626, 0.028984634205698967, 0.003316510934382677, -0.05141771212220192, -0.0006474378169514239, 0.04915382340550423, -0.03742276504635811, 0.03742276504635811, 0.009570074267685413, -0.054607734084129333, -0.004364845808595419, 0.022981898859143257, -0.05954713001847267, 0.009158458560705185, -0.010015991516411304, 0.04788467288017273, 0.02634342946112156, -0.0022853268310427666, 0.07889308780431747, -0.007143254391849041, -0.03680533915758133, -0.026103321462869644, -0.0029327645897865295, -0.05601409077644348, -0.0190715454518795, -0.010359005071222782, -0.01739935576915741, -0.07505133748054504, 0.009055553935468197, -0.006881706416606903, -0.024079540744423866, 0.016593273729085922, -0.008039376698434353, 0.018848586827516556, -0.04483185335993767, 0.07923609763383865, -0.016576122492551804, 0.024371102452278137, -0.02214151620864868, 0.03694254532456398, 0.02632628008723259, 0.00776925403624773, 0.007237582933157682, 0.019002942368388176, -0.027664031833410263, 0.0363251194357872, -0.08746842294931412, -0.01553850807249546, -0.018985792994499207, -0.0698375329375267, -0.01470670010894537, -0.050422970205545425, -0.0195689145475626, 0.08767423033714294, 0.01631886325776577, 0.08904628455638885, 0.03361531347036362, -0.012048345990478992, 0.028367210179567337, 0.038143090903759, 0.0246112123131752, -0.012820126488804817, -0.030699700117111206, -0.02848726324737072, 0.012116949073970318, -0.0013999234652146697, 0.007138966582715511, 0.04428303241729736, -0.029807865619659424, 0.026892252266407013, -0.027749784290790558, 0.022433077916502953, -0.028144249692559242, 0.016421766951680183, 0.10091454535722733, -0.02649778686463833, 0.04013257101178169, -0.016987739130854607, 0.03882911801338196, 0.013943495228886604, 0.014295084401965141, 0.04383711516857147, 0.0015660705976188183, -0.00028727372409775853, -0.01392634492367506, -0.02526293694972992, 0.0698375329375267, 0.07217001914978027, 0.0015982281183823943, 0.06712772697210312, -0.05402461439371109, -0.003957517445087433, 0.05248105153441429, 0.02172989957034588, 0.022433077916502953, 0.05450483039021492, -0.00415260624140501, 0.025485897436738014, -0.01614735648036003, -0.008558184839785099, -0.03335805609822273, -0.032260410487651825, -0.058449484407901764, 0.014115002006292343, -0.01739935576915741, -0.03570769727230072, 0.032586272805929184, -0.019483162090182304, 0.04418012872338295, -0.0001169059396488592, -0.004446311388164759, 0.012502838857471943, -0.028590168803930283, 0.007031775079667568, -0.016867684200406075, 0.008403828367590904, -0.019328806549310684, 0.013977796770632267, 0.007610610220581293, -0.042842376977205276, 0.011362318880856037, -0.038108788430690765, -0.013103112578392029, 0.030562495812773705, -0.017159245908260345, 0.01662757433950901, 0.017956752330064774, -0.01587294600903988, -0.0396866500377655, -0.0011362319346517324, 0.017630890011787415, -0.006127077154815197, 0.02895033173263073, 0.04061278700828552, -0.05032006651163101, -0.027355318889021873, 0.017785245552659035, -0.01077919639647007, -0.039823856204748154, 0.01939740777015686, 0.024988526478409767, -0.05556817352771759, -0.004755023401230574, -0.023496419191360474, 0.04891371354460716, -0.023342063650488853, -0.0212496817111969, -0.010581963695585728, 0.027492525056004524, -0.012262729927897453, -0.05296127125620842, 0.0010397593723610044, -0.007554870564490557, 0.023805130273103714, -0.061056386679410934, -0.017596587538719177, -0.014921083115041256, -0.005436762701719999, 0.04891371354460716, 0.035158876329660416, -0.04143602028489113, -0.047370150685310364, 0.03298074007034302, 0.007198994047939777, -0.030065124854445457, -0.01910584792494774, -0.00022242276463657618, -0.009913087822496891, -0.08541034162044525, -0.07772684097290039, -0.06740213930606842, 0.03714835271239281, -0.016721904277801514, 0.059512827545404434, -0.08506732434034348, -0.03183164447546005, -0.007010336499661207, 0.005835515912622213, 0.044557441025972366, -0.0504915751516819, 0.04002966359257698, -0.059958744794130325, 0.025194335728883743, -0.016438918188214302, -0.01276867464184761, 0.022450227290391922, 0.005732611753046513, -0.01876283437013626, -0.010136046446859837, 0.05772915855050087, 0.007906459271907806, -0.0474044531583786, 0.05416181683540344, -0.009672977961599827, -0.015367001295089722, 0.04877650737762451, 0.012597167864441872, 0.010959278792142868, -0.007619185373187065, 0.011027880944311619, -0.05697452649474144, 0.007460541557520628, 0.011225113645195961, 0.02941340021789074, 0.0030313809402287006, -0.03001367300748825, -0.018985792994499207, -0.014415138401091099, -0.0636632889509201, 0.036393724381923676, -0.0028234291821718216, -0.01424363162368536, 0.038897719234228134, -0.018368368968367577, -0.004746448248624802, 0.01016177237033844, 0.020752310752868652, -0.010556237772107124, 0.01707349345088005, 0.02831575646996498, -0.01362620759755373, 0.03992675989866257, 0.004600667394697666, -0.047953274101018906, 0.012948756106197834, 0.055671077221632004, -0.0341469869017601, -0.029310496523976326, 0.019963379949331284, 0.043494101613759995, 0.0011072901543229818, -0.02972211316227913, -0.019122997298836708, 0.06486383825540543, 0.042739469558000565, 0.024731267243623734, 0.00481076305732131, -0.05313277617096901, 0.032877836376428604, 0.039789557456970215, 0.014269357547163963, 0.04544927552342415, -0.02586321160197258, -0.05419611930847168, 0.01078777201473713, -0.04112730920314789, 0.01355760544538498, -0.036428023129701614, -0.028675921261310577, 0.04315108805894852, -0.021781351417303085, -0.052858367562294006, 0.061811018735170364, 0.013394673354923725, -0.041195910423994064, -0.04236215725541115, -0.0347815603017807, -0.012194126844406128, 0.0035994970239698887, 0.008103691972792149, -0.0326034240424633, -0.004420585464686155, 0.05601409077644348, 0.010556237772107124, 0.000504604890011251, -0.0314200296998024, 0.021129626780748367, -0.006418638397008181, -0.06095348298549652, 0.04236215725541115, -0.031488630920648575, -0.02076946198940277, -0.019157299771904945, -0.022656036540865898, -0.00017190867220051587, -0.02214151620864868, -0.0014170741196721792, 0.045826591551303864, 0.001611091080121696, -0.03800588473677635, -0.013686235062777996, 0.018557025119662285, 0.02895033173263073, 0.005929844453930855, -0.0076277609914541245, 0.042567964643239975, 0.020512202754616737, 0.017159245908260345, 0.019122997298836708, -0.014655248261988163, -0.03536468371748924, 0.045346371829509735, 0.02154124155640602, 0.0553966648876667, -0.03821169584989548, 0.03989246115088463, -0.009767306968569756, 0.005925556644797325, -0.02479987032711506, -0.005792639218270779, -0.04551788046956062, -0.0458608940243721, 0.017493683844804764, 0.04709574207663536, 0.06407490372657776, 0.011087908409535885, -0.003380825975909829, -0.023462116718292236, -0.011893990449607372 ]
715,004
pytorch_optimizer.optimizer.adafactor
get_rms
Get RMS.
@staticmethod def get_rms(x: torch.Tensor) -> float: r"""Get RMS.""" return x.norm(2) / math.sqrt(x.numel())
(x: torch.Tensor) -> float
[ -0.044691696763038635, 0.008185227401554585, 0.05038423091173172, 0.04380776360630989, 0.0919998362660408, 0.015221341513097286, -0.022345848381519318, -0.004941190592944622, 0.08075620234012604, 0.04214596748352051, 0.03077857755124569, 0.004264981020241976, 0.033306628465652466, 0.03240501508116722, -0.025899263098835945, 0.03984773904085159, 0.013373919762670994, 0.01717483624815941, 0.01197730377316475, 0.02961178496479988, -0.0008817240595817566, 0.056677840650081635, -0.02457336150109768, 0.011349711567163467, -0.04423205181956291, 0.04451490938663483, 0.055511049926280975, -0.019481902942061424, -0.014956161379814148, -0.012649093754589558, -0.0658707544207573, 0.013868922367691994, 0.06265323609113693, 0.001673949765972793, -0.013541867025196552, -0.010845868848264217, 0.004463866353034973, 0.002972227754071355, -0.10529420524835587, -0.012330877594649792, -0.03344805911183357, 0.007031694054603577, 0.03556950017809868, 0.03281162679195404, -0.035304319113492966, -0.04734349995851517, -0.011093370616436005, 0.044691696763038635, -0.04617670550942421, 0.005175433121621609, 0.010147561319172382, -0.02941731922328472, -0.003288234118372202, -0.009687915444374084, -0.03484467417001724, 0.035498786717653275, 0.016529563814401627, 0.026500338688492775, 0.01681242324411869, 0.03615289553999901, 0.08655480295419693, 0.01838582567870617, -0.002961178543046117, -0.010403902269899845, 0.02519211545586586, -0.015353932045400143, -0.019641010090708733, 0.04274704307317734, 0.0090072862803936, 0.05678391456604004, -0.05558176338672638, 0.019694047048687935, 0.015150627121329308, 0.006435038521885872, 0.048863865435123444, 0.02040119469165802, -0.036135219037532806, -0.0289930310100317, 0.006077045574784279, -0.023353533819317818, 0.07241186499595642, 0.05140959471464157, 0.004397571086883545, 0.013939637690782547, -0.025563368573784828, -0.10083917528390884, 0.03226358816027641, -0.017873143777251244, 0.001986641436815262, 0.0045390003360807896, -0.06714361906051636, 0.03102608025074005, 0.007871431298553944, 0.0249976497143507, -0.054450325667858124, 0.04182775318622589, -0.05123280733823776, -0.04458562657237053, -0.02156798727810383, -0.06431502848863602, -0.0017269857926294208, 0.14142942428588867, 0.04914672300219536, 0.07149257510900497, 0.0259699784219265, 0.03139733150601387, 0.0008900109096430242, -0.046318136155605316, 0.027437306940555573, 0.03864558786153793, -0.07856404036283493, 0.050879236310720444, -0.030248217284679413, 0.01856261119246483, -0.03861023113131523, -0.07516973465681076, -0.019110649824142456, 0.031856976449489594, -0.04879315197467804, 0.020648695528507233, 0.04539884626865387, 0.025899263098835945, -0.03120286576449871, -0.019870834425091743, -0.013152936473488808, 0.0439845509827137, 0.05494533106684685, 0.0006237258203327656, 0.003944554831832647, 0.0055201672948896885, -0.014063388109207153, -0.016343938186764717, 0.029134461656212807, 0.014302050694823265, 0.043100617825984955, 0.016874298453330994, 0.08478693664073944, -0.013992673717439175, 0.05455639958381653, 0.008857017382979393, -0.012419271282851696, 0.10083917528390884, 0.024078359827399254, -0.016856620088219643, 0.007053792476654053, 0.05303603410720825, 0.025828547775745392, 0.06141572818160057, 0.037302009761333466, -0.04186310991644859, -0.00990889873355627, 0.015327413566410542, 0.099849171936512, -0.00958184339106083, -0.006342225708067417, 0.016043400391936302, 0.01188891101628542, -0.05957714468240738, 0.0061300816014409065, 0.0007867011590860784, -0.05522818863391876, 0.013152936473488808, -0.06339573860168457, -0.060461077839136124, 0.009519968181848526, -0.019835475832223892, -0.022045310586690903, -0.016874298453330994, -0.0420045368373394, 0.0190222579985857, 0.01050113420933485, -0.013762850314378738, -0.038079872727394104, -0.00008252351835835725, 0.026482658460736275, 0.023654071614146233, -0.04044881463050842, 0.06838112324476242, -0.03914059326052666, 0.03579932078719139, 0.017926178872585297, -0.041509535163640976, -0.011358550749719143, -0.0520460270345211, -0.018297431990504265, 0.01817368157207966, 0.0090072862803936, -0.003966653253883123, -0.012949631549417973, -0.018332788720726967, 0.02957642823457718, -0.013418116606771946, -0.027861597016453743, -0.044868484139442444, -0.01759028434753418, -0.004192056600004435, -0.001517051481641829, -0.026447301730513573, 0.035923074930906296, -0.038857731968164444, -0.03938809409737587, 0.03291769698262215, -0.012764004990458488, 0.036700934171676636, -0.042075254023075104, -0.05823356285691261, -0.005263826344162226, 0.08443336188793182, -0.07347258180379868, 0.0019280808046460152, -0.005772088188678026, 0.014169460162520409, -0.0013844614150002599, 0.03733736649155617, 0.028957674279808998, -0.06643646955490112, 0.0038097549695521593, -0.016856620088219643, 0.024325860664248466, 0.01259605772793293, 0.03560485690832138, -0.041898466646671295, -0.016467688605189323, 0.023689428344368935, 0.004729046486318111, -0.0068283891305327415, 0.0007226159796118736, -0.037302009761333466, -0.030654827132821083, -0.04104989022016525, 0.041085246950387955, 0.00929898489266634, -0.015115269459784031, -0.00740294624119997, -0.043489545583724976, -0.02317674644291401, -0.0026783195789903402, 0.0500660166144371, 0.011782838962972164, -0.04720206931233406, -0.0799783393740654, -0.02056030184030533, 0.0134976701810956, 0.05374317988753319, 0.011544176377356052, -0.0016231236513704062, 0.03079625591635704, 0.02697766199707985, -0.06933577358722687, 0.04154489189386368, -0.025740154087543488, -0.048262789845466614, 0.03136197477579117, 0.01298498921096325, 0.025262830778956413, -0.009047063067555428, -0.02338889054954052, 0.05671319738030434, 0.022451920434832573, -0.03217519447207451, 0.005741150584071875, -0.0320337638258934, 0.007610670756548643, 0.03652414679527283, -0.0580214187502861, -0.022345848381519318, -0.03042500466108322, 0.07509902119636536, 0.010996137745678425, 0.02160334400832653, 0.09108054637908936, 0.05742034688591957, -0.04154489189386368, -0.07439187914133072, 0.02162102237343788, -0.003736830549314618, 0.005462711211293936, 0.038292016834020615, 0.03178626298904419, 0.05632426589727402, 0.011712123639881611, -0.01842118240892887, -0.01369213592261076, 0.0180145725607872, -0.007433883845806122, -0.01622902601957321, 0.025651762261986732, -0.087898388504982, -0.016441170126199722, 0.014019191265106201, 0.00011049173917854205, -0.01318829320371151, -0.0018308480503037572, 0.019075293093919754, 0.03585235774517059, -0.04094381630420685, -0.029434997588396072, -0.021833166480064392, 0.03244037181138992, 0.03344805911183357, 0.018721720203757286, 0.04444419592618942, -0.009325502440333366, 0.021072983741760254, -0.002570037730038166, -0.0044285086914896965, -0.0027070476207882166, -0.03553414344787598, 0.026959983631968498, -0.0003858923737425357, -0.031927693635225296, 0.02162102237343788, -0.015513040125370026, 0.0016408022493124008, 0.018156001344323158, 0.040272027254104614, 0.02077244594693184, 0.010651403106749058, -0.00031131046125665307, 0.08577694743871689, 0.013108739629387856, -0.00609472393989563, 0.05116209387779236, 0.04960636794567108, -0.01678590476512909, -0.07135114073753357, -0.06265323609113693, -0.019128330051898956, -0.03097304329276085, -0.01715715602040291, -0.02821516990661621, -0.025722475722432137, 0.019870834425091743, 0.011066852137446404, -0.07644259929656982, -0.03673629090189934, 0.06332502514123917, 0.026146763935685158, 0.020666373893618584, 0.009422735311090946, 0.059471070766448975, -0.024113716557621956, -0.00021739248768426478, 0.031927693635225296, 0.008242683485150337, 0.00016780932492110878, 0.035887714475393295, -0.04561099037528038, 0.051480308175086975, 0.001625333447009325, -0.027225162833929062, -0.003396515967324376, -0.002122546313330531, 0.0095022888854146, 0.006585307419300079, 0.05321282148361206, -0.04660099372267723, -0.006328966468572617, -0.01660911738872528, -0.025916941463947296, 0.004019689280539751, 0.04879315197467804, -0.040660958737134933, 0.02317674644291401, -0.0015424645971506834, 0.004919092170894146, -0.03815058618783951, 0.017333943396806717, 0.03719593957066536, 0.018491897732019424, -0.05416746810078621, -0.012587218545377254, -0.06852255761623383, 0.03677165135741234, -0.02478550560772419, 0.033872347325086594, -0.03652414679527283, -0.03882237523794174, 0.025846226140856743, -0.027914632111787796, 0.014797053299844265, -0.03618825227022171, -0.0015513040125370026, -0.04218132421374321, 0.010996137745678425, 0.03544574975967407, -0.07432115823030472, -0.005011904984712601, -0.03383699059486389, -0.014982678927481174, 0.0003416957042645663, -0.005334541201591492, 0.03233430162072182, -0.03776165470480919, -0.10529420524835587, 0.02282317355275154, 0.013541867025196552, -0.002737985225394368, -0.013462313450872898, -0.021055305376648903, -0.023141389712691307, -0.00342303398065269, -0.033890023827552795, 0.0220099538564682, -0.06371395289897919, 0.013930798508226871, -0.01380704715847969, 0.01539812795817852, -0.003252876689657569, 0.011667927727103233, -0.02618212252855301, 0.0017391399014741182, 0.009944256395101547, 0.01698037050664425, 0.013656778261065483, -0.03256412595510483, 0.04451490938663483, -0.013603742234408855, -0.012304360046982765, 0.058693211525678635, 0.008631614036858082, 0.002459546085447073, 0.04935886710882187, 0.05837499350309372, 0.01676822640001774, -0.0018452119547873735, 0.00013542143278755248, -0.031485725194215775, -0.013338562101125717, 0.027048377320170403, -0.05621819570660591, -0.012304360046982765, -0.03583468124270439, -0.06286537647247314, -0.013152936473488808, -0.007027274463325739, -0.03914059326052666, 0.004459446296095848, -0.047272782772779465, 0.0023844116367399693, 0.06778004765510559, 0.06360787898302078, 0.02338889054954052, -0.036312002688646317, 0.0023689428344368935, -0.009254788048565388, -0.0016573760658502579, -0.004116922151297331, -0.04536348581314087, -0.03178626298904419, -0.03364252299070358, 0.011933107860386372, 0.06703754514455795, 0.017855465412139893, 0.02856874279677868, -0.03457949310541153, -0.07615974545478821, -0.051904596388339996, 0.003931296057999134, -0.027508022263646126, -0.01918136514723301, 0.05476854369044304, -0.06350181251764297, -0.03634736314415932, 0.0058560618199408054, -0.013418116606771946, 0.01856261119246483, 0.0020661954768002033, 0.008185227401554585, -0.03282930329442024, 0.0480152890086174, 0.008101253770291805, 0.03178626298904419, -0.0459999181330204, 0.03677165135741234, 0.011871231719851494, -0.043454188853502274, 0.015680987387895584, 0.028109097853302956, -0.02662408910691738, -0.044267408549785614, -0.040696315467357635, -0.015300896018743515, 0.02216906100511551, -0.025846226140856743, 0.037302009761333466, -0.08026119321584702, 0.008158709853887558, 0.06350181251764297, -0.043913833796978, -0.011084530502557755, 0.10331419110298157, 0.0023645232431590557, 0.0034385027829557657, -0.042499542236328125, -0.04942958429455757, 0.023636391386389732, 0.015035714954137802, 0.008817240595817566, 0.06024893373250961, 0.01188891101628542, -0.010607206262648106, -0.03263483941555023, 0.015424646437168121, 0.0013292155927047133, 0.07014898955821991, -0.0701136365532875, -0.016635635867714882, -0.016909655183553696, -0.05102066323161125, -0.02402532286942005, -0.009626040235161781, -0.026447301730513573, 0.008366433903574944, 0.009519968181848526, -0.06085000932216644, -0.042075254023075104, 0.07029042392969131, 0.04041345790028572, -0.008308978751301765, -0.04373705014586449, -0.0042406730353832245, -0.05717284232378006, -0.03162715584039688, 0.005617399699985981, 0.016724029555916786, -0.09086840599775314, -0.01050113420933485, 0.015937328338623047, 0.054909974336624146, 0.032086800783872604, -0.011994983069598675, -0.015654468908905983, 0.03060179203748703, -0.010280150920152664, 0.028091419488191605, -0.036488790065050125, -0.06530503928661346, 0.0029302409384399652, 0.01169444527477026, -0.02061333879828453, -0.048687078058719635, 0.03502146154642105, 0.019305115565657616, 0.014478837139904499, 0.0230176392942667, 0.0038208041805773973, 0.056076765060424805, 0.008454827591776848, 0.016653314232826233, -0.04617670550942421, -0.01923440210521221, -0.023707106709480286, -0.022557992488145828, 0.022522635757923126, 0.018739398568868637, -0.0639968141913414, -0.023742463439702988, 0.005334541201591492, -0.03162715584039688, 0.016343938186764717, -0.06332502514123917, 0.10677921026945114, 0.048474933952093124, -0.05183388292789459, 0.01842118240892887, 0.0008767519029788673, -0.01781126856803894, -0.025333546102046967, -0.002459546085447073, -0.01249882485717535, 0.012419271282851696, 0.04165096580982208, 0.031680189073085785, -0.0020905036944895983, 0.03479163721203804, 0.04624742269515991, -0.05773856118321419, -0.06523431837558746, -0.009679076261818409, 0.024149073287844658, -0.060496434569358826, 0.0399891696870327, -0.006837228778749704, 0.020295122638344765, 0.0030650408007204533, -0.051091380417346954, 0.021674059331417084, -0.0179792158305645, 0.05331889167428017, -0.003456181613728404, 0.01478821411728859, -0.029735535383224487, -0.02817981317639351, 0.05565247684717178, -0.041933823376894, -0.023247461766004562, -0.019941547885537148, 0.020896196365356445, 0.018651004880666733, -0.0024065100587904453, 0.024308182299137115, 0.03166251257061958, 0.018633326515555382, -0.03422591835260391, -0.0360114648938179, 0.0023225361946970224, 0.011535337194800377, 0.013338562101125717, -0.019552618265151978, -0.03339502215385437, -0.012039179913699627, -0.00022968469420447946, 0.017899660393595695, 0.04264096915721893, -0.01309990044683218, -0.0033744175452739, -0.03565789386630058, 0.061309654265642166, -0.00555110489949584, 0.0032108898740261793, 0.017546087503433228, -0.02080780453979969, -0.0540613979101181, 0.01859796978533268, 0.03231662139296532, -0.0021579035092145205, -0.06427967548370361, -0.011606051586568356, -0.13485296070575714, -0.007535536307841539, -0.01838582567870617, 0.04539884626865387, -0.06321895122528076, 0.008799562230706215, 0.035498786717653275, -0.02457336150109768, 0.007849332876503468, -0.05894071236252785, 0.021479593589901924, 0.02361871302127838, 0.08089762926101685, -0.01238391362130642, 0.005913517903536558, -0.015601432882249355, 0.017740553244948387, -0.02939964085817337, 0.021055305376648903, 0.03291769698262215, 0.035905394703149796, -0.048863865435123444, 0.04702528193593025, 0.0280030257999897, 0.03357180953025818, 0.0741090178489685, -0.011950786225497723, 0.011844714172184467, -0.029841607436537743, 0.02421978861093521, -0.061910729855298996, -0.022469598799943924, -0.03457949310541153, -0.03733736649155617, 0.0320337638258934, -0.011968464590609074, -0.07276543974876404, -0.029947679489850998, 0.019252080470323563, -0.023052996024489403, -0.03019518218934536, 0.009740951471030712, 0.03744344040751457, -0.01599920354783535, -0.03523360565304756, 0.03443806245923042, 0.02602301351726055, 0.01759028434753418, -0.051727812737226486, 0.02418443188071251, 0.0019192415056750178, -0.012861237861216068, 0.031149830669164658, -0.028462670743465424, 0.005445032846182585, -0.007858172059059143, -0.044090621173381805, -0.037903085350990295, 0.07516973465681076, -0.05137423798441887, -0.014682142063975334, -0.07863476127386093, -0.007783038076013327, -0.0021777921356260777, 0.012631415389478207, 0.023689428344368935, 0.014089906588196754, -0.027101412415504456, 0.05657177045941353, 0.05073780566453934, -0.010333186946809292, 0.01836814545094967, -0.00880840141326189, -0.026959983631968498, 0.01622902601957321, -0.034491099417209625, -0.030265895649790764, 0.012322038412094116, -0.021656380966305733, -0.0071466052904725075, 0.03357180953025818, 0.05324817821383476, 0.008605096489191055, 0.02561640366911888, 0.0011855763150379062, -0.004048417322337627, 0.0001626990851946175, 0.003215309465304017, 0.05480390042066574, -0.0010496714385226369, 0.0011220435844734311, 0.011473461985588074, -0.05522818863391876, 0.08690837770700455, 0.03496842458844185, -0.0249976497143507, 0.013754011131823063, 0.048086002469062805, 0.0269953403621912, 0.0001567601429997012, -0.04440883919596672, 0.023424247279763222, -0.023919250816106796, 0.020153691992163658, 0.01599920354783535, 0.034296635538339615, 0.03705450892448425, -0.014894286170601845, 0.0019048774847760797, -0.008481346070766449, -0.031149830669164658, 0.03097304329276085, 0.02337121218442917, 0.023247461766004562, -0.0339960977435112, 0.03263483941555023, 0.0012341926340013742, -0.01559259369969368, 0.03321823477745056, 0.029434997588396072, -0.04126203432679176, 0.08344335854053497, -0.024113716557621956, -0.015521879307925701, -0.020684052258729935, 0.03963559493422508, -0.010863547213375568, 0.0013402648037299514, -0.06679004430770874, -0.018279753625392914, -0.03882237523794174, 0.01438160426914692, -0.04653028026223183, 0.012543021701276302, 0.04921744018793106, -0.03562253713607788, 0.008370853960514069, 0.010845868848264217, 0.018633326515555382 ]
715,013
pytorch_optimizer.optimizer.adafactor
reset
null
def get_lr( self, lr: float, step: int, rms: float, relative_step: bool, warmup_init: bool, scale_parameter: bool ) -> float: r"""Get AdaFactor learning rate.""" relative_step_size: float = lr if relative_step: min_step: float = 1e-6 * step if warmup_init else 1e-2 relative_step_size = min(min_step, 1.0 / math.sqrt(step)) param_scale: float = 1.0 if scale_parameter else max(self.eps2, rms) return param_scale * relative_step_size
(self)
[ -0.028750242665410042, 0.010877972468733788, -0.0008788886480033398, 0.05212591961026192, 0.014439542777836323, 0.021387824788689613, -0.01094239391386509, -0.07483898103237152, -0.06401622295379639, 0.0385790690779686, -0.0005162320449016988, 0.012276832014322281, 0.05584394186735153, 0.09909814596176147, 0.009626361541450024, 0.044284943491220474, -0.0387631319463253, 0.04734034836292267, -0.027461819350719452, 0.01641819253563881, 0.026872826740145683, 0.08533042669296265, -0.02575005777180195, 0.022381750866770744, -0.023136397823691368, 0.04450581595301628, 0.04630960896611214, 0.023338865488767624, -0.07259344309568405, 0.0209276732057333, 0.01404381264001131, -0.010022091679275036, 0.007316403090953827, 0.0020614771638065577, -0.006635379046201706, -0.00499724131077528, -0.02512425184249878, -0.016611455008387566, -0.09571143239736557, -0.016556236892938614, 0.018820181488990784, 0.04343826696276665, 0.04325420781970024, -0.020854048430919647, -0.04608873650431633, -0.054629143327474594, -0.03653600066900253, -0.04340145364403725, 0.006534146144986153, -0.03438249230384827, 0.044321756809949875, 0.005038654897361994, 0.0037663369439542294, 0.002917358186095953, 0.002730997046455741, -0.01255292259156704, -0.028198061510920525, -0.03357262536883354, 0.02611817792057991, 0.01905025728046894, 0.04023561626672745, -0.07980861514806747, -0.017596179619431496, 0.00604638596996665, 0.03649918735027313, -0.027903564274311066, -0.047929342836141586, 0.015166581608355045, 0.000284287118120119, 0.02801400050520897, -0.028271684423089027, 0.0034465319477021694, 0.018175968900322914, -0.020762018859386444, -0.01836923323571682, 0.04649367183446884, -0.002885147463530302, -0.058163102716207504, 0.0019360858714208007, -0.019215911626815796, 0.005857723765075207, 0.10454633831977844, 0.022952338680624962, -0.016859937459230423, -0.03248666971921921, -0.08466780930757523, -0.04557336866855621, -0.04325420781970024, -0.0077673508785665035, -0.043659139424562454, -0.003455735044553876, -0.02324683591723442, 0.0290447399020195, 0.05499726161360741, -0.018249593675136566, -0.022142471745610237, -0.06081357225775719, 0.013887360692024231, -0.014706430025398731, -0.02641267515718937, 0.009134000167250633, 0.006939079146832228, 0.027774721384048462, 0.05426102131605148, 0.025602808222174644, 0.001303378026932478, -0.01080434862524271, -0.03824776038527489, 0.04030923917889595, 0.008278118446469307, -0.034916266798973083, 0.02221609652042389, -0.08533042669296265, 0.04896007850766182, -0.06854411214590073, 0.0484078973531723, 0.01709001325070858, -0.005554024130105972, -0.03294682130217552, 0.020798830315470695, 0.013243149034678936, 0.03567091375589371, 0.00017039971135091037, -0.006253453902900219, 0.00546659529209137, -0.011715447530150414, 0.029578514397144318, 0.031161434948444366, -0.03891037777066231, -0.013022276572883129, 0.03611265867948532, 0.008733668364584446, -0.034640178084373474, -0.028750242665410042, 0.03738267719745636, -0.004353029653429985, 0.06478928029537201, 0.051426488906145096, -0.013924173079431057, 0.028768649324774742, 0.0005838167271576822, 0.06659307330846786, 0.02228972129523754, -0.06258055567741394, 0.01064789667725563, 0.018268000334501266, 0.009930061176419258, 0.0709737092256546, -0.01905025728046894, -0.007334808818995953, -0.0067872293293476105, -0.032100141048431396, 0.04616235941648483, 0.01707160659134388, 0.04807658866047859, 0.013114307075738907, -0.026596734300255775, 0.005204309243708849, -0.02935764193534851, -0.018774166703224182, -0.019123880192637444, -0.00201891316100955, -0.028290091082453728, -0.08128109574317932, 0.01065710000693798, 0.008015832863748074, -0.038505446165800095, 0.011706245131790638, -0.014743242412805557, -0.007247380446642637, 0.011825883761048317, -0.0868029072880745, 0.019731279462575912, -0.0014241677708923817, -0.015304626896977425, 0.041450414806604385, -0.008687653578817844, 0.01838763989508152, 0.026707172393798828, 0.04988038167357445, 0.055917564779520035, 0.019105475395917892, 0.0058991373516619205, -0.077379010617733, -0.009157007560133934, 0.011034424416720867, -0.051095180213451385, 0.031032592058181763, -0.04704585298895836, 0.01965765655040741, 0.06865454465150833, 0.03701455518603325, -0.001821048092097044, -0.035928599536418915, -0.062359679490327835, -0.003331494051963091, 0.03298363462090492, 0.007215169724076986, 0.08319532126188278, 0.052972596138715744, 0.01706240326166153, 0.07553841173648834, -0.013648082502186298, 0.05245722830295563, -0.01274618599563837, -0.030517222359776497, -0.029412860050797462, 0.033719874918460846, -0.02024664916098118, 0.016013259068131447, -0.041119106113910675, 0.008071050979197025, 0.008926931768655777, 0.0023743798956274986, -0.018323218449950218, -0.05613843724131584, -0.0322473905980587, 0.030866937711834908, 0.0679183080792427, 0.044321756809949875, 0.023983076214790344, -0.08282720297574997, 0.03972024470567703, -0.02678079530596733, 0.023320458829402924, -0.014237076044082642, -0.0015829198528081179, -0.04965950921177864, -0.0869501605629921, 0.020449116826057434, -0.017927488312125206, -0.08187008649110794, 0.06335360556840897, 0.012433283030986786, 0.045352496206760406, 0.08201733976602554, 0.02096448466181755, 0.06261736899614334, -0.058494411408901215, -0.0013148818397894502, -0.0386526957154274, 0.04954907298088074, 0.007721336092799902, 0.03003866598010063, -0.05831035226583481, 0.023780610412359238, 0.0274250078946352, 0.0069298758171498775, -0.08128109574317932, -0.050837498158216476, -0.02381742186844349, 0.008071050979197025, 0.055917564779520035, 0.06007733196020126, -0.012672562152147293, 0.036296721547842026, 0.015019332990050316, 0.02547396719455719, 0.003911284729838371, -0.02287871390581131, 0.04892326891422272, 0.012175599113106728, -0.02510584518313408, 0.033388566225767136, -0.07148908078670502, 0.038542259484529495, -0.006198235787451267, 0.024884972721338272, 0.015580717474222183, 0.025584403425455093, 0.11205600202083588, 0.01836002990603447, -0.032652322202920914, -0.02164550870656967, 0.031419120728969574, 0.011071235872805119, 0.0007655764347873628, -0.02968895062804222, -0.010187746025621891, 0.014292294159531593, -0.0004172995686531067, -0.02606295980513096, 0.0014828370185568929, 0.03648078069090843, -0.05293578654527664, -0.021387824788689613, 0.027259353548288345, 0.02611817792057991, -0.025326717644929886, 0.0515737384557724, 0.02744341269135475, -0.03482423722743988, -0.0065433490090072155, 0.05735323578119278, 0.10079150646924973, 0.040750984102487564, 0.010307385586202145, -0.05577031522989273, 0.021516665816307068, 0.02004418335855007, -0.005360760726034641, -0.015497890301048756, 0.038505446165800095, 0.054629143327474594, -0.056248873472213745, -0.04056692495942116, -0.017927488312125206, -0.008775082416832447, 0.005043256562203169, 0.0017428223509341478, -0.055954378098249435, 0.05102155730128288, 0.03027794510126114, -0.019105475395917892, -0.05311984568834305, -0.047598034143447876, -0.02098289132118225, -0.005986566189676523, 0.02865821309387684, 0.021074920892715454, -0.046530481427907944, 0.03125346451997757, 0.010482242330908775, -0.04988038167357445, 0.029431266710162163, -0.05547581985592842, 0.009087984450161457, 0.04288608580827713, 0.030057070776820183, -0.022087253630161285, -0.027314571663737297, -0.06368491798639297, 0.0021362516563385725, -0.01404381264001131, -0.02287871390581131, -0.024424821138381958, 0.015028535388410091, 0.02937604859471321, 0.005880731623619795, 0.007537275552749634, 0.05772135779261589, -0.0009018962155096233, -0.008752074092626572, 0.01769741252064705, 0.04340145364403725, 0.009681579656898975, 0.05742686241865158, 0.016519425436854362, 0.013160321861505508, -0.04991719499230385, -0.04421132057905197, -0.07892511785030365, -0.04645685851573944, 0.032339420169591904, -0.021774351596832275, 0.028437340632081032, -0.05731642618775368, -0.002970275469124317, 0.03686730936169624, -0.04583105072379112, -0.01436591800302267, 0.023688580840826035, -0.03681208938360214, 0.043364644050598145, 0.037842828780412674, 0.0027862151619046926, -0.07826250046491623, -0.04053011164069176, 0.03773239254951477, -0.008637037128210068, -0.012286035344004631, -0.027314571663737297, 0.014421136118471622, -0.023596549406647682, -0.011117251589894295, 0.012976261787116528, 0.03002025932073593, -0.033020444214344025, 0.048849642276763916, 0.023762203752994537, 0.0030531026422977448, 0.026357457041740417, 0.0007811065297573805, 0.033388566225767136, 0.05507088825106621, -0.03644397109746933, -0.03686730936169624, -0.026559922844171524, -0.0038100513629615307, -0.02703848108649254, 0.0012320546666160226, 0.04807658866047859, -0.019142286852002144, -0.030756501480937004, -0.07318243384361267, -0.005922145210206509, 0.011651027016341686, 0.00008462466939818114, -0.03200811147689819, -0.007371621206402779, 0.003846863517537713, 0.009571143426001072, 0.019584031775593758, -0.015295423567295074, 0.009041969664394855, 0.005954355467110872, 0.038873568177223206, 0.012617344036698341, -0.043953634798526764, 0.012681765481829643, -0.0021972216200083494, 0.007583290804177523, -0.032376233488321304, 0.01864532381296158, -0.02611817792057991, -0.005540219601243734, 0.024866566061973572, -0.03576294705271721, -0.01193631999194622, 0.04413769766688347, 0.0034396296832710505, -0.004721150733530521, -0.02994663454592228, 0.044947560876607895, 0.06004051864147186, 0.027811534702777863, 0.011890305206179619, 0.017274074256420135, -0.054923638701438904, -0.012166395783424377, 0.023044368252158165, -0.009976076893508434, 0.011347326450049877, -0.03419843316078186, -0.007279590703547001, 0.012286035344004631, -0.027829939499497414, 0.03515554592013359, -0.02131420001387596, -0.08282720297574997, 0.07251981645822525, -0.06320635974407196, 0.004474969580769539, 0.01739371195435524, -0.037511520087718964, -0.04380638897418976, -0.003849164117127657, -0.02026505582034588, -0.04376957565546036, -0.032652322202920914, -0.01609608717262745, -0.01609608717262745, 0.03905762732028961, 0.02033868059515953, 0.023688580840826035, 0.0005274482537060976, -0.00032153059146367013, -0.03129027783870697, 0.03136390075087547, -0.024240761995315552, 0.06199156120419502, 0.021185357123613358, 0.028106030076742172, 0.03158477321267128, 0.024111919105052948, 0.05186823382973671, 0.05536538362503052, 0.02582368068397045, -0.03574454039335251, -0.01452236995100975, -0.009230631403625011, 0.026026148349046707, 0.04295970872044563, -0.044358570128679276, 0.027277758345007896, 0.0072059668600559235, -0.03353581577539444, -0.0030738094355911016, 0.004145961720496416, -0.007771952543407679, -0.008986751548945904, -0.07509666681289673, 0.02355973795056343, 0.011862696148455143, 0.005185903050005436, 0.04049329832196236, -0.09549055993556976, 0.07701089233160019, -0.027793128043413162, 0.020136212930083275, -0.024866566061973572, 0.021461447700858116, -0.010031295008957386, 0.0644947811961174, -0.08569854497909546, -0.070863276720047, 0.09144122898578644, -0.026486298069357872, 0.051757797598838806, 0.03835819661617279, -0.003414321457967162, -0.06626176089048386, -0.018544090911746025, 0.04649367183446884, 0.027940375730395317, 0.0026504704728722572, -0.12405674159526825, -0.016611455008387566, -0.017274074256420135, 0.025878898799419403, 0.003570772707462311, 0.030425192788243294, -0.01402540598064661, -0.0011060882825404406, -0.015442672185599804, 0.004548593889921904, -0.009009758941829205, 0.04410088434815407, 0.01194552332162857, -0.031216653063893318, -0.03894719108939171, 0.038873568177223206, 0.002041920553892851, -0.05610162392258644, 0.004647526424378157, 0.03843182325363159, -0.04892326891422272, -0.015102160163223743, 0.019234316423535347, 0.0035960811655968428, 0.04745078459382057, -0.02897111512720585, 0.018884602934122086, 0.027222540229558945, 0.011236890219151974, 0.04634642228484154, -0.054923638701438904, -0.05422420799732208, -0.05437145754694939, -0.0482974611222744, 0.019786497578024864, -0.023081179708242416, 0.03583656996488571, -0.002544635673984885, -0.029449671506881714, -0.020191431045532227, -0.022308126091957092, 0.07038471847772598, 0.04704585298895836, 0.008305727504193783, 0.04053011164069176, 0.006405303720384836, -0.04354870319366455, 0.014292294159531593, 0.0017117621609941125, -0.008278118446469307, -0.0069804927334189415, 0.02932083047926426, 0.022657841444015503, -0.04056692495942116, -0.005259527359157801, -0.02838212065398693, 0.04480031505227089, 0.005402174312621355, -0.012948652729392052, -0.03668324649333954, -0.011724650859832764, 0.04119272902607918, -0.02834530919790268, -0.011853492818772793, -0.004424353130161762, 0.006193634122610092, -0.004808579105883837, 0.001814145827665925, -0.03313088044524193, -0.006810236722230911, 0.016289349645376205, 0.000018873386579798535, -0.025860494002699852, 0.0003218181955162436, 0.034916266798973083, -0.0024871169589459896, -0.029725762084126472, -0.03810051456093788, 0.017623787745833397, -0.009571143426001072, -0.025602808222174644, 0.021792758256196976, -0.08569854497909546, -0.036259908229112625, -0.058862533420324326, 0.02551077865064144, -0.04373276233673096, -0.0354684479534626, -0.00492821866646409, -0.01483527198433876, -0.008963744156062603, -0.013795331120491028, 0.0176882091909647, 0.06946441531181335, -0.04053011164069176, -0.010620287619531155, 0.0048499926924705505, 0.0153138292953372, 0.012930247001349926, -0.012101974338293076, -0.001416115090250969, -0.013344382867217064, -0.02615498937666416, -0.03246826305985451, 0.0025354328099638224, 0.008650841191411018, 0.029486484825611115, -0.01612369529902935, 0.032063331454992294, -0.070863276720047, -0.037272240966558456, -0.041045479476451874, 0.07528072595596313, -0.005830114707350731, -0.004613014869391918, -0.035302795469760895, 0.008466781117022038, 0.026320643723011017, -0.0209092665463686, 0.017228057608008385, -0.004516383167356253, -0.041082292795181274, 0.0032808776013553143, -0.10388372093439102, 0.0031773436348885298, 0.02841893397271633, 0.008498990908265114, -0.07833612710237503, 0.031014185398817062, 0.041744910180568695, 0.00628566462546587, 0.05260447785258293, 0.004320818930864334, -0.013013074174523354, 0.010427024215459824, 0.07914599031209946, -0.033406972885131836, -0.0322105772793293, 0.027277758345007896, -0.01971287466585636, -0.049769945442676544, -0.01402540598064661, 0.04962269589304924, 0.03828457370400429, -0.04730353504419327, -0.00022834999253973365, 0.034971486777067184, 0.024719318374991417, 0.007063319906592369, -0.039536185562610626, 0.017182042822241783, 0.04671454429626465, 0.010923988185822964, -0.047929342836141586, -0.07877787202596664, -0.025860494002699852, 0.010546663776040077, -0.029836198315024376, -0.024369603022933006, 0.006593965459614992, -0.028492558747529984, 0.03638875111937523, 0.003064606571570039, -0.062396492809057236, -0.04538930580019951, 0.00394809665158391, -0.021038109436631203, 0.03567091375589371, 0.0209092665463686, 0.050800684839487076, -0.021774351596832275, -0.10565070062875748, 0.09755203872919083, 0.0033130880910903215, -0.06081357225775719, 0.02260262332856655, -0.06994297355413437, 0.02865821309387684, 0.009792015887796879, -0.021737540140748024, 0.02227131463587284, 0.02672557719051838, 0.014881287701427937, 0.0354684479534626, -0.05028531700372696, 0.02519787661731243, -0.04229709133505821, 0.023117993026971817, 0.03521076589822769, -0.02228972129523754, -0.0306276585906744, -0.011154063045978546, 0.04491075128316879, -0.021203763782978058, 0.028142843395471573, 0.0017865367699414492, -0.010583476163446903, 0.020798830315470695, -0.011558996513485909, 0.035560477524995804, 0.027793128043413162, 0.01485367864370346, -0.04262840002775192, 0.01737530715763569, 0.01222161389887333, 0.0354684479534626, 0.0019452888518571854, -0.041450414806604385, 0.012976261787116528, -0.027498630806803703, 0.01080434862524271, 0.0033130880910903215, -0.05739004909992218, 0.03035156801342964, -0.027314571663737297, 0.011503778398036957, 0.0678078681230545, -0.021516665816307068, 0.006635379046201706, 0.01288423128426075, 0.016050070524215698, 0.0482974611222744, -0.016556236892938614, -0.006883861031383276, -0.0029219596181064844, 0.024075107648968697, -0.007689125370234251, -0.004654428455978632, -0.000412122841225937, 0.013298367150127888, 0.017881473526358604, 0.014135842211544514, 0.05120561644434929, -0.016924358904361725, 0.025289906188845634, 0.05319346860051155, -0.001156129757873714, -0.007509666495025158, 0.027627473697066307, 0.02293393202126026, -0.03283638507127762, -0.014154248870909214, 0.026596734300255775, -0.04649367183446884, 0.03683049604296684, -0.05698511749505997, 0.012387268245220184, 0.051757797598838806, 0.018599309027194977, -0.06383216381072998, 0.009681579656898975, -0.03765876963734627, 0.01370330061763525, -0.034603364765644073, 0.026320643723011017, -0.04781890660524368, 0.055880751460790634, 0.034327272325754166, -0.004145961720496416, -0.009433098137378693, -0.02970735728740692, -0.03905762732028961 ]
715,028
pytorch_optimizer.optimizer.shampoo_utils
AdaGradGraft
Graft using AdaGrad. Essentially an implementation of AdaGrad with momentum. :param var: torch.Tensor. variable. :param diagonal_eps: float. diagonal epsilon.
class AdaGradGraft(SGDGraft): r"""Graft using AdaGrad. Essentially an implementation of AdaGrad with momentum. :param var: torch.Tensor. variable. :param diagonal_eps: float. diagonal epsilon. """ def __init__(self, var: torch.Tensor, diagonal_eps: float): super().__init__(var) self.diagonal_eps = diagonal_eps self.statistics: torch.Tensor = torch.zeros_like(var) def add_statistics(self, grad: torch.Tensor, _): r"""Add the statistics.""" self.statistics.add_(grad.pow(2)) def precondition_gradient(self, grad: torch.Tensor) -> torch.Tensor: r"""Get preconditioned gradient.""" return grad / (torch.sqrt(self.statistics) + self.diagonal_eps)
(var: torch.Tensor, diagonal_eps: float)
[ -0.029328443109989166, -0.019199365749955177, 0.0006027374183759093, 0.010305541567504406, 0.044010311365127563, -0.0010643030982464552, -0.04888073727488518, -0.026275603100657463, 0.027387330308556557, -0.023787450045347214, -0.018758203834295273, 0.025605035945773125, -0.0036726726684719324, 0.04489263519644737, -0.07083295285701752, 0.009158520959317684, -0.018387626856565475, 0.08505601435899734, 0.034092992544174194, 0.0003565139486454427, -0.01441717054694891, -0.05639813467860222, -0.050645384937524796, 0.05241003260016441, -0.059680379927158356, 0.01361425593495369, 0.0375869944691658, -0.028604937717318535, -0.021016953513026237, -0.009352631866931915, 0.028446119278669357, -0.06575077027082443, 0.011029046960175037, 0.021334588527679443, 0.01469069067388773, -0.04302210733294487, 0.007407108321785927, 0.009167344309389591, -0.09218519181013107, 0.0039594280533492565, -0.003505031345412135, -0.004440294578671455, 0.012749578803777695, -0.0527629628777504, 0.01828174851834774, -0.026310894638299942, 0.022569842636585236, 0.035787053406238556, -0.05660989508032799, 0.006763011682778597, 0.031128382310271263, -0.07319758087396622, 0.028446119278669357, 0.021969862282276154, -0.009696738794445992, 0.05392763018608093, 0.06003331020474434, 0.008549717254936695, 0.013261326588690281, -0.02819906733930111, 0.05788043886423111, -0.0503983348608017, 0.023540398105978966, -0.018528800457715988, 0.012255477719008923, 0.005598344374448061, -0.04563378542661667, -0.023540398105978966, 0.007442401256412268, 0.008704124018549919, -0.03414592891931534, 0.0006799407419748604, 0.030157826840877533, -0.011108456179499626, 0.02976960502564907, 0.004998364485800266, -0.015714187175035477, -0.045280855149030685, 0.017999405041337013, -0.05936274304986, 0.03132249414920807, -0.02668147161602974, -0.034004759043455124, 0.03435768932104111, 0.03453415259718895, -0.06045682728290558, 0.004418236203491688, -0.016358282417058945, 0.041822146624326706, -0.05893922969698906, 0.034428272396326065, -0.010332011617720127, 0.011920194141566753, 0.008677654899656773, 0.048916030675172806, 0.03141072764992714, 0.005796867422759533, -0.04538673534989357, -0.01200842671096325, -0.013411321677267551, -0.0032690095249563456, 0.08392664045095444, 0.03149895742535591, 0.046551402658224106, 0.006754188798367977, -0.042280957102775574, -0.027122633531689644, -0.02735203690826893, 0.031481314450502396, -0.033969465643167496, -0.036916427314281464, -0.03241657465696335, -0.011284921318292618, 0.02228749915957451, -0.013949539512395859, -0.04556319862604141, 0.036881133913993835, 0.0027506444603204727, 0.013587785884737968, 0.006864479277282953, 0.07552691549062729, 0.023787450045347214, -0.0350988395512104, 0.03868107497692108, 0.030122533440589905, 0.03437533602118492, 0.02916962467133999, 0.041222166270017624, -0.00754828006029129, -0.05526876077055931, -0.01426717545837164, 0.0332283154129982, -0.03471061959862709, 0.022216912358999252, 0.0477866567671299, 0.004341032821685076, 0.07771507650613785, 0.0017734707798808813, -0.0002470506587997079, 0.021758103743195534, -0.008885000832378864, -0.02186398394405842, 0.0015043620951473713, -0.02668147161602974, 0.0017028849106281996, 0.0019378035794943571, -0.020081689581274986, 0.012714285403490067, -0.0036373797338455915, -0.017328839749097824, 0.015061266720294952, 0.004716020543128252, -0.0016234758077189326, -0.0006016345578245819, 0.023275701329112053, 0.0019058194011449814, -0.04619847238063812, -0.022728661075234413, 0.01788470335304737, 0.001995154656469822, -0.04789253696799278, -0.03670467063784599, -0.01728472299873829, 0.025569742545485497, 0.0038138446398079395, -0.022305145859718323, 0.02237573079764843, -0.03178130462765694, -0.0674448311328888, 0.019640527665615082, 0.005227768328040838, -0.06186854466795921, -0.014205412939190865, 0.05269237607717514, 0.0014216442359611392, 0.054527610540390015, 0.0013598814839497209, 0.04951601102948189, 0.00541305635124445, -0.07153881341218948, 0.022640427574515343, -0.0019841257017105818, -0.014778923243284225, -0.03952810540795326, 0.012281946837902069, -0.011999603360891342, -0.03197541460394859, -0.003498413832858205, 0.03698701411485672, 0.020064042881131172, -0.01576712541282177, -0.03208129107952118, 0.004548379220068455, -0.022269852459430695, 0.0054395259357988834, -0.0010367304785177112, -0.030281351879239082, -0.01595241390168667, 0.04453970491886139, 0.02419331856071949, 0.00554099353030324, -0.010958461090922356, 0.04757490009069443, 0.0012275329791009426, 0.012996629811823368, -0.007557103410363197, -0.032822445034980774, 0.008073262870311737, -0.062468525022268295, -0.04171627014875412, -0.06193913146853447, 0.030122533440589905, 0.041222166270017624, 0.039492812007665634, 0.00211095972917974, -0.10757291316986084, 0.09013819694519043, 0.031816594302654266, 0.054104093462228775, 0.007887974381446838, 0.017928820103406906, -0.0409398227930069, -0.017205314710736275, 0.001415026723407209, 0.053645286709070206, -0.019305244088172913, 0.02216397412121296, -0.028340240940451622, -0.017028849571943283, -0.07040943950414658, 0.00845707394182682, -0.04824546352028847, -0.024810945615172386, -0.016808267682790756, 0.0914793312549591, 0.0846325010061264, -0.03716347739100456, 0.016596511006355286, 0.021087538450956345, 0.013455437496304512, -0.03404005244374275, 0.003972663078457117, 0.0020911074243485928, 0.07905621081590652, 0.015528898686170578, -0.008465896360576153, 0.02301100455224514, 0.005651284009218216, -0.027687320485711098, 0.006401258986443281, -0.08710300177335739, -0.03698701411485672, -0.02064637653529644, 0.048527806997299194, -0.036422327160835266, 0.01925230585038662, -0.0059468625113368034, 0.05692753195762634, -0.003107985481619835, -0.05897452309727669, 0.0073321107774972916, -0.06388024240732193, -0.0423162505030632, 0.05608050152659416, -0.008999702520668507, 0.037057600915431976, 0.05657460168004036, 0.010464360006153584, 0.029822543263435364, -0.007486517541110516, 0.08286785334348679, 0.09514980018138885, -0.021934568881988525, -0.03444591909646988, 0.018422920256853104, 0.028640229254961014, -0.005620402749627829, 0.05138653889298439, 0.014399523846805096, -0.015061266720294952, 0.005779220722615719, -0.0335988886654377, -0.030263705179095268, 0.05555110424757004, -0.022852186113595963, 0.011470208875834942, -0.016023000702261925, 0.0008426192216575146, 0.028357885777950287, 0.018652325496077538, 0.02643442153930664, 0.020046396180987358, 0.10100843012332916, -0.005783632397651672, 0.11067869514226913, 0.033334191888570786, -0.007574749644845724, 0.08025617152452469, -0.031004857271909714, 0.014002478681504726, 0.11251392960548401, -0.00937027856707573, 0.020593436434864998, 0.00727034779265523, -0.0633508488535881, -0.03245186805725098, -0.009282045997679234, 0.024687418714165688, 0.03377535566687584, -0.0472925566136837, -0.012440765276551247, -0.011373153887689114, -0.01509656012058258, 0.06444492936134338, -0.020416973158717155, -0.07503281533718109, -0.009467334486544132, -0.07969148457050323, 0.023822741582989693, 0.04799841344356537, -0.04842193052172661, 0.035240013152360916, 0.05876276269555092, 0.037092890590429306, -0.0477866567671299, -0.050221871584653854, 0.032663628458976746, 0.02136988192796707, -0.024581540375947952, 0.002399920718744397, -0.07722097635269165, -0.022093387320637703, 0.016411222517490387, -0.0022830127272754908, -0.07475046813488007, 0.005483642220497131, 0.041151583194732666, -0.01739942468702793, -0.009387925267219543, -0.043092694133520126, 0.03875166177749634, 0.034728262573480606, 0.016746506094932556, 0.06342143565416336, 0.06515078991651535, -0.042704470455646515, -0.0007240569684654474, -0.03504589945077896, 0.03280479833483696, 0.020240508019924164, -0.0111702186986804, -0.00974967796355486, -0.029204918071627617, 0.04499851167201996, 0.07870328426361084, -0.01934053748846054, 0.024458015337586403, -0.04316328093409538, 0.01021730899810791, -0.04132804647088051, -0.030669575557112694, 0.0006683602696284652, -0.03068722039461136, 0.06462139636278152, -0.0033351839520037174, -0.02719321846961975, -0.06917418539524078, -0.04037513583898544, 0.048316050320863724, -0.005205710418522358, 0.0332283154129982, -0.05555110424757004, -0.03935164213180542, 0.014028947800397873, -0.03744582086801529, -0.050680678337812424, -0.027387330308556557, -0.00900411419570446, 0.0307401604950428, 0.01819351688027382, 0.031304847449064255, -0.027634380385279655, -0.0059953900054097176, 0.03213423117995262, -0.010155546478927135, -0.017964111641049385, 0.019640527665615082, 0.0005564154125750065, 0.01595241390168667, -0.021387528628110886, 0.007530633360147476, -0.03875166177749634, 0.041398633271455765, 0.027263805270195007, -0.09324397891759872, -0.01804352179169655, 0.021563993766903877, -0.0030550460796803236, -0.03412828594446182, -0.008232081308960915, 0.004102805629372597, -0.031057797372341156, 0.002871963893994689, 0.0027793198823928833, 0.01619064062833786, -0.0746798887848854, 0.03892812505364418, 0.030881332233548164, 0.013040745630860329, 0.06550371646881104, 0.0019389064982533455, 0.0007863710634410381, -0.009030584245920181, 0.10023198276758194, 0.03656349703669548, -0.039704568684101105, 0.006418905686587095, -0.029487261548638344, -0.043798550963401794, 0.053221769630908966, 0.024899177253246307, 0.0047645485028624535, 0.010270249098539352, 0.04690433293581009, -0.022181620821356773, -0.002393303206190467, -0.07065648585557938, 0.011320213787257671, -0.072421133518219, -0.0192875973880291, 0.007539456710219383, -0.007707098498940468, 0.02482859045267105, -0.02634618803858757, -0.007649747189134359, -0.019146425649523735, -0.02895786613225937, 0.029840189963579178, 0.01679944433271885, 0.011099632829427719, 0.05720987543463707, -0.03252245485782623, 0.044927928596735, -0.022234559059143066, -0.00886735413223505, -0.02946961484849453, 0.033334191888570786, -0.018758203834295273, 0.0005839880323037505, 0.01285545714199543, 0.0175494197756052, 0.022269852459430695, 0.04669257625937462, 0.07813859730958939, -0.045280855149030685, -0.018934668973088264, -0.03419886901974678, -0.03126955404877663, -0.013305442407727242, 0.03617527708411217, 0.0008845296106301248, 0.008796768262982368, -0.0830090194940567, 0.02519916743040085, -0.005130712874233723, 0.012784871272742748, 0.045951422303915024, -0.03575176000595093, -0.08230316638946533, -0.030087241902947426, 0.042704470455646515, -0.028340240940451622, 0.01979934610426426, -0.09183225780725479, 0.008752651512622833, -0.012634876184165478, -0.020611083135008812, -0.001991845900192857, -0.015873005613684654, -0.007199761923402548, 0.02292277291417122, -0.05756280571222305, 0.0010301129659637809, 0.06737424433231354, 0.0014503197744488716, 0.05075126513838768, -0.018811143934726715, 0.02465212717652321, 0.029451968148350716, 0.006035094615072012, -0.0024043323937803507, -0.03052840381860733, 0.021687518805265427, 0.018334688618779182, -0.00019190541934221983, -0.015193616040050983, 0.003643997246399522, -0.008315901271998882, 0.03871636837720871, -0.024669773876667023, 0.0027925546746701, -0.012317240238189697, -0.096067413687706, 0.0224639642983675, 0.03695172071456909, -0.03910459205508232, -0.02698146179318428, 0.03508119285106659, 0.004579260479658842, 0.0040189847350120544, -0.014408347196877003, 0.0053027658723294735, 0.02722851186990738, 0.015396550297737122, 0.018899375572800636, -0.004768960177898407, -0.01192901749163866, 0.038857538253068924, 0.03673996403813362, -0.05939803645014763, -0.04453970491886139, 0.05519817769527435, -0.02094636671245098, -0.0035116486251354218, -0.02207574062049389, 0.052162982523441315, 0.03444591909646988, 0.009555567055940628, 0.005443937610834837, 0.03520471975207329, 0.04108099639415741, 0.03294597193598747, 0.059715673327445984, 0.0638449490070343, 0.002008389448747039, 0.03416357561945915, 0.011179042048752308, -0.04708079621195793, -0.06462139636278152, -0.04930425435304642, 0.017655298113822937, 0.010182016529142857, -0.01858173869550228, -0.015299494378268719, -0.01861703209578991, 0.04005749896168709, 0.01494656503200531, -0.007310052402317524, -0.020293446257710457, -0.016517100855708122, -0.0425633005797863, 0.015811242163181305, -0.055833447724580765, 0.03019312024116516, 0.009132050909101963, 0.05996272340416908, -0.05272766947746277, -0.0048571922816336155, 0.043339744210243225, -0.004305739887058735, -0.019234659150242805, -0.08124437183141708, 0.057739268988370895, 0.013058392331004143, -0.03068722039461136, -0.002669029403477907, 0.03631644695997238, 0.002830053446814418, -0.02068166993558407, 0.017143551260232925, -0.019358184188604355, -0.04838663712143898, 0.016967086121439934, 0.04016337916254997, -0.054492317140102386, -0.00835119467228651, -0.02131694182753563, -0.05099831521511078, -0.002616090001538396, -0.0404457226395607, 0.025869732722640038, -0.06398612260818481, -0.021546347066760063, -0.03089897893369198, 0.0006258984212763608, 0.05555110424757004, -0.021211063489317894, 0.05551581084728241, 0.03444591909646988, -0.047645483165979385, -0.016728859394788742, 0.025746207684278488, 0.01361425593495369, -0.05953921005129814, -0.00783503521233797, -0.01600535400211811, -0.014099533669650555, 0.0105790626257658, 0.037128183990716934, -0.008893824182450771, -0.06349202245473862, 0.0029646079055964947, 0.014514226466417313, 0.0005834366311319172, -0.0018429538467898965, -0.008148260414600372, 0.021793397143483162, 0.009361455217003822, 0.009167344309389591, -0.1071493998169899, -0.03031664527952671, 0.010711411014199257, -0.015184792689979076, 0.008196787908673286, -0.029399028047919273, -0.05396292358636856, -0.03329889848828316, 0.015025974251329899, 0.03585764020681381, 0.0735505074262619, -0.007640923839062452, 0.011099632829427719, -0.023081589490175247, -0.005558639764785767, 0.040128085762262344, -0.02846376597881317, 0.04136333987116814, -0.086114801466465, -0.02546386420726776, -0.01976405270397663, 0.012590760365128517, 0.03825755789875984, -0.027422623708844185, -0.010764350183308125, -0.016446515917778015, -0.020328739657998085, 0.005029245745390654, -0.0007736876723356545, -0.021440468728542328, -0.05713928863406181, -0.040763359516859055, 0.022234559059143066, -0.004976306110620499, 0.026063844561576843, -0.00172604585532099, -0.028887281194329262, -0.02916962467133999, -0.04948071762919426, -0.0164288692176342, 0.0007676216773688793, -0.022569842636585236, 0.06839773803949356, -0.015264201909303665, 0.002324923174455762, 0.00621597096323967, 0.033122435212135315, 0.017364131286740303, 0.023028651252388954, 0.03186953440308571, 0.011540794745087624, 0.027934370562434196, -0.019746406003832817, -0.0041822148486971855, 0.021669872105121613, 0.016137702390551567, 0.010905521921813488, 0.000703653204254806, 0.018969960510730743, 0.05572757124900818, -0.013437791727483273, -0.05569227784872055, 0.013376028276979923, -0.04453970491886139, -0.005143947899341583, 0.023928621783852577, -0.03871636837720871, 0.05950391665101051, -0.006665956228971481, 0.026452066376805305, -0.028569644317030907, 0.01606711558997631, 0.04326915740966797, 0.01819351688027382, -0.020822841674089432, -0.009379101917147636, 0.001737074926495552, -0.008496778085827827, -0.022358084097504616, -0.012634876184165478, -0.0331047885119915, -0.040975116193294525, -0.06133915111422539, 0.028816694393754005, -0.003463120898231864, 0.05124536529183388, -0.05809219926595688, -0.0373399443924427, 0.014734807424247265, -0.0166759192943573, -0.07707980275154114, 0.04796312004327774, 0.032822445034980774, -0.026116784662008286, 0.062468525022268295, 0.01055259257555008, -0.00005993597733322531, -0.0041822148486971855, 0.025057995691895485, -0.019605234265327454, -0.007843858562409878, 0.06239793822169304, 0.017814116552472115, 0.0033793000038713217, 0.032363638281822205, 0.0648331493139267, -0.014117180369794369, 0.04365738108754158, -0.022993357852101326, -0.01388777606189251, 0.01622593402862549, -0.03268127143383026, 0.016658272594213486, 0.04602200910449028, 0.03141072764992714, 0.001536346273496747, -0.04919837415218353, -0.006167443469166756, -0.03592822328209877, -0.014028947800397873, -0.062256764620542526, 0.028304947540163994, 0.03156954422593117, 0.04002220556139946, -0.013649549335241318, -0.014099533669650555, 0.019111134111881256, 0.028304947540163994, 0.03501060605049133, 0.0023844800889492035, 0.054492317140102386, -0.012140775099396706, 0.013155447319149971, -0.008020322769880295, -0.03156954422593117, 0.01630534417927265, 0.010190839879214764, -0.04048101603984833, -0.0060571529902517796, -0.011452563107013702, -0.009767324663698673, 0.10319659113883972, 0.02364627830684185, 0.015140675939619541, 0.04125745967030525, 0.08505601435899734, -0.051527708768844604, 0.04503380507230759, -0.0657154768705368, -0.015378903597593307, -0.11413740366697311, -0.005267472937703133, -0.06811539828777313, 0.018634678795933723, 0.012096659280359745, -0.04588083550333977, 0.012670169584453106, -0.018899375572800636, 0.01402012538164854 ]
715,029
pytorch_optimizer.optimizer.shampoo_utils
__init__
null
def __init__(self, var: torch.Tensor, diagonal_eps: float): super().__init__(var) self.diagonal_eps = diagonal_eps self.statistics: torch.Tensor = torch.zeros_like(var)
(self, var: torch.Tensor, diagonal_eps: float)
[ -0.04159413278102875, 0.012615039944648743, 0.04602714627981186, -0.0007521836669184268, 0.005428710021078587, 0.02341185323894024, -0.05433904752135277, 0.020139042288064957, -0.02335990220308304, 0.019671497866511345, -0.018390079960227013, 0.08775981515645981, -0.009853065013885498, 0.010640963912010193, -0.04083221033215523, 0.036399196833372116, 0.024087194353342056, 0.03503119572997093, 0.015186534263193607, 0.017195243388414383, -0.013290381990373135, -0.014571799896657467, -0.027186840772628784, 0.05846036598086357, -0.05413125082850456, 0.00955002661794424, -0.0218533705919981, -0.034788765013217926, -0.003482772735878825, -0.014338027685880661, -0.06569864600896835, 0.018199598416686058, 0.01208688784390688, 0.06209682300686836, 0.04852071776986122, -0.0298189427703619, 0.01174055878072977, 0.01352415420114994, -0.10251343995332718, 0.07238280028104782, 0.016970129683613777, -0.04523058980703354, -0.017333775758743286, -0.017403041943907738, 0.001595278736203909, -0.0028507220558822155, 0.033212967216968536, -0.0017413863679394126, -0.01730780117213726, -0.03923909738659859, -0.0007716647232882679, -0.012952711433172226, 0.047481730580329895, 0.0007197153172455728, -0.06330897659063339, 0.06891950964927673, 0.08602816611528397, 0.02503960020840168, -0.04561155289411545, 0.026494182646274567, -0.02422572672367096, -0.0077317990362644196, -0.0012392090866342187, -0.023965978994965553, 0.012528457678854465, 0.002372354967519641, -0.050286997109651566, 0.012363951653242111, 0.023914029821753502, 0.04211362823843956, 0.0029676081612706184, 0.007645216770470142, 0.010658279992640018, 0.04003565385937691, 0.07314471900463104, -0.016390027478337288, -0.0476548932492733, -0.026355650275945663, 0.0025520131457597017, -0.055828262120485306, 0.0065369633957743645, -0.00312995002605021, -0.052295707166194916, 0.04640810936689377, -0.0005522326682694256, -0.056209225207567215, 0.021351194009184837, -0.02382744662463665, 0.0014729812974110246, 0.03146400675177574, -0.0675341933965683, 0.02578420750796795, 0.0012543610064312816, -0.006796710193157196, 0.02973235957324505, 0.03778451308608055, 0.020346838980913162, -0.0514991469681263, -0.0030195575673133135, -0.04478036239743233, 0.02062390185892582, 0.04048588126897812, 0.05697115138173103, 0.045057427138090134, -0.03484071418642998, -0.04277165234088898, -0.006472026463598013, -0.01155873667448759, 0.01772339642047882, -0.01669306680560112, -0.031602539122104645, 0.05091039091348648, -0.04301408305764198, 0.041940461844205856, -0.014441926963627338, -0.05835646763443947, -0.014364002272486687, -0.020866332575678825, 0.013394281268119812, 0.039931755512952805, 0.03802694380283356, 0.0396200567483902, -0.07023555785417557, 0.007753444369882345, -0.020900966599583626, 0.03743818402290344, 0.017584864050149918, -0.01229468546807766, -0.03941226005554199, -0.03387099504470825, 0.012623698450624943, -0.03148132190108299, -0.009411495178937912, 0.09357814490795135, 0.019706130027770996, -0.0555858314037323, 0.07425297796726227, 0.0035715196281671524, 0.02337721921503544, 0.02701367624104023, -0.0018701775697991252, 0.017281826585531235, 0.0038637348916381598, -0.00574473524466157, 0.03137742355465889, 0.05357712507247925, 0.0198100283741951, 0.013844508677721024, -0.008320558816194534, -0.07688507437705994, -0.03425195440649986, -0.00008455302304355428, -0.0028117599431425333, -0.0198273453861475, 0.012190787121653557, -0.007398457266390324, -0.0015184369403868914, -0.06026127561926842, 0.04526522383093834, -0.018580559641122818, -0.046304211020469666, 0.004082355182617903, -0.035152412950992584, -0.019602231681346893, -0.039516158401966095, 0.003445975249633193, 0.006935241632163525, -0.040659043937921524, -0.02976699359714985, 0.025645675137639046, -0.009835748933255672, -0.10251343995332718, 0.006134355440735817, 0.051014289259910583, -0.002571494085714221, 0.02107413113117218, 0.01229468546807766, 0.03510046377778053, -0.02734268829226494, 0.0032749753445386887, 0.035602640360593796, -0.020485371351242065, -0.01409559790045023, -0.010208052583038807, 0.011809824965894222, -0.010969976894557476, 0.017610838636755943, -0.008506710641086102, 0.0046451399102807045, 0.014450584538280964, -0.007394128013402224, -0.00043453488615341485, -0.030667448416352272, -0.005922229029238224, 0.04962897300720215, 0.006095393560826778, 0.03376709669828415, -0.043464310467243195, 0.009065166115760803, -0.004129975568503141, 0.00656726723536849, 0.009021875448524952, 0.01652855984866619, -0.0436028428375721, -0.010052204132080078, 0.011359596624970436, -0.04810512438416481, 0.08505844324827194, -0.049906034022569656, -0.015022028237581253, -0.01652855984866619, 0.011645318940281868, 0.05246886983513832, 0.018009116873145103, 0.007891976274549961, -0.10071252286434174, -0.009930988773703575, 0.004510937724262476, 0.011861774139106274, 0.0013203800190240145, 0.10029692947864532, -0.020520003512501717, -0.06116173416376114, 0.021680206060409546, 0.0017879243241623044, 0.024156460538506508, 0.0062945326790213585, -0.07033945620059967, -0.031654488295316696, -0.041109275072813034, 0.012208103202283382, 0.008069469593465328, -0.05846036598086357, -0.021922636777162552, 0.019654180854558945, 0.0955868512392044, -0.03210471570491791, 0.014017673209309578, -0.04055514559149742, -0.03144668787717819, -0.053888820111751556, -0.020468054339289665, 0.005502304993569851, 0.009039191529154778, 0.031619854271411896, 0.0060780770145356655, -0.0168922059237957, 0.05610532686114311, -0.04571545124053955, 0.02661539800465107, -0.03191423416137695, -0.06566401571035385, -0.021974585950374603, -0.0006645190878771245, 0.03265884146094322, -0.00584863405674696, -0.02100486494600773, -0.0036386209540069103, 0.03449438512325287, -0.05710968002676964, -0.024294991046190262, -0.058979857712984085, -0.009272963739931583, 0.05832183361053467, -0.017680104821920395, -0.004088848829269409, -0.030788663774728775, 0.020866332575678825, 0.0008577058324590325, -0.016069673001766205, 0.05250350385904312, 0.06583717465400696, -0.013446230441331863, -0.07027018815279007, 0.03896203264594078, 0.013030635192990303, -0.00949807744473219, 0.004008760210126638, -0.01910005323588848, 0.05759454146027565, 0.017281826585531235, -0.03816547617316246, -0.028814587742090225, 0.000028105425371904857, -0.00625557079911232, -0.0046711149625480175, -0.0036256336607038975, -0.014112913981080055, -0.024953017011284828, -0.03137742355465889, 0.012537116184830666, 0.06303191184997559, 0.08048690110445023, 0.03774987906217575, 0.04079757630825043, -0.042286790907382965, -0.03705722093582153, 0.07591535896062851, 0.003870228538289666, 0.02503960020840168, 0.0796557143330574, -0.03937762603163719, 0.014467901550233364, -0.001413455931469798, -0.0357065387070179, -0.017177926376461983, 0.0029892537277191877, 0.03844253718852997, 0.08256487548351288, -0.02737732231616974, 0.06400163471698761, 0.07203646749258041, 0.007671191357076168, 0.06898877024650574, 0.02460668794810772, 0.02306552417576313, 0.022078484296798706, -0.07598461955785751, -0.0179225355386734, 0.11200285702943802, -0.009627951309084892, 0.016632458195090294, 0.0076105836778879166, 0.021939953789114952, -0.04017418622970581, -0.05392345413565636, 0.03799230977892876, -0.030442334711551666, -0.036745525896549225, 0.006645190995186567, -0.03333418443799019, 0.0006715539493598044, 0.018113015219569206, -0.02422572672367096, -0.07307545840740204, 0.019186636433005333, 0.0035736842546612024, 0.04446866735816002, -0.021281927824020386, -0.022009219974279404, 0.03653772920370102, 0.0013604243285953999, -0.005679798312485218, 0.04086684435606003, 0.07626168429851532, -0.06857317686080933, -0.001698095235042274, -0.061854392290115356, 0.024502789601683617, 0.03380172699689865, -0.02659808099269867, 0.029576512053608894, 0.004839950241148472, 0.04048588126897812, 0.09655657410621643, -0.007225292269140482, -0.011913723312318325, -0.00595253286883235, -0.020849017426371574, -0.042321424931287766, 0.002658076351508498, 0.055412668734788895, -0.03428658843040466, 0.0356372706592083, 0.030459651723504066, -0.034702181816101074, 0.016104307025671005, -0.00604344392195344, 0.014649724587798119, 0.03305711969733238, -0.018926888704299927, -0.07695434242486954, -0.04699686914682388, 0.03896203264594078, 0.019983192905783653, -0.03484071418642998, -0.0872749537229538, 0.008688533678650856, 0.034754134714603424, -0.012415900826454163, 0.017065370455384254, -0.026684662327170372, 0.013229774311184883, 0.01012147031724453, -0.0555858314037323, -0.002406987827271223, -0.0014318546745926142, 0.018978839740157127, 0.03813084214925766, 0.029143599793314934, -0.00416460819542408, -0.01627747155725956, 0.02782754972577095, -0.004848608281463385, -0.006653849501162767, 0.01727316714823246, 0.02419109269976616, 0.001966500421985984, -0.004446000792086124, -0.026355650275945663, -0.014883496798574924, -0.04401843994855881, 0.015974434092640877, 0.09177723526954651, -0.014840205200016499, -0.046304211020469666, 0.01873640902340412, -0.013056609779596329, 0.024779852479696274, -0.0031970511190593243, 0.030442334711551666, -0.0006125697400420904, 0.020952915772795677, 0.031221576035022736, 0.03544679284095764, -0.0437067411839962, 0.04280628636479378, -0.02346380241215229, 0.018026433885097504, 0.007346507627516985, -0.00031548424158245325, 0.041074641048908234, 0.061369530856609344, 0.030805980786681175, -0.0017045888816937804, -0.00291998777538538, -0.030840612947940826, -0.015870533883571625, -0.016996104270219803, -0.01611296460032463, -0.06590644270181656, -0.005398406181484461, 0.026407599449157715, -0.038338638842105865, 0.02382744662463665, 0.006091064307838678, -0.019584914669394493, -0.021697523072361946, -0.03681479021906853, 0.04848608374595642, 0.024572055786848068, -0.022390181198716164, 0.047031503170728683, -0.014372660778462887, -0.03820010647177696, -0.00615167198702693, -0.0011883419938385487, -0.003166747512295842, -0.029282132163643837, -0.025264713913202286, 0.02701367624104023, -0.007000178564339876, 0.06694543361663818, 0.015073977410793304, 0.007259925361722708, -0.021281927824020386, -0.1072927787899971, -0.01868445985019207, 0.01550688873976469, -0.022788459435105324, -0.022026535123586655, 0.04883241280913353, -0.08166442066431046, -0.0476895272731781, -0.022026535123586655, -0.018216915428638458, 0.058529630303382874, -0.026355650275945663, -0.023619649931788445, -0.04453793168067932, 0.04682370647788048, 0.014329370111227036, 0.02180142141878605, -0.06143879517912865, 0.007974229753017426, -0.029299449175596237, 0.004523925017565489, 0.013255748897790909, -0.02826046012341976, -0.018926888704299927, -0.0059785074554383755, -0.043152615427970886, -0.0022749498020857573, 0.021610939875245094, 0.009108457714319229, 0.03468486666679382, -0.050252363085746765, 0.01910005323588848, 0.05049479380249977, 0.040693677961826324, -0.011212406679987907, 0.040762946009635925, -0.02623443491756916, 0.008052153512835503, 0.007485039532184601, 0.019602231681346893, 0.033126384019851685, 0.01702207885682583, 0.026805877685546875, -0.002147240797057748, -0.03103109449148178, -0.025178130716085434, -0.053784921765327454, 0.003093152539804578, -0.00865390058606863, 0.025507144629955292, -0.010623647831380367, 0.042356058955192566, -0.01748962327837944, -0.016225522384047508, 0.04807049036026001, -0.008476406335830688, -0.04571545124053955, 0.015247141942381859, 0.014857521280646324, 0.007740457076579332, -0.09309328347444534, 0.03222592920064926, 0.008562988601624966, -0.02064121887087822, -0.020156357437372208, 0.0716901421546936, -0.005870279390364885, -0.00803916621953249, -0.02947261370718479, 0.030407702550292015, -0.020364155992865562, -0.024779852479696274, 0.041178539395332336, 0.07972497493028641, -0.012848812155425549, -0.04024345055222511, -0.01568005420267582, 0.10064326226711273, -0.00706511503085494, 0.06396699696779251, -0.01631210371851921, -0.06050370633602142, -0.053854186087846756, -0.041143905371427536, -0.00208663335070014, -0.016416003927588463, 0.02734268829226494, -0.05281519889831543, 0.008610608987510204, 0.01913468725979328, -0.045923247933387756, 0.07840892672538757, -0.01607833243906498, -0.005411393474787474, -0.051810845732688904, -0.02781023271381855, -0.055793631821870804, -0.05073722451925278, 0.0072945584543049335, 0.05534340441226959, -0.02857215702533722, -0.04938654229044914, 0.03191423416137695, 0.05925692245364189, 0.01552420575171709, -0.08041763305664062, 0.07272912561893463, 0.03530826047062874, -0.04727393388748169, 0.007177672348916531, 0.012805521488189697, -0.012467849999666214, -0.027723651379346848, 0.0008387659909203649, -0.005658152978867292, -0.03927372768521309, -0.017082687467336655, 0.04104000702500343, -0.06074613705277443, 0.020883649587631226, 0.023152105510234833, 0.0006585665978491306, -0.009809774346649647, -0.01469301525503397, -0.003283633617684245, 0.00951539445668459, -0.03137742355465889, -0.007463393732905388, 0.01250248309224844, 0.032399095594882965, -0.04651200771331787, 0.026511497795581818, 0.023636966943740845, -0.013783900998532772, -0.0011558736441656947, 0.023290637880563736, -0.04606178030371666, -0.0025130510330200195, -0.016796965152025223, -0.016407344490289688, 0.00006967168883420527, -0.006896279752254486, 0.05212254077196121, 0.009731849655508995, -0.04900557920336723, 0.000697528594173491, -0.026026638224720955, 0.021195346489548683, 0.010208052583038807, -0.07342178374528885, -0.003177570179104805, 0.061819758266210556, -0.02545519545674324, -0.033178336918354034, 0.00625124154612422, 0.008731824345886707, 0.03262420743703842, 0.0258534736931324, 0.006034785881638527, -0.056555554270744324, -0.044330134987831116, -0.019758079200983047, 0.048312921077013016, 0.016398686915636063, -0.03127352520823479, 0.01571468636393547, -0.005000127479434013, -0.007584609091281891, -0.002305253641679883, -0.010424508713185787, 0.03733428567647934, -0.11200285702943802, -0.02779291570186615, -0.005181950516998768, 0.029922841116786003, -0.010511090978980064, -0.033593930304050446, 0.020918281748890877, -0.046269576996564865, -0.03151595592498779, -0.003980620764195919, 0.0005644083139486611, 0.06840001046657562, -0.009861723519861698, -0.015281775034964085, 0.030823295935988426, 0.03373246267437935, 0.011671293526887894, 0.0017965825973078609, -0.05357712507247925, -0.026147853583097458, -0.011783850379288197, -0.007558634504675865, -0.005004456732422113, -0.013654028065502644, 0.0672224909067154, -0.0218533705919981, 0.0336112454533577, 0.016996104270219803, 0.0008728577522560954, 0.020831700414419174, 0.01566273719072342, 0.07075504958629608, 0.011463495902717113, -0.012225420214235783, -0.004922203253954649, -0.007446077186614275, 0.010502432473003864, 0.06964679807424545, -0.008757798932492733, -0.001885329489596188, -0.02424304187297821, -0.012173471041023731, -0.02535129524767399, 0.007904963567852974, 0.016086990013718605, -0.05298836529254913, -0.029905524104833603, 0.05253813788294792, -0.03220861405134201, 0.023758182302117348, -0.021628256887197495, -0.012043597176671028, -0.007259925361722708, 0.04692760482430458, 0.02507423236966133, 0.0065369633957743645, -0.04671980440616608, -0.00935088749974966, 0.022061169147491455, -0.008610608987510204, 0.022095801308751106, -0.027567801997065544, -0.0356372706592083, -0.027689017355442047, -0.06507525593042374, 0.031585220247507095, 0.024572055786848068, 0.027273422107100487, -0.03490998223423958, -0.06299727410078049, -0.03885813429951668, 0.028901169076561928, -0.03420000523328781, 0.025628359988331795, 0.03612213209271431, -0.07840892672538757, 0.07259059697389603, -0.023134788498282433, -0.032814688980579376, -0.005463342647999525, -0.015922483056783676, 0.03854643926024437, 0.0012489495566114783, 0.0635860338807106, 0.057040415704250336, 0.002508722012862563, -0.07494563609361649, -0.017013421282172203, 0.06656447052955627, 0.017048053443431854, 0.003363722236827016, -0.020502686500549316, 0.0012370445765554905, 0.03899666666984558, -0.05849500000476837, 0.060953933745622635, 0.06109246611595154, 0.00302388658747077, -0.017195243388414383, 0.012476508505642414, -0.015281775034964085, 0.0064547099173069, -0.05070259049534798, 0.002100702840834856, 0.02734268829226494, 0.028398992493748665, -0.029663093388080597, -0.012199445627629757, 0.012069571763277054, 0.02112608030438423, 0.025524459779262543, 0.0008322722860611975, 0.0516376793384552, -0.008117089979350567, -0.02339453622698784, 0.051118187606334686, 0.01469301525503397, 0.027134891599416733, -0.02148972637951374, 0.00604344392195344, 0.02708294242620468, 0.028052663430571556, 0.00020685051276814193, 0.04852071776986122, 0.022511396557092667, -0.004909215960651636, 0.014537166804075241, 0.07300619035959244, -0.028052663430571556, 0.04651200771331787, -0.0634128749370575, -0.0318276509642601, -0.10563039779663086, -0.039654690772295, -0.03660699352622032, 0.018459344282746315, 0.041074641048908234, -0.05472001060843468, 0.06801904737949371, 0.07917085289955139, 0.00824696384370327 ]
715,030
pytorch_optimizer.optimizer.shampoo_utils
add_statistics
Add the statistics.
def add_statistics(self, grad: torch.Tensor, _): r"""Add the statistics.""" self.statistics.add_(grad.pow(2))
(self, grad: torch.Tensor, _)
[ -0.04624461010098457, -0.009990389458835125, 0.03062143176794052, 0.03962375968694687, 0.05171694606542587, 0.029135119169950485, -0.02955736592411995, 0.00023461159435100853, 0.015276935882866383, 0.012912346981465816, 0.000627038418315351, 0.009196563623845577, 0.06725567579269409, -0.017329061403870583, -0.042630165815353394, 0.04229236766695976, 0.0021788000594824553, 0.007596243172883987, -0.0049951947294175625, -0.02584158256649971, -0.057864878326654434, -0.06431683152914047, -0.0069755385629832745, 0.050298191606998444, -0.05661502480506897, 0.016400115564465523, 0.007777810096740723, -0.05347349867224693, 0.036752473562955856, -0.011535817757248878, -0.05593942850828171, -0.0787746012210846, -0.004864297807216644, -0.028273731470108032, 0.009829935617744923, 0.008875655010342598, -0.0004916551406495273, -0.019507862627506256, -0.060837503522634506, 0.08519277721643448, 0.04820384085178375, 0.020048338919878006, -0.015108036808669567, 0.03634711727499962, 0.032698892056941986, 0.011383808217942715, -0.04107629507780075, 0.02726033702492714, -0.036414675414562225, -0.02535177581012249, -0.007258444558829069, -0.004771403502672911, -0.005104979500174522, 0.010243739001452923, -0.008516743779182434, 0.021433312445878983, 0.07904484122991562, -0.03009784407913685, 0.022649386897683144, 0.03347582742571831, 0.07870704680681229, -0.03715783357620239, -0.011012230068445206, -0.02960803546011448, -0.004043025430291891, 0.004471607506275177, -0.05641234666109085, -0.011333138681948185, 0.01521782111376524, 0.03359405696392059, -0.003204863052815199, 0.05408153682947159, 0.031432148069143295, 0.014103086665272713, -0.02369656227529049, -0.0037326731253415346, -0.0014715346042066813, -0.039488643407821655, 0.01484624296426773, -0.051311589777469635, 0.05242632329463959, -0.027817703783512115, -0.0014557002577930689, 0.007765142247080803, 0.025571344420313835, -0.04715666547417641, -0.003149970667436719, -0.0712079182267189, -0.008884100243449211, -0.003519437974318862, -0.038813043385744095, -0.028594641014933586, 0.030351193621754646, -0.03786721080541611, 0.0443529412150383, -0.0024743739049881697, -0.06158066168427467, -0.029540477320551872, -0.025875363498926163, 0.0065701804123818874, 0.03516482189297676, 0.013106580823659897, 0.058304015547037125, 0.027294116094708443, 0.041549213230609894, -0.07945020496845245, 0.011274023912847042, -0.05070355162024498, -0.022548047825694084, 0.03513104096055031, 0.004860075656324625, -0.00060434261104092, 0.029135119169950485, -0.04722422733902931, 0.008487186394631863, -0.017210831865668297, 0.03513104096055031, -0.01734595187008381, -0.022007571533322334, 0.07472102344036102, 0.04762958362698555, 0.023662783205509186, 0.006988205946981907, 0.03205707669258118, -0.0325806625187397, 0.010784216225147247, 0.03386429697275162, -0.0001039126145769842, 0.03271578252315521, -0.0399615578353405, 0.013537273742258549, -0.01802154816687107, 0.020014559850096703, 0.0542166568338871, 0.08620616793632507, -0.0377996489405632, 0.06759347766637802, -0.008867209777235985, 0.04094117507338524, 0.035772860050201416, -0.013292370364069939, 0.001846279832534492, -0.024878857657313347, 0.008960104547441006, 0.008546301163733006, 0.024304600432515144, -0.060837503522634506, 0.05330459773540497, 0.021027954295277596, -0.07019452005624771, 0.03166860714554787, -0.005577897187322378, 0.0023329206742346287, -0.028645310550928116, -0.012456318363547325, -0.021331973373889923, 0.020487478002905846, 0.01639167033135891, 0.010024169459939003, -0.03725917264819145, -0.0030127400532364845, -0.004043025430291891, -0.02788526378571987, 0.012532323598861694, -0.033678509294986725, -0.02715899795293808, 0.03347582742571831, 0.033914968371391296, -0.06543156504631042, -0.00339487474411726, 0.025959812104701996, -0.10904134809970856, 0.062154918909072876, 0.09167850762605667, 0.028172392398118973, 0.011898951604962349, 0.02720966748893261, 0.049217239022254944, -0.019507862627506256, 0.008554746396839619, 0.0487443208694458, -0.0177850890904665, -0.04783226549625397, -0.06100640445947647, 0.0040725828148424625, -0.018967384472489357, 0.018258007243275642, -0.029523586854338646, 0.022531157359480858, -0.004366045352071524, 0.024405939504504204, -0.04864298179745674, -0.018241116777062416, -0.03533371910452843, 0.04256260767579079, 0.01196651067584753, -0.01964298076927662, -0.0018863934092223644, 0.016712579876184464, -0.007461123634129763, -0.04431916028261185, -0.02511531673371792, 0.017497960478067398, -0.025165986269712448, 0.03335759788751602, -0.018190447241067886, -0.030790330842137337, 0.051649387925863266, -0.006874199025332928, -0.034995920956134796, 0.005894583184272051, 0.018004659563302994, 0.021264413371682167, 0.05769598111510277, -0.0060719274915754795, -0.04641351103782654, -0.0003436043916735798, -0.015428945422172546, 0.006008590571582317, -0.040029119700193405, 0.024659289047122, -0.05168316513299942, -0.022919626906514168, -0.008495631627738476, 0.04367734119296074, -0.013402154669165611, 0.06830285489559174, -0.052629001438617706, -0.01753174141049385, 0.008178945630788803, 0.06374257057905197, 0.025098426267504692, -0.03399941697716713, -0.023747233673930168, 0.0018072217935696244, 0.05323703959584236, -0.049656376242637634, 0.018004659563302994, 0.03955620154738426, -0.003523660358041525, -0.0650937631726265, -0.01967676170170307, -0.012338089756667614, 0.071140356361866, -0.05235876515507698, -0.05225742235779762, -0.0035806638188660145, 0.04894699901342392, -0.03668491542339325, 0.048575419932603836, -0.031820617616176605, -0.03018229454755783, -0.0003354233340360224, -0.013334594666957855, -0.05475713312625885, -0.009373907931149006, -0.004564501810818911, 0.02101106569170952, 0.012211414985358715, -0.08776004612445831, -0.009433022700250149, -0.03350960835814476, -0.045737914741039276, 0.04357600212097168, -0.031634826213121414, 0.02476062811911106, 0.06907978653907776, 0.026753639802336693, -0.003447655588388443, 0.009737040847539902, -0.006844641640782356, 0.039927780628204346, -0.01967676170170307, -0.03043564222753048, 0.03394874557852745, 0.024338379502296448, 0.0509062297642231, 0.004784070886671543, 0.03178683668375015, 0.01084333099424839, 0.06708677858114243, -0.05070355162024498, -0.040772274136543274, 0.003772786818444729, -0.013089691288769245, 0.017430400475859642, 0.0010772604728117585, 0.04246126860380173, -0.015175596810877323, -0.0068995337933301926, 0.026162492111325264, -0.000422775890910998, 0.04918345808982849, 0.011324693448841572, 0.04445428028702736, 0.03668491542339325, 0.025672683492302895, 0.07107280194759369, -0.012363424524664879, 0.05887827277183533, 0.03877926617860794, -0.023578332737088203, -0.024051250889897346, -0.007271111942827702, -0.054588232189416885, -0.053507279604673386, 0.055466510355472565, -0.006046592723578215, 0.04158299043774605, -0.03725917264819145, -0.02364589273929596, 0.014778682962059975, 0.01701659895479679, 0.09688059985637665, -0.020690156146883965, -0.04006290063261986, -0.029422247782349586, -0.014778682962059975, -0.017312170937657356, 0.07803145051002502, -0.03134769946336746, -0.03266511112451553, 0.07641001790761948, -0.011738496832549572, -0.0071486602537333965, -0.0027741699013859034, 0.022345369681715965, -0.009382352232933044, 0.02232847921550274, -0.030756551772356033, -0.10485264658927917, -0.07647757232189178, 0.07249155640602112, 0.010530867613852024, -0.0651613250374794, 0.02852708101272583, 0.04148165136575699, 0.026736749336123466, -0.009103668853640556, -0.0005832301685586572, -0.01611298695206642, -0.01577518880367279, -0.02134886384010315, 0.06445194780826569, 0.07796388864517212, -0.05215608328580856, -0.009610367007553577, -0.04972393438220024, 0.0011115680681541562, 0.01585119403898716, -0.005066977348178625, -0.02862842008471489, -0.04918345808982849, 0.04029935970902443, 0.09289458394050598, 0.033881187438964844, -0.0004953498137183487, -0.01480401773005724, 0.017937099561095238, -0.018545135855674744, -0.025774024426937103, 0.06485730409622192, -0.006523733027279377, 0.047494467347860336, 0.019609201699495316, -0.007486458867788315, -0.004792515654116869, 0.031634826213121414, 0.0006434005335904658, -0.015192486345767975, 0.028881769627332687, -0.03166860714554787, -0.007988933473825455, 0.05891205370426178, -0.00021151990222278982, -0.05050087347626686, 0.006806639488786459, -0.004986749961972237, 0.004475829657167196, -0.032698892056941986, -0.01856202632188797, 0.009314793162047863, -0.025807803496718407, 0.053811296820640564, 0.01455911435186863, 0.03459056466817856, -0.01928829215466976, -0.06087128445506096, -0.00216191029176116, -0.008225392550230026, 0.010547757148742676, -0.0032998688984662294, 0.007638467941433191, 0.013875072821974754, -0.07803145051002502, 0.007195107638835907, 0.02741234563291073, -0.021872451528906822, -0.022007571533322334, 0.03342515975236893, -0.007119102869182825, -0.06772859394550323, -0.047595806419849396, 0.051953405141830444, -0.0281892828643322, -0.05026441439986229, -0.04127897322177887, 0.037732090801000595, 0.019406521692872047, 0.05215608328580856, -0.04317064583301544, -0.06195224076509476, -0.022581828758120537, 0.06820151209831238, 0.013866627588868141, 0.003605998819693923, -0.033627837896347046, -0.03526616096496582, -0.012726557441055775, 0.04404892027378082, 0.056344784796237946, -0.009221898391842842, 0.008449184708297253, 0.02906755916774273, -0.015209375880658627, -0.01641700603067875, -0.05330459773540497, -0.010336633771657944, -0.052831683307886124, 0.023527663201093674, -0.00889254454523325, 0.014694233424961567, 0.025047756731510162, -0.02964181639254093, 0.0038023439701646566, -0.05783109739422798, -0.05489225313067436, -0.005463890265673399, 0.0004940302460454404, 0.005903028417378664, 0.05134536698460579, 0.01797087863087654, 0.028223061934113503, -0.014888468198478222, -0.029270237311720848, -0.0243721604347229, 0.0010297575499862432, -0.06495864689350128, 0.022548047825694084, -0.044184040278196335, -0.0004335960256867111, 0.012515433132648468, 0.053270820528268814, 0.0487443208694458, 0.008626529015600681, -0.046818867325782776, -0.05026441439986229, -0.07701805233955383, 0.02334187552332878, 0.0421910285949707, -0.041549213230609894, 0.001953952945768833, -0.10654164105653763, 0.016915258020162582, -0.005100756883621216, -0.023764122277498245, 0.083233542740345, -0.020538147538900375, -0.014711123891174793, 0.005033197347074747, 0.012979906052350998, -0.01382440235465765, 0.009272567927837372, -0.06188467890024185, -0.01797087863087654, -0.005121869500726461, -0.05168316513299942, 0.014001746661961079, 0.02574024349451065, -0.004534944426268339, 0.04567035287618637, 0.023831682279706, 0.011873616836965084, 0.02646651118993759, 0.02589225396513939, 0.05837157741189003, -0.011806056834757328, -0.006806639488786459, 0.061817120760679245, 0.012760337442159653, 0.029084447771310806, -0.009247233159840107, 0.017379730939865112, -0.014077751897275448, -0.06451950967311859, 0.006979761179536581, 0.027581244707107544, -0.009703260846436024, 0.03638089448213577, 0.05715550109744072, -0.02589225396513939, -0.02295340597629547, -0.022210249677300453, -0.01004105992615223, 0.015530284494161606, 0.03161793574690819, -0.023831682279706, 0.04597437381744385, -0.03513104096055031, 0.0020246796775609255, -0.000029672824894078076, 0.010725101456046104, -0.038813043385744095, 0.06766103208065033, 0.04864298179745674, -0.06063482537865639, -0.039488643407821655, 0.057223062962293625, 0.016813918948173523, -0.013520384207367897, -0.03237798437476158, 0.04969015717506409, -0.012202969752252102, -0.022497378289699554, 0.01964298076927662, -0.00231391959823668, -0.04181944951415062, -0.006316831335425377, 0.014787128195166588, 0.04985905438661575, -0.00920500885695219, 0.02232847921550274, -0.015792079269886017, -0.01623966172337532, -0.004104251507669687, 0.02065637707710266, 0.03106056898832321, -0.065668024122715, -0.036853812634944916, -0.024152591824531555, 0.0011833503376692533, -0.04962259531021118, 0.043981362134218216, -0.06671519577503204, -0.01910250447690487, 0.054486893117427826, 0.0056496793404221535, -0.012456318363547325, 0.0041422536596655846, -0.04205590859055519, -0.05789865925908089, -0.011383808217942715, -0.09127315133810043, 0.01977810077369213, 0.009129003621637821, 0.0743832215666771, -0.053507279604673386, -0.024929527193307877, 0.009323237463831902, 0.02656785026192665, -0.024051250889897346, -0.0875573679804802, 0.013233255594968796, 0.04705532640218735, -0.0426977276802063, 0.01238031405955553, 0.011324693448841572, 0.0015285380650311708, -0.03857658430933952, -0.008229615166783333, -0.02823995240032673, 0.0069755385629832745, -0.0279359333217144, -0.02823995240032673, -0.02145020291209221, -0.0007188773597590625, 0.06590448319911957, 0.01792020909488201, 0.059317413717508316, -0.025267325341701508, -0.0822201520204544, -0.0010783161269500852, 0.018933605402708054, 0.03502970188856125, 0.01116423960775137, 0.05377751588821411, -0.04688642919063568, 0.04171811044216156, 0.035772860050201416, -0.000211387945455499, -0.009188118390738964, -0.050196852535009384, -0.0186126958578825, -0.08154454827308655, -0.020251018926501274, -0.06124286353588104, -0.05979033187031746, -0.028898660093545914, -0.011079790070652962, 0.05006173253059387, -0.05989167094230652, -0.005843913648277521, 0.018258007243275642, -0.020335467532277107, -0.033627837896347046, 0.02545311488211155, 0.0076469131745398045, 0.027294116094708443, -0.07100524008274078, -0.03965754061937332, -0.011797611601650715, 0.03529994189739227, -0.006498398259282112, 0.015454280190169811, 0.02070704661309719, -0.056006986647844315, -0.0067264121025800705, 0.009905939921736717, 0.04175189137458801, 0.06462084501981735, -0.020234128460288048, 0.053709957748651505, -0.004898077808320522, 0.05080489069223404, -0.008406959474086761, -0.008406959474086761, 0.05222364515066147, -0.05783109739422798, -0.021990681067109108, -0.03342515975236893, -0.07350494712591171, 0.002843840979039669, 0.0004375545831862837, -0.03472568467259407, 0.008284507319331169, -0.04664997011423111, -0.019406521692872047, 0.02232847921550274, 0.023899242281913757, -0.05881071463227272, 0.013782178051769733, 0.020740825682878494, 0.005476557649672031, 0.00560745457187295, -0.011122014373540878, 0.05989167094230652, -0.02393302135169506, -0.013419044204056263, 0.015496505424380302, -0.019457191228866577, 0.015251601114869118, 0.054047755897045135, 0.0015401499113067985, 0.05354105681180954, 0.017886430025100708, -0.006198601797223091, -0.012515433132648468, 0.03492836281657219, 0.018089108169078827, -0.023578332737088203, 0.020251018926501274, -0.027040768414735794, 0.03459056466817856, 0.0023476993665099144, 0.044960975646972656, 0.03310425207018852, -0.018055329099297523, 0.046278391033411026, 0.03580663725733757, -0.05924985185265541, -0.0031140795908868313, 0.031145019456744194, -0.02168666198849678, 0.013697728514671326, 0.021281303837895393, 0.006954425945878029, 0.005962143186479807, 0.01611298695206642, -0.0290168896317482, 0.010497087612748146, 0.004152810201048851, 0.023291204124689102, 0.015192486345767975, -0.01748107187449932, -0.040569595992565155, 0.03935352340340614, -0.018781594932079315, -0.012726557441055775, -0.01057309191673994, 0.025909142568707466, -0.05333837866783142, -0.056108325719833374, 0.021602213382720947, 0.017649970948696136, 0.04617705196142197, -0.024997087195515633, -0.007452678866684437, -0.03259755298495293, 0.04698776826262474, -0.06894467025995255, 0.006333721335977316, -0.00725422240793705, -0.018646474927663803, 0.02266627736389637, 0.018629586324095726, -0.013672392815351486, -0.0022294698283076286, -0.05222364515066147, 0.02960803546011448, -0.003010628977790475, -0.008626529015600681, 0.04019801691174507, -0.015969423577189445, 0.027294116094708443, -0.009973499923944473, 0.027125217020511627, 0.05114268884062767, -0.010049504227936268, -0.007748252712190151, 0.004775626119226217, 0.029861385002732277, -0.009373907931149006, 0.060297027230262756, 0.052392542362213135, -0.03018229454755783, -0.0069586485624313354, 0.07593709975481033, -0.023240534588694572, -0.05489225313067436, -0.0531357005238533, 0.0036630022805184126, -0.021754221990704536, 0.019609201699495316, 0.04884565994143486, -0.007473791483789682, 0.05523005127906799, -0.00811983086168766, 0.038475245237350464, 0.03746185079216957, 0.03018229454755783, 0.02886487916111946, 0.021129295229911804, -0.00015491226804442704, -0.038610365241765976, -0.027767034247517586, -0.04871053993701935, 0.014060861431062222, 0.01846068724989891, 0.015158706344664097, 0.015175596810877323, 0.09938031435012817, 0.0180722177028656, -0.00632527656853199, 0.04235992953181267, 0.06222248077392578, 0.0018621140625327826, 0.06222248077392578, -0.07039720565080643, -0.0063379439525306225, -0.07715316861867905, 0.009813046082854271, -0.012211414985358715, 0.024389049038290977, -0.012118520215153694, -0.0038023439701646566, 0.06428305059671402, -0.025030866265296936, 0.014018637128174305 ]
715,031
pytorch_optimizer.optimizer.shampoo_utils
precondition_gradient
Get preconditioned gradient.
def precondition_gradient(self, grad: torch.Tensor) -> torch.Tensor: r"""Get preconditioned gradient.""" return grad / (torch.sqrt(self.statistics) + self.diagonal_eps)
(self, grad: torch.Tensor) -> torch.Tensor
[ -0.03682847321033478, -0.01864732801914215, 0.003265363397076726, 0.019363252446055412, 0.014185287989675999, -0.005860588513314724, 0.0067388443276286125, -0.02322591282427311, 0.01043084915727377, -0.004770053084939718, 0.031950198113918304, -0.0011664985213428736, 0.023126015439629555, 0.006131141446530819, -0.04838315397500992, -0.004690968431532383, 0.011662904173135757, 0.022992821410298347, 0.0006311162724159658, -0.028770161792635918, -0.042222876101732254, -0.0823812261223793, 0.019662940874695778, 0.0519128255546093, -0.04531966522336006, -0.007055182941257954, 0.007221676874905825, -0.017265427857637405, 0.02618950605392456, -0.026372648775577545, -0.05194612592458725, 0.03586280718445778, 0.020961593836545944, 0.0014245642814785242, 0.026622390374541283, 0.024557864293456078, 0.03269942104816437, -0.053844157606363297, -0.046984605491161346, -0.01869727484881878, -0.0338149294257164, 0.015750331804156303, -0.01565876044332981, -0.017065634950995445, 0.04545285925269127, 0.006863715127110481, -0.004214379005134106, -0.024041732773184776, -0.03338204696774483, 0.04898253455758095, 0.02001257799565792, 0.01275344006717205, 0.010264354757964611, -0.039725467562675476, -0.02815413475036621, -0.027088573202490807, 0.044187504798173904, -0.04039144143462181, -0.014576549641788006, -0.01724877767264843, 0.04904913157224655, -0.04188988730311394, -0.0024204065557569265, -0.01295323297381401, 0.018597379326820374, 0.007554665207862854, -0.014185287989675999, -0.018281040713191032, 0.05710744112730026, 0.010672264732420444, -0.03096788376569748, 0.011196721345186234, -0.003215415170416236, -0.0299189705401659, 0.03726135566830635, -0.08278081566095352, 0.050880566239356995, -0.034830544143915176, -0.005306995939463377, -0.07758620381355286, 0.015209225937724113, 0.013952196575701237, -0.001368372468277812, 0.0011134286178275943, 0.033914826810359955, -0.06663089990615845, -0.020129123702645302, -0.030035516247153282, -0.003843930084258318, 0.006010433193296194, 0.012245633639395237, 0.001972953788936138, -0.005648308899253607, -0.005877237766981125, 0.08690986782312393, 0.03839351609349251, -0.005856426432728767, 0.018863769248127937, 0.020162422209978104, 0.005436028819531202, 0.02285962551832199, 0.11135118454694748, -0.011188396252691746, -0.007329897955060005, 0.051280152052640915, -0.0441209077835083, -0.009381936863064766, -0.04085762798786163, 0.007488067261874676, -0.06539884209632874, 0.007196702994406223, -0.048516351729631424, -0.010414198972284794, -0.025523528456687927, 0.02217699959874153, -0.007787756621837616, -0.04172339662909508, -0.04235607385635376, 0.007254975847899914, 0.027105221524834633, 0.04768387973308563, 0.008907428942620754, -0.03516353294253349, 0.030185360461473465, -0.023175964131951332, 0.01992933079600334, 0.029635930433869362, 0.04242267087101936, 0.015525564551353455, -0.043454933911561966, 0.015076030977070332, 0.014143664389848709, 0.011038552038371563, 0.006380882114171982, 0.044786885380744934, -0.030052166432142258, 0.04365472495555878, 0.014293509535491467, 0.024957450106739998, 0.008857480250298977, 0.03404802083969116, 0.023891888558864594, -0.016091644763946533, 0.03156726062297821, 0.0038772288244217634, 0.03646218404173851, -0.020795099437236786, 0.04112401604652405, 0.02442466840147972, 0.023359106853604317, 0.038260318338871, 0.00619773892685771, 0.012120762839913368, -0.07891815155744553, 0.016982387751340866, -0.029252994805574417, -0.004957358818501234, -0.04591904208064079, 0.026172855868935585, -0.0539107546210289, -0.04372132197022438, -0.04738419130444527, -0.033115655183792114, -0.001755471108481288, -0.004474526271224022, 0.000770034734159708, 0.023692095652222633, -0.043388333171606064, -0.035196829587221146, 0.02848712168633938, 0.03846011310815811, -0.07319075614213943, 0.007375684101134539, 0.05141334608197212, -0.06713037937879562, 0.03309900686144829, 0.011463111266493797, 0.054610028862953186, -0.05997113510966301, -0.000828827905934304, 0.0704602599143982, 0.03453085571527481, -0.0011196720879524946, -0.035396624356508255, 0.05630826950073242, 0.008403784595429897, -0.04288885369896889, 0.0018907474586740136, 0.03979206457734108, 0.006322609260678291, -0.03759434446692467, -0.02382528968155384, 0.04818336293101311, 0.0055317627266049385, -0.0016201946418732405, -0.03945907577872276, 0.04135710746049881, 0.03469735011458397, 0.06832913309335709, -0.007496391888707876, 0.015392369590699673, -0.01816449500620365, 0.02325921133160591, 0.0032133341301232576, -0.032949160784482956, -0.008857480250298977, -0.040091753005981445, 0.02519054152071476, -0.011887671425938606, 0.0147180687636137, -0.030035516247153282, 0.026855481788516045, -0.026455895975232124, 0.0005624375189654529, -0.031550612300634384, -0.03396477550268173, 0.05317818000912666, -0.003906365483999252, -0.010372575372457504, -0.0004037479229737073, 0.008865805342793465, -0.025640076026320457, 0.048716142773628235, -0.03859330713748932, 0.006872039753943682, -0.04272235929965973, -0.013943872414529324, -0.043787918984889984, -0.01515927817672491, -0.04731759428977966, 0.02325921133160591, -0.03806052729487419, 0.03211669251322746, -0.004416253417730331, 0.0676298588514328, 0.04528636485338211, -0.07285777479410172, 0.015650436282157898, 0.051047056913375854, 0.010397549718618393, -0.03364843502640724, -0.01043084915727377, 0.014826290309429169, 0.09317003935575485, 0.0343310609459877, 0.0024849227629601955, 0.01319464948028326, 0.034997038543224335, 0.016091644763946533, 0.025656724348664284, -0.08677666634321213, -0.054376937448978424, -0.02522384002804756, -0.0022643182892352343, 0.014851264655590057, 0.04531966522336006, 0.05943835526704788, 0.04365472495555878, 0.04032484441995621, -0.0051488266326487064, -0.01881382055580616, -0.07771939784288406, 0.03361513838171959, -0.003910527564585209, -0.029702529311180115, 0.01570870913565159, 0.037161458283662796, 0.06886191666126251, 0.0005541128339245915, 0.0191301591694355, -0.00754217803478241, 0.0647328644990921, -0.023891888558864594, -0.04844975098967552, 0.02923634462058544, -0.01465979591012001, 0.005602522753179073, 0.02755475603044033, 0.05624167248606682, 0.007038533687591553, 0.0372280552983284, -0.0617692731320858, -0.043454933911561966, 0.04142370447516441, -0.03376498073339462, -0.0036150007508695126, -0.003993774764239788, -0.04531966522336006, 0.016557827591896057, 0.006443317513912916, 0.013519312255084515, 0.006280986126512289, 0.0329158641397953, -0.048116765916347504, 0.058739081025123596, 0.012362179346382618, 0.04238937050104141, -0.03766094148159027, -0.007658723741769791, 0.02066190540790558, 0.07858516275882721, -0.011055201292037964, -0.0657651275396347, -0.008029173128306866, -0.0667307898402214, -0.015225876122713089, 0.016474580392241478, 0.032233238220214844, -0.0026493356563150883, -0.046984605491161346, -0.07225839048624039, -0.025640076026320457, 0.005356944166123867, 0.03389817848801613, -0.018281040713191032, -0.07945093512535095, -0.0011092661879956722, -0.044387299567461014, 0.040890924632549286, 0.04878273978829384, -0.006913662888109684, 0.06536554545164108, 0.048516351729631424, 0.039692167192697525, -0.07592125982046127, -0.02772125042974949, 0.004056210163980722, 0.0026618228293955326, -0.0210947897285223, 0.031434066593647, -0.037561044096946716, -0.008674337528645992, 0.01608332060277462, 0.020428813993930817, 0.0007487026741728187, 0.0017034417251124978, 0.09743228554725647, 0.027987640351057053, -0.034997038543224335, -0.06636450439691544, 0.03453085571527481, -0.025123944506049156, 0.009956341236829758, 0.02772125042974949, 0.004237272311002016, -0.034797243773937225, 0.00470345513895154, -0.013394441455602646, 0.016474580392241478, 0.028620317578315735, -0.0026534979697316885, -0.03469735011458397, -0.03766094148159027, 0.02305941842496395, 0.023325808346271515, 0.0013111402513459325, -0.036129195243120193, -0.036129195243120193, 0.032316483557224274, 0.0015567188384011388, 0.06070370972156525, 0.047950271517038345, -0.019796136766672134, 0.03659537807106972, 0.0036399748641997576, -0.00307805766351521, -0.04585244506597519, 0.014018794521689415, -0.022110402584075928, 0.02222694829106331, 0.011579656973481178, -0.029635930433869362, -0.01708228327333927, -0.01040587481111288, -0.03979206457734108, -0.03779413551092148, -0.034797243773937225, 0.0013433984713628888, 0.030418451875448227, 0.03208339214324951, -0.03473064675927162, -0.017515167593955994, -0.022326843813061714, 0.011388189159333706, -0.04718439653515816, 0.006730519700795412, -0.00011082256241934374, -0.04045804217457771, 0.02126128226518631, -0.022010505199432373, -0.007775269448757172, -0.02903655171394348, 0.008582765236496925, 0.008362160995602608, -0.02623945288360119, 0.003246632870286703, 0.0783853754401207, 0.02242674119770527, 0.018097897991538048, -0.005381918512284756, -0.03959227353334427, -0.03264947235584259, 0.011338241398334503, 0.003702410263940692, -0.011288292706012726, -0.0862438902258873, 0.0006103045307099819, 0.054376937448978424, 0.04864954575896263, 0.0922376736998558, 0.02715517021715641, -0.0013090589782223105, 0.025640076026320457, 0.055575694888830185, -0.0021998018492013216, -0.021227983757853508, 0.002495328662917018, -0.023991784080863, -0.00374611490406096, 0.03201679512858391, 0.03712816163897514, -0.04332173615694046, 0.0528784915804863, -0.0027096897829324007, -0.05860588699579239, 0.015017758123576641, -0.02382528968155384, 0.019030263647437096, -0.044220805168151855, 0.0064558046869933605, -0.005881400313228369, -0.011263318359851837, 0.010156133212149143, 0.011454787105321884, -0.026822183281183243, 0.008158206008374691, 0.01744857057929039, 0.094035804271698, -0.01305312942713499, 0.0157170332968235, 0.05217921733856201, -0.017065634950995445, 0.01591682620346546, -0.005694094579666853, -0.04571925103664398, -0.016124943271279335, -0.0031613046303391457, -0.05863918364048004, -0.022493338212370872, -0.013544286601245403, 0.0031883600167930126, 0.007771107368171215, 0.04022495076060295, 0.0030156224966049194, -0.016441281884908676, 0.012645218521356583, -0.05451013520359993, -0.043987713754177094, -0.004210216924548149, 0.03759434446692467, 0.01952974498271942, 0.07725321501493454, -0.0647328644990921, -0.026256103068590164, 0.007254975847899914, -0.006705545820295811, 0.032233238220214844, -0.005814802832901478, -0.02282632701098919, -0.0003777332603931427, 0.0391593873500824, -0.004349655471742153, -0.0018657733453437686, -0.035762909799814224, -0.021760765463113785, -0.009540106169879436, -0.06416678428649902, 0.06939470022916794, 0.06669749319553375, 0.01605002023279667, -0.039325881749391556, -0.025573477149009705, -0.016291437670588493, 0.04981500282883644, 0.010264354757964611, -0.029902322217822075, -0.07425632327795029, 0.05317818000912666, 0.024491267278790474, 0.028503771871328354, 0.01972953788936138, 0.003565052757039666, 0.053044985979795456, 0.005548412445932627, -0.020029228180646896, -0.014426704496145248, 0.03198349475860596, -0.04195648804306984, 0.05354446917772293, 0.04188988730311394, -0.0003972442646045238, -0.006189414300024509, -0.06619801372289658, 0.04768387973308563, -0.019762836396694183, -0.06952789425849915, -0.037161458283662796, 0.06789625436067581, 0.04621873423457146, -0.009265391156077385, 0.035996001213788986, 0.042655762284994125, -0.039126086980104446, 0.03839351609349251, -0.014143664389848709, -0.015475616790354252, -0.0499814972281456, 0.06423338502645493, 0.017182180657982826, -0.0265058446675539, -0.0510137602686882, 0.08577770739793777, -0.040291547775268555, -0.04368802532553673, -0.01889706775546074, 0.050880566239356995, 0.0005697216256521642, -0.0745893120765686, 0.0075255283154547215, 0.02325921133160591, -0.027421560138463974, -0.016358034685254097, 0.05780671536922455, 0.033831581473350525, -0.02772125042974949, 0.03076809085905552, -0.010772161185741425, -0.05274529755115509, -0.08118247240781784, -0.05207931995391846, 0.009698275476694107, -0.016116619110107422, 0.0725247859954834, 0.033348746597766876, -0.0055817109532654285, 0.0036607866641134024, 0.0061727650463581085, 0.030584946274757385, -0.10682255029678345, 0.006780467927455902, -0.040091753005981445, -0.017631713300943375, -0.06906171143054962, -0.03709486126899719, 0.026788882911205292, 0.0882418155670166, 0.02217699959874153, 0.025123944506049156, -0.006888689007610083, 0.038693204522132874, -0.042655762284994125, -0.12813377380371094, 0.09170489013195038, 0.013594234362244606, -0.0743895173072815, 0.005873075686395168, -0.0006030204240232706, -0.00609784247353673, -0.01670767180621624, -0.005440191365778446, -0.026455895975232124, -0.00754217803478241, 0.026822183281183243, 0.056574657559394836, -0.006797117181122303, -0.019163459539413452, 0.056175075471401215, -0.03786073252558708, -0.006077030673623085, -0.02583986707031727, 0.024691060185432434, -0.023375757038593292, 0.004243515897542238, -0.02222694829106331, -0.025623425841331482, 0.03031855635344982, -0.04685141146183014, 0.06060381233692169, -0.00327368825674057, -0.05411054939031601, -0.00630596000701189, 0.005777341779321432, -0.015275823883712292, -0.06340090930461884, 0.002428731182590127, -0.04388781636953354, -0.005860588513314724, -0.02695537731051445, 0.034830544143915176, 0.027621353045105934, -0.05404394865036011, -0.010863733477890491, 0.05451013520359993, 0.021394478157162666, -0.016124943271279335, -0.016874166205525398, -0.016740970313549042, -0.012262282893061638, -0.000438867777120322, -0.0998963937163353, 0.01474304310977459, -0.018397586420178413, -0.04808346554636955, -0.005331970285624266, -0.003440182190388441, -0.03646218404173851, -0.076520636677742, 0.036362286657094955, 0.007945925928652287, 0.08611069619655609, 0.012420452199876308, 0.010314302518963814, 0.026455895975232124, 0.010455822572112083, 0.02539033442735672, 0.008487031795084476, 0.03629568964242935, -0.1038922518491745, -0.02385859005153179, -0.014593198895454407, -0.004782539792358875, 0.05564229190349579, -0.009739899076521397, 0.019196758046746254, -0.04099082201719284, 0.010830434039235115, 0.023042768239974976, -0.012578621506690979, 0.017665013670921326, -0.021311230957508087, -0.01554221473634243, 0.06826253980398178, -0.006946961861103773, -0.012745114974677563, -0.018380936235189438, 0.005219586659222841, -0.000638400437310338, -0.058339495211839676, 0.024574512615799904, -0.06057051569223404, -0.02976912632584572, 0.08025010675191879, 0.012761764228343964, 0.013294545002281666, 0.01628311350941658, 0.00023816445900592953, -0.018114546313881874, 0.07392333447933197, 0.014376756735146046, -0.02149437554180622, 0.053810857236385345, -0.02066190540790558, 0.009215442463755608, -0.013727430254220963, -0.0017700393218547106, 0.051646437495946884, 0.02242674119770527, 0.013444390147924423, -0.02041216380894184, -0.08511172980070114, 0.002524465089663863, 0.03865990415215492, -0.04112401604652405, -0.03156726062297821, 0.06037072092294693, -0.03398142382502556, 0.01981278508901596, -0.02330916002392769, 0.010897031985223293, -0.00030619287281297147, 0.040125053375959396, 0.0024162440095096827, 0.011729502119123936, 0.07492230087518692, 0.027904393151402473, -0.01474304310977459, 0.0019302897853776813, -0.049315519630908966, -0.022110402584075928, 0.04848305135965347, -0.04135710746049881, -0.04545285925269127, 0.033548541367053986, 0.02197720669209957, 0.07751960307359695, -0.03689507022500038, -0.04741748794913292, 0.035996001213788986, 0.017898105084896088, -0.002303860615938902, 0.013144700787961483, -0.017898105084896088, -0.03586280718445778, 0.052645400166511536, -0.005527600646018982, -0.002260155975818634, 0.07525528222322464, -0.03210004046559334, -0.002335078315809369, 0.0075088790617883205, 0.04325513914227486, 0.01562546193599701, 0.022326843813061714, -0.04661832004785538, 0.02519054152071476, 0.023192614316940308, 0.008532817475497723, -0.06380049884319305, 0.006588999647647142, -0.00819566659629345, 0.007837704382836819, -0.021277932450175285, -0.004403766244649887, 0.03875980153679848, -0.05181293189525604, 0.0006300756940618157, 0.022593235597014427, -0.04272235929965973, -0.06629791110754013, -0.010464147664606571, -0.020079175010323524, 0.020528709515929222, 0.023325808346271515, 0.03258287534117699, 0.030718142166733742, 0.013610883615911007, 0.030984532088041306, 0.030834687873721123, -0.04258916527032852, 0.02875351347029209, 0.01813119649887085, 0.06140298396348953, -0.018281040713191032, -0.036129195243120193, -0.001101982081308961, 0.033748332411050797, -0.035363323986530304, -0.04132381081581116, 0.03699496388435364, -0.040291547775268555, 0.07618765532970428, 0.01881382055580616, -0.0048491377383470535, -0.03011876344680786, 0.03201679512858391, -0.06543213874101639, 0.0431552417576313, -0.02206045389175415, -0.0577734149992466, -0.005215424578636885, -0.011180072091519833, -0.008840830996632576, -0.02310936711728573, 0.05877238139510155, -0.006663922220468521, 0.024857552722096443, -0.00659732474014163, 0.005843939259648323 ]
715,032
pytorch_optimizer.optimizer.shampoo_utils
update_momentum
Update momentum.
def update_momentum(self, update: torch.Tensor, beta1: float) -> torch.Tensor: r"""Update momentum.""" self.momentum.mul_(beta1).add_(update) return self.momentum
(self, update: torch.Tensor, beta1: float) -> torch.Tensor
[ 0.028994107618927956, 0.011429688893258572, 0.0026408503763377666, 0.007615373004227877, 0.020172119140625, -0.015805324539542198, -0.0518004484474659, -0.0019226274453103542, -0.025511277839541435, 0.054735217243433, -0.04670879989862442, -0.04083925858139992, -0.005529211368411779, 0.08302214741706848, -0.03233550116419792, -0.016600893810391426, 0.023124568164348602, 0.020702499896287918, -0.013268339447677135, -0.013648445717990398, -0.026625076308846474, -0.011314773000776768, 0.01782960817217827, 0.054346270859241486, -0.040202803909778595, -0.039035968482494354, 0.02538752183318138, -0.03914204239845276, -0.030160943046212196, -0.03946027159690857, 0.054876651614904404, -0.016565535217523575, -0.002826483454555273, 0.010757874697446823, 0.01254348736256361, 0.00641317805275321, 0.008380004204809666, 0.057776059955358505, -0.06315057724714279, -0.00014544013538397849, 0.09285186231136322, 0.007376702036708593, 0.0891745537519455, 0.039354197680950165, 0.02819853648543358, -0.028092460706830025, 0.004791099112480879, 0.03868238255381584, 0.02938305214047432, 0.016203109174966812, -0.020614102482795715, -0.042182888835668564, 0.06848973780870438, -0.046532005071640015, -0.012508128769695759, 0.07863767445087433, 0.03783377259969711, 0.008066195994615555, -0.028004063293337822, 0.04402153939008713, 0.01644177921116352, -0.055795975029468536, -0.024680349975824356, -0.01638874225318432, 0.00555131072178483, -0.050032515078783035, 0.0005207115900702775, 0.009016459807753563, 0.013524689711630344, 0.03551778197288513, -0.00476458016782999, 0.03829343616962433, -0.02335439994931221, -0.0013447343371808529, -0.03719731792807579, 0.024043893441557884, -0.015434058383107185, -0.0026077015791088343, -0.012950112111866474, 0.006563452538102865, -0.006218705326318741, -0.010890468955039978, -0.0066032311879098415, -0.006254064384847879, 0.05063360929489136, -0.034474700689315796, -0.00920209288597107, -0.021533427760004997, -0.04377403110265732, 0.017705852165818214, 0.004570107441395521, -0.05469985678792, 0.007182229310274124, -0.005657386500388384, 0.036737654358148575, 0.015345660969614983, -0.011456208303570747, -0.030408453196287155, -0.020331233739852905, 0.004070666618645191, -0.004906015004962683, 0.07991058379411697, 0.030974192544817924, 0.028410688042640686, 0.014452855102717876, -0.017228510230779648, -0.024609632790088654, -0.047097742557525635, -0.008733591064810753, -0.006536933593451977, -0.008941322565078735, -0.024043893441557884, -0.028905710205435753, -0.02712009660899639, -0.025175370275974274, -0.019765494391322136, -0.01181863434612751, 0.001729259849525988, 0.03146921470761299, 0.04303149878978729, 0.030638284981250763, 0.07998130470514297, 0.03924812003970146, -0.03346697986125946, -0.017661653459072113, -0.04115748777985573, 0.03086811676621437, -0.013639605604112148, 0.008583316579461098, -0.016600893810391426, -0.06396383047103882, 0.0011977747781202197, 0.01611471176147461, 0.05858930945396423, -0.007319244090467691, -0.035305630415678024, 0.00205190759152174, -0.05264905467629433, 0.01817435398697853, 0.023796383291482925, 0.0374801866710186, 0.08542653918266296, 0.009255130775272846, -0.032105669379234314, -0.08535581827163696, -0.018863849341869354, -0.020048363134264946, 0.03332554176449776, -0.04561268165707588, -0.04384474828839302, -0.048512089997529984, 0.010554562322795391, 0.0606047548353672, 0.005564569961279631, -0.0006513729458674788, 0.010483845137059689, 0.0038209459744393826, -0.022664904594421387, 0.027438325807452202, 0.026978662237524986, -0.010006502270698547, 0.035906724631786346, -0.013365576043725014, 0.031575288623571396, -0.016653932631015778, -0.03051452897489071, -0.02512233331799507, 0.007584434002637863, -0.07001016288995743, 0.03251229226589203, 0.04154643416404724, -0.018068278208374977, 0.048264581710100174, 0.010757874697446823, 0.04342044144868851, 0.015372180379927158, -0.004090555943548679, -0.022116845473647118, 0.02676651068031788, 0.031062588095664978, 0.024132290855050087, 0.006660688668489456, -0.018563300371170044, -0.05445234850049019, -0.010368929244577885, 0.05455842241644859, -0.03624263405799866, 0.01790916547179222, -0.029347693547606468, -0.0460016243159771, 0.05098719894886017, -0.014284901320934296, 0.011191017925739288, -0.01790916547179222, -0.02280634082853794, 0.040238164365291595, 0.0035071377642452717, -0.01667161099612713, 0.029206259176135063, -0.03610119968652725, 0.02361958846449852, -0.029736638069152832, 0.0011237426660954952, 0.05381589010357857, 0.08422434329986572, -0.012128022499382496, -0.012499288655817509, 0.02103840745985508, 0.0015093730762600899, -0.07566754519939423, -0.07566754519939423, 0.057776059955358505, 0.024892501533031464, 0.027491362765431404, -0.04985572025179863, -0.07015159726142883, 0.04444584250450134, -0.038753099739551544, 0.045400526374578476, -0.011332452297210693, 0.00256350333802402, -0.010536883026361465, 0.017369944602251053, -0.003999948967248201, 0.00460546649992466, 0.00447287131100893, -0.020967690274119377, 0.03889453411102295, -0.04794635251164436, 0.012499288655817509, 0.020561065524816513, -0.024061571806669235, -0.03516419231891632, -0.0662975013256073, 0.02853444404900074, 0.02186933532357216, -0.026960983872413635, -0.013011989183723927, -0.01641526073217392, 0.011756756342947483, -0.004331436473876238, -0.053745172917842865, 0.060074374079704285, 0.06668644398450851, -0.0345454178750515, -0.007487197872251272, 0.021533427760004997, -0.023548871278762817, -0.06315057724714279, 0.026713471859693527, -0.01271144114434719, 0.025016257539391518, 0.05162365362048149, 0.07248526811599731, 0.004357955884188414, -0.018952244892716408, 0.03364377096295357, 0.05986222252249718, 0.012349014170467854, -0.0013800929300487041, -0.012773318216204643, -0.027738874778151512, -0.030762039124965668, 0.02791566774249077, -0.0404503159224987, 0.010147937573492527, -0.01485947985202074, 0.05657386779785156, 0.00712919095531106, 0.017697012051939964, 0.09094248712062836, -0.00016173828043974936, 0.00838442426174879, -0.03910668566823006, 0.037020523101091385, -0.027190813794732094, 0.020649461075663567, 0.001611029263585806, -0.03353769704699516, -0.04840601608157158, -0.003847464919090271, -0.046567365527153015, -0.002036438323557377, 0.014002031646668911, -0.017652815207839012, -0.00683748209849, -0.0024640571791678667, 0.03569457307457924, -0.04532980918884277, 0.0017303647473454475, 0.02450355514883995, -0.04554196447134018, 0.0664742961525917, 0.036454785615205765, -0.010368929244577885, 0.0026585296727716923, -0.004826458171010017, 0.007381121627986431, 0.014903677627444267, -0.0028331130743026733, 0.0433143675327301, 0.003971220459789038, -0.08259784430265427, 0.006718146614730358, -0.011208697222173214, -0.019482625648379326, 0.05682137608528137, 0.04122820496559143, 0.023831741884350777, -0.005197723861783743, 0.014762243255972862, 0.0018298110226169229, -0.0748189389705658, 0.025882543995976448, -0.020914651453495026, -0.04957285150885582, -0.005020930897444487, -0.019677098840475082, 0.024556593969464302, 0.02215220406651497, -0.0001686442701611668, -0.021533427760004997, 0.07131843268871307, 0.054310910403728485, -0.10862182080745697, -0.028764275833964348, 0.0143998172134161, 0.008145753294229507, -0.012128022499382496, 0.01789148524403572, -0.007840784266591072, -0.0862751454114914, 0.05222475156188011, 0.022081486880779266, -0.052613694220781326, -0.024574274197220802, -0.0038452548906207085, -0.05165901035070419, 0.04151107370853424, -0.006178927142173052, 0.05537167191505432, 0.004583367146551609, -0.02132127620279789, 0.0024353282060474157, 0.01790032535791397, 0.0009033034439198673, 0.09348831325769424, -0.012923592701554298, 0.017087075859308243, 0.04469335451722145, -0.03974314033985138, 0.07234383374452591, -0.024149969220161438, -0.007557915057986975, 0.04430440813302994, 0.04083925858139992, -0.031257063150405884, -0.06679251790046692, 0.0016983209643512964, -0.051977239549160004, -0.07460678368806839, 0.06170087307691574, -0.0052154031582176685, 0.018527941778302193, -0.004079506266862154, -0.01338325534015894, -0.03488132357597351, 0.04554196447134018, 0.03083275817334652, -0.04204145446419716, 0.02819853648543358, 0.019093679264187813, 0.0031734402291476727, 0.041687868535518646, -0.03811664134263992, -0.007107092067599297, -0.057776059955358505, 0.011270575225353241, 0.054735217243433, -0.031539931893348694, 0.025882543995976448, -0.03808128461241722, -0.03638406842947006, 0.001034241053275764, 0.0806884765625, 0.05968542769551277, 0.024980898946523666, -0.08387076109647751, -0.03592440485954285, 0.02250579185783863, 0.04875960201025009, 0.018669376149773598, 0.02043730951845646, 0.0009182203793898225, -0.06848973780870438, 0.03953098878264427, 0.07347530871629715, -0.02849908545613289, -0.008897124789655209, -0.027579760178923607, 0.030779719352722168, 0.00007285818719537929, -0.018810810521245003, 0.045683398842811584, -0.04957285150885582, -0.057245682924985886, -0.029188578948378563, 0.016618574038147926, -0.0431375727057457, 0.08323430269956589, -0.05102255567908287, 0.014832960441708565, -0.03148689121007919, 0.027526721358299255, 0.027279211208224297, -0.00612146919593215, 0.018899207934737206, -0.14497053623199463, 0.02476874552667141, 0.019411908462643623, 0.01898760348558426, 0.031310100108385086, -0.010589920915663242, 0.042501118034124374, 0.0003701610548887402, -0.05671530216932297, 0.00597561476752162, -0.03868238255381584, -0.08125421404838562, 0.04402153939008713, -0.01169487927109003, -0.03376752510666847, -0.01311806496232748, -0.032706767320632935, -0.005096067674458027, -0.035906724631786346, 0.0010585500858724117, -0.06262020021677017, -0.010404287837445736, -0.012799837626516819, 0.03113330528140068, 0.021197520196437836, 0.027544401586055756, -0.015372180379927158, -0.053144074976444244, -0.02540520206093788, 0.013993192464113235, -0.04787563532590866, -0.07340459525585175, -0.011898191645741463, -0.047981709241867065, 0.011199858039617538, 0.04575411602854729, 0.019694777205586433, 0.02851676382124424, -0.015716927126049995, -0.02964824251830578, -0.03910668566823006, 0.02911786176264286, -0.005308219697326422, -0.05844787508249283, 0.013065027073025703, -0.022611867636442184, 0.035040438175201416, -0.004636405035853386, 0.01815667562186718, 0.06520137935876846, -0.026147734373807907, -0.02100304886698723, 0.021993091329932213, 0.0016607523430138826, -0.0836586058139801, 0.03284820169210434, -0.03896525129675865, -0.03709124028682709, -0.04550660401582718, -0.020985368639230728, -0.012101504020392895, 0.05558382347226143, -0.026731152087450027, -0.041369639337062836, -0.020401950925588608, 0.01067831739783287, 0.04635521024465561, -0.004119284451007843, 0.0317697636783123, 0.03659621998667717, -0.02970127947628498, 0.05901361629366875, -0.031557608395814896, -0.02397317625582218, 0.016830725595355034, 0.07686974108219147, 0.0019778753630816936, -0.10034789890050888, -0.050598252564668655, -0.02713777683675289, 0.004941373597830534, 0.06505994498729706, 0.030355416238307953, -0.008972262032330036, 0.07389961183071136, -0.035005081444978714, -0.028976427391171455, -0.03339625895023346, 0.0018242861842736602, -0.06700467318296432, -0.0060374923050403595, -0.024149969220161438, 0.00022071543207857758, -0.0013171103782951832, -0.020684819668531418, -0.031858157366514206, 0.03924812003970146, -0.002184502547606826, 0.0036905608139932156, 0.010068380273878574, 0.030443811789155006, 0.030443811789155006, -0.042819347232580185, -0.04034423828125, 0.0024021794088184834, 0.02681954950094223, -0.04055638983845711, 0.0003552440903149545, 0.033307865262031555, -0.052861206233501434, -0.03606583923101425, 0.00007182229455793276, 0.03311339020729065, -0.022328998893499374, 0.01414346694946289, -0.023831741884350777, 0.006019813008606434, -0.03634870797395706, -0.035906724631786346, -0.008393263444304466, -0.01456777099519968, -0.13613086938858032, 0.015964437276124954, -0.002217651344835758, -0.021462710574269295, 0.04688559100031853, -0.015221905894577503, -0.05561918392777443, -0.0023336720187216997, -0.0009762307163327932, -0.006665108725428581, -0.005891637876629829, 0.03984921798110008, -0.06714610755443573, 0.0014806442195549607, -0.04441048577427864, 0.09370046854019165, 0.006528093945235014, 0.014930197037756443, -0.050881121307611465, -0.010722516104578972, -0.005087228026241064, 0.000305244728224352, -0.030691321939229965, -0.04158179089426994, 0.09865067899227142, 0.04532980918884277, -0.029453769326210022, 0.057811420410871506, -0.029895752668380737, 0.03405039757490158, -0.005153525620698929, 0.06191302463412285, 0.009104856289923191, -0.01843954436480999, -0.03572993353009224, -0.05639707297086716, -0.01223409827798605, -0.016954481601715088, 0.01439097709953785, -0.010192135348916054, 0.002207706682384014, 0.03572993353009224, 0.006634169723838568, -0.04868888482451439, 0.03910668566823006, -0.035305630415678024, 0.015619691461324692, 0.01732574589550495, -0.06746433675289154, 0.045435886830091476, 0.03970778360962868, 0.03666693717241287, -0.05618492141366005, -0.00992694590240717, 0.0008911488694138825, -0.0216041449457407, -0.011862833052873611, -0.02848140522837639, -0.07375817745923996, -0.010572241619229317, 0.037055883556604385, 0.05243690311908722, 0.00979435071349144, -0.013206462375819683, 0.02020747773349285, 0.0026077015791088343, -0.015257264487445354, -0.024998577311635017, 0.004028677940368652, -0.008879445493221283, 0.006010973360389471, -0.039884574711322784, 0.005485013127326965, -0.03205263242125511, -0.04147571697831154, 0.05858930945396423, 0.020861612632870674, -0.02445051819086075, 0.010925828479230404, -0.025811826810240746, 0.0577407032251358, 0.025581995025277138, -0.05013858899474144, 0.0316460058093071, -0.007840784266591072, -0.03362609073519707, 0.011014224961400032, -0.0039911093190312386, 0.034527737647295, -0.060640111565589905, 0.037656981498003006, -0.04582483321428299, -0.009387725964188576, 0.0259355828166008, 0.004698283039033413, -0.05024466663599014, 0.029312334954738617, 0.006422017700970173, -0.05512415990233421, -0.013330217450857162, 0.009175574406981468, -0.025210728868842125, 0.05452306568622589, 0.021710220724344254, 0.015000914223492146, -0.02393781766295433, -0.008689392358064651, 0.039884574711322784, -0.01819203421473503, -0.0010856215376406908, 0.03484596684575081, 0.03811664134263992, -0.042819347232580185, 0.006771184504032135, -0.004010998643934727, 0.07117699831724167, 0.039318837225437164, -0.03783377259969711, 0.00937004666775465, -0.009299329482018948, 0.01038660854101181, -0.045400526374578476, -0.002855212427675724, -0.03489900380373001, -0.04868888482451439, 0.024079252034425735, 0.0158583614975214, 0.000141365613671951, -0.04034423828125, -0.01646829955279827, 0.02651900053024292, -0.024644991382956505, 0.013595406897366047, -0.0013845127541571856, -0.018386507406830788, -0.02369030751287937, 0.007655151188373566, -0.026041658595204353, -0.00010752625530585647, 0.022328998893499374, 0.030037187039852142, 0.06396383047103882, 0.04932533949613571, 0.015434058383107185, -0.001807711785659194, 0.015434058383107185, -0.024415159597992897, 0.029542166739702225, 0.00655903248116374, 0.07623328268527985, -0.0025568734854459763, 0.031168663874268532, -0.005038610193878412, -0.04122820496559143, -0.012154541909694672, 0.005180044565349817, 0.021462710574269295, 0.04349115863442421, -0.04695630818605423, 0.021674862131476402, -0.05063360929489136, 0.01698984019458294, 0.0025612933095544577, 0.003794427029788494, -0.04409225657582283, 0.009352367371320724, 0.04702702537178993, 0.02333671972155571, 0.022099167108535767, 0.005728104151785374, -0.033855922520160675, 0.02452123537659645, 0.02300081215798855, 0.05650315061211586, 0.039035968482494354, 0.00838442426174879, 0.08712375164031982, 0.05424019321799278, -0.0011933549540117383, -0.011305933818221092, 0.03261836990714073, 0.02388477884232998, -0.022841699421405792, 0.017758890986442566, 0.01409926824271679, 0.002696098294109106, 0.004601046442985535, -0.040485672652721405, -0.022417394444346428, 0.014868319034576416, -0.05904897302389145, -0.02365494892001152, -0.013065027073025703, 0.0057325237430632114, 0.035005081444978714, -0.05409875884652138, 0.0518358051776886, -0.016866084188222885, 0.03610119968652725, -0.004817618522793055, 0.0012552327243611217, 0.02423836663365364, -0.048794958740472794, -0.008941322565078735, 0.003938071429729462, -0.019747816026210785, 0.046213775873184204, -0.0011303724022582173, -0.013595406897366047, -0.0489717535674572, 0.04518837481737137, 0.03709124028682709, 0.028764275833964348, -0.024927860125899315, 0.017679333686828613, 0.05530095472931862, 0.0809006318449974, -0.01541637908667326, 0.050280023366212845, -0.01879313215613365, -0.03339625895023346, -0.03670229762792587, 0.037338752299547195, -0.01485947985202074, 0.08500223606824875, 0.033608414232730865, -0.0634334459900856, 0.024132290855050087, -0.006819802802056074, 0.015000914223492146 ]
715,033
pytorch_optimizer.optimizer.adahessian
AdaHessian
An Adaptive Second Order Optimizer for Machine Learning. Requires `loss.backward(create_graph=True)` in order to calculate hessians. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param hessian_power: float. exponent of the hessian trace. :param update_period: int. number of steps after which to apply hessian approximation. :param num_samples: int. times to sample `z` for the approximation of the hessian trace. :param hessian_distribution: HUTCHINSON_G. type of distribution to initialize hessian. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability.
class AdaHessian(Optimizer, BaseOptimizer): r"""An Adaptive Second Order Optimizer for Machine Learning. Requires `loss.backward(create_graph=True)` in order to calculate hessians. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param hessian_power: float. exponent of the hessian trace. :param update_period: int. number of steps after which to apply hessian approximation. :param num_samples: int. times to sample `z` for the approximation of the hessian trace. :param hessian_distribution: HUTCHINSON_G. type of distribution to initialize hessian. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-1, betas: BETAS = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, hessian_power: float = 1.0, update_period: int = 1, num_samples: int = 1, hessian_distribution: HUTCHINSON_G = 'rademacher', adam_debias: bool = False, eps: float = 1e-16, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') self.validate_range(hessian_power, 'Hessian Power', 0, 1, range_type='(]') self.update_period = update_period self.num_samples = num_samples self.distribution = hessian_distribution defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'hessian_power': hessian_power, 'adam_debias': adam_debias, 'eps': eps, } super().__init__(params, defaults) def __str__(self) -> str: return 'AdaHessian' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['exp_avg'] = torch.zeros_like(p) state['exp_hessian_diag_sq'] = torch.zeros_like(p) @torch.no_grad() def step(self, closure: CLOSURE = None, hessian: Optional[List[torch.Tensor]] = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() step: int = self.param_groups[0].get('step', 1) if hessian is not None: self.set_hessian(self.param_groups, self.state, hessian) elif step % self.update_period == 0: self.zero_hessian(self.param_groups, self.state) self.compute_hutchinson_hessian( param_groups=self.param_groups, state=self.state, num_samples=self.num_samples, distribution=self.distribution, ) for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2: float = 1.0 - beta2 ** group['step'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if 'exp_avg' not in state: state['exp_avg'] = torch.zeros_like(p) state['exp_hessian_diag_sq'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) exp_avg, exp_hessian_diag_sq = state['exp_avg'], state['exp_hessian_diag_sq'] exp_avg.mul_(beta1).add_(grad, alpha=1.0 - beta1) if 'hessian' in state and (group['step'] % self.update_period == 0 or hessian is not None): exp_hessian_diag_sq.mul_(beta2).addcmul_(state['hessian'], state['hessian'], value=1.0 - beta2) de_nom = (exp_hessian_diag_sq / bias_correction2).pow_(group['hessian_power'] / 2).add_(group['eps']) step_size: float = self.apply_adam_debias(group['adam_debias'], group['lr'], bias_correction1) p.addcdiv_(exp_avg, de_nom, value=-step_size) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.1, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, hessian_power: float = 1.0, update_period: int = 1, num_samples: int = 1, hessian_distribution: Literal['gaussian', 'rademacher'] = 'rademacher', adam_debias: bool = False, eps: float = 1e-16)
[ -0.03783030807971954, -0.02079283446073532, 0.024014538154006004, -0.026999061927199364, 0.0013143760152161121, -0.028916271403431892, -0.057397712022066116, 0.01245198305696249, -0.027453657239675522, -0.0018900331342592835, -0.0089387446641922, 0.01191832683980465, 0.02713741734623909, 0.048187196254730225, -0.06312957406044006, 0.057121001183986664, -0.01542662363499403, 0.04901732876896858, -0.007041299715638161, -0.021366020664572716, -0.05992763862013817, -0.11803688853979111, -0.028718620538711548, 0.051468197256326675, -0.04324593394994736, -0.015841688960790634, 0.03369941562414169, -0.014013421721756458, -0.008242026902735233, -0.010366769507527351, -0.011770088225603104, -0.04609210044145584, -0.040755536407232285, -0.0006087018409743905, 0.025160910561680794, -0.04308781400322914, 0.02085212990641594, 0.0025571035221219063, -0.06988922506570816, 0.009630521759390831, 0.05016370117664337, -0.031782202422618866, 0.057832542806863785, -0.022453099489212036, 0.007164831273257732, 0.029094157740473747, -0.020970720797777176, 0.05055900290608406, -0.020338239148259163, -0.029291806742548943, 0.03864067792892456, -0.1169300451874733, 0.0594928078353405, 0.00799496378749609, 0.004244545008987188, 0.01972552202641964, 0.06522466987371445, -0.0008783094817772508, 0.06059965118765831, -0.06668728590011597, 0.06028340756893158, -0.06791272014379501, 0.04119036719202995, 0.014003539457917213, -0.011019016616046429, -0.011246314272284508, -0.05767442286014557, -0.023204172030091286, 0.012175272218883038, 0.026603760197758675, 0.015317915007472038, 0.00484243780374527, 0.023955242708325386, 0.01322282012552023, 0.0012797871604561806, -0.02755248360335827, -0.042178619652986526, -0.03130784258246422, -0.05024276301264763, -0.03820584714412689, 0.03122878260910511, 0.02189967781305313, -0.02377735823392868, -0.009437812492251396, 0.028007078915834427, -0.04783142730593681, 0.05542120710015297, -0.029548753052949905, -0.00001002729004540015, -0.03344246745109558, 0.008869566954672337, -0.03806748986244202, 0.04486666992306709, 0.011404435150325298, 0.09352822601795197, 0.013697180896997452, -0.011068428866565228, -0.057793013751506805, 0.03377847373485565, -0.03267163038253784, -0.013954127207398415, 0.03498414158821106, 0.06613386422395706, 0.0626947432756424, -0.004575609695166349, -0.04878014698624611, -0.016256755217909813, -0.03148572891950607, 0.030319590121507645, -0.08530596643686295, -0.041071780025959015, 0.004711494315415621, 0.0004268015909474343, -0.038858093321323395, -0.015871336683630943, -0.02005164511501789, -0.01972552202641964, 0.03634792938828468, -0.008810272440314293, 0.0401625856757164, 0.03197985514998436, 0.024844670668244362, -0.07344693690538406, -0.005549038294702768, 0.01265951618552208, -0.00950699020177126, 0.004805378150194883, -0.015614391304552555, 0.02559574320912361, -0.04340405389666557, -0.02490396611392498, 0.031801968812942505, -0.037771016359329224, 0.028441909700632095, -0.019102923572063446, -0.03943127766251564, 0.016266638413071632, 0.002398983109742403, 0.006927650887519121, -0.016642173752188683, 0.030971836298704147, 0.028046609833836555, 0.027690839022397995, -0.0124816307798028, 0.004429842345416546, -0.005479860585182905, 0.03047771006822586, 0.001387259573675692, -0.008044376038014889, 0.00483008474111557, 0.014873201958835125, -0.007016593590378761, -0.004434783477336168, 0.013291997835040092, 0.0016145576955750585, -0.03986610844731331, -0.059295155107975006, 0.022097328677773476, -0.011621850542724133, -0.011098076589405537, -0.03785007447004318, -0.04063694551587105, -0.01862856186926365, 0.016227107495069504, -0.035557329654693604, -0.016918884590268135, 0.010228414088487625, 0.04565726965665817, -0.016236990690231323, 0.039609163999557495, -0.008133319206535816, -0.07048217952251434, -0.04913591966032982, 0.04502478986978531, -0.042218152433633804, 0.07095653563737869, 0.0301219392567873, 0.019191864877939224, 0.0371582992374897, -0.029924288392066956, 0.03972775489091873, -0.018490206450223923, -0.04427371546626091, -0.04506431892514229, -0.01098936889320612, 0.01716594770550728, 0.0026929883752018213, 0.01970575749874115, -0.004622551612555981, 0.03642699122428894, -0.015812041237950325, -0.04138801991939545, 0.011513142846524715, -0.013114112429320812, -0.0025064556393772364, 0.012343275360763073, 0.002730047795921564, 0.007011652458459139, 0.047040823847055435, 0.029212746769189835, -0.0037430068477988243, 0.013410587795078754, 0.03352152928709984, -0.017561249434947968, 0.024726079776883125, 0.010075235739350319, -0.01078183576464653, 0.017383363097906113, -0.08151107281446457, 0.0111672542989254, -0.04802907630801201, 0.013815771788358688, -0.00538103561848402, 0.032533276826143265, 0.024765610694885254, -0.03259257227182388, 0.035498034209012985, 0.03984634578227997, 0.058188315480947495, -0.005549038294702768, -0.010623715817928314, -0.038087256252765656, -0.019191864877939224, 0.01037665270268917, 0.07443518936634064, -0.043720293790102005, 0.04878014698624611, 0.005262445192784071, -0.010001116432249546, -0.028876740485429764, 0.025734098628163338, -0.02049635909497738, 0.025457387790083885, -0.03322505205869675, 0.05775348097085953, 0.06210179254412651, -0.037691954523324966, 0.017956549301743507, -0.023520411923527718, 0.01039641723036766, -0.012461865320801735, -0.011789853684604168, 0.0000777090826886706, -0.015179560519754887, -0.020950956270098686, 0.015742864459753036, 0.07186572998762131, 0.039194099605083466, -0.03824537619948387, -0.009284633211791515, -0.049966052174568176, -0.03611075133085251, -0.012017151340842247, 0.009576167911291122, -0.07787430286407471, -0.00873615313321352, 0.038798797875642776, 0.02931157313287258, 0.006043164525181055, -0.05917656794190407, -0.003950539976358414, -0.02523997239768505, -0.059650927782058716, 0.061508841812610626, -0.03518179431557655, 0.04455042630434036, 0.042534392327070236, -0.0059888106770813465, 0.011789853684604168, 0.02713741734623909, 0.0594928078353405, 0.03279022127389908, -0.0700078159570694, -0.002206273842602968, 0.0046645523980259895, 0.06712211668491364, 0.01470519881695509, -0.016918884590268135, -0.02672235108911991, 0.033995889127254486, 0.04613163322210312, -0.03802796080708504, -0.03672346845269203, 0.019893525168299675, 0.0028708737809211016, 0.054512012749910355, -0.037039708346128464, 0.018361734226346016, 0.04458995908498764, 0.01081148348748684, 0.058188315480947495, 0.0007164831622503698, 0.04352264478802681, -0.01971563883125782, 0.08222261816263199, 0.03686182200908661, 0.009917114861309528, 0.03561662510037422, 0.02381688728928566, 0.01076207123696804, 0.03707923740148544, 0.024409839883446693, 0.023599471896886826, -0.004620080813765526, -0.05846502259373665, -0.05795113369822502, -0.00500797014683485, 0.04711988568305969, 0.04486666992306709, 0.005217973608523607, 0.008088847622275352, -0.01354894321411848, 0.0016281461575999856, 0.015347562730312347, -0.02225544862449169, -0.08593844622373581, 0.021484611555933952, -0.02041729912161827, 0.007589780259877443, 0.08522690832614899, -0.07538390904664993, 0.031801968812942505, 0.042178619652986526, -0.012501395307481289, -0.02486443519592285, -0.02421218901872635, 0.028817446902394295, 0.0017541483975946903, -0.02267051488161087, -0.0587417334318161, -0.041427548974752426, -0.04676411300897598, 0.02757224813103676, -0.009284633211791515, -0.0008622503955848515, 0.022038033232092857, 0.022966990247368813, 0.038126785308122635, -0.018430911004543304, -0.06059965118765831, 0.03079395182430744, 0.06898003071546555, -0.025398092344403267, 0.05727912113070488, 0.018055375665426254, -0.06601527333259583, -0.0018727387068793178, 0.011246314272284508, -0.039609163999557495, 0.041427548974752426, -0.02116837166249752, -0.031465962529182434, 0.011157372035086155, 0.0919470265507698, 0.08957521617412567, 0.002003682078793645, -0.03456907719373703, -0.019191864877939224, 0.04711988568305969, -0.03929292410612106, -0.028145434334874153, 0.019784817472100258, -0.06921721249818802, 0.054907314479351044, -0.005573744885623455, -0.025437621399760246, -0.023737827315926552, 0.0036392402835190296, 0.017343834042549133, -0.06087636202573776, 0.022413568571209908, -0.052219267934560776, -0.008825095370411873, 0.00912157166749239, -0.02312511019408703, -0.02047659456729889, -0.03678276389837265, 0.04360170662403107, 0.021781086921691895, 0.04018235206604004, 0.04451089724898338, -0.007150007411837578, -0.0062111676670610905, 0.019567402079701424, 0.0077676656655967236, -0.028896506875753403, 0.019962701946496964, -0.02077306993305683, 0.042890165001153946, -0.03745477274060249, 0.03707923740148544, 0.0036565347108989954, -0.00911663006991148, -0.02114860527217388, -0.05684429034590721, 0.0572395920753479, 0.07119371742010117, 0.0745142474770546, -0.0664501041173935, -0.010633598081767559, 0.018075140193104744, -0.036229342222213745, 0.030616065487265587, 0.016167812049388885, -0.014962144196033478, -0.0630505159497261, 0.061508841812610626, 0.07012640684843063, 0.0055984510108828545, 0.10325263440608978, -0.01710665225982666, -0.005326681770384312, -0.06739883124828339, 0.0512310154736042, -0.02533879689872265, 0.0013168465811759233, 0.020209765061736107, 0.020990485325455666, -0.027829192578792572, 0.04771283641457558, 0.05640945956110954, 0.005707158707082272, 0.01968599110841751, 0.03676299750804901, 0.019893525168299675, -0.017768781632184982, -0.10886590927839279, -0.010386534966528416, -0.07799289375543594, -0.027374597266316414, 0.0017195595428347588, -0.035162027925252914, -0.0014552020002156496, -0.015841688960790634, -0.02419242449104786, 0.007243891712278128, 0.011117842048406601, 0.0380081944167614, 0.03334364295005798, -0.021366020664572716, 0.017660073935985565, -0.0372571237385273, 0.036604877561330795, -0.020318472757935524, -0.02826402522623539, -0.052575040608644485, 0.059018444269895554, -0.048582497984170914, -0.03727689012885094, -0.009180867113173008, 0.03466790169477463, 0.0017121476121246815, 0.0215834379196167, 0.04265298321843147, -0.022453099489212036, -0.028540736064314842, 0.029924288392066956, 0.006102459970861673, 0.012639750726521015, 0.038818564265966415, -0.008489090017974377, 0.027592012658715248, -0.014082599431276321, 0.005825749132782221, -0.020377768203616142, 0.008607679978013039, 0.07380270212888718, -0.04022188112139702, -0.00834579300135374, 0.008993098512291908, -0.0004320516891311854, -0.015031321905553341, 0.003775124903768301, -0.026663055643439293, -0.004560785833746195, -0.030299825593829155, -0.01593063212931156, -0.0006454524700529873, -0.01934998668730259, -0.01817396469414234, 0.04881967976689339, -0.05431436374783516, 0.00909192394465208, 0.033323876559734344, 0.05696288123726845, -0.049214981496334076, 0.022136857733130455, -0.02298675663769245, -0.0007868961547501385, 0.02154390700161457, -0.03296810761094093, -0.05312845855951309, 0.02749318815767765, -0.0023643942549824715, -0.040755536407232285, -0.04285063222050667, 0.014161660335958004, -0.00853356160223484, 0.053681880235672, -0.022966990247368813, 0.003928304184228182, -0.03727689012885094, -0.0728144496679306, -0.03154502436518669, 0.02755248360335827, 0.013746594078838825, -0.00724883284419775, 0.021484611555933952, -0.02905462682247162, 0.03245421499013901, -0.03377847373485565, -0.021840382367372513, 0.013825654052197933, 0.004983263555914164, 0.015406858175992966, 0.0072142439894378185, -0.009961586445569992, 0.07328881323337555, 0.03470743075013161, -0.011898561380803585, 0.00966016948223114, 0.05692335218191147, -0.012600220739841461, 0.012412453070282936, 0.029884759336709976, 0.02788848802447319, 0.0003959187015425414, -0.03581427410244942, 0.07803242653608322, 0.02450866438448429, -0.026247989386320114, -0.012204919941723347, 0.019537754356861115, 0.0767674595117569, -0.0016083811642602086, -0.014359310269355774, -0.0071154190227389336, -0.033323876559734344, -0.10760094225406647, -0.06198320537805557, -0.014487783424556255, 0.0010413711424916983, -0.04534102976322174, -0.08380382508039474, -0.018421027809381485, 0.0023977479431778193, -0.014043069444596767, 0.04265298321843147, -0.047475654631853104, -0.025002790614962578, -0.06139025092124939, -0.015614391304552555, 0.009576167911291122, 0.05478872358798981, 0.03873950242996216, -0.0032068798318505287, -0.037771016359329224, 0.02267051488161087, 0.004150661174207926, 0.05644898861646652, -0.060718242079019547, -0.061864614486694336, 0.0066015273332595825, -0.03913480415940285, -0.002685576444491744, 0.06095542013645172, 0.042534392327070236, -0.009334045462310314, -0.04759424552321434, 0.034015655517578125, -0.03721759468317032, 0.004387841559946537, -0.002066683256998658, 0.00819755531847477, -0.08245979994535446, 0.020199883729219437, 0.004499020054936409, -0.03868020698428154, 0.04379935562610626, 0.01414189487695694, 0.0395103394985199, -0.032889045774936676, -0.042929694056510925, -0.0036392402835190296, 0.03605145588517189, 0.0514286644756794, -0.04119036719202995, 0.0823807343840599, -0.019537754356861115, 0.022808870300650597, -0.013410587795078754, -0.007140125147998333, -0.012135742232203484, -0.05095430463552475, 0.0010592832695692778, 0.031070662662386894, -0.023204172030091286, -0.008701563812792301, 0.03522132337093353, 0.020990485325455666, -0.05992763862013817, 0.011157372035086155, 0.051863495260477066, -0.026840940117836, 0.06898003071546555, 0.008548385463654995, 0.013944244012236595, -0.013736710883677006, -0.015485918149352074, -0.07728135585784912, -0.012748458422720432, 0.0004440960183274001, 0.04039976745843887, 0.0034168832935392857, -0.040755536407232285, -0.011473612859845161, 0.008405088447034359, -0.009027687832713127, 0.05316799134016037, 0.026307284832000732, 0.0021692144218832254, 0.017936784774065018, 0.011256197467446327, 0.021820617839694023, -0.0029573459178209305, -0.022789105772972107, 0.04806860536336899, -0.07791383564472198, -0.014754611067473888, 0.0171264186501503, 0.01206656452268362, 0.00007821092731319368, 0.0010901661589741707, 0.00038541850517503917, 0.019992349669337273, -0.004627492744475603, 0.03227632865309715, 0.02377735823392868, 0.0038714795373380184, -0.03753383457660675, -0.027789663523435593, 0.03567592054605484, 0.009823231026530266, -0.019438927993178368, -0.012580455280840397, 0.007283421698957682, 0.01638522744178772, -0.03518179431557655, -0.013262350112199783, 0.013667533174157143, -0.008039435371756554, 0.027710603550076485, -0.08593844622373581, 0.0018159141764044762, 0.0006905415211804211, 0.013835536316037178, 0.007841784507036209, 0.042415801435709, -0.006403876934200525, -0.024251719936728477, 0.04079506918787956, 0.0012186389649286866, 0.005731865298002958, -0.010860895738005638, -0.011177136562764645, 0.055184025317430496, -0.010159236378967762, 0.03794889897108078, 0.030675360932946205, 0.00855332612991333, -0.07320975512266159, -0.0010704011656343937, -0.06309004873037338, -0.008899214677512646, 0.018075140193104744, -0.012560690753161907, -0.010287709534168243, -0.0400637611746788, -0.022453099489212036, -0.015614391304552555, 0.0700078159570694, 0.05463060364127159, 0.016810176894068718, -0.0005423036054708064, 0.018727386370301247, -0.0040518357418477535, -0.004004893824458122, 0.009902290999889374, -0.011187019757926464, -0.06146931275725365, -0.05530261620879173, -0.016078870743513107, 0.003315587528049946, -0.03314599394798279, 0.07981128245592117, -0.0703635886311531, -0.05134960636496544, -0.043641235679388046, 0.011473612859845161, -0.08475254476070404, -0.00024690874852240086, 0.03488531708717346, -0.03783030807971954, 0.02790825441479683, 0.028817446902394295, 0.06059965118765831, -0.010643480345606804, 0.006453289650380611, 0.014823788776993752, -0.024627255275845528, -0.016177695244550705, 0.012056682258844376, -0.006117283832281828, 0.010505124926567078, 0.02968710847198963, -0.013845419511198997, 0.036644406616687775, -0.020990485325455666, -0.0020679186563938856, 0.07625357061624527, -0.010159236378967762, -0.0015429094200953841, 0.02640610933303833, -0.00032396154711022973, -0.08190637826919556, -0.06309004873037338, 0.015485918149352074, -0.026267753913998604, 0.01190844364464283, -0.03763265907764435, 0.007629310246556997, -0.007713311817497015, 0.019834229722619057, 0.05281221866607666, 0.006986945867538452, -0.015337680466473103, 0.044036537408828735, 0.013954127207398415, 0.022887930274009705, 0.056686170399188995, 0.0212079007178545, 0.01539697591215372, -0.019804581999778748, -0.007906020618975163, 0.03205891326069832, 0.020150471478700638, -0.026939766481518745, -0.009161101654171944, 0.030003348365426064, -0.04249486327171326, 0.03160431981086731, -0.001420613145455718, 0.022571690380573273, 0.05281221866607666, 0.0842781811952591, -0.04605257138609886, -0.0021865088492631912, -0.034391190856695175, -0.07463283836841583, -0.0788230299949646, 0.02085212990641594, -0.01744265854358673, 0.07309116423130035, 0.003365000244230032, -0.01965634524822235, -0.0014082599664106965, 0.02340182103216648, 0.03783030807971954 ]
715,035
pytorch_optimizer.optimizer.adahessian
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-1, betas: BETAS = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, hessian_power: float = 1.0, update_period: int = 1, num_samples: int = 1, hessian_distribution: HUTCHINSON_G = 'rademacher', adam_debias: bool = False, eps: float = 1e-16, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') self.validate_range(hessian_power, 'Hessian Power', 0, 1, range_type='(]') self.update_period = update_period self.num_samples = num_samples self.distribution = hessian_distribution defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'hessian_power': hessian_power, 'adam_debias': adam_debias, 'eps': eps, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.1, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, hessian_power: float = 1.0, update_period: int = 1, num_samples: int = 1, hessian_distribution: Literal['gaussian', 'rademacher'] = 'rademacher', adam_debias: bool = False, eps: float = 1e-16)
[ 0.021408667787909508, -0.038632746785879135, 0.004686648957431316, -0.027274569496512413, -0.024976780638098717, -0.029908619821071625, -0.08555994927883148, 0.016467487439513206, -0.017214735969901085, 0.02570534683763981, -0.023837225511670113, 0.050439272075891495, 0.01272190548479557, 0.05623044818639755, -0.08130063116550446, 0.05865900591015816, 0.01349717564880848, 0.025294359773397446, -0.014954309910535812, -0.011685097590088844, -0.024920735508203506, -0.05694033205509186, -0.04494699463248253, 0.1177663579583168, -0.012983442284166813, 0.02101636305451393, 0.0005329982959665358, 0.002114479662850499, -0.006136777810752392, -0.01143290102481842, 0.006645841058343649, -0.010592247359454632, -0.025126229971647263, 0.05432496219873428, 0.031739380210638046, -0.030543779954314232, -0.0076079233549535275, 0.010517521761357784, -0.09549835324287415, 0.054063424468040466, 0.07913361489772797, -0.04390084743499756, 0.08189842849969864, -0.033775631338357925, -0.009574120864272118, 0.023332832381129265, 0.015841666609048843, 0.06019086390733719, -0.027835005894303322, -0.03422398120164871, 0.018074072897434235, -0.058061204850673676, 0.03271080181002617, -0.014085633680224419, -0.0673270896077156, 0.03306574374437332, 0.06878422200679779, 0.07431385666131973, 0.047188740223646164, 0.006757928058505058, 0.012105424888432026, -0.028993239626288414, 0.014468598179519176, 0.0015633838484063745, -0.0009317254298366606, -0.010536203160881996, -0.06826114654541016, -0.022211961448192596, 0.022548222914338112, 0.041958000510931015, 0.10431588441133499, 0.03284157067537308, -0.016355400905013084, 0.044797543436288834, 0.010648290626704693, -0.0009609148255549371, -0.08100173622369766, -0.03941735625267029, -0.06915784627199173, -0.025294359773397446, 0.06179744750261307, 0.05623044818639755, -0.01854110322892666, -0.03454155847430229, 0.02181965485215187, -0.05368980020284653, 0.029703127220273018, -0.05182168260216713, 0.014235083013772964, 0.02039988338947296, -0.06284359842538834, -0.025649303570389748, 0.03751187399029732, -0.04121075198054314, 0.1090235486626625, 0.0010910994606092572, 0.004651621449738741, -0.05828538164496422, 0.03971625491976738, -0.025406448170542717, -0.017877919599413872, 0.01954054646193981, 0.005660407245159149, 0.029348183423280716, 0.004322365391999483, -0.029217414557933807, -0.035008590668439865, -0.028675660490989685, 0.0207735076546669, -0.086830273270607, -0.04046350345015526, 0.07453803718090057, -0.004390084650367498, -0.003920719493180513, -0.03517672047019005, -0.021072406321763992, -0.007168915122747421, 0.027554787695407867, 0.0007022967911325395, 0.01819550059735775, 0.0220625102519989, 0.03926790505647659, -0.03756791725754738, 0.043489862233400345, 0.02742401883006096, 0.0015995787689462304, -0.012675202451646328, -0.019222967326641083, 0.03521408513188362, -0.02477128617465496, 0.008060942403972149, 0.004285003058612347, -0.034336067736148834, 0.012693882919847965, 0.007463144138455391, -0.0511491559445858, 0.0013532203156501055, 0.021072406321763992, 0.002498612040653825, 0.010284006595611572, 0.06441281735897064, 0.02729324996471405, 0.04752500355243683, -0.0025056174490600824, -0.010526862926781178, 0.0033719586208462715, 0.0076079233549535275, -0.018429014831781387, -0.015197165310382843, 0.009335935115814209, 0.024192169308662415, 0.00630023842677474, -0.0010385585483163595, 0.015066397376358509, -0.018391652032732964, -0.04666566476225853, -0.004609588999301195, -0.01588837057352066, 0.005291453097015619, -0.0032948986627161503, -0.04674039036035538, 0.02404271997511387, 0.017289461567997932, -0.009289232082664967, -0.039305269718170166, 0.006879356224089861, -0.013347725383937359, 0.014431236311793327, -0.006921388674527407, 0.018158137798309326, -0.007323035039007664, -0.08040393143892288, -0.05227002874016762, 0.03564375266432762, -0.00794418528676033, 0.05118652060627937, 0.0369701161980629, 0.005515627562999725, 0.02439766190946102, 0.0041262125596404076, 0.043190959841012955, -0.025350404903292656, -0.04449864476919174, -0.05761285498738289, 0.005711780395358801, 0.020493289455771446, -0.020511969923973083, 0.047861263155937195, -0.018952088430523872, 0.01889604516327381, 0.03037565015256405, -0.0009591634734533727, 0.010751036927103996, 0.022959208115935326, 0.0042429701425135136, 0.023687776178121567, 0.01199333742260933, -0.022847121581435204, -0.02637787163257599, 0.043004147708415985, 0.06134909763932228, 0.029049284756183624, 0.018158137798309326, -0.044536009430885315, 0.01693451777100563, -0.0007624269346706569, -0.012096084654331207, 0.015664195641875267, -0.05070080980658531, -0.02839544229209423, -0.004796401131898165, -0.023015253245830536, 0.021464712917804718, 0.02975917048752308, -0.0035167380701750517, -0.07136222720146179, 0.0021658530458807945, 0.010732356458902359, 0.01337574701756239, -0.020455926656723022, 0.06474907696247101, -0.02611633390188217, -0.019045494496822357, -0.009443351998925209, 0.04199536517262459, 0.013188935816287994, 0.04580632969737053, -0.03196355327963829, -0.08219733089208603, -0.009826317429542542, 0.021651525050401688, -0.028694340959191322, 0.01841033436357975, -0.016570234671235085, 0.009532088413834572, 0.01685045287013054, -0.0373997837305069, 0.054362326860427856, -0.06672928482294083, -0.0026807538233697414, 0.02643391489982605, 0.020568013191223145, 0.029236096888780594, -0.015710899606347084, 0.0021249877754598856, 0.008584016934037209, 0.03177674114704132, 0.031029492616653442, -0.06953147053718567, -0.040351416915655136, -0.048533786088228226, -0.03702615946531296, -0.009027695283293724, 0.014776838012039661, -0.05346562713384628, -0.020568013191223145, 0.039006371051073074, 0.0008330652490258217, 0.029180051758885384, -0.030319606885313988, -0.025425128638744354, -0.010517521761357784, -0.033420685678720474, 0.08712916821241379, -0.016336718574166298, 0.022828441113233566, -0.010900487191975117, 0.030394330620765686, 0.00940599013119936, 0.010853784158825874, 0.10117743909358978, 0.02232404798269272, -0.03287893161177635, -0.013058166950941086, 0.001965029863640666, 0.001844769692979753, 0.01548672467470169, -0.04270524904131889, -0.006197492126375437, 0.06325457990169525, 0.03738110512495041, -0.04027669131755829, 0.027517424896359444, 0.0298712570220232, 0.023557007312774658, 0.028993239626288414, -0.028918515890836716, 0.02845148555934429, 0.010797739960253239, 0.005328815430402756, 0.00717825535684824, 0.0018739590886980295, 0.04692720249295235, -0.006388974376022816, 0.09034233540296555, 0.0009801798732951283, 0.04229426383972168, 0.007061497773975134, 0.06650511175394058, -0.004555880557745695, 0.0528678297996521, -0.021726248785853386, 0.028507528826594353, 0.001360225724056363, -0.06743917614221573, -0.04793598875403404, 0.03655913099646568, 0.028937196359038353, 0.026172377169132233, 0.04763709008693695, 0.04289206117391586, 0.02533172257244587, 0.06426336616277695, 0.022828441113233566, 0.009751592762768269, -0.058995265513658524, 0.03498990833759308, -0.035755839198827744, 0.019148241728544235, 0.07618197798728943, -0.04360194876790047, 0.025126229971647263, 0.05361507833003998, -0.011059277690947056, -0.056342534720897675, -0.0376800037920475, -0.008878245949745178, 0.012899376451969147, -0.04180855304002762, -0.020680101588368416, -0.04640413075685501, -0.02606029063463211, 0.034634966403245926, -0.019204284995794296, -0.02127790078520775, 0.0441250205039978, 0.007010124623775482, 0.05297991633415222, -0.022473497316241264, -0.0614611841738224, 0.07382814586162567, -0.014412554912269115, -0.03547561913728714, 0.05383925139904022, -0.0073603973723948, -0.05690297111868858, -0.00924719963222742, -0.02863829769194126, -0.00858868658542633, 0.02490205504000187, -0.012749927118420601, 0.02452843077480793, 0.014702113345265388, 0.11298396438360214, 0.06366556882858276, -0.015869690105319023, -0.02962840162217617, -0.015626832842826843, 0.036858029663562775, -0.03149652108550072, -0.04266788810491562, -0.004768379032611847, -0.04591841623187065, 0.040911853313446045, -0.02914269082248211, -0.03979098051786423, -0.00043404626194387674, -0.00028736956301145256, 0.023575689643621445, -0.015225187875330448, 0.025537217035889626, -0.04393820837140083, -0.050812896341085434, -0.003796956269070506, 0.014057612046599388, -0.03364486247301102, -0.056716158986091614, 0.03127234801650047, 0.002291951095685363, -0.014702113345265388, 0.032131683081388474, 0.0074257818050682545, 0.032673437148332596, 0.02705039456486702, -0.007832097820937634, -0.035382214933633804, -0.004492831416428089, -0.0072576506063342094, 0.06437545269727707, -0.0099944481626153, 0.009448022581636906, -0.005595022812485695, 0.02804049849510193, -0.014412554912269115, -0.05208321660757065, 0.03975361958146095, 0.07323034852743149, 0.06437545269727707, -0.057874392718076706, -0.021857017651200294, 0.01217080932110548, -0.057388681918382645, -0.021296581253409386, 0.037100885063409805, -0.013590581715106964, -0.02951631508767605, 0.04483490809798241, 0.03201959654688835, 0.017373526468873024, 0.08428962528705597, -0.002648061839863658, -0.011825206689536572, -0.05421287566423416, -0.006262876093387604, -0.046254679560661316, -0.01881198026239872, -0.004394755233079195, 0.007206277456134558, 0.01776583306491375, 0.02096031978726387, 0.03829648345708847, 0.007010124623775482, 0.058434829115867615, 0.037455830723047256, 0.05555792152881622, 0.04457337036728859, -0.04715137928724289, -0.007696659304201603, -0.02533172257244587, -0.03160861134529114, -0.04065031558275223, -0.008411215618252754, -0.021800974383950233, -0.01100323349237442, 0.025107547640800476, 0.006426336709409952, -0.012217512354254723, 0.012096084654331207, -0.01431914884597063, -0.025611940771341324, 0.020511969923973083, -0.0614611841738224, 0.03487782180309296, -0.028171267360448837, -0.071063332259655, -0.027442699298262596, 0.0169064961373806, -0.03259871527552605, -0.03730637952685356, -0.017261439934372902, 0.02527567930519581, 0.004931839648634195, 0.03956680744886398, 0.006673862691968679, -0.030506419017910957, -0.04038877785205841, 0.004738022107630968, -0.01161971315741539, 0.038632746785879135, -0.00042382997344247997, 0.020885594189167023, -0.006921388674527407, -0.011526307091116905, -0.01588837057352066, -0.04221953824162483, -0.00044543013791553676, 0.08227205276489258, -0.03792285919189453, -0.0018190830014646053, 0.0016194275813177228, 0.014636728912591934, 0.015253209508955479, 0.036054737865924835, -0.024565793573856354, -0.040164604783058167, -0.015253209508955479, -0.03220640867948532, 0.000298461556667462, -0.03848329558968544, -0.022660309448838234, 0.011862569488584995, -0.02716248109936714, 0.02716248109936714, 0.08204787969589233, 0.024080080911517143, -0.06672928482294083, -0.028806427493691444, -0.020362520590424538, 0.01789660006761551, 0.029180051758885384, -0.05723923072218895, -0.014468598179519176, 0.01816747896373272, 0.04079976677894592, -0.03459760546684265, -0.019260328263044357, 0.020866913720965385, 0.014151018112897873, 0.029553676024079323, 0.006071393843740225, -0.013002123683691025, -0.020455926656723022, -0.048720598220825195, -0.039678893983364105, 0.023762501776218414, -0.011507626622915268, -0.0320943221449852, 0.0013123551616445184, -0.023893268778920174, 0.015299912542104721, -0.021371306851506233, -0.022099873051047325, -0.03603605553507805, 0.007869460619986057, -0.0018926402553915977, -0.01706528663635254, -0.04898213595151901, 0.0739402323961258, -0.012927398085594177, -0.010517521761357784, 0.04143492877483368, 0.07648088037967682, 0.03923054412007332, -0.00044134361087344587, 0.016794409602880478, 0.023594370111823082, 0.01779385469853878, -0.05484803766012192, 0.09377968311309814, 0.04565688222646713, -0.015570789575576782, -0.06415127962827682, -0.04793598875403404, 0.05085025727748871, 0.010442797094583511, 0.006108756177127361, -0.0042523108422756195, -0.03803494572639465, -0.07603253424167633, -0.04659094288945198, -0.023202065378427505, 0.01293673925101757, -0.010097194463014603, -0.08727861940860748, -0.009476044215261936, -0.020979000255465508, -0.032617393881082535, 0.06616885215044022, -0.06007877737283707, -0.029703127220273018, -0.019559228792786598, -0.04408765956759453, -0.021782292053103447, 0.03355145454406738, 0.021913060918450356, 0.008224403485655785, -0.020306477323174477, 0.011946634389460087, 0.04050086811184883, 0.048907410353422165, -0.03840856999158859, -0.030338287353515625, 0.01937241666018963, 0.006346941459923983, -0.02951631508767605, 0.033420685678720474, 0.022510860115289688, -0.026415232568979263, -0.07569626718759537, 0.022268004715442657, -0.009195826016366482, 0.03155256807804108, 0.019166922196745872, 0.03646572679281235, -0.061573274433612823, 0.011526307091116905, -0.006010679993778467, 0.005151343997567892, -0.009891701862215996, 0.0003450186341069639, 0.009448022581636906, -0.027741599828004837, -0.09213573485612869, -0.07371605932712555, 0.03547561913728714, 0.03465364873409271, -0.055371109396219254, 0.03442947193980217, -0.02305261418223381, 0.02975917048752308, 0.004931839648634195, 0.024565793573856354, -0.025966884568333626, -0.018158137798309326, -0.023314151912927628, 0.017971325665712357, -0.005809856578707695, -0.05552056059241295, 0.03598001226782799, 0.057015057653188705, -0.08279512822628021, 0.011274111457169056, 0.03056246228516102, -0.021913060918450356, 0.048234887421131134, -0.01884000189602375, -0.0021471716463565826, 0.016187269240617752, 0.004404095467180014, -0.07199738919734955, 0.015925733372569084, -0.02294052764773369, 0.01143290102481842, -0.000982514931820333, -0.0005058521637693048, -0.030020706355571747, -0.029460269957780838, -0.013992227613925934, 0.07681713998317719, -0.014758157543838024, 0.014029589481651783, -0.0008470761822536588, -0.008499951101839542, 0.032729484140872955, -0.047861263155937195, -0.03345805034041405, 0.018830660730600357, -0.10483895987272263, -0.004871125798672438, -0.012077403254806995, 0.040725041180849075, -0.034392111003398895, 0.014954309910535812, -0.03441079333424568, 0.01358124054968357, 0.027760280296206474, 0.007159574422985315, 0.027592148631811142, 0.03569979593157768, -0.010041151195764542, 0.012124106287956238, 0.04289206117391586, 0.020792188122868538, -0.013104869984090328, -0.026228420436382294, -0.009088409133255482, 0.007126882206648588, -0.016654299572110176, 0.007701329421252012, 0.010713675059378147, -0.01942845992743969, 0.0538766123354435, -0.07117541879415512, 0.0012107760412618518, -0.02318338304758072, -0.012068063020706177, -0.0024238871410489082, 0.02693830616772175, 0.03512067720293999, -0.02927345782518387, 0.010097194463014603, 0.005800516344606876, 0.032785527408123016, -0.00019279593834653497, 0.005814527161419392, 0.02820863015949726, -0.023837225511670113, 0.015075737610459328, -0.006108756177127361, -0.005879911128431559, -0.04924367368221283, 0.012441687285900116, -0.04999092221260071, -0.007229628972709179, 0.020007576793432236, 0.01580430567264557, -0.05723923072218895, -0.03515804186463356, -0.006954080890864134, 0.007201606873422861, 0.06557105481624603, 0.052531566470861435, -0.0024612497072666883, -0.021800974383950233, 0.007860119454562664, 0.005048597231507301, -0.05735132098197937, 0.022398771718144417, -0.03598001226782799, -0.051859043538570404, -0.04849642515182495, -0.0061321076937019825, 0.00619282154366374, -0.032542672008275986, 0.06773807108402252, -0.03663385659456253, -0.0729314535856247, -0.06811169534921646, 0.016121884807944298, -0.04954257234930992, -0.007290342822670937, 0.01414167694747448, -0.04759972542524338, 0.073641337454319, -0.016616936773061752, 0.02422953210771084, -0.016009798273444176, 0.005062608513981104, 0.025854796171188354, -0.031384434551000595, 0.021875698119401932, 0.05346562713384628, 0.02439766190946102, -0.05058871954679489, -0.010227963328361511, 0.03287893161177635, 0.019746040925383568, 0.010797739960253239, -0.011862569488584995, 0.022361410781741142, -0.017326824367046356, -0.02213723585009575, 0.03441079333424568, -0.006388974376022816, -0.017532316967844963, -0.08331820368766785, -0.002379519399255514, 0.011862569488584995, 0.025742709636688232, -0.03300970047712326, 0.03177674114704132, 0.007379078771919012, -0.022230641916394234, 0.01776583306491375, 0.028507528826594353, -0.0441250205039978, 0.0477118156850338, 0.02932950295507908, 0.07076442986726761, 0.07674241811037064, 0.005412881262600422, 0.024976780638098717, -0.05141069367527962, -0.0041472287848591805, 0.03926790505647659, 0.030095431953668594, -0.019036155194044113, -0.01591639220714569, 0.06837323307991028, -0.01786857843399048, 0.004394755233079195, -0.026471275836229324, -0.005398869980126619, 0.038090988993644714, 0.08555994927883148, -0.053092002868652344, 0.005398869980126619, -0.009027695283293724, -0.05854691565036774, -0.0812259092926979, -0.0005312469438649714, -0.02852620929479599, 0.07334243506193161, 0.005230739247053862, -0.01257245521992445, 0.02323942631483078, 0.033962443470954895, 0.011087299324572086 ]
715,038
pytorch_optimizer.optimizer.adahessian
__str__
null
def __str__(self) -> str: return 'AdaHessian'
(self) -> str
[ -0.03102533519268036, -0.02986728772521019, 0.05520608648657799, -0.02609930746257305, 0.026358572766184807, -0.0632951408624649, -0.007574848830699921, 0.05174922198057175, 0.0800609216094017, -0.063917376101017, -0.03591679409146309, 0.03671187162399292, -0.008767466060817242, 0.030921630561351776, -0.011848393827676773, -0.0019628494046628475, -0.024336308240890503, -0.021657239645719528, -0.011494065634906292, -0.00044858184992335737, -0.009428590536117554, -0.01737937331199646, 0.011857036501169205, 0.0032645738683640957, -0.023281965404748917, 0.05333938077092171, 0.008935987949371338, -0.02390420064330101, -0.029314188286662102, -0.0009614397422410548, -0.013438550755381584, -0.052959125488996506, -0.00929895881563425, 0.011036031879484653, -0.021588101983070374, -0.003465504152700305, -0.02077574096620083, -0.007816828787326813, -0.04649479314684868, -0.014622526243329048, 0.016204040497541428, 0.0025732016656547785, -0.011390360072255135, -0.013533614575862885, -0.034464914351701736, -0.0067624859511852264, -0.014363260939717293, 0.06602606177330017, -0.016290461644530296, -0.018425073474645615, 0.015953417867422104, -0.03173399344086647, -0.01589292287826538, 0.007730407640337944, -0.007410647813230753, 0.01705961301922798, 0.025148671120405197, 0.013421266339719296, -0.002135692397132516, 0.03989218547940254, -0.018286800011992455, -0.03330686315894127, 0.056312281638383865, -0.01209037471562624, -0.0182176623493433, 0.023938769474625587, -0.011018747463822365, 0.030714217573404312, 0.03451676666736603, 0.03292660787701607, 0.048810891807079315, -0.03489702194929123, -0.00474022189155221, 0.0313883051276207, 0.04583798721432686, -0.016428736969828606, -0.0808214321732521, 0.014216344803571701, -0.009411306120455265, -0.031059904024004936, 0.020239926874637604, -0.013974363915622234, -0.02986728772521019, -0.00655939569696784, -0.008188441395759583, -0.09547852724790573, 0.001344935386441648, -0.06602606177330017, -0.010301448404788971, 0.011589129455387592, -0.029832718893885612, -0.02008436806499958, -0.013663246296346188, 0.05403074994683266, -0.0015890762442722917, 0.0010581237729638815, 0.022607875987887383, -0.052855417132377625, 0.06350255012512207, -0.0003424453898333013, 0.003951625432819128, 0.04874175414443016, 0.006364947184920311, 0.029694443568587303, -0.0632951408624649, -0.04262310639023781, -0.020118936896324158, 0.013628678396344185, -0.004014281090348959, -0.01104467362165451, -0.056588828563690186, -0.007937818765640259, 0.04300336167216301, 0.0054099890403449535, 0.005163687281310558, -0.09305872023105621, 0.01449289359152317, 0.006589643191546202, 0.04231198877096176, 0.005932839121669531, 0.013421266339719296, 0.018476927652955055, -0.06951749324798584, -0.01691269688308239, 0.024111611768603325, 0.08158194273710251, -0.03313402086496353, -0.03761065751314163, 0.008084735833108425, -0.045768853276968, 0.028156140819191933, 0.04542316496372223, -0.05997655540704727, 0.0017446349374949932, 0.05212947726249695, -0.023506661877036095, 0.04718616604804993, -0.0010327375493943691, 0.06875698268413544, 0.11967656016349792, -0.01504599116742611, 0.016420094296336174, 0.07985351234674454, 0.012055805884301662, -0.008953272365033627, -0.0056260428391397, -0.01863248646259308, 0.016273178160190582, -0.00525443023070693, -0.016229966655373573, 0.05212947726249695, 0.025978317484259605, 0.00868968665599823, -0.00891870353370905, -0.025546209886670113, -0.018113955855369568, -0.021553533151745796, -0.023835062980651855, 0.034551333636045456, -0.025044964626431465, -0.005837775766849518, -0.03000556118786335, -0.017923828214406967, 0.016938623040914536, -0.01984238810837269, -0.013162001967430115, 0.011519992724061012, 0.031094472855329514, 0.010716271586716175, 0.01255705114454031, -0.05154181271791458, -0.09070805460214615, -0.11449126899242401, 0.05973457545042038, 0.008404495194554329, 0.003573531052097678, 0.015357108786702156, 0.07936955243349075, 0.0496751070022583, -0.03640075773000717, 0.01339534018188715, 0.000168116923305206, -0.07238668948411942, 0.01328299194574356, 0.07612010091543198, -0.05468755587935448, 0.041032951325178146, 0.063917376101017, 0.040099598467350006, -0.010958252474665642, -0.008676723577082157, 0.010569355450570583, -0.05178379267454147, 0.0029707406647503376, 0.00029707406065426767, -0.04580342024564743, 0.005643327254801989, -0.0649198666214943, -0.008754502981901169, -0.0008842004463076591, -0.01686948537826538, 0.043591029942035675, -0.002981543308123946, 0.010301448404788971, 0.0632951408624649, 0.011554560624063015, 0.01718924567103386, -0.01085454598069191, -0.03415379673242569, -0.05022820457816124, 0.03102533519268036, 0.014873147942125797, -0.01302372757345438, 0.009938477538526058, 0.02945246361196041, -0.07743370532989502, 0.016765780746936798, -0.003923538140952587, 0.002599128056317568, 0.028691953048110008, 0.03406737372279167, -0.010534786619246006, 0.001848340849392116, -0.017673205584287643, 0.00013098266208544374, -0.011260727420449257, 0.022486886009573936, -0.0001648761099204421, -0.03313402086496353, -0.02604745514690876, 0.006710633169859648, -0.05333938077092171, -0.012479271739721298, 0.015227477066218853, 0.022901710122823715, 0.07027800381183624, -0.03629704937338829, 0.02525237575173378, -0.07916213572025299, -0.019081877544522285, 0.0037442136090248823, 0.01299780048429966, 0.010119963437318802, 0.019859671592712402, 0.024802984669804573, -0.03833659738302231, -0.0015977183356881142, 0.017128750681877136, -0.039442792534828186, -0.04811951890587807, 0.02972901239991188, -0.06149757280945778, -0.0026574626099318266, -0.041447773575782776, -0.015737364068627357, -0.05797157436609268, -0.011701477691531181, -0.0004872014687862247, 0.013421266339719296, -0.02516595460474491, -0.0742533951997757, 0.02074117213487625, -0.03443034365773201, 0.06561123579740524, -0.012081732042133808, 0.02972901239991188, -0.029763581231236458, 0.047600988298654556, 0.02986728772521019, -0.03280561789870262, 0.07591268420219421, 0.01001625694334507, -0.061670415103435516, 0.031941402703523636, -0.021518966183066368, -0.0053235674276947975, 0.014337334781885147, 0.041067518293857574, -0.08344864845275879, -0.00803288258612156, -0.011571845039725304, -0.04155148193240166, -0.01458795741200447, 0.027983296662569046, 0.009471802040934563, -0.04231198877096176, 0.015970701351761818, -0.020136220380663872, 0.009679213166236877, 0.0012531124521046877, 0.06433220207691193, 0.01621268317103386, -0.007618059404194355, -0.0011256407015025616, 0.047220733016729355, 0.02613387629389763, 0.051368966698646545, 0.04635651782155037, 0.01849421113729477, 0.0007432253332808614, -0.005267393309623003, -0.010422438383102417, 0.02189921960234642, -0.029245052486658096, -0.07411511987447739, -0.03653902933001518, -0.032961178570985794, 0.021795514971017838, 0.015910206362605095, 0.024198032915592194, -0.02291899360716343, 0.03539826720952988, 0.036781009286642075, 0.08047574758529663, -0.00931624323129654, 0.07729543000459671, 0.027516620233654976, 0.01349040400236845, 0.01923743635416031, 0.07957696169614792, -0.053373947739601135, 0.0021702612284570932, -0.021397974342107773, -0.009463159367442131, 0.02008436806499958, -0.01608305051922798, -0.026393141597509384, 0.011295296251773834, 0.03038581646978855, -0.020239926874637604, -0.06187782809138298, -0.04656393080949783, 0.030299395322799683, -0.03425750136375427, -0.04130949825048447, 0.05147267505526543, 0.027637610211968422, 0.008741539902985096, -0.03840573504567146, -0.04767012596130371, 0.06187782809138298, 0.010871830396354198, -0.042519401758909225, 0.05949259176850319, 0.03619334474205971, 0.02189921960234642, -0.08151280134916306, -0.031561147421598434, -0.01122615858912468, 0.011407644487917423, -0.020136220380663872, -0.04995165392756462, 0.02967716008424759, 0.0342920683324337, 0.05074673146009445, 0.017171962186694145, -0.02041276916861534, 0.05129982903599739, -0.007553243078291416, 0.01682627573609352, -0.017085539177060127, -0.07452994585037231, -0.006058150436729193, 0.04410955682396889, -0.07027800381183624, -0.028812944889068604, 0.008331037126481533, 0.02022264152765274, 0.0485343411564827, -0.043452754616737366, -0.012099016457796097, 0.02217576839029789, -0.028899366036057472, -0.009290316142141819, -0.028398120775818825, 0.02888208068907261, 0.031613003462553024, 0.042553968727588654, -0.03761065751314163, -0.004766148515045643, 0.04552686959505081, 0.018718907609581947, 0.0027222787030041218, 0.043971285223960876, -0.0012034201063215733, -0.024941258132457733, 0.0226942989975214, 0.0077088018879294395, 0.02278072014451027, 0.014994138851761818, -0.010897757485508919, -0.03854401037096977, 0.005332209635525942, -0.033531561493873596, -0.04767012596130371, -0.039581067860126495, -0.001701424247585237, 0.009126115590333939, -0.06298402696847916, 0.04428240284323692, 0.0350525788962841, -0.05354679003357887, -0.010024899616837502, -0.0004483117663767189, -0.049087438732385635, 0.042139146476984024, 0.03685014694929123, 0.03615877404808998, -0.031993258744478226, 0.02316097542643547, -0.0002233456907561049, -0.006382231134921312, -0.06554210186004639, -0.04407498985528946, 0.054825831204652786, 0.012911379337310791, 0.000544995884411037, -0.01031873282045126, -0.0403415784239769, 0.01540031936019659, -0.014933643862605095, 0.027049943804740906, 0.007903250865638256, 0.05762588977813721, 0.016705285757780075, 0.022988131269812584, 0.008266220800578594, 0.03733410686254501, 0.03527727723121643, -0.01578921638429165, -0.05223318189382553, -0.02917591482400894, 0.012643472291529179, -0.044005852192640305, 0.009566864930093288, -0.02162267081439495, -0.0030938913114368916, -0.026669690385460854, -0.03640075773000717, 0.00507726613432169, 0.029106777161359787, -0.05893949419260025, 0.00822301022708416, 0.0339118167757988, 0.01746579445898533, -0.04552686959505081, -0.05665796622633934, -0.013222496956586838, 0.041586048901081085, -0.0017694812268018723, 0.00474022189155221, 0.036642737686634064, -0.0029102456755936146, -0.013663246296346188, 0.06239635869860649, -0.025096816942095757, 0.0063951946794986725, -0.03761065751314163, 0.002689870772883296, 0.023662220686674118, -0.06609520316123962, 0.05441100522875786, -0.021000435575842857, 0.020326348021626472, 0.01460524182766676, 0.019859671592712402, 0.010794050991535187, 0.036227911710739136, -0.03833659738302231, -0.007043356075882912, 0.021916504949331284, -0.022521454840898514, -0.005816170014441013, -0.036227911710739136, 0.009333526715636253, 0.019220152869820595, -0.056174006313085556, -0.0030096303671598434, -0.012099016457796097, -0.00743225309997797, -0.03570938482880592, -0.04376387223601341, -0.003631865605711937, 0.04836149886250496, 0.02003251388669014, -0.012220006436109543, 0.00557851092889905, 0.0013265707530081272, -0.02599560096859932, -0.008551412262022495, 0.027240071445703506, 0.02450915053486824, -0.06111731752753258, -0.00003629029743024148, -0.010310091078281403, 0.05012449622154236, -0.01067306101322174, -0.019392995163798332, -0.1120714619755745, 0.014155849814414978, -0.006291488651186228, -0.04137863591313362, -0.04182802885770798, -0.03539826720952988, 0.039027970284223557, 0.013066938146948814, 0.019254721701145172, -0.014916359446942806, -0.004528488963842392, -0.00910883117467165, -0.014683021232485771, -0.04435153678059578, 0.043452754616737366, -0.004861211869865656, 0.04089467599987984, 0.023938769474625587, -0.01835593581199646, 0.025788189843297005, -0.013084222562611103, 0.03685014694929123, -0.01011132076382637, -0.01365460455417633, -0.014475609175860882, -0.02781045436859131, -0.004377251490950584, 0.028830228373408318, -0.016506515443325043, 0.013378055766224861, -0.010189100168645382, 0.11227887123823166, -0.009756992571055889, 0.02926233597099781, 0.009359453804790974, 0.0654383972287178, -0.0064297630451619625, 0.06595692783594131, -0.09091547131538391, 0.018857181072235107, 0.01909916289150715, 0.013628678396344185, -0.0025688805617392063, -0.042139146476984024, -0.03028210997581482, -0.07764112204313278, 0.014890432357788086, -0.04227742180228233, -0.019859671592712402, 0.021501680836081505, -0.006494579371064901, 0.0028238240629434586, -0.026963522657752037, -0.029089493677020073, -0.024854836985468864, -0.028259845450520515, 0.03574395179748535, 0.038647715002298355, -0.010811335407197475, 0.01989424042403698, 0.026082023978233337, 0.0532011054456234, -0.029054924845695496, -0.031094472855329514, 0.0557246133685112, 0.02687710151076317, -0.01682627573609352, 0.0661989077925682, 0.0037290898617357016, 0.030627796426415443, -0.0028281451668590307, -0.03553653880953789, 0.0037809426430612803, -0.038924265652894974, 0.03420564904808998, 0.05904320254921913, -0.119261734187603, 0.06571494787931442, 0.02967716008424759, 0.009437233209609985, 0.014415114186704159, 0.05849010497331619, -0.038371168076992035, 0.050435613840818405, -0.02390420064330101, -0.01765592209994793, 0.014354619197547436, 0.013101506978273392, 0.030627796426415443, 0.03553653880953789, 0.006377910263836384, -0.04352189227938652, -0.04932941868901253, -0.023558514192700386, -0.011381717398762703, -0.023644935339689255, 0.022538740187883377, -0.06823845207691193, 0.009376738220453262, -0.03660816699266434, 0.023783210664987564, 0.010776766575872898, 0.02552892453968525, 0.014475609175860882, 0.007868682034313679, 0.022383181378245354, 0.11691106855869293, 0.07798680663108826, 0.019081877544522285, 0.00533653050661087, -0.04805038124322891, -0.006879155058413744, -0.022348612546920776, 0.01686948537826538, 0.004597626160830259, -0.028156140819191933, -0.009964404627680779, -0.018857181072235107, 0.04970967397093773, -0.044386107474565506, -0.0315784327685833, 0.0432453416287899, 0.00859462283551693, 0.06533469259738922, -0.031198179349303246, 0.05520608648657799, -0.017491720616817474, 0.01104467362165451, 0.018373221158981323, -0.002607770264148712, 0.03472417965531349, -0.0411020889878273, 0.024958543479442596, 0.0000906751083675772, -0.027240071445703506, -0.063917376101017, -0.05012449622154236, 0.014994138851761818, 0.02348937653005123, 0.037161264568567276, 0.001999578671529889, 0.02623758278787136, -0.04542316496372223, 0.022521454840898514, -0.01644602045416832, 0.027706747874617577, -0.05036647617816925, 0.047497283667325974, -0.07197186350822449, -0.07418425381183624, -0.051645517349243164, -0.05918147414922714, -0.03289204090833664, 0.020672034472227097, -0.01729295216500759, 0.02986728772521019, 0.0019574479665607214, 0.002309615956619382, 0.0027136364951729774, 0.04746271297335625, -0.02259059250354767, -0.03539826720952988, 0.018062103539705276, -0.040272440761327744, 0.018113955855369568, -0.040272440761327744, 0.09665385633707047, 0.0510578490793705, 0.004753184970468283, -0.008261900395154953, -0.014847221784293652, -0.04054899141192436, -0.03149201348423958, 0.04168975353240967, -0.006727917585521936, -0.05209491029381752, -0.003904093522578478, 0.012194080278277397, 0.000409152009524405, 0.003186794463545084, 0.059285182505846024, -0.045457735657691956, 0.03698842227458954, -0.0021486557088792324, 0.005703822243958712, -0.07245582342147827, 0.013948437757790089, 0.06554210186004639, -0.056312281638383865, 0.021639956161379814, 0.005885307211428881, -0.08490052819252014, -0.08386346697807312, -0.04175889119505882, -0.03432663902640343, 0.005440236534923315, 0.12375565618276596, 0.016152188181877136, -0.0178374070674181, -0.03871685266494751, -0.01504599116742611, -0.026531415060162544, 0.035018011927604675, 0.0721101388335228, -0.01854606345295906, 0.029366042464971542, 0.023316534236073494, -0.01206444762647152, -0.015037349425256252, 0.012211364693939686, -0.008875492960214615, -0.040099598467350006, 0.05223318189382553, 0.040790971368551254, -0.043037932366132736, 0.012202722951769829, 0.029314188286662102, -0.08185849338769913, -0.006879155058413744, 0.04016873612999916, 0.019721396267414093, 0.05506781116127968, -0.0019498862093314528, -0.014743516221642494, 0.013066938146948814, 0.019030025228857994, 0.018753476440906525, 0.010794050991535187, -0.025961032137274742, -0.02632400393486023, -0.06806561350822449, -0.03992675617337227, -0.013360771350562572, 0.0036815579514950514, -0.03373897075653076, 0.06108275055885315, 0.012297785840928555, 0.0031349416822195053, 0.03747238218784332, 0.019323857501149178, 0.09015496075153351, 0.04130949825048447, 0.04061812907457352, 0.009212536737322807, 0.0025278301909565926, -0.009005125612020493, 0.012643472291529179, 0.040237873792648315, 0.030506806448101997, 0.022538740187883377, -0.0381983257830143, 0.029763581231236458, 0.053927045315504074, 0.049087438732385635, 0.0021864650771021843, 0.049882516264915466, 0.03702298924326897, -0.04690961539745331, 0.004627873655408621, 0.013049653731286526, -0.009515012614428997, -0.028017865493893623, 0.005764317233115435, -0.0319586880505085, 0.04030701145529747, -0.002290171105414629, -0.024353591725230217, 0.021795514971017838, 0.010457007214426994, 0.023835062980651855 ]
715,059
pytorch_optimizer.optimizer.adahessian
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None, hessian: Optional[List[torch.Tensor]] = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() step: int = self.param_groups[0].get('step', 1) if hessian is not None: self.set_hessian(self.param_groups, self.state, hessian) elif step % self.update_period == 0: self.zero_hessian(self.param_groups, self.state) self.compute_hutchinson_hessian( param_groups=self.param_groups, state=self.state, num_samples=self.num_samples, distribution=self.distribution, ) for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2: float = 1.0 - beta2 ** group['step'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if 'exp_avg' not in state: state['exp_avg'] = torch.zeros_like(p) state['exp_hessian_diag_sq'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) exp_avg, exp_hessian_diag_sq = state['exp_avg'], state['exp_hessian_diag_sq'] exp_avg.mul_(beta1).add_(grad, alpha=1.0 - beta1) if 'hessian' in state and (group['step'] % self.update_period == 0 or hessian is not None): exp_hessian_diag_sq.mul_(beta2).addcmul_(state['hessian'], state['hessian'], value=1.0 - beta2) de_nom = (exp_hessian_diag_sq / bias_correction2).pow_(group['hessian_power'] / 2).add_(group['eps']) step_size: float = self.apply_adam_debias(group['adam_debias'], group['lr'], bias_correction1) p.addcdiv_(exp_avg, de_nom, value=-step_size) return loss
(self)
[ -0.015184870921075344, -0.007037125062197447, -0.005131835583597422, 0.011575352400541306, -0.014256162568926811, -0.015347634442150593, -0.03814408928155899, 0.024088988080620766, -0.023495379835367203, 0.004610035102814436, -0.0021841416601091623, 0.018976300954818726, 0.03243779391050339, 0.0593990795314312, -0.0511268675327301, 0.048446059226989746, -0.01133599504828453, 0.04354400560259819, 0.01775078848004341, -0.025257054716348648, -0.020872017368674278, -0.10524092614650726, -0.017482707276940346, 0.06610110402107239, -0.06211818754673004, -0.011010468006134033, 0.04522908478975296, -0.005476511083543301, 0.00866954680532217, 0.005361618939787149, -0.02353367768228054, -0.03356756642460823, -0.006903084460645914, 0.002958464901894331, 0.04116957634687424, -0.059284187853336334, 0.015366783365607262, 0.010474305599927902, -0.07000742852687836, 0.004662693943828344, 0.0021745674312114716, -0.016563573852181435, 0.030465485528111458, 0.00015064593753777444, -0.009392407722771168, 0.022844327613711357, -0.03318459168076515, 0.05725443363189697, 0.011029615998268127, -0.014476371929049492, 0.011173231527209282, -0.08547952771186829, 0.04913540929555893, -0.029335714876651764, 0.022691138088703156, 0.040633413940668106, 0.07222867012023926, -0.05101197585463524, 0.04147595167160034, -0.04074830561876297, 0.06713513284921646, -0.06981594115495682, 0.04990135505795479, 0.029201675206422806, 0.0013368143700063229, -0.011891305446624756, -0.040135547518730164, -0.03490797057747841, 0.019081618636846542, 0.032380349934101105, 0.0149263646453619, 0.033146295696496964, 0.011996622197329998, 0.011508332565426826, -0.03153780847787857, -0.022729435935616493, -0.05897780880331993, -0.04450143873691559, -0.015768904238939285, -0.021542219445109367, 0.02251880057156086, 0.0034132450819015503, -0.03856536000967026, 0.005974375642836094, 0.004744075238704681, -0.03622922673821449, 0.050131138414144516, -0.04296954721212387, -0.007520628161728382, -0.00015513389371335506, -0.0011387456906959414, -0.005897780880331993, 0.02998676896095276, -0.015002959407866001, 0.09827081859111786, 0.03100164793431759, -0.03598029538989067, -0.030120810493826866, -0.013193412683904171, -0.01670718751847744, 0.021446475759148598, 0.030063364654779434, 0.06135224178433418, 0.04515249282121658, 0.02676979824900627, -0.04813968017697334, -0.004468813538551331, -0.03452499583363533, 0.021197544410824776, -0.09359855204820633, -0.013059372082352638, -0.01654442399740219, -0.028244243934750557, -0.02305496111512184, -0.0333569310605526, -0.021178394556045532, -0.021274138242006302, 0.022020936012268066, -0.013691277243196964, 0.025237906724214554, 0.027037879452109337, -0.008726992644369602, -0.06361178308725357, -0.012379595078527927, 0.005270663183182478, 0.027305960655212402, 0.02772722952067852, 0.005854696501046419, 0.031212283298373222, -0.038412172347307205, -0.024471960961818695, 0.019550761207938194, -0.01753057911992073, 0.0003422819427214563, -0.0056344871409237385, -0.03159525617957115, -0.019665652886033058, -0.00424860417842865, 0.03979087248444557, -0.0084972083568573, -0.0016396022401750088, 0.016936970874667168, 0.01333702728152275, 0.019991179928183556, 0.018602903932332993, 0.041016384959220886, 0.04392698034644127, 0.050514109432697296, -0.0012913363752886653, 0.0013727181358262897, 0.026654906570911407, 0.034256916493177414, 0.029718687757849693, 0.015558269806206226, -0.01521359384059906, 0.0028842638712376356, -0.04358230531215668, 0.03925471007823944, -0.011470034718513489, -0.02950805425643921, -0.02305496111512184, -0.009722721762955189, -0.00371244247071445, 0.019416719675064087, -0.006031821481883526, 0.014380628243088722, -0.0032672365196049213, 0.04783330112695694, -0.027861271053552628, 0.05043751746416092, -0.012676399201154709, -0.03925471007823944, 0.01494551356881857, 0.0431993305683136, -0.020086923614144325, 0.11642372608184814, 0.027880419045686722, 0.0059504397213459015, -0.001716196769848466, -0.0053041731007397175, -0.004157648421823978, -0.037301551550626755, -0.030293148010969162, -0.038890887051820755, 0.00296564563177526, 0.044961005449295044, 0.011470034718513489, -0.006117990240454674, 0.02487408183515072, 0.01670718751847744, -0.026693204417824745, -0.02705702744424343, 0.02719106897711754, -0.009205708280205727, 0.008741353638470173, 0.0293740127235651, 0.025735771283507347, 0.0004502922238316387, 0.07000742852687836, 0.009693998843431473, -0.004535833839327097, -0.006936594843864441, 0.026846392080187798, -0.02705702744424343, -0.02261454239487648, 0.008789225481450558, -0.023878352716565132, 0.06648407876491547, -0.04756522178649902, 0.01753057911992073, -0.04871413856744766, -0.00019387996871955693, -0.0028938381001353264, 0.06230967119336128, 0.030120810493826866, -0.07525414973497391, 0.01213066279888153, 0.016525276005268097, 0.04614822193980217, -0.010263671167194843, -0.025908108800649643, -0.05706294625997543, -0.011240251362323761, -0.0025180461816489697, 0.058518242090940475, -0.03940790146589279, 0.030848458409309387, -0.044386547058820724, -0.016975268721580505, -0.03132717311382294, 0.008018492721021175, -0.00016156664059963077, 0.033529266715049744, -0.030695268884301186, 0.03718665614724159, 0.03538668528199196, -0.051471542567014694, -0.0036717515904456377, -0.002410335000604391, 0.03502286225557327, -0.023169854655861855, -0.03531008958816528, -0.007477543782442808, 0.004107383079826832, -0.017319943755865097, 0.03982916846871376, 0.07525414973497391, 0.026693204417824745, -0.030733566731214523, 0.028225094079971313, -0.04090149328112602, -0.05863313376903534, -0.022250719368457794, -0.0006199372000992298, -0.04917370527982712, -0.009727508760988712, 0.08057747781276703, 0.03929300978779793, 0.04526738449931145, -0.05196940898895264, 0.009473789483308792, -0.048446059226989746, -0.0530417300760746, 0.05319492146372795, -0.06349688768386841, 0.012618953362107277, 0.023131556808948517, -0.023074110969901085, 0.03197822719812393, 0.04825457185506821, 0.0635351836681366, 0.04185892641544342, -0.06870532035827637, -0.02768893353641033, 0.015376357361674309, 0.03808664530515671, 0.027478298172354698, -0.00389435444958508, -0.03672708943486214, -0.00399488490074873, 0.06583302468061447, -0.061696916818618774, -0.047335438430309296, 0.0075158411636948586, -0.03318459168076515, 0.040097251534461975, -0.02318900264799595, 0.011077487841248512, 0.06284583359956741, -0.0108764274045825, 0.04461633041501045, 0.0012757781660184264, 0.05568424239754677, -0.010234948247671127, 0.090841144323349, 0.012887034565210342, -0.014591263607144356, 0.009603043086826801, -0.004911626223474741, 0.019550761207938194, 0.07226696610450745, -0.009823252446949482, -0.029105931520462036, -0.01581677608191967, -0.021867746487259865, -0.042701467871665955, 0.012848736718297005, 0.01836354471743107, 0.010857278481125832, -0.004803915042430162, 0.008722205646336079, -0.007554138079285622, -0.0002655377611517906, 0.0002332244475837797, -0.018334822729229927, -0.08555611968040466, 0.007697753142565489, -0.03745473921298981, -0.00686000008136034, 0.07981152832508087, -0.04702905938029289, 0.018124187365174294, 0.04262487217783928, 0.04974816367030144, -0.028225094079971313, -0.008808374404907227, 0.037397291511297226, 0.01364340540021658, -0.04469292610883713, -0.03877599537372589, -0.06610110402107239, -0.022461354732513428, 0.06027991697192192, 0.02064223401248455, -0.008875394240021706, 0.014208290725946426, 0.0476418137550354, 0.015797628089785576, -0.003051814390346408, -0.06269264221191406, 0.059858646243810654, 0.02782297320663929, -0.03264842927455902, 0.029584648087620735, 0.019933734089136124, -0.04453973472118378, 0.0095264483243227, 0.020527342334389687, 0.014141269959509373, 0.04228019714355469, -0.014447648078203201, -0.03195907920598984, -0.01094344723969698, 0.07360737025737762, 0.050858788192272186, 0.03213141858577728, -0.026310231536626816, -0.03251438960433006, 0.03395053744316101, -0.07161591202020645, -0.0036119120195508003, 0.028914446011185646, -0.04610992223024368, 0.10868767648935318, 0.03772281855344772, -0.0195316132158041, -0.022978367283940315, 0.024318771436810493, 0.03249524161219597, -0.02328474633395672, 0.015989113599061966, -0.021714556962251663, -0.00746318232268095, 0.029354864731431007, -0.014821046963334084, -0.0296995397657156, -0.04565035551786423, 0.023227300494909286, 0.034888822585344315, 0.03404628112912178, 0.049403488636016846, -0.05009284242987633, -0.025084717199206352, 0.019416719675064087, 0.01424658764153719, -0.02468259632587433, 0.01778908632695675, -0.05706294625997543, 0.0562204048037529, -0.06502877920866013, 0.05913100019097328, 0.017205052077770233, 0.0035592534113675356, -0.008229128085076809, -0.03699517250061035, 0.05327151343226433, 0.0768626406788826, 0.05453532561659813, -0.036286670714616776, -0.003212184179574251, 0.006467453204095364, -0.020623084157705307, 0.0049594976007938385, 0.027669783681631088, -0.022250719368457794, -0.07138612866401672, 0.02318900264799595, 0.039522793143987656, 0.032859064638614655, 0.06594791263341904, 0.0034563294611871243, -0.01817205920815468, -0.06296072900295258, 0.008109448477625847, 0.003829727880656719, -0.02305496111512184, -0.019072044640779495, 0.005988737102597952, -0.018334822729229927, 0.0339888334274292, 0.053348109126091, 0.011556204408407211, 0.03559732064604759, 0.043812088668346405, -0.022442204877734184, -0.03862280771136284, -0.0635351836681366, -0.02035500295460224, -0.05503318831324577, 0.01422743871808052, -0.023495379835367203, -0.03963768482208252, -0.021197544410824776, 0.009296664036810398, -0.02468259632587433, 0.010493454523384571, -0.0011650749947875738, 0.04281635954976082, 0.04005895555019379, 0.0019639322999864817, -0.023016665130853653, -0.015060405246913433, 0.010081758722662926, -0.028033608570694923, -0.022020936012268066, -0.02918252721428871, 0.06502877920866013, -0.06545004993677139, -0.08057747781276703, 0.011632798239588737, 0.010263671167194843, -0.006615854799747467, 0.013700851239264011, 0.04247168079018593, 0.019684800878167152, -0.02521875873208046, -0.029488904401659966, -0.007156804203987122, -0.008377529680728912, 0.027612337842583656, -0.0032217586413025856, 0.027478298172354698, -0.01835397072136402, 0.0007838974124751985, -0.015261465683579445, -0.045880138874053955, 0.06391815841197968, 0.01934012584388256, 0.008966349996626377, -0.011651947163045406, -0.014208290725946426, -0.01800929568707943, 0.021523071452975273, -0.006922233384102583, -0.013404048047959805, -0.041744034737348557, -0.05246727168560028, -0.0027167131192982197, -0.013461493887007236, -0.05545445904135704, 0.0018610083498060703, -0.041207872331142426, 0.03454414755105972, 0.025965554639697075, 0.023591123521327972, -0.047182247042655945, 0.022154975682497025, -0.019665652886033058, 0.04649289697408676, 0.04875243455171585, -0.033873941749334335, -0.05514807999134064, 0.030752714723348618, 0.011556204408407211, -0.034352660179138184, -0.0562204048037529, 0.017262497916817665, 0.004437697120010853, 0.0867050364613533, -0.008142959326505661, -0.0017700523603707552, 0.03278247267007828, -0.03745473921298981, -0.007156804203987122, -0.008908904157578945, 0.008468485437333584, -0.004846999421715736, 0.015299762599170208, -0.05097367987036705, 0.02671235240995884, 0.007779134903103113, -0.03496541455388069, -0.004674661438912153, -0.005744591820985079, -0.00910039059817791, -0.05043751746416092, 0.007458395324647427, 0.10202395170927048, 0.03783771023154259, -0.023169854655861855, 0.010301968082785606, 0.028282539919018745, 0.0027454362716525793, 0.026999581605196, 0.006414794363081455, 0.03697602450847626, 0.004590886179357767, -0.045688655227422714, 0.03596114367246628, 0.021542219445109367, -0.03979087248444557, -0.005385554861277342, 0.032763320952653885, 0.07280312478542328, -0.016783783212304115, -0.04515249282121658, -0.038220684975385666, -0.07257334142923355, -0.13005755841732025, -0.0638415664434433, -0.023169854655861855, -0.025582581758499146, -0.01152748055756092, -0.03751218318939209, -0.026654906570911407, -0.0029081995598971844, 0.009603043086826801, 0.025525135919451714, -0.04951838031411171, -0.019837990403175354, -0.06050970032811165, -0.002664054511114955, 0.005519595462828875, 0.04392698034644127, 0.02782297320663929, 0.018564606085419655, -0.032820768654346466, 0.03452499583363533, 0.00833923276513815, 0.04201211407780647, -0.06533515453338623, -0.07441161572933197, 0.031231431290507317, -0.036765389144420624, -0.008569016121327877, 0.05549275875091553, 0.055760838091373444, -0.03569306433200836, -0.05357789248228073, 0.03389309346675873, -0.02604215033352375, 0.053692784160375595, -0.000996926100924611, 0.006989253219217062, -0.046033330261707306, 0.006989253219217062, 0.024337921291589737, -0.051816217601299286, 0.033203739672899246, -0.013518939726054668, 0.012839162722229958, -0.04825457185506821, -0.00678819278255105, -0.014533817768096924, 0.0121498117223382, 0.08976881951093674, -0.09153049439191818, 0.07831793278455734, -0.02410813793540001, 0.0587480254471302, -0.017875254154205322, -0.006548834498971701, -0.07460310310125351, -0.06790107488632202, 0.017990147694945335, 0.006764256861060858, -0.03592284768819809, -0.016467830166220665, 0.015242316760122776, 0.024088988080620766, -0.07387544959783554, 0.010368987917900085, 0.04534398019313812, -0.010474305599927902, 0.02001032792031765, 0.0016156664351001382, -0.009890272282063961, 0.02435706928372383, -0.009751444682478905, -0.059284187853336334, -0.027229364961385727, -0.028435729444026947, 0.0444631427526474, 0.02305496111512184, -0.06127564609050751, -0.0008090300252661109, 0.0023516921792179346, -0.03414202481508255, 0.045688655227422714, -0.018756091594696045, -0.020661382004618645, 0.004131319001317024, -0.01545295212417841, -0.004502323921769857, 0.019292254000902176, -0.032227158546447754, 0.06127564609050751, -0.07287972420454025, -0.032763320952653885, -0.018191207200288773, -0.040863197296857834, 0.012954054400324821, 0.026386825367808342, -0.022442204877734184, 0.05698635056614876, 0.010407285764813423, 0.030005918815732002, 0.030752714723348618, -0.016697613522410393, -0.07682434469461441, -0.023552827537059784, 0.06005013361573219, 0.02406984008848667, -0.03986746817827225, -0.04025043919682503, -0.0004829047538805753, 0.010570049285888672, 0.011738115921616554, 0.009660488925874233, -0.0028866573702543974, -0.00892326608300209, 0.05373108386993408, -0.06556494534015656, 0.02512301504611969, 0.01200619712471962, -0.001869385945610702, 0.039714276790618896, 0.017415687441825867, 0.010809406638145447, -0.04710565507411957, 0.030197404325008392, 0.009564745239913464, -0.022748583927750587, -0.015232742764055729, -0.008707843720912933, 0.03559732064604759, -0.007482330780476332, 0.006122777704149485, 0.0006091661052778363, -0.02811020240187645, -0.07169250398874283, -0.018306098878383636, -0.07801155745983124, -0.008961562998592854, 0.03195907920598984, -0.04323762655258179, 0.0024366644211113453, -0.027746379375457764, -0.04676097631454468, 0.018497586250305176, 0.05403745919466019, 0.031078241765499115, -0.021159246563911438, 0.051280055195093155, 0.038163237273693085, 0.006529686041176319, 0.016783783212304115, 0.02257624641060829, -0.024337921291589737, -0.02251880057156086, -0.046224817633628845, -0.019703950732946396, 0.01012963056564331, 0.0034754781518131495, 0.06491389125585556, -0.07644136995077133, -0.05775229632854462, -0.03640156239271164, 0.03408457711338997, -0.07670944929122925, 0.002522833179682493, 0.008789225481450558, -0.01997203193604946, 0.013758297078311443, 0.03793345391750336, 0.025084717199206352, 0.020603936165571213, -0.02835913561284542, 0.025908108800649643, 0.022940069437026978, -0.016429532319307327, 0.02001032792031765, -0.03475477918982506, 0.004217487759888172, -0.006347774062305689, -0.0072573344223201275, -0.014524242840707302, -0.03201652690768242, -0.02617619000375271, 0.0409780889749527, 0.001987868221476674, -0.03201652690768242, 0.02512301504611969, -0.0008628855575807393, -0.07215207070112228, -0.05380767583847046, 0.06054799631237984, 0.005079176742583513, 0.015347634442150593, 0.001037018490023911, 0.004107383079826832, -0.018947578966617584, 0.02073797583580017, 0.02826339192688465, 0.022499650716781616, -0.02946975640952587, 0.0530417300760746, 0.030254850164055824, -0.006381283979862928, 0.023131556808948517, 0.020182665437459946, 0.006084480322897434, 0.0072573344223201275, -0.02979528345167637, 0.049633271992206573, 0.02855062112212181, -0.016467830166220665, -0.02458685263991356, 0.03163355216383934, -0.0587480254471302, 0.05135665088891983, 0.03693772479891777, 0.0333569310605526, 0.03326118737459183, 0.10240692645311356, -0.04136105999350548, -0.007975408807396889, -0.054420433938503265, -0.0698925331234932, -0.035329241305589676, -0.005778102204203606, -0.010378562845289707, 0.07759028673171997, 0.025295352563261986, 0.01581677608191967, 0.010311542078852654, 0.05403745919466019, 0.038354724645614624 ]
715,074
pytorch_optimizer.optimizer.adamax
AdaMax
An Adaptive and Momental Bound Method for Stochastic Learning. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param adanorm: bool. whether to use the AdaNorm variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability.
class AdaMax(Optimizer, BaseOptimizer): r"""An Adaptive and Momental Bound Method for Stochastic Learning. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param adanorm: bool. whether to use the AdaNorm variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults) def __str__(self) -> str: return 'AdaMax' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['exp_avg'] = torch.zeros_like(p) state['exp_inf'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=p.dtype, device=p.device) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_inf'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) s_grad = self.get_adanorm_gradient( grad=grad, adanorm=group['adanorm'], exp_grad_norm=state.get('exp_grad_norm', None), r=group.get('r', None), ) exp_avg, exp_inf = state['exp_avg'], state['exp_inf'] exp_avg.mul_(beta1).add_(s_grad, alpha=1.0 - beta1) norm_buf = torch.cat( (exp_inf.mul_(beta2).unsqueeze(0), grad.abs().add_(group['eps']).unsqueeze_(0)), dim=0, ) torch.max(norm_buf, dim=0, keepdim=False, out=(exp_inf, exp_inf.new().long())) step_size: float = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'], bias_correction1=bias_correction1, ) p.addcdiv_(exp_avg, exp_inf, value=-step_size) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ -0.010334315709769726, -0.011400594376027584, -0.0035753194242715836, 0.01224957499653101, 0.014483201317489147, -0.009566189721226692, -0.057245537638664246, -0.07313360273838043, -0.042934153228998184, 0.009455014020204544, -0.04519810155034065, 0.016181163489818573, 0.01664607971906662, 0.05595185235142708, -0.030522868037223816, 0.06654389202594757, -0.00038469425635412335, 0.07333573698997498, 0.00344392959959805, 0.008676782250404358, -0.035980597138404846, -0.08182553946971893, -0.05619441717863083, 0.013634221628308296, -0.02362995594739914, -0.0005388246499933302, 0.03885095939040184, -0.00562954880297184, -0.05967119708657265, -0.010152391158044338, -0.0015817313687875867, -0.07135478407144547, 0.019162701442837715, -0.012471926398575306, 0.03705193102359772, -0.07050580531358719, 0.013785825110971928, 0.011026638559997082, -0.10713324695825577, -0.041680894792079926, 0.04176175221800804, -0.05198994278907776, 0.041094694286584854, -0.017353564500808716, 0.004641598090529442, 0.0024862997233867645, 0.007383097428828478, 0.04236816614866257, -0.03521247208118439, -0.016282232478260994, 0.02066863141953945, -0.08400863409042358, 0.07430600374937057, 0.024478934705257416, -0.013704969547688961, 0.07495284080505371, 0.049564287066459656, -0.007474059704691172, 0.036890219897031784, -0.09282185882329941, 0.027511008083820343, -0.0874854102730751, 0.04891744256019592, -0.033271946012973785, -0.019647832959890366, 0.006665506865829229, -0.07430600374937057, -0.02223520167171955, -0.005151997320353985, 0.0444704033434391, -0.0027212854474782944, -0.036950863897800446, 0.027409939095377922, 0.0031154549214988947, -0.02773336134850979, -0.015524213202297688, -0.04471296817064285, -0.014503415673971176, -0.014331597834825516, -0.03547525405883789, 0.017596129328012466, 0.022295843809843063, -0.01408903207629919, -0.009141700342297554, 0.03743599355220795, -0.07822748273611069, -0.014927905984222889, -0.013533152639865875, 0.00611468032002449, -0.06949511170387268, 0.037820056080818176, -0.02692480757832527, 0.05469859391450882, 0.05368790403008461, 0.018647247925400734, 0.03567739203572273, -0.018819065764546394, -0.04160004109144211, 0.02749079465866089, -0.02894618920981884, -0.0034262423869222403, 0.03284745663404465, 0.04600665345788002, 0.04620879143476486, 0.0077924276702106, -0.045157674700021744, -0.03139206022024155, -0.031877193599939346, 0.028016353026032448, -0.0526772141456604, -0.05190908908843994, 0.00636735325679183, -0.011036745272576809, -0.001308844774030149, -0.0241555143147707, 0.0121990405023098, 0.0011224986519664526, 0.029694100841879845, -0.00767114432528615, 0.05465816706418991, 0.058296654373407364, 0.022255415096879005, -0.05021112784743309, -0.002716232091188431, 0.03207933157682419, -0.016807790845632553, 0.031230350956320763, -0.006281444337219, -0.001255151815712452, -0.05417303740978241, -0.024822570383548737, 0.01000584103167057, -0.026116255670785904, 0.012876203283667564, 0.03304959461092949, -0.01681789755821228, 0.005442570894956589, 0.030623937025666237, -0.055062443017959595, 0.003691548714414239, 0.036122094839811325, 0.042934153228998184, 0.023225678130984306, -0.036748722195625305, 0.013138982467353344, -0.017697198316454887, 0.04026592895388603, 0.006180375348776579, -0.00021129757806193084, -0.013007593341171741, -0.008141116239130497, -0.022154346108436584, -0.00467444583773613, 0.02502470836043358, 0.03397943079471588, -0.004035183694213629, -0.03416135534644127, 0.01904141716659069, -0.030725006014108658, 0.0014857157366350293, -0.05190908908843994, -0.03533375635743141, -0.03640509024262428, -0.00705462321639061, -0.0033984484616667032, -0.010885141789913177, -0.006124787498265505, 0.04075105860829353, -0.028683409094810486, 0.02943132072687149, 0.008798064664006233, -0.06803971529006958, -0.014877371490001678, 0.022740546613931656, -0.058296654373407364, 0.09330698847770691, 0.0159487035125494, 0.018495645374059677, 0.021103227511048317, -0.01556464098393917, 0.02745036780834198, 0.0013126349076628685, -0.01894034817814827, -0.07847005128860474, -0.028824906796216965, 0.014068818651139736, -0.0077974810265004635, 0.017606236040592194, -0.03899245709180832, 0.021426647901535034, -0.0032771655824035406, -0.03159419819712639, 0.017565809190273285, -0.044429976493120193, -0.047098200768232346, 0.025065137073397636, 0.013826252892613411, 0.023023540154099464, 0.10527357459068298, 0.03333259001374245, -0.006377459969371557, 0.02213413268327713, 0.029390893876552582, -0.007110211066901684, 0.0171615332365036, 0.0006392620271071792, -0.016767363995313644, 0.006973767653107643, -0.029754742980003357, -0.0012399915140122175, -0.06856527924537659, 0.014655019156634808, 0.03058350831270218, 0.043217144906520844, 0.03715300187468529, -0.03199847787618637, 0.059994615614414215, 0.036081667989492416, 0.08344265073537827, 0.012401178479194641, -0.007312349043786526, -0.06480550765991211, 0.0241555143147707, 0.0012406231835484505, 0.09080047905445099, -0.035151831805706024, 0.04184260591864586, 0.006625079549849033, -0.0016651133773848414, -0.0020239087752997875, 0.007084943819791079, -0.048351455479860306, -0.0193244107067585, 0.002370070433244109, 0.08441291004419327, 0.051343102008104324, -0.0207798071205616, -0.007903603836894035, -0.036708295345306396, -0.012795347720384598, -0.013826252892613411, -0.013765610754489899, -0.035839103162288666, 0.021002158522605896, -0.028117423877120018, 0.0017522855196148157, 0.06027761101722717, 0.03446456417441368, -0.02613646909594536, -0.016514690592885017, -0.03185698017477989, -0.011289418675005436, -0.012876203283667564, 0.041094694286584854, -0.08053185790777206, 0.005076195579022169, 0.02613646909594536, 0.047623757272958755, 0.00502818776294589, -0.06710988283157349, 0.021042585372924805, -0.0389116033911705, -0.06900998204946518, 0.0627841204404831, -0.0012248310958966613, 0.056032706052064896, 0.06945468485355377, -0.03131120651960373, 0.026742883026599884, 0.02749079465866089, 0.07458899170160294, 0.07183991372585297, -0.07499326765537262, -0.025004494935274124, -0.0060995202511549, 0.06399695575237274, 0.014372025616466999, -0.021103227511048317, -0.019334519281983376, 0.006822164170444012, 0.03460605815052986, -0.0425298772752285, -0.06375438719987869, 0.00792381726205349, -0.006473475601524115, 0.04519810155034065, -0.026601387187838554, -0.003931588027626276, 0.03173569589853287, 0.039396733045578, 0.05769024044275284, 0.004174153786152601, 0.08950679004192352, 0.0033883415162563324, 0.06516935676336288, 0.007312349043786526, 0.018495645374059677, 0.014786409214138985, -0.017869016155600548, -0.0273088701069355, 0.03691043332219124, -0.018910028040409088, 0.03909352794289589, 0.005685136653482914, -0.052030373364686966, -0.031634628772735596, -0.020234033465385437, 0.03701150417327881, 0.07086965441703796, -0.004100878722965717, 0.002958797849714756, -0.003474250202998519, -0.002309428993612528, 0.017767947167158127, -0.011319738812744617, -0.07458899170160294, 0.007913710549473763, -0.044389549642801285, 0.02716737426817417, 0.060722313821315765, -0.04281286895275116, 0.0594286285340786, 0.018495645374059677, -0.05566886067390442, -0.019849970936775208, -0.040326569229364395, 0.046613067388534546, 0.01901109702885151, -0.027814215049147606, -0.04184260591864586, -0.0478258952498436, -0.0326048918068409, 0.023448031395673752, 0.013189516961574554, -0.0275514367967844, -0.01334112137556076, 0.023953376337885857, 0.020132964476943016, 0.01918291486799717, -0.047138627618551254, 0.030361156910657883, 0.06892912834882736, -0.02411508746445179, 0.060762740671634674, 0.008368520997464657, -0.05445602908730507, 0.043136291205883026, 0.02241712622344494, -0.003021965967491269, 0.007762106601148844, 0.00015081404126249254, -0.01741420477628708, -0.012067650444805622, 0.07446771115064621, 0.04725991189479828, -0.004411666188389063, -0.018333934247493744, -0.005472891498357058, 0.025428984314203262, -0.059024352580308914, -0.03179633989930153, 0.01130963210016489, -0.06407780945301056, 0.056032706052064896, 0.04677477851510048, 0.014260849915444851, -0.02098194509744644, -0.04596622660756111, 0.05546672269701958, -0.05437517538666725, 0.02227562852203846, -0.07260803878307343, 0.01563538983464241, 0.004623911343514919, -0.0487961620092392, 0.0018824120052158833, -0.028541913256049156, -0.001732071628794074, 0.045602377504110336, 0.03363579511642456, 0.033271946012973785, -0.010834607295691967, 0.015140150673687458, 0.02734929695725441, 0.04572365805506706, -0.016878539696335793, 0.03408050164580345, -0.026298178359866142, 0.02164900116622448, -0.042408592998981476, 0.03436349332332611, -0.0018508278299123049, -0.026985449716448784, -0.004333337768912315, -0.09540922939777374, 0.05101967975497246, 0.04701734334230423, 0.047381192445755005, -0.06456293910741806, -0.03395921736955643, -0.023084182292222977, 0.005366769153624773, 0.038648821413517, 0.021931994706392288, -0.016110414639115334, -0.06468421965837479, 0.06258198618888855, 0.07564011216163635, -0.020547347143292427, 0.10397988557815552, -0.020557453855872154, 0.019617512822151184, -0.04012443125247955, 0.04596622660756111, -0.003183676628395915, -0.010662789456546307, -0.016979608684778214, -0.018182329833507538, -0.014028390869498253, -0.005644709337502718, 0.03850732743740082, 0.012562888674438, 0.02373102493584156, 0.01108727976679802, 0.002300585387274623, -0.04099362716078758, -0.08271495252847672, -0.01758602261543274, -0.09136646240949631, -0.051626093685626984, 0.014745981432497501, -0.02550983987748623, -0.020092535763978958, -0.03444434702396393, -0.026318393647670746, 0.006473475601524115, -0.021608572453260422, 0.03818390518426895, 0.044146981090307236, -0.040366996079683304, 0.01821265183389187, -0.031432490795850754, 0.02908768691122532, 0.01911216601729393, -0.012835775502026081, -0.05251550301909447, 0.06302668899297714, -0.004179207142442465, -0.058215800672769547, -0.009369105100631714, 0.018889814615249634, -0.012522460892796516, 0.04774504154920578, 0.019961146637797356, 0.004904378205537796, -0.02842063084244728, 0.01737377792596817, -0.022255415096879005, 0.028137637302279472, 0.019991466775536537, 0.007110211066901684, 0.013826252892613411, -0.0171615332365036, 0.01723228208720684, -0.039113741368055344, 0.05142395570874214, 0.07281018048524857, -0.02026435360312462, -0.007848015055060387, 0.02261926420032978, -0.002444608835503459, -0.00452536903321743, 0.012957057915627956, -0.051585666835308075, -0.02710673213005066, -0.018920134752988815, 0.018354147672653198, 0.004219634924083948, 0.012118184939026833, 0.00243702856823802, 0.050332412123680115, -0.07115264236927032, 0.020213820040225983, 0.027531221508979797, 0.02484278380870819, 0.03982122614979744, 0.005700297188013792, -0.0026379034388810396, 0.0066200257278978825, 0.037132784724235535, -0.03304959461092949, -0.039699941873550415, 0.06375438719987869, 0.04430869221687317, -0.06177343428134918, -0.060237184166908264, 0.02918875589966774, 0.0010296414839103818, 0.07652951776981354, -0.037092357873916626, 0.02561090886592865, -0.029694100841879845, -0.08740455657243729, -0.03329215943813324, 0.04329800233244896, -0.030219661071896553, -0.0797637328505516, 0.008909241296350956, -0.03806262090802193, 0.018576500937342644, -0.037132784724235535, -0.020062215626239777, -0.0014339177869260311, 0.014129459857940674, 0.014432666823267937, -0.015786992385983467, 0.01908184587955475, 0.03145270422101021, 0.041680894792079926, -0.035980597138404846, 0.01278524100780487, 0.037193428725004196, -0.0454406663775444, -0.02623753808438778, 0.007004088256508112, 0.04851316660642624, -0.006594758480787277, 0.003997282590717077, 0.036506157368421555, 0.013563472777605057, 0.008242185227572918, -0.006094466429203749, 0.03444434702396393, 0.08065313845872879, -0.013745397329330444, 0.0009380475385114551, 0.002516620559617877, -0.020628202706575394, -0.09290271252393723, 0.0003941694740206003, -0.012825668789446354, 0.016848217695951462, -0.005710403900593519, -0.053283628076314926, -0.01921323500573635, 0.040043577551841736, -0.011511770077049732, 0.04548109322786331, -0.010470758192241192, -0.015049188397824764, -0.013472510501742363, 0.02686416544020176, -0.018475431948900223, 0.04823017492890358, 0.02265969105064869, -0.011713908053934574, -0.04681520536541939, 0.007469006348401308, -0.002371333772316575, 0.018010513857007027, -0.03319109231233597, -0.034242209047079086, 0.004906904883682728, -0.016635973006486893, 0.007893496192991734, 0.028764264658093452, 0.025732193142175674, -0.005614388268440962, -0.03450499102473259, 0.05004941672086716, -0.0297143142670393, -0.040710631757974625, -0.03373686596751213, -0.032544247806072235, -0.04345971345901489, 0.03185698017477989, -0.010288834571838379, -0.026075826957821846, 0.0038482057861983776, -0.013806038536131382, 0.0695759654045105, -0.04798760637640953, -0.028885548934340477, -0.032503820955753326, 0.03030051477253437, 0.05021112784743309, -0.05562843009829521, 0.05348576605319977, 0.007903603836894035, -0.0006155739538371563, -0.023650169372558594, 0.04766418784856796, -0.02484278380870819, -0.046410929411649704, -0.01556464098393917, 0.0541326105594635, -0.05037283897399902, 0.024418294429779053, 0.042408592998981476, 0.020335102453827858, -0.05312191694974899, -0.004484941251575947, 0.020385637879371643, 0.008818279020488262, 0.031533557921648026, -0.01306823454797268, 0.003835572162643075, -0.006877752020955086, 0.02526727505028248, -0.04620879143476486, -0.03808283433318138, -0.008156276308000088, -0.0061854287050664425, -0.011895832605659962, -0.0398818664252758, -0.02561090886592865, -0.018738210201263428, 0.02098194509744644, 0.09330698847770691, 0.018152009695768356, 0.010915462858974934, 0.01082450058311224, -0.005189897958189249, 0.005548693705350161, -0.0023864940740168095, -0.03416135534644127, 0.0343230664730072, -0.08032971620559692, -0.005096409469842911, 0.010430331341922283, 0.005136836785823107, 0.02425658330321312, 0.0010043741203844547, -0.019334519281983376, 0.003979595843702555, 0.01803072728216648, 0.05663912370800972, 0.0155848553404212, -0.006675614044070244, -0.046370502561330795, -0.0014137040125206113, 0.018616927787661552, -0.006230909842997789, 0.001289262669160962, 0.008823332376778126, 0.0004946069093421102, -0.004090771544724703, 0.018920134752988815, 0.0227203331887722, 0.03228146955370903, -0.008717210032045841, 0.014553950168192387, -0.05126224458217621, -0.008277558721601963, 0.01845521666109562, -0.008520125411450863, 0.013593793846666813, 0.06589705497026443, 0.011400594376027584, -0.022538408637046814, 0.004032657016068697, -0.028683409094810486, 0.004479887895286083, -0.012148506008088589, -0.02026435360312462, 0.00044344065827317536, -0.035879530012607574, 0.04297458007931709, 0.009505548514425755, 0.022599050775170326, -0.07859133183956146, -0.03840625658631325, -0.04297458007931709, 0.00584684731438756, 0.012987378984689713, 0.0030826074071228504, 0.026945021003484726, -0.042206455022096634, -0.005096409469842911, -0.014058711938560009, 0.04135747626423836, 0.04236816614866257, 0.007782320491969585, -0.005882221274077892, 0.02613646909594536, -0.029552605003118515, -0.007817694917321205, 0.022336270660161972, 0.016999822109937668, -0.029310038313269615, -0.04208517074584961, -0.03759770467877388, 0.01764666475355625, -0.01942547969520092, 0.04499596357345581, -0.06953553855419159, -0.02981538325548172, 0.00034963589860126376, -0.0037395565304905176, -0.055062443017959595, 0.006210695952177048, 0.006731201894581318, -0.042125601321458817, 0.0002353015006519854, 0.028501486405730247, 0.053768761456012726, 0.015018868260085583, 0.028097208589315414, 0.007342670112848282, -0.019506335258483887, 0.018576500937342644, 0.03982122614979744, 0.0005675661377608776, 0.011198456399142742, 0.05126224458217621, 0.007413418497890234, 0.05247507616877556, -0.011016531847417355, -0.042206455022096634, 0.07212290912866592, -0.030219661071896553, 0.022113919258117676, 0.026318393647670746, -0.000495870248414576, -0.03957865759730339, -0.05275806784629822, -0.01502897497266531, -0.018333934247493744, 0.036566801369190216, -0.042449019849300385, 0.026459889486432076, 0.02532791532576084, 0.002453452441841364, 0.012876203283667564, -0.03112928196787834, 0.009945198893547058, 0.05983290448784828, 0.0025014602579176426, -0.002632850082591176, 0.032887883484363556, -0.010177657939493656, 0.028157850727438927, -0.009237715974450111, -0.01065268274396658, -0.0024862997233867645, 0.02860255539417267, -0.04746204987168312, -0.023933162912726402, 0.01212829165160656, -0.035030547529459, 0.05041326582431793, -0.004788148682564497, 0.027713146060705185, 0.05142395570874214, 0.06553320586681366, -0.06747373193502426, 0.030078163370490074, -0.058296654373407364, -0.061854287981987, -0.10519271343946457, 0.020759591832756996, -0.04430869221687317, 0.0696163922548294, 0.005862007848918438, -0.01768709160387516, -0.0005934651126153767, 0.023427816107869148, 0.0038103049155324697 ]
715,076
pytorch_optimizer.optimizer.adamax
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ 0.0011603797320276499, -0.030011694878339767, -0.020719213411211967, 0.004395985975861549, -0.034601274877786636, -0.021739119663834572, -0.08861854672431946, -0.04366711154580116, -0.04381820559501648, 0.03582894057035446, -0.023797819390892982, 0.05515050143003464, 0.02015259861946106, 0.08635208755731583, -0.05779470503330231, 0.04321381822228432, 0.02532767876982689, 0.03560229390859604, -0.02291012369096279, -0.008829746395349503, -0.004785533528774977, -0.010114072822034359, -0.040645163506269455, 0.10841228812932968, 0.02102140709757805, 0.035658955574035645, -0.0021578578744083643, 0.00841422937810421, -0.042987171560525894, 0.019397111609578133, 0.01624295674264431, -0.019907064735889435, -0.004636797588318586, 0.055717118084430695, 0.0269141998142004, -0.012399419210851192, -0.015185275115072727, 0.015364703722298145, -0.09368030726909637, 0.03167376294732094, 0.07184675335884094, -0.02417556196451187, 0.07796619087457657, -0.048086706548929214, -0.025554325431585312, -0.03080495446920395, 0.04102290794253349, 0.03197595849633217, -0.015629123896360397, -0.028122978284955025, 0.030181679874658585, -0.031182698905467987, 0.04177839308977127, -0.017971131950616837, -0.04861554503440857, 0.051599714905023575, 0.0342235304415226, 0.0753975361585617, 0.03954970836639404, 0.003609808161854744, 0.01424091774970293, -0.04068293794989586, 0.019718192517757416, -0.006964639760553837, 0.0026536458171904087, 0.005448945332318544, -0.0880897045135498, -0.019642645493149757, 0.020568115636706352, 0.0322781540453434, 0.1026705950498581, 0.00557643361389637, -0.019793741405010223, 0.026460908353328705, -0.010066855698823929, 0.007007135543972254, -0.08370788395404816, -0.04646240919828415, -0.04657573252916336, -0.004530556965619326, 0.05564156919717789, 0.04128732904791832, -0.020020388066768646, -0.04933325573801994, 0.010850672610104084, -0.06327197700738907, -0.04140065237879753, -0.0616476833820343, 0.018141115084290504, 0.0015924235340207815, -0.056585926562547684, -0.03890754655003548, 0.015336372889578342, -0.017952244728803635, 0.0528084933757782, 0.015789663419127464, 0.02855738252401352, -0.054357241839170456, 0.028292963281273842, -0.012550516985356808, -0.025516550987958908, 0.0039120027795434, -0.042307235300540924, -0.002712668152526021, 0.012852711603045464, -0.024968823418021202, -0.0616099089384079, -0.03373246639966965, 0.04056961461901665, -0.05711476504802704, -0.032806992530822754, 0.07279110699892044, -0.02574319764971733, 0.041929490864276886, -0.06153436005115509, 0.014590329490602016, 0.01722508855164051, 0.00962772872298956, -0.003305252641439438, 0.031560443341732025, 0.047104571014642715, 0.03112603724002838, -0.029218433424830437, 0.038680899888277054, 0.04566914960741997, 0.0014023714466020465, 0.0037018831353634596, 0.005755861289799213, 0.012163329869508743, -0.022815687581896782, 0.03607447072863579, -0.012663839384913445, -0.021361375227570534, -0.025516550987958908, 0.031560443341732025, -0.02181466855108738, 0.012937703169882298, 0.054546114057302475, -0.03220260515809059, 0.008867520838975906, 0.06387636810541153, 0.014297578483819962, 0.044762566685676575, -0.021455811336636543, -0.01642238348722458, 0.0029440356884151697, -0.004910661373287439, -0.027839671820402145, -0.003711326513439417, 0.04034297168254852, 0.037906527519226074, 0.004048934672027826, -0.008442560210824013, 0.0489177405834198, 0.010784567333757877, -0.04374266043305397, 0.024987710639834404, -0.023344527930021286, -0.009792991913855076, 0.0161296334117651, -0.02483661286532879, 0.009717443026602268, 0.023231204599142075, -0.03454461321234703, 0.0018863549921661615, 0.01188946608453989, -0.03856757655739784, 0.011067874729633331, -0.0004178783856332302, -0.011823360808193684, 0.0006321295513771474, -0.09511572867631912, -0.043402690440416336, 0.016970111057162285, -0.027329718694090843, 0.05129752308130264, 0.013107688166201115, -0.003031388856470585, -0.010727905668318272, -0.016951223835349083, 0.06999580562114716, -0.006969361566007137, -0.010633470490574837, -0.0782683864235878, 0.02415667474269867, 0.0027291944716125727, -0.031182698905467987, 0.04616021364927292, -0.041325103491544724, 0.026479795575141907, 0.05462166294455528, 0.0087966937571764, 0.013523205183446407, 0.018056122586131096, -0.02583763189613819, 0.017640605568885803, 0.03386467322707176, -0.024704402312636375, 0.021663570776581764, 0.06077887490391731, 0.06976916640996933, 0.043591562658548355, 0.012031120248138905, -0.01154949702322483, 0.02232462167739868, -0.0029157050885260105, -0.02181466855108738, 0.0006309491582214832, -0.009717443026602268, -0.03354359418153763, 0.0020941137336194515, -0.0254221148788929, 0.05431946739554405, 0.021588021889328957, -0.0046509625390172005, -0.0381520614027977, -0.004948435351252556, 0.02935064397752285, 0.026083165779709816, 0.00822535715997219, 0.09080945700407028, -0.014609216712415218, -0.00973633024841547, -0.008815580978989601, 0.049446579068899155, 0.009519128128886223, 0.025950955227017403, -0.046726830303668976, -0.08015710115432739, 0.025610987097024918, -0.01721564494073391, -0.04374266043305397, -0.03309030085802078, -0.013513761572539806, 0.022834574803709984, 0.001673874445259571, -0.026536457240581512, 0.036244455724954605, -0.09337811172008514, -0.04215613752603531, 0.047104571014642715, 0.04219391196966171, -0.0027268335688859224, -0.02043590508401394, 0.015629123896360397, -0.006327197887003422, 0.026933087036013603, 0.017650049179792404, -0.0753219872713089, -0.04736899212002754, -0.04313826933503151, -0.016667917370796204, 0.0033973276149481535, 0.050050970166921616, -0.04468701779842377, 0.012021676637232304, 0.043780431151390076, 0.006322476081550121, 0.02914288453757763, -0.006218596827238798, 0.004778450820595026, -0.0012595374137163162, -0.0264231339097023, 0.06924032419919968, 0.015912430360913277, 0.021795781329274178, -0.0007779148290865123, -0.0019855124410241842, 0.032334815710783005, -0.010274614207446575, 0.11982013285160065, 0.04030519723892212, -0.019415998831391335, -0.0023254812695086002, -0.007923162542283535, -0.0076020811684429646, 0.003796318778768182, -0.033203624188899994, -0.013098244555294514, 0.050239842385053635, 0.024515531957149506, -0.041249554604291916, 0.0074887583032250404, 0.0171117652207613, 0.005260073579847813, 0.008452002890408039, -0.020473679527640343, 0.018027791753411293, -0.007016579154878855, 0.019510434940457344, 0.018547190353274345, 0.008159252814948559, 0.07131791114807129, 0.020114824175834656, 0.09322701394557953, -0.016875676810741425, 0.04903106391429901, -0.012890485115349293, 0.052959591150283813, -0.0161485206335783, 0.04366711154580116, -0.04472479224205017, 0.07362214475870132, -0.005260073579847813, -0.055226050317287445, -0.03639555349946022, 0.040078550577163696, 0.026555344462394714, 0.03199484571814537, 0.047595638781785965, 0.033977996557950974, 0.031560443341732025, 0.05753028392791748, 0.019529322162270546, 0.039360836148262024, -0.07494424283504486, 0.008957235142588615, -0.05654815211892128, 0.023552285507321358, 0.03730213642120361, -0.011341738514602184, 0.03154155611991882, 0.007153511047363281, -0.0332791730761528, -0.05556602030992508, -0.05703921988606453, 0.03339249640703201, 0.018566075712442398, -0.034676823765039444, -0.007280999328941107, -0.0332413986325264, -0.00630831066519022, 0.010170734487473965, -0.025289904326200485, -0.05420614406466484, 0.0025356009136885405, 0.005803079344332218, 0.05227965489029884, 0.002724472666159272, -0.02377893216907978, 0.08763641119003296, -0.02562987431883812, -0.012947146780788898, 0.05363953113555908, -0.006865481846034527, -0.029407305642962456, 0.010208508931100368, -0.013664859347045422, 0.035866715013980865, -0.009368030354380608, -0.00641219038516283, 0.01021795254200697, -0.003109298413619399, 0.08937403559684753, 0.020908083766698837, -0.011105649173259735, -0.02124805375933647, 0.01947266049683094, 0.030653858557343483, -0.047897834330797195, -0.023212317377328873, 0.0036924395244568586, -0.04423372447490692, 0.04982432350516319, 0.008031764067709446, -0.0019607231952250004, -0.015260824002325535, -0.029180658981204033, 0.04174061864614487, -0.0010559102520346642, 0.03210816904902458, -0.06735160946846008, -0.020077049732208252, -0.01257884781807661, 0.0229856725782156, -0.0061005521565675735, -0.029331756755709648, 0.004247249569743872, 0.05303514003753662, -0.007172398269176483, -0.0018344152485951781, 0.0010376132559031248, 0.06368749588727951, 0.014514781534671783, 0.009580510668456554, -0.029955033212900162, 0.00699297059327364, 0.016573481261730194, 0.05938122421503067, -0.007422653026878834, -0.007908997125923634, -0.008050651289522648, 0.01866995543241501, -0.01593131758272648, -0.08061039447784424, 0.03669774904847145, 0.039285290986299515, 0.04449814558029175, -0.05363953113555908, -0.04185394197702408, -0.010992325842380524, -0.03747212141752243, -0.007762622088193893, 0.02476106397807598, -0.01105843111872673, -0.0023266617208719254, 0.018632180988788605, 0.03932306542992592, 0.010756236501038074, 0.06882480531930923, -0.004209475591778755, 0.0017706711078062654, -0.025308791548013687, -0.0023774211294949055, -0.046915702521800995, -0.029917258769273758, 0.008508664555847645, -0.01595020480453968, 0.021663570776581764, -0.01731952466070652, 0.02532767876982689, 0.012654395774006844, 0.059418998658657074, 0.028141865506768227, 0.06504737585783005, 0.06474518030881882, -0.02015259861946106, 0.007710682228207588, -0.011530609801411629, -0.054243918508291245, -0.04491366073489189, -0.014883080497384071, -0.03375135362148285, -0.03775542974472046, 0.02377893216907978, 0.010387936607003212, -0.009962975978851318, 0.0037089656107127666, 0.00915082823485136, -0.02181466855108738, 0.020303694531321526, -0.0645940825343132, 0.007082684431225061, -0.040154099464416504, -0.06640724837779999, -0.03463904932141304, 0.023231204599142075, -0.001024038065224886, -0.03726436197757721, -0.023457851260900497, 0.02483661286532879, 0.019529322162270546, 0.0469912514090538, -0.007672908250242472, -0.02300455793738365, -0.02817963995039463, -0.0018462197622284293, -0.024949936196208, 0.037226587533950806, -0.008291462436318398, 0.05273294448852539, -0.01996372640132904, -0.019510434940457344, -0.00005976015017949976, -0.0381520614027977, 0.036244455724954605, 0.07056242227554321, -0.0269141998142004, -0.005118419881910086, 0.0029888928402215242, -0.002476578578352928, 0.0047831726260483265, 0.03701883181929588, -0.02151247300207615, -0.04835112392902374, 0.009868539869785309, -0.0008788430714048445, -0.02425111085176468, -0.025516550987958908, -0.005944733042269945, 0.005784192122519016, -0.04245833307504654, 0.006043890491127968, 0.06829596310853958, 0.020662551745772362, -0.00565198203548789, -0.05345065891742706, 0.01644127070903778, 0.015515800565481186, 0.04884219169616699, -0.08008155226707458, -0.022551266476511955, 0.029199546203017235, 0.062063202261924744, -0.03856757655739784, -0.01947266049683094, 0.02680087834596634, 0.023212317377328873, 0.03152266889810562, 0.0014188977656885982, 0.012304984033107758, -0.051901910454034805, -0.04816225543618202, -0.03182486072182655, 0.025988729670643806, -0.042420558631420135, -0.0889962911605835, -0.0023691579699516296, -0.015043621882796288, 0.010548477992415428, -0.030578309670090675, -0.0061099957674741745, -0.028614044189453125, 0.007115737069398165, -0.03052164800465107, -0.027461927384138107, -0.04491366073489189, 0.05046648532152176, -0.02015259861946106, -0.03594226390123367, 0.054243918508291245, 0.05530159920454025, 0.04336491599678993, -0.02935064397752285, 0.005038149654865265, 0.051108650863170624, 0.02258904092013836, -0.0381520614027977, 0.08521886169910431, 0.023646721616387367, 0.000014100813132245094, -0.06602950394153595, -0.046613506972789764, 0.04234500974416733, 0.0026701719034463167, 0.044271498918533325, 0.016582924872636795, -0.019142134115099907, -0.05314846336841583, -0.036924395710229874, 0.022381283342838287, 0.02064366452395916, 0.02219241112470627, -0.04438482224941254, -0.013702633790671825, 0.00007768819341436028, -0.024477757513523102, 0.05197745934128761, -0.04234500974416733, -0.03237259015440941, 0.028406286612153053, -0.024024466052651405, -0.048955515027046204, 0.029785048216581345, 0.021399149671196938, -0.0161390770226717, 0.000543596048373729, -0.015156944282352924, 0.0616476833820343, 0.01975596696138382, -0.012984921224415302, -0.020020388066768646, -0.00797982420772314, 0.009589954279363155, -0.014316465705633163, 0.012106668204069138, 0.012276653200387955, -0.040154099464416504, -0.06470740586519241, 0.01653570681810379, -0.007016579154878855, -0.0028472391422837973, 0.0019441968761384487, 0.005751139484345913, -0.037415459752082825, 0.016856789588928223, -0.008551160804927349, 0.017055103555321693, -0.046311311423778534, -0.032920315861701965, 0.008192304521799088, -0.03363803029060364, -0.10720351338386536, -0.08559659868478775, 0.01977485418319702, -0.006563287694007158, -0.05224188044667244, 0.0156480111181736, -0.004433760419487953, 0.019680418074131012, -0.0039120027795434, 0.03981412947177887, -0.02749970182776451, -0.026838652789592743, -0.04393152892589569, 0.014401458203792572, -0.012767719104886055, -0.021984651684761047, 0.025119921192526817, 0.060023389756679535, -0.07653076201677322, -0.028198527172207832, 0.0185849629342556, 0.01732896827161312, -0.004495143890380859, -0.01090733427554369, -0.023703383281826973, 0.052090782672166824, 0.02457219362258911, -0.04755786433815956, 0.006355528719723225, -0.029199546203017235, 0.004067821893841028, -0.01732896827161312, -0.00398991210386157, -0.05605708435177803, -0.042798299342393875, 0.03216483071446419, 0.09277372062206268, 0.004658045247197151, 0.0016372805694118142, -0.02672532945871353, -0.017886139452457428, 0.04283607378602028, -0.08129032701253891, -0.010029081255197525, 0.011077318340539932, -0.12087780982255936, 0.011407843790948391, -0.027348605915904045, 0.03905864432454109, -0.021210279315710068, -0.0077437348663806915, -0.04646240919828415, -0.0036263344809412956, 0.023231204599142075, 0.03148489445447922, 0.036848846822977066, 0.034393515437841415, -0.013929279521107674, 0.02523324266076088, 0.0469912514090538, -0.020700326189398766, -0.0037821533624082804, -0.005878628231585026, -0.019510434940457344, -0.029803935438394547, -0.011077318340539932, 0.05148639529943466, 0.041627295315265656, -0.036452215164899826, 0.04381820559501648, -0.04869109392166138, -0.00699297059327364, -0.004171701148152351, -0.0005214626435190439, 0.02043590508401394, 0.03737768530845642, 0.042118363082408905, -0.026064278557896614, -0.024100013077259064, -0.024421095848083496, 0.03851091489195824, 0.0027055854443460703, -0.0016750548966228962, -0.003064441494643688, -0.03981412947177887, -0.001428341376595199, -0.03222149237990379, -0.016412939876317978, -0.05148639529943466, -0.015496913343667984, -0.03598003834486008, 0.003428019117563963, 0.021115843206644058, 0.0254410021007061, -0.06179878115653992, -0.055414922535419464, 0.025006597861647606, -0.015374146401882172, 0.04090958461165428, 0.04510253295302391, 0.0013244620058685541, -0.05360175669193268, 0.008485055528581142, -0.005963620264083147, -0.061874330043792725, 0.04529140517115593, -0.013768738135695457, -0.03539453446865082, -0.06640724837779999, -0.006837151478976011, 0.027915220707654953, 0.0011326392414048314, 0.0312960222363472, -0.036943282932043076, -0.06092997267842293, -0.06432966142892838, 0.020077049732208252, -0.013079357333481312, -0.009566345252096653, -0.010180178098380566, -0.05129752308130264, 0.05926790460944176, -0.04419595003128052, 0.02532767876982689, 0.014174812473356724, 0.006497182417660952, 0.01820722036063671, -0.04820002615451813, 0.03042721189558506, 0.05938122421503067, 0.035658955574035645, -0.07033577561378479, -0.011502278968691826, 0.03943638503551483, 0.04831334948539734, -0.0039167245849967, -0.04933325573801994, 0.014703652821481228, -0.038680899888277054, -0.0014696570578962564, 0.029482854530215263, 0.010302945040166378, 0.0156480111181736, -0.08159252256155014, -0.03688662126660347, 0.011615602299571037, 0.03875644877552986, -0.030011694878339767, 0.04389375448226929, 0.026460908353328705, -0.027934107929468155, -0.009164993651211262, -0.008806137368083, -0.02855738252401352, 0.047897834330797195, 0.0009390459163114429, 0.057076990604400635, 0.07547308504581451, 0.011030100286006927, 0.03433685377240181, -0.04362933710217476, -0.016072971746325493, 0.00474303774535656, 0.04578247293829918, -0.014599773101508617, 0.00009908380161505193, 0.06489627808332443, -0.0027528032660484314, 0.009089444763958454, -0.027820784598588943, 0.015685785561800003, 0.05046648532152176, 0.0460091158747673, -0.044158175587654114, 0.02426999807357788, -0.02867070585489273, -0.060514453798532486, -0.09405805170536041, -0.0038765892386436462, -0.06542511284351349, 0.05734141170978546, 0.020983632653951645, 0.020095936954021454, 0.006497182417660952, 0.0401163250207901, 0.004107956774532795 ]
715,079
pytorch_optimizer.optimizer.adamax
__str__
null
def __str__(self) -> str: return 'AdaMax'
(self) -> str
[ 0.02024509757757187, 0.010780856013298035, 0.03221432492136955, -0.015927623957395554, 0.003206043504178524, -0.0407295785844326, -0.001404247130267322, -0.030572831630706787, 0.044080961495637894, -0.0644286498427391, -0.05102311447262764, 0.014132239855825901, -0.0032594776712358, 0.011516108177602291, 0.02356228232383728, 0.006895130965858698, 0.012174416333436966, -0.03539472073316574, 0.037617579102516174, 0.05813625827431679, 0.01508122868835926, 0.02022799849510193, -0.03707041218876839, -0.022074678912758827, -0.0007304436294361949, 0.061316654086112976, 0.029324611648917198, 0.004492735955864191, -0.0456540621817112, -0.006151328794658184, -0.03559990972280502, -0.04107155650854111, 0.014525515027344227, -0.006318043451756239, -0.033736128360033035, -0.019526943564414978, -0.028247380629181862, 0.0017195080872625113, -0.08241669088602066, -0.0380963459610939, 0.03816474229097366, -0.025426063686609268, -0.0018434750381857157, -0.009720724076032639, -0.023220304399728775, -0.05451129004359245, -0.00013512137229554355, 0.012618987821042538, -0.018842987716197968, -0.03462526947259903, -0.007720152847468853, -0.02886294201016426, -0.009404394775629044, 0.03542891889810562, -0.043567996472120285, 0.08248508721590042, 0.02424624003469944, -0.002891851356253028, -0.0015100465388968587, 0.011772592552006245, -0.05786267668008804, -0.04568826034665108, 0.07673986256122589, -0.0721573531627655, -0.004148620646446943, 0.029888875782489777, -0.013379888609051704, 0.0602223239839077, -0.0016222581034526229, 0.06942152976989746, 0.019424349069595337, -0.044080961495637894, 0.013354239985346794, 0.0171159990131855, 0.031735558062791824, -0.01508977822959423, -0.06675410270690918, 0.02956399694085121, 0.0027358238585293293, -0.033804524689912796, 0.04394417256116867, 0.0003724354028236121, 0.003233829280361533, -0.01467085536569357, -0.006100032478570938, -0.1111428439617157, 0.0004712883965112269, -0.03455687686800957, -0.027033358812332153, -0.008365636691451073, -0.026451997458934784, -0.0006401400314643979, -0.0016927910037338734, 0.06494162231683731, -0.07961247116327286, -0.004809065256267786, 0.027289843186736107, -0.040900565683841705, 0.059264786541461945, -0.00028079599724151194, 0.02084355801343918, 0.009062416851520538, 0.0134739326313138, 0.01371331699192524, -0.04989458620548248, -0.04592764377593994, -0.0037532083224505186, 0.018176129087805748, -0.0025135381147265434, 0.03471076488494873, -0.04784271866083145, 0.003922060132026672, 0.03659164533019066, 0.01565404236316681, 0.008391284383833408, -0.014491316862404346, 0.013781712390482426, 0.0006262472015805542, 0.04455973207950592, 0.005843549035489559, 0.014055294916033745, 0.019903117790818214, -0.0524936206638813, -0.01829582266509533, 0.030931908637285233, 0.09035058319568634, -0.021271031349897385, -0.03789116069674492, 0.006886581890285015, -0.01826162450015545, 0.028007997199892998, 0.0034432909451425076, -0.05310918018221855, 0.013157603330910206, 0.06552298367023468, -0.02956399694085121, 0.05868342146277428, 0.0033235985320061445, 0.03730979934334755, 0.08829871565103531, -0.0314277783036232, 0.051399290561676025, 0.0656597763299942, -0.008305789902806282, -0.004514109343290329, -0.013892855495214462, 0.0156283937394619, 0.06825880706310272, -0.018689095973968506, -0.0365232490003109, 0.0015784421702846885, 0.00878883432596922, 0.026024524122476578, 0.0006262472015805542, 0.016782568767666817, -0.002515675500035286, -0.017449427396059036, -0.02811058983206749, 0.029222019016742706, -0.04664579778909683, 0.0028063568752259016, -0.00032594776712358, -0.0288800410926342, 0.007309779524803162, -0.0021587361115962267, -0.01904817298054695, 0.010883449576795101, 0.04955260828137398, -0.017526371404528618, 0.03477916121482849, -0.038882896304130554, -0.08829871565103531, -0.0919920802116394, 0.028247380629181862, -0.01638074591755867, 0.02891423925757408, 0.009036768227815628, 0.06931893527507782, 0.06767744570970535, 0.0040994612500071526, -0.0038344282656908035, 0.023733271285891533, -0.03542891889810562, 0.00721146073192358, 0.04066118225455284, -0.06754065304994583, 0.024536920711398125, 0.04308922588825226, -0.002949560061097145, -0.035634104162454605, 0.00335993361659348, 0.020039910450577736, -0.03871190920472145, -0.04791111499071121, -0.016098612919449806, -0.030521534383296967, -0.004591054283082485, -0.017868349328637123, 0.03192364424467087, 0.0007983048562891781, -0.022792832925915718, 0.06076948717236519, -0.021852392703294754, 0.01774865761399269, 0.07037907093763351, 0.0007208254537545145, 0.030350545421242714, -0.030384743586182594, -0.027204347774386406, -0.0482872910797596, 0.018141932785511017, 0.04394417256116867, -0.00048598277498967946, 0.017902547493577003, 0.02547735907137394, -0.062445178627967834, 0.05964095890522003, 0.011575954966247082, 0.008382735773921013, 0.04165291786193848, 0.01889428310096264, -0.02951269969344139, 0.014234833419322968, -0.014328877441585064, 0.037549182772636414, -0.02479340322315693, 0.019868921488523483, 0.013961250893771648, -0.01569679006934166, -0.010105449706315994, -0.005740955471992493, -0.08221150934696198, -0.043567996472120285, 0.02742663398385048, -0.0031547469552606344, 0.0872727781534195, -0.02949560061097145, 0.005681109149008989, -0.09404394775629044, -0.027956699952483177, -0.0010344834299758077, 0.000039941958675626665, -0.011669998988509178, 0.04120834544301033, 0.0037489335518330336, -0.030350545421242714, -0.020039910450577736, 0.0064505599439144135, -0.03017955645918846, -0.035668302327394485, 0.0551268495619297, -0.03683102875947952, -0.008053581230342388, 0.00024846839369274676, -0.020723866298794746, -0.02157881110906601, -0.05406671762466431, 0.005369054153561592, 0.0009479201980866492, -0.02159591019153595, -0.04401256516575813, -0.020621271803975105, -0.05454548820853233, 0.06230838969349861, -0.003353521693497896, 0.038951292634010315, -0.007134515792131424, 0.033035073429346085, 0.026486195623874664, -0.010891999118030071, 0.08330583572387695, 0.02482760138809681, -0.04527788609266281, -0.003394131548702717, -0.012593339197337627, 0.001875535468570888, 0.019321756437420845, 0.03860931470990181, -0.09465950727462769, -0.0403876006603241, -0.04455973207950592, -0.04770592972636223, -0.029187820851802826, 0.012234262190759182, -0.005270735826343298, -0.031188393011689186, 0.035634104162454605, -0.029136523604393005, -0.026332305744290352, 0.039053887128829956, 0.05259621515870094, -0.0072926804423332214, -0.004997153300791979, 0.023237403482198715, 0.03267599642276764, -0.0027059006970375776, 0.09247084707021713, 0.03515533730387688, -0.018723294138908386, 0.010977493599057198, -0.030384743586182594, -0.04821889474987984, 0.036967821419239044, -0.040866367518901825, -0.0721573531627655, -0.002081790938973427, -0.015448855236172676, -0.0067369663156569, 0.04438874125480652, 0.03539472073316574, -0.022365359589457512, 0.05806786194443703, 0.028538063168525696, 0.06771164387464523, -0.019133668392896652, 0.0916500985622406, 0.029734985902905464, 0.00816044956445694, 0.022690238431096077, 0.04445713758468628, -0.03580509498715401, 0.025921931490302086, -0.04674839228391647, -0.03455687686800957, 0.006523230113089085, -0.009866064414381981, -0.048458281904459, 0.025785140693187714, 0.021903689950704575, -0.03002566657960415, -0.06559138000011444, -0.03549731522798538, 0.01626105234026909, -0.043499600142240524, -0.01826162450015545, 0.02672557905316353, 0.019903117790818214, 0.008100603707134724, -0.0040951864793896675, -0.007232834585011005, 0.051501885056495667, -0.000768916099332273, -0.02956399694085121, 0.05577661097049713, 0.029888875782489777, 0.02870905213057995, -0.03069252334535122, -0.022519249469041824, -0.001323027303442359, -0.03219722583889961, -0.007514966186136007, -0.008994021452963352, 0.004129384178668261, 0.007835570722818375, 0.014183537103235722, -0.002581933746114373, 0.013807361014187336, 0.03322315961122513, -0.04469652101397514, 0.04763753339648247, -0.039703644812107086, -0.07414082437753677, -0.00944714155048132, 0.028469666838645935, -0.029940173029899597, 0.012704482302069664, 0.0006246441625989974, -0.02424624003469944, 0.09123972803354263, -0.05550302565097809, -0.014576811343431473, 0.02823028340935707, 0.016064416617155075, 0.004497010726481676, -0.04712456464767456, 0.08754636347293854, 0.012960965745151043, 0.016705624759197235, -0.0301966555416584, -0.005629812367260456, 0.0472271591424942, -0.013550877571105957, 0.008245944045484066, 0.04384157806634903, 0.018842987716197968, -0.01205472368746996, 0.03329155594110489, -0.030316349118947983, -0.02628100849688053, -0.002930323826149106, 0.0028362798038870096, -0.029170721769332886, -0.030418941751122475, -0.025733843445777893, -0.04298663139343262, -0.05570821464061737, -0.02156171202659607, -0.016628678888082504, -0.05413511395454407, 0.020450282841920853, 0.01708180084824562, -0.011285273358225822, 0.013097756542265415, 0.007720152847468853, -0.05286979675292969, 0.018569404259324074, 0.050646938383579254, 0.035052742809057236, -0.050783731043338776, 0.02821318432688713, 0.0031889446545392275, -0.0035993182100355625, -0.05033915862441063, -0.03997722640633583, 0.06432605534791946, -0.011909383349120617, -0.01694501005113125, -0.03525793179869652, -0.020535778254270554, -0.04886865243315697, -0.012832723557949066, 0.04736395180225372, 0.012943866662681103, 0.013850108720362186, 0.0054331752471625805, -0.026571689173579216, 0.011601603589951992, 0.03334285318851471, 0.017817052081227303, -0.016517536714673042, -0.04910803958773613, -0.008857229724526405, 0.01908237114548683, -0.04924482852220535, 0.020894855260849, -0.02958109602332115, -0.02886294201016426, -0.02551155723631382, -0.03871190920472145, -0.019236261025071144, 0.06815621256828308, -0.06603594869375229, 0.005283559672534466, 0.04774012789130211, 0.011268174275755882, -0.06306073814630508, -0.033719029277563095, -0.0018285135738551617, 0.0163721963763237, -0.02222856879234314, -0.013790261931717396, 0.043362807482481, 0.02038188837468624, -0.029940173029899597, 0.10532922297716141, -0.01706470176577568, -0.02687946893274784, -0.04770592972636223, 0.039019688963890076, 0.002515675500035286, -0.05485326796770096, 0.04134513810276985, -0.0002638306759763509, 0.02033059112727642, -0.01471360307186842, 0.04982619360089302, 0.008344262838363647, 0.020723866298794746, -0.018159031867980957, -0.00006298539665294811, 0.025101184844970703, -0.01962953619658947, -0.01626105234026909, -0.050202369689941406, -0.01471360307186842, -0.007147340103983879, -0.01771445944905281, 0.005676834378391504, 0.022143075242638588, -0.001966373296454549, 0.007190087344497442, -0.057896871119737625, 0.016235405579209328, 0.049347423017024994, 0.005420350935310125, 0.05088632553815842, -0.02166430465877056, 0.002795669948682189, -0.04691937938332558, -0.0010964669054374099, 0.021459119394421577, 0.023972656577825546, -0.04596184194087982, 0.025426063686609268, -0.02946140244603157, 0.030641227960586548, 0.02935880981385708, -0.04445713758468628, -0.10348253697156906, 0.033804524689912796, -0.008412658236920834, -0.013610723428428173, -0.055297840386629105, -0.0625135749578476, 0.04329441115260124, 0.010515823028981686, -0.008882878348231316, -0.0228270310908556, -0.014140789397060871, -0.0380963459610939, -0.0338900201022625, -0.059811949729919434, 0.007779999170452356, 0.043431203812360764, 0.01894558034837246, 0.01043032854795456, 0.014773448929190636, 0.00035266479244455695, 0.022091777995228767, 0.023288700729608536, -0.01278997678309679, -0.033804524689912796, -0.07270451635122299, -0.06473643332719803, -0.024639513343572617, 0.04274724796414375, -0.009592482820153236, 0.019133668392896652, -0.03419779986143112, 0.10245660692453384, 0.023305799812078476, 0.03990883007645607, 0.02612711861729622, 0.09329159557819366, -0.024468524381518364, 0.06589915603399277, -0.0913081243634224, 0.028367074206471443, 0.04045599699020386, 0.04042179882526398, -0.01438872329890728, -0.023220304399728775, -0.0006647197296842933, -0.0391564778983593, 0.018107734620571136, -0.014978636056184769, -0.009977207519114017, 0.06261616945266724, 0.06206900253891945, -0.0015517250867560506, 0.014303228817880154, 0.019458547234535217, -0.04401256516575813, -0.05488746613264084, 0.03192364424467087, 0.06213739886879921, -0.0072713070549070835, -0.00367412599734962, 0.04137933626770973, 0.01957823894917965, -0.02149331569671631, -0.029752084985375404, 0.07366205751895905, 0.04202909395098686, -0.015534349717199802, 0.03594188764691353, -0.02301511913537979, 0.05057854577898979, 0.006459109019488096, -0.002224994357675314, -0.010379032231867313, -0.08563128858804703, -0.010909097269177437, 0.012713031843304634, -0.07571392506361008, 0.06760904937982559, 0.014021097682416439, 0.0033513843081891537, -0.027990898117423058, 0.07256773114204407, -0.02166430465877056, 0.07147339731454849, -0.024468524381518364, -0.03194074332714081, 0.011370767839252949, 0.0377543680369854, -0.0002986963954754174, -0.009404394775629044, 0.024348832666873932, -0.050031378865242004, -0.057281311601400375, 0.03980623558163643, -0.035736698657274246, -0.006065834313631058, 0.01210602093487978, -0.006228274200111628, -0.017432328313589096, 0.007933889515697956, 0.023442590609192848, 0.009335999377071857, 0.004655175376683474, 0.03997722640633583, -0.02419494278728962, 0.0690111592411995, 0.09520667046308517, 0.05940157547593117, 0.03594188764691353, -0.0017034778138622642, -0.03672843426465988, 0.00685665849596262, -0.04004562273621559, 0.015337713062763214, -0.016731273382902145, -0.023733271285891533, -0.027973799034953117, -0.029033930972218513, 0.02811058983206749, -0.03158166632056236, -0.01821032725274563, 0.026058722287416458, -0.011182679794728756, 0.0749615728855133, -0.025921931490302086, 0.029136523604393005, 0.003725422779098153, 0.022433755919337273, -0.023322898894548416, -0.009925911203026772, 0.04695357754826546, -0.021954987198114395, 0.025648348033428192, -0.005920493975281715, -0.019526943564414978, -0.07311489433050156, -0.061214059591293335, 0.004210603889077902, 0.04312342405319214, 0.0368652269244194, -0.009677977301180363, 0.021151337772607803, -0.05184386298060417, 0.02021089941263199, -0.027341140434145927, 0.03601028025150299, -0.021442020311951637, 0.018603602424263954, -0.08057001233100891, -0.023442590609192848, -0.05375893786549568, -0.030265051871538162, -0.025802239775657654, -0.025255074724555016, -0.004449988715350628, 0.01469650398939848, 0.010780856013298035, -0.048116303980350494, 0.010968944057822227, 0.027939600870013237, -0.024519821628928185, -0.03549731522798538, -0.013559427112340927, -0.05871761962771416, -0.002120263408869505, -0.05177546665072441, 0.08453695476055145, 0.0018424063455313444, -0.01833002083003521, -0.021151337772607803, -0.00919920764863491, -0.03720720484852791, -0.00849815271794796, 0.02345968969166279, 0.019971514120697975, -0.04626962170004845, -0.01904817298054695, 0.027204347774386406, 0.030966106802225113, 0.03536052256822586, 0.06760904937982559, -0.04103735834360123, 0.029700787737965584, -0.011464811861515045, -0.005343405995517969, -0.03462526947259903, 0.029085228219628334, 0.044730719178915024, -0.08652043342590332, 0.03881449997425079, 0.019783426076173782, -0.022553447633981705, -0.052049048244953156, -0.05040755495429039, -0.03224852308630943, -0.007916790433228016, 0.06651471555233002, 0.035668302327394485, -0.01956113986670971, 0.025682546198368073, -0.03069252334535122, 0.004449988715350628, 0.015611294656991959, 0.06388148665428162, -0.016235405579209328, 0.018689095973968506, 0.0014320327900350094, -0.030983205884695053, -0.006822460796684027, 0.04144773259758949, -0.011336570605635643, -0.0368652269244194, 0.06210320070385933, 0.05762328952550888, -0.044320348650217056, 0.025306370109319687, 0.03553151339292526, -0.03871190920472145, 0.0024686534889042377, 0.05570821464061737, -0.00509547209367156, 0.04736395180225372, -0.014747800305485725, 0.022604744881391525, 0.01211457047611475, 0.0004250679339747876, 0.014098042622208595, 0.02675977721810341, -0.038985490798950195, -0.02345968969166279, -0.029615294188261032, -0.054648082703351974, -0.009395845234394073, 0.012465097941458225, -0.016218306496739388, 0.01084070187062025, -0.0012824174482375383, 0.04042179882526398, 0.04955260828137398, 0.01345683354884386, 0.07338847219944, 0.024690810590982437, 0.010763756930828094, 0.029256217181682587, 0.027375338599085808, -0.003922060132026672, -0.01964663527905941, 0.024742107838392258, 0.007373900152742863, 0.04657740145921707, -0.060564301908016205, 0.02091195434331894, 0.05786267668008804, 0.04579085111618042, 0.029734985902905464, 0.04777432605624199, 0.023904260247945786, -0.04835568740963936, 0.032368216663599014, -0.0025413238909095526, 0.013268745504319668, -0.0421316884458065, 0.027837008237838745, -0.01568824052810669, 0.03522373363375664, -0.02345968969166279, -0.038301534950733185, 0.025340568274259567, -0.003498862264677882, -0.010738108307123184 ]
715,100
pytorch_optimizer.optimizer.adamax
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_inf'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) s_grad = self.get_adanorm_gradient( grad=grad, adanorm=group['adanorm'], exp_grad_norm=state.get('exp_grad_norm', None), r=group.get('r', None), ) exp_avg, exp_inf = state['exp_avg'], state['exp_inf'] exp_avg.mul_(beta1).add_(s_grad, alpha=1.0 - beta1) norm_buf = torch.cat( (exp_inf.mul_(beta2).unsqueeze(0), grad.abs().add_(group['eps']).unsqueeze_(0)), dim=0, ) torch.max(norm_buf, dim=0, keepdim=False, out=(exp_inf, exp_inf.new().long())) step_size: float = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'], bias_correction1=bias_correction1, ) p.addcdiv_(exp_avg, exp_inf, value=-step_size) return loss
(self)
[ -0.011457234621047974, -0.01902206987142563, -0.02874828688800335, 0.059868358075618744, -0.00494439946487546, -0.001222949824295938, -0.026242615655064583, -0.04923359304666519, -0.02629999630153179, 0.014814071357250214, -0.025974832475185394, 0.0060250903479754925, 0.014421962201595306, 0.0855371505022049, -0.026950323954224586, 0.041926976293325424, 0.010185271501541138, 0.05872071906924248, 0.01991148851811886, -0.008688562549650669, -0.022225888445973396, -0.06595082581043243, -0.017434507608413696, 0.051452357321977615, -0.06304348260164261, -0.012681379914283752, 0.05654020980000496, -0.005814690142869949, -0.021116506308317184, 0.004468608647584915, -0.01993061602115631, -0.06484144926071167, 0.01929941587150097, 0.0014285680372267962, 0.04120014235377312, -0.05868246406316757, -0.0007519408245570958, 0.012614434584975243, -0.07513191550970078, -0.03504116088151932, -0.01888817921280861, -0.019739342853426933, -0.008774635381996632, 0.0012026270851492882, 0.007177508436143398, 0.006082471925765276, -0.027218105271458626, 0.03540457785129547, -0.008769853971898556, -0.003261199686676264, -0.0010962317464873195, -0.04471955820918083, 0.06388508528470993, -0.019739342853426933, 0.025381887331604958, 0.08584319055080414, 0.05944755673408508, -0.0657595545053482, 0.023297015577554703, -0.03829279541969299, 0.05359461158514023, -0.07042661309242249, 0.03230595961213112, -0.0039043540600687265, 0.01119901705533266, -0.010835599154233932, -0.06373206526041031, -0.02614697813987732, 0.01876385323703289, 0.04334239661693573, 0.013322143815457821, 0.004803335759788752, 0.005838599521666765, -0.0022343043237924576, -0.04751214012503624, -0.01915596053004265, -0.03791024908423424, -0.051873158663511276, 0.029073450714349747, -0.030106322839856148, -0.0004996999632567167, 0.0008756703464314342, -0.02656777948141098, 0.015072288922965527, 0.0006849953788332641, -0.04188872128725052, -0.019605452194809914, -0.04028203338384628, -0.004430354107171297, -0.009879235178232193, 0.030431486666202545, -0.007493108045309782, 0.02075308933854103, 0.030775777995586395, 0.051375847309827805, 0.05279126763343811, -0.04020552337169647, -0.023526541888713837, -0.03647570312023163, -0.031808651983737946, 0.020982615649700165, 0.04223301261663437, 0.022914469242095947, 0.0417739599943161, 0.03787199407815933, -0.04579068720340729, -0.008922872133553028, -0.03660959750413895, 0.03997599706053734, -0.0581851564347744, -0.016038216650485992, -0.014488907530903816, -0.03578712418675423, -0.015110543929040432, -0.0308140330016613, -0.014727998524904251, -0.0055755991488695145, 0.008114744909107685, -0.03465861454606056, 0.04028203338384628, 0.04938661307096481, -0.017147598788142204, -0.05038123205304146, -0.000708306732121855, 0.00945365335792303, 0.03397003188729286, 0.05057250335812569, 0.01841956190764904, 0.02019839733839035, -0.06824610382318497, -0.0027399815153330564, 0.0028762633446604013, -0.007163162808865309, -0.00793781690299511, 0.02890130504965782, -0.010022689588367939, -0.013905525207519531, 0.016277307644486427, -0.003997599706053734, 0.010032253339886665, -0.004380145110189915, 0.00818647164851427, 0.000815299921669066, 0.013704689219594002, 0.030316723510622978, 0.030163705348968506, 0.041812215000391006, 0.04896581172943115, 0.00482724467292428, -0.0006837999098934233, 0.019815852865576744, 0.014594106934964657, 0.02643388696014881, 0.023258760571479797, 0.005006562918424606, 0.025783561170101166, -0.012700507417321205, 0.03777635842561722, -0.0249802153557539, -0.025764433667063713, -0.023641306906938553, -0.022952724248170853, -0.03274588659405708, 0.00453794514760375, 0.01696588844060898, 0.005513435695320368, -0.00882723554968834, 0.05149061232805252, -0.03947868570685387, 0.014508035033941269, 0.0023323316127061844, -0.023086614906787872, 0.056654974818229675, 0.0290925782173872, -0.030890541151165962, 0.14092972874641418, 0.010099198669195175, 0.016812870278954506, -0.02513323351740837, 0.001306631718762219, 0.0018338270019739866, -0.007775235455483198, -0.02197723463177681, -0.05095504969358444, 0.009023290127515793, 0.027619779109954834, 0.006163762882351875, 0.005130890291184187, 0.023928215727210045, 0.0006216362817212939, -0.0027160723693668842, -0.0024231860879808664, 0.05057250335812569, -0.008817671798169613, -0.008176907896995544, 0.03108181431889534, 0.02519061602652073, 0.019328106194734573, 0.10351678729057312, 0.004286899697035551, -0.01451759785413742, -0.010395671240985394, 0.03548108786344528, 0.0013365179765969515, -0.035576723515987396, -0.0012719634687528014, -0.0198541060090065, 0.06002137437462807, -0.006828435696661472, -0.0007603089907206595, -0.05975359305739403, 0.003882835851982236, 0.025381887331604958, 0.06461191922426224, 0.04093235731124878, -0.07348697632551193, -0.000504481780808419, 0.008956344798207283, 0.0650327205657959, 0.000030147864890750498, -0.04020552337169647, -0.07314268499612808, 0.03928741440176964, -0.011638944037258625, 0.05860595777630806, -0.02526712417602539, 0.02792581543326378, -0.05676973983645439, -0.02075308933854103, 0.0015505043556913733, -0.00592467188835144, -0.031043559312820435, 0.006871472112834454, -0.005259999539703131, 0.04491082951426506, 0.023870833218097687, -0.053403340280056, -0.030584504827857018, -0.003423781367018819, -0.0002479073591530323, -0.03569148853421211, -0.0328797772526741, -0.030584504827857018, 0.03917264938354492, -0.013685561716556549, 0.03534719720482826, 0.06235489994287491, 0.021001743152737617, -0.017482325434684753, 0.03664784878492355, -0.026663415133953094, -0.03253548592329025, -0.02306748740375042, 0.030909668654203415, -0.042271267622709274, -0.02622348815202713, 0.061857592314481735, 0.03993774205446243, 0.05045773833990097, -0.04506384953856468, 0.03636094182729721, -0.05210268497467041, -0.050495993345975876, 0.048085957765579224, -0.040435049682855606, 0.017061525955796242, 0.04016726836562157, -0.042194757610559464, 0.05738181248307228, 0.04923359304666519, 0.07547620683908463, 0.08316536992788315, -0.05738181248307228, -0.033721376210451126, 0.003053190652281046, 0.033721376210451126, 0.011246834881603718, 0.012996979989111423, -0.012824835255742073, -0.03345359489321709, 0.06947024911642075, -0.06181933730840683, -0.08255329728126526, -0.0038374087307602167, -0.05554559454321861, 0.036399196833372116, -0.016870252788066864, -0.0053269448690116405, 0.060633447021245956, 0.00232874508947134, 0.0444900318980217, 0.008535544387996197, 0.09563635289669037, 0.003383135888725519, 0.0664098858833313, 0.0053986720740795135, -0.016678979620337486, 0.0006365794688463211, -0.032133813947439194, 0.017405815422534943, 0.07513191550970078, -0.01972021535038948, -0.01129465363919735, -0.0053604175336658955, -0.02561141550540924, -0.018046580255031586, 0.004045417532324791, 0.012384907342493534, 0.01567479781806469, -0.02383257821202278, -0.004525990225374699, -0.005857726559042931, -0.007693944498896599, 0.01696588844060898, -0.009372362866997719, -0.10451140254735947, -0.0018816451774910092, -0.05998311936855316, 0.02415774203836918, 0.06208711862564087, -0.019873233512043953, 0.038790103048086166, 0.025094978511333466, 0.03565323352813721, -0.032133813947439194, -0.011763270944356918, 0.0745963528752327, 0.03565323352813721, -0.02855701558291912, -0.02622348815202713, -0.07417555153369904, -0.006158981006592512, 0.0574965737760067, 0.03243985027074814, -0.03829279541969299, -0.014727998524904251, 0.04445177689194679, -0.005785999353975058, 0.024903705343604088, -0.06139853969216347, 0.06258442997932434, 0.02677817828953266, -0.027677159756422043, 0.014737562276422977, 0.022895343601703644, -0.02677817828953266, 0.02903519570827484, 0.02128865197300911, 0.040702831000089645, 0.025439269840717316, -0.005546908359974623, -0.029589887708425522, -0.014144616201519966, 0.04640275985002518, 0.025018470361828804, 0.03469686955213547, -0.008879835717380047, -0.0198541060090065, 0.023660434409976006, -0.08025802671909332, 0.02107825130224228, 0.01129465363919735, -0.05321206524968147, 0.09387664496898651, 0.09693700820207596, 0.005259999539703131, -0.03873272240161896, -0.027638906612992287, 0.04479606822133064, -0.009381926618516445, 0.02027490735054016, -0.04016726836562157, -0.0014727998059242964, 0.022780578583478928, -0.04299810528755188, -0.02388996072113514, -0.03504116088151932, -0.010022689588367939, 0.0670984610915184, 0.039402175694704056, 0.03245897963643074, -0.04640275985002518, -0.029207341372966766, 0.029895924031734467, 0.04284508526325226, -0.031674761325120926, 0.024387270212173462, -0.05034297704696655, 0.028231851756572723, -0.06721322983503342, 0.06342602521181107, 0.011074689216911793, 0.00017408805433660746, 0.008894180878996849, -0.058299921452999115, 0.032286833971738815, 0.046670541167259216, 0.03157912194728851, -0.03681999444961548, -0.01908901520073414, -0.030316723510622978, -0.003976081497967243, 0.006598908454179764, 0.01904119737446308, -0.010366980917751789, -0.07383126765489578, 0.004384926985949278, 0.04120014235377312, 0.02746676094830036, 0.06813133507966995, -0.005556472111493349, 0.014039416797459126, -0.04479606822133064, 0.006881035398691893, 0.011438108049333096, -0.032420724630355835, -0.027371123433113098, -0.023507416248321533, -0.009381926618516445, 0.002315595280379057, 0.043801449239254, 0.015856506302952766, 0.030240215361118317, 0.029742905870079994, -0.04211825132369995, -0.04471955820918083, -0.031866032630205154, -0.019060324877500534, -0.051873158663511276, 0.007617435418069363, -0.03997599706053734, -0.051184576004743576, -0.027141597121953964, -0.020772214978933334, -0.03169388696551323, 0.01007050834596157, -0.017893562093377113, 0.04334239661693573, 0.0458671934902668, 0.018371744081377983, -0.015693925321102142, 0.00986010767519474, -0.009176308289170265, -0.014766252599656582, -0.005852944683283567, -0.034754250198602676, 0.06013613939285278, -0.041812215000391006, -0.0979316234588623, 0.02239803411066532, 0.003428563242778182, 0.000627613568212837, 0.05661671981215477, -0.008291671983897686, 0.02595570683479309, 0.004279726650565863, -0.051987919956445694, -0.031196577474474907, -0.011179889552295208, 0.024425525218248367, 0.014402834698557854, 0.013589926064014435, -0.02513323351740837, 0.016411198303103447, -0.014087234623730183, -0.019069889560341835, 0.07172726094722748, 0.05321206524968147, -0.014058543369174004, 0.004262990318238735, -0.007129690144211054, -0.024042978882789612, 0.029532505199313164, -0.023641306906938553, -0.021212143823504448, -0.024081233888864517, -0.03794850409030914, -0.00568079948425293, 0.037489451467990875, -0.042615558952093124, -0.008750726468861103, -0.06120726466178894, 0.0369538851082325, 0.030890541151165962, -0.011514617130160332, 0.040435049682855606, 0.008372962474822998, 0.00992705300450325, 0.040626320987939835, 0.06870515644550323, -0.04571417719125748, -0.06139853969216347, 0.04766515642404556, 0.03507941588759422, -0.04831548407673836, -0.05263824760913849, 0.03718341514468193, 0.015493089333176613, 0.08201773464679718, -0.03240159526467323, 0.014201998710632324, 0.04544639587402344, -0.05168188363313675, -0.018438689410686493, 0.005197835620492697, -0.03586363047361374, -0.05122283101081848, 0.0034213904291391373, -0.05003694072365761, 0.017444070428609848, 0.0019306588219478726, -0.020829597488045692, -0.008100398816168308, -0.0003831431386061013, -0.01786486990749836, -0.039708212018013, 0.05087853968143463, 0.06373206526041031, 0.0438397042453289, -0.04709133878350258, 0.02752414159476757, 0.0017561225686222315, -0.010118326172232628, -0.004705308470875025, -0.011438108049333096, 0.04973090440034866, -0.00023909087758511305, -0.011246834881603718, -0.0032635906245559454, 0.006082471925765276, -0.021479925140738487, 0.02046617865562439, 0.055966392159461975, 0.07471112161874771, -0.011725016869604588, -0.04743563011288643, -0.019194215536117554, -0.06595082581043243, -0.1286882758140564, -0.03527068719267845, -0.0001460695784771815, -0.016258180141448975, 0.019624579697847366, -0.011954544112086296, -0.02964726835489273, 0.0229335967451334, 0.01685112528502941, 0.020313160493969917, -0.032822396606206894, -0.010147017426788807, -0.03565323352813721, 0.02792581543326378, -0.02561141550540924, 0.023105742409825325, 0.015569598414003849, 0.021193016320466995, -0.025860069319605827, 0.03314755856990814, 0.008377744816243649, 0.004884626716375351, -0.044681303203105927, -0.06086297333240509, 0.013341271318495274, -0.034754250198602676, 0.00568079948425293, 0.02696945145726204, 0.03538545221090317, -0.028729159384965897, -0.04777992144227028, 0.02492283284664154, -0.02423425205051899, 0.006010744720697403, -0.013848143629729748, -0.017635343596339226, -0.029800286516547203, 0.0029766815714538097, 0.020045379176735878, -0.03978472203016281, 0.0015505043556913733, -0.026453014463186264, 0.03890486806631088, -0.05149061232805252, -0.006441108416765928, -0.015789560973644257, -0.0070149265229702, 0.06495621055364609, -0.1061180979013443, 0.04089410603046417, -0.006350253708660603, 0.023660434409976006, -0.03613141551613808, 0.010864289477467537, -0.08438951522111893, -0.0745963528752327, 0.013465598225593567, 0.012298834510147572, -0.04621148481965065, 0.006570217199623585, 0.023603051900863647, 0.019069889560341835, -0.0527147576212883, -0.002094436204060912, 0.047129593789577484, 0.020791342481970787, -0.011791962198913097, 0.0032564178109169006, -0.027505014091730118, 0.04211825132369995, 0.018256979063153267, -0.033032797276973724, -0.04471955820918083, -0.036169666796922684, 0.007129690144211054, -0.0008977862307801843, -0.08094660937786102, -0.01835261657834053, -0.017893562093377113, 0.0002822766837198287, 0.05837642773985863, 0.005986835807561874, -0.03548108786344528, -0.0021267132833600044, -0.03932566940784454, -0.014307198114693165, 0.029800286516547203, -0.025381887331604958, 0.0540919192135334, -0.06813133507966995, -0.018304798752069473, -0.025840941816568375, -0.05026646703481674, 0.042883340269327164, 0.021862469613552094, -0.03448646888136864, 0.05826166644692421, 0.013255198486149311, 0.04299810528755188, 0.030565377324819565, -0.02807883359491825, -0.0636938139796257, -0.02287621609866619, 0.05554559454321861, -0.018046580255031586, -0.018782978877425194, -0.01600952446460724, -0.0035026813857257366, -0.020007124170660973, 0.03521330654621124, 0.045981958508491516, 0.0017644907347857952, -0.01047218032181263, 0.06530050188302994, -0.029895924031734467, 0.02739025093615055, 0.02895868755877018, 0.002950381487607956, 0.03230595961213112, 0.03465861454606056, 0.01628687046468258, -0.03848406672477722, -0.003751335898414254, -0.02691206894814968, -0.014402834698557854, -0.013216943480074406, -0.02758152410387993, 0.004181699361652136, -0.0019198997179046273, -0.02689294144511223, -0.026319123804569244, -0.030431486666202545, -0.0882914811372757, -0.036169666796922684, -0.06181933730840683, -0.004473390523344278, 0.02383257821202278, -0.023813452571630478, 0.027964068576693535, -0.029685523360967636, -0.03452472388744354, 0.023258760571479797, 0.02628086879849434, 0.034333448857069016, -0.024463778361678123, 0.04770341143012047, 0.035576723515987396, -0.008956344798207283, 0.005996399093419313, 0.024329887703061104, -0.0077130720019340515, 0.007124908268451691, -0.04800944775342941, -0.02415774203836918, 0.025554032996296883, 0.02786843292415142, 0.02712246961891651, -0.07375475764274597, -0.028308359906077385, -0.023717815056443214, 0.00920499861240387, -0.06254617124795914, 0.012843961827456951, -0.030240215361118317, -0.01637294329702854, -0.00011453947809059173, 0.042003486305475235, 0.03094792366027832, 0.046670541167259216, -0.024272507056593895, 0.014326325617730618, 0.028633523732423782, 0.010233089327812195, 0.023526541888713837, -0.03025934100151062, 0.020294034853577614, -0.0029455996118485928, 0.005785999353975058, -0.018457816913723946, -0.030106322839856148, -0.06254617124795914, 0.049807410687208176, -0.016650289297103882, -0.03169388696551323, 0.03087141364812851, 0.003583972342312336, -0.04475781321525574, -0.02027490735054016, 0.03517505154013634, -0.005618635565042496, 0.016879815608263016, 0.0107877803966403, 0.017157161608338356, 0.0044470904394984245, -0.007770453579723835, 0.011897162534296513, -0.018180470913648605, -0.004602499306201935, 0.058567702770233154, 0.02232152409851551, -0.02890130504965782, 0.005814690142869949, 0.013303016312420368, 0.03435257822275162, 0.015760870650410652, -0.03634181246161461, 0.03756595775485039, 0.041812215000391006, -0.017357997596263885, -0.020045379176735878, 0.0290925782173872, -0.07712115347385406, 0.07035010308027267, 0.046441011130809784, 0.030852288007736206, 0.03932566940784454, 0.0732191950082779, -0.060212645679712296, 0.0191750880330801, -0.06224013864994049, -0.07253061234951019, -0.06667766720056534, -0.020427925512194633, -0.03507941588759422, 0.07933992147445679, 0.03634181246161461, 0.020848724991083145, 0.020638324320316315, 0.06392333656549454, 0.024329887703061104 ]
715,115
pytorch_optimizer.optimizer.adamod
AdaMod
An Adaptive and Momental Bound Method for Stochastic Learning. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. beta3 is for smoothing coefficient for adaptive learning rates. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability.
class AdaMod(Optimizer, BaseOptimizer): r"""An Adaptive and Momental Bound Method for Stochastic Learning. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. beta3 is for smoothing coefficient for adaptive learning rates. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.99, 0.9999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'adam_debias': adam_debias, 'eps': eps, } super().__init__(params, defaults) def __str__(self) -> str: return 'AdaMod' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) state['exp_avg_lr'] = torch.zeros_like(p) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2, beta3 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) state['exp_avg_lr'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) exp_avg, exp_avg_sq = state['exp_avg'], state['exp_avg_sq'] exp_avg.mul_(beta1).add_(grad, alpha=1.0 - beta1) exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) de_nom = exp_avg_sq.sqrt().add_(group['eps']) step_size = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'] * bias_correction2_sq, bias_correction1=bias_correction1, ) step_size = torch.full_like(de_nom, fill_value=step_size) step_size.div_(de_nom) exp_avg_lr = state['exp_avg_lr'] exp_avg_lr.mul_(beta3).add_(step_size, alpha=1.0 - beta3) torch.min(step_size, exp_avg_lr, out=step_size) step_size.mul_(exp_avg) p.add_(-step_size) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.99, 0.9999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ -0.0059460848569869995, -0.017543895170092583, -0.007172587793320417, 0.007486572489142418, 0.0037947993259876966, -0.006073641590774059, -0.06589753925800323, -0.06032430753111839, -0.03614748641848564, 0.02248915284872055, -0.042309436947107315, 0.003853671485558152, 0.024078700691461563, 0.06299317628145218, -0.04258417338132858, 0.0509440153837204, 0.01149968896061182, 0.06683949381113052, -0.004776001442223787, -0.005543792154639959, -0.032222680747509, -0.0721379816532135, -0.04470356926321983, 0.04293740540742874, -0.0399153046309948, -0.003392506390810013, 0.047568678855895996, -0.01153893768787384, -0.04599875584244728, -0.00530339777469635, 0.01722009852528572, -0.07319767773151398, 0.005681160371750593, -0.003767816349864006, 0.03402809053659439, -0.07154925912618637, 0.020350132137537003, 0.010292810387909412, -0.10455690324306488, -0.02443193458020687, 0.03913034126162529, -0.0424664281308651, 0.05294566974043846, -0.03351786732673645, -0.009061401709914207, -0.0013552855234593153, 0.000922330014873296, 0.05271017923951149, -0.025923360139131546, -0.016866864636540413, 0.0347934290766716, -0.08002685010433197, 0.07017558068037033, 0.024294566363096237, -0.0030024785082787275, 0.06244370713829994, 0.056831229478120804, -0.01243183109909296, 0.051218751817941666, -0.07170625030994415, 0.03495042026042938, -0.08508985489606857, 0.0415637232363224, -0.025001030415296555, -0.018564345315098763, -0.006559336557984352, -0.08430489152669907, -0.01672949641942978, 0.0070352195762097836, 0.025275766849517822, 0.007820181548595428, -0.0339495949447155, 0.02708118036389351, 0.008443244732916355, -0.04387935996055603, -0.012618259526789188, -0.044350337237119675, -0.039758309721946716, -0.008369654417037964, -0.0424271821975708, 0.02266577072441578, 0.007859429344534874, -0.020330509170889854, -0.011038524098694324, 0.031104108318686485, -0.06436686217784882, -0.009758055210113525, -0.01713179051876068, 0.02513839863240719, -0.0704503133893013, 0.024373061954975128, -0.024588925763964653, 0.045959509909152985, 0.036873575299978256, 0.03571575880050659, 0.03997417539358139, -0.015934722498059273, -0.06083453446626663, 0.005558510310947895, -0.020585620775818825, -0.00295096542686224, 0.01765182614326477, 0.03181057423353195, 0.06511257588863373, 0.008806289173662663, -0.05023755133152008, -0.04113199561834335, -0.02698305994272232, 0.025609375908970833, -0.06939061731100082, -0.04780416935682297, 0.015120325610041618, -0.032281551510095596, -0.006260069552809, -0.021920057013630867, 0.019653478637337685, 0.011744990013539791, 0.02945568971335888, -0.014413859695196152, 0.053181156516075134, 0.05777318403124809, 0.03177132457494736, -0.05310266092419624, 0.010920779779553413, 0.04964882880449295, -0.017435962334275246, 0.031123733147978783, 0.006995971314609051, 0.011568373069167137, -0.06315016746520996, -0.016592128202319145, 0.015453933738172054, -0.028709976002573967, 0.011725366115570068, 0.024647798389196396, -0.007206929847598076, -0.0012479665456339717, 0.03926771134138107, -0.041720714420080185, 0.014099875465035439, 0.021115470677614212, 0.01766163855791092, 0.004852044861763716, -0.028415614739060402, 0.013570025563240051, -0.021959304809570312, 0.030672378838062286, 0.006485746242105961, -0.005229807458817959, -0.002676228992640972, 0.010003356263041496, -0.009184052236378193, -0.007623940706253052, 0.025393512099981308, 0.017249533906579018, -0.009115368127822876, -0.040347032248973846, 0.02859223075211048, -0.02384321205317974, -0.000020179802959319204, -0.04066101834177971, -0.038816358894109726, -0.020075395703315735, 0.0021377941593527794, -0.00037347007310017943, 0.00025403936160728335, -0.004157843999564648, 0.032026439905166626, -0.03208531066775322, 0.013501341454684734, 0.014884836971759796, -0.05475107952952385, 0.005480014253407717, 0.02937719225883484, -0.0347934290766716, 0.09089856594800949, 0.01681780442595482, 0.011274012736976147, 0.015424498356878757, -0.04725469648838043, 0.025844864547252655, 0.006716328673064709, -0.03838462755084038, -0.05883288010954857, -0.02833711914718151, 0.024216068908572197, -0.005033567082136869, 0.004184827208518982, -0.02910245582461357, 0.027375539764761925, -0.001395760104060173, -0.031005987897515297, 0.026767194271087646, -0.035087790340185165, -0.04309440031647682, 0.0322619266808033, 0.006642738822847605, 0.006392532028257847, 0.08563932776451111, 0.04058252274990082, 0.001298866351135075, -0.0028871872927993536, 0.029553808271884918, 0.013501341454684734, 0.01078341156244278, -0.0014767092652618885, -0.015032016672194004, 0.017455587163567543, -0.03188906982541084, -0.006466122344136238, -0.06997933983802795, 0.00003564523649401963, 0.06322866678237915, 0.0517682246863842, 0.040778763592243195, -0.02700268290936947, 0.04207395017147064, 0.0415637232363224, 0.08210700005292892, 0.003836500458419323, -0.012932244688272476, -0.0636996477842331, -0.002170909894630313, 0.003973868675529957, 0.08650278300046921, -0.025864489376544952, 0.049177851527929306, 0.009493131190538406, -0.018790021538734436, 0.008296064101159573, 0.014070439152419567, -0.038325756788253784, -0.010881531983613968, -0.007668094709515572, 0.07861391454935074, 0.038325756788253784, -0.03938545286655426, -0.010292810387909412, -0.0203697569668293, -0.018211111426353455, -0.014070439152419567, -0.0076386588625609875, -0.014482543803751469, 0.028219373896718025, -0.020664118230342865, 0.010371306911110878, 0.05879363417625427, 0.018103180453181267, -0.03218343108892441, -0.008242097683250904, -0.0365007221698761, -0.0022739360574632883, -0.007020501419901848, 0.05031604692339897, -0.08469737321138382, 0.009360668249428272, 0.04509605094790459, 0.052239201962947845, -0.004395785741508007, -0.06566204875707626, 0.015718858689069748, -0.05294566974043846, -0.0670357346534729, 0.03979755938053131, 0.0060392990708351135, 0.060638293623924255, 0.07947737723588943, -0.024137573316693306, 0.031045235693454742, 0.027198923751711845, 0.06597603112459183, 0.0772794857621193, -0.06271844357252121, -0.007771120872348547, -0.0008407675777561963, 0.05651724338531494, 0.02292088232934475, -0.001891267136670649, -0.01391344703733921, 0.0016852146945893764, 0.04270191863179207, -0.03824726119637489, -0.05663498863577843, 0.00895837601274252, -0.02190043218433857, 0.038816358894109726, -0.01481615286320448, 0.025903737172484398, 0.057262957096099854, 0.03754079341888428, 0.05388762429356575, 0.006147231440991163, 0.09874818474054337, -0.00028071581618860364, 0.0730406865477562, 0.0263158418238163, 0.001626342535018921, 0.03604936599731445, -0.018456412479281425, -0.010940403677523136, 0.038051020354032516, -0.01604265533387661, 0.02511877566576004, 0.010312434285879135, -0.042976655066013336, -0.028278246521949768, 0.0022162904497236013, 0.03338049724698067, 0.06150175258517265, -0.012000102549791336, 0.00891422200948, -0.014580664224922657, -0.0017845614347606897, 0.017632203176617622, 0.0038242354057729244, -0.08563932776451111, -0.0006341019179672003, -0.027787644416093826, 0.027944637462496758, 0.0688018947839737, -0.04576326906681061, 0.05832265689969063, 0.017377089709043503, -0.02810163050889969, -0.02156682312488556, -0.05204296112060547, 0.07131377607584, 0.016170211136341095, -0.02927907183766365, -0.031790949404239655, -0.055536042898893356, -0.024902909994125366, 0.03184982389211655, 0.010861908085644245, -0.0509047694504261, -0.017033670097589493, 0.02963230572640896, 0.004641086328774691, 0.012834124267101288, -0.049020860344171524, 0.053769879043102264, 0.05243544280529022, -0.021959304809570312, 0.050551533699035645, 0.02011464349925518, -0.06464159488677979, 0.046038005501031876, 0.02886696718633175, 0.00010256628593197092, 0.029416440054774284, 0.006068735383450985, -0.004834873601794243, 0.001338114496320486, 0.08289195597171783, 0.060559798032045364, 0.0009805889567360282, -0.014678784646093845, -0.014119499363005161, 0.024824414402246475, -0.06373888999223709, -0.024745918810367584, 0.011038524098694324, -0.055810779333114624, 0.06888039410114288, 0.06008882075548172, -0.0023573380894958973, -0.02427494153380394, -0.047568678855895996, 0.0636603981256485, -0.05789092928171158, 0.021331334486603737, -0.0712745264172554, 0.005744938738644123, 0.0035151566844433546, -0.04619499668478966, -0.011136644519865513, -0.020006712526082993, -0.002659057965502143, 0.045370787382125854, 0.036284856498241425, 0.04525304213166237, -0.017583142966032028, 0.01087171956896782, 0.037894029170274734, 0.04250567778944969, -0.014021378941833973, 0.034577563405036926, -0.023450732231140137, 0.04533154144883156, -0.04890311509370804, 0.03871823847293854, 0.004069535993039608, -0.02182193659245968, 0.010322246700525284, -0.100161112844944, 0.0441540963947773, 0.03045651502907276, 0.04682296887040138, -0.07523857802152634, -0.03716793656349182, -0.0060392990708351135, -0.02802313305437565, 0.03167320415377617, 0.01944742724299431, -0.018721336498856544, -0.06212972104549408, 0.04199545085430145, 0.07747571915388107, -0.010881531983613968, 0.08556082844734192, -0.032222680747509, 0.022194793447852135, -0.03571575880050659, 0.04038628190755844, 0.0006506596691906452, -0.013079424388706684, -0.006780107039958239, -0.016346827149391174, -0.015434309840202332, 0.010047510266304016, 0.05400536581873894, 0.006147231440991163, 0.030692003667354584, 0.019673103466629982, 0.020742613822221756, -0.023784339427947998, -0.08210700005292892, -0.012785064056515694, -0.08249947428703308, -0.045802515000104904, 0.0026934000197798014, -0.02207704819738865, -0.026708323508501053, -0.03673620894551277, -0.02233216166496277, -0.007565068546682596, -0.014345175586640835, 0.026688698679208755, 0.04776491969823837, -0.03183019906282425, 0.022763889282941818, -0.02555050514638424, 0.023705843836069107, 0.0012363147689029574, -0.01654306799173355, -0.04611650109291077, 0.06758520752191544, -0.013344349339604378, -0.053926870226860046, -0.002207704819738865, 0.024902909994125366, 0.0012547122314572334, 0.05373062938451767, 0.02478516660630703, -0.003532327711582184, -0.027277419343590736, 0.013648522086441517, -0.033478617668151855, 0.008011515252292156, 0.009767867624759674, 0.01569923385977745, 0.008158695884048939, -0.03524478152394295, 0.027866141870617867, -0.02258727326989174, 0.045959509909152985, 0.07673000544309616, -0.02282276190817356, -0.00767790712416172, 0.030652755871415138, -0.009071214124560356, -0.017043480649590492, 0.019967464730143547, -0.04548853263258934, -0.030064033344388008, -0.007172587793320417, 0.00043418194400146604, -0.009306702762842178, 0.00036887067835778, -0.009316514246165752, 0.03683432936668396, -0.07143151760101318, 0.015385249629616737, 0.04564552381634712, 0.020860357210040092, 0.03073125146329403, 0.00006216835754457861, 0.0084824925288558, 0.014953521080315113, 0.02978929691016674, -0.04682296887040138, -0.05777318403124809, 0.06652550399303436, 0.04046477749943733, -0.056831229478120804, -0.045606277883052826, 0.02154720015823841, 0.00920858234167099, 0.07904564589262009, -0.028749223798513412, 0.020899606868624687, -0.00498941307887435, -0.07005783170461655, -0.020409004762768745, 0.044428832828998566, -0.029651928693056107, -0.0712352767586708, -0.00428540026769042, -0.04886386916041374, 0.01773032359778881, -0.03532327711582184, -0.014875024557113647, 0.009085931815207005, 0.01468859612941742, 0.012363146990537643, -0.015895474702119827, 0.01005732174962759, 0.04878536984324455, 0.041877709329128265, -0.04729394242167473, 0.03045651502907276, 0.0258841123431921, -0.02182193659245968, -0.022037800401449203, 0.008158695884048939, 0.04792191460728645, -0.0025903736241161823, -0.01171555370092392, 0.03691282495856285, 0.006652550771832466, 0.012814500369131565, -0.0006475934060290456, 0.024804791435599327, 0.07162775844335556, 0.0032134370412677526, -0.006750670727342367, 0.01247107982635498, -0.04030778631567955, -0.08508985489606857, -0.006588772404938936, -0.005440765991806984, 0.009439164772629738, 0.00213166163302958, -0.05667423829436302, -0.02460855059325695, 0.0619334802031517, -0.006107983645051718, 0.045606277883052826, -0.039091095328330994, -0.019476862624287605, -0.0208014864474535, 0.01859378069639206, -0.014610100537538528, 0.04407560080289841, 0.039836809039115906, -0.018387729302048683, -0.05243544280529022, 0.009959202259778976, 0.013040176592767239, 0.01255938783288002, -0.034086961299180984, -0.04450732842087746, -0.009959202259778976, -0.028886592015624046, 0.01613096334040165, 0.016317391768097878, 0.03090786747634411, -0.015061452984809875, -0.035676509141922, 0.04336913675069809, -0.023489980027079582, -0.03769778832793236, -0.01222577877342701, -0.01663137599825859, -0.055300552397966385, 0.00772206112742424, -0.005543792154639959, -0.02690456248819828, -0.01480634044855833, -0.03638297691941261, 0.06554430723190308, -0.052160706371068954, -0.04144597798585892, -0.01663137599825859, 0.029318319633603096, 0.030436890199780464, -0.05922536179423332, 0.05145424231886864, 0.014982957392930984, 0.013884010724723339, -0.023038627579808235, 0.04132823646068573, -0.011892169713973999, -0.054280102252960205, -0.020507125183939934, 0.04207395017147064, -0.05989257991313934, 0.01730840653181076, 0.03642222285270691, 0.0322619266808033, -0.05286717414855957, -0.010489051230251789, 0.04105350002646446, -0.0021770421881228685, 0.0212135910987854, 0.004385973792523146, 0.0070352195762097836, 0.010646043345332146, 0.028160501271486282, -0.06079528480768204, -0.03836500272154808, -0.0078545231372118, 0.003061350667849183, -0.03581387922167778, -0.048746123909950256, -0.029907042160630226, -0.004145578946918249, 0.009228206239640713, 0.10408592224121094, 0.00047373666893690825, -0.009723713621497154, -0.0011247029760852456, -0.015051641501486301, 0.01969272643327713, -0.006441592238843441, -0.03343936800956726, 0.034754179418087006, -0.08289195597171783, -0.000006391228907887125, -0.019143253564834595, 0.005730220582336187, 0.03071162849664688, 0.00950294267386198, -0.023823589086532593, 0.025020655244588852, 0.0060392990708351135, 0.043565377593040466, 0.015414685942232609, -0.016023030504584312, -0.04964882880449295, 0.00988070573657751, -0.0010437538148835301, -0.008781759068369865, 0.0014656707644462585, -0.004506170749664307, -0.01523806992918253, -0.0014987862668931484, 0.011587997898459435, 0.034165460616350174, 0.03691282495856285, -0.01960441842675209, 0.021174343302845955, -0.05957859382033348, -0.012569199316203594, 0.01522825751453638, -0.011607621796429157, 0.024922534823417664, 0.051650483161211014, 0.014404047280550003, -0.035853125154972076, -0.0009910141816362739, -0.0254720076918602, -0.0011854148469865322, -0.006740858778357506, -0.01984971947968006, -0.000009840768143476453, -0.021350959315896034, 0.02733629196882248, 0.021704191341996193, 0.020978102460503578, -0.1035364493727684, -0.025001030415296555, -0.05526130646467209, 0.015807166695594788, 0.015424498356878757, 0.007157869637012482, 0.027905389666557312, -0.045527778565883636, -0.019035322591662407, -0.012520139105618, 0.02961268089711666, 0.035696133971214294, 0.010302622802555561, -0.024157196283340454, 0.02513839863240719, -0.01472784485667944, -0.018544720485806465, 0.018299419432878494, 0.012068786658346653, -0.032203055918216705, -0.04854988306760788, -0.02174343913793564, 0.016857052221894264, -0.013462093658745289, 0.054280102252960205, -0.07778970897197723, -0.029848169535398483, -0.007486572489142418, 0.0009192637517116964, -0.057498447597026825, 0.0034440194722265005, -0.003071162849664688, -0.03300764039158821, 0.0016790821682661772, 0.03338049724698067, 0.050708528608083725, -0.004425221588462591, 0.023568475618958473, -0.0013749095378443599, -0.006937099155038595, 0.007697531022131443, 0.028376366943120956, 0.00047894931049086154, 0.011823485605418682, 0.05722371116280556, -0.003603464923799038, 0.03404771536588669, -0.02443193458020687, -0.035166285932064056, 0.07531707733869553, -0.0424271821975708, 0.00861495453864336, 0.027532532811164856, -0.001507371780462563, -0.05306341126561165, -0.06295393407344818, -0.02011464349925518, -0.022901257500052452, 0.022783514112234116, -0.03163395822048187, 0.030319146811962128, 0.03338049724698067, -0.0005525394808501005, 0.012628071941435337, -0.017249533906579018, -0.0012479665456339717, 0.04572401940822601, 0.004351631738245487, 0.00641215592622757, 0.045292291790246964, 0.00861004926264286, 0.02309749834239483, -0.011038524098694324, -0.010430178605020046, -0.009041777811944485, 0.03740342706441879, -0.04556702822446823, -0.01577773131430149, 0.02392170950770378, -0.05329890176653862, 0.04643048718571663, -0.0005513129872269928, 0.018790021538734436, 0.044939059764146805, 0.07233422249555588, -0.06813468039035797, 0.024844039231538773, -0.06424912065267563, -0.06813468039035797, -0.1153893768787384, 0.009949389845132828, -0.045017555356025696, 0.07712248712778091, 0.01933949440717697, -0.017671450972557068, -0.011126832105219364, 0.014943708665668964, 0.005416235886514187 ]
715,117
pytorch_optimizer.optimizer.adamod
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.99, 0.9999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'adam_debias': adam_debias, 'eps': eps, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.99, 0.9999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ 0.014684156514704227, -0.03119550459086895, -0.014617539942264557, -0.010430223308503628, -0.05447317659854889, -0.023429937660694122, -0.08762910217046738, -0.03648674860596657, -0.020974647253751755, 0.03488795459270477, -0.039627235382795334, 0.039703369140625, 0.01582615077495575, 0.07297349721193314, -0.050742655992507935, 0.03837104141712189, 0.028283417224884033, 0.029025712981820107, -0.007546685636043549, 0.005933617241680622, 0.00015910611546132714, -0.018509840592741966, -0.04126409813761711, 0.11290527135133743, 0.012647598050534725, 0.03429792448878288, -0.005614810157567263, 0.011001220904290676, -0.0318807028234005, 0.01318052876740694, 0.02067011408507824, -0.014741255901753902, -0.009588002227246761, 0.05413057655096054, 0.03795231133699417, -0.010059075430035591, -0.012419198639690876, 0.011324786581099033, -0.07194570451974869, 0.037514545023441315, 0.08092939853668213, -0.03294656425714493, 0.07156503945589066, -0.04095956310629845, -0.025790059939026833, -0.013104395940899849, 0.037514545023441315, 0.043890684843063354, -0.017777059227228165, -0.022497307509183884, 0.026151692494750023, -0.03722904622554779, 0.03867557272315025, -0.01795787550508976, -0.05070459097623825, 0.04564174637198448, 0.046288877725601196, 0.06048768386244774, 0.0392465703189373, 0.016692165285348892, 0.009559452533721924, -0.043053220957517624, 0.02681785635650158, -0.023220570757985115, -0.0026051767636090517, -0.010011492297053337, -0.08976083248853683, -0.021298212930560112, 0.026132658123970032, 0.03401242569088936, 0.10399770736694336, -0.0055577103048563, -0.0285879485309124, 0.033517561852931976, -0.009131204336881638, -0.0028978129848837852, -0.0760188177227974, -0.04880126565694809, -0.06650219112634659, -0.008046308532357216, 0.05622423440217972, 0.03024384193122387, -0.027236588299274445, -0.05001939460635185, 0.02068914845585823, -0.049562595784664154, -0.035401854664087296, -0.05306471511721611, 0.029615744948387146, 0.01821482554078102, -0.05660489946603775, -0.029520578682422638, 0.021526610478758812, -0.01531225349754095, 0.06608346104621887, 0.012266932986676693, 0.0171299297362566, -0.05827982723712921, 0.024724198505282402, -0.006314282305538654, -0.017796093598008156, -0.005919342394918203, -0.03985563665628433, -0.002702722093090415, 0.0144652733579278, -0.03753357753157616, -0.0510471910238266, -0.0394749715924263, 0.04465201497077942, -0.0687481164932251, -0.029939310625195503, 0.06182001158595085, -0.02953961119055748, 0.0331178642809391, -0.05070459097623825, 0.025485528632998466, 0.035744450986385345, 0.022135674953460693, 0.0003321897820569575, 0.02434353344142437, 0.0316523015499115, 0.0347166582942009, -0.026399124413728714, 0.0444616824388504, 0.0510471910238266, -0.009573726914823055, 0.010496839880943298, 0.005924100521951914, 0.028568916022777557, -0.017767542973160744, 0.039703369140625, -0.00620008260011673, -0.03665804862976074, -0.022002441808581352, 0.020003950223326683, -0.022992171347141266, 0.010277957655489445, 0.05850822478532791, -0.03342239558696747, 0.010040041990578175, 0.05942182242870331, 0.013199562206864357, 0.03387919440865517, -0.017301227897405624, -0.015036270953714848, 0.008017758838832378, -0.011829167604446411, -0.0385613739490509, -0.00833180733025074, 0.04727860540151596, 0.034335993230342865, 0.00815575011074543, -0.029520578682422638, 0.04122602939605713, 0.005671910010278225, -0.050514258444309235, 0.015921317040920258, -0.010677656158804893, -0.0011336682364344597, 0.015512102283537388, -0.02137434482574463, 0.024895496666431427, 0.02495259791612625, -0.020403649657964706, -0.012086116708815098, 0.014512856490910053, -0.03996983543038368, 0.024077067151665688, 0.00041962380055338144, -0.017072830349206924, 0.006790113635361195, -0.09067442268133163, -0.03719098120927811, 0.023334771394729614, 0.0050295377150177956, 0.04088343307375908, 0.029691876843571663, -0.005576743744313717, 0.0023410902358591557, -0.017567694187164307, 0.06821518391370773, 0.002369640162214637, -0.024857431650161743, -0.06532213091850281, 0.026075558736920357, 0.007846459746360779, -0.04194929450750351, 0.056186169385910034, -0.04739280417561531, 0.022535374388098717, 0.04693600535392761, 0.024648064747452736, 0.016140200197696686, 0.020251384004950523, -0.019461503252387047, 0.016587480902671814, 0.035991884768009186, -0.019965885207057, -0.004380027763545513, 0.05729009583592415, 0.07046110928058624, 0.023563168942928314, 0.019233103841543198, -0.020156217738986015, 0.031252603977918625, -0.0068662469275295734, -0.018814371898770332, -0.0018176758894696832, -0.028264382854104042, -0.041302163153886795, -0.0011449692538008094, -0.017558177933096886, 0.04823026806116104, 0.019927818328142166, -0.002054401906207204, -0.05097105726599693, -0.008750539273023605, 0.022287940606474876, 0.012019500136375427, -0.004232520237565041, 0.08702003955841064, -0.027388853952288628, -0.009407185949385166, -0.004208728671073914, 0.055348705500364304, 0.014931588433682919, 0.04217769205570221, -0.04286288842558861, -0.0766659528017044, 0.04179702699184418, -0.021678877994418144, -0.0460604764521122, -0.04160669445991516, -0.012143217027187347, 0.02481936477124691, 0.004717868287116289, -0.03612511605024338, 0.026874955743551254, -0.08465991914272308, -0.04088343307375908, 0.05542483925819397, 0.03159520402550697, -0.002050833310931921, -0.019566185772418976, 0.015930835157632828, 0.006128707900643349, 0.031614236533641815, 0.007737018167972565, -0.06726352125406265, -0.02940637804567814, -0.039056237787008286, -0.014684156514704227, 0.0073563531041145325, 0.04438554868102074, -0.056528765708208084, 0.01890953816473484, 0.02965381182730198, -0.001707045012153685, 0.01735832914710045, -0.008436489850282669, -0.003789996961131692, 0.003180932719260454, -0.02127917855978012, 0.08313725888729095, 0.010268441401422024, 0.03435502573847771, 0.0073087699711322784, -0.007989209145307541, 0.02388673461973667, -0.0037067264784127474, 0.1324714571237564, 0.027008188888430595, -0.008545931428670883, -0.0062666991725564, -0.006338073872029781, -0.014798355288803577, -0.0011360474163666368, -0.02801695093512535, -0.008369874209165573, 0.047811537981033325, 0.02931121177971363, -0.04762120544910431, 0.009887776337563992, 0.0029073297046124935, 0.006809147074818611, 0.001339465263299644, -0.013456511311233044, 0.03071967326104641, -0.006452273577451706, 0.016368599608540535, 0.014731739647686481, 0.01093460526317358, 0.0803203359246254, 0.01818627491593361, 0.08618257939815521, -0.017415428534150124, 0.05249371752142906, -0.0014596127439290285, 0.057975295931100845, -0.010059075430035591, 0.04548947885632515, -0.042824823409318924, 0.06071608141064644, -0.009012246504426003, -0.05508223921060562, -0.03768584504723549, 0.032794296741485596, 0.02504776418209076, 0.04126409813761711, 0.04906773194670677, 0.034564390778541565, 0.01902373880147934, 0.05283631384372711, 0.020003950223326683, 0.03483085706830025, -0.06555052846670151, 0.01689201407134533, -0.05664296820759773, 0.03321303054690361, 0.03909430652856827, -0.004782105330377817, 0.03458342328667641, -0.002450531581416726, -0.02529519610106945, -0.07407742738723755, -0.04762120544910431, 0.0316523015499115, 0.019680386409163475, -0.03366982936859131, -0.004541810601949692, -0.04267255589365959, 0.0015654852613806725, 0.017653344199061394, -0.03132873773574829, -0.05207498371601105, 0.006480823270976543, 0.006928104907274246, 0.0499051958322525, -0.0069138300605118275, -0.03271816670894623, 0.09059829264879227, -0.030319975689053535, -0.008526897989213467, 0.038599442690610886, -0.002709859749302268, -0.039398837834596634, -0.005224628373980522, -0.013570711016654968, 0.03601091727614403, 0.008212849497795105, -0.00761806033551693, 0.008593514561653137, 0.0007101783412508667, 0.09090282768011093, 0.028911514207720757, -0.018405158072710037, -0.014922072179615498, 0.002988221123814583, 0.0335746631026268, -0.04457588121294975, -0.03368886187672615, -0.002845471492037177, -0.04076923057436943, 0.05374991148710251, 0.02232600748538971, -0.009887776337563992, 0.009416703134775162, -0.04510881379246712, 0.03818070888519287, 0.003273719921708107, 0.031252603977918625, -0.05569130554795265, -0.027464987710118294, -0.016616031527519226, 0.01901422254741192, -0.010506357066333294, -0.03014867566525936, 0.009973425418138504, 0.05424477532505989, 0.007437244523316622, 0.004679801408201456, -0.0057242512702941895, 0.06410400569438934, 0.03201393410563469, 0.011848201043903828, -0.03252783417701721, 0.004703592974692583, 0.01760576106607914, 0.06642606109380722, -0.0038042718078941107, 0.005690942984074354, -0.005676668137311935, 0.015759535133838654, -0.02173597738146782, -0.06768225133419037, 0.031119370833039284, 0.037286147475242615, 0.04347195476293564, -0.045565612614154816, -0.039703369140625, -0.016568448394536972, -0.04750700294971466, -0.010801372118294239, 0.03650578111410141, -0.017558177933096886, 0.001387048396281898, 0.007941626012325287, 0.03772391006350517, 0.016635064035654068, 0.07194570451974869, -0.006766322068870068, -0.003268961561843753, -0.026380091905593872, -0.005990717094391584, -0.033403363078832626, -0.022897005081176758, -0.0038685090839862823, -0.004948646295815706, 0.027598218992352486, -0.017453495413064957, 0.03228040039539337, 0.010239890776574612, 0.06756805628538132, 0.00945476908236742, 0.06901457905769348, 0.0560339018702507, -0.02811211720108986, 0.002019904088228941, -0.008940871804952621, -0.05862242355942726, -0.04842060059309006, -0.014474790543317795, -0.038923006504774094, -0.04503268003463745, 0.024533865973353386, 0.015093371272087097, -0.005581501871347427, -0.006723497062921524, 0.006609297823160887, -0.026322990655899048, 0.016815880313515663, -0.06699705868959427, 0.009830676019191742, -0.025923293083906174, -0.059878621250391006, -0.036220282316207886, 0.02776951901614666, -0.005386411212384701, -0.039779502898454666, -0.015150470659136772, 0.024153200909495354, 0.007185053545981646, 0.04853479936718941, -0.009887776337563992, -0.02398190088570118, -0.03205200284719467, -0.009821159765124321, -0.025466494262218475, 0.04095956310629845, -0.006809147074818611, 0.05473964288830757, -0.02894958108663559, -0.015978418290615082, -0.012628564611077309, -0.052036918699741364, 0.02067011408507824, 0.06459886580705643, -0.012799863703548908, -0.0026717931032180786, 0.011905301362276077, 0.00226019904948771, 0.0029834627639502287, 0.03688644617795944, -0.0306245069950819, -0.05009552836418152, 0.01523612067103386, -0.0009403617586940527, -0.023258637636899948, -0.01135333627462387, -0.00856972299516201, 0.007156503852456808, -0.045565612614154816, 0.010915571823716164, 0.06859584897756577, 0.0141226751729846, -0.0058670006692409515, -0.06277167797088623, 0.007822668179869652, 0.013599260710179806, 0.04396681860089302, -0.08153846114873886, -0.019965885207057, 0.03298462927341461, 0.06029735133051872, -0.03389822691679001, -0.015426453202962875, 0.029387345537543297, 0.01821482554078102, 0.032927531749010086, 0.014522373676300049, 0.00475831376388669, -0.035972852259874344, -0.04727860540151596, -0.03001544252038002, 0.027122387662529945, -0.04842060059309006, -0.0896085649728775, -0.0030738706700503826, -0.026151692494750023, -0.0026265892665833235, -0.032661065459251404, -0.003290373831987381, -0.027864685282111168, 0.011467535980045795, -0.030662573873996735, -0.027712419629096985, -0.04172089323401451, 0.05569130554795265, 0.0013644464779645205, -0.03159520402550697, 0.05409251153469086, 0.050057459622621536, 0.039931770414114, -0.033974360674619675, 0.005291244946420193, 0.04929612949490547, 0.022877972573041916, -0.04252029210329056, 0.0782647430896759, 0.0222308412194252, 0.003316544694826007, -0.06086834892630577, -0.03913237154483795, 0.049334198236465454, -0.00042735604802146554, 0.02813115157186985, 0.0225734394043684, -0.029235079884529114, -0.052645981311798096, -0.028778281062841415, 0.01867162249982357, 0.03024384193122387, 0.011305753141641617, -0.04488041624426842, -0.01057297270745039, 0.006418965291231871, -0.035516053438186646, 0.07856927812099457, -0.05283631384372711, -0.023677369579672813, 0.01842419058084488, -0.020613014698028564, -0.05344538018107414, 0.024153200909495354, 0.02150757797062397, -0.016235366463661194, 0.0044371276162564754, 0.0011574598029255867, 0.057480428367853165, 0.023829635232686996, -0.022135674953460693, -0.021203046664595604, -0.013028263114392757, 0.005238903220742941, -0.00808913353830576, -0.004208728671073914, 0.007703709881752729, -0.03159520402550697, -0.06041155010461807, 0.021545644849538803, 0.0012859342386946082, -0.019699418917298317, 0.011791101656854153, 0.00874578021466732, -0.039056237787008286, 0.017434461042284966, -0.01726316288113594, 0.025809094309806824, -0.05374991148710251, -0.039703369140625, 0.00040505145443603396, -0.024609997868537903, -0.12105149775743484, -0.07323996722698212, 0.03629641607403755, -0.0068900384940207005, -0.055234506726264954, 0.002366071566939354, -0.009802126325666904, 0.021812109276652336, -0.006071608513593674, 0.04750700294971466, -0.019832652062177658, -0.01435107458382845, -0.05211305245757103, 0.017282195389270782, -0.027693385258316994, -0.01677781343460083, 0.03224233537912369, 0.06448467075824738, -0.0757904201745987, -0.01436059083789587, 0.02704625576734543, 0.011220104061067104, 0.011391403153538704, -0.0008963473374024034, -0.01653989776968956, 0.04419521614909172, 0.026437191292643547, -0.0574042983353138, 0.0027622010093182325, -0.020498815923929214, 0.00007189514872152358, -0.017643827944993973, -0.01500772126019001, -0.04278675839304924, -0.03842814266681671, 0.02291603945195675, 0.08138620108366013, -0.013247145339846611, 0.0006322609260678291, -0.04095956310629845, -0.008774330839514732, 0.04122602939605713, -0.0682913213968277, -0.01866210624575615, 0.006066849920898676, -0.12196509540081024, 0.0058432091027498245, -0.028283417224884033, 0.04701213911175728, -0.014608022756874561, -0.0069376216270029545, -0.04902966320514679, -0.0020365582313388586, 0.019927818328142166, 0.022021476179361343, 0.017634309828281403, 0.02752208709716797, -0.02091754786670208, 0.011020254343748093, 0.053255047649145126, -0.01523612067103386, -0.0037971343845129013, -0.005633843597024679, -0.04103569686412811, -0.02057494781911373, -0.007794118020683527, 0.04194929450750351, 0.039893701672554016, -0.029501544311642647, 0.04427134990692139, -0.05333118140697479, -0.005529160611331463, -0.0019973022863268852, -0.0023232465609908104, 0.017900776118040085, 0.032299432903528214, 0.04807800054550171, -0.03024384193122387, -0.027788551524281502, -0.02731272019445896, 0.043053220957517624, 0.009059829637408257, 0.0010581300593912601, 0.0038280633743852377, -0.03690548241138458, -0.007432485930621624, -0.023258637636899948, -0.02008008398115635, -0.062086477875709534, -0.007342078257352114, -0.04701213911175728, -0.0006548629025928676, 0.026646556332707405, 0.0226876400411129, -0.06178194656968117, -0.0344882570207119, 0.017177512869238853, -0.01973748579621315, 0.052531782537698746, 0.039513036608695984, 0.0017546281451359391, -0.05119945481419563, 0.008883771486580372, -0.012952130287885666, -0.0753336250782013, 0.042139627039432526, -0.01582615077495575, -0.029520578682422638, -0.056071970611810684, -0.009183545596897602, 0.029939310625195503, 0.00833656545728445, 0.030643539503216743, -0.036448683589696884, -0.05911729112267494, -0.06589312851428986, 0.009335811249911785, -0.01987071894109249, -0.012752280570566654, -0.006457031704485416, -0.055577103048563004, 0.06718739122152328, -0.022877972573041916, 0.03085290640592575, 0.0073563531041145325, 0.004004120826721191, 0.01773899421095848, -0.043548088520765305, 0.0306245069950819, 0.04682180657982826, 0.03300366550683975, -0.07788407802581787, -0.01358022727072239, 0.03958917036652565, 0.04381455108523369, -0.01855742372572422, -0.05020972713828087, 0.016596999019384384, -0.039170440286397934, -0.0044371276162564754, 0.02577102743089199, -0.00898369587957859, 0.005210353527218103, -0.0814623311161995, -0.03536378592252731, 0.01164835225790739, 0.04065503180027008, -0.023582203313708305, 0.05066652595996857, 0.025009697303175926, -0.03365079313516617, -0.001490541733801365, -0.0004889167612418532, -0.025085829198360443, 0.049448397010564804, 0.007408694364130497, 0.06459886580705643, 0.07278316468000412, 0.013608776964247227, 0.03083387203514576, -0.04347195476293564, -0.0029763253405690193, -0.006804388482123613, 0.045679811388254166, -0.014246391132473946, -0.008355598896741867, 0.06867198646068573, -0.015264670364558697, -0.013018745929002762, -0.018252890557050705, 0.013456511311233044, 0.03745744377374649, 0.06764418631792068, -0.04373842105269432, 0.026608489453792572, -0.032680097967386246, -0.07095597684383392, -0.10491129755973816, -0.005838450975716114, -0.04503268003463745, 0.07788407802581787, 0.01574050262570381, 0.012485815212130547, 0.008836188353598118, 0.03875170648097992, 0.013437477871775627 ]
715,120
pytorch_optimizer.optimizer.adamod
__str__
null
def __str__(self) -> str: return 'AdaMod'
(self) -> str
[ -0.002113490365445614, 0.0035621095448732376, 0.05292036756873131, -0.013188011012971401, 0.034388139843940735, -0.05376197397708893, -0.0016200970858335495, 0.0120602548122406, 0.04036356136202812, -0.04036356136202812, -0.04861132800579071, -0.003132889047265053, -0.0016022128984332085, 0.039185307919979095, -0.024356160312891006, -0.028126569464802742, -0.0019115041941404343, 0.0035452775191515684, -0.023901691660284996, 0.004931828007102013, 0.005769229028373957, 0.057599712163209915, 0.005798685364425182, -0.007696513086557388, -0.014147445559501648, 0.06864161789417267, 0.028614701703190804, -0.019996626302599907, -0.04167647287249565, -0.02270660735666752, 0.02107388712465763, -0.06894459575414658, 0.011117652989923954, 0.014744987711310387, -0.05032820999622345, -0.020484760403633118, -0.02543342113494873, 0.014349431730806828, -0.08968184143304825, -0.03115636110305786, 0.032199956476688385, 0.021595682948827744, 0.012699877843260765, -0.02272344008088112, -0.03837736323475838, -0.040060583502054214, 0.02006395533680916, 0.031240520998835564, -0.024389825761318207, -0.007616560440510511, 0.014702906832098961, 0.003315939102321863, -0.001352886320091784, 0.0002748378901742399, -0.002444873796775937, 0.06739603728055954, 0.030062269419431686, 0.010360205546021461, -0.005150646436959505, 0.03723277524113655, -0.05137180536985397, -0.01596532016992569, 0.06446724385023117, -0.05042920261621475, -0.010536943562328815, 0.040026918053627014, -0.036525826901197433, 0.03814171627163887, 0.026544343680143356, 0.04241708666086197, 0.00471721775829792, -0.051001496613025665, 0.019643152132630348, 0.018515395000576973, 0.0351455882191658, -0.04420129954814911, -0.04595184326171875, 0.0017368702683597803, 0.026847323402762413, -0.028715694323182106, 0.0075071509927511215, -0.024272000417113304, -0.02013128437101841, 0.039218973368406296, -0.012691461481153965, -0.09688601642847061, -0.032654423266649246, -0.054031290113925934, -0.007923747412860394, -0.021646181121468544, -0.021191712468862534, -0.028328554704785347, -0.03450596332550049, 0.053627319633960724, -0.06769901514053345, -0.018515395000576973, 0.033580195158720016, -0.03716544806957245, 0.026611672714352608, 0.008512874133884907, -0.0006817032117396593, 0.012767206877470016, -0.020434264093637466, 0.04507657140493393, -0.03686247020959854, -0.054468926042318344, -0.03544856607913971, 0.027823589742183685, -0.0013276380486786366, 0.01228749006986618, -0.04063287749886513, 0.0035158211831003428, 0.02491162344813347, 0.00007298326818272471, 0.016924753785133362, -0.04416763409972191, 0.02097289264202118, -0.02371653914451599, 0.03369801864027977, -0.00017792137805372477, 0.031711824238300323, 0.024726469069719315, -0.04420129954814911, -0.013028105720877647, 0.09096109122037888, 0.07157041877508163, -0.06086515262722969, -0.036121852695941925, 0.008853725157678127, -0.06396227329969406, 0.04019524157047272, 0.023531384766101837, -0.04612016677856445, -0.008184646256268024, 0.06349097192287445, -0.003587357932701707, 0.04861132800579071, 0.014795484021306038, 0.015662340447306633, 0.12307688593864441, -0.04154181480407715, 0.01843123510479927, 0.04319136589765549, 0.016057897359132767, -0.02664533630013466, -0.026948316022753716, -0.010124554857611656, 0.044874586164951324, -0.008214103057980537, -0.006770743522793055, 0.038276370614767075, -0.01182460505515337, -0.006842280272394419, 0.027470113709568977, -0.023548215627670288, 0.018734212964773178, -0.016604943200945854, -0.008264599367976189, 0.021326368674635887, -0.03989225998520851, 0.003132889047265053, -0.02457498013973236, -0.01181618869304657, 0.024322496727108955, 0.023093746975064278, -0.005828141700476408, 0.01558659691363573, -0.005895470269024372, -0.010520110838115215, -0.0011908765882253647, -0.03142567723989487, -0.06315433233976364, -0.06793466955423355, 0.032654423266649246, 0.005167478695511818, 0.03105536848306656, -0.00898838322609663, 0.05658978223800659, 0.03369801864027977, -0.041844792664051056, -0.0032128419261425734, 0.037805069237947464, -0.06295234709978104, 0.04628848657011986, 0.05793635547161102, -0.043595340102910995, 0.03857935220003128, 0.029860282316803932, 0.02019861340522766, -0.029978107661008835, -0.00013768195640295744, 0.030735556036233902, -0.02842954732477665, -0.018481731414794922, -0.03686247020959854, -0.04039722681045532, -0.021982824429869652, -0.05554618686437607, 0.019138185307383537, 0.0038377365563064814, -0.009089375846087933, 0.020047122612595558, -0.021343201398849487, 0.06423158943653107, 0.07035849988460541, 0.030516738072037697, 0.07473486661911011, -0.0030760804656893015, -0.030432576313614845, -0.05029454827308655, 0.013044937513768673, 0.013432078063488007, 0.04857766628265381, 0.028783023357391357, 0.006686582695692778, -0.037872400134801865, 0.022100649774074554, 0.0175727941095829, 0.0038903369568288326, 0.041878458112478256, 0.0013991747982800007, 0.010671600699424744, -0.009602757170796394, -0.013735056854784489, -0.017589624971151352, -0.009333442896604538, 0.01928967610001564, 0.024675972759723663, -0.03629017621278763, 0.0016001089243218303, 0.010065642185509205, -0.051035162061452866, -0.05904727801680565, 0.034404970705509186, 0.02235313132405281, 0.054536256939172745, -0.037468425929546356, 0.00916512031108141, -0.05527687072753906, -0.03891599550843239, 0.005588282831013203, 0.0285137090831995, 0.037906065583229065, 0.07237836718559265, 0.03028108738362789, -0.034741614013910294, -0.014038036577403545, -0.01009930670261383, -0.017741115763783455, -0.04955393075942993, 0.04554787278175354, -0.02233630046248436, -0.0003274384653195739, 0.0027310207951813936, -0.030769221484661102, -0.024187838658690453, -0.020265942439436913, 0.02970879338681698, -0.006514052860438824, -0.015830663964152336, -0.04773605614900589, -0.030129598453640938, -0.041407156735658646, 0.008588618598878384, 0.026561176404356956, 0.0349435992538929, 0.003705183044075966, 0.04894797131419182, 0.023447223007678986, -0.012918696738779545, 0.05749871954321861, 0.0241205096244812, -0.04026256874203682, 0.012422147206962109, -0.028126569464802742, -0.0014812316512688994, 0.04346068203449249, 0.03548223152756691, -0.06517419219017029, -0.027705764397978783, -0.010839922353625298, -0.02366604097187519, -0.03369801864027977, 0.04063287749886513, -0.030466241762042046, -0.04904896393418312, 0.029456309974193573, 0.03157716616988182, 0.014147445559501648, 0.04477359354496002, 0.06763169169425964, 0.04783704876899719, 0.01647028513252735, 0.015174208208918571, 0.02235313132405281, 0.04773605614900589, 0.03820904344320297, 0.04319136589765549, -0.009047295898199081, 0.0003900331212207675, -0.039151646196842194, -0.04645681008696556, -0.005958590656518936, -0.03908431529998779, -0.07729335874319077, -0.011521625332534313, 0.009930985048413277, 0.01572125405073166, 0.03898332267999649, 0.022571949288249016, -0.008878973312675953, 0.04016157612204552, 0.030819717794656754, 0.08645006269216537, -0.007578687742352486, 0.08092910796403885, 0.021124383434653282, 0.025669069960713387, 0.05564717948436737, 0.06392861157655716, -0.05352632328867912, 0.06285135447978973, -0.017143573611974716, 0.017337143421173096, 0.025248266756534576, -0.016125226393342018, 0.025702735409140587, 0.021679844707250595, 0.02982661873102188, 0.0060385437682271, -0.08591143786907196, -0.027032477781176567, 0.02238679677248001, -0.027890918776392937, -0.05224708095192909, 0.017741115763783455, 0.014829148538410664, -0.07520616799592972, -0.010233963839709759, -0.03773774206638336, 0.08173705637454987, 0.0030024396255612373, -0.027369121089577675, 0.03689613193273544, 0.03901698812842369, 0.018532227724790573, -0.0068506961688399315, 0.018178751692175865, 0.007692305371165276, 0.008310887962579727, 0.016832178458571434, -0.023851195350289345, 0.02893451415002346, 0.013701392337679863, 0.033900003880262375, 0.00008205686754081398, -0.003345395205542445, 0.03649216145277023, -0.04904896393418312, 0.015813831239938736, -0.007401950191706419, -0.05032820999622345, 0.002081929938867688, 0.03238511085510254, -0.05214608460664749, -0.02975928969681263, -0.018734212964773178, -0.013490990735590458, 0.12327887117862701, -0.06315433233976364, -0.002604779554530978, 0.022622447460889816, 0.0007479799096472561, -0.02677999436855316, -0.04511023685336113, 0.053694646805524826, 0.05167478695511818, -0.009459683671593666, -0.05302136018872261, -0.006918025203049183, 0.04941927269101143, 0.007397742010653019, -0.004725633654743433, 0.04537954926490784, 0.005504122003912926, 0.005512538366019726, 0.045817188918590546, 0.015679173171520233, -0.0034947809763252735, 0.0028530540876090527, 0.019929299131035805, -0.023565048351883888, -0.027924582362174988, 0.0009631161810830235, -0.0920383483171463, -0.07998650521039963, -0.019457997754216194, -0.023918524384498596, -0.08065979182720184, 0.008041572757065296, 0.06015820428729057, -0.03898332267999649, 0.002062993822619319, -0.006051167845726013, -0.041811130940914154, 0.03642483055591583, 0.03428714722394943, 0.003153929254040122, -0.03289007395505905, -0.004174380097538233, -0.01181618869304657, 0.02284126542508602, -0.04675978794693947, -0.05557984858751297, 0.07769732922315598, 0.000016897927707759663, -0.003759887767955661, -0.03982493281364441, -0.03115636110305786, -0.02928798831999302, 0.009771078824996948, 0.023043250665068626, 0.020400598645210266, 0.027773093432188034, 0.01575491763651371, 0.020282773301005363, 0.020350102335214615, 0.04760139808058739, 0.02502944879233837, -0.01009089034050703, -0.06769901514053345, 0.021562019363045692, -0.007439822424203157, -0.054031290113925934, 0.022942258045077324, -0.05470457673072815, -0.006055376026779413, -0.04642314463853836, -0.04214777424931526, 0.017000500112771988, 0.030937543138861656, -0.04564886540174484, -0.00023117943783290684, 0.02975928969681263, 0.0262918621301651, -0.04059921205043793, -0.03327721357345581, 0.0010856754379346967, 0.04716376215219498, -0.011184982024133205, -0.023817531764507294, 0.07345562428236008, 0.02800874412059784, -0.022033320739865303, 0.05396396294236183, -0.049217287451028824, -0.008693819865584373, -0.04039722681045532, 0.000186600474989973, -0.004994948860257864, -0.06749702990055084, 0.0525837242603302, -0.04043089225888252, 0.0072715007700026035, 0.03585253655910492, 0.039151646196842194, 0.017842108383774757, 0.028160233050584793, -0.026628505438566208, 0.014627162367105484, 0.0011277558514848351, -0.023043250665068626, 0.0033075229730457067, -0.02146102674305439, 0.0007148415315896273, 0.04026256874203682, -0.03142567723989487, -0.019104521721601486, -0.02066991478204727, -0.01932333968579769, -0.04029623419046402, -0.0746002122759819, -0.005163270514458418, 0.06355830281972885, -0.011504793539643288, 0.022908594459295273, -0.009097792208194733, 0.01885203830897808, -0.030819717794656754, -0.020787740126252174, 0.03201480209827423, 0.019390668720006943, -0.05564717948436737, 0.003082392504438758, -0.000798476452473551, 0.04638948291540146, -0.019424332305788994, -0.004565728362649679, -0.09735731780529022, 0.005975422915071249, -0.003206529887393117, -0.004456318914890289, -0.027301792055368423, -0.05053019896149635, 0.03243560716509819, -0.014955390244722366, -0.017025748267769814, -0.033580195158720016, -0.0024280415382236242, -0.028261225670576096, -0.017370807006955147, -0.043124038726091385, 0.02622453309595585, 0.02361554466187954, 0.0350445955991745, 0.03014642931520939, -0.002895134501159191, 0.014559833332896233, -0.008651738986372948, 0.02051842398941517, -0.002752061001956463, -0.06433258205652237, -0.020939229056239128, -0.06773268431425095, -0.025584910064935684, 0.03285641223192215, -0.053627319633960724, 0.03184647858142853, -0.04904896393418312, 0.09452950954437256, 0.022117480635643005, 0.056758102029561996, 0.016007401049137115, 0.052280742675065994, 0.0046835532411932945, 0.08537280559539795, -0.08443020284175873, 0.01930650696158409, 0.02888401597738266, 0.05487290024757385, -0.004372158087790012, -0.04322503134608269, 0.006812823936343193, -0.06608312577009201, 0.020484760403633118, -0.014433592557907104, -0.0008105745655484498, 0.03841102868318558, 0.02231946773827076, -0.0020892941392958164, 0.004283789079636335, -0.025113608688116074, -0.054536256939172745, -0.0524827279150486, 0.021932328119874, 0.04568253085017204, -0.010242380201816559, -0.01787577196955681, 0.017623290419578552, 0.008003700524568558, -0.03100487031042576, -0.031694989651441574, 0.03401783108711243, 0.044840920716524124, -0.005861805751919746, 0.02938898280262947, 0.008668571710586548, 0.02844638004899025, 0.007380909752100706, -0.016815345734357834, -0.0196768157184124, -0.07103178650140762, 0.008235142566263676, 0.03464062139391899, -0.0921730026602745, 0.06308700144290924, 0.03672781214118004, 0.008264599367976189, -0.01115131750702858, 0.030449409037828445, -0.03142567723989487, 0.009964649565517902, -0.016125226393342018, -0.010536943562328815, -0.02326206862926483, -0.013280588202178478, 0.021292705088853836, -0.0011635242262855172, 0.06827130913734436, -0.036121852695941925, -0.06079782545566559, 0.01076417788863182, 0.0008068925235420465, -0.03804071992635727, 0.028597868978977203, -0.042720068246126175, -0.03676147758960724, 0.011706779710948467, 0.011395384557545185, 0.02104022167623043, 0.01833024062216282, 0.006947481073439121, 0.0002246043732156977, 0.0437973253428936, 0.06695840507745743, 0.07157041877508163, 0.03023059107363224, -0.004978116601705551, -0.022420460358262062, -0.005811309441924095, -0.05938392132520676, -0.004245916847139597, -0.020383767783641815, -0.03282274678349495, -0.0006327846786007285, -0.02452448196709156, 0.05002523213624954, -0.04349434748291969, 0.025113608688116074, 0.03228411823511124, -0.0306345634162426, 0.07406158000230789, -0.058037348091602325, 0.03366435691714287, -0.01181618869304657, 0.03193064033985138, -0.02107388712465763, 0.010806257836520672, 0.06510686129331589, -0.05032820999622345, 0.005386296659708023, 0.026847323402762413, -0.03201480209827423, -0.049183622002601624, -0.021208543330430984, -0.010789426043629646, 0.016293548047542572, 0.004256437066942453, 0.006362562999129295, 0.03292373940348625, -0.006884360685944557, -0.030028603971004486, -0.049284614622592926, 0.019424332305788994, -0.05389663204550743, 0.044470611959695816, -0.0658474788069725, -0.05776803195476532, -0.03531390801072121, -0.06264936178922653, -0.028311721980571747, -0.0025016823783516884, -0.017589624971151352, 0.021208543330430984, 0.02060258574783802, -0.036559488624334335, 0.006682374514639378, 0.03235144540667534, -0.02982661873102188, -0.03029792010784149, -0.012354818172752857, -0.06716039031744003, 0.02238679677248001, -0.049654923379421234, 0.0834876000881195, -0.0012939736479893327, 0.003968185745179653, -0.029153332114219666, 0.00017450234736315906, -0.0262750294059515, -0.02980978600680828, 0.031779151409864426, -0.007275708951056004, -0.02582056075334549, -0.005390504840761423, 0.0284800436347723, 0.03154350072145462, 0.023783866316080093, 0.09069177508354187, -0.009459683671593666, -0.009510179981589317, -0.023430392146110535, 0.010158219374716282, -0.0920383483171463, 0.025938386097550392, 0.07379226386547089, -0.06052850931882858, 0.02235313132405281, 0.007187339942902327, -0.0743982270359993, -0.06534251570701599, -0.02137686498463154, -0.029035506770014763, -0.003961873706430197, 0.09776128828525543, 0.024389825761318207, 0.006535092834383249, 0.018986696377396584, -0.0283958837389946, 0.01932333968579769, 0.032620761543512344, 0.04295571893453598, 0.006248945835977793, -0.010158219374716282, 0.007831170223653316, -0.04423496127128601, -0.006598213687539101, 0.015662340447306633, -0.049318280071020126, -0.01444200798869133, 0.05722940340638161, 0.0786399319767952, -0.02097289264202118, 0.01446725707501173, 0.06012453883886337, -0.08463218808174133, -0.026897819712758064, 0.04194578528404236, 0.010267628356814384, 0.04423496127128601, -0.04288838803768158, -0.0021797670051455498, 0.02361554466187954, 0.010730513371527195, 0.06823764741420746, 0.014391511678695679, -0.06618412584066391, 0.0009368158644065261, -0.03464062139391899, -0.022100649774074554, 0.005525162443518639, 0.015292033553123474, -0.050563860684633255, 0.036626819521188736, 0.02268977463245392, 0.008483417332172394, 0.014677658677101135, 0.007187339942902327, 0.05726306885480881, 0.03428714722394943, 0.019054025411605835, 0.01575491763651371, 0.006964313331991434, -0.008668571710586548, -0.041373491287231445, 0.03117319382727146, 0.004662513267248869, 0.02718396671116352, -0.029136499390006065, 0.0241205096244812, 0.04524489492177963, 0.03602086007595062, 0.00005641409370582551, 0.04645681008696556, 0.037468425929546356, -0.06005720794200897, 0.007422990165650845, 0.017025748267769814, 0.022184809669852257, -0.029153332114219666, 0.01689109019935131, -0.05083317682147026, 0.040094245225191116, 0.0028151816222816706, -0.02980978600680828, 0.003362227464094758, -0.023464055731892586, -0.023329397663474083 ]
715,141
pytorch_optimizer.optimizer.adamod
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2, beta3 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) state['exp_avg_lr'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) exp_avg, exp_avg_sq = state['exp_avg'], state['exp_avg_sq'] exp_avg.mul_(beta1).add_(grad, alpha=1.0 - beta1) exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) de_nom = exp_avg_sq.sqrt().add_(group['eps']) step_size = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'] * bias_correction2_sq, bias_correction1=bias_correction1, ) step_size = torch.full_like(de_nom, fill_value=step_size) step_size.div_(de_nom) exp_avg_lr = state['exp_avg_lr'] exp_avg_lr.mul_(beta3).add_(step_size, alpha=1.0 - beta3) torch.min(step_size, exp_avg_lr, out=step_size) step_size.mul_(exp_avg) p.add_(-step_size) return loss
(self)
[ -0.004680073820054531, -0.024025332182645798, -0.03747875615954399, 0.052210733294487, -0.012546987272799015, 0.0019381039310246706, -0.028357144445180893, -0.046180546283721924, -0.024616902694106102, 0.019598107784986496, -0.027174007147550583, 0.0008259304449893534, 0.013520212844014168, 0.08533859252929688, -0.028357144445180893, 0.04072284325957298, 0.016229981556534767, 0.048890311270952225, 0.027727410197257996, -0.005829816684126854, -0.01864396408200264, -0.056179970502853394, -0.022937608882784843, 0.04919563978910446, -0.06518708169460297, -0.001406168914400041, 0.05698144808411598, -0.002569031435996294, -0.012766439467668533, 0.00546724209561944, -0.02608628384768963, -0.06728620082139969, 0.018701212480664253, 0.0058632115833461285, 0.034330081194639206, -0.052325230091810226, 0.004899526946246624, 0.011735964566469193, -0.06942348182201385, -0.03141040354967117, -0.023624593392014503, -0.01439802534878254, 0.003473082324489951, -0.0008998765842989087, 0.00410758750513196, 0.003821344580501318, -0.03419650346040726, 0.037898577749729156, -0.009646390564739704, -0.006283035036176443, 0.0036949205677956343, -0.05167641118168831, 0.06438560038805008, -0.009178860113024712, 0.020762162283062935, 0.07907941192388535, 0.0569051168859005, -0.06167583540081978, 0.028204482048749924, -0.03999769687652588, 0.059233229607343674, -0.07159892469644547, 0.03541780635714531, -0.002829035511240363, 0.00517622847110033, -0.014140406623482704, -0.06728620082139969, -0.025971785187721252, 0.017241373658180237, 0.04419592767953873, 0.022746780887246132, 0.010953566990792751, 0.00670285802334547, -0.0019190211314707994, -0.04869948327541351, -0.016869256272912025, -0.038032159209251404, -0.05743943899869919, 0.03015093505382538, -0.03576129674911499, 0.011077606119215488, 0.0000987687599263154, -0.02576187439262867, 0.008005264215171337, 0.00847756490111351, -0.037307009100914, -0.009384001605212688, -0.037345174700021744, -0.007313509937375784, -0.022765863686800003, 0.018739378079771996, -0.0057439436204731464, 0.01965535618364811, 0.030418094247579575, 0.05037877708673477, 0.04511190578341484, -0.040417518466711044, -0.034139253199100494, -0.03969236835837364, -0.037574172019958496, 0.024655068293213844, 0.03345227241516113, 0.023834504187107086, 0.044310424476861954, 0.03662002831697464, -0.046180546283721924, -0.011077606119215488, -0.038070324808359146, 0.03240271285176277, -0.05709594488143921, -0.022632284089922905, -0.006898457650095224, -0.04369977116584778, -0.005443388596177101, -0.03301336616277695, -0.009508039802312851, -0.0065597365610301495, 0.012136705219745636, -0.03015093505382538, 0.04373793676495552, 0.047859836369752884, -0.011716881766915321, -0.04732551798224449, 0.008420316502451897, 0.013176721520721912, 0.03835656866431236, 0.05003528296947479, 0.024807730689644814, 0.024616902694106102, -0.06663738191127777, -0.0016792925307527184, -0.007418465800583363, -0.016344478353857994, -0.01026658434420824, 0.028089985251426697, -0.008258111774921417, -0.008534813299775124, 0.0242543276399374, 0.009612996131181717, 0.008883075788617134, -0.006292576435953379, 0.010676865465939045, -0.006817355286329985, 0.006874603684991598, 0.02646793983876705, 0.03139132261276245, 0.047707173973321915, 0.04511190578341484, 0.0031295905355364084, -0.0016041537746787071, 0.020227842032909393, 0.021983465179800987, 0.0261053666472435, 0.019788935780525208, 0.003060415154322982, 0.027326669543981552, -0.020609499886631966, 0.03183022513985634, -0.02116290293633938, -0.02576187439262867, -0.025551963597536087, -0.020304173231124878, -0.028547972440719604, -0.0003822537255473435, 0.01764211244881153, 0.008186550810933113, -0.00377363758161664, 0.05175274237990379, -0.04270746186375618, 0.02032325603067875, 0.0016804852057248354, -0.02150639519095421, 0.05083676427602768, 0.030551673844456673, -0.026830514892935753, 0.14167122542858124, 0.006054040510207415, 0.00856343749910593, -0.020762162283062935, -0.00821517501026392, -0.002914908342063427, -0.011249351315200329, -0.017880648374557495, -0.04049384966492653, 0.002829035511240363, 0.03274620324373245, 0.005801192484796047, 0.006030187010765076, 0.02747933194041252, 0.0041099730879068375, -0.010963108390569687, -0.007012954447418451, 0.047554511576890945, -0.007785811088979244, -0.012651942670345306, 0.028204482048749924, 0.027517497539520264, 0.018949288874864578, 0.08930782973766327, 0.0065072583965957165, -0.012632859870791435, -0.013291219249367714, 0.02931128814816475, 0.004520254675298929, -0.035017065703868866, -0.013558379374444485, -0.019407277926802635, 0.056027304381132126, -0.008000493049621582, 0.007303968537598848, -0.06766785681247711, 0.004720625001937151, 0.03352860361337662, 0.06736253201961517, 0.04931013658642769, -0.07240040600299835, -0.004863746464252472, 0.01534262765198946, 0.06614122539758682, 0.000607968308031559, -0.032269131392240524, -0.07507201284170151, 0.02204071544110775, -0.004863746464252472, 0.05457700788974762, -0.02137281373143196, 0.03515064716339111, -0.05457700788974762, -0.019559942185878754, -0.0011914867209270597, -0.0029578448738902807, -0.030303597450256348, 0.009279045276343822, -0.00822471734136343, 0.040608346462249756, 0.02793732099235058, -0.05713411048054695, -0.034845318645238876, 0.005910919047892094, -0.0054577006958425045, -0.03238363191485405, -0.0376695841550827, -0.02629619464278221, 0.04427225887775421, -0.014627019874751568, 0.040112193673849106, 0.06358411908149719, 0.014102241024374962, -0.0243879072368145, 0.03715434670448303, -0.027250338345766068, -0.031429488211870193, -0.02845255844295025, 0.036200203001499176, -0.04640953987836838, -0.020227842032909393, 0.06427110731601715, 0.03286070004105568, 0.04797433316707611, -0.04931013658642769, 0.03541780635714531, -0.054500676691532135, -0.05098942667245865, 0.0502261146903038, -0.04133349657058716, 0.020628582686185837, 0.04377610236406326, -0.038757309317588806, 0.05171457678079605, 0.040112193673849106, 0.08678889274597168, 0.08953682333230972, -0.05896606668829918, -0.03158215060830116, -0.000056913169828476384, 0.03308969736099243, 0.008348755538463593, 0.01798560470342636, -0.009088216349482536, -0.04049384966492653, 0.07167525589466095, -0.05526399239897728, -0.0758734866976738, -0.005185769870877266, -0.05560748279094696, 0.03436824679374695, -0.018052395433187485, -0.008821056224405766, 0.06385128200054169, 0.005180999170988798, 0.03377667814493179, 0.0032202342990785837, 0.09236109256744385, 0.013291219249367714, 0.07946106791496277, 0.008305818773806095, -0.022613201290369034, 0.011650091968476772, -0.026487022638320923, 0.022594118490815163, 0.07369804382324219, -0.02053316868841648, -0.0055769686587154865, -0.0002686510269995779, -0.015323544852435589, -0.014054534025490284, 0.015657493844628334, -0.0010006580268964171, 0.017670737579464912, -0.023662758991122246, -0.0031295905355364084, -0.01144972164183855, -0.005152374971657991, 0.013758748769760132, -0.00022660907416138798, -0.09747529774904251, -0.006650380324572325, -0.05308854207396507, 0.01516134012490511, 0.06511075049638748, -0.01913057640194893, 0.026868680492043495, 0.019454985857009888, 0.035188812762498856, -0.029215874150395393, -0.0242543276399374, 0.07270573079586029, 0.02629619464278221, -0.029712028801441193, -0.02999827079474926, -0.07304922491312027, -0.005858440883457661, 0.060072872787714005, 0.03118140995502472, -0.04018852487206459, -0.016182273626327515, 0.04385243356227875, -0.0008479950483888388, 0.026677852496504784, -0.05137108638882637, 0.07003413140773773, 0.023605510592460632, -0.02866247110068798, 0.015876946970820427, 0.03018910065293312, -0.028109068050980568, 0.026696935296058655, 0.017422659322619438, 0.036715440452098846, 0.03087608329951763, -0.007924161851406097, -0.02576187439262867, -0.015046842396259308, 0.04816516488790512, 0.022117046639323235, 0.030570756644010544, -0.004183919169008732, -0.025990867987275124, 0.026391608640551567, -0.07717112451791763, 0.018768003210425377, 0.019264157861471176, -0.0529358796775341, 0.1039634719491005, 0.1068640723824501, 0.005371827632188797, -0.03820390626788139, -0.030551673844456673, 0.04522640258073807, -0.013109931722283363, 0.020552251487970352, -0.040074028074741364, -0.00006902631866978481, 0.027517497539520264, -0.039883196353912354, -0.02200254797935486, -0.04133349657058716, -0.006612214259803295, 0.06728620082139969, 0.04476841166615486, 0.032612625509500504, -0.04587521776556969, -0.026868680492043495, 0.029597532004117966, 0.04354710876941681, -0.02726942114531994, 0.011497428640723228, -0.05274505168199539, 0.03446366265416145, -0.06640838831663132, 0.06598856300115585, 0.01814780943095684, 0.005734402220696211, 0.010123462416231632, -0.06087435409426689, 0.03885272145271301, 0.03274620324373245, 0.03087608329951763, -0.040913671255111694, -0.014817848801612854, -0.0339675098657608, -0.004863746464252472, 0.00546724209561944, 0.020304173231124878, -0.01221303641796112, -0.06995780020952225, -0.0017234217375516891, 0.05438617989420891, 0.01931186392903328, 0.06366045027971268, -0.010190252214670181, 0.007089286111295223, -0.04663853347301483, 0.002652518916875124, 0.009336293675005436, -0.04190598055720329, -0.0184722188860178, -0.01441710814833641, -0.006721940822899342, 0.0020812253933399916, 0.04663853347301483, 0.015838781371712685, 0.03308969736099243, 0.031429488211870193, -0.03816574066877365, -0.04675303027033806, -0.040913671255111694, -0.01762302964925766, -0.042478468269109726, 0.002089574234560132, -0.03576129674911499, -0.04343261197209358, -0.025647377595305443, -0.02167814038693905, -0.03034176304936409, 0.008262882940471172, -0.016000986099243164, 0.039425209164619446, 0.04782167077064514, 0.014273986220359802, -0.00998988188803196, 0.006669463124126196, -0.010533744469285011, -0.013148097321391106, -0.0027193089481443167, -0.03692535310983658, 0.05633263289928436, -0.040608346462249756, -0.09930725395679474, 0.025647377595305443, 0.0005963396979495883, 0.0037450131494551897, 0.05343203619122505, -0.00353748700581491, 0.02931128814816475, 0.0007436355808749795, -0.05270688608288765, -0.03232638165354729, -0.011249351315200329, 0.014646102674305439, 0.01782339997589588, 0.012795064598321915, -0.03249812871217728, 0.01799514703452587, -0.014655644074082375, -0.012756898067891598, 0.0667518749833107, 0.046524036675691605, -0.004899526946246624, 0.0018999382155016065, -0.006197161972522736, -0.024635985493659973, 0.031257741153240204, -0.02507489174604416, -0.01628722995519638, -0.021659057587385178, -0.03639103099703789, -0.006015874911099672, 0.030647089704871178, -0.04202048107981682, 0.001825992134399712, -0.05827908590435982, 0.030208183452486992, 0.03436824679374695, -0.011602384969592094, 0.03927254676818848, -0.0027193089481443167, 0.013176721520721912, 0.03894813731312752, 0.06694270670413971, -0.0495009645819664, -0.0682021751999855, 0.04453941807150841, 0.03980686515569687, -0.04541723057627678, -0.053813692182302475, 0.03707801550626755, 0.017527615651488304, 0.08404096215963364, -0.02999827079474926, 0.013787373900413513, 0.044997405260801315, -0.046180546283721924, -0.016687968745827675, 0.0007639111136086285, -0.026353443041443825, -0.05259238928556442, 0.0047301664017140865, -0.0529358796775341, 0.01255652867257595, -0.0034325311426073313, -0.020609499886631966, 0.0010376310674473643, 0.000661937054246664, -0.016306312754750252, -0.04831782728433609, 0.049920786172151566, 0.07469034940004349, 0.047058358788490295, -0.043966930359601974, 0.03392934426665306, 0.003439687192440033, -0.008706559427082539, -0.004548878874629736, -0.010209335014224052, 0.0403793528676033, 0.0031367468181997538, -0.011936334893107414, 0.006803043186664581, 0.004195846151560545, -0.017899731174111366, 0.02253687009215355, 0.05656162649393082, 0.0741560310125351, -0.0062973471358418465, -0.04186781495809555, -0.019712604582309723, -0.07068295031785965, -0.12831321358680725, -0.040417518466711044, 0.002752704080194235, -0.01664026267826557, 0.015714744105935097, -0.017374953255057335, -0.042936455458402634, 0.03612387180328369, 0.018930206075310707, 0.01881570927798748, -0.029521198943257332, -0.010209335014224052, -0.0365818627178669, 0.03547505661845207, -0.017002837732434273, 0.01762302964925766, 0.0270976759493351, 0.015896029770374298, -0.026868680492043495, 0.02186896838247776, 0.015686118975281715, 0.000026872556190937757, -0.04576072096824646, -0.05766843259334564, 0.010276125743985176, -0.03410108759999275, 0.006774418987333775, 0.021659057587385178, 0.028738802298903465, -0.022479619830846786, -0.0467911958694458, 0.02490314468741417, -0.021582726389169693, 0.008444169536232948, -0.00402410002425313, -0.01760394684970379, -0.02913954295217991, -0.008420316502451897, 0.018052395433187485, -0.03524605929851532, -0.0077047087252140045, -0.0338720940053463, 0.04015035927295685, -0.03934887796640396, -0.008401233702898026, -0.01524721272289753, -0.004486859776079655, 0.06037820130586624, -0.1152605339884758, 0.036162037402391434, -0.0070606619119644165, 0.032975200563669205, -0.03391025960445404, 0.02032325603067875, -0.08747587352991104, -0.07480484992265701, 0.01008529681712389, 0.012356158345937729, -0.04083734005689621, 0.005486324895173311, 0.012947726994752884, 0.023834504187107086, -0.05037877708673477, -0.005047419108450413, 0.05404268577694893, 0.02053316868841648, -0.012947726994752884, 0.002855274360626936, -0.022307874634861946, 0.045035574585199356, 0.018930206075310707, -0.027593830600380898, -0.05068410187959671, -0.029521198943257332, 0.010695948265492916, -0.01482739020138979, -0.08312498033046722, -0.019865266978740692, -0.01880616880953312, -0.00398116372525692, 0.06461459398269653, -0.0036281305365264416, -0.04572255536913872, -0.0017389265121892095, -0.036849021911621094, -0.009026197716593742, 0.02681143209338188, -0.0233955979347229, 0.04572255536913872, -0.06663738191127777, -0.02507489174604416, -0.040074028074741364, -0.04167698696255684, 0.037402424961328506, 0.03711618110537529, -0.052134402096271515, 0.06152317300438881, 0.015972362831234932, 0.043661605566740036, 0.035513222217559814, -0.030952414497733116, -0.0643092691898346, -0.01322442851960659, 0.05377552658319473, -0.016210898756980896, -0.01949315145611763, -0.01799514703452587, -0.015037300996482372, -0.023777255788445473, 0.040761008858680725, 0.048775814473629, 0.004133826587349176, -0.012795064598321915, 0.052974045276641846, -0.029597532004117966, 0.01947406865656376, 0.025532878935337067, 0.0031081223860383034, 0.03881455585360527, 0.024025332182645798, 0.02169722318649292, -0.046371374279260635, -0.007504338398575783, -0.02169722318649292, -0.023319266736507416, -0.006931852549314499, -0.022155212238430977, -0.0035040918737649918, 0.00517622847110033, -0.026410691440105438, -0.02018967643380165, -0.027383917942643166, -0.09121611714363098, -0.035837627947330475, -0.06064536049962044, -0.0035231749061495066, 0.015485748648643494, -0.019063787534832954, 0.026219863444566727, -0.035513222217559814, -0.03784133121371269, 0.016010528430342674, 0.02270861528813839, 0.03087608329951763, -0.03118140995502472, 0.04106633737683296, 0.03984503075480461, -0.0034683116246014833, -0.004274562932550907, 0.028567055240273476, -0.005844128783792257, 0.005309808533638716, -0.0440814308822155, -0.018853874877095222, 0.019225992262363434, 0.030895166099071503, 0.017871107906103134, -0.0768657997250557, -0.02778465859591961, -0.024693233892321587, 0.009932633489370346, -0.06037820130586624, 0.016516223549842834, -0.03286070004105568, -0.01864396408200264, -0.003928686026483774, 0.03868097811937332, 0.03322327509522438, 0.03087608329951763, -0.022498702630400658, 0.011907710693776608, 0.03099058009684086, 0.00839169230312109, 0.013081307522952557, -0.027517497539520264, 0.01448389794677496, -0.007070203311741352, -0.003616203786805272, -0.026029033586382866, -0.025838205590844154, -0.06850749999284744, 0.04869948327541351, -0.020037014037370682, -0.026372525840997696, 0.03335685655474663, -0.0019154431065544486, -0.05461517348885536, -0.013358009047806263, 0.03946337476372719, -0.008482336066663265, 0.02387266978621483, 0.006898457650095224, 0.01933094672858715, 0.009131153114140034, -0.010094838216900826, 0.008239028975367546, -0.013081307522952557, -0.0048732878640294075, 0.05137108638882637, 0.017193665727972984, -0.018014229834079742, 0.006173308473080397, 0.023300183936953545, 0.03326144069433212, 0.01664026267826557, -0.03898630291223526, 0.03223096579313278, 0.04339444637298584, -0.01727953925728798, -0.014980052597820759, 0.031276822090148926, -0.07678946852684021, 0.07232407480478287, 0.05072226747870445, 0.03223096579313278, 0.037383340299129486, 0.07698030024766922, -0.057553935796022415, 0.022632284089922905, -0.07495751231908798, -0.06976696848869324, -0.07114093750715256, -0.01491326279938221, -0.028948713093996048, 0.0807587057352066, 0.034330081194639206, 0.02866247110068798, 0.02150639519095421, 0.062133822590112686, 0.020628582686185837 ]
715,156
pytorch_optimizer.optimizer.adanorm
AdaNorm
Symbolic Discovery of Optimization Algorithms. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param ams_bound: bool. whether to use the AMSBound variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability.
class AdaNorm(Optimizer, BaseOptimizer): r"""Symbolic Discovery of Optimization Algorithms. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param ams_bound: bool. whether to use the AMSBound variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.99), r: float = 0.95, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'r': r, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'ams_bound': ams_bound, 'adam_debias': adam_debias, 'eps': eps, } super().__init__(params, defaults) def __str__(self) -> str: return 'AdaNorm' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['exp_avg'] = torch.zeros_like(p) state['exp_avg_var'] = torch.zeros_like(p) state['exp_grad_norm'] = torch.zeros((1,), dtype=p.dtype, device=p.device) if group['ams_bound']: state['max_exp_avg_var'] = torch.zeros_like(p) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_var'] = torch.zeros_like(p) state['exp_grad_norm'] = torch.zeros((1,), dtype=p.dtype, device=p.device) if group['ams_bound']: state['max_exp_avg_var'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) s_grad = self.get_adanorm_gradient( grad=grad, adanorm=True, exp_grad_norm=state['exp_grad_norm'], r=group['r'], ) exp_avg, exp_avg_var = state['exp_avg'], state['exp_avg_var'] exp_avg.mul_(beta1).add_(s_grad, alpha=1.0 - beta1) exp_avg_var.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) de_nom = self.apply_ams_bound( ams_bound=group['ams_bound'], exp_avg_sq=exp_avg_var, max_exp_avg_sq=state.get('max_exp_avg_var', None), eps=group['eps'], ) de_nom.div_(bias_correction2_sq) step_size: float = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'], bias_correction1=bias_correction1, ) p.addcdiv_(exp_avg, de_nom, value=-step_size) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.99), r: float = 0.95, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ -0.024878861382603645, -0.009064743295311928, 0.008661193773150444, 0.023486614227294922, 0.020066527649760246, 0.0035714181140065193, -0.06489085406064987, -0.08958811312913895, -0.029943415895104408, 0.02471744269132614, -0.0364607498049736, 0.01015937328338623, 0.021953124552965164, 0.08026611059904099, -0.0318804569542408, 0.04386589303612709, -0.009316962212324142, 0.07917652279138565, -0.006789729930460453, -0.021751349791884422, -0.0525018647313118, -0.0637609139084816, -0.04225169122219086, 0.023345371708273888, -0.03583524748682976, -0.013266708701848984, 0.04725571349263191, -0.02276022359728813, -0.06920883804559708, -0.0007200846448540688, 0.00474927993491292, -0.06856315582990646, 0.018502769991755486, 0.00021217906032688916, 0.042493823915719986, -0.08563332259654999, 0.025060459971427917, 0.01855321414768696, -0.10928136110305786, -0.028732765465974808, 0.032970041036605835, -0.043018437922000885, 0.04463263973593712, -0.025120992213487625, -0.001139398431405425, 0.006164227612316608, -0.0005883003468625247, 0.027522115036845207, -0.04435015469789505, -0.02721945196390152, 0.00086447992362082, -0.08789320290088654, 0.07405143976211548, 0.027784422039985657, 0.0013153210747987032, 0.05121050402522087, 0.03728802502155304, -0.015022151172161102, 0.04527831822633743, -0.07469712197780609, 0.0426148883998394, -0.08442267775535583, 0.013327240943908691, -0.021973300725221634, -0.015909962356090546, -0.0006431579240597785, -0.07772374153137207, -0.006466889753937721, 0.019713420420885086, 0.033676255494356155, -0.014426914975047112, -0.04935417324304581, 0.032465603202581406, -0.010320792905986309, -0.007743116933852434, 0.0010032003046944737, -0.040617313235998154, -0.02816779538989067, 0.016394222155213356, -0.04539938271045685, 0.017867179587483406, 0.020036261528730392, -0.019905107095837593, -0.015254192985594273, 0.030589096248149872, -0.055246006697416306, -0.014890997670590878, -0.010280437767505646, 0.027300162240862846, -0.08434196561574936, 0.02697732299566269, -0.02104513719677925, 0.04923310875892639, 0.058514758944511414, 0.022639159113168716, 0.04806281253695488, -0.020258214324712753, -0.04786103963851929, 0.02766335755586624, -0.041565656661987305, -0.0006494633853435516, 0.01866419054567814, 0.05274399369955063, 0.06864386796951294, 0.00023755857546348125, -0.048466362059116364, -0.04221133887767792, -0.0404558964073658, 0.03755033388733864, -0.04346234351396561, -0.06711037456989288, 0.006683798041194677, -0.001244699815288186, -0.005397482309490442, -0.03605720028281212, -0.0022737523540854454, 0.009155542589724064, 0.00849977321922779, -0.021367976441979408, 0.05080695450305939, 0.05419677495956421, 0.026836080476641655, -0.061864227056503296, -0.002304018707945943, 0.032748088240623474, -0.014991885051131248, 0.025363123044371605, 0.01815975271165371, 0.012913602404296398, -0.06666646897792816, 0.0042221425101161, 0.005846431478857994, -0.01834135130047798, 0.015819162130355835, 0.038619741797447205, -0.0230427086353302, 0.015496322885155678, 0.02964075282216072, -0.04483441263437271, 0.014769932255148888, 0.021004781126976013, 0.02651323936879635, 0.00611882796511054, -0.036198440939188004, 0.012772359885275364, 0.001302710035815835, 0.024697264656424522, -0.0033040661364793777, -0.006260070484131575, -0.010008041746914387, 0.004229709040373564, -0.005357127171009779, 0.006330691743642092, 0.014568157494068146, 0.007995335385203362, -0.006709020119160414, -0.029802173376083374, -0.000042916602978948504, -0.02207418903708458, 0.0009351011831313372, -0.03976985812187195, -0.056214526295661926, -0.028349392116069794, -0.009796177968382835, 0.00631051417440176, -0.005700144916772842, -0.0010977822821587324, 0.020681941881775856, -0.021710993722081184, 0.025060459971427917, -0.00012461184815037996, -0.0750199556350708, -0.018149664625525475, 0.021226733922958374, -0.03755033388733864, 0.09854692965745926, 0.014850642532110214, 0.030084658414125443, -0.004640826024115086, -0.013276797719299793, 0.04160601273179054, -0.0005296594463288784, -0.0401935875415802, -0.06961239129304886, -0.02818797342479229, 0.03525009751319885, -0.006169271655380726, 0.01737282983958721, -0.01614200323820114, 0.027300162240862846, 0.007006638217717409, -0.022417206317186356, 0.017756203189492226, -0.019178716465830803, -0.013801412656903267, 0.017322387546300888, -0.013256619684398174, 0.009306873194873333, 0.08531048893928528, 0.035169389098882675, -0.0164648424834013, 0.02717909775674343, 0.019935373216867447, 0.01793779991567135, 0.006517333909869194, 0.00016102593508549035, -0.023123418912291527, 0.030205722898244858, -0.024838507175445557, -0.004237275570631027, -0.057990144938230515, 0.00047448661644011736, 0.05266328528523445, 0.05855511501431465, 0.04100068658590317, -0.03748980164527893, 0.05778837203979492, 0.047417134046554565, 0.06961239129304886, 0.007430365774780512, -0.0008203416364267468, -0.060693930834531784, 0.02895471826195717, -0.010996739380061626, 0.057465530931949615, -0.024899039417505264, 0.04035500809550285, 0.009347228333353996, -0.012590762227773666, 0.0020707163494080305, 0.020046349614858627, -0.05189653858542442, -0.01677759364247322, 0.010633544065058231, 0.07788516581058502, 0.0318804569542408, -0.030508385971188545, 0.022699691355228424, -0.011733218096196651, -0.01827072910964489, -0.03502814471721649, -0.0018260640790686011, -0.03454388678073883, 0.01569809764623642, -0.01312546618282795, 0.009160586632788181, 0.06004825234413147, 0.026109689846634865, -0.025928093120455742, -0.016263067722320557, -0.04479405656456947, -0.0200967937707901, -0.010835319757461548, 0.044713348150253296, -0.07296185195446014, -0.008847835473716259, 0.021004781126976013, 0.05443890392780304, 0.020157326012849808, -0.07090374827384949, 0.012812715023756027, -0.0250402819365263, -0.06819996237754822, 0.055568844079971313, -0.0010101363295689225, 0.04094015434384346, 0.07812729477882385, -0.022215431556105614, 0.020288480445742607, 0.013377685099840164, 0.0407182015478611, 0.09451142698526382, -0.06985452026128769, -0.005291550420224667, 0.0051755295135080814, 0.060451801866292953, 0.008378708735108376, -0.0024654387962073088, -0.01651528663933277, 0.028752943500876427, 0.05072624608874321, -0.027078209444880486, -0.07324434071779251, 0.018321173265576363, -0.0306698065251112, 0.047175005078315735, -0.019047563895583153, 0.0020152281504124403, 0.03823636844754219, 0.008671281859278679, 0.06125890091061592, 0.0017705759964883327, 0.09289722889661789, 0.001755442819558084, 0.060411445796489716, 0.01175339613109827, 0.003177956910803914, 0.023466436192393303, -0.03775211051106453, -0.014467270113527775, 0.028329215943813324, 0.007248768117278814, 0.05072624608874321, 0.010290526784956455, -0.03922506794333458, -0.04305879399180412, -0.005417659878730774, 0.03141637146472931, 0.07348646968603134, -0.015496322885155678, -0.010492301546037197, -0.003906869329512119, -0.0007629618630744517, 0.028268681839108467, 0.004580293316394091, -0.06969309598207474, 0.003937135450541973, -0.03771175444126129, 0.0380345955491066, 0.07974149286746979, -0.04761890694499016, 0.07723948359489441, 0.018371617421507835, -0.03242524713277817, -0.023466436192393303, -0.0554477795958519, 0.07167049497365952, 0.016192447394132614, -0.005558902397751808, -0.03361571952700615, -0.052582573145627975, -0.03797406330704689, 0.02649306319653988, 0.020308656617999077, -0.05266328528523445, -0.02964075282216072, 0.03791353106498718, -0.007586741354316473, 0.006446712650358677, -0.05669878423213959, 0.03605720028281212, 0.07401107996702194, -0.033676255494356155, 0.052824705839157104, 0.00932200625538826, -0.06743321567773819, 0.03868027403950691, 0.013962832279503345, -0.0035739403683692217, 0.015909962356090546, -0.014780021272599697, -0.009402716532349586, -0.0011431816965341568, 0.08159782737493515, 0.08079072833061218, 0.030346965417265892, -0.03139619529247284, -0.003899302566424012, 0.025383299216628075, -0.07110552489757538, -0.010340970940887928, 0.009614580310881138, -0.06295381486415863, 0.04753819853067398, 0.06101677194237709, -0.00325110019184649, -0.017029812559485435, -0.04878920316696167, 0.06985452026128769, -0.06246955320239067, 0.00889323465526104, -0.08861959725618362, 0.008272776380181313, -0.012933779507875443, -0.03329288214445114, -0.0041489992290735245, -0.0286722332239151, -0.005281461402773857, 0.03474565967917442, 0.03964879363775253, 0.03339377045631409, 0.008297998458147049, 0.01011397410184145, 0.03438246622681618, 0.04213062673807144, -0.03557293862104416, 0.029943415895104408, 0.015415612608194351, 0.03486672788858414, -0.039547909051179886, 0.03976985812187195, 0.02104513719677925, -0.0015385346487164497, -0.013791323639452457, -0.07497960329055786, 0.03781264275312424, 0.01713070087134838, 0.048385653644800186, -0.08506835252046585, -0.049394529312849045, -0.021690815687179565, -0.008434196934103966, 0.03872063010931015, 0.028107263147830963, -0.019552001729607582, -0.06715073436498642, 0.046932872384786606, 0.0504034049808979, -0.013983010314404964, 0.08224350214004517, -0.028551166877150536, 0.021186379715800285, -0.025423655286431313, 0.04237275943160057, -0.011107715778052807, -0.018068954348564148, 0.01053265668451786, -0.02619040012359619, -0.001208758563734591, 0.017160966992378235, 0.03942684084177017, 0.014729578047990799, 0.039608441293239594, 0.045237962156534195, 0.0218320582062006, -0.01055283471941948, -0.08401912450790405, -0.010613366961479187, -0.08958811312913895, -0.038861870765686035, -0.012964046560227871, -0.007415232714265585, -0.022114543244242668, -0.034685127437114716, -0.028793297708034515, -0.003947224002331495, -0.007833915762603283, 0.043220214545726776, 0.04039536416530609, -0.04188849776983261, 0.0225180946290493, -0.03625897318124771, 0.027865132316946983, -0.003843814367428422, -0.020944248884916306, -0.02893454022705555, 0.049192752689123154, -0.0018222808139398694, -0.0602903813123703, -0.015496322885155678, 0.03212258592247963, -0.011319579556584358, 0.04483441263437271, 0.013286885805428028, 0.0037177051417529583, -0.004666047636419535, 0.024213004857301712, -0.028571344912052155, 0.0013493705773726106, 0.023910341784358025, 0.0042221425101161, 0.01677759364247322, -0.03878116235136986, 0.03529045358300209, -0.018563304096460342, 0.05516529455780983, 0.07788516581058502, -0.006688842549920082, -0.01411416381597519, 0.023426081985235214, -0.00023078019148670137, -0.013377685099840164, 0.030548740178346634, -0.035673826932907104, -0.03648092597723007, -0.012933779507875443, 0.0079701142385602, -0.005011587403714657, 0.00009741951362229884, -0.01754434034228325, 0.04927346482872963, -0.058918312191963196, 0.026170222088694572, 0.034200869500637054, 0.017534250393509865, 0.036642346531152725, 0.008595616556704044, 0.009740689769387245, 0.00992733146995306, 0.032263826578855515, -0.04188849776983261, -0.0450361892580986, 0.07078268378973007, 0.024071762338280678, -0.03648092597723007, -0.049596305936574936, 0.02865205518901348, -0.0027643179055303335, 0.0680788978934288, -0.04172707721590996, 0.013085111044347286, -0.02600880153477192, -0.07510066777467728, -0.014013276435434818, 0.061420321464538574, -0.02084336057305336, -0.08103285729885101, -0.00003121207555523142, -0.0279861968010664, 0.02520170249044895, -0.033454302698373795, -0.0380345955491066, 0.036642346531152725, 0.0057707661762833595, 0.017695670947432518, 0.0013254097430035472, 0.009755822829902172, 0.027522115036845207, 0.016696885228157043, -0.01948137953877449, 0.014689222909510136, 0.031961165368556976, -0.05367216095328331, -0.03502814471721649, 0.014255406334996223, 0.04677145183086395, -0.008035690523684025, -0.008267732337117195, 0.048385653644800186, 0.0024780496023595333, 0.005157874431461096, -0.006794774439185858, 0.03012501262128353, 0.06787712126970291, 0.010411592200398445, 0.011198514141142368, 0.016303423792123795, -0.0335148349404335, -0.07756232470273972, -0.005548813380300999, 0.00005430585952126421, 0.008030646480619907, 0.00765736261382699, -0.05589168518781662, 0.0015309681184589863, 0.049112044274806976, 0.003127512987703085, 0.031053178012371063, -0.016222713515162468, -0.022154899314045906, -0.023143596947193146, 0.019693244248628616, -0.02007661573588848, 0.03064962849020958, 0.031497083604335785, 0.0018411972559988499, -0.04568186774849892, 0.01433611661195755, -0.002235919702798128, 0.011723130010068417, -0.041565656661987305, -0.05068589001893997, 0.011006828397512436, -0.0304074976593256, 0.010613366961479187, 0.022417206317186356, 0.01064363308250904, -0.03506850078701973, -0.04213062673807144, 0.01851285994052887, -0.037126608192920685, -0.05173511803150177, -0.015577033162117004, -0.012933779507875443, -0.0809117928147316, 0.027037855237722397, -0.0007850310066714883, -0.03625897318124771, 0.014255406334996223, -0.03678359091281891, 0.07425321638584137, -0.04539938271045685, -0.03303057327866554, -0.01420496217906475, 0.035673826932907104, 0.03288933262228966, -0.0380345955491066, 0.05609346181154251, 0.012035881169140339, -0.02060123160481453, -0.044471219182014465, 0.02913631498813629, -0.0024376946967095137, -0.050887662917375565, -0.02594826929271221, 0.03165850415825844, -0.054075710475444794, 0.020419633015990257, 0.038357432931661606, 0.011309490539133549, -0.047215357422828674, 0.009559092111885548, 0.04233240336179733, -0.005104908253997564, 0.024798152968287468, -0.007011682726442814, -0.0007598091033287346, 0.01827072910964489, 0.01706007868051529, -0.046246837824583054, -0.03163832426071167, -0.015476145781576633, -0.004519760608673096, -0.014790110290050507, -0.030831225216388702, -0.03964879363775253, -0.004719013813883066, 0.012156945653259754, 0.09644846618175507, 0.014800199307501316, -0.009034477174282074, 0.005125085823237896, -0.018432149663567543, 0.0016003282507881522, -0.0045676822774112225, -0.016414400190114975, 0.0364607498049736, -0.0707019716501236, 0.0021009824704378843, -0.012378898449242115, -0.009130320511758327, 0.027804600074887276, -0.00397496810182929, -0.023829631507396698, 0.028813475742936134, 0.009211030788719654, 0.053308963775634766, 0.021267088130116463, -0.02548418752849102, -0.03181992471218109, -0.0018285862170159817, 0.021953124552965164, -0.016565730795264244, 0.0073042563162744045, 0.0022422249894589186, 0.009715467691421509, 0.0026079423259943724, 0.0040052346885204315, 0.05383358150720596, 0.044955477118492126, -0.019198894500732422, 0.029822349548339844, -0.048668138682842255, -0.012540319003164768, 0.01633368991315365, 0.0018210196867585182, -0.0019206461729481816, 0.040294475853443146, 0.003321721451357007, -0.030024126172065735, -0.004161610268056393, -0.02356732450425625, 0.00765736261382699, -0.014144429937005043, -0.05096837505698204, 0.0016898659523576498, -0.016787683591246605, 0.019794130697846413, 0.00687044020742178, 0.02255844883620739, -0.10137178003787994, -0.03696518763899803, -0.02889418601989746, 0.0027163964696228504, 0.00949855986982584, 0.015012063086032867, 0.04087962210178375, -0.056214526295661926, -0.002708829939365387, -0.0060179405845701694, 0.026573771610856056, 0.03635986149311066, 0.0071327476762235165, -0.018502769991755486, 0.013892211019992828, -0.02255844883620739, -0.01383167877793312, 0.01877516694366932, 0.01706007868051529, -0.03529045358300209, -0.060693930834531784, -0.016041114926338196, 0.029822349548339844, -0.022639159113168716, 0.04640825837850571, -0.07045984268188477, -0.037166960537433624, -0.0218320582062006, 0.007864181883633137, -0.055246006697416306, 0.01959235593676567, -0.008918456733226776, -0.04600470885634422, -0.0038917360361665487, 0.027844954282045364, 0.0559723936021328, -0.0073900106362998486, 0.02447531186044216, 0.005604301579296589, 0.005281461402773857, 0.024919217452406883, 0.024576200172305107, 0.011561709456145763, 0.007677540183067322, 0.056214526295661926, -0.0017251765821129084, 0.04430979862809181, 0.006078472826629877, -0.040556780993938446, 0.0479821041226387, -0.008005424402654171, 0.01494144182652235, 0.04394660145044327, -0.004444095306098461, -0.03807494789361954, -0.04834529757499695, -0.026593949645757675, -0.025120992213487625, 0.04346234351396561, -0.031073356047272682, 0.029539864510297775, 0.02524205669760704, -0.005402526818215847, 0.02429371513426304, -0.04414837807416916, 0.006920883897691965, 0.06634363532066345, 0.0015032240189611912, -0.025403477251529694, 0.02792566455900669, 0.009538915008306503, 0.03145672753453255, -0.025161346420645714, -0.012580673210322857, -0.0011343540390953422, 0.030508385971188545, -0.023970874026417732, -0.02770371176302433, 0.0332525260746479, -0.051856186240911484, 0.06037108972668648, 0.009064743295311928, 0.022397028282284737, 0.05742517486214638, 0.052865058183670044, -0.06779640913009644, 0.05024198442697525, -0.05460032448172569, -0.05363180488348007, -0.11985437572002411, 0.020147237926721573, -0.06250990927219391, 0.04943488538265228, 0.008984033949673176, -0.006340780761092901, -0.004787112586200237, 0.028833651915192604, 0.002698741154745221 ]
715,158
pytorch_optimizer.optimizer.adanorm
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.99), r: float = 0.95, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'r': r, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'ams_bound': ams_bound, 'adam_debias': adam_debias, 'eps': eps, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.99), r: float = 0.95, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ 0.00671390350908041, -0.036131277680397034, -0.024665262550115585, -0.005680629052221775, -0.0468163825571537, -0.025960426777601242, -0.09012820571660995, -0.03875969722867012, -0.03161724656820297, 0.029331663623452187, -0.032588619738817215, 0.05020666494965553, 0.02194160781800747, 0.07515762746334076, -0.0613679364323616, 0.046359267085790634, 0.028246011584997177, 0.02641754411160946, -0.01771327666938305, -0.003890254767611623, 0.0020165517926216125, -0.005471117328852415, -0.039121583104133606, 0.1103937178850174, 0.02178923599421978, 0.04072149097919464, -0.001801087986677885, 0.01062796637415886, -0.03754071891307831, 0.0165800079703331, 0.01232310850173235, -0.01485629752278328, -0.008223341777920723, 0.051806576550006866, 0.030036386102437973, -0.017598997801542282, -0.012094549834728241, 0.00949469767510891, -0.08395712822675705, 0.03472183272242546, 0.06959603726863861, -0.026493730023503304, 0.0711197629570961, -0.04487363621592522, -0.02070358395576477, -0.024855727329850197, 0.0427023321390152, 0.039578698575496674, -0.00855665560811758, -0.024817634373903275, 0.027979359030723572, -0.0315791554749012, 0.03931204974651337, -0.015827670693397522, -0.05035903677344322, 0.05416834354400635, 0.03394092619419098, 0.0704340860247612, 0.04106432944536209, 0.009194714948534966, 0.008832830935716629, -0.04034056141972542, 0.020151233300566673, -0.0143134705722332, 0.0051520876586437225, 0.001308258855715394, -0.08944252878427505, -0.021674957126379013, 0.018846547231078148, 0.03592176362872124, 0.1061272919178009, -0.000374085851944983, -0.0293126180768013, 0.029007872566580772, -0.013884924352169037, 0.009604215621948242, -0.08266196399927139, -0.04594024270772934, -0.05096852779388428, -0.006409158930182457, 0.05592062696814537, 0.046359267085790634, -0.018551325425505638, -0.04921624809503555, 0.012189782224595547, -0.05493020638823509, -0.03399806469678879, -0.058510955423116684, 0.02750319615006447, 0.003864065743982792, -0.06182505190372467, -0.02961736172437668, 0.011685049161314964, -0.018427522853016853, 0.059691838920116425, 0.008180486969649792, 0.02514142543077469, -0.05832048878073692, 0.020932141691446304, -0.009189953096210957, -0.027522243559360504, -0.008247149176895618, -0.05096852779388428, 0.0026665148325264454, 0.022265398874878883, -0.027712708339095116, -0.05473973974585533, -0.040264375507831573, 0.03422662243247032, -0.05813002586364746, -0.024531936272978783, 0.07371009141206741, -0.030360177159309387, 0.04106432944536209, -0.06117746978998184, 0.02916024439036846, 0.023198679089546204, 0.008985202759504318, 0.0015594350406900048, 0.02542712353169918, 0.04510219395160675, 0.03020780347287655, -0.02592233382165432, 0.04293088987469673, 0.04693066328763962, -0.0005788360722362995, 0.003785498905926943, 0.006780566647648811, 0.018503708764910698, -0.021998748183250427, 0.04030246660113335, -0.01696093939244747, -0.029255477711558342, -0.024855727329850197, 0.02508428692817688, -0.018846547231078148, 0.010066093876957893, 0.05576825514435768, -0.03127441182732582, 0.011532677337527275, 0.06098700314760208, 0.014199191704392433, 0.03856923431158066, -0.024665262550115585, -0.013218294829130173, 0.0015249132411554456, -0.008294765837490559, -0.033426668494939804, -0.002635564189404249, 0.03900730237364769, 0.030074479058384895, 0.0060472749173641205, -0.01957983709871769, 0.04376893863081932, 0.007994783110916615, -0.04224521294236183, 0.028169825673103333, -0.01967507041990757, -0.004580691456794739, 0.016846660524606705, -0.024989053606987, 0.018475139513611794, 0.02346533164381981, -0.04034056141972542, -0.0051139947026968, 0.01456107571721077, -0.03938823565840721, 0.011227932758629322, -0.0038354960270226, -0.013799214735627174, 0.003911681938916445, -0.09378513693809509, -0.04373084381222725, 0.013532563112676144, -0.01771327666938305, 0.04506410285830498, 0.02365579642355442, -0.0034259953536093235, -0.006180600728839636, -0.017875172197818756, 0.07218636572360992, -0.009242330677807331, -0.015189611352980137, -0.0713864117860794, 0.023598656058311462, 0.011370781809091568, -0.03624555468559265, 0.04948289692401886, -0.04392131045460701, 0.019998861476778984, 0.04845438525080681, 0.011218409053981304, 0.015513402409851551, 0.024360518902540207, -0.028588848188519478, 0.02085595577955246, 0.037654999643564224, -0.020246466621756554, 0.008961394429206848, 0.05489211529493332, 0.06993887573480606, 0.034855157136917114, 0.014751541428267956, -0.010275605134665966, 0.02455098368227482, -0.0028831693343818188, -0.012199305929243565, -0.0002572770172264427, -0.012465957552194595, -0.03481706604361534, -0.0029045965056866407, -0.027236545458436012, 0.049597177654504776, 0.020836908370256424, -0.0018320386298000813, -0.03761690482497215, -0.009894674643874168, 0.027979359030723572, 0.023351050913333893, 0.00669009517878294, 0.09134718030691147, -0.02439861185848713, -0.008856638334691525, -0.014027773402631283, 0.043159447610378265, 0.019541744142770767, 0.02832219749689102, -0.04830201342701912, -0.08030018955469131, 0.03045540861785412, -0.013761121779680252, -0.04529266059398651, -0.03712169826030731, -0.015856239944696426, 0.007423386909067631, -0.0005853833281435072, -0.02881740778684616, 0.03049350157380104, -0.08669982850551605, -0.043007075786590576, 0.05504448711872101, 0.04235949367284775, -0.00856141746044159, -0.01418966893106699, 0.01894177868962288, -0.005442547146230936, 0.029769733548164368, 0.011066037230193615, -0.06441538035869598, -0.04456889256834984, -0.04155953973531723, -0.019208431243896484, 0.005133041180670261, 0.04693066328763962, -0.043845124542713165, 0.011865991167724133, 0.03595985844731331, 0.0006946033099666238, 0.027084171772003174, -0.004383083898574114, 0.003387902397662401, 0.005828239489346743, -0.024360518902540207, 0.07477669417858124, 0.019046535715460777, 0.0293126180768013, -0.0031522014178335667, -0.0007690038764849305, 0.030074479058384895, -0.005680629052221775, 0.1256309449672699, 0.03576939180493355, -0.013389714062213898, 0.0008844734402373433, -0.008199533447623253, -0.010532733984291553, 0.0009481603046879172, -0.030531596392393112, -0.007423386909067631, 0.0420166552066803, 0.03142678365111351, -0.03483611345291138, 0.011723142117261887, 0.017827557399868965, 0.011199362576007843, 0.005566349718719721, -0.018579894676804543, 0.014284901320934296, -0.008589987643063068, 0.012180259451270103, 0.009375656954944134, 0.009280424565076828, 0.07515762746334076, 0.020379792898893356, 0.09751825779676437, -0.01849418506026268, 0.04712112620472908, -0.010742245241999626, 0.06197742372751236, -0.0161324143409729, 0.04510219395160675, -0.042968980967998505, 0.06559626758098602, -0.004452127497643232, -0.055996812880039215, -0.03634078800678253, 0.03780737146735191, 0.025712821632623672, 0.03074110671877861, 0.04875912889838219, 0.03325524926185608, 0.02517951838672161, 0.061558399349451065, 0.01187551487237215, 0.04254996031522751, -0.06312021613121033, 0.013056399300694466, -0.05698723345994949, 0.02243681810796261, 0.04224521294236183, -0.010837478563189507, 0.026227079331874847, 0.006685333792120218, -0.031160131096839905, -0.05881569907069206, -0.05371122807264328, 0.029922107234597206, 0.015865763649344444, -0.034207575023174286, -0.00865188892930746, -0.03338857740163803, -0.004073577467352152, 0.017532335594296455, -0.03354094922542572, -0.05321601778268814, 0.007013886701315641, 0.008947109803557396, 0.054625462740659714, -0.001360636786557734, -0.027465103194117546, 0.0902043879032135, -0.02980782650411129, -0.012465957552194595, 0.053292203694581985, -0.009866105392575264, -0.03163629397749901, 0.006261548493057489, -0.016113368794322014, 0.034302808344364166, -0.008918539620935917, -0.006318687926977873, 0.008242388255894184, -0.000842213979922235, 0.09416607022285461, 0.02070358395576477, -0.013551609590649605, -0.01647525280714035, 0.011951700784265995, 0.03255052864551544, -0.0461307093501091, -0.027236545458436012, 0.007537666242569685, -0.04643545299768448, 0.05035903677344322, 0.012561189942061901, -0.00645677512511611, -0.0035855101887136698, -0.0282841045409441, 0.03517894819378853, 0.0013784929178655148, 0.03079824708402157, -0.06746282428503036, -0.023941494524478912, -0.009818488731980324, 0.019408419728279114, -0.00740434043109417, -0.03213150426745415, 0.004571168217808008, 0.0554635114967823, -0.00882806908339262, -0.000019660339603433385, 0.0011011278256773949, 0.06258691102266312, 0.02325581945478916, 0.012665946036577225, -0.028741221874952316, 0.005890140775591135, 0.013513516634702682, 0.06902464479207993, -0.004675924312323332, -0.005447308998554945, -0.0049187676049768925, 0.016856184229254723, -0.015751484781503677, -0.07721465080976486, 0.033464763313531876, 0.039616793394088745, 0.04258805140852928, -0.04811154678463936, -0.042968980967998505, -0.010856525041162968, -0.04239758849143982, -0.012104072608053684, 0.030131617560982704, -0.008918539620935917, -0.0004026556562166661, 0.017989452928304672, 0.033674273639917374, 0.016399066895246506, 0.06616766005754471, -0.00902329571545124, 0.0036331266164779663, -0.027522243559360504, -0.006409158930182457, -0.04685447737574577, -0.026988940313458443, 0.0035212282091379166, -0.010132757015526295, 0.023522470146417618, -0.019960768520832062, 0.02676038071513176, 0.008647127076983452, 0.06959603726863861, 0.02110356092453003, 0.06887227296829224, 0.05729197710752487, -0.017818033695220947, 0.00021665434178430587, -0.005513971671462059, -0.0604156069457531, -0.04879722371697426, -0.010989850386977196, -0.039426326751708984, -0.03872160613536835, 0.02321772649884224, 0.014037296175956726, -0.010370838455855846, -0.0006547246593981981, 0.005747291725128889, -0.02538903057575226, 0.017494242638349533, -0.06635812669992447, 0.005385407712310553, -0.036131277680397034, -0.06593910604715347, -0.034302808344364166, 0.021084513515233994, -0.004899721127003431, -0.040454838424921036, -0.01809420809149742, 0.025008101016283035, 0.016713334247469902, 0.053825508803129196, -0.00949469767510891, -0.026779428124427795, -0.031007759273052216, -0.003702170215547085, -0.02474144846200943, 0.03390283137559891, -0.018827499821782112, 0.053977880626916885, -0.02095118910074234, -0.01888464018702507, -0.00418071448802948, -0.04460698366165161, 0.03413138911128044, 0.06860561668872833, -0.022113027051091194, -0.0030283990781754255, 0.004516409710049629, 0.0038807315286248922, 0.009532790631055832, 0.03931204974651337, -0.021674957126379013, -0.03881683945655823, 0.019389372318983078, -0.008261434733867645, -0.020132187753915787, -0.023674843832850456, -0.008704266510903835, 0.00787098053842783, -0.04251186549663544, 0.0073138694278895855, 0.07127213478088379, 0.018132301047444344, -0.006661525461822748, -0.05961565300822258, 0.008637603372335434, 0.01234215497970581, 0.046702101826667786, -0.0833476334810257, -0.01918938383460045, 0.025941381230950356, 0.0704340860247612, -0.03973107039928436, -0.012904027476906776, 0.026741335168480873, 0.02405577339231968, 0.03788355737924576, 0.01069462951272726, 0.009132813662290573, -0.043997496366500854, -0.04597833380103111, -0.03186485171318054, 0.030874432995915413, -0.04548312723636627, -0.10163231194019318, -0.0021522585302591324, -0.019732210785150528, 0.00473544467240572, -0.028017451986670494, -0.007580521050840616, -0.02607470564544201, 0.007880504243075848, -0.027903173118829727, -0.02921738475561142, -0.04590214788913727, 0.05123518034815788, -0.013932540081441402, -0.03460755571722984, 0.05043522268533707, 0.05733007192611694, 0.04868294298648834, -0.026569915935397148, 0.005509210284799337, 0.047387778759002686, 0.019713163375854492, -0.04403558745980263, 0.08929015696048737, 0.02262728288769722, 0.0064901066944003105, -0.05896807089447975, -0.04761633649468422, 0.0381692573428154, 0.003964059986174107, 0.041292887181043625, 0.017341870814561844, -0.022360632196068764, -0.047578245401382446, -0.029522128403186798, 0.018770359456539154, 0.028550755232572556, 0.020817862823605537, -0.04285470396280289, -0.017551381140947342, 0.007151973899453878, -0.028855500742793083, 0.05976802483201027, -0.047387778759002686, -0.028550755232572556, 0.03215055167675018, -0.022932028397917747, -0.045178379863500595, 0.025636635720729828, 0.016903799027204514, -0.01922747679054737, -0.0009273281903006136, -0.015703868120908737, 0.05713960528373718, 0.019846489652991295, -0.01661810092628002, -0.006432967260479927, -0.00581395486369729, 0.0021117846481502056, -0.016951415687799454, 0.010561303235590458, 0.012189782224595547, -0.036131277680397034, -0.06094891205430031, 0.020741676911711693, -0.0015391980996355414, -0.0032640998251736164, 0.0051520876586437225, 0.006404397543519735, -0.03397901728749275, 0.016560962423682213, -0.008166201412677765, 0.02316058613359928, -0.0593109093606472, -0.035788439214229584, 0.009670877829194069, -0.030360177159309387, -0.10947947949171066, -0.08822354674339294, 0.02405577339231968, -0.005499687045812607, -0.05847286060452461, 0.008085253648459911, -0.010704152286052704, 0.029922107234597206, 0.0012761178659275174, 0.04936861991882324, -0.024017680436372757, -0.02415100671350956, -0.047540150582790375, 0.01502771582454443, -0.023274865001440048, -0.021770188584923744, 0.027027033269405365, 0.06418682634830475, -0.07721465080976486, -0.020570257678627968, 0.021522585302591324, 0.016208602115511894, -0.0002028158342000097, -0.010047047398984432, -0.023446284234523773, 0.04944480583071709, 0.02237967774271965, -0.047882989048957825, 0.004785441793501377, -0.02832219749689102, 0.0074805268086493015, -0.016008611768484116, -0.004790203645825386, -0.05233987793326378, -0.04674019664525986, 0.028588848188519478, 0.09386132657527924, -0.0035997950471937656, 0.00406881608068943, -0.03559797257184982, -0.016808567568659782, 0.04582596197724342, -0.0727577656507492, -0.013865877874195576, 0.009632784873247147, -0.11945986747741699, 0.0057377684861421585, -0.028798360377550125, 0.03973107039928436, -0.021674957126379013, -0.00452593294903636, -0.05698723345994949, 0.003297431394457817, 0.023274865001440048, 0.027122266590595245, 0.030912525951862335, 0.03266480565071106, -0.009661355055868626, 0.016065752133727074, 0.04354037716984749, -0.013246865011751652, -0.0002392720925854519, -0.007875742390751839, -0.02350342459976673, -0.031598202884197235, -0.0075471894815564156, 0.04967336356639862, 0.042664237320423126, -0.03889302536845207, 0.04647354409098625, -0.0540921576321125, -0.008466185070574284, -0.009185191243886948, 0.0008166201878339052, 0.018522754311561584, 0.02666514925658703, 0.04209284111857414, -0.028417430818080902, -0.03203627094626427, -0.02346533164381981, 0.0422833077609539, 0.0025093809235841036, -0.0019534602761268616, -0.00066543830325827, -0.03904539719223976, 0.002530808327719569, -0.02729368396103382, -0.0143134705722332, -0.04875912889838219, -0.013456377200782299, -0.04251186549663544, 0.0054330239072442055, 0.01254214346408844, 0.029522128403186798, -0.0659010112285614, -0.056339651346206665, 0.01898939535021782, -0.015399123542010784, 0.04106432944536209, 0.03935014083981514, -0.0035783676430583, -0.05013047903776169, 0.010066093876957893, -0.0028688842430710793, -0.069481760263443, 0.0486067570745945, -0.017941836267709732, -0.03201722353696823, -0.053139831870794296, -0.004909244365990162, 0.02759842947125435, 0.0006344877183437347, 0.027865080162882805, -0.035636067390441895, -0.06369161605834961, -0.07561474293470383, 0.023827215656638145, -0.016208602115511894, -0.012646899558603764, -0.010418454185128212, -0.05645392835140228, 0.05889188498258591, -0.033712368458509445, 0.024950960651040077, 0.00811382383108139, 0.004611642099916935, 0.018075162544846535, -0.04540693759918213, 0.03142678365111351, 0.05493020638823509, 0.03449327498674393, -0.07626232504844666, -0.01642763614654541, 0.03616936877369881, 0.04548312723636627, -0.011132699437439442, -0.04868294298648834, 0.014532506465911865, -0.03462659940123558, 0.001473725656978786, 0.0263604037463665, -0.005818716250360012, 0.01819896325469017, -0.07801460474729538, -0.0322648286819458, 0.012532619759440422, 0.03443613648414612, -0.02655087038874626, 0.046016428619623184, 0.026036612689495087, -0.030131617560982704, -0.00009545587818138301, -0.0030307797715067863, -0.027179405093193054, 0.04734968766570091, 0.006290118210017681, 0.062244076281785965, 0.0774432122707367, 0.01532293763011694, 0.029731640592217445, -0.037502627819776535, -0.014294424094259739, -0.004121194127947092, 0.05035903677344322, -0.016665717586874962, -0.004806869197636843, 0.06780566275119781, -0.007675753440707922, 0.0014130148338153958, -0.022608237341046333, 0.020551210269331932, 0.043654657900333405, 0.046549730002880096, -0.043007075786590576, 0.021408304572105408, -0.029769733548164368, -0.06593910604715347, -0.09149955213069916, -0.003097442677244544, -0.05199703946709633, 0.0656343623995781, 0.021065467968583107, 0.018732266500592232, 0.015084855258464813, 0.04007390886545181, 0.009594691917300224 ]
715,161
pytorch_optimizer.optimizer.adanorm
__str__
null
def __str__(self) -> str: return 'AdaNorm'
(self) -> str
[ -0.022984636947512627, 0.004846360068768263, 0.034133777022361755, -0.018464716151356697, 0.009684350341558456, -0.039607904851436615, 0.027136269956827164, -0.018514936789870262, 0.039507463574409485, -0.028391802683472633, -0.05906030908226967, 0.00811911839991808, -0.025177637115120888, 0.04516573250293732, 0.006214892026036978, -0.013693688437342644, 0.009784792549908161, -0.004729177337139845, -0.009090064093470573, 0.0028500615153461695, -0.010588334873318672, 0.015744393691420555, 0.028492245823144913, 0.002896097954362631, -0.01950262486934662, 0.0631449744105339, -0.031539008021354675, -0.010663666762411594, -0.03324653208255768, 0.006403222214430571, 0.03746512532234192, -0.07064469903707504, 0.03736468404531479, 0.02603139914572239, -0.01666511781513691, -0.015727652236819267, -0.03071872517466545, 0.03302890807390213, -0.03689595311880112, -0.0326438769698143, 0.051125332713127136, 0.0414828360080719, 0.02439083531498909, -0.025947697460651398, -0.030082589015364647, -0.051794953644275665, 0.04031100496649742, -0.004737547133117914, -0.0387708805501461, -0.002858431776985526, 0.02449127845466137, 0.014698115177452564, -0.008571110665798187, 0.010328857228159904, -0.013333768583834171, 0.00008167508349288255, 0.0015307049034163356, 0.01960306614637375, -0.02380491979420185, -0.000674326263833791, -0.0536029189825058, -0.02110970765352249, 0.04486440494656563, -0.046337567269802094, 0.004670585505664349, 0.03229232877492905, -0.016355419531464577, 0.0453331395983696, 0.05638183653354645, 0.03214166313409805, -0.007311391644179821, -0.03689595311880112, 0.022398721426725388, 0.025679850950837135, 0.026349468156695366, -0.05263197422027588, -0.06505338847637177, 0.026550354436039925, 0.02372121810913086, -0.03344741836190224, 0.030216511338949203, -0.006951471790671349, -0.04312339797616005, 0.02305159904062748, -0.0011320728808641434, -0.09187158942222595, -0.06230795383453369, -0.019067373126745224, -0.028927497565746307, -0.04463003948330879, -0.009383021853864193, -0.0393400564789772, -0.03157248720526695, 0.07680518180131912, -0.06950634717941284, 0.009793163277208805, 0.027052566409111023, -0.04175068065524101, 0.04720807075500488, 0.014455378986895084, 0.0024524759501218796, 0.03994271531701088, 0.013685317710042, 0.03244299069046974, -0.05762062966823578, -0.023101821541786194, -0.029898444190621376, 0.017209183424711227, 0.005080726463347673, 0.019335219636559486, -0.05450690537691116, 0.014070347882807255, 0.03716379776597023, 0.007893121801316738, 0.006244187708944082, -0.06033258140087128, 0.0007339640869759023, 0.007591794244945049, 0.051225777715444565, -0.023352928459644318, 0.04064581170678139, -0.00935791153460741, -0.05571221932768822, -0.039607904851436615, 0.09528664499521255, 0.07446151971817017, -0.05323462933301926, -0.02814069576561451, 0.013769020326435566, -0.04707414656877518, 0.029597114771604538, 0.046237122267484665, -0.05172799155116081, -0.027102788910269737, 0.08028719574213028, -0.0011174250394105911, 0.05959600210189819, 0.006725475657731295, 0.005817306227982044, 0.11470556259155273, -0.027605002745985985, 0.012957108207046986, 0.054741270840168, 0.0077089774422347546, -0.038268670439720154, -0.0005963785224594176, -0.017828579992055893, 0.06421636790037155, -0.0011080085532739758, -0.0016196385258808732, 0.03619285300374031, 0.026935383677482605, 0.031539008021354675, 0.028056994080543518, -0.0061018941923975945, 0.023503592237830162, -0.013827611692249775, -0.03291172534227371, 0.031137237325310707, -0.024926530197262764, 0.017326366156339645, -0.028977718204259872, -0.01536773331463337, 0.0017200811998918653, 0.00940813310444355, 0.027621742337942123, 0.009090064093470573, -0.0011090547777712345, 0.034518808126449585, 0.010303746908903122, -0.04195156693458557, -0.07794353365898132, -0.06923849880695343, 0.059863850474357605, -0.004381812643259764, 0.0558796226978302, -0.010303746908903122, 0.09937131404876709, 0.03619285300374031, -0.03619285300374031, 0.014957591891288757, 0.012998959049582481, -0.013333768583834171, 0.006612477824091911, 0.07178305089473724, -0.04992002248764038, 0.015627210959792137, 0.042487263679504395, 0.032225366681814194, -0.00424161134287715, 0.02094230242073536, 0.014924110844731331, -0.032677359879016876, -0.03572412207722664, -0.015568618662655354, -0.05946207791566849, -0.008922659792006016, -0.07392583042383194, 0.018029464408755302, 0.005289982073009014, 0.0011885719140991569, 0.045935794711112976, -0.02775566652417183, 0.04985306039452553, 0.08376920968294144, 0.0171757023781538, 0.0069138058461248875, -0.013300287537276745, -0.001511871931143105, -0.06733009219169617, 0.027872849255800247, -0.0038795992732048035, 0.010454410687088966, 0.025964437052607536, 0.018933448940515518, -0.04781072586774826, 0.025127414613962173, -0.013835981488227844, 0.0055452738888561726, 0.04369257390499115, 0.05346899852156639, 0.007679681293666363, -0.001002334407530725, -0.029647337272763252, 0.0012900609290227294, -0.008236301131546497, -0.004457144998013973, -0.003387848613783717, -0.0016259162221103907, -0.00751646189019084, -0.023185523226857185, -0.06803318858146667, -0.07218482345342636, 0.03458577021956444, 0.0728544369339943, 0.050924450159072876, -0.03495405986905098, -0.00033794782939366996, -0.07432759553194046, -0.03997619450092316, -0.010889662429690361, 0.03344741836190224, 0.02315204218029976, -0.003661973401904106, 0.024558240547776222, -0.035489752888679504, -0.018129907548427582, 0.0012272841995581985, -0.03053458034992218, -0.06820059567689896, 0.003117908723652363, -0.03225884586572647, 0.006934731267392635, 0.008110747672617435, -0.027772406116127968, -0.03622633218765259, -0.02065771445631981, 0.028190918266773224, -0.0037456757854670286, -0.008755255490541458, -0.041616760194301605, -0.013543023727834225, -0.042052011936903, 0.04627060517668724, 0.03984227031469345, 0.009968938305974007, -0.04791116714477539, 0.04272162914276123, 0.027822628617286682, -0.03769949451088905, 0.04118150845170021, 0.02390536293387413, -0.037967339158058167, 0.010529742576181889, -0.027119528502225876, 0.0037686938885599375, 0.014053607359528542, 0.04332428425550461, -0.1104869693517685, -0.02947993203997612, -0.028442025184631348, -0.04827945679426193, -0.005741974338889122, 0.011659723706543446, -0.011542540043592453, -0.05216324329376221, 0.028073735535144806, -0.0060391174629330635, 0.01804620586335659, 0.02939623035490513, 0.08932704478502274, 0.026868421584367752, 0.008102377876639366, 0.018799524754285812, -0.005051430780440569, 0.009131915867328644, 0.05561177432537079, 0.035087984055280685, -0.046705856919288635, -0.031254421919584274, -0.03256017342209816, -0.027102788910269737, 0.06177226081490517, -0.0015317511279135942, -0.0664261057972908, -0.0188162662088871, -0.029546894133090973, 0.012421414256095886, 0.04981957748532295, -0.01694970577955246, -0.016832523047924042, 0.05591310188174248, 0.01128306332975626, 0.10887988656759262, 0.024022545665502548, 0.038067784160375595, -0.0020883711986243725, 0.0018247090047225356, 0.020624235272407532, 0.04650497063994408, -0.054774753749370575, 0.032325807958841324, -0.02179606631398201, -0.040846697986125946, 0.0034861986059695482, -0.011835497803986073, 0.007286280859261751, 0.046337567269802094, 0.05668316408991814, 0.04935084655880928, -0.06033258140087128, -0.043926939368247986, 0.009475094266235828, -0.0004504227254074067, -0.03917265310883522, -0.040009673684835434, 0.012756222859025002, -0.03274432197213173, -0.02765522338449955, -0.02937948890030384, 0.08169339597225189, 0.007805234752595425, -0.012454894371330738, 0.02216435596346855, 0.050556160509586334, 0.022114135324954987, -0.036527663469314575, -0.006369741167873144, 0.019351961091160774, -0.005239760968834162, -0.002207646844908595, -0.014756706543266773, 0.020138761028647423, -0.00453666178509593, 0.033547863364219666, -0.019803952425718307, -0.016974816098809242, 0.07205089926719666, -0.04275510832667351, 0.014229382388293743, -0.01861537992954254, -0.06334586441516876, -0.0068091778084635735, 0.01900041103363037, -0.03294520452618599, 0.024340614676475525, -0.03686247020959854, -0.0042478893883526325, 0.07566683739423752, -0.030835909768939018, -0.003684991504997015, 0.01844797655940056, -0.009131915867328644, -0.013660207390785217, -0.022549385204911232, 0.051125332713127136, 0.051426663994789124, 0.004021893255412579, -0.04416130855679512, -0.0003018512506969273, 0.02159518003463745, 0.004519921727478504, 0.017694655805826187, 0.01622149534523487, -0.019418921321630478, -0.016815781593322754, 0.022917676717042923, 0.04620364308357239, -0.030501099303364754, -0.011827128008008003, -0.01449722982943058, -0.03314609080553055, -0.00922398827970028, -0.017108740285038948, -0.07586771994829178, -0.053736843168735504, -0.005733604077249765, -0.0014752522110939026, -0.05835720896720886, 0.027722185477614403, 0.02542874403297901, -0.024742385372519493, 0.03130464255809784, 0.008813846856355667, -0.042587704956531525, 0.04352517053484917, 0.007549942936748266, 0.006453443318605423, -0.023219004273414612, 0.0014511877670884132, 0.01940218172967434, -0.020624235272407532, -0.03130464255809784, -0.02286745421588421, 0.08504148572683334, -0.005164428614079952, 0.007520647253841162, -0.046036235988140106, -0.027136269956827164, -0.00940813310444355, -0.027052566409111023, 0.05480823293328285, -0.006616662722080946, 0.07734087854623795, 0.003825192805379629, 0.039607904851436615, 0.015635579824447632, 0.06518731266260147, 0.04108106344938278, -0.009952197782695293, -0.04914996027946472, -0.02007179893553257, 0.00523557560518384, -0.04215245321393013, 0.0171757023781538, -0.036058928817510605, 0.022298280149698257, -0.03294520452618599, -0.014388416893780231, 0.019234776496887207, 0.04663889482617378, -0.06267624348402023, 0.014564191922545433, 0.026767980307340622, 0.032325807958841324, -0.05534392595291138, -0.025797033682465553, 0.0339328907430172, 0.06177226081490517, -0.004850545432418585, -0.007210948970168829, 0.0531676709651947, -0.016129422932863235, -0.051895394921302795, 0.05825676769018173, -0.03917265310883522, -0.009659240022301674, -0.05979688838124275, -0.00019016105215996504, 0.04272162914276123, -0.06843496114015579, 0.04754287749528885, -0.04071277379989624, 0.017343105748295784, 0.021176669746637344, 0.0339328907430172, -0.0198876541107893, 0.03359808400273323, -0.04208549112081528, 0.0015505842166021466, -0.0014124754816293716, -0.024340614676475525, -0.008730144239962101, -0.0243071336299181, -0.00576289976015687, 0.014631153084337711, 0.004302295856177807, -0.024608461186289787, -0.0003013281093444675, -0.012890146113932133, -0.029362749308347702, -0.05223020538687706, -0.005486682523041964, 0.037900377064943314, -0.0028040253091603518, 0.036527663469314575, 0.003850303590297699, 0.015417954884469509, -0.0376325324177742, -0.0007773846737109125, 0.021009264513850212, 0.011894090101122856, -0.0409136600792408, -0.03309587016701698, -0.0075624980963766575, 0.017025036737322807, 0.0011006846325471997, -0.006532960571348667, -0.08042111992835999, -0.015049664303660393, 0.015518397092819214, -0.04218593239784241, -0.044596560299396515, -0.023888621479272842, 0.04011011868715286, -0.004808694124221802, 0.010973365046083927, -0.004637104459106922, -0.008638071827590466, -0.03033369593322277, -0.006373926531523466, -0.0431903600692749, 0.011944310739636421, 0.017242662608623505, 0.027219971641898155, 0.017359847202897072, -0.02785610966384411, -0.016012240201234818, -0.03271083906292915, 0.04416130855679512, -0.020858600735664368, -0.029915183782577515, -0.06090175732970238, -0.054774753749370575, -0.0343514047563076, 0.05534392595291138, -0.009868495166301727, 0.0312209390103817, -0.024842828512191772, 0.0764034166932106, 0.012655780650675297, 0.04841338098049164, 0.037766456604003906, 0.06368067115545273, -0.022683309391140938, 0.1017819344997406, -0.08376920968294144, 0.0215282179415226, 0.0397753082215786, 0.025813773274421692, 0.007616904564201832, -0.027035826817154884, -0.00710213603451848, -0.062274474650621414, 0.03856999799609184, -0.04051188752055168, -0.016857633367180824, 0.022432202473282814, 0.02074141800403595, 0.007357427850365639, -0.008320003747940063, -0.016455862671136856, -0.023587293922901154, -0.009776422753930092, -0.009784792549908161, 0.03629329428076744, 0.0008009258890524507, 0.013434210792183876, 0.05594658479094505, 0.021377554163336754, -0.02802351303398609, -0.03468621149659157, 0.03271083906292915, 0.052096281200647354, 0.01766117475926876, 0.04904951900243759, -0.02814069576561451, 0.02755478024482727, -0.003774971468374133, -0.03359808400273323, -0.036929432302713394, -0.0872512236237526, 0.019084112718701363, 0.033949632197618484, -0.1006435826420784, 0.0392061322927475, 0.022633088752627373, 0.008378595113754272, -0.0000682696481817402, 0.01555187813937664, -0.043257322162389755, 0.02362077496945858, -0.02631598711013794, -0.01664837822318077, -0.017895540222525597, -0.023788180202245712, 0.010387449525296688, 0.012605559080839157, 0.05263197422027588, -0.09093412756919861, -0.0654216781258583, 0.010211674496531487, -0.015300771221518517, -0.01950262486934662, 0.0503217913210392, -0.04339124634861946, -0.00391308031976223, -0.023403149098157883, 0.017995983362197876, -0.012421414256095886, 0.023403149098157883, 0.030300214886665344, -0.011174250394105911, 0.05149362236261368, 0.07667125761508942, 0.04898255690932274, 0.03142182528972626, 0.0158950574696064, -0.01170994434505701, 0.004545032046735287, -0.051426663994789124, 0.005942859686911106, -0.011190990917384624, -0.0005838231882080436, -0.019837433472275734, -0.0447639636695385, 0.0430564358830452, -0.010688777081668377, 0.004930062685161829, 0.06602433323860168, 0.014221012592315674, 0.08323352038860321, -0.018782785162329674, 0.027387376874685287, -0.029630595818161964, 0.0464714877307415, 0.001273320522159338, -0.006846844218671322, 0.047978129237890244, -0.038168225437402725, 0.010161452926695347, 0.008550184778869152, -0.042989473789930344, -0.04811205342411995, -0.05062312260270119, 0.017108740285038948, 0.022030431777238846, 0.023788180202245712, 0.008273967541754246, 0.016455862671136856, -0.006666884291917086, -0.013325397856533527, -0.04175068065524101, 0.05393772944808006, -0.030835909768939018, 0.03398311510682106, -0.062073588371276855, -0.07767568528652191, -0.045835353434085846, -0.03923961520195007, -0.03555671498179436, -0.010563223622739315, -0.007315576542168856, 0.03229232877492905, 0.024424316361546516, -0.015685802325606346, -0.01854841783642769, 0.007487166207283735, -0.032024480402469635, -0.018113166093826294, 0.015627210959792137, -0.059863850474357605, -0.010504632256925106, -0.0654216781258583, 0.05664968118071556, 0.01628008671104908, -0.013233325444161892, -0.01833079196512699, -0.0382017083466053, -0.01664837822318077, -0.01689111441373825, 0.0155016565695405, -0.002051751362159848, -0.05835720896720886, 0.007512276992201805, 0.02258286625146866, 0.021176669746637344, -0.0028793574310839176, 0.09120196849107742, -0.05370336398482323, 0.004076299723237753, -0.032024480402469635, -0.00038293778197839856, -0.08376920968294144, -0.000780000351369381, 0.051125332713127136, -0.056113988161087036, 0.008972881361842155, 0.06230795383453369, -0.0575871467590332, -0.07620252668857574, -0.03582456335425377, -0.02526133880019188, 0.014388416893780231, 0.08102377504110336, 0.008797106333076954, 0.00048494990915060043, -0.0005466802977025509, -0.028642909601330757, 0.026098361238837242, 0.02554592676460743, 0.06726312637329102, -0.012588818557560444, -0.008671552874147892, 0.0022997192572802305, -0.019351961091160774, 0.00830326322466135, 0.03291172534227371, -0.013317028060555458, -0.010002418421208858, 0.06903761625289917, 0.06702876091003418, -0.0043692574836313725, 0.0013706242898479104, 0.044797442853450775, -0.07633645087480545, 0.02092556282877922, 0.07472936809062958, 0.0009782700799405575, 0.00496772862970829, 0.0011331192217767239, 0.006018191576004028, -0.012513486668467522, -0.004582697991281748, 0.07064469903707504, 0.028592688962817192, -0.1051969900727272, -0.03416725993156433, -0.032593656331300735, -0.024022545665502548, 0.018029464408755302, 0.026366209611296654, -0.027119528502225876, 0.05628139153122902, -0.0029881703667342663, 0.010496262460947037, 0.0326438769698143, -0.0040093376301229, 0.03562367707490921, 0.027521299198269844, -0.0023520332761108875, 0.004233241081237793, 0.013727168552577496, 0.006009821314364672, 0.008110747672617435, 0.0376325324177742, 0.03890480473637581, 0.028458764776587486, -0.051426663994789124, 0.05510956048965454, 0.0631449744105339, 0.05216324329376221, -0.010395819321274757, 0.04620364308357239, -0.006658514030277729, -0.04928388446569443, 0.030869388952851295, 0.03733120486140251, 0.010261896066367626, -0.022633088752627373, 0.013543023727834225, -0.03994271531701088, 0.018163388594985008, -0.002555011073127389, -0.005557829514145851, 0.006323704961687326, 0.014748336747288704, -0.009784792549908161 ]
715,182
pytorch_optimizer.optimizer.adanorm
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_var'] = torch.zeros_like(p) state['exp_grad_norm'] = torch.zeros((1,), dtype=p.dtype, device=p.device) if group['ams_bound']: state['max_exp_avg_var'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) s_grad = self.get_adanorm_gradient( grad=grad, adanorm=True, exp_grad_norm=state['exp_grad_norm'], r=group['r'], ) exp_avg, exp_avg_var = state['exp_avg'], state['exp_avg_var'] exp_avg.mul_(beta1).add_(s_grad, alpha=1.0 - beta1) exp_avg_var.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) de_nom = self.apply_ams_bound( ams_bound=group['ams_bound'], exp_avg_sq=exp_avg_var, max_exp_avg_sq=state.get('max_exp_avg_var', None), eps=group['eps'], ) de_nom.div_(bias_correction2_sq) step_size: float = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'], bias_correction1=bias_correction1, ) p.addcdiv_(exp_avg, de_nom, value=-step_size) return loss
(self)
[ -0.009497471153736115, -0.017560454085469246, -0.022759273648262024, 0.06080692261457443, -0.005863112397491932, -0.003196310717612505, -0.03410039842128754, -0.050409287214279175, -0.02017911896109581, 0.016357023268938065, -0.0274189542979002, 0.008972776122391224, 0.014652966521680355, 0.0928855612874031, -0.027958091348409653, 0.03981909900903702, 0.011071558110415936, 0.05110246315598488, 0.028458718210458755, -0.008539540693163872, -0.026725778356194496, -0.06269390136003494, -0.026148132979869843, 0.046866387128829956, -0.06257837265729904, -0.006893248297274113, 0.056070223450660706, -0.00511217163875699, -0.016925042495131493, 0.006546660792082548, -0.021353665739297867, -0.07135859876871109, 0.0181766115128994, 0.0035477124620229006, 0.04005016013979912, -0.061230532824993134, 0.004811314400285482, 0.013064438477158546, -0.07971522212028503, -0.03641098737716675, -0.02189280278980732, -0.02214311622083187, 0.0013610796304419637, 0.005020711105316877, 0.0015728833386674523, 0.0011847771238535643, -0.0366613008081913, 0.0366227887570858, -0.01181287132203579, -0.005290279630571604, -0.00009612399298930541, -0.05295092985033989, 0.06488896161317825, -0.006609239149838686, 0.02403009496629238, 0.08341215550899506, 0.05707147717475891, -0.057687632739543915, 0.03155875578522682, -0.044863879680633545, 0.0545298308134079, -0.06997224688529968, 0.026745034381747246, -0.0061615630984306335, 0.005338416434824467, -0.009945147670805454, -0.06831632554531097, -0.020776020362973213, 0.022624488919973373, 0.04748254269361496, 0.012149832211434841, 0.009574491530656815, 0.007711580954492092, -0.005694631952792406, -0.04532599821686745, -0.01292965468019247, -0.04393964633345604, -0.048329759389162064, 0.028343189507722855, -0.03313765674829483, 0.009983657859265804, 0.002589782001450658, -0.025127623230218887, 0.012910399585962296, 0.005088103003799915, -0.039665061980485916, -0.015827514231204987, -0.03354200720787048, 0.0036102908197790384, -0.025069858878850937, 0.03098110854625702, -0.006517778150737286, 0.022855548188090324, 0.03336871415376663, 0.047020427882671356, 0.048714857548475266, -0.04020419716835022, -0.030711540952324867, -0.037912867963314056, -0.03277181461453438, 0.02010209858417511, 0.03962654992938042, 0.030249422416090965, 0.048830386251211166, 0.03829796612262726, -0.04540301859378815, -0.01287189032882452, -0.03525569289922714, 0.04232223704457283, -0.05814975127577782, -0.024877309799194336, -0.012717850506305695, -0.03827871009707451, -0.010445774532854557, -0.036045141518116, -0.01477812323719263, -0.007090610917657614, 0.006079729646444321, -0.03552526235580444, 0.04051227495074272, 0.050447795540094376, -0.012534929439425468, -0.04759807512164116, 0.002415284514427185, 0.013199223205447197, 0.03354200720787048, 0.05260434374213219, 0.01899494230747223, 0.024781035259366035, -0.0736691877245903, -0.0014501335099339485, -0.00831811036914587, -0.01006067730486393, -0.007942639291286469, 0.03101961873471737, -0.009598559699952602, -0.006021964829415083, 0.018571335822343826, 0.0012142611667513847, 0.005035152193158865, -0.008409570902585983, 0.01466259453445673, -0.008452894166111946, 0.001757008139975369, 0.025204643607139587, 0.02961401268839836, 0.04632725194096565, 0.04436325281858444, 0.0016486993990838528, -0.008967962116003036, 0.020525706931948662, 0.015885278582572937, 0.022451194003224373, 0.022855548188090324, 0.0033238744363188744, 0.024896565824747086, -0.01675174944102764, 0.033907849341630936, -0.016973180696368217, -0.0184846892952919, -0.022374175488948822, -0.026398446410894394, -0.028689777478575706, 0.006123053375631571, 0.02772703394293785, -0.000052386822062544525, -0.004753549583256245, 0.04651980102062225, -0.04243776574730873, 0.017310140654444695, -0.0036752759478986263, -0.023356175050139427, 0.04936952143907547, 0.02404935099184513, -0.032194167375564575, 0.13894324004650116, 0.004707819316536188, 0.013622830621898174, -0.02765001356601715, -0.004977387376129627, 0.00016923238581512123, -0.006325229536741972, -0.021603979170322418, -0.04232223704457283, 0.0038172807544469833, 0.03286808729171753, 0.011196714825928211, 0.004712632857263088, 0.02782330848276615, -0.00206990004517138, -0.007278345990926027, -0.01112932339310646, 0.04451729357242584, -0.011716596782207489, -0.008342178538441658, 0.02909412980079651, 0.02545495703816414, 0.014912907965481281, 0.10035645961761475, 0.00552133796736598, -0.018860159441828728, -0.01094640139490366, 0.028169894590973854, 0.0048835198394954205, -0.03438922390341759, -0.005208446178585291, -0.018494315445423126, 0.06230880320072174, -0.004199971444904804, 0.003480320330709219, -0.06311751157045364, 0.004849824123084545, 0.03323392942547798, 0.06627531349658966, 0.04933101311326027, -0.07020330429077148, 0.00823146291077137, 0.018783139064908028, 0.06685295701026917, 0.007239836268126965, -0.0366227887570858, -0.07925309985876083, 0.02585930936038494, -0.007759718224406242, 0.05799571052193642, -0.02012135460972786, 0.03342647850513458, -0.044940900057554245, -0.0181766115128994, -0.0015644592931494117, 0.0021192405838519335, -0.026571739464998245, 0.008462521247565746, -0.011023420840501785, 0.035833340138196945, 0.022566724568605423, -0.048445288091897964, -0.02947922796010971, -0.002367147244513035, -0.0038750453386455774, -0.039318472146987915, -0.035775575786828995, -0.027765542268753052, 0.04967759922146797, -0.015509809367358685, 0.03483208641409874, 0.06404174119234085, 0.017675982788205147, -0.01924525760114193, 0.03787435591220856, -0.02772703394293785, -0.02945997193455696, -0.026244407519698143, 0.04266882315278053, -0.04967759922146797, -0.02208535186946392, 0.06542809307575226, 0.04239925369620323, 0.05275838077068329, -0.05121799185872078, 0.03498612344264984, -0.0554540678858757, -0.057841673493385315, 0.048329759389162064, -0.0366227887570858, 0.017598964273929596, 0.046673838049173355, -0.037489257752895355, 0.05129501223564148, 0.039665061980485916, 0.06527405977249146, 0.08972775936126709, -0.05657085031270981, -0.030807815492153168, 0.005632053595036268, 0.03652651607990265, 0.012429027818143368, 0.008958335034549236, -0.007836737670004368, -0.03248298913240433, 0.0740927904844284, -0.05375963822007179, -0.07925309985876083, 0.0000568996874790173, -0.0554155558347702, 0.03292585164308548, -0.01856170780956745, -0.007547914516180754, 0.06069139391183853, 0.0020891549065709114, 0.03725820034742355, 0.00404352555051446, 0.10058751702308655, 0.0138923991471529, 0.0742853432893753, 0.005762023851275444, -0.019774766638875008, 0.01293928176164627, -0.03881784528493881, 0.019254883751273155, 0.07081946730613708, -0.009208648465573788, -0.0029171148780733347, 0.001666750875301659, -0.017310140654444695, -0.021161118522286415, 0.007485336158424616, 0.004428623244166374, 0.025127623230218887, -0.02189280278980732, -0.005304720718413591, -0.008895756676793098, -0.00454415287822485, 0.01930302195250988, -0.0043901135213673115, -0.0918072909116745, -0.0020205595064908266, -0.0550689697265625, 0.02549346722662449, 0.06666041165590286, -0.02183503843843937, 0.026013348251581192, 0.028651267290115356, 0.03167428448796272, -0.024511467665433884, -0.02202758751809597, 0.0740927904844284, 0.02942146360874176, -0.02360648848116398, -0.026475464925169945, -0.08217984437942505, -0.005733141675591469, 0.05926653370261192, 0.029748795554041862, -0.03874082863330841, -0.018773512914776802, 0.039279963821172714, -0.008505845442414284, 0.029825815930962563, -0.055685125291347504, 0.055685125291347504, 0.028285425156354904, -0.030750049278140068, 0.015933416783809662, 0.029902834445238113, -0.028323935344815254, 0.029864326119422913, 0.022913312539458275, 0.03240596875548363, 0.02175801992416382, -0.011321871541440487, -0.022701509296894073, -0.008284414187073708, 0.05356708914041519, 0.02395307645201683, 0.04082035273313522, -0.007701953873038292, -0.018282512202858925, 0.024607742205262184, -0.07986926287412643, 0.021449940279126167, 0.016453297808766365, -0.05349006876349449, 0.09373277425765991, 0.10259002447128296, 0.005092917010188103, -0.04432474449276924, -0.02924816869199276, 0.048483796417713165, -0.02225864678621292, 0.02000582404434681, -0.043169450014829636, 0.00253201718442142, 0.022932566702365875, -0.04212968796491623, -0.02376052737236023, -0.041552040725946426, -0.011572184972465038, 0.06873993575572968, 0.04363156855106354, 0.03500537946820259, -0.047020427882671356, -0.03358051925897598, 0.03146247938275337, 0.03981909900903702, -0.028073621913790703, 0.018966060131788254, -0.04775211215019226, 0.02945997193455696, -0.06261688470840454, 0.06592871993780136, 0.02181578427553177, 0.003735447535291314, 0.0012226850958541036, -0.059536103159189224, 0.03802839666604996, 0.032040126621723175, 0.030268678441643715, -0.041629061102867126, -0.022913312539458275, -0.035891104489564896, 0.004467132966965437, 0.011331499554216862, 0.015182476490736008, -0.012265360914170742, -0.07112754136323929, 0.0013731139479205012, 0.043323490768671036, 0.021218882873654366, 0.06519703567028046, -0.014999554492533207, 0.008448080159723759, -0.043130941689014435, 0.0043347557075321674, 0.008578050881624222, -0.03637247532606125, -0.02012135460972786, -0.022662999108433723, -0.0054876417852938175, 0.003624731907621026, 0.043246470391750336, 0.016953924670815468, 0.030422717332839966, 0.02944071777164936, -0.039742082357406616, -0.046712350100278854, -0.04524897783994675, -0.015298005193471909, -0.05329751968383789, -0.002010931959375739, -0.035717811435461044, -0.03806690499186516, -0.021392175927758217, -0.020564217120409012, -0.030692284926772118, 0.008414383977651596, -0.01739678718149662, 0.042976900935173035, 0.04740552604198456, 0.015577200800180435, -0.007798227947205305, 0.009454147890210152, -0.00831811036914587, -0.018667610362172127, -0.011668459512293339, -0.03175130486488342, 0.05865037813782692, -0.03827871009707451, -0.10259002447128296, 0.021295901387929916, 0.008616561070084572, 0.01103304885327816, 0.055030457675457, -0.0003052199899684638, 0.032174911350011826, 0.0066910721361637115, -0.048907406628131866, -0.02945997193455696, -0.011158205568790436, 0.02177727408707142, 0.007995590567588806, 0.015615710988640785, -0.03718117997050285, 0.024800291284918785, -0.010753853246569633, -0.003930403385311365, 0.07667294889688492, 0.048637837171554565, -0.012188341468572617, 0.0071291206404566765, -0.010185834020376205, -0.030788559466600418, 0.03092334419488907, -0.019120099022984505, -0.021565470844507217, -0.025339428335428238, -0.03485133871436119, -0.009372314438223839, 0.03265628218650818, -0.037624042481184006, 0.0012106508947908878, -0.057880181819200516, 0.028863070532679558, 0.030056873336434364, -0.010089559480547905, 0.03864455223083496, 0.010705715976655483, 0.010609441436827183, 0.04039674624800682, 0.06180817633867264, -0.04509493708610535, -0.06438833475112915, 0.04759807512164116, 0.03806690499186516, -0.05306646227836609, -0.058034222573041916, 0.03519792854785919, 0.009791108779609203, 0.08194878697395325, -0.03812466934323311, 0.015326887369155884, 0.04544152691960335, -0.056070223450660706, -0.017521943897008896, 0.007206140551716089, -0.030268678441643715, -0.05849633738398552, 0.003051899140700698, -0.050255246460437775, 0.01544241700321436, -0.004635613411664963, -0.022894056513905525, 0.0008207394275814295, -0.002471845829859376, -0.013151085935533047, -0.03895263001322746, 0.04790615290403366, 0.06450386345386505, 0.04405517503619194, -0.043284978717565536, 0.02358723245561123, -0.0006997946766205132, -0.015384652651846409, -0.006575542967766523, -0.006729581858962774, 0.04186011850833893, -0.0012527708895504475, -0.004715039860457182, 0.0018556894501671195, -0.002359926700592041, -0.02593632973730564, 0.015182476490736008, 0.0546453595161438, 0.06997224688529968, -0.012380890548229218, -0.043053921312093735, -0.018590589985251427, -0.06951013207435608, -0.13516928255558014, -0.03546749800443649, 0.002416488016024232, -0.013776869513094425, 0.018831277266144753, -0.014884025789797306, -0.03417741879820824, 0.032078638672828674, 0.022547468543052673, 0.017714492976665497, -0.026302171871066093, -0.0076104928739368916, -0.03490910306572914, 0.030499735847115517, -0.021084098145365715, 0.02210460789501667, 0.020564217120409012, 0.02041017636656761, -0.03531345725059509, 0.026302171871066093, 0.012226851657032967, -0.0010120848892256618, -0.04782913252711296, -0.055685125291347504, 0.009935520589351654, -0.0369693785905838, 0.006060474552214146, 0.025243153795599937, 0.02915189415216446, -0.026475464925169945, -0.048676345497369766, 0.01914898306131363, -0.027187896892428398, 0.002994134556502104, -0.00813518837094307, -0.010821244679391384, -0.037624042481184006, 0.004238481167703867, 0.021295901387929916, -0.03552526235580444, 0.0023430786095559597, -0.02541644684970379, 0.04574960470199585, -0.04074333608150482, -0.0027943651657551527, -0.010821244679391384, -0.0006378180114552379, 0.06019076704978943, -0.108828604221344, 0.04001164808869362, 0.0005216870340518653, 0.023048095405101776, -0.03787435591220856, 0.01996731571853161, -0.08302705734968185, -0.07917608320713043, 0.009463775902986526, 0.016357023268938065, -0.043169450014829636, 0.012756360694766045, 0.016020063310861588, 0.01992880553007126, -0.04817571863532066, -0.0016799886943772435, 0.05291242152452469, 0.00951672624796629, -0.013411026448011398, 0.002249211072921753, -0.027091622352600098, 0.04197564721107483, 0.018629100173711777, -0.021141862496733665, -0.05137203261256218, -0.03155875578522682, 0.0036078838165849447, -0.012236478738486767, -0.07582573592662811, -0.02368350699543953, -0.02037166804075241, -0.0017004469409585, 0.06188519671559334, 0.0064215040765702724, -0.04340050742030144, -0.0019327090121805668, -0.04532599821686745, -0.00817369855940342, 0.02922891452908516, -0.02187354862689972, 0.050524815917015076, -0.0733226016163826, -0.024549977853894234, -0.026668014004826546, -0.04725148528814316, 0.04182160645723343, 0.03250224515795708, -0.04347752779722214, 0.06612127274274826, 0.010580559261143208, 0.04767509177327156, 0.034023381769657135, -0.026513975113630295, -0.059382062405347824, -0.019794020801782608, 0.046596821397542953, -0.017733749002218246, -0.014084947295486927, -0.01705019921064377, -0.004127766005694866, -0.02403009496629238, 0.03993463143706322, 0.04960058256983757, 0.0045128632336854935, -0.013767242431640625, 0.05703296512365341, -0.032194167375564575, 0.02401084080338478, 0.026148132979869843, -0.001927895238623023, 0.03159726411104202, 0.03259851783514023, 0.017781885340809822, -0.041128434240818024, -0.009444520808756351, -0.024915819987654686, -0.017897414043545723, -0.009073863737285137, -0.028439464047551155, -0.002844909206032753, 0.0025223898701369762, -0.02042943239212036, -0.018359532579779625, -0.01930302195250988, -0.08903458714485168, -0.04035823792219162, -0.06250135600566864, -0.0022203288972377777, 0.018744628876447678, -0.02033315785229206, 0.0369308665394783, -0.037238944321870804, -0.03702714294195175, 0.02595558390021324, 0.028189150616526604, 0.037354476749897, -0.023548724129796028, 0.03924145549535751, 0.04024270921945572, -0.005194005090743303, 0.0020301868207752705, 0.028901580721139908, -0.005343230441212654, 0.002789551392197609, -0.05129501223564148, -0.018754256889224052, 0.01918749138712883, 0.026552485302090645, 0.02393382042646408, -0.0722828358411789, -0.03152024373412132, -0.02537793666124344, 0.004640426952391863, -0.059536103159189224, 0.012034302577376366, -0.03271404653787613, -0.018003316596150398, -0.0034658792428672314, 0.037547025829553604, 0.032078638672828674, 0.03302212804555893, -0.016164476051926613, 0.012900772504508495, 0.02183503843843937, 0.006830669939517975, 0.01981327496469021, -0.02745746448636055, 0.01815735548734665, 0.00007487592665711418, -0.0012876703403890133, -0.018378786742687225, -0.025204643607139587, -0.06438833475112915, 0.04963909089565277, -0.014133084565401077, -0.020718256011605263, 0.03275255858898163, -0.0032131588086485863, -0.04640427231788635, -0.021661745384335518, 0.03317616507411003, -0.012486792169511318, 0.029691031202673912, 0.0012467537308111787, 0.022740017622709274, 0.009208648465573788, -0.009141256101429462, 0.012352008372545242, -0.026051858440041542, -0.0030735607724636793, 0.05179563909769058, 0.017675982788205147, -0.027958091348409653, 0.007206140551716089, 0.017656728625297546, 0.03128918632864952, 0.016568828374147415, -0.03431220352649689, 0.024184133857488632, 0.04470984265208244, -0.02019837312400341, -0.018773512914776802, 0.028824562206864357, -0.07501702755689621, 0.07074244320392609, 0.048714857548475266, 0.03506314381957054, 0.045133449137210846, 0.07655742019414902, -0.05260434374213219, 0.018773512914776802, -0.07105052471160889, -0.06989523023366928, -0.0727064460515976, -0.014441163279116154, -0.025031348690390587, 0.07709655910730362, 0.032136403024196625, 0.02218162640929222, 0.018051452934741974, 0.06049884483218193, 0.02726491540670395 ]
715,197
pytorch_optimizer.optimizer.adapnm
AdaPNM
Adam + Positive-Negative Momentum Optimizers. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. use weight_decouple. :param fixed_decay: bool. fix weight decay. :param ams_bound: bool. whether to use the ams_bound variant. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param adanorm: bool. whether to use the AdaNorm variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability.
class AdaPNM(Optimizer, BaseOptimizer): r"""Adam + Positive-Negative Momentum Optimizers. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. use weight_decouple. :param fixed_decay: bool. fix weight decay. :param ams_bound: bool. whether to use the ams_bound variant. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param adanorm: bool. whether to use the AdaNorm variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999, 1.0), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = True, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'ams_bound': ams_bound, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults) def __str__(self) -> str: return 'AdaPNM' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) state['neg_exp_avg'] = torch.zeros_like(p) if group['ams_bound']: state['max_exp_avg_sq'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=p.dtype, device=p.device) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2, beta3 = group['betas'] noise_norm: float = math.sqrt((1 + beta3) ** 2 + beta3 ** 2) # fmt: skip bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) state['neg_exp_avg'] = torch.zeros_like(p) if group['ams_bound']: state['max_exp_avg_sq'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) if group['step'] % 2 == 1: exp_avg, neg_exp_avg = state['exp_avg'], state['neg_exp_avg'] else: exp_avg, neg_exp_avg = state['neg_exp_avg'], state['exp_avg'] s_grad = self.get_adanorm_gradient( grad=grad, adanorm=group['adanorm'], exp_grad_norm=state.get('exp_grad_norm', None), r=group.get('r', None), ) exp_avg_sq = state['exp_avg_sq'] exp_avg.mul_(beta1 ** 2).add_(s_grad, alpha=1.0 - beta1 ** 2) # fmt: skip exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) de_nom = self.apply_ams_bound( ams_bound=group['ams_bound'], exp_avg_sq=exp_avg_sq, max_exp_avg_sq=state.get('max_exp_avg_sq', None), eps=group['eps'], ) de_nom.div_(bias_correction2_sq) step_size: float = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'], bias_correction1=bias_correction1 ) pn_momentum = exp_avg.mul(1.0 + beta3).add_(neg_exp_avg, alpha=-beta3).mul_(1.0 / noise_norm) p.addcdiv_(pn_momentum, de_nom, value=-step_size) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999, 1.0), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = True, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ -0.0039906264282763, 0.0031515585724264383, 0.01664993353188038, 0.02361520566046238, 0.020097188651561737, -0.015072890557348728, -0.06801503151655197, -0.07448495179414749, -0.0246867872774601, 0.017650749534368515, -0.048281773924827576, 0.017408126965165138, 0.036777447909116745, 0.10473182052373886, -0.029781848192214966, 0.044965941458940506, 0.008062126114964485, 0.0682172179222107, -0.00002651703471201472, -0.015820974484086037, -0.049090515822172165, -0.05742053687572479, -0.03216763213276863, 0.032187849283218384, -0.043146274983882904, -0.022240348160266876, 0.029397698119282722, -0.024140886962413788, -0.07347402721643448, 0.010543947108089924, 0.008239038288593292, -0.08075268566608429, 0.006105986423790455, 0.0014254042180255055, 0.0228873398154974, -0.05604567751288414, 0.012191754765808582, 0.0051228622905910015, -0.1329568475484848, -0.04249928519129753, 0.044238075613975525, -0.0556817464530468, 0.05434732511639595, -0.002493193605914712, 0.0016313801752403378, 0.003343634307384491, -0.00453399820253253, 0.034088388085365295, -0.028952891007065773, -0.00979586225003004, 0.01504256296902895, -0.06393089145421982, 0.07933738827705383, 0.019753472879529, -0.01315213367342949, 0.0691472664475441, 0.04690691828727722, -0.004306540358811617, 0.045936428010463715, -0.08115705102682114, 0.028406990692019463, -0.061747293919324875, 0.023028871044516563, -0.04415719956159592, -0.02444416470825672, -0.007116911467164755, -0.06837896257638931, -0.028225025162100792, 0.014132730662822723, 0.030570371076464653, 0.0049560596235096455, -0.046219486743211746, 0.02687038481235504, 0.005388230085372925, -0.004877713043242693, -0.008608025498688221, -0.041104208678007126, -0.017094740644097328, -0.0047538746148347855, -0.013212788850069046, 0.009401601739227772, 0.02061275951564312, -0.010028375312685966, -0.0053983391262590885, 0.029680756852030754, -0.06312215328216553, -0.017448564991354942, 0.0008062126580625772, 0.01828763261437416, -0.07832646369934082, 0.05139542371034622, -0.029984034597873688, 0.05620742589235306, 0.04411676526069641, 0.016498295590281487, 0.04266103357076645, -0.019328884780406952, -0.03661569952964783, -0.0019371849484741688, -0.028326116502285004, -0.018095556646585464, 0.027820654213428497, 0.0413266122341156, 0.048362649977207184, 0.0006308803567662835, -0.03999219089746475, -0.04395501688122749, -0.02507093921303749, 0.04185229167342186, -0.04642167314887047, -0.07153304666280746, 0.00016932992730289698, -0.02488897182047367, -0.024990065023303032, -0.010705695487558842, -0.0076577565632760525, -0.0007461889763362706, 0.015558134764432907, -0.03249112889170647, 0.06389045715332031, 0.0592806376516819, 0.0381927452981472, -0.060857679694890976, -0.005282082594931126, 0.021087894216179848, -0.03536215424537659, 0.04876701906323433, -0.008931522257626057, 0.017023976892232895, -0.07881170511245728, -0.0309949591755867, 0.013495847582817078, -0.013546394184231758, 0.01949063315987587, 0.013334100134670734, -0.02183597907423973, 0.023756736889481544, 0.0269310399889946, -0.04941401258111, 0.004582017194479704, 0.02345345914363861, 0.03867798671126366, 0.00788015965372324, -0.03495778515934944, 0.011120174080133438, -0.02854852005839348, 0.042984526604413986, 0.0005888637970201671, -0.013212788850069046, -0.013354318216443062, 0.011342577636241913, -0.034270353615283966, -0.001145504298619926, 0.01714528724551201, 0.04130639135837555, 0.00244896556250751, -0.02061275951564312, 0.012909511104226112, -0.03289549797773361, 0.014334915205836296, -0.03241025283932686, -0.04617905244231224, -0.021431608125567436, 0.02650645188987255, 0.012070443481206894, -0.01068547647446394, 0.0010128204012289643, 0.020723961293697357, -0.017883261665701866, -0.002987283281981945, 0.008911303244531155, -0.05458994582295418, -0.013131914660334587, 0.004450596868991852, -0.03611023724079132, 0.09624005109071732, 0.0015934704570099711, 0.024545257911086082, -0.011757057160139084, -0.016680261120200157, 0.03851623833179474, 0.023210836574435234, -0.019814128056168556, -0.048362649977207184, -0.03329986706376076, 0.03845558315515518, 0.0022758448030799627, 0.02848786488175392, -0.03295615315437317, 0.016407310962677002, 0.007586991880089045, -0.02551574632525444, 0.018257305026054382, -0.018742548301815987, -0.031399328261613846, 0.017408126965165138, -0.0002389889705227688, 0.005297246854752302, 0.1060258075594902, 0.02345345914363861, -0.012201864272356033, 0.017943916842341423, 0.01351606659591198, 0.018540363758802414, -0.0004978805081918836, -0.01029121596366167, -0.036170896142721176, 0.028872016817331314, -0.01826741360127926, -0.0026460960507392883, -0.044965941458940506, 0.006914726458489895, 0.0574609749019146, 0.04569380730390549, 0.03710094466805458, -0.04278234392404556, 0.06510356813669205, 0.04706866666674614, 0.056530922651290894, 0.00689450791105628, -0.020825054496526718, -0.05810796469449997, 0.009998047724366188, -0.0018146102083846927, 0.0763450488448143, -0.005863364785909653, 0.031763263046741486, 0.03404795378446579, -0.0005032510962337255, 0.01602316088974476, 0.018166320398449898, -0.026425577700138092, -0.018742548301815987, -0.0014405680121853948, 0.0826127827167511, 0.024949626997113228, -0.02587967924773693, -0.01985456608235836, -0.05171892046928406, -0.022321222350001335, -0.03362336382269859, -0.012050225399434566, -0.0190963726490736, 0.025899896398186684, -0.007465680595487356, 0.003581201657652855, 0.07286746799945831, 0.02666820026934147, -0.03135889023542404, 0.007859941571950912, -0.024181324988603592, -0.008026744239032269, -0.016013050451874733, 0.05091017857193947, -0.0871012955904007, -0.0052770283073186874, 0.02282668463885784, 0.058795396238565445, 0.020137624815106392, -0.05847189947962761, 0.0319250114262104, -0.05547956004738808, -0.0709264948964119, 0.028265461325645447, 0.01878298446536064, 0.06134292483329773, 0.06081724539399147, -0.03429057449102402, 0.023514114320278168, 0.008769773878157139, 0.058431461453437805, 0.0808335617184639, -0.06599318236112595, -0.013404864817857742, 0.006939999759197235, 0.05612655356526375, 0.005833036731928587, -0.01990511268377304, -0.016771243885159492, 0.01784282550215721, 0.04812002554535866, -0.03186435252428055, -0.058876268565654755, 0.01231306605041027, -0.01962205395102501, 0.037869248539209366, -0.020541993901133537, 0.019349103793501854, 0.04330802336335182, 0.023574769496917725, 0.03859711438417435, 0.0020395410247147083, 0.08467507362365723, -0.004822112154215574, 0.05531781166791916, 0.004988914355635643, 0.0154873700812459, 0.025798805058002472, -0.056166987866163254, 0.008426059037446976, 0.03653482720255852, 0.010351871140301228, 0.05171892046928406, 0.0005721203051507473, -0.04524900019168854, -0.0010741077130660415, -0.011201048269867897, 0.04464244470000267, 0.07958000898361206, -0.019662490114569664, -0.006641776766628027, -0.007870051078498363, -0.003313306486234069, 0.03485669195652008, 0.009775644168257713, -0.07060299813747406, 0.015972614288330078, -0.01693299226462841, 0.05204241722822189, 0.052851155400276184, -0.0476347841322422, 0.0390823595225811, 0.016690371558070183, -0.03172282502055168, -0.018712220713496208, -0.04617905244231224, 0.06518443673849106, 0.026425577700138092, -0.008491769433021545, -0.029519008472561836, -0.044318947941064835, -0.026466015726327896, 0.007910487242043018, 0.014739285223186016, -0.06150467321276665, -0.0345938503742218, 0.018853750079870224, -0.0019801491871476173, 0.03162173181772232, -0.04650254547595978, 0.04694735258817673, 0.06482050567865372, -0.04565336927771568, 0.04464244470000267, 0.02650645188987255, -0.06150467321276665, 0.0422162264585495, 0.021229423582553864, -0.002499511931091547, 0.01777205988764763, -0.015012235380709171, 0.02541465312242508, -0.001637698384001851, 0.0879909098148346, 0.06162598356604576, 0.02685016579926014, -0.011979460716247559, -0.01472917664796114, 0.01633654721081257, -0.05729922652244568, -0.0301053449511528, 0.010296270251274109, -0.0458151176571846, 0.04977794364094734, 0.05551999807357788, -0.002648623427376151, -0.01145377941429615, -0.04662385955452919, 0.07699204236268997, -0.06065549701452255, 0.02199772745370865, -0.08119749277830124, -0.010988754220306873, -0.005226481705904007, -0.03972934931516647, -0.004392468836158514, -0.026910820975899696, -0.004832221195101738, 0.03914301469922066, 0.03425013646483421, 0.026021208614110947, -0.0220179446041584, -0.0007720939465798438, 0.043348461389541626, 0.03987088054418564, -0.015800757333636284, 0.052770283073186874, 0.012788200750946999, 0.010442854836583138, -0.05774403363466263, 0.04029546678066254, 0.021087894216179848, 0.0025070938281714916, -0.00756677333265543, -0.0763450488448143, 0.04338889941573143, 0.009674551896750927, 0.043429333716630936, -0.09041712433099747, -0.04448069632053375, -0.007890269160270691, -0.01222208235412836, 0.020208390429615974, 0.0065659573301672935, -0.020370136946439743, -0.06938988715410233, 0.03837471082806587, 0.04383370652794838, -0.009088215418159962, 0.08564556390047073, -0.01863134652376175, 0.027254536747932434, -0.022038163617253304, 0.019834347069263458, -0.016326438635587692, -0.022563844919204712, -0.014617974869906902, -0.04241840913891792, 0.0027623523492366076, -0.011281922459602356, 0.035968709737062454, 0.012383830733597279, 0.031116269528865814, 0.018661674112081528, 0.02264471910893917, -0.033562708646059036, -0.07331227511167526, -0.0066468315199017525, -0.1014968603849411, -0.03843536600470543, 0.0003964721108786762, -0.008789991959929466, -0.005095061846077442, -0.0413266122341156, -0.009649278596043587, 0.004715964663773775, -0.01109995599836111, 0.015295294113457203, 0.02515181340277195, -0.017539547756314278, 0.023473676294088364, -0.016842009499669075, 0.03942607343196869, 0.0036418570671230555, -0.007106802426278591, -0.03241025283932686, 0.05604567751288414, -0.024990065023303032, -0.06328389793634415, -0.010245724581182003, 0.0300851259380579, 0.01509310957044363, 0.0664379894733429, -0.007824558764696121, 0.000852967903483659, -0.005711725912988186, 0.024181324988603592, -0.017569875344634056, -0.015477260574698448, 0.017600202932953835, 0.002825535135343671, 0.01029121596366167, -0.038415148854255676, 0.054023828357458115, -0.007076474372297525, 0.05944238603115082, 0.08006525784730911, -0.0038440420757979155, -0.02515181340277195, 0.035604774951934814, -0.0246867872774601, -0.02389826625585556, 0.01933899335563183, -0.042903654277324677, -0.04727084934711456, -0.026162737980484962, 0.01150432601571083, -0.0053629567846655846, 0.022523406893014908, 0.011403233744204044, 0.05709704011678696, -0.06562924385070801, 0.03762662783265114, 0.04322715103626251, 0.004561798647046089, 0.04021459445357323, 0.02262450009584427, -0.006348608527332544, 0.006424427963793278, 0.013323990628123283, -0.049171388149261475, -0.06142380088567734, 0.07339315116405487, 0.039830442517995834, -0.0637287050485611, -0.053134214133024216, 0.008183437399566174, -0.01716550625860691, 0.07537456601858139, -0.06146423518657684, 0.025030501186847687, -0.010109249502420425, -0.06502269208431244, -0.03491734713315964, 0.045936428010463715, -0.021411390975117683, -0.08338108658790588, 0.006606394425034523, -0.03441188484430313, 0.02264471910893917, -0.03404795378446579, -0.018692001700401306, 0.021168768405914307, 0.0062879533506929874, 0.0017868098802864552, 0.01643764041364193, 0.01782260648906231, 0.029620099812746048, 0.030469277873635292, -0.026102082803845406, 0.03178348019719124, 0.018014682456851006, -0.03681788593530655, -0.035079095512628555, 0.002261944580823183, 0.057622723281383514, -0.024646349251270294, 0.010109249502420425, 0.022563844919204712, 0.010094085708260536, -0.001006502192467451, -0.022563844919204712, 0.042256660759449005, 0.060776807367801666, -0.00597456656396389, -0.010336707346141338, 0.005888637620955706, -0.031136488541960716, -0.0952695682644844, 0.0190963726490736, -0.01025583315640688, -0.004010844510048628, 0.0010633666533976793, -0.05228503793478012, -0.0003629852435551584, 0.06999644637107849, 0.00028732381178997457, 0.03384576737880707, -0.018378615379333496, -0.009204471483826637, -0.013950764201581478, -0.002059759572148323, -0.02773978002369404, 0.037222255021333694, 0.05871452018618584, 0.0068490165285766125, -0.034169264137744904, 0.015649117529392242, 0.009568404406309128, 0.0017703822813928127, -0.04407632723450661, -0.05224459990859032, -0.012191754765808582, -0.04258015751838684, 0.0017994464142248034, 0.02802283875644207, -0.005403393879532814, -0.00996772013604641, -0.03932498022913933, 0.034816253930330276, -0.01800457388162613, -0.06223253905773163, -0.030833210796117783, -0.031136488541960716, -0.06955163925886154, 0.00256395828910172, -0.0036241658963263035, -0.023049088194966316, 0.006050385534763336, -0.009270181879401207, 0.07031993567943573, -0.032572001218795776, -0.03224850445985794, -0.010958426631987095, 0.021613575518131256, 0.042175788432359695, -0.05855277180671692, 0.04029546678066254, 0.023049088194966316, -0.005964457057416439, -0.046381235122680664, 0.03817252442240715, 0.005097588989883661, -0.036595482379198074, -0.02632448449730873, 0.04787740483880043, -0.031945228576660156, 0.03079277276992798, 0.04694735258817673, 0.019419867545366287, -0.01064503937959671, 0.009669496677815914, 0.0395473837852478, -0.003027720144018531, 0.03305724635720253, -0.004031063057482243, -0.009229744784533978, 0.01275787316262722, 0.01954117976129055, -0.031116269528865814, -0.037950120866298676, -0.01680157333612442, -0.015285185538232327, -0.038758862763643265, -0.04698779061436653, -0.04795828089118004, -0.019379431381821632, 0.023655643686652184, 0.08564556390047073, 0.016680261120200157, -0.010195177979767323, 0.011201048269867897, -0.021977508440613747, 0.013657595962285995, 0.009042724035680294, -0.034169264137744904, 0.03287528082728386, -0.07594068348407745, -0.0044227964244782925, -0.024848535656929016, -0.00029759103199467063, 0.04249928519129753, -0.004182701930403709, -0.026991695165634155, 0.02308952622115612, 0.01118083018809557, 0.04134682938456535, 0.013172351755201817, -0.018024791032075882, -0.03018621914088726, -0.0029241004958748817, -0.0051582446321845055, -0.02945835329592228, -0.006833852734416723, 0.002974646631628275, 0.014658411964774132, -0.01853025332093239, 0.003699985332787037, 0.04156923294067383, 0.03621133044362068, -0.00872933678328991, 0.013950764201581478, -0.06178773194551468, -0.013233007863163948, 0.01114039309322834, 0.006303117144852877, -0.009452148340642452, 0.06757022440433502, -0.008886029943823814, -0.039486728608608246, -0.009088215418159962, -0.03251134604215622, -0.004700800869613886, -0.006065549794584513, -0.011160611175000668, 0.012464704923331738, -0.031197143718600273, 0.03241025283932686, 0.017569875344634056, 0.03303702548146248, -0.08394720405340195, -0.03180369734764099, -0.02945835329592228, 0.019248010590672493, 0.0323495976626873, 0.011595308780670166, 0.04201404005289078, -0.0493735745549202, -0.015436823479831219, 0.005388230085372925, 0.036049582064151764, 0.03420969843864441, 0.013404864817857742, -0.015275076031684875, 0.012545578181743622, -0.022604281082749367, 0.008102563209831715, 0.013334100134670734, 0.01782260648906231, -0.022058382630348206, -0.051597610116004944, -0.004445542581379414, 0.0229075588285923, -0.0011644591577351093, 0.05244678631424904, -0.051152803003787994, -0.03162173181772232, -0.005868419073522091, -0.021087894216179848, -0.06118117645382881, -0.013455410487949848, -0.025030501186847687, -0.04274190589785576, -0.015608681365847588, 0.01517398376017809, 0.05693529173731804, 0.0012535469140857458, 0.03621133044362068, -0.01118083018809557, -0.018348287791013718, -0.008552424609661102, 0.04116486385464668, 0.014334915205836296, 0.0035938380751758814, 0.057339660823345184, -0.004665418528020382, 0.05236591026186943, 0.0043520317412912846, -0.04448069632053375, 0.047998715192079544, -0.032733749598264694, 0.02757803164422512, 0.027557814493775368, 0.003128812648355961, -0.0413266122341156, -0.06227297708392143, -0.05531781166791916, -0.04812002554535866, 0.04076049476861954, -0.03788946568965912, 0.03305724635720253, 0.04258015751838684, 0.0008118990808725357, 0.0031818861607462168, -0.04041678085923195, 0.0012017369735985994, 0.060938555747270584, 0.007278659380972385, -0.02102723903954029, 0.04169054329395294, -0.001545451465062797, 0.035604774951934814, -0.01954117976129055, -0.018742548301815987, 0.004794311709702015, 0.04690691828727722, -0.03152063861489296, -0.0278610922396183, 0.01670048013329506, -0.056005243211984634, 0.06360739469528198, -0.0032829786650836468, 0.029053982347249985, 0.05980632081627846, 0.04727084934711456, -0.050263188779354095, 0.051152803003787994, -0.04993969202041626, -0.05701616778969765, -0.10554056614637375, -0.002552585443481803, -0.042256660759449005, 0.05891670659184456, 0.016781354323029518, -0.01946030557155609, -0.0017868098802864552, 0.01844938099384308, 0.01672069914638996 ]
715,199
pytorch_optimizer.optimizer.adapnm
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999, 1.0), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = True, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'ams_bound': ams_bound, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999, 1.0), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = True, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ 0.00462982477620244, -0.030541259795427322, -0.020927468314766884, 0.00038365452201105654, -0.03492318466305733, -0.022684015333652496, -0.09058496356010437, -0.04283709451556206, -0.04132608324289322, 0.027991432696580887, -0.027330366894602776, 0.0573427751660347, 0.021456321701407433, 0.08000790327787399, -0.06297127902507782, 0.04997660964727402, 0.02867138758301735, 0.0335443913936615, -0.026707075536251068, -0.011946411803364754, -0.002088261069729924, -0.010218195617198944, -0.03768077492713928, 0.10977476835250854, 0.023401744663715363, 0.03637753054499626, -0.003784604137763381, 0.008787458762526512, -0.04136385768651962, 0.01818876527249813, 0.013617964461445808, -0.01981309987604618, -0.001404765760526061, 0.051563166081905365, 0.03063569776713848, -0.020190851762890816, -0.010340964421629906, 0.011785866692662239, -0.09829110652208328, 0.029464667662978172, 0.07211288064718246, -0.02587602101266384, 0.07664591073989868, -0.042685993015766144, -0.023193981498479843, -0.03222225606441498, 0.04533025622367859, 0.03599977865815163, -0.013325206935405731, -0.024912754073739052, 0.026367099955677986, -0.031542304903268814, 0.042799316346645355, -0.016167791560292244, -0.0530363991856575, 0.054925162345170975, 0.03095678798854351, 0.0767970085144043, 0.040003951638936996, 0.0005630867672152817, 0.010671498253941536, -0.037812989205121994, 0.01536506786942482, -0.011663096956908703, 0.0034517101012170315, 0.0063037388026714325, -0.09081161767244339, -0.02088969387114048, 0.018113214522600174, 0.03513094782829285, 0.10237082839012146, 0.0032982483971863985, -0.02013418823480606, 0.02759479358792305, -0.01222972571849823, 0.011974742636084557, -0.0844653770327568, -0.04060835391283035, -0.041930489242076874, -0.0070828525349497795, 0.05726722627878189, 0.051034312695264816, -0.01592225208878517, -0.049523305147886276, 0.006563443224877119, -0.06138472259044647, -0.044197000563144684, -0.05488738417625427, 0.027575906366109848, -0.006638993974775076, -0.05575621500611305, -0.03422434255480766, 0.01592225208878517, -0.010435403324663639, 0.05454741045832634, 0.012758578173816204, 0.02608378604054451, -0.05496293678879738, 0.020946355536580086, -0.010879261419177055, -0.033601053059101105, 0.0019253554055467248, -0.04374369606375694, 0.0038648766931146383, 0.017461592331528664, -0.023552846163511276, -0.057947177439928055, -0.040872782468795776, 0.03367660194635391, -0.05401855707168579, -0.03237335756421089, 0.07162180542945862, -0.030465710908174515, 0.041514959186315536, -0.06436896324157715, 0.020757479593157768, 0.017386041581630707, 0.006114862859249115, -0.003574479604139924, 0.0303146094083786, 0.05065656080842018, 0.027557019144296646, -0.02674485184252262, 0.03505539894104004, 0.04710569232702255, 0.003857793752104044, 0.004391368478536606, 0.003897929796949029, 0.010680941864848137, -0.027613680809736252, 0.03582978993654251, -0.01752769947052002, -0.023458408191800117, -0.028104759752750397, 0.03158007934689522, -0.018859274685382843, 0.011804753914475441, 0.05076988786458969, -0.034904297441244125, 0.014250699430704117, 0.06482226401567459, 0.01838708482682705, 0.042459338903427124, -0.027028165757656097, -0.013655739836394787, 0.0015369789907708764, -0.0041174981743097305, -0.02869027480483055, -0.0006439493736252189, 0.040532805025577545, 0.03441321849822998, 0.0006415884126909077, -0.010577060282230377, 0.04827672243118286, 0.006794816814363003, -0.04038170352578163, 0.030541259795427322, -0.027443692088127136, -0.009656288661062717, 0.018018776550889015, -0.029408004134893417, 0.008013066835701466, 0.019983088597655296, -0.041514959186315536, 0.0020764563232660294, 0.014647339470684528, -0.03703859820961952, 0.004176522139459848, -0.0034092131536453962, -0.012834128923714161, -0.00045123673044145107, -0.09390918165445328, -0.04480140283703804, 0.014977872371673584, -0.023741722106933594, 0.048654474318027496, 0.016063909977674484, 0.002154367743059993, -0.012654696591198444, -0.018566517159342766, 0.07547488063573837, -0.006945917382836342, -0.011162575334310532, -0.08197221159934998, 0.02056860364973545, 0.007262284867465496, -0.031315650790929794, 0.046161312609910965, -0.04208158701658249, 0.026234885677695274, 0.052545323967933655, 0.005439630709588528, 0.015714488923549652, 0.01752769947052002, -0.027783669531345367, 0.02011530101299286, 0.03524427488446236, -0.02175852283835411, 0.020908581092953682, 0.058400481939315796, 0.06663547456264496, 0.03854960575699806, 0.01049206592142582, -0.009991544298827648, 0.024478338658809662, -0.0018509854562580585, -0.01827375963330269, 0.0009874677052721381, -0.004580244887620211, -0.035225387662649155, -0.004686487372964621, -0.032977763563394547, 0.04959885776042938, 0.026801513507962227, -0.0007537335623055696, -0.03628309443593025, -0.004049030598253012, 0.0292191281914711, 0.028482511639595032, 0.011342007666826248, 0.0898294597864151, -0.01722549833357334, -0.005264920648187399, -0.01632833667099476, 0.045065831393003464, 0.013410201296210289, 0.02306176908314228, -0.045708008110523224, -0.07592818140983582, 0.029143577441573143, -0.010369296185672283, -0.04347927123308182, -0.034772083163261414, -0.01234305091202259, 0.01530840527266264, 0.001444901921786368, -0.02555493265390396, 0.03324218839406967, -0.09111381322145462, -0.04159051179885864, 0.04959885776042938, 0.04672794044017792, -0.006695656571537256, -0.012909679673612118, 0.014052379876375198, -0.012805797159671783, 0.026707075536251068, 0.016734419390559196, -0.0671265572309494, -0.048843350261449814, -0.050392135977745056, -0.012956898659467697, 0.00411041546612978, 0.04786119610071182, -0.044197000563144684, 0.00861274916678667, 0.03813407942652702, 0.0070120240561664104, 0.029143577441573143, -0.004363037180155516, 0.0047998130321502686, 0.002847306663170457, -0.02391171082854271, 0.06863756477832794, 0.018755393102765083, 0.02651819959282875, -0.0035957281943410635, 0.0018391807097941637, 0.031428977847099304, -0.00522242346778512, 0.10750825703144073, 0.039437323808670044, -0.01870817504823208, -0.002144923899322748, -0.009207708761096, -0.004381924867630005, 0.004365398082882166, -0.03654751926660538, -0.013806840404868126, 0.046047985553741455, 0.028048096224665642, -0.03582978993654251, 0.00984988734126091, 0.022476252168416977, 0.005859880242496729, 0.009387141093611717, -0.017801569774746895, 0.010595947504043579, -0.005156316794455051, 0.014477350749075413, 0.010633722878992558, 0.005571844056248665, 0.07555042952299118, 0.01904815249145031, 0.09406027942895889, -0.0232695322483778, 0.048201173543930054, -0.016252785921096802, 0.05235644802451134, -0.02056860364973545, 0.04397035017609596, -0.04261044040322304, 0.07237730920314789, 0.0010234721703454852, -0.056096192449331284, -0.03713303431868553, 0.036320868879556656, 0.024289462715387344, 0.032732222229242325, 0.04147718474268913, 0.029068026691675186, 0.030352383852005005, 0.0627824068069458, 0.014581232331693172, 0.045632459223270416, -0.06255575269460678, 0.00935408752411604, -0.056851696223020554, 0.023099543526768684, 0.042270462960004807, -0.012371382676064968, 0.027840333059430122, 0.014628451317548752, -0.03754856437444687, -0.054131880402565, -0.058816008269786835, 0.030975675210356712, 0.021059682592749596, -0.029917970299720764, -0.007767528295516968, -0.034772083163261414, -0.005888211540877819, 0.01568615809082985, -0.028388073667883873, -0.05670059472322464, 0.0014944819267839193, 0.008239718154072762, 0.05095876380801201, 0.0025616316124796867, -0.029049139469861984, 0.08854509890079498, -0.023193981498479843, -0.01396738551557064, 0.057078346610069275, -0.008183055557310581, -0.0254416074603796, 0.012909679673612118, -0.0140618234872818, 0.0356975756585598, -0.015884477645158768, -0.008537198416888714, 0.009264371357858181, -0.0036665566731244326, 0.09013166278600693, 0.01795267127454281, -0.009103826247155666, -0.01709328405559063, 0.015638938173651695, 0.02857694961130619, -0.04812562093138695, -0.022249601781368256, 0.002993685659021139, -0.046463511884212494, 0.047558993101119995, 0.009264371357858181, -0.0036665566731244326, -0.014099598862230778, -0.027632569894194603, 0.04351704567670822, -0.003815296571701765, 0.028728051111102104, -0.07271728664636612, -0.022589577361941338, -0.010199307464063168, 0.01870817504823208, -0.00382946222089231, -0.03254334628582001, 0.0016550265718251467, 0.05420743301510811, -0.009646845050156116, -0.0004999313387088478, 0.0033100531436502934, 0.06467116624116898, 0.017565473914146423, 0.009774336591362953, -0.031542304903268814, 0.012683028355240822, 0.01644166186451912, 0.05813605338335037, -0.006709822453558445, -0.005321583244949579, -0.005491571966558695, 0.017338823527097702, -0.015383956022560596, -0.08386097848415375, 0.03613199293613434, 0.041061658412218094, 0.0432903952896595, -0.052960850298404694, -0.04038170352578163, -0.011965299025177956, -0.03513094782829285, -0.009236039593815804, 0.025044966489076614, -0.010935924015939236, -0.004563718102872372, 0.020039750263094902, 0.037491898983716965, 0.012456377036869526, 0.06757985800504684, -0.008390819653868675, 0.0006221105577424169, -0.02782144583761692, -0.002252347068861127, -0.048012297600507736, -0.0292191281914711, 0.007219787687063217, -0.017027176916599274, 0.017593806609511375, -0.019208695739507675, 0.02825585938990116, 0.011493109166622162, 0.06512446701526642, 0.02793477103114128, 0.0681842640042305, 0.06134694814682007, -0.02198517508804798, 0.0011745730880647898, -0.012106955982744694, -0.05900488421320915, -0.046047985553741455, -0.013211880810558796, -0.03800186514854431, -0.03828518092632294, 0.023571733385324478, 0.013410201296210289, -0.012673584744334221, 0.00468176556751132, 0.009727117605507374, -0.02727370522916317, 0.02130522020161152, -0.06202690303325653, 0.001659748493693769, -0.039550650864839554, -0.06773095577955246, -0.036963045597076416, 0.02338285744190216, -0.0028024485800415277, -0.03817185387015343, -0.023326193913817406, 0.026367099955677986, 0.02153187245130539, 0.05292307585477829, -0.009339922107756138, -0.02455388940870762, -0.03129676356911659, 0.00037863748730160296, -0.026348210871219635, 0.03409213200211525, -0.01337242592126131, 0.0508454367518425, -0.021626310423016548, -0.024478338658809662, 0.00405611377209425, -0.0389462448656559, 0.041930489242076874, 0.07237730920314789, -0.025592707097530365, -0.008140558376908302, 0.003137703752145171, 0.0018179321195930243, 0.006379289086908102, 0.04310151934623718, -0.023137317970395088, -0.03992840275168419, 0.01396738551557064, -0.0028709161560982466, -0.02045527845621109, -0.0232695322483778, -0.004785647615790367, 0.006511502433568239, -0.03992840275168419, 0.006289572920650244, 0.07343501597642899, 0.01786767691373825, -0.0018474441021680832, -0.05454741045832634, 0.013013561256229877, 0.013816284947097301, 0.04710569232702255, -0.0789501965045929, -0.018113214522600174, 0.03399769216775894, 0.06682435423135757, -0.038795143365859985, -0.015487837605178356, 0.024931641295552254, 0.02249513939023018, 0.03592422977089882, 0.001375253894366324, 0.010407071560621262, -0.04986328259110451, -0.049070004373788834, -0.03214670717716217, 0.029502442106604576, -0.040646132081747055, -0.09919771552085876, -0.003730302443727851, -0.016734419390559196, 0.00936353113502264, -0.02963465452194214, -0.007295338436961174, -0.0302957221865654, 0.011861417442560196, -0.02768923155963421, -0.025913797318935394, -0.04797452315688133, 0.047030139714479446, -0.020927468314766884, -0.03605644032359123, 0.051034312695264816, 0.056776147335767746, 0.03996617719531059, -0.030767912045121193, 0.005552956368774176, 0.04797452315688133, 0.01827375963330269, -0.03939954936504364, 0.08839400112628937, 0.023326193913817406, 0.009023554623126984, -0.06251797825098038, -0.041930489242076874, 0.04196826368570328, 0.0063131824135780334, 0.048881128430366516, 0.01331576332449913, -0.020285289734601974, -0.047898970544338226, -0.030371272936463356, 0.020077526569366455, 0.022155163809657097, 0.023005105555057526, -0.04272376745939255, -0.013976829126477242, 0.008853565901517868, -0.022060725837945938, 0.04536803066730499, -0.0443481020629406, -0.032392244786024094, 0.03042793460190296, -0.023345082998275757, -0.045708008110523224, 0.03428100794553757, 0.01958644762635231, -0.01838708482682705, -0.003175478894263506, -0.018642067909240723, 0.05836270749568939, 0.016384998336434364, -0.013155218213796616, -0.009292702190577984, -0.005543512757867575, 0.007285894360393286, -0.023307306692004204, 0.014024048112332821, 0.013495195657014847, -0.035225387662649155, -0.05994926393032074, 0.01904815249145031, -0.00821610912680626, -0.00036653762799687684, 0.0015983637422323227, 0.005675726104527712, -0.03558425232768059, 0.021078569814562798, -0.005755998194217682, 0.016167791560292244, -0.05216757208108902, -0.031183438375592232, 0.013570745475590229, -0.036415304988622665, -0.1059972494840622, -0.08892285078763962, 0.020153077319264412, -0.004516499117016792, -0.054396308958530426, 0.01569560170173645, -0.008674133569002151, 0.020304176956415176, -0.005094931926578283, 0.04823894798755646, -0.022325150668621063, -0.02793477103114128, -0.04449920356273651, 0.0140618234872818, -0.01806599646806717, -0.02338285744190216, 0.026215998455882072, 0.059231534600257874, -0.07657036185264587, -0.022872891277074814, 0.017178278416395187, 0.02240070141851902, -0.0047455113381147385, -0.010709273628890514, -0.026121560484170914, 0.049409978091716766, 0.0173199363052845, -0.044121451675891876, 0.004948553163558245, -0.03105122596025467, 0.006643715780228376, -0.016706088557839394, -0.00029364327201619744, -0.057947177439928055, -0.05001438409090042, 0.034469883888959885, 0.10131312161684036, 0.006582330912351608, 0.0067759291268885136, -0.02835029736161232, -0.020474165678024292, 0.044197000563144684, -0.07759028673171997, -0.011115356348454952, 0.014401799999177456, -0.11997407674789429, 0.009240761399269104, -0.028954701498150826, 0.03735968843102455, -0.02098413184285164, -0.004660516977310181, -0.054282981902360916, -0.0006345055298879743, 0.028085872530937195, 0.028614724054932594, 0.036868609488010406, 0.03261889889836311, -0.00875912792980671, 0.022098500281572342, 0.038039639592170715, -0.014807883650064468, -0.0006622467190027237, -0.004828144330531359, -0.011833085678517818, -0.031976718455553055, -0.008367209695279598, 0.051260966807603836, 0.044197000563144684, -0.036094218492507935, 0.04619908705353737, -0.051903143525123596, -0.005907099228352308, -0.005269642453640699, 0.00047041947254911065, 0.016384998336434364, 0.031882282346487045, 0.041930489242076874, -0.028104759752750397, -0.03116455115377903, -0.025706032291054726, 0.03947509825229645, -0.0023928238078951836, -0.0031825618352741003, -0.0031825618352741003, -0.04068390652537346, 0.006379289086908102, -0.032203368842601776, -0.012786909937858582, -0.049183327704668045, -0.018453191965818405, -0.03992840275168419, 0.005949596408754587, 0.01049206592142582, 0.029068026691675186, -0.05938263610005379, -0.061309173703193665, 0.025290505960583687, -0.011823642067611217, 0.039248447865247726, 0.04083500802516937, -0.003673639614135027, -0.049296654760837555, 0.011455333791673183, -0.005203535780310631, -0.0627446323633194, 0.04710569232702255, -0.013013561256229877, -0.034583207219839096, -0.060440342873334885, -0.006738153751939535, 0.027651457116007805, 0.002722176257520914, 0.03207115828990936, -0.036320868879556656, -0.06395343691110611, -0.07071520388126373, 0.022854004055261612, -0.01065261010080576, -0.005581287667155266, -0.012465820647776127, -0.05507626384496689, 0.05613396689295769, -0.04306374490261078, 0.020209738984704018, 0.01109646912664175, 0.012626364827156067, 0.022665128111839294, -0.0454813577234745, 0.03265667334198952, 0.060666993260383606, 0.03854960575699806, -0.06909086555242538, -0.006535111926496029, 0.03482874855399132, 0.04891890287399292, 0.0014590676873922348, -0.0454813577234745, 0.011785866692662239, -0.03768077492713928, 0.002965354360640049, 0.033147748559713364, -0.0004751413653139025, 0.021834073588252068, -0.07970570027828217, -0.03649085760116577, 0.013674627058207989, 0.0356786884367466, -0.030579036101698875, 0.04038170352578163, 0.025592707097530365, -0.0314100906252861, -0.0011025640415027738, -0.00892439391463995, -0.0243461262434721, 0.046916816383600235, 0.0029960465617477894, 0.05314972624182701, 0.07589040696620941, 0.012116399593651295, 0.03299665078520775, -0.03962619975209236, -0.018047109246253967, 0.002253527520224452, 0.04910777881741524, -0.014024048112332821, -0.0025144126266241074, 0.06595552712678909, -0.004308735486119986, 0.01644166186451912, -0.025026079267263412, 0.020171964541077614, 0.048012297600507736, 0.04253489151597023, -0.04665238782763481, 0.0243461262434721, -0.028935814276337624, -0.05983594059944153, -0.0908871665596962, -0.004119859077036381, -0.05994926393032074, 0.056776147335767746, 0.024043923243880272, 0.015383956022560596, 0.011436445638537407, 0.03832295536994934, 0.004976884461939335 ]
715,202
pytorch_optimizer.optimizer.adapnm
__str__
null
def __str__(self) -> str: return 'AdaPNM'
(self) -> str
[ -0.008257254958152771, -0.006258267443627119, 0.04529295861721039, -0.010452221147716045, 0.0030942929442971945, -0.07069185376167297, 0.012568796053528786, -0.02219354920089245, 0.10633393377065659, -0.070761539041996, -0.062190715223550797, 0.0002980516292154789, 0.005713880993425846, 0.04727888107299805, 0.015739303082227707, -0.009459259919822216, -0.006863625254482031, -0.047871172428131104, 0.007656252011656761, 0.03135666251182556, -0.011828429996967316, 0.07124930620193481, 0.03383035585284233, -0.013866613619029522, -0.013448524288833141, 0.06267848610877991, 0.0032859169878065586, -0.025747304782271385, -0.04264506325125694, 0.011401630938053131, 0.018343647941946983, -0.05912473052740097, -0.002125284867361188, 0.02027730830013752, -0.01655806042253971, 0.028621666133403778, -0.02289036475121975, -0.00039522460428997874, -0.06267848610877991, -0.017925558611750603, -0.0021623033098876476, -0.012124576605856419, 0.0002461987896822393, -0.02351749688386917, -0.02374396286904812, -0.03391745686531067, 0.015077329240739346, 0.03731442987918854, 0.004524940624833107, -0.00014575949171558022, -0.0029592851642519236, 0.027088673785328865, -0.03116503916680813, -0.010068973526358604, -0.034440070390701294, 0.04048493504524231, 0.048358943313360214, 0.0007882716599851847, -0.012054895050823689, 0.027175774797797203, -0.06090160831809044, -0.024005267769098282, 0.05274887755513191, -0.06577931344509125, -0.009781536646187305, 0.006049223244190216, -0.016035448759794235, 0.043829645961523056, 0.03668729588389397, 0.049404166638851166, 0.05483932048082352, -0.07609216868877411, -0.01094870176166296, 0.02719319611787796, 0.04675627127289772, -0.0020643137395381927, -0.06309657543897629, 0.0073644607327878475, 0.0223154928535223, -0.029353320598602295, 0.01766425371170044, -0.009215375408530235, -0.021653518080711365, 0.002991948276758194, -0.014842154458165169, -0.07853101938962936, -0.024475617334246635, -0.036547932773828506, -0.028308099135756493, -0.00230602128431201, -0.0012477339478209615, -0.007394946645945311, -0.02663574367761612, 0.06508249789476395, -0.059368617832660675, -0.012551375664770603, 0.03766283765435219, -0.03787188231945038, 0.017254875972867012, 0.011567125096917152, -0.0019140630029141903, -0.0029483973048627377, -0.033011600375175476, 0.024771764874458313, -0.04598977416753769, -0.02430141344666481, -0.03374325484037399, 0.05313212424516678, 0.0034056820441037416, 0.026809947565197945, -0.057243332266807556, 0.009842508472502232, 0.03221026062965393, -0.014241151511669159, 0.02712351456284523, -0.03759315609931946, 0.0002203404437750578, -0.013370133005082607, 0.03151344507932663, -0.019057882949709892, 0.03262834995985031, 0.022089026868343353, -0.06090160831809044, -0.018901100382208824, 0.02599119022488594, 0.06518702208995819, -0.02938816137611866, -0.05107652023434639, 0.026792526245117188, -0.06741682440042496, 0.03383035585284233, 0.03710538521409035, -0.05473480001091957, -0.0014785537496209145, 0.061563581228256226, -0.014772472903132439, 0.029544945806264877, 0.001519927172921598, 0.037906721234321594, 0.11553188413381577, -0.020434092730283737, 0.019162405282258987, 0.04804537817835808, 0.024179471656680107, 0.00010241271229460835, -0.006040513049811125, 0.0022385173942893744, 0.05452575534582138, -0.026809947565197945, -0.0289003923535347, 0.024405935779213905, 0.014023397117853165, 0.03186185285449028, -0.0009477769490331411, 0.006515217944979668, 0.023552337661385536, 0.004664303734898567, -0.046512383967638016, 0.02118316851556301, -0.040519777685403824, 0.004058945924043655, -0.04689563065767288, -0.011445182375609875, 0.021566417068243027, 0.0033730189315974712, 0.016105130314826965, 0.02444077655673027, -0.00039223048952408135, 0.022071607410907745, -0.016610320657491684, -0.027228036895394325, -0.0684272050857544, -0.0719112828373909, 0.02189740352332592, -0.00593599071726203, 0.031739912927150726, 0.00888874288648367, 0.06560511142015457, 0.028011953458189964, -0.02860424481332302, -0.0031138909980654716, 0.027733227238059044, -0.036478251218795776, 0.030485644936561584, 0.057103969156742096, -0.02268132008612156, 0.02860424481332302, 0.048707351088523865, 0.01851785182952881, -0.02367428131401539, 0.011436471715569496, 0.021096065640449524, -0.04306315258145332, 0.008714538998901844, -0.019475972279906273, -0.06295721232891083, 0.022141288965940475, -0.04153015837073326, -0.025485999882221222, 0.01271686889231205, 0.0012684206012636423, 0.048637669533491135, -0.04703499376773834, 0.0670684203505516, 0.048219580203294754, -0.0003753545170184225, 0.011506153270602226, -0.0021089534275233746, 0.012377171777188778, -0.036129843443632126, 0.0578007847070694, 0.023831063881516457, 0.02226323075592518, 0.026722844690084457, 0.03374325484037399, -0.06226039677858353, 0.004781891126185656, 0.022507116198539734, -0.0032968048471957445, 0.02571246400475502, 0.022994887083768845, -0.017350686714053154, 0.007277358788996935, -0.024562720209360123, -0.017429077997803688, 0.022994887083768845, -0.0034753635991364717, 0.010730947367846966, -0.0050823925994336605, 0.008823417127132416, -0.009912190027534962, -0.07149319350719452, -0.031269561499357224, 0.041913408786058426, 0.024109790101647377, 0.02987593226134777, -0.03541560843586922, -0.04299347102642059, -0.10570679605007172, -0.029405582696199417, -0.02755902335047722, 0.00600567227229476, 0.0013642326230183244, 0.03442264720797539, 0.03822029009461403, -0.024283993989229202, -0.000006477348961198004, 0.005178204737603664, 0.004278878215700388, -0.025102751329541206, 0.0520172193646431, -0.045606523752212524, -0.007416721899062395, 0.010913860984146595, -0.02444077655673027, -0.045815568417310715, -0.04766212776303291, 0.03623436763882637, 0.008906163275241852, 0.00098860589787364, -0.06494313478469849, -0.013309162110090256, -0.046163976192474365, 0.0261305533349514, 0.030276600271463394, 0.03808092698454857, -0.025677623227238655, 0.03780220076441765, 0.038603536784648895, -0.03689634054899216, 0.10298921912908554, 0.02203676663339138, -0.04358576238155365, 0.01970243640244007, -0.01963275484740734, -0.005448220297694206, -0.02337813563644886, 0.041355956345796585, -0.08974973857402802, -0.061215177178382874, -0.01588737592101097, -0.02698415145277977, -0.015051198191940784, 0.031095357611775398, 0.0004537461791187525, -0.044038690626621246, 0.04424773529171944, -0.031043097376823425, 0.02076507918536663, 0.018483011052012444, 0.048358943313360214, 0.010086393915116787, -0.012769130058586597, 0.013640148565173149, 0.03057274781167507, 0.0014992405194789171, 0.057103969156742096, 0.036269206553697586, -0.034231025725603104, -0.01048706192523241, -0.025172432884573936, -0.010643845424056053, 0.01246427372097969, -0.04306315258145332, -0.04543232172727585, 0.019301768392324448, -0.00918053463101387, 0.008274675346910954, 0.02261163853108883, 0.014354383572936058, -0.04543232172727585, 0.03717506676912308, 0.013378842733800411, 0.08570821583271027, 0.031739912927150726, 0.07804325222969055, 0.00007478510087821633, 0.030537907034158707, 0.05316696688532829, 0.045606523752212524, -0.04414321482181549, 0.006053578108549118, -0.05508320406079292, 0.0032902720849961042, 0.00593599071726203, -0.01246427372097969, -0.02684478834271431, 0.046721428632736206, 0.025625362992286682, 0.01522540207952261, -0.05842791497707367, -0.03856869786977768, 0.00974669586867094, -0.01822170615196228, -0.043202515691518784, 0.0047470503486692905, 0.02564278244972229, -0.03567691519856453, -0.01501635741442442, -0.020381830632686615, 0.06835752725601196, 0.0022494050208479166, -0.04790601506829262, 0.03595564141869545, 0.022507116198539734, 0.0213922131806612, -0.04724403843283653, -0.007516888901591301, -0.00434638187289238, -0.002724110148847103, -0.017220035195350647, -0.005761786829680204, 0.03010239638388157, 0.020730238407850266, 0.040380414575338364, 0.02275100164115429, -0.011288398876786232, 0.07671930640935898, -0.02599119022488594, 0.03668729588389397, -0.0029810606501996517, -0.06783491373062134, 0.008165798150002956, 0.009058591909706593, -0.02513759210705757, -0.013161088339984417, 0.0038150607142597437, -0.00022850623645354062, 0.08292095363140106, -0.050832636654376984, -0.020503774285316467, -0.011323239654302597, -0.041286274790763855, -0.024336254224181175, -0.02146189473569393, 0.07253841310739517, 0.022071607410907745, 0.0007419988396577537, -0.06455988436937332, -0.006401985418051481, 0.025050489231944084, -0.012708159163594246, 0.01511217001825571, 0.06964663416147232, 0.013047856278717518, 0.0019946321845054626, 0.048289261758327484, 0.029440423473715782, -0.01857011392712593, -0.0033207577653229237, -0.02133995108306408, -0.001881399773992598, 0.0033338230568915606, -0.008126601576805115, -0.03752347454428673, -0.06595351547002792, -0.0529579222202301, -0.04261022061109543, -0.06734714657068253, 0.009877349250018597, 0.03177475184202194, -0.0406939797103405, -0.003943535964936018, 0.00719025731086731, -0.037976402789354324, 0.03356904909014702, 0.016653873026371002, 0.0004297931445762515, -0.04400385171175003, -0.001586342346854508, 0.001004937570542097, 0.013169799000024796, -0.025468578562140465, -0.08096987009048462, 0.06421148031949997, 0.014807313680648804, -0.011680357158184052, -0.01653192937374115, 0.009067301638424397, -0.02464982122182846, -0.04358576238155365, 0.02740224078297615, 0.019528232514858246, 0.04769697040319443, 0.026182813569903374, 0.0030376766808331013, 0.031130198389291763, 0.03362131118774414, 0.062190715223550797, -0.0019652354530990124, -0.03405681997537613, 0.017254875972867012, -0.01076578814536333, -0.027384819462895393, 0.030607588589191437, -0.0314437672495842, -0.00296581769362092, -0.046163976192474365, -0.05100683867931366, 0.008170153014361858, 0.020381830632686615, -0.043759964406490326, -0.007303489372134209, 0.03383035585284233, 0.029823672026395798, -0.05438639223575592, -0.04731371998786926, -0.022785842418670654, 0.03524140641093254, 0.0018781335093080997, -0.004472679458558559, 0.05020550265908241, 0.013300451450049877, -0.05024034157395363, 0.056964606046676636, -0.004516230430454016, 0.012237808667123318, -0.05787046626210213, -0.011218717321753502, 0.010051553137600422, -0.06532638520002365, 0.07253841310739517, -0.04281926527619362, 0.04264506325125694, 0.03271545097231865, 0.04626850038766861, -0.002715399954468012, 0.04839378595352173, -0.04640786349773407, 0.019266927614808083, 0.008766800165176392, -0.021653518080711365, -0.009546361863613129, -0.028099054470658302, -0.0012390237534418702, 0.046721428632736206, -0.032454147934913635, -0.019162405282258987, 0.0024453841615468264, -0.013631438836455345, -0.033795516937971115, -0.037488631904125214, 0.01412791945040226, 0.06825300306081772, -0.017629412934184074, 0.03057274781167507, 0.008361777290701866, 0.03489299863576889, -0.054351549595594406, -0.010060262866318226, 0.03919582813978195, 0.03348194807767868, -0.04748792573809624, 0.013448524288833141, -0.014720211736857891, 0.057243332266807556, -0.01060029398649931, -0.04097270593047142, -0.08473267406225204, 0.011567125096917152, 0.005609358660876751, -0.005021421238780022, -0.006088418886065483, -0.038673218339681625, 0.05769626051187515, -0.018726896494627, -0.029910773038864136, 0.015443156473338604, -0.011314528994262218, -0.00995574053376913, 0.0034579432103782892, -0.04344639927148819, 0.04386448860168457, -0.0046338182874023914, -0.006558768916875124, 0.040868185460567474, 0.002970172790810466, -0.0017257052240893245, -0.031478606164455414, 0.041146911680698395, 0.002580392174422741, -0.05069327354431152, -0.04769697040319443, -0.06466440856456757, -0.03163538873195648, 0.05361989513039589, -0.03520656377077103, 0.035067200660705566, -0.06125001609325409, 0.08529012650251389, -0.003993619699031115, 0.04783633351325989, 0.01706325076520443, 0.04564136639237404, -0.00013847832451574504, 0.07065701484680176, -0.10368603467941284, 0.030955994501709938, 0.043969009071588516, 0.05515288561582565, 0.006423761136829853, -0.06267848610877991, -0.0033338230568915606, -0.046442702412605286, 0.02471950277686119, 0.0006832050858065486, -0.00964217446744442, 0.013762091286480427, 0.014798603020608425, 0.01366627961397171, 0.02633959800004959, -0.04090302437543869, -0.02522469311952591, -0.04804537817835808, 0.03891710191965103, 0.0661277174949646, 0.002028384245932102, -0.010800628922879696, 0.035920798778533936, 0.014397935010492802, -0.051181044429540634, -0.021096065640449524, 0.04929964244365692, 0.03165280818939209, 0.00646295677870512, 0.04713951796293259, -0.04442194104194641, 0.02733255922794342, -0.00023408619745168835, -0.043759964406490326, 0.013073986396193504, -0.08633534610271454, 0.005443865433335304, 0.03724474832415581, -0.11650742590427399, 0.031391505151987076, 0.03801124542951584, 0.022437434643507004, -0.03494526073336601, 0.043202515691518784, -0.03835965320467949, 0.06734714657068253, 0.003939180634915829, -0.02154899574816227, -0.029492683708667755, 0.0171068012714386, -0.02883071079850197, -0.029632046818733215, 0.023778803646564484, -0.07205064594745636, -0.06347982585430145, -0.0006015471299178898, -0.0014230263186618686, -0.02374396286904812, 0.03461427241563797, -0.036129843443632126, -0.00001593181150383316, 0.008875678293406963, 0.03262834995985031, -0.008457588963210583, 0.04748792573809624, 0.046094294637441635, 0.012986884452402592, 0.04010168835520744, 0.11455634236335754, 0.05031002312898636, 0.004973515402525663, 0.02790743112564087, -0.039230670779943466, 0.01900562271475792, -0.03215800225734711, 0.013962425291538239, -0.022019345313310623, -0.028447462245821953, -0.009755406528711319, -0.029213957488536835, 0.015138300135731697, -0.03391745686531067, -0.03003271482884884, 0.01956307329237461, -0.010269307531416416, 0.06354950368404388, -0.03856869786977768, 0.059507980942726135, -0.019615335389971733, 0.0027110448572784662, -0.008083051070570946, -0.02203676663339138, 0.041286274790763855, -0.07455917447805405, 0.016148682683706284, 0.012682028114795685, -0.033656153827905655, -0.06055320054292679, -0.049473848193883896, -0.0067460378631949425, 0.021583836525678635, 0.02224581129848957, -0.024736924096941948, 0.041634682565927505, -0.0439341701567173, -0.01278655044734478, -0.06473408639431, 0.004794956650584936, -0.033029019832611084, 0.02952752448618412, -0.0943487137556076, -0.06818332523107529, -0.03403940051794052, -0.043341878801584244, -0.036478251218795776, -0.019371449947357178, -0.020085684955120087, 0.03015465848147869, -0.0009771737968549132, -0.00995574053376913, -0.005243530962616205, 0.03297675773501396, -0.03227994218468666, -0.040589459240436554, -0.018413329496979713, -0.0686710923910141, 0.0009537651785649359, -0.04247085750102997, 0.0901678279042244, 0.028708767145872116, -0.010243176482617855, -0.0292487982660532, -0.009563782252371311, -0.02996303327381611, -0.005800982937216759, 0.03447490930557251, 0.012847522273659706, -0.04916027933359146, -0.002138350158929825, 0.018326228484511375, 0.02973656915128231, -0.00014698435552418232, 0.07860070466995239, -0.02224581129848957, 0.030694689601659775, -0.028482303023338318, 0.019737277179956436, -0.08306031674146652, 0.03079921193420887, 0.05692976340651512, -0.031269561499357224, 0.01956307329237461, 0.01956307329237461, -0.048986077308654785, -0.05396830290555954, -0.043202515691518784, -0.024911127984523773, 0.03403940051794052, 0.08828642964363098, 0.04006684944033623, -0.0001013919900287874, -0.024684661999344826, -0.03377809375524521, -0.0031770397908985615, -0.002593457465991378, 0.046930473297834396, -0.015695752575993538, -0.022437434643507004, 0.0020741126500070095, -0.01655806042253971, -0.014049527235329151, 0.015843825414776802, -0.011244848370552063, -0.015068618580698967, 0.036199524998664856, 0.06020479276776314, -0.034649115055799484, -0.02252453751862049, 0.04435225948691368, -0.0670684203505516, -0.015417026355862617, 0.029753990471363068, -0.005443865433335304, 0.03668729588389397, -0.014136629179120064, -0.000811680278275162, 0.008897453546524048, 0.017533600330352783, 0.046512383967638016, 0.046163976192474365, -0.05215658247470856, -0.039021626114845276, -0.06476893275976181, -0.01851785182952881, 0.013674989342689514, 0.061493899673223495, -0.03912614658474922, 0.019754698500037193, 0.013396263122558594, 0.021218009293079376, 0.03107793815433979, 0.018883679062128067, 0.04435225948691368, 0.049822255969047546, 0.01984179951250553, 0.04173920303583145, 0.02945784293115139, -0.011366790160536766, -0.012751709669828415, 0.06295721232891083, 0.03233220428228378, 0.0213922131806612, -0.03391745686531067, 0.004056768491864204, 0.059717025607824326, 0.05602390691637993, 0.011636806651949883, 0.03198379650712013, 0.003061629831790924, -0.040659140795469284, 0.02212386764585972, 0.027384819462895393, 0.0020741126500070095, -0.025172432884573936, -0.009450550191104412, -0.019667595624923706, 0.02337813563644886, 0.013788221403956413, -0.027646124362945557, 0.03254124894738197, -0.004690434318035841, -0.0003405137686058879 ]
715,223
pytorch_optimizer.optimizer.adapnm
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2, beta3 = group['betas'] noise_norm: float = math.sqrt((1 + beta3) ** 2 + beta3 ** 2) # fmt: skip bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) state['neg_exp_avg'] = torch.zeros_like(p) if group['ams_bound']: state['max_exp_avg_sq'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) if group['step'] % 2 == 1: exp_avg, neg_exp_avg = state['exp_avg'], state['neg_exp_avg'] else: exp_avg, neg_exp_avg = state['neg_exp_avg'], state['exp_avg'] s_grad = self.get_adanorm_gradient( grad=grad, adanorm=group['adanorm'], exp_grad_norm=state.get('exp_grad_norm', None), r=group.get('r', None), ) exp_avg_sq = state['exp_avg_sq'] exp_avg.mul_(beta1 ** 2).add_(s_grad, alpha=1.0 - beta1 ** 2) # fmt: skip exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) de_nom = self.apply_ams_bound( ams_bound=group['ams_bound'], exp_avg_sq=exp_avg_sq, max_exp_avg_sq=state.get('max_exp_avg_sq', None), eps=group['eps'], ) de_nom.div_(bias_correction2_sq) step_size: float = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'], bias_correction1=bias_correction1 ) pn_momentum = exp_avg.mul(1.0 + beta3).add_(neg_exp_avg, alpha=-beta3).mul_(1.0 / noise_norm) p.addcdiv_(pn_momentum, de_nom, value=-step_size) return loss
(self)
[ -0.003059142967686057, -0.020296236500144005, -0.018894128501415253, 0.04910316690802574, -0.0015528581570833921, -0.004211224149912596, -0.038788363337516785, -0.05314280465245247, -0.02327693998813629, 0.024865340441465378, -0.022865131497383118, 0.016903726384043694, 0.016305623576045036, 0.09483342617750168, -0.032238658517599106, 0.04059247300028801, 0.010118703357875347, 0.060790661722421646, 0.03459184616804123, -0.015619277954101562, -0.030787527561187744, -0.06816397607326508, -0.032513197511434555, 0.048671748489141464, -0.056672584265470505, -0.0030493380036205053, 0.046514660120010376, -0.005034839268773794, -0.02121790125966072, 0.014050486497581005, -0.014785856939852238, -0.08573444187641144, 0.025571297854185104, 0.001514864037744701, 0.03098362684249878, -0.06467341631650925, 0.010363827459514141, 0.012824867852032185, -0.08895046263933182, -0.038003966212272644, -0.00854991190135479, -0.024943780153989792, 0.018021488562226295, 0.0036033173091709614, -0.010559925809502602, -0.0015295714838430285, -0.03349369391798973, 0.03810201585292816, -0.02031584642827511, -0.011707104742527008, 0.007324294187128544, -0.052946705371141434, 0.07538042217493057, -0.0020002087112516165, 0.018805885687470436, 0.0716545358300209, 0.054397836327552795, -0.04659309983253479, 0.03143465518951416, -0.0460832417011261, 0.05463315546512604, -0.06686972826719284, 0.022786691784858704, -0.004042088519781828, 0.00017909344751387835, -0.005623136181384325, -0.06843851506710052, -0.025453638285398483, 0.01820778287947178, 0.04725983738899231, 0.013217066414654255, 0.007373318541795015, 0.009231355972588062, -0.003963649272918701, -0.05071117728948593, -0.01759987697005272, -0.042239703238010406, -0.046004801988601685, 0.02537519857287407, -0.027395017445087433, 0.013991656713187695, 0.007736101746559143, -0.02504182979464531, 0.002198759000748396, 0.02176697738468647, -0.0411023311316967, -0.020453115925192833, -0.028120582923293114, 0.011050173081457615, -0.028081363067030907, 0.031140506267547607, -0.016354648396372795, 0.03192489966750145, 0.030277671292424202, 0.04455367103219032, 0.0516524501144886, -0.031748414039611816, -0.029963912442326546, -0.023904455825686455, -0.03004235215485096, 0.015315324068069458, 0.03753333166241646, 0.022257225587964058, 0.05004443973302841, 0.025551687926054, -0.04620090126991272, -0.022570984438061714, -0.03431730717420578, 0.04576948285102844, -0.06561469286680222, -0.03592531755566597, -0.008084177039563656, -0.03604297712445259, -0.01371711865067482, -0.03625868633389473, -0.01771753653883934, -0.008603839203715324, 0.01882549561560154, -0.03431730717420578, 0.03900407254695892, 0.05545676872134209, -0.0069468035362660885, -0.055888187140226364, 0.011403150856494904, 0.01670762710273266, 0.01960008591413498, 0.05616272613406181, 0.01759987697005272, 0.027944093570113182, -0.06953667104244232, -0.008530301973223686, -0.001098766690120101, -0.009241160936653614, -0.011599250137805939, 0.028630439192056656, -0.008947012014687061, -0.006961510982364416, 0.02237488515675068, -0.006167310290038586, 0.00282627553679049, -0.003203765721991658, 0.010069678537547588, -0.008736206218600273, -0.00532898772507906, 0.0097167007625103, 0.0305325984954834, 0.05031897872686386, 0.03661166504025459, 0.003613122273236513, -0.013266091234982014, 0.028689268976449966, 0.01571732759475708, 0.0148544916883111, 0.022747471928596497, 0.008417545817792416, 0.01474663708359003, -0.021198291331529617, 0.03565078228712082, -0.02005111239850521, -0.009177428670227528, -0.01654094271361828, -0.021512050181627274, -0.01894315332174301, 0.015246689319610596, 0.026336083188652992, 0.007373318541795015, -0.008319496177136898, 0.04208282381296158, -0.03116011619567871, 0.015805572271347046, -0.003953844308853149, -0.01455053873360157, 0.04176906496286392, 0.025179099291563034, -0.03435652703046799, 0.14095589518547058, 0.005623136181384325, 0.012991552241146564, -0.028277462348341942, -0.005628038663417101, 0.003257693024352193, -0.008000834845006466, -0.0241593848913908, -0.03898446261882782, -0.007373318541795015, 0.03680776432156563, 0.011971837840974331, 0.0029708982910960913, 0.01577615737915039, -0.00010647557792253792, -0.0018604883225634694, -0.013599459081888199, 0.04541650786995888, -0.013570044189691544, -0.015864402055740356, 0.027296967804431915, 0.022747471928596497, 0.006363409571349621, 0.09922604262828827, 0.0008419996593147516, -0.01296213734894991, -0.014305414631962776, 0.024080945178866386, -0.0024022115394473076, -0.031513094902038574, -0.015923231840133667, -0.024022115394473076, 0.045612603425979614, -0.014599563553929329, 0.012275791727006435, -0.06628143042325974, 0.006633045617491007, 0.03814123570919037, 0.06930135190486908, 0.0483187697827816, -0.0649871751666069, 0.026630230247974396, 0.027061648666858673, 0.06369292736053467, 0.008152811788022518, -0.03476833552122116, -0.08534224331378937, 0.020590385422110558, -0.00046175162424333394, 0.06400667876005173, -0.015236884355545044, 0.041298430413007736, -0.034003548324108124, -0.014628978446125984, 0.002718420932069421, 0.003848440945148468, -0.020747264847159386, 0.010814854875206947, -0.01296213734894991, 0.04031793400645256, 0.025237929075956345, -0.043455518782138824, -0.02998352237045765, 0.0035420365165919065, -0.001973245292901993, -0.034297697246074677, -0.03670971468091011, -0.025532077997922897, 0.047887351363897324, -0.008574424311518669, 0.034454576671123505, 0.07236049324274063, 0.009324503131210804, -0.030277671292424202, 0.026630230247974396, -0.03196411952376366, -0.02261020429432392, -0.01449170894920826, 0.042906440794467926, -0.05820215493440628, -0.025453638285398483, 0.07208595424890518, 0.04474977031350136, 0.04910316690802574, -0.05302514508366585, 0.03792552649974823, -0.05765307694673538, -0.05698634311556816, 0.048122670501470566, -0.03410159796476364, 0.01988442800939083, 0.0505542978644371, -0.04216126352548599, 0.05290748551487923, 0.036513615399599075, 0.06683050841093063, 0.09036237746477127, -0.05882967263460159, -0.027002818882465363, 0.013069991953670979, 0.03327798470854759, 0.013060186989605427, 0.0031743510626256466, -0.005309377796947956, -0.021061021834611893, 0.06816397607326508, -0.0538487583398819, -0.07341942936182022, 0.006275164894759655, -0.04714217782020569, 0.02782643400132656, -0.022963181138038635, -0.0019487328827381134, 0.06432043761014938, -0.0011655628914013505, 0.0411023311316967, -0.003113070037215948, 0.1027558222413063, 0.011481590569019318, 0.07581183314323425, 0.005897674709558487, -0.012207156978547573, 0.010510900989174843, -0.037239182740449905, 0.015344738960266113, 0.07130156457424164, -0.003529780311509967, 0.013236676342785358, 0.0062163351103663445, -0.01479566190391779, -0.01926671713590622, 0.004838740453124046, 0.004208772908896208, 0.03576843813061714, -0.023355379700660706, -0.009005841799080372, -0.01838427223265171, 0.004147491883486509, 0.019629500806331635, -0.006260457448661327, -0.10016731917858124, -0.0024561388418078423, -0.04482821002602577, 0.022688644006848335, 0.05820215493440628, -0.025571297854185104, 0.027238138020038605, 0.028414731845259666, 0.028336292132735252, -0.019904037937521935, -0.03449379652738571, 0.07479212433099747, 0.027061648666858673, -0.02931678667664528, -0.02515948936343193, -0.08377344906330109, -0.006863461807370186, 0.05404485762119293, 0.036631274968385696, -0.04659309983253479, -0.02798331342637539, 0.03370940312743187, -0.008991134352982044, 0.03235631808638573, -0.056280385702848434, 0.054437056183815, 0.03310149535536766, -0.03170919418334961, 0.023198500275611877, 0.035238973796367645, -0.03359174355864525, 0.042004384100437164, 0.014628978446125984, 0.02161009982228279, 0.02421821467578411, -0.009152916260063648, -0.018256807699799538, -0.012932722456753254, 0.06816397607326508, 0.023590698838233948, 0.041063111275434494, -0.012275791727006435, -0.03147387504577637, 0.030944406986236572, -0.0766354501247406, 0.008147909305989742, 0.028277462348341942, -0.05686868354678154, 0.0993829220533371, 0.09946136176586151, 0.00007307748455787078, -0.03802357614040375, -0.0216689296066761, 0.058123715221881866, -0.027355797588825226, 0.02788526378571987, -0.03759216144680977, 0.002065166598185897, 0.02005111239850521, -0.041455309838056564, -0.03186607360839844, -0.037298012524843216, -0.009853970259428024, 0.06894837319850922, 0.0449850894510746, 0.03182685375213623, -0.040063004940748215, -0.034003548324108124, 0.03447418659925461, 0.04792657122015953, -0.026865549385547638, 0.021963076665997505, -0.04314175993204117, 0.0333368144929409, -0.06428121775388718, 0.06863461434841156, 0.02704203873872757, 0.009069574065506458, -0.002298034029081464, -0.0633007287979126, 0.04914238676428795, 0.02710086852312088, 0.036572445183992386, -0.044671330600976944, -0.014089706353843212, -0.03416042774915695, 0.013315115123987198, 0.010854074731469154, 0.010510900989174843, -0.0183254424482584, -0.06792865693569183, 0.004358298145234585, 0.04784813150763512, 0.019413791596889496, 0.0672227069735527, -0.021904246881604195, 0.005216230638325214, -0.048514869064092636, -0.0000417859191657044, 0.010638365522027016, -0.03437613695859909, -0.017286118119955063, -0.020472725853323936, -0.012697404250502586, 0.0006017785053700209, 0.037454891949892044, 0.012922917492687702, 0.03539585322141647, 0.03516053408384323, -0.026845939457416534, -0.04074935242533684, -0.05977094545960426, -0.011991447769105434, -0.05659414455294609, -0.003196412231773138, -0.023453429341316223, -0.0405532531440258, -0.019756965339183807, -0.025198709219694138, -0.024296654388308525, 0.004235736094415188, -0.014070096425712109, 0.03931783139705658, 0.04698529839515686, 0.004007771145552397, -0.003613122273236513, 0.007814541459083557, 0.0007384349592030048, -0.021904246881604195, -0.012687599286437035, -0.029395226389169693, 0.06981121003627777, -0.03361135348677635, -0.09075457602739334, 0.01598205976188183, 0.00941274780780077, 0.01202086266130209, 0.05706477910280228, 0.0011845598928630352, 0.03216021880507469, -0.001239712699316442, -0.03196411952376366, -0.022923961281776428, -0.009030354209244251, 0.022002296522259712, 0.00669187493622303, 0.015560448169708252, -0.04063169285655022, 0.026747889816761017, -0.0069468035362660885, 0.0048338379710912704, 0.08157714456319809, 0.038788363337516785, -0.016570357605814934, 0.011481590569019318, -0.012579744681715965, -0.030473768711090088, 0.035454683005809784, -0.018168563023209572, -0.030728697776794434, -0.026571402326226234, -0.027512677013874054, -0.01616835407912731, 0.029081467539072037, -0.033023055642843246, 0.013952436856925488, -0.06012392416596413, 0.025237929075956345, 0.03076791763305664, -0.012011057697236538, 0.0416514053940773, 0.007839053869247437, 0.010824659839272499, 0.04765203222632408, 0.050946496427059174, -0.05529988929629326, -0.0666736289858818, 0.05686868354678154, 0.03635673597455025, -0.06012392416596413, -0.06479107588529587, 0.0355331227183342, 0.007809638977050781, 0.08722478896379471, -0.04204360395669937, 0.01771753653883934, 0.033572133630514145, -0.05459393560886383, -0.02015896700322628, 0.0036082197912037373, -0.028787318617105484, -0.060280803591012955, 0.0035518414806574583, -0.04824033007025719, 0.013668093830347061, -0.00532898772507906, -0.017913633957505226, 0.008505789563059807, -0.005000521894544363, -0.014638783410191536, -0.034846775233745575, 0.04125921055674553, 0.062281012535095215, 0.04380849376320839, -0.031748414039611816, 0.02455158345401287, 0.003706269199028611, -0.018629396334290504, -0.013256286270916462, 0.0019879527390003204, 0.04208282381296158, 0.00538781750947237, -0.002389955334365368, 0.0019855014979839325, -0.0001365798234473914, -0.02576739527285099, 0.0019965318497270346, 0.051495570689439774, 0.06530093401670456, -0.018031293526291847, -0.050397418439388275, -0.01465839333832264, -0.06620299071073532, -0.12840555608272552, -0.03704308345913887, -0.00022199009254109114, -0.02104141190648079, 0.015413373708724976, -0.025257539004087448, -0.029689373448491096, 0.033689793199300766, 0.01732533797621727, 0.01866861619055271, -0.02427704446017742, -0.006152603309601545, -0.0280421432107687, 0.023296549916267395, -0.020021697506308556, 0.02343381941318512, 0.02627725340425968, 0.02082570269703865, -0.043063320219516754, 0.03259163722395897, 0.012599354609847069, -0.0059172846376895905, -0.05235840752720833, -0.05541754886507988, 0.004703922662883997, -0.042004384100437164, 0.004828935489058495, 0.02310045063495636, 0.024414313957095146, -0.02843434177339077, -0.05204464867711067, 0.01676645688712597, -0.02764994464814663, -0.0020749715622514486, -0.0006014721002429724, -0.01577615737915039, -0.0411023311316967, 0.002892458811402321, 0.010677585378289223, -0.03674893453717232, 0.010559925809502602, -0.02527714893221855, 0.05235840752720833, -0.044279132038354874, -0.0035052679013460875, -0.01512903068214655, 0.010569730773568153, 0.05486847460269928, -0.10746219754219055, 0.043612394481897354, -0.0007059560739435256, 0.022590594366192818, -0.035631172358989716, 0.025257539004087448, -0.06957589089870453, -0.07902786135673523, 0.00530447531491518, 0.01905100792646408, -0.03843538463115692, 0.013030772097408772, 0.010569730773568153, 0.012275791727006435, -0.04392615333199501, 0.002472071908414364, 0.05365265905857086, -0.0010865104850381613, -0.010177533142268658, 0.0025002609472721815, -0.0175018273293972, 0.02870887890458107, 0.018423492088913918, -0.029003027826547623, -0.05502535402774811, -0.02892458811402321, -0.006628143135458231, -0.020570775493979454, -0.07185063511133194, -0.026669450104236603, -0.017344947904348373, 0.00018384272698312998, 0.06647752970457077, 0.00759393023326993, -0.044122252613306046, -0.003294461639598012, -0.045063529163599014, -0.0014977053506299853, 0.027610724791884422, -0.02743423730134964, 0.045887142419815063, -0.07647857069969177, -0.0258262250572443, -0.031905289739370346, -0.03902368247509003, 0.04153374955058098, 0.030238451436161995, -0.04929926246404648, 0.05204464867711067, 0.022355275228619576, 0.04631856083869934, 0.0316503643989563, -0.026473352685570717, -0.05569208785891533, -0.014511318877339363, 0.040788572281599045, -0.019972672685980797, -0.016786066815257072, -0.015923231840133667, -0.0003517524164635688, -0.022061126306653023, 0.04014144465327263, 0.051181815564632416, 0.012932722456753254, -0.016305623576045036, 0.048789408057928085, -0.03488599509000778, 0.01649191789329052, 0.014197560958564281, -0.0015418275725096464, 0.0316699743270874, 0.03902368247509003, 0.015217275358736515, -0.040514033287763596, -0.0036842082627117634, -0.024257434532046318, -0.01920788735151291, -0.009893190115690231, -0.025688955560326576, -0.0021362523548305035, -0.0034734017681330442, -0.01733514294028282, -0.009579431265592575, -0.011589445173740387, -0.09514718502759933, -0.04620090126991272, -0.05471159517765045, 0.0028703976422548294, 0.021139461547136307, -0.012746429070830345, 0.03704308345913887, -0.032787736505270004, -0.039121732115745544, 0.023296549916267395, 0.0327485166490078, 0.034513406455516815, -0.023571088910102844, 0.03327798470854759, 0.037062693387269974, -0.012873892672359943, 0.003760196501389146, 0.031571924686431885, 0.0013199907261878252, 0.004645092878490686, -0.05314280465245247, -0.010236362926661968, 0.01593303680419922, 0.022629814222455025, 0.03233670815825462, -0.07459602504968643, -0.0350036546587944, -0.016893921419978142, 0.001326118828728795, -0.06451653689146042, 0.01588401198387146, -0.03753333166241646, -0.022061126306653023, -0.0016852249391376972, 0.037298012524843216, 0.033572133630514145, 0.026904769241809845, -0.009290185756981373, 0.005824137479066849, 0.012413060292601585, -0.003488109214231372, 0.029669763520359993, -0.021296340972185135, 0.016619382426142693, -0.0004945369437336922, -0.008937207981944084, -0.010236362926661968, -0.023669138550758362, -0.06577157229185104, 0.05086805671453476, -0.015727132558822632, -0.016795871779322624, 0.027296967804431915, -0.0020860021468251944, -0.056554924696683884, -0.030238451436161995, 0.013040577061474323, -0.01512903068214655, 0.0382981151342392, -0.0077164918184280396, 0.027453847229480743, 0.013109211809933186, -0.009349015541374683, 0.020649215206503868, -0.02910107746720314, -0.004804423078894615, 0.04804423078894615, 0.011520810425281525, -0.023845626041293144, 0.005289767868816853, 0.01788421906530857, 0.02976781316101551, 0.006799729540944099, -0.028669659048318863, 0.01577615737915039, 0.04902472719550133, -0.014776051975786686, -0.02243371494114399, 0.027238138020038605, -0.0683208554983139, 0.06561469286680222, 0.03925900161266327, 0.033689793199300766, 0.04624012112617493, 0.07702764868736267, -0.047338277101516724, 0.024139774963259697, -0.07596871256828308, -0.07263503223657608, -0.0743999257683754, -0.0009216648177243769, -0.027532286942005157, 0.07859644293785095, 0.031571924686431885, 0.023355379700660706, 0.01549181342124939, 0.04824033007025719, 0.027944093570113182 ]
715,238
pytorch_optimizer.optimizer.adashift
AdaShift
Decorrelation and Convergence of Adaptive Learning Rate Methods. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param keep_num: int. number of gradients used to compute first moment estimation. :param reduce_func: Optional[Callable]. function applied to squared gradients to further reduce the correlation. If None, no function is applied. :param eps: float. term added to the denominator to improve numerical stability.
class AdaShift(Optimizer, BaseOptimizer): r"""Decorrelation and Convergence of Adaptive Learning Rate Methods. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param keep_num: int. number of gradients used to compute first moment estimation. :param reduce_func: Optional[Callable]. function applied to squared gradients to further reduce the correlation. If None, no function is applied. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), keep_num: int = 10, reduce_func: Optional[Callable] = torch.max, eps: float = 1e-10, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_positive(keep_num, 'keep_num') self.validate_non_negative(eps, 'eps') self.reduce_func: Callable = reduce_func if reduce_func is not None else lambda x: x defaults: DEFAULTS = {'lr': lr, 'betas': betas, 'keep_num': keep_num, 'eps': eps} super().__init__(params, defaults) def __str__(self) -> str: return 'AdaShift' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['grad_queue'] = deque([p.grad.clone()], maxlen=group['keep_num']) state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] exp_weight_sum: int = sum(beta1 ** i for i in range(group['keep_num'])) # fmt: skip first_grad_weight: float = beta1 ** (group['keep_num'] - 1) / exp_weight_sum last_grad_weight: float = 1.0 / exp_weight_sum bias_correction: float = 1.0 - beta2 ** (group['step'] - group['keep_num']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['grad_queue'] = deque([grad.clone()], maxlen=group['keep_num']) state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) grad_queue = state['grad_queue'] grad_queue.append(grad.clone()) if len(grad_queue) != group['keep_num']: continue offset_grad = grad_queue[0] exp_avg = state['exp_avg'] exp_avg.sub_(offset_grad, alpha=first_grad_weight).mul_(beta1).add_(grad, alpha=last_grad_weight) reduced_grad_sq = self.reduce_func(offset_grad.mul_(offset_grad)) exp_avg_sq = state['exp_avg_sq'] exp_avg_sq.mul_(beta2).add_(reduced_grad_sq, alpha=1.0 - beta2) de_nom = exp_avg_sq.div(bias_correction).sqrt_().add_(group['eps']) p.addcdiv_(exp_avg, de_nom, value=-group['lr']) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), keep_num: int = 10, reduce_func: Optional[Callable] = <built-in method max of type object at 0x7f1ddc481760>, eps: float = 1e-10)
[ -0.04632510617375374, -0.021650636568665504, -0.008285299874842167, 0.011057145893573761, -0.0013204066781327128, -0.018727600574493408, -0.06168617308139801, -0.05217118188738823, -0.00974177848547697, 0.0014741180930286646, -0.042172376066446304, 0.012417870573699474, 0.027738619595766068, 0.06462936848402023, -0.03816075995564461, 0.056888360530138016, -0.010774921625852585, 0.07353959232568741, 0.02413018047809601, -0.009157171472907066, -0.04297873377799988, -0.0917632207274437, -0.04047903046011925, 0.05737217515707016, -0.03783821687102318, 0.0026105749420821667, 0.04013632982969284, -0.030923722311854362, -0.048986081033945084, 0.0012341014808043838, -0.002980994526296854, -0.06668557971715927, -0.0012404010631144047, -0.006884257774800062, 0.018384898081421852, -0.06660494208335876, 0.011631674133241177, 0.0006476040580309927, -0.06676620990037918, -0.03632630407810211, 0.030661657452583313, -0.029351329430937767, 0.05160673335194588, -0.05894456431269646, 0.00980729516595602, -0.003661356633529067, -0.012952080927789211, 0.03737456351518631, -0.016106944531202316, -0.02745639532804489, 0.025642095133662224, -0.08220791071653366, 0.05842043459415436, 0.029311012476682663, 0.013486291281878948, 0.063782699406147, 0.07156402617692947, -0.009424276649951935, 0.04096284508705139, -0.08083710819482803, 0.03429025411605835, -0.08369967341423035, 0.029814984649419785, 0.014000342227518559, -0.0002836417406797409, -0.01949363760650158, -0.08547364920377731, -0.036507733166217804, 0.005211070645600557, 0.031750235706567764, 0.01170223020017147, -0.026206543669104576, 0.0383421890437603, -0.012841206975281239, -0.025238918140530586, -0.02912958152592182, -0.0464460588991642, -0.061202362179756165, -0.006077902391552925, -0.06039600446820259, 0.012921842746436596, 0.0021872385405004025, -0.021791748702526093, 0.008723755367100239, 0.048018451780080795, -0.06309729814529419, -0.022860169410705566, -0.03628598526120186, 0.029190057888627052, -0.06487127393484116, 0.027940208092331886, -0.027375759556889534, 0.025621937587857246, 0.03664884343743324, 0.04430921748280525, 0.04110395535826683, -0.014544632285833359, -0.06616144627332687, 0.02154984325170517, -0.02489621751010418, 0.014736141078174114, 0.026025114580988884, 0.01814299263060093, 0.04495430365204811, 0.021791748702526093, -0.055356286466121674, -0.03614487126469612, -0.012569061480462551, 0.02425113320350647, -0.060557276010513306, -0.004056974779814482, 0.009308363310992718, -0.03048022650182247, -0.010895874351263046, -0.03120594657957554, 0.006082942243665457, -0.001983129885047674, 0.01654036156833172, -0.031044675037264824, 0.034249939024448395, 0.07620056718587875, 0.02251746878027916, -0.04455112665891647, 0.017870847135782242, 0.04362381622195244, -0.020108483731746674, 0.033604852855205536, 0.020501581951975822, 0.009585547260940075, -0.055678825825452805, -0.02501717023551464, 0.0060980613343417645, -0.046526696532964706, -0.00675322487950325, 0.04136602208018303, 0.009978645481169224, 0.027557188645005226, 0.02624686248600483, -0.04785718023777008, -0.011651832610368729, 0.030601181089878082, 0.03471359238028526, 0.02765798382461071, -0.014181772246956825, 0.013163749128580093, -0.0068892971612513065, 0.0480990894138813, 0.002953276038169861, 0.0069497739896178246, -0.002708849497139454, 0.018163152039051056, 0.004445033147931099, -0.027496712282299995, 0.025561459362506866, 0.020481422543525696, 0.003774750279262662, -0.04366413503885269, 0.03422977775335312, -0.03826155513525009, -0.012730333022773266, -0.028968311846256256, -0.020148800686001778, -0.015744086354970932, 0.00046900895540602505, 0.01305287517607212, -0.012034851126372814, 0.01613718457520008, 0.03866473212838173, -0.04301904886960983, 0.0023346503730863333, -0.00033136160345748067, -0.07567643374204636, 0.004485351033508778, 0.012780729681253433, -0.06733065843582153, 0.09893978387117386, -0.0061686174012720585, 0.010079439729452133, 0.006314769387245178, -0.0426965095102787, 0.02411002106964588, -0.008260101079940796, -0.03249611333012581, -0.05854138731956482, -0.012931921519339085, 0.008804391138255596, -0.0012775689829140902, 0.002907918533310294, 0.001741223270073533, 0.015905356034636497, -0.007267276290804148, -0.04066046327352524, 0.016893140971660614, -0.01460510864853859, -0.032516274601221085, -0.004382036626338959, 0.0020410865545272827, 0.029028788208961487, 0.10208456963300705, 0.043704453855752945, -0.018939267843961716, 0.013022636994719505, 0.04136602208018303, 0.01055317372083664, 0.024150338023900986, -0.002517340239137411, -0.005594089161604643, 0.011853422038257122, -0.03517724573612213, 0.007433587219566107, -0.0386042557656765, 0.01135952863842249, 0.05858170613646507, 0.04543811455368996, 0.037092339247465134, -0.018374819308519363, 0.0361650325357914, 0.04277714341878891, 0.10635825246572495, 0.02275937609374523, -0.01730639860033989, -0.05555787310004234, -0.015623132698237896, 0.013516529463231564, 0.09869787842035294, -0.02965371310710907, 0.044026993215084076, 0.0033892118372023106, -0.0042484840378165245, -0.02366652525961399, 0.013496370054781437, -0.05253404378890991, -0.006521397735923529, -0.02683147042989731, 0.08257077634334564, 0.04189015179872513, -0.04882480949163437, -0.0011118882102891803, -0.014584950171411037, -0.014040660113096237, -0.021186983212828636, -0.003598360111936927, -0.02167079597711563, 0.030762450769543648, -0.010079439729452133, 0.020088324323296547, 0.05608200654387474, 0.035278040915727615, -0.010653967969119549, 0.020279834046959877, -0.012942001223564148, -0.017800292000174522, -0.009993764571845531, 0.04951021075248718, -0.08498983830213547, -0.003016272559762001, 0.04503493756055832, 0.025581618770956993, 0.0014678185107186437, -0.06124267727136612, 0.009338601492345333, -0.03416930139064789, -0.06878209859132767, 0.034189462661743164, -0.01315366942435503, 0.0469701923429966, 0.07551516592502594, -0.03672948107123375, 0.03195182606577873, 0.035721536725759506, 0.06503254920244217, 0.06406491994857788, -0.06208935007452965, 2.2147207801026525e-7, -0.00887494720518589, 0.03916870430111885, 0.012538823299109936, 0.006219014525413513, -0.006722986698150635, -0.010119757615029812, 0.04612351953983307, -0.012014692649245262, -0.06531476974487305, 0.017155207693576813, -0.03822123631834984, 0.01710481010377407, -0.0036462375428527594, 0.011853422038257122, 0.04233364760875702, 0.029089264571666718, 0.0713624358177185, 0.005654565989971161, 0.10305219888687134, -0.01883847452700138, 0.10087503492832184, 0.05047783628106117, 0.0005367301637306809, 0.027033058926463127, -0.02316255308687687, 0.00958050787448883, 0.04447048902511597, -0.02263842336833477, -0.0024770223535597324, -0.015613052994012833, -0.015008286572992802, -0.025642095133662224, -0.009610746055841446, 0.01550217904150486, 0.05358230322599411, 0.014947810210287571, 0.006622191984206438, -0.012286837212741375, -0.013929786160588264, 0.013375417329370975, -0.02527923509478569, -0.09482737630605698, 0.00891022477298975, -0.02715401165187359, 0.03156880661845207, 0.05950901657342911, -0.038826003670692444, 0.041970789432525635, 0.006259332410991192, -0.01460510864853859, -0.012478346936404705, -0.037596311420202255, 0.02759750746190548, 0.007821645587682724, -0.018556250259280205, -0.03638678044080734, -0.07982916384935379, -0.02501717023551464, 0.003028871724382043, 0.01051285583525896, -0.04273682460188866, -0.026146067306399345, 0.03243563696742058, 0.002337170299142599, 0.008960622362792492, -0.02548082545399666, 0.05209054797887802, 0.061726491898298264, -0.023888273164629936, 0.06128299608826637, 0.00041483197128400207, -0.05205022916197777, 0.042615871876478195, 0.03539899364113808, -0.010024003684520721, 0.021590160205960274, 0.008239942602813244, -0.01055317372083664, 0.008759033866226673, 0.08990860730409622, 0.07769232243299484, 0.023968908935785294, -0.020229436457157135, -0.013244383968412876, 0.05011497810482979, -0.08079679310321808, -0.027819255366921425, -0.0065465965308249, -0.033927395939826965, 0.06628239899873734, 0.02830306813120842, -0.003691595047712326, -0.052654996514320374, -0.05543692037463188, 0.03531835973262787, -0.06200871616601944, 0.014242248609662056, -0.08196600526571274, 0.01174254808574915, 0.006743145640939474, -0.0691046416759491, -0.01286136545240879, -0.006536516826599836, -0.014574870467185974, 0.04301904886960983, 0.025783207267522812, 0.024674469605088234, -0.011934056878089905, -0.011440164409577847, 0.04148697480559349, 0.034249939024448395, 0.0010243230499327183, 0.02070317044854164, -0.0386042557656765, 0.05422738939523697, -0.03951140493154526, 0.041325703263282776, 0.0069749727845191956, 0.0051304348744452, -0.027234647423028946, -0.09547245502471924, 0.039712995290756226, 0.03247595578432083, 0.04882480949163437, -0.05555787310004234, -0.039712995290756226, -0.008839668706059456, -0.013234305195510387, 0.03681011497974396, 0.009943367913365364, 0.007282395381480455, -0.05338071659207344, 0.04680892080068588, 0.061968397349119186, -0.01045237947255373, 0.06575826555490494, -0.03632630407810211, -0.0009443175513297319, -0.010916033759713173, 0.04906671494245529, 0.0024404844734817743, -0.014131374657154083, -0.0075293416157364845, -0.00997360609471798, -0.010341505520045757, 0.014514394104480743, 0.0523727722465992, 0.0074940635822713375, 0.03332262858748436, 0.020299991592764854, 0.023303665220737457, -0.034955497831106186, -0.07527326047420502, -0.009021098725497723, -0.07039480656385422, -0.037334244698286057, -0.009222688153386116, -0.046083200722932816, -0.014816776849329472, -0.03620534762740135, -0.027436235919594765, 0.010155036114156246, -0.013274623081088066, 0.058178529143333435, 0.04257555678486824, -0.023565731942653656, 0.02154984325170517, -0.014635346829891205, 0.019080379977822304, -0.02084428258240223, -0.03183087334036827, -0.04971179738640785, 0.0718865692615509, -0.005594089161604643, -0.08091774582862854, -0.0021204622462391853, 0.039793629199266434, 0.02140873111784458, 0.008411292918026447, 0.037475358694791794, 0.0021922781597822905, -0.0178204495459795, -0.00461386376991868, -0.030016573145985603, -0.014907492324709892, 0.0016643675044178963, 0.015471940860152245, 0.0010066840332001448, -0.02032015100121498, 0.023122236132621765, -0.006521397735923529, 0.04277714341878891, 0.06527445465326309, -0.024432562291622162, -0.01369795948266983, 0.010593491606414318, -0.009837533347308636, -0.035983599722385406, 0.007181601133197546, -0.02816195599734783, -0.01469582412391901, -0.008139148354530334, -0.009938327595591545, -0.010855557397007942, -0.003532843664288521, -0.004268642980605364, 0.01466558501124382, -0.07535389810800552, 0.01897958666086197, 0.03634646162390709, 0.023243188858032227, 0.02154984325170517, -0.0014388400595635176, -0.0011333069996908307, 0.018354659900069237, 0.03711250051856041, -0.04140634089708328, -0.03967267647385597, 0.036185190081596375, 0.05398548021912575, -0.055799782276153564, -0.03285897523164749, 0.01839497871696949, -0.01196429505944252, 0.06543572247028351, -0.019312206655740738, 0.04463176056742668, -0.018505852669477463, -0.09442419558763504, -0.01125873439013958, 0.05313880741596222, -0.04612351953983307, -0.07333800941705704, -0.00020536858937703073, -0.03158896416425705, 0.020360469818115234, -0.03253643214702606, -0.002318271202966571, 0.031367216259241104, 0.026549246162176132, 0.01754830591380596, -0.027012899518013, 0.0067381057888269424, 0.06337951868772507, 0.05055847018957138, -0.04668796807527542, 0.015199795365333557, 0.01190381869673729, -0.02084428258240223, 0.0017714615678414702, 0.011984454467892647, 0.048784490674734116, 0.008401213213801384, -0.01640932820737362, 0.019886735826730728, 0.00903621781617403, -0.03687059134244919, 0.011087384074926376, 0.008345776237547398, 0.07769232243299484, -0.0026811310090124607, -0.01839497871696949, 0.0056444862857460976, -0.02921021729707718, -0.0918438583612442, -0.03761646896600723, 0.009187409654259682, 0.013597165234386921, -0.0018571368418633938, -0.04668796807527542, -0.018294183537364006, 0.06680653244256973, -0.016026310622692108, 0.043059367686510086, -0.03594328463077545, -0.019977450370788574, -0.039410609751939774, 0.02425113320350647, -0.015330828726291656, 0.04894576221704483, 0.04874417185783386, 0.018304264172911644, -0.04656701534986496, 0.010074400343000889, 0.007761168759316206, 0.028061160817742348, -0.0378180593252182, -0.04334159195423126, 0.005452977027744055, -0.03687059134244919, 0.004190527368336916, 0.025238918140530586, 0.050074659287929535, -0.014282566495239735, -0.01270009484142065, 0.0259243194013834, -0.02753703109920025, -0.053300078958272934, -0.012458188459277153, -0.012065090239048004, -0.07785359770059586, 0.013677800074219704, 0.0062038954347372055, -0.03455232083797455, -0.005684804171323776, -0.030923722311854362, 0.06608080863952637, -0.07192688435316086, -0.009761937893927097, -0.03068181499838829, 0.021630479022860527, 0.0459219291806221, -0.06321825087070465, 0.0459219291806221, 0.02959323674440384, 0.010835397988557816, -0.009333561174571514, 0.029573077335953712, -0.029190057888627052, -0.05015529319643974, -0.01164175383746624, 0.03562074154615402, -0.039531562477350235, 0.03810028359293938, 0.030016573145985603, 0.006289570592343807, -0.04080157354474068, -0.017991799861192703, 0.04543811455368996, -0.015099001117050648, 0.006682668812572956, 0.02656940370798111, -0.015582814812660217, 0.008900146000087261, 0.022678740322589874, -0.050598789006471634, -0.02777893655002117, -0.005180832464247942, 0.012891603633761406, -0.044793032109737396, -0.02134825475513935, -0.02372700162231922, -0.021388571709394455, -0.004860810004174709, 0.06003314629197121, 0.009283164516091347, 0.01710481010377407, -0.009721620008349419, -0.005057359114289284, 0.008174425922334194, -0.0073781502433121204, -0.004835611209273338, 0.0324154794216156, -0.09450483322143555, -0.0035152046475559473, 0.0067381057888269424, 0.007725890725851059, 0.005649526137858629, 0.027799095958471298, -0.023001281544566154, 0.033342789858579636, 0.008224823512136936, 0.06890305131673813, 0.018042197450995445, -0.01640932820737362, -0.07462817430496216, 0.003941060975193977, 0.015996072441339493, -0.017256001010537148, 0.0019705304875969887, -0.00438707647845149, -0.045196209102869034, -0.007408388424664736, 0.021570002660155296, 0.016479885205626488, 0.02677099220454693, -0.014272487722337246, 0.027819255366921425, -0.04926830530166626, 0.010764841921627522, 0.011923978105187416, 0.0017865807749330997, 0.03918886184692383, 0.06837892532348633, 0.03441121056675911, -0.02154984325170517, 0.002100303303450346, -0.0033262153156101704, 0.00008173796231858432, 0.006536516826599836, -0.020471343770623207, -0.00833065714687109, -0.022598104551434517, 0.021428890526294708, 0.034249939024448395, 0.03179055452346802, -0.08386094123125076, -0.04176919907331467, -0.0642261952161789, 0.022880328819155693, 0.023787477985024452, -0.01891910843551159, 0.027436235919594765, -0.04959084466099739, -0.007695652544498444, -0.03179055452346802, 0.008854787796735764, 0.0518486388027668, 0.012216281145811081, -0.014625268056988716, 0.03545947000384331, -0.032838817685842514, 0.004170368425548077, 0.024876058101654053, 0.02000768855214119, -0.038422826677560806, -0.02070317044854164, -0.004084693267941475, 0.018687281757593155, -0.01756846345961094, 0.03789869323372841, -0.07108021527528763, -0.04495430365204811, -0.019382763653993607, 0.014776458963751793, -0.07148338854312897, 0.024775264784693718, 0.017477748915553093, -0.02945212461054325, 0.011107543483376503, 0.015784403309226036, 0.07011258602142334, -0.002880200045183301, -0.005009481683373451, 0.0023749680258333683, -0.02380763739347458, 0.00217085937038064, 0.039007432758808136, -0.018153071403503418, 0.03185103088617325, 0.05446929484605789, -0.021186983212828636, 0.037394724786281586, -0.035983599722385406, -0.028706245124340057, 0.06979004293680191, -0.04334159195423126, 0.023323824629187584, 0.018445376306772232, -0.003928461577743292, -0.03832203149795532, -0.05096165090799332, -0.010986589826643467, -0.03201230242848396, 0.008340736851096153, -0.020279834046959877, 0.04741368815302849, 0.03195182606577873, 0.032516274601221085, 0.01520987506955862, 0.005311864893883467, -0.0000836278559290804, 0.05108260363340378, 0.013032715767621994, 0.030077049508690834, 0.033987872302532196, -0.012952080927789211, 0.014262408018112183, -0.0029280774760991335, -0.01814299263060093, -0.028786880895495415, 0.031427692621946335, -0.04688955470919609, 0.006390364840626717, 0.020884599536657333, -0.062371574342250824, 0.04636542499065399, -0.0013972624437883496, 0.03908807039260864, 0.02874656394124031, 0.06096045300364494, -0.06531476974487305, 0.01666131429374218, -0.059670284390449524, -0.053300078958272934, -0.09902042150497437, 0.015240113250911236, -0.037092339247465134, 0.056122321635484695, 0.025259077548980713, -0.006733065936714411, -0.0031674641650170088, 0.016631076112389565, 0.014847015030682087 ]
715,240
pytorch_optimizer.optimizer.adashift
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), keep_num: int = 10, reduce_func: Optional[Callable] = torch.max, eps: float = 1e-10, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_positive(keep_num, 'keep_num') self.validate_non_negative(eps, 'eps') self.reduce_func: Callable = reduce_func if reduce_func is not None else lambda x: x defaults: DEFAULTS = {'lr': lr, 'betas': betas, 'keep_num': keep_num, 'eps': eps} super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), keep_num: int = 10, reduce_func: Optional[Callable] = <built-in method max of type object at 0x7f1ddc481760>, eps: float = 1e-10)
[ -0.029009144753217697, -0.03649293631315231, -0.033714864403009415, 0.016961373388767242, -0.03560471162199974, -0.000762434967327863, -0.06682497262954712, -0.060701873153448105, -0.018992958590388298, -0.006718404591083527, -0.016384970396757126, 0.0717763751745224, 0.0029670591466128826, 0.05605284869670868, -0.028744567185640335, 0.04184120520949364, 0.024473512545228004, 0.023075027391314507, 0.0331479087471962, 0.010016187094151974, -0.01850159838795662, 0.023793168365955353, -0.03239196911454201, 0.09539945423603058, 0.011263485997915268, 0.044486988335847855, 0.043655455112457275, -0.009789405390620232, -0.02885795757174492, 0.020183561369776726, 0.011282384395599365, 0.022167900577187538, -0.0234718956053257, 0.05503233149647713, 0.0032836084719747305, -0.014400631189346313, -0.01042250357568264, 0.040140341967344284, -0.07343944162130356, 0.018237018957734108, 0.03838278353214264, -0.043239690363407135, 0.0655398815870285, -0.025078264996409416, -0.019172493368387222, -0.003935605753213167, 0.05257553234696388, 0.047926511615514755, 0.01842600479722023, -0.04233256354928017, -0.02271595597267151, 0.0054427580907940865, 0.04029152914881706, -0.012151713483035564, -0.022526971995830536, 0.07204095274209976, 0.06606903672218323, 0.04320189356803894, 0.03541572391986847, 0.03832608833909035, -0.008310600183904171, -0.02643895335495472, 0.015619582496583462, -0.0056837135925889015, 0.016753491014242172, -0.012945448979735374, -0.10809922218322754, -0.020674921572208405, -0.014589616097509861, 0.05771591514348984, 0.0738552063703537, -0.018378758803009987, 0.013776981271803379, 0.047661930322647095, 0.026420054957270622, -0.026798024773597717, -0.0772947296500206, -0.052840109914541245, -0.0414254367351532, -0.0009655934991315007, 0.0621003583073616, 0.007507415488362312, -0.03292112797498703, -0.0293304193764925, 0.026004288345575333, -0.0820949375629425, -0.02131746895611286, -0.08685734868049622, 0.033563677221536636, 0.025210553780198097, -0.08632819354534149, 0.011310731992125511, 0.00324344914406538, -0.036266155540943146, 0.03645513951778412, 0.013134433887898922, 0.0034773177467286587, -0.03335579112172127, -0.00045710665290243924, -0.037456758320331573, 0.010573691688477993, 0.026174375787377357, -0.04342867434024811, -0.005324642639607191, 0.04543191194534302, -0.04803990200161934, -0.04233256354928017, -0.035850390791893005, 0.027024805545806885, -0.019900085404515266, 0.0030568267684429884, 0.05340706557035446, -0.06092865392565727, 0.04686819389462471, -0.05616624280810356, 0.016810186207294464, 0.001813071547076106, -0.016668446362018585, -0.03617166355252266, -0.00467500789090991, 0.03388494998216629, 0.05423859879374504, -0.04471376910805702, 0.049249403178691864, 0.025720812380313873, -0.0010583141120150685, 0.04460037872195244, 0.013247824274003506, 0.01801968738436699, -0.03791032359004021, 0.009912244975566864, -0.008296426385641098, -0.016507809981703758, -0.02732718177139759, 0.01155641209334135, -0.023774269968271255, 0.02651454694569111, 0.03401723876595497, -0.026401156559586525, -0.000011949957297474612, 0.04996754229068756, 0.04981635510921478, 0.031031280755996704, -0.006836520042270422, 0.005475830752402544, -0.007290083449333906, -0.0006112472619861364, -0.05688438192009926, -0.0022229321766644716, 0.013295071199536324, 0.013295071199536324, 0.010035085491836071, -0.01252023410052061, 0.009779956191778183, 0.020731616765260696, -0.00800822488963604, 0.0393466055393219, -0.03403613716363907, -0.007927906699478626, -0.0043962555937469006, -0.007559386547654867, 0.05204637721180916, 0.024662498384714127, -0.018000788986682892, -0.01491088978946209, -0.00952955149114132, -0.02188442274928093, 0.005905770696699619, -0.04618785157799721, 0.0059388428926467896, 0.012586378492414951, -0.08088543266057968, -0.012898202985525131, 0.024794787168502808, -0.06240273639559746, 0.05688438192009926, 0.01841655559837818, -0.002626886824145913, -0.04203018918633461, -0.00330486916936934, 0.048493463546037674, -0.026401156559586525, -0.011858787387609482, -0.054843347519636154, 0.041652217507362366, -0.012983245775103569, -0.0469437912106514, 0.039233215153217316, -0.04664141312241554, -0.006056958343833685, 0.015581784769892693, 0.0009963035117834806, 0.01424944307655096, 0.005277396645396948, -0.028895754367113113, -0.006071132142096758, 0.030464326962828636, 0.009179930202662945, 0.03464088961482048, 0.026420054957270622, 0.019824489951133728, 0.026136578992009163, 0.03286443278193474, -0.04410902038216591, -0.012454088777303696, 0.012926550582051277, -0.021922221407294273, 0.04335308074951172, -0.002733190543949604, -0.036757517606019974, -0.0036781139206141233, -0.013663590885698795, 0.03596378117799759, 0.06296969205141068, 0.008272803388535976, -0.06361223757266998, 0.005168730393052101, 0.031843915581703186, 0.06614463031291962, 0.016555055975914, 0.09093941748142242, -0.018955161795020103, -0.02428452856838703, -0.007682226598262787, 0.0593411847949028, 0.021015094593167305, 0.017093662172555923, -0.05147942155599594, -0.049740761518478394, 0.012274553999304771, -0.028309902176260948, -0.05072348192334175, -0.04380664601922035, -0.007205040194094181, -0.0032363622449338436, 0.018737828359007835, -0.029387114569544792, 0.018048034980893135, -0.07222993671894073, -0.0483044795691967, 0.02498377114534378, -0.003023754572495818, -0.016819635406136513, -0.004937224090099335, 0.041160859167575836, 0.015317206270992756, 0.0231317225843668, 0.04887143149971962, -0.05208417400717735, 0.012614726088941097, -0.0158841609954834, -0.015118773095309734, 0.010620937682688236, 0.032259680330753326, -0.04036712273955345, 0.035226739943027496, 0.017896847799420357, -0.03326129913330078, 0.022111205384135246, -0.012217857874929905, 0.0165739543735981, -0.03670082241296768, -0.01021462120115757, 0.061268825083971024, -0.007960978895425797, 0.0006655803299508989, 0.005324642639607191, -0.011121747083961964, 0.04044271633028984, 0.007148344535380602, 0.0848919078707695, 0.03439520671963692, 0.001542587298899889, -0.01649836078286171, -0.0017906296998262405, -0.02948160655796528, -0.025437334552407265, -0.027969729155302048, -0.009142132475972176, 0.03469758480787277, 0.03904423117637634, -0.03568030521273613, -0.012387944385409355, -0.01885122060775757, 0.014098255895078182, 0.0013913995353505015, -0.007521589286625385, -0.003356839995831251, -0.047170571982860565, -0.008116891607642174, 0.012586378492414951, -0.006430203095078468, 0.0621003583073616, 0.008910627104341984, 0.08647938072681427, -0.04539411514997482, 0.024038849398493767, -0.0031040729954838753, 0.039989154785871506, -0.011168993078172207, 0.03409283235669136, -0.07793727517127991, 0.006553043145686388, -0.05011873319745064, -0.011140645481646061, -0.03619056195020676, 0.018199222162365913, 0.007800342049449682, 0.046490225940942764, 0.044562581926584244, 0.055183522403240204, 0.05064788833260536, 0.021827727556228638, 0.008542106486856937, 0.03148484602570534, -0.040745094418525696, 0.01995678059756756, -0.06637141108512878, 0.024738091975450516, 0.03208959475159645, 0.015855813398957253, 0.010129577480256557, -0.0210528913885355, 0.02851778455078602, -0.05212197080254555, -0.0641791895031929, -0.005508902948349714, -0.002513495972380042, -0.05525911599397659, -0.026816923171281815, -0.06357444077730179, 0.0021981277968734503, 0.03348807990550995, -0.02844219096004963, -0.08330443501472473, -0.0005914629437029362, 0.027591761201620102, 0.0538606271147728, 0.013408461585640907, 0.016205433756113052, 0.09071263670921326, -0.05204637721180916, -0.020599327981472015, 0.06523750722408295, -0.02789413556456566, -0.02870677039027214, 0.03554801270365715, -0.030539920553565025, 0.06024830788373947, 0.020882805809378624, -0.0037040994502604008, 0.002740277675911784, 0.010091780684888363, 0.07309926301240921, 0.07128501683473587, -0.009997288696467876, -0.01959770917892456, 0.0032576231751590967, 0.016139289364218712, -0.08519428223371506, 0.012803710997104645, -0.03386605158448219, -0.023755371570587158, 0.0462256483733654, 0.012085569091141224, 0.001606369623914361, 0.008518483489751816, -0.05079907551407814, 0.02636335976421833, -0.005730959586799145, 0.023755371570587158, -0.061382219195365906, -0.02008906938135624, -0.0018851220374926925, 0.006250667851418257, 0.00324344914406538, -0.03877965360879898, 0.004771862644702196, 0.02664683759212494, 0.020448140799999237, -0.01615818776190281, -0.012813160195946693, 0.04796430841088295, 0.009940593503415585, 0.015251061879098415, 0.02209230698645115, -0.009567348286509514, -0.018048034980893135, 0.054087407886981964, -0.0006401855498552322, 0.0179440937936306, 0.021903323009610176, 0.015827465802431107, -0.026174375787377357, -0.05832066759467125, 0.043164096772670746, 0.04203018918633461, 0.011140645481646061, -0.001985520124435425, -0.05805608630180359, -0.020750515162944794, -0.038685161620378494, 0.02511606179177761, 0.06448156386613846, 0.00997839029878378, 0.007252286188304424, 0.017509428784251213, 0.02367977797985077, 0.02318841777741909, 0.058660838752985, 0.012794261798262596, -0.032543160021305084, -0.017292097210884094, 0.01301159430295229, -0.019011856988072395, -0.021903323009610176, 0.023641981184482574, -0.04720836877822876, 0.019229188561439514, -0.030256444588303566, 0.027799643576145172, 0.02566411718726158, 0.0738930031657219, 0.011395774781703949, 0.05779150873422623, 0.02925482578575611, -0.014126603491604328, -0.02451131120324135, -0.011660353280603886, -0.04085848480463028, -0.07279688864946365, -0.03637954592704773, -0.04815329238772392, -0.03991356119513512, 0.0338093563914299, 0.013361215591430664, -0.03331799432635307, -0.009468131698668003, -0.015345554798841476, -0.003876547794789076, 0.026798024773597717, -0.033166807144880295, 0.007776718586683273, -0.02732718177139759, -0.024624701589345932, -0.033639270812273026, 0.029179232195019722, 0.024681396782398224, -0.09010788798332214, -0.022243494167923927, 0.023793168365955353, 0.0207127183675766, 0.01163200568407774, 0.0011209152871742845, 0.03154154121875763, -0.016243232414126396, -0.030880093574523926, -0.01394706778228283, 0.0372677743434906, -0.01642276719212532, 0.056090645492076874, 0.008348396979272366, -0.03139035031199455, 0.0014386457623913884, -0.0455453023314476, 0.030615514144301414, 0.05548589676618576, -0.011603658087551594, -0.009019292891025543, 0.00203630980104208, -0.00517817959189415, -0.017707861959934235, 0.008929525502026081, -0.010148475877940655, -0.035018857568502426, 0.026401156559586525, 0.022451378405094147, -0.03637954592704773, -0.024605803191661835, -0.008329498581588268, 0.02048593759536743, -0.04327748715877533, 0.024870380759239197, 0.05847185477614403, 0.016479462385177612, 0.025928694754838943, -0.05575047433376312, -0.0025654667988419533, 0.030124153941869736, 0.03547241911292076, -0.08534546941518784, 0.0023658517748117447, 0.035226739943027496, 0.07763490080833435, -0.04803990200161934, -0.02987847477197647, 0.0248514823615551, 0.02589089795947075, 0.03911982476711273, -0.0056978873908519745, 0.028253206983208656, -0.005787655245512724, -0.02815871499478817, 0.00866022240370512, 0.02581530436873436, -0.0400269515812397, -0.07952474802732468, 0.00633098604157567, -0.03791032359004021, -0.014211646281182766, -0.01669679395854473, 0.0015177830355241895, -0.019786693155765533, 0.034414105117321014, -0.03594488278031349, -0.03139035031199455, -0.026798024773597717, 0.0683368518948555, 0.006260117050260305, -0.026949211955070496, 0.037229977548122406, 0.03396054357290268, 0.05185738950967789, -0.024265630170702934, 0.008646048605442047, 0.05571267753839493, -0.001668970799073577, -0.029311520978808403, 0.06716515123844147, 0.02547513134777546, -0.03679531440138817, -0.03581259399652481, -0.05223536118865013, 0.04781311750411987, -0.018737828359007835, 0.013332867994904518, 0.004313574638217688, -0.02961389534175396, -0.024416817352175713, -0.028120918199419975, 0.013436809182167053, 0.05147942155599594, 0.017433835193514824, -0.02685471996665001, -0.03042653016746044, 0.01809528097510338, -0.010942211374640465, 0.10998906940221786, -0.030766703188419342, -0.018539395183324814, 0.003593070898205042, -0.007077475544065237, -0.046074461191892624, -0.025928694754838943, 0.052008576691150665, 0.01974889636039734, -0.003165493020787835, -0.013124984689056873, 0.04187900200486183, 0.024870380759239197, -0.0013595083728432655, -0.008277527987957, 0.03125806152820587, 0.019918983802199364, -0.02394435554742813, -0.002163874451071024, 0.008102716878056526, -0.04233256354928017, -0.03560471162199974, -0.007375126238912344, 0.02401995100080967, -0.00952010229229927, -0.028479987755417824, 0.0017185792094096541, -0.04320189356803894, 0.006104204338043928, 0.003784417873248458, 0.014088806696236134, -0.05238654837012291, -0.02194111980497837, -0.008012949489057064, -0.04437359794974327, -0.06606903672218323, -0.06497292965650558, -0.008405093103647232, 0.02539953775703907, -0.07839083671569824, 0.016545606777071953, 0.013436809182167053, 0.04460037872195244, 0.037305571138858795, 0.04860685393214226, -0.04066949710249901, -0.0025843651965260506, -0.03908202797174454, 0.00031271055922843516, -0.050345513969659805, 0.006123103201389313, 0.016025898978114128, 0.029859576374292374, -0.07771049439907074, -0.004769500344991684, 0.022243494167923927, 0.0036828385200351477, 0.0030898991972208023, -0.01808583177626133, -0.05650641396641731, 0.07695455104112625, 0.024662498384714127, -0.04297511279582977, -0.005820727441459894, -0.0016736953984946012, 0.009411436505615711, -0.018737828359007835, -0.003645041724666953, -0.04735955595970154, -0.03568030521273613, -0.003609606996178627, 0.06618242710828781, -0.03016195259988308, -0.023509692400693893, -0.008102716878056526, -0.0016748765483498573, 0.03161713480949402, -0.044562581926584244, -0.02367977797985077, -0.008825583383440971, -0.13538861274719238, 0.002356402575969696, -0.03139035031199455, 0.0002573439560364932, -0.03328019753098488, 0.014079357497394085, -0.040745094418525696, 0.011140645481646061, -0.013512402772903442, 0.05064788833260536, 0.03188171237707138, 0.014967584982514381, -0.07192756235599518, 0.00786648690700531, 0.048417869955301285, -0.027648456394672394, -0.031711626797914505, 0.010961110703647137, -0.048342276364564896, -0.04497835040092468, 0.03560471162199974, 0.06845024228096008, 0.016025898978114128, -0.007998775690793991, 0.06296969205141068, -0.011121747083961964, 0.02154425159096718, 0.003772606374695897, 0.009723260998725891, 0.06327206641435623, 0.031711626797914505, 0.09018348157405853, -0.007261735387146473, -0.04195459559559822, -0.03749455511569977, 0.05881202593445778, 0.03664412721991539, 0.006316812243312597, -0.004880528897047043, -0.036474037915468216, -0.016866881400346756, -0.03791032359004021, -0.013852575793862343, -0.037022095173597336, -0.016318826004862785, -0.03465978801250458, 0.00533409183844924, 0.053596049547195435, 0.0025158582720905542, -0.04860685393214226, -0.036889806389808655, -0.007101098541170359, -0.030974585562944412, 0.03248646482825279, 0.026344461366534233, -0.017622819170355797, -0.03322350233793259, 0.002685944549739361, -0.004918325692415237, -0.0766143798828125, 0.0655776783823967, -0.02430342696607113, -0.0207127183675766, -0.007738921791315079, -0.015137671492993832, 0.032202985137701035, 0.011906033381819725, -0.013710836879909039, 0.006061682943254709, -0.09071263670921326, -0.07514029741287231, 0.01857719197869301, -0.006146726198494434, -0.008088543079793453, 0.013786431401968002, -0.07691675424575806, 0.06047509238123894, -0.0331479087471962, 0.04104746878147125, 0.0024083731696009636, -0.008986220695078373, 0.0079420804977417, -0.06312087923288345, 0.03294002637267113, 0.05941677838563919, 0.016243232414126396, -0.05971915274858475, -0.012028873898088932, 0.052424345165491104, 0.09207332879304886, -0.009855549782514572, -0.039648979902267456, -0.0014173849485814571, -0.01466520968824625, -0.017783457413315773, 0.03908202797174454, -0.001367776421830058, 0.003264710074290633, -0.06947076320648193, -0.003099348396062851, 0.005097861401736736, 0.05061009153723717, -0.042823925614356995, 0.07540488243103027, 0.033034518361091614, -0.01331396959722042, -0.05004313960671425, 0.016933025792241096, -0.06894160062074661, 0.05129043757915497, 0.01815197616815567, 0.04184120520949364, 0.030955687165260315, 0.007257010787725449, -0.0010606764117255807, -0.01703696697950363, -0.0018520497251302004, -0.013852575793862343, 0.05087466910481453, -0.010063433088362217, 0.017150357365608215, 0.06270510703325272, -0.017292097210884094, -0.03369596600532532, -0.0015272322343662381, 0.03791032359004021, 0.03201400116086006, 0.05219756439328194, -0.04010254517197609, 0.005579771939665079, -0.024832583963871002, -0.058698635548353195, -0.10666294395923615, -0.008967322297394276, -0.04187900200486183, 0.05756472796201706, 0.0026575967203825712, 0.030898991972208023, 0.03154154121875763, 0.05756472796201706, 0.014580166898667812 ]
715,243
pytorch_optimizer.optimizer.adashift
__str__
null
def __str__(self) -> str: return 'AdaShift'
(self) -> str
[ -0.0022754438687115908, 0.015709681436419487, 0.018916085362434387, -0.002544764894992113, -0.007863323204219341, -0.06931939721107483, -0.018780363723635674, 0.013012230396270752, 0.04539860412478447, -0.045228954404592514, -0.05513657256960869, 0.006709696725010872, 0.01288499217480421, 0.022461790591478348, 0.013801108114421368, 0.004852018319070339, -0.0033612102270126343, -0.03060503862798214, 0.018746433779597282, 0.01796603947877884, 0.019645584747195244, 0.011366616003215313, 0.03374358266592026, -0.0014886874705553055, -0.007863323204219341, 0.080007404088974, -0.016634279862046242, -0.02940051630139351, -0.03404895216226578, -0.012528725899755955, -0.00006762845441699028, -0.06996406614780426, 0.008465584367513657, -0.012486312538385391, -0.0205617006868124, -0.020799212157726288, -0.034167710691690445, -0.02724594809114933, -0.0407501682639122, -0.009958513081073761, 0.05191320180892944, 0.014691775664687157, 0.002026268979534507, -0.05177748203277588, -0.007498573511838913, -0.03045235201716423, 0.008541927672922611, 0.000735861191060394, -0.0007040515774860978, -0.027483459562063217, -0.0061583309434354305, -0.024175265803933144, -0.009729484096169472, 0.005751168355345726, -0.003931661602109671, 0.04312528297305107, 0.03248816356062889, -0.02822992391884327, -0.0158454030752182, 0.010340227745473385, -0.058020636439323425, -0.0009352010674774647, 0.06847114115953445, -0.01895001530647278, 0.009364734403789043, 0.02237696573138237, -0.039528679102659225, 0.01577754132449627, 0.04044479504227638, 0.054356176406145096, 0.03844291344285011, -0.05014883354306221, 0.01556547824293375, -0.005619688890874386, 0.000256332044955343, -0.019679514691233635, -0.06297444552183151, -0.005912336986511946, 0.02928176149725914, -0.06772467494010925, 0.010314780287444592, 0.0000962239209911786, -0.03033359721302986, 0.04010549560189247, 0.020697420462965965, -0.06864079087972641, -0.01334305014461279, -0.030130015686154366, -0.03494810312986374, -0.022054629400372505, -0.007447678595781326, -0.038239333778619766, -0.04332886263728142, 0.06477274745702744, -0.035185616463422775, 0.011553232558071613, 0.015158316120505333, -0.07369638979434967, 0.011366616003215313, 0.012079150415956974, 0.03011305071413517, -0.004128880798816681, -0.0019944594241678715, 0.032097965478897095, -0.045568253844976425, -0.06562100350856781, -0.04108946770429611, 0.022733232006430626, -0.03491417318582535, 0.021104583516716957, 0.00222666934132576, 0.02286895364522934, 0.021681396290659904, -0.030384492129087448, 0.005852959118783474, -0.012333626858890057, 0.024310987442731857, -0.0006870864890515804, 0.01806783117353916, -0.00019364070612937212, 0.04801122844219208, -0.019900061190128326, -0.016252564266324043, 0.007727602496743202, 0.05842779949307442, 0.08299326151609421, -0.05842779949307442, -0.010934006422758102, 0.023903824388980865, -0.031334538012742996, 0.05340613052248955, -0.009424112737178802, -0.07647866755723953, 0.0019827960059046745, 0.07742871344089508, 0.013071608729660511, 0.09832971543073654, 0.016422215849161148, 0.012045220471918583, 0.10253705829381943, 0.0007289691129699349, 0.008066904731094837, 0.07410354912281036, 0.02049383893609047, -0.0173552967607975, 0.009135705418884754, -0.012426935136318207, 0.05388115346431732, 0.0031003719195723534, 0.012927405536174774, 0.03223368898034096, 0.008881228975951672, -0.020816177129745483, 0.011383580975234509, 0.003068562364205718, 0.019798269495368004, -0.008194142952561378, -0.012426935136318207, 0.025481577962636948, -0.044889651238918304, -0.014276131056249142, -0.03350606933236122, -0.025345858186483383, -0.003026149468496442, 0.003607204183936119, -0.0020167261827737093, 0.015573960728943348, 0.03874828666448593, 0.038816146552562714, -0.017329849302768707, -0.03766252100467682, -0.06161724030971527, -0.06538349390029907, 0.029366586357355118, -0.019272351637482643, 0.03091040998697281, -0.021002791821956635, 0.0766143873333931, 0.0501827634871006, -0.0501827634871006, -0.013724764809012413, 0.0154721699655056, -0.06731751561164856, 0.03834112361073494, 0.044618211686611176, -0.06022610142827034, 0.004962291568517685, 0.05008097365498543, 0.03455790504813194, -0.025719089433550835, 0.007909977808594704, 0.024310987442731857, -0.029417481273412704, -0.014182822778820992, -0.016710622236132622, -0.06090470403432846, -0.022580547258257866, -0.03347213938832283, 0.0034184674732387066, 0.019458968192338943, -0.01152778510004282, 0.05618840828537941, -0.012740788981318474, 0.059717148542404175, 0.08991502225399017, -0.004894431214779615, 0.06467095762491226, -0.032810501754283905, -0.020256327465176582, -0.053982943296432495, 0.047943368554115295, 0.024463672190904617, 0.022699302062392235, 0.0007305595790967345, 0.034354325383901596, -0.06066719442605972, 0.013741729781031609, -0.002610504627227783, 0.0033612102270126343, 0.03091040998697281, 0.008384999819099903, 0.019645584747195244, -0.03335338458418846, -0.029196934774518013, 0.003545705694705248, 0.002680485602468252, 0.020239362493157387, -0.023717207834124565, -0.04170021414756775, -0.003984677605330944, 0.0016678812680765986, -0.08231466263532639, -0.039223309606313705, 0.014920804649591446, 0.04974167048931122, 0.07301778346300125, -0.06826756149530411, -0.03238637372851372, -0.0588688924908638, -0.044278908520936966, -0.005585758946835995, 0.020358119159936905, 0.022393930703401566, 0.029366586357355118, 0.03701784461736679, -0.02770400606095791, -0.020290257409214973, 0.022444825619459152, -0.02838261052966118, -0.02403954602777958, 0.07301778346300125, -0.05177748203277588, -0.005233732983469963, -0.004128880798816681, -0.029502306133508682, -0.04064837843179703, -0.03187742084264755, -0.003384537296369672, 0.014632397331297398, -0.004188258666545153, -0.05079350620508194, 0.026499483734369278, -0.04234488680958748, 0.010577739216387272, 0.010408088564872742, 0.01738922670483589, -0.029417481273412704, 0.04027514532208443, 0.028043309226632118, -0.003995280712842941, 0.04417711868882179, 0.0068242112174630165, -0.05523836240172386, 0.03657675161957741, -0.028246888890862465, -0.015005629509687424, 0.03830719366669655, 0.04519502446055412, -0.08326470851898193, -0.07030337303876877, 0.0023178565315902233, 0.007214408367872238, -0.04746834561228752, 0.039901912212371826, -0.03895186632871628, -0.06918366998434067, 0.04634865000844002, -0.007303474936634302, 0.03504989296197891, 0.026143217459321022, 0.07654652744531631, 0.05272752791643143, 0.025294963270425797, -0.01369931735098362, 0.05374543368816376, 0.05486512929201126, 0.05964928865432739, 0.021104583516716957, -0.011638057418167591, 0.012342109344899654, -0.012927405536174774, -0.04709511622786522, -0.003450277028605342, -0.02407347597181797, -0.060090381652116776, 0.019340213388204575, 0.004830812104046345, 0.029722852632403374, 0.03800182044506073, 0.021070653572678566, -0.0309443399310112, 0.018508922308683395, 0.0021662311628460884, 0.06501025706529617, -0.016710622236132622, 0.03593207895755768, 0.011230895295739174, 0.05327041074633598, 0.028365645557641983, 0.08801493048667908, -0.029553202912211418, 0.03369268774986267, -0.05679915100336075, 0.00462298933416605, 0.03362482413649559, -0.007710637524724007, -0.0025384030304849148, 0.008571616373956203, 0.054661549627780914, 0.015896297991275787, -0.0882863774895668, -0.04275204986333847, 0.03041842207312584, -0.02554943971335888, -0.041259121149778366, 0.0056833080016076565, 0.009983960539102554, -0.027330774813890457, -0.03633924201130867, -0.011256342753767967, 0.08021099120378494, 0.03172473609447479, -0.0169820636510849, 0.03199617564678192, 0.04953808709979057, 0.005551828537136316, -0.04872376471757889, 0.0003581226337701082, -0.024209195747971535, 0.02536282315850258, 0.020307224243879318, -0.013538149185478687, 0.026126252487301826, 0.0216983612626791, 0.06691034883260727, 0.0051192184910178185, 0.009941548109054565, 0.025311928242444992, -0.006128641776740551, 0.002167291473597288, -0.005547587294131517, -0.07098197191953659, 0.00553910480812192, 0.03211493045091629, -0.04902913421392441, -0.00029582891147583723, -0.03023180551826954, -0.03242030367255211, 0.06745323538780212, -0.03389626741409302, 0.0020283896010369062, 0.006192260887473822, -0.0033378831576555967, -0.020290257409214973, -0.04621293023228645, 0.07525718212127686, 0.04719690605998039, 0.002693209331482649, -0.039494749158620834, -0.027754900977015495, 0.026855751872062683, 0.004525440279394388, -0.0267878919839859, 0.08808279037475586, 0.04146270081400871, 0.008787921629846096, 0.01883126050233841, -0.008503755554556847, 0.032929256558418274, -0.014793566428124905, 0.0007888770778663456, -0.02068045549094677, 0.006268604192882776, -0.02743256464600563, -0.03759465739130974, -0.062126193195581436, -0.018407132476568222, -0.007248338311910629, -0.036101728677749634, 0.023835964500904083, 0.037187498062849045, -0.03678033500909805, 0.02580391615629196, 0.005636654328554869, -0.021834082901477814, 0.01818658597767353, 0.0173552967607975, -0.011782261542975903, -0.05757954716682434, -0.0013360015582293272, -0.0006807245663367212, -0.002372993156313896, -0.046959392726421356, -0.05286324769258499, 0.0581224299967289, -0.023259149864315987, -0.04974167048931122, -0.016320426017045975, -0.032097965478897095, -0.03214886412024498, -0.03109702654182911, 0.0411234013736248, 0.03353999927639961, 0.0350838229060173, 0.03603386878967285, 0.009653141722083092, 0.022393930703401566, 0.05852958932518959, 0.03257298842072487, -0.007557951379567385, -0.03840898349881172, -0.011705918237566948, -0.007753050420433283, -0.023818999528884888, 0.026092322543263435, -0.0184919573366642, 0.009780379943549633, -0.03728928789496422, -0.028518330305814743, 0.013181881979107857, 0.0282977856695652, -0.060395751148462296, 0.009229013696312904, 0.030469316989183426, 0.0052676633931696415, -0.050691716372966766, -0.052286434918642044, -0.0205617006868124, 0.03901972621679306, 0.006200743839144707, 0.009381699375808239, 0.056018754839897156, -0.02475207857787609, -0.03257298842072487, 0.06056540459394455, -0.027296844869852066, -0.017932109534740448, -0.05649377778172493, -0.01777942292392254, -0.015294036827981472, -0.04309134930372238, 0.00992458313703537, -0.04475393146276474, 0.023581488057971, 0.03082558512687683, 0.01766066811978817, -0.030622003600001335, 0.03790003061294556, -0.026278939098119736, 0.007727602496743202, 0.012520243413746357, -0.0292478296905756, -0.00004095480835530907, -0.01731288433074951, 0.016167739406228065, 0.021104583516716957, -0.03864649683237076, -0.02600749582052231, -0.016574902459979057, 0.002258478896692395, -0.04841839149594307, -0.059751078486442566, -0.005615447647869587, 0.05747775360941887, -0.009576798416674137, 0.0281111691147089, -0.008406206034123898, -0.013198846951127052, -0.03338731452822685, -0.003248816356062889, 0.0282977856695652, 0.03976619243621826, -0.06748716533184052, -0.000549245101865381, -0.004881707020103931, 0.03408288210630417, -0.019832201302051544, -0.02626197226345539, -0.09249372035264969, 0.03238637372851372, -0.0041734143160283566, -0.007507056463509798, -0.04478786140680313, -0.0426502600312233, 0.04631472006440163, -0.03347213938832283, -0.023785067722201347, -0.033421244472265244, 0.01615077443420887, -0.02478601038455963, 0.020459908992052078, -0.04597541689872742, 0.054695479571819305, 0.028993353247642517, 0.0201884675770998, 0.0039062139112502337, -0.01615077443420887, 0.003091889200732112, -0.0020867071580141783, 0.04404139518737793, -0.008728543296456337, -0.05842779949307442, -0.02305557020008564, -0.055340152233839035, -0.01969647966325283, 0.01626952923834324, -0.003921058494597673, 0.0025362821761518717, -0.051947131752967834, 0.09391878545284271, -0.014691775664687157, 0.05883496254682541, 0.010102716274559498, 0.10009407997131348, 0.007019309792667627, 0.09663320332765579, -0.08882925659418106, 0.03759465739130974, 0.014394886791706085, -0.004686608444899321, 0.008037216030061245, -0.047298695892095566, 0.007969355210661888, -0.06976048648357391, 0.01107820961624384, 0.007753050420433283, -0.013741729781031609, 0.01626952923834324, 0.006417048629373312, 0.002864981070160866, -0.048316601663827896, -0.021189408376812935, -0.02015453763306141, -0.012503277510404587, 0.023276114836335182, 0.06592637300491333, 0.011451441794633865, 0.015260106883943081, 0.0460432767868042, 0.04366816580295563, -0.05035241320729256, -0.024972625076770782, 0.0584956593811512, 0.019306283444166183, -0.01035719271749258, 0.024277055636048317, 0.003950747195631266, 0.026397693902254105, 0.020052747800946236, -0.010552291758358479, -0.01996792107820511, -0.07308564335107803, 0.02173229120671749, 0.005276145879179239, -0.11855211108922958, 0.047536205500364304, 0.03287836164236069, 0.03091040998697281, -0.02527799643576145, 0.013767178170382977, -0.021647466346621513, 0.02992643415927887, 0.0001640843111090362, -0.03242030367255211, -0.012749271467328072, -0.0011271187104284763, 0.006735144183039665, -0.03834112361073494, 0.007553710136562586, -0.05710452422499657, -0.05150603875517845, 0.004966532811522484, -0.03898579627275467, 0.013538149185478687, 0.00973796658217907, -0.0565955713391304, 0.021155478432774544, 0.00796087272465229, 0.015056525357067585, -0.005573034752160311, 0.03091040998697281, 0.03101220168173313, 0.019255386665463448, 0.047943368554115295, 0.10844091325998306, 0.09629390388727188, 0.018390167504549026, -0.0011239377781748772, -0.06582458317279816, -0.014861426316201687, -0.021596571430563927, -0.000772972300183028, 0.0011886171996593475, -0.01928931660950184, 0.015590925700962543, -0.02135905995965004, 0.034286465495824814, -0.047637999057769775, -0.03365875780582428, 0.008550410158932209, 0.010204507037997246, 0.06436558812856674, -0.059615358710289, 0.034473080188035965, -0.023462731391191483, 0.03323462978005409, -0.006803004536777735, 0.028026344254612923, 0.06382270157337189, -0.056391987949609756, 0.0433967225253582, 0.020290257409214973, -0.012376039288938046, -0.07308564335107803, -0.044278908520936966, 0.021155478432774544, 0.013784143142402172, 0.024667253717780113, 0.0028777047991752625, 0.032691746950149536, -0.0005381117225624621, 0.015760576352477074, -0.01996792107820511, 0.03840898349881172, -0.03694998472929001, 0.010832215659320354, -0.05058992654085159, -0.06887830048799515, -0.09290087968111038, -0.037866100668907166, -0.03874828666448593, -0.020951896905899048, -0.01811872608959675, 0.012749271467328072, 0.015531548298895359, -0.03779824078083038, 0.02694057673215866, 0.010603186674416065, -0.01957772485911846, -0.04702725261449814, -0.017423156648874283, -0.007524021435528994, -0.008541927672922611, -0.03221672400832176, 0.06918366998434067, 0.016405250877141953, 0.027347739785909653, -0.016515523195266724, 0.009220531210303307, -0.006879347376525402, -0.00867764838039875, -0.03091040998697281, 0.004835053347051144, -0.0392572395503521, 0.0019658308010548353, 0.003253057599067688, 0.04105553776025772, 0.006552769336849451, 0.10328352451324463, -0.07369638979434967, -0.018254445865750313, -0.0232082549482584, 0.011485371738672256, -0.08998288214206696, 0.017762457951903343, 0.036203522235155106, -0.03993584215641022, -0.01347028836607933, 0.020697420462965965, -0.06399235129356384, -0.046280790120363235, -0.014437299221754074, -0.029604097828269005, 0.006480667740106583, 0.06707999855279922, -0.0014208270004019141, -0.008588581345975399, -0.021308165043592453, 0.016286494210362434, -0.0028331715147942305, 0.04434676840901375, 0.0535757839679718, 0.016693657264113426, 0.007901494391262531, 0.008838816545903683, -0.020951896905899048, -0.004285808186978102, -0.01660034991800785, 0.016244081780314445, -0.019526828080415726, 0.06935332715511322, 0.07362852990627289, -0.03211493045091629, 0.027839727699756622, 0.04434676840901375, -0.09215441346168518, -0.039223309606313705, 0.030435387045145035, -0.004826570861041546, 0.06609602272510529, -0.03891793638467789, 0.00983127485960722, 0.0007045817910693586, -0.008194142952561378, 0.027330774813890457, 0.0264146588742733, -0.07240704447031021, -0.010043338872492313, -0.035151686519384384, -0.006077746860682964, 0.001468541333451867, 0.014140410348773003, -0.005937784444540739, 0.06551921367645264, 0.03857863321900368, 0.04533074423670769, 0.01660034991800785, 0.018882155418395996, 0.07267848402261734, 0.046620093286037445, 0.025939635932445526, 0.018356237560510635, 0.02921389974653721, -0.013919863849878311, -0.03199617564678192, 0.036203522235155106, 0.012045220471918583, 0.05411866679787636, -0.04780764877796173, 0.01954379305243492, 0.053711503744125366, 0.0324542336165905, 0.01209611538797617, 0.009084810502827168, 0.012910440564155579, -0.056663431227207184, -0.004300652537494898, 0.015836920589208603, 0.030197875574231148, -0.008618270047008991, 0.0017261988250538707, -0.059038545936346054, 0.002905273111537099, 0.005314317066222429, 0.005144666414707899, 0.026804856956005096, -0.006879347376525402, -0.0015915383119136095 ]
715,264
pytorch_optimizer.optimizer.adashift
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] exp_weight_sum: int = sum(beta1 ** i for i in range(group['keep_num'])) # fmt: skip first_grad_weight: float = beta1 ** (group['keep_num'] - 1) / exp_weight_sum last_grad_weight: float = 1.0 / exp_weight_sum bias_correction: float = 1.0 - beta2 ** (group['step'] - group['keep_num']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['grad_queue'] = deque([grad.clone()], maxlen=group['keep_num']) state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) grad_queue = state['grad_queue'] grad_queue.append(grad.clone()) if len(grad_queue) != group['keep_num']: continue offset_grad = grad_queue[0] exp_avg = state['exp_avg'] exp_avg.sub_(offset_grad, alpha=first_grad_weight).mul_(beta1).add_(grad, alpha=last_grad_weight) reduced_grad_sq = self.reduce_func(offset_grad.mul_(offset_grad)) exp_avg_sq = state['exp_avg_sq'] exp_avg_sq.mul_(beta2).add_(reduced_grad_sq, alpha=1.0 - beta2) de_nom = exp_avg_sq.div(bias_correction).sqrt_().add_(group['eps']) p.addcdiv_(exp_avg, de_nom, value=-group['lr']) return loss
(self)
[ -0.008030354045331478, -0.027069680392742157, -0.04106203466653824, 0.06740731745958328, -0.008378256112337112, -0.001796702272258699, -0.02962414175271988, -0.04441715031862259, -0.012162292376160622, -0.006810312159359455, -0.026116522029042244, 0.0008495018118992448, 0.007496585603803396, 0.0721731036901474, -0.028728174045681953, 0.037306591868400574, 0.009593532420694828, 0.0478103905916214, 0.03225485607981682, -0.0064624096266925335, -0.03606748953461647, -0.06287028640508652, -0.01364921871572733, 0.05757072567939758, -0.06630165129899979, -0.015422091819345951, 0.06588226556777954, -0.010389419272542, -0.004851572681218386, 0.001010347157716751, -0.024057701230049133, -0.06313716620206833, 0.012019319459795952, -0.0016990036237984896, 0.03629624471068382, -0.05276681110262871, 0.0005033864290453494, 0.01639431342482567, -0.06824609637260437, -0.05432999134063721, -0.02438177540898323, -0.02981477417051792, -0.00334081775508821, -0.003950838930904865, 0.012524493038654327, 0.013563434593379498, -0.019596923142671585, 0.04495091736316681, -0.003591021755710244, -0.005099393893033266, 0.009035935625433922, -0.030501047149300575, 0.05063173919916153, -0.004303507041186094, 0.02072164975106716, 0.07892145961523056, 0.07167746126651764, -0.06836047023534775, 0.031168257817626, -0.033074572682380676, 0.055206894874572754, -0.06698792427778244, 0.03288394212722778, 0.004903996363282204, 0.003617233596742153, -0.018424538895487785, -0.06919924914836884, -0.03635343536734581, 0.004212957341223955, 0.04304460436105728, 0.017442787066102028, 0.003822162514552474, 0.010398950427770615, -0.001827679923735559, -0.04548468813300133, -0.025506500154733658, -0.038564760237932205, -0.05318620055913925, 0.021731996908783913, -0.045332182198762894, 0.008954917080700397, -0.002776071894913912, -0.024743974208831787, 0.01944441720843315, 0.0009418390109203756, -0.041405171155929565, -0.014802539721131325, -0.03639156371355057, 0.004062834661453962, -0.008068480528891087, 0.011752435006201267, 0.012791376560926437, 0.016899487003684044, 0.032083287835121155, 0.05272868648171425, 0.03294113278388977, -0.03458056226372719, -0.027393752709031105, -0.04525592923164368, -0.035438403487205505, 0.02962414175271988, 0.02670747973024845, 0.006581554189324379, 0.0285947322845459, 0.03448524698615074, -0.05417748540639877, 0.004389291163533926, -0.03345583751797676, 0.043463993817567825, -0.05162302404642105, -0.006938988342881203, -0.016327591612935066, -0.042434580624103546, -0.004303507041186094, -0.03244549036026001, -0.009483919478952885, -0.011514145880937576, 0.011971660889685154, -0.03238829970359802, 0.02752719447016716, 0.04639972001314163, -0.0011842985404655337, -0.06470035016536713, 0.020149754360318184, 0.014459403231739998, 0.031282637268304825, 0.06348030269145966, 0.021617617458105087, 0.03137795254588127, -0.06226026266813278, -0.009731740690767765, -0.0004411333065945655, -0.011399766430258751, -0.02621183730661869, 0.03404679521918297, -0.017890769988298416, -0.01284856628626585, 0.009512513875961304, 0.008197156712412834, 0.002182731172069907, -0.001251019537448883, 0.007830190472304821, -0.015631787478923798, 0.015593660064041615, 0.03193078562617302, 0.02516336366534233, 0.044264644384384155, 0.03900321573019028, 0.005795198958367109, -0.00922656711190939, 0.019120344892144203, 0.025811512023210526, 0.01220995094627142, 0.011075693182647228, 0.005175646394491196, 0.03267424553632736, -0.017042459920048714, 0.028232531622052193, -0.019635049626231194, -0.03557184711098671, -0.01625133864581585, -0.009603064507246017, -0.021083848550915718, 0.0029238113202154636, 0.01946348138153553, 0.023237984627485275, -0.005795198958367109, 0.04617096111178398, -0.06755982339382172, 0.016842296347022057, -0.007539477664977312, -0.027717826887965202, 0.05223304405808449, 0.0399944968521595, -0.03305551037192345, 0.1421348750591278, 0.0048658703453838825, 0.02438177540898323, -0.033398646861314774, -0.004298741463571787, 0.0074918195605278015, -0.012562618590891361, -0.013544371351599693, -0.03589592128992081, 0.011714308522641659, 0.015851013362407684, 0.015450687147676945, -0.0037673560436815023, 0.0431208573281765, 0.0009984327480196953, -0.010341761633753777, -0.01388750784099102, 0.048687297850847244, -0.014630971476435661, -0.004937357269227505, 0.03158764913678169, 0.025029921904206276, 0.024095827713608742, 0.09592579305171967, 0.013544371351599693, -0.01816718652844429, -0.030996689572930336, 0.03349396213889122, -0.006224120035767555, -0.04159580171108246, -0.007525180466473103, -0.020168818533420563, 0.05513064190745354, -0.009255161508917809, 0.013601561076939106, -0.06309904158115387, 0.00483965827152133, 0.030996689572930336, 0.07968398928642273, 0.05661756917834282, -0.06588226556777954, 0.002456763992086053, 0.026669353246688843, 0.07339314371347427, 0.0019182299729436636, -0.04342586547136307, -0.07697702199220657, 0.03038666769862175, -0.009121719747781754, 0.05962954834103584, -0.03236923739314079, 0.04182456061244011, -0.046132832765579224, -0.01090412400662899, -0.012753250077366829, 0.01466909795999527, -0.04224395006895065, 0.018386412411928177, -0.00935047771781683, 0.03040573187172413, 0.03238829970359802, -0.06355655938386917, -0.032083287835121155, 0.0075966669246554375, -0.008349661715328693, -0.032960195094347, -0.040871404111385345, -0.03326520323753357, 0.04232020303606987, -0.005385341122746468, 0.038793519139289856, 0.06786482781171799, 0.023962385952472687, -0.008235283195972443, 0.05040298029780388, -0.028099089860916138, -0.010799277573823929, -0.02857566811144352, 0.02855660580098629, -0.048725422471761703, -0.011209134943783283, 0.06801733374595642, 0.02989102713763714, 0.0435783714056015, -0.05795199051499367, 0.02697436325252056, -0.05848575755953789, -0.04594220221042633, 0.04342586547136307, -0.033646468073129654, 0.027126869186758995, 0.06237464025616646, -0.03968948870897293, 0.05051736161112785, 0.05703695863485336, 0.07266874611377716, 0.0809040293097496, -0.044798415154218674, -0.03557184711098671, -0.008502166718244553, 0.020397575572133064, 0.0032240559812635183, 0.022151386365294456, 0.00551878334954381, -0.03684907779097557, 0.06931363046169281, -0.05246180295944214, -0.08235282450914383, -0.0019742280710488558, -0.04567531868815422, 0.03299831971526146, -0.00796363316476345, -0.016842296347022057, 0.05089862272143364, 0.0010794511763378978, 0.03860288858413696, 0.0014940747059881687, 0.08959683030843735, -0.001849125954322517, 0.0710674375295639, -0.002718882402405143, -0.017871707677841187, 0.012867629528045654, -0.03395147994160652, 0.029166625812649727, 0.07358377426862717, -0.016899487003684044, -0.016203681007027626, -0.008545058779418468, -0.006352796219289303, -0.016327591612935066, 0.014507060870528221, -0.004806297831237316, 0.012381519190967083, -0.025639943778514862, -0.008711861446499825, 0.00023918302031233907, 0.008478337898850441, 0.019901933148503304, -0.02178918570280075, -0.09112188220024109, -0.007258296012878418, -0.05638881027698517, 0.021674806252121925, 0.06172649562358856, -0.0213316697627306, 0.025373058393597603, 0.022189512848854065, 0.04254896193742752, -0.024858353659510612, -0.012667465955018997, 0.05635068565607071, 0.03038666769862175, -0.025639943778514862, -0.023809880018234253, -0.07861644774675369, -0.006157399155199528, 0.055397529155015945, 0.02886161580681801, -0.03446618467569351, -0.015078955329954624, 0.04876355081796646, -0.0058666858822107315, 0.014821602962911129, -0.05555003136396408, 0.058523885905742645, 0.010170193389058113, -0.03294113278388977, 0.02855660580098629, 0.005142285954207182, -0.03848851099610329, 0.030786994844675064, 0.01870095543563366, 0.041633930057287216, 0.03450430929660797, -0.0020218859426677227, -0.012896223925054073, -0.012924819253385067, 0.051508642733097076, 0.03357021510601044, 0.031549520790576935, -0.007982696406543255, -0.023485805839300156, 0.0280419010668993, -0.07369815558195114, 0.01973036490380764, 0.01312498189508915, -0.03667750954627991, 0.10217850655317307, 0.09737459570169449, -0.00485633872449398, -0.03499995172023773, -0.033074572682380676, 0.03063448891043663, -0.02209419570863247, 0.014964576810598373, -0.04334961250424385, 0.0021755825728178024, 0.030329478904604912, -0.052614305168390274, -0.026669353246688843, -0.039613235741853714, -0.021198228001594543, 0.06645415723323822, 0.03397054225206375, 0.02127448096871376, -0.04285397008061409, -0.02152230218052864, 0.032312046736478806, 0.029471637681126595, -0.017662012949585915, 0.015107549726963043, -0.06816983968019485, 0.03196891024708748, -0.060925841331481934, 0.06534849107265472, 0.014678629115223885, 0.002592589007690549, 0.009388603270053864, -0.06199337914586067, 0.027203122153878212, 0.049221064895391464, 0.017947960644960403, -0.03669657185673714, -0.01806233823299408, -0.04026138409972191, -0.009317116811871529, -0.003795950673520565, 0.016670728102326393, -0.009970029816031456, -0.07674825936555862, -0.008626077324151993, 0.04224395006895065, 0.025830574333667755, 0.05665569752454758, -0.009035935625433922, -0.005637927912175655, -0.048725422471761703, 0.009522045962512493, 0.021198228001594543, -0.030806057155132294, -0.013735002838075161, -0.015908202156424522, -0.00783972255885601, 0.009522045962512493, 0.046590350568294525, 0.012934350408613682, 0.0356290377676487, 0.01974942907691002, -0.042472708970308304, -0.05768510699272156, -0.03995637223124504, -0.029452573508024216, -0.04075702652335167, 0.010494266636669636, -0.0431208573281765, -0.0556262843310833, -0.022990165278315544, -0.015279118902981281, -0.03278862684965134, 0.0028975994791835546, -0.01688995584845543, 0.045827824622392654, 0.04548468813300133, 0.01429736614227295, -0.008811943233013153, 0.020073501393198967, -0.011533208191394806, -0.010008156299591064, -0.00045602640602737665, -0.04083327576518059, 0.053071822971105576, -0.026650290936231613, -0.10553362220525742, 0.01999724842607975, 0.007382206618785858, 0.011247261427342892, 0.04849666729569435, -0.0017526188166812062, 0.030729806050658226, -0.001701386529020965, -0.045599065721035004, -0.04228207841515541, -0.0008161413134075701, 0.025506500154733658, 0.01935863308608532, 0.030558237805962563, -0.026116522029042244, 0.013039197772741318, -0.017700139433145523, -0.02152230218052864, 0.07625261694192886, 0.041672054678201675, -0.010780214332044125, 0.0022291976492851973, -0.0039174784906208515, -0.0280419010668993, 0.009622127749025822, -0.025353996083140373, -0.019806617870926857, -0.014793007634580135, -0.036982521414756775, 0.0002770114806480706, 0.041938941925764084, -0.04887792840600014, -0.00830200407654047, -0.05680819973349571, 0.030977627262473106, 0.04056639224290848, -0.008402085863053799, 0.04628533869981766, 0.013792192563414574, 0.004761022981256247, 0.05158489570021629, 0.05840950459241867, -0.05055548623204231, -0.06515786051750183, 0.04434089735150337, 0.03995637223124504, -0.05131801217794418, -0.04460778087377548, 0.03191171959042549, 0.01619414985179901, 0.08479291200637817, -0.031206384301185608, 0.02619277499616146, 0.04342586547136307, -0.0498310849070549, -0.01167618203908205, 0.0018669976852834225, -0.0387553945183754, -0.046094708144664764, 0.019063154235482216, -0.044264644384384155, 0.009817524813115597, -0.003955604508519173, -0.010618177242577076, 0.00242816936224699, 0.01555553451180458, -0.01546021830290556, -0.05063173919916153, 0.047924771904945374, 0.07488007098436356, 0.06001080945134163, -0.04880167543888092, 0.03410398215055466, 0.006162164732813835, -0.011361639946699142, -0.0021195844747126102, -0.008649906143546104, 0.04144329950213432, -0.011618992313742638, -0.0050755650736391544, 0.0027975179255008698, 0.007782532833516598, -0.02178918570280075, 0.030329478904604912, 0.05318620055913925, 0.05352933704853058, -0.017804985865950584, -0.056160055100917816, -0.0010865997755900025, -0.0683986023068428, -0.129629448056221, -0.04929731786251068, 0.00739173823967576, -0.012333860620856285, 0.02670747973024845, -0.011609461158514023, -0.02909037470817566, 0.053109947592020035, 0.017967022955417633, 0.024305522441864014, -0.037001583725214005, -0.011943066492676735, -0.03261705860495567, 0.034618690609931946, -0.01894877664744854, 0.005285259801894426, 0.03667750954627991, 0.016718385741114616, -0.03612467646598816, 0.02565900608897209, 0.00006616255268454552, 0.002799900947138667, -0.03768785670399666, -0.052576180547475815, 0.017223559319972992, -0.027832206338644028, -0.0017109181499108672, 0.022437332198023796, 0.029700394719839096, -0.02573525905609131, -0.03696345537900925, 0.018100464716553688, -0.025353996083140373, -0.0031668664887547493, 0.00022414099657908082, 0.0009775824146345258, -0.021350733935832977, 0.0071915751323103905, 0.027908459305763245, -0.03235017508268356, -0.012886692769825459, -0.026574037969112396, 0.043502118438482285, -0.04308272898197174, -0.0006821035058237612, -0.009116954170167446, -0.0007112939492799342, 0.0674835667014122, -0.11026128381490707, 0.040337637066841125, -0.0003711358003783971, 0.035171519964933395, -0.014821602962911129, 0.015517408028244972, -0.07648137956857681, -0.07503257691860199, 0.008383022621273994, 0.009369540959596634, -0.057761359959840775, 0.01196212973445654, 0.00565699115395546, 0.01948254369199276, -0.05711321160197258, -0.0021898800041526556, 0.057761359959840775, 0.011075693182647228, -0.018491260707378387, 0.006147867534309626, -0.03063448891043663, 0.03370365872979164, 0.01666119694709778, -0.032826751470565796, -0.04293022304773331, -0.026421532034873962, -0.0019766108598560095, -0.014859729446470737, -0.07404129207134247, -0.015650849789381027, -0.027698764577507973, -0.003988964948803186, 0.05863826349377632, 0.004160533659160137, -0.034885574132204056, 0.004389291163533926, -0.026364343240857124, -0.010093940421938896, 0.03273143619298935, -0.029528826475143433, 0.05425373837351799, -0.0737362802028656, -0.02260890230536461, -0.015479281544685364, -0.059820178896188736, 0.024782100692391396, 0.039346352219581604, -0.0357624776661396, 0.06653040647506714, -0.000916222867090255, 0.055931296199560165, 0.024534279480576515, -0.036753762513399124, -0.06931363046169281, -0.025868700817227364, 0.04445527493953705, -0.015612723305821419, -0.022017942741513252, -0.014049544930458069, -0.01841500774025917, -0.02935725823044777, 0.044264644384384155, 0.054139360785484314, -0.003376561217010021, -0.0025997376069426537, 0.051241759210824966, -0.025087110698223114, 0.01701386645436287, 0.020855091512203217, 0.021160101518034935, 0.03816443681716919, 0.02806096337735653, 0.025906827300786972, -0.037268467247486115, -0.008802412077784538, -0.0254683755338192, -0.01713777519762516, 0.0019206128781661391, -0.027660638093948364, 0.007701514288783073, -0.011790561489760876, -0.016537286341190338, -0.00903116911649704, -0.03665844723582268, -0.08555544167757034, -0.02621183730661869, -0.06557725369930267, 0.003807865083217621, 0.00915507972240448, -0.027622511610388756, 0.03225485607981682, -0.030996689572930336, -0.04224395006895065, 0.016327591612935066, 0.04148142412304878, 0.041138287633657455, -0.021083848550915718, 0.046361591666936874, 0.0431208573281765, -0.005695117637515068, -0.008964448235929012, 0.030024468898773193, 0.011218666099011898, 0.0017788306577131152, -0.042205825448036194, -0.023828944191336632, 0.027641573920845985, 0.02668841741979122, 0.004880167543888092, -0.06984739750623703, -0.02337142825126648, -0.025754321366548538, 0.01651822403073311, -0.06126897782087326, 0.005032673012465239, -0.025830574333667755, -0.018567511811852455, 0.008263877592980862, 0.04022325575351715, 0.03479025885462761, 0.02573525905609131, -0.023676438257098198, 0.013592028990387917, 0.014526124112308025, 0.00405330304056406, 0.012705592438578606, -0.046056583523750305, 0.023790817707777023, 0.002973852213472128, -0.0015464983880519867, -0.013267955742776394, -0.043006476014852524, -0.06001080945134163, 0.0471622459590435, -0.01374453492462635, -0.015479281544685364, 0.025792447850108147, 0.002768923295661807, -0.0493735708296299, -0.008225751109421253, 0.043197110295295715, -0.02106478624045849, 0.005819027777761221, 0.005709414836019278, 0.023047354072332382, 0.012190887704491615, -0.00739173823967576, -0.0031501862686127424, -0.00043368677143007517, -0.010551456362009048, 0.050974875688552856, 0.02411489002406597, -0.027393752709031105, 0.005676054395735264, 0.01428783405572176, 0.025849638506770134, 0.012505429796874523, -0.0231236070394516, 0.010942250490188599, 0.041672054678201675, -0.013563434593379498, -0.013801723718643188, 0.027965648099780083, -0.08372537791728973, 0.06877986341714859, 0.05509251728653908, 0.038278814405202866, 0.03833600506186485, 0.07728202641010284, -0.05425373837351799, 0.013058261014521122, -0.07682451605796814, -0.06992365419864655, -0.07118181884288788, -0.018119528889656067, -0.011504613794386387, 0.06824609637260437, 0.04029950872063637, 0.00971267744898796, 0.025830574333667755, 0.04552281275391579, 0.02154136449098587 ]
715,279
pytorch_optimizer.optimizer.adasmooth
AdaSmooth
An Adaptive Learning Rate Method based on Effective Ratio. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param eps: float. term added to the denominator to improve numerical stability.
class AdaSmooth(Optimizer, BaseOptimizer): r"""An Adaptive Learning Rate Method based on Effective Ratio. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.5, 0.99), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, eps: float = 1e-6, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'eps': eps, } super().__init__(params, defaults) def __str__(self) -> str: return 'AdaSmooth' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['prev_param'] = torch.zeros_like(p) state['s'] = torch.zeros_like(p) state['n'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['prev_param'] = torch.zeros_like(p) state['s'] = torch.zeros_like(p) state['n'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) prev_param = state['prev_param'] p_diff = p - prev_param s, n = state['s'], state['n'] s.add_(p_diff) n.add_(p_diff.abs()) c = s.sum().abs_().div_(n.sum()) # e_t c.mul_(beta2 - beta1).add_(1.0 - beta2) c_p2 = c.pow(2) exp_avg_sq = state['exp_avg_sq'] exp_avg_sq.mul_(1.0 - c_p2).addcmul_(grad, grad, value=c_p2) step_size = torch.full_like(exp_avg_sq, fill_value=group['lr']) step_size.div_((exp_avg_sq + group['eps']).sqrt()).mul_(grad) p.add_(-step_size) state['prev_param'].copy_(p) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.5, 0.99), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, eps: float = 1e-06)
[ -0.03478443995118141, -0.04695199802517891, -0.01479487493634224, 0.0019205365097150207, -0.0001676411193329841, -0.015224435366690159, -0.06305553764104843, -0.05114771053195, -0.0389401912689209, 0.046632327139377594, -0.03824090585112572, 0.016782842576503754, 0.05150734260678291, 0.0780002549290657, -0.054903868585824966, 0.04787106066942215, 0.0211783479899168, 0.06061802804470062, -0.011997734196484089, 0.008136681281030178, -0.017332280054688454, -0.0690094456076622, -0.027012383565306664, 0.05314566567540169, -0.03422500938177109, -0.01469497662037611, 0.03979931026697159, -0.005002385936677456, -0.0445544496178627, -0.018511075526475906, -0.01646316982805729, -0.061976637691259384, 0.006972871255129576, 0.024355100467801094, 0.03658260032534599, -0.05142742395401001, 0.01290680468082428, -0.004080827813595533, -0.09470318257808685, -0.03278648108243942, 0.0322270542383194, -0.025673752650618553, 0.039060067385435104, -0.03892020881175995, -0.010828929021954536, -0.011917815543711185, -0.025933487340807915, 0.057541172951459885, -0.023076407611370087, -0.03500421345233917, 0.03760155662894249, -0.06269590556621552, 0.046872079372406006, 0.023515958338975906, 0.00032747769728302956, 0.0822359248995781, 0.056462276726961136, -0.013935753144323826, 0.042836207896471024, -0.07532299309968948, 0.03844070062041283, -0.11076676100492477, 0.04251653328537941, -0.0026123293209820986, -0.01133840810507536, -0.027551831677556038, -0.07508324086666107, -0.010049725882709026, 0.015634017065167427, 0.010938816703855991, 0.0323469303548336, -0.02381565235555172, 0.025913506746292114, -0.007382452487945557, -0.05630243942141533, -0.0023763205390423536, -0.031947337090969086, -0.047551386058330536, -0.014505170285701752, -0.04807085543870926, 0.01740220934152603, 0.005529346875846386, -0.026313098147511482, -0.03430492803454399, -0.002171529922634363, -0.05770101025700569, -0.02809128165245056, -0.03604315221309662, 0.009050747379660606, -0.042196858674287796, 0.01736225001513958, -0.002996936207637191, 0.026153262704610825, 0.04723171144723892, 0.05937929451465607, 0.03961949422955513, -0.012527192942798138, -0.06785063445568085, 0.0166829451918602, -0.028131240978837013, -0.014854812994599342, 0.010569194331765175, 0.010549214668571949, 0.05434444174170494, 0.020818715915083885, -0.06829018145799637, -0.03812102600932121, -0.007307528983801603, 0.05322558432817459, -0.06033831462264061, -0.03536384552717209, 0.02873062714934349, -0.047111835330724716, -0.012826886959373951, -0.030229095369577408, 0.005903963930904865, 0.009904873557388783, 0.030229095369577408, -0.014245436526834965, 0.04211694374680519, 0.04962926357984543, 0.03744172304868698, -0.05426452308893204, 0.011308439075946808, 0.04291612654924393, -0.02405540645122528, 0.02139812335371971, 0.005539336707442999, -0.00225519435480237, -0.04751142859458923, -0.026412997394800186, 0.030348973348736763, -0.005119765643030405, 0.0031917369924485683, 0.019310258328914642, -0.005619255360215902, -0.01795164681971073, 0.04155751317739487, -0.03384539857506752, 0.01290680468082428, 0.026832567527890205, 0.01637326180934906, 0.004143264144659042, -0.020299246534705162, 0.042196858674287796, -0.012657060287892818, 0.04871020093560219, 0.0011419574730098248, 0.0016108531272038817, 0.02315632626414299, 0.009889889508485794, 0.00398342777043581, -0.003911001607775688, 0.02385561168193817, 0.023915549740195274, -0.02915019914507866, -0.027991382405161858, 0.019869687035679817, -0.03915996477007866, -0.018181411549448967, -0.026393016800284386, -0.04033875837922096, -0.013416283763945103, -0.02467477321624756, -0.002717222087085247, 0.006693157367408276, -0.0161135271191597, 0.051547300070524216, -0.02089863456785679, -0.012237489223480225, 0.007727100048214197, -0.07240597903728485, -0.004158248659223318, 0.028390973806381226, -0.036802373826503754, 0.08655151724815369, 0.012677039951086044, 0.006148714106529951, 0.023755714297294617, -0.04051857441663742, 0.035723477602005005, -0.017741860821843147, -0.03957953676581383, -0.06061802804470062, -0.011098653078079224, 0.02964968793094158, 0.00839641597121954, 0.0010252018691971898, -0.037721436470746994, 0.0356036014854908, 0.018890686333179474, -0.037281885743141174, 0.03804110735654831, -0.02741197496652603, -0.02805132232606411, 0.010998755693435669, 0.029489850625395775, -0.0009690093575045466, 0.0891088992357254, 0.05941925197839737, 0.011827907525002956, -0.00589397456496954, 0.026772629469633102, 0.018770810216665268, 0.021098429337143898, -0.013516182079911232, -0.0100197559222579, 0.0019467597594484687, -0.017082536593079567, 0.0028795560356229544, -0.06773075461387634, -0.0012287438148632646, 0.05270611494779587, 0.044194817543029785, 0.04023886099457741, 0.005032355431467295, 0.0300692580640316, 0.03498423472046852, 0.07004838436841965, -0.008920880034565926, -0.014455221593379974, -0.059539131820201874, 0.00594891794025898, 0.022616878151893616, 0.0957421213388443, -0.033945295959711075, 0.04922967031598091, 0.00851629301905632, -0.014165517874062061, 0.0043755266815423965, 0.001997957471758127, -0.040418677031993866, 0.020558981224894524, -0.0064783766865730286, 0.055103663355112076, 0.038840290158987045, -0.052426401525735855, 0.007472360506653786, -0.043115921318531036, -0.03156772628426552, -0.015144516713917255, -0.013006702996790409, -0.03224703297019005, 0.02647293545305729, -0.014525149948894978, 0.011767969466745853, 0.057581134140491486, 0.018820758908987045, -0.026153262704610825, 0.0038760374300181866, -0.012417305260896683, -0.010888868011534214, -0.01211761124432087, 0.038860272616147995, -0.07368467003107071, -0.0024362592957913876, 0.04491408169269562, 0.039080046117305756, -0.02067885920405388, -0.04875016212463379, 0.005224658641964197, -0.03872041404247284, -0.07104736566543579, 0.040618475526571274, -0.011767969466745853, 0.04479420557618141, 0.052226606756448746, -0.0166629645973444, 0.010719041340053082, 0.04727167263627052, 0.08199617266654968, 0.051107749342918396, -0.05846023187041283, 0.0022114890161901712, -0.0023426050320267677, 0.05630243942141533, 0.00851629301905632, -0.00017606999608688056, -0.01103871501982212, 0.0005229029338806868, 0.04807085543870926, -0.03070860542356968, -0.052026811987161636, 0.00451038870960474, -0.024774672463536263, 0.0389401912689209, -0.00986491423100233, 0.014085599221289158, 0.0644940659403801, 0.03874039277434349, 0.05993872135877609, 0.020379165187478065, 0.10405362397432327, 0.0006886709597893059, 0.06952891498804092, 0.029110239818692207, 0.0073125241324305534, 0.029989341273903847, 0.007067774422466755, -0.024395059794187546, 0.05973892658948898, -0.009475313127040863, 0.030189136043190956, -0.012017713859677315, -0.047071877866983414, -0.03830084204673767, -0.016053587198257446, 0.03264662250876427, 0.05638235807418823, -0.008366446942090988, -0.007881942205131054, 0.0010564199183136225, -0.017302311956882477, 0.025953466072678566, -0.012956753373146057, -0.09302489459514618, -0.01718243397772312, -0.04095812514424324, 0.02825111709535122, 0.06417439132928848, -0.048190731555223465, 0.05981884524226189, 0.010259510949254036, -0.03400523588061333, -0.02583358995616436, -0.05046840384602547, 0.06625226885080338, 0.021458063274621964, -0.0300892386585474, -0.03866047412157059, -0.04323579743504524, -0.0010639122920110822, 0.025194242596626282, 0.002774663269519806, -0.051547300070524216, 0.0009802478598430753, 0.03384539857506752, 0.026852548122406006, 0.007851972244679928, -0.03828086331486702, 0.05901966243982315, 0.04199706390500069, -0.017352260649204254, 0.04615281522274017, -0.002062890911474824, -0.057541172951459885, 0.033925317227840424, 0.021877633407711983, 0.02964968793094158, -0.02423522248864174, -0.0031917369924485683, -0.02379567176103592, 0.016962658613920212, 0.09430359303951263, 0.05838031694293022, 0.023296182975172997, -0.028390973806381226, -0.010609153658151627, 0.0445144921541214, -0.07931891083717346, -0.05030856654047966, 0.007187651935964823, -0.0601784773170948, 0.054424360394477844, 0.06121741607785225, 0.007921901531517506, -0.011548194102942944, -0.04631265252828598, 0.02469475381076336, -0.042196858674287796, -0.011058693751692772, -0.0867113545536995, 0.0019804753828793764, -0.0064883665181696415, -0.041757307946681976, -0.012077652849256992, -0.014714956283569336, -0.0012786927400156856, 0.0758424624800682, 0.029729606583714485, 0.04747146740555763, -0.020798737183213234, 0.015883760526776314, 0.0389801487326622, 0.044874124228954315, -0.027032364159822464, 0.04143763706088066, -0.024974467232823372, 0.04543355107307434, -0.05138746276497841, 0.030828483402729034, 0.007282554637640715, -0.007157682441174984, -0.005064821802079678, -0.07843980938196182, 0.03182746097445488, 0.050428446382284164, 0.052466362714767456, -0.08791012316942215, -0.021038491278886795, -0.017202412709593773, -0.0334058478474617, 0.02247702144086361, 0.0016033608699217439, -0.030608708038926125, -0.05094791203737259, 0.042156901210546494, 0.09046751260757446, -0.017212403938174248, 0.060697946697473526, -0.029689647257328033, 0.016712913289666176, -0.05282599478960037, 0.03947963938117027, -0.006773075554519892, -0.000681802979670465, -0.009125670418143272, -0.0021902609150856733, -0.010759000666439533, 0.034824397414922714, 0.054903868585824966, -0.003821093589067459, 0.017412198707461357, 0.039939168840646744, 0.03278648108243942, -0.033246010541915894, -0.06801047176122665, -0.008206609636545181, -0.03720196709036827, -0.03714202716946602, 0.0002494324871804565, -0.03937974199652672, -0.036362823098897934, -0.04922967031598091, -0.02735203690826893, 0.010749010369181633, -0.006997845601290464, 0.03726190701127052, 0.04271632805466652, -0.04115792363882065, 0.01681281067430973, -0.031487807631492615, 0.005749122239649296, 0.0028720637783408165, -0.009700083173811436, -0.05766104906797409, 0.0801580473780632, -0.02161789871752262, -0.0690893679857254, -0.009675108827650547, 0.021537980064749718, 0.011328418739140034, 0.03834080323576927, 0.01650312729179859, -0.01890067756175995, -0.005027360282838345, 0.004852538928389549, -0.03586333617568016, 0.007632197346538305, 0.004772620741277933, 0.032406870275735855, 0.025513915345072746, 0.002777160843834281, 0.01234737690538168, -0.02741197496652603, 0.012736978009343147, 0.06809038668870926, -0.018321270123124123, -0.014724945649504662, 0.012177550233900547, -0.005379500333219767, -0.013196508400142193, 0.015763884410262108, -0.0378013551235199, -0.011298448778688908, 0.001140708802267909, -0.012167560867965221, 0.0006849247729405761, 0.013386314734816551, -0.01312658004462719, 0.01606357842683792, -0.07216621935367584, 0.016013627871870995, 0.03160768747329712, 0.020009543746709824, 0.027671709656715393, -0.0074923401698470116, 0.017761841416358948, 0.011887846514582634, 0.03468453884124756, -0.041957106441259384, -0.052226606756448746, 0.0533854216337204, 0.04131775721907616, -0.06357500702142715, -0.027232158929109573, 0.03786129131913185, 0.011398347094655037, 0.04970917850732803, -0.020638899877667427, 0.02341606095433235, -0.03518402948975563, -0.06968875229358673, -0.007851972244679928, 0.03963947668671608, -0.01703258603811264, -0.06581271439790726, 0.007027815096080303, -0.05034852772951126, 0.03130799159407616, -0.02137814462184906, -0.0009109437232837081, -0.010709051974117756, 0.018800778314471245, 0.026393016800284386, -0.04031877964735031, -0.00839641597121954, 0.04411489889025688, 0.042156901210546494, -0.06349508464336395, 0.027212180197238922, 0.03300625458359718, -0.020309237763285637, -0.014445232227444649, -0.001689522759988904, 0.05630243942141533, -0.010009766556322575, -0.008940859697759151, 0.048230692744255066, 0.000811670208349824, 0.018870707601308823, 0.007447386160492897, 0.010699061676859856, 0.08735069632530212, -0.001487229485064745, -0.02183767408132553, -0.013486212119460106, -0.04077830910682678, -0.08031788468360901, -0.02137814462184906, 0.005769101902842522, 0.02357589825987816, -0.00961516983807087, -0.03858055919408798, -0.003316609188914299, 0.06121741607785225, -0.02385561168193817, 0.04942946508526802, -0.047791142016649246, -0.019779779016971588, -0.02245704084634781, 0.028390973806381226, -0.015274384059011936, 0.04203702509403229, 0.03722194582223892, -0.016253383830189705, -0.0445944108068943, -0.016672953963279724, -0.010429337620735168, 0.011458286084234715, -0.03854059800505638, -0.05873994901776314, -0.009180613793432713, -0.029989341273903847, 0.00790192186832428, 0.020359186455607414, 0.060458190739154816, 0.005224658641964197, -0.03536384552717209, 0.02541401796042919, -0.01966989040374756, -0.01806153543293476, -0.0024524927139282227, -0.014415262266993523, -0.052666157484054565, 0.0026298114098608494, 0.011328418739140034, -0.04827065020799637, -0.0144851915538311, -0.01983971707522869, 0.06053810939192772, -0.06373484432697296, -0.04119788110256195, -0.010379388928413391, 0.025034407153725624, 0.030348973348736763, -0.06165696680545807, 0.05162721872329712, 0.0013773419195786119, 0.006598254200071096, -0.04081827029585838, 0.01848110556602478, -0.014055630192160606, -0.054224565625190735, -0.03382541984319687, 0.0467522032558918, -0.03746170178055763, 0.019679879769682884, 0.0467522032558918, 0.02809128165245056, -0.06181680038571358, -0.0035663540475070477, 0.030408911406993866, 0.0025873547419905663, 0.005903963930904865, 0.013416283763945103, 0.00006895294063724577, 0.01491475198417902, 0.03590329363942146, -0.04743150994181633, -0.018231362104415894, 0.0070028407499194145, 0.020798737183213234, -0.04831061139702797, -0.03510411083698273, 0.0014247933868318796, -0.017102515324950218, 0.020099451765418053, 0.0936642438173294, 0.009735047817230225, -0.0010670340852811933, -0.011438306421041489, 0.003359065856784582, 0.025493936613202095, -0.027731649577617645, -0.027951424941420555, 0.03892020881175995, -0.09654130041599274, -0.015214446000754833, -0.034424807876348495, 0.005883984733372927, 0.003908504266291857, 0.013955732807517052, -0.019320247694849968, 0.026333078742027283, 0.018910666927695274, 0.05410468578338623, 0.013436263427138329, -0.0200594924390316, -0.047351591289043427, -0.0000981808771030046, 0.023256223648786545, -0.013316386379301548, 0.00006649451825069264, 0.004660235717892647, -0.021557960659265518, -0.011518224142491817, 0.008066752925515175, 0.03582337498664856, 0.031727563589811325, -0.013226478360593319, 0.01841117814183235, -0.061097536236047745, 0.0024524927139282227, 0.021418103948235512, 0.0061986627988517284, 0.026972424238920212, 0.03846067935228348, 0.027292098850011826, -0.022856632247567177, -0.012197529897093773, -0.007257580291479826, 0.01905052363872528, 0.002281417604535818, -0.021717796102166176, -0.0057990713976323605, -0.015074588358402252, 0.005873994901776314, 0.006113749463111162, 0.012886825017631054, -0.08647159487009048, -0.000758599431719631, -0.06249610707163811, 0.025533895939588547, 0.0289504025131464, 0.013805885799229145, 0.014645027928054333, -0.055982764810323715, -0.022437062114477158, -0.0211783479899168, 0.029749585315585136, 0.03762153908610344, 0.001763197360560298, -0.024435019120573997, 0.044874124228954315, -0.034584641456604004, -0.005102283786982298, 0.026313098147511482, 0.007097743451595306, -0.036622557789087296, -0.06940904259681702, -0.017661944031715393, -0.00579407624900341, -0.011228520423173904, 0.06629222631454468, -0.10109664499759674, -0.03848065808415413, -0.014615057967603207, 0.017312301322817802, -0.06309549510478973, 0.01758202537894249, 0.002491203136742115, -0.02757181227207184, 0.013666028156876564, 0.026353057473897934, 0.06333524733781815, 0.02137814462184906, 0.0018943133763968945, 0.014145538210868835, -0.019859695807099342, -0.011098653078079224, 0.004562835209071636, -0.014515160582959652, 0.009475313127040863, 0.04699195921421051, 0.01703258603811264, 0.031208094209432602, -0.043515510857105255, -0.04207698255777359, 0.08155661821365356, -0.0356036014854908, -0.0030044284649193287, 0.030009320005774498, -0.009210583753883839, -0.04914975166320801, -0.049549344927072525, -0.004442957695573568, -0.007037804927676916, 0.02069883793592453, -0.005903963930904865, 0.026313098147511482, 0.007667161524295807, -0.001044557080604136, 0.003126803319901228, -0.005973892752081156, 0.015104558318853378, 0.04827065020799637, -0.0018218874465674162, 0.023456020280718803, 0.04611285775899887, -0.008471339009702206, 0.040598493069410324, -0.007167672272771597, -0.021957552060484886, -0.01347622275352478, 0.03610308840870857, -0.03959951549768448, -0.01784176006913185, 0.039519596844911575, -0.0646139457821846, 0.04635260999202728, 0.0033740506041795015, 0.01822137087583542, 0.029529809951782227, 0.07540291547775269, -0.06805042922496796, 0.024135325103998184, -0.05638235807418823, -0.06932912021875381, -0.09933844208717346, 0.009135659784078598, -0.011478264816105366, 0.0846334770321846, 0.046672284603118896, -0.011048704385757446, 0.00795686524361372, 0.02986946329474449, 0.0069029428996145725 ]
715,281
pytorch_optimizer.optimizer.adasmooth
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.5, 0.99), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, eps: float = 1e-6, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'eps': eps, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.5, 0.99), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, eps: float = 1e-06)
[ 0.011797393672168255, -0.03720276802778244, -0.021936673671007156, -0.012797980569303036, -0.05671897158026695, -0.021917613223195076, -0.08530716598033905, -0.028340427204966545, -0.018267855048179626, 0.03777453303337097, -0.03342912718653679, 0.048714280128479004, 0.010892101563513279, 0.06598154455423355, -0.05172557011246681, 0.039070528000593185, 0.03129453957080841, 0.021574554964900017, -0.004488346166908741, 0.0039570820517838, 0.00022542980150319636, -0.014341742731630802, -0.03682159259915352, 0.11542005836963654, 0.013141038827598095, 0.03687876835465431, -0.011930805630981922, 0.013093392364680767, -0.02988418936729431, 0.010425160638988018, 0.014055861160159111, -0.012902803719043732, -0.01269315741956234, 0.06186484917998314, 0.04414016753435135, -0.014503742568194866, -0.010701512917876244, 0.014275037683546543, -0.062169790267944336, 0.04307287558913231, 0.07882717251777649, -0.03535406291484833, 0.06887848675251007, -0.03861311823129654, -0.026548901572823524, -0.00486952206119895, 0.030837129801511765, 0.05096321552991867, -0.013074332848191261, -0.03464888781309128, 0.022832436487078667, -0.027978310361504555, 0.03918488323688507, -0.02130773290991783, -0.04276793450117111, 0.0305512472987175, 0.04562675580382347, 0.058014970272779465, 0.03535406291484833, 0.022222554311156273, 0.006904048379510641, -0.038365352898836136, 0.02146020345389843, -0.024566786363720894, -0.001456806669011712, -0.015885505825281143, -0.0851546972990036, -0.023556670174002647, 0.029941366985440254, 0.03464888781309128, 0.10711042582988739, -0.003866553073748946, -0.034248653799295425, 0.029998542740941048, -0.010873042047023773, -0.00828581117093563, -0.06823048740625381, -0.046046048402786255, -0.06575284153223038, -0.0057652853429317474, 0.053021568804979324, 0.027082547545433044, -0.031084895133972168, -0.050848864018917084, 0.022203495725989342, -0.04074770212173462, -0.03626888617873192, -0.05557544529438019, 0.03007477894425392, 0.03356253728270531, -0.06594342738389969, -0.028378546237945557, 0.018439384177327156, -0.02487172745168209, 0.07734058797359467, 0.009343573823571205, 0.017543621361255646, -0.0604926161468029, 0.024719256907701492, -0.010482337325811386, -0.020678792148828506, -0.010053514502942562, -0.04955286532640457, -0.0029159956611692905, 0.011854570358991623, -0.041395701467990875, -0.05164933577179909, -0.037660177797079086, 0.03722182661294937, -0.0678493082523346, -0.02346137724816799, 0.05649026855826378, -0.03077995404601097, 0.03394371271133423, -0.05614721029996872, 0.029083721339702606, 0.027978310361504555, 0.024071257561445236, 0.009648514911532402, 0.01680985651910305, 0.03487759456038475, 0.03445830196142197, -0.029750779271125793, 0.05031521990895271, 0.046046048402786255, -0.006803989876061678, 0.007194695062935352, 0.014618095941841602, 0.025824667885899544, -0.015618681907653809, 0.03701217845082283, -0.0021762761753052473, -0.0414719358086586, -0.02506231516599655, 0.01617138832807541, -0.019973617047071457, 0.001678365166299045, 0.05591850355267525, -0.02841666340827942, 0.011587747372686863, 0.06689637154340744, 0.012683628126978874, 0.03607830032706261, -0.021193379536271095, -0.014341742731630802, 0.02125055529177189, -0.017419738695025444, -0.03436300531029701, -0.008571692742407322, 0.04833310469985008, 0.02449055202305317, 0.019401853904128075, -0.026567960157990456, 0.030284425243735313, 0.00801898818463087, -0.0490192212164402, 0.015018329955637455, -0.011101747862994671, -0.00005617133138002828, 0.015790211036801338, -0.022127261385321617, 0.0309514831751585, 0.027463722974061966, -0.03234277665615082, -0.012912333942949772, 0.025462549179792404, -0.04581734165549278, 0.017114797607064247, 0.0032590539194643497, -0.01483727153390646, 0.002649172442033887, -0.08789916336536407, -0.03215218707919121, 0.026053372770547867, 0.007437694817781448, 0.03546841815114021, 0.031542304903268814, -0.008138105273246765, -0.001986879389733076, -0.01870620623230934, 0.07162295281887054, -0.0072137536481022835, -0.02376631647348404, -0.05915850028395653, 0.030532188713550568, 0.013236332684755325, -0.04029029235243797, 0.05931096896529198, -0.05378391966223717, 0.022279731929302216, 0.04387334734201431, 0.026606077328324318, 0.015266094356775284, 0.022984907031059265, -0.02004985138773918, 0.014884918928146362, 0.046617813408374786, -0.019878322258591652, -0.009967749938368797, 0.05668085440993309, 0.07520600408315659, 0.01657162234187126, 0.0180677380412817, -0.030170071870088577, 0.029960425570607185, -0.010263160802423954, -0.013931979425251484, -0.011416218243539333, -0.028397604823112488, -0.037107475101947784, 0.0007450797711499035, -0.01349362637847662, 0.04715145751833916, 0.02022138051688671, -0.007999928668141365, -0.04844745621085167, -0.010358454659581184, 0.017562679946422577, 0.004650346003472805, -0.004543140064924955, 0.09666620939970016, -0.028473839163780212, -0.007885576225817204, -0.000976167619228363, 0.050505805760622025, 0.023728199303150177, 0.042272407561540604, -0.050353337079286575, -0.07802670449018478, 0.03626888617873192, -0.0239569041877985, -0.045855458825826645, -0.03563994541764259, -0.007685459218919277, 0.01636197604238987, 0.007694988511502743, -0.03504912182688713, 0.02984607219696045, -0.07920835167169571, -0.029598308727145195, 0.05702391266822815, 0.028111722320318222, -0.004509787540882826, -0.025271961465477943, 0.01866808906197548, 0.00809522345662117, 0.03948982432484627, 0.006265578791499138, -0.06590531021356583, -0.031065834686160088, -0.03148512914776802, -0.012502569705247879, 0.00396184716373682, 0.042806051671504974, -0.050848864018917084, 0.01830597221851349, 0.027940193191170692, -0.009191104210913181, 0.01572350598871708, -0.005260227248072624, -0.008638398721814156, 0.009553221054375172, -0.013808096759021282, 0.07936082035303116, 0.00869081076234579, 0.025271961465477943, -0.0007021974888630211, -0.012483510188758373, 0.024357140064239502, 0.005522285588085651, 0.13097204267978668, 0.01941138319671154, -0.003209024667739868, 0.00022706767776980996, -0.007790282368659973, -0.023023024201393127, -0.0032161716371774673, -0.025824667885899544, -0.003735523670911789, 0.04581734165549278, 0.031923480331897736, -0.04383522644639015, 0.015580564737319946, 0.0026515547651797533, 0.007461518049240112, -0.001355556771159172, -0.016371505334973335, 0.024719256907701492, -0.0038069942966103554, 0.01072057243436575, 0.011501982808113098, 0.0066801076754927635, 0.08454481512308121, 0.02163173258304596, 0.08172411471605301, -0.0246620811522007, 0.052297331392765045, -0.007685459218919277, 0.07185165584087372, -0.009700926952064037, 0.044788166880607605, -0.042272407561540604, 0.052144862711429596, -0.003983288072049618, -0.042844172567129135, -0.04387334734201431, 0.03630700334906578, 0.017210092395544052, 0.041052643209695816, 0.04646534100174904, 0.035144418478012085, 0.020126087591052055, 0.04417828470468521, 0.018334560096263885, 0.041052643209695816, -0.06293214112520218, 0.009052927605807781, -0.0630083754658699, 0.028492897748947144, 0.04467381536960602, -0.0020166586618870497, 0.028912192210555077, -0.004626522306352854, -0.016676444560289383, -0.0776074156165123, -0.04985780641436577, 0.023728199303150177, 0.023099258542060852, -0.04459758102893829, 0.0007075577741488814, -0.045550521463155746, 0.0028683487325906754, 0.023213611915707588, -0.030665600672364235, -0.05332650616765022, 0.005812932271510363, 0.010510925203561783, 0.05420321226119995, -0.007999928668141365, -0.02734937146306038, 0.09285444766283035, -0.027444664388895035, -0.004917168989777565, 0.03556371107697487, -0.008781339973211288, -0.038174767047166824, -0.002382349455729127, -0.014179742895066738, 0.04364464059472084, 0.009276868775486946, -0.01136857084929943, 0.0016867032973095775, -0.0006670578150078654, 0.08591704815626144, 0.02416655234992504, -0.026396431028842926, -0.017314914613962173, -0.001933276536874473, 0.038899000734090805, -0.05077262967824936, -0.03773641213774681, -0.0012126158690080047, -0.04166252538561821, 0.05523238703608513, 0.024071257561445236, -0.0081905173137784, 0.020335733890533447, -0.03786982595920563, 0.02860725112259388, 0.012111864052712917, 0.025500668212771416, -0.05690956115722656, -0.029255250468850136, -0.015666330233216286, 0.01736256293952465, -0.009996337816119194, -0.0313517190515995, 0.011568688787519932, 0.06041637808084488, -0.002844525035470724, 0.006770636886358261, -0.006475225556641817, 0.057481326162815094, 0.03508724272251129, 0.011511512100696564, -0.03304795175790787, -0.002670613583177328, 0.021898554638028145, 0.07349071651697159, 0.0003817714750766754, 0.006861166097223759, 0.000491657352540642, 0.0214411448687315, -0.026358313858509064, -0.06346578896045685, 0.03464888781309128, 0.046579696238040924, 0.0380985289812088, -0.04128134995698929, -0.03413430228829384, -0.016323857009410858, -0.043568406254053116, -0.010558572597801685, 0.03806041181087494, -0.015466212294995785, 0.0016938503831624985, 0.0033710242714732885, 0.04734204709529877, 0.014999271370470524, 0.06617213785648346, -0.01154009997844696, -0.008357281796634197, -0.023880669847130775, -0.0047623161226511, -0.029998542740941048, -0.027063488960266113, -0.001510409521870315, -0.005131580401211977, 0.026891959831118584, -0.01691468060016632, 0.03184724599123001, 0.007208989001810551, 0.07345259189605713, 0.015466212294995785, 0.07028883695602417, 0.06152179092168808, -0.021879496052861214, 0.003959464840590954, 0.0009868881898000836, -0.04993404075503349, -0.04715145751833916, -0.013836684636771679, -0.04741828143596649, -0.04128134995698929, 0.027101606130599976, 0.015075506642460823, -0.0005294771399348974, -0.005655697546899319, 0.0027587604708969593, -0.02327078767120838, 0.005007698200643063, -0.06445684283971786, 0.00893857516348362, -0.022756200283765793, -0.053745802491903305, -0.030684659257531166, 0.024014081805944443, -0.0145704485476017, -0.03964229300618172, -0.015466212294995785, 0.021383967250585556, 0.00018984347116202116, 0.043187230825424194, -0.006456166971474886, -0.02931242622435093, -0.029636425897479057, -0.01689562201499939, -0.02180326171219349, 0.042653582990169525, -0.01719103381037712, 0.05416509509086609, -0.024757374078035355, -0.014284566976130009, -0.01949714682996273, -0.062322258949279785, 0.016228564083576202, 0.06499049067497253, -0.013522215187549591, -0.0036735828034579754, 0.011292335577309132, 0.007575870957225561, 0.004793286789208651, 0.0341724194586277, -0.028168898075819016, -0.051420629024505615, 0.02323267050087452, 0.0008641972090117633, -0.022031966596841812, -0.013779508881270885, -0.01567585952579975, 0.0004961242666468024, -0.04467381536960602, 0.0033519654534757137, 0.0669344887137413, 0.012712216004729271, -0.012435863725841045, -0.06704884022474289, 0.008852810598909855, 0.012550216168165207, 0.04394958168268204, -0.08408740162849426, -0.013731861487030983, 0.03077995404601097, 0.059082262217998505, -0.029636425897479057, -0.013045744970440865, 0.028664426878094673, 0.024928903207182884, 0.039070528000593185, 0.020297616720199585, 0.007185165770351887, -0.038918059319257736, -0.03684065118432045, -0.026053372770547867, 0.018629971891641617, -0.04654157534241676, -0.09071986377239227, 0.008643163368105888, -0.028168898075819016, -0.004323964007198811, -0.016219034790992737, 0.003718847408890724, -0.024585844948887825, 0.00991057325154543, -0.030799012631177902, -0.02988418936729431, -0.041395701467990875, 0.058014970272779465, 0.00010139874211745337, -0.03199971467256546, 0.055537328124046326, 0.05363144725561142, 0.03990911692380905, -0.03722182661294937, 0.016247622668743134, 0.04379710927605629, 0.02416655234992504, -0.04722769185900688, 0.0779123529791832, 0.021727025508880615, 0.006094049662351608, -0.056414034217596054, -0.04494063928723335, 0.04776133969426155, -0.005531815346330404, 0.02826419286429882, 0.0190492644906044, -0.02502419799566269, -0.048752397298812866, -0.029941366985440254, 0.018763383850455284, 0.029560191556811333, 0.011092218570411205, -0.041586291044950485, -0.011435276828706264, 0.0031161129008978605, -0.038708411157131195, 0.07402435690164566, -0.06327519565820694, -0.020087970420718193, 0.01808679662644863, -0.022565612569451332, -0.044445108622312546, 0.019449500367045403, 0.01772467978298664, -0.01634291745722294, 0.005936814472079277, 0.0017617472913116217, 0.05420321226119995, 0.027597134932875633, -0.024376198649406433, -0.02163173258304596, -0.007366224192082882, 0.010691983625292778, -0.008085694164037704, -0.0014925418654456735, 0.008385869674384594, -0.02986513078212738, -0.06407567113637924, 0.01930655911564827, 0.005884402897208929, -0.00399519968777895, 0.010491866618394852, 0.006256049498915672, -0.03356253728270531, 0.012979038991034031, -0.010977866128087044, 0.021174320951104164, -0.05199239403009415, -0.04009970277547836, -0.0006164328660815954, -0.02771148830652237, -0.1134379431605339, -0.0832488164305687, 0.039756644517183304, -0.0060082850977778435, -0.05599473789334297, 0.005303109530359507, -0.0158283282071352, 0.024795491248369217, -0.005122051108628511, 0.04738016426563263, -0.0245096106082201, -0.019363734871149063, -0.052640389651060104, 0.01661926880478859, -0.03127548098564148, -0.019354205578565598, 0.036211710423231125, 0.06434249132871628, -0.07482482492923737, -0.012064216658473015, 0.028569133952260017, 0.010711043141782284, 0.005522285588085651, -0.009767632000148296, -0.014770565554499626, 0.04269170016050339, 0.022832436487078667, -0.05671897158026695, 0.013684215024113655, -0.017219621688127518, 0.0023299376480281353, -0.01420833170413971, -0.012588334269821644, -0.04109076038002968, -0.03922300040721893, 0.020697850733995438, 0.07547282427549362, -0.011130335740745068, -0.0017962914425879717, -0.0411669984459877, -0.005388874094933271, 0.04635098949074745, -0.0705556571483612, -0.019535264000296593, 0.009167280048131943, -0.11885064095258713, 0.002107188105583191, -0.032971713691949844, 0.04753263294696808, -0.017009973526000977, -0.0072947535663843155, -0.05504180118441582, -0.0039570820517838, 0.02180326171219349, 0.021326791495084763, 0.011482924222946167, 0.029998542740941048, -0.02126961573958397, 0.01770562119781971, 0.05164933577179909, -0.0075091649778187275, -0.005355521570891142, -0.009996337816119194, -0.03849876672029495, -0.023289848119020462, -0.007289988920092583, 0.040328409522771835, 0.04109076038002968, -0.028835956007242203, 0.04093829169869423, -0.05450815334916115, 0.00027277899789623916, -0.002823083894327283, -0.0006438299315050244, 0.02416655234992504, 0.02468113973736763, 0.05847238376736641, -0.02752090059220791, -0.03546841815114021, -0.021536437794566154, 0.04562675580382347, 0.015599623322486877, 0.0016116593033075333, 0.006074991077184677, -0.03684065118432045, -0.012302451767027378, -0.027654310688376427, -0.02325172908604145, -0.05614721029996872, -0.011835511773824692, -0.047494515776634216, 0.0028707310557365417, 0.025615019723773003, 0.014637154527008533, -0.0705556571483612, -0.027997368946671486, 0.007885576225817204, -0.02323267050087452, 0.06056885048747063, 0.035525593906641006, -0.0064132846891880035, -0.0476088710129261, 0.018363147974014282, -0.008881398476660252, -0.07127989083528519, 0.05004839599132538, -0.019783029332756996, -0.024604903534054756, -0.053745802491903305, -0.013646096922457218, 0.02092655748128891, 0.004359699320048094, 0.022070083767175674, -0.046046048402786255, -0.0633133128285408, -0.07211847603321075, 0.01862044259905815, -0.02519572712481022, -0.005779579747468233, -0.0007760503212921321, -0.056947678327560425, 0.07154671847820282, -0.012645510025322437, 0.029236191883683205, 0.009629456326365471, -0.007166106719523668, 0.021555496379733086, -0.04799004644155502, 0.029083721339702606, 0.04375899210572243, 0.03647853434085846, -0.08774669468402863, -0.02323267050087452, 0.043149109929800034, 0.04074770212173462, -0.018934912979602814, -0.05313592031598091, 0.012111864052712917, -0.03607830032706261, -0.01161633525043726, 0.023194553330540657, -0.012378687039017677, 0.011168453842401505, -0.07570153474807739, -0.030093837529420853, 0.015875976532697678, 0.03647853434085846, -0.021898554638028145, 0.051763687282800674, 0.01877291314303875, -0.03194253891706467, -0.0027682899963110685, 0.009658044204115868, -0.026167726144194603, 0.0411669984459877, 0.006289402488619089, 0.06544790416955948, 0.06632460653781891, 0.014522802084684372, 0.02824513427913189, -0.04528369754552841, -0.007790282368659973, -0.0021572173573076725, 0.05145874619483948, -0.012531157582998276, -0.015065977349877357, 0.0716610699892044, -0.017095739021897316, -0.017524560913443565, -0.013989155180752277, 0.015494800172746181, 0.027273135259747505, 0.06659142673015594, -0.04082394018769264, 0.021898554638028145, -0.03222842141985893, -0.0782172903418541, -0.09666620939970016, -0.0008868295699357986, -0.04219617322087288, 0.08058058470487595, 0.019783029332756996, 0.01785808987915516, 0.016886092722415924, 0.041052643209695816, 0.015332800336182117 ]
715,284
pytorch_optimizer.optimizer.adasmooth
__str__
null
def __str__(self) -> str: return 'AdaSmooth'
(self) -> str
[ -0.0028709587641060352, -0.026093345135450363, 0.003915728535503149, -0.014782199636101723, 0.012925790622830391, -0.06140829622745514, -0.011440662667155266, 0.02253594622015953, 0.035504911094903946, -0.003272461239248514, -0.04576265066862106, 0.015188019722700119, 0.005422442220151424, 0.027371246367692947, -0.004159652162343264, -0.006221130024641752, 0.013987828977406025, -0.0193239264190197, -0.016379576176404953, 0.01559383887797594, 0.027043135836720467, 0.023572081699967384, -0.011423394083976746, -0.0002489153703209013, -0.008448821492493153, 0.046280719339847565, -0.0009389977785758674, -0.0019416747381910682, -0.04185987263917923, -0.02483271434903145, -0.01631913334131241, -0.05657299980521202, 0.01669904962182045, 0.017424345016479492, -0.027043135836720467, 0.021396197378635406, -0.00622544763609767, -0.006316109094768763, -0.05840350314974785, -0.03643743321299553, 0.020912667736411095, 0.002806200413033366, -0.004533092956990004, -0.009402929805219173, -0.02512628585100174, -0.035677600651979446, -0.03450331091880798, 0.03619566559791565, 0.005245435982942581, -0.02818288467824459, 0.009014379233121872, -0.009610156528651714, -0.023710234090685844, 0.019185775890946388, -0.017622938379645348, 0.09332127124071121, 0.023692965507507324, 0.01138022169470787, -0.020273717120289803, 0.026525069028139114, -0.03543583303689957, -0.046453408896923065, 0.07232225686311722, -0.018529556691646576, -0.017407076433300972, 0.02522989921271801, -0.009385660290718079, 0.05878341943025589, 0.024746369570493698, 0.03623020276427269, 0.04261970520019531, -0.03474507853388786, 0.0030781859531998634, 0.012943059206008911, -0.0044942377135157585, -0.020273717120289803, -0.0571601428091526, -0.0039912802167236805, 0.016914911568164825, -0.05660753697156906, 0.013202093541622162, -0.01257177721709013, -0.013495665043592453, -0.024314645677804947, -0.02775116264820099, -0.09836379438638687, -0.060544852167367935, -0.05318829044699669, -0.021206239238381386, 0.006251350976526737, -0.03975306451320648, -0.003971852827817202, -0.04534819722175598, 0.08675907552242279, -0.04248155653476715, 0.011699697002768517, 0.02208695560693741, -0.06955923140048981, 0.04769676923751831, 0.006376550532877445, -0.0048957401886582375, 0.02260502241551876, -0.04279239475727081, 0.023951997980475426, -0.020999012514948845, -0.07056082785129547, -0.03964945301413536, 0.03405432030558586, 0.026369648054242134, 0.02548893354833126, -0.013262534514069557, 0.004263265989720821, 0.02301947772502899, -0.0031688476447016, -0.012053709477186203, -0.0568147636950016, 0.03177482262253761, 0.008902130648493767, 0.037646256387233734, 0.004110004287213087, 0.014255497604608536, 0.009454736486077309, -0.06710704416036606, -0.0037171361036598682, 0.06247897073626518, 0.054949719458818436, -0.038337014615535736, -0.011561545543372631, 0.00983465276658535, -0.03930407389998436, 0.03892415761947632, 0.018598632887005806, -0.02811381034553051, -0.017312096431851387, 0.06434401124715805, -0.014859910123050213, 0.05643484741449356, 0.023865655064582825, 0.01970384269952774, 0.14243409037590027, -0.03417520225048065, 0.0033480129204690456, 0.04496828094124794, 0.02498813346028328, 0.012295474298298359, 0.005478566512465477, -0.011984634213149548, 0.02229418233036995, -0.008427235297858715, 0.005677158944308758, 0.03640289232134819, 0.021309852600097656, 0.01699262298643589, 0.0065880948677659035, -0.006113199517130852, -0.05671114847064018, -0.002601131796836853, -0.024314645677804947, 0.02500540390610695, -0.026680488139390945, 0.006808273494243622, -0.0306005347520113, -0.008733758702874184, -0.0040841009467840195, 0.006372233387082815, -0.007378148380666971, -0.026525069028139114, 0.06379140913486481, 0.0027910899370908737, -0.020809054374694824, -0.031843896955251694, -0.07391099631786346, -0.08765706419944763, 0.03671373426914215, 0.008893496356904507, 0.018374135717749596, 0.004224410746246576, 0.0828908383846283, 0.046349793672561646, -0.0200146846473217, 0.0067176115699112415, 0.015231192111968994, -0.07805553823709488, 0.015239826403558254, 0.07266763597726822, -0.04165264591574669, 0.035280413925647736, 0.0277166236191988, 0.01657816767692566, -0.021309852600097656, 0.026507800444960594, 0.030168812721967697, -0.02533351257443428, -0.01384104322642088, 0.001970816170796752, -0.046315256506204605, 0.012252301909029484, -0.08558478951454163, 0.005102967377752066, 0.026611413806676865, -0.010827615857124329, 0.02783750742673874, -0.018909472972154617, 0.05546778813004494, 0.08233823627233505, 0.004623754415661097, 0.04289600998163223, -0.02493632771074772, 0.01129387691617012, -0.055018793791532516, 0.006942107807844877, 0.007822822779417038, 0.014410917647182941, 0.012865348719060421, 0.03343264013528824, -0.02479817532002926, 0.01146656647324562, 0.008198422379791737, -0.0003925982164219022, 0.01274446677416563, 0.0020722709596157074, -0.015023964457213879, 0.0003726310096681118, -0.006221130024641752, -0.009877825155854225, -0.0023550495970994234, 0.023174896836280823, 0.0138583118095994, -0.03438242897391319, -0.013271168805658817, -0.010542678646743298, -0.0741182267665863, -0.026404187083244324, 0.028666416183114052, 0.014264131896197796, 0.04258516803383827, -0.04586626589298248, 0.03091137483716011, -0.07819369435310364, -0.06703796982765198, 0.0124595295637846, 0.002924924250692129, -0.0005391142331063747, 0.037853483110666275, 0.03315633535385132, -0.04445021227002144, -0.025644352659583092, 0.001752795884385705, -0.0400293692946434, -0.028959987685084343, 0.0496654286980629, -0.035677600651979446, 0.0039329975843429565, -0.003559557255357504, -0.01668178103864193, -0.05826535448431969, -0.03068687953054905, 0.020636364817619324, -0.0029788895044475794, 0.002079826081171632, -0.0766049474477768, 0.002154298359528184, -0.04565903916954994, 0.05101240426301956, 0.010275010019540787, 0.0249190591275692, -0.02301947772502899, 0.0440702959895134, -0.00005582045196206309, 0.004554679151624441, 0.06900662183761597, -0.009290681220591068, -0.045831725001335144, 0.029598936438560486, -0.005504469852894545, 0.009592887945473194, 0.004021500702947378, 0.029944315552711487, -0.07156242430210114, -0.029011793434619904, 0.006203861441463232, -0.028994524851441383, -0.025851581245660782, 0.018391404300928116, -0.04185987263917923, -0.04514097049832344, 0.057056527584791183, 0.015023964457213879, 0.029495323076844215, 0.020152835175395012, 0.06285888701677322, 0.04856021702289581, 0.04555542394518852, 0.0037775773089379072, 0.03046238422393799, 0.04438113793730736, 0.07549974322319031, 0.02293313294649124, -0.0010965766850858927, -0.021327123045921326, 0.016811298206448555, -0.043724916875362396, -0.00003575206937966868, -0.03664465993642807, -0.06993914395570755, -0.006208178587257862, -0.01953115500509739, 0.012623583897948265, 0.035124994814395905, -0.0007517379126511514, -0.03379528596997261, 0.0311186034232378, 0.012813542038202286, 0.07985150814056396, -0.011267973110079765, 0.06544922292232513, -0.0022341671865433455, 0.009428832679986954, 0.037646256387233734, 0.06797049194574356, -0.046487946063280106, 0.03989121690392494, -0.042965084314346313, -0.004094894044101238, 0.021862458437681198, -0.0112766083329916, 0.015965120866894722, 0.02239779569208622, 0.03605751693248749, -0.00821137335151434, -0.05308467522263527, -0.009359757415950298, 0.03346717730164528, -0.01965203694999218, -0.03726634010672569, 0.00556059367954731, 0.03410612791776657, -0.012338646687567234, -0.016267327591776848, -0.023554813116788864, 0.08696630597114563, 0.010698098689317703, -0.03153305873274803, 0.05546778813004494, 0.011432028375566006, 0.026784103363752365, -0.026300571858882904, -0.018684977665543556, 0.04261970520019531, -0.029512593522667885, -0.0049345954321324825, -0.037749871611595154, 0.02519536204636097, 0.060164935886859894, 0.052083078771829605, 0.026594145223498344, -0.01937573403120041, 0.04023659601807594, -0.017208483070135117, -0.004546044394373894, -0.042999621480703354, -0.07266763597726822, -0.01644001714885235, 0.03667919710278511, -0.026904985308647156, -0.0023485738784074783, 0.004546044394373894, -0.018477749079465866, 0.07563789188861847, -0.03591936454176903, -0.02757847309112549, 0.013392051681876183, 0.0033803919795900583, -0.01944481022655964, -0.031705744564533234, 0.057609133422374725, 0.05280837416648865, 0.018166908994317055, 0.008513580076396465, -0.013651085086166859, 0.04268878325819969, 0.009791480377316475, 0.008876227773725986, 0.049043748527765274, 0.0556059367954731, -0.010197300463914871, 0.034969571977853775, 0.0012466005282476544, 0.0011732075363397598, -0.024452798068523407, 0.01138022169470787, -0.03992575407028198, -0.009964169934391975, -0.032258350402116776, -0.04403575882315636, -0.08744983375072479, -0.006855763029307127, 0.001268186722882092, -0.06907569617033005, 0.018495017662644386, 0.012727197259664536, -0.054535266011953354, -0.0025644353590905666, -0.003324268152937293, -0.06379140913486481, 0.023433931171894073, 0.03875146806240082, 0.014808103442192078, -0.027008598670363426, -0.010249107144773006, -0.00836679432541132, -0.00962742604315281, -0.09138715267181396, -0.03992575407028198, 0.05660753697156906, 0.020083758980035782, -0.03920045867562294, -0.04541727155447006, -0.04006390646100044, 0.0023269876837730408, -0.015749258920550346, 0.04009844362735748, 0.017035793513059616, 0.03591936454176903, 0.023088552057743073, 0.005159091204404831, 0.028649145737290382, 0.05933602526783943, 0.07708848267793655, -0.017907874658703804, -0.06106291711330414, -0.006091613322496414, -0.045797187834978104, -0.08931487798690796, 0.005431076977401972, -0.01536934357136488, 0.00011150598584208637, -0.03989121690392494, -0.020929936319589615, -0.018529556691646576, 0.04110004007816315, -0.0664508193731308, -0.018374135717749596, 0.034537848085165024, 0.0069075701758265495, -0.07218410819768906, -0.030186081305146217, -0.01937573403120041, 0.03909684717655182, -0.02529897540807724, -0.017588399350643158, 0.06368779391050339, 0.0022838152945041656, -0.04410483315587044, 0.0693865418434143, -0.038198862224817276, -0.0002713110006880015, -0.052324842661619186, 0.015507495030760765, -0.007239996921271086, -0.0400293692946434, 0.02783750742673874, -0.03709365054965019, 0.011362952180206776, 0.03626474365592003, 0.021499810740351677, 0.013720161281526089, 0.025937926024198532, -0.05077064037322998, -0.013305706903338432, 0.04479559138417244, -0.05267022177577019, 0.00796529185026884, -0.037715330719947815, 0.01941027119755745, 0.03840608894824982, -0.049458201974630356, 0.018046027049422264, 0.029754357412457466, -0.008850323967635632, -0.04130726680159569, -0.07577604055404663, -0.018253253772854805, 0.05633123219013214, -0.0001511030859546736, 0.05222122743725777, -0.014410917647182941, -0.0016858788440003991, -0.02545439451932907, -0.002085222629830241, 0.01645728573203087, 0.02533351257443428, -0.04683332517743111, -0.014756296761333942, -0.009238874539732933, 0.06648536026477814, -0.0010890215635299683, -0.008833055384457111, -0.09394295513629913, 0.017579765990376472, -0.008504945784807205, -0.05391358211636543, -0.028804566711187363, -0.032206546515226364, 0.05329190194606781, -0.018702246248722076, -0.0033717576880007982, -0.018270522356033325, -0.02498813346028328, -0.021758845075964928, 0.0009179512853734195, -0.03937314823269844, 0.014160518534481525, 0.04234340414404869, 0.051841311156749725, -0.014074173755943775, -0.014954889193177223, 0.005595131777226925, -0.010309548117220402, -0.010534044355154037, -0.0007107242126949131, -0.026594145223498344, -0.024055613204836845, -0.060786616057157516, -0.03096318244934082, 0.04151449725031853, -0.031843896955251694, 0.026041539385914803, -0.021586155518889427, 0.08330529183149338, 0.029098138213157654, 0.05695291608572006, 0.012295474298298359, 0.09794934093952179, 0.021240778267383575, 0.06703796982765198, -0.09428832679986954, 0.004433796275407076, 0.03564305976033211, 0.018287790939211845, 0.011224801652133465, -0.03362259641289711, 0.003490481525659561, -0.05391358211636543, 0.048732906579971313, -0.007442906498908997, -0.005914606619626284, 0.04213617742061615, 0.01556793600320816, -0.0014236069982871413, -0.009774211794137955, -0.0018218716140836477, -0.04704055190086365, -0.05353366583585739, 0.017484785988926888, 0.05090878903865814, -0.029443517327308655, -0.021568886935710907, 0.011803310364484787, 0.018184177577495575, -0.03457238897681236, -0.035332221537828445, 0.04165264591574669, 0.04293054714798927, -0.015239826403558254, 0.04013298079371452, 0.024608217179775238, 0.05277383327484131, 0.007037086877971888, -0.05522602051496506, 0.009454736486077309, -0.0737728476524353, 0.0112766083329916, 0.017363904044032097, -0.08586109429597855, 0.0779864639043808, 0.06178821250796318, -0.02231145091354847, -0.02801019698381424, 0.01688900776207447, -0.018874935805797577, 0.032517384737730026, -0.023710234090685844, -0.013478395529091358, -0.004697147756814957, -0.029149945825338364, 0.02258775383234024, 0.005608083214610815, 0.029547130689024925, -0.06914477795362473, -0.05678022652864456, -0.012122785672545433, -0.008681952022016048, -0.019047623500227928, -0.011958730407059193, -0.049354586750268936, -0.003904935671016574, 0.01118162926286459, 0.03053145855665207, 0.007771016098558903, 0.023520275950431824, 0.034848690032958984, -0.00023906667775008827, 0.055122409015893936, 0.06810864061117172, 0.08862411975860596, 0.006782370153814554, 0.006009585689753294, -0.031705744564533234, -0.0018801542464643717, -0.024660024791955948, 0.026956791058182716, -0.0067478325217962265, -0.04027113318443298, -0.008051636628806591, -0.003922204487025738, 0.032137468457221985, -0.031705744564533234, -0.009083454497158527, 0.05377543345093727, 0.008150932379066944, 0.05249753221869469, -0.03465873375535011, 0.04175626114010811, -0.023900192230939865, 0.020550020039081573, 0.016120541840791702, -0.03591936454176903, 0.0562966950237751, -0.049043748527765274, 0.032241083681583405, 0.004882788751274347, -0.013029403984546661, -0.08703538030385971, -0.04286147281527519, 0.026386916637420654, 0.007201141677796841, 0.046384330838918686, -0.005508786998689175, 0.01999741420149803, -0.010188665241003036, 0.02531624399125576, -0.026870446279644966, 0.04465743899345398, -0.016198251396417618, 0.007360879331827164, -0.0902128666639328, -0.046522483229637146, -0.021499810740351677, -0.028821835294365883, -0.03180935978889465, -0.010585851036012173, -0.021845189854502678, 0.045831725001335144, 0.004442431032657623, -0.01391875371336937, 0.018391404300928116, 0.0018510129302740097, -0.020083758980035782, -0.018339598551392555, -0.0166127048432827, -0.020636364817619324, 0.03355352208018303, -0.02250140905380249, 0.08945303410291672, 0.0023485738784074783, 0.017053063958883286, -0.040616512298583984, -0.010205934755504131, -0.04766223207116127, -0.026818640530109406, 0.0337434783577919, 0.007369513623416424, -0.03674827143549919, 0.006631267257034779, 0.03840608894824982, 0.017484785988926888, -0.0022233740892261267, 0.0737728476524353, -0.03417520225048065, 0.016655877232551575, -0.01939300261437893, -0.004135907627642155, -0.08620647341012955, 0.014687220565974712, 0.03850970417261124, -0.060061320662498474, 0.012217764742672443, 0.007835774682462215, -0.06672712415456772, -0.0881405919790268, -0.020947206765413284, -0.054673414677381516, 0.011984634213149548, 0.13138197362422943, -0.015352074056863785, -0.012537239119410515, -0.006661487743258476, 0.0016740064602345228, -0.013573374599218369, 0.04748954251408577, 0.03926953673362732, -0.013020769692957401, 0.01563701219856739, 0.01410007756203413, 0.0009362995042465627, 0.013504299335181713, -0.0037063430063426495, -0.011846482753753662, -0.046280719339847565, 0.06368779391050339, 0.0440702959895134, -0.05135778337717056, 0.03716272488236427, 0.04797307401895523, -0.0720459520816803, -0.030065197497606277, 0.026266034692525864, 0.004938912577927113, 0.060026783496141434, -0.02560981549322605, -0.018823128193616867, 0.010395892895758152, -0.011354317888617516, 0.029011793434619904, 0.04196348786354065, -0.04748954251408577, 0.01549022551625967, -0.03272461146116257, -0.011172994039952755, -0.0222078375518322, -0.008772613480687141, -0.051426857709884644, 0.04141088202595711, 0.020999012514948845, 0.03909684717655182, 0.04013298079371452, 0.010223203338682652, 0.06866124272346497, 0.02813107892870903, 0.010162762366235256, 0.008755344897508621, 0.0038768737576901913, -0.01246816385537386, -0.027215825393795967, 0.03699003532528877, 0.012891252525150776, 0.029737088829278946, -0.04141088202595711, 0.01557657029479742, 0.052255768328905106, 0.04800761118531227, 0.004321548622101545, 0.03123948536813259, 0.030272426083683968, -0.06354964524507523, 0.013487030752003193, 0.010525410063564777, 0.015049868263304234, -0.04866383224725723, 0.023416662588715553, -0.02232871949672699, 0.032517384737730026, 0.011708331294357777, -0.010439065285027027, 0.05847258120775223, -0.0049043744802474976, 0.008504945784807205 ]
715,305
pytorch_optimizer.optimizer.adasmooth
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['prev_param'] = torch.zeros_like(p) state['s'] = torch.zeros_like(p) state['n'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) prev_param = state['prev_param'] p_diff = p - prev_param s, n = state['s'], state['n'] s.add_(p_diff) n.add_(p_diff.abs()) c = s.sum().abs_().div_(n.sum()) # e_t c.mul_(beta2 - beta1).add_(1.0 - beta2) c_p2 = c.pow(2) exp_avg_sq = state['exp_avg_sq'] exp_avg_sq.mul_(1.0 - c_p2).addcmul_(grad, grad, value=c_p2) step_size = torch.full_like(exp_avg_sq, fill_value=group['lr']) step_size.div_((exp_avg_sq + group['eps']).sqrt()).mul_(grad) p.add_(-step_size) state['prev_param'].copy_(p) return loss
(self)
[ -0.004060597624629736, -0.015512826852500439, -0.037265341728925705, 0.0552932433784008, -0.011557823978364468, -0.0007187641458585858, -0.02515074610710144, -0.03837888687849045, -0.02515074610710144, 0.01575281471014023, -0.028030602261424065, 0.001343933050520718, 0.014236090704798698, 0.08255588263273239, -0.02605310082435608, 0.049840714782476425, 0.012018600478768349, 0.040125999599695206, 0.020926956087350845, -0.012133794836699963, -0.01555122435092926, -0.06243528798222542, -0.01830628700554371, 0.04281386733055115, -0.059325043112039566, -0.015234440565109253, 0.0552932433784008, -0.00543812895193696, -0.01743273064494133, 0.0012791362823918462, -0.02290445752441883, -0.06155213341116905, 0.013996101915836334, 0.009407531470060349, 0.04039478674530983, -0.046615276485681534, -0.006153293419629335, 0.0077612129971385, -0.06585271656513214, -0.03728454187512398, -0.018085498362779617, -0.022194093093276024, -0.012047399766743183, 0.011125845834612846, 0.01664556935429573, 0.0074684275314211845, -0.03196640685200691, 0.048266392201185226, -0.0059709022752940655, -0.012009001336991787, 0.0003953802806790918, -0.03974201902747154, 0.05333494022488594, -0.023422831669449806, 0.020389383658766747, 0.08409180492162704, 0.06097615882754326, -0.07445389032363892, 0.02691705897450447, -0.03275356814265251, 0.06969252228736877, -0.06658227741718292, 0.040202796459198, 0.0038470083381980658, 0.006734064314514399, -0.024075599387288094, -0.06312645226716995, -0.02916334569454193, 0.016683967784047127, 0.04538653790950775, 0.028260990977287292, 0.012479377910494804, 0.006868457421660423, -0.006124494597315788, -0.05106945335865021, -0.017231140285730362, -0.02728183940052986, -0.053718920797109604, 0.022309288382530212, -0.03475026786327362, -0.0004790761158801615, -0.0022174895275384188, -0.03889726102352142, 0.009681117720901966, -0.011845809407532215, -0.026513878256082535, -0.012978552840650082, -0.04319784790277481, -0.026168296113610268, -0.006335684098303318, 0.02035098522901535, 0.007434829603880644, 0.01683756150305271, 0.028568176552653313, 0.05510125309228897, 0.03974201902747154, -0.040548380464315414, -0.03584461286664009, -0.04772882163524628, -0.038782067596912384, 0.025726716965436935, 0.02945133112370968, 0.018085498362779617, 0.03699655458331108, 0.043274641036987305, -0.05260537937283516, -0.007017250172793865, -0.03534543886780739, 0.032043203711509705, -0.053603727370500565, -0.00968591682612896, -0.006978852208703756, -0.04626969248056412, -0.00903794914484024, -0.034961458295583725, -0.007444428745657206, -0.0015251239528879523, 0.017567124217748642, -0.03499985486268997, 0.037687722593545914, 0.04623129591345787, -0.003940603695809841, -0.052874162793159485, 0.008135594427585602, 0.0009713515755720437, 0.04016439616680145, 0.050570279359817505, 0.01683756150305271, 0.015455229207873344, -0.060476984828710556, -0.003914204891771078, -0.0002666866930667311, -0.0005423729890026152, -0.008317985571920872, 0.021118946373462677, -0.00916274357587099, -0.014312886632978916, 0.021176544949412346, 0.004173391964286566, -0.002269086893647909, -0.0005942703573964536, 0.007300436031073332, -0.013986502774059772, 0.008461978286504745, 0.03651658073067665, 0.026590675115585327, 0.0407019704580307, 0.04162352532148361, 0.006566072814166546, 0.01418809313327074, 0.017586322501301765, 0.019909407943487167, 0.0261106975376606, 0.014149694703519344, -0.002692665671929717, 0.03085286170244217, -0.01782631129026413, 0.03018089570105076, -0.03098725527524948, -0.03534543886780739, -0.03536463528871536, -0.02071576751768589, -0.03208160027861595, -0.0038206095341593027, 0.018603872507810593, 0.017807113006711006, -0.012210591696202755, 0.056944362819194794, -0.045040953904390335, 0.0020350986160337925, 0.0021874909289181232, -0.021848510950803757, 0.056291595101356506, 0.0247859638184309, -0.020005403086543083, 0.12402581423521042, 0.010194691829383373, 0.008769162930548191, -0.02150292880833149, -0.013333735056221485, 0.007401231210678816, -0.01956382393836975, -0.01849827729165554, -0.04442658647894859, 0.007396431174129248, 0.019410232082009315, 0.0044253794476389885, 0.010732265189290047, 0.023883609101176262, 0.01030028611421585, -0.007679617032408714, -0.01622319035232067, 0.04477216675877571, -0.008399581536650658, -0.015896808356046677, 0.033617522567510605, 0.03208160027861595, 0.026225892826914787, 0.08823879808187485, 0.018565474078059196, -0.009047549217939377, -0.020274190232157707, 0.02369161881506443, 0.0001208189787575975, -0.0373421385884285, -0.014543275348842144, -0.01903585158288479, 0.04811280220746994, -0.0033862311393022537, 0.005735713988542557, -0.06658227741718292, -0.0005870707100257277, 0.03693895787000656, 0.06715825200080872, 0.05018629878759384, -0.07038369029760361, -0.0051789418794214725, 0.012892157770693302, 0.06239688768982887, -0.0052269394509494305, -0.03615179657936096, -0.07856248319149017, 0.03624779358506203, -0.001660717185586691, 0.061014559119939804, -0.029604924842715263, 0.02891375869512558, -0.05656038224697113, -0.028107399120926857, 0.0015779213281348348, -0.0027718618512153625, -0.028529778122901917, 0.017615122720599174, -0.005721314810216427, 0.036535777151584625, 0.02933613769710064, -0.062358491122722626, -0.04469537362456322, -0.008279587142169476, -0.01063627004623413, -0.027665819972753525, -0.03517264500260353, -0.042852263897657394, 0.02849137969315052, -0.011577023193240166, 0.03505745157599449, 0.0673886388540268, 0.02211729809641838, -0.015925606712698936, 0.04861197620630264, -0.016443980857729912, -0.02338443510234356, -0.03219679370522499, 0.028644971549510956, -0.041085951030254364, -0.021522127091884613, 0.06519994884729385, 0.041277941316366196, 0.043044254183769226, -0.036286190152168274, 0.02837618626654148, -0.051607027649879456, -0.04834318906068802, 0.04458017647266388, -0.032235193997621536, 0.017538325861096382, 0.03436628729104996, -0.04208430275321007, 0.051491834223270416, 0.05417969822883606, 0.09023550152778625, 0.07660418003797531, -0.05060867592692375, -0.02939373441040516, -0.0020650969818234444, 0.024286789819598198, 0.009181941859424114, 0.01653037592768669, 0.00012959353625774384, -0.042314689606428146, 0.07522185146808624, -0.052758969366550446, -0.08363103121519089, -0.008778762072324753, -0.05625319480895996, 0.037937309592962265, -0.011346634477376938, -0.019055049866437912, 0.07226520031690598, 0.008173992857336998, 0.03551822900772095, -0.0003055347769986838, 0.09300016611814499, 0.004535773769021034, 0.07019170373678207, 0.0026230693329125643, -0.01600240170955658, 0.007622019853442907, -0.014159293845295906, 0.019717417657375336, 0.08885317295789719, -0.020485378801822662, -0.01275776419788599, -0.0044181798584759235, -0.023730017244815826, -0.012776963412761688, 0.012642569839954376, 0.007588421925902367, 0.018085498362779617, -0.029681719839572906, -0.0025510727427899837, -0.007031649351119995, -0.015733616426587105, 0.018181493505835533, -0.0034774267114698887, -0.08693327009677887, -0.01385210920125246, -0.07042209059000015, 0.009935504756867886, 0.06735024601221085, -0.012556173838675022, 0.023115647956728935, 0.024805163964629173, 0.03837888687849045, -0.029086550697684288, -0.015301637351512909, 0.062358491122722626, 0.030872061848640442, -0.030238492414355278, -0.026897858828306198, -0.06412480026483536, -0.001555122435092926, 0.05970902368426323, 0.028395384550094604, -0.050992656499147415, -0.005519724916666746, 0.041892312467098236, 0.0044757770374417305, 0.023038851097226143, -0.05460207909345627, 0.07556743174791336, 0.017394332215189934, -0.02501635253429413, 0.010578672401607037, 0.012978552840650082, -0.02588031068444252, 0.020082198083400726, 0.016635971143841743, 0.04803600534796715, 0.022366885095834732, -0.0044181798584759235, -0.018066300079226494, -0.012796161696314812, 0.04404260590672493, 0.016050400212407112, 0.03231199085712433, 0.0012587372912093997, -0.022942855954170227, 0.01807589828968048, -0.08078957349061966, 0.01794150471687317, 0.023730017244815826, -0.043159447610378265, 0.09737754613161087, 0.10152453929185867, 0.008106796070933342, -0.026533076539635658, -0.030238492414355278, 0.038858864456415176, -0.01281536091119051, 0.010828260332345963, -0.04903435707092285, 0.0035974206402897835, 0.03509585186839104, -0.03795650601387024, -0.020005403086543083, -0.03722694516181946, -0.012200991623103619, 0.07487626373767853, 0.026993853971362114, 0.03242718428373337, -0.05690596252679825, -0.019832611083984375, 0.03323354199528694, 0.038167696446180344, -0.029854511842131615, 0.015100046992301941, -0.06197451055049896, 0.043044254183769226, -0.061014559119939804, 0.05867227539420128, 0.016319187358021736, 0.000809959601610899, 0.012258589267730713, -0.04550173133611679, 0.031985606998205185, 0.046692073345184326, 0.019755816087126732, -0.046500083059072495, -0.011020250618457794, -0.03231199085712433, -0.0125177763402462, -0.004967752378433943, 0.019208641722798347, -0.01320894155651331, -0.07483787089586258, -0.008303586393594742, 0.051722221076488495, 0.014648869633674622, 0.06128334626555443, -0.011260238476097584, 0.009114746004343033, -0.050263095647096634, 0.00009742014663061127, 0.012623370625078678, -0.04143153503537178, -0.02812659740447998, -0.009633120149374008, -0.0016307187033817172, 0.004706165287643671, 0.04769042134284973, 0.006609270349144936, 0.03164002299308777, 0.020984554663300514, -0.030641673132777214, -0.047536831349134445, -0.03342553228139877, -0.02035098522901535, -0.03567182272672653, 0.0081547936424613, -0.03534543886780739, -0.04742163419723511, -0.032100800424814224, -0.015032850205898285, -0.03000810369849205, 0.020389383658766747, -0.012748164124786854, 0.03515344858169556, 0.04423459619283676, 0.017557524144649506, -0.015167243778705597, 0.01849827729165554, -0.016799163073301315, -0.00564931845292449, 0.006110095418989658, -0.03158242627978325, 0.055677223950624466, -0.04216109961271286, -0.09637919813394547, 0.021944506093859673, -0.0025486729573458433, 0.0028918557800352573, 0.05909465253353119, -0.004893356002867222, 0.02181011252105236, 0.0026350687257945538, -0.056368388235569, -0.03640138357877731, -0.016021601855754852, 0.017759114503860474, 0.015743214637041092, 0.013650519773364067, -0.01914144493639469, 0.00843797903507948, -0.017480729147791862, -0.03281116485595703, 0.06635189056396484, 0.05179901793599129, 0.0005429729353636503, 0.0014711266849189997, -0.004552572965621948, -0.017451930791139603, 0.022578073665499687, -0.020005403086543083, -0.015205642208456993, -0.014658469706773758, -0.041393134742975235, -0.007482827175408602, 0.03918524831533432, -0.044925760477781296, -0.005370932165533304, -0.0547940693795681, 0.027051450684666634, 0.03699655458331108, -0.00567811680957675, 0.041815515607595444, 0.006182091776281595, 0.01667436957359314, 0.041162747889757156, 0.07107485830783844, -0.048919159919023514, -0.07314835488796234, 0.05659877881407738, 0.03716934844851494, -0.04949513450264931, -0.04968712478876114, 0.03649738058447838, 0.025745917111635208, 0.08616530150175095, -0.01594480499625206, 0.00917714275419712, 0.05187581479549408, -0.037572525441646576, -0.02374921552836895, -0.0075596231035888195, -0.026206692680716515, -0.05237498879432678, 0.011077847331762314, -0.056214798241853714, 0.026225892826914787, 0.014802462421357632, -0.017720716074109077, 0.0029782515484839678, 0.005399730987846851, -0.015685617923736572, -0.05778912082314491, 0.052144601941108704, 0.07019170373678207, 0.04949513450264931, -0.05060867592692375, 0.04039478674530983, 0.00221028970554471, -0.00801560003310442, -0.0022318887058645487, -0.015781613066792488, 0.041277941316366196, -0.006868457421660423, -0.012796161696314812, 0.001619919203221798, -0.0016031201230362058, -0.010348283685743809, 0.030968056991696358, 0.05195261165499687, 0.0673118457198143, -0.010597871616482735, -0.04338983818888664, -0.019151045009493828, -0.062358491122722626, -0.12440979480743408, -0.03978041559457779, 0.00045897712698206306, -0.018152695149183273, 0.022635672241449356, -0.00024523778120055795, -0.03200480341911316, 0.04100915417075157, 0.010377082973718643, 0.008049198426306248, -0.04004920274019241, -0.0079580033197999, -0.03342553228139877, 0.03665097430348396, -0.017192743718624115, 0.019362235441803932, 0.024267589673399925, 0.006033299025148153, -0.02313484624028206, 0.021656520664691925, 0.007622019853442907, 0.0067244647070765495, -0.04269867017865181, -0.06009300425648689, 0.013410531915724277, -0.027070650830864906, 0.009748314507305622, 0.023346036672592163, 0.04235308989882469, -0.030392084270715714, -0.04573212191462517, 0.031371235847473145, -0.012613771483302116, 0.016443980857729912, -0.01108744740486145, -0.017586322501301765, -0.011423430405557156, -0.0019535026513040066, 0.023250041529536247, -0.03985721245408058, -0.01992860622704029, -0.020754165947437286, 0.033617522567510605, -0.047536831349134445, -0.011490627191960812, -0.0027310638688504696, -0.009666718542575836, 0.07107485830783844, -0.11465668678283691, 0.02703225240111351, -0.014082497917115688, 0.041585128754377365, -0.035940609872341156, 0.014293687418103218, -0.08601171523332596, -0.06600631028413773, 0.008495576679706573, 0.0068588582798838615, -0.03315674886107445, 0.00366701721213758, 0.009733914397656918, 0.021426131948828697, -0.05333494022488594, -0.002879856387153268, 0.053795717656612396, 0.029086550697684288, -0.01509044785052538, 0.0060380990616977215, -0.02981611341238022, 0.05740513652563095, 0.013592922128736973, -0.025073949247598648, -0.04292906075716019, -0.03584461286664009, 0.008413980714976788, -0.008740364573895931, -0.0731099545955658, -0.009954703971743584, -0.0206005722284317, 0.002101095160469413, 0.06527674943208694, -0.0032038402277976274, -0.03536463528871536, 0.005188541486859322, -0.029604924842715263, -0.0013007351662963629, 0.02344203181564808, -0.03085286170244217, 0.05037828907370567, -0.06696626543998718, -0.02879856526851654, -0.04769042134284973, -0.053795717656612396, 0.03563342243432999, 0.031083250418305397, -0.04408100247383118, 0.061628926545381546, 0.01048267725855112, 0.04937993735074997, 0.02708984911441803, -0.0313328392803669, -0.06036179140210152, -0.026763465255498886, 0.06139853969216347, -0.009359532967209816, -0.025669120252132416, -0.011461828835308552, -0.008701966144144535, -0.02526594139635563, 0.03868607059121132, 0.05083906650543213, 0.0017963104182854295, -0.004336583893746138, 0.051299843937158585, -0.033387135714292526, 0.022194093093276024, 0.032830365002155304, 0.007338833995163441, 0.041085951030254364, 0.017874309793114662, 0.026571474969387054, -0.0438506156206131, -0.012930555269122124, -0.018546275794506073, -0.024824362248182297, -0.0018107097130268812, -0.030392084270715714, -0.006254088133573532, -0.0052461386658251286, -0.028894560411572456, -0.027627423405647278, -0.028817763552069664, -0.08754763752222061, -0.03139043599367142, -0.06400960683822632, 0.004538173787295818, 0.01678956300020218, -0.02964332140982151, 0.022002102807164192, -0.035998206585645676, -0.043466635048389435, 0.015608821995556355, 0.029662521556019783, 0.030353687703609467, -0.023730017244815826, 0.04204590246081352, 0.039703622460365295, -0.0012803361751139164, 0.00627328734844923, 0.02501635253429413, -0.006628469564020634, 0.0067388638854026794, -0.05010950192809105, -0.02436358481645584, 0.01667436957359314, 0.02922094240784645, 0.019083848223090172, -0.08639569580554962, -0.021368535235524178, -0.02879856526851654, 0.021406933665275574, -0.056406788527965546, 0.006503675598651171, -0.02781941369175911, -0.012652168981730938, -0.0005627719219774008, 0.03523024544119835, 0.027973005548119545, 0.04185391217470169, -0.030603274703025818, 0.031736016273498535, 0.024152396246790886, -0.0001687415933702141, -0.002577471546828747, -0.03753412887454033, 0.023902809247374535, -0.004058197606354952, 0.0038782067131251097, -0.023710817098617554, -0.03478866443037987, -0.06304965913295746, 0.05072387307882309, -0.01967901922762394, -0.03882046416401863, 0.03680456429719925, 0.0051261442713439465, -0.05467887595295906, -0.01776871457695961, 0.04738323763012886, -0.0015767214354127645, 0.021733317524194717, 0.015810411423444748, 0.0074684275314211845, 0.0015299237566068769, -0.0021622921340167522, 0.005058947950601578, -0.008668367750942707, 0.0008033599588088691, 0.04392740875482559, 0.02077336423099041, -0.01979421265423298, 0.011778612621128559, 0.022270889952778816, 0.04676887020468712, 0.023115647956728935, -0.04761362820863724, 0.03711175173521042, 0.04319784790277481, -0.0229620561003685, -0.020734965801239014, 0.03876286745071411, -0.08708685636520386, 0.06884776800870895, 0.0490727536380291, 0.03377111628651619, 0.038359686732292175, 0.06546873599290848, -0.05018629878759384, 0.017336735501885414, -0.07491466403007507, -0.07764092832803726, -0.0631648525595665, -0.023979604244232178, -0.019487028941512108, 0.08677967637777328, 0.041085951030254364, 0.02242448180913925, 0.025611523538827896, 0.06489276140928268, 0.020331786945462227 ]
715,320
pytorch_optimizer.optimizer.adai
Adai
Disentangling the Effects of Adaptive Learning Rate and Momentum. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param stable_weight_decay: bool. perform stable weight decay. :param dampening: float. dampening for momentum. where dampening < 1, it will show some adaptive-moment behavior. :param use_gc: bool. use gradient centralization. :param eps: float. term added to the denominator to improve numerical stability.
class Adai(Optimizer, BaseOptimizer): r"""Disentangling the Effects of Adaptive Learning Rate and Momentum. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param stable_weight_decay: bool. perform stable weight decay. :param dampening: float. dampening for momentum. where dampening < 1, it will show some adaptive-moment behavior. :param use_gc: bool. use gradient centralization. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.1, 0.99), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, stable_weight_decay: bool = False, dampening: float = 1.0, use_gc: bool = False, eps: float = 1e-3, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') self.use_gc = use_gc defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'stable_weight_decay': stable_weight_decay, 'dampening': dampening, 'eps': eps, } super().__init__(params, defaults) def __str__(self) -> str: return 'Adai' @torch.no_grad() def reset(self): for group in self.param_groups: for p in group['params']: state = self.state[p] state['step'] = 0 state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) state['beta1_prod'] = torch.ones_like(p) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() param_size: int = 0 exp_avg_sq_hat_sum: float = 0.0 for group in self.param_groups: _, beta2 = group['betas'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) param_size += p.numel() state = self.state[p] if len(state) == 0: state['step'] = 0 state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) state['beta1_prod'] = torch.ones_like(p) state['step'] += 1 if self.use_gc: centralize_gradient(grad, gc_conv_only=False) bias_correction2: float = 1.0 - beta2 ** state['step'] if not group['stable_weight_decay'] and group['weight_decay'] > 0.0: self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) exp_avg_sq = state['exp_avg_sq'] exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) exp_avg_sq_hat_sum += exp_avg_sq.sum() / bias_correction2 if param_size == 0: raise ZeroParameterSizeError() exp_avg_sq_hat_mean = exp_avg_sq_hat_sum / param_size for group in self.param_groups: beta0, beta2 = group['betas'] beta0_dp: float = math.pow(beta0, 1.0 - group['dampening']) for p in group['params']: if p.grad is None: continue grad = p.grad state = self.state[p] if group['stable_weight_decay'] and group['weight_decay'] > 0.0: self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) bias_correction2: float = 1.0 - beta2 ** state['step'] exp_avg, exp_avg_sq = state['exp_avg'], state['exp_avg_sq'] exp_avg_sq_hat = exp_avg_sq / bias_correction2 beta1 = ( 1.0 - (exp_avg_sq_hat / exp_avg_sq_hat_mean).pow_(1.0 / (3.0 - 2.0 * group['dampening'])).mul_(beta0) ).clamp_(0.0, 1.0 - group['eps']) beta3 = (1.0 - beta1).pow_(group['dampening']) beta1_prod = state['beta1_prod'] beta1_prod.mul_(beta1) exp_avg.mul_(beta1).addcmul_(beta3, grad) exp_avg_hat = exp_avg.div(1.0 - beta1_prod).mul_(beta0_dp) p.add_(exp_avg_hat, alpha=-group['lr']) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.1, 0.99), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, stable_weight_decay: bool = False, dampening: float = 1.0, use_gc: bool = False, eps: float = 0.001)
[ -0.0045172846876084805, -0.047938115894794464, -0.01981346309185028, 0.01009142491966486, 0.002499769441783428, -0.011389406397938728, -0.06312399357557297, -0.05631086975336075, -0.028093868866562843, 0.017627928406000137, -0.045762840658426285, -0.0008862702525220811, 0.02152700535953045, 0.07248177379369736, -0.055243752896785736, 0.0473635159432888, 0.004668630659580231, 0.058650314807891846, 0.00790075957775116, -0.032936934381723404, -0.03667183592915535, -0.08635427802801132, -0.042068980634212494, 0.03925754129886627, -0.041186556220054626, -0.005209884140640497, 0.042151063680648804, -0.021034490317106247, -0.04744559898972511, 0.0050200605764985085, -0.005484358407557011, -0.07572416216135025, 0.023435499519109726, -0.006700254511088133, 0.02405114285647869, -0.05737798288464546, 0.018818173557519913, 0.004314635414630175, -0.08906310796737671, -0.034086134284734726, 0.045106153935194016, -0.046706829220056534, 0.05610565468668938, -0.028011783957481384, -0.0042145936749875546, 0.02138335444033146, -0.01966981217265129, 0.05832197144627571, -0.028750555589795113, -0.029530370607972145, 0.018746348097920418, -0.07843299210071564, 0.060250986367464066, 0.032649632543325424, -0.01216922141611576, 0.049374617636203766, 0.04588596895337105, -0.011758793145418167, 0.04777394235134125, -0.07531373202800751, 0.03049487993121147, -0.09210028499364853, 0.030884787440299988, -0.023312371224164963, -0.011276538483798504, -0.014693360775709152, -0.08701096475124359, -0.023886971175670624, 0.012210264801979065, 0.01903364807367325, 0.029448285698890686, -0.03035122901201248, 0.030884787440299988, 0.0018674522871151567, -0.041555944830179214, -0.029653500765562057, -0.032567545771598816, -0.03344997018575668, -0.02195795439183712, -0.05323265120387077, 0.02173221856355667, 0.024892522022128105, -0.014939618296921253, -0.030741136521100998, 0.047568727284669876, -0.0515909343957901, -0.010286378674209118, -0.024892522022128105, -0.0072132907807827, -0.04375173896551132, 0.03535846248269081, -0.024523137137293816, 0.053355779498815536, 0.040981341153383255, 0.0620158314704895, 0.03464021161198616, -0.023353414610028267, -0.05487436801195145, 0.026677889749407768, -0.026759974658489227, -0.021321790292859077, 0.021773261949419975, 0.01941329427063465, 0.04855375736951828, 0.006335998885333538, -0.07125048339366913, -0.03853929042816162, -0.03802625462412834, 0.0459270142018795, -0.05832197144627571, -0.05224762111902237, 0.0006925990455783904, -0.022737769410014153, -0.022594120353460312, -0.009578388184309006, 0.009198741056025028, -0.010958456434309483, 0.03769791126251221, -0.01532952580600977, 0.04740455746650696, 0.04707621410489082, 0.03324475511908531, -0.05109841749072075, -0.004155594389885664, 0.03593306615948677, -0.020347021520137787, 0.02189639024436474, 0.013503116555511951, 0.017361149191856384, -0.04802020266652107, -0.04802020266652107, 0.012210264801979065, -0.028750555589795113, 0.006233391351997852, 0.02018284983932972, -0.01380067691206932, -0.00032786227529868484, 0.035768892616033554, -0.040242571383714676, 0.012087135575711727, 0.03644610196352005, 0.03667183592915535, 0.009224393405020237, -0.03037175163626671, 0.01666342094540596, -0.015780998393893242, 0.024892522022128105, -0.006330868229269981, -0.018530871719121933, -0.01047620177268982, -0.0012441130820661783, -0.001157538266852498, -0.01903364807367325, 0.017104631289839745, 0.020193109288811684, -0.018274353817105293, -0.03500960022211075, 0.035112205892801285, -0.03086426667869091, -0.015185875818133354, -0.04752768576145172, -0.017443235963582993, -0.017484277486801147, -0.0027011362835764885, 0.001998276449739933, -0.0021957955323159695, -0.005504879634827375, 0.042930878698825836, -0.021321790292859077, 0.00712094409391284, -0.0053663598373532295, -0.07572416216135025, -0.014919096603989601, 0.027437184005975723, -0.03899076208472252, 0.11344259232282639, 0.012651476077735424, 0.009450129233300686, 0.010281248018145561, -0.017843402922153473, 0.0404888279736042, -0.011604881845414639, -0.055407922714948654, -0.054669152945280075, -0.030966872349381447, 0.030597487464547157, 0.01115341018885374, 0.017853664234280586, -0.02600068226456642, 0.029099421575665474, 0.010886630974709988, -0.01666342094540596, 0.02883264236152172, -0.03080270066857338, -0.03702070191502571, 0.011799835599958897, 0.015555261634290218, 0.01445736363530159, 0.06833644211292267, 0.03642557933926582, 0.01351337693631649, -0.010794284753501415, 0.014703621156513691, -0.002077797194942832, 0.017073849216103554, -0.029222549870610237, -0.032854847609996796, -0.010491592809557915, -0.035686805844306946, 0.008444578386843204, -0.06074350327253342, 0.01583230122923851, 0.05224762111902237, 0.044818855822086334, 0.035604722797870636, -0.020562496036291122, 0.03014601580798626, 0.037574779242277145, 0.06591490656137466, 0.001850778586231172, -0.0014057195512577891, -0.05766528472304344, 0.005520271137356758, 0.00020232870883774012, 0.08171642571687698, -0.014703621156513691, 0.050770074129104614, 0.026123810559511185, -0.0035912543535232544, -0.013359466567635536, 0.020972926169633865, -0.04288983717560768, -0.002778091700747609, 0.0017122587887570262, 0.07859716564416885, 0.03564576432108879, -0.03636401519179344, 0.004350548144429922, -0.028586383908987045, -0.02433844283223152, 0.0024741177912801504, -0.007859716191887856, -0.0178639255464077, 0.029468806460499763, -0.03777999430894852, 0.008131626062095165, 0.0633702501654625, 0.030556444078683853, -0.035686805844306946, -0.0065976474434137344, -0.00969125609844923, -0.026698410511016846, -0.01703280583024025, 0.0392780601978302, -0.09407034516334534, -0.023148199543356895, 0.01700202375650406, 0.034742821007966995, -0.006602777633816004, -0.0624673031270504, 0.010409506969153881, -0.017627928406000137, -0.0762166753411293, 0.05709068477153778, -0.005751137156039476, 0.06398589164018631, 0.06357546150684357, -0.024954088032245636, 0.01941329427063465, 0.02883264236152172, 0.09957008808851242, 0.061933744698762894, -0.0478149875998497, -0.0035040380898863077, -0.009793863631784916, 0.04067352041602135, 0.005802440922707319, 0.004368504509329796, -0.019762160256505013, 0.02419479377567768, 0.052042406052351, -0.03658975288271904, -0.04691204056143761, -0.003427082672715187, -0.02362019196152687, 0.020593278110027313, -0.03129521757364273, 0.028935249894857407, 0.03958588466048241, 0.027437184005975723, 0.04309505224227905, 0.001446762471459806, 0.0861080214381218, 0.0041838111355900764, 0.07465704530477524, 0.036056194454431534, 0.011204713955521584, 0.02928411401808262, -0.0009350086911581457, 0.005669051315635443, 0.06439632177352905, 0.01677628792822361, 0.02075744979083538, 0.0016404336784034967, -0.034229785203933716, -0.031992945820093155, 0.004111986141651869, 0.027950219810009003, 0.05659816786646843, 0.009239784441888332, -0.00024240967468358576, -0.029735585674643517, 0.0014890879392623901, 0.016191426664590836, -0.003996552899479866, -0.10080137848854065, 0.004158159252256155, -0.029838193207979202, 0.03244441747665405, 0.06763871014118195, -0.032423894852399826, 0.037656866014003754, 0.015811780467629433, -0.02499512955546379, -0.039524320513010025, -0.05832197144627571, 0.05709068477153778, 0.02405114285647869, -0.02144491858780384, -0.040776126086711884, -0.05290430784225464, -0.03420926257967949, 0.01279512606561184, -0.00015230766439344734, -0.04354652389883995, -0.016335077583789825, 0.017453495413064957, 0.016099080443382263, 0.01256939023733139, -0.03948327526450157, 0.04695308580994606, 0.07482121884822845, -0.030638528987765312, 0.05187823250889778, 0.0026344414800405502, -0.06644846498966217, 0.032280247658491135, 0.008552315644919872, 0.0018956692656502128, 0.019054168835282326, -0.005638269241899252, -0.007043988909572363, 0.004789194092154503, 0.09924174845218658, 0.06944459676742554, 0.01666342094540596, -0.02513878047466278, -0.015955429524183273, 0.040611956268548965, -0.0563519112765789, -0.04687099903821945, 0.011071324348449707, -0.05413559451699257, 0.06234417483210564, 0.0644373670220375, 0.006474518682807684, -0.00010669552284525707, -0.05975847318768501, 0.03868294134736061, -0.059101786464452744, 0.008608750067651272, -0.0737951472401619, -0.015206396579742432, -0.0003482234023977071, -0.038888152688741684, -0.00987594947218895, -0.028668470680713654, 0.006505300756543875, 0.05048277601599693, 0.046994127333164215, 0.045475538820028305, 0.0037862081080675125, 0.013810938224196434, 0.047486644238233566, 0.04420321062207222, -0.026062246412038803, 0.023312371224164963, -0.02136283367872238, 0.035173770040273666, -0.05319160595536232, 0.05413559451699257, 0.0022227298468351364, -0.018859215080738068, -0.0013621114194393158, -0.07034754008054733, 0.03876502439379692, 0.037574779242277145, 0.04847167432308197, -0.08237311244010925, -0.030269144102931023, -0.02029571682214737, -0.015668129548430443, 0.018818173557519913, 0.011368884705007076, -0.03057696484029293, -0.04962087422609329, 0.03695913776755333, 0.09111525118350983, -0.021793782711029053, 0.08980187773704529, -0.04030413553118706, 0.005386881530284882, -0.047281429171562195, 0.029222549870610237, -0.008126495406031609, -0.01700202375650406, 0.011615142226219177, -0.008054670877754688, -0.009911862201988697, 0.013780156150460243, 0.052206575870513916, -0.004381330218166113, 0.031069479882717133, 0.0274577047675848, 0.017658710479736328, -0.02854534238576889, -0.08569759130477905, -0.009598909877240658, -0.06513509154319763, -0.05848614126443863, 0.001423675799742341, -0.025241388007998466, -0.018623219802975655, -0.0459270142018795, -0.02152700535953045, 0.014826750382781029, 0.001929016667418182, 0.02216316945850849, 0.0312336515635252, -0.01615038327872753, 0.01955694518983364, -0.021465439349412918, 0.03636401519179344, 0.0034065612126141787, -0.007136335596442223, -0.029078898951411247, 0.04588596895337105, -0.001962363952770829, -0.06222104653716087, -0.0013287641340866685, 0.04658370092511177, 0.004768672864884138, 0.06094871461391449, 0.009373174048960209, -0.0009228240814991295, -0.020890839397907257, 0.02144491858780384, -0.014067456126213074, -0.0017930619651451707, 0.007921281270682812, 0.003293693298473954, 0.025549208745360374, -0.029674021527171135, 0.009814385324716568, -0.030043408274650574, 0.05618773773312569, 0.07691440731287003, -0.016447944566607475, -0.012148700654506683, 0.035399507731199265, 0.003019218798726797, -0.012805386446416378, 0.026862582191824913, -0.04904627427458763, -0.02204004116356373, -0.009537345729768276, 0.0025010521057993174, 0.0076852841302752495, 0.020459888502955437, -0.009911862201988697, 0.03970901295542717, -0.077201709151268, 0.007731457706540823, 0.04514719918370247, 0.019084950909018517, 0.030269144102931023, -0.00384007696993649, -0.0013159381924197078, 0.002967915264889598, 0.023209763690829277, -0.06817226856946945, -0.042356278747320175, 0.06698202341794968, 0.026698410511016846, -0.06505300849676132, -0.04157646372914314, 0.020716406404972076, 0.004912322852760553, 0.07687336206436157, -0.025302952155470848, 0.018561653792858124, -0.02195795439183712, -0.06809018552303314, -0.016509508714079857, 0.03509168699383736, -0.03049487993121147, -0.07428766041994095, 0.012661736458539963, -0.04309505224227905, 0.01583230122923851, -0.035461071878671646, -0.009465520270168781, 0.023353414610028267, -0.003811859991401434, 0.007828934118151665, -0.027129361405968666, 0.013626244850456715, 0.03913441300392151, 0.03948327526450157, -0.04797915741801262, 0.0390523262321949, 0.03513272851705551, -0.027662919834256172, -0.030884787440299988, 0.032054509967565536, 0.04666578397154808, -0.0027703961823135614, -0.010876370593905449, 0.03831355273723602, 0.00866005290299654, -0.0011581794824451208, -0.007459548301994801, 0.020942142233252525, 0.05906074121594429, -0.005530531518161297, -0.02232734113931656, 0.012856690213084221, -0.04990817606449127, -0.10293561220169067, -0.01188192144036293, -0.01420084573328495, 0.0033501272555440664, -0.000994649133644998, -0.059307001531124115, -0.005443315487354994, 0.0728922039270401, -0.02341497875750065, 0.05101633444428444, -0.036056194454431534, -0.008577967062592506, -0.021998997777700424, 0.018592435866594315, -0.024235837161540985, 0.04498302564024925, 0.049251489341259, 0.0037272090557962656, -0.02753978967666626, 0.0072030299343168736, -0.0015185875818133354, 0.015873344615101814, -0.028894206508994102, -0.044162169098854065, -0.006797731388360262, -0.035112205892801285, 0.011738271452486515, 0.03115156665444374, 0.022081084549427032, 0.014272671192884445, -0.034455519169569016, 0.02753978967666626, -0.02753978967666626, -0.04120707884430885, -0.010240205563604832, -0.035112205892801285, -0.05918387323617935, 0.014826750382781029, -0.006982424296438694, -0.015021704137325287, 0.004743020981550217, -0.01568865031003952, 0.06427319347858429, -0.03624088689684868, -0.028093868866562843, -0.021629611030220985, 0.038005731999874115, 0.034455519169569016, -0.05323265120387077, 0.05442289263010025, 0.00996316596865654, -0.0008888354641385376, -0.03593306615948677, 0.040242571383714676, -0.011132888495922089, -0.04325922206044197, -0.02854534238576889, 0.053807251155376434, -0.04933357238769531, 0.025549208745360374, 0.037349045276641846, 0.024748872965574265, -0.020377803593873978, -0.013123469427227974, 0.04514719918370247, 0.005150884855538607, 0.018459048122167587, 0.010214553214609623, 0.003960640635341406, 0.00801875814795494, 0.03427082672715187, -0.05035964772105217, -0.03131573647260666, -0.01510378997772932, -0.011769053526222706, -0.046050142496824265, -0.03020757995545864, -0.03191085904836655, -0.00824449397623539, 0.034599170088768005, 0.08315292745828629, 0.008013627491891384, -0.005602356977760792, 0.008521533571183681, -0.008957614190876484, 0.02384592965245247, -0.0009247480193153024, -0.0338398776948452, 0.024112707003951073, -0.08701096475124359, -0.008901180699467659, -0.014919096603989601, 0.01140992809087038, 0.014662578701972961, 0.0017122587887570262, -0.025015652179718018, 0.027067797258496284, 0.02688310295343399, 0.0553668811917305, 0.017843402922153473, -0.028504298999905586, -0.03349101170897484, 0.018418004736304283, 0.040406741201877594, -0.01464205700904131, -0.004312070552259684, 0.00007410970283672214, -0.01732010580599308, -0.01637611910700798, 0.003978596534579992, 0.03710278868675232, 0.021629611030220985, -0.017658710479736328, 0.018274353817105293, -0.05549000948667526, -0.018715566024184227, 0.0014493276830762625, 0.006171827204525471, 0.009167958982288837, 0.06238521635532379, 0.015739955008029938, -0.03193138167262077, -0.004324896261096001, -0.01438553910702467, 0.01209739688783884, 0.006012785714119673, -0.023066112771630287, 0.00134030741173774, -0.022512033581733704, -0.0035861239302903414, 0.019967373460531235, 0.030248621478676796, -0.09883131831884384, -0.03295745328068733, -0.05146780610084534, 0.019536424428224564, 0.016365859657526016, 0.018099922686815262, 0.01695072092115879, -0.03117208741605282, -0.01915677636861801, -0.013359466567635536, 0.05602356791496277, 0.03956536203622818, 0.010168380104005337, -0.01145097054541111, 0.024666786193847656, -0.03673340007662773, -0.015514219179749489, 0.010794284753501415, 0.027129361405968666, -0.027273012325167656, -0.06037411466240883, -0.015483436174690723, 0.013503116555511951, -0.011502274312078953, 0.06312399357557297, -0.08561550080776215, -0.04477781057357788, -0.008829355239868164, -0.0022470990661531687, -0.061851661652326584, 0.002870438387617469, -0.0017238020664080977, -0.04555762559175491, 0.006187218241393566, 0.04239732399582863, 0.0733436718583107, 0.01072245929390192, 0.009757950901985168, 0.00040946711669676006, -0.030043408274650574, -0.0002177197893615812, 0.022368384525179863, 0.00008384937245864421, 0.007582677062600851, 0.05048277601599693, 0.009480911307036877, 0.029099421575665474, -0.024071665480732918, -0.03911389037966728, 0.06993710994720459, -0.01571943238377571, 0.032341811805963516, 0.030843744054436684, -0.005320186726748943, -0.05975847318768501, -0.05216553434729576, -0.013872502371668816, -0.014724142849445343, 0.04440842568874359, -0.021137097850441933, 0.04151489958167076, 0.021055011078715324, -0.006069219671189785, 0.0202444139868021, -0.01792548969388008, 0.0006380889681167901, 0.05089320242404938, -0.0066951243206858635, 0.02144491858780384, 0.0312336515635252, 0.003570732893422246, 0.03650766611099243, -0.034599170088768005, -0.01013246737420559, -0.010009339079260826, 0.0463784858584404, -0.02267620526254177, -0.037800516933202744, 0.04223315045237541, -0.044244252145290375, 0.05167302116751671, 0.012805386446416378, 0.02281985618174076, 0.04986713081598282, 0.07753004878759384, -0.048143330961465836, 0.029694542288780212, -0.04609118402004242, -0.0795411542057991, -0.1060548722743988, 0.028524819761514664, -0.035604722797870636, 0.0733436718583107, 0.012764343991875648, -0.012723300606012344, -0.005545922555029392, 0.017956271767616272, 0.015237178653478622 ]
715,322
pytorch_optimizer.optimizer.adai
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.1, 0.99), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, stable_weight_decay: bool = False, dampening: float = 1.0, use_gc: bool = False, eps: float = 1e-3, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') self.use_gc = use_gc defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'stable_weight_decay': stable_weight_decay, 'dampening': dampening, 'eps': eps, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.1, 0.99), weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, stable_weight_decay: bool = False, dampening: float = 1.0, use_gc: bool = False, eps: float = 0.001)
[ 0.013901107013225555, -0.04371658340096474, -0.026095733046531677, -0.01550213061273098, -0.050082333385944366, -0.022375987842679024, -0.09073108434677124, -0.03376530855894089, -0.017544155940413475, 0.019787507131695747, -0.04176084324717522, 0.03949831798672676, 0.014917325228452682, 0.08076063543558121, -0.04939207062125206, 0.04525049775838852, 0.014783107675611973, 0.017937220633029938, 0.005440605338662863, 0.000591695832554251, 0.0028113790322095156, -0.012482235208153725, -0.03251900151371956, 0.10852450132369995, 0.006221943534910679, 0.031962957233190536, -0.003695776918902993, 0.003125352319329977, -0.03414878621697426, 0.018205655738711357, 0.021014638245105743, -0.015032368712127209, -0.0050475397147238255, 0.05161624774336815, 0.049200329929590225, -0.016489587724208832, -0.009366469457745552, 0.013143735937774181, -0.07397305965423584, 0.03434052690863609, 0.06833592057228088, -0.04337145388126373, 0.07098192721605301, -0.045557282865047455, -0.021359769627451897, -0.0007046423270367086, 0.02958538942039013, 0.05384042486548424, -0.0078852828592062, -0.03447474539279938, 0.01980667933821678, -0.03541426733136177, 0.025309601798653603, -0.009673252701759338, -0.05138615891337395, 0.046707719564437866, 0.04605580493807793, 0.06695540249347687, 0.034187134355306625, 0.023142945021390915, 0.012348017655313015, -0.04045701399445534, 0.024408426135778427, -0.020592812448740005, 0.006955347023904324, -0.009366469457745552, -0.09318535029888153, -0.017045632004737854, 0.022165074944496155, 0.03568270429968834, 0.1095215454697609, -0.005033159162849188, -0.021244725212454796, 0.02904851920902729, -0.019106831401586533, -0.0008849971927702427, -0.08137420564889908, -0.04954546317458153, -0.0598226934671402, -0.010353927500545979, 0.05552773177623749, 0.04410006105899811, -0.02279781550168991, -0.05495251342654228, 0.02948952093720436, -0.03911483660340309, -0.037504225969314575, -0.05096433311700821, 0.021609030663967133, 0.024235859513282776, -0.05859556049108505, -0.01788928546011448, 0.02116803079843521, -0.019269809126853943, 0.07811462879180908, 0.0002293383004143834, 0.01292323600500822, -0.05430059880018234, 0.026402516290545464, -0.0068594771437346935, -0.018359048292040825, -0.0058288779109716415, -0.05092598497867584, 0.004786294884979725, 0.02567390538752079, -0.03915318474173546, -0.04617084935307503, -0.0332859605550766, 0.03901896998286247, -0.07707923650741577, -0.026191601529717445, 0.05380207672715187, -0.020209332928061485, 0.026076558977365494, -0.04851006716489792, 0.03127269819378853, 0.01462971605360508, 0.016997698694467545, 0.007008075248450041, 0.012434300035238266, 0.021628204733133316, 0.03085087053477764, -0.03529922291636467, 0.04624754562973976, 0.04693780466914177, -0.016249913722276688, 0.010756580159068108, 0.00329791777767241, 0.01610611006617546, -0.01332588866353035, 0.03727414086461067, -0.002016858896240592, -0.042834583669900894, -0.02093794196844101, 0.02116803079843521, -0.024120816960930824, -0.0019461549818515778, 0.06189347803592682, -0.025578036904335022, 0.010037558153271675, 0.0566781684756279, 0.014188716188073158, 0.035280048847198486, -0.01833028718829155, -0.006471205037087202, 0.008906295523047447, -0.017045632004737854, -0.03713992238044739, -0.014869390986859798, 0.043985020369291306, 0.02768716961145401, 0.011523538269102573, -0.024945296347141266, 0.03807944431900978, -0.0005350727587938309, -0.047244589775800705, 0.0072046080604195595, -0.005900780204683542, -0.007851728238165379, 0.017649611458182335, -0.028645867481827736, 0.02795560471713543, 0.024331729859113693, -0.03938327357172966, -0.004659267608076334, 0.01871376484632492, -0.03435970097780228, 0.010727819986641407, -0.003647842211648822, -0.020113462582230568, 0.002971960697323084, -0.09149803966283798, -0.03702487796545029, 0.02762964740395546, -0.0035208147019147873, 0.050082333385944366, 0.031349390745162964, -0.0054262252524495125, -0.004980430938303471, -0.01871376484632492, 0.05886399745941162, -0.012654800899326801, -0.02469603531062603, -0.0701766237616539, 0.021033812314271927, 0.01394904125481844, -0.03361191600561142, 0.055182598531246185, -0.04183753579854965, 0.027284516021609306, 0.052459899336099625, 0.010977081023156643, 0.01394904125481844, 0.023737337440252304, -0.008839186280965805, 0.013306714594364166, 0.03953666612505913, -0.01674843765795231, -0.015109064988791943, 0.0700615793466568, 0.06902618706226349, 0.02137894369661808, 0.022778641432523727, -0.025923166424036026, 0.031138479709625244, -0.00646161800250411, -0.014802281744778156, -0.0017184644239023328, -0.01495567336678505, -0.030218129977583885, -0.006864270661026239, -0.023085424676537514, 0.0470145009458065, 0.029125215485692024, -0.008896708488464355, -0.048931896686553955, -0.009922513738274574, 0.0282815620303154, 0.003659825772047043, -0.00511464849114418, 0.0868196040391922, -0.03474317863583565, -0.0183878093957901, -0.003829994471743703, 0.04183753579854965, 0.022989554330706596, 0.034513093531131744, -0.03710157424211502, -0.07117366790771484, 0.015598000027239323, -0.014974847435951233, -0.03570187836885452, -0.03272991627454758, -0.0045202565379440784, 0.036967355757951736, -0.003307504579424858, -0.03786853328347206, 0.04248945042490959, -0.0870496854186058, -0.038328707218170166, 0.05756016820669174, 0.029182737693190575, -0.0006974520510993898, -0.01756333000957966, 0.017103154212236404, 0.00862347986549139, 0.035663530230522156, 0.010095079429447651, -0.05276668444275856, -0.0233922079205513, -0.028032300993800163, -0.021014638245105743, 0.0004218266985844821, 0.042834583669900894, -0.05809703841805458, 0.01572263054549694, 0.01963411457836628, -0.009663665667176247, 0.013508040457963943, -0.011542712338268757, -0.008776871487498283, 0.0132683664560318, -0.022510206326842308, 0.09088447690010071, 0.01354638859629631, 0.02626829780638218, 0.0037365215830504894, -0.013565562665462494, 0.021609030663967133, 0.008556370623409748, 0.13475444912910461, 0.02279781550168991, -0.003187667578458786, 0.0022073998115956783, -0.017659198492765427, -0.024945296347141266, -0.0032859339844435453, -0.02431255578994751, -0.004251821432262659, 0.05107937753200531, 0.03432135283946991, -0.04072544723749161, 0.014505085535347462, 0.000020952773411408998, 0.004239837639033794, -0.0019425598438829184, -0.015511717647314072, 0.023257989436388016, 0.010037558153271675, 0.01368060614913702, 0.0015854451339691877, 0.0073244450613856316, 0.07761611044406891, 0.02147481217980385, 0.10476640611886978, -0.024983644485473633, 0.04532719403505325, -0.008383804932236671, 0.06929461658000946, -0.0015003607841208577, 0.055029209703207016, -0.042297713458538055, 0.0463242381811142, 0.004441163968294859, -0.040226925164461136, -0.03313256800174713, 0.03683314099907875, 0.010660710744559765, 0.040763795375823975, 0.05000563710927963, 0.033592741936445236, 0.010526493191719055, 0.056217994540929794, 0.022433510050177574, 0.03844375163316727, -0.0671471357345581, 0.002049214905127883, -0.06450113654136658, 0.03085087053477764, 0.04417675733566284, -0.007530564907938242, 0.034839048981666565, 0.007473043166100979, -0.007175846956670284, -0.07462497800588608, -0.053878773003816605, 0.022759467363357544, 0.02952786721289158, -0.031694523990154266, -0.013594323769211769, -0.04755137115716934, -0.006835509557276964, 0.016681328415870667, -0.033151742070913315, -0.05104102939367294, 0.007190227508544922, 0.008992577902972698, 0.043103016912937164, -0.010152601636946201, -0.03976675122976303, 0.09525613486766815, -0.015923958271741867, -0.015387087129056454, 0.04214432090520859, -0.017007285729050636, -0.03965170681476593, 0.006873857695609331, -0.02573142759501934, 0.04107058048248291, -0.001006032689474523, -0.007127912249416113, 0.012942410074174404, -0.0005982868606224656, 0.10476640611886978, 0.035816919058561325, -0.026843516156077385, -0.012146690860390663, 0.0007435893639922142, 0.03186708688735962, -0.04597910866141319, -0.03742752969264984, -0.002926422515884042, -0.04233606159687042, 0.05767521262168884, 0.022932032123208046, -0.009457546286284924, 0.015109064988791943, -0.04513545706868172, 0.020957116037607193, 0.0015854451339691877, 0.020746203139424324, -0.06940966099500656, -0.02496447041630745, -0.005910367239266634, 0.01980667933821678, -0.018368635326623917, -0.04241275414824486, 0.008426946587860584, 0.057253386825323105, 0.007846934720873833, 0.011849494650959969, 0.006912205368280411, 0.05084928870201111, 0.035375919193029404, 0.018732938915491104, -0.024120816960930824, -0.0007621641270816326, 0.018627483397722244, 0.07558367401361465, -0.007247749250382185, 0.001626189798116684, -0.003029482439160347, 0.023890729993581772, -0.01474476046860218, -0.058557212352752686, 0.03882722929120064, 0.03792605549097061, 0.0330558717250824, -0.041799191385507584, -0.03926822915673256, -0.010651123709976673, -0.04122397303581238, -0.015214521437883377, 0.043985020369291306, -0.021743247285485268, -0.0031732870265841484, 0.017036044970154762, 0.038041096180677414, 0.010162188671529293, 0.0662267878651619, -0.014255824498832226, -0.003242792561650276, -0.04107058048248291, -0.002109133405610919, -0.03520335257053375, -0.033266786485910416, -0.0031637002248317003, -0.010842863470315933, 0.04214432090520859, -0.012002886272966862, 0.024542642757296562, 0.009797883220016956, 0.07182557880878448, 0.008911089040338993, 0.07132706046104431, 0.04720624163746834, -0.023948252201080322, 0.003815614152699709, -0.0061116935685276985, -0.05525929480791092, -0.04494371637701988, -0.010123840533196926, -0.039575014263391495, -0.04064875468611717, 0.027188647538423538, 0.01887674443423748, -0.0025453404523432255, -0.0010317976120859385, 0.008968610316514969, -0.03106178343296051, -0.0004598749801516533, -0.059976086020469666, 0.004424386657774448, -0.03409126400947571, -0.05537433922290802, -0.03136856481432915, 0.014543433673679829, -0.015569239854812622, -0.03873135894536972, -0.011619407683610916, 0.020592812448740005, 0.013488867320120335, 0.04663102328777313, -0.0040768589824438095, -0.027552952989935875, -0.03133021667599678, -0.016796370968222618, -0.02659425511956215, 0.03687148541212082, -0.009284980595111847, 0.04417675733566284, -0.027917256578803062, -0.016777196899056435, -0.007405934389680624, -0.0530734658241272, 0.026939386501908302, 0.0665719211101532, -0.009217871353030205, -0.00521051837131381, 0.0073244450613856316, 0.007247749250382185, 0.01137014664709568, 0.037350837141275406, -0.024945296347141266, -0.044368498027324677, 0.020439419895410538, -0.024350903928279877, -0.024983644485473633, -0.0029216292314231396, -0.023679817095398903, 0.0009185515809804201, -0.0463242381811142, 0.011734451167285442, 0.07753941416740417, 0.0073627931997179985, -0.013805236667394638, -0.05794364586472511, 0.007008075248450041, 0.019864201545715332, 0.04444519430398941, -0.08183437585830688, -0.017553742974996567, 0.03085087053477764, 0.047129545360803604, -0.038156140595674515, 0.003484863555058837, 0.024600164964795113, 0.018895918503403664, 0.031196000054478645, 0.01947113685309887, 0.01264521386474371, -0.034570615738630295, -0.04693780466914177, -0.022222597151994705, 0.028319910168647766, -0.05199972540140152, -0.09372221678495407, 0.006106900051236153, -0.032288916409015656, 0.0002500101982150227, -0.0175153948366642, -0.014898151159286499, -0.01745787262916565, 0.00467844121158123, -0.030333172529935837, -0.03062078170478344, -0.038156140595674515, 0.060129474848508835, -0.005584409926086664, -0.03644965961575508, 0.05407050997018814, 0.06081973761320114, 0.04463693127036095, -0.034781526774168015, 0.008383804932236671, 0.041415710002183914, 0.018138548359274864, -0.03389952704310417, 0.08359838277101517, 0.02252938039600849, 0.004270995035767555, -0.05848051607608795, -0.048279982060194016, 0.038328707218170166, 0.00405289139598608, 0.028799258172512054, 0.018359048292040825, -0.025769775733351707, -0.044138409197330475, -0.037178270518779755, 0.01495567336678505, 0.0184453297406435, 0.0191451795399189, -0.040111884474754333, -0.009980035945773125, 0.012415125966072083, -0.0299113467335701, 0.07420314848423004, -0.04935372248291969, -0.01746745966374874, 0.024887774139642715, -0.022011684253811836, -0.04110892862081528, 0.017256546765565872, 0.028051475062966347, -0.017429111525416374, 0.01082368940114975, -0.0026340200565755367, 0.0531885102391243, 0.02093794196844101, -0.030122259631752968, -0.006878651212900877, -0.017582504078745842, 0.007420314941555262, -0.004903735127300024, 0.00044549451558850706, 0.012041234411299229, -0.024024946615099907, -0.06174008920788765, 0.016288261860609055, 0.004412402864545584, 0.0005797120975330472, 0.01801391690969467, 0.00448909867554903, -0.04202927649021149, 0.012367191724479198, -0.018349461257457733, 0.022126726806163788, -0.052306510508060455, -0.041914232075214386, 0.006883444730192423, -0.02996886894106865, -0.11765129864215851, -0.0728609710931778, 0.03271074220538139, -0.007377173285931349, -0.05928582325577736, 0.006682117935270071, -0.002074380638077855, 0.016959350556135178, -0.000998243223875761, 0.04904693737626076, -0.021091334521770477, -0.01887674443423748, -0.043103016912937164, 0.015636349096894264, -0.03911483660340309, -0.009011751972138882, 0.04160745069384575, 0.06676366180181503, -0.07182557880878448, -0.005833671428263187, 0.03067830391228199, 0.0036334616597741842, 0.010123840533196926, -0.011427667923271656, -0.011945364996790886, 0.04202927649021149, 0.03399539738893509, -0.05859556049108505, 0.008772077970206738, -0.023047076538205147, -0.002089959569275379, -0.020209332928061485, -0.004443560726940632, -0.045825716108083725, -0.04080214351415634, 0.01626908779144287, 0.07397305965423584, -0.01381482370197773, 0.007137499283999205, -0.034724004566669464, -0.006571867968887091, 0.0429496243596077, -0.06350409239530563, -0.03552931174635887, 0.006672531366348267, -0.13084296882152557, 0.00020222515740897506, -0.03857796639204025, 0.038041096180677414, -0.03292165696620941, -0.0004769517690874636, -0.0563330352306366, 0.00363825517706573, 0.026670951396226883, 0.0281665176153183, 0.013661432079970837, 0.029278606176376343, -0.019288983196020126, 0.014092845842242241, 0.06507635116577148, -0.005200931336730719, -0.006011030171066523, -0.012002886272966862, -0.04459858313202858, -0.02158985659480095, -0.0026915417984128, 0.039728403091430664, 0.03754257410764694, -0.02431255578994751, 0.04877850413322449, -0.04456023871898651, -0.005824084393680096, -0.01455302070826292, 0.0019329728092998266, 0.022222597151994705, 0.023852381855249405, 0.05721503868699074, -0.029623737558722496, -0.029201911762356758, -0.017477046698331833, 0.049085285514593124, 0.01833028718829155, 0.00028131765429861844, -0.000893385789822787, -0.033918701112270355, -0.002357196295633912, -0.02404412068426609, -0.012626039795577526, -0.060628000646829605, -0.009366469457745552, -0.04835667833685875, 0.0038923099637031555, 0.01436128094792366, 0.01205082144588232, -0.05848051607608795, -0.030333172529935837, 0.011811147443950176, -0.01717985048890114, 0.05315016210079193, 0.04720624163746834, -0.0023775685112923384, -0.046976152807474136, 0.022836163640022278, -0.001030599232763052, -0.07811462879180908, 0.03976675122976303, -0.018963027745485306, -0.03159865364432335, -0.056217994540929794, -0.002136695897206664, 0.021244725212454796, -0.002629226539283991, 0.02801312692463398, -0.0463242381811142, -0.05966930091381073, -0.07462497800588608, 0.012501409277319908, -0.032442305237054825, -0.010133427567780018, -0.005704247392714024, -0.054530687630176544, 0.05280503258109093, -0.00932812225073576, 0.033592741936445236, 0.010881210677325726, -0.005263246595859528, 0.013536801561713219, -0.0436398871243, 0.03441722318530083, 0.046362586319446564, 0.028492474928498268, -0.06741557270288467, -0.013565562665462494, 0.031406912952661514, 0.02686269022524357, -0.01714150235056877, -0.05292007327079773, 0.011887842789292336, -0.027437908574938774, -0.0011965737212449312, 0.03040986880660057, -0.01637454517185688, 0.016278674826025963, -0.07953350245952606, -0.020055942237377167, 0.013776476494967937, 0.040763795375823975, -0.026575081050395966, 0.05123277008533478, 0.022663597017526627, -0.025021992623806, -0.007698337081819773, 0.0007543747196905315, -0.034455571323633194, 0.05430059880018234, 0.009265806525945663, 0.06707043945789337, 0.06760731339454651, 0.008201653137803078, 0.03399539738893509, -0.04597910866141319, -0.009208285249769688, -0.00414876127615571, 0.04540389031171799, -0.008786458522081375, -0.022260945290327072, 0.07071349024772644, -0.013488867320120335, -0.007688750047236681, -0.013565562665462494, 0.014543433673679829, 0.030371520668268204, 0.06887279450893402, -0.04241275414824486, 0.024005772545933723, -0.024983644485473633, -0.0800703763961792, -0.1106719821691513, -0.00919390469789505, -0.04084049165248871, 0.07450993359088898, 0.017064806073904037, 0.007473043166100979, 0.022318465635180473, 0.04456023871898651, 0.011408494785428047 ]
715,325
pytorch_optimizer.optimizer.adai
__str__
null
def __str__(self) -> str: return 'Adai'
(self) -> str
[ -0.05033294856548309, -0.014939392916858196, 0.03179102763533592, -0.0070471251383423805, 0.0011353938607499003, -0.05074271559715271, 0.019361453130841255, 0.014367427676916122, 0.07799216359853745, -0.08509477972984314, -0.06105516478419304, 0.007614822126924992, -0.018900465220212936, 0.026156742125749588, -0.004644016735255718, -0.00973194744437933, -0.005497696343809366, -0.01167833711951971, -0.007708726450800896, 0.006274545099586248, -0.0023092033807188272, 0.017466284334659576, 0.014324743300676346, -0.008451428264379501, -0.030476361513137817, 0.06921634078025818, 0.0019389197696000338, -0.023220084607601166, -0.017978491261601448, 0.025166474282741547, 0.011072224006056786, -0.06429914385080338, 0.021939564496278763, 0.004129675216972828, -0.033549606800079346, 0.01359057892113924, -0.03943999856710434, -0.0020691058598458767, -0.059074629098176956, -0.025149401277303696, 0.00553184375166893, 0.01852484792470932, -0.016271132975816727, -0.019361453130841255, -0.028290942311286926, -0.028000690042972565, -0.018354110419750214, 0.03626430779695511, -0.01849070005118847, -0.01876387745141983, 0.0003278663207311183, -0.005975757259875536, -0.020573677495121956, 0.008494111709296703, -0.026378698647022247, 0.021700534969568253, 0.014819877222180367, -0.004985488951206207, -0.029964152723550797, 0.03213249891996384, -0.04640602320432663, -0.055352583527565, 0.054225727915763855, -0.03947414457798004, -0.014375964179635048, 0.025559166446328163, -0.017099201679229736, 0.03988391160964966, 0.041249796748161316, 0.026088448241353035, 0.04958171024918556, -0.05688920617103577, 0.018166301771998405, 0.026003079488873482, 0.03201298415660858, -0.028034837916493416, -0.06877242773771286, 0.024107910692691803, 0.005297082010656595, -0.05135736241936684, 0.043879128992557526, -0.013991808518767357, -0.05743556097149849, -0.010218544863164425, -0.02381766028702259, -0.07819704711437225, -0.03752775490283966, -0.05811850726604462, -0.023629851639270782, 0.004027233459055424, -0.0046653589233756065, -0.024705486372113228, -0.02238347940146923, 0.07806046307086945, -0.04633772745728493, 0.0037967399694025517, 0.025115253403782845, -0.03286666423082352, 0.04766946658492088, 0.013129591941833496, -0.004814752843230963, 0.020983444526791573, -0.010551479645073414, 0.025559166446328163, -0.06221616640686989, -0.06078198552131653, -0.03121052496135235, 0.016569919884204865, 0.02620796300470829, 0.01248079538345337, -0.057128239423036575, -0.028734855353832245, 0.030732465907931328, 0.012523479759693146, 0.01501622423529625, -0.05630870535969734, 0.010440501384437084, -0.005630016792565584, 0.03725457563996315, -0.004294008482247591, 0.03633260354399681, 0.0025717096868902445, -0.04975244775414467, -0.047020670026540756, 0.051835425198078156, 0.0697968453168869, -0.06467476487159729, -0.023868881165981293, 0.023134715855121613, -0.028256794437766075, 0.03903023153543472, 0.012634458020329475, -0.04039611667394638, -0.0073587181977927685, 0.08714361488819122, -0.005224518943578005, 0.05644529312849045, 0.028734855353832245, 0.02887144312262535, 0.1348813772201538, -0.018695583567023277, 0.0021960907615721226, 0.06921634078025818, 0.01674065738916397, 0.0228103194385767, -0.009885609149932861, -0.0360935740172863, 0.047259703278541565, -0.026139669120311737, -0.017910197377204895, 0.03365204855799675, 0.03343009203672409, 0.01311251800507307, 0.011353938840329647, -0.017483357340097427, 0.0018812963971868157, -0.02376643940806389, -0.015443063341081142, 0.020129764452576637, -0.035956982523202896, -0.010884414426982403, -0.03940584883093834, -0.018815098330378532, 0.017141886055469513, -0.0014352487633004785, 0.008946562185883522, -0.008558138273656368, 0.04227421432733536, 0.031654439866542816, 0.00643674423918128, -0.06948951631784439, -0.07307497411966324, -0.09076321125030518, 0.05463549494743347, -0.01645040512084961, 0.01563940942287445, 0.012199081480503082, 0.08236300945281982, 0.04756702482700348, -0.03653748705983162, 0.004767800681293011, 0.02497866377234459, -0.049206092953681946, 0.026088448241353035, 0.06433328986167908, -0.040737591683864594, 0.029383651912212372, 0.04521087184548378, 0.026839686557650566, -0.001973066944628954, 0.00875875260680914, 0.020624898374080658, -0.05214275047183037, -0.01901998184621334, -0.02069319225847721, -0.04548404738306999, 0.006697116419672966, -0.05357693135738373, -0.0053611076436936855, 0.003216237761080265, 0.006961756851524115, 0.03769848868250847, -0.022776171565055847, 0.028956811875104904, 0.06621138751506805, 0.0074312807992100716, -0.00487451022490859, -0.015272327698767185, -0.003404047340154648, -0.058050211519002914, 0.03588869050145149, 0.021939564496278763, -0.0013221362605690956, 0.014546699821949005, 0.026276256889104843, -0.042444948107004166, 0.0006808094913139939, -0.00975755788385868, 0.005834899842739105, 0.029161695390939713, 0.044596221297979355, -0.01261738408356905, 0.01383814588189125, -0.04230836033821106, -0.000625853834208101, -0.0017959284596145153, 0.021973712369799614, 0.007209324277937412, -0.008579479530453682, -0.008669116534292698, -0.009629505686461926, -0.07546527683734894, -0.02550794556736946, 0.03133004158735275, 0.03413011133670807, 0.04142053425312042, -0.047225553542375565, -0.000035481058148434386, -0.07341644167900085, -0.03988391160964966, 0.004178761504590511, 0.024210352450609207, 0.000005052048891229788, 0.0324568971991539, 0.023629851639270782, -0.044835250824689865, -0.03493256866931915, 0.01392351370304823, -0.011345401406288147, -0.056103821843862534, 0.04746458679437637, -0.05245007202029228, -0.019310232251882553, -0.017005296424031258, -0.025644535198807716, -0.0576404444873333, -0.01925901137292385, 0.025183547288179398, -0.0020669717341661453, -0.00528427679091692, -0.06627967953681946, 0.014239375479519367, -0.04951341450214386, 0.03633260354399681, -0.014273522421717644, 0.03585454076528549, -0.007345912978053093, 0.04063514992594719, 0.045791372656822205, -0.018200449645519257, 0.08570943027734756, -0.004319618921726942, -0.037357017397880554, 0.018183374777436256, -0.012916171923279762, 0.0053611076436936855, 0.0005511568742804229, 0.04903535544872284, -0.10189519822597504, -0.03317398950457573, -0.005715384613722563, -0.027488483116030693, -0.009569748304784298, 0.009219739586114883, -0.018866319209337234, -0.07485062628984451, 0.021939564496278763, 0.005881852470338345, -0.00900631956756115, 0.02473963424563408, 0.07505550980567932, 0.0075593325309455395, 0.002247311407700181, 0.02473963424563408, 0.017449211329221725, 0.03467646613717079, 0.049171943217515945, 0.043605953454971313, -0.005796484183520079, -0.025610387325286865, -0.021495651453733444, -0.0025332942605018616, 0.004383644554764032, -0.02451767772436142, -0.07519210129976273, -0.023937175050377846, -0.043162040412425995, 0.008506917394697666, 0.01489670854061842, 0.004095527809113264, -0.03225201368331909, 0.015460137277841568, 0.036947254091501236, 0.09588529169559479, 0.002437255112454295, 0.061464931815862656, -0.01248079538345337, -0.003406181465834379, 0.02233225852251053, 0.055215995758771896, -0.05152809992432594, 0.02882022224366665, -0.04162541776895523, -0.01033805962651968, 0.017858976498246193, -0.0035491727758198977, 0.009655116125941277, 0.05794776976108551, 0.038108255714178085, 0.010099029168486595, -0.04463036730885506, -0.03541062772274017, 0.015238180756568909, -0.03684481233358383, -0.039303407073020935, 0.021563947200775146, 0.020863929763436317, -0.010722215287387371, -0.015545505098998547, -0.032337382435798645, 0.061908844858407974, 0.014768657274544239, -0.02096637152135372, 0.029400724917650223, 0.027368968352675438, 0.02240055240690708, -0.056616030633449554, -0.01995902881026268, 0.015665020793676376, 0.01526379119604826, -0.00973194744437933, -0.029708050191402435, 0.03892778977751732, 0.021512726321816444, 0.03032269887626171, -0.00336349755525589, -0.019241938367486, 0.05091344937682152, -0.009962440468370914, 0.004541575442999601, -0.04107906296849251, -0.09711459279060364, 0.005749532021582127, 0.03199591115117073, -0.015383305959403515, -0.0011257899459451437, -0.0006274544866755605, -0.019788293167948723, 0.04538160562515259, -0.04640602320432663, -0.010329523123800755, 0.017372379079461098, -0.021256621927022934, -0.016236985102295876, -0.027061643078923225, 0.0360594242811203, 0.05306472256779671, 0.03262763470411301, -0.04889876767992973, 0.02282739244401455, 0.030886126682162285, 0.004541575442999601, 0.016971150413155556, 0.06300155073404312, 0.011097834445536137, -0.02692505344748497, 0.033293504267930984, 0.01500768680125475, -0.009655116125941277, 0.0037519217003136873, 0.009766094386577606, -0.03657163307070732, -0.028086058795452118, -0.008259350433945656, -0.05992830544710159, -0.09226568788290024, -0.01895168609917164, -0.015058907680213451, -0.056137967854738235, 0.027027495205402374, 0.017910197377204895, -0.026549434289336205, 0.018576066941022873, -0.004225714132189751, -0.05169883742928505, 0.08823632448911667, 0.02209322713315487, 0.012113713659346104, -0.04012294113636017, 0.0010564285330474377, 0.005309887230396271, -0.011191739700734615, -0.04992318153381348, -0.04835241287946701, 0.07519210129976273, 0.029229989275336266, 0.001476865727454424, 0.002339082071557641, -0.0408400297164917, -0.0014918050728738308, -0.020027322694659233, 0.02622503601014614, 0.0023582899011671543, 0.06761142611503601, 0.003850094974040985, 0.011345401406288147, 0.021461505442857742, 0.05105004087090492, 0.057572152465581894, -0.04613284394145012, -0.03191054239869118, -0.0036473460495471954, -0.015238180756568909, -0.04671334847807884, 0.019173642620444298, -0.007034319918602705, -0.0006391925853677094, -0.03517159819602966, -0.029656829312443733, 0.013897903263568878, 0.014410111121833324, -0.06921634078025818, 0.00006305891292868182, 0.04623528569936752, 0.027488483116030693, -0.04237665608525276, -0.04671334847807884, 0.007192250341176987, 0.05791362375020981, 0.0016646751901134849, 0.023851808160543442, 0.03803996369242668, 0.02021513320505619, -0.04060100018978119, 0.04452792555093765, -0.03266178071498871, -0.0010372207034379244, -0.03582039475440979, 0.01537476945668459, 0.028700707480311394, -0.06607480347156525, 0.05620626360177994, -0.0276933666318655, 0.013684484176337719, 0.005950146820396185, 0.04889876767992973, -0.019856587052345276, 0.04234250634908676, -0.050845157355070114, 0.014879635535180569, 0.014136933721601963, -0.021837124601006508, -0.002962268190458417, -0.029878785833716393, 0.006825168151408434, 0.020505383610725403, -0.037186283618211746, -0.014854025095701218, 0.0020744414068758488, 0.002985744271427393, -0.022007860243320465, -0.05115248262882233, -0.01248079538345337, 0.0649820864200592, 0.010244155302643776, 0.017893124371767044, 0.0020947162993252277, 0.03336180001497269, -0.060474660247564316, 0.01334301196038723, 0.034710612148046494, 0.02887144312262535, -0.04780605807900429, -0.03554721921682358, -0.002795800566673279, 0.039815615862607956, -0.0003556109149940312, -0.022690802812576294, -0.1034659668803215, 0.001612387364730239, -0.00643674423918128, -0.05320131033658981, -0.014811340719461441, -0.006155029870569706, 0.046815790235996246, 0.0020200193393975496, -0.0058306315913796425, 0.00135521637275815, -0.012327133677899837, -0.0313129685819149, -0.014794266782701015, -0.0204541627317667, 0.031825173646211624, 0.001588911167345941, 0.03170565888285637, 0.006573332939296961, -0.008523990400135517, -0.02258836105465889, -0.026805538684129715, 0.02233225852251053, -0.0005052716005593538, -0.039576586335897446, -0.041727859526872635, -0.040498558431863785, -0.0039183893240988255, 0.04275227338075638, -0.009407549165189266, 0.04544990137219429, -0.04760117456316948, 0.08263618499040604, -0.010261228308081627, 0.05344034358859062, 0.024449383839964867, 0.06802118569612503, -0.006662969011813402, 0.08359230309724808, -0.10503673553466797, 0.019771218299865723, 0.025917712599039078, 0.04285471513867378, 0.010431964881718159, -0.019617557525634766, -0.021820049732923508, -0.047259703278541565, 0.011166129261255264, -0.02789824828505516, -0.03319106251001358, 0.04521087184548378, 0.012651531025767326, 0.028017764911055565, -0.015050371177494526, -0.021444430574774742, -0.037425313144922256, -0.026549434289336205, 0.013274717144668102, 0.03728872537612915, -0.009663652628660202, 0.007111150771379471, 0.04015708714723587, 0.029673902317881584, -0.019139496609568596, -0.023407895117998123, 0.04736214503645897, 0.02572990208864212, 0.0240225438028574, 0.04790849983692169, 0.01284787803888321, 0.030954422429203987, 0.012497869320213795, -0.049137797206640244, -0.00821666605770588, -0.08488989621400833, -0.006014172453433275, 0.03348131477832794, -0.11254911869764328, 0.07642139494419098, 0.03310569375753403, 0.02047123573720455, -0.018098007887601852, 0.04777190834283829, -0.042923010885715485, 0.05890389159321785, 0.0003873571113217622, -0.014580847695469856, -0.01651870086789131, -0.012933245860040188, 0.013257644139230251, 0.007000172510743141, 0.031586144119501114, -0.07396280020475388, -0.06935293227434158, 0.003224774729460478, -0.02448352985084057, -0.02550794556736946, 0.0276933666318655, -0.04657675698399544, -0.006983099039644003, -0.026361625641584396, 0.02403961680829525, -0.02455182559788227, 0.05385010689496994, 0.014393038116395473, 0.002864094916731119, 0.06600650399923325, 0.08495819568634033, 0.09813900291919708, 0.0034445971250534058, 0.0016913526924327016, -0.031159304082393646, -0.002036025747656822, -0.04544990137219429, 0.007307497318834066, 0.003308008424937725, -0.026600655168294907, -0.01662967912852764, -0.036674074828624725, 0.05504525825381279, -0.028034837916493416, -0.013616189360618591, 0.050811007618904114, 0.0071751768700778484, 0.03821069747209549, -0.0324227511882782, 0.05825509503483772, -0.030390992760658264, 0.017927270382642746, -0.0000010921096418314846, 0.0021534068509936333, 0.03961073234677315, -0.037630196660757065, 0.01968585141003132, 0.0240225438028574, -0.030339771881699562, -0.042957156896591187, -0.04609869793057442, 0.023373747244477272, 0.03431791812181473, 0.030834905803203583, 0.00524159288033843, 0.02718115784227848, -0.006931878160685301, 0.01830288954079151, -0.026071375235915184, 0.04835241287946701, -0.024193279445171356, 0.031091010197997093, -0.07997270673513412, -0.07041149586439133, -0.0409083254635334, -0.05719653144478798, -0.030971495434641838, 0.01968585141003132, -0.02306642197072506, 0.019651703536510468, 0.009347791783511639, -0.015494284220039845, 0.009911219589412212, 0.05238177999854088, -0.03513745218515396, -0.024671340361237526, 0.011814925819635391, -0.04596211016178131, -0.0008755551534704864, -0.07573845237493515, 0.07498721778392792, 0.023885954171419144, -0.0036729564890265465, -0.03899608179926872, -0.008477038703858852, -0.03296910598874092, -0.021837124601006508, 0.04210347682237625, -0.002123527927324176, -0.04104491323232651, 0.014751583337783813, 0.013513747602701187, 0.02883729711174965, -0.017158959060907364, 0.07355303317308426, -0.04978659376502037, 0.018695583567023277, -0.018712656572461128, -0.0001930116122821346, -0.08844120800495148, 0.0047934106551110744, 0.0408741794526577, -0.028905590996146202, -0.011797851882874966, 0.040805883705616, -0.05262080952525139, -0.08133859187364578, -0.04473280906677246, -0.04032782465219498, 0.018712656572461128, 0.11951514333486557, -0.0008659512386657298, -0.013829609379172325, -0.009356328286230564, -0.027505556121468544, 0.009279496967792511, 0.037425313144922256, 0.05463549494743347, -0.005736726801842451, -0.0004591195611283183, 0.023954249918460846, -0.021581020206212997, -0.004908657632768154, 0.026173816993832588, 0.015554041601717472, -0.03670822083950043, 0.0816800594329834, 0.04609869793057442, -0.047942645847797394, 0.010688068345189095, 0.048215821385383606, -0.07314326614141464, -0.0019079738995060325, 0.0384155809879303, 0.007034319918602705, 0.06525526940822601, 0.0031799564603716135, 0.0038949130102992058, -0.0012858548434451222, -0.014162544161081314, 0.033327650278806686, 0.03056172840297222, -0.04432304576039314, -0.013505211099982262, -0.06030392646789551, -0.0037561901845037937, 0.007456891238689423, 0.011951514519751072, -0.03438621386885643, 0.04449377954006195, -0.0017841903027147055, 0.02376643940806389, 0.03756190091371536, 0.011797851882874966, 0.08509477972984314, 0.038825348019599915, 0.025388430804014206, 0.019156569615006447, 0.03629845753312111, -0.0016753461677581072, -0.020044397562742233, 0.040020499378442764, 0.03460817039012909, 0.013496674597263336, -0.04012294113636017, 0.020505383610725403, 0.060713693499565125, 0.06672360002994537, -0.011123444885015488, 0.03483012691140175, 0.017030907794833183, -0.03578624874353409, -0.003570514963939786, 0.03325935825705528, 0.003856497583910823, -0.0028171425219625235, 0.019088275730609894, -0.02957146055996418, 0.028922664001584053, -0.004018696490675211, -0.012113713659346104, 0.012438111938536167, 0.008677653037011623, 0.020129764452576637 ]
715,346
pytorch_optimizer.optimizer.adai
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() param_size: int = 0 exp_avg_sq_hat_sum: float = 0.0 for group in self.param_groups: _, beta2 = group['betas'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) param_size += p.numel() state = self.state[p] if len(state) == 0: state['step'] = 0 state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) state['beta1_prod'] = torch.ones_like(p) state['step'] += 1 if self.use_gc: centralize_gradient(grad, gc_conv_only=False) bias_correction2: float = 1.0 - beta2 ** state['step'] if not group['stable_weight_decay'] and group['weight_decay'] > 0.0: self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) exp_avg_sq = state['exp_avg_sq'] exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) exp_avg_sq_hat_sum += exp_avg_sq.sum() / bias_correction2 if param_size == 0: raise ZeroParameterSizeError() exp_avg_sq_hat_mean = exp_avg_sq_hat_sum / param_size for group in self.param_groups: beta0, beta2 = group['betas'] beta0_dp: float = math.pow(beta0, 1.0 - group['dampening']) for p in group['params']: if p.grad is None: continue grad = p.grad state = self.state[p] if group['stable_weight_decay'] and group['weight_decay'] > 0.0: self.apply_weight_decay( p=p, grad=grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) bias_correction2: float = 1.0 - beta2 ** state['step'] exp_avg, exp_avg_sq = state['exp_avg'], state['exp_avg_sq'] exp_avg_sq_hat = exp_avg_sq / bias_correction2 beta1 = ( 1.0 - (exp_avg_sq_hat / exp_avg_sq_hat_mean).pow_(1.0 / (3.0 - 2.0 * group['dampening'])).mul_(beta0) ).clamp_(0.0, 1.0 - group['eps']) beta3 = (1.0 - beta1).pow_(group['dampening']) beta1_prod = state['beta1_prod'] beta1_prod.mul_(beta1) exp_avg.mul_(beta1).addcmul_(beta3, grad) exp_avg_hat = exp_avg.div(1.0 - beta1_prod).mul_(beta0_dp) p.add_(exp_avg_hat, alpha=-group['lr']) return loss
(self)
[ 0.005076870787888765, -0.03973593935370445, -0.026470648124814034, 0.03508109971880913, 0.007127097342163324, -0.006717551499605179, -0.03671928495168686, -0.05146293714642525, -0.02023755945265293, 0.027889076620340347, -0.026031136512756348, 0.004180364776402712, 0.020756984129548073, 0.08662395179271698, -0.03076588548719883, 0.0595739409327507, 0.01297561265528202, 0.049704886972904205, 0.035161010921001434, -0.014034437946975231, -0.025731468573212624, -0.07871272414922714, -0.024273084476590157, 0.039875783026218414, -0.056537311524152756, -0.005773597862571478, 0.03921651467680931, -0.011427328921854496, -0.02185576595366001, 0.008890142664313316, -0.018179841339588165, -0.0868636816740036, 0.024912375956773758, -0.007346853613853455, 0.031245354562997818, -0.05781589075922966, 0.013165402226150036, 0.011926774866878986, -0.06840415298938751, -0.05326094105839729, 0.0024947337806224823, -0.0279290322214365, 0.023374082520604134, 0.006118216086179018, 0.001347256125882268, 0.01289570052176714, -0.026031136512756348, 0.05509890615940094, -0.009624328464269638, -0.01396451611071825, -0.0008908871677704155, -0.04630865156650543, 0.06177150458097458, -0.010193697176873684, 0.012446199543774128, 0.06860393285751343, 0.06045296788215637, -0.06440858542919159, 0.03248398005962372, -0.054020099341869354, 0.06017327681183815, -0.06804455071687698, 0.03150506690144539, -0.0059733763337135315, -0.0026320815086364746, -0.01078803837299347, -0.07371825724840164, -0.02718985080718994, 0.008081039413809776, 0.0421532578766346, 0.03216433525085449, 0.01602223329246044, 0.009679267182946205, 0.004619877319782972, -0.06804455071687698, -0.01866929978132248, -0.03104557655751705, -0.0570567324757576, 0.007192025426775217, -0.0291476808488369, 0.01091789361089468, 0.011247528716921806, -0.029587192460894585, -0.006263055372983217, 0.026870205998420715, -0.030805841088294983, -0.015123231336474419, -0.02245510183274746, -0.021556098014116287, -0.012935656122863293, 0.033183205872774124, 0.0035960127133876085, 0.03787799924612045, 0.030226483941078186, 0.05605784058570862, 0.02880805730819702, -0.0328635610640049, -0.026370760053396225, -0.02057718299329281, -0.02904779091477394, 0.009669278748333454, 0.030845796689391136, 0.021396275609731674, 0.04922541603446007, 0.025891290977597237, -0.046947941184043884, -0.015113241970539093, -0.028987856581807137, 0.03562050312757492, -0.060732658952474594, -0.023993395268917084, -0.008395690470933914, -0.03747844323515892, -0.012326331809163094, -0.032703738659620285, -0.00319395842961967, -0.01507328636944294, 0.03388243168592453, -0.020916806533932686, 0.05138302594423294, 0.05382032319903374, 0.013435102999210358, -0.05126315727829933, 0.007032202556729317, 0.011097694747149944, 0.020247548818588257, 0.052062273025512695, 0.008190917782485485, 0.026630470529198647, -0.05781589075922966, -0.016421791166067123, 0.007901239208877087, -0.019548324868083, -0.012755855917930603, 0.02207552269101143, -0.013135435059666634, -0.01719093881547451, 0.024273084476590157, 0.0011855603661388159, -0.004724761005491018, 0.014793596230447292, 0.006907341070473194, -0.012536099180579185, -0.00809602253139019, 0.013315235264599323, 0.019018910825252533, 0.056257620453834534, 0.0360000804066658, 0.008086034096777439, -0.002426059916615486, 0.020297493785619736, 0.01717096008360386, 0.007266942411661148, 0.01420424971729517, 0.011257517151534557, 0.018369631841778755, -0.015183164738118649, 0.033203184604644775, -0.022015588358044624, -0.03198453411459923, -0.026750339195132256, -0.01309547945857048, -0.01134741771966219, 0.006757507100701332, 0.011836875230073929, 0.020896829664707184, -0.011567174457013607, 0.06269048899412155, -0.031345244497060776, -0.000015568673916277476, 0.011746974661946297, -0.03386245295405388, 0.025591623038053513, 0.021156540140509605, -0.03448176383972168, 0.13049530982971191, -0.0013435102300718427, 0.004772208631038666, -0.02904779091477394, -0.009983929805457592, 0.006987252272665501, -0.02716987393796444, -0.020776960998773575, -0.047107767313718796, -0.014933441765606403, 0.03310329467058182, 0.029087746515870094, 0.012865734286606312, 0.008945081382989883, 0.006138193886727095, -0.02073700539767742, -0.029567215591669083, 0.045469582080841064, -0.012885712087154388, -0.03142515569925308, 0.021436231210827827, 0.029926816001534462, 0.01762046106159687, 0.07599573582410812, 0.005134306848049164, -0.005933420732617378, -0.017890162765979767, 0.022415146231651306, -0.0097741624340415, -0.02740960754454136, -0.03136521950364113, -0.033922385424375534, 0.03016654960811138, -0.014673729427158833, 0.011037761345505714, -0.07499684393405914, -0.0016931226709857583, 0.03500118851661682, 0.06496796011924744, 0.05014439672231674, -0.056377485394477844, 0.019018910825252533, 0.017400706186890602, 0.06177150458097458, -0.000037477973819477484, -0.03408220782876015, -0.08478599041700363, 0.01821979694068432, 0.017660418525338173, 0.06840415298938751, -0.018829122185707092, 0.039156582206487656, -0.02892792411148548, -0.011856853030622005, -0.008570496924221516, 0.011257517151534557, -0.02011769264936447, 0.02135632000863552, -0.016611579805612564, 0.025891290977597237, 0.026350781321525574, -0.04491020366549492, -0.04139409959316254, -0.00910989847034216, -0.003773316042497754, -0.016481725499033928, -0.04778701066970825, -0.022175410762429237, 0.03520096838474274, -0.02257496863603592, 0.041513968259096146, 0.0757160410284996, 0.019458424299955368, -0.022035567089915276, 0.034921277314424515, -0.020936785265803337, -0.02135632000863552, -0.018109919503331184, 0.031225375831127167, -0.05729646980762482, -0.03210440278053284, 0.0632498636841774, 0.04526980221271515, 0.036919064819812775, -0.04391130805015564, 0.024772532284259796, -0.043591663241386414, -0.052541740238666534, 0.045109979808330536, -0.038537267595529556, 0.02892792411148548, 0.04061496630311012, -0.038637157529592514, 0.049824751913547516, 0.04267268255352974, 0.09461508691310883, 0.08774270862340927, -0.043112196028232574, -0.02619095891714096, -0.006552733946591616, 0.027449563145637512, 0.011387373320758343, 0.009584372863173485, -0.0013559964718297124, -0.023034458979964256, 0.06912335753440857, -0.05641744285821915, -0.06848406046628952, 0.009114893153309822, -0.04978479817509651, 0.04095458984375, -0.020996717736124992, -0.004624872002750635, 0.0719202533364296, 0.0010544557590037584, 0.04009554162621498, -0.0025509214028716087, 0.09221774339675903, 0.016222013160586357, 0.07531648874282837, 0.0037083879578858614, -0.004165381193161011, 0.007826321758329868, -0.015822455286979675, 0.026630470529198647, 0.08047077059745789, -0.002904279623180628, 0.013025556690990925, 0.001671896199695766, -0.013924560509622097, -0.00858548004180193, 0.01804998517036438, 0.007516665384173393, 0.029227592051029205, -0.013085490092635155, -0.004505004733800888, -0.01952834613621235, 0.003361272858455777, 0.0032713725231587887, -0.007007230073213577, -0.11003798991441727, -0.005933420732617378, -0.05290134251117706, 0.021496163681149483, 0.060732658952474594, -0.01420424971729517, 0.016371846199035645, 0.03014657273888588, 0.024872420355677605, -0.030206507071852684, -0.037058908492326736, 0.06792468577623367, 0.028068875893950462, -0.032563891261816025, -0.03508109971880913, -0.07092136144638062, -0.02231525629758835, 0.0496649295091629, 0.03464158996939659, -0.04427091032266617, -0.019698157906532288, 0.023873528465628624, 0.006687584798783064, 0.0210766289383173, -0.054539524018764496, 0.06121212616562843, 0.03478143364191055, -0.02645067125558853, 0.028068875893950462, 0.017440661787986755, -0.03757833316922188, 0.03016654960811138, 0.014803585596382618, 0.015402920544147491, 0.021795831620693207, -0.00198529870249331, -0.01396451611071825, -0.004450065549463034, 0.06265053153038025, 0.02938741445541382, 0.03667932748794556, -0.010123774409294128, -0.019947880879044533, 0.03002670593559742, -0.06744521856307983, 0.0036484545562416315, 0.03522094711661339, -0.05370045453310013, 0.09837092459201813, 0.09653296321630478, 0.006717551499605179, -0.02531193383038044, -0.029587192460894585, 0.0446305125951767, -0.03607999533414841, 0.022235345095396042, -0.055138859897851944, -0.01833966374397278, 0.029747014865279198, -0.035420723259449005, -0.01840958744287491, -0.05058391019701958, -0.008225878700613976, 0.08170939981937408, 0.048066701740026474, 0.03743848577141762, -0.035300858318805695, -0.022674856707453728, 0.028728146106004715, 0.042992327362298965, -0.017390716820955276, 0.011147638782858849, -0.0632498636841774, 0.043391887098550797, -0.06728538870811462, 0.07044189423322678, 0.022634901106357574, 0.007506676483899355, 0.009184815920889378, -0.0620112419128418, 0.050703778862953186, 0.04538967087864876, 0.023274192586541176, -0.05657726526260376, -0.005204229615628719, -0.02691016159951687, 0.005089356563985348, 0.005319102201610804, 0.009769167751073837, -0.021895721554756165, -0.08043081313371658, -0.012086598202586174, 0.054179925471544266, -0.0012067868374288082, 0.06432867050170898, -0.01964821293950081, -0.0016918740002438426, -0.05597792938351631, 0.0005431477329693735, 0.005718659143894911, -0.04171374812722206, -0.018109919503331184, -0.01686130464076996, 0.010183707810938358, -0.009164838120341301, 0.03510107845067978, -0.000946450571063906, 0.03907667100429535, 0.03028641827404499, -0.021556098014116287, -0.044870246201753616, -0.06460835784673691, -0.028867989778518677, -0.04267268255352974, -0.01856940984725952, -0.015023341402411461, -0.05034417659044266, -0.027629364281892776, -0.014503917656838894, -0.02655055932700634, 0.01277583371847868, -0.0040954588912427425, 0.03564048185944557, 0.03961607441306114, 0.006932313088327646, -0.013135435059666634, 0.008275823667645454, 0.018269741907715797, -0.006402900442481041, -0.004053005948662758, -0.027729252353310585, 0.06121212616562843, -0.018139885738492012, -0.08894138038158417, 0.01602223329246044, 0.01358493696898222, 0.006937307771295309, 0.0620511956512928, 0.010718115605413914, 0.02281470224261284, -0.001410935539752245, -0.035780325531959534, -0.018519464880228043, -0.010768059641122818, 0.020377404987812042, 0.007202014327049255, 0.021536119282245636, -0.03334302827715874, 0.013794704340398312, -0.018968965858221054, -0.00803608912974596, 0.07635533809661865, 0.03248398005962372, 0.008625435642898083, 0.014334105886518955, -0.0020302487537264824, -0.017960084602236748, 0.02892792411148548, -0.02059716172516346, -0.018509475514292717, -0.018968965858221054, -0.025511711835861206, -0.012645977549254894, 0.03190462291240692, -0.037058908492326736, 0.010248635895550251, -0.05497903749346733, 0.01688128150999546, 0.030925707891583443, -0.0058684926480054855, 0.03933638334274292, 0.0054090023040771484, 0.008160950616002083, 0.053300898522138596, 0.05370045453310013, -0.062250975519418716, -0.05509890615940094, 0.06117217242717743, 0.045469582080841064, -0.0644884929060936, -0.05553841590881348, 0.03635968267917633, 0.020187614485621452, 0.09253739565610886, -0.034681543707847595, 0.01712101511657238, 0.040634941309690475, -0.05406005680561066, -0.023553883656859398, -0.011707019060850143, -0.033203184604644775, -0.05877482891082764, 0.013185380026698112, -0.050663821399211884, 0.01605220139026642, 0.005099345929920673, -0.02221536636352539, 0.005773597862571478, -0.008300796151161194, -0.010578270070254803, -0.04726758971810341, 0.04514993727207184, 0.07663502544164658, 0.0508236438035965, -0.04514993727207184, 0.0421532578766346, 0.020756984129548073, -0.006337972357869148, -0.017390716820955276, 0.0018142383778467774, 0.03284358233213425, -0.006687584798783064, 0.0011449804296717048, 0.0032064446713775396, 0.009299688041210175, -0.03376256301999092, 0.008006122894585133, 0.03875702619552612, 0.06121212616562843, -0.01645175740122795, -0.05126315727829933, -0.012176498770713806, -0.06896352767944336, -0.1401645839214325, -0.03284358233213425, -0.00841566827148199, -0.025092177093029022, 0.025991180911660194, -0.03488132357597351, -0.03588021546602249, 0.05501899495720863, 0.0048995669931173325, 0.020517250522971153, -0.03428198769688606, -0.012755855917930603, -0.013754748739302158, 0.02754945307970047, -0.009159843437373638, 0.03949620574712753, 0.039376337081193924, 0.0077813719399273396, -0.03488132357597351, 0.02631082572042942, -0.0013447589008137584, 0.0027069984935224056, -0.05114329233765602, -0.03731862083077431, 0.00027734870673157275, -0.03338298574090004, 0.008915114216506481, 0.018869077786803246, 0.012116564437747002, -0.013475058600306511, -0.04766714572906494, 0.014004471711814404, -0.0303863063454628, 0.017011137679219246, 0.0010357265127822757, -0.029187636449933052, -0.02517208829522133, 0.002402336336672306, 0.0068274294026196, -0.03274369239807129, -0.003698399057611823, -0.012606021948158741, 0.04638856276869774, -0.048825860023498535, -0.012426221743226051, -0.017250871285796165, 0.005733642261475325, 0.06888362020254135, -0.12130549550056458, 0.0329035148024559, -0.011477273888885975, 0.036519505083560944, -0.02990683913230896, 0.030046682804822922, -0.06928317993879318, -0.06540747731924057, 0.005493908189237118, 0.014893485233187675, -0.035820282995700836, 0.010093807242810726, 0.006372933741658926, 0.01935853436589241, -0.02593124657869339, 0.0029117714148014784, 0.05174262449145317, 0.007731426972895861, 0.0006183768273331225, -0.000789749319665134, -0.010867949575185776, 0.04295237362384796, 0.02135632000863552, -0.02966710366308689, -0.05425983667373657, -0.02840849943459034, -0.005573819391429424, -0.016911247745156288, -0.06500791758298874, -0.014014460146427155, -0.012616011314094067, 0.004624872002750635, 0.06524765491485596, 0.003855724586173892, -0.03328309580683708, 0.020257538184523582, -0.026710383594036102, 0.010268613696098328, 0.0272897407412529, -0.046947941184043884, 0.04566936194896698, -0.08158953487873077, -0.031205398961901665, -0.04554949328303337, -0.03274369239807129, 0.03500118851661682, 0.03422205522656441, -0.059254296123981476, 0.059613898396492004, 0.024892399087548256, 0.0595739409327507, 0.02633080445230007, -0.03436189889907837, -0.06141190603375435, -0.009624328464269638, 0.04371153190732002, -0.01609215699136257, -0.02569151297211647, -0.0010400967439636588, -0.005498902872204781, -0.03576034680008888, 0.04267268255352974, 0.04610887169837952, 0.003116544336080551, -0.01271590031683445, 0.017210915684700012, -0.042752593755722046, 0.02040737122297287, 0.015872400254011154, 0.0029292518738657236, 0.038037821650505066, 0.030426261946558952, 0.01457384042441845, -0.040035609155893326, -0.0037932938430458307, -0.021296385675668716, -0.0242131520062685, 0.007082147058099508, -0.027509497478604317, -0.010927882976830006, -0.016441768035292625, -0.02716987393796444, -0.01446396205574274, -0.003685913048684597, -0.08830209076404572, -0.04922541603446007, -0.06756508350372314, -0.006043299101293087, 0.004195347893983126, -0.015233108773827553, 0.01358493696898222, -0.019688168540596962, -0.045469582080841064, 0.012436210177838802, 0.046348609030246735, 0.029127702116966248, -0.01779027283191681, 0.036799196153879166, 0.04558945074677467, -0.018109919503331184, -0.0024872419890016317, 0.027369651943445206, 0.0075566209852695465, -0.0037932938430458307, -0.04886581748723984, -0.01806996390223503, 0.008450630120933056, 0.026091068983078003, 0.01928861252963543, -0.07455732673406601, -0.03314324840903282, -0.023793617263436317, 0.012516121380031109, -0.062450751662254333, 0.006907341070473194, -0.025092177093029022, -0.019388500601053238, -0.007032202556729317, 0.03675923869013786, 0.04974484071135521, 0.02159605361521244, -0.010808016173541546, 0.007391803897917271, 0.02016763761639595, -0.013425113633275032, 0.013015568256378174, -0.029587192460894585, 0.011617118492722511, -0.0006786225130781531, -0.005144295748323202, -0.01638183556497097, -0.032963450998067856, -0.07128096371889114, 0.0607726126909256, -0.015592710115015507, -0.014433994889259338, 0.0303863063454628, -0.004859611392021179, -0.053300898522138596, -0.031345244497060776, 0.03284358233213425, -0.017220905050635338, 0.030066661536693573, 0.006507784128189087, 0.032943472266197205, 0.006862390786409378, -0.0037783104926347733, 0.01652168110013008, -0.00934463832527399, -0.005114329047501087, 0.043351929634809494, 0.004782197531312704, -0.0006904843612574041, 0.00561876967549324, 0.02631082572042942, 0.02705000527203083, -0.00731688691303134, -0.042233169078826904, 0.020497271791100502, 0.043591663241386414, -0.01259603351354599, -0.035420723259449005, 0.0384373813867569, -0.06093243509531021, 0.05413996800780296, 0.0446704663336277, 0.03899675980210304, 0.05553841590881348, 0.0819091796875, -0.03432194143533707, 0.018249765038490295, -0.08023104071617126, -0.08047077059745789, -0.06648627668619156, 0.003963105380535126, -0.020896829664707184, 0.08406678587198257, 0.018938999623060226, 0.025631578639149666, 0.019158756360411644, 0.05358058959245682, 0.020107703283429146 ]
715,361
pytorch_optimizer.optimizer.adamp
AdamP
Slowing Down the Slowdown for Momentum Optimizers on Scale-invariant Weights. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param delta: float. threshold that determines whether a set of parameters is scale invariant or not. :param wd_ratio: float. relative weight decay applied on scale-invariant parameters compared to that applied on scale-variant parameters. :param use_gc: bool. use gradient centralization. :param nesterov: bool. enables Nesterov momentum. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param adanorm: bool. whether to use the AdaNorm variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability.
class AdamP(Optimizer, BaseOptimizer): r"""Slowing Down the Slowdown for Momentum Optimizers on Scale-invariant Weights. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param delta: float. threshold that determines whether a set of parameters is scale invariant or not. :param wd_ratio: float. relative weight decay applied on scale-invariant parameters compared to that applied on scale-variant parameters. :param use_gc: bool. use gradient centralization. :param nesterov: bool. enables Nesterov momentum. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param adanorm: bool. whether to use the AdaNorm variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, delta: float = 0.1, wd_ratio: float = 0.1, use_gc: bool = False, nesterov: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_range(wd_ratio, 'wd_ratio', 0.0, 1.0) self.validate_non_negative(eps, 'eps') self.use_gc = use_gc defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'delta': delta, 'wd_ratio': wd_ratio, 'nesterov': nesterov, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults) def __str__(self) -> str: return 'AdamP' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=p.dtype, device=p.device) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) if self.use_gc: centralize_gradient(grad, gc_conv_only=False) s_grad = self.get_adanorm_gradient( grad=grad, adanorm=group['adanorm'], exp_grad_norm=state.get('exp_grad_norm', None), r=group.get('r', None), ) exp_avg, exp_avg_sq = state['exp_avg'], state['exp_avg_sq'] exp_avg.mul_(beta1).add_(s_grad, alpha=1.0 - beta1) exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) inv_de_nom = exp_avg_sq.rsqrt().add_(group['eps']).mul_(bias_correction2_sq) perturb = exp_avg.clone() if group['nesterov']: perturb.mul_(beta1).addcmul_(grad, inv_de_nom, value=1.0 - beta1) else: perturb.mul_(inv_de_nom) wd_ratio: float = 1.0 if len(p.shape) > 1: perturb, wd_ratio = projection( p, grad, perturb, group['delta'], group['wd_ratio'], group['eps'], ) self.apply_weight_decay( p=p, grad=None, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ratio=wd_ratio, ) step_size: float = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'], bias_correction1=bias_correction1, ) p.add_(perturb, alpha=-step_size) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, delta: float = 0.1, wd_ratio: float = 0.1, use_gc: bool = False, nesterov: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ 0.0022182236425578594, -0.04310555011034012, -0.015117157250642776, 0.03498801216483116, 0.006203976459801197, -0.01720193400979042, -0.05333808436989784, -0.08975622802972794, -0.041534412652254105, 0.032188162207603455, -0.026528041809797287, 0.003180041443556547, 0.04415297508239746, 0.09579906612634659, -0.03595486283302307, 0.059783775359392166, 0.015157442539930344, 0.0557149313390255, -0.005078498739749193, -0.015842298045754433, -0.03390030190348625, -0.07130544632673264, -0.014502801932394505, 0.03668000549077988, -0.05084037780761719, -0.0072413296438753605, 0.017131434753537178, -0.015056728385388851, -0.07521314173936844, -0.007432686164975166, 0.0007534659234806895, -0.06437632441520691, 0.0011966071324422956, 0.0058766561560332775, 0.031221309676766396, -0.035813864320516586, 0.011199385859072208, 0.004791464190930128, -0.11489441990852356, -0.041373271495103836, 0.024272050708532333, -0.030999740585684776, 0.04431411623954773, -0.017866646870970726, 0.013344592414796352, 0.016214938834309578, -0.00002891590520448517, 0.04070856049656868, -0.02104920521378517, -0.014271160587668419, 0.019639210775494576, -0.05841406434774399, 0.06324832886457443, 0.01749400608241558, -0.007820434868335724, 0.06687403470277786, 0.05474807694554329, 0.001864466117694974, 0.04765782132744789, -0.08717795461416245, 0.03095945343375206, -0.08089340478181839, 0.023123912513256073, -0.02396990917623043, -0.00302393501624465, -0.010544746182858944, -0.06002548709511757, -0.026588471606373787, 0.0012287095887586474, 0.022559914737939835, 0.015328655950725079, -0.04677153751254082, 0.0075485073029994965, 0.008349183015525341, -0.022721055895090103, -0.0113001000136137, -0.024110909551382065, -0.02844160608947277, -0.008298825472593307, -0.02785746566951275, 0.018904000520706177, 0.037767715752124786, -0.012971950694918633, -0.015157442539930344, 0.04930952936410904, -0.06087148189544678, -0.01261945255100727, -0.011018101125955582, 0.002797328634187579, -0.06216062232851982, 0.04399183392524719, -0.028643034398555756, 0.06582660973072052, 0.06421518325805664, 0.046529822051525116, 0.03182559460401535, -0.04189698398113251, -0.026346758008003235, -0.006823366973549128, -0.013787733390927315, -0.003212773473933339, 0.03611600771546364, 0.04834267497062683, 0.04975266754627228, 0.02546047419309616, -0.031281739473342896, -0.035290151834487915, -0.030878882855176926, 0.03831157088279724, -0.05639978498220444, -0.059380918741226196, 0.02092834934592247, -0.03353773057460785, -0.024493621662259102, -0.019337069243192673, 0.0012066784547641873, -0.009623213671147823, 0.014553159475326538, -0.01476465817540884, 0.06119376793503761, 0.04046684503555298, 0.03988270461559296, -0.05353951081633568, -0.01252880971878767, 0.016073938459157944, -0.02860274910926819, 0.03716342896223068, 0.00994549784809351, -0.006395332980901003, -0.05011523887515068, -0.03361830115318298, 0.02145206183195114, -0.015298441983759403, -0.0018355109496042132, 0.03234930709004402, -0.03416215628385544, 0.017745789140462875, 0.030073171481490135, -0.039358992129564285, 0.013314378447830677, 0.020082352682948112, 0.037183571606874466, 0.018430644646286964, -0.00473103579133749, 0.0332355871796608, -0.02110963501036167, 0.04713410884141922, 0.003343701595440507, -0.013022308237850666, 0.02017299458384514, -0.002993720816448331, -0.018390359356999397, 0.026064759120345116, -0.0053529441356658936, 0.0522906593978405, -0.025903616100549698, -0.017816290259361267, 0.016376079991459846, -0.042863838374614716, -0.007649220991879702, -0.028884747996926308, -0.04250126704573631, -0.02023342251777649, 0.01413016114383936, 0.013062593527138233, 0.0007345820195041597, 0.015902725979685783, 0.04034598916769028, -0.013485591858625412, 0.029670316725969315, 0.02856246381998062, -0.0740448608994484, -0.0026261149905622005, 0.009391571395099163, -0.04266240820288658, 0.11835897713899612, 0.025661902502179146, 0.01965935342013836, 0.0031573809683322906, -0.006929116789251566, 0.042622122913599014, 0.01238781027495861, -0.02666904218494892, -0.05539264902472496, -0.02654818445444107, 0.0332355871796608, -0.006052905693650246, 0.02195563167333603, -0.0412927009165287, 0.029448745772242546, 0.0017133953515440226, -0.027958178892731667, 0.03657928854227066, -0.021129777655005455, -0.024231765419244766, 0.019538497552275658, 0.005363015457987785, -0.007442757487297058, 0.10329218208789825, 0.049510955810546875, -0.007558578625321388, 0.015681155025959015, 0.018249358981847763, 0.0014049590099602938, 0.0020167960319668055, -0.003960574511438608, -0.035572152584791183, 0.017846504226326942, -0.0004601366526912898, -0.008127612061798573, -0.05768892541527748, -0.00044880632776767015, 0.03587429225444794, 0.03095945343375206, 0.03573329374194145, -0.04201783984899521, 0.039640992879867554, 0.035572152584791183, 0.05293522775173187, 0.009683641605079174, -0.013898518867790699, -0.040627989917993546, 0.0014427267014980316, -0.00468571437522769, 0.0711040198802948, -0.011612312868237495, 0.021854916587471962, 0.012256882153451443, -0.004726000130176544, -0.000508605211507529, 0.01766521856188774, -0.04054741933941841, -0.003698718035593629, -0.003376433625817299, 0.08105455338954926, 0.013405020348727703, -0.046408966183662415, 0.0008913180790841579, -0.03756628558039665, -0.019880924373865128, -0.006944223772734404, -0.01709114946424961, -0.021411776542663574, 0.04149412736296654, -0.023426054045557976, -0.004036109894514084, 0.06699489057064056, 0.016094081103801727, -0.011974883265793324, 0.011511599645018578, -0.029992600902915, -0.032591018825769424, -0.022801628336310387, 0.04644925147294998, -0.07674399763345718, -0.007971505634486675, 0.04399183392524719, 0.05023609474301338, 0.012277024798095226, -0.04854410141706467, 0.015610654838383198, -0.038392141461372375, -0.07025802135467529, 0.05692349746823311, -0.004839302971959114, 0.03857342526316643, 0.055594075471162796, -0.03782814368605614, 0.0027142397593706846, 0.020273709669709206, 0.06679346412420273, 0.07388371974229813, -0.0740448608994484, -0.010051247663795948, -0.013495663180947304, 0.046811822801828384, -0.009980747476220131, -0.004391126334667206, -0.003726414404809475, 0.010187211446464062, 0.05337836965918541, -0.05337836965918541, -0.04334726557135582, 0.0139891617000103, -0.04173584282398224, 0.046408966183662415, -0.02900560386478901, 0.02092834934592247, 0.06308718770742416, 0.03553186357021332, 0.030415598303079605, 0.008983680047094822, 0.08093369007110596, -0.00251532974652946, 0.052371229976415634, 0.01611422374844551, 0.031765166670084, 0.00188083213288337, -0.036438290029764175, -0.01875292882323265, 0.049108099192380905, 0.005013034678995609, 0.055755216628313065, 0.02912646159529686, -0.03595486283302307, 0.003995824139565229, 0.011199385859072208, 0.012820879928767681, 0.06945230811834335, -0.0169199351221323, -0.015902725979685783, -0.0051087127067148685, -0.026910755783319473, 0.054546650499105453, 0.00908942986279726, -0.09563792496919632, 0.004829231649637222, -0.037586428225040436, 0.04431411623954773, 0.04878581687808037, -0.04806067422032356, 0.042742982506752014, 0.03782814368605614, -0.03553186357021332, -0.03668000549077988, -0.056963782757520676, 0.06308718770742416, 0.03732457384467125, 0.00917000137269497, -0.04717439413070679, -0.06477918475866318, -0.028965318575501442, 0.025017334148287773, 0.018309786915779114, -0.050316665321588516, -0.03464558348059654, 0.021915346384048462, 0.010746173560619354, 0.02676975540816784, -0.0447169728577137, 0.058978062123060226, 0.057245783507823944, -0.059018347412347794, 0.045724112540483475, 0.01915578544139862, -0.052371229976415634, 0.04560325667262077, 0.023748338222503662, 0.017071006819605827, -0.00692408112809062, -0.0004931833827868104, -0.003630736144259572, -0.0048821065574884415, 0.09886077046394348, 0.05853492021560669, 0.009215322323143482, -0.025561189278960228, -0.01149145606905222, 0.02769632451236248, -0.049349814653396606, -0.006818331312388182, 0.013002164661884308, -0.056278929114341736, 0.05148494616150856, 0.063530333340168, 0.0054788365960121155, -0.018390359356999397, -0.06195919215679169, 0.04082941636443138, -0.04528097063302994, 0.01674872264266014, -0.0785568431019783, -0.010695816949009895, -0.007583756931126118, -0.03079831227660179, 0.0011531742056831717, -0.037123143672943115, 0.009809534065425396, 0.0481412447988987, 0.05623864382505417, 0.04568382725119591, -0.0038900745566934347, 0.005554371979087591, 0.03450458496809006, 0.05494950711727142, -0.014512873254716396, 0.039761848747730255, -0.01914571411907673, 0.03565272316336632, -0.06473889946937561, 0.02562161721289158, 0.03220830485224724, -0.006203976459801197, -0.003965610172599554, -0.08500253409147263, 0.051686376333236694, 0.015600583516061306, 0.054143793880939484, -0.07436714321374893, -0.028643034398555756, -0.010564888827502728, -0.0008787288097664714, 0.01324387826025486, 0.011108743958175182, -0.02322462573647499, -0.07545485347509384, 0.03033502772450447, 0.0744074359536171, -0.010836816392838955, 0.1088515892624855, -0.015640869736671448, 0.010081461630761623, -0.04657011106610298, 0.028703462332487106, -0.024554049596190453, -0.03994313254952431, -0.024815905839204788, -0.030657311901450157, 0.008500253781676292, -0.0006961848703213036, 0.03055659867823124, 0.01737314835190773, 0.0332355871796608, 0.01697029359638691, 0.02288219891488552, -0.025722330436110497, -0.0748908594250679, -0.0024763031397014856, -0.0712248757481575, -0.01914571411907673, -0.0006848545745015144, -0.009497321210801601, -0.03410172834992409, -0.023808766156435013, -0.0006407921900972724, 0.006606832146644592, 0.0025014816783368587, 0.04628811031579971, 0.04026541858911514, -0.032711874693632126, 0.01755443401634693, -0.02362748235464096, 0.030717741698026657, -0.0043432870879769325, 0.01816878840327263, -0.03375929966568947, 0.028763890266418457, -0.011290028691291809, -0.06586689502000809, -0.01195474062114954, 0.04254155233502388, 0.01413016114383936, 0.07908055931329727, -0.016960222274065018, 0.0011827589478343725, -0.004932463634759188, 0.008928287774324417, -0.02747475355863571, -0.0017826361581683159, 0.011279957368969917, 0.011501528322696686, 0.012689951807260513, -0.026588471606373787, 0.025017334148287773, -0.01470423024147749, 0.06502089649438858, 0.0818602591753006, -0.005569478962570429, 0.007100330200046301, 0.0412927009165287, -0.0023554463405162096, -0.012075597420334816, 0.01536894217133522, -0.03728428855538368, -0.04209841042757034, -0.02505761943757534, -0.012911522760987282, 0.005211944691836834, 0.029267460107803345, 0.007503185886889696, 0.056681785732507706, -0.0630469024181366, 0.04189698398113251, 0.04350840672850609, 0.0020218316931277514, 0.017212005332112312, 0.009764213114976883, 0.01562072616070509, 0.0073621864430606365, 0.025017334148287773, -0.06163690984249115, -0.05285465717315674, 0.08032941073179245, 0.019236356019973755, -0.08032941073179245, -0.05889749154448509, 0.021472204476594925, -0.006012619938701391, 0.08214226365089417, -0.060226913541555405, 0.027494896203279495, -0.00929085724055767, -0.05116266384720802, -0.03720371797680855, 0.05309636890888214, -0.0280991792678833, -0.06618917733430862, 0.0185112152248621, -0.03595486283302307, 0.03456501290202141, -0.030254457145929337, -0.01875292882323265, 0.0070701162330806255, 0.005498979240655899, 0.002160313306376338, -0.0078506488353014, -0.001626529498025775, 0.04511982947587967, 0.028461748734116554, -0.04769810661673546, 0.03220830485224724, 0.03813028335571289, -0.028925033286213875, -0.031040025874972343, 0.02161320298910141, 0.04213869571685791, -0.027656037360429764, -0.002955953124910593, 0.040446702390909195, 0.012911522760987282, 0.00302393501624465, -0.03502829745411873, 0.038956139236688614, 0.07267515361309052, -0.001980287255719304, -0.018380288034677505, -0.01949821226298809, -0.04225955531001091, -0.10603159666061401, -0.006954295095056295, -0.007624042686074972, 0.000010248426406178623, 0.012770523317158222, -0.04894695803523064, -0.00860096700489521, 0.056440070271492004, -0.014170446433126926, 0.025480616837739944, -0.023587197065353394, -0.02145206183195114, -0.004899731371551752, 0.001118553802371025, -0.01915578544139862, 0.047617532312870026, 0.03377944231033325, 0.00104994245339185, -0.024272050708532333, 0.021754203364253044, 0.010247639380395412, -0.011410885490477085, -0.05563436076045036, -0.06127433851361275, 0.0035149152390658855, -0.043266694992780685, 0.0012790665496140718, 0.023144055157899857, -0.01504665706306696, 0.013747448101639748, -0.05652064457535744, 0.013485591858625412, -0.010937529616057873, -0.040446702390909195, -0.0013269056798890233, -0.03170473873615265, -0.05921977385878563, 0.00968867726624012, 0.01246838178485632, -0.016476795077323914, 0.015600583516061306, -0.01610415242612362, 0.056440070271492004, -0.04366954788565636, -0.03210759162902832, -0.024513764306902885, 0.015006371773779392, 0.035451292991638184, -0.04729524999856949, 0.03635771945118904, 0.008233361877501011, -0.007951362989842892, -0.052492085844278336, 0.024413051083683968, -0.005267336964607239, -0.043830692768096924, -0.02219734527170658, 0.03381972759962082, -0.03220830485224724, 0.03309458866715431, 0.04107113182544708, 0.02614532969892025, -0.022237630560994148, 0.003749075112864375, 0.051404375582933426, -0.008585860021412373, 0.007860720157623291, -0.02092834934592247, -0.0005045137368142605, 0.015902725979685783, 0.04511982947587967, -0.025480616837739944, -0.03291330486536026, -0.020767206326127052, -0.01898457109928131, -0.019125569611787796, -0.03430315479636192, -0.03067745454609394, -0.024916619062423706, 0.02064635045826435, 0.09177050739526749, 0.007926184684038162, -0.02493676356971264, 0.02304334193468094, -0.00865636020898819, 0.015358870849013329, -0.014140232466161251, -0.033860012888908386, 0.030596883967518806, -0.09604077786207199, -0.01106845773756504, -0.04066827520728111, 0.0012847317848354578, 0.019820496439933777, 0.003248023334890604, -0.03571315109729767, 0.00749815022572875, 0.021915346384048462, 0.040446702390909195, 0.008953466080129147, -0.017050864174962044, -0.028703462332487106, 0.010232532396912575, 0.01806807518005371, -0.023244768381118774, -0.0015963154146447778, -0.010106639936566353, 0.005373086780309677, -0.017906932160258293, 0.00925560761243105, 0.037405144423246384, 0.03369887173175812, -0.0026235971599817276, 0.013022308237850666, -0.05047781020402908, -0.016315652057528496, -0.0003367621102370322, 0.017695432528853416, 0.015852369368076324, 0.05579550191760063, -0.0035375759471207857, -0.04189698398113251, -0.00240076775662601, -0.021512489765882492, -0.0052925157360732555, 0.002148982835933566, -0.029207032173871994, 0.0034922545310109854, -0.017705503851175308, 0.026789898052811623, -0.0030113456305116415, 0.027494896203279495, -0.08073226362466812, -0.03849285468459129, -0.04600611329078674, -0.0009807016467675567, 0.008968573063611984, 0.014643801376223564, 0.029771029949188232, -0.048826102167367935, -0.023990051820874214, -0.00046359869884327054, 0.038956139236688614, 0.04266240820288658, -0.001703323912806809, 0.003779289312660694, 0.022801628336310387, -0.00706508057191968, -0.008495218120515347, 0.018299715593457222, 0.01847092993557453, -0.021472204476594925, -0.0525323711335659, -0.012992093339562416, 0.01384816225618124, -0.011612312868237495, 0.0560775026679039, -0.07094287127256393, -0.027253182604908943, -0.026628756895661354, -0.0029760957695543766, -0.06127433851361275, -0.016537223011255264, -0.024352621287107468, -0.04975266754627228, -0.013173379004001617, 0.016194796189665794, 0.06828402727842331, 0.005106194876134396, 0.01943778432905674, 0.015973225235939026, -0.020505350083112717, 0.0016882168129086494, 0.03301401808857918, 0.0207067783921957, -0.017614861950278282, 0.06812288612127304, -0.010474245995283127, 0.03005302883684635, -0.005992477294057608, -0.04310555011034012, 0.059542059898376465, -0.03472615405917168, 0.033920444548130035, 0.02747475355863571, -0.017121363431215286, -0.046932678669691086, -0.059783775359392166, -0.014603516086935997, -0.0375058576464653, 0.04592553898692131, -0.025500761345028877, 0.017332863062620163, 0.020384494215250015, -0.012055454775691032, -0.009104536846280098, -0.03593472018837929, -0.005549336317926645, 0.044233545660972595, -0.0066571892239153385, -0.004300483502447605, 0.032429877668619156, -0.011199385859072208, 0.04983323812484741, -0.04741610586643219, -0.02785746566951275, 0.009144822135567665, 0.03220830485224724, -0.02648775652050972, -0.044636402279138565, 0.03440386801958084, -0.04995409771800041, 0.05760835483670235, -0.008384432643651962, 0.004640392959117889, 0.05011523887515068, 0.0557149313390255, -0.061838336288928986, 0.040285561233758926, -0.04024527594447136, -0.07303772121667862, -0.10474245995283127, 0.002044492168352008, -0.0525323711335659, 0.05108209326863289, 0.013344592414796352, 0.0028199893422424793, 0.013636662624776363, 0.02666904218494892, 0.01428123190999031 ]
715,363
pytorch_optimizer.optimizer.adamp
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, delta: float = 0.1, wd_ratio: float = 0.1, use_gc: bool = False, nesterov: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_range(wd_ratio, 'wd_ratio', 0.0, 1.0) self.validate_non_negative(eps, 'eps') self.use_gc = use_gc defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'delta': delta, 'wd_ratio': wd_ratio, 'nesterov': nesterov, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, delta: float = 0.1, wd_ratio: float = 0.1, use_gc: bool = False, nesterov: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ 0.008381642401218414, -0.04222697764635086, -0.027751298621296883, -0.0014860071241855621, -0.03362032398581505, -0.028951356187462807, -0.08992920815944672, -0.04286450892686844, -0.03735174983739853, 0.03264527767896652, -0.02662624605000019, 0.0594777837395668, 0.022651061415672302, 0.0876041054725647, -0.06120286509394646, 0.046652182936668396, 0.0288200993090868, 0.03440786153078079, -0.02079472318291664, -0.005386189557611942, -0.009244183078408241, 0.0023649544455111027, -0.03746425360441208, 0.10350484400987625, 0.005114302039146423, 0.04200196638703346, -0.0010664561996236444, -0.00048722984502092004, -0.04496460407972336, 0.012159944511950016, 0.01139115821570158, -0.016800787299871445, -0.0015949965454638004, 0.05021485313773155, 0.03039517253637314, -0.02703876607120037, -0.012713095173239708, 0.020757222548127174, -0.12480584532022476, 0.024732409045100212, 0.040426891297101974, -0.03078894130885601, 0.07717861235141754, -0.047402217984199524, -0.03298279270529747, -0.00848477240651846, 0.04627716541290283, 0.04515211284160614, -0.026888759806752205, -0.03422035276889801, 0.03080769255757332, -0.032307762652635574, 0.034576620906591415, -0.011991186067461967, -0.06127787008881569, 0.05295247957110405, 0.031145207583904266, 0.06352797150611877, 0.052389953285455704, 0.004734596703201532, 0.014016280882060528, -0.03388283774256706, 0.021994780749082565, -0.004720533732324839, -0.007561291567981243, 0.013191242702305317, -0.08557900786399841, -0.018591495230793953, 0.01799146831035614, 0.044064562767744064, 0.1052299290895462, -0.0004532438761088997, -0.004786161705851555, 0.03035767190158367, -0.01227244921028614, 0.010556744411587715, -0.09352938085794449, -0.04200196638703346, -0.03298279270529747, -0.010116098448634148, 0.048939790576696396, 0.061840396374464035, -0.004129881039261818, -0.05921527370810509, 0.017138302326202393, -0.05471506342291832, -0.03382658213376999, -0.04953981935977936, 0.023776113986968994, -0.00309623870998621, -0.05816522240638733, -0.022238541394472122, 0.022407298907637596, -0.025613699108362198, 0.06019032001495361, 0.0277888011187315, 0.02113224007189274, -0.05021485313773155, 0.016153881326317787, -0.01831023208796978, -0.03223275765776634, 0.016725782305002213, -0.036545462906360626, 0.00884572695940733, 0.004870540462434292, -0.031051453202962875, -0.05816522240638733, -0.02371986024081707, 0.02953263372182846, -0.05160241574048996, -0.049577321857213974, 0.06394049525260925, -0.016566401347517967, 0.035514164716005325, -0.04402706027030945, 0.00554088456556201, -0.005719017703086138, 0.011203649453818798, -0.0015891368966549635, 0.020944731310009956, 0.04226448014378548, 0.036882977932691574, -0.04215197265148163, 0.04035189002752304, 0.0391143299639225, -0.011156772263348103, 0.007092519663274288, 0.008555088192224503, 0.01201931294053793, -0.007411284372210503, 0.025463692843914032, -0.013510007411241531, -0.022238541394472122, -0.018169600516557693, 0.03663921728730202, -0.02287607081234455, 0.007514414377510548, 0.0439145565032959, -0.02360735461115837, 0.011803677305579185, 0.06345297396183014, 0.007786301895976067, 0.055390093475580215, -0.024619903415441513, -0.008953544311225414, 0.004591621458530426, -0.014081909321248531, -0.03131396695971489, -0.011203649453818798, 0.04556463286280632, 0.03296404331922531, 0.008981670252978802, 0.006295607425272465, 0.03746425360441208, 0.014306919649243355, -0.05407753214240074, 0.027226274833083153, -0.03176398575305939, -0.014091284945607185, 0.019519664347171783, -0.025669952854514122, 0.011803677305579185, 0.024263635277748108, -0.025726204738020897, 0.01190680731087923, 0.02141350321471691, -0.037501756101846695, 0.00936137605458498, -0.004542400129139423, -0.013978779315948486, -0.007715986110270023, -0.08437895029783249, -0.0528399758040905, 0.02060721442103386, -0.02600746788084507, 0.07009078562259674, 0.012909979559481144, 0.0033517193514853716, -0.014119410887360573, -0.012544337660074234, 0.05141490697860718, -0.007744112517684698, -0.011269277893006802, -0.08317889273166656, 0.015085081569850445, 0.012309951707720757, -0.022294793277978897, 0.048302263021469116, -0.03918933495879173, 0.025857461616396904, 0.049877334386110306, 0.002005171962082386, 0.019688421860337257, 0.02475115843117237, -0.006389361806213856, 0.018160225823521614, 0.031051453202962875, -0.015656983479857445, 0.028107566758990288, 0.055502597242593765, 0.06435301154851913, 0.0439145565032959, 0.016894541680812836, -0.02852008491754532, 0.007805053144693375, 0.0024329263251274824, -0.033451564610004425, 0.008559775538742542, -0.0037032985128462315, -0.021075986325740814, -0.009084800258278847, -0.028951356187462807, 0.03392033651471138, 0.020963482558727264, 0.0023063579574227333, -0.05595261976122856, -0.00021651404676958919, 0.03399534150958061, 0.013613137416541576, 0.00230284221470356, 0.08385393023490906, -0.01651952415704727, -0.01766332797706127, -0.021263495087623596, 0.04713970795273781, 0.007012828253209591, 0.025969965383410454, -0.040426891297101974, -0.07785364240407944, 0.006108098663389683, -0.01655702479183674, -0.044477082788944244, -0.007833179086446762, -0.004312701988965273, 0.02786380425095558, -0.012638092041015625, -0.03690172731876373, 0.03695797920227051, -0.09495444595813751, -0.04443958029150963, 0.03581417724490166, 0.031070204451680183, 0.002186821075156331, 0.00008371974399778992, 0.013978779315948486, -0.0029884211253374815, 0.034164100885391235, 0.017757082358002663, -0.05542759597301483, -0.044889602810144424, -0.031351469457149506, -0.029063861817121506, -0.011306779459118843, 0.03903932869434357, -0.05148991197347641, 0.014644435606896877, 0.04376455023884773, 0.001910245744511485, 0.03538290783762932, -0.01873212680220604, 0.011466162279248238, 0.00033898072433657944, -0.025294935330748558, 0.08092878758907318, -0.0020696280989795923, 0.02694501169025898, 0.0031806176993995905, -0.0023825333919376135, 0.01912589557468891, -0.007120646070688963, 0.09210431575775146, 0.05088988319039345, -0.023382345214486122, -0.002279403619468212, -0.01861024647951126, -0.011719298548996449, 0.0025243370328098536, -0.027282526716589928, -0.013303748331964016, 0.051339905709028244, 0.02694501169025898, -0.04027688503265381, 0.016978919506072998, 0.025838710367679596, 0.004047845955938101, 0.007411284372210503, -0.026926260441541672, 0.01045361440628767, 0.004725221078842878, 0.012600590474903584, -0.003272028174251318, 0.008320702239871025, 0.071590855717659, 0.010772379115223885, 0.10222978889942169, -0.01747581921517849, 0.03607669100165367, -0.01893838681280613, 0.05182742699980736, -0.003778301877900958, 0.039264339953660965, -0.03153897821903229, 0.06592808663845062, 0.0008203508914448321, -0.05906526744365692, -0.0172695592045784, 0.04001437500119209, 0.009122301824390888, 0.03870181366801262, 0.03262652829289436, 0.017213305458426476, 0.038439299911260605, 0.07305341958999634, 0.03435160964727402, 0.04008937627077103, -0.08032876253128052, -0.001972357975319028, -0.05554009974002838, 0.03669546917080879, 0.05235245078802109, -0.01913527026772499, 0.031970247626304626, 0.015731986612081528, -0.02799506112933159, -0.044364579021930695, -0.07106582820415497, 0.026157474145293236, 0.0255011934787035, -0.03195149451494217, -0.0108098816126585, -0.026963762938976288, -0.02381361462175846, 0.016144506633281708, -0.017203930765390396, -0.04991483688354492, 0.016697656363248825, 0.008348828181624413, 0.05647764354944229, 0.012863102369010448, -0.032514020800590515, 0.08752910047769547, -0.014063158072531223, -0.02840757928788662, 0.051864929497241974, -0.006520617753267288, -0.04515211284160614, 0.02214478701353073, -0.023794863373041153, 0.03828929364681244, -0.012609965167939663, -0.0026251228991895914, 0.02141350321471691, 0.005765894893556833, 0.09892963618040085, 0.029607636854052544, -0.002533712424337864, -0.017016422003507614, 0.011438035406172276, 0.027713797986507416, -0.05130240321159363, -0.02923261933028698, 0.007148772478103638, -0.04867728054523468, 0.05430254340171814, 0.014719439670443535, -0.015863243490457535, -0.004647873807698488, -0.03101395256817341, 0.027301277965307236, -0.011775551363825798, 0.01953841559588909, -0.06574057787656784, -0.02163851261138916, -0.01881650649011135, 0.029495131224393845, -0.006806568708270788, -0.04563963785767555, 0.001211775466799736, 0.04563963785767555, -0.0033353124745190144, 0.0022629965096712112, 0.023326091468334198, 0.05936527997255325, 0.027132520452141762, 0.007111270446330309, -0.03078894130885601, 0.0066846879199147224, 0.021244745701551437, 0.054452549666166306, -0.01768207736313343, -0.012788099236786366, -0.00475803529843688, 0.01936965622007847, 0.006801880896091461, -0.07560353726148605, 0.03543915972113609, 0.030845195055007935, 0.04338953271508217, -0.06326546519994736, -0.04008937627077103, -0.004704126622527838, -0.04252699017524719, -0.021694766357541084, 0.030245166271924973, -0.01655702479183674, -0.006665937136858702, 0.023157333955168724, 0.04950231686234474, 0.0006129193352535367, 0.07039079815149307, -0.013856898993253708, -0.00900510884821415, -0.03067643567919731, 0.0062206038273870945, -0.049052298069000244, -0.03195149451494217, 0.00879416149109602, -0.007425347808748484, 0.029082611203193665, -0.01676328480243683, 0.026082471013069153, 0.012609965167939663, 0.06529055535793304, 0.04672718793153763, 0.07447848469018936, 0.04912729933857918, -0.009984842501580715, -0.0047603789716959, -0.006440926808863878, -0.056327637284994125, -0.04297701269388199, -0.0043525476939976215, -0.041551943868398666, -0.03058268129825592, 0.028988856822252274, 0.0020520491525530815, -0.01745706796646118, 0.004746316000819206, 0.015881992876529694, -0.012394330464303493, 0.005681516136974096, -0.05899026244878769, 0.006098723039031029, -0.027207523584365845, -0.06637810915708542, -0.0298513974994421, 0.020475959405303, -0.003872056258842349, -0.04743972048163414, -0.02715127170085907, 0.031557727605104446, 0.027076268568634987, 0.04796474426984787, -0.018028968945145607, -0.024113629013299942, -0.02495741844177246, -0.001123294816352427, -0.020513460040092468, 0.030432675033807755, -0.016416393220424652, 0.053852520883083344, -0.010406737215816975, -0.015835115686058998, 0.007744112517684698, -0.046239666640758514, 0.04065190255641937, 0.07211587578058243, -0.022501053288578987, 0.0009510210948064923, -0.00209306669421494, 0.006853445898741484, 0.013613137416541576, 0.035607919096946716, -0.025651201605796814, -0.03611418977379799, 0.009759832173585892, -0.015235088765621185, -0.03483913093805313, -0.022538555786013603, -0.014888197183609009, -0.0017438316717743874, -0.03960185497999191, 0.01117552351206541, 0.08137881010770798, 0.006895635277032852, -0.014991327188909054, -0.054565053433179855, 0.0028735720552504063, 0.021394751965999603, 0.03723924234509468, -0.08100379258394241, -0.017419565469026566, 0.025088675320148468, 0.054677560925483704, -0.054265040904283524, -0.004000968765467405, 0.025257432833313942, 0.01685703918337822, 0.02672000043094158, -0.014185039326548576, 0.024394892156124115, -0.03873931244015694, -0.044139567762613297, -0.03341406583786011, 0.03142647072672844, -0.040426891297101974, -0.09060424566268921, -0.005086175631731749, -0.024263635277748108, 0.009225431829690933, -0.019725924357771873, -0.010528618469834328, -0.01996968500316143, 0.0007898807525634766, -0.01987593062222004, -0.0337328277528286, -0.046652182936668396, 0.05565260723233223, -0.008531649596989155, -0.02735753171145916, 0.05482756718993187, 0.04878978431224823, 0.0528399758040905, -0.026870008558034897, 0.016594527289271355, 0.04657718166708946, 0.007040954660624266, -0.02621372789144516, 0.09847961366176605, 0.028163818642497063, 0.001377017586492002, -0.0741034671664238, -0.0439145565032959, 0.042076971381902695, 0.005428379401564598, 0.03236401453614235, 0.018572743982076645, -0.023063579574227333, -0.04410206526517868, -0.026551242917776108, 0.017560197040438652, 0.002847789553925395, 0.025651201605796814, -0.04732721671462059, -0.01144741103053093, 0.014888197183609009, -0.01581636629998684, 0.04376455023884773, -0.051864929497241974, -0.02955138310790062, 0.030863944441080093, -0.03429535776376724, -0.03918933495879173, 0.031688984483480453, 0.029363874346017838, -0.009408253245055676, 0.0008607825147919357, -0.012356828898191452, 0.07200337201356888, 0.013022485189139843, -0.02100098319351673, -0.01631326414644718, -0.01190680731087923, -0.006736252922564745, -0.014953825622797012, 0.02248230203986168, 0.015010077506303787, -0.024488646537065506, -0.07196587324142456, 0.010791130363941193, -0.004746316000819206, 0.019163398072123528, 0.0173820648342371, 0.0009668421698734164, -0.055577602237463, 0.017016422003507614, -0.016397641971707344, 0.026926260441541672, -0.056215133517980576, -0.03463287279009819, 0.011119270697236061, -0.03588918223977089, -0.09030422568321228, -0.09052924066781998, 0.01275059673935175, -0.004486147779971361, -0.050702374428510666, 0.020007187500596046, -0.012300576083362103, 0.018338358029723167, 0.0036751721054315567, 0.04515211284160614, -0.02424488589167595, -0.025632450357079506, -0.04627716541290283, 0.01471006404608488, -0.012075565755367279, -0.027507537975907326, 0.03193274512887001, 0.05160241574048996, -0.07264090329408646, -0.015975747257471085, 0.028126316145062447, 0.019313404336571693, 0.010275481268763542, -0.004774442408233881, -0.014888197183609009, 0.038851819932460785, 0.02807006426155567, -0.048114754259586334, 0.013444379903376102, -0.024788660928606987, 0.005897151306271553, -0.027338780462741852, -0.00016407018119934946, -0.04492710530757904, -0.04762722924351692, 0.015263214707374573, 0.08812912553548813, -0.010350484400987625, 0.012356828898191452, -0.011456786654889584, -0.01831960864365101, 0.026401236653327942, -0.08527899533510208, -0.0322515107691288, 0.013144365511834621, -0.12128067761659622, 0.008292575366795063, -0.042714498937129974, 0.04203946888446808, -0.03341406583786011, 0.0019629825837910175, -0.05790271237492561, -0.002061424544081092, 0.0393393412232399, 0.02840757928788662, 0.0308826956897974, 0.02351360023021698, 0.000481956172734499, 0.02831382490694523, 0.04522711783647537, -0.008812912739813328, 0.008878541179001331, -0.01717580482363701, -0.025519944727420807, -0.03378908336162567, 0.0014391299337148666, 0.04455208778381348, 0.03881431743502617, -0.03358282148838043, 0.0571901798248291, -0.04537712410092354, -0.01957591623067856, -0.015235088765621185, -0.003272028174251318, 0.020007187500596046, 0.03153897821903229, 0.04672718793153763, -0.024188632145524025, -0.014700688421726227, -0.01181305292993784, 0.03607669100165367, 0.0052689965814352036, -0.0013242807472124696, 0.005512758158147335, -0.029288871213793755, 0.011053642258048058, -0.03643295541405678, -0.01316311676055193, -0.045489631593227386, -0.0056533897295594215, -0.02662624605000019, 0.003942372277379036, 0.010622372850775719, 0.023888617753982544, -0.05036485940217972, -0.0370517335832119, 0.026457488536834717, -0.014306919649243355, 0.036564212292432785, 0.05899026244878769, -0.005062737036496401, -0.059665292501449585, 0.017325811088085175, -0.0009943825425580144, -0.06971576809883118, 0.03545790910720825, -0.010284856893122196, -0.037089236080646515, -0.06990327686071396, -0.0058315228670835495, 0.023644857108592987, -0.0012223228113725781, 0.03778301924467087, -0.03176398575305939, -0.062252916395664215, -0.06469053030014038, 0.013725643046200275, -0.02476990967988968, -0.009272309020161629, -0.017925839871168137, -0.05178992450237274, 0.05295247957110405, -0.03159523010253906, 0.027620043605566025, 0.014288169331848621, 0.013725643046200275, 0.02133850008249283, -0.06094035506248474, 0.03183899074792862, 0.05662764981389046, 0.028370078653097153, -0.05790271237492561, -0.010725501924753189, 0.03523290157318115, 0.041026920080184937, 0.0038298668805509806, -0.041251931339502335, 0.002864196663722396, -0.03255152329802513, -0.0027282526716589928, 0.03607669100165367, 0.004898666869848967, 0.018075846135616302, -0.06682813167572021, -0.02964513748884201, 0.009759832173585892, 0.03399534150958061, -0.04481459781527519, 0.04256449267268181, 0.019950933754444122, -0.025013672187924385, -0.025969965383410454, -0.0064924913458526134, -0.035514164716005325, 0.05614012852311134, -0.003832210786640644, 0.051227398216724396, 0.071590855717659, 0.003072800114750862, 0.0459771528840065, -0.05666515231132507, -0.022744815796613693, 0.0063143582083284855, 0.04608965665102005, -0.00869103241711855, -0.00837226677685976, 0.07170335948467255, -0.012413081713020802, 0.022538555786013603, -0.04106442257761955, 0.015835115686058998, 0.04473959654569626, 0.051452409476041794, -0.037182990461587906, 0.02872634492814541, -0.024732409045100212, -0.05812772363424301, -0.09045423567295074, 0.0017110175685957074, -0.0693032443523407, 0.05797771364450455, 0.03213900327682495, 0.010312982834875584, 0.022913573309779167, 0.043839551508426666, 0.00044797020382247865 ]
715,366
pytorch_optimizer.optimizer.adamp
__str__
null
def __str__(self) -> str: return 'AdamP'
(self) -> str
[ 0.005315600428730249, -0.02693704515695572, 0.028811080381274223, -0.01082385890185833, 0.004433315712958574, -0.07061779499053955, 0.03443318232893944, -0.003544463310390711, 0.10186336934566498, -0.07030253857374191, -0.06483806669712067, -0.008757167495787144, -0.01996634155511856, 0.041403885930776596, 0.010683744214475155, 0.002622771542519331, 0.015903014689683914, -0.036149587482213974, -0.00041487079579383135, 0.029494138434529305, 0.011069059371948242, 0.029774367809295654, 0.03534392639994621, -0.010140799917280674, -0.034223008900880814, 0.06743018329143524, -0.008638945408165455, -0.022575976327061653, -0.017032690346240997, 0.01802225038409233, 0.02026408538222313, -0.07313986122608185, 0.0008926837472245097, 0.007373534608632326, -0.027252303436398506, 0.021700259298086166, -0.046132754534482956, 0.023083891719579697, -0.04497681185603142, -0.023101406171917915, 0.0014952862402424216, 0.014887183904647827, -0.008735273964703083, -0.030720142647624016, -0.024099724367260933, -0.022015517577528954, 0.028933679684996605, 0.03965245187282562, 0.002780400449410081, 0.003826881991699338, 0.003025601152330637, 0.015789171680808067, -0.0349586121737957, -0.009291354566812515, -0.031560830771923065, 0.024590125307440758, 0.05352380499243736, -0.00003680746885947883, -0.006265752948820591, 0.03688518702983856, -0.03459081053733826, -0.04630789905786514, 0.06172051280736923, -0.05825267732143402, -0.036569930613040924, 0.007189634256064892, 0.00008025122951949015, 0.03331226482987404, 0.019913798198103905, 0.04287508875131607, 0.03926713764667511, -0.055030036717653275, -0.004798927344381809, 0.04354063421487808, 0.031245572492480278, 0.0008768113330006599, -0.09366665780544281, 0.0034744059666991234, 0.02273360639810562, -0.04189428687095642, 0.0352388396859169, -0.018670279532670975, -0.048059333115816116, -0.0018849802436307073, -0.02732236124575138, -0.08806207031011581, -0.051316998898983, -0.07124831527471542, -0.022225691005587578, 0.0130394222214818, -0.002948976121842861, 0.009860570542514324, -0.006370839197188616, 0.06651943922042847, -0.04262989014387131, -0.01713777519762516, 0.02094714343547821, -0.037971075624227524, 0.031193029135465622, 0.061825599521398544, 0.0018149228999391198, 0.019931312650442123, -0.01998385600745678, 0.02994951233267784, -0.046412985771894455, -0.023276550695300102, -0.02856587991118431, 0.015762900933623314, 0.011787147261202335, 0.007307855878025293, -0.05506506562232971, 0.00545133650302887, 0.008735273964703083, 0.002141127362847328, 0.024502553045749664, -0.05954873561859131, 0.009860570542514324, -0.0002545051684137434, 0.03346989303827286, -0.03065008483827114, 0.030474942177534103, 0.008984853513538837, -0.044451382011175156, -0.024730239063501358, 0.0366399884223938, 0.06165045499801636, -0.05061642453074455, -0.054889924824237823, 0.03583432734012604, -0.04199937358498573, 0.03511624038219452, 0.012111161835491657, -0.06256119906902313, -0.02332909405231476, 0.09492769092321396, -0.004017350263893604, 0.04301520437002182, 0.032384004443883896, 0.04403103515505791, 0.13934403657913208, -0.006760532967746258, -0.00020250948728062212, 0.06119508296251297, 0.036990273743867874, 0.004952177871018648, -0.01649850234389305, -0.00008421931852353737, 0.06757029891014099, -0.008306172676384449, 0.000741622585337609, 0.04319034889340401, 0.03303203359246254, 0.04119371250271797, 0.0073954276740550995, -0.005030992440879345, 0.024047181010246277, -0.020176513120532036, -0.04651807248592377, 0.017050204798579216, -0.034065380692481995, -0.0033846450969576836, -0.06273634731769562, -0.008897282183170319, 0.01540385652333498, 0.011909747496247292, 0.02705964632332325, 0.004886499140411615, 0.03443318232893944, 0.009326382540166378, 0.00030923745362088084, -0.026008786633610725, -0.0629114881157875, -0.07762353122234344, 0.04105360060930252, 0.00006082126128603704, 0.050020936876535416, 0.010167070664465427, 0.08820218592882156, 0.03881176561117172, -0.028933679684996605, 0.0006469357176683843, 0.0030715763568878174, -0.0366399884223938, 0.01054362952709198, 0.07250934094190598, -0.03965245187282562, 0.0177595354616642, 0.05772724375128746, 0.035186298191547394, 0.001650725957006216, -0.009370168671011925, 0.013783780857920647, -0.03241903334856033, 0.021945461630821228, -0.025150584056973457, -0.04588755592703819, -0.003936346620321274, -0.05786735936999321, 0.004781413357704878, 0.016612345352768898, -0.013976438902318478, 0.04368074983358383, -0.03550155460834503, 0.022961292415857315, 0.0693567618727684, 0.02415226772427559, 0.00943146925419569, -0.00821860134601593, 0.002216657856479287, -0.0538390651345253, 0.020369170233607292, 0.01061368640512228, -0.012732921168208122, 0.015465157106518745, 0.033224690705537796, -0.062491144984960556, 0.02024657092988491, -0.021052230149507523, 0.002725668251514435, 0.027672648429870605, 0.04774407669901848, -0.016288330778479576, -0.0011515674414113164, -0.03229643404483795, -0.012303819879889488, 0.008249251171946526, 0.014449325390160084, -0.023399149999022484, -0.016971390694379807, -0.0057447017170488834, 0.012575292028486729, -0.07867439091205597, -0.018074793741106987, 0.019791197031736374, 0.002703775418922305, 0.02080702967941761, -0.04091348499059677, -0.03375012055039406, -0.09128470718860626, -0.0349586121737957, -0.011489403434097767, 0.010631200857460499, 0.013293379917740822, 0.029581710696220398, 0.03152580186724663, -0.04147394374012947, -0.020001370459794998, 0.0033890237100422382, -0.007715064100921154, -0.03346989303827286, 0.029651768505573273, -0.0352388396859169, -0.010298428125679493, 0.0010120001388713717, -0.01422163937240839, -0.052928317338228226, -0.025430813431739807, 0.02926645241677761, 0.006637932732701302, 0.006121259648352861, -0.06813076138496399, -0.010237128473818302, -0.04122874140739441, 0.039056964218616486, 0.01060492917895317, 0.030755171552300453, -0.01900305226445198, 0.025973757728934288, 0.052928317338228226, -0.020158998668193817, 0.10956967622041702, 0.01858270913362503, -0.05594078451395035, 0.015307527966797352, -0.028092991560697556, -0.01749682053923607, -0.023346606642007828, 0.04049314185976982, -0.10270405560731888, -0.055030036717653275, -0.012925578281283379, -0.04361069202423096, 0.0004154181224294007, 0.028390735387802124, 0.0020995307713747025, -0.05212265998125076, 0.03618461266160011, -0.011918504722416401, 0.014037738554179668, 0.020456742495298386, 0.06063462421298027, -0.003581681288778782, -0.014641983434557915, -0.0013902002247050405, 0.01637590304017067, 0.005648372694849968, 0.044206179678440094, 0.02578110061585903, -0.03431057929992676, -0.014256668277084827, -0.009930627420544624, -0.020894600078463554, 0.003380266483873129, -0.02290874905884266, -0.0349586121737957, -0.012225004844367504, -0.037095360457897186, -0.004363258369266987, -0.00014490375178866088, 0.004509941209107637, -0.033102091401815414, 0.020421713590621948, 0.0022286989260464907, 0.08995362371206284, 0.020491771399974823, 0.06242108717560768, -0.012785463593900204, -0.0057928659953176975, 0.04259486123919487, 0.05051134154200554, -0.046973444521427155, -0.00850758794695139, -0.04399600625038147, -0.0038969393353909254, -0.0035991957411170006, -0.009624126367270947, -0.04010782390832901, 0.07783370465040207, 0.01755812019109726, 0.03695524483919144, -0.05093168467283249, -0.05254300311207771, 0.03040488436818123, -0.017330434173345566, -0.04105360060930252, 0.0006376312230713665, 0.028968708589673042, -0.016629859805107117, -0.023364121094346046, -0.029354024678468704, 0.08939316123723984, -0.01729540526866913, -0.03923210874199867, 0.03494109585881233, 0.019195709377527237, 0.03506369888782501, -0.03543149679899216, -0.0015456399414688349, 0.0171990767121315, -0.0032817483879625797, -0.007334127556532621, -0.01916068233549595, 0.017234105616807938, 0.01422163937240839, 0.022786147892475128, 0.016612345352768898, -0.014002710580825806, 0.08427897840738297, -0.03108794242143631, 0.018512651324272156, -0.016568560153245926, -0.08792195469141006, 0.02026408538222313, 0.01830247975885868, -0.03177100047469139, 0.004293201025575399, -0.004334797617048025, -0.006278888788074255, 0.05678147077560425, -0.058602962642908096, -0.01228630542755127, 0.003051872830837965, -0.036009471863508224, -0.024379953742027283, -0.031420715153217316, 0.0654335543513298, 0.03534392639994621, 0.03121054358780384, -0.06256119906902313, -0.003894750028848648, 0.04588755592703819, -0.0041924938559532166, 0.040037769824266434, 0.06108999624848366, 0.00039215688593685627, -0.0011865961132571101, 0.031560830771923065, 0.01173460390418768, -0.010482328943908215, -0.009028639644384384, -0.01665613241493702, -0.035308897495269775, -0.011515675112605095, -0.009676669724285603, -0.05040625482797623, -0.06662452965974808, -0.03695524483919144, -0.03359249234199524, -0.0724392831325531, 0.02138500288128853, 0.03229643404483795, -0.02374943718314171, -0.006116881035268307, -0.0065634967759251595, -0.050581395626068115, 0.054049234837293625, 0.01563154347240925, -0.001586141879670322, -0.035869356244802475, 0.03534392639994621, 0.012347606010735035, -0.0027015861123800278, -0.04564235359430313, -0.06494314968585968, 0.09723958373069763, 0.011235445737838745, -0.01872282288968563, 0.0039669969119131565, 0.01802225038409233, -0.018897967413067818, -0.042244575917720795, 0.04525703936815262, 0.022173147648572922, 0.0690765306353569, 0.004098354373127222, 0.01394140999764204, 0.009273840114474297, 0.04077336937189102, 0.06123011186718941, -0.022558461874723434, -0.029756853356957436, 0.009448983706533909, -0.013275865465402603, -0.021174829453229904, 0.037130389362573624, -0.014528140425682068, 0.006042445078492165, -0.03285689279437065, -0.03219134733080864, 0.00884911697357893, 0.02926645241677761, -0.049600593745708466, -0.003774339100345969, 0.02541329897940159, 0.019195709377527237, -0.04718361794948578, -0.05926850810647011, 0.0037699604872614145, 0.05940861999988556, 0.00748737808316946, 0.016209516674280167, 0.03539646789431572, 0.01573663018643856, -0.042524803429841995, 0.02635907381772995, -0.022681063041090965, 0.01968611218035221, -0.05443454906344414, 0.004505562596023083, 0.022663548588752747, -0.06094988435506821, 0.0566413551568985, -0.026744388043880463, 0.030194712802767754, 0.025868671014904976, 0.04553727060556412, 0.002421356737613678, 0.04735875874757767, -0.04234965890645981, 0.008809709921479225, 0.03902193531394005, -0.024642668664455414, -0.018985537812113762, -0.0266393031924963, -0.011305502615869045, 0.03649987280368805, -0.05481986701488495, -0.01552645768970251, -0.002219941932708025, -0.00015735534543637186, -0.0388818234205246, -0.022996321320533752, 0.008358716033399105, 0.07173871248960495, 0.0021498845890164375, 0.011822175234556198, 0.0075968424789607525, 0.02968679741024971, -0.03191111609339714, 0.00540755083784461, 0.031560830771923065, 0.013135750778019428, -0.04441635310649872, -0.023907065391540527, -0.03315463289618492, 0.030842741951346397, -0.007828907109797001, -0.026884503662586212, -0.07629244029521942, 0.01761941984295845, 0.0025351999793201685, -0.02050928585231304, -0.0026337180752307177, -0.02343417890369892, 0.06179057061672211, -0.021840374916791916, 0.0080259433016181, 0.0023994636721909046, -0.019038081169128418, -0.027515018358826637, -0.0019189142622053623, -0.030019568279385567, 0.017234105616807938, 0.0016726189060136676, 0.017330434173345566, 0.006918162107467651, 0.003178851678967476, 0.015517700463533401, -0.016691161319613457, 0.028811080381274223, 0.0056177228689193726, -0.03653490170836449, -0.060424454510211945, -0.029774367809295654, -0.023889552801847458, 0.038636621087789536, -0.025430813431739807, 0.03930216655135155, -0.033504921942949295, 0.08694115281105042, -0.009273840114474297, 0.04921527951955795, 0.01912565343081951, 0.06049450859427452, -0.012093647383153439, 0.07657267153263092, -0.11111093312501907, 0.013626151718199253, 0.017531849443912506, 0.04343554750084877, 0.028215592727065086, -0.03306706249713898, -0.0018390050390735269, -0.034345608204603195, 0.006567875389009714, -0.03583432734012604, -0.03399532288312912, 0.019108138978481293, 0.01569284312427044, 0.0032138803508132696, 0.010806344449520111, -0.05839278921484947, -0.03534392639994621, -0.03191111609339714, 0.0016036562155932188, 0.04007279500365257, -0.0178996492177248, 0.018372535705566406, 0.04143891483545303, 0.031981173902750015, -0.027129704132676125, -0.003612331347540021, 0.0758020356297493, 0.02331157959997654, 0.04213948920369148, 0.04704350233078003, -0.027672648429870605, 0.03022974170744419, -0.006077473983168602, -0.05772724375128746, 0.0001561238750582561, -0.07135339826345444, 0.03234897553920746, 0.06438269466161728, -0.09233556687831879, 0.062386058270931244, 0.0321037732064724, 0.03993268311023712, -0.030177198350429535, 0.047218646854162216, -0.04371577873826027, 0.05618598312139511, -0.009685426950454712, -0.03231394663453102, -0.04382086545228958, -0.0016255491646006703, -0.03173597529530525, -0.018232421949505806, 0.00922129675745964, -0.04490675404667854, -0.05881313607096672, -0.0033474271185696125, -0.033102091401815414, -0.02467769756913185, 0.05566055327653885, -0.05685152858495712, -0.011209174059331417, -0.016769975423812866, 0.02413475327193737, -0.006256995722651482, 0.03206874430179596, 0.031841058284044266, 0.025027982890605927, 0.05201757326722145, 0.09394688904285431, 0.062070801854133606, 0.000828646938316524, 0.011410588398575783, -0.029791882261633873, 0.022155633196234703, -0.051702313125133514, 0.008187951520085335, -0.00475514167919755, -0.007123955525457859, -0.01817987859249115, -0.02332909405231476, 0.031158000230789185, -0.029494138434529305, -0.02721727453172207, 0.01171708945184946, 0.01193601917475462, 0.06508326530456543, -0.017987221479415894, 0.058217648416757584, -0.031858574599027634, -0.01747930608689785, 0.010639958083629608, -0.018950508907437325, 0.040317997336387634, -0.07538169622421265, -0.0005856355419382453, -0.003318966366350651, -0.02106974460184574, -0.07475117594003677, -0.024747753515839577, 0.009247568435966969, 0.02483532577753067, 0.02842576429247856, -0.02968679741024971, 0.02290874905884266, -0.03940725326538086, -0.0028723508585244417, -0.05324357748031616, 0.029354024678468704, -0.04690338671207428, 0.0315433144569397, -0.08729144185781479, -0.05275317281484604, -0.012811735272407532, -0.0552402101457119, -0.03394278138875961, 0.01089391577988863, -0.010797587223351002, 0.02788281999528408, -0.007995293475687504, -0.006891890428960323, -0.010648715309798717, 0.025693528354167938, -0.036009471863508224, -0.03066759929060936, 0.0041684117168188095, -0.07054773718118668, 0.005735944490879774, -0.04749887436628342, 0.07874444872140884, 0.03080771304666996, -0.03397780656814575, -0.0195810254663229, -0.006270131561905146, -0.032384004443883896, -0.025903699919581413, 0.04368074983358383, 0.0006146436790004373, -0.06326177716255188, -0.011323017068207264, -0.008205465972423553, 0.036990273743867874, -0.009597854688763618, 0.04277000576257706, -0.048794936388731, 0.03466086834669113, -0.028233107179403305, 0.007123955525457859, -0.07475117594003677, 0.02343417890369892, 0.058637991547584534, -0.04648304358124733, 0.0034897311124950647, 0.03431057929992676, -0.06893642246723175, -0.048900019377470016, -0.05254300311207771, -0.01291682105511427, 0.037971075624227524, 0.08911292999982834, 0.04157903045415878, -0.0027059647254645824, -0.016673646867275238, -0.016568560153245926, -0.004328229930251837, 0.005061642732471228, 0.06161542609333992, -0.008809709921479225, -0.008739653043448925, 0.005692158825695515, -0.014177853241562843, -0.010955216363072395, 0.0329970046877861, 0.018950508907437325, -0.03993268311023712, 0.055310267955064774, 0.05961879342794418, -0.03297949209809303, -0.0066116610541939735, 0.06031936779618263, -0.08462926000356674, -0.012645348906517029, 0.028390735387802124, 0.009186267852783203, 0.048094362020492554, -0.0038619106635451317, 0.008529480546712875, -0.005398793611675501, -0.01457192562520504, 0.032944463193416595, 0.032138802111148834, -0.04217451810836792, -0.03494109585881233, -0.0541192926466465, -0.00738667044788599, 0.014650740660727024, 0.05065145343542099, -0.02485284022986889, 0.03371509164571762, 0.018390050157904625, 0.008367473259568214, 0.034468211233615875, 0.012058619409799576, 0.07706306874752045, 0.046272870153188705, 0.015491428785026073, 0.038776736706495285, 0.013836324214935303, -0.009825541637837887, 0.0029730582609772682, 0.04284005984663963, 0.041544001549482346, 0.0256584994494915, -0.03583432734012604, 0.023942094296216965, 0.054609693586826324, 0.04494178295135498, -0.0034656489733606577, 0.03539646789431572, 0.012776706367731094, -0.036710046231746674, -0.010464814491569996, 0.02149008773267269, 0.006379596423357725, -0.022138118743896484, -0.014256668277084827, -0.020351655781269073, 0.013739995658397675, -0.007478620857000351, -0.010123285464942455, 0.04550224170088768, 0.0011690817773342133, 0.03737558797001839 ]
715,387
pytorch_optimizer.optimizer.adamp
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() for group in self.param_groups: if 'step' in group: group['step'] += 1 else: group['step'] = 1 beta1, beta2 = group['betas'] bias_correction1: float = 1.0 - beta1 ** group['step'] bias_correction2_sq: float = math.sqrt(1.0 - beta2 ** group['step']) for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) state = self.state[p] if len(state) == 0: state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) if self.use_gc: centralize_gradient(grad, gc_conv_only=False) s_grad = self.get_adanorm_gradient( grad=grad, adanorm=group['adanorm'], exp_grad_norm=state.get('exp_grad_norm', None), r=group.get('r', None), ) exp_avg, exp_avg_sq = state['exp_avg'], state['exp_avg_sq'] exp_avg.mul_(beta1).add_(s_grad, alpha=1.0 - beta1) exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) inv_de_nom = exp_avg_sq.rsqrt().add_(group['eps']).mul_(bias_correction2_sq) perturb = exp_avg.clone() if group['nesterov']: perturb.mul_(beta1).addcmul_(grad, inv_de_nom, value=1.0 - beta1) else: perturb.mul_(inv_de_nom) wd_ratio: float = 1.0 if len(p.shape) > 1: perturb, wd_ratio = projection( p, grad, perturb, group['delta'], group['wd_ratio'], group['eps'], ) self.apply_weight_decay( p=p, grad=None, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ratio=wd_ratio, ) step_size: float = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'], bias_correction1=bias_correction1, ) p.add_(perturb, alpha=-step_size) return loss
(self)
[ -0.008900717832148075, -0.026373213157057762, -0.025676636025309563, 0.055958423763513565, -0.007333417423069477, -0.0024815588258206844, -0.031210560351610184, -0.052359439432621, -0.02114887908101082, 0.022716179490089417, -0.029101476073265076, 0.006066032685339451, 0.013389775529503822, 0.08923936635255814, -0.033184196799993515, 0.04249124974012375, 0.010052005760371685, 0.05355910211801529, 0.02385779283940792, -0.010187451727688313, -0.026102321222424507, -0.07027696818113327, -0.021284325048327446, 0.04756079241633415, -0.06431736052036285, -0.008832994848489761, 0.043845709413290024, -0.005127587355673313, -0.02298707142472267, 0.00698512839153409, -0.018246471881866455, -0.0792163833975792, 0.019542880356311798, 0.006467532366514206, 0.04268474504351616, -0.05371389538049698, 0.008716898038983345, 0.015527882613241673, -0.0808030366897583, -0.03616400063037872, -0.026547357439994812, -0.018556060269474983, 0.00007845571235520765, 0.005214659497141838, -0.00019485436496324837, 0.0031829739455133677, -0.03807959333062172, 0.04098200052976608, -0.01324465498328209, -0.003308745101094246, 0.0003132181882392615, -0.04647722467780113, 0.06187933683395386, -0.011058174073696136, 0.021090831607580185, 0.07492082566022873, 0.05673240125179291, -0.05127587169408798, 0.029294969514012337, -0.048489559441804886, 0.058628641068935394, -0.07341156899929047, 0.028888633474707603, -0.0034949828404933214, 0.007754266262054443, -0.00796710979193449, -0.06640709191560745, -0.01771436259150505, 0.02528964728116989, 0.04535496234893799, 0.01727900095283985, 0.010303547605872154, 0.007415652275085449, -0.005591972731053829, -0.052204642444849014, -0.016069665551185608, -0.036570340394973755, -0.050269704312086105, 0.03136535361409187, -0.03126860782504082, 0.005635508801788092, 0.004883301444351673, -0.02542509324848652, 0.007686543744057417, 0.009447338059544563, -0.03589311242103577, -0.018768904730677605, -0.03357118368148804, 0.0018442383734509349, -0.030107645317912102, 0.03326159343123436, -0.004215747583657503, 0.026411911472678185, 0.027263285592198372, 0.05030840262770653, 0.051353272050619125, -0.038524627685546875, -0.03006894513964653, -0.029585210606455803, -0.029469115659594536, 0.016311531886458397, 0.04113679379224777, 0.03250696882605553, 0.04543235898017883, 0.037112120538949966, -0.04338132217526436, -0.013254329562187195, -0.0343838594853878, 0.03827308490872383, -0.057003289461135864, -0.02668280340731144, -0.00853307917714119, -0.03895031288266182, -0.015798773616552353, -0.035680267959833145, -0.014550738036632538, -0.009481199085712433, 0.006332086399197578, -0.030513981357216835, 0.047638189047575, 0.05352040007710457, -0.006917405407875776, -0.05057929456233978, 0.001354456995613873, 0.008465356193482876, 0.029604559764266014, 0.050114911049604416, 0.018091676756739616, 0.027843765914440155, -0.06598140299320221, -0.005432340316474438, -0.003690895391628146, -0.013505871407687664, -0.01308985985815525, 0.03221672773361206, -0.013360750861465931, -0.009655343368649483, 0.018381915986537933, 0.0035554496571421623, 0.004239934030920267, -0.00613859249278903, 0.008097718469798565, -0.0016023709904402494, 0.006989965680986643, 0.026373213157057762, 0.02915952540934086, 0.038698770105838776, 0.04202686622738838, -0.0001011307758744806, -0.0020667563658207655, 0.021458469331264496, 0.021090831607580185, 0.02438022568821907, 0.02275487780570984, 0.003306326223537326, 0.016862990334630013, -0.017704688012599945, 0.02739872969686985, -0.020239457488059998, -0.023548202589154243, -0.01893337443470955, -0.025405744090676308, -0.019833121448755264, 0.005766117013990879, 0.02439957484602928, 0.0073479292914271355, 0.002677471376955509, 0.04965052381157875, -0.03480954468250275, 0.021787408739328384, -0.0030547843780368567, -0.031404051929712296, 0.04392310604453087, 0.029236922040581703, -0.031752344220876694, 0.14527519047260284, 0.007686543744057417, 0.012219137512147427, -0.03059137985110283, -0.011290366761386395, 0.004387473221868277, -0.008968440815806389, -0.01422179862856865, -0.048296067863702774, 0.00108840293250978, 0.03391947224736214, 0.013786437921226025, 0.0013097116025164723, 0.02350950427353382, 0.0020873150788247585, -0.0076962183229625225, -0.012596449814736843, 0.04841216281056404, -0.008300886489450932, -0.0038650399073958397, 0.028346849605441093, 0.02596687525510788, 0.009916560724377632, 0.09481199085712433, 0.00951989833265543, -0.01778208650648594, -0.010206800885498524, 0.02244528755545616, -0.001538276206701994, -0.032971352338790894, -0.010409969836473465, -0.02577338181436062, 0.05959611013531685, 0.004259283654391766, 0.006235339678823948, -0.0572354830801487, 0.006936755031347275, 0.03277786076068878, 0.0626533105969429, 0.04516146704554558, -0.0687677189707756, 0.009394126944243908, 0.016795266419649124, 0.06191803514957428, 0.005703231319785118, -0.03916315734386444, -0.07480472326278687, 0.022677481174468994, -0.008073531091213226, 0.05750637501478195, -0.0198040958493948, 0.030726825818419456, -0.04229775816202164, -0.010893704369664192, -0.007410814985632896, 0.0057806288823485374, -0.026992393657565117, 0.008349260315299034, -0.011503210291266441, 0.04434879124164581, 0.011541908606886864, -0.05948001146316528, -0.023432105779647827, -0.000694763904903084, -0.0023158795665949583, -0.029101476073265076, -0.03718952089548111, -0.03028178960084915, 0.04817997291684151, -0.017540218308568, 0.031055765226483345, 0.06749065965414047, 0.011948245577514172, -0.016969410702586174, 0.03807959333062172, -0.0280953086912632, -0.03651229292154312, -0.028520995751023293, 0.04098200052976608, -0.05286252126097679, -0.023702997714281082, 0.07314068078994751, 0.03970494121313095, 0.04941833019256592, -0.052049849182367325, 0.0343838594853878, -0.05069538950920105, -0.057390280067920685, 0.05247553437948227, -0.042994335293769836, 0.017733711749315262, 0.042607348412275314, -0.043536119163036346, 0.05069538950920105, 0.03949209675192833, 0.07101224362850189, 0.08436332643032074, -0.05522314831614494, -0.028385549783706665, 0.0018901930889114738, 0.038002192974090576, 0.01165800541639328, 0.017849808558821678, -0.0038602023851126432, -0.027805067598819733, 0.07337287068367004, -0.052901219576597214, -0.07778453081846237, -0.0016023709904402494, -0.05982830002903938, 0.036725133657455444, -0.021110180765390396, -0.0015781843103468418, 0.06381427496671677, 0.003628009930253029, 0.039782337844371796, 0.007328580133616924, 0.10200995951890945, 0.008257350884377956, 0.0762752816081047, 0.009602133184671402, -0.010642162524163723, 0.005833839997649193, -0.036550991237163544, 0.015876172110438347, 0.06985128670930862, -0.0072076465003192425, 0.0068061463534832, 0.0018829371547326446, -0.017230628058314323, -0.013380100019276142, 0.019030120223760605, -0.0001618999376660213, 0.022542035207152367, -0.023548202589154243, -0.011416138149797916, -0.015160243958234787, -0.0013641316909343004, 0.02494135871529579, -0.004116581752896309, -0.09837228059768677, -0.0035143322311341763, -0.05766117200255394, 0.026547357439994812, 0.059325218200683594, -0.02600557543337345, 0.030107645317912102, 0.02974000573158264, 0.028230754658579826, -0.023567551746964455, -0.02685694769024849, 0.07550130039453506, 0.03635749593377113, -0.025695985183119774, -0.02014271169900894, -0.07612048089504242, -0.012025643140077591, 0.05568753182888031, 0.03360988199710846, -0.03773130103945732, -0.018014278262853622, 0.040324121713638306, -0.0014064584393054247, 0.026257116347551346, -0.0561906173825264, 0.05820295214653015, 0.03453865274786949, -0.03186843916773796, 0.02153586596250534, 0.027882466092705727, -0.029236922040581703, 0.029469115659594536, 0.023432105779647827, 0.036241400986909866, 0.009094211272895336, -0.009945584461092949, -0.015508532524108887, -0.016485676169395447, 0.06292420625686646, 0.02420608140528202, 0.040672410279512405, -0.008939416147768497, -0.020742541179060936, 0.02737938053905964, -0.08072564005851746, 0.01617608591914177, 0.02345145493745804, -0.05591972544789314, 0.09868186712265015, 0.10425449162721634, 0.00828153733164072, -0.04020802304148674, -0.029507813975214958, 0.03966624289751053, -0.022658130154013634, 0.018275495618581772, -0.043497420847415924, 0.0007800221210345626, 0.017308026552200317, -0.0362994484603405, -0.027979211881756783, -0.04361351579427719, -0.012122389860451221, 0.0736437663435936, 0.04984401911497116, 0.03291330486536026, -0.03775065019726753, -0.02972065657377243, 0.0343838594853878, 0.04496797174215317, -0.02470916509628296, 0.02099408395588398, -0.047947779297828674, 0.03645424172282219, -0.06567181646823883, 0.061995431780815125, 0.01958157867193222, 0.0064578577876091, 0.009718229062855244, -0.06253721565008163, 0.042800839990377426, 0.029856102541089058, 0.033513136208057404, -0.049766622483730316, -0.02062644623219967, -0.027805067598819733, 0.005272707901895046, 0.002839522436261177, 0.016901688650250435, -0.01849801279604435, -0.07805542647838593, -0.003485308261588216, 0.04628372937440872, 0.021052131429314613, 0.06826463341712952, -0.013370425440371037, 0.0030402722768485546, -0.04535496234893799, 0.009500548243522644, 0.007546260487288237, -0.0366477370262146, -0.019552554935216904, -0.019165566191077232, -0.006264363881200552, 0.0012976181460544467, 0.04504537209868431, 0.010342246852815151, 0.03419036418199539, 0.03360988199710846, -0.029449764639139175, -0.04187207296490669, -0.0434587225317955, -0.017540218308568, -0.04233645647764206, -0.0037731302436441183, -0.03059137985110283, -0.039937131106853485, -0.01699843630194664, -0.020007265731692314, -0.026450609788298607, 0.009147422388195992, -0.010438993573188782, 0.042955636978149414, 0.05355910211801529, 0.012219137512147427, -0.013302702456712723, 0.006661026272922754, -0.007289881352335215, -0.022135697305202484, -0.013834810815751553, -0.02794051356613636, 0.05858993902802467, -0.043110430240631104, -0.09752090275287628, 0.015324713662266731, 0.009810138493776321, 0.005906400270760059, 0.06296290457248688, -0.003245859406888485, 0.026837598532438278, 0.009582783095538616, -0.051314570009708405, -0.026605404913425446, -0.009810138493776321, 0.02062644623219967, 0.011493535712361336, 0.013215630315244198, -0.03200388327240944, 0.023354709148406982, -0.013041486032307148, -0.004128675442188978, 0.07867460697889328, 0.042452551424503326, -0.005804815795272589, 0.005766117013990879, -0.007662356831133366, -0.02828880213201046, 0.03167494386434555, -0.021071480587124825, -0.017404772341251373, -0.02258073352277279, -0.035080436617136, -0.010371270589530468, 0.03432581201195717, -0.040130626410245895, -0.002520257607102394, -0.05591972544789314, 0.02383844368159771, 0.03128795698285103, -0.010738909244537354, 0.03196518495678902, 0.005804815795272589, 0.01645665243268013, 0.0458967424929142, 0.059015627950429916, -0.04713510349392891, -0.061840638518333435, 0.050617992877960205, 0.03132665529847145, -0.05777726694941521, -0.053133413195610046, 0.032835908234119415, 0.011590282432734966, 0.08730442821979523, -0.03916315734386444, 0.021497167646884918, 0.04202686622738838, -0.054178278893232346, -0.0186721570789814, 0.004900231957435608, -0.029043428599834442, -0.05673240125179291, 0.009732740931212902, -0.04817997291684151, 0.0219035055488348, -0.0019119612406939268, -0.02151651680469513, 0.001647116499952972, -0.00035614962689578533, -0.011561257764697075, -0.04396180436015129, 0.04090460017323494, 0.07139923423528671, 0.04256865009665489, -0.05088888481259346, 0.02884993515908718, 0.007309230510145426, -0.01886565051972866, -0.008329910226166248, -0.00010770654625957832, 0.043342623859643936, -0.0005160844302736223, -0.006254688836634159, 0.006641676649451256, -0.0028903144411742687, -0.02169066108763218, 0.010003632865846157, 0.053481701761484146, 0.06636839359998703, -0.011348415166139603, -0.044774480164051056, -0.01966865174472332, -0.07588829100131989, -0.13846421241760254, -0.03900836035609245, 0.0019494505831971765, -0.019813770428299904, 0.01977507211267948, -0.01851736195385456, -0.03078487329185009, 0.03643489256501198, 0.019852470606565475, 0.00937961507588625, -0.030746174976229668, -0.012954413890838623, -0.02794051356613636, 0.02776636928319931, -0.023354709148406982, 0.029565861448645592, 0.018991421908140182, 0.019436458125710487, -0.03792479634284973, 0.02136172167956829, 0.01713388040661812, -0.0006941592437215149, -0.05278512462973595, -0.06640709191560745, 0.007018989883363247, -0.035486772656440735, 0.005035677924752235, 0.0280953086912632, 0.02561858668923378, -0.020684493705630302, -0.05146936699748039, 0.013322052545845509, -0.02492200955748558, 0.004827671684324741, -0.002219132613390684, -0.016862990334630013, -0.03862137347459793, 0.006748098414391279, 0.021632613614201546, -0.03840853273868561, 0.004259283654391766, -0.027843765914440155, 0.04326522722840309, -0.04934093356132507, -0.0014233891852200031, -0.01928166300058365, -0.0014391106087714434, 0.0572354830801487, -0.10796957463026047, 0.04342002049088478, 0.00393518153578043, 0.02171001024544239, -0.033029403537511826, 0.018294844776391983, -0.0771266520023346, -0.07735884189605713, 0.0039859735406935215, 0.012818967923521996, -0.03881486877799034, 0.013650991953909397, 0.021110180765390396, 0.020897336304187775, -0.05069538950920105, -0.0019760560244321823, 0.05386869236826897, 0.009935909882187843, -0.020684493705630302, 0.004351193085312843, -0.02171001024544239, 0.03933730348944664, 0.028501644730567932, -0.023354709148406982, -0.04411660134792328, -0.029662609100341797, 0.0020776402670890093, -0.014463665895164013, -0.07248280197381973, -0.023896491155028343, -0.019484831020236015, -0.0007056479225866497, 0.06323379278182983, 0.012054667808115482, -0.04063371196389198, 0.0003857783740386367, -0.04129159078001976, -0.011087197810411453, 0.016292182728648186, -0.03004959598183632, 0.04984401911497116, -0.07933248579502106, -0.02279357612133026, -0.032990701496601105, -0.048450861126184464, 0.03415166586637497, 0.027127839624881744, -0.042994335293769836, 0.05797075852751732, 0.017772411927580833, 0.05224334076046944, 0.03181039169430733, -0.029314320534467697, -0.05905432626605034, -0.01442496757954359, 0.04434879124164581, -0.016833966597914696, -0.011541908606886864, -0.02205830067396164, -0.0068061463534832, -0.02310316637158394, 0.0373443141579628, 0.04233645647764206, 0.008741085417568684, -0.01530536450445652, 0.05301731824874878, -0.0343838594853878, 0.022155046463012695, 0.015527882613241673, 0.0012238486669957638, 0.036047905683517456, 0.03608660399913788, 0.01663079671561718, -0.03862137347459793, 0.00024610001128166914, -0.021419771015644073, -0.024109335616230965, -0.009123235940933228, -0.02741808071732521, -0.004225422162562609, 0.0025492815766483545, -0.018565736711025238, -0.020045964047312737, -0.019746048375964165, -0.08676264435052872, -0.03703472390770912, -0.06416256725788116, -0.0016180924139916897, 0.02045230008661747, -0.020723192021250725, 0.029836753383278847, -0.032623063772916794, -0.03366793319582939, 0.022329190745949745, 0.02883058600127697, 0.03744106367230415, -0.0184109415858984, 0.03684123232960701, 0.03920185565948486, -0.0015914869727566838, 0.0009916559793055058, 0.0261797197163105, 0.0024549532681703568, 0.0044624521397054195, -0.05321080982685089, -0.01851736195385456, 0.020781241357326508, 0.02668280340731144, 0.03215868026018143, -0.07639137655496597, -0.03277786076068878, -0.030920319259166718, -0.0027451941277831793, -0.06145365163683891, 0.016321206465363503, -0.03360988199710846, -0.019552554935216904, -0.007110899314284325, 0.03500303998589516, 0.03635749593377113, 0.03535132855176926, -0.016727544367313385, 0.01695973612368107, 0.02242593839764595, 0.002213086001574993, 0.02261943183839321, -0.025483140721917152, 0.010980776511132717, 0.00266779656521976, 0.0006022496381774545, -0.01905914582312107, -0.028385549783706665, -0.06632969528436661, 0.04392310604453087, -0.017027460038661957, -0.02045230008661747, 0.02898537926375866, -0.0006046682829037309, -0.045277561992406845, -0.023219263181090355, 0.03610595315694809, -0.013544569723308086, 0.024651117622852325, 0.001940985326655209, 0.024302829056978226, 0.00600314699113369, -0.00375619949772954, 0.00930221751332283, -0.022851625457406044, -0.0010605881689116359, 0.05622931569814682, 0.015605280175805092, -0.029120825231075287, 0.004987304098904133, 0.011338740587234497, 0.031210560351610184, 0.004992141388356686, -0.0333389937877655, 0.022890323773026466, 0.040478914976119995, -0.01725965179502964, -0.025734683498740196, 0.035873763263225555, -0.06919340789318085, 0.07441774010658264, 0.048489559441804886, 0.031771693378686905, 0.04187207296490669, 0.07178622484207153, -0.04934093356132507, 0.01968800090253353, -0.07248280197381973, -0.07615918666124344, -0.07345026731491089, -0.00653041759505868, -0.030185041949152946, 0.07248280197381973, 0.03509978577494621, 0.024476973339915276, 0.019784746691584587, 0.05928651988506317, 0.025889478623867035 ]
715,402
pytorch_optimizer.optimizer.adams
AdamS
Adam with stable weight decay. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param ams_bound: bool. whether to use the AMSBound variant. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param adanorm: bool. whether to use the AdaNorm variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability.
class AdamS(Optimizer, BaseOptimizer): r"""Adam with stable weight decay. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. coefficients used for computing running averages of gradient and the squared hessian trace. :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. :param fixed_decay: bool. fix weight decay. :param ams_bound: bool. whether to use the AMSBound variant. :param r: float. EMA factor. between 0.9 ~ 0.99 is preferred. :param adanorm: bool. whether to use the AdaNorm variant. :param adam_debias: bool. Only correct the denominator to avoid inflating step sizes early in training. :param eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), weight_decay: float = 1e-4, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'ams_bound': ams_bound, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults) def __str__(self) -> str: return 'AdamS' @torch.no_grad() def reset(self): for group in self.param_groups: for p in group['params']: state = self.state[p] state['step'] = 0 state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) if group['ams_bound']: state['max_exp_avg_sq'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=p.dtype, device=p.device) @torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() param_size: int = 0 exp_avg_sq_hat_sum: float = 0.0 for group in self.param_groups: beta1, beta2 = group['betas'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) param_size += p.numel() state = self.state[p] if len(state) == 0: state['step'] = 0 state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) if group['ams_bound']: state['max_exp_avg_sq'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=p.dtype, device=p.device) state['step'] += 1 bias_correction2: float = 1.0 - beta2 ** state['step'] s_grad = self.get_adanorm_gradient( grad=grad, adanorm=group['adanorm'], exp_grad_norm=state.get('exp_grad_norm', None), r=group.get('r', None), ) exp_avg, exp_avg_sq = state['exp_avg'], state['exp_avg_sq'] exp_avg.mul_(beta1).add_(s_grad, alpha=1.0 - beta1) exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) if group['ams_bound']: max_exp_avg_sq = state['max_exp_avg_sq'] torch.max(max_exp_avg_sq, exp_avg_sq, out=max_exp_avg_sq) exp_avg_sq_hat = max_exp_avg_sq else: exp_avg_sq_hat = exp_avg_sq exp_avg_sq_hat_sum += exp_avg_sq_hat.sum() / bias_correction2 if param_size == 0: raise ZeroParameterSizeError() exp_avg_sq_hat_mean: float = math.sqrt(exp_avg_sq_hat_sum / param_size) + self.defaults['eps'] for group in self.param_groups: beta1, beta2 = group['betas'] for p in group['params']: if p.grad is None: continue state = self.state[p] self.apply_weight_decay( p=p, grad=None, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ratio=1.0 / exp_avg_sq_hat_mean, ) bias_correction1: float = 1.0 - beta1 ** state['step'] bias_correction2: float = 1.0 - beta2 ** state['step'] exp_avg_sq_hat = state['max_exp_avg_sq'] if group['ams_bound'] else state['exp_avg_sq'] exp_avg_sq_hat.div_(bias_correction2) de_nom = exp_avg_sq_hat.sqrt().add_(group['eps']) step_size: float = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'], bias_correction1=bias_correction1, ) p.addcdiv_(state['exp_avg'], de_nom, value=-step_size) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), weight_decay: float = 0.0001, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ 0.006710513029247522, -0.03823145478963852, -0.0031346508767455816, 0.015165349468588829, 0.010337678715586662, -0.011881917715072632, -0.0751495361328125, -0.07527266442775726, -0.029632968828082085, 0.03425029292702675, -0.03589200973510742, -0.005735744256526232, 0.03556366637349129, 0.08627216517925262, -0.02967401221394539, 0.06632531434297562, 0.015052481554448605, 0.05191925913095474, 0.008188057690858841, -0.019392767921090126, -0.04235626757144928, -0.06772077083587646, -0.04104289412498474, 0.027396131306886673, -0.039421699941158295, -0.011030277237296104, 0.040283601731061935, -0.014570226892828941, -0.057911522686481476, -0.00033635934232734144, 0.0006060239975340664, -0.08528713136911392, 0.012138435617089272, -0.008167535997927189, 0.026205888018012047, -0.05984053760766983, 0.021198654547333717, 0.0018956686835736036, -0.09004811197519302, -0.04366963729262352, 0.036015138030052185, -0.03045382723212242, 0.0633702278137207, -0.023661227896809578, -0.001467283465899527, 0.020418839529156685, -0.0045916736125946045, 0.052124474197626114, -0.03929857164621353, -0.003598948707804084, 0.020983180031180382, -0.069034144282341, 0.061194952577352524, 0.014129016548395157, -0.0004306297341827303, 0.04436736926436424, 0.04859478771686554, -0.021383346989750862, 0.05019545927643776, -0.0898018479347229, 0.05142674595117569, -0.07958216965198517, 0.034414466470479965, -0.022881412878632545, -0.0184282585978508, -0.009491168893873692, -0.06653053313493729, -0.025713372975587845, 0.011009756475687027, 0.021568041294813156, 0.020439360290765762, -0.031808242201805115, 0.009368040598928928, 0.011153406463563442, -0.041535407304763794, -0.0042556351982057095, -0.044941969215869904, -0.018048612400889397, -0.024502607062458992, -0.04169958084821701, 0.0314183346927166, 0.034209251403808594, -0.018366694450378418, -0.02002893202006817, 0.02329184114933014, -0.05388931930065155, -0.018818166106939316, -0.003981160465627909, 0.0044172415509819984, -0.051755089312791824, 0.04227418079972267, -0.021075526252388954, 0.05721379444003105, 0.047322455793619156, 0.042602524161338806, 0.03634348139166832, -0.021670646965503693, -0.05536686256527901, 0.00006629389099543914, -0.0217527337372303, -0.013687805272638798, 0.02893524058163166, 0.04793810099363327, 0.05877342447638512, -0.0007458263426087797, -0.04527031257748604, -0.03490697965025902, -0.03987317159771919, 0.05056484416127205, -0.05257594585418701, -0.05154987424612045, 0.018192263320088387, -0.028258033096790314, -0.015319259837269783, -0.027293523773550987, -0.0046660639345645905, 0.0015891295624896884, 0.03400403633713722, -0.022512027993798256, 0.058075692504644394, 0.06078452616930008, 0.028155425563454628, -0.057336922734975815, 0.0075724138878285885, 0.0359535738825798, -0.015934903174638748, 0.02924306131899357, -0.0046788896434009075, 0.009675862267613411, -0.06767973303794861, -0.024625735357403755, 0.013226072303950787, -0.015688646584749222, 0.006725904066115618, 0.035296887159347534, -0.019413288682699203, 0.002508746925741434, 0.03422977402806282, -0.039134398102760315, 0.00507392780855298, 0.03351152315735817, 0.040304120630025864, 0.0013037531170994043, -0.041453324258327484, 0.013985365629196167, -0.013441547751426697, 0.05027754604816437, -0.00178151810541749, -0.009527081623673439, 0.005299663636833429, 0.014395794831216335, -0.015729688107967377, -0.004876408725976944, 0.012713036499917507, 0.021362826228141785, -0.01648898236453533, -0.010640369728207588, 0.007608326151967049, -0.02335340715944767, -0.0018777124350890517, -0.03546106070280075, -0.04247939586639404, -0.029037846252322197, -0.006623296998441219, -0.005663919262588024, 0.0059050461277365685, -0.022512027993798256, 0.054874349385499954, -0.02435895800590515, 0.0019033642020076513, 0.02661631628870964, -0.05343784764409065, -0.01906442455947399, 0.013718587346374989, -0.0314183346927166, 0.0954657718539238, 0.00835735909640789, 0.02916097640991211, -0.00039632045081816614, -0.02924306131899357, 0.037246424704790115, 0.002156034577637911, -0.02117813378572464, -0.05191925913095474, -0.026164844632148743, 0.034065600484609604, -0.003591253189370036, 0.029119933024048805, -0.0347428098320961, 0.024687301367521286, -0.0005306717939674854, -0.03088477812707424, 0.023620184510946274, -0.029058368876576424, -0.05228864774107933, 0.023189235478639603, 0.0046660639345645905, -0.005443313624709845, 0.09103313833475113, 0.0425204373896122, -0.022737763822078705, 0.014960134401917458, 0.0066592092625796795, -0.0052457950077950954, 0.00507392780855298, -0.018736081197857857, -0.018612952902913094, 0.0025061815977096558, -0.026226408779621124, -0.0011761353816837072, -0.07925383001565933, -0.0018058873247355223, 0.037964675575494766, 0.03728746995329857, 0.05512060597538948, -0.038990747183561325, 0.047404542565345764, 0.030987383797764778, 0.054874349385499954, -0.0015942598693072796, 0.009680992923676968, -0.06057931110262871, 0.0036425567232072353, 0.002947392873466015, 0.07502640783786774, -0.012671993114054203, 0.04379276558756828, -0.000943986524362117, -0.022306812927126884, -0.0011556139215826988, 0.03031017631292343, -0.02437947876751423, -0.002498486079275608, 0.0032039107754826546, 0.04662472754716873, 0.043341293931007385, -0.026636837050318718, -0.015637341886758804, -0.03367569297552109, -0.04200740158557892, -0.01805887371301651, -0.010742977261543274, -0.0212602186948061, 0.031007906422019005, -0.02893524058163166, 0.0019508199766278267, 0.06222102791070938, 0.038703449070453644, -0.03968847915530205, -0.003373212879523635, -0.022737763822078705, -0.010927670635282993, -0.008501009084284306, 0.039626915007829666, -0.08742136508226395, -0.022019512951374054, 0.03010496310889721, 0.06460151076316833, 0.009260302409529686, -0.059799496084451675, 0.001981602283194661, -0.04073507338762283, -0.07006021589040756, 0.05003128573298454, 0.00001154331403085962, 0.0590607225894928, 0.05360201746225357, -0.021137090399861336, 0.01087636686861515, 0.03147989884018898, 0.10014466196298599, 0.08155222982168198, -0.07432868331670761, -0.013934062793850899, -0.008721615187823772, 0.04999024420976639, 0.00009819833212532103, -0.012302607297897339, -0.001201145933009684, 0.02028544992208481, 0.05409453436732292, -0.0458449125289917, -0.046091169118881226, 0.01969032734632492, -0.008778048679232597, 0.04379276558756828, -0.023886963725090027, 0.00652582012116909, 0.059430111199617386, 0.02575441636145115, 0.037821024656295776, 0.0013249159092083573, 0.08930933475494385, -0.005515138618648052, 0.050154414027929306, -0.0005790895665995777, 0.015021699480712414, 0.020983180031180382, -0.012815643101930618, 0.002734482754021883, 0.04974398761987686, 0.014518923126161098, 0.055818334221839905, 0.02052144706249237, -0.03500958904623985, -0.027868125587701797, -0.006551472004503012, 0.021198654547333717, 0.06529924273490906, -0.01157409604638815, -0.017012279480695724, -0.0034450378734618425, -0.0039991168305277824, 0.019095206633210182, 0.00911665242165327, -0.07978738844394684, 0.003868292784318328, -0.03211606293916702, 0.03646660968661308, 0.06907518953084946, -0.03923700749874115, 0.03638452664017677, 0.028155425563454628, -0.04375172406435013, -0.028996804729104042, -0.06025096774101257, 0.05163196101784706, 0.020685618743300438, -0.011297056451439857, -0.040796637535095215, -0.05191925913095474, -0.040078386664390564, 0.032403364777565, 0.010358200408518314, -0.0496208593249321, -0.023907486349344254, 0.010394113138318062, 0.020388057455420494, 0.007921278476715088, -0.05590042099356651, 0.04904625937342644, 0.05380723252892494, -0.030638519674539566, 0.050154414027929306, 0.010506981052458286, -0.05832195281982422, 0.03500958904623985, 0.015308999456465244, -0.00631034467369318, 0.011235492303967476, 0.0034219513181596994, -0.007321026176214218, 0.015616821125149727, 0.08536922186613083, 0.06497090309858322, 0.0226967204362154, -0.020788226276636124, 0.0011774180456995964, 0.02741665206849575, -0.06033305451273918, -0.02189638279378414, 0.027375610545277596, -0.05766526609659195, 0.051303617656230927, 0.06304188072681427, 0.01472413819283247, -0.017361143603920937, -0.06841850280761719, 0.06780286133289337, -0.052124474197626114, 0.009947771206498146, -0.08569756150245667, -0.014498402364552021, 0.002970479428768158, -0.03207502141594887, 0.012979814782738686, -0.046378470957279205, 0.012302607297897339, 0.05557207763195038, 0.03576888144016266, 0.030063919723033905, -0.012394953519105911, 0.01812043786048889, 0.031295206397771835, 0.0533968061208725, -0.02146543376147747, 0.025631286203861237, -0.020736921578645706, 0.03931909054517746, -0.05274011939764023, 0.0326290987432003, 0.02567232958972454, -0.009778469800949097, -0.007269722409546375, -0.08971976488828659, 0.053643062710762024, 0.03191084787249565, 0.04613221064209938, -0.09144356846809387, -0.017956266179680824, -0.018900252878665924, -0.009234650991857052, 0.02532346546649933, 0.00315517233684659, -0.02632901631295681, -0.0732615664601326, 0.021670646965503693, 0.05590042099356651, -0.021526997908949852, 0.10088343173265457, -0.02444104291498661, 0.003976030275225639, -0.05446391925215721, 0.026801008731126785, -0.02197846956551075, -0.03539949655532837, -0.00686955451965332, -0.008855003863573074, 0.004878974054008722, 0.0007682716823183, 0.03599461913108826, 0.00942960474640131, 0.03225971385836601, 0.034352902323007584, 0.022306812927126884, -0.004709672182798386, -0.0925927683711052, -0.009768208488821983, -0.07769419997930527, -0.04867687076330185, 0.0005438183434307575, -0.01156383566558361, -0.026780487969517708, -0.022142641246318817, -0.022450461983680725, 0.009219259954988956, 0.0008740853518247604, 0.028052818030118942, 0.031172078102827072, -0.028463246300816536, 0.021855341270565987, -0.02733456715941429, 0.021485954523086548, 0.016417156904935837, 0.0023150756023824215, -0.04518822580575943, 0.05766526609659195, 0.000102927879197523, -0.053643062710762024, -0.007054247427731752, 0.0389702282845974, -0.0014557400718331337, 0.05282220244407654, 0.0011915265349671245, -0.006772077642381191, -0.01768948696553707, 0.04752767086029053, -0.027806559577584267, -0.0015698906499892473, 0.012035828083753586, 0.007038856390863657, 0.016530025750398636, -0.0404067300260067, 0.0314183346927166, -0.011030277237296104, 0.052042387425899506, 0.07662708312273026, -0.004817409440875053, 0.0013659588294103742, 0.03379882127046585, 0.0076596299186348915, -0.01157409604638815, 0.01565786451101303, -0.035276368260383606, -0.03683599829673767, -0.022101597860455513, 0.003557905787602067, 0.006084608845412731, -0.0011581791331991553, 0.012015307322144508, 0.04925147071480751, -0.06673574447631836, 0.017812615260481834, 0.04247939586639404, 0.023743314668536186, 0.025631286203861237, 0.01050185039639473, -0.00046301513793878257, 0.017022540792822838, 0.03379882127046585, -0.05331471934914589, -0.04822539910674095, 0.07728376984596252, 0.03570731729269028, -0.06960874795913696, -0.056392934173345566, 0.021711690351366997, 0.013256854377686977, 0.07120942324399948, -0.03342943638563156, 0.01885920949280262, -0.02117813378572464, -0.07432868331670761, -0.03178771957755089, 0.03379882127046585, -0.02515929378569126, -0.07203027606010437, 0.0024253784213215113, -0.03619983047246933, 0.01954667828977108, -0.028011774644255638, -0.026575272902846336, 0.010306896641850471, -0.0005967252072878182, 0.011707485653460026, -0.022942977026104927, 0.014662574045360088, 0.04666576907038689, 0.035727839916944504, -0.03258805721998215, 0.03322422131896019, 0.038908664137125015, -0.044654667377471924, -0.03741059824824333, 0.014077712781727314, 0.03133624792098999, -0.015842556953430176, 0.0023881832603365183, 0.05388931930065155, 0.014621530659496784, 0.0041068545542657375, -0.017350884154438972, 0.024112699553370476, 0.06923936307430267, 0.006110260728746653, -0.003309083404019475, 0.013585197739303112, -0.038621362298727036, -0.09275694191455841, -0.00811110157519579, -0.019875021651387215, 0.004766106139868498, 0.008336837403476238, -0.05134465917944908, -0.02517981454730034, 0.06488881260156631, -0.012887468561530113, 0.034927502274513245, -0.034845415502786636, -0.03150042146444321, -0.020962657406926155, 0.014621530659496784, -0.0038375104777514935, 0.0347428098320961, 0.04180218651890755, -0.010368460789322853, -0.03757476806640625, 0.009439865127205849, -0.008418923243880272, -0.0008753679576329887, -0.03431186079978943, -0.03402455896139145, 0.0055048782378435135, -0.03357308730483055, 0.014241884462535381, 0.01871555857360363, 0.014139276929199696, 0.0025241379626095295, -0.05031858757138252, 0.0245846938341856, -0.03511219471693039, -0.030494870617985725, -0.01163566019386053, -0.017350884154438972, -0.050729017704725266, 0.01326711568981409, -0.004545500501990318, -0.014919091947376728, 0.003465559333562851, -0.003096173284575343, 0.07933591306209564, -0.038621362298727036, -0.04535239562392235, -0.006115390919148922, 0.035296887159347534, 0.03921648487448692, -0.07313843816518784, 0.036733388900756836, -0.018664255738258362, 0.01210765354335308, -0.0376158133149147, 0.03763633221387863, -0.018736081197857857, -0.04502405598759651, -0.02421530708670616, 0.03568679466843605, -0.027950210496783257, 0.02435895800590515, 0.037964675575494766, 0.02950984053313732, -0.02284036949276924, 0.005194491241127253, 0.05737796425819397, -0.004142767284065485, 0.03599461913108826, -0.007244070526212454, -0.0013300462160259485, 0.022594112902879715, 0.02618536539375782, -0.02437947876751423, -0.035296887159347534, -0.012323128990828991, -0.016232464462518692, -0.027519259601831436, -0.04748662933707237, -0.021629605442285538, -0.01685836911201477, 0.028853153809905052, 0.10638318210840225, 0.002937132027000189, 0.004122245591133833, 0.028196467086672783, -0.01885920949280262, 0.022306812927126884, -0.0029961313121020794, -0.03045382723212242, 0.03191084787249565, -0.08385062962770462, -0.016447938978672028, -0.03386038541793823, 0.004927712492644787, 0.031028427183628082, 0.02741665206849575, -0.033183179795742035, 0.021485954523086548, 0.020788226276636124, 0.045885954052209854, 0.02524137869477272, -0.01885920949280262, -0.023599663749337196, 0.017422707751393318, 0.02240942046046257, -0.027724474668502808, 0.003855466842651367, -0.0014916526852175593, 0.010255592875182629, -0.01820252276957035, 0.002965349005535245, 0.040365684777498245, 0.040878720581531525, -0.005771656986325979, 0.011471488513052464, -0.06731034815311432, -0.017586879432201385, 0.028175946325063705, -0.00015703716780990362, 0.003993986640125513, 0.04547552764415741, 0.009439865127205849, -0.037164341658353806, -0.009332127869129181, -0.034845415502786636, -0.001240264973603189, -0.0028293945360928774, -0.03472228720784187, -0.0022368377540260553, -0.031069470569491386, 0.028483768925070763, 0.0150114381685853, 0.03453759476542473, -0.10539814829826355, -0.047117240726947784, -0.054874349385499954, -0.007798149716109037, 0.009121783077716827, 0.012323128990828991, 0.031069470569491386, -0.0477328859269619, -0.030782170593738556, -0.008526661433279514, 0.03679495304822922, 0.030228091403841972, 0.0062487805262207985, -0.00019511407299432904, 0.021650126203894615, -0.023230277001857758, -0.016519764438271523, 0.02298402041196823, 0.012918250635266304, -0.026883095502853394, -0.05512060597538948, -0.024933557957410812, 0.01628376729786396, -0.017422707751393318, 0.051755089312791824, -0.07096315920352936, -0.02612380124628544, -0.0171456690877676, 0.0035066022537648678, -0.05093422904610634, -0.0016481287311762571, -0.010999495163559914, -0.037759460508823395, -0.0055818334221839905, 0.022614633664488792, 0.056023549288511276, -0.001151766162365675, 0.027909167110919952, 0.009819512255489826, -0.017494533210992813, -0.0011613856768235564, 0.010358200408518314, 0.006695121992379427, 0.007269722409546375, 0.0364050455391407, -0.006130782421678305, 0.041740622371435165, -0.008731875568628311, -0.05064693093299866, 0.07724272459745407, -0.025364508852362633, 0.02206055447459221, 0.04055037721991539, -0.014365012757480145, -0.05495643615722656, -0.0600457526743412, -0.017268797382712364, -0.022368377074599266, 0.061112869530916214, -0.020388057455420494, 0.03566627576947212, 0.02429739385843277, -0.011379142291843891, 0.0290788896381855, -0.02704726718366146, -0.0035091673489660025, 0.04219209402799606, -0.019731370732188225, -0.00386059726588428, 0.030330698937177658, 0.01631454937160015, 0.046173255890607834, -0.03443498909473419, -0.031951893121004105, 0.000054870823078090325, 0.037472162395715714, -0.019310681149363518, -0.026000672951340675, 0.030125483870506287, -0.056105636060237885, 0.046173255890607834, 0.000586464477237314, 0.03170563653111458, 0.0604972243309021, 0.06423212587833405, -0.04715828597545624, 0.03386038541793823, -0.06000471115112305, -0.0728100910782814, -0.10605483502149582, 0.020736921578645706, -0.041166022419929504, 0.06378065794706345, 0.005694701336324215, -0.006587384268641472, 0.0017366274259984493, 0.012097393162548542, 0.012528343126177788 ]
715,404
pytorch_optimizer.optimizer.adams
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), weight_decay: float = 1e-4, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-8, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(eps, 'eps') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'ams_bound': ams_bound, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), weight_decay: float = 0.0001, weight_decouple: bool = True, fixed_decay: bool = False, ams_bound: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 1e-08)
[ 0.0053936149924993515, -0.029307985678315163, -0.019815979525446892, 0.0013625849969685078, -0.03509394824504852, -0.022292977198958397, -0.09068457782268524, -0.04481285437941551, -0.04348926991224289, 0.027889857068657875, -0.026944437995553017, 0.05797308683395386, 0.01951344683766365, 0.08077658712863922, -0.06054462492465973, 0.04855671525001526, 0.02787094935774803, 0.032843854278326035, -0.025507401674985886, -0.011222122237086296, -0.002559721702709794, -0.00781861413270235, -0.037968024611473083, 0.10966859012842178, 0.02355983853340149, 0.03550993278622627, -0.003838400822132826, 0.007336450740695, -0.03978322818875313, 0.018085863441228867, 0.01458781398832798, -0.018123680725693703, -0.0017052993644028902, 0.052830006927251816, 0.031595900654792786, -0.02129083313047886, -0.010598145425319672, 0.013377677649259567, -0.10097073763608932, 0.029383620247244835, 0.07052824646234512, -0.026641905307769775, 0.07782688736915588, -0.04265730082988739, -0.021971534937620163, -0.03108537383377552, 0.04515320807695389, 0.03689024597406387, -0.015344148501753807, -0.025980111211538315, 0.026566270738840103, -0.03102864883840084, 0.04163624718785286, -0.016043758019804955, -0.05279219150543213, 0.055930983275175095, 0.03225769102573395, 0.07699491828680038, 0.03997231274843216, 0.0009418735862709582, 0.009889082051813602, -0.03734404593706131, 0.014389275573194027, -0.013434402644634247, 0.003446051850914955, 0.006589569617062807, -0.09068457782268524, -0.02051559090614319, 0.017877871170639992, 0.03685242682695389, 0.10278594493865967, 0.0030182497575879097, -0.020137421786785126, 0.027341514825820923, -0.010286157950758934, 0.01193118654191494, -0.08448263257741928, -0.03966977819800377, -0.041144631803035736, -0.006688838824629784, 0.05612006410956383, 0.050674453377723694, -0.015504869632422924, -0.05029628425836563, 0.004235476721078157, -0.06092279404401779, -0.043943069875240326, -0.05487211421132088, 0.02804112434387207, -0.0058710514567792416, -0.05687640234827995, -0.0332220196723938, 0.015400873497128487, -0.011146488599479198, 0.053359441459178925, 0.0129427844658494, 0.025204867124557495, -0.05351071059703827, 0.019343269988894463, -0.011496293358504772, -0.03229551017284393, 0.0011303664650768042, -0.04348926991224289, 0.002623537555336952, 0.017367344349622726, -0.023654380813241005, -0.057481467723846436, -0.04019921272993088, 0.03443215787410736, -0.053851060569286346, -0.03208751603960991, 0.07249472290277481, -0.030858471989631653, 0.043338000774383545, -0.06576333940029144, 0.020326506346464157, 0.016403017565608025, 0.004497830290347338, -0.004426924046128988, 0.029780695214867592, 0.04802728071808815, 0.02870291844010353, -0.02715243026614189, 0.03479141369462013, 0.04719531163573265, 0.0027038981206715107, 0.004935086704790592, 0.0035855011083185673, 0.008782941848039627, -0.030877381563186646, 0.03706042096018791, -0.017367344349622726, -0.022935861721634865, -0.02756841480731964, 0.0303101297467947, -0.020496681332588196, 0.012952239252626896, 0.0501072034239769, -0.035888101905584335, 0.014833622612059116, 0.06481792032718658, 0.019163640215992928, 0.04159843176603317, -0.028060032054781914, -0.012725338339805603, 0.001864838763140142, -0.004077118821442127, -0.030045412480831146, -0.0008148329216055572, 0.03932942450046539, 0.03482923284173012, -0.00028953453875146806, -0.009775631129741669, 0.04723312705755234, 0.0050863535143435, -0.04182533174753189, 0.03133118152618408, -0.028381476178765297, -0.00865058321505785, 0.018000775948166847, -0.029572702944278717, 0.007284452673047781, 0.021858084946870804, -0.04103118181228638, 0.0015623046783730388, 0.015712862834334373, -0.03760876506567001, 0.0027157156728208065, -0.00393057893961668, -0.013103505596518517, -0.00171948061324656, -0.09370992332696915, -0.04443468898534775, 0.01554268691688776, -0.022444244474172592, 0.04780038073658943, 0.015448144637048244, 0.0024769974406808615, -0.013642394915223122, -0.018511302769184113, 0.07412084192037582, -0.00645721098408103, -0.009747268632054329, -0.08183545619249344, 0.02009960636496544, 0.007657893002033234, -0.031161006540060043, 0.04636334255337715, -0.04118244722485542, 0.025337226688861847, 0.05332162603735924, 0.006253946106880903, 0.01545759942382574, 0.01763206161558628, -0.027284789830446243, 0.01962689682841301, 0.03554775193333626, -0.022047169506549835, 0.02153664268553257, 0.05959920585155487, 0.06580115854740143, 0.03883780911564827, 0.011061401106417179, -0.010030894540250301, 0.02338966354727745, -0.0001031836072797887, -0.019031282514333725, 0.00161075743380934, -0.003384599694982171, -0.03411071375012398, -0.0030158862937241793, -0.033619094640016556, 0.048291996121406555, 0.026868805289268494, -0.0014134012162685394, -0.035415392369031906, -0.0025833570398390293, 0.02934580296278, 0.027644049376249313, 0.011723194271326065, 0.0935586541891098, -0.0182654932141304, -0.005379433743655682, -0.018066955730319023, 0.044359054416418076, 0.014323096722364426, 0.023881280794739723, -0.04575827345252037, -0.07661674916744232, 0.02959161065518856, -0.011439568363130093, -0.043640535324811935, -0.03443215787410736, -0.010011985898017883, 0.015334694646298885, 0.001145729562267661, -0.02596120350062847, 0.0332220196723938, -0.09219725430011749, -0.04205223172903061, 0.04802728071808815, 0.045909542590379715, -0.00730808824300766, -0.01368966605514288, 0.013699119910597801, -0.013179139234125614, 0.02482669986784458, 0.018000775948166847, -0.06568770855665207, -0.04863234981894493, -0.0503719188272953, -0.011061401106417179, 0.0031978795304894447, 0.047989461570978165, -0.044775038957595825, 0.00964799989014864, 0.03966977819800377, 0.0066935657523572445, 0.03078283928334713, -0.004027484450489283, 0.003973123151808977, 0.0008585585164837539, -0.023295121267437935, 0.06980973482131958, 0.01849239319562912, 0.02546958439052105, -0.003334965091198683, 0.0011705467477440834, 0.030763931572437286, -0.004403288476169109, 0.10966859012842178, 0.03997231274843216, -0.01799132116138935, -0.0025313592050224543, -0.007913156412541866, -0.004334745462983847, 0.004734185058623552, -0.03781675547361374, -0.01330204401165247, 0.04659024253487587, 0.02857055887579918, -0.036474261432886124, 0.011146488599479198, 0.020912665873765945, 0.006003410089761019, 0.008551313541829586, -0.017206624150276184, 0.012054091319441795, -0.006509209051728249, 0.014578359201550484, 0.009123292751610279, 0.006357942242175341, 0.07298634201288223, 0.018511302769184113, 0.09454189240932465, -0.025034692138433456, 0.04821636527776718, -0.014455455355346203, 0.05150642246007919, -0.02051559090614319, 0.04246821627020836, -0.04390525445342064, 0.07393176108598709, 0.0004806864308193326, -0.05362416058778763, -0.03689024597406387, 0.03741968050599098, 0.02272786945104599, 0.032371144741773605, 0.041371531784534454, 0.03019667975604534, 0.03307075425982475, 0.06205729767680168, 0.01461617648601532, 0.04454813897609711, -0.06111187860369682, 0.009061840362846851, -0.057368017733097076, 0.02499687485396862, 0.0415227971971035, -0.011893370188772678, 0.028135666623711586, 0.01521178986877203, -0.03989667817950249, -0.05400232598185539, -0.05869160592556, 0.031161006540060043, 0.019664712250232697, -0.030102137476205826, -0.007478263694792986, -0.03446997329592705, -0.005686694756150246, 0.015041614882647991, -0.027341514825820923, -0.05687640234827995, 0.00040328025352209806, 0.007123731542378664, 0.050750087946653366, 0.0029426163528114557, -0.02821129932999611, 0.08735670894384384, -0.023994730785489082, -0.013415494002401829, 0.05661168321967125, -0.008853848092257977, -0.027171339839696884, 0.012233720161020756, -0.015032160095870495, 0.035642292350530624, -0.01589249260723591, -0.01014434453099966, 0.011118126101791859, -0.002550267381593585, 0.08955007791519165, 0.019418904557824135, -0.00827714242041111, -0.01666773483157158, 0.016204480081796646, 0.028060032054781914, -0.04659024253487587, -0.02165009267628193, 0.0021153748966753483, -0.045607008039951324, 0.04696841165423393, 0.010191615670919418, -0.003623317927122116, -0.013566761277616024, -0.030045412480831146, 0.044169969856739044, -0.003474414348602295, 0.027681864798069, -0.07294852286577225, -0.022765686735510826, -0.010787229984998703, 0.020175239071249962, -0.0032096970826387405, -0.03282494470477104, 0.0020917393267154694, 0.05154423788189888, -0.009581820107996464, -0.0008621038869023323, 0.0032806035596877337, 0.06610368937253952, 0.017792783677577972, 0.008210963569581509, -0.03036685474216938, 0.011742102913558483, 0.017877871170639992, 0.05721675232052803, -0.0063957590609788895, -0.006391031667590141, -0.0056819673627614975, 0.01763206161558628, -0.017093174159526825, -0.08463390171527863, 0.036001551896333694, 0.04099336266517639, 0.04413215443491936, -0.053472891449928284, -0.04205223172903061, -0.012167541310191154, -0.036115001887083054, -0.006537571549415588, 0.025015784427523613, -0.01067377906292677, -0.006476119626313448, 0.02076139859855175, 0.03568010777235031, 0.013443856500089169, 0.0664440393447876, -0.008286596275866032, -0.0007734708487987518, -0.0264339130371809, -0.000713200366590172, -0.04780038073658943, -0.029799602925777435, 0.007761889137327671, -0.01751861162483692, 0.017953505739569664, -0.018917832523584366, 0.028740733861923218, 0.011449023149907589, 0.06364560127258301, 0.02792767435312271, 0.06882649660110474, 0.06107405945658684, -0.02255769446492195, 0.00010909247794188559, -0.011770465411245823, -0.06009082496166229, -0.04628770798444748, -0.012025728821754456, -0.03698478639125824, -0.03751422092318535, 0.024259448051452637, 0.01237553358078003, -0.013027872890233994, 0.004819273017346859, 0.010163253173232079, -0.02737933211028576, 0.021801359951496124, -0.06281363219022751, 0.0030631572008132935, -0.038686539977788925, -0.06776762753725052, -0.0362662672996521, 0.02206607721745968, -0.002128374297171831, -0.0370982363820076, -0.023654380813241005, 0.02715243026614189, 0.02206607721745968, 0.051279522478580475, -0.009709452278912067, -0.024959059432148933, -0.03193625062704086, 0.0009962351759895682, -0.026471728459000587, 0.03429979830980301, -0.012384987436234951, 0.051279522478580475, -0.021763542667031288, -0.024372899904847145, 0.004370199050754309, -0.037968024611473083, 0.041560616344213486, 0.07272162288427353, -0.024505257606506348, -0.008428409695625305, 0.0030726115219295025, 0.001695845159702003, 0.007232454605400562, 0.042090050876140594, -0.023484205827116966, -0.040653012692928314, 0.015051068738102913, -0.001286951475776732, -0.02076139859855175, -0.023408571258187294, -0.004878361709415913, 0.006584842689335346, -0.039405059069395065, 0.007459355052560568, 0.07370485365390778, 0.017972413450479507, -0.001663937233388424, -0.05577971413731575, 0.012848243117332458, 0.014928163960576057, 0.04723312705755234, -0.07858321815729141, -0.019135277718305588, 0.0334867388010025, 0.065309539437294, -0.03853527456521988, -0.013510036282241344, 0.025696486234664917, 0.021404283121228218, 0.034564513713121414, 0.0010039167245849967, 0.011184305883944035, -0.050674453377723694, -0.04825418069958687, -0.031955160200595856, 0.02928907796740532, -0.041484981775283813, -0.09900426864624023, -0.002604629145935178, -0.016176117584109306, 0.010134890675544739, -0.029856327921152115, -0.008130602538585663, -0.02870291844010353, 0.01330204401165247, -0.027038980275392532, -0.024372899904847145, -0.04832981526851654, 0.046022992581129074, -0.01992942951619625, -0.03581246733665466, 0.05018283426761627, 0.05649823322892189, 0.04186314716935158, -0.031406816095113754, 0.005124170333147049, 0.04851889610290527, 0.018199313431978226, -0.03853527456521988, 0.08682727068662643, 0.022084984928369522, 0.009156381711363792, -0.06402377039194107, -0.04273293539881706, 0.04231695085763931, 0.005270710214972496, 0.05018283426761627, 0.014446000568568707, -0.020534498617053032, -0.04575827345252037, -0.030574847012758255, 0.020137421786785126, 0.022690054029226303, 0.0238056480884552, -0.042506035417318344, -0.013642394915223122, 0.007218273356556892, -0.022028259932994843, 0.04772474616765976, -0.04269511625170708, -0.03286276012659073, 0.03102864883840084, -0.022690054029226303, -0.04587172344326973, 0.03208751603960991, 0.020307598635554314, -0.01777387596666813, -0.0033633278217166662, -0.017726603895425797, 0.057594917714595795, 0.01674336940050125, -0.012876605615019798, -0.007913156412541866, -0.006882649380713701, 0.007260817103087902, -0.02314385399222374, 0.01297114696353674, 0.012214812450110912, -0.035755742341279984, -0.06122532859444618, 0.018511302769184113, -0.008111693896353245, -0.0009926898637786508, 0.0007563350955024362, 0.006565934047102928, -0.03581246733665466, 0.020383231341838837, -0.006272854283452034, 0.01721607893705368, -0.0526031069457531, -0.032654769718647, 0.014294733293354511, -0.03446997329592705, -0.10626508295536041, -0.08818867802619934, 0.021461008116602898, -0.003947123885154724, -0.05566626414656639, 0.016034305095672607, -0.006802288815379143, 0.018360035493969917, -0.003921125084161758, 0.0473465770483017, -0.022330794483423233, -0.027038980275392532, -0.044775038957595825, 0.0166110098361969, -0.018246585503220558, -0.025015784427523613, 0.026812080293893814, 0.058502521365880966, -0.07646548002958298, -0.01962689682841301, 0.016043758019804955, 0.020383231341838837, -0.004504920914769173, -0.01148683950304985, -0.026585180312395096, 0.0503719188272953, 0.01691354438662529, -0.04409433901309967, 0.0067124743945896626, -0.029421435669064522, 0.005067445337772369, -0.01918254978954792, -0.000932419381570071, -0.05816217139363289, -0.051090437918901443, 0.0346023328602314, 0.10066820681095123, 0.005582698620855808, 0.007388448808342218, -0.028494926169514656, -0.020137421786785126, 0.04432123899459839, -0.0788857564330101, -0.011307209730148315, 0.013916566036641598, -0.12176995724439621, 0.009019296616315842, -0.02828693389892578, 0.0376465804874897, -0.020685765892267227, -0.005663059186190367, -0.0528678260743618, -0.00020725354261230677, 0.026225920766592026, 0.02898654341697693, 0.036115001887083054, 0.03261695057153702, -0.008352776058018208, 0.020307598635554314, 0.03757094591856003, -0.014928163960576057, -0.0002660467871464789, -0.004046393092721701, -0.012763154692947865, -0.033562369644641876, -0.007667347323149443, 0.052943456918001175, 0.044169969856739044, -0.03429979830980301, 0.047762561589479446, -0.050561003386974335, -0.006367396097630262, -0.005426704417914152, 0.00010229727922705933, 0.01509833987802267, 0.03186061605811119, 0.04258166626095772, -0.02707679755985737, -0.0312744565308094, -0.02552630938589573, 0.04016139358282089, -0.0018305673729628325, -0.0033113297540694475, -0.0023647290654480457, -0.04122026264667511, 0.005450339987874031, -0.032371144741773605, -0.011590835638344288, -0.04938868433237076, -0.01633683778345585, -0.038989074528217316, 0.006012864410877228, 0.011827190406620502, 0.02906217612326145, -0.058918505907058716, -0.061716943979263306, 0.02546958439052105, -0.010938496328890324, 0.039707593619823456, 0.04057737812399864, -0.0025644488632678986, -0.04904833063483238, 0.01089122612029314, -0.005280164536088705, -0.06179257854819298, 0.046098627150058746, -0.013046780601143837, -0.033921629190444946, -0.05910759046673775, -0.007610622327774763, 0.02684989757835865, 0.0028078940231353045, 0.03233332559466362, -0.034999407827854156, -0.06425067037343979, -0.07052824646234512, 0.023408571258187294, -0.010739958845078945, -0.0064997547306120396, -0.012006820179522038, -0.05528809875249863, 0.057594917714595795, -0.04401870444417, 0.022122802212834358, 0.011439568363130093, 0.012923876754939556, 0.02147991769015789, -0.04659024253487587, 0.03271149471402168, 0.060279909521341324, 0.03774112090468407, -0.07098205387592316, -0.006622659508138895, 0.035642292350530624, 0.051090437918901443, 0.0014606722397729754, -0.045380108058452606, 0.010125436820089817, -0.03745749592781067, 0.0012136815348640084, 0.03197406604886055, -0.00136494857724756, 0.02308712899684906, -0.07865884900093079, -0.036001551896333694, 0.012621342204511166, 0.03745749592781067, -0.032125335186719894, 0.04103118181228638, 0.027530597522854805, -0.03186061605811119, -0.001564668258652091, -0.01056032907217741, -0.025923386216163635, 0.04730876162648201, 0.004301656037569046, 0.05237620696425438, 0.0741964727640152, 0.012555163353681564, 0.03229551017284393, -0.038686539977788925, -0.01697026938199997, 0.0015457598492503166, 0.04988029971718788, -0.01428527943789959, -0.003646953497081995, 0.0653473511338234, -0.003498049918562174, 0.015287423506379128, -0.0256019439548254, 0.019475629553198814, 0.048594530671834946, 0.043224550783634186, -0.04681714251637459, 0.02405145764350891, -0.028381476178765297, -0.05899414047598839, -0.09219725430011749, -0.007156820967793465, -0.06009082496166229, 0.05763273686170578, 0.023162763565778732, 0.014483817853033543, 0.012271537445485592, 0.037911299616098404, 0.004772001877427101 ]
715,407
pytorch_optimizer.optimizer.adams
__str__
null
def __str__(self) -> str: return 'AdamS'
(self) -> str
[ 0.004296460654586554, -0.030804481357336044, 0.026885828003287315, -0.011000345461070538, -0.002829162171110511, -0.07011402398347855, 0.023599782958626747, 0.003417838830500841, 0.1121121421456337, -0.058902807533741, -0.0642448291182518, -0.0036023494321852922, -0.015674613416194916, 0.035953205078840256, 0.014699343591928482, 0.006097635254263878, 0.01897823065519333, -0.04403652623295784, -0.000038817237509647384, 0.03326462209224701, 0.009225529618561268, 0.028924230486154556, 0.03841334581375122, -0.019891997799277306, -0.036656104028224945, 0.0712738037109375, -0.01085976604372263, -0.022211559116840363, -0.007648402824997902, 0.014383039437234402, 0.012713657692074776, -0.07612379640340805, -0.0016924452502280474, -0.0027742483653128147, -0.015788834542036057, 0.007775803096592426, -0.047937605530023575, 0.025655757635831833, -0.03932711482048035, -0.019153956323862076, -0.005429883021861315, 0.02272116020321846, -0.008386445231735706, -0.02523401938378811, -0.02804560959339142, -0.022545436397194862, 0.03305375203490257, 0.0448448583483696, 0.0026051136665046215, 0.00323332822881639, 0.006308504845947027, 0.013196899555623531, -0.03897566348314285, -0.015411026775836945, -0.01917152851819992, 0.010930055752396584, 0.050081443041563034, -0.004437040071934462, -0.0003325034340377897, 0.03333491086959839, -0.019628411158919334, -0.04677782580256462, 0.06586149334907532, -0.04336877167224884, -0.04266587644815445, 0.005465027876198292, 0.00666873948648572, 0.03208727017045021, 0.02423238940536976, 0.03521516174077988, 0.036128930747509, -0.049308255314826965, -0.004377733450382948, 0.047234710305929184, 0.023564636707305908, 0.007503430359065533, -0.10381795465946198, 0.0017275902209803462, 0.022404856979846954, -0.04906224459409714, 0.03922167792916298, -0.014804777689278126, -0.05331477150321007, -0.002183375181630254, -0.02693854458630085, -0.08287160843610764, -0.05465027689933777, -0.07380423694849014, -0.023037463426589966, 0.0247595626860857, -0.010156868025660515, 0.010569820180535316, -0.006501801311969757, 0.05869193747639656, -0.045161161571741104, -0.010350164957344532, 0.024513548240065575, -0.052190136164426804, 0.03377422317862511, 0.0595705583691597, 0.006308504845947027, 0.023634927347302437, -0.016904683783650398, 0.028467347845435143, -0.05869193747639656, -0.028432201594114304, -0.025550322607159615, 0.008122858591377735, 0.00193845946341753, 0.011422083713114262, -0.04965970665216446, 0.009128880687057972, 0.0035606150049716234, 0.0020889234729111195, 0.0176515132188797, -0.061081789433956146, 0.01738792657852173, 0.004276691935956478, 0.027623869478702545, -0.038167331367731094, 0.031472232192754745, 0.0024579446762800217, -0.046602100133895874, -0.016605952754616737, 0.02994343265891075, 0.059043385088443756, -0.04625065252184868, -0.04821876436471939, 0.0508546307682991, -0.04210355877876282, 0.030909916386008263, -0.0005760464118793607, -0.0552125945687294, -0.017326422035694122, 0.10409911721944809, 0.003995532635599375, 0.021491089835762978, 0.03523273393511772, 0.045126017183065414, 0.14774905145168304, -0.008838935755193233, -0.0018451057840138674, 0.05802418664097786, 0.03286045789718628, -0.000014818163435847964, -0.014532404951751232, 0.005486993119120598, 0.07253901660442352, -0.0020427957642823458, 0.0012344636488705873, 0.042876746505498886, 0.04189268872141838, 0.03785102814435959, 0.0167289599776268, -0.019716273993253708, 0.022229131311178207, -0.017853595316410065, -0.045688334852457047, 0.025726046413183212, -0.0294514037668705, -0.005298089701682329, -0.05749701336026192, -0.01699254661798477, 0.004292067606002092, 0.01435668021440506, 0.028783651068806648, -0.004907102789729834, 0.041822399944067, 0.007024581544101238, 0.005772545468062162, -0.0182401891797781, -0.04663724824786186, -0.07886509597301483, 0.04906224459409714, 0.014409397728741169, 0.04329848289489746, 0.010754331015050411, 0.09060348570346832, 0.0378158837556839, -0.03995972126722336, -0.005952662788331509, -0.01008657831698656, -0.03467041626572609, 0.00514433067291975, 0.06909482181072235, -0.0347934253513813, 0.012265561148524284, 0.05443940684199333, 0.04407167062163353, -0.006690705195069313, -0.011896539479494095, 0.015639469027519226, -0.03641008958220482, 0.022932030260562897, -0.02442568726837635, -0.031806111335754395, -0.008597314357757568, -0.05805933102965355, 0.004678661003708839, -0.0033299766946583986, -0.02539217099547386, 0.05036260187625885, -0.03377422317862511, 0.007266202475875616, 0.07046546787023544, 0.023072609677910805, 0.01738792657852173, -0.008777432143688202, -0.002392048016190529, -0.051276370882987976, 0.013662569224834442, 0.014585122466087341, -0.013109037652611732, 0.01857406459748745, 0.040943775326013565, -0.06403395533561707, 0.02423238940536976, -0.02686825580894947, 0.0035606150049716234, 0.025181300938129425, 0.05809447541832924, -0.020770620554685593, -0.006760994903743267, -0.0353030264377594, -0.023898513987660408, 0.00193845946341753, 0.010719186626374722, -0.030611185356974602, -0.011114565655589104, -0.01452361885458231, 0.014998074620962143, -0.072257861495018, -0.014866281300783157, 0.018380768597126007, -0.004722592420876026, 0.021526234224438667, -0.039397403597831726, -0.03700755164027214, -0.07977886497974396, -0.03619921952486038, -0.022738732397556305, 0.00753857521340251, 0.011966829188168049, 0.027553580701351166, 0.04424739629030228, -0.04769159108400345, -0.015173799358308315, 0.00990206841379404, -0.0247595626860857, -0.03626950830221176, 0.03911624476313591, -0.03308889642357826, -0.009181598201394081, -0.0033739078789949417, -0.017150698229670525, -0.04899195209145546, -0.023406485095620155, 0.03433654084801674, 0.005183868575841188, -0.0039911395870149136, -0.06811076402664185, -0.004404091741889715, -0.04396623745560646, 0.03858907148241997, -0.0024777136277407408, 0.028889086097478867, -0.0252691637724638, 0.03449469432234764, 0.04456369951367378, -0.01324961706995964, 0.11197156459093094, 0.021104495972394943, -0.06427997350692749, 0.014795991592109203, -0.029802853241562843, -0.014330321922898293, -0.018345624208450317, 0.030611185356974602, -0.09432883560657501, -0.054966580122709274, -0.007644009776413441, -0.038237620145082474, -0.0032618835102766752, 0.02646408975124359, 0.026622241362929344, -0.06361222267150879, 0.04185754433274269, -0.025849053636193275, 0.01345170009881258, 0.01654444821178913, 0.06097635626792908, -0.0125467199832201, -0.01013929583132267, -0.0021712942980229855, 0.013363838195800781, -0.00032426638063043356, 0.03700755164027214, 0.03410809859633446, -0.025374598801136017, -0.01542859897017479, -0.01890794187784195, -0.019013376906514168, -0.0031959868501871824, -0.019821709021925926, -0.029328396543860435, -0.02757115289568901, -0.04463398829102516, -0.005399131216108799, -0.0004815945867449045, 0.009963571093976498, -0.03619921952486038, 0.019101237878203392, 0.005530924536287785, 0.08076291531324387, 0.018029319122433662, 0.0726093053817749, -0.013741645030677319, -0.004801668226718903, 0.042349573224782944, 0.06347163766622543, -0.03764015808701515, -0.01411945279687643, -0.04488000273704529, -0.0069235400296747684, -0.0016496124444529414, -0.008206327445805073, -0.04681297019124031, 0.07837306708097458, 0.013513203710317612, 0.04906224459409714, -0.04825391247868538, -0.07134409248828888, 0.0354611761868, -0.017256133258342743, -0.03771045058965683, -0.0003789056499954313, 0.02623564749956131, -0.010279875248670578, -0.02228184975683689, -0.03442440181970596, 0.08125494420528412, -0.019733846187591553, -0.029398687183856964, 0.03018944524228573, 0.02301989123225212, 0.03423110768198967, -0.03518001735210419, 0.00784609280526638, 0.02198311872780323, 0.0014662002213299274, -0.004111950285732746, -0.019593266770243645, 0.02349434792995453, 0.009146452881395817, 0.020032577216625214, 0.027325138449668884, -0.005267337895929813, 0.07619408518075943, -0.024320252239704132, 0.0024293893948197365, -0.02553275041282177, -0.06874337047338486, 0.023968802765011787, 0.01542859897017479, -0.02786988392472267, 0.0019779973663389683, -0.006290932185947895, -0.002886272734031081, 0.055669479072093964, -0.05714556202292442, -0.017994174733757973, 0.0112112145870924, -0.0351448729634285, -0.020102867856621742, -0.03929196670651436, 0.06238215044140816, 0.037394143640995026, 0.030400315299630165, -0.05299846827983856, -0.020524606108665466, 0.05099521204829216, -0.005434276070445776, 0.034617699682712555, 0.059746284037828445, 0.011026703752577305, 0.0070289745926856995, 0.021737104281783104, 0.013082679361104965, 0.001561750308610499, -0.005337627604603767, -0.01894308626651764, -0.04245500639081001, -0.011870181187987328, -0.00897512212395668, -0.0545448437333107, -0.061995554715394974, -0.031964261084795, -0.03208727017045021, -0.0706060528755188, 0.030945060774683952, 0.02519887313246727, -0.018345624208450317, -0.0083644799888134, -0.0024096204433590174, -0.05753215774893761, 0.054966580122709274, 0.014532404951751232, -0.010578607209026814, -0.03377422317862511, 0.0424901507794857, 0.011975615285336971, -0.015973344445228577, -0.05573976784944534, -0.06540460884571075, 0.10184983909130096, 0.01927696354687214, -0.022141270339488983, 0.011448442004621029, 0.01795024424791336, -0.01599091663956642, -0.051311515271663666, 0.04122493788599968, 0.022070979699492455, 0.08828391879796982, 0.0041910260915756226, 0.023476775735616684, 0.003912063781172037, 0.040170591324567795, 0.059711139649152756, -0.02646408975124359, -0.029521692544221878, 0.000777031178586185, -0.013530775904655457, -0.01795024424791336, 0.038799941539764404, -0.018486203625798225, 0.004863171838223934, -0.037429288029670715, -0.03563690185546875, 0.011835035867989063, 0.02061246894299984, -0.04565319046378136, -0.007868058048188686, 0.02546245977282524, 0.010965200141072273, -0.04537203162908554, -0.05918396636843681, -0.0019055111333727837, 0.05429882928729057, 0.00611520791426301, 0.01980413682758808, 0.033580925315618515, -0.002666617278009653, -0.03771045058965683, 0.033141616731882095, -0.03305375203490257, 0.023810651153326035, -0.05222528055310249, -0.00035941123496741056, 0.013442914001643658, -0.06427997350692749, 0.04821876436471939, -0.032139986753463745, 0.03922167792916298, 0.0210869237780571, 0.03641008958220482, 0.0025545929092913866, 0.047937605530023575, -0.0378158837556839, -0.001656202133744955, 0.044282540678977966, -0.01994471624493599, -0.02027859166264534, -0.023406485095620155, -0.008144824765622616, 0.034512266516685486, -0.05858650431036949, -0.025286735966801643, -0.009603336453437805, 0.0017451626481488347, -0.0495191253721714, -0.026850683614611626, -0.005240979138761759, 0.06435026228427887, 0.010297447443008423, 0.006102028768509626, 0.005539710633456707, 0.020225875079631805, -0.030242163687944412, 0.00514433067291975, 0.030663901939988136, 0.019962288439273834, -0.05036260187625885, -0.024337824434041977, -0.03261444345116615, 0.030294880270957947, -0.012098622508347034, -0.0237579345703125, -0.07752958685159683, 0.022440001368522644, 0.0014651018427684903, -0.023424057289958, -0.0007089379942044616, -0.022299421951174736, 0.05609121918678284, -0.010930055752396584, 0.017669085413217545, -0.006932326126843691, -0.020999060943722725, -0.038167331367731094, 0.005895552225410938, -0.031138356775045395, 0.014216100797057152, 0.000029859413189115003, 0.026147784665226936, -0.014655412174761295, 0.003907670732587576, 0.017370354384183884, -0.010438026860356331, 0.029433831572532654, -0.0019153956091031432, -0.040240880101919174, -0.06698612868785858, -0.011791104450821877, -0.019382396712899208, 0.035355743020772934, -0.01983928121626377, 0.042911890894174576, -0.021930400282144547, 0.08751073479652405, -0.014110666699707508, 0.04554775729775429, 0.012388567440211773, 0.05380680039525032, -0.008777432143688202, 0.0756317675113678, -0.09418825805187225, 0.011536304838955402, 0.01927696354687214, 0.0481836199760437, 0.026253219693899155, -0.03298346325755119, 0.003523273626342416, -0.030171873047947884, -0.007402388844639063, -0.03551389276981354, -0.026270791888237, 0.012968458235263824, 0.011184856295585632, -0.0023129719775170088, -0.004582013003528118, -0.05658324435353279, -0.03438925743103027, -0.03690211847424507, -0.000023733085981803015, 0.02272116020321846, -0.0307869091629982, 0.01584155112504959, 0.030576039105653763, 0.04189268872141838, -0.025989633053541183, 0.004854385741055012, 0.0866672545671463, 0.024548694491386414, 0.04312276095151901, 0.05236586183309555, -0.014936571009457111, 0.024408115074038506, -0.004419467877596617, -0.05015173554420471, -0.0037407323252409697, -0.046848114579916, 0.04143580421805382, 0.07173068821430206, -0.09222014993429184, 0.06480714678764343, 0.03644523397088051, 0.04329848289489746, -0.030171873047947884, 0.041716963052749634, -0.0371481291949749, 0.045688334852457047, -0.012660940177738667, -0.02734271064400673, -0.034951575100421906, -0.004443630110472441, -0.04547746479511261, -0.013574707321822643, -0.007481464650481939, -0.02727242186665535, -0.04259558767080307, 0.002381065161898732, -0.04547746479511261, -0.01813475415110588, 0.057602446526288986, -0.0652288869023323, -0.0007726380717940629, -0.015490102581679821, 0.02349434792995453, -0.0008341416250914335, 0.022738732397556305, 0.03293074667453766, 0.022738732397556305, 0.06009773164987564, 0.09383681416511536, 0.05658324435353279, 0.0011872377945110202, 0.02201826311647892, -0.03031245246529579, 0.026920972391963005, -0.04456369951367378, 0.011685670353472233, 0.0015804209979251027, -0.005166296381503344, -0.014409397728741169, -0.012494002468883991, 0.04238471761345863, -0.03445954620838165, -0.028766078874468803, 0.005640752147883177, 0.021069351583719254, 0.06747815757989883, -0.02402152121067047, 0.05289303511381149, -0.03296589106321335, -0.019628411158919334, 0.016553234308958054, -0.0097878472879529, 0.04133037105202675, -0.09285275638103485, -0.009049804881215096, -0.0010741151636466384, -0.01954055018723011, -0.07816220074892044, -0.019013376906514168, 0.014145811088383198, 0.019821709021925926, 0.033545780926942825, -0.035584185272455215, 0.0252691637724638, -0.026376226916909218, -0.005262944847345352, -0.03760501369833946, 0.04530174285173416, -0.06315533816814423, 0.027764448896050453, -0.06579120457172394, -0.051276370882987976, -0.014066735282540321, -0.04765644669532776, -0.0378158837556839, 0.019013376906514168, -0.010323806665837765, 0.024618983268737793, -0.003727553179487586, -0.008527024649083614, -0.008294190280139446, 0.00921674259006977, -0.026920972391963005, -0.03296589106321335, 0.004516116343438625, -0.07011402398347855, 0.001703428104519844, -0.05110064521431923, 0.08216871321201324, 0.03048817813396454, -0.031401943415403366, -0.008667604066431522, 0.001949442201294005, -0.03393237665295601, -0.029556838795542717, 0.04062747210264206, -0.005557282827794552, -0.07053575664758682, -0.015103509649634361, -0.011632952839136124, 0.0435093529522419, -0.009172812104225159, 0.043755367398262024, -0.050011154264211655, 0.025409743189811707, -0.024654127657413483, 0.005451848264783621, -0.08174697309732437, 0.016605952754616737, 0.05450969934463501, -0.050011154264211655, 0.006519373971968889, 0.03637494519352913, -0.07246872782707214, -0.04111950099468231, -0.04663724824786186, -0.015446172095835209, 0.03298346325755119, 0.08589407056570053, 0.042314428836107254, 0.0027500863652676344, -0.0209111999720335, -0.010903696529567242, -0.011720814742147923, 0.015920627862215042, 0.06427997350692749, -0.008171183057129383, -0.010877338238060474, 0.01293331291526556, -0.018363196402788162, -0.014057949185371399, 0.030330024659633636, 0.03382693976163864, -0.03505701199173927, 0.0595705583691597, 0.052154991775751114, -0.030628757551312447, 0.001961523201316595, 0.04698869585990906, -0.0853317528963089, -0.005513351876288652, 0.027149414643645287, 0.01876736246049404, 0.06203070282936096, 0.004021891392767429, 0.004546868149191141, 0.0033607285004109144, -0.013521989807486534, 0.027500862255692482, 0.03277259320020676, -0.03122621960937977, -0.03133165463805199, -0.048675648868083954, -0.00973512977361679, 0.013311120681464672, 0.047269854694604874, -0.018697071820497513, 0.050081443041563034, 0.01783602312207222, 0.0020230268128216267, 0.03011915646493435, 0.010824620723724365, 0.0625930204987526, 0.04136551544070244, 0.015665827319025993, 0.033545780926942825, 0.014093094505369663, -0.016263289377093315, -0.003648477140814066, 0.04126008227467537, 0.04758615791797638, 0.029574410989880562, -0.03718327730894089, 0.02178982086479664, 0.059148821979761124, 0.044423118233680725, -0.004162470810115337, 0.030945060774683952, 0.016825608909130096, -0.036023493856191635, -0.017194628715515137, 0.013996445573866367, 0.005566069390624762, -0.020155584439635277, -0.004278888460248709, -0.02201826311647892, 0.021737104281783104, -0.004393109120428562, -0.019030949100852013, 0.04772673919796944, 0.0030971418600529432, 0.038097042590379715 ]
715,428
pytorch_optimizer.optimizer.adams
reset
null
@torch.no_grad() def step(self, closure: CLOSURE = None) -> LOSS: loss: LOSS = None if closure is not None: with torch.enable_grad(): loss = closure() param_size: int = 0 exp_avg_sq_hat_sum: float = 0.0 for group in self.param_groups: beta1, beta2 = group['betas'] for p in group['params']: if p.grad is None: continue grad = p.grad if grad.is_sparse: raise NoSparseGradientError(str(self)) param_size += p.numel() state = self.state[p] if len(state) == 0: state['step'] = 0 state['exp_avg'] = torch.zeros_like(p) state['exp_avg_sq'] = torch.zeros_like(p) if group['ams_bound']: state['max_exp_avg_sq'] = torch.zeros_like(p) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=p.dtype, device=p.device) state['step'] += 1 bias_correction2: float = 1.0 - beta2 ** state['step'] s_grad = self.get_adanorm_gradient( grad=grad, adanorm=group['adanorm'], exp_grad_norm=state.get('exp_grad_norm', None), r=group.get('r', None), ) exp_avg, exp_avg_sq = state['exp_avg'], state['exp_avg_sq'] exp_avg.mul_(beta1).add_(s_grad, alpha=1.0 - beta1) exp_avg_sq.mul_(beta2).addcmul_(grad, grad, value=1.0 - beta2) if group['ams_bound']: max_exp_avg_sq = state['max_exp_avg_sq'] torch.max(max_exp_avg_sq, exp_avg_sq, out=max_exp_avg_sq) exp_avg_sq_hat = max_exp_avg_sq else: exp_avg_sq_hat = exp_avg_sq exp_avg_sq_hat_sum += exp_avg_sq_hat.sum() / bias_correction2 if param_size == 0: raise ZeroParameterSizeError() exp_avg_sq_hat_mean: float = math.sqrt(exp_avg_sq_hat_sum / param_size) + self.defaults['eps'] for group in self.param_groups: beta1, beta2 = group['betas'] for p in group['params']: if p.grad is None: continue state = self.state[p] self.apply_weight_decay( p=p, grad=None, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ratio=1.0 / exp_avg_sq_hat_mean, ) bias_correction1: float = 1.0 - beta1 ** state['step'] bias_correction2: float = 1.0 - beta2 ** state['step'] exp_avg_sq_hat = state['max_exp_avg_sq'] if group['ams_bound'] else state['exp_avg_sq'] exp_avg_sq_hat.div_(bias_correction2) de_nom = exp_avg_sq_hat.sqrt().add_(group['eps']) step_size: float = self.apply_adam_debias( adam_debias=group['adam_debias'], step_size=group['lr'], bias_correction1=bias_correction1, ) p.addcdiv_(state['exp_avg'], de_nom, value=-step_size) return loss
(self)
[ 0.006829506251960993, -0.03641073778271675, -0.021674958989024162, 0.04705878719687462, -0.0010593212209641933, 0.0010456123854964972, -0.04386835917830467, -0.06061809882521629, -0.02951144240796566, 0.024187419563531876, -0.0171585101634264, 0.00017587847833056003, 0.02303089015185833, 0.08917241543531418, -0.029690904542803764, 0.056311022490262985, 0.02486538514494896, 0.05738779157400131, 0.029770664870738983, -0.016590217128396034, -0.03429708257317543, -0.06775667518377304, -0.025543350726366043, 0.034396782517433167, -0.06129606440663338, -0.009715844877064228, 0.059421688318252563, -0.009047849103808403, -0.016819527372717857, 0.006669984664767981, -0.019680941477417946, -0.07812555879354477, 0.012093709781765938, -0.006006974261254072, 0.025403769686818123, -0.05710862949490547, 0.016141561791300774, 0.01849450170993805, -0.07880352437496185, -0.04741771146655083, -0.018863394856452942, -0.02055830880999565, 0.030588211491703987, 0.005037384107708931, -0.0020812544971704483, 0.011824517510831356, -0.02697904221713543, 0.04287135228514671, -0.026161495596170425, -0.008210362866520882, 0.0060219294391572475, -0.053918201476335526, 0.06660014390945435, 0.0005390075384639204, 0.02069788984954357, 0.07174471020698547, 0.057786595076322556, -0.06683942675590515, 0.0409969761967659, -0.06305079907178879, 0.05288131535053253, -0.06289127469062805, 0.029132580384612083, -0.005099697038531303, -0.0011621377198025584, -0.003791123628616333, -0.0699102133512497, -0.026041854172945023, 0.015902280807495117, 0.04542369395494461, 0.022552326321601868, 0.008948148228228092, 0.010648047551512718, 0.007721828296780586, -0.04741771146655083, -0.008863402530550957, -0.03353935480117798, -0.04155530035495758, 0.013718833215534687, -0.03232300654053688, 0.017657015472650528, 0.015443656593561172, -0.023210350424051285, -0.0005723450449295342, 0.014626109972596169, -0.03238282725214958, -0.015353926457464695, -0.017696894705295563, -0.003609169740229845, -0.029331980273127556, 0.03702888265252113, -0.00477068405598402, 0.032921209931373596, 0.04259219020605087, 0.04203386604785919, 0.03922230377793312, -0.033499475568532944, -0.02041872777044773, -0.03499498590826988, -0.03413756191730499, 0.01602192223072052, 0.03569289296865463, 0.047856394201517105, 0.048414718359708786, 0.024825504049658775, -0.04562309384346008, -0.007073773071169853, -0.03491522744297981, 0.05312059819698334, -0.05052837356925011, -0.03353935480117798, 0.0033973054960370064, -0.043988000601530075, -0.012512452900409698, -0.030727792531251907, -0.010398795828223228, -0.013539371080696583, 0.026021914556622505, -0.03184444084763527, 0.04753734916448593, 0.05766695365309715, 0.009107669815421104, -0.05607173964381218, 0.0034097679890692234, 0.02027914673089981, 0.02233298309147358, 0.05112658068537712, 0.010408765636384487, 0.015024913474917412, -0.07812555879354477, -0.0070538329891860485, 0.0021971568930894136, -0.011435683816671371, -0.007686933036893606, 0.024745743721723557, -0.011395803652703762, -0.01130607258528471, 0.013888324610888958, -0.007457621395587921, -0.0056231264024972916, 0.01102691050618887, 0.019172467291355133, -0.013728803023695946, -0.014925212599337101, 0.022711846977472305, 0.02626119554042816, 0.0594615675508976, 0.03523426875472069, 0.009890321642160416, -0.006590224336832762, 0.022871367633342743, 0.004426716361194849, 0.01267197448760271, 0.012691914103925228, 0.01088732946664095, 0.009317041374742985, -0.006724820472300053, 0.03142569959163666, -0.020677950233221054, -0.02548353001475334, -0.018085729330778122, -0.02478562295436859, -0.01871384307742119, 0.013379850424826145, 0.006146555300801992, 0.01585243083536625, -0.017676955088973045, 0.06508469581604004, -0.038983020931482315, 0.00835991371423006, 0.008015945553779602, -0.028155511245131493, 0.0217746589332819, 0.01591225154697895, -0.032083723694086075, 0.12570279836654663, 0.004157524090260267, 0.016839468851685524, -0.029631083831191063, -0.017726805061101913, 0.009002983570098877, -0.01098703034222126, -0.01461614016443491, -0.04227314889431, -0.011146551929414272, 0.03543367236852646, 0.017846446484327316, 0.005862408317625523, 0.008654030971229076, 0.004202389623969793, -0.02408771775662899, -0.020737770944833755, 0.03435690328478813, -0.015573267824947834, -0.026520418003201485, 0.028354912996292114, 0.020269175991415977, 0.014885332435369492, 0.09228307753801346, 0.012911256402730942, -0.018015937879681587, -0.007532396819442511, 0.023629093542695045, -0.01472581084817648, -0.03507474809885025, -0.019541360437870026, -0.03312061354517937, 0.041954103857278824, -0.01070786826312542, 0.013688922859728336, -0.07661011070013046, -0.006266196724027395, 0.02634095586836338, 0.06787631660699844, 0.05794611573219299, -0.06037881597876549, 0.02374873496592045, 0.02043866738677025, 0.06895308941602707, 0.0014132590731605887, -0.018594203516840935, -0.07880352437496185, 0.018843455240130424, -0.0025274157524108887, 0.07190423458814621, -0.025104666128754616, 0.039062779396772385, -0.030608151108026505, -0.021296095103025436, -0.01001494750380516, 0.0053639039397239685, -0.02021932601928711, 0.019282137975096703, -0.009690919890999794, 0.020398788154125214, 0.03318043425679207, -0.045104652643203735, -0.040957096964120865, -0.01500497292727232, -0.011046851053833961, -0.0409969761967659, -0.035812534391880035, -0.030588211491703987, 0.03601193428039551, -0.028494494035840034, 0.03134593740105629, 0.0662013441324234, 0.03403785824775696, -0.026779640465974808, 0.02289130911231041, -0.027278143912553787, -0.022013941779732704, -0.019072767347097397, 0.028614135459065437, -0.059421688318252563, -0.025882333517074585, 0.07066793739795685, 0.05782647430896759, 0.04825519770383835, -0.04717842862010002, 0.03056827187538147, -0.060259174555540085, -0.051605142652988434, 0.050887297838926315, -0.03880355879664421, 0.028833476826548576, 0.04386835917830467, -0.03557325154542923, 0.034616123884916306, 0.03519438952207565, 0.07952137291431427, 0.09970081597566605, -0.0608573816716671, -0.0371086448431015, 0.0057477522641420364, 0.03930206224322319, 0.0036415725480765104, 0.007273174822330475, -0.010548346675932407, -0.01701892912387848, 0.07469585537910461, -0.06656026840209961, -0.06895308941602707, 0.01698901876807213, -0.060259174555540085, 0.046021897345781326, -0.018344949930906296, 0.0024738265201449394, 0.0632900819182396, 0.004795609507709742, 0.029032878577709198, -0.0003246507840231061, 0.08486533910036087, 0.018205368891358376, 0.06939177215099335, -0.0033150522504001856, -0.01622132398188114, 0.015762699767947197, -0.031086714938282967, 0.025762692093849182, 0.06612158566713333, -0.003285141894593835, 0.01824524998664856, 0.00023803570365998894, -0.0258424524217844, -0.016590217128396034, 0.008419734425842762, 0.003025919897481799, 0.038065772503614426, -0.027577247470617294, -0.007956125773489475, 0.0029985022265464067, 0.005653036292642355, 0.011136581189930439, -0.0017609656788408756, -0.09818536788225174, 0.0007309316424652934, -0.05415748432278633, 0.025523409247398376, 0.06388828158378601, -0.025902273133397102, 0.023569274693727493, 0.03555331379175186, 0.009556323289871216, -0.016839468851685524, -0.03417744114995003, 0.0686340406537056, 0.024047838523983955, -0.021495496854186058, -0.03501492738723755, -0.0765303522348404, -0.015164494514465332, 0.05794611573219299, 0.029032878577709198, -0.03790625184774399, -0.023848436772823334, 0.025304067879915237, 0.0004545734263956547, 0.026540357619524002, -0.05499497056007385, 0.04897304251790047, 0.028634075075387955, -0.028474554419517517, 0.027736768126487732, 0.028195392340421677, -0.04199398681521416, 0.03234294429421425, 0.012701884843409061, 0.01860417239367962, 0.02043866738677025, -0.0055682905949652195, -0.013828503899276257, -0.0008568039047531784, 0.055473536252975464, 0.03365899622440338, 0.041794583201408386, -0.009466593153774738, -0.018753724172711372, 0.020598189905285835, -0.06408768892288208, 0.009416742250323296, 0.034277141094207764, -0.05471580848097801, 0.08781648427248001, 0.09196403622627258, 0.0011876859935000539, -0.03794613108038902, -0.04199398681521416, 0.06412756443023682, -0.029970066621899605, 0.01599201187491417, -0.05064801499247551, -0.008634091354906559, 0.027298083528876305, -0.036809541285037994, -0.005732797086238861, -0.05858420208096504, -0.0025361396837979555, 0.06560313701629639, 0.05204382911324501, 0.033918220549821854, -0.04175470396876335, -0.01472581084817648, 0.022412743419408798, 0.036031875759363174, -0.025244247168302536, 0.019810553640127182, -0.05172478407621384, 0.031664978712797165, -0.06628110259771347, 0.05706875026226044, 0.02959120273590088, 0.0006162757053971291, 0.009700889699161053, -0.06851440668106079, 0.044466566294431686, 0.036231279373168945, 0.03371881693601608, -0.06205378845334053, -0.007173473946750164, -0.028614135459065437, 0.0062013911083340645, 0.015064793638885021, 0.013938174583017826, -0.009322026744484901, -0.0832701250910759, -0.007726813666522503, 0.040119610726833344, 0.006689925212413073, 0.06552337855100632, -0.01493518240749836, -0.01140577346086502, -0.04929208382964134, 0.007741768844425678, -0.006475568283349276, -0.03910266235470772, -0.017846446484327316, -0.015333985909819603, 0.0027941155713051558, -0.00649550836533308, 0.037288106977939606, 0.01088732946664095, 0.0318245030939579, 0.04131602123379707, -0.02225322276353836, -0.03296108916401863, -0.06392816454172134, -0.02614155411720276, -0.05507473275065422, -0.015752729028463364, -0.02795610949397087, -0.03499498590826988, -0.02386837638914585, -0.011605175212025642, -0.027736768126487732, 0.0070887282490730286, -0.009790620766580105, 0.04346955567598343, 0.04893316328525543, 0.006844461429864168, 0.0018793604103848338, 0.0059621091932058334, 0.010697897523641586, -0.0022781637962907553, -0.0005109666963107884, -0.032502468675374985, 0.06987033784389496, -0.016729798167943954, -0.08957121521234512, 0.015164494514465332, 0.023290110751986504, 0.008639075793325901, 0.06037881597876549, -0.004997503478080034, 0.024825504049658775, -0.009720830246806145, -0.02464604191482067, -0.023349931463599205, -0.008384838700294495, 0.026679938659071922, 0.014287127181887627, 0.025184426456689835, -0.0408773347735405, 0.018035877496004105, -0.013499490916728973, 0.002316797850653529, 0.0767696276307106, 0.03549349308013916, 0.0007801589090377092, 0.015613147988915443, 0.0047033862210810184, -0.014067785814404488, 0.0218943003565073, -0.02077765017747879, -0.01777665689587593, -0.032781630754470825, -0.01738782227039337, -0.002543617272749543, 0.015613147988915443, -0.02931204065680504, 0.01619141362607479, -0.05583246052265167, 0.026998981833457947, 0.0290926992893219, -0.002490028040483594, 0.04705878719687462, 0.012093709781765938, 0.006370882503688335, 0.04925220459699631, 0.047856394201517105, -0.05655030533671379, -0.062293071299791336, 0.058703843504190445, 0.045742735266685486, -0.059541329741477966, -0.06177462637424469, 0.04929208382964134, 0.01059819757938385, 0.08749744296073914, -0.043629080057144165, 0.012013948522508144, 0.03657026216387749, -0.05012957379221916, -0.028933178633451462, 0.001941673457622528, -0.02879359759390354, -0.04805579409003258, 0.011694906279444695, -0.05403784289956093, 0.020089715719223022, -0.007203384302556515, -0.02416747808456421, 0.005324023775756359, -0.008060811087489128, -0.006994012277573347, -0.03485540673136711, 0.0435493178665638, 0.06508469581604004, 0.04993017017841339, -0.03353935480117798, 0.031106656417250633, 0.02083747088909149, -0.007163503672927618, -0.018235279247164726, 0.0000755155851948075, 0.04303087294101715, -0.008529405109584332, 0.005513455253094435, 0.010368885472416878, 0.014735781587660313, -0.031445637345314026, -0.0006692417664453387, 0.04402788355946541, 0.07302088290452957, -0.009072775021195412, -0.03866397961974144, -0.009695904329419136, -0.06823524087667465, -0.13128603994846344, -0.02592221274971962, -0.010518436320126057, -0.014636080712080002, 0.02233298309147358, -0.03389827907085419, -0.03676966205239296, 0.04470584914088249, 0.012592213228344917, 0.026301076635718346, -0.020658010616898537, -0.02542370930314064, -0.01785641722381115, 0.030328989028930664, -0.009835486300289631, 0.026321016252040863, 0.026500478386878967, 0.012452632188796997, -0.03401792049407959, 0.023708855733275414, 0.0030408750753849745, -0.00963608454912901, -0.04422728344798088, -0.03760714828968048, 0.0033574250992387533, -0.0423927903175354, 0.008035886101424694, 0.013788623735308647, 0.016979049891233444, -0.0211963951587677, -0.04833495616912842, 0.010907270014286041, -0.035772655159235, 0.009621129371225834, -0.007721828296780586, -0.030249228700995445, -0.02945162169635296, -0.001112287282012403, 0.009586233645677567, -0.02628113515675068, 0.0005203136242926121, -0.012163500301539898, 0.05615150183439255, -0.045104652643203735, -0.014885332435369492, -0.008723821491003036, 0.0031006955541670322, 0.0689929649233818, -0.12027906626462936, 0.03435690328478813, -0.013220328837633133, 0.02945162169635296, -0.03802589327096939, 0.029052818194031715, -0.06731799244880676, -0.06667990982532501, -0.001562810386531055, 0.02478562295436859, -0.03174474090337753, 0.014327007345855236, 0.010348944924771786, 0.013878353871405125, -0.04255231097340584, 0.006051839794963598, 0.051804546266794205, 0.004391821101307869, 0.006630104500800371, -0.009745755232870579, -0.022652026265859604, 0.04235290735960007, 0.012522422708570957, -0.02203388139605522, -0.04817543551325798, -0.027776649221777916, 0.0013646549778059125, -0.012323020957410336, -0.08127611130475998, -0.01833498105406761, -0.01613159291446209, 0.009426712058484554, 0.07984041422605515, 0.009556323289871216, -0.038703858852386475, 0.01992022432386875, -0.03407774120569229, -0.0035269164945930243, 0.02733796462416649, -0.03232300654053688, 0.04809567704796791, -0.08055826276540756, -0.03633097931742668, -0.02965102344751358, -0.03676966205239296, 0.03980056568980217, 0.03682948276400566, -0.056510426104068756, 0.054556287825107574, 0.015084734186530113, 0.05216347053647041, 0.029112638905644417, -0.03766696900129318, -0.05862408131361008, -0.008963103406131268, 0.03786637261509895, -0.029690904542803764, -0.019401779398322105, 0.002916248980909586, 0.0036889303009957075, -0.034396782517433167, 0.03980056568980217, 0.052442632615566254, 0.012632093392312527, -0.005957123823463917, 0.03184444084763527, -0.04207374528050423, 0.01313059777021408, 0.026540357619524002, -0.00019114516908302903, 0.018903275951743126, 0.03958122432231903, 0.013270178809762001, -0.034336961805820465, -0.00549351517111063, -0.02733796462416649, -0.023150529712438583, -0.014097696170210838, -0.03599199652671814, -0.011674965731799603, -0.016809558495879173, -0.013489521108567715, -0.015413747169077396, 0.002410267246887088, -0.09571278840303421, -0.05276167392730713, -0.06021929532289505, -0.00905283447355032, 0.014775661751627922, -0.009307071566581726, 0.024626102298498154, -0.0396011658012867, -0.04057823494076729, 0.018225310370326042, 0.024426700547337532, 0.0344964824616909, -0.025942152366042137, 0.0435493178665638, 0.03471582382917404, -0.013280149549245834, 0.004252240061759949, 0.026181435212492943, 0.014536379836499691, -0.00015329000598285347, -0.050608135759830475, -0.021036872640252113, 0.014516439288854599, 0.025623111054301262, 0.019541360437870026, -0.07222327589988708, -0.03655032068490982, -0.027557305991649628, 0.004847952164709568, -0.052921194583177567, 0.010628107003867626, -0.025244247168302536, -0.01849450170993805, 0.001849450170993805, 0.03248252719640732, 0.04079757630825043, 0.015682939440011978, 0.006231300998479128, 0.011704876087605953, 0.013997995294630527, -0.00787138007581234, 0.0033574250992387533, -0.027357904240489006, 0.008484539575874805, -0.005453635007143021, -0.0005633096443489194, -0.0027941155713051558, -0.01676967740058899, -0.07062806189060211, 0.06057821959257126, -0.01644066534936428, -0.01663009636104107, 0.04725818708539009, -0.015623118728399277, -0.05379856377840042, -0.02506478689610958, 0.024665983393788338, -0.02191423997282982, 0.0488932803273201, 0.002011463977396488, 0.01729809306561947, 0.015643058344721794, -0.014765691012144089, 0.02281154692173004, -0.027357904240489006, -0.012592213228344917, 0.04713854938745499, 0.007093713153153658, -0.01947157084941864, -0.0005075394874438643, 0.030109647661447525, 0.0283947940915823, -0.003277664538472891, -0.04606178030371666, 0.03339977562427521, 0.04338979721069336, -0.015643058344721794, -0.02564305067062378, 0.029830485582351685, -0.07082746177911758, 0.05698898807168007, 0.03371881693601608, 0.04530405253171921, 0.05902288481593132, 0.07764700055122375, -0.038065772503614426, 0.02289130911231041, -0.0739780068397522, -0.07481549680233002, -0.06998997181653976, 0.0009783143177628517, -0.02203388139605522, 0.07876364886760712, 0.01660018600523472, 0.025523409247398376, 0.01902291551232338, 0.047298070043325424, 0.016869379207491875 ]