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
718,134
pytorch_optimizer.optimizer.fp16
get_lr
Get learning rate.
def get_lr(self) -> float: r"""Get learning rate.""" return self.optimizer.get_lr()
(self) -> float
[ -0.038307588547468185, -0.022480322048068047, 0.015161961317062378, 0.04678148031234741, 0.019573986530303955, 0.027400080114603043, -0.0022082014475017786, -0.05739134922623634, -0.023863457143306732, 0.02095712162554264, -0.019276350736618042, -0.04278964549303055, 0.011957990005612373, 0.06824633479118347, 0.0010991765884682536, 0.036206625401973724, -0.021692460402846336, -0.0026130748447030783, -0.018260885030031204, 0.010609871707856655, -0.007331490982323885, 0.0027093689423054457, -0.0020582887809723616, -0.0056901127099990845, -0.04194926097989082, 0.032547444105148315, 0.048777393996715546, -0.015275763347744942, -0.02200760506093502, 0.02015175297856331, -0.04436536878347397, -0.024021029472351074, -0.0011588132474571466, -0.013463681563735008, -0.012071792967617512, 0.03126935660839081, -0.035698890686035156, -0.009970827959477901, -0.06632044911384583, -0.005199887324124575, -0.02552672103047371, -0.011494027450680733, 0.020712008699774742, 0.001940109534189105, -0.04580102860927582, -0.03302016109228134, -0.050878360867500305, -0.04282466322183609, 0.02398601360619068, -0.06491980701684952, 0.05066826194524765, 0.02263789437711239, -0.004858480766415596, -0.017446760088205338, -0.0012255626497790217, -0.021692460402846336, 0.026034453883767128, -0.04243948683142662, 0.02172747626900673, 0.03282757103443146, 0.02817043475806713, -0.0812373012304306, -0.01580100506544113, 0.018155835568904877, 0.049022506922483444, -0.02132479101419449, -0.05802163854241371, 0.04391016066074371, 0.02135980688035488, 0.03272252529859543, 0.014636720530688763, -0.0285556111484766, 0.010574854910373688, -0.007537210360169411, -0.030026286840438843, -0.005808291956782341, -0.05182379484176636, -0.05378469452261925, -0.00915670394897461, -0.009349292144179344, -0.0055981953628361225, 0.06124311685562134, 0.03344035521149635, -0.015337041579186916, 0.002875695237889886, -0.11051073670387268, -0.03627665713429451, -0.06019263714551926, -0.029501045122742653, -0.006596153602004051, -0.0194864459335804, 0.001127079944126308, 0.01677270047366619, 0.02629707381129265, -0.028608134016394615, -0.02619202621281147, -0.06926179677248001, -0.007086378522217274, 0.02277795784175396, -0.04334990307688713, -0.00935804657638073, 0.09384308755397797, 0.019468938931822777, 0.052559129893779755, 0.037502218037843704, -0.008675233460962772, -0.016904011368751526, -0.023075595498085022, 0.047341737896203995, -0.006753725931048393, -0.03391307219862938, 0.015091929584741592, -0.04005839303135872, 0.059772443026304245, -0.020501913502812386, 0.04331488534808159, -0.025631768628954887, 0.02944852039217949, -0.009191719815135002, 0.06085794046521187, 0.0025714931543916464, 0.06110305339097977, -0.014925602823495865, -0.020326832309365273, -0.005051068961620331, 0.010417282581329346, 0.018523504957556725, 0.031356897205114365, 0.003028890583664179, -0.012518247589468956, 0.04264958202838898, 0.014032692648470402, -0.01873360201716423, 0.0027006149757653475, 0.015468351542949677, -0.0016096453182399273, 0.05564054474234581, 0.0695769414305687, 0.028520595282316208, 0.021062171086668968, 0.020992137491703033, 0.060297682881355286, 0.06509488821029663, -0.0516136959195137, 0.01978408358991146, 0.03288009762763977, -0.026524677872657776, 0.08501903712749481, 0.0057995375245809555, -0.016965288668870926, 0.032162267714738846, -0.03198718652129173, 0.055710580199956894, -0.014557934366166592, 0.03879781439900398, 0.01039977464824915, -0.029641108587384224, -0.017709380015730858, -0.00635104114189744, -0.04797202721238136, -0.02421361766755581, -0.007939895614981651, -0.01454042550176382, -0.09020141512155533, 0.026997394859790802, 0.006158452481031418, 0.011108850128948689, 0.037257105112075806, -0.02396850474178791, 0.019924147054553032, -0.01453167200088501, -0.08305813372135162, -0.03564636781811714, 0.03533122316002846, 0.0043835751712322235, 0.09139195829629898, 0.008018681779503822, 0.06470970809459686, -0.014032692648470402, 0.07724546641111374, 0.07346373051404953, -0.006569891236722469, -0.04292970895767212, -0.07808585464954376, 0.006057781167328358, 0.008964115753769875, -0.013568730093538761, 0.005335574503988028, -0.06253871321678162, 0.06901668757200241, 0.04954775050282478, 0.01938139833509922, -0.00956814270466566, -0.06456964462995529, -0.04632626846432686, -0.011949236504733562, 0.02368837594985962, 0.03904292732477188, 0.0492326058447361, 0.04233443737030029, 0.054134853184223175, 0.05028308555483818, -0.0023307576775550842, 0.053994789719581604, -0.0261745173484087, -0.03771231323480606, -0.07332366704940796, 0.008044944144785404, -0.01572221890091896, 0.006622415501624346, -0.010574854910373688, 0.012483231723308563, 0.01952146366238594, 0.01126642245799303, 0.009375554509460926, -0.019031237810850143, -0.0649898424744606, 0.026227042078971863, 0.017315449193120003, 0.037782348692417145, 0.049022506922483444, -0.0654800608754158, 0.011966744437813759, -0.03361543267965317, 0.03471843898296356, -0.049022506922483444, 0.011957990005612373, -0.03356290981173515, -0.05914215371012688, 0.014549179933965206, -0.007839224301278591, -0.05707620456814766, 0.03251242637634277, 0.010644887574017048, 0.03167204186320305, 0.056375883519649506, -0.02841554582118988, 0.07346373051404953, -0.07031228393316269, -0.011677861213684082, -0.030971720814704895, 0.023775916546583176, 0.015293271280825138, 0.010461052879691124, -0.06138318404555321, 0.052699197083711624, 0.05875697731971741, 0.017446760088205338, -0.03862273320555687, 0.002694049384444952, 0.018558520823717117, -0.04292970895767212, 0.012693327851593494, 0.05077331140637398, -0.02146485447883606, 0.01806829497218132, 0.004155970644205809, 0.0010822155745700002, -0.006473597139120102, -0.012518247589468956, 0.007572226691991091, 0.0007014158181846142, -0.04173916205763817, 0.019924147054553032, -0.06663559377193451, 0.03624163940548897, 0.01341991126537323, -0.02395099587738514, 0.012203102931380272, -0.01616867445409298, 0.12682822346687317, 0.01808580383658409, -0.06306395679712296, -0.04229941964149475, 0.005978995002806187, -0.047061607241630554, -0.0005145721952430904, 0.034123167395591736, -0.031339388340711594, 0.04152906686067581, 0.03447332605719566, -0.02514154277741909, -0.02041437290608883, -0.01952146366238594, -0.07339369505643845, 0.006635546684265137, -0.009865779429674149, -0.008206892758607864, -0.019714051857590675, 0.0175605621188879, 0.04355999827384949, -0.019311366602778435, 0.031006736680865288, 0.042894694954156876, 0.14888836443424225, 0.004591483157128096, 0.02346077188849449, -0.03746720403432846, 0.04468051344156265, 0.050878360867500305, -0.0031229963060468435, -0.0013229511678218842, 0.02160491980612278, 0.012483231723308563, -0.024126077070832253, -0.009051656350493431, 0.04058363288640976, 0.00019573439203668386, 0.0005052710766904056, 0.013883874751627445, -0.031006736680865288, 0.01661512814462185, 0.024266140535473824, -0.003937120083719492, -0.019854115322232246, -0.06323903799057007, -0.03631167113780975, -0.0074628014117479324, 0.014032692648470402, 0.013411157764494419, -0.04377009719610214, 0.032862588763237, 0.020239291712641716, -0.03757224977016449, -0.0012408822076395154, -0.07339369505643845, -0.005195510573685169, 0.034245721995830536, -0.022340256720781326, -0.03428073972463608, -0.0022125784307718277, -0.09692449867725372, 0.0032280446030199528, -0.0012463534949347377, -0.023110611364245415, 0.0010926109971478581, 0.042859677225351334, 0.05469511076807976, -0.00019751256331801414, 0.022988054901361465, 0.04954775050282478, -0.001516633783467114, 0.0008108410402201116, 0.05889704078435898, 0.006189091596752405, 0.0015330476453527808, 0.033983103930950165, 0.009883287362754345, 0.04257955029606819, -0.020396864041686058, -0.049162570387125015, -0.023355722427368164, -0.03708202391862869, 0.03443831205368042, -0.031374406069517136, -0.017858199775218964, -0.06635546684265137, 0.02146485447883606, 0.03354540094733238, -0.023933488875627518, -0.0638343095779419, 0.00325868371874094, -0.034998569637537, 0.07892623543739319, 0.021272266283631325, 0.025106526911258698, -0.023653360083699226, -0.015013143420219421, 0.018768617883324623, -0.011774156242609024, -0.055990707129240036, -0.038692764937877655, -0.0019488635007292032, 0.011800417676568031, -0.019433923065662384, 0.013314863666892052, 0.013069750741124153, -0.018155835568904877, 0.034753456711769104, 0.031496960669755936, 0.009174211882054806, 0.04517073929309845, 0.029956253245472908, 0.009874533861875534, 0.05490520969033241, -0.013901382684707642, -0.046011123806238174, -0.035698890686035156, -0.005668227560818195, -0.040653664618730545, -0.011634091846644878, 0.005987748969346285, -0.04664141312241554, -0.006578645668923855, -0.08431871235370636, -0.010417282581329346, -0.006097174249589443, 0.011669107712805271, -0.00125182478222996, -0.0065480065532028675, -0.005983372218906879, 0.011152620427310467, 0.006101551465690136, -0.0009197191684506834, -0.019311366602778435, 0.01615116558969021, 0.04075871407985687, 0.07843600958585739, -0.02722499892115593, -0.021692460402846336, -0.06050778180360794, -0.0016271533677354455, -0.009393062442541122, 0.025334130972623825, -0.006779987830668688, 0.01669391430914402, 0.05945729836821556, 0.014776784926652908, 0.021657442674040794, 0.041178908199071884, 0.02552672103047371, 0.018173344433307648, 0.013437419198453426, 0.024423712864518166, 0.035926494747400284, -0.0024751988239586353, 0.005134232342243195, 0.010916261933743954, -0.02540416456758976, 0.007480309344828129, -0.008364465087652206, -0.01861104555428028, 0.016299983486533165, -0.0413539856672287, -0.009270505979657173, -0.01709659956395626, -0.006758102681487799, 0.0054056067019701, -0.009279260411858559, -0.020782042294740677, 0.08060701191425323, -0.02657720260322094, 0.016746439039707184, 0.020729517564177513, -0.018365932628512383, -0.05679607763886452, -0.005856439005583525, -0.012483231723308563, -0.01820836029946804, -0.03743218630552292, -0.028608134016394615, -0.010207186453044415, 0.06040273234248161, 0.037257105112075806, 0.008110598661005497, 0.03715205937623978, -0.036206625401973724, -0.05409983918070793, 0.019223826006054878, -0.03116430900990963, 0.02330319955945015, 0.05889704078435898, 0.04832218587398529, 0.017087845131754875, -0.009830763563513756, -0.009042901918292046, 0.030971720814704895, -0.003593524917960167, -0.05346954986453056, 0.01485557109117508, 0.0051386090926826, 0.0012638615444302559, 0.0012135258875787258, -0.05980746075510979, -0.009401816874742508, 0.010382266715168953, -0.01990664005279541, -0.02290051430463791, 0.023338215425610542, -0.03995334357023239, -0.03862273320555687, -0.04573099687695503, 0.0008754019509069622, 0.027295032516121864, 0.024301158264279366, 0.020887089893221855, -0.11303189396858215, 0.05851186439394951, -0.00745842419564724, -0.027067426592111588, -0.03153197839856148, 0.04625623673200607, 0.02577183209359646, -0.010653641074895859, -0.07069745659828186, -0.015337041579186916, 0.07346373051404953, -0.012474477291107178, 0.042229387909173965, 0.09398315101861954, 0.01637001521885395, -0.041318971663713455, -0.00641669612377882, 0.017516791820526123, 0.03013133443892002, -0.001562592457048595, -0.07920636236667633, -0.014741768129169941, -0.03025389090180397, 0.036591801792383194, 0.002632771385833621, 0.05038813501596451, -0.0244937464594841, 0.01604611799120903, -0.04993292689323425, -0.024808891117572784, -0.0010225789155811071, 0.07871614396572113, 0.03440329432487488, -0.006359795108437538, -0.006403564941138029, 0.032862588763237, 0.005637588445097208, -0.09405317902565002, 0.02881823107600212, 0.05634086951613426, -0.050738293677568436, -0.01367377769201994, 0.026787299662828445, 0.03340533748269081, 0.05357459932565689, -0.021272266283631325, -0.026647234335541725, 0.041178908199071884, -0.0331077016890049, 0.053084373474121094, -0.02172747626900673, -0.059632379561662674, -0.07899627089500427, -0.015538384206593037, 0.002332946052774787, -0.035926494747400284, 0.024668825790286064, -0.011957990005612373, 0.001993727870285511, 0.006950691342353821, -0.06089295819401741, 0.07633505016565323, -0.0031098653562366962, 0.0006817192770540714, 0.03732713684439659, 0.0021874106023460627, -0.0353662371635437, -0.016054870560765266, 0.04401521012187004, 0.03478847071528435, 0.007782323285937309, 0.04338492080569267, 0.05931723490357399, -0.0001717976265354082, -0.0019630887545645237, -0.08039691299200058, 0.008683986961841583, 0.021779999136924744, 0.021062171086668968, -0.0000106433144537732, -0.025106526911258698, 0.05914215371012688, -0.05910713970661163, -0.030691592022776604, 0.004889119882136583, -0.015161961317062378, 0.029290948063135147, -0.03468342497944832, -0.03655678406357765, 0.008990378119051456, -0.002018895698711276, 0.01964401826262474, -0.02957107685506344, -0.018926190212368965, 0.033300288021564484, 0.00320834806188941, 0.01714036986231804, -0.03506860136985779, -0.010163416154682636, -0.010574854910373688, -0.04664141312241554, 0.02920340746641159, -0.01859353668987751, -0.009795747697353363, -0.027470111846923828, 0.0007227536989375949, -0.016405032947659492, -0.009786993265151978, 0.014969373121857643, -0.013227323070168495, -0.06625042110681534, -0.01113511249423027, 0.0492326058447361, 0.05529038608074188, -0.012343167327344418, -0.016527587547898293, 0.007318360265344381, 0.005515031982213259, -0.003593524917960167, 0.0034271986223757267, -0.01584477536380291, -0.019573986530303955, 0.02515905164182186, -0.05406482145190239, -0.00850015226751566, -0.015555892139673233, 0.013393649831414223, -0.06327404826879501, 0.01354246772825718, -0.026874838396906853, 0.018278392031788826, 0.006845643278211355, 0.030989227816462517, -0.022182684391736984, 0.023408247157931328, 0.024721350520849228, 0.015100683085620403, -0.0029150883201509714, -0.03088418021798134, 0.0030857918318361044, -0.002667787251994014, -0.0774555653333664, 0.019188810139894485, -0.08599948137998581, -0.025614259764552116, -0.04023347422480583, 0.019854115322232246, -0.08831054717302322, 0.016991551965475082, 0.03193466365337372, 0.025719309225678444, 0.0064560892060399055, -0.006661808583885431, -0.03394808620214462, -0.01566093973815441, 0.11121106147766113, -0.021114693954586983, -0.03405313566327095, -0.002308872528374195, -0.020274309441447258, -0.06912173330783844, 0.021044662222266197, 0.06625042110681534, 0.00930552277714014, -0.04436536878347397, 0.014085217379033566, 0.03498106077313423, 0.030183859169483185, -0.023355722427368164, -0.04331488534808159, 0.03435077145695686, 0.06110305339097977, 0.03102424368262291, -0.058581896126270294, -0.09650430828332901, -0.030971720814704895, 0.01197549793869257, -0.002387658692896366, -0.008990378119051456, 0.009191719815135002, -0.07178296148777008, 0.004007152281701565, 0.02463380992412567, -0.06113807111978531, -0.018786124885082245, 0.0174992848187685, -0.0029369734693318605, 0.0463612861931324, 0.02606946974992752, 0.03498106077313423, -0.03998836129903793, -0.07661517709493637, 0.05910713970661163, -0.008399481885135174, -0.014487901702523232, 0.06992710381746292, -0.017271680757403374, -0.005322443787008524, -0.001037898357026279, 0.002722499892115593, -0.02734755538403988, 0.06509488821029663, 0.04909253865480423, 0.02564927563071251, -0.10805961489677429, -0.005024807062000036, -0.014435377903282642, 0.04114389047026634, 0.05553549900650978, -0.0023395116440951824, -0.00935804657638073, -0.015407074242830276, 0.0019346382468938828, -0.02722499892115593, -0.023513294756412506, 0.01216808706521988, -0.01518822368234396, 0.004946020897477865, 0.0108112134039402, 0.03461339324712753, 0.04370006546378136, -0.04306977614760399, -0.07038231194019318, -0.040653664618730545, 0.02985120564699173, -0.008373219519853592, -0.003333092899993062, -0.025894388556480408, 0.03231984004378319, -0.0001385597133776173, -0.007694782689213753, 0.010889999568462372, -0.04657138139009476, 0.030691592022776604, -0.01728043332695961, -0.02265540137887001, 0.039463117718696594, 0.028835739940404892, -0.011082588694989681, 0.01873360201716423, -0.00902539398521185, 0.0025299114640802145, -0.01833091676235199, 0.012063038535416126, -0.0019466750090941787, 0.008018681779503822, 0.03419319912791252, -0.05826675146818161, 0.0025211574975401163, 0.015231993049383163, 0.02002919651567936, 0.004324485547840595, 0.08613955229520798, 0.018365932628512383, 0.05837180092930794, 0.06495482474565506, -0.026629727333784103, 0.003129561897367239, 0.026874838396906853, 0.005379344802349806, -0.04541585221886635, -0.008618331514298916, 0.05273421108722687, -0.02983369678258896, 0.032932620495557785, -0.03729212284088135, 0.027977844700217247, 0.007200181018561125, 0.013778826221823692, -0.027820272371172905, 0.033597927540540695, -0.031216831877827644, -0.015494613908231258, -0.002155677182599902, 0.017210401594638824, -0.06376427412033081, 0.020484404638409615, 0.032162267714738846, -0.013927645049989223, 0.0046615153551101685, -0.025071511045098305, -0.014304067008197308 ]
718,135
pytorch_optimizer.optimizer.fp16
load_state_dict
Load an optimizer state dict. In general, we should prefer the configuration of the existing optimizer instance (e.g., learning rate) over that found in the state_dict. This allows us to resume training from a checkpoint using a new set of optimizer args. :param state_dict: Dict. state_dict.
def load_state_dict(self, state_dict: Dict): r"""Load an optimizer state dict. In general, we should prefer the configuration of the existing optimizer instance (e.g., learning rate) over that found in the state_dict. This allows us to resume training from a checkpoint using a new set of optimizer args. :param state_dict: Dict. state_dict. """ if 'loss_scaler' in state_dict and self.scaler is not None and isinstance(state_dict['loss_scaler'], float): self.scaler.loss_scale = state_dict['loss_scaler'] self.optimizer.load_state_dict(state_dict)
(self, state_dict: Dict)
[ 0.001117904670536518, -0.0035920313093811274, -0.02589946612715721, 0.006244608201086521, -0.00004914577948511578, -0.002618038095533848, -0.013078678399324417, 0.011080035008490086, -0.004153861664235592, -0.026802079752087593, -0.038683414459228516, 0.021902181208133698, -0.015850989148020744, 0.022141648456454277, -0.06417762488126755, 0.033433523029088974, -0.03273353725671768, 0.008482719771564007, -0.09777693450450897, -0.03916235268115997, -0.003532164031639695, -0.04045179858803749, 0.030523056164383888, 0.035957153886556625, -0.02293373830616474, -0.01714964769780636, 0.017775949090719223, -0.03533085063099861, -0.008312328718602657, -0.024167923256754875, 0.006589995697140694, 0.019452231004834175, -0.0014874694170430303, 0.07810365408658981, 0.003928208723664284, 0.007313007488846779, 0.03509138152003288, -0.008496535941958427, -0.04203597828745842, -0.017039122059941292, -0.032696694135665894, -0.016983861103653908, 0.04096757620573044, 0.017435166984796524, 0.033525627106428146, 0.014966797083616257, -0.04999370872974396, -0.053272586315870285, 0.04907267540693283, -0.03085462749004364, 0.0006366645102389157, -0.07581949234008789, 0.011098455637693405, 0.04590431973338127, -0.005724224261939526, -0.011411607265472412, 0.02418634481728077, 0.01353919506072998, -0.004623589105904102, -0.031480930745601654, -0.04292016848921776, -0.08886133134365082, -0.048962149769067764, -0.013014205731451511, 0.04829900711774826, -0.07736682891845703, -0.05813564360141754, 0.03735712543129921, -0.01493916567414999, -0.044172775000333786, 0.00196986086666584, -0.009385333396494389, 0.017702266573905945, -0.012756315991282463, -0.0673828199505806, 0.013787874020636082, -0.11229242384433746, -0.000765609263908118, -0.028607305139303207, 0.009809008799493313, -0.01959959603846073, -0.01980222389101982, 0.006857095751911402, -0.006972224917262793, -0.03802026808261871, -0.0778089240193367, 0.027059968560934067, -0.01152213104069233, -0.01182607188820839, -0.015197055414319038, 0.016025986522436142, 0.05857774242758751, -0.023707406595349312, -0.004665035754442215, 0.06565128266811371, 0.041409675031900406, -0.0017706871731206775, 0.022344276309013367, 0.006999855861067772, -0.02650734968483448, -0.03641767054796219, -0.053604159504175186, 0.012268168851733208, -0.01249842718243599, -0.010637938976287842, -0.07913520932197571, 0.014662856236100197, -0.030375691130757332, -0.0024177134037017822, -0.012074751779437065, -0.019360126927495003, -0.026323141530156136, -0.024333709850907326, 0.02637840434908867, -0.00010145761189050972, 0.011531341820955276, -0.007087354082614183, -0.01636676862835884, -0.000625151616986841, 0.05809880420565605, -0.013990501873195171, 0.044172775000333786, -0.009836639277637005, 0.05448835343122482, -0.012535268440842628, 0.0026249459479004145, 0.015197055414319038, 0.020520629361271858, 0.02613893523812294, -0.03374667465686798, 0.057177770882844925, -0.025623155757784843, -0.02960202284157276, 0.0281283687800169, 0.019544335082173347, -0.021202195435762405, -0.001306716469116509, 0.06915120780467987, 0.018650932237505913, -0.01950749382376671, 0.08782976865768433, 0.023799510672688484, -0.012130013667047024, -0.01091424934566021, 0.05511465296149254, 0.023707406595349312, -0.023449517786502838, 0.02064957469701767, -0.00019528792472556233, 0.027796795591711998, 0.007653789594769478, 0.02098114602267742, -0.017131226137280464, 0.008666926994919777, -0.002111469628289342, -0.05069369450211525, -0.034851912409067154, -0.08038781583309174, 0.0010891222627833486, -0.012673423625528812, -0.01480101142078638, -0.00614789966493845, -0.00892481580376625, -0.12408165633678436, -0.03533085063099861, -0.015233896672725677, -0.03068884089589119, -0.020723257213830948, -0.014533910900354385, 0.00912744365632534, -0.022473221644759178, -0.10683990269899368, -0.043841201812028885, 0.034170348197221756, 0.0035229537170380354, 0.06296186149120331, -0.014395756646990776, 0.01480101142078638, -0.03997286036610603, 0.00806825514882803, 0.07128800451755524, 0.027133651077747345, -0.06741966307163239, 0.004144651349633932, -0.012397113256156445, 0.02354162000119686, -0.011393186636269093, 0.009661642834544182, 0.0049413456581532955, 0.05235155299305916, 0.016016775742173195, -0.014847062528133392, 0.001336650107987225, -0.0333414189517498, -0.029123084619641304, 0.010591886937618256, -0.023081103339791298, -0.043435946106910706, 0.020999567583203316, 0.07559844106435776, 0.024278447031974792, -0.010103738866746426, 0.025586314499378204, 0.015510207042098045, -0.025438949465751648, -0.011356345377862453, -0.056809358298778534, 0.01866014301776886, 0.03240196406841278, 0.019120659679174423, -0.0522041879594326, -0.058356694877147675, 0.015040479600429535, 0.027299437671899796, 0.026083674281835556, -0.01038926001638174, 0.03582821041345596, 0.04560958594083786, -0.011273452080786228, -0.022252174094319344, 0.10124002397060394, 0.036196622997522354, 0.019175920635461807, -0.04634641483426094, -0.00012988013622816652, -0.04214650020003319, -0.014276022091507912, -0.004955161362886429, -0.01197343785315752, 0.05699356272816658, -0.013870767317712307, -0.06351447850465775, 0.00037819944554939866, -0.04137283191084862, 0.12002910673618317, 0.016661498695611954, -0.015620730817317963, 0.002608827780932188, 0.0512094721198082, 0.017131226137280464, 0.024683702737092972, 0.017223330214619637, -0.036159783601760864, -0.08606138825416565, -0.06970382481813431, -0.012507637031376362, 0.0326782763004303, 0.023062683641910553, -0.06417762488126755, 0.024075819179415703, 0.048888467252254486, -0.014395756646990776, -0.008759030140936375, 0.020796939730644226, 0.021202195435762405, 0.023891612887382507, 0.0066222320310771465, 0.005157788749784231, -0.012710264883935452, -0.012719474732875824, 0.012176064774394035, -0.008422852493822575, -0.0744195207953453, 0.006092637777328491, -0.0017683845944702625, 0.023117944598197937, 0.03601241484284401, -0.03505454212427139, 0.004688061308115721, -0.013787874020636082, 0.10042951256036758, 0.04516749083995819, -0.015722043812274933, 0.03650977462530136, 0.020391685888171196, 0.010333998128771782, 0.0394202396273613, -0.04203597828745842, 0.03361772745847702, 0.062298718839883804, 0.0626671314239502, 0.002737772651016712, -0.00865771621465683, 0.019139079377055168, -0.0034055220894515514, -0.0018224953673779964, -0.039530765265226364, -0.014607594348490238, 0.0545620359480381, 0.010702411644160748, 0.0717669427394867, 0.04354647174477577, 0.04793059080839157, 0.032051973044872284, -0.0002643654588609934, -0.03374667465686798, -0.011540551669895649, 0.00803141389042139, 0.008266277611255646, 0.01150371041148901, 0.07825101912021637, -0.033599309623241425, 0.01996801048517227, 0.03890446200966835, 0.016154929995536804, -0.020962726324796677, 0.024167923256754875, 0.028423098847270012, -0.007211693562567234, 0.03151777386665344, 0.003958142362535, -0.00757089676335454, -0.045756950974464417, 0.005084105767309666, 0.0178496316075325, -0.04977266117930412, 0.01177081000059843, -0.048520054668188095, -0.021810077130794525, 0.014893114566802979, -0.07416163384914398, 0.08915606141090393, -0.032051973044872284, -0.040672846138477325, -0.030136222019791603, -0.07519318908452988, 0.05651462450623512, -0.002749285427853465, 0.019931169226765633, -0.0014483254635706544, -0.01071162149310112, -0.07618790864944458, 0.023081103339791298, 0.030338849872350693, 0.02361530251801014, 0.002903558546677232, 0.037983428686857224, 0.05397257208824158, -0.04907267540693283, -0.000684443162754178, 0.07460372895002365, -0.00895705260336399, -0.027409961447119713, 0.013732612133026123, 0.006405788939446211, -0.0032282229512929916, -0.014708907343447208, -0.0353676937520504, 0.03809395432472229, -0.04520433396100998, -0.11435554176568985, -0.0072623505257070065, -0.006253818515688181, 0.05688304081559181, 0.02674681693315506, 0.01748121902346611, 0.014082605019211769, -0.03291774168610573, -0.006286054849624634, -0.06963014602661133, 0.010564256459474564, -0.007202483247965574, -0.11089245229959488, -0.012139223515987396, 0.025715259835124016, 0.049293722957372665, -0.0104445219039917, -0.08731399476528168, -0.005033448804169893, 0.008160358294844627, 0.003541374346241355, -0.11067140847444534, -0.016781233251094818, 0.019341707229614258, 0.026765238493680954, 0.016320716589689255, -0.04509380832314491, 0.0013493143487721682, 0.05308838188648224, 0.06388289481401443, 0.0565883070230484, -0.0006119117606431246, 0.057546183466911316, 0.051651567220687866, 0.0006671737646684051, -0.00082720338832587, -0.014276022091507912, 0.011697127483785152, 0.04516749083995819, -0.07604053616523743, -0.00931625533849001, 0.026433667168021202, 0.001390760880894959, 0.022307435050606728, 0.020539050921797752, 0.019139079377055168, 0.041520196944475174, 0.06023560091853142, -0.01906539686024189, 0.022417958825826645, 0.005503176245838404, 0.009836639277637005, -0.01842988282442093, 0.036196622997522354, 0.0012836906826123595, -0.04082021117210388, 0.0002160111762350425, 0.09040866792201996, -0.015316789969801903, -0.0007437347085215151, 0.05419361963868141, 0.011908965185284615, -0.02435212954878807, 0.04866741970181465, -0.05183577537536621, 0.004817006178200245, 0.006018954794853926, -0.00882810726761818, -0.016550974920392036, -0.0043334634974598885, 0.059130363166332245, 0.040672846138477325, 0.014690486714243889, 0.00677880784496665, 0.022086387500166893, -0.004087086766958237, -0.011052403599023819, -0.018310150131583214, 0.045351698994636536, -0.00772286718711257, -0.007331428118050098, 0.01680886372923851, 0.022657427936792374, -0.014966797083616257, 0.052093666046857834, -0.0040272194892168045, 0.030946731567382812, 0.02670997567474842, -0.02125745639204979, -0.021146932616829872, 0.017425956204533577, -0.0333414189517498, 0.04166756197810173, 0.039493922144174576, -0.003709463169798255, -0.02593630738556385, 0.005341995041817427, 0.03172039985656738, 0.03393087908625603, -0.029178347438573837, -0.005226865876466036, -0.07729314267635345, 0.00880508217960596, 0.0023647539783269167, -0.028975719586014748, 0.045830633491277695, 0.0013792478712275624, 0.007768918760120869, -0.03313879296183586, 0.006240003276616335, -0.03512822464108467, -0.008643900975584984, -0.029583601281046867, 0.01337340846657753, 0.0026963260024785995, 0.06428814679384232, -0.011457658372819424, -0.0037785405293107033, 0.002160975243896246, 0.0180246289819479, -0.024849487468600273, 0.01866014301776886, 0.03527558967471123, -0.021146932616829872, -0.03024674579501152, -0.009072181768715382, 0.019857486709952354, 0.00867153238505125, 0.011476079933345318, 0.011116876266896725, 0.07994572073221207, 0.011927385814487934, -0.0223995391279459, 0.017711477354168892, 0.00818338431417942, -0.004593655467033386, -0.04767270386219025, 0.06207766756415367, 0.01963643729686737, 0.0478200688958168, -0.030707262456417084, 0.010085318237543106, 0.05032527819275856, 0.003497625468298793, 0.02028116211295128, -0.019083818420767784, -0.00549857085570693, 0.0045844451524317265, 0.05504097044467926, -0.006838675122708082, 0.0023083407431840897, 0.01099714171141386, -0.06454604119062424, 0.0639934167265892, 0.0062031615525484085, 0.054783083498477936, -0.07965099066495895, 0.07257745414972305, -0.010591886937618256, 0.06288817524909973, -0.004213728941977024, 0.006580785382539034, 0.022307435050606728, 0.029012560844421387, -0.00773207750171423, -0.04807795584201813, -0.02923360839486122, 0.06557759642601013, -0.00803141389042139, 0.017297012731432915, 0.04089389368891716, 0.0431043766438961, 0.00787944346666336, -0.03849920630455017, 0.0016187166329473257, -0.0020539050456136465, 0.02687576226890087, -0.04833584651350975, 0.06557759642601013, -0.005563043523579836, -0.011605024337768555, -0.03523874655365944, 0.026636293157935143, 0.06937225908041, -0.008832712657749653, -0.007672210223972797, 0.03041253238916397, -0.06012507900595665, -0.052056822925806046, -0.026157356798648834, 0.012664212845265865, -0.016044406220316887, 0.05581463873386383, 0.03522032871842384, 0.050877898931503296, 0.031812503933906555, -0.05703040584921837, 0.022454800084233284, -0.0400833860039711, -0.0024752779863774776, -0.019618017598986626, -0.00149667973164469, -0.01091424934566021, -0.04199913516640663, 0.01754569076001644, -0.05773039162158966, 0.02162587083876133, -0.003004872240126133, 0.006811044178903103, -0.0031223041005432606, -0.013852346688508987, -0.01991274766623974, 0.020667996257543564, 0.03684134781360626, 0.018918031826615334, 0.014487859793007374, -0.054451510310173035, 0.03779922053217888, -0.017131226137280464, 0.04907267540693283, 0.061451368033885956, -0.03328615799546242, -0.023799510672688484, 0.01384313590824604, -0.06001455336809158, 0.00912744365632534, 0.007105774711817503, -0.0016900968039408326, 0.01943381130695343, 0.001609506318345666, 0.06830385327339172, -0.009132049046456814, 0.015924671664834023, 0.020096953958272934, -0.039899177849292755, 0.036565035581588745, -0.055188339203596115, 0.06852490454912186, 0.02300742082297802, -0.019452231004834175, -0.034207191318273544, 0.012903681956231594, 0.01148528978228569, -0.0005405316478572786, -0.01926802471280098, -0.028975719586014748, 0.03291774168610573, 0.004830821417272091, 0.01714964769780636, 0.0002820665540639311, -0.07928258180618286, 0.0013642811682075262, 0.02519948035478592, -0.012028699740767479, -0.008740609511733055, -0.022178491577506065, 0.042957011610269547, 0.07379321753978729, 0.011614234186708927, -0.008160358294844627, -0.005434098653495312, -0.029362553730607033, 0.004708784632384777, -0.03098357282578945, 0.023725828155875206, -0.045830633491277695, 0.02398371696472168, -0.014662856236100197, 0.02044694684445858, -0.03190460801124573, -0.026083674281835556, 0.0012618161272257566, 0.0022887687664479017, 0.02724417671561241, -0.06447235494852066, -0.04056232422590256, 0.03487033396959305, -0.04362015426158905, -0.006764992140233517, -0.10625044256448746, -0.015620730817317963, -0.014681276865303516, 0.011512921191751957, -0.057583026587963104, -0.01231421995908022, -0.009560329839587212, 0.06878279149532318, 0.02365214377641678, -0.013262884691357613, -0.013216833584010601, 0.03625188395380974, 0.0208890438079834, -0.014607594348490238, 0.015482575632631779, -0.005903825629502535, 0.005926851648837328, -0.029804648831486702, 0.04391488432884216, 0.05732513591647148, 0.03024674579501152, 0.018466725945472717, -0.002703233854845166, -0.044283296912908554, 0.006548549514263868, -0.008851133286952972, -0.01630229502916336, 0.03230985999107361, -0.008298513479530811, 0.026212617754936218, -0.0029150715563446283, -0.02768627181649208, 0.023891612887382507, -0.055593591183423996, 0.016090458258986473, 0.061451368033885956, 0.005521596875041723, -0.08326144516468048, 0.038351841270923615, 0.04409909248352051, -0.018374621868133545, -0.020796939730644226, -0.02707839012145996, -0.023394254967570305, 0.006428814958781004, -0.003608149476349354, 0.020907463505864143, -0.00298875430598855, -0.06244608387351036, 0.05588832125067711, 0.010665569454431534, -0.019010134041309357, 0.03905182704329491, 0.025623155757784843, 0.0010200447868555784, -0.03779922053217888, 0.01724174991250038, -0.04527801647782326, 0.0003635204629972577, 0.013695770874619484, 0.008648506365716457, -0.031075675040483475, 0.012470795772969723, 0.0065163131803274155, -0.043399106711149216, 0.021846918389201164, -0.12069225311279297, -0.04955160990357399, -0.03614136204123497, -0.030817786231637, 0.0020665694028139114, 0.002276104409247637, -0.0016451963456347585, -0.03606767952442169, -0.04586747661232948, 0.0030831601470708847, 0.00039143930189311504, -0.06793544441461563, -0.024499496445059776, -0.010785304009914398, -0.013401039876043797, 0.03297300636768341, -0.03759659454226494, 0.014929955825209618, 0.02182849869132042, 0.03763343393802643, 0.07559844106435776, 0.008022203110158443, -0.05003054812550545, -0.026323141530156136, -0.017702266573905945, -0.04881478473544121, -0.014137866906821728, -0.05843037739396095, 0.00895705260336399, 0.0015104952035471797, -0.03916235268115997, -0.025788942351937294, -0.02600998990237713, 0.013345777988433838, 0.03890446200966835, 0.00037848728243261576, -0.04059916362166405, -0.028220470994710922, -0.06417762488126755, -0.04870425909757614, 0.019562754780054092, 0.03512822464108467, 0.01680886372923851, 0.06211451068520546, 0.044946443289518356, 0.012848420068621635, 0.04634641483426094, -0.010499783791601658, 0.024407392367720604, 0.013916818425059319, -0.004559116438031197, -0.019820645451545715, -0.04082021117210388, 0.020557470619678497, 0.04325174167752266, 0.030596738681197166, 0.07965099066495895, 0.0447990782558918, 0.02435212954878807, 0.0030209904070943594, -0.09085076302289963, 0.0037992638535797596, 0.0000803745788289234, -0.014487859793007374, -0.03722818195819855, -0.010149790905416012, -0.09158758819103241, 0.039530765265226364, -0.017389114946126938, 0.04925687983632088, -0.03540453314781189, 0.008330749347805977, -0.03463086485862732 ]
718,136
pytorch_optimizer.optimizer.fp16
multiply_grads
Multiply grads by a constant c.
def multiply_grads(self, c: float): r"""Multiply grads by a constant c.""" if self.needs_sync: self.sync_fp16_grads_to_fp32(c) else: for p32 in self.fp32_params: p32.grad.mul_(c)
(self, c: float)
[ -0.04782526195049286, -0.020207857713103294, 0.00009327023144578561, 0.11075323820114136, -0.036870475858449936, -0.0089650209993124, -0.03928123787045479, 0.002716538729146123, -0.031251274049282074, -0.004037139937281609, -0.019959690049290657, -0.013259191066026688, 0.023859452456235886, 0.06282161921262741, -0.016733523458242416, -0.012824899516999722, -0.06388518959283829, -0.02531300112605095, 0.03531057387590408, -0.04094750061631203, -0.03779223933815956, -0.0011278288438916206, 0.026128405705094337, 0.031109465286135674, -0.05892185866832733, 0.012009494006633759, 0.027457870543003082, 0.045095428824424744, -0.03119809553027153, -0.0089650209993124, 0.034477442502975464, 0.008552887476980686, -0.05537661910057068, 0.006514375098049641, -0.012186756357550621, -0.03352022543549538, -0.0091555779799819, -0.00745386304333806, -0.11784371733665466, -0.039529405534267426, 0.016706934198737144, 0.034636978060007095, -0.009970982559025288, -0.011486571282148361, 0.032119859009981155, 0.03828857094049454, 0.012753994204103947, 0.0010718805715441704, -0.010538220405578613, -0.019498810172080994, 0.021891845390200615, -0.0695575699210167, -0.03892671689391136, 0.0028184643015265465, 0.0352928452193737, 0.05842552334070206, 0.02125370316207409, 0.009829172864556313, -0.038678549230098724, -0.04754164442420006, 0.01377325039356947, -0.05452576279640198, -0.0011377999326214194, -0.020473750308156013, 0.043748240917921066, -0.021714583039283752, 0.004291953984647989, -0.015510416589677334, 0.009191029705107212, 0.006470059510320425, -0.05342673882842064, 0.01971152424812317, 0.005340015050023794, -0.08310038596391678, -0.02013695240020752, -0.02086372673511505, 0.03543465584516525, 0.015014084056019783, -0.03999028727412224, -0.02758195251226425, 0.01008620299398899, -0.02811373956501484, 0.017256446182727814, 0.01791231520473957, 0.03408746421337128, -0.021874120458960533, -0.012195619754493237, 0.0009383802535012364, -0.06423971801996231, -0.01348963100463152, 0.014863410964608192, -0.07281919568777084, -0.03499149903655052, 0.031942594796419144, 0.016538536176085472, 0.046371717005968094, -0.02770603634417057, -0.011229542084038258, -0.0029802159406244755, 0.06700500100851059, 0.06962847709655762, -0.045272693037986755, -0.022157737985253334, -0.03424699977040291, 0.07118838280439377, -0.06675683706998825, 0.0013726719189435244, 0.016565125435590744, 0.019906511530280113, 0.009022630751132965, 0.011796779930591583, -0.04080568999052048, 0.04583992809057236, 0.003882035845890641, -0.031144917011260986, 0.03543465584516525, -0.01328578032553196, 0.010724345222115517, 0.057574667036533356, 0.08700014650821686, -0.011247267946600914, 0.0005387100391089916, 0.022015929222106934, 0.023398572579026222, 0.04225923866033554, 0.06257345527410507, 0.014916589483618736, 0.032811179757118225, 0.0034167233388870955, 0.02098781056702137, -0.013799839653074741, 0.011929726228117943, 0.04924335703253746, -0.005007648840546608, 0.005495119374245405, 0.03105628676712513, -0.05941819027066231, 0.006376997102051973, 0.06668592989444733, -0.004653125070035458, -0.019676072522997856, 0.03369748964905739, 0.02027876302599907, 0.04250740632414818, 0.0019443415803834796, -0.018417512997984886, 0.006926509086042643, 0.03750861808657646, -0.1029537171125412, 0.04034481197595596, -0.018949298188090324, 0.07023116946220398, 0.03020542860031128, 0.012895803898572922, -0.02995726279914379, 0.018647952005267143, -0.016565125435590744, 0.03694138303399086, -0.0011366920080035925, 0.030985381454229355, -0.006204166915267706, 0.006979687605053186, 0.0011931941844522953, 0.016184011474251747, -0.018125029280781746, -0.04367733374238014, 0.01764642260968685, -0.026784274727106094, -0.04403185844421387, 0.004116907715797424, 0.03430017828941345, -0.08168228715658188, 0.06533873826265335, 0.0032505402341485023, 0.016822155565023422, -0.003733578836545348, -0.05466757342219353, -0.05335583537817001, 0.03247437998652458, -0.01747802458703518, 0.045662667602300644, 0.009217618964612484, 0.04906609654426575, -0.00973167922347784, 0.03942304849624634, 0.045946285128593445, -0.028149191290140152, -0.050165120512247086, 0.03711864352226257, -0.05856733396649361, 0.08997814357280731, -0.021165071055293083, -0.018275702372193336, -0.02407216653227806, 0.015856077894568443, -0.014136637561023235, 0.03570054844021797, -0.04683259502053261, 0.03534602373838425, 0.05750376358628273, -0.04810888320207596, -0.05285950005054474, -0.0009516748832538724, 0.024143071845173836, 0.039954833686351776, -0.01610424369573593, 0.05831916630268097, 0.0032372456043958664, 0.018399786204099655, -0.020243309438228607, -0.024816667661070824, 0.06551600247621536, 0.039529405534267426, 0.018860667943954468, -0.01364030409604311, 0.021076440811157227, -0.042436499148607254, 0.029354572296142578, -0.016866469755768776, -0.020633285865187645, -0.05335583537817001, 0.000207174860406667, 0.007768502924591303, -0.027174251154065132, 0.018107304349541664, -0.023965809494256973, -0.008060985244810581, 0.0674658790230751, -0.029886357486248016, -0.0058496431447565556, 0.044705454260110855, -0.00028361903969198465, -0.046513523906469345, 0.00887638982385397, 0.035168763250112534, -0.04754164442420006, 0.0056324973702430725, 0.04757709801197052, 0.029443202540278435, 0.03417609632015228, -0.013764386996626854, -0.008158478885889053, -0.002273384016007185, 0.047789812088012695, 0.03050677478313446, 0.002078395802527666, -0.026908358559012413, -0.02756422758102417, 0.043003737926483154, 0.07934243232011795, -0.026802001520991325, -0.022352727130055428, -0.008411077782511711, 0.020757369697093964, -0.03313025087118149, 0.015989024192094803, 0.03162352368235588, 0.05683016777038574, 0.013853018172085285, -0.02894686907529831, -0.01397710107266903, 0.059524547308683395, 0.026784274727106094, -0.006762541830539703, 0.022051380947232246, -0.0014856763882562518, 0.011238404549658298, 0.010174833238124847, -0.010024161078035831, 0.005778738297522068, 0.0036405164282768965, 0.07402457296848297, 0.00882764346897602, 0.009386017918586731, 0.001444684574380517, -0.016192875802516937, 0.04041571542620659, 0.11678014695644379, 0.02614613063633442, -0.058141905814409256, 0.0010824055643752217, -0.044847261160612106, -0.04073478654026985, 0.023150404915213585, -0.049456071108579636, 0.017602108418941498, 0.0008791082655079663, 0.019215190783143044, 0.019002476707100868, -0.022157737985253334, 0.01581176184117794, -0.019622894003987312, 0.05339128524065018, 0.022459084168076515, 0.02728060819208622, -0.033910203725099564, 0.018293429166078568, 0.013365548104047775, 0.019941965118050575, 0.0358600839972496, 0.025809334591031075, -0.048463404178619385, 0.028468262404203415, 0.04984604939818382, 0.004101397469639778, -0.037012286484241486, 0.05537661910057068, -0.027457870543003082, -0.02141323871910572, 0.06711135804653168, -0.03665776178240776, -0.009855762124061584, -0.08196590840816498, 0.01406573224812746, -0.002949194982647896, -0.03022315539419651, 0.0008846477139741182, 0.018949298188090324, 0.03442426398396492, -0.00810530036687851, 0.010954786092042923, 0.009979845024645329, 0.017805958166718483, 0.1015356183052063, -0.08863095194101334, 0.03149944171309471, 0.024586226791143417, -0.0017759427428245544, -0.02293769083917141, -0.07530085742473602, -0.043287359178066254, -0.04254285991191864, -0.026536107063293457, 0.022618619725108147, -0.0050652590580284595, 0.03511558473110199, -0.007498178631067276, -0.042294692248106, 0.005729991011321545, -0.0551639050245285, 0.03203122690320015, 0.021200524643063545, -0.035044677555561066, 0.02642975002527237, -0.05190228670835495, 0.06927395612001419, 0.08749648183584213, -0.021147346124053, -0.02348720282316208, -0.040096644312143326, 0.015448375605046749, -0.016033340245485306, 0.0020119226537644863, 0.032368022948503494, 0.038678549230098724, 0.02823782153427601, -0.018647952005267143, -0.025153465569019318, -0.006864467635750771, 0.00535330967977643, 0.051973190158605576, 0.04236559569835663, 0.05413578823208809, 0.018860667943954468, 0.019534261897206306, 0.03550555929541588, -0.03389247879385948, 0.019410179927945137, -0.005942705553025007, 0.009979845024645329, 0.028875965625047684, -0.003314797766506672, -0.0025946712121367455, 0.04094750061631203, -0.05271769315004349, 0.007241148967295885, -0.02543708309531212, 0.03864309564232826, 0.02238817885518074, 0.06335340440273285, -0.022707249969244003, -0.038678549230098724, 0.03220848739147186, 0.003999471664428711, 0.00887638982385397, 0.03256301209330559, 0.03456607088446617, -0.05796464532613754, -0.027351511642336845, 0.016706934198737144, 0.023575833067297935, -0.006000315770506859, 0.018949298188090324, -0.027511049062013626, -0.037721335887908936, -0.012966708280146122, 0.059382740408182144, 0.011238404549658298, -0.04254285991191864, -0.014890000224113464, -0.013268053531646729, -0.004812660627067089, -0.048321597278118134, -0.02267179824411869, -0.0377567857503891, -0.015244523994624615, -0.02198047749698162, 0.05186683312058449, 0.0012341859983280301, 0.029904084280133247, 0.00964304804801941, 0.05303676426410675, -0.01196517888456583, 0.022636346518993378, -0.008956157602369785, -0.026890631765127182, -0.024869846180081367, -0.07849157601594925, -0.025578893721103668, 0.04771890491247177, 0.053923074156045914, -0.024302607402205467, 0.02726288139820099, 0.01734507828950882, 0.029726821929216385, -0.0834549069404602, 0.01566995307803154, 0.012745130807161331, -0.05679471418261528, 0.038004953414201736, -0.03263391554355621, -0.01293125655502081, 0.03963576257228851, 0.008074279874563217, 0.03903307393193245, -0.004141281358897686, 0.0049101547338068485, 0.09969209879636765, 0.016565125435590744, -0.0834549069404602, 0.038004953414201736, -0.0366223119199276, -0.04672623798251152, -0.08416395634412766, -0.03525739535689354, -0.04644262045621872, 0.0034566072281450033, -0.028574619442224503, -0.04715166613459587, 0.012177892960608006, -0.09359429031610489, -0.003126456867903471, 0.06097809597849846, 0.004101397469639778, 0.04208197817206383, -0.009474649094045162, -0.03726045414805412, -0.061616238206624985, 0.041621096432209015, -0.008575044572353363, 0.005379898939281702, -0.04215288162231445, 0.025578893721103668, -0.02898232266306877, -0.004981059581041336, 0.06813947856426239, 0.04183381050825119, 0.010564809665083885, -0.0006098917801864445, -0.0024284881073981524, 0.048640668392181396, 0.014101184904575348, -0.026092952117323875, -0.004460352938622236, -0.026323392987251282, -0.020757369697093964, -0.05541207268834114, 0.04481181129813194, 0.01125613134354353, -0.03346704691648483, -0.011982904747128487, -0.014703875407576561, 0.035877808928489685, 0.039245788007974625, 0.04956242814660072, 0.013338958844542503, 0.012621047906577587, 0.021377786993980408, 0.0038399361073970795, -0.006031336262822151, -0.010112792253494263, -0.01167269703000784, 0.060942642390728, -0.004156791605055332, -0.033378418534994125, -0.026217035949230194, -0.010804113000631332, -0.04186926409602165, 0.04530814290046692, 0.05427759513258934, -0.010529357008635998, 0.04211742803454399, -0.08820552378892899, -0.00499878590926528, 0.033236607909202576, -0.009891214780509472, 0.003788973204791546, 0.017797095701098442, -0.010050750337541103, 0.041337478905916214, -0.022069107741117477, 0.002672223374247551, -0.0019310469506308436, 0.011654970236122608, -0.015279976651072502, -0.05122869089245796, -0.010733208619058132, -0.012124714441597462, -0.04045116901397705, -0.08388033509254456, 0.058248262852430344, 0.019055655226111412, -0.026660190895199776, 0.020615559071302414, 0.014508887194097042, 0.012009494006633759, -0.027386965230107307, -0.03511558473110199, 0.007471589371562004, 0.011513160541653633, 0.015342018567025661, 0.056156571954488754, -0.04069933295249939, 0.009979845024645329, -0.05105143040418625, -0.057007428258657455, 0.004666419699788094, -0.0038332887925207615, -0.00818950030952692, -0.021235976368188858, -0.018577048555016518, 0.027901023626327515, 0.05285950005054474, 0.05913457274436951, -0.05246952548623085, 0.0006979687605053186, -0.019481083378195763, -0.011557476595044136, -0.014677286148071289, -0.01775277964770794, -0.013755524531006813, -0.009678499773144722, -0.026092952117323875, 0.019693797454237938, 0.03408746421337128, 0.045095428824424744, 0.017389392480254173, -0.017841411754488945, -0.03316570445895195, -0.00024068843049462885, -0.0019354784162715077, -0.05246952548623085, 0.0743790939450264, 0.01245264895260334, -0.002510471735149622, -0.05917002633213997, 0.011034553870558739, 0.0017560007981956005, -0.021590501070022583, 0.013019886799156666, -0.022902239114046097, 0.0061820088885724545, 0.02393035776913166, 0.06526783108711243, -0.02797192893922329, -0.06813947856426239, 0.03483196347951889, -0.04392550140619278, 0.015864940360188484, -0.05987907201051712, -0.025153465569019318, -0.0004791610990650952, 0.020066048949956894, -0.006018041633069515, 0.06058812141418457, 0.04098295420408249, -0.0066118692047894, 0.000728435639757663, -0.01832888089120388, -0.03460152447223663, -0.02712107263505459, 0.01119408942759037, -0.050448738038539886, -0.04828614369034767, -0.040628429502248764, 0.023894906044006348, -0.0826040506362915, 0.05413578823208809, 0.01638786308467388, 0.0674658790230751, -0.0626443549990654, -0.056014761328697205, 0.0263056680560112, -0.04601719230413437, -0.033112525939941406, -0.029904084280133247, 0.038324024528265, 0.008477550931274891, 0.013294642791152, -0.08700014650821686, -0.0198710598051548, 0.025844786316156387, -0.03426472842693329, 0.010041886940598488, -0.025685250759124756, -0.04697440564632416, -0.043145548552274704, 0.06764314323663712, 0.060233596712350845, 0.024816667661070824, -0.04697440564632416, 0.006793562788516283, -0.04225923866033554, 0.029319120571017265, 0.024834392592310905, 0.09905395656824112, -0.03229711949825287, -0.027741488069295883, -0.01412777416408062, 0.044138215482234955, -0.009660773910582066, 0.022352727130055428, -0.011185226030647755, 0.025366179645061493, 0.029195036739110947, -0.055624786764383316, 0.0038133468478918076, -0.025649799033999443, 0.011584065854549408, -0.02671336941421032, -0.03190714493393898, 0.02687290497124195, -0.01099023874849081, -0.0411602146923542, -0.014367077499628067, 0.028202369809150696, 0.018860667943954468, -0.05466757342219353, 0.037969499826431274, 0.019232917577028275, -0.025561166927218437, 0.09104171395301819, -0.02798965573310852, -0.0030356100760400295, 0.04814433306455612, -0.02795420214533806, -0.016148559749126434, 0.030116798356175423, -0.01397710107266903, -0.03543465584516525, 0.004914586432278156, 0.021076440811157227, 0.06239619106054306, -0.02894686907529831, -0.06494875997304916, -0.015989024192094803, 0.020207857713103294, -0.009394881315529346, -0.01999514363706112, -0.004750619176775217, -0.060942642390728, -0.020473750308156013, -0.051547762006521225, 0.007055024150758982, -0.005880663637071848, -0.04828614369034767, 0.03871399909257889, -0.017797095701098442, -0.01677783951163292, 0.00027683324879035354, 0.02153732255101204, 0.01834660768508911, 0.019374726340174675, 0.034636978060007095, 0.050838716328144073, 0.016405589878559113, -0.056865621358156204, 0.04445728659629822, -0.0016839881427586079, 0.059099119156599045, 0.007963491603732109, -0.004790503066033125, 0.01662716642022133, -0.06072992831468582, -0.026802001520991325, 0.027245154604315758, 0.015466101467609406, 0.034459713846445084, 0.029070952907204628, 0.03921033442020416, -0.0705856904387474, -0.012691952288150787, -0.04842795431613922, 0.013418726623058319, 0.009084672667086124, 0.015129303559660912, 0.06569326668977737, -0.0013837508158758283, -0.015093851834535599, -0.005566023755818605, 0.010121654719114304, 0.01405686978250742, -0.04970423877239227, 0.027652857825160027, -0.028202369809150696, -0.009855762124061584, -0.03550555929541588, -0.049172453582286835, 0.04537905007600784, 0.04856976121664047, -0.031144917011260986, 0.05569569021463394, -0.009146714583039284, 0.026802001520991325, -0.015510416589677334, -0.0492079071700573, 0.04378369078040123, -0.0064789229072630405, -0.0015765230637043715, 0.008867527358233929, 0.024710310623049736, 0.020934632048010826, -0.003698126645758748, 0.005765443667769432, -0.0029979420360177755, 0.030276333913207054, 0.017238721251487732, -0.03694138303399086, -0.03637414425611496, -0.020190130919218063, -0.05821280926465988, -0.031162643805146217, 0.032669369131326675, -0.03426472842693329, -0.0840221419930458, 0.06005633622407913, -0.03600189462304115, -0.002712107263505459, -0.004799365997314453, 0.005517276935279369, 0.050696905702352524, 0.048888836055994034, -0.008814348839223385, -0.0528949536383152, 0.009838036261498928, -0.05718469247221947, 0.02251226268708706, -0.04654897749423981, -0.045662667602300644, -0.051973190158605576, -0.027741488069295883, 0.028220096603035927, 0.026110678911209106, 0.03107401169836521, -0.048747025430202484, -0.0003550777619238943, 0.0010048534022644162, 0.0007422842318192124 ]
718,144
pytorch_optimizer.optimizer.fp16
set_lr
Set learning rate.
def set_lr(self, lr: float): r"""Set learning rate.""" self.optimizer.set_lr(lr)
(self, lr: float)
[ -0.04733125865459442, -0.00024638063041493297, -0.008228867314755917, 0.03609183058142662, -0.048413317650556564, 0.012085876427590847, -0.021833114326000214, -0.06583093851804733, -0.05330002307891846, 0.0461793914437294, -0.028883935883641243, -0.02698161080479622, 0.048622746020555496, 0.07874581217765808, -0.011893898248672485, 0.015881801024079323, -0.019494475796818733, 0.031728699803352356, -0.01644028350710869, 0.01919778250157833, -0.013499530963599682, -0.0055586304515600204, 0.003586494829505682, 0.020698700100183487, -0.027540091425180435, 0.05110100656747818, -0.014345979318022728, 0.03345649689435959, -0.03150181472301483, 0.005279390141367912, -0.0006528336671181023, -0.027662258595228195, -0.030611736699938774, -0.011710647493600845, -0.014773566275835037, 0.018220441415905952, -0.026545297354459763, -0.017548518255352974, -0.010811842046678066, 0.048203885555267334, -0.028988651931285858, 0.022321784868836403, 0.015620013698935509, 0.004799445625394583, -0.030733903869986534, -0.03308999538421631, -0.03759274631738663, 0.01316793356090784, 0.06296872347593307, -0.015628740191459656, 0.009284745901823044, 0.005658982787281275, -0.010340623557567596, -0.022932622581720352, 0.018115725368261337, 0.004982697311788797, 0.016702070832252502, -0.00328107550740242, 0.04146720841526985, -0.007129358127713203, 0.031763602048158646, -0.07727979868650436, -0.04548129066824913, 0.005816055461764336, 0.037383317947387695, -0.025864647701382637, -0.07420815527439117, 0.07846657186746597, 0.0180808212608099, -0.000595022167544812, 0.014756113290786743, -0.008102336898446083, -0.0018641483038663864, -0.015140068717300892, -0.04342189431190491, 0.01616104133427143, -0.09808321297168732, -0.04338698834180832, -0.06513284146785736, 0.0021237547043710947, 0.025934457778930664, 0.04321246221661568, 0.024869853630661964, 0.00007628664025105536, -0.03253151476383209, -0.0750458762049675, -0.0265802014619112, -0.056511290371418, 0.0185345858335495, -0.044887904077768326, 0.001055332599207759, -0.021833114326000214, -0.0009069861262105405, 0.010672221891582012, -0.0013263921719044447, 0.016422830522060394, -0.010323171503841877, -0.02296752855181694, -0.02178075723350048, -0.035289015620946884, -0.023526009172201157, 0.03288056701421738, 0.02603917382657528, 0.01767941191792488, 0.05783768370747566, -0.0151924267411232, -0.015759633854031563, -0.019285045564174652, 0.054277367889881134, -0.017234371975064278, -0.04614448919892311, 0.030890977010130882, -0.05001894757151604, 0.04757559299468994, -0.02575993351638317, 0.05766315758228302, 0.00887024775147438, 0.013447173871099949, 0.022234521806240082, 0.057593345642089844, 0.0006931926473043859, 0.05455660820007324, -0.025271262973546982, 0.005802966188639402, 0.018953446298837662, -0.02354346215724945, 0.07057803124189377, 0.08160802721977234, 0.01540185697376728, -0.03413714841008186, 0.019005805253982544, 0.022094901651144028, -0.021274633705615997, -0.0009855225216597319, 0.022251974791288376, -0.024869853630661964, -0.011335417628288269, 0.030088160187005997, 0.01700749062001705, 0.004925976507365704, -0.04408508911728859, 0.04342189431190491, 0.07860618829727173, -0.014852102845907211, 0.03165888786315918, 0.0397917665541172, -0.07567416876554489, 0.04195588082075119, -0.02226942777633667, 0.02776697464287281, 0.01459904108196497, 0.003226536326110363, 0.017461255192756653, -0.022688288241624832, 0.024189205840229988, 0.016422830522060394, -0.012914871796965599, -0.007386783137917519, 0.011405227705836296, -0.007910358719527721, 0.011841541156172752, -0.01142268069088459, 0.0008628094219602644, -0.05092648044228554, -0.008739354088902473, -0.03850027918815613, 0.01271416712552309, 0.03136219456791878, -0.021152464672923088, 0.02628351002931595, 0.009153851307928562, -0.12928833067417145, -0.01844732277095318, 0.04387565702199936, 0.012583273462951183, 0.055917903780937195, -0.0020735785365104675, 0.0331074483692646, -0.031065501272678375, 0.0625847727060318, 0.07518549263477325, 0.009293471463024616, -0.011160892434418201, -0.074138343334198, 0.0067235869355499744, -0.021222274750471115, -0.06890258193016052, 0.011405227705836296, -0.07378929108381271, 0.04432942345738411, 0.06607527285814285, 0.005720066372305155, -0.028814125806093216, -0.0674365758895874, -0.013778772205114365, -0.0032723492477089167, 0.025725027546286583, -0.03563806414604187, 0.03481779620051384, 0.05197363346815109, 0.06345739960670471, 0.04966989904642105, 0.023962322622537613, 0.01523605827242136, 0.031117860227823257, -0.01996569335460663, -0.06314325332641602, 0.017051121219992638, 0.04932084679603577, 0.007408598903566599, 0.028604695573449135, -0.002502256305888295, 0.016702070832252502, 0.015105163678526878, 0.01968645304441452, 0.013351185247302055, -0.0938946083188057, 0.028273098170757294, 0.06230552867054939, 0.015576382167637348, 0.04802935943007469, -0.029006103053689003, -0.025131642818450928, -0.03839556500315666, 0.04687749221920967, 0.0003896822454407811, 0.03071645088493824, -0.09347574412822723, -0.03047211654484272, 0.0464935377240181, -0.04104834794998169, -0.029302796348929405, 0.0036541232839226723, -0.0057069770991802216, 0.07082236558198929, 0.033770643174648285, 0.01890108920633793, 0.0829344168305397, -0.1087641641497612, -0.01865675300359726, -0.013569341972470284, 0.036196544766426086, -0.01795865222811699, -0.03527156263589859, -0.05878011882305145, 0.07888543605804443, 0.04541148245334625, 0.008817890658974648, -0.042793601751327515, 0.018307702615857124, -0.021850567311048508, -0.057767871767282486, 0.00007056003232719377, 0.06841391324996948, -0.0185345858335495, 0.027260851114988327, 0.028517432510852814, 0.021030297502875328, -0.02588210068643093, 0.011448859237134457, 0.003950816113501787, -0.000297511083772406, -0.04384075477719307, 0.03654559701681137, 0.010532601736485958, 0.036440882831811905, 0.02284536138176918, -0.011300512589514256, 0.02616134099662304, -0.04869255796074867, 0.11176599562168121, 0.03665031120181084, -0.02886648289859295, 0.009817047975957394, 0.024346278980374336, 0.02563776634633541, -0.05022837966680527, -0.00026546933804638684, -0.03640597686171532, 0.026231151074171066, 0.10848492383956909, -0.024834949523210526, 0.017888842150568962, -0.005645893048495054, -0.04733125865459442, -0.008521197363734245, -0.020855773240327835, 0.030332496389746666, -0.03169379383325577, 0.009005504660308361, 0.025742480531334877, 0.021012844517827034, 0.06433002650737762, 0.02940751239657402, 0.09089276939630508, 0.040943633764982224, 0.027348114177584648, -0.0075831240974366665, 0.016867870464920998, 0.03293292224407196, -0.0005650256644003093, -0.008612822741270065, 0.0428285077214241, -0.006618871819227934, 0.023107148706912994, -0.0376625582575798, 0.031135311350226402, 0.030524473637342453, 0.02649294026196003, 0.01482592336833477, 0.007635481655597687, 0.03134474158287048, -0.028150929138064384, -0.014503051526844501, 0.025655217468738556, -0.06481869518756866, -0.025445787236094475, -0.040908727794885635, 0.00770092848688364, -0.026545297354459763, -0.02670237049460411, -0.0376625582575798, -0.017548518255352974, -0.06740166991949081, -0.030524473637342453, -0.07057803124189377, 0.03710407763719559, 0.05808201804757118, -0.08223631978034973, -0.03727860376238823, 0.007631118409335613, -0.07790809124708176, 0.022827908396720886, -0.007090089842677116, 0.005078685935586691, -0.009014231152832508, 0.011387775652110577, 0.030297590419650078, 0.011928804218769073, 0.04991423338651657, 0.0604555606842041, 0.016597354784607887, -0.027941498905420303, 0.0265802014619112, 0.03696445748209953, 0.0033050726633518934, 0.01795865222811699, -0.026684917509555817, 0.024538256227970123, -0.019546832889318466, -0.05525470897555351, -0.043980374932289124, -0.01993078924715519, 0.017051121219992638, 0.008137241937220097, -0.007919085212051868, -0.050507619976997375, 0.024747686460614204, 0.023473652079701424, -0.088100366294384, -0.038570091128349304, -0.007212257944047451, -0.0247651394456625, 0.04129268601536751, 0.021676041185855865, 0.018639301881194115, -0.039966292679309845, -0.017906295135617256, 0.011274334043264389, 0.014136549085378647, -0.002202291041612625, -0.07462701201438904, 0.007151173893362284, 0.028081119060516357, -0.0033028912730515003, 0.006274184212088585, 0.008582280948758125, 0.0007406417280435562, 0.04000119864940643, 0.04377094283699989, 0.022984981536865234, 0.0013983838725835085, 0.10059637576341629, 0.014092917554080486, 0.049355752766132355, 0.0030214691068977118, 0.010105014778673649, -0.010323171503841877, 0.013176660053431988, -0.03199048712849617, 0.011143440380692482, 0.035585708916187286, 0.015026628039777279, 0.016632260754704475, -0.047750119119882584, 0.029128272086381912, -0.015026628039777279, 0.017487434670329094, -0.02071615308523178, -0.039303094148635864, -0.014136549085378647, -0.019913336262106895, -0.018761469051241875, 0.01919778250157833, 0.01919778250157833, 0.04366622865200043, -0.0016089050332084298, 0.04146720841526985, -0.008913879282772541, -0.0019677726086229086, -0.005462641827762127, -0.04809917137026787, 0.007967079989612103, 0.017827758565545082, -0.00005968628829577938, 0.0022262881975620985, 0.08621549606323242, -0.01396202389150858, 0.058710306882858276, 0.06286401301622391, 0.0431426540017128, 0.027854235842823982, 0.0033225251827389, 0.02460806630551815, 0.03651069104671478, -0.003889732528477907, 0.007382419891655445, -0.023752892389893532, -0.033316876739263535, -0.009066589176654816, -0.034957416355609894, -0.013141755014657974, -0.002434627851471305, -0.020314743742346764, 0.013604247011244297, -0.010026478208601475, -0.001257672905921936, 0.013630425557494164, 0.003913729917258024, -0.03986157849431038, 0.06994973868131638, -0.10094542801380157, -0.006186921615153551, -0.044189803302288055, -0.001578363124281168, -0.008045615628361702, 0.014677576720714569, 0.02509673684835434, -0.020698700100183487, -0.0044416687451303005, -0.03916347399353981, 0.016911501064896584, 0.013211565092206001, 0.014363431371748447, 0.033404141664505005, 0.032095201313495636, -0.006828302051872015, -0.014441967941820621, 0.043037936091423035, -0.005532451905310154, 0.015087711624801159, 0.00874808058142662, 0.026231151074171066, 0.032304633408784866, -0.006391989067196846, 0.04590015113353729, 0.02907591313123703, -0.00135584338568151, -0.029494773596525192, -0.008878974243998528, -0.042060595005750656, -0.03165888786315918, 0.022409047931432724, -0.04097853973507881, -0.013874760828912258, -0.00047776298015378416, -0.005964402109384537, -0.002149933483451605, -0.004297685343772173, -0.02235669083893299, -0.022025091573596, -0.05445189028978348, 0.04781993106007576, 0.04939065873622894, 0.039966292679309845, 0.031519267708063126, -0.06604037433862686, 0.005907681304961443, -0.025079283863306046, 0.015087711624801159, -0.03815123066306114, -0.01363915205001831, 0.007412961684167385, -0.030524473637342453, -0.018726563081145287, -0.008001985028386116, 0.027941498905420303, 0.017845211550593376, 0.028569789603352547, 0.05902445316314697, 0.0052924794144928455, -0.0367550253868103, -0.0321999154984951, -0.0038482826203107834, 0.06042065471410751, 0.031397100538015366, -0.05808201804757118, 0.012644357047975063, -0.05818673223257065, 0.019302496686577797, -0.010497696697711945, 0.03338668867945671, -0.032461702823638916, 0.03375319018959999, -0.03338668867945671, -0.024555709213018417, -0.025777386501431465, 0.08579663187265396, 0.01935485564172268, -0.023857608437538147, -0.01476483978331089, -0.005109227728098631, 0.05490565672516823, -0.04987932741641998, 0.03968705236911774, 0.02603917382657528, -0.03548099100589752, -0.004843076691031456, 0.06544698774814606, 0.014921912923455238, 0.050996292382478714, 0.01649264059960842, -0.017278004437685013, 0.05455660820007324, 0.004123160149902105, 0.06555169820785522, 0.0071686264127492905, -0.06677337735891342, -0.008420845493674278, -0.030053256079554558, -0.025253809988498688, 0.030000897124409676, 0.044643569737672806, -0.04174644872546196, -0.024381183087825775, 0.008403392508625984, -0.08286461234092712, 0.06597056239843369, -0.013604247011244297, 0.0018946902127936482, 0.026423130184412003, -0.010872925631701946, -0.023037338629364967, 0.016702070832252502, -0.012906145304441452, -0.009520354680716991, 0.03822103887796402, 0.02083832025527954, 0.07274214178323746, -0.003769746283069253, -0.01844732277095318, -0.052183061838150024, 0.005091775208711624, 0.012967228889465332, 0.040664393454790115, -0.014459420926868916, -0.05364907532930374, -0.00269641587510705, -0.04966989904642105, -0.04153702035546303, 0.01424998976290226, -0.011597205884754658, 0.01084674708545208, -0.01972135901451111, -0.07337043434381485, 0.03417205065488815, -0.0028011309914290905, 0.011745552532374859, -0.02141425386071205, -0.01472120825201273, 0.016265757381916046, -0.012312759645283222, -0.03801161050796509, -0.028552338480949402, 0.004515842068940401, -0.05267173424363136, -0.007343151606619358, 0.05131043493747711, -0.038814425468444824, -0.0025764296296983957, -0.021641137078404427, 0.017330361530184746, -0.024957116693258286, -0.033404141664505005, -0.027906594797968864, 0.00009244386455975473, -0.05092648044228554, -0.028063667938113213, 0.07057803124189377, 0.05420755594968796, -0.04715673252940178, -0.017810305580496788, 0.0022110173013061285, -0.00812851544469595, -0.003117457963526249, 0.00023738166783005, -0.01148376427590847, 0.015995243564248085, 0.05246230214834213, -0.01907561533153057, -0.017478708177804947, 0.017278004437685013, 0.03239189460873604, -0.03466072306036949, -0.005946949124336243, -0.04240964725613594, 0.03216501325368881, 0.011605932377278805, 0.019040709361433983, -0.04363132268190384, -0.01874401606619358, 0.00045294768642634153, 0.005462641827762127, -0.02123972773551941, -0.08146840333938599, -0.020157670602202415, -0.003128365846350789, -0.08495891094207764, 0.0048867082223296165, -0.11092827469110489, -0.05110100656747818, -0.08454005420207977, -0.022810455411672592, -0.09745492041110992, 0.018063368275761604, -0.004264961928129196, -0.012618178501725197, 0.019302496686577797, 0.020227480679750443, -0.07658170163631439, 0.025358524173498154, 0.06583093851804733, 0.0014714663848280907, -0.04719163849949837, -0.011623384431004524, -0.014433241449296474, -0.06960068643093109, 0.018813826143741608, 0.02916317619383335, 0.006409441586583853, -0.024328825995326042, 0.026091530919075012, 0.0033574302215129137, 0.04244454950094223, -0.013054491952061653, -0.009537807665765285, 0.03010561317205429, 0.0241542998701334, 0.07022897899150848, -0.043945468962192535, -0.03349140286445618, -0.009546533226966858, 0.03815123066306114, 0.00707263732329011, 0.03206029534339905, 0.028150929138064384, -0.039233285933732986, 0.015576382167637348, -0.022199617698788643, -0.027505185455083847, -0.03815123066306114, -0.0020757601596415043, -0.01265308354049921, 0.03588239848613739, 0.07804770767688751, 0.008093610405921936, -0.0643998309969902, -0.11623384803533554, 0.025620313361287117, -0.03710407763719559, -0.05480094254016876, 0.05186891555786133, -0.007186078932136297, -0.040664393454790115, -0.035533349961042404, 0.0461793914437294, -0.032583873718976974, 0.06436492502689362, 0.043037936091423035, 0.029477322474122047, -0.06635451316833496, 0.0018052459927275777, -0.022234521806240082, 0.01890108920633793, 0.004912886768579483, 0.012792703695595264, -0.03305508941411972, -0.09103239327669144, -0.012914871796965599, -0.013874760828912258, -0.012818883173167706, 0.003407606389373541, -0.049600087106227875, 0.008272498846054077, -0.01414527464658022, 0.03420695662498474, 0.022810455411672592, -0.022688288241624832, -0.05930369347333908, -0.05420755594968796, 0.024416089057922363, 0.0017910657916218042, -0.01000902522355318, -0.022025091573596, 0.04600486904382706, -0.01041916012763977, -0.0029145723674446344, -0.006396351847797632, -0.015445488505065441, 0.02136189676821232, -0.013499530963599682, -0.020210029557347298, 0.007871090434491634, 0.01886618323624134, 0.0064181676134467125, -0.0422351211309433, 0.0001697531115496531, 0.05232268199324608, -0.0038286487106233835, -0.024834949523210526, 0.007949627004563808, 0.014991723001003265, 0.043980374932289124, -0.045620910823345184, -0.024992022663354874, 0.0029974719509482384, 0.012749073095619678, -0.009302197955548763, 0.08349289745092392, 0.03345649689435959, 0.03391026332974434, 0.030524473637342453, -0.06017632037401199, -0.01370023563504219, -0.027505185455083847, 0.023560915142297745, -0.0391983799636364, 0.007783827837556601, 0.03366592898964882, 0.029791466891765594, -0.010646042414009571, -0.023072244599461555, 0.01634429395198822, 0.03794179856777191, 0.04062948748469353, -0.029232986271381378, 0.0367550253868103, 0.027836784720420837, -0.027627354487776756, -0.023019885644316673, -0.0006446528132073581, -0.04883217811584473, 0.025951910763978958, 0.017993558198213577, 0.025812290608882904, 0.000300238054478541, 0.03199048712849617, -0.03415460139513016 ]
718,145
pytorch_optimizer.optimizer.fp16
state_dict
Return the optimizer state dict.
def state_dict(self) -> Dict: r"""Return the optimizer state dict.""" state_dict = self.optimizer.state_dict() if self.scaler is not None: state_dict['loss_scaler'] = self.scaler.loss_scale return state_dict
(self) -> Dict
[ -0.005966609809547663, -0.03962869942188263, 0.019424010068178177, -0.002462852979078889, 0.002662669401615858, 0.0005616931011900306, -0.052602823823690414, -0.02522333152592182, 0.001836684183217585, -0.007848601788282394, -0.023922203108668327, 0.0018808296881616116, 0.007314208894968033, 0.026989150792360306, -0.033494800329208374, 0.03172898292541504, -0.018977908417582512, -0.042193781584501266, -0.06167355552315712, -0.019386835396289825, 0.01029751356691122, -0.06598587334156036, 0.020446326583623886, 0.027807004749774933, -0.0290523711591959, 0.002669639652594924, -0.010604208335280418, -0.06509366631507874, 0.001304615056142211, -0.015046637505292892, -0.054721806198358536, 0.003671044949442148, 0.018420280888676643, 0.03360632434487343, 0.03745395317673683, -0.0002942063729278743, 0.017509490251541138, -0.005701737012714148, -0.03754689171910286, -0.03981457278132439, -0.061524856835603714, -0.044610168784856796, -0.032602597028017044, 0.005831850226968527, 0.03243530914187431, 0.0012616312596946955, -0.00044029304990544915, -0.050223615020513535, 0.07553988695144653, -0.06546542048454285, 0.026301411911845207, -0.06505649536848068, 0.029833048582077026, 0.058588020503520966, 0.009014971554279327, -0.05721253901720047, 0.039442822337150574, 0.0054275705479085445, 0.005376454442739487, -0.03470299392938614, -0.012370027601718903, -0.029665760695934296, -0.030762428417801857, -0.06353231519460678, 0.021245591342449188, -0.06423863768577576, -0.04795593023300171, 0.029442710801959038, -0.010409039445221424, 0.02131994254887104, 0.016171185299754143, -0.05933152139186859, 0.010483389720320702, -0.014219490811228752, -0.06449886411428452, -0.046320222318172455, -0.058885421603918076, -0.0008509621839039028, -0.003763982793316245, -0.03992610052227974, -0.02671033702790737, 0.01333658117800951, -0.017927711829543114, 0.01949836127460003, 0.011199010536074638, -0.08773332834243774, 0.021989095956087112, 0.010399744845926762, -0.04141310602426529, -0.04791875556111336, 0.015464858151972294, 0.04914553463459015, 0.012063332833349705, 0.05457310378551483, 0.02323446236550808, 0.043941013514995575, -0.046915024518966675, 0.012462965212762356, 0.036171410232782364, -0.0670267790555954, -0.052639998495578766, 0.01577155292034149, 0.0058504375629127026, 0.021468643099069595, 0.003617605660110712, -0.037230901420116425, 0.028940845280885696, -0.05959174782037735, 0.0054275705479085445, -0.04356926307082176, 0.0033689970150589943, 0.023290224373340607, -0.025539319962263107, 0.004925705958157778, 0.015622852370142937, -0.010009406134486198, -0.041524630039930344, -0.022490959614515305, -0.013689745217561722, 0.060930054634809494, -0.044238414615392685, 0.03516768291592598, -0.0018738593207672238, 0.041524630039930344, -0.03847626969218254, 0.0016856602160260081, -0.0032133262138813734, 0.04881095886230469, 0.03182191774249077, -0.00900567788630724, 0.008912739343941212, -0.020818078890442848, -0.021840395405888557, 0.024182427674531937, 0.024795817211270332, -0.03669186308979988, 0.051152992993593216, 0.071376271545887, 0.018327344208955765, 0.021394291892647743, 0.0699264407157898, 0.04710090160369873, -0.032807059586048126, -0.006779816001653671, 0.07814214378595352, 0.013150705955922604, 0.027082089334726334, 0.03622717410326004, -0.0038290394004434347, -0.024981694296002388, 0.04267705976963043, 0.024647116661071777, 0.039479997009038925, -0.010752908885478973, -0.010223163291811943, -0.0372866652905941, -0.02254672162234783, -0.06713829934597015, 0.01089231576770544, -0.010743615217506886, -0.022825535386800766, -0.024479828774929047, -0.02578095905482769, -0.10684134811162949, -0.009488954208791256, -0.004312316421419382, -0.0034456707071512938, -0.0305022019892931, 0.001625250675715506, -0.015009462833404541, -0.03847626969218254, -0.09933197498321533, -0.042528361082077026, 0.05219389498233795, -0.04055807739496231, 0.10758485645055771, 0.01696115732192993, 0.03624575957655907, -0.040335025638341904, 0.013764095492661, 0.08706417679786682, 0.010418333113193512, -0.08535411953926086, 0.016087541356682777, -0.043346211314201355, -0.03275129944086075, 0.0013673481298610568, -0.009340253658592701, -0.000876520061865449, 0.04583694785833359, 0.03589259833097458, -0.0029833049047738314, 0.002318799262866378, -0.021059716120362282, -0.029758699238300323, -0.010325394570827484, 0.011645112186670303, -0.052008021622896194, 0.047249604016542435, 0.04587412253022194, 0.0015741348033770919, -0.033234573900699615, -0.025074630975723267, 0.06011220067739487, -0.03992610052227974, -0.017370084300637245, -0.04951728507876396, -0.01873627118766308, 0.008619985543191433, 0.051376041024923325, -0.06230553239583969, -0.029405536130070686, 0.006291892379522324, 0.03070666454732418, 0.02068796567618847, -0.017723247408866882, 0.06316056102514267, 0.062119659036397934, 0.007922952063381672, 0.000027082669475930743, 0.046989377588033676, -0.009795648977160454, 0.043085988610982895, -0.03921977058053017, -0.010762202553451061, -0.03265836089849472, -0.026784688234329224, -0.020613614469766617, 0.003345762612298131, 0.01636635512113571, -0.007202683482319117, -0.043383389711380005, -0.030093275010585785, -0.0011588188353925943, 0.06509366631507874, 0.02960999868810177, -0.02747242897748947, -0.011710168793797493, 0.006110663525760174, -0.009210140444338322, 0.0223794337362051, -0.013968558982014656, 0.02191474474966526, -0.029108135029673576, -0.06208248436450958, -0.029331184923648834, 0.08148790895938873, 0.05959174782037735, -0.026227060705423355, 0.017955591902136803, 0.045204970985651016, -0.042454008013010025, -0.023606212809681892, 0.027286551892757416, -0.005501920823007822, -0.004804886877536774, -0.017723247408866882, 0.05152474343776703, 0.009149731136858463, -0.03237954527139664, 0.006198954302817583, -0.0028857202269136906, -0.08171095699071884, -0.007235211320221424, 0.026766100898385048, 0.01811358705163002, 0.04059525206685066, -0.011710168793797493, -0.05000056326389313, 0.020483501255512238, 0.14416518807411194, 0.018067117780447006, -0.06059547886252403, -0.00966553669422865, -0.00013352555106393993, -0.019572710618376732, 0.005966609809547663, -0.03940564766526222, 0.019870111718773842, 0.04985186085104942, 0.06620892137289047, 0.003289999905973673, -0.029833048582077026, -0.0010124417021870613, -0.004526073113083839, 0.011868163011968136, -0.03539073467254639, -0.017174914479255676, 0.06204530969262123, 0.013717626221477985, 0.021524405106902122, 0.04356926307082176, 0.01758384145796299, 0.01290906686335802, 0.07066994160413742, -0.04286293685436249, -0.025762371718883514, -0.015725083649158478, 0.04040937498211861, 0.050781238824129105, 0.05758428946137428, -0.007272386457771063, 0.0013208792079240084, 0.05524225905537605, -0.009684124030172825, 0.031412992626428604, 0.06327208876609802, 0.024665705859661102, 0.027844179421663284, 0.005659915041178465, -0.021896157413721085, -0.002044632565230131, 0.0012999681057408452, 0.03563237190246582, -0.0017356143798679113, -0.08327231556177139, -0.015910958871245384, -0.0401863269507885, -0.016738107427954674, 0.07992655038833618, -0.06918293237686157, 0.05717536434531212, -0.010111638344824314, -0.028829321265220642, -0.01629200577735901, -0.06546542048454285, 0.04881095886230469, -0.012304970994591713, 0.038253217935562134, -0.013076355680823326, -0.058885421603918076, -0.08409016579389572, 0.03907107189297676, 0.023847851902246475, -0.0011158350389450788, -0.004365755245089531, 0.06758440285921097, 0.06159920617938042, -0.030948303639888763, -0.00983282458037138, 0.031450167298316956, 0.006050253752619028, -0.03814169391989708, 0.03470299392938614, -0.04405254125595093, -0.036803387105464935, -0.02717502787709236, -0.03618999943137169, 0.014089377596974373, -0.047212425619363785, -0.10669264942407608, 0.023253049701452255, -0.021970506757497787, 0.09353265166282654, 0.0305022019892931, -0.0029995690565556288, -0.0055809179320931435, -0.0552050806581974, 0.0035664900206029415, -0.01807641237974167, 0.03635728731751442, 0.02697056345641613, -0.07063276320695877, 0.02250954695045948, 0.04464734345674515, 0.029238246381282806, -0.003522344399243593, -0.039145421236753464, 0.02565084584057331, -0.046097174286842346, 0.007927598431706429, -0.07256587594747543, -0.027323728427290916, 0.019182372838258743, 0.013652569614350796, 0.04501909390091896, -0.0492570586502552, -0.02663598768413067, 0.014405366964638233, 0.016449999064207077, 0.04479604214429855, 0.01764889806509018, 0.01393138337880373, 0.04263988509774208, 0.03130146861076355, 0.008522400632500648, 0.010093050077557564, -0.015845904126763344, 0.042714234441518784, -0.06606022268533707, -0.07059559226036072, 0.017128445208072662, -0.03719372674822807, 0.025074630975723267, -0.005367160774767399, 0.014925818890333176, 0.04078112915158272, 0.028178755193948746, -0.009786355309188366, -0.0007417601882480085, -0.012007569894194603, 0.0027068147901445627, 0.008155296556651592, -0.01722138375043869, -0.0034154660534113646, -0.09011253714561462, 0.033699262887239456, 0.10178553313016891, 0.03109700419008732, 0.0009886263869702816, -0.015390507876873016, -0.013252937234938145, -0.0201303381472826, 0.015232513658702374, -0.04290011152625084, -0.012165564112365246, 0.029461298137903214, -0.008206412196159363, 0.03572531044483185, 0.0027370196767151356, 0.04732395336031914, 0.06304903328418732, 0.03609706088900566, 0.026227060705423355, 0.03401525318622589, -0.007081863936036825, -0.02693338878452778, 0.0065195900388062, 0.0023792090360075235, 0.01708197593688965, -0.004005621187388897, 0.005023290868848562, 0.03256542235612869, -0.023977965116500854, 0.015585677698254585, -0.017741834744811058, 0.04204508289694786, 0.013420225121080875, -0.009396016597747803, 0.0387364961206913, 0.027955705299973488, -0.014489010907709599, 0.02336457557976246, 0.047249604016542435, 0.01797417923808098, -0.015845904126763344, -0.024795817211270332, 0.01513957604765892, 0.012630254030227661, -0.02518615685403347, 0.03375502675771713, -0.06791897863149643, 0.03269553557038307, -0.037658415734767914, -0.0015497385757043958, 0.05312327295541763, -0.026487287133932114, -0.0253534447401762, -0.04777005314826965, -0.011570761911571026, -0.02565084584057331, -0.006524236872792244, -0.032472483813762665, 0.036636099219322205, -0.007132980041205883, 0.026134124025702477, 0.00658464664593339, -0.004556278232485056, 0.0012267796555534005, 0.049368586391210556, -0.005975903477519751, 0.03427547961473465, 0.012620959430932999, -0.050558190792798996, -0.04412689059972763, -0.0035339617170393467, -0.021115479990839958, 0.021710282191634178, -0.008559576235711575, -0.01847604475915432, 0.03598553687334061, 0.0087593924254179, -0.018596863374114037, -0.006329067517071962, 0.036375872790813446, 0.002667316235601902, -0.014804999344050884, 0.03461005538702011, 0.005529801826924086, 0.03483310714364052, -0.04442429170012474, -0.023550450801849365, 0.05092994123697281, 0.011589350178837776, -0.004744477104395628, 0.03053937666118145, 0.013959265314042568, 0.007439674809575081, 0.03877367079257965, 0.013475988060235977, 0.026096947491168976, -0.011886751279234886, -0.05037231370806694, 0.059182822704315186, 0.0074861436150968075, -0.006691525224596262, -0.1044621393084526, 0.019089434295892715, -0.004749123938381672, 0.06234271079301834, 0.009786355309188366, -0.002278139116242528, 0.02068796567618847, 0.014702768065035343, -0.01583660952746868, -0.024070903658866882, -0.05594858527183533, 0.04353208839893341, -0.01095737237483263, -0.0006871592486277223, -0.005046525038778782, 0.051152992993593216, 0.021840395405888557, -0.04375514015555382, -0.0026487286668270826, 0.042528361082077026, 0.02284412272274494, -0.044201239943504333, 0.049926213920116425, 0.0030762427486479282, -0.018977908417582512, -0.05304892361164093, -0.00580861559137702, 0.10565174371004105, -0.03245389834046364, 0.007560493890196085, 0.0654282420873642, -0.02591107226908207, -0.10877446085214615, -0.03150593116879463, 0.037992991507053375, -0.0018715359037742019, 0.057993218302726746, 0.0029438063502311707, 0.06137615442276001, 0.03933129832148552, -0.043309036642313004, 0.020074576139450073, -0.04944293573498726, -0.03843909502029419, -0.0356881357729435, -0.005980550777167082, -0.00052480841986835, -0.04795593023300171, 0.03555802255868912, -0.006226835772395134, 0.06316056102514267, 0.022063445299863815, 0.014563361182808876, 0.012063332833349705, -0.024386892095208168, -0.039851751178503036, 0.035149093717336655, -0.005000056233257055, -0.01543697714805603, 0.03254683315753937, -0.025855310261249542, 0.06929446011781693, -0.019405422732234, 0.023011410608887672, 0.03615282475948334, -0.03239813446998596, 0.010697145946323872, -0.007788191549479961, -0.02981446124613285, -0.011124660260975361, 0.023847851902246475, 0.020911015570163727, -0.003701249836012721, -0.016217654570937157, 0.07710123807191849, -0.0022200527600944042, -0.0016426765359938145, 0.00562738673761487, -0.033197399228811264, 0.04501909390091896, -0.08505672216415405, 0.05159909278154373, 0.031078416854143143, -0.003289999905973673, -0.026766100898385048, -0.01416372787207365, 0.008764038793742657, -0.011431355029344559, -0.010799378156661987, -0.0001370833342662081, -0.01356892567127943, 0.00395915238186717, 0.019312484189867973, 0.024479828774929047, -0.04141310602426529, -0.01329011283814907, 0.03563237190246582, 0.0055623301304876804, -0.001331334700807929, -0.029628586024045944, 0.047844406217336655, 0.05602293461561203, -0.033104460686445236, -0.02247237227857113, -0.0351119190454483, -0.05624598637223244, -0.003791864262893796, -0.06304903328418732, 0.015158163383603096, -0.05453592911362648, 0.03245389834046364, -0.01201686356216669, 0.005594858434051275, -0.029591411352157593, -0.01771395467221737, 0.013262230902910233, -0.012583784759044647, 0.018494632095098495, -0.01821581833064556, -0.02756536565721035, 0.05449875444173813, -0.03645022585988045, -0.0175187848508358, -0.07401569932699203, -0.02234225906431675, -0.009112556464970112, 0.04531649500131607, -0.07777038961648941, 0.015957428142428398, 0.042491182684898376, 0.04286293685436249, 0.04509344324469566, 0.003313234308734536, 0.008438756689429283, 0.0684022530913353, 0.025799546390771866, 0.018318049609661102, 0.0022107590921223164, -0.01936824806034565, 0.00738855917006731, -0.01864333264529705, 0.02769547887146473, 0.04743547737598419, -0.003466581692919135, 0.0019063876243308187, -0.038253217935562134, -0.02161734364926815, -0.033067286014556885, -0.0159946046769619, -0.011310536414384842, 0.010706440545618534, 0.017741834744811058, 0.011078191921114922, -0.03750971704721451, -0.07104168832302094, 0.026152711361646652, -0.05524225905537605, 0.008169236592948437, 0.05427570268511772, 0.01576225832104683, -0.1104845181107521, 0.03899672254920006, 0.031189942732453346, -0.00777425104752183, 0.03321598842740059, -0.01535333227366209, -0.022305084392428398, 0.013011299073696136, -0.036078471690416336, 0.056208811700344086, 0.01589237153530121, -0.035613782703876495, 0.03163604438304901, -0.019944462925195694, -0.010576327331364155, 0.058588020503520966, -0.012686016038060188, 0.016552230343222618, 0.044870395213365555, -0.03202638402581215, -0.05494485795497894, 0.005000056233257055, 0.03654316067695618, 0.024702880531549454, -0.030985478311777115, -0.012370027601718903, 0.0058550843968987465, -0.002816016785800457, 0.0193310733884573, -0.05691513791680336, -0.021208416670560837, -0.03704502806067467, 0.017825478687882423, -0.019851524382829666, -0.006073488388210535, 0.00002287142342538573, -0.01916378363966942, -0.03464723005890846, 0.03520485758781433, 0.02187757007777691, -0.007277033757418394, -0.05925717204809189, 0.017602428793907166, -0.022788360714912415, 0.02819734252989292, 0.0068913414143025875, -0.006770522333681583, 0.03020480088889599, 0.01672881282866001, 0.05342067405581474, -0.017732542008161545, -0.017100563272833824, -0.03236095979809761, 0.00935419462621212, -0.043680790811777115, 0.029591411352157593, -0.030334914103150368, 0.014897936955094337, -0.03565095737576485, 0.009140437468886375, -0.0038313628174364567, -0.016673050820827484, 0.02531627006828785, 0.02161734364926815, -0.018959321081638336, -0.023178700357675552, -0.050260789692401886, -0.06052112579345703, -0.03210073336958885, 0.015288276597857475, 0.06799332797527313, 0.011161835864186287, 0.02072514034807682, 0.05606010928750038, 0.05282587185502052, 0.05851367115974426, -0.014200903475284576, 0.006259364075958729, 0.012528021819889545, 0.017472315579652786, -0.02687762677669525, -0.04119005426764488, 0.0327884741127491, -0.008777979761362076, 0.04676632583141327, 0.043978191912174225, 0.024517005309462547, -0.016673050820827484, 0.016533643007278442, -0.0953170582652092, 0.009544717147946358, -0.010901609435677528, 0.0022978882770985365, -0.014210197143256664, -0.013894208706915379, -0.08899728208780289, 0.03265836089849472, 0.021598756313323975, 0.011226892471313477, -0.014080083929002285, 0.03565095737576485, -0.03154310584068298 ]
718,146
pytorch_optimizer.optimizer.fp16
step
Perform a single optimization step.
def step(self, closure: CLOSURE = None): r"""Perform a single optimization step.""" self.sync_fp16_grads_to_fp32() self.optimizer.step(closure) # copy FP32 params back into FP16 model for p, p32 in zip(self.fp16_params, self.fp32_params): if not p.requires_grad: continue p.data.copy_(p32)
(self, closure: Optional[Callable[[], float]] = None)
[ -0.017332807183265686, -0.001926401280798018, -0.03560720011591911, 0.058839309960603714, -0.06537274271249771, 0.016641031950712204, -0.0014063690323382616, -0.03376246616244316, -0.002548518357798457, -0.016429657116532326, -0.06126052141189575, -0.022847792133688927, -0.00009870705252978951, 0.013960404321551323, -0.029515735805034637, 0.02357799932360649, -0.02990005351603031, 0.04761718213558197, -0.011491152457892895, 0.021810129284858704, -0.01824556663632393, -0.030534181743860245, -0.0017462515970692039, 0.0476556122303009, -0.018533805385231972, -0.0009680046350695193, 0.057225167751312256, 0.0027719042263925076, 0.020042259246110916, 0.00309136975556612, 0.04000765457749367, -0.0039801085367798805, -0.022905441001057625, 0.0670253112912178, 0.037913113832473755, -0.026979226619005203, -0.006836082320660353, -0.0011121244169771671, -0.04485008120536804, 0.0014592129737138748, -0.042928483337163925, -0.017544183880090714, -0.012653718702495098, 0.036856237798929214, -0.00657186284661293, -0.00535645242780447, -0.022252097725868225, 0.00728765781968832, 0.04269789159297943, -0.04019981622695923, -0.006240387447178364, -0.04089159145951271, -0.0014964438742026687, -0.009516710415482521, 0.02905455231666565, 0.04677167907357216, 0.0528823584318161, -0.0362413264811039, -0.02603764459490776, -0.01918714866042137, 0.022290529683232307, -0.05976167693734169, -0.04035354405641556, -0.0018507384229451418, 0.03904685750603676, -0.035299744457006454, -0.025557244196534157, 0.011788999661803246, 0.04665638133883476, 0.031072229146957397, -0.024019965901970863, 0.03145654872059822, 0.041468068957328796, -0.02398153394460678, -0.06141424924135208, -0.03280166536569595, -0.026979226619005203, -0.036913882941007614, 0.011058792471885681, -0.058839309960603714, -0.019792452454566956, -0.02734432928264141, -0.03843194618821144, -0.014373548328876495, -0.10699453949928284, -0.003446865128353238, -0.010905064642429352, -0.0426594614982605, -0.009646418504416943, -0.01713103987276554, 0.038758616894483566, 0.0026397942565381527, -0.0633358508348465, 0.042082980275154114, 0.049000732600688934, 0.034953854978084564, -0.028766311705112457, -0.04877014085650444, -0.059646379202604294, 0.017851639539003372, 0.007412561681121588, -0.025960780680179596, 0.01071290485560894, 0.014267859980463982, 0.06398919224739075, -0.04119904711842537, 0.027978457510471344, -0.00932935532182455, -0.02534586936235428, -0.02142580971121788, 0.044734787195920944, 0.0021762088872492313, -0.02599921263754368, -0.01312450971454382, -0.03560720011591911, 0.010837809182703495, -0.021156786009669304, 0.011222128756344318, 0.0132494131103158, 0.06667942553758621, -0.0037495167925953865, -0.009204450994729996, -0.04431203380227089, -0.010876241140067577, 0.016275929287075996, 0.048501115292310715, 0.07963099330663681, 0.03904685750603676, -0.045426562428474426, -0.012307831086218357, -0.017428888007998466, 0.018533805385231972, 0.015113363042473793, 0.023558782413601875, -0.025422733277082443, -0.005942539777606726, -0.059992268681526184, -0.0335703045129776, -0.010895457118749619, -0.04089159145951271, -0.029823189601302147, 0.00882973987609148, 0.006884122267365456, 0.03943117707967758, 0.06990770995616913, 0.0010328586213290691, -0.018543414771556854, 0.008406988345086575, -0.012134887278079987, -0.0033435793593525887, 0.04154493287205696, 0.0913911685347557, 0.037817034870386124, 0.02227131277322769, -0.055226705968379974, 0.01899498887360096, -0.00860875565558672, 0.0020717221777886152, -0.04235200583934784, 0.01992696337401867, -0.06810140609741211, -0.03441580757498741, 0.02382780611515045, -0.01961950957775116, 0.001357128145173192, -0.024673309177160263, -0.03391619399189949, 0.012461558915674686, -0.005015369039028883, 0.03485777601599693, 0.0373750664293766, -0.07286696881055832, 0.0827055498957634, 0.03958490490913391, 0.025614893063902855, 0.09569554775953293, 0.012538422830402851, -0.054073747247457504, 0.030380453914403915, -0.019004598259925842, 0.019379308447241783, 0.006860102526843548, -0.004294769838452339, -0.023693295195698738, 0.02438507042825222, 0.03923901915550232, -0.02021520398557186, -0.05745575949549675, 0.05645652860403061, -0.024961549788713455, 0.05445806682109833, 0.02899690344929695, 0.0066343145444989204, -0.030783988535404205, 0.008748072199523449, -0.039969224482774734, 0.0682167038321495, -0.043120644986629486, 0.08186004310846329, 0.012605678290128708, 0.0025389103684574366, -0.08278241008520126, 0.02678706683218479, 0.02267484925687313, -0.044427331537008286, 0.040968455374240875, 0.0006695565534755588, 0.07156028598546982, 0.02794002555310726, 0.012077239342033863, 0.003478091210126877, -0.018946949392557144, 0.023770159110426903, 0.029131416231393814, 0.03051496483385563, -0.061990730464458466, -0.03189851716160774, -0.026172155514359474, 0.02232896164059639, -0.01231743860989809, -0.03451188653707504, -0.03908529132604599, -0.049000732600688934, -0.04016138240695, 0.0477709099650383, -0.041929252445697784, -0.045388128608465195, -0.04223670810461044, -0.037413500249385834, -0.04304378107190132, -0.03257107362151146, -0.03086085245013237, -0.019946180284023285, 0.013873932883143425, 0.06810140609741211, 0.014863555319607258, -0.028689447790384293, 0.006807258352637291, 0.019129501655697823, -0.013883540406823158, -0.016333578154444695, -0.06587235629558563, -0.03602994978427887, 0.00993465818464756, -0.03568406403064728, 0.02709452249109745, -0.04166023060679436, 0.005798419937491417, 0.04631049558520317, 0.024558013305068016, 0.0017642665188759565, -0.01269215065985918, -0.04285161942243576, 0.030822420492768288, -0.041967686265707016, 0.027267465367913246, 0.10030738264322281, 0.0013475201558321714, 0.03677937388420105, 0.0006635515601374209, -0.025576461106538773, 0.0045637935400009155, 0.02058030664920807, 0.004160257987678051, -0.03201381117105484, 0.008089925162494183, -0.01722712069749832, -0.0554957315325737, 0.04346653074026108, 0.022444257512688637, 0.08685620129108429, 0.07686389237642288, -0.043274372816085815, 0.035357389599084854, 0.02303995192050934, 0.004419673699885607, 0.009737694635987282, 0.03973863273859024, 0.01582435332238674, -0.04104531928896904, 0.06037658825516701, -0.04169866070151329, -0.04108374938368797, -0.019264012575149536, -0.10545726120471954, 0.021694833412766457, 0.035395823419094086, -0.0029448478017002344, 0.07279010862112045, -0.03136046975851059, 0.019388917833566666, 0.057532623410224915, 0.10953104496002197, -0.013287845067679882, 0.04730972647666931, -0.005769595969468355, -0.0009746101568453014, 0.011923511512577534, 0.0033099513966590166, 0.03627975657582283, 0.033743247389793396, -0.046387359499931335, -0.04000765457749367, 0.027286682277917862, 0.029592599719762802, -0.01462335605174303, 0.06468096375465393, -0.0039128526113927364, -0.024865468963980675, -0.003984912298619747, -0.01156801637262106, 0.00513066491112113, -0.01790928654372692, 0.08201377093791962, -0.00865679606795311, -0.052767064422369, -0.004006530623883009, 0.029919270426034927, -0.013230198062956333, 0.020637955516576767, -0.017198296263813972, 0.007057066075503826, 0.04362025856971741, 0.030072998255491257, -0.04335123673081398, 0.006048227660357952, 0.03086085245013237, -0.03130282089114189, -0.03718290850520134, -0.029227495193481445, -0.026229804381728172, -0.0038576065562665462, 0.05149880796670914, 0.03912372142076492, -0.02574940398335457, 0.042275141924619675, 0.03902764245867729, -0.007580701261758804, 0.006764022633433342, 0.004808797501027584, 0.049807801842689514, 0.03935431316494942, 0.0020981440320611, -0.02388545498251915, 0.005759987980127335, 0.021195217967033386, -0.0008509072940796614, -0.03843194618821144, 0.0439661480486393, -0.04577244818210602, -0.02609529159963131, -0.02603764459490776, 0.008700031787157059, 0.025614893063902855, 0.03020750917494297, 0.03174478933215141, 0.002326333662495017, -0.002625382272526622, -0.013941188342869282, -0.05511141195893288, 0.023193679749965668, -0.0004614836070686579, -0.025518812239170074, 0.045887745916843414, 0.09123744070529938, 0.016333578154444695, -0.03608759865164757, 0.017083000391721725, -0.021252866834402084, 0.01681397669017315, 0.0019083863589912653, 0.02403918281197548, 0.034953854978084564, -0.003365197218954563, -0.03558798134326935, -0.005716752260923386, -0.015305522829294205, 0.031936947256326675, 0.01921597309410572, 0.02488468587398529, 0.05449650064110756, -0.0161029864102602, -0.010962712578475475, 0.037855468690395355, 0.017707519233226776, 0.00910837110131979, 0.03066869266331196, -0.027421193197369576, -0.019350485876202583, 0.002793522085994482, 0.02719060145318508, 0.022963088005781174, -0.01474825944751501, -0.008488656021654606, 0.06598765403032303, 0.023962318897247314, 0.0050249770283699036, 0.07394306361675262, -0.04189082235097885, 0.01824556663632393, -0.032186754047870636, -0.04688697308301926, -0.036798588931560516, 0.029092984274029732, -0.007407757919281721, -0.061145227402448654, -0.02899690344929695, 0.07501915842294693, 0.0399307906627655, 0.02603764459490776, 0.01750575192272663, -0.003266715444624424, -0.008839347399771214, 0.062144458293914795, 0.002548518357798457, 0.03451188653707504, 0.022713281214237213, -0.024827037006616592, -0.0027887180913239717, 0.012740190140902996, 0.07325129210948944, 0.04650265350937843, -0.03061104565858841, 0.0031225956045091152, -0.02940043993294239, -0.06352800875902176, 0.043082211166620255, 0.027863161638379097, -0.028823960572481155, 0.02061873860657215, -0.051152922213077545, -0.028843175619840622, 0.0006113081471994519, 0.006783238612115383, -0.013134118169546127, 0.02920828014612198, -0.020887762308120728, 0.014873163774609566, 0.05384315550327301, -0.0239431019872427, -0.019830884411931038, 0.004554185550659895, -0.05315138027071953, -0.09092998504638672, -0.08862406760454178, -0.014479235745966434, 0.020887762308120728, -0.014363939873874187, -0.10192152112722397, 0.017774775624275208, -0.03777860477566719, 0.0090459194034338, 0.003927264362573624, -0.03307069092988968, 0.02961181476712227, -0.0004353619005996734, -0.04000765457749367, -0.06418135017156601, -0.011750567704439163, -0.028016889467835426, 0.012576854787766933, -0.02899690344929695, -0.00828208401799202, -0.007739233318716288, 0.031994596123695374, 0.01759222336113453, 0.034800127148628235, 0.09046880155801773, -0.03818213939666748, -0.017150256782770157, 0.003660643007606268, 0.0003530935209710151, 0.0193985253572464, -0.008243652991950512, 0.0464642234146595, -0.008728856220841408, -0.028920039534568787, 0.019225580617785454, 0.013758637011051178, -0.011058792471885681, -0.020349714905023575, -0.01440237183123827, 0.02388545498251915, 0.03677937388420105, 0.03001534938812256, 0.03808606043457985, 0.057724785059690475, -0.009026703424751759, 0.0335126556456089, 0.06764022260904312, -0.010097993537783623, -0.05272863060235977, 0.047386590391397476, -0.005822439678013325, 0.0020885360427200794, 0.007965020835399628, -0.004825611133128405, 0.015017283149063587, 0.07405836135149002, 0.05073016881942749, -0.02357799932360649, 0.024116046726703644, -0.07540348172187805, -0.013883540406823158, -0.0026734222192317247, 0.01445041224360466, -0.052152153104543686, 0.005558220203965902, -0.07667173445224762, 0.0323789156973362, 0.005092232953757048, 0.0007968624122440815, -0.04411987587809563, 0.011347032152116299, 0.052613336592912674, -0.00915641151368618, 0.016400832682847977, -0.009084351360797882, -0.008810523897409439, -0.037759386003017426, -0.022751713171601295, -0.02974632754921913, 0.005423708353191614, 0.00711471401154995, -0.012279006652534008, 0.025249788537621498, -0.024615662172436714, -0.021752482280135155, 0.04054570198059082, -0.037663307040929794, -0.01738084852695465, 0.011126048862934113, 0.014719435945153236, 0.07375090569257736, 0.016179850324988365, -0.07544191181659698, 0.021617969498038292, -0.06518058478832245, -0.03435815870761871, -0.047194428741931915, -0.04335123673081398, -0.06118365749716759, -0.018725965172052383, 0.039219800382852554, 0.00551978824660182, -0.008680815808475018, 0.004669481422752142, -0.00431398581713438, -0.07993844896554947, -0.001633357722312212, -0.057878512889146805, 0.002812738064676523, 0.02344348654150963, 0.058378126472234726, 0.025076845660805702, 0.0100403456017375, 0.02734432928264141, 0.04100688546895981, 0.012509598396718502, -0.003137007588520646, -0.016247104853391647, -0.06587235629558563, -0.0005236352444626391, -0.042774755507707596, 0.0062451912090182304, -0.021464241668581963, 0.021656401455402374, -0.00044406912638805807, -0.008709640242159367, 0.01427746843546629, 0.0018795623909682035, 0.05161410570144653, -0.004772767424583435, -0.002356358803808689, -0.00579361617565155, -0.034992288798093796, 0.03602994978427887, -0.025076845660805702, -0.026364315301179886, -0.03562641516327858, -0.01055917702615261, 0.009069939143955708, 0.0017042165854945779, 0.03722133859992027, -0.006350879091769457, 0.04903916269540787, -0.008411792106926441, 0.002303514862433076, -0.0010112406453117728, -0.04903916269540787, -0.016141418367624283, -0.012836270034313202, -0.0787854939699173, -0.0554957315325737, -0.034800127148628235, -0.016890840604901314, -0.06806297600269318, -0.01927362196147442, 0.042774755507707596, 0.04838582128286362, -0.0724826529622078, -0.029938485473394394, 0.04058413580060005, -0.0031562235672026873, -0.0010905064409598708, 0.04189082235097885, -0.03581857308745384, 0.04019981622695923, 0.001943215262144804, -0.032494209706783295, -0.02413526177406311, -0.0010418660240247846, 0.024308206513524055, -0.06494998931884766, -0.06056874617934227, 0.0032378914766013622, -0.04054570198059082, 0.00791217666119337, 0.007249225862324238, 0.04069942981004715, -0.01074172928929329, -0.022405825555324554, -0.03597230091691017, 0.007571093272417784, -0.0031610275618731976, 0.01967715658247471, 0.04715599864721298, -0.03376246616244316, -0.01996539533138275, 0.005279588513076305, -0.06629510968923569, -0.01314372569322586, 0.011318208649754524, 0.037413500249385834, 0.05845499038696289, -0.03485777601599693, -0.015161402523517609, 0.05626437067985535, -0.006470979191362858, -0.052305880934000015, -0.011327816173434258, 0.06925436854362488, 0.03376246616244316, -0.024615662172436714, 0.021310513839125633, -0.0017282365588471293, -0.031091444194316864, 0.0029136219527572393, 0.008690424263477325, -0.007864137180149555, -0.027132954448461533, 0.09077625721693039, -0.10415057837963104, 0.07755567133426666, 0.08301300555467606, -0.006125091575086117, 0.00259655830450356, -0.026633339002728462, 0.03353187441825867, -0.012461558915674686, -0.009963481687009335, 0.02603764459490776, 0.04481165111064911, -0.03353187441825867, -0.03307069092988968, 0.023923886939883232, -0.0478862039744854, -0.03280166536569595, -0.01877400651574135, -0.060837771743535995, -0.08624128997325897, -0.03186008334159851, -0.051114488393068314, 0.02940043993294239, 0.027574921026825905, -0.009877010248601437, 0.05860871821641922, -0.005490964278578758, -0.05745575949549675, 0.021348945796489716, 0.02895847149193287, -0.0028511700220406055, 0.05142194405198097, 0.01936970092356205, -0.013460788875818253, 0.019379308447241783, -0.034550320357084274, 0.03541503846645355, 0.014969242736697197, 0.07229049503803253, -0.010511137545108795, -0.028843175619840622, 0.0465795174241066, -0.03591465577483177, 0.0180053673684597, -0.05034584924578667, 0.01943695731461048, -0.04404301196336746, 0.05857028812170029, -0.006024207454174757, -0.024365853518247604, -0.04892386868596077, -0.02659490704536438, -0.01317255012691021, 0.055726323276758194, 0.01843772642314434, 0.005524592474102974, -0.011740959249436855, 0.01038623321801424, -0.010770552791655064, 0.03187929838895798, -0.025307437404990196, -0.0593004934489727, 0.07321285456418991, -0.036606427282094955, 0.013768244534730911, -0.08078394830226898, -0.03247499465942383, 0.023693295195698738, 0.012576854787766933, -0.04273632541298866, -0.03166792541742325, -0.008541500195860863, 0.006600686814635992, -0.013566477224230766, 0.024346638470888138, 0.04365869238972664, 0.022136801853775978, 0.025057628750801086, 0.035799358040094376, 0.010242113843560219, -0.028843175619840622, -0.0008713242714293301, -0.03247499465942383, -0.030880069360136986, 0.017400063574314117, 0.05468865856528282, 0.0582243986427784, -0.016621816903352737, -0.02880474366247654, -0.025518812239170074, -0.00893542729318142, 0.02874709665775299, -0.024923117831349373, 0.006855298299342394, 0.06433507800102234, 0.0010298560373485088, -0.052459608763456345, -0.015536114573478699, -0.05076860263943672, 0.042275141924619675, 0.08962330222129822, 0.0278055127710104, 0.019235190004110336, 0.02970789559185505, -0.03026515804231167, 0.014162172563374043, -0.0058512636460363865, -0.029919270426034927, -0.036664076149463654, -0.03898920863866806, -0.013086077757179737, 0.030995365232229233, 0.04519597068428993, -0.010905064642429352, 0.005750379990786314, 0.04565715417265892, 0.029919270426034927 ]
718,147
pytorch_optimizer.optimizer.fp16
sync_fp16_grads_to_fp32
Sync fp16 to fp32 gradients.
def sync_fp16_grads_to_fp32(self, multiply_grads: float = 1.0): r"""Sync fp16 to fp32 gradients.""" if self.needs_sync: if self.scaler is not None: # correct for dynamic loss scaler multiply_grads /= self.scaler.loss_scale # copy FP16 grads to FP32 for p, p32 in zip(self.fp16_params, self.fp32_params): if not p.requires_grad: continue if p.grad is not None: p32.grad.copy_(p.grad) p32.grad.mul_(multiply_grads) else: p32.grad = torch.zeros_like(p, dtype=torch.float) self.needs_sync = False
(self, multiply_grads: float = 1.0)
[ -0.021429965272545815, -0.034592535346746445, -0.039125099778175354, 0.06918507069349289, -0.05594997853040695, 0.02210078574717045, -0.027394821867346764, 0.016380688175559044, -0.02802938036620617, 0.006268537137657404, -0.019073031842708588, -0.05221514403820038, -0.012192599475383759, -0.013652085326611996, 0.012818093411624432, 0.003909336868673563, -0.010950676165521145, -0.0010396570432931185, 0.024983497336506844, -0.027902469038963318, -0.005878736265003681, 0.005357491318136454, 0.031818605959415436, 0.03350471705198288, -0.024910975247621536, -0.022862257435917854, -0.04064803943037987, 0.023551207035779953, -0.040684301406145096, 0.012138208374381065, 0.05214262381196022, -0.0018322892719879746, 0.021792571991682053, 0.08659011870622635, -0.0056838360615074635, -0.04539816826581955, 0.0066084791906178, 0.013171632774174213, -0.10334247350692749, -0.02949793078005314, 0.03383106365799904, -0.011548974551260471, 0.047102414071559906, -0.0003181294014211744, -0.0027240714989602566, 0.05928594619035721, -0.029352888464927673, 0.03934266045689583, 0.025998791679739952, -0.02795686013996601, 0.004020384978502989, -0.072847381234169, -0.059974897652864456, 0.04184463620185852, -0.01209288276731968, 0.014848682098090649, 0.04416530951857567, 0.0028011249378323555, -0.09812096506357193, 0.006137092597782612, -0.02545488439500332, -0.06519640982151031, -0.04670354723930359, -0.004328599199652672, 0.03919762000441551, -0.012917809188365936, -0.008367114700376987, -0.017867369577288628, 0.013860583305358887, 0.03522709384560585, -0.07571195811033249, 0.023351773619651794, 0.015274743549525738, -0.025436753407120705, -0.0264339167624712, -0.03141973912715912, 0.025509273633360863, 0.0010481555946171284, 0.0009926316561177373, -0.0027331365272402763, -0.03383106365799904, -0.009509320370852947, 0.011385802179574966, 0.005153526086360216, -0.011204499751329422, 0.019272465258836746, -0.0003419253625907004, 0.0034787433687597513, -0.0204690620303154, -0.08194877207279205, -0.017803914844989777, -0.025182928889989853, -0.06461624056100845, -0.004174492321908474, 0.06403607130050659, -0.018193714320659637, -0.004557494074106216, -0.024258285760879517, -0.05145367607474327, 0.03154665231704712, -0.037819720804691315, -0.01900051161646843, 0.000493482977617532, -0.013126307167112827, 0.0685686394572258, -0.10080423951148987, -0.018257170915603638, -0.011757472530007362, -0.050039514899253845, -0.034955140203237534, 0.09420482814311981, -0.0566389299929142, 0.008879294618964195, 0.013769932091236115, 0.02320673130452633, -0.0004104803956579417, 0.013316675089299679, 0.02349681593477726, 0.06483380496501923, 0.017069639638066292, 0.039088837802410126, -0.016707032918930054, -0.03450188413262367, -0.004004520829766989, 0.01730533130466938, 0.0051671238616108894, 0.06936637312173843, 0.039088837802410126, -0.016534795984625816, 0.019054902717471123, -0.03854493051767349, 0.08557482063770294, 0.003533134236931801, 0.047755103558301926, -0.000023388742192764767, -0.024874715134501457, -0.08057086914777756, -0.02186509221792221, 0.020124588161706924, -0.0204690620303154, -0.056783970445394516, -0.008226605132222176, 0.01297220028936863, 0.056457627564668655, 0.013026591390371323, 0.001379032852128148, -0.016543861478567123, 0.03789224103093147, -0.04851657152175903, -0.013226023875176907, 0.040720563381910324, 0.08361675590276718, 0.048444051295518875, 0.006699130870401859, -0.034465622156858444, 0.06269443780183792, -0.008879294618964195, -0.0028033913113176823, -0.03149225935339928, -0.0022413532715290785, -0.01749569922685623, -0.02255404181778431, 0.039378922432661057, 0.003909336868673563, 0.01994328573346138, -0.014721769839525223, 0.0307670496404171, -0.06987401843070984, 0.03268885612487793, 0.06487006694078445, 0.051671236753463745, -0.019236205145716667, 0.06878620386123657, -0.02226395718753338, 0.046848587691783905, 0.032997071743011475, -0.010832829400897026, -0.0954376831650734, 0.05805308744311333, -0.005951257422566414, 0.011612431146204472, 0.009518385864794254, 0.050329599529504776, -0.02362372726202011, 0.0012963134795427322, 0.059322208166122437, -0.01665264368057251, -0.04993073269724846, 0.039777789264917374, -0.020614104345440865, 0.05892334133386612, 0.02434893697500229, 0.034955140203237534, -0.02010645717382431, 0.0173325277864933, -0.05333922058343887, 0.03109339438378811, -0.05624006316065788, 0.059322208166122437, 0.028246942907571793, 0.03261633589863777, -0.07281111925840378, 0.03363163024187088, 0.015048114582896233, 0.0187104269862175, 0.01011668425053358, 0.029860535636544228, 0.04855283349752426, -0.01903677172958851, 0.009400539100170135, -0.024983497336506844, -0.01740504801273346, 0.001976198283955455, 0.04467295855283737, -0.011956905946135521, -0.0241132453083992, -0.013289479538798332, 0.02259030193090439, -0.015220352448523045, -0.00873425230383873, -0.0028940425254404545, -0.02190135233104229, -0.05254149064421654, -0.007347287610173225, 0.036550603806972504, 0.015990888699889183, -0.07005532085895538, 0.004498570691794157, -0.04213472083210945, 0.0017937625525519252, 0.012790897861123085, 0.009065129794180393, -0.051344893872737885, 0.016308167949318886, 0.11697643250226974, -0.03207242861390114, 0.018202779814600945, 0.005325763486325741, 0.08064339309930801, 0.034918878227472305, 0.03147412836551666, -0.04655850678682327, 0.01577332615852356, 0.01266398560255766, 0.015238482505083084, 0.002787527395412326, -0.021629398688673973, -0.05605876073241234, 0.04510808363556862, 0.034338708966970444, -0.03499139845371246, -0.0029121728148311377, -0.002222089795395732, 0.0283194649964571, -0.02884524129331112, -0.04724745452404022, 0.005162591114640236, 0.004598286934196949, -0.032797638326883316, -0.02529171109199524, 0.005062874872237444, 0.04285993054509163, 0.006930291652679443, -0.018656035885214806, -0.0029099066741764545, -0.0010997134959325194, -0.009037934243679047, 0.019218074157834053, 0.04452791437506676, 0.01507531013339758, 0.0197801124304533, 0.002508774632588029, -0.07175956666469574, 0.04191716015338898, 0.01766793802380562, -0.030513225123286247, 0.035934172570705414, 0.028790852054953575, 0.04518060386180878, 0.00017181252769660205, 0.009690623730421066, -0.025980660691857338, -0.023097949102520943, 0.0376746766269207, -0.017930826172232628, 0.03927014023065567, 0.013951234519481659, 0.003997722174972296, 0.06088140979409218, -0.04819022864103317, 0.0014674178091809154, 0.047791361808776855, 0.09210171550512314, 0.00026954596978612244, -0.035988565534353256, 0.017377853393554688, 0.040684301406145096, -0.01507531013339758, 0.014295709319412708, 0.010896285995841026, -0.0007484397501684725, -0.01052461564540863, 0.008199409581720829, 0.0430774949491024, 0.02672400139272213, -0.0880405381321907, 0.06893124431371689, -0.020360281690955162, 0.016634512692689896, 0.0024294545873999596, -0.032471295446157455, 0.008575612679123878, -0.03571661189198494, 0.0307670496404171, 0.024693412706255913, -0.02186509221792221, -0.014322904869914055, 0.0786128044128418, 0.03129282593727112, -0.00048158501158468425, 0.00016657175729051232, 0.05319418013095856, 0.035208962857723236, 0.08898331224918365, -0.03738459572196007, -0.006200548727065325, 0.005226047243922949, -0.04053925722837448, 0.02958858199417591, 0.01661638170480728, -0.04884291812777519, -0.017704198136925697, -0.002056651283055544, 0.03256194666028023, -0.0012872483348473907, -0.02137557603418827, 0.002669680630788207, -0.05888707935810089, 0.005951257422566414, 0.03854493051767349, 0.03401236608624458, -0.010551810264587402, -0.026143833994865417, -0.02705034613609314, -0.016598252579569817, 0.0281925518065691, 0.0065812841057777405, -0.021629398688673973, -0.014721769839525223, -0.02017897740006447, -0.01561015285551548, -0.0449630431830883, -0.024947237223386765, 0.06048254296183586, 0.03319650515913963, 0.0008594875689595938, -0.028373856097459793, -0.0017484368290752172, 0.048081446439027786, -0.014721769839525223, -0.00883396901190281, -0.003204523352906108, -0.0041699595749378204, 0.020704755559563637, 0.012618659995496273, 0.014794290997087955, -0.021067360416054726, -0.011703082360327244, -0.04452791437506676, 0.014522337354719639, 0.024004463106393814, 0.010243596509099007, 0.03919762000441551, 0.010152945294976234, -0.06334712356328964, 0.003712170524522662, -0.034955140203237534, 0.07001905888319016, 0.02795686013996601, -0.04724745452404022, 0.012509878724813461, 0.02210078574717045, 0.02734043076634407, 0.05308539792895317, 0.029316628351807594, 0.004931430332362652, 0.0345381423830986, -0.03228999301791191, -0.007573915645480156, -0.0034991400316357613, 0.00987192615866661, 0.02603505179286003, 0.005525196436792612, -0.02460276149213314, -0.016471339389681816, -0.013516108505427837, 0.034592535346746445, 0.046232160180807114, 0.02186509221792221, -0.02186509221792221, -0.022825995460152626, -0.03143787011504173, -0.07767003029584885, 0.00003346307494211942, -0.03366789221763611, 0.027648644521832466, -0.007247570902109146, 0.0568927526473999, -0.009790339507162571, 0.008806773461401463, 0.007560317870229483, 0.020015805959701538, -0.01207475271075964, 0.04347636178135872, -0.003573927329853177, 0.022862257435917854, -0.046812329441308975, -0.039415184408426285, -0.011150109581649303, 0.057436659932136536, 0.04053925722837448, 0.01929059624671936, -0.013117242604494095, 0.009155781008303165, -0.024874715134501457, -0.05185253918170929, -0.03883501514792442, 0.05315791815519333, -0.048444051295518875, 0.029860535636544228, 0.020450932905077934, -0.01990702375769615, 0.06338338553905487, -0.03149225935339928, 0.03330528736114502, 0.007605643477290869, 0.05022081732749939, 0.06487006694078445, -0.022825995460152626, -0.06374599039554596, 0.02685091271996498, -0.044274091720581055, -0.05076472461223602, -0.09580028802156448, -0.04373018443584442, -0.07498674839735031, -0.040104132145643234, -0.0047093345783650875, -0.06468876451253891, 0.024784063920378685, -0.09500255435705185, 0.0322718620300293, -0.007669099606573582, -0.015537631697952747, 0.027140997350215912, 0.014948398806154728, 0.030875831842422485, -0.04742875695228577, 0.0023342708591371775, -0.023895680904388428, 0.02239087037742138, -0.05493468418717384, -0.03161917254328728, 0.0342843197286129, 0.031564779579639435, -0.007573915645480156, 0.1034875214099884, 0.00149914575740695, -0.05493468418717384, -0.021611269563436508, 0.020668495446443558, -0.006449839565902948, 0.028555158525705338, -0.029969317838549614, -0.03660499304533005, 0.014431686140596867, -0.02610757201910019, 0.038798753172159195, -0.0036804424598813057, -0.00598751800134778, -0.05109107121825218, -0.06661057472229004, 0.004566559102386236, 0.04764632135629654, 0.030422573909163475, -0.007156919687986374, 0.001893478911370039, -0.0016464540967717767, 0.046195898205041885, 0.012863419018685818, 0.04833526909351349, -0.05769048258662224, 0.04278741031885147, -0.014776160940527916, 0.012120078317821026, 0.011412997730076313, -0.08586490899324417, -0.029371019452810287, 0.04499930143356323, 0.0568927526473999, -0.026651481166481972, -0.01505718007683754, -0.0954376831650734, -0.013189763762056828, 0.05700153484940529, 0.000030311526643345132, -0.02815629169344902, 0.027594253420829773, -0.038399890065193176, 0.013561434112489223, -0.018239039927721024, 0.021756310015916824, -0.004967690911144018, 0.051344893872737885, 0.018438473343849182, 0.00539375189691782, 0.0023478686343878508, -0.02402259223163128, -0.02424015663564205, -0.04761005938053131, -0.02659709006547928, 0.0107693737372756, 0.01717841997742653, 0.013026591390371323, -0.011295150965452194, 0.041989680379629135, -0.08158616721630096, -0.01665264368057251, 0.021883223205804825, -0.03482822701334953, 0.01393310446292162, 0.028555158525705338, 0.005647575482726097, -0.017912695184350014, 0.00006834257510490716, -0.07571195811033249, 0.06055506318807602, -0.04151829332113266, -0.03343219682574272, -0.04046673700213432, -0.030948352068662643, -0.02770303562283516, -0.042678628116846085, 0.01471270527690649, 0.021992003545165062, 0.0004592054756358266, -0.020378410816192627, -0.02378690056502819, -0.030549487099051476, -0.017250942066311836, -0.059322208166122437, 0.007442471105605364, 0.0322718620300293, -0.0038730765227228403, 0.02402259223163128, 0.018239039927721024, 0.01111384853720665, 0.02108549140393734, -0.04688484966754913, -0.04898795858025551, -0.0007614708738401532, -0.027140997350215912, -0.00029971584444865584, 0.007288364227861166, -0.02734043076634407, -0.09347961843013763, -0.006128027569502592, 0.008403374813497066, -0.0027036748360842466, 0.014721769839525223, 0.004333131946623325, 0.026180094107985497, 0.07825019955635071, 0.025400493294000626, -0.0346650555729866, -0.03089396096765995, 0.03836362808942795, -0.060047417879104614, 0.05315791815519333, -0.04561573266983032, -0.03334154561161995, 0.00753765506669879, -0.017051508650183678, 0.02219143696129322, 0.04438287392258644, 0.004052112810313702, 0.0053756218403577805, 0.028428245335817337, 0.039741527289152145, -0.053556784987449646, -0.05348426476120949, 0.01111384853720665, 0.033359676599502563, -0.058451954275369644, -0.013633954338729382, 0.034393101930618286, -0.056783970445394516, 0.03036818467080593, 0.07357259094715118, 0.04148203134536743, -0.019834503531455994, -0.02190135233104229, 0.0395602248609066, -0.08869322389364243, -0.00032237867708317935, -0.026995955035090446, 0.009463994763791561, -0.05061968415975571, -0.000004975197953172028, -0.04663102701306343, 0.004466842394322157, 0.03887127339839935, 0.0340304970741272, -0.034139279276132584, 0.04884291812777519, 0.013824322260916233, -0.08717028796672821, 0.0005385253462009132, 0.014912137761712074, 0.041010644286870956, 0.010152945294976234, -0.00692575890570879, -0.00943680014461279, 0.01262772548943758, -0.03948770463466644, 0.0342843197286129, -0.018375016748905182, -0.025473013520240784, -0.03587978333234787, 0.023079819977283478, -0.02991492673754692, -0.06487006694078445, 0.057509180158376694, 0.044854260981082916, 0.007365417666733265, -0.05072846636176109, 0.007311027031391859, 0.014948398806154728, 0.033287156373262405, -0.0344112329185009, 0.01266398560255766, -0.00814955122768879, 0.005756357219070196, -0.06215052679181099, 0.00013902226055506617, -0.0075149922631680965, 0.013652085326611996, -0.05435451492667198, 0.0067263259552419186, 0.03611547499895096, -0.0307670496404171, 0.08521221578121185, -0.01887360028922558, 0.019961414858698845, 0.04525312781333923, -0.031147785484790802, -0.005475338082760572, -0.040756821632385254, 0.028174422681331635, 0.019471898674964905, -0.013389196246862411, 0.05058342218399048, 0.047102414071559906, -0.0014458881923928857, -0.03236251324415207, 0.032344382256269455, 0.03288828954100609, 0.02026962861418724, 0.004976755939424038, -0.024530241265892982, -0.018112128600478172, -0.004954093135893345, -0.044926781207323074, 0.021393705159425735, 0.025672446936368942, 0.006096299737691879, 0.04253358766436577, -0.001592063345015049, -0.01736878789961338, 0.018556319177150726, 0.004600553307682276, 0.009509320370852947, 0.03883501514792442, 0.04249732568860054, -0.04528938606381416, 0.01559202279895544, 0.004369392525404692, 0.03829110786318779, 0.01383338775485754, 0.013099112547934055, 0.07266607880592346, -0.011857189238071442, 0.025636186823248863, -0.0810059979557991, -0.039415184408426285, -0.006168820429593325, 0.041409511119127274, -0.006227743811905384, 0.03662312403321266, -0.0022719481494277716, -0.037203289568424225, -0.017169354483485222, -0.03183673322200775, -0.05214262381196022, 0.030966483056545258, 0.006631141994148493, -0.008453233167529106, -0.0021541013848036528, -0.05439077690243721, 0.003827750915661454, 0.019308725371956825, 0.025182928889989853, 0.0044079190120100975, 0.03836362808942795, -0.01853819005191326, -0.003179594175890088, -0.032634466886520386, -0.01880107820034027, 0.07520431280136108, -0.007728022988885641, -0.028790852054953575, 0.030295662581920624, -0.002758065704256296, 0.010515550151467323, 0.006535958498716354, -0.021139882504940033, 0.0005920662661083043, 0.03375854343175888, -0.03158291056752205, -0.050329599529504776, 0.07491423189640045, 0.005828878376632929, 0.003970526624470949, 0.03386732190847397, -0.032471295446157455, 0.023224862292408943, 0.11059457808732986, 0.05888707935810089, 0.023061688989400864, 0.009473060257732868, -0.054898425936698914, -0.0019116092007607222, 0.023424293845891953, 0.00923736672848463, -0.032997071743011475, 0.05754544213414192, -0.005411882419139147, -0.05370182543992996, -0.06084514781832695, 0.006535958498716354, 0.01789456605911255, 0.019689461216330528, -0.018075868487358093, -0.032706987112760544, 0.013924038968980312, -0.04572451487183571, -0.015945563092827797, -0.001969399396330118, -0.034393101930618286, -0.08550230413675308, -0.025726838037371635, 0.030676398426294327, -0.005148993339389563, 0.05279531329870224, -0.060700107365846634, 0.028954023495316505, -0.00393653241917491, 0.018583515658974648 ]
718,148
pytorch_optimizer.optimizer.fp16
update_main_grads
null
def update_main_grads(self): self.sync_fp16_grads_to_fp32()
(self)
[ -0.024092020466923714, -0.034549057483673096, -0.04051436483860016, 0.09111293405294418, -0.03554327413439751, 0.0165377426892519, -0.05191235616803169, 0.00018156120495405048, -0.01286268886178732, -0.017895914614200592, -0.043141938745975494, -0.08536067605018616, 0.01919194869697094, 0.033395055681467056, -0.01920970156788826, 0.01376813743263483, 0.007212515454739332, 0.048574626445770264, 0.010483668185770512, -0.03291570022702217, -0.021624229848384857, -0.015250585973262787, 0.00963148195296526, 0.06998581439256668, -0.03222329914569855, 0.02341737225651741, -0.012649642303586006, -0.004123339429497719, -0.0012461007572710514, -0.032471854239702225, 0.00532172666862607, -0.011735317297279835, 0.010057575069367886, 0.01762072928249836, -0.02888556942343712, -0.0652632787823677, 0.03257837891578674, 0.03650198504328728, -0.06899159401655197, 0.025103991851210594, 0.04186365753412247, -0.04853912070393562, 0.03206351399421692, 0.00007496854959754273, 0.015073047950863838, 0.04367455467581749, 0.01482449285686016, 0.010794361121952534, 0.03756721690297127, -0.02448260597884655, 0.005650173407047987, -0.08188091218471527, -0.02354164980351925, 0.0749213919043541, 0.022068077698349953, 0.03279142454266548, 0.013049105182290077, -0.010625699535012245, -0.02785584330558777, -0.05652836710214615, -0.01057243812829256, -0.05205438658595085, -0.03167292848229408, -0.010243991389870644, 0.025334792211651802, -0.02753627486526966, -0.030341388657689095, 0.02348838932812214, 0.010838746093213558, 0.018854625523090363, -0.06586690992116928, 0.023719189688563347, -0.02023942768573761, -0.03962666913866997, -0.034637827426195145, 0.00180534808896482, 0.023967742919921875, 0.025370299816131592, -0.010412652976810932, -0.032383084297180176, 0.0330754853785038, 0.029577970504760742, 0.004993279930204153, 0.0309272650629282, -0.03799331188201904, 0.006418028846383095, 0.02015065774321556, 0.0021360141690820456, -0.03327077999711037, -0.07818810641765594, -0.004567186813801527, -0.006342574954032898, -0.023186571896076202, 0.007327915634959936, 0.03802882134914398, -0.025370299816131592, -0.029400432482361794, -0.03873897343873978, -0.04136655107140541, 0.00722139235585928, -0.0245713759213686, -0.068743035197258, -0.01919194869697094, -0.020008627325296402, 0.04697677865624428, -0.05539211630821228, 0.001421420369297266, -0.015916356816887856, -0.05635082721710205, 0.018428532406687737, 0.008202294819056988, -0.046124592423439026, -0.02331084944307804, 0.004833494778722525, -0.023062296211719513, -0.007811708841472864, -0.0002642277395352721, 0.025139499455690384, 0.07048291712999344, 0.05006595328450203, 0.003280030097812414, 0.019795579835772514, -0.027074672281742096, -0.03969768434762955, 0.009462820366024971, -0.0017099209362640977, 0.046231113374233246, 0.07343006134033203, -0.011131685227155685, -0.006435783114284277, -0.03183271363377571, 0.03176169842481613, -0.059084925800561905, 0.03714112564921379, 0.01936948671936989, -0.04221873730421066, -0.03183271363377571, -0.05322614312171936, 0.012276810593903065, 0.005809958558529615, -0.03685706481337547, 0.03201025351881981, 0.04271584376692772, 0.03742518648505211, 0.037957802414894104, 0.02885006181895733, 0.012853812426328659, 0.030643204227089882, -0.053687743842601776, -0.004107804968953133, 0.055960241705179214, 0.07634170353412628, 0.008322132751345634, 0.039981745183467865, -0.00826887134462595, 0.007066045887768269, 0.010963023640215397, -0.032667145133018494, -0.007887163199484348, 0.0001468856498831883, -0.07037639617919922, -0.01599624939262867, 0.03838389739394188, -0.03627118468284607, -0.009675866924226284, -0.018659332767128944, -0.008508549071848392, -0.04889419674873352, 0.01007532887160778, 0.03604038432240486, 0.03318201005458832, -0.06966624408960342, 0.01223242562264204, 0.011522270739078522, 0.0405498705804348, 0.03650198504328728, -0.04687025398015976, -0.057060983031988144, 0.05400731414556503, 0.020985091105103493, 0.061321914196014404, -0.005659050308167934, 0.018907885998487473, -0.0054282499477267265, 0.011406870558857918, 0.046195607632398605, -0.016093896701931953, -0.05940449610352516, 0.030394649133086205, -0.07854318618774414, 0.048787672072649, 0.019795579835772514, -0.009076673537492752, -0.02851273864507675, 0.04598255828022957, -0.0028539367485791445, -0.006071828305721283, -0.035667553544044495, 0.03517044335603714, -0.02462463639676571, 0.006045197602361441, -0.07932435721158981, 0.01821548491716385, -0.00025562819791957736, 0.01269402727484703, -0.01548138726502657, 0.03611139953136444, 0.008379832841455936, 0.024251805618405342, 0.0401947945356369, 0.024234050884842873, -0.014034445397555828, 0.023843465372920036, 0.012649642303586006, -0.01336867455393076, -0.04605357348918915, -0.021712999790906906, 0.03859694302082062, -0.002129356376826763, -0.007287969347089529, -0.06288425624370575, 0.0031047104857861996, -0.03969768434762955, -0.07101553678512573, -0.016200419515371323, 0.0062759979628026485, -0.029435940086841583, 0.03295120969414711, -0.014788985252380371, -0.03738968074321747, 0.03588059917092323, -0.0028961023781448603, -0.07747794687747955, 0.009205388836562634, 0.07112205773591995, -0.023843465372920036, -0.007585347164422274, 0.017558591440320015, 0.04481080174446106, 0.018304254859685898, 0.02347063459455967, -0.002253633690997958, 0.0332530252635479, 0.01660875789821148, -0.020701028406620026, 0.0023945551365613937, -0.01218804158270359, -0.06345237791538239, 0.029276154935359955, 0.023683682084083557, -0.03536573797464371, -0.10190729051828384, -0.020931828767061234, 0.02959572523832321, -0.025956178084015846, -0.06643503159284592, 0.004485074896365404, 0.023861220106482506, -0.0014147625770419836, -0.008916888386011124, 0.018819117918610573, 0.04470428079366684, -0.020008627325296402, 0.0036417655646800995, 0.017824899405241013, 0.028139906004071236, 0.0010413762647658587, 0.021784014999866486, -0.022760478779673576, -0.011628794483840466, 0.12910623848438263, 0.02874353900551796, -0.05851680040359497, 0.04008826985955238, 0.000140782751259394, 0.011087300255894661, 0.02881455421447754, 0.050563063472509384, 0.03490413725376129, -0.040940456092357635, 0.05404282361268997, -0.033501580357551575, -0.03852592781186104, 0.06789085268974304, -0.02125139907002449, -0.001763182575814426, 0.017230143770575523, -0.007003907114267349, 0.012427718378603458, -0.09324339777231216, 0.005077610723674297, 0.06671909242868423, 0.08301716297864914, 0.004669271409511566, 0.02020392008125782, -0.011344731785356998, 0.017274528741836548, -0.008952395990490913, 0.01007532887160778, 0.048503611236810684, -0.006249367259442806, -0.017816022038459778, -0.009542712941765785, 0.04658619314432144, 0.03154865279793739, -0.06437558680772781, 0.05088263005018234, -0.0018275404581800103, -0.005490388721227646, -0.01912093348801136, -0.03916506841778755, 0.028122153133153915, 0.025814147666096687, 0.03073197230696678, -0.012720657512545586, -0.05869434028863907, 0.01114056259393692, 0.0508471243083477, 0.035454507917165756, 0.03284468501806259, -0.0465506836771965, 0.025956178084015846, 0.041970182210206985, 0.06100234389305115, -0.012134780175983906, -0.012711781077086926, 0.04442021623253822, -0.030092833563685417, -0.003295564791187644, -0.015223955735564232, -0.08472153544425964, -0.029418185353279114, -0.00008148755296133459, 0.0427868589758873, -0.0027829213067889214, 0.03937811404466629, -0.003624011529609561, -0.044349201023578644, 0.00004410730616655201, -0.012418841943144798, -0.00220037205144763, 0.043070923537015915, -0.04999493807554245, 0.00037421859451569617, -0.010989653877913952, 0.018854625523090363, 0.05003044381737709, -0.0016677554231137037, -0.023825712502002716, -0.035596538335084915, -0.02334635704755783, -0.04044334962964058, -0.026382271200418472, 0.08756215870380402, 0.038881007581949234, 0.062316134572029114, -0.017159128561615944, -0.045130372047424316, 0.026080455631017685, -0.017159128561615944, -0.021855032071471214, 0.009374050423502922, -0.0031956990715116262, 0.007700747344642878, -0.03616466000676155, -0.012205795384943485, -0.03222329914569855, 0.004456224851310253, -0.009951052255928516, 0.003428718773648143, -0.0033443879801779985, 0.01060794573277235, 0.023843465372920036, 0.05880086496472359, -0.03966217860579491, 0.03335954621434212, -0.06792636215686798, 0.05027899891138077, 0.019671304151415825, -0.016759665682911873, 0.00019654104835353792, 0.0168306827545166, 0.02753627486526966, 0.04488181695342064, 0.03327077999711037, 0.00025562819791957736, 0.03618241474032402, -0.008637264370918274, 0.010989653877913952, -0.006990591995418072, 0.004691463895142078, 0.02769605815410614, 0.010394899174571037, 0.004869002848863602, 0.021997062489390373, 0.021002843976020813, 0.018765855580568314, 0.049426812678575516, 0.008961273357272148, -0.03424724191427231, -0.027926860377192497, -0.03593385964632034, -0.04779345542192459, -0.0011972775682806969, 0.012543119490146637, -0.007989248260855675, 0.017398806288838387, 0.007958178408443928, 0.010909761302173138, -0.0024700090289115906, -0.014220860786736012, 0.04548545181751251, -0.02032819762825966, 0.037673741579055786, 0.019458256661891937, -0.010323883965611458, 0.0021537679713219404, -0.03582733869552612, 0.03605813905596733, 0.04892970249056816, 0.0913969948887825, 0.08173888176679611, -0.02462463639676571, 0.060256682336330414, 0.012143656611442566, -0.041082486510276794, -0.0016744132153689861, 0.044207170605659485, -0.0486101359128952, 0.041082486510276794, -0.01762072928249836, 0.015863094478845596, 0.031122557818889618, -0.005996374413371086, -0.008495233952999115, 0.026879379525780678, 0.04186365753412247, 0.037709251046180725, -0.0012150314869359136, -0.006413590628653765, 0.06181902438402176, -0.015339355915784836, -0.033483825623989105, -0.09146801382303238, -0.007469946518540382, -0.04921376705169678, -0.060008127242326736, -0.0013148970901966095, -0.05730953812599182, 0.029950803145766258, -0.09494777023792267, 0.0054238117299973965, -0.03337730094790459, 0.015561278909444809, -0.016688650473952293, 0.0059076049365103245, -0.01596074178814888, -0.04186365753412247, -0.01383915264159441, -0.03435376659035683, 0.012578627094626427, -0.03959115967154503, -0.06306179612874985, 0.060043636709451675, 0.04268033802509308, 0.010386021807789803, 0.08429544419050217, -0.018499547615647316, -0.06331034749746323, -0.03611139953136444, 0.06046972796320915, -0.010394899174571037, 0.023683682084083557, -0.037851281464099884, 0.018623825162649155, -0.026293503120541573, -0.05624430626630783, 0.030589941889047623, -0.04566298797726631, -0.024021005257964134, -0.0446687713265419, -0.038703467696905136, 0.012773919850587845, 0.04126002639532089, -0.014007814228534698, -0.040869440883398056, 0.01386578381061554, 0.0012461007572710514, -0.007385615725070238, -0.02771381288766861, -0.009276404045522213, -0.07470834255218506, 0.016280312091112137, 0.024003250524401665, 0.02132241427898407, 0.024713406339287758, -0.04111799597740173, -0.031584158539772034, 0.05564067140221596, 0.017727253958582878, 0.031335603445768356, -0.030483419075608253, -0.08820129930973053, -0.0530841127038002, 0.01763848401606083, 0.04346150904893875, -0.0491427518427372, -0.012685149908065796, 0.0020228330977261066, 0.044100649654865265, 0.00237458199262619, -0.024127528071403503, -0.026826119050383568, -0.00855737179517746, 0.06739374250173569, 0.003865908132866025, 0.02018616534769535, -0.0336613655090332, -0.027465257793664932, -0.04548545181751251, -0.07364311069250107, 0.0386679582297802, 0.043141938745975494, 0.01922745630145073, 0.027216704562306404, 0.039804209023714066, -0.06448210775852203, -0.0009359625983051956, 0.0644465982913971, -0.0021626451052725315, 0.007363423239439726, 0.03405195102095604, 0.02327534183859825, 0.02538805454969406, 0.032400839030742645, -0.04271584376692772, 0.03710561618208885, -0.07314600050449371, -0.03859694302082062, -0.06568937003612518, -0.04772244021296501, -0.07371412962675095, 0.01819773018360138, -0.015703311190009117, 0.029063107445836067, -0.009205388836562634, -0.015277217142283916, -0.030163848772644997, -0.013794767670333385, -0.02771381288766861, -0.053581222891807556, -0.0030181603506207466, 0.07041190564632416, -0.0021204794757068157, 0.00956934317946434, 0.0009010095964185894, 0.022565186023712158, -0.015330478549003601, -0.03517044335603714, -0.03588059917092323, -0.029382677748799324, -0.010350514203310013, 0.029205139726400375, -0.012782796286046505, -0.046337638050317764, -0.06245816498994827, -0.02751852013170719, 0.06238714978098869, 0.005747819785028696, 0.007967055775225163, -0.014469415880739689, 0.051592785865068436, 0.03621792420744896, -0.030447911471128464, -0.016777420416474342, -0.030075078830122948, 0.04378107935190201, -0.031087050214409828, 0.07570256292819977, -0.06419804692268372, -0.020789798349142075, 0.025246022269129753, 0.010812114924192429, -0.02022167481482029, 0.04687025398015976, 0.015241709537804127, 0.029222892597317696, 0.046373143792152405, 0.008916888386011124, -0.03534798324108124, -0.05876535549759865, -0.0020838622003793716, 0.01498427800834179, -0.05226743593811989, -0.04999493807554245, -0.006537867709994316, -0.06995030492544174, 0.020683275535702705, 0.05635082721710205, 0.04381658509373665, -0.02886781468987465, -0.007341231219470501, 0.003817085176706314, -0.052551496773958206, 0.002521051559597254, -0.036537494510412216, 0.027216704562306404, -0.02991529367864132, -0.027092427015304565, 0.006524552591145039, 0.018606070429086685, 0.039804209023714066, 0.024908699095249176, -0.05091813951730728, 0.03376788645982742, -0.03873897343873978, -0.06089582294225693, -0.010945269837975502, 0.053652238100767136, 0.08976363390684128, 0.010794361121952534, 0.04665720835328102, -0.022565186023712158, -0.030376896262168884, 0.006311505567282438, 0.030518926680088043, 0.031530898064374924, -0.004997718147933483, -0.0024988590739667416, 0.05713199824094772, -0.00639583682641387, -0.06078929826617241, 0.04005276411771774, 0.01545475609600544, 0.04062088578939438, -0.027021411806344986, -0.03646647930145264, 0.019547026604413986, 0.04797099530696869, 0.003692807862535119, 0.023062296211719513, 0.006537867709994316, 0.05134423077106476, -0.06277773529291153, 0.025086238980293274, 0.017239021137356758, -0.03126458823680878, -0.04853912070393562, -0.011167192831635475, 0.03657300025224686, -0.035525523126125336, 0.014602569863200188, -0.04889419674873352, 0.01666202023625374, 0.02125139907002449, 0.008109086193144321, -0.046124592423439026, -0.01742543652653694, 0.010865377262234688, 0.001484668580815196, -0.054717469960451126, 0.0637364462018013, 0.04797099530696869, -0.008708280511200428, -0.02773156762123108, 0.03696358576416969, -0.011761948466300964, 0.037886787205934525, -0.004365236032754183, -0.03841940313577652, 0.01124708540737629, -0.014762355014681816, -0.031406622380018234, 0.014744600281119347, -0.008002563379704952, -0.009995436295866966, -0.010554684326052666, 0.03421173617243767, 0.009107742458581924, 0.021641984581947327, -0.002802894450724125, 0.03511718288064003, 0.0021981527097523212, 0.01441615354269743, -0.0022303317673504353, 0.03533022850751877, -0.04598255828022957, 0.053652238100767136, 0.006773106753826141, 0.038845498114824295, 0.02025718241930008, -0.03080298937857151, 0.03199249878525734, -0.06668359041213989, -0.05659938231110573, -0.009471696801483631, 0.013821398839354515, -0.03385665640234947, 0.020772043615579605, -0.016191542148590088, -0.025334792211651802, -0.015596787445247173, -0.029400432482361794, -0.03493964299559593, 0.007252461742609739, 0.04782896488904953, -0.017398806288838387, 0.021020598709583282, -0.08230700343847275, 0.006781983654946089, 0.046408653259277344, 0.0025143937673419714, -0.04367455467581749, 0.06884956359863281, -0.011948363855481148, 0.015596787445247173, -0.0403723306953907, 0.0053705498576164246, 0.031477637588977814, -0.007336792536079884, -0.026275748386979103, 0.09935073554515839, 0.04463326558470726, 0.0002056953962892294, -0.0004568851145450026, 0.0074877007864415646, 0.031158067286014557, 0.03446028754115105, -0.03959115967154503, -0.01233007200062275, 0.045165881514549255, -0.04768693074584007, -0.016191542148590088, 0.035614293068647385, -0.0007861641934141517, 0.020505735650658607, 0.08443747460842133, 0.0006446879124268889, -0.040940456092357635, -0.01428299956023693, -0.048503611236810684, -0.04459775611758232, -0.048219550400972366, 0.021535461768507957, -0.026364518329501152, 0.06796187162399292, 0.016058387234807014, -0.05759359896183014, -0.04974638298153877, 0.004232082050293684, 0.06742925196886063, 0.06160597875714302, 0.016777420416474342, -0.026826119050383568, 0.027216704562306404, -0.006995030213147402, 0.04349701479077339, -0.006995030213147402, -0.011034038849174976, -0.04651517793536186, 0.028938831761479378, 0.0020361486822366714, -0.036679524928331375, 0.04566298797726631, -0.016093896701931953, 0.04683474451303482, -0.045201387256383896, -0.007501015905290842 ]
718,149
pytorch_optimizer.optimizer.fp16
zero_grad
Clear the gradients of all optimized parameters.
def zero_grad(self): r"""Clear the gradients of all optimized parameters.""" for p in self.fp16_params: p.grad = None for p32 in self.fp32_params: p32.grad.zero_() self.needs_sync = False
(self)
[ -0.03157194331288338, -0.00735979899764061, 0.01758148893713951, 0.03377760201692581, -0.06850309669971466, 0.0061475965194404125, -0.08195580542087555, -0.016232572495937347, 0.02881942316889763, 0.027051247656345367, -0.03319428861141205, 0.014847197569906712, 0.0359468087553978, -0.0033153274562209845, -0.009433303028345108, 0.04225390404462814, -0.00886821560561657, 0.04105081781744957, 0.06066479533910751, -0.04600899666547775, -0.016123199835419655, -0.053592097014188766, 0.011046534404158592, 0.0952991396188736, -0.024134671315550804, -0.04090498760342598, 0.009214559569954872, 0.007350684609264135, 0.001696399413049221, 0.012778251431882381, -0.024699758738279343, 0.008941130712628365, -0.023952385410666466, 0.050967175513505936, 0.04509756714105606, -0.033504173159599304, 0.04185287654399872, 0.026613762602210045, -0.060956452041864395, 0.019541064277291298, 0.059242963790893555, -0.029293367639183998, -0.03129851445555687, -0.020561864599585533, -0.00622051116079092, -0.007437270600348711, 0.011493135243654251, 0.040832072496414185, -0.011219705455005169, 0.004206250421702862, 0.01584065705537796, -0.01740831695497036, -0.008266671560704708, 0.0475766584277153, -0.014801626093685627, 0.015175312757492065, 0.04947243258357048, -0.034506749361753464, -0.007350684609264135, -0.051441121846437454, 0.014345911331474781, -0.03168131411075592, -0.020397808402776718, -0.03321251645684242, 0.031225599348545074, -0.01408159639686346, -0.027415821328759193, 0.028126735240221024, 0.06660731881856918, 0.043785106390714645, -0.03467080369591713, 0.011547820642590523, -0.023915927857160568, 0.023478442803025246, 0.017864031717181206, -0.07280504703521729, 0.004324736539274454, 0.016496887430548668, -0.07116447389125824, -0.08778895437717438, -0.012258736416697502, 0.0047348798252642155, -0.06168559566140175, -0.006753697991371155, -0.024863816797733307, -0.0069997841492295265, 0.0018410889897495508, 0.012167593464255333, 0.03667595237493515, -0.06296160072088242, 0.03569160774350166, 0.020434265956282616, -0.02863713726401329, -0.034743718802928925, 0.06303451210260391, 0.0316266268491745, -0.028327250853180885, -0.020379578694701195, -0.03904566913843155, 0.0014503132551908493, 0.023715414106845856, -0.03395988792181015, 0.0066215405240654945, 0.020634779706597328, 0.0546858124434948, -0.05632638558745384, 0.0035226778127253056, -0.061430394649505615, 0.03159017115831375, -0.013215738348662853, 0.01253216527402401, 0.030168339610099792, -0.0023378184996545315, -0.024244043976068497, -0.000995167880319059, 0.015466970391571522, -0.05946170538663864, 0.013115480542182922, 0.0119123924523592, 0.04265493527054787, 0.013443595729768276, 0.03363177552819252, -0.08093500137329102, -0.05833153426647186, 0.0476495698094368, -0.005978981964290142, 0.01655157282948494, 0.06697189062833786, 0.011292620562016964, -0.07287795841693878, 0.008489971980452538, 0.03751446679234505, -0.025647645816206932, 0.01903066225349903, -0.015166198834776878, -0.04232681915163994, -0.015922686085104942, -0.036457207053899765, 0.007614999543875456, 0.019869178533554077, -0.011520477943122387, -0.04177996143698692, -0.017353631556034088, 0.041123729199171066, 0.03494423255324364, 0.10003858059644699, 0.05483164265751839, 0.0005317625473253429, -0.032847944647073746, -0.007879314012825489, 0.04469653591513634, 0.049399517476558685, -0.014427940361201763, -0.029548566788434982, -0.05687324330210686, 0.014446169137954712, 0.0028072050772607327, 0.01648777164518833, -0.03425154834985733, -0.02982199564576149, -0.03140788525342941, -0.00215781107544899, 0.021436838433146477, -0.035837434232234955, -0.0036411636974662542, -0.025283074006438255, 0.011620734818279743, -0.02843662165105343, -0.0034133060835301876, 0.031790684908628464, -0.02716062031686306, -0.10105938464403152, 0.007924885489046574, 0.010855133645236492, 0.05257129296660423, 0.04775894433259964, -0.023423755541443825, -0.06059188023209572, -0.016469543799757957, 0.014920112676918507, 0.04185287654399872, -0.004010292701423168, -0.02606690302491188, -0.023277927190065384, 0.02027020789682865, 0.01717134565114975, -0.051441121846437454, -0.059097133576869965, -0.011976192705333233, -0.04600899666547775, 0.03904566913843155, 0.007200298830866814, 0.008294015191495419, -0.01429122593253851, 0.05012866109609604, -0.007678799331188202, 0.07306024432182312, -0.025465359911322594, 0.06660731881856918, -0.04728499799966812, 0.01868431828916073, -0.03377760201692581, 0.009173545055091381, -0.03344948962330818, -0.07061760872602463, 0.009889017790555954, -0.013853739015758038, 0.020525408908724785, 0.012969652190804482, 0.04068624600768089, 0.023150326684117317, -0.017207801342010498, 0.007938557304441929, 0.01167542114853859, -0.010827790945768356, 0.014181854203343391, 0.02881942316889763, 0.024462787434458733, -0.012504822574555874, 0.04276430606842041, -0.06908641010522842, -0.07707054167985916, -0.011082991026341915, -0.06194079667329788, 0.020962893962860107, 0.05184214934706688, -0.008685929700732231, -0.0041287788189947605, -0.028710050508379936, -0.06493028998374939, 0.04743082821369171, -0.010043960995972157, -0.04684751108288765, -0.002579347463324666, 0.04790477082133293, -0.004144728649407625, -0.012140250764787197, -0.016806773841381073, -0.0032674772664904594, -0.054868098348379135, 0.0010321947047486901, -0.03632960841059685, -0.016560686752200127, 0.032556287944316864, 0.0008658586884848773, 0.028801195323467255, 0.011885049752891064, -0.0008202871540561318, 0.02949388138949871, 0.0019561571534723043, 0.00483969459310174, -0.05559724196791649, -0.022749297320842743, 0.009943703189492226, 0.03337657451629639, -0.06281577050685883, 0.06201371178030968, 0.0319729708135128, -0.0018479247810319066, -0.0009661160293035209, -0.011903278529644012, -0.04371219128370285, -0.028600679710507393, 0.03262920305132866, 0.05497746914625168, 0.03005896881222725, 0.04258202016353607, 0.007710699457675219, -0.034415602684020996, 0.020671237260103226, 0.0966845154762268, -0.04983700439333916, -0.0045320866629481316, 0.009032273665070534, 0.004028521478176117, 0.07240401208400726, -0.005222495179623365, 0.002659097546711564, 0.05217026546597481, 0.05246192216873169, 0.09442416578531265, -0.08297660201787949, -0.008521872572600842, 0.03558223694562912, 0.022275354713201523, 0.04848808795213699, 0.01541228499263525, -0.018155690282583237, 0.030788112431764603, -0.005673652980476618, 0.05931587889790535, 0.07736219465732574, 0.08348700404167175, 0.0017317173769697547, 0.0577482171356678, 0.008079828694462776, 0.06124810874462128, 0.014828969724476337, 0.013917539268732071, 0.0039145927876234055, 0.03025948256254196, -0.03704052418470383, -0.024936730042099953, -0.01263242308050394, 0.06059188023209572, -0.04553505405783653, 0.022986270487308502, 0.025520045310258865, 0.04717562720179558, 0.011967078782618046, -0.045170482248067856, -0.008494529873132706, 0.01702551543712616, 0.013625881634652615, 0.023606041446328163, -0.04407676309347153, 0.023678956553339958, -0.013534738682210445, 0.03200943022966385, 0.03233754262328148, 0.00801147148013115, 0.024699758738279343, 0.026577305048704147, 0.031663086265325546, -0.06121165305376053, -0.009852560237050056, -0.0057055531069636345, 0.012112907133996487, -0.030423540621995926, -0.010736647993326187, -0.021655581891536713, -0.01850203238427639, 0.03643897920846939, -0.009497102349996567, -0.0051541379652917385, 0.005678209941834211, 0.04024875909090042, 0.0030760769732296467, -0.014828969724476337, 0.007578541990369558, 0.005833153147250414, 0.026085132732987404, -0.04086853191256523, 0.003135319799184799, -0.03259274363517761, 0.04225390404462814, 0.017071086913347244, -0.005509595386683941, 0.026577305048704147, -0.05661804601550102, 0.012969652190804482, 0.02697833441197872, 0.01381728146225214, 0.08684106916189194, 0.08195580542087555, 0.008453515358269215, -0.03933732584118843, 0.03904566913843155, 0.04575379565358162, -0.015822429209947586, 0.004037635866552591, 0.029548566788434982, -0.042873676866292953, 0.02016083523631096, 0.07058115303516388, -0.03375937417149544, 0.00854010134935379, -0.007382584735751152, -0.047357913106679916, -0.03282971680164337, -0.000799210334662348, -0.09806989133358002, -0.02231181226670742, -0.043930936604738235, -0.05654513090848923, -0.00011663458280963823, -0.014555539935827255, 0.03640252351760864, 0.053300436586141586, 0.0005346107645891607, -0.0166153721511364, -0.03696760907769203, 0.04899848625063896, -0.012924080714583397, -0.0009615588933229446, 0.01460111141204834, -0.004944508895277977, 0.004340686369687319, 0.06022730842232704, 0.006972440984100103, 0.06431051343679428, -0.012577736750245094, -0.02373364195227623, -0.003477106336504221, 0.06467508524656296, 0.06073771044611931, 0.05340981110930443, 0.05370146781206131, -0.0523160919547081, -0.03689469397068024, -0.03820715472102165, -0.0640188604593277, -0.04702979698777199, 0.024244043976068497, 0.02697833441197872, -0.028600679710507393, -0.012924080714583397, 0.024371644482016563, 0.05271712318062782, 0.05151403695344925, 0.019468149170279503, 0.015284684486687183, -0.004812351427972317, 0.03558223694562912, 0.029949596151709557, 0.005983539391309023, 0.013762596063315868, -0.0013090416323393583, 0.07626847922801971, 0.05825861915946007, 0.06835726648569107, 0.0020951502956449986, 0.014218310825526714, 0.0316266268491745, 0.007423598784953356, 0.002542890375480056, -0.03682177886366844, -0.0045457580126821995, -0.017007287591695786, 0.02254878357052803, -0.02101758122444153, -0.02692364901304245, -0.0031922843772917986, 0.007341570220887661, -0.052826493978500366, 0.07309670001268387, 0.01174833532422781, 0.06507612019777298, -0.0024790901225060225, -0.02092643827199936, 0.027598107233643532, -0.03842589631676674, 0.0019310927018523216, -0.06372720003128052, -0.01802808977663517, 0.01850203238427639, 0.010873362421989441, 0.023806557059288025, -0.0732789859175682, 0.02692364901304245, -0.03649366647005081, 0.06037313491106033, -0.04404030740261078, -0.029894910752773285, -0.01811923272907734, -0.0020040071103721857, -0.01808277517557144, -0.004265493247658014, -0.017864031717181206, -0.022384725511074066, 0.004144728649407625, 0.010116875171661377, -0.06493028998374939, -0.014382368884980679, 0.014391482807695866, 0.02491850219666958, 0.09012221544981003, -0.018611405044794083, -0.030095424503087997, -0.014108939096331596, -0.026759590953588486, -0.035327035933732986, -0.014017796143889427, -0.04210807383060455, -0.018465576693415642, -0.006858512293547392, -0.05089426413178444, 0.056435756385326385, 0.01381728146225214, -0.01522088423371315, -0.04571733996272087, -0.03696760907769203, 0.010098646394908428, 0.04356636479496956, 0.030788112431764603, -0.026741361245512962, -0.027087705209851265, -0.014655797742307186, 0.0007354102563112974, 0.011529591865837574, -0.0056098527275025845, -0.08975764364004135, 0.01408159639686346, -0.03244691342115402, 0.011174133978784084, -0.006981555372476578, -0.010299161076545715, -0.016114085912704468, 0.03937378525733948, 0.021801410242915154, 0.002590740332379937, 0.0013557524653151631, -0.10477801412343979, -0.017371859401464462, 0.005021980497986078, -0.05807633325457573, -0.008016028441488743, 0.021108724176883698, -0.03312137350440025, 0.019869178533554077, -0.023678956553339958, -0.04761311411857605, -0.032137028872966766, 0.0024471899960190058, 0.010208018124103546, -0.006840283516794443, -0.02863713726401329, -0.02683250606060028, 0.014737826772034168, -0.05428478121757507, -0.04870682954788208, 0.06883120536804199, -0.04655585438013077, 0.025574730709195137, -0.021965468302369118, 0.039592526853084564, -0.034561432898044586, -0.034743718802928925, 0.04929014667868614, -0.028892338275909424, 0.018903061747550964, -0.03053291141986847, -0.021910782903432846, 0.04702979698777199, -0.00569643871858716, -0.03795195370912552, 0.05052969232201576, -0.14772461354732513, -0.054248325526714325, -0.046446483582258224, -0.014355025254189968, 0.001878685550764203, 0.03611086308956146, 0.0007507906411774457, 0.019048891961574554, 0.003103419905528426, -0.03543640673160553, 0.04101435840129852, -0.014974798075854778, 0.011766564100980759, -0.06416468322277069, -0.0261215902864933, -0.006493940018117428, 0.006133925169706345, 0.023296156898140907, 0.02911107987165451, 0.02027020789682865, 0.0359468087553978, -0.013261309824883938, 0.018310632556676865, -0.02697833441197872, -0.03171776980161667, 0.05669095739722252, -0.0169617161154747, -0.047503743320703506, -0.011082991026341915, 0.01711665838956833, -0.013899310491979122, -0.003921428229659796, 0.019942093640565872, -0.03406926244497299, -0.015476085245609283, 0.004119664430618286, -0.0083076860755682, 0.015357598662376404, 0.0005072678904980421, 0.02003323659300804, -0.04899848625063896, 0.03751446679234505, -0.03313960134983063, -0.003167219925671816, -0.02045249380171299, -0.054102495312690735, -0.051586948335170746, 0.03157194331288338, 0.056909702718257904, -0.03445206210017204, -0.0009507356444373727, 0.014774283394217491, -0.04491528123617172, -0.02207483910024166, 0.012504822574555874, 0.01420008298009634, -0.03569160774350166, -0.066315658390522, 0.037879038602113724, -0.03164485841989517, -0.005577953066676855, 0.04024875909090042, 0.025902846828103065, -0.034123945981264114, -0.02854599431157112, 0.048962030559778214, -0.0064073544926941395, -0.04724854230880737, 0.037259265780448914, -0.03766029700636864, 0.05997210741043091, 0.017034631222486496, -0.019814493134617805, -0.006853955332189798, 0.018337976187467575, 0.018046317622065544, -0.0210722666233778, -0.00007533540338044986, -0.03244691342115402, -0.023751871660351753, 0.048962030559778214, 0.01941346377134323, 0.03766029700636864, -0.04181641712784767, -0.034743718802928925, -0.04371219128370285, 0.03029594011604786, -0.02739759162068367, 0.06660731881856918, 0.010208018124103546, -0.027853306382894516, -0.056763872504234314, 0.09325753897428513, -0.02178318239748478, -0.05669095739722252, -0.010836904868483543, 0.07316961884498596, 0.010198904201388359, -0.04724854230880737, 0.005076666362583637, 0.04028521478176117, 0.030605826526880264, -0.026340333744883537, 0.02012437954545021, 0.010189789347350597, 0.04484236612915993, -0.044404879212379456, -0.03871755674481392, -0.016351057216525078, -0.021819639950990677, -0.03868109732866287, 0.011301734484732151, 0.01574951410293579, -0.026704905554652214, 0.016733858734369278, -0.010672847740352154, 0.0003990355471614748, 0.008713272400200367, -0.02140038087964058, -0.02834547869861126, -0.007327898871153593, 0.03631138056516647, -0.03106154128909111, -0.005505038425326347, 0.014974798075854778, 0.03310314565896988, 0.02825433574616909, 0.0024836473166942596, -0.007487399037927389, -0.013252194970846176, 0.038936298340559006, 0.0005554027738980949, -0.015093283727765083, -0.03930087015032768, 0.039118584245443344, -0.03448851779103279, 0.004481958225369453, -0.01997854933142662, 0.02178318239748478, 0.03375937417149544, 0.021582666784524918, -0.009579131379723549, 0.02582993172109127, 0.033467717468738556, 0.016269030049443245, 0.0037983853835612535, 0.042545560747385025, 0.01779111847281456, 0.039738357067108154, -0.04006647318601608, 0.015011255629360676, 0.029657939448952675, 0.015084169805049896, -0.039410240948200226, -0.07779968529939651, 0.0952991396188736, -0.045061107724905014, 0.021892553195357323, -0.04914431646466255, 0.007984128780663013, -0.07532059401273727, 0.06099290773272514, -0.0429830476641655, -0.008298572152853012, 0.010290047153830528, -0.07553933560848236, 0.00967938918620348, -0.005249837879091501, 0.050639063119888306, 0.02896525152027607, 0.007022569887340069, -0.07386230677366257, -0.010754876770079136, 0.011165020056068897, 0.00851275771856308, -0.05599827319383621, 0.01167542114853859, 0.02358781360089779, 0.03554577752947807, -0.028035592287778854, -0.0678468644618988, -0.011092105880379677, 0.0038530712481588125, 0.027142390608787537, 0.046118367463350296, -0.0009427606128156185, 0.03658480942249298, 0.03368645906448364, 0.0013944882666692138, -0.051258835941553116, -0.009834331460297108, 0.016442200168967247, 0.01566748507320881, 0.016241686418652534, -0.03578275069594383, 0.025009645149111748, -0.005186037626117468, 0.008458072319626808, 0.0026909976731985807, 0.10842373967170715, 0.04382156580686569, -0.0397748127579689, -0.0008453514892607927, -0.07998711615800858, 0.0032720344606786966, -0.022038381546735764, 0.03711343929171562, 0.026431476697325706, 0.05293586477637291, -0.006913198158144951, -0.020179064944386482, -0.016834115609526634, -0.022475868463516235, 0.042837221175432205, 0.03390520438551903, 0.01322485227137804, -0.0009564320789650083, 0.06744583696126938, -0.023697184398770332, -0.030131882056593895, -0.035928577184677124, -0.06883120536804199, -0.05483164265751839, 0.00032384254154749215, 0.012851165607571602, -0.008239328861236572, 0.012486593797802925, 0.009943703189492226, 0.012204050086438656, 0.02963970974087715, -0.04323824867606163 ]
718,150
pytorch_optimizer.optimizer.shampoo
ScalableShampoo
Scalable Preconditioned Stochastic Tensor Optimization. This version of Scalable Shampoo Optimizer aims for a single GPU environment, not for a distributed environment or XLA devices. So, the original intention is to compute pre-conditioners asynchronously on the distributed CPUs, but this implementation calculates them which takes 99% of the optimization time on a GPU synchronously. Still, it is much faster than the previous Shampoo Optimizer because using coupled Newton iteration when computing G^{-1/p} matrices while the previous one uses SVD which is really slow. Also, this implementation offers 1. lots of plug-ins (e.g. gradient grafting, type of pre-conditioning, etc) 2. not-yet implemented features in the official Pytorch code. 3. readable, organized, clean code. Reference : https://github.com/google-research/google-research/blob/master/scalable_shampoo/pytorch/shampoo.py. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. beta1, beta2. :param moving_average_for_momentum: bool. perform moving_average for momentum (beta1). :param weight_decay: float. weight decay (L2 penalty). :param decoupled_weight_decay: bool. use decoupled weight_decay. :param decoupled_learning_rate: bool. use decoupled lr, otherwise couple it w/ preconditioned gradient. :param inverse_exponent_override: int. fixed exponent for pre-conditioner, if > 0. :param start_preconditioning_step: int. :param preconditioning_compute_steps: int. performance tuning params for controlling memory and compute requirements. How often to compute pre-conditioner. Ideally, 1 is the best. However, the current implementation doesn't work on the distributed environment (there are no statistics & pre-conditioners sync among replicas), compute on the GPU (not CPU) and the precision is fp32 (not fp64). Also, followed by the paper, `preconditioning_compute_steps` does not have a significant effect on the performance. So, If you have a problem with the speed, try to set this step bigger (e.g. 1000). :param statistics_compute_steps: int. How often to compute statistics. usually set to 1 (or 10). :param block_size: int. Block size for large layers (if > 0). Block size = 1 ==> AdaGrad (Don't do this, extremely inefficient!) Block size should be as large as feasible under memory/time constraints. :param skip_preconditioning_rank_lt: int. Skips preconditioning for parameters with rank less than this value. :param no_preconditioning_for_layers_with_dim_gt: int. avoid preconditioning large layers to reduce overall memory. :param shape_interpretation: bool. Automatic shape interpretation (for eg: [4, 3, 1024, 512] would result in 12 x [1024, 512] L and R statistics. Disabled by default which results in Shampoo constructing statistics [4, 4], [3, 3], [1024, 1024], [512, 512]. :param graft_type: int. type of grafting (SGD or AdaGrad or RMSProp or SQRT_N or None). :param pre_conditioner_type: int. type of pre-conditioner. :param nesterov: bool. Nesterov momentum. :param diagonal_eps: float. term added to the denominator to improve numerical stability. :param matrix_eps: float. term added to the denominator to improve numerical stability. :param use_svd: bool. use SVD instead of Schur-Newton method to calculate M^{-1/p}. Theoretically, Schur-Newton method is faster than SVD method. However, the inefficiency of the loop code and proper svd kernel, SVD is much faster in some cases (usually in case of small models). see https://github.com/kozistr/pytorch_optimizer/pull/103
class ScalableShampoo(Optimizer, BaseOptimizer): r"""Scalable Preconditioned Stochastic Tensor Optimization. This version of Scalable Shampoo Optimizer aims for a single GPU environment, not for a distributed environment or XLA devices. So, the original intention is to compute pre-conditioners asynchronously on the distributed CPUs, but this implementation calculates them which takes 99% of the optimization time on a GPU synchronously. Still, it is much faster than the previous Shampoo Optimizer because using coupled Newton iteration when computing G^{-1/p} matrices while the previous one uses SVD which is really slow. Also, this implementation offers 1. lots of plug-ins (e.g. gradient grafting, type of pre-conditioning, etc) 2. not-yet implemented features in the official Pytorch code. 3. readable, organized, clean code. Reference : https://github.com/google-research/google-research/blob/master/scalable_shampoo/pytorch/shampoo.py. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param betas: BETAS. beta1, beta2. :param moving_average_for_momentum: bool. perform moving_average for momentum (beta1). :param weight_decay: float. weight decay (L2 penalty). :param decoupled_weight_decay: bool. use decoupled weight_decay. :param decoupled_learning_rate: bool. use decoupled lr, otherwise couple it w/ preconditioned gradient. :param inverse_exponent_override: int. fixed exponent for pre-conditioner, if > 0. :param start_preconditioning_step: int. :param preconditioning_compute_steps: int. performance tuning params for controlling memory and compute requirements. How often to compute pre-conditioner. Ideally, 1 is the best. However, the current implementation doesn't work on the distributed environment (there are no statistics & pre-conditioners sync among replicas), compute on the GPU (not CPU) and the precision is fp32 (not fp64). Also, followed by the paper, `preconditioning_compute_steps` does not have a significant effect on the performance. So, If you have a problem with the speed, try to set this step bigger (e.g. 1000). :param statistics_compute_steps: int. How often to compute statistics. usually set to 1 (or 10). :param block_size: int. Block size for large layers (if > 0). Block size = 1 ==> AdaGrad (Don't do this, extremely inefficient!) Block size should be as large as feasible under memory/time constraints. :param skip_preconditioning_rank_lt: int. Skips preconditioning for parameters with rank less than this value. :param no_preconditioning_for_layers_with_dim_gt: int. avoid preconditioning large layers to reduce overall memory. :param shape_interpretation: bool. Automatic shape interpretation (for eg: [4, 3, 1024, 512] would result in 12 x [1024, 512] L and R statistics. Disabled by default which results in Shampoo constructing statistics [4, 4], [3, 3], [1024, 1024], [512, 512]. :param graft_type: int. type of grafting (SGD or AdaGrad or RMSProp or SQRT_N or None). :param pre_conditioner_type: int. type of pre-conditioner. :param nesterov: bool. Nesterov momentum. :param diagonal_eps: float. term added to the denominator to improve numerical stability. :param matrix_eps: float. term added to the denominator to improve numerical stability. :param use_svd: bool. use SVD instead of Schur-Newton method to calculate M^{-1/p}. Theoretically, Schur-Newton method is faster than SVD method. However, the inefficiency of the loop code and proper svd kernel, SVD is much faster in some cases (usually in case of small models). see https://github.com/kozistr/pytorch_optimizer/pull/103 """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), moving_average_for_momentum: bool = False, weight_decay: float = 0.0, decoupled_weight_decay: bool = False, decoupled_learning_rate: bool = True, inverse_exponent_override: int = 0, start_preconditioning_step: int = 25, preconditioning_compute_steps: int = 1000, statistics_compute_steps: int = 1, block_size: int = 512, skip_preconditioning_rank_lt: int = 1, no_preconditioning_for_layers_with_dim_gt: int = 8192, shape_interpretation: bool = True, graft_type: int = LayerWiseGrafting.SGD, pre_conditioner_type: int = PreConditionerType.ALL, nesterov: bool = True, diagonal_eps: float = 1e-10, matrix_eps: float = 1e-6, use_svd: bool = False, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_step(start_preconditioning_step, 'start_preconditioning_step') self.validate_step(preconditioning_compute_steps, 'preconditioning_compute_steps') self.validate_step(statistics_compute_steps, 'statistics_compute_steps') self.validate_non_negative(diagonal_eps, 'diagonal_eps') self.validate_non_negative(matrix_eps, 'matrix_eps') self.inverse_exponent_override = inverse_exponent_override self.start_preconditioning_step = start_preconditioning_step self.preconditioning_compute_steps = preconditioning_compute_steps self.statistics_compute_steps = statistics_compute_steps self.block_size = block_size self.skip_preconditioning_rank_lt = skip_preconditioning_rank_lt self.no_preconditioning_for_layers_with_dim_gt = no_preconditioning_for_layers_with_dim_gt self.shape_interpretation = shape_interpretation self.graft_type = graft_type self.pre_conditioner_type = pre_conditioner_type self.diagonal_eps = diagonal_eps self.matrix_eps = matrix_eps self.use_svd = use_svd defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'decoupled_weight_decay': decoupled_weight_decay, 'decoupled_learning_rate': decoupled_learning_rate, 'moving_average_for_momentum': moving_average_for_momentum, 'nesterov': nesterov, } super().__init__(params, defaults) def __str__(self) -> str: return 'ScalableShampoo' @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'] = torch.zeros_like(p) state['pre_conditioner'] = PreConditioner( p, group['betas'][1], # beta2 self.inverse_exponent_override, self.block_size, self.skip_preconditioning_rank_lt, self.no_preconditioning_for_layers_with_dim_gt, self.shape_interpretation, self.pre_conditioner_type, self.matrix_eps, self.use_svd, ) state['graft'] = build_graft(p, self.graft_type, self.diagonal_eps) def is_precondition_step(self, step: int) -> bool: return step >= self.start_preconditioning_step @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 is_precondition_step: bool = self.is_precondition_step(group['step']) pre_conditioner_multiplier: float = 1.0 if group['decoupled_learning_rate'] else group['lr'] beta1, beta2 = group['betas'] for p in group['params']: i
(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), moving_average_for_momentum: bool = False, weight_decay: float = 0.0, decoupled_weight_decay: bool = False, decoupled_learning_rate: bool = True, inverse_exponent_override: int = 0, start_preconditioning_step: int = 25, preconditioning_compute_steps: int = 1000, statistics_compute_steps: int = 1, block_size: int = 512, skip_preconditioning_rank_lt: int = 1, no_preconditioning_for_layers_with_dim_gt: int = 8192, shape_interpretation: bool = True, graft_type: int = <LayerWiseGrafting.SGD: 1>, pre_conditioner_type: int = <PreConditionerType.ALL: 0>, nesterov: bool = True, diagonal_eps: float = 1e-10, matrix_eps: float = 1e-06, use_svd: bool = False)
[ -0.008637435734272003, -0.06178737431764603, -0.024678388610482216, 0.0007312115048989654, 0.01745767518877983, -0.013324298895895481, -0.07637098431587219, -0.059471871703863144, -0.058171939104795456, -0.006174675188958645, -0.011069729924201965, -0.002121275058016181, 0.0004281268920749426, 0.05012861266732216, -0.04537573829293251, 0.06158426031470299, 0.02851724997162819, -0.00608327379450202, 0.03136084973812103, 0.009536216966807842, -0.005763368681073189, -0.05126605182886124, -0.022565999999642372, 0.06792142987251282, -0.014035198837518692, 0.00974440947175026, 0.011404869146645069, -0.016777241602540016, -0.046025704592466354, 0.005605955142527819, 0.002273610793054104, -0.017670946195721626, 0.028171954676508904, -0.028009463101625443, 0.056709516793489456, -0.02270817942917347, 0.028801608830690384, 0.032213930040597916, -0.0731617733836174, -0.022626934573054314, 0.011191599071025848, -0.03993227332830429, 0.032782651484012604, -0.026648597791790962, -0.010714280419051647, -0.005920782219618559, -0.0027420432306826115, 0.04297898709774017, 0.014939057640731335, -0.008622203022241592, 0.04980362951755524, -0.07498980313539505, 0.038957323879003525, 0.011547048576176167, -0.041475944221019745, 0.034245073795318604, 0.06121865287423134, -0.010876771062612534, 0.043994560837745667, -0.043669577687978745, 0.06775893270969391, -0.012958693318068981, 0.014228157699108124, -0.011354089714586735, 0.01703113503754139, -0.03274202719330788, -0.035037219524383545, -0.010044002905488014, 0.007632020395249128, 0.02951250970363617, -0.02193634584546089, -0.003023864235728979, 0.03660120069980621, 0.011740007437765598, -0.02884223312139511, -0.038693275302648544, -0.009256934747099876, -0.07893022149801254, -0.008510489948093891, -0.06625588983297348, 0.04830058291554451, 0.03162489831447601, -0.05228162556886673, -0.045660097151994705, -0.0165335051715374, -0.041475944221019745, 0.013090717606246471, 0.01180094201117754, 0.008672981522977352, -0.05687200650572777, -0.031685832887887955, 0.025572091341018677, 0.048544321209192276, 0.06329041719436646, 0.05126605182886124, 0.02794853039085865, -0.030264033004641533, -0.07011505961418152, 0.008738993667066097, -0.047488126903772354, 0.008754227310419083, 0.05459712818264961, 0.020961396396160126, 0.06532156467437744, 0.039851028472185135, -0.023012852296233177, -0.04249151423573494, -0.008728837594389915, 0.025978321209549904, -0.08209880441427231, -0.03680431470274925, 0.015223417431116104, -0.07470544427633286, -0.03217330574989319, -0.010988484136760235, -0.03542313724756241, -0.03930262103676796, 0.011018951423466206, 0.00034275540383532643, 0.04696002975106239, 0.010897083207964897, -0.0003306955040898174, -0.03572780638933182, -0.003587506478652358, 0.013456323184072971, 0.01337507739663124, 0.055815812200307846, 0.05228162556886673, -0.004608156159520149, -0.06507782638072968, -0.03355448320508003, -0.016645217314362526, -0.029796870425343513, 0.029898427426815033, -0.008408932946622372, -0.029918737709522247, 0.022890983149409294, 0.038754209876060486, -0.0011069730389863253, -0.011333778500556946, 0.03721054270863533, -0.004062286112457514, -0.046025704592466354, -0.02114420011639595, 0.03024372085928917, -0.03816517814993858, 0.05805006995797157, -0.033574797213077545, 0.021225444972515106, -0.007403516676276922, 0.03737303242087364, -0.002423407742753625, 0.007540619000792503, -0.03475286066532135, -0.01773187890648842, -0.011547048576176167, -0.014522673562169075, -0.03389978036284447, 0.005011845845729113, 0.00017629687499720603, -0.06524031609296799, -0.05321595072746277, -0.030528081580996513, -0.018300600349903107, 0.008322608657181263, 0.007291804067790508, 0.013303987681865692, 0.03345292806625366, -0.019570063799619675, 0.04196341708302498, 0.04269462823867798, -0.06064993515610695, 0.004339029546827078, 0.042207155376672745, -0.048381827771663666, 0.08169257640838623, 0.024272160604596138, -0.010704124346375465, -0.03178739175200462, -0.052200376987457275, 0.014461738988757133, -0.020199717953801155, -0.04354770854115486, -0.05289096757769585, -0.022647246718406677, 0.008891329169273376, 0.030548391863703728, -0.029898427426815033, 0.005438385531306267, 0.05244411528110504, -0.020859839394688606, -0.04139469563961029, 0.023723751306533813, 0.01603587530553341, -0.021570740267634392, 0.018666205927729607, 0.029126591980457306, 0.0018039089627563953, 0.049844253808259964, 0.009439737536013126, -0.01193296629935503, 0.009759643115103245, 0.033107634633779526, 0.013710216619074345, -0.025368977338075638, -0.03119835816323757, -0.012542309239506721, 0.04517262428998947, 0.026770466938614845, 0.0012466141488403082, -0.08620171248912811, -0.02260662242770195, 0.01716315932571888, 0.06914011389017105, 0.04088691249489784, -0.06312792748212814, 0.04444141313433647, 0.02778603881597519, 0.022525377571582794, 0.014136755838990211, 0.027298564091324806, -0.04035881534218788, -0.060365572571754456, 0.006560592446476221, 0.025612715631723404, 0.015385909005999565, 0.009135066531598568, -0.027237629517912865, 0.021286379545927048, -0.028273511677980423, 0.0018597653834149241, -0.026140812784433365, -0.028436003252863884, 0.02007785066962242, 0.017437363043427467, 0.04306023567914963, -0.03542313724756241, 0.01852402463555336, -0.008393699303269386, -0.04052130505442619, -0.020362209528684616, -0.04249151423573494, 0.007713266182690859, 0.005336828529834747, -0.006327010691165924, 0.004704635124653578, 0.05187539756298065, 0.04549760743975639, -0.023094097152352333, 0.011811097152531147, -0.026404861360788345, -0.03190925717353821, -0.04570072144269943, 0.01329383160918951, -0.06507782638072968, -0.022159771993756294, 0.07238993793725967, 0.023256588727235794, 0.038185492157936096, -0.03641839697957039, -0.03907919302582741, -0.06816516071557999, -0.04862556606531143, 0.026018943637609482, 0.0017709028907120228, -0.015944473445415497, 0.006636760197579861, 0.022992540150880814, 0.010440075770020485, 0.022362885996699333, 0.05427214503288269, 0.08587673306465149, -0.06609340012073517, 0.003392009064555168, -0.007180090993642807, 0.0014370337594300508, -0.035768430680036545, 0.010429919697344303, 0.03123898059129715, 0.004364418797194958, 0.027704792097210884, -0.01735611818730831, -0.0365808866918087, -0.027197007089853287, -0.03909950703382492, 0.028090709820389748, -0.028009463101625443, -0.05390653759241104, 0.05861879140138626, 0.010582256130874157, -0.015842916443943977, 0.026018943637609482, 0.049438025802373886, -0.019976293668150902, 0.097169890999794, -0.0018166035879403353, -0.014614074490964413, 0.028760986402630806, 0.01573120430111885, -0.030913999304175377, 0.10017597675323486, -0.023845620453357697, -0.0024322939570993185, 0.0028969179838895798, -0.010693968273699284, -0.009764720685780048, 0.029126591980457306, 0.006814485415816307, 0.011018951423466206, -0.043466463685035706, 0.03223424032330513, -0.015690580010414124, 0.02057548053562641, 0.0025897074956446886, 0.07584288716316223, -0.07620848715305328, 0.014238313771784306, -0.0466756708920002, 0.01659443974494934, 0.08717666566371918, -0.025551781058311462, 0.020798904821276665, 0.03138116002082825, 0.027034515514969826, -0.045294493436813354, -0.09570746123790741, 0.04496951028704643, -0.027034515514969826, -0.055165845900774, -0.029735935851931572, -0.04052130505442619, 0.0009806612506508827, 0.04092753306031227, 0.025998631492257118, -0.050169236958026886, 0.0011006257263943553, 0.01682802103459835, 0.03129991516470909, -0.0064996578730642796, -0.03444818779826164, 0.11585640162229538, 0.042207155376672745, -0.0007629481260664761, 0.04265400767326355, -0.013141496106982231, -0.0610155388712883, 0.040318191051483154, -0.002957852091640234, 0.014329714700579643, 0.03004060685634613, -0.010181104764342308, 0.03517939895391464, 0.004813809413462877, 0.09651992470026016, 0.061624884605407715, -0.009952601045370102, -0.017742035910487175, -0.034204449504613876, 0.015812449157238007, -0.04671629145741463, 0.04143531993031502, 0.013517257757484913, -0.029390640556812286, 0.07876773178577423, 0.04862556606531143, -0.02098170854151249, -0.028111020103096962, -0.04939740151166916, 0.039322931319475174, -0.042775873094797134, 0.010409608483314514, -0.07324302196502686, 0.003737303428351879, -0.005260660778731108, -0.012836824171245098, 0.006535203196108341, -0.034204449504613876, 0.001014936831779778, 0.028111020103096962, 0.021002020686864853, 0.1021258756518364, 0.008139805868268013, -0.016604594886302948, -0.004260322544723749, 0.028720363974571228, 0.008957341313362122, 0.006535203196108341, -0.010917394421994686, 0.053703423589468, -0.08482053875923157, 0.023012852296233177, 0.008703447878360748, 0.04285712167620659, -0.004542144015431404, -0.03879483416676521, 0.04444141313433647, 0.04115096107125282, 0.05707512050867081, -0.03928230702877045, -0.04326334968209267, -0.0010447693057358265, -0.0481380932033062, 0.046919405460357666, 0.012136080302298069, -0.012105613015592098, -0.08993902057409286, 0.04744750261306763, 0.043466463685035706, -0.002224101684987545, 0.10326331853866577, -0.020920773968100548, 0.00673831719905138, -0.0437508225440979, 0.020027071237564087, -0.038774523884058, -0.04671629145741463, 0.008520645089447498, 0.0118517205119133, 0.026993893086910248, 0.016340546309947968, 0.02941095270216465, 0.023459702730178833, 0.058903150260448456, 0.029492197558283806, -0.0018267593113705516, 0.027461055666208267, -0.07011505961418152, 0.0025414677802473307, -0.06682460755109787, -0.007642176002264023, -0.018960721790790558, -0.030182786285877228, -0.011953277513384819, -0.02742043323814869, -0.014837500639259815, 0.0019968675915151834, 0.007916380651295185, 0.01586322858929634, 0.02266755700111389, -0.004699557553976774, 0.05321595072746277, -0.02935001812875271, 0.008287063799798489, -0.006403178907930851, -0.0029908581636846066, 0.0021263528615236282, -0.02038252167403698, 0.003579889889806509, -0.037596460431814194, 0.029817180708050728, 0.011780629865825176, 0.037596460431814194, 0.029451575130224228, 0.01719362661242485, -0.014350025914609432, 0.006941431667655706, -0.03211237117648125, -0.0336560420691967, -0.037962064146995544, -0.025937698781490326, 0.009698708541691303, 0.03595123440027237, -0.061990488320589066, 0.028760986402630806, 0.059268757700920105, 0.02307378686964512, 0.029918737709522247, -0.003986118361353874, 0.010653345845639706, 0.014441427774727345, -0.0007331157103180885, -0.02847662754356861, 0.021692609414458275, -0.015528089366853237, -0.010480698198080063, -0.003793159732595086, -0.04643193259835243, 0.027034515514969826, 0.00808394979685545, 0.006103585008531809, 0.04196341708302498, -0.03129991516470909, 0.00592586025595665, 0.04789435490965843, 0.004653856623917818, -0.008723760023713112, 0.011780629865825176, 0.011526737362146378, 0.031888946890830994, 0.037596460431814194, -0.06840889900922775, -0.0444820336997509, 0.09367632120847702, 0.03682462498545647, -0.03660120069980621, 0.009891667403280735, 0.006286387797445059, -0.005854770075529814, 0.07547727972269058, -0.01915368065237999, 0.019509129226207733, 0.023906555026769638, -0.0716993510723114, 0.0258970744907856, 0.036499641835689545, -0.030060919001698494, -0.022383198142051697, 0.010013535618782043, -0.04622881859540939, 0.014197690412402153, 0.00039194716373458505, -0.05792820081114769, 0.03491535037755966, -0.01925523765385151, 0.010785370133817196, -0.014329714700579643, 0.015365597791969776, 0.05995934456586838, 0.003592584514990449, -0.06008121371269226, 0.02144887112081051, 0.027562612667679787, -0.013009471818804741, -0.021205134689807892, 0.015446843579411507, 0.023094097152352333, 0.004336490761488676, -0.035869989544153214, 0.06414350122213364, 0.010846304707229137, 0.012054834514856339, -0.03621528297662735, 0.00974440947175026, 0.08335811644792557, 0.0437508225440979, 0.0011406138073652983, -0.013628970831632614, -0.02522679790854454, 0.002174592576920986, -0.05695325508713722, -0.0015728664584457874, 0.006469191052019596, 0.02224101684987545, -0.01786390319466591, -0.03534189239144325, 0.04092753306031227, 0.012125924229621887, 0.06008121371269226, -0.08815161138772964, -0.023561259731650352, -0.021794166415929794, 0.019935669377446175, 0.0051489477045834064, 0.010308051481842995, 0.05577519163489342, -0.010815837420523167, 0.007596475537866354, 0.040968157351017, 0.024190913885831833, 0.03976978361606598, -0.031320225447416306, -0.035829365253448486, 0.0042806342244148254, -0.05159103497862816, -0.016553817316889763, -0.0016947350231930614, 0.004623389337211847, 0.0066672274842858315, -0.01271495595574379, 0.03353417292237282, 0.02861880697309971, -0.018239665776491165, 0.010150637477636337, 0.008205818012356758, -0.02313471958041191, -0.017102224752306938, 0.024373717606067657, -0.03312794491648674, -0.049844253808259964, -0.027359498664736748, 0.050372350960969925, -0.05098169296979904, -0.03578874096274376, -0.005646578036248684, 0.00288422335870564, 0.02081921696662903, -0.0716993510723114, 0.03501690924167633, 0.005514553748071194, 0.025917386636137962, -0.008911640383303165, 0.05695325508713722, -0.01245090737938881, -0.042938366532325745, 0.0040267412550747395, 0.005600877106189728, -0.014380493201315403, -0.000509055273141712, 0.055450208485126495, 0.05593768134713173, -0.03528095781803131, 0.012227481231093407, 0.040318191051483154, 0.010805681347846985, 0.012521997094154358, -0.046553801745176315, -0.026932958513498306, 0.035037219524383545, 0.05025048181414604, -0.02914690412580967, -0.0053774514235556126, -0.010673657059669495, 0.005509475711733103, -0.02088015154004097, -0.06288418918848038, -0.027034515514969826, -0.02360188402235508, 0.014634386636316776, 0.12097488343715668, -0.017010822892189026, -0.00642349012196064, 0.03201081603765488, -0.016685841605067253, 0.007581241894513369, -0.009124910458922386, -0.04598508030176163, 0.05029110237956047, -0.12113737314939499, 0.006184830795973539, -0.06418412178754807, -0.0030213254503905773, -0.0034224761184304953, 0.035504382103681564, -0.025775207206606865, -0.003658596659079194, -0.004077519755810499, 0.021387936547398567, 0.041516564786434174, -0.04306023567914963, -0.02894379012286663, 0.018767762929201126, 0.04501013085246086, 0.02124575711786747, 0.018869319930672646, -0.002439910778775811, -0.024008112028241158, 0.006220375653356314, -0.000010651599950506352, 0.058578167110681534, 0.05386591702699661, -0.03239673376083374, 0.04415705054998398, -0.06377789378166199, -0.010795526206493378, 0.0016515732277184725, 0.03753552585840225, 0.019580218940973282, 0.009790109470486641, 0.0329248309135437, -0.019001344218850136, -0.006327010691165924, -0.005341906566172838, 0.005270816385746002, 0.03385915607213974, -0.0336560420691967, -0.01796546019613743, 0.012278260663151741, -0.01609680987894535, 0.005946171469986439, 0.02124575711786747, -0.08571424335241318, -0.013547725044190884, -0.055165845900774, -0.038226112723350525, 0.03688555955886841, 0.005448541603982449, 0.0027775883208960295, -0.034306008368730545, -0.07689908146858215, -0.036032479256391525, 0.022586312144994736, 0.023378457874059677, -0.03572780638933182, 0.03479348123073578, 0.03180770203471184, -0.010937705636024475, -0.061624884605407715, -0.021631674841046333, -0.026912646368145943, -0.008749148808419704, -0.02971562370657921, 0.022748803719878197, 0.007058222312480211, 0.023784685879945755, 0.03621528297662735, -0.06324979662895203, -0.038855768740177155, -0.008586657233536243, 0.0444820336997509, -0.03207175061106682, 0.019478661939501762, -0.04119158163666725, -0.050169236958026886, 0.0017378968186676502, -0.005864925682544708, 0.06576841324567795, -0.030954621732234955, -0.02831413596868515, 0.04525386914610863, -0.011740007437765598, 0.03889638930559158, 0.021062955260276794, 0.023215966299176216, -0.01629992388188839, 0.01279620174318552, -0.014644541777670383, -0.01000845804810524, 0.011445491574704647, -0.027501678094267845, 0.02380499802529812, -0.009581917896866798, 0.014969524927437305, 0.01941772922873497, -0.021469183266162872, -0.04931615665555, -0.021794166415929794, 0.033676352351903915, -0.05480024218559265, 0.06479346752166748, 0.004948372486978769, 0.038124557584524155, 0.0012072606477886438, -0.01928570494055748, -0.006337166763842106, 0.05536896362900734, -0.04610694944858551, 0.05358155444264412, 0.009246778674423695, -0.03536220267415047, 0.027806349098682404, 0.053459689021110535, 0.01619836688041687, -0.050006743520498276, -0.04289774224162102, 0.03654026612639427, 0.03897763788700104, -0.006804329343140125, -0.03432631865143776, 0.03392009064555168, -0.03339199349284172, 0.05280972272157669, -0.025043994188308716, 0.002418329706415534, 0.020270807668566704, 0.06105616316199303, -0.0359918549656868, 0.02313471958041191, -0.017610011622309685, -0.06568717211484909, -0.12544339895248413, -0.0029654689133167267, -0.05792820081114769, 0.03725116327404976, 0.010252195410430431, 0.003960729110985994, -0.004750336054712534, 0.0250236839056015, 0.015599179081618786 ]
718,152
pytorch_optimizer.optimizer.shampoo
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, betas: BETAS = (0.9, 0.999), moving_average_for_momentum: bool = False, weight_decay: float = 0.0, decoupled_weight_decay: bool = False, decoupled_learning_rate: bool = True, inverse_exponent_override: int = 0, start_preconditioning_step: int = 25, preconditioning_compute_steps: int = 1000, statistics_compute_steps: int = 1, block_size: int = 512, skip_preconditioning_rank_lt: int = 1, no_preconditioning_for_layers_with_dim_gt: int = 8192, shape_interpretation: bool = True, graft_type: int = LayerWiseGrafting.SGD, pre_conditioner_type: int = PreConditionerType.ALL, nesterov: bool = True, diagonal_eps: float = 1e-10, matrix_eps: float = 1e-6, use_svd: bool = False, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_step(start_preconditioning_step, 'start_preconditioning_step') self.validate_step(preconditioning_compute_steps, 'preconditioning_compute_steps') self.validate_step(statistics_compute_steps, 'statistics_compute_steps') self.validate_non_negative(diagonal_eps, 'diagonal_eps') self.validate_non_negative(matrix_eps, 'matrix_eps') self.inverse_exponent_override = inverse_exponent_override self.start_preconditioning_step = start_preconditioning_step self.preconditioning_compute_steps = preconditioning_compute_steps self.statistics_compute_steps = statistics_compute_steps self.block_size = block_size self.skip_preconditioning_rank_lt = skip_preconditioning_rank_lt self.no_preconditioning_for_layers_with_dim_gt = no_preconditioning_for_layers_with_dim_gt self.shape_interpretation = shape_interpretation self.graft_type = graft_type self.pre_conditioner_type = pre_conditioner_type self.diagonal_eps = diagonal_eps self.matrix_eps = matrix_eps self.use_svd = use_svd defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'decoupled_weight_decay': decoupled_weight_decay, 'decoupled_learning_rate': decoupled_learning_rate, 'moving_average_for_momentum': moving_average_for_momentum, 'nesterov': nesterov, } 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), moving_average_for_momentum: bool = False, weight_decay: float = 0.0, decoupled_weight_decay: bool = False, decoupled_learning_rate: bool = True, inverse_exponent_override: int = 0, start_preconditioning_step: int = 25, preconditioning_compute_steps: int = 1000, statistics_compute_steps: int = 1, block_size: int = 512, skip_preconditioning_rank_lt: int = 1, no_preconditioning_for_layers_with_dim_gt: int = 8192, shape_interpretation: bool = True, graft_type: int = <LayerWiseGrafting.SGD: 1>, pre_conditioner_type: int = <PreConditionerType.ALL: 0>, nesterov: bool = True, diagonal_eps: float = 1e-10, matrix_eps: float = 1e-06, use_svd: bool = False)
[ 0.028536105528473854, -0.06733153015375137, -0.0379214808344841, 0.026275254786014557, -0.024261388927698135, -0.04388708621263504, -0.09233386814594269, -0.017744822427630424, -0.05027066171169281, 0.020024670287966728, -0.0343497171998024, 0.025002339854836464, -0.02084161527454853, 0.04612893611192703, -0.03963136672973633, 0.08055464923381805, 0.027947144582867622, 0.016595397144556046, 0.0027809403836727142, -0.019027236849069595, -0.0035978860687464476, -0.02846010960638523, -0.028992075473070145, 0.08625426888465881, 0.00695353839546442, 0.046888887882232666, 0.00005317420436767861, -0.011171258054673672, -0.021430576220154762, 0.0017561959102749825, -0.01905573531985283, -0.002430651104077697, -0.0076089948415756226, 0.007324013393372297, 0.007599495351314545, -0.003728502430021763, 0.009803349152207375, 0.01808679848909378, -0.13390310108661652, 0.004011108539998531, 0.0020803618244826794, -0.04582495614886284, 0.06512767821550369, -0.020917611196637154, -0.027624165639281273, -0.006188839208334684, 0.02346344105899334, 0.02942904643714428, -0.01471452321857214, -0.02190554514527321, 0.01317562535405159, -0.044723030179739, 0.05684422329068184, -0.0018595014698803425, -0.0709792897105217, 0.019758688285946846, 0.05388042330741882, 0.020081667229533195, 0.03997334465384483, -0.023007472977042198, 0.0002998238487634808, -0.009100395254790783, 0.0009422186994925141, 0.02612326480448246, -0.007575747091323137, 0.007195772137492895, -0.0693453922867775, -0.01652890257537365, 0.016405411064624786, 0.06493768841028214, 0.05205654352903366, 0.0027215692680329084, 0.011114262044429779, 0.032563839107751846, -0.01703236810863018, -0.02336844801902771, -0.042671166360378265, -0.06250584870576859, -0.015721455216407776, -0.0482947938144207, 0.037940479815006256, 0.0657736286520958, -0.025002339854836464, -0.044609036296606064, 0.027700159698724747, -0.04080928862094879, 0.011000269092619419, 0.014904510229825974, 0.003175164107233286, -0.04251917451620102, -0.03672455996274948, 0.012026201002299786, 0.016367413103580475, 0.020442642271518707, 0.0328868143260479, 0.03539464995265007, -0.019682692363858223, -0.06812947243452072, 0.0029566786251962185, -0.045748960226774216, -0.021867547184228897, 0.02832711860537529, -0.014562533237040043, 0.03338078409433365, -0.0064595709554851055, -0.03928939253091812, -0.058744098991155624, -0.017649827525019646, -0.0005055445362813771, -0.06653358042240143, -0.040923282504081726, 0.023520438000559807, -0.0408472865819931, -0.0016160801751539111, -0.006440572440624237, -0.019986672326922417, -0.002928180620074272, 0.005799364764243364, -0.008748918771743774, 0.019568700343370438, 0.03643957898020744, 0.017963306978344917, -0.03157590329647064, 0.02580028586089611, 0.0021041103173047304, -0.013090130873024464, 0.042443182319402695, 0.03966936469078064, 0.04913073778152466, -0.07599495351314545, -0.004374459385871887, -0.015493471175432205, -0.03053097240626812, 0.0322408601641655, 0.009485119953751564, -0.03788348287343979, 0.014619529247283936, 0.01937871240079403, -0.03457770496606827, 0.007119777146726847, 0.053462449461221695, -0.00220979074947536, 0.006279082968831062, -0.011931207962334156, -0.015502970665693283, -0.01519899070262909, 0.01384058129042387, -0.04692688211798668, -0.007015284150838852, 0.019853681325912476, 0.04567296802997589, -0.025686293840408325, -0.021449575200676918, -0.017830315977334976, -0.0199296772480011, -0.02631325274705887, 0.017345847561955452, -0.04225319251418114, 0.01494250725954771, 0.02644624374806881, -0.0748550295829773, -0.007148275151848793, 0.0061745899729430676, -0.010962272062897682, -0.00015941128367558122, 0.03237384930253029, -0.010449306108057499, 0.005338645540177822, -0.023026470094919205, 0.030150998383760452, 0.03108193539083004, -0.02657923474907875, -0.03309580311179161, 0.0199296772480011, -0.029505040496587753, 0.06820546835660934, 0.034045737236738205, 0.002928180620074272, -0.02447037398815155, -0.014486538246273994, 0.03799747675657272, -0.0004942640662193298, -0.04848477989435196, -0.06717953830957413, -0.009722604416310787, 0.03309580311179161, -0.0017181984148919582, 0.00696778716519475, -0.02158256620168686, 0.015911443158984184, 0.01680438406765461, 0.0020791743882000446, 0.0351666659116745, 0.044875018298625946, -0.005343395285308361, 0.01685188151896, 0.035793621093034744, 0.020689625293016434, 0.051030609756708145, 0.014904510229825974, 0.034501709043979645, 0.017469339072704315, 0.03837745264172554, -0.01873275637626648, -0.020898612216114998, -0.03906140476465225, -0.03520466387271881, -0.0009659670758992434, -0.013565098866820335, 0.008748918771743774, -0.07094129174947739, -0.05068863555788994, 0.03467269614338875, 0.04833279177546501, 0.04096128046512604, -0.08222653716802597, 0.03127192333340645, 0.047496844083070755, 0.010705788619816303, 0.007670740596950054, 0.0495867058634758, -0.009841346181929111, -0.059884022921323776, -0.043089140206575394, 0.03098694235086441, 0.004804305732250214, 0.005637875758111477, -0.02942904643714428, -0.03263983130455017, -0.01785881444811821, -0.016785385087132454, -0.035926613956689835, -0.0372755229473114, 0.02281748503446579, 0.041075270622968674, -0.005975103005766869, -0.028479108586907387, 0.007058031391352415, -0.026408245787024498, -0.04403907433152199, 0.015075499191880226, -0.025097332894802094, 0.020119663327932358, 0.009062398225069046, 0.010116827674210072, -0.007817980833351612, 0.04168323054909706, 0.0223615150898695, -0.030929945409297943, 0.01667139306664467, -0.056958217173814774, -0.03997334465384483, -0.026009272783994675, 0.028213126584887505, -0.05220853164792061, -0.04647091403603554, 0.04783882200717926, 0.0233304500579834, 0.06938339024782181, -0.01634841412305832, 0.0010983645915985107, -0.043735094368457794, -0.01763082854449749, 0.046394918113946915, -0.00414172513410449, 0.008060215041041374, 0.006673306692391634, 0.010743786580860615, 0.03554663807153702, 0.0005286992527544498, 0.06812947243452072, 0.08344245702028275, -0.05756617709994316, -0.004906424321234226, -0.0001243823644472286, -0.02084161527454853, -0.03182288631796837, -0.035090669989585876, 0.0011731721460819244, 0.0379214808344841, 0.04327912628650665, -0.04517899826169014, -0.013612596318125725, 0.03168989717960358, -0.024432377889752388, 0.02483135089278221, -0.05201854556798935, -0.04555897414684296, 0.02777615562081337, -0.02709220163524151, 0.0023309076204895973, 0.021639563143253326, 0.08321447670459747, -0.01404956728219986, 0.10092129558324814, -0.02722519263625145, -0.0054193902760744095, -0.00844493880867958, 0.03571762889623642, -0.001303788390941918, 0.058516114950180054, -0.024033403024077415, 0.0463569201529026, 0.008463937789201736, -0.03366576507687569, -0.01478101871907711, 0.03655357286334038, 0.02920106053352356, 0.03947937861084938, -0.021468574181199074, 0.015303483232855797, 0.0213925801217556, 0.07200521975755692, 0.0034268973395228386, 0.07614694535732269, -0.06326580047607422, 0.007651741616427898, -0.03708553686738014, 0.03928939253091812, 0.07458904385566711, -0.004483702126890421, 0.04757284000515938, 0.023881414905190468, 0.00274294288828969, -0.039783358573913574, -0.1079128310084343, 0.05144858360290527, -0.01850477047264576, -0.030131999403238297, -0.009485119953751564, -0.03396974503993988, -0.040201328694820404, 0.033399783074855804, 0.03906140476465225, -0.03178488835692406, 0.004595319740474224, 0.004103727638721466, 0.03989734873175621, 0.02781415358185768, -0.04525499418377876, 0.10783683508634567, 0.01639591157436371, -0.0188752468675375, 0.02631325274705887, 0.008772667497396469, -0.046432916074991226, 0.050612639635801315, -0.031974878162145615, -0.001965181902050972, 0.07090329378843307, -0.030739959329366684, 0.03864343464374542, 0.0040586055256426334, 0.13276317715644836, 0.016604896634817123, 0.023349449038505554, -0.01960669830441475, -0.046888887882232666, 0.04206320643424988, -0.027339184656739235, 0.018020303919911385, 0.04586295410990715, -0.044001076370477676, 0.055666301399469376, 0.032620832324028015, -0.03811147063970566, -0.027890147641301155, -0.03993534669280052, 0.05372843146324158, -0.031195927411317825, 0.013194623403251171, -0.04757284000515938, -0.03125292435288429, -0.008943656459450722, 0.011684224009513855, 0.0042533427476882935, -0.06033999100327492, 0.026465242728590965, 0.02865009754896164, 0.009765351191163063, 0.04791481792926788, 0.019198225811123848, 0.014268052764236927, 0.007784733083099127, 0.03250684216618538, -0.01019282266497612, 0.028061136603355408, 0.00824070256203413, 0.057452183216810226, -0.04806680604815483, -0.004977669566869736, 0.00655456492677331, 0.02410939894616604, -0.001513961935415864, -0.03085395134985447, 0.02148757316172123, 0.03066396340727806, 0.07272717356681824, -0.028061136603355408, -0.049244727939367294, -0.015075499191880226, -0.028346117585897446, -0.003742751432582736, 0.027434177696704865, -0.011009768582880497, -0.051486581563949585, 0.03689555078744888, 0.03786448389291763, 0.004968170076608658, 0.07557698339223862, 0.007974720560014248, 0.010962272062897682, -0.03668656200170517, -0.0054288893006742, -0.0398593544960022, -0.013213622383773327, 0.006212587468326092, 0.023805418983101845, 0.04042931646108627, -0.000869785959366709, 0.02566729485988617, 0.04058130457997322, 0.08511434495449066, 0.05156257748603821, 0.03332378715276718, 0.041113268584012985, -0.07667890936136246, 0.0027856898959726095, -0.060529980808496475, -0.04160723835229874, -0.037674497812986374, 0.005248401314020157, -0.024755356833338737, -0.01285264641046524, 0.023577434942126274, -0.01184571348130703, -0.0008579117711633444, -0.022285519167780876, 0.003502892330288887, 0.00876791775226593, 0.04339311644434929, -0.049928683787584305, 0.007148275151848793, -0.021601565182209015, -0.03676255792379379, -0.026522237807512283, -0.010534800589084625, -0.008079213090240955, -0.027833150699734688, 0.027757156640291214, -0.0019141228403896093, 0.01979668438434601, 0.04187322035431862, -0.028536105528473854, -0.01942620985209942, -0.015958940610289574, -0.010316315107047558, -0.0049396720714867115, -0.016006436198949814, -0.029182061553001404, 0.03448271006345749, 0.00007202451524790376, -0.05182855948805809, 0.04225319251418114, 0.0030350484885275364, 0.02158256620168686, 0.047648835927248, -0.01173172052949667, -0.013536601327359676, -0.009375877678394318, 0.025629298761487007, -0.01753583550453186, 0.039821356534957886, -0.03250684216618538, -0.021544570103287697, 0.0015590839320793748, -0.02103160321712494, -0.015559966675937176, -0.021962542086839676, -0.0076089948415756226, 0.01776381954550743, -0.03218386322259903, -0.009147892706096172, 0.05665423721075058, -0.00856368150562048, 0.006549815181642771, -0.01970169134438038, 0.010715288110077381, 0.03718053176999092, -0.007746735587716103, -0.09164991229772568, -0.01578795164823532, 0.07417107373476028, 0.06197388470172882, -0.0085874292999506, 0.004051480907946825, -0.0006115218857303262, -0.0008976903627626598, 0.06197388470172882, -0.02906806953251362, 0.025591300800442696, 0.012805149890482426, -0.044229064136743546, -0.010287816636264324, 0.015075499191880226, -0.02084161527454853, -0.054564375430345535, -0.014619529247283936, -0.013042633421719074, -0.0005604627658613026, 0.0035931363236159086, -0.019549701362848282, -0.01615842618048191, 0.0005328552215360105, -0.022969475015997887, 0.004763933829963207, -0.02676922269165516, 0.050802625715732574, 0.0032986558508127928, -0.00831194780766964, 0.03951737657189369, 0.031138932332396507, 0.04320313036441803, -0.028346117585897446, 0.00018123014888260514, 0.06201188266277313, 0.020765621215105057, -0.023843416944146156, 0.0991734117269516, 0.033266790211200714, -0.009565864689648151, -0.047952815890312195, -0.012928641401231289, 0.06949738413095474, 0.017640328034758568, 0.010639293119311333, 0.011503736488521099, -0.025078333914279938, -0.054374389350414276, -0.04434305429458618, 0.005884859245270491, -0.025173328816890717, 0.0015460223658010364, -0.03539464995265007, -0.05372843146324158, 0.02093661017715931, 0.0010378060396760702, 0.05540031939744949, -0.08321447670459747, -0.04457103833556175, 0.019568700343370438, 0.011655725538730621, -0.002434213412925601, -0.011171258054673672, 0.06793949007987976, 0.012928641401231289, 0.00008185784827219322, 0.040695298463106155, 0.05825013294816017, 0.015559966675937176, -0.04977669566869736, -0.012890644371509552, -0.007343012373894453, -0.03801647573709488, -0.03818746283650398, 0.005732869263738394, -0.002086299005895853, -0.005519133526831865, -0.05198054760694504, 0.033399783074855804, 0.022019537165760994, 0.0028759341221302748, 0.024432377889752388, -0.006212587468326092, -0.04681289196014404, 0.004030107520520687, -0.003742751432582736, 0.017801817506551743, -0.04141724854707718, -0.03786448389291763, 0.04692688211798668, -0.05372843146324158, -0.011465738527476788, -0.07109327614307404, -0.01970169134438038, 0.004847052972763777, -0.078426793217659, -0.0037213778123259544, -0.016139429062604904, 0.016994372010231018, -0.01138974353671074, 0.06216387078166008, 0.004830429330468178, -0.023653429001569748, -0.03668656200170517, 0.034311722964048386, 0.006374076474457979, -0.005799364764243364, 0.04954870790243149, 0.05821213498711586, -0.07147325575351715, 0.013964072801172733, 0.037674497812986374, 0.021221591159701347, 0.03208886831998825, -0.05403241142630577, -0.020214658230543137, 0.038947414606809616, 0.03366576507687569, -0.04270916432142258, 0.0014664650661870837, -0.01324212085455656, 0.006787299178540707, -0.05836412310600281, -0.039365384727716446, -0.04647091403603554, -0.01808679848909378, 0.034368716180324554, 0.11292850226163864, -0.021183593198657036, 0.025857282802462578, 0.013489103876054287, -0.04628092795610428, 0.005196155048906803, -0.04141724854707718, -0.03947937861084938, 0.023767421022057533, -0.14059066772460938, 0.02878308854997158, -0.04293714836239815, 0.03832045570015907, 0.003581262193620205, 0.019891679286956787, -0.05471636727452278, 0.00998383667320013, 0.013318115845322609, 0.017241355031728745, 0.04058130457997322, -0.0076089948415756226, 0.0008282262715511024, 0.03111993335187435, 0.03577462583780289, 0.005352894309908152, 0.010401809588074684, -0.012491670437157154, -0.006412073969841003, -0.000091505644377321, -0.005709121003746986, 0.0978814959526062, 0.05665423721075058, -0.05585629120469093, 0.06858544796705246, -0.05927606299519539, -0.034957677125930786, -0.016785385087132454, 0.0019164977129548788, -0.017649827525019646, 0.036629568785429, 0.04016333445906639, -0.02447037398815155, -0.02336844801902771, -0.016604896634817123, 0.010401809588074684, 0.00743800587952137, -0.02428038790822029, 0.003954112529754639, -0.0029519288800656796, 0.005243651568889618, -0.010211821645498276, 0.0026431994047015905, -0.06455771625041962, -0.02553430385887623, -0.010496802628040314, 0.0018879995914176106, 0.015113496221601963, 0.014163559302687645, -0.030131999403238297, -0.02781415358185768, 0.00371187855489552, -0.007680240087211132, 0.03267782926559448, 0.07071330398321152, -0.051676567643880844, -0.009404375217854977, 0.01310912985354662, -0.014619529247283936, -0.08397442102432251, 0.00939012598246336, 0.000996840070001781, -0.016509903594851494, -0.040049340575933456, 0.01753583550453186, 0.02593327686190605, 0.024907346814870834, 0.005262650549411774, -0.014420042745769024, -0.05813613906502724, -0.04791481792926788, 0.0025980775244534016, -0.022969475015997887, -0.0032297854777425528, -0.027947144582867622, -0.07531099766492844, 0.05528632923960686, -0.012985637411475182, 0.040923282504081726, -0.026522237807512283, 0.018580766394734383, 0.0091146444901824, -0.031005941331386566, 0.04327912628650665, 0.03917539864778519, 0.054108407348394394, -0.06524166464805603, -0.003965986426919699, 0.021316584199666977, 0.02874509058892727, 0.008074463345110416, -0.043089140206575394, 0.0067398021928966045, -0.04563497006893158, 0.015398477204144001, 0.02355843596160412, -0.012007202953100204, -0.03649657592177391, -0.029961010441184044, -0.015531468205153942, -0.03396974503993988, 0.07272717356681824, -0.017706824466586113, 0.05114460363984108, 0.03438771516084671, -0.029163062572479248, 0.01854276843369007, 0.015018502250313759, -0.06273383647203445, 0.06026399880647659, 0.015635961666703224, 0.011997703462839127, 0.05361444130539894, 0.03799747675657272, 0.02433738298714161, -0.06600161641836166, -0.012358679436147213, -0.0021575442515313625, 0.06858544796705246, -0.0019818057771772146, -0.016053933650255203, 0.03917539864778519, -0.01979668438434601, 0.04438105225563049, -0.0570342130959034, 0.020214658230543137, 0.003678630804643035, 0.05019466578960419, -0.0502326637506485, 0.02965703047811985, -0.03723752871155739, -0.04270916432142258, -0.10745686292648315, -0.0024413377977907658, -0.07664091140031815, 0.05270250141620636, 0.028213126584887505, -0.005732869263738394, 0.03714253380894661, 0.01508499775081873, 0.014819015748798847 ]
718,155
pytorch_optimizer.optimizer.shampoo
__str__
null
def __str__(self) -> str: return 'ScalableShampoo'
(self) -> str
[ 0.018527207896113396, -0.06599077582359314, 0.0010519647039473057, -0.018013063818216324, 0.020385339856147766, -0.06718142330646515, 0.015604707412421703, 0.0052000656723976135, 0.06487228721380234, -0.01300692930817604, -0.034240156412124634, 0.02063790149986744, 0.000007725189789198339, 0.010508372448384762, 0.015496466308832169, 0.0025008120574057102, 0.026789583265781403, -0.08219080418348312, 0.041564445942640305, 0.028467316180467606, 0.03200317919254303, 0.04777024686336517, 0.02567109651863575, -0.011220957152545452, -0.021052824333310127, 0.07879926264286041, 0.006747006438672543, -0.008974961936473846, -0.03351854905486107, -0.028972439467906952, -0.011211937293410301, -0.032724782824516296, 0.012898688204586506, 0.010959375649690628, -0.017489900812506676, 0.03016308695077896, -0.028701836243271828, 0.003576454473659396, -0.021612068638205528, -0.024877330288290977, 0.018707608804106712, 0.015343124978244305, -0.006214822642505169, -0.043224137276411057, -0.03185885772109032, -0.015054482966661453, -0.0012030507205054164, 0.0655217319726944, -0.001309036510065198, -0.010012269020080566, 0.0008974961820058525, 0.005610478576272726, -0.05693463236093521, -0.0006370418705046177, -0.02904460020363331, 0.07273777574300766, 0.03193102031946182, 0.019808055832982063, -0.005709699355065823, 0.04383750259876251, -0.024282006546854973, -0.007987264543771744, 0.046254877001047134, -0.03683793172240257, 0.009922067634761333, 0.011473518796265125, 0.0037343057338148355, 0.04567759484052658, 0.015604707412421703, 0.04520855098962784, 0.03559316322207451, -0.028990479186177254, -0.017102036625146866, 0.02982032485306263, 0.005366936791688204, -0.025959737598896027, -0.06407851725816727, -0.022207392379641533, 0.02774571068584919, -0.050512347370386124, 0.04470342770218849, -0.013935995288193226, -0.015099583193659782, -0.03079449199140072, -0.011789221316576004, -0.07461395114660263, -0.011067615821957588, -0.04600231721997261, -0.03068624995648861, 0.04163660481572151, -0.05004330351948738, 0.02392120473086834, -0.028052393347024918, 0.07576852291822433, -0.024733008816838264, -0.008307477459311485, 0.008032364770770073, -0.0644393190741539, 0.015469405800104141, 0.023217638954520226, 0.0019877960439771414, 0.056645989418029785, -0.02392120473086834, 0.02303723804652691, -0.018563287332654, -0.029098719358444214, -0.031642377376556396, 0.044090062379837036, -0.003921472001820803, 0.0038312713149935007, -0.009759707376360893, 0.016145911067724228, 0.0052090855315327644, -0.009425964206457138, -0.007256639655679464, -0.0687689483165741, -0.023452160879969597, 0.0015514506958425045, 0.05628518760204315, -0.019735895097255707, -0.011644899845123291, -0.00048708333633840084, -0.04748160392045975, 0.006562095135450363, 0.05044018477201462, 0.09301488101482391, -0.0404098778963089, -0.013448912650346756, 0.015541566535830498, -0.002260653069242835, 0.01966373436152935, 0.005452627316117287, -0.06054265424609184, -0.013881875202059746, 0.06649589538574219, -0.014774861745536327, 0.045821912586688995, 0.02861163578927517, 0.05448117479681969, 0.13465148210525513, -0.029982686042785645, -0.0005428949953056872, 0.020168857648968697, 0.027727670967578888, -0.007279189769178629, 0.02043946087360382, 0.006246393080800772, 0.04668784141540527, -0.010066389106214046, -0.009114772081375122, 0.023885123431682587, 0.02426396682858467, 0.05361524969339371, -0.01441405899822712, 0.000576438324060291, -0.003409583354368806, -0.0002352262963540852, -0.06083129718899727, 0.04077067971229553, -0.022477993741631508, 0.006589155178517103, -0.047120802104473114, -0.011861381120979786, -0.010860154405236244, -0.01901428960263729, 0.012817507609724998, -0.014242677949368954, 0.02644682116806507, 0.0183017048984766, 0.007671562489122152, -0.01650671288371086, -0.06631549447774887, -0.0819021612405777, 0.030848611146211624, 0.007951184175908566, 0.03111921437084675, -0.0022076601162552834, 0.0731346607208252, 0.041564445942640305, -0.03241810202598572, -0.03671165183186531, -0.024751050397753716, -0.05191947519779205, 0.022008951753377914, 0.06148074194788933, -0.038172900676727295, 0.032706744968891144, 0.04131188243627548, 0.04340453818440437, 0.0009380864212289453, 0.004070302937179804, 0.005033194553107023, -0.03647712990641594, 0.0011376553447917104, -0.0017611670773476362, -0.04755376651883125, 0.004749062471091747, -0.08818012475967407, -0.017607159912586212, 0.003163786605000496, -0.01808522455394268, 0.05538317933678627, -0.015415285713970661, 0.04827537015080452, 0.0710059255361557, -0.0043183546513319016, 0.03748737648129463, 0.002800729125738144, 0.010084428824484348, -0.04957425966858864, 0.00549321761354804, 0.02862967550754547, -0.015099583193659782, 0.031642377376556396, 0.057908795773983, -0.0589912049472332, 0.014080316759645939, -0.03157021477818489, -0.02558089606463909, 0.005714209284633398, 0.050404105335474014, -0.034258194267749786, -0.02031317912042141, -0.006205802783370018, -0.048888735473155975, 0.012122963555157185, 0.026392700150609016, -0.020673980936408043, -0.015153704211115837, -0.020024538040161133, -0.024444367736577988, -0.06631549447774887, 0.009867947548627853, 0.05881080403923988, -0.04499206691980362, 0.05278540030121803, -0.044523026794195175, 0.012384545058012009, -0.05563574284315109, -0.0415283665060997, -0.008767500519752502, -0.014810941182076931, 0.007134868763387203, 0.0008050405303947628, 0.015586666762828827, -0.03209337964653969, -0.02392120473086834, 0.028539475053548813, -0.01399011630564928, -0.029784243553876877, 0.06591860949993134, -0.059243764728307724, -0.015036443248391151, -0.027042144909501076, 0.007468611467629671, -0.06956271827220917, -0.06281571090221405, -0.01021973043680191, 0.010968395508825779, -0.03875018656253815, -0.08017031103372574, -0.02610405907034874, -0.0371626541018486, 0.058702562004327774, -0.009186932817101479, -0.006719945929944515, -0.03189493715763092, 0.05974889174103737, 0.012682206928730011, 0.003186336951330304, 0.11394142359495163, 0.01782364211976528, -0.0415283665060997, 0.032273780554533005, -0.02839515544474125, -0.03241810202598572, -0.019934337586164474, 0.058377839624881744, -0.07591284066438675, -0.052388519048690796, 0.007779803592711687, -0.026735464110970497, 0.014892121776938438, 0.012375525198876858, 0.0161188505589962, -0.06400635838508606, 0.04827537015080452, -0.02262231521308422, 0.023686682805418968, 0.018869969993829727, 0.03570140525698662, 0.04618271812796593, -0.010120509192347527, -0.004821223206818104, 0.032183580100536346, 0.04849185422062874, 0.04434262588620186, 0.03526844084262848, -0.003213396994397044, -0.018355825915932655, 0.022766636684536934, -0.029243040829896927, -0.013728533871471882, -0.023849043995141983, -0.037306975573301315, -0.009078692644834518, 0.0041199130937457085, -0.015009382739663124, 0.0032697725109755993, 0.00014277067384682596, -0.018184443935751915, 0.03036152757704258, 0.02152186818420887, 0.08096407353878021, -0.008239826187491417, 0.0567903108894825, -0.005723229143768549, 0.0034885089844465256, 0.0003816613752860576, 0.08211864531040192, -0.0289363581687212, -0.01629023253917694, -0.0382450632750988, 0.0018220525234937668, 0.02588757686316967, -0.03241810202598572, -0.036982253193855286, 0.010336990468204021, 0.02218935266137123, 0.03452879562973976, -0.04174484685063362, -0.0196817759424448, 0.07060904800891876, -0.011843341402709484, -0.02054770104587078, -0.010499351657927036, 0.035448841750621796, -0.016091790050268173, -0.04445086419582367, -0.053903888911008835, 0.10282870382070541, 0.006927407346665859, -0.03976043313741684, 0.031083133071660995, 0.001497330260463059, 0.025653056800365448, -0.023632561787962914, -0.04401790350675583, 0.01834680512547493, -0.011347237974405289, 0.006810146849602461, -0.030072886496782303, 0.01518076378852129, 0.025364413857460022, 0.04351278021931648, 0.0013552643358707428, -0.03111921437084675, 0.04491990804672241, -0.02917088009417057, -0.008541998453438282, 0.0035426293034106493, -0.060903456062078476, 0.003317127702757716, 0.04841969162225723, -0.04730120301246643, 0.0018062674207612872, -0.0024128665681928396, -0.005759309511631727, 0.06909367442131042, -0.0294956024736166, -0.007423510774970055, -0.004843773320317268, -0.0234702005982399, -0.0015728733269497752, -0.015893349424004555, 0.08067543059587479, 0.0240294449031353, 0.01704791747033596, -0.03965219110250473, -0.04120364412665367, 0.053254444152116776, 0.018094243481755257, 0.008767500519752502, 0.032183580100536346, 0.034348394721746445, 0.009651466272771358, 0.0010660585248842835, 0.01592942886054516, -0.0005555794341489673, -0.03243614360690117, -0.005127905402332544, -0.03449271619319916, 0.02491341158747673, -0.0012064332840964198, -0.03322990983724594, -0.07923222333192825, 0.005267716012895107, -0.0037343057338148355, -0.04676000028848648, 0.03160629794001579, 0.04105932265520096, -0.054661575704813004, -0.015279985032975674, -0.0005691095138899982, -0.049862902611494064, 0.01564078778028488, 0.01780560240149498, -0.004160503391176462, -0.026266420260071754, 0.022351713851094246, -0.006422284059226513, -0.027817871421575546, -0.07778901606798172, -0.07291817665100098, 0.04192524775862694, -0.00671543600037694, -0.02623034082353115, -0.019158611074090004, -0.004153738729655743, -0.007527241483330727, -0.030072886496782303, 0.03550296276807785, 0.04784240946173668, 0.06707318127155304, -0.001756657031364739, 0.01955549418926239, 0.02992856502532959, 0.03214750066399574, 0.08875741064548492, -0.011347237974405289, -0.04556935280561447, 0.0010903000365942717, -0.03137177601456642, -0.04344061762094498, 0.022550154477357864, -0.0589912049472332, 0.0038064660038799047, -0.03575552627444267, -0.06148074194788933, -0.001684496528469026, 0.04607447609305382, -0.06783086806535721, 0.00019139444339089096, 0.04621879756450653, 0.04333237558603287, -0.044955987483263016, -0.08291240781545639, -0.005605968646705151, 0.03166041895747185, -0.0068868170492351055, -0.024733008816838264, 0.057836636900901794, -0.012610046193003654, -0.03281498700380325, 0.07042863965034485, -0.05087314918637276, 0.0069364276714622974, -0.06570213288068771, 0.014883101917803288, -0.016569852828979492, -0.04239429160952568, 0.0470125637948513, -0.045064229518175125, 0.014630540274083614, 0.052929721772670746, -0.003950787242501974, -0.005723229143768549, 0.044955987483263016, -0.018184443935751915, -0.0038786265067756176, 0.03965219110250473, -0.023885123431682587, 0.005750289652496576, -0.01436895877122879, 0.013638333417475224, 0.038064662367105484, -0.06097561866044998, 0.019808055832982063, 0.006079521495848894, -0.018274646252393723, -0.020619861781597137, -0.044198304414749146, -0.0024963021278381348, 0.05711503326892853, -0.018743688240647316, -0.0011556954123079777, 0.0019066155655309558, -0.0017916098004207015, -0.007806863635778427, 0.017363619059324265, 0.039471790194511414, 0.012988888658583164, -0.06274355202913284, -0.002863869536668062, -0.02087242342531681, 0.039399631321430206, -0.006120111793279648, 0.00639071362093091, -0.06927407532930374, 0.028359074145555496, 0.006602685432881117, -0.025292253121733665, -0.014486219733953476, -0.0044311052188277245, 0.053795650601387024, -0.022676436230540276, 0.0366034097969532, 0.00351105909794569, -0.01721929758787155, -0.048996977508068085, -0.0025571875739842653, -0.05834176018834114, 0.03835330158472061, 0.014838001690804958, 0.031516097486019135, -0.011004475876688957, -0.010508372448384762, 0.04012123495340347, 0.011112716048955917, 0.04235821217298508, -0.002009218791499734, -0.0267535038292408, -0.021106945350766182, -0.030072886496782303, -0.020277099683880806, 0.018166404217481613, -0.03802857920527458, 0.008650239557027817, -0.02208111062645912, 0.11098284274339676, 0.013178310357034206, 0.027457067742943764, -0.01804012432694435, 0.05841391906142235, 0.013412832282483578, 0.08774716407060623, -0.12007506191730499, 0.020168857648968697, 0.0797373503446579, -0.013178310357034206, 0.013954035937786102, -0.043548859655857086, 0.022153271362185478, -0.027547268196940422, 0.000939777703024447, -0.0027781790122389793, -0.008397677913308144, 0.02390316314995289, 0.022423874586820602, -0.007621952332556248, -0.013584213331341743, -0.006656805519014597, -0.02195483073592186, -0.04722904413938522, 0.019483333453536034, 0.03584572672843933, -0.008596118539571762, 0.008284926414489746, 0.027168426662683487, 0.04416222125291824, -0.0273127481341362, -0.02009669877588749, 0.06869678944349289, 0.026464860886335373, 0.02033121883869171, 0.05076490715146065, -0.03366287052631378, 0.03539472445845604, -0.0019359308062121272, -0.07396450638771057, 0.00989500805735588, -0.055888302624225616, 0.03593592718243599, 0.06039833277463913, -0.06256315112113953, 0.04427046328783035, 0.06194978579878807, 0.007035648450255394, -0.034258194267749786, 0.026248380541801453, -0.05058450624346733, 0.04033771529793739, -0.010012269020080566, -0.01953745447099209, -0.0240474846214056, -0.04286333546042442, -0.010174630209803581, -0.016651034355163574, 0.016975756734609604, -0.026158180087804794, -0.023722762241959572, 0.011509599164128304, -0.021900709718465805, -0.012592006474733353, 0.03396955132484436, -0.08045895397663116, -0.011699019931256771, -0.043007656931877136, 0.027926111593842506, 0.025292253121733665, 0.028449274599552155, 0.049971144646406174, 0.005966770928353071, 0.04333237558603287, 0.10297302901744843, 0.06241882964968681, 0.007432531099766493, 0.008429247885942459, -0.036332808434963226, 0.011879421770572662, -0.03452879562973976, 0.013548132963478565, -0.010860154405236244, 0.004264234099537134, -0.019140571355819702, -0.006065991707146168, 0.011942561715841293, -0.04950210079550743, -0.00257973768748343, -0.017408719286322594, -0.007297229953110218, 0.08947901427745819, -0.03319382667541504, 0.04567759484052658, -0.046038396656513214, 0.010842114686965942, 0.010436211712658405, -0.010066389106214046, 0.01573098823428154, -0.08118055760860443, 0.018527207896113396, -0.03155217692255974, 0.03128157556056976, -0.07547987997531891, -0.04510030895471573, 0.021792469546198845, 0.0029337750747799873, 0.048347532749176025, -0.017516959458589554, 0.03155217692255974, -0.011906481347978115, 0.026807624846696854, -0.009263603948056698, 0.03160629794001579, -0.04860009253025055, 0.02117910608649254, -0.09972580522298813, -0.06245490908622742, -0.021233225241303444, -0.03788426145911217, -0.03178669884800911, 0.002294478239491582, -0.007184479385614395, 0.025725215673446655, 0.0035944946575909853, -0.0002319847117178142, 0.01698477566242218, -0.026086019352078438, -0.030054846778512, -0.021648148074746132, 0.00116697046905756, -0.041997406631708145, 0.03864194452762604, -0.0038786265067756176, 0.08240728825330734, 0.014603479765355587, 0.024083565920591354, -0.05448117479681969, -0.02393924444913864, -0.03802857920527458, 0.004568661563098431, 0.03958003222942352, -0.012880648486316204, -0.06602685153484344, -0.018545247614383698, 0.016569852828979492, -0.006986037828028202, 0.012429645285010338, 0.03582768514752388, -0.05044018477201462, 0.009922067634761333, -0.047156885266304016, -0.034149955958127975, -0.04466734826564789, 0.023434121161699295, 0.05798095837235451, -0.07952086627483368, -0.0028999499045312405, -0.017336558550596237, -0.0896233320236206, -0.06397027522325516, -0.030541930347681046, -0.06285179406404495, 0.0196817759424448, 0.07389234751462936, 0.007409980986267328, 0.007802353706210852, -0.0234702005982399, 0.02424592711031437, -0.001625866163522005, 0.03452879562973976, 0.032183580100536346, 0.001678859000094235, 0.010553472675383091, 0.008226296864449978, -0.0016100810607895255, -0.015541566535830498, -0.017967963591217995, 0.023398039862513542, -0.040049076080322266, 0.06501660495996475, 0.06216626614332199, -0.04827537015080452, 0.00461376179009676, 0.028250833973288536, -0.08767500519752502, -0.018978210166096687, 0.04596623405814171, -0.0038064660038799047, 0.026374660432338715, 0.03185885772109032, 0.007270169910043478, -0.010427191853523254, -0.011428418569266796, 0.0332840271294117, 0.0469404011964798, -0.006498954724520445, -0.011599799618124962, -0.00337124802172184, -0.012276303954422474, -0.00901104137301445, -0.0031525115482509136, -0.049429938197135925, 0.013981095515191555, 0.03961611166596413, 0.014260717667639256, 0.030830571427941322, 0.008528468199074268, 0.06425891816616058, 0.0023226658813655376, 0.0469764806330204, 0.01343087200075388, -0.005781859625130892, -0.02873791754245758, 0.006205802783370018, 0.04311589524149895, 0.03810074180364609, 0.02612209878861904, -0.03157021477818489, 0.04131188243627548, 0.048564013093709946, 0.03241810202598572, -0.012961829081177711, 0.03737913817167282, 0.011924521997570992, -0.05415645241737366, 0.02262231521308422, 0.013223410584032536, -0.004740042611956596, -0.029008518904447556, 0.01923077180981636, -0.025364413857460022, 0.007396450731903315, 0.011329197324812412, 0.021882670000195503, 0.05213595926761627, 0.013737554661929607, 0.005222615785896778 ]
718,168
pytorch_optimizer.optimizer.shampoo
is_precondition_step
null
def is_precondition_step(self, step: int) -> bool: return step >= self.start_preconditioning_step
(self, step: int) -> bool
[ 0.0001894174492917955, 0.08576474338769913, -0.03497473523020744, 0.03664683550596237, 0.009544897824525833, -0.011060237884521484, 0.0518350675702095, -0.012802007608115673, -0.05991687998175621, -0.014421853236854076, 0.06500284373760223, 0.0070802937261760235, 0.03370324522256851, -0.02212047576904297, -0.028930794447660446, -0.0365074947476387, 0.05866280570626259, -0.011173452250659466, -0.011147325858473778, -0.0330762080848217, 0.0311602596193552, 0.0439622662961483, -0.028059910982847214, -0.0011022136313840747, 0.021894045174121857, 0.040722575038671494, -0.007424293551594019, 0.02516857162117958, -0.010128390975296497, 0.057339057326316833, -0.0102851502597332, 0.04138444736599922, 0.019002707675099373, -0.022590752691030502, 0.06200700253248215, 0.022190146148204803, 0.020744476467370987, -0.012444945052266121, -0.044554468244314194, -0.01219238806515932, -0.03894596919417381, 0.02208564057946205, -0.021267008036375046, 0.02043095789849758, -0.036228809505701065, -0.04897856339812279, 0.01776605099439621, -0.00964069552719593, 0.03359873592853546, -0.012444945052266121, 0.0782402977347374, -0.006492446642369032, 0.05674685910344124, 0.02809474617242813, -0.02196371555328369, -0.032135650515556335, 0.018741441890597343, -0.02502923086285591, -0.026736164465546608, 0.019995516166090965, 0.0012072641402482986, 0.07148222625255585, 0.034835394471883774, -0.02417576313018799, 0.051312536001205444, -0.028704365715384483, 0.013324538245797157, -0.03859761729836464, -0.002963185776025057, 0.0031330082565546036, -0.053855519741773605, 0.013803524896502495, -0.04650525003671646, 0.010894769802689552, -0.039816856384277344, -0.05190473794937134, -0.00588282709941268, -0.009283632971346378, 0.04828185588121414, -0.022172728553414345, -0.02159794420003891, -0.021057995036244392, -0.02426285296678543, -0.007855381816625595, -0.011460844427347183, 0.0124014001339674, -0.010520288720726967, -0.0071107749827206135, 0.020413540303707123, -0.005861055105924606, -0.04047872871160507, 0.057060375809669495, 0.007489609997719526, 0.01180919911712408, 0.07872799038887024, 0.07698622345924377, 0.014709245413541794, -0.0030154387932270765, -0.07489609718322754, -0.04187214374542236, 0.03541017696261406, 0.05991687998175621, 0.03612430393695831, -0.04688844084739685, 0.044136445969343185, 0.01495309267193079, -0.030759653076529503, -0.014352182857692242, -0.009222670458257198, -0.06528152525424957, 0.019455567002296448, -0.033947091549634933, -0.05890665203332901, -0.003844956634566188, 0.0013596690259873867, -0.045320846140384674, 0.015963319689035416, -0.005181764718145132, -0.01865435391664505, -0.006435838993638754, 0.019089795649051666, -0.06280821561813354, -0.002141288248822093, 0.005033714696764946, 0.00310035003349185, -0.0019322758307680488, 0.0582796148955822, 0.08444099873304367, 0.015284028835594654, -0.05681652948260307, 0.03399934619665146, -0.033563900738954544, -0.025760773569345474, -0.044275786727666855, -0.058697640895843506, -0.014456688426434994, 0.057443566620349884, 0.024994395673274994, 0.02593495137989521, -0.028059910982847214, -0.0033137169666588306, -0.023827409371733665, -0.01571076363325119, 0.011896287091076374, 0.017557037994265556, 0.02631814032793045, -0.047863829880952835, 0.053472328931093216, 0.00504677789285779, 0.04751547798514366, 0.04138444736599922, -0.021685032173991203, -0.006353104952722788, -0.06461965292692184, -0.020744476467370987, 0.007498318795114756, -0.05824477970600128, -0.002882628934457898, -0.0008904797723516822, -0.022695260122418404, 0.01328099425882101, -0.0439622662961483, 0.027189025655388832, 0.031491197645664215, -0.0035967545118182898, 0.04612206295132637, -0.06503768265247345, -0.01903754286468029, -0.006057003978639841, 0.047097451984882355, 0.07287564128637314, 0.08555572479963303, 0.06981012970209122, 0.019716832786798477, -0.0018778454978019, 0.023444220423698425, 0.04079224541783333, 0.022956524044275284, -0.02123217284679413, -0.02454153448343277, 0.03678617626428604, 0.010441909544169903, -0.04932691901922226, -0.009309759363532066, 0.01431734673678875, -0.02030903473496437, -0.038527946919202805, -0.03824926167726517, 0.047619983553886414, 0.01889820210635662, -0.03135185316205025, -0.0030285019893199205, 0.04493765905499458, 0.02581302635371685, -0.011669857427477837, -0.006396649405360222, 0.027885733172297478, -0.0039015640504658222, 0.09112939238548279, -0.005922017153352499, -0.0011452136095613241, 0.006148447282612324, 0.01601557247340679, 0.013159070163965225, -0.0023622752632945776, 0.03720420226454735, -0.051939573138952255, 0.01825374737381935, 0.00769426766782999, 0.007898925803601742, -0.05713004618883133, -0.06618724763393402, 0.030237121507525444, 0.05166088789701462, 0.002370984060689807, -0.0162332933396101, 0.057199716567993164, 0.002135845134034753, -0.01778346858918667, 0.014395726844668388, 0.02426285296678543, -0.002867388306185603, 0.05594564229249954, -0.03946850076317787, 0.019455567002296448, -0.011965957470238209, -0.015980737283825874, -0.008682722225785255, -0.060265231877565384, 0.011626312509179115, -0.027537379413843155, -0.015284028835594654, -0.028425682336091995, -0.020761894062161446, 0.05402969568967819, 0.052949801087379456, -0.03460896387696266, 0.027502544224262238, 0.020848983898758888, 0.03462638333439827, 0.013768689706921577, 0.020030351355671883, -0.004352246876806021, -0.009283632971346378, -0.019455567002296448, -0.014151878654956818, 0.034312862902879715, -0.0063313329592347145, -0.0029131099581718445, 0.039921361953020096, -0.0238970797508955, 0.005695587024092674, -0.05173056200146675, -0.018114404752850533, -0.01813182234764099, 0.018201492726802826, 0.05493541806936264, 0.011199579574167728, 0.027189025655388832, 0.04086191579699516, -0.03612430393695831, -0.025743355974555016, 0.008055685088038445, 0.028181834146380424, -0.009553606621921062, 0.014003828167915344, 0.005647688172757626, 0.014029955491423607, 0.017696380615234375, -0.003011084394529462, 0.08736716955900192, -0.012932640500366688, -0.026910342276096344, 0.01010226458311081, 0.056537844240665436, -0.017975063994526863, -0.007328495848923922, -0.02004776895046234, -0.038284096866846085, 0.006057003978639841, 0.06465449184179306, 0.012897804379463196, -0.013211322948336601, 0.011243123561143875, -0.10276441276073456, -0.008099229075014591, -0.03131701797246933, 0.0013890613336116076, 0.023809991776943207, 0.004724550526589155, -0.03720420226454735, 0.035079240798950195, 0.06071809306740761, -0.05740873143076897, 0.0552489347755909, 0.011034111492335796, 0.03657716512680054, -0.0643409714102745, -0.031491197645664215, 0.015292737632989883, 0.070576511323452, -0.04267335683107376, -0.08102712780237198, 0.0005372270825318992, -0.026405228301882744, 0.03772673383355141, 0.02800765633583069, 0.04110576584935188, -0.0480031743645668, -0.09133840352296829, -0.0411406010389328, 0.04051356390118599, 0.00566075136885047, -0.010154517367482185, 0.00920525286346674, -0.032658182084560394, 0.01521435845643282, -0.02327004261314869, -0.006927888840436935, 0.02516857162117958, -0.04685360565781593, 0.07649852335453033, -0.023461638018488884, 0.026283305138349533, -0.03218790516257286, -0.03361615538597107, 0.06078776344656944, -0.04016520828008652, -0.06430613994598389, -0.016781950369477272, -0.047585148364305496, -0.013847068883478642, 0.029418490827083588, 0.05535344034433365, -0.02171986922621727, -0.012331729754805565, -0.007019332144409418, -0.03439995273947716, 0.04472864791750908, -0.00018002823344431818, 0.05838412046432495, -0.019838757812976837, 0.04967527091503143, -0.006322624161839485, 0.07245761901140213, -0.023722903802990913, 0.026265887543559074, 0.04563436657190323, 0.07552313804626465, 0.027415454387664795, -0.07322400063276291, 0.009510062634944916, -0.017252229154109955, -0.015371117740869522, -0.014151878654956818, -0.028164416551589966, -0.0004400690086185932, -0.03744804859161377, 0.033145878463983536, -0.002083592116832733, 0.10158000886440277, 0.047863829880952835, -0.019211720675230026, 0.05618949234485626, -0.033145878463983536, -0.01495309267193079, -0.04929208382964134, 0.01009355578571558, -0.04472864791750908, 0.029174642637372017, -0.03478313982486725, -0.012044337578117847, 0.03332005441188812, -0.012871677987277508, -0.014578612521290779, -0.0011419478105381131, 0.04584337770938873, -0.014160587452352047, -0.009187835268676281, 0.01692129299044609, 0.011600186116993427, 0.00853902567178011, -0.06778967380523682, -0.00577832106500864, -0.044519633054733276, -0.016834205016493797, -0.01891561970114708, -0.03633331507444382, 0.03055064007639885, -0.045947883278131485, 0.046435579657554626, -0.029296565800905228, -0.046958111226558685, -0.006239890120923519, -0.01589364930987358, -0.03232724592089653, -0.002823844086378813, -0.011077655479311943, -0.011704692617058754, 0.013585804030299187, 0.011295376345515251, -0.00983229000121355, 0.025098901242017746, -0.00025105976965278387, 0.019072378054261208, -0.027310948818922043, -0.021110249683260918, -0.017234811559319496, 0.016607774421572685, -0.0035140204709023237, -0.018358252942562103, -0.019751667976379395, -0.044031936675310135, -0.005756549071520567, -0.04281270131468773, 0.0013596690259873867, -0.01219238806515932, -0.020134858787059784, -0.003777462989091873, -0.01513597834855318, 0.022799765691161156, 0.034713469445705414, 0.022294651716947556, 0.022015968337655067, 0.002473312895745039, 0.04507699981331825, -0.015937192365527153, 0.014352182857692242, 0.013646765612065792, 0.02455895207822323, -0.022521082311868668, 0.022172728553414345, 0.014439270831644535, 0.05984720587730408, -0.02426285296678543, 0.021284425631165504, -0.012706209905445576, 0.020761894062161446, -0.005451739300042391, -0.000012008686098852195, -0.024071257561445236, 0.012540741823613644, -0.005599789787083864, 0.01681678742170334, 0.041070930659770966, 0.0311602596193552, 0.015249193646013737, -0.062285684049129486, 0.016381343826651573, 0.028965629637241364, -0.043753255158662796, 0.017191266641020775, -0.04277786239981651, -0.018950454890727997, -0.03345939517021179, -0.0032962991390377283, -0.06778967380523682, -0.012244640849530697, -0.017600582912564278, 0.002758527873083949, 0.04660975933074951, 0.049013398587703705, -0.07580181956291199, 0.013150361366569996, 0.07635918259620667, 0.04187214374542236, -0.03518374636769295, 0.05159121751785278, -0.020030351355671883, 0.03720420226454735, -0.010537706315517426, -0.0054822200909256935, 0.02758963219821453, 0.01942073181271553, -0.02363581582903862, -0.010650921612977982, -0.017792178317904472, 0.06315656751394272, 0.04650525003671646, 0.028460517525672913, -0.011870160698890686, 0.03772673383355141, -0.004175893031060696, 0.004546018783003092, 0.010502871125936508, -0.03793574497103691, -0.11258799582719803, 0.016990963369607925, -0.009170417673885822, -0.03518374636769295, -0.011164743453264236, -0.06019556149840355, 0.038527946919202805, 0.05249693989753723, 0.050023626536130905, -0.01706063374876976, 0.04444996267557144, 0.028547605499625206, 0.08346560597419739, 0.02273009531199932, -0.001594807836227119, 0.06458482146263123, 0.012279476039111614, 0.011173452250659466, -0.01048545353114605, -0.025203408673405647, 0.011469553224742413, 0.018427923321723938, -0.030759653076529503, 0.02506406605243683, 0.09774811565876007, 0.011922413483262062, 0.02058771811425686, 0.020361287519335747, 0.04378809034824371, 0.0012551627587527037, 0.017147723585367203, -0.01968199759721756, 0.022259816527366638, -0.010711884126067162, 0.0393291600048542, -0.04967527091503143, 0.013908031396567822, -0.016207167878746986, -0.030254539102315903, 0.025708520784974098, 0.006967078894376755, -0.04943142458796501, -0.016329091042280197, -0.021388931199908257, 0.05058099329471588, 0.005726067814975977, 0.06284305453300476, 0.0665355995297432, 0.01180919911712408, 0.033929675817489624, -0.04218566417694092, 0.02556918002665043, -0.032919447869062424, -0.03168278932571411, 0.03518374636769295, -0.008578215725719929, 0.040966425091028214, 0.021319260820746422, 0.004151943605393171, 0.030237121507525444, 0.01627683825790882, 0.014604738913476467, -0.08848190307617188, -0.013080690987408161, -0.023583561182022095, 0.018201492726802826, -0.03591529279947281, -0.04117543622851372, 0.09342852979898453, 0.007119483780115843, 0.0627037063241005, 0.061031609773635864, 0.059498853981494904, 0.028338592499494553, -0.012279476039111614, -0.07754358649253845, 0.05113836005330086, -0.06381843984127045, -0.03446962311863899, -0.06162381172180176, 0.0036424759309738874, -0.05058099329471588, -0.016285546123981476, 0.002224022289738059, 0.05942918360233307, -0.0025756419636309147, -0.020622553303837776, 0.06657043844461441, -0.027293531224131584, -0.04612206295132637, 0.006927888840436935, 0.0324665866792202, -0.0661524161696434, -0.020866401493549347, 0.01571076363325119, -0.05549278482794762, 0.009814872406423092, -0.0401303730905056, -0.021127667278051376, -0.02506406605243683, -0.015519168227910995, 0.01952523924410343, -0.02415834553539753, -0.04152378812432289, -0.0681728646159172, 0.024228015914559364, -0.03220532089471817, -0.05106868967413902, 0.03950333595275879, -0.016851622611284256, 0.0840926393866539, -0.0421508252620697, -0.00044224620796740055, 0.049640435725450516, -0.0011669857194647193, -0.0017733393469825387, 0.008016495034098625, 0.014082208275794983, 0.01693871058523655, -0.04229016974568367, -0.03950333595275879, 0.026126544922590256, -0.004815993364900351, -0.045669201761484146, 0.022312069311738014, 0.009283632971346378, 0.010171934962272644, -0.011582768522202969, -0.05580630153417587, -0.009597151540219784, -0.0013041500933468342, -0.07928536087274551, 0.05277562141418457, 0.02375773899257183, -0.00011906628787983209, -0.01675582490861416, 0.007920697331428528, 0.019368479028344154, -0.009301050566136837, -0.014456688426434994, 0.033145878463983536, -0.1167682409286499, -0.009466518647968769, -0.09670305252075195, 0.03190921992063522, 0.02966233901679516, 0.008099229075014591, -0.04856054112315178, -0.039154984056949615, -0.0012627830728888512, -0.03985169157385826, 0.02288685366511345, 0.00718480022624135, -0.06639625877141953, -0.05479607358574867, 0.008800291456282139, -0.03105575405061245, 0.004563436843454838, -0.014970510266721249, -0.05458706244826317, -0.006244244519621134, -0.02555176243185997, 0.06883473694324493, 0.0150227639824152, -0.005382068455219269, 0.051939573138952255, 0.01903754286468029, -0.01641617901623249, -0.01917688362300396, 0.009553606621921062, 0.0053864228539168835, 0.0038210072088986635, 0.0014108334435150027, -0.05556245520710945, 0.011774362996220589, 0.00033338560024276376, -0.03821442648768425, -0.03464379906654358, 0.04828185588121414, 0.04546019062399864, 0.009727783501148224, -0.05737389251589775, -0.045042164623737335, -0.020848983898758888, -0.05598047748208046, 0.00300455279648304, 0.02617879956960678, -0.04911790415644646, 0.06454998254776001, -0.01586752198636532, -0.018114404752850533, -0.04127994179725647, -0.019960680976510048, -0.028983047232031822, -0.011460844427347183, -0.003170020878314972, -0.010163226164877415, -0.029627501964569092, 0.0004920499632135034, 0.03779640421271324, -0.042638521641492844, -0.02644006349146366, -0.010851224884390831, 0.009135582484304905, -0.017792178317904472, 0.04385776072740555, -0.010424491949379444, 0.08074844628572464, -0.011600186116993427, -0.05977753549814224, -0.04922241345047951, 0.04162829741835594, 0.03229241073131561, -0.026283305138349533, 0.07719523459672928, -0.021493438631296158, -0.007515736389905214, 0.000013139815564500168, -0.032536257058382034, 0.0316653735935688, -0.00900494959205389, -0.04842119663953781, 0.02720644325017929, 0.003106881631538272, -0.034295447170734406, 0.048630211502313614, 0.001520782709121704, -0.0881335511803627, 0.00705852173268795, -0.03107317164540291, -0.03473088890314102, -0.017922811210155487, -0.021946297958493233, -0.015501750633120537, -0.0564681738615036, 0.023339714854955673, -0.054482556879520416, -0.03001069277524948, -0.05594564229249954, -0.00944910105317831, -0.004907436203211546, -0.09503095597028732, 0.027763810008764267, -0.014630865305662155, -0.02698001265525818, 0.011443426832556725, -0.061414800584316254, 0.017356734722852707, 0.06604790687561035, -0.003790526418015361, -0.03678617626428604, 0.021406350657343864, 0.019107213243842125, 0.022259816527366638, 0.07336334139108658, -0.029697174206376076, 0.047724489122629166, -0.06427130103111267, 0.02313070185482502, 0.0314563624560833, -0.009422973729670048, -0.0012170615373179317, 0.011443426832556725, -0.04371841996908188, 0.015310156159102917, -0.0248028002679348, 0.014535068534314632, -0.05058099329471588, -0.007036749739199877, 0.011896287091076374, -0.04330039396882057, 0.050546158105134964, -0.010746719315648079, 0.014221549965441227, -0.06981012970209122, -0.023217789828777313, 0.03415610268712044, 0.04486798867583275, 0.028652111068367958, -0.000404145015636459, 0.024767965078353882, 0.03255367651581764 ]
718,177
pytorch_optimizer.optimizer.shampoo
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 momentum = group['momentum'] 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: if momentum > 0.0: state['momentum_buffer'] = grad.clone() for dim_id, dim in enumerate(grad.size()): state[f'pre_cond_{dim_id}'] = group['matrix_eps'] * torch.eye(dim, out=grad.new(dim, dim)) state[f'inv_pre_cond_{dim_id}'] = grad.new(dim, dim).zero_() if momentum > 0.0: grad.mul_(1.0 - momentum).add_(state['momentum_buffer'], alpha=momentum) self.apply_weight_decay( p=p, grad=p.grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) order: int = grad.ndimension() original_size: int = grad.size() for dim_id, dim in enumerate(grad.size()): pre_cond, inv_pre_cond = state[f'pre_cond_{dim_id}'], state[f'inv_pre_cond_{dim_id}'] grad = grad.transpose_(0, dim_id).contiguous() transposed_size = grad.size() grad = grad.view(dim, -1) grad_t = grad.t() pre_cond.add_(grad @ grad_t) if group['step'] % self.preconditioning_compute_steps == 0: inv_pre_cond.copy_(compute_power_svd(pre_cond, order)) if dim_id == order - 1: grad = grad_t @ inv_pre_cond grad = grad.view(original_size) else: grad = inv_pre_cond @ grad grad = grad.view(transposed_size) state['momentum_buffer'] = grad p.add_(grad, alpha=-group['lr']) return loss
(self)
[ -0.005454888567328453, 0.0017898853402584791, -0.03299449756741524, 0.04970009624958038, 0.0033619538880884647, 0.005824229680001736, -0.021724851801991463, -0.02928214520215988, -0.005701116286218166, 0.0029997150413691998, -0.036214400082826614, 0.006345096044242382, 0.028903333470225334, 0.07451225817203522, -0.018694357946515083, 0.0563671812415123, 0.010190034285187721, 0.043828513473272324, 0.01630784384906292, -0.010436262004077435, -0.001715306774713099, -0.07962621748447418, 0.003923068754374981, 0.06557230651378632, -0.05454888567328453, -0.02339162304997444, 0.027217620983719826, -0.005118693225085735, -0.02231200970709324, 0.004680692218244076, -0.018789060413837433, -0.03216111287474632, 0.014413785189390182, 0.012709132395684719, 0.0445103757083416, -0.025342503562569618, 0.000566737842746079, 0.021592266857624054, -0.06829974800348282, -0.03146031126379967, -0.005203925538808107, -0.027369145303964615, -0.02238777093589306, 0.014243319630622864, 0.00970704946666956, -0.005776878446340561, -0.01614684797823429, 0.042237505316734314, 0.0073915631510317326, 0.0002730107808019966, 0.011307529173791409, -0.03602499142289162, 0.04246479272842407, -0.02515309676527977, 0.00632615527138114, 0.06720119714736938, 0.06261757761240005, -0.05314728245139122, 0.02217942476272583, -0.033202845603227615, 0.06856491416692734, -0.051025934517383575, 0.019773971289396286, 0.006591323763132095, 0.0019319396233186126, -0.03856303170323372, -0.046404432505369186, -0.02816464938223362, 0.03348695486783981, 0.023145394399762154, 0.0010571214370429516, 0.01766209490597248, 0.01911105029284954, 0.008551673963665962, -0.03655532747507095, -0.046328671276569366, -0.020039139315485954, -0.07072414457798004, 0.02528568170964718, -0.035930290818214417, 0.006203041411936283, 0.0039798906072974205, -0.040873780846595764, 0.012425024062395096, -0.010739311575889587, -0.03704778477549553, -0.00044628753676079214, -0.024584880098700523, -0.019679266959428787, -0.03132772818207741, 0.019963376224040985, 0.025626610964536667, 0.008499587886035442, 0.042123861610889435, 0.06735271960496902, 0.05375337973237038, -0.039207011461257935, -0.020342187955975533, -0.04564680904150009, -0.03259674832224846, 0.02664940245449543, 0.043639108538627625, 0.006032576318830252, 0.027558552101254463, 0.049510687589645386, -0.03526736795902252, -0.014432725496590137, -0.03672579303383827, 0.0235242061316967, -0.06485256552696228, -0.011421172879636288, -0.0046617514453828335, -0.05451100319623947, -0.026081185787916183, -0.020133841782808304, -0.018741708248853683, 0.0023723081685602665, -0.004590724129229784, -0.030267054215073586, 0.04689688980579376, 0.03541889414191246, -0.01342887431383133, -0.05000314489006996, -0.008670052513480186, -0.0034424513578414917, 0.037748586386442184, 0.05140474811196327, 0.022974928840994835, 0.035002201795578, -0.06829974800348282, -0.03341119363903999, 0.003525316482409835, 0.0036815761122852564, -0.00520866084843874, 0.009015718474984169, -0.020266426727175713, -0.022899167612195015, 0.01244396436959505, -0.0050902822986245155, -0.004567048512399197, 0.0009523562621325254, 0.008646377362310886, -0.012576548382639885, 0.040684375911951065, 0.03988887369632721, 0.01396868098527193, 0.04719993844628334, 0.04909399524331093, 0.007462590467184782, 0.018722768872976303, 0.03348695486783981, 0.01644989848136902, 0.03695308044552803, 0.016800299286842346, -0.007850872352719307, 0.03589240834116936, -0.026194829493761063, 0.023959839716553688, -0.03685837984085083, -0.016790827736258507, -0.035002201795578, -0.03507796302437782, -0.028998035937547684, -0.004074593540281057, 0.005104487761855125, 0.003430613549426198, -0.003556094830855727, 0.03147925063967705, -0.04443461075425148, 0.02822147123515606, 0.02231200970709324, -0.027558552101254463, 0.06314790993928909, 0.02793736197054386, -0.022880226373672485, 0.12281075119972229, 0.015663864091038704, 0.0030707423575222492, -0.034850675612688065, -0.010123742744326591, 0.019906554371118546, -0.01118441578000784, -0.02386513724923134, -0.05894310027360916, 0.0025048924144357443, 0.0354757159948349, -0.0014892035396769643, -0.016610892489552498, 0.04136623814702034, 0.027047155424952507, -0.005762672983109951, -0.008594290353357792, 0.04863942414522171, 0.00824862439185381, -0.010369970463216305, 0.023296918720006943, 0.034850675612688065, 0.011383291333913803, 0.07856554538011551, 0.00389939290471375, -0.00006614407175220549, -0.024092424660921097, 0.03714248538017273, 0.020171722397208214, -0.03996463492512703, -0.01915840245783329, -0.0219710785895586, 0.07155752927064896, 0.002102404832839966, 0.009972218424081802, -0.06212512031197548, -0.007415239233523607, 0.04409368336200714, 0.07045897841453552, 0.03663109242916107, -0.07458802312612534, 0.008594290353357792, 0.018599653616547585, 0.05773090198636055, -0.018628064543008804, -0.04769239202141762, -0.05882945656776428, 0.030437519773840904, 0.0013992356834933162, 0.039207011461257935, -0.03087315335869789, 0.005085546988993883, -0.05864005163311958, -0.009063069708645344, 0.003643695032224059, 0.003958582412451506, -0.036441683769226074, -0.0004726267943624407, -0.009086745791137218, 0.05197296664118767, -0.0067901997826993465, -0.053980667144060135, -0.016743477433919907, -0.0008588371565565467, -0.005374391097575426, -0.031744420528411865, -0.043449703603982925, -0.02685774862766266, 0.02386513724923134, 0.010474143549799919, 0.018381837755441666, 0.06829974800348282, 0.008442766033113003, -0.020001258701086044, 0.05754149705171585, -0.03564618155360222, -0.03354377672076225, -0.03560829907655716, 0.017283283174037933, -0.037956930696964264, -0.03428245708346367, 0.06409493833780289, 0.03513478487730026, 0.03386576473712921, -0.02941472828388214, 0.005175515078008175, -0.06299638748168945, -0.04564680904150009, 0.03589240834116936, -0.028354056179523468, -0.0005972203216515481, 0.018107200041413307, -0.02390301786363125, 0.046252910047769547, 0.04617714509367943, 0.07364099472761154, 0.05439735949039459, -0.04166928678750992, -0.026043305173516273, -0.004261631518602371, 0.009924866259098053, 0.0030518018174916506, 0.009962747804820538, -0.0002656121214386076, -0.021516503766179085, 0.05742785334587097, -0.04988950118422508, -0.08765702694654465, -0.015635453164577484, -0.06223876401782036, 0.04981373995542526, -0.01947092078626156, -0.018741708248853683, 0.05038195475935936, 0.009636023081839085, 0.0414041206240654, -0.001729512121528387, 0.09811223298311234, -0.005128163378685713, 0.07909588515758514, -0.005459623411297798, -0.024395473301410675, 0.012017801403999329, -0.016743477433919907, -0.002980774501338601, 0.10099119693040848, -0.02822147123515606, -0.01041732169687748, -0.003414040431380272, -0.023997720330953598, -0.019641386345028877, -0.0014667115174233913, 0.012292440049350262, 0.0020881996024399996, -0.02943366952240467, 0.00964075792580843, -0.0208914652466774, -0.004832216538488865, 0.021232396364212036, 0.011667400598526001, -0.09129361808300018, -0.015436576679348946, -0.05587472394108772, 0.023183276876807213, 0.06867855787277222, -0.008177598007023335, 0.025891778990626335, 0.02369467169046402, 0.05424583703279495, -0.04026768356561661, -0.013940270990133286, 0.06326155364513397, 0.016800299286842346, -0.04837425425648689, -0.008513793349266052, -0.05166991427540779, 0.018182961270213127, 0.05049559846520424, 0.037748586386442184, -0.055495914071798325, -0.01413914654403925, 0.05731420964002609, -0.009332973510026932, 0.016563542187213898, -0.05807183310389519, 0.09106633067131042, 0.014224379323422909, -0.03200959041714668, 0.01542710606008768, 0.0020645237527787685, -0.019660327583551407, 0.024717463180422783, 0.03074057027697563, 0.06007953733205795, -0.00554959150031209, 0.0034566568210721016, -0.000691331340931356, -0.033070262521505356, 0.06322367489337921, 0.01775679923593998, 0.040722258388996124, -0.0017922528786584735, -0.03449080511927605, 0.023410562425851822, -0.06720119714736938, 0.03119514323771, 0.022615058347582817, -0.02666834369301796, 0.09333920478820801, 0.09977900236845016, 0.0024977896828204393, -0.03735083341598511, -0.0073252711445093155, 0.03700990229845047, -0.028770748525857925, 0.005985225085169077, -0.037616003304719925, 0.008149187080562115, 0.027634313330054283, -0.04272995889186859, -0.03115726262331009, -0.04174504801630974, -0.011828395538032055, 0.06735271960496902, 0.04151776060461998, 0.03551359847187996, -0.04898035153746605, -0.02971777878701687, 0.023088572546839714, 0.019641386345028877, -0.02528568170964718, 0.03433927893638611, -0.056973278522491455, 0.0356651209294796, -0.0680345818400383, 0.05757937952876091, -0.002148572588339448, 0.00822494924068451, 0.009868044406175613, -0.04007827863097191, 0.03879031911492348, 0.061291731894016266, 0.04435884952545166, -0.029964005574584007, -0.025702374055981636, -0.014177028089761734, -0.028581343591213226, -0.01323946937918663, 0.02214154414832592, -0.023353740572929382, -0.07636843621730804, 0.006013635545969009, 0.051025934517383575, 0.024471236392855644, 0.07580021768808365, 0.0051897200755774975, 0.014565309509634972, -0.04701053351163864, -0.0017839663196355104, 0.018950054422020912, -0.04621502757072449, -0.030191292986273766, -0.024187127128243446, 0.020133841782808304, 0.009773341938853264, 0.05356397479772568, 0.0029618339613080025, 0.042123861610889435, 0.011544286273419857, -0.034850675612688065, -0.04011615738272667, -0.02085358463227749, 0.005274952854961157, -0.04886670783162117, 0.033449072390794754, -0.03850620985031128, -0.04568469151854515, -0.010938188061118126, -0.025588730350136757, -0.03117620386183262, 0.017387457191944122, -0.0022172322496771812, 0.043487582355737686, 0.03348695486783981, 0.014716834761202335, 0.0010245672892779112, 0.022747643291950226, -0.01614684797823429, -0.0325588658452034, -0.0020136209204792976, -0.01264284085482359, 0.046404432505369186, -0.03856303170323372, -0.1041732206940651, 0.03081633150577545, -0.015919562429189682, 0.0017117554089054465, 0.05136686563491821, -0.007173746358603239, 0.012245087884366512, 0.010038509964942932, -0.05898098275065422, -0.029035916551947594, -0.03250204399228096, 0.004263999406248331, 0.012292440049350262, 0.0057058511301875114, -0.03570300340652466, 0.004252161365002394, -0.0005045889993198216, -0.03555147722363472, 0.04852578043937683, 0.040873780846595764, -0.030532222241163254, -0.004526800010353327, -0.005355450324714184, -0.0248879287391901, 0.033202845603227615, -0.028448758646845818, -0.02520991861820221, -0.019584564492106438, -0.0596628412604332, 0.004967168439179659, 0.042085979133844376, -0.039282772690057755, 0.001839604345150292, -0.052351776510477066, 0.027558552101254463, 0.026119066402316093, -0.009110420942306519, 0.016752947121858597, 0.012197736650705338, 0.019546683877706528, 0.04856365919113159, 0.05291999503970146, -0.047843918204307556, -0.0660647600889206, 0.06758000701665878, 0.04257843643426895, -0.01635519601404667, -0.027085036039352417, 0.017141228541731834, 0.014091795310378075, 0.10606727749109268, -0.005497504957020283, 0.011440113186836243, 0.04860154166817665, -0.050685007125139236, -0.002869498683139682, -0.003650797763839364, -0.021270276978611946, -0.03541889414191246, 0.01107077207416296, -0.03977522999048233, 0.024035602807998657, 0.022690821439027786, -0.014034973457455635, -0.02663046307861805, 0.009688109159469604, -0.020228544250130653, -0.04576045274734497, 0.03214217349886894, 0.055571675300598145, 0.03844938799738884, -0.05731420964002609, 0.028581343591213226, 0.011705281212925911, -0.024319712072610855, 0.006520296446979046, -0.025418264791369438, 0.05295787751674652, -0.011601108126342297, -0.043487582355737686, 0.010815073736011982, 0.0029642016161233187, -0.019603505730628967, 0.010701430961489677, 0.052541181445121765, 0.08530839532613754, 0.0011683973716571927, -0.06614052504301071, -0.015758566558361053, -0.06905737519264221, -0.13516001403331757, -0.04155564308166504, 0.007169011514633894, -0.011402232572436333, 0.03697202354669571, 0.012292440049350262, -0.01630784384906292, 0.036441683769226074, 0.02520991861820221, 0.0006339176907204092, -0.05769302323460579, -0.01550286915153265, -0.06716331094503403, 0.03672579303383827, -0.038903962820768356, 0.02814571000635624, 0.030437519773840904, 0.00404855003580451, -0.008570614270865917, 0.023315859958529472, 0.012150385417044163, 0.02064523845911026, -0.04166928678750992, -0.07083778828382492, 0.01920575276017189, -0.03147925063967705, -0.013817156665027142, 0.024546997621655464, 0.03738871589303017, -0.04295724630355835, -0.03225581720471382, 0.03725612908601761, 0.004896141123026609, 0.0012548137456178665, -0.009039394557476044, -0.004678324330598116, -0.0050429305993020535, -0.013883449137210846, 0.02365679107606411, -0.036062873899936676, -0.00745785515755415, -0.03951006010174751, 0.028789689764380455, -0.06829974800348282, 0.0015247170813381672, -0.005819494836032391, -0.015597571618855, 0.05352609232068062, -0.11023420840501785, 0.03869561478495598, 0.007685142569243908, 0.020058078691363335, -0.027160799130797386, 0.004744616337120533, -0.05473829060792923, -0.06322367489337921, 0.016961293295025826, 0.004569415934383869, -0.03723718971014023, -0.00176620960701257, 0.02956625260412693, 0.04416944459080696, -0.05201084539294243, -0.003894657827913761, 0.043639108538627625, 0.028998035937547684, -0.03977522999048233, -0.010559376329183578, -0.03494537994265556, 0.0590946264564991, 0.028524521738290787, -0.026156947016716003, -0.046404432505369186, -0.031744420528411865, 0.009972218424081802, -0.0044463025406003, -0.06519349664449692, -0.0323694609105587, -0.03288085386157036, 0.007604645099490881, 0.06375400722026825, -0.009044129401445389, -0.02687668986618519, -0.0082344189286232, -0.032047469168901443, -0.01937621831893921, 0.01603320613503456, -0.009015718474984169, 0.04939704388380051, -0.09235429018735886, -0.023107513785362244, -0.05212448909878731, -0.05174567922949791, 0.02055053412914276, 0.024660641327500343, -0.015322932973504066, 0.051253221929073334, -0.0020349291153252125, 0.038979724049568176, 0.02786160074174404, -0.02666834369301796, -0.06314790993928909, -0.021686969324946404, 0.050836529582738876, 0.004484183620661497, -0.03526736795902252, -0.030210232362151146, -0.011411702260375023, -0.0028008390218019485, 0.022993870079517365, 0.05231389403343201, 0.023940900340676308, -0.025740254670381546, 0.056897517293691635, -0.036176517605781555, 0.033127084374427795, 0.03854409232735634, 0.012917478568851948, 0.03238840028643608, 0.022804465144872665, 0.019944436848163605, -0.05212448909878731, 0.002942893421277404, -0.010710900649428368, -0.012936419807374477, -0.014224379323422909, -0.033202845603227615, -0.018031436949968338, 0.004181134048849344, -0.036346983164548874, -0.018059847876429558, -0.026213768869638443, -0.08311128616333008, -0.019849732518196106, -0.06651933491230011, 0.0010221997508779168, 0.03992675244808197, -0.019906554371118546, 0.019698208197951317, -0.030759509652853012, -0.03691520169377327, 0.008949426002800465, 0.04454825446009636, 0.015086175873875618, -0.024528058245778084, 0.06117808818817139, 0.03414987400174141, -0.014177028089761734, -0.003099153283983469, 0.005407536868005991, -0.004233220592141151, 0.005985225085169077, -0.043601226061582565, 0.0029642016161233187, 0.03513478487730026, 0.030323876067996025, 0.01785150170326233, -0.07818673551082611, -0.04579833522439003, -0.0012642840156331658, 0.02674410678446293, -0.05352609232068062, 0.017292754724621773, -0.0320853516459465, -0.018391307443380356, -0.014195968396961689, 0.02212260290980339, 0.042237505316734314, 0.039472177624702454, -0.02647893875837326, 0.02375149354338646, 0.03386576473712921, 0.010824544355273247, 0.03144137188792229, -0.021327098831534386, 0.000986686092801392, -0.006212512031197548, -0.0048014381900429726, -0.02956625260412693, -0.03733189404010773, -0.04981373995542526, 0.034812796860933304, -0.006619734689593315, -0.01791779324412346, 0.01644989848136902, 0.01772838830947876, -0.048146966844797134, -0.01936674863100052, 0.046593837440013885, -0.008329122327268124, 0.01901634782552719, 0.007978721521794796, 0.021819554269313812, 0.005838435143232346, -0.0018999774474650621, 0.003567932639271021, 0.011335940100252628, 0.00888786930590868, 0.06481467932462692, 0.03678261488676071, -0.052351776510477066, 0.03117620386183262, 0.00951290875673294, 0.04871518537402153, 0.0042924098670482635, -0.034528687596321106, 0.0321800522506237, 0.04303300753235817, -0.013059533201158047, -0.03289979696273804, 0.03824103996157646, -0.08742973953485489, 0.07580021768808365, 0.03121408447623253, 0.0059994300827383995, 0.0053175692446529865, 0.04621502757072449, -0.05185932293534279, 0.01026579737663269, -0.06386765092611313, -0.06451163440942764, -0.07523200660943985, -0.02933896705508232, -0.033354371786117554, 0.07193633913993835, 0.059700723737478256, 0.007429444696754217, 0.0235242061316967, 0.0709514319896698, 0.030626926571130753 ]
718,192
pytorch_optimizer.optimizer.shampoo
Shampoo
Preconditioned Stochastic Tensor Optimization. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param momentum: float. momentum. :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 preconditioning_compute_steps: int. performance tuning params for controlling memory and compute requirements. How often to compute pre-conditioner. :param matrix_eps: float. term added to the denominator to improve numerical stability.
class Shampoo(Optimizer, BaseOptimizer): r"""Preconditioned Stochastic Tensor Optimization. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param momentum: float. momentum. :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 preconditioning_compute_steps: int. performance tuning params for controlling memory and compute requirements. How often to compute pre-conditioner. :param matrix_eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, momentum: float = 0.0, weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, preconditioning_compute_steps: int = 1, matrix_eps: float = 1e-6, ): self.validate_learning_rate(lr) self.validate_range(momentum, 'momentum', 0.0, 1.0) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_step(preconditioning_compute_steps, 'preconditioning_compute_steps') self.validate_non_negative(matrix_eps, 'matrix_eps') self.preconditioning_compute_steps = preconditioning_compute_steps defaults: DEFAULTS = { 'lr': lr, 'momentum': momentum, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'matrix_eps': matrix_eps, } super().__init__(params, defaults) def __str__(self) -> str: return 'Shampoo' @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 @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 momentum = group['momentum'] 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: if momentum > 0.0: state['momentum_buffer'] = grad.clone() for dim_id, dim in enumerate(grad.size()): state[f'pre_cond_{dim_id}'] = group['matrix_eps'] * torch.eye(dim, out=grad.new(dim, dim)) state[f'inv_pre_cond_{dim_id}'] = grad.new(dim, dim).zero_() if momentum > 0.0: grad.mul_(1.0 - momentum).add_(state['momentum_buffer'], alpha=momentum) self.apply_weight_decay( p=p, grad=p.grad, lr=group['lr'], weight_decay=group['weight_decay'], weight_decouple=group['weight_decouple'], fixed_decay=group['fixed_decay'], ) order: int = grad.ndimension() original_size: int = grad.size() for dim_id, dim in enumerate(grad.size()): pre_cond, inv_pre_cond = state[f'pre_cond_{dim_id}'], state[f'inv_pre_cond_{dim_id}'] grad = grad.transpose_(0, dim_id).contiguous() transposed_size = grad.size() grad = grad.view(dim, -1) grad_t = grad.t() pre_cond.add_(grad @ grad_t) if group['step'] % self.preconditioning_compute_steps == 0: inv_pre_cond.copy_(compute_power_svd(pre_cond, order)) if dim_id == order - 1: grad = grad_t @ inv_pre_cond grad = grad.view(original_size) else: grad = inv_pre_cond @ grad grad = grad.view(transposed_size) state['momentum_buffer'] = grad p.add_(grad, alpha=-group['lr']) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, momentum: float = 0.0, weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, preconditioning_compute_steps: int = 1, matrix_eps: float = 1e-06)
[ -0.020770363509655, -0.03863126039505005, -0.014335187152028084, -0.006359408609569073, 0.009329489432275295, -0.0023778327740728855, -0.056451745331287384, -0.023922286927700043, 0.004008094314485788, 0.01887112855911255, -0.020709749311208725, -0.007101928815245628, 0.031600046902894974, 0.06097758561372757, -0.035176265984773636, 0.07354486733675003, 0.03764123097062111, 0.010769069194793701, -0.0009035259718075395, -0.0011156746186316013, 0.004338945262134075, -0.09617405384778976, 0.003442364512011409, 0.07697965204715729, -0.03273150697350502, -0.011728789657354355, 0.0004934350145049393, -0.02046729438006878, -0.06146249547600746, -0.021901823580265045, -0.00847584381699562, -0.02636704593896866, 0.029114875942468643, -0.006445277947932482, 0.06550341844558716, -0.025579065084457397, 0.010981217958033085, 0.019739927724003792, -0.053461458534002304, -0.030084699392318726, 0.043965283781290054, -0.04428855702280998, 0.019315630197525024, -0.04073254019021988, 0.002550835022702813, 0.004242972936481237, 0.004977916367352009, 0.04570288211107254, 0.0018474612152203918, -0.000049446105549577624, 0.04590492695569992, -0.05281491205096245, 0.02266959846019745, -0.012334928847849369, -0.03604506701231003, 0.019780335947871208, 0.06998884677886963, -0.028892625123262405, 0.02396269515156746, -0.06158372387290001, 0.06954434514045715, -0.023033281788229942, 0.028710784390568733, -0.005318869836628437, -0.003649462014436722, -0.046147383749485016, -0.03034736029803753, -0.03764123097062111, 0.03624711185693741, 0.021901823580265045, -0.009799247607588768, -0.0036923966836184263, 0.0325496643781662, 0.0049652885645627975, -0.013153216801583767, -0.05006708204746246, -0.01377956010401249, -0.08542519062757492, -0.019891461357474327, -0.06699856370687485, 0.01957828924059868, 0.02176039107143879, -0.055158648639917374, -0.009723479859530926, 0.008455638773739338, -0.043157096952199936, 0.013920992612838745, -0.001594903296791017, -0.010516511276364326, -0.058270163834095, -0.018345806747674942, 0.02565988525748253, 0.027902599424123764, 0.029478561133146286, 0.10021498054265976, 0.03143841028213501, -0.033176008611917496, -0.05798729881644249, 0.003318611066788435, -0.017638644203543663, 0.01647687889635563, 0.07419141381978989, 0.004791023675352335, 0.059118758887052536, 0.04283382371068001, -0.0117186876013875, -0.031701069325208664, -0.01936614140868187, 0.026690321043133736, -0.10393263399600983, -0.035580359399318695, 0.022790826857089996, -0.0678875669836998, -0.025498246774077415, 0.006808961275964975, -0.027599528431892395, 0.000613400072325021, 0.027700552716851234, 0.015476749278604984, 0.03242843598127365, 0.024386992678046227, 0.008546560071408749, -0.036590591073036194, 0.0018853448564186692, 0.01895194686949253, 0.00516733480617404, 0.058431800454854965, 0.03426705673336983, 0.010016446933150291, -0.06396786868572235, -0.05507783219218254, 0.0019686890300363302, -0.026124591007828712, 0.020830977708101273, 0.011102446354925632, -0.02964019775390625, -0.004159628879278898, 0.04691515862941742, -0.02016422338783741, 0.0025887186639010906, 0.05491619557142258, -0.00531381880864501, -0.04178318381309509, 0.02036627009510994, -0.0003895706031471491, -0.017416393384337425, 0.05010749027132988, 0.014082629233598709, 0.02394249103963375, 0.01865897886455059, 0.016588004305958748, 0.010455898009240627, 0.01796191930770874, -0.022588780149817467, -0.010299311950802803, 0.002049507573246956, -0.008349564857780933, -0.026811549440026283, -0.013213830068707466, 0.01117316260933876, -0.047763753682374954, -0.0506732203066349, -0.027599528431892395, -0.008824373595416546, -0.01765885017812252, 0.011355004273355007, 0.00927897822111845, 0.007440356072038412, -0.021821003407239914, 0.03414583206176758, 0.051238950341939926, -0.0671197921037674, 0.03885351121425629, 0.0319233201444149, -0.03151922672986984, 0.07605023682117462, 0.010051805526018143, 0.01127418503165245, -0.026629706844687462, -0.04501592367887497, 0.024972926825284958, -0.016244525089859962, -0.04323791712522507, -0.06214945390820503, -0.02137650176882744, 0.04259136691689491, 0.0018575635040178895, -0.019881360232830048, 0.0020242517348378897, 0.0678875669836998, -0.0183660127222538, -0.03741898015141487, 0.028670374304056168, 0.03162025287747383, -0.012870351783931255, 0.0002672378614079207, 0.02943815104663372, -0.016527390107512474, 0.050147898495197296, 0.03519647195935249, -0.009667917154729366, 0.008076801896095276, 0.053259413689374924, 0.030771655961871147, 0.0024308699648827314, -0.024669857695698738, -0.014011912979185581, 0.04461183026432991, -0.011880324222147465, 0.022002846002578735, -0.06453359872102737, -0.022912055253982544, 0.0440865084528923, 0.050754040479660034, 0.031701069325208664, -0.03123636357486248, 0.04861234873533249, 0.02214427851140499, 0.036570385098457336, -0.017628543078899384, 0.020790567621588707, -0.05329982191324234, -0.02865017019212246, 0.026387251913547516, 0.04570288211107254, -0.0009041573503054678, 0.015941455960273743, -0.03699468448758125, -0.00037315432564355433, -0.01123377587646246, 0.03174147754907608, -0.03661079704761505, -0.01947726681828499, -0.007975779473781586, 0.03982333093881607, 0.007324179634451866, -0.03895453363656998, 0.003896968672052026, -0.0037605874240398407, -0.035661179572343826, -0.03475197032094002, -0.041864000260829926, 0.0042076148092746735, 0.011688380502164364, 0.008708196692168713, -0.010496307164430618, 0.06029062718153, 0.02404351346194744, -0.02234632521867752, 0.026225613430142403, -0.029175490140914917, -0.02194223180413246, -0.030872680246829987, 0.009910373017191887, -0.04808702692389488, -0.010289209894835949, 0.05047117546200752, 0.030872680246829987, 0.003851508256047964, -0.04921848699450493, -0.0385100319981575, -0.07815152406692505, -0.03283252939581871, 0.013133011758327484, 0.011365106329321861, -0.003601475851610303, 0.0035282340832054615, 0.014183652587234974, 0.011748994700610638, 0.04275300353765488, 0.08291981369256973, 0.05431005358695984, -0.06728143244981766, -0.010082111693918705, -0.011051934212446213, -0.003283252939581871, -0.01033466961234808, 0.01162776630371809, 0.018012430518865585, 0.01222380343824625, 0.017830589786171913, -0.05390596389770508, -0.046147383749485016, -0.016335446387529373, -0.037984710186719894, 0.0575023852288723, -0.015577772632241249, -0.02713482268154621, 0.07233259081840515, 0.015648487955331802, 0.02576090767979622, 0.025215381756424904, 0.0696655735373497, -0.0337013304233551, 0.07798988372087479, 0.013951299712061882, -0.026286227628588676, 0.03416603431105614, 0.010870092548429966, -0.027114618569612503, 0.11516641080379486, -0.018527649343013763, -0.026670116931200027, -0.00396768469363451, -0.014385699294507504, -0.02505374513566494, 0.00019083908409811556, 0.016830459237098694, 0.02176039107143879, -0.030973702669143677, 0.020194530487060547, -0.03374173864722252, -0.035398516803979874, 0.015557567588984966, 0.06380623579025269, -0.08247531205415726, 0.007637351285666227, -0.048450712114572525, 0.02523558773100376, 0.0906783938407898, -0.010375079698860645, 0.02085118182003498, 0.020214736461639404, 0.0199520755559206, -0.06441237032413483, -0.08599092066287994, 0.01187022216618061, -0.02535681426525116, -0.039257604628801346, 0.0009919211734086275, -0.03511565178632736, 0.016133399680256844, 0.03044838272035122, 0.03166066110134125, -0.05006708204746246, -0.026973186060786247, 0.03570158779621124, 0.030387768521904945, -0.03242843598127365, -0.056734610348939896, 0.09011266380548477, 0.02236652933061123, -0.009758837521076202, 0.04529878869652748, -0.024184945970773697, -0.055158648639917374, 0.009359796531498432, 0.009738633409142494, 0.027761166915297508, -0.0002437183866277337, 0.017537621781229973, 0.019194401800632477, 0.0034575178287923336, 0.09148658066987991, 0.07233259081840515, 0.019133787602186203, -0.03412562608718872, -0.01276932843029499, 0.03319621458649635, -0.05778525024652481, 0.034792378544807434, 0.017113324254751205, -0.001952272723428905, 0.07289832085371017, 0.05160263553261757, -0.016941584646701813, -0.00793536938726902, -0.02434658259153366, 0.016325343400239944, -0.03323662281036377, 0.0013979080831632018, -0.09140576422214508, -0.0070716217160224915, -0.007248412352055311, -0.05099649354815483, 0.0030635276343673468, -0.041661955416202545, -0.012031858786940575, 0.022608984261751175, 0.0002992811205331236, 0.07532287389039993, -0.00486426567658782, 0.0032554715871810913, 0.0038742385804653168, 0.0020457191858440638, -0.0038742385804653168, 0.01966921053826809, -0.008006085641682148, 0.07815152406692505, -0.06045226380228996, 0.011011525057256222, -0.011567153036594391, 0.03422664850950241, -0.009910373017191887, -0.05071362853050232, 0.05366350710391998, 0.061341267079114914, 0.055037420243024826, -0.05071362853050232, -0.020729953423142433, 0.007905063219368458, -0.05467373877763748, 0.014931224286556244, 0.02586193010210991, -0.029276514425873756, -0.08873874694108963, 0.011860120110213757, 0.05976530537009239, 0.0010039177723228931, 0.11241857707500458, -0.0031847553327679634, 0.002965030027553439, -0.012708714231848717, 0.01925501599907875, -0.009142596274614334, -0.045379605144262314, -0.03200414031744003, 0.005197641905397177, 0.038065530359745026, 0.03501462936401367, 0.03652997687458992, -0.000943303806707263, 0.06271518021821976, 0.022083664312958717, 0.010107368230819702, -0.0011384048266336322, -0.06869575381278992, 0.0062028225511312485, -0.053623098880052567, 0.017224449664354324, -0.014951428398489952, -0.031499024480581284, -0.005778525024652481, -0.024083923548460007, -0.025700293481349945, 0.007910113781690598, 0.010455898009240627, 0.055643562227487564, 0.02315451018512249, -0.0053390744142234325, 0.0443289652466774, -0.01765885017812252, 0.017133528366684914, -0.03220618516206741, -0.0045814006589353085, -0.0020596098620444536, 0.00768786296248436, 0.0007343121687881649, -0.06198781728744507, 0.025134563446044922, 0.028407715260982513, 0.01664861850440502, 0.028569351881742477, -0.003697447944432497, 0.010920604690909386, -0.006430124398320913, -0.012718817219138145, -0.03919699043035507, -0.027175232768058777, -0.016588004305958748, 0.013244137167930603, 0.04291464015841484, -0.05083485692739487, -0.011577255092561245, 0.02505374513566494, -0.013405774720013142, 0.04901644214987755, -0.01561818178743124, -0.005925008561462164, -0.0018676657928153872, 0.027478301897644997, -0.01916409470140934, 0.017749769613146782, -0.01955808512866497, -0.04481387883424759, 0.001775482203811407, -0.07883848249912262, 0.02493251860141754, 0.030104903504252434, 0.0069604963064193726, 0.02844812348484993, -0.052047137171030045, 0.026165001094341278, 0.049258895218372345, 0.0061270552687346935, -0.009652763605117798, 0.008450588211417198, 0.0057128602638840675, 0.04897603020071983, 0.043763235211372375, -0.039520263671875, -0.04352078214287758, 0.08704156428575516, 0.035499539226293564, -0.04772334545850754, -0.005445148795843124, 0.0017211822560057044, 0.004692526068538427, 0.07015048712491989, 0.004841535352170467, 0.013345160521566868, 0.002447286155074835, -0.07665637880563736, 0.023700034245848656, 0.038388803601264954, -0.03374173864722252, -0.01775987260043621, 0.021396707743406296, -0.04570288211107254, 0.0117186876013875, 0.0030660531483590603, -0.034388285130262375, 0.002808443969115615, 0.012244007550179958, -0.005283511709421873, -0.0440865084528923, -0.02396269515156746, 0.07996994256973267, 0.013415876775979996, -0.05806811526417732, 0.02976142428815365, 0.04687475040555, -0.05152181535959244, -0.004889521282166243, -0.00978914462029934, 0.01955808512866497, -0.017527518793940544, -0.05996735394001007, 0.06817043572664261, 0.007465612143278122, 0.003207485657185316, -0.032489050179719925, 0.0053693815134465694, 0.07213053852319717, 0.030205927789211273, -0.003050899598747492, 0.011738891713321209, -0.05289573222398758, -0.0315394327044487, -0.05350187048316002, 0.004750614520162344, 0.01351690012961626, 0.02155834436416626, -0.009531536139547825, -0.019729824736714363, 0.06643283367156982, -0.013082500547170639, 0.038570646196603775, -0.09916434437036514, -0.025821521878242493, -0.06675610691308975, 0.008268746547400951, -0.012739021331071854, 0.055845607072114944, 0.04683434218168259, -0.002177049173042178, -0.009243619628250599, 0.030872680246829987, 0.0012968849623575807, 0.049460943788290024, -0.04119724780321121, -0.0638466402888298, 0.024669857695698738, -0.010950911790132523, -0.02705400437116623, 0.013052193447947502, 0.01441600639373064, -0.025983158499002457, -0.02994326688349247, 0.04590492695569992, 0.02624581940472126, -0.025902340188622475, 0.024386992678046227, 0.026993390172719955, -0.017588132992386818, -0.017628543078899384, 0.02555886097252369, -0.03840900957584381, -0.0026821650099009275, -0.03493381291627884, 0.05418882519006729, -0.060533080250024796, -0.03246884420514107, -0.0050360048189759254, 0.007591891102492809, 0.027296459302306175, -0.08970857411623001, 0.03333764523267746, 0.0075666350312530994, -0.001525449799373746, -0.008263695053756237, 0.029074467718601227, -0.0030559508595615625, -0.04917807877063751, 0.0042808568105101585, -0.009531536139547825, -0.026468070223927498, -0.028104644268751144, 0.058350980281829834, 0.056936658918857574, -0.051562223583459854, 0.001216066419146955, 0.05257245525717735, 0.0022679700050503016, -0.002264181850478053, -0.04727884382009506, -0.02743789181113243, 0.04073254019021988, 0.04897603020071983, -0.03861105442047119, -0.008294002152979374, -0.03242843598127365, 0.00771311903372407, -0.0010468525579199195, -0.045177560299634933, -0.004977916367352009, -0.04073254019021988, 0.02784198522567749, 0.09156739711761475, -0.023073691874742508, 0.014082629233598709, -0.007319128606468439, -0.010950911790132523, 0.008172774687409401, -0.01698199473321438, -0.020538009703159332, 0.049258895218372345, -0.11363086104393005, -0.019780335947871208, -0.062432318925857544, -0.008208132348954678, -0.01826498843729496, 0.054148416966199875, -0.023437375202775, -0.009208261966705322, 0.0027301511727273464, 0.028488533571362495, 0.02574070356786251, -0.027720756828784943, -0.032792121171951294, -0.007066570688039064, 0.03881309926509857, 0.01835590973496437, -0.018032634630799294, -0.02137650176882744, -0.03392358124256134, 0.030104903504252434, -0.012870351783931255, 0.039782922714948654, 0.05418882519006729, -0.027478301897644997, 0.0440865084528923, -0.055643562227487564, 0.011163059622049332, 0.019012559205293655, 0.016214217990636826, 0.013365364633500576, 0.0014509452739730477, 0.025700293481349945, -0.03741898015141487, 0.027983417734503746, -0.0061270552687346935, 0.017537621781229973, 0.02135629765689373, -0.030872680246829987, -0.020689545199275017, 0.008107108995318413, 0.003715127008035779, 0.018335705623030663, 0.016123296692967415, -0.08978939056396484, -0.0012930965749546885, -0.07015048712491989, -0.03434787690639496, 0.032307207584381104, 0.004412186797708273, 0.03519647195935249, -0.03412562608718872, -0.08215203881263733, -0.04214686527848244, 0.0399041511118412, 0.006233129650354385, -0.006334152538329363, 0.02396269515156746, 0.038772691041231155, -0.027114618569612503, -0.039782922714948654, -0.005717911291867495, -0.027922803536057472, -0.022124074399471283, -0.035681381821632385, 0.010809479281306267, 0.028811806812882423, 0.0038767640944570303, 0.0371159128844738, -0.06930189579725266, -0.0526936836540699, 0.011375208385288715, 0.052047137171030045, -0.06214945390820503, 0.014597848057746887, -0.013830071315169334, -0.029417946934700012, -0.012547077611088753, 0.008571815676987171, 0.05940162390470505, -0.01726485975086689, -0.028286486864089966, 0.03754020854830742, 0.02107343263924122, 0.010486205108463764, 0.01576971635222435, 0.022406939417123795, -0.025579065084457397, 0.030892884358763695, -0.028892625123262405, -0.0005215320852585137, -0.022225096821784973, -0.015810126438736916, 0.03291334956884384, 0.006228078156709671, -0.006273538805544376, 0.01147623173892498, 0.005053684115409851, -0.05047117546200752, -0.05063281208276749, 0.018113454803824425, -0.050269126892089844, 0.03885351121425629, -0.016830459237098694, 0.025215381756424904, 0.01796191930770874, 0.0038186756428331137, 0.0020381424110382795, 0.05891671031713486, -0.006359408609569073, 0.06364459544420242, 0.017537621781229973, -0.026326637715101242, 0.06029062718153, 0.03133738785982132, 0.038671668618917465, -0.044369373470544815, -0.028185464441776276, 0.02424556016921997, 0.019285323098301888, 0.00021120156452525407, -0.04574329033493996, 0.04513715207576752, -0.041864000260829926, 0.057138703763484955, -0.020770363509655, 0.003240318037569523, -0.013163318857550621, 0.055643562227487564, -0.0526936836540699, 0.010940808802843094, -0.04024763032793999, -0.08502110093832016, -0.10676128417253494, -0.016921380534768105, -0.04178318381309509, 0.05281491205096245, 0.03562076762318611, 0.010556921362876892, 0.013708843849599361, 0.03650977090001106, 0.029559379443526268 ]
718,194
pytorch_optimizer.optimizer.shampoo
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, momentum: float = 0.0, weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, preconditioning_compute_steps: int = 1, matrix_eps: float = 1e-6, ): self.validate_learning_rate(lr) self.validate_range(momentum, 'momentum', 0.0, 1.0) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_step(preconditioning_compute_steps, 'preconditioning_compute_steps') self.validate_non_negative(matrix_eps, 'matrix_eps') self.preconditioning_compute_steps = preconditioning_compute_steps defaults: DEFAULTS = { 'lr': lr, 'momentum': momentum, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'matrix_eps': matrix_eps, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, momentum: float = 0.0, weight_decay: float = 0.0, weight_decouple: bool = False, fixed_decay: bool = False, preconditioning_compute_steps: int = 1, matrix_eps: float = 1e-06)
[ 0.00882229395210743, -0.016207430511713028, -0.012934419326484203, 0.024793289601802826, -0.037217751145362854, -0.017366427928209305, -0.07232148945331573, -0.01566038280725479, -0.04124179109930992, 0.03376857191324234, -0.009605776518583298, 0.043912123888731, 0.02588738314807415, 0.06683246791362762, -0.034565962851047516, 0.04851102828979492, 0.022493837401270866, 0.0007029324187897146, -0.02434823289513588, -0.00014183239545673132, -0.0038154220674186945, -0.039980802685022354, 0.012517180293798447, 0.11994240432977676, 0.00109061726834625, 0.01646704599261284, -0.02466348186135292, 0.006805637385696173, -0.02347666770219803, 0.005145952105522156, -0.02623971924185753, 0.019378449767827988, -0.018080372363328934, 0.07603028416633606, 0.03946157172322273, -0.003827011911198497, -0.004135305527597666, 0.00008192668610718101, -0.0692431852221489, 0.041167616844177246, 0.03356458619236946, -0.020806334912776947, 0.06453301757574081, -0.035993847995996475, -0.014260313473641872, -0.006420849822461605, 0.03990662470459938, 0.013147675432264805, 0.017301524057984352, -0.03846019506454468, 0.012628444470465183, -0.015020616352558136, 0.04324454069137573, -0.052664875984191895, -0.05329537391662598, 0.025664854794740677, 0.07421296834945679, -0.0008182527380995452, 0.011552893556654453, -0.014037786051630974, -0.014714640565216541, -0.03284137323498726, 0.008048083633184433, 0.001095253275707364, 0.003864099970087409, -0.01653194986283779, -0.062085215002298355, -0.03801514208316803, 0.054000042378902435, 0.03682832792401314, 0.06453301757574081, -0.0039823176339268684, 0.003861781908199191, 0.004726394545286894, 0.02527543157339096, -0.020602351054549217, -0.06386543810367584, -0.07525143027305603, -0.0448022335767746, -0.015827279537916183, 0.01928572915494442, 0.04194646328687668, -0.048733554780483246, -0.03191417455673218, 0.017375700175762177, -0.0430590994656086, -0.028872963041067123, -0.031636014580726624, 0.013722538016736507, 0.008247431367635727, -0.04001788794994354, -0.004677716642618179, -0.02394026704132557, -0.010060104541480541, 0.08352204412221909, 0.03400964289903641, -0.0035905763506889343, -0.029299473389983177, 0.021807709708809853, -0.009100453928112984, -0.008715665899217129, 0.021714989095926285, -0.026072822511196136, -0.006323494017124176, 0.020695071667432785, -0.052627790719270706, -0.06609071046113968, -0.03321225196123123, 0.04966075345873833, -0.07261818647384644, -0.0427623949944973, 0.05974867567420006, -0.07484346628189087, 0.00984684843569994, -0.033583130687475204, 0.03972118720412254, 0.026944389566779137, -0.007477856241166592, 0.01616107113659382, 0.005706907249987125, 0.02449658513069153, 0.009735584259033203, -0.02824246697127819, 0.035993847995996475, 0.01939699426293373, -0.03671706095337868, 0.016402142122387886, 0.0270556528121233, 0.030986975878477097, -0.08240940421819687, 0.008117623627185822, -0.017505507916212082, -0.01677302084863186, -0.007463948335498571, -0.00048417149810120463, -0.03805222734808922, 0.015474943444132805, 0.034565962851047516, -0.05489015206694603, 0.022122956812381744, 0.06742587685585022, 0.019842049106955528, 0.002244979375973344, 0.030708815902471542, -0.027241094037890434, 0.0024501222651451826, -0.002464030170813203, 0.014807361178100109, -0.014464297331869602, 0.04257695749402046, 0.005841350648552179, 0.011015119031071663, 0.00490951631218195, -0.0077374717220664024, 0.008516318164765835, -0.015827279537916183, 0.033230796456336975, -0.024125706404447556, 0.011914500966668129, 0.02216004580259323, -0.04142723232507706, 0.017978379502892494, -0.004248887300491333, 0.0033124168403446674, -0.017978379502892494, 0.009717040695250034, -0.027760324999690056, -0.04721295088529587, -0.018655234947800636, 0.01304568350315094, 0.023217052221298218, -0.08990117162466049, 0.011654885485768318, 0.013954337686300278, -0.02364356257021427, 0.054259657859802246, 0.0389794260263443, 0.014983528293669224, -0.022215677425265312, -0.014816632494330406, 0.07428714632987976, 0.014696097001433372, -0.040796734392642975, -0.06512642651796341, 0.027092741802334785, 0.03671706095337868, -0.054815977811813354, 0.02388463355600834, -0.025256888940930367, 0.03510373830795288, 0.03738464415073395, 0.011330366134643555, 0.021881885826587677, 0.04702750965952873, -0.01442720927298069, 0.0058228070847690105, 0.07031873613595963, -0.0002422306133667007, 0.015845824033021927, 0.060750048607587814, 0.06052752211689949, 0.011793965473771095, 0.03434343263506889, -0.010273359715938568, 0.01943408139050007, -0.026128454133868217, -0.04098217561841011, 0.01785784400999546, -0.032470494508743286, -0.011849597096443176, -0.02175207808613777, -0.028261011466383934, 0.03423216938972473, 0.035585880279541016, 0.002640197752043605, -0.032711565494537354, 0.0004992384929209948, 0.027537796646356583, 0.012313196435570717, -0.027129828929901123, 0.0852280929684639, -0.008998461998999119, -0.021548094227910042, -0.010171367786824703, 0.03554879128932953, 0.005414839368313551, 0.007074525114148855, -0.05459345132112503, -0.06494098901748657, 0.042131900787353516, -0.027537796646356583, -0.0695028007030487, -0.03820057958364487, -0.009118997491896152, 0.06238191947340965, -0.016485590487718582, -0.03603093698620796, 0.05110718309879303, -0.055223945528268814, -0.007612300105392933, 0.00782555527985096, 0.02071361616253853, 0.024830376729369164, -0.004624402616173029, 0.03254466876387596, 0.000886633584741503, 0.05114427208900452, 0.01954534463584423, -0.04884481802582741, 0.0006925014313310385, -0.05188602954149246, -0.02900277078151703, -0.006722189486026764, 0.043615419417619705, -0.02292034775018692, 0.01734788529574871, 0.06327202916145325, 0.029095489531755447, 0.028965681791305542, 0.010162096470594406, 0.009921024553477764, -0.014844448305666447, 0.024478040635585785, 0.049697842448949814, 0.009146813303232193, -0.0029114035423845053, -0.03406527265906334, 0.012897332198917866, 0.020194385200738907, 0.009466697461903095, 0.10058249533176422, 0.02829810045659542, -0.007946091704070568, 0.007102340925484896, -0.000837376166600734, -0.036550167948007584, -0.037217751145362854, -0.04584069550037384, -0.03204398229718208, 0.047546740621328354, 0.007028164807707071, -0.05626240745186806, -0.005966522730886936, 0.008330878801643848, -0.030300848186016083, 0.010913127101957798, -0.028464995324611664, 0.02440386638045311, 0.0027908675838261843, -0.010087920352816582, -0.007222876884043217, 0.01653194986283779, 0.07973907142877579, 0.0071255206130445, 0.09984073787927628, -0.020287103950977325, 0.003430634504184127, 0.004399557132273912, 0.045803606510162354, -0.006694373674690723, 0.06275279819965363, -0.03100551851093769, 0.014093417674303055, -0.015502759255468845, -0.048473939299583435, -0.043615419417619705, 0.011497261933982372, 0.0485852025449276, 0.03538189455866814, 0.023161418735980988, 0.04680498316884041, 0.024997273460030556, 0.01079259067773819, 0.024218425154685974, 0.038237668573856354, -0.06230774149298668, 0.00734341237694025, -0.04843685030937195, 0.045951958745718, 0.039869535714387894, 0.027296725660562515, 0.042688220739364624, -0.009837576188147068, -0.0009017005795612931, -0.06976241618394852, -0.08359622210264206, 0.02542378380894661, -0.002473302185535431, -0.014566289260983467, 0.01489080861210823, -0.010366079397499561, 0.01815454661846161, 0.009763401001691818, -0.0005890608299523592, -0.0392761304974556, -0.03682832792401314, 0.016337238252162933, 0.046471189707517624, -0.009373976849019527, -0.01744987629354, 0.10125008225440979, -0.0026286079082638025, -0.012498636730015278, 0.011951589025557041, -0.011525077745318413, -0.05774592608213425, 0.016392869874835014, -0.026369526982307434, 0.0196380652487278, -0.002477938076481223, -0.029447825625538826, 0.014788816682994366, -0.013101315125823021, 0.061009664088487625, 0.022419661283493042, -0.0003051062813028693, -0.05040251463651657, -0.03222941979765892, 0.04272530972957611, -0.04691624641418457, 0.0241442508995533, 0.01683792471885681, -0.020194385200738907, 0.048473939299583435, 0.02138119749724865, -0.02138119749724865, -0.012257564812898636, -0.013314571231603622, 0.03419508412480354, 0.0041770292446017265, 0.01324966736137867, -0.06152889505028725, -0.011747605167329311, -0.006277134176343679, 0.00956868939101696, -0.00064614147413522, -0.04569234326481819, 0.02978161722421646, 0.03150620684027672, -0.00068728590849787, 0.01974932849407196, -0.024181338027119637, 0.03545607253909111, -0.028668979182839394, -0.02920675463974476, -0.008558042347431183, 0.015892183408141136, 0.049549490213394165, 0.07254401594400406, -0.003945229575037956, -0.01883140206336975, 0.0027143736369907856, 0.021455373615026474, -0.02855771593749523, -0.027667604386806488, 0.038497284054756165, 0.05255361273884773, 0.054408010095357895, -0.029633264988660812, -0.05437092110514641, -0.025961559265851974, -0.04220607876777649, -0.003252148861065507, 0.026425158604979515, -0.014074874110519886, -0.007663296069949865, 0.00258456589654088, 0.03419508412480354, 0.029132578521966934, 0.07966490089893341, 0.05422257259488106, -0.020917600020766258, -0.014093417674303055, 0.004728712607175112, -0.043207451701164246, -0.042168989777565, 0.009443516843020916, -0.048733554780483246, 0.04758382961153984, 0.004737984389066696, 0.025238344445824623, 0.02347666770219803, 0.08092588931322098, 0.028743155300617218, 0.04435717687010765, 0.049401137977838516, -0.026592053472995758, 0.01616107113659382, -0.028928594663739204, -0.053480811417102814, -0.06568274646997452, 0.015632567927241325, -0.023291228339076042, -0.008479231037199497, 0.0040031797252595425, 0.008952101692557335, 0.022382572293281555, 0.018747953698039055, -0.004568770993500948, -0.00046388900955207646, 0.03623491898179054, -0.0846346840262413, 0.01729225367307663, -0.04257695749402046, -0.0596374087035656, -0.015614023432135582, 0.015669655054807663, -0.020194385200738907, -0.07539978623390198, 0.028464995324611664, 0.02419988252222538, 0.01602199114859104, 0.023402491584420204, -0.039684098213911057, -0.004051857627928257, -0.015947815030813217, -0.020843423902988434, -0.02496018446981907, 0.033082444220781326, -0.031246591359376907, 0.04532146453857422, 0.011237646453082561, -0.01974932849407196, -0.03373148292303085, -0.041056349873542786, 0.004826068412512541, 0.05270196497440338, -0.00910972524434328, -0.01632796600461006, -0.010208455845713615, 0.03132076561450958, -0.0025196620263159275, 0.03801514208316803, -0.0375329963862896, -0.05429674685001373, 0.009939568117260933, -0.03643890097737312, -0.012239020317792892, 0.009118997491896152, -0.017765123397111893, -0.005841350648552179, -0.041835200041532516, 0.04198354855179787, 0.05500141903758049, 0.008122258819639683, -0.012081396766006947, -0.034769944846630096, -0.0002361458755331114, 0.017885660752654076, 0.024274058640003204, -0.08248358219861984, 0.01146017387509346, 0.05945197120308876, 0.06553439050912857, 0.01729225367307663, -0.01575310342013836, 0.01775585301220417, 0.017774395644664764, 0.0672033503651619, 0.016810109838843346, 0.010060104541480541, -0.018377074971795082, -0.03695813566446304, 0.01764458790421486, 0.023217052221298218, -0.035641513764858246, -0.05192311853170395, 0.009939568117260933, -0.017626043409109116, -0.008071263320744038, 0.0052294000051915646, 0.006096330471336842, -0.03371293842792511, 0.019378449767827988, -0.07654951512813568, -0.019934767857193947, -0.06245609372854233, 0.05767174810171127, -0.006170506123453379, -0.031079694628715515, 0.0369395911693573, 0.03871981054544449, 0.02277199551463127, -0.04491349682211876, -0.009207081981003284, 0.05377751588821411, 0.009522329084575176, -0.06761131435632706, 0.08181600272655487, 0.03816349059343338, -0.026944389566779137, -0.05489015206694603, -0.03304535523056984, 0.0675000548362732, -0.030634639784693718, 0.03949865698814392, 0.037940964102745056, -0.025776119902729988, -0.039980802685022354, -0.046879157423973083, 0.018970482051372528, 0.02102886326611042, 0.021399741992354393, -0.02926238626241684, -0.02496018446981907, 0.000025190101951011457, -0.012192660942673683, 0.0645701065659523, -0.07847808301448822, -0.019730785861611366, -0.004608176648616791, -0.02507144771516323, -0.06093548983335495, 0.010004471987485886, 0.03528917580842972, 0.016439229249954224, 0.03946157172322273, -0.0011323412181809545, 0.04242860525846481, 0.030263761058449745, -0.0442088283598423, -0.037069398909807205, 0.01260989997535944, 0.021511007100343704, -0.025924472138285637, -0.002363197272643447, -0.00961504876613617, -0.039164867252111435, -0.06913192570209503, 0.037421733140945435, 0.031691648066043854, -0.02716691792011261, 0.019322818145155907, 0.009828304871916771, -0.0593407079577446, 0.0007829032838344574, 0.018710866570472717, 0.021511007100343704, -0.014260313473641872, -0.04461679235100746, 0.006870541255921125, -0.035326264798641205, -0.052776142954826355, -0.06991077214479446, 0.0024176700972020626, -0.011423085816204548, -0.07391627132892609, 0.014464297331869602, -0.023142876103520393, -0.018849946558475494, 0.005196947604417801, 0.03106115199625492, -0.021418286487460136, -0.032303597778081894, -0.04843685030937195, 0.008497774600982666, -0.01682865433394909, -0.019415536895394325, 0.05099591985344887, 0.05489015206694603, -0.08826930075883865, -0.006425485946238041, 0.025405239313840866, 0.010709143243730068, -0.0114879896864295, -0.056002791970968246, -0.02486746571958065, 0.06323494017124176, 0.0242926012724638, -0.045506905764341354, 0.0034028186928480864, -0.03432489186525345, 0.0019274139776825905, -0.013138403184711933, -0.01557693537324667, -0.045506905764341354, -0.04992036893963814, 0.04150140658020973, 0.08292863517999649, -0.0114879896864295, -0.0062910420820117, -0.04257695749402046, -0.014983528293669224, 0.013036411255598068, -0.06356873363256454, 0.007236784789711237, 0.005451927427202463, -0.13841219246387482, 0.018024738878011703, -0.02112158201634884, 0.030968431383371353, 0.007746743969619274, -0.004529364872723818, -0.025201257318258286, 0.019786417484283447, -0.003059755079448223, 0.017125356942415237, 0.026536421850323677, 0.04001788794994354, -0.018237994983792305, 0.011747605167329311, 0.059229444712400436, -0.0034329525660723448, -0.020917600020766258, -0.02312433160841465, -0.02568339928984642, 0.016448501497507095, -0.01260989997535944, 0.07966490089893341, 0.05014289543032646, -0.0376628041267395, 0.05718960613012314, -0.04057420790195465, 0.02434823289513588, 0.0007162608671933413, 0.008247431367635727, -0.0114879896864295, 0.015437855385243893, 0.034603048115968704, -0.022901803255081177, -0.019322818145155907, -0.004955876152962446, 0.018710866570472717, 0.004017087630927563, 0.011617797426879406, -0.0003282862307969481, -0.015558391809463501, 0.0027004657313227654, -0.028372274711728096, 0.0019320499850437045, -0.03786678984761238, -0.022846171632409096, -0.008321606554090977, 0.012387372553348541, 0.05162641406059265, 0.028631890192627907, -0.0482885017991066, -0.05214564502239227, -0.0022160045336931944, -0.010607151314616203, 0.06349455565214157, 0.02900277078151703, -0.032563213258981705, -0.00872493814677, 0.007973907515406609, -0.03167310357093811, -0.06082422286272049, 0.042947836220264435, -0.026592053472995758, -0.019100289791822433, -0.05114427208900452, 0.0445055291056633, 0.03612365573644638, 0.004589632619172335, 0.019712241366505623, -0.026017190888524055, -0.11512096971273422, -0.043912123888731, 0.03421362489461899, -0.024311145767569542, -0.010097192600369453, 0.027352357283234596, -0.0750659927725792, 0.06757423281669617, 0.0020606988109648228, 0.043763771653175354, -0.007477856241166592, 0.0023319043684750795, 0.007259964477270842, -0.021511007100343704, 0.053072843700647354, 0.05919235572218895, 0.052516523748636246, -0.10955777764320374, 0.0014985846355557442, 0.031079694628715515, 0.06330911815166473, -0.03362021967768669, -0.034603048115968704, 0.005818170960992575, -0.016003446653485298, -0.04194646328687668, 0.012535723857581615, -0.021807709708809853, -0.027204005047678947, -0.05029124766588211, -0.04491349682211876, -0.016337238252162933, 0.0485852025449276, -0.02277199551463127, 0.031543295830488205, 0.025405239313840866, -0.010523703880608082, 0.019193010404706, 0.031135326251387596, -0.04035168141126633, 0.03745882213115692, 0.009531601332128048, 0.02445949800312519, 0.08300281316041946, 0.017208805307745934, 0.03560442477464676, -0.04528437554836273, -0.002969353226944804, -0.008015631698071957, 0.05489015206694603, -0.034102361649274826, -0.021677901968359947, 0.07810720801353455, 0.0020085438154637814, -0.01811745949089527, -0.03912777826189995, 0.027037110179662704, -0.004946604371070862, 0.020899055525660515, -0.05529811978340149, 0.005567827261984348, -0.03330497071146965, -0.07246983796358109, -0.08040665835142136, -0.014937168918550014, -0.05489015206694603, 0.056559111922979355, 0.04398629814386368, -0.016133254393935204, 0.024682024493813515, 0.06238191947340965, 0.0327301099896431 ]
718,197
pytorch_optimizer.optimizer.shampoo
__str__
null
def __str__(self) -> str: return 'Shampoo'
(self) -> str
[ 0.013041108846664429, -0.045348092913627625, 0.01729690656065941, -0.026541348546743393, 0.015010077506303787, -0.07550951838493347, 0.01751764304935932, 0.01848888397216797, 0.09126127511262894, -0.03284558281302452, -0.043688155710697174, 0.001914888620376587, -0.012652612291276455, 0.027000481262803078, 0.015071883797645569, 0.011752007529139519, 0.00022901405463926494, -0.062300652265548706, 0.017756039276719093, 0.026647303253412247, 0.02696516364812851, 0.03623609244823456, 0.04280520975589752, -0.021649830043315887, -0.025075659155845642, 0.06805745512247086, -0.012952813878655434, -0.016431620344519615, -0.03326939418911934, -0.006162961479276419, -0.0022846220526844263, -0.05986372008919716, 0.033498961478471756, -0.00040863832691684365, -0.02104942686855793, 0.01402117870748043, -0.04442983120679855, 0.018435906618833542, -0.029243163764476776, -0.03118564374744892, 0.015645798295736313, 0.016493426635861397, -0.014806999824941158, -0.03136223182082176, -0.030549922958016396, -0.015963658690452576, 0.010427589528262615, 0.06258319318294525, -0.0013542179949581623, 0.0030285038519650698, 0.000016512120055267587, 0.012785054743289948, -0.048844557255506516, -0.011937426403164864, -0.02066093124449253, 0.03771944344043732, 0.03595355153083801, 0.0017780320486053824, -0.019795643165707588, 0.041851628571748734, -0.02249745838344097, -0.008017146959900856, 0.05156403034925461, -0.036659907549619675, -0.0008912233752198517, 0.00024667297839187086, 0.011045651510357857, 0.03718967363238335, 0.03252772241830826, 0.04704334959387779, 0.03934406116604805, -0.0349469929933548, -0.0186478141695261, 0.03229815512895584, 0.017800185829401016, -0.01523964386433363, -0.06855190545320511, -0.00392027897760272, 0.027424294501543045, -0.04344093054533005, 0.019866278395056725, -0.007107713259756565, -0.0410040020942688, -0.00009243337990483269, -0.036871813237667084, -0.07215432822704315, -0.029596341773867607, -0.05117553472518921, -0.027636202052235603, 0.03487635776400566, -0.04245202988386154, 0.0236276276409626, -0.025163954123854637, 0.0671745091676712, -0.03309280797839165, -0.01898333430290222, 0.01997223310172558, -0.0634661391377449, 0.01043641846626997, 0.03782539442181587, -0.0024656259920448065, 0.05276483669877052, -0.027565566822886467, 0.03402872756123543, -0.03321642056107521, -0.029313798993825912, -0.031821366399526596, 0.03284558281302452, -0.0039004129357635975, 0.002342013642191887, -0.03196263685822487, 0.011760837398469448, 0.005284430459141731, 0.0020131163764744997, 0.009394542314112186, -0.08003020286560059, -0.021120062097907066, 0.010321635752916336, 0.06449035555124283, -0.029278481379151344, 0.0010369094088673592, 0.007297546602785587, -0.04171035811305046, -0.012237627990543842, 0.05664980039000511, 0.08483342826366425, -0.042557984590530396, -0.038531750440597534, 0.017137976363301277, -0.021084744483232498, 0.019336512312293053, 0.002715058159083128, -0.07144796848297119, -0.024139735847711563, 0.07466189563274384, -0.0013895358424633741, 0.028395535424351692, 0.025075659155845642, 0.04488896206021309, 0.13350139558315277, -0.02067858912050724, 0.006388112436980009, 0.030585240572690964, 0.034841038286685944, -0.020731566473841667, 0.008092197589576244, -0.005831856746226549, 0.04799693077802658, -0.008900092914700508, -0.0016864263452589512, 0.03353428095579147, 0.022373845800757408, 0.043511565774679184, -0.00793768186122179, -0.019442465156316757, 0.02249745838344097, -0.0104452483355999, -0.047361209988594055, 0.0431583896279335, -0.017703061923384666, -0.0006622092914767563, -0.05555494502186775, -0.005121085327118635, -0.00007311894296435639, -0.007001759950071573, 0.02917252667248249, -0.00949166715145111, 0.019336512312293053, 0.028112992644309998, -0.005593461450189352, -0.025022681802511215, -0.05280015617609024, -0.08723504096269608, 0.030355675145983696, 0.008317348547279835, 0.03118564374744892, -0.005986372008919716, 0.06901104003190994, 0.02712409384548664, -0.02549947239458561, -0.030549922958016396, -0.044041335582733154, -0.044747691601514816, 0.02143792249262333, 0.07056502252817154, -0.04563063755631447, 0.028925303369760513, 0.049021147191524506, 0.0517406202852726, 0.011646054685115814, -0.011275216937065125, 0.002957868156954646, -0.04319370537996292, 0.012317093089222908, -0.008233468979597092, -0.050186637789011, 0.0006147509557195008, -0.08843584358692169, -0.0011522441636770964, 0.003922486677765846, -0.02770683728158474, 0.04820883646607399, -0.02549947239458561, 0.03969724103808403, 0.07183646410703659, 0.004909178242087364, 0.04103931784629822, -0.012423046864569187, 0.017076170071959496, -0.0509636290371418, 0.018524201586842537, 0.022409163415431976, -0.007399085443466902, 0.01606961339712143, 0.049798138439655304, -0.06198279187083244, 0.030355675145983696, -0.03800198435783386, -0.012891007587313652, 0.025923287495970726, 0.06300701200962067, -0.028907643631100655, -0.0232391320168972, -0.016687674447894096, -0.04785566031932831, 0.016511084511876106, 0.008383570238947868, -0.029878884553909302, -0.011151604354381561, -0.019848620519042015, 0.00005904699719394557, -0.05188189074397087, -0.0192305576056242, 0.04125122353434563, -0.014339039102196693, 0.041074637323617935, -0.053824372589588165, -0.00988016277551651, -0.07988893240690231, -0.047149304300546646, -0.0014645862393081188, 0.0003167567774653435, 0.0008812902378849685, 0.008193736895918846, 0.028501488268375397, -0.04192226380109787, -0.023221472278237343, 0.022303208708763123, -0.00550075201317668, -0.025817332789301872, 0.06297168880701065, -0.04704334959387779, -0.012581977061927319, -0.019424807280302048, 0.005235868040472269, -0.06943485140800476, -0.04669016972184181, 0.010118558071553707, 0.010771937668323517, -0.022391503676772118, -0.07974766194820404, -0.01034812442958355, -0.024969706311821938, 0.04732589051127434, -0.0022095716558396816, 0.002761412877589464, -0.05269420146942139, 0.046796124428510666, 0.027194729074835777, 0.005081352777779102, 0.11160434037446976, 0.003291180357336998, -0.05082235857844353, 0.04001510143280029, -0.03920279070734978, -0.03538846597075462, -0.009385713376104832, 0.04707866534590721, -0.08878902345895767, -0.05725020170211792, -0.007535941898822784, -0.03916747495532036, 0.004560414701700211, 0.007187178358435631, 0.022232573479413986, -0.05435413867235184, 0.04559531807899475, -0.005408042576164007, 0.03715435788035393, 0.014462651684880257, 0.06265383213758469, 0.029225504025816917, -0.016625868156552315, -0.00263338559307158, 0.02454589121043682, 0.03318110108375549, 0.02624114789068699, 0.04340561106801033, -0.003721616230905056, -0.029031256213784218, 0.014895294792950153, -0.026082217693328857, -0.022779999300837517, -0.01792379841208458, -0.020466681569814682, -0.003650980768725276, -0.015195496380329132, 0.001114718965254724, 0.00281438953243196, -0.0082025658339262, -0.017032023519277573, 0.023362744599580765, 0.004088038578629494, 0.0878707617521286, 0.008524840697646141, 0.06219469755887985, -0.0023574652150273323, -0.0042535909451544285, 0.011495953425765038, 0.07953575253486633, -0.032986853271722794, -0.011654883623123169, -0.024122077971696854, 0.007090054452419281, 0.013968201354146004, -0.025358201935887337, -0.057885922491550446, 0.03381682187318802, 0.027106434106826782, 0.0398385114967823, -0.04227544367313385, -0.023556992411613464, 0.04817352071404457, -0.005240282975137234, -0.029066573828458786, -0.0016290348721668124, 0.020961131900548935, -0.020643271505832672, -0.04135717824101448, -0.05481327325105667, 0.09366288781166077, 0.0032073003239929676, -0.03083246573805809, 0.02696516364812851, 0.015257302671670914, 0.035194218158721924, -0.04397069662809372, -0.020607953891158104, 0.015372085385024548, -0.001515355659648776, 0.0021952239330857992, -0.03507060557603836, 0.026082217693328857, 0.010948527604341507, 0.03194497525691986, 0.0021499728318303823, -0.020237116143107414, 0.05520176887512207, -0.028748713433742523, -0.011981573887169361, -0.012043380178511143, -0.058804187923669815, 0.016705334186553955, 0.04280520975589752, -0.04019169136881828, -0.0023442208766937256, 0.007703701499849558, -0.0020208421628922224, 0.05707361176609993, -0.04082741215825081, -0.010012604296207428, -0.000002328079517610604, -0.028483830392360687, -0.0126437833532691, -0.029437411576509476, 0.07769922912120819, 0.04442983120679855, 0.024492915719747543, -0.03860238939523697, -0.03171541169285774, 0.06420781463384628, 0.014091813936829567, 0.011707860976457596, 0.038107939064502716, 0.030214402824640274, 0.0037657637149095535, 0.01729690656065941, 0.016564061865210533, 0.011231069453060627, -0.025905627757310867, -0.017597109079360962, -0.03171541169285774, 0.00650289561599493, -0.0012559903552755713, -0.04428855702280998, -0.06798682361841202, -0.006966441869735718, -0.035918232053518295, -0.0704943910241127, 0.0372956283390522, 0.04743184521794319, -0.04453578218817711, -0.0067766085267066956, 0.0017140184063464403, -0.050857674330472946, 0.032969195395708084, -0.0005485300207510591, -0.010745449922978878, -0.030143767595291138, 0.011080969125032425, 0.004171918611973524, -0.02159685268998146, -0.07409680634737015, -0.07925321161746979, 0.07473252713680267, -0.010418759658932686, -0.028130650520324707, -0.004344093147665262, 0.011787326075136662, -0.0072578140534460545, -0.03743689879775047, 0.030426310375332832, 0.039591286331415176, 0.07247218489646912, 0.006304232403635979, 0.02917252667248249, 0.031273938715457916, 0.04344093054533005, 0.08568105846643448, -0.0032161299604922533, -0.03817857429385185, -0.012166992761194706, -0.021102402359247208, -0.0284131933003664, 0.03175072744488716, -0.03952065110206604, 0.012943984940648079, -0.03987383097410202, -0.05378905311226845, 0.014268402941524982, 0.03342832624912262, -0.05707361176609993, 0.005412457510828972, 0.03764880821108818, 0.032616015523672104, -0.05114021897315979, -0.07699286937713623, -0.011328194290399551, 0.04481832683086395, 0.007787581533193588, -0.022462138906121254, 0.05265888571739197, -0.009253271855413914, -0.039767876267433167, 0.05619066581130028, -0.049939412623643875, 0.017976775765419006, -0.05785060673952103, 0.01687309332191944, -0.006401356775313616, -0.0638546347618103, 0.054601363837718964, -0.04545404762029648, 0.01126638799905777, 0.05378905311226845, -0.0017460251692682505, -0.017879651859402657, 0.04873860627412796, -0.02440462075173855, -0.02122601494193077, 0.05004536360502243, -0.014462651684880257, -0.015098372474312782, -0.011204581707715988, 0.00395338935777545, 0.04361752048134804, -0.0657971203327179, 0.00022666872246190906, 0.005121085327118635, -0.032616015523672104, -0.046089768409729004, -0.031662434339523315, -0.004922422580420971, 0.05647321045398712, -0.016670016571879387, 0.0008183803292922676, 0.009756550192832947, 0.0004442320787347853, -0.007500624284148216, 0.024899069219827652, 0.045877862721681595, 0.01293515507131815, -0.0628657341003418, -0.020554976537823677, -0.03948533535003662, 0.048491381108760834, -0.023945488035678864, 0.006904635578393936, -0.07960639148950577, 0.013782783411443233, 0.011195751838386059, -0.013279504142701626, -0.00678102346137166, -0.012061038985848427, 0.04428855702280998, -0.024687163531780243, 0.03342832624912262, 0.012440705671906471, -0.011231069453060627, -0.03694244846701622, 0.007284302264451981, -0.06427845358848572, 0.04891519248485565, -0.0029070989694446325, 0.03450552001595497, -0.00817166268825531, -0.006529383827000856, 0.029066573828458786, -0.002179772360250354, 0.04435919597744942, -0.0025119807105511427, -0.030126109719276428, -0.03208624944090843, -0.023186154663562775, -0.0190363097935915, 0.009597619995474815, -0.04058018699288368, 0.02823660522699356, -0.02436930313706398, 0.10086771845817566, 0.009562302380800247, 0.04442983120679855, -0.0061055696569383144, 0.04026232659816742, 0.015672286972403526, 0.08462151885032654, -0.11393532156944275, 0.02198534831404686, 0.05820378288626671, 0.018135705962777138, 0.00977420900017023, -0.0439353808760643, 0.00006801441486459225, -0.03715435788035393, 0.011133945547044277, -0.029225504025816917, -0.023362744599580765, 0.019265875220298767, 0.01310291513800621, 0.011019162833690643, -0.017155636101961136, -0.038531750440597534, -0.027106434106826782, -0.038849614560604095, 0.005315333604812622, 0.033905114978551865, -0.012467194348573685, 0.019301194697618484, 0.030920760706067085, 0.04428855702280998, -0.03581228107213974, -0.004966569598764181, 0.05891013890504837, 0.044783007353544235, 0.029225504025816917, 0.04986877739429474, -0.021190697327256203, 0.026188170537352562, 0.002606897382065654, -0.05262356624007225, 0.02512863650918007, -0.06145302206277847, 0.04651358351111412, 0.07353172451257706, -0.06060539558529854, 0.06057007983326912, 0.05297674611210823, 0.012581977061927319, -0.020537318661808968, 0.031273938715457916, -0.036659907549619675, 0.04326434060931206, -0.010577689856290817, -0.01755296066403389, -0.023892512544989586, -0.030973736196756363, -0.007721360307186842, -0.019424807280302048, 0.02366294525563717, -0.034064047038555145, -0.030744170770049095, 0.007050321903079748, -0.02546415477991104, -0.0063351355493068695, 0.05926331877708435, -0.08744694292545319, -0.009730062447488308, -0.044571101665496826, 0.027424294501543045, 0.010356953367590904, 0.04188694432377815, 0.040933363139629364, 0.013597364537417889, 0.022391503676772118, 0.10002009570598602, 0.045913178473711014, -0.0006611056160181761, 0.01698787696659565, -0.03394043445587158, 0.022832976654171944, -0.022938931360840797, -0.007125372067093849, -0.004445631988346577, 0.004383825697004795, -0.011116286739706993, -0.004869445692747831, 0.02881934866309166, -0.04082741215825081, -0.01995457336306572, -0.0006611056160181761, 0.015557504259049892, 0.0829968973994255, -0.03856706991791725, 0.05262356624007225, -0.03920279070734978, 0.0031388720963150263, 0.009509325958788395, -0.014930612407624722, 0.019636712968349457, -0.08116037398576736, 0.008719089441001415, -0.019106945022940636, 0.021331969648599625, -0.0712713822722435, -0.052729520946741104, 0.01577823981642723, 0.011963915079832077, 0.029878884553909302, -0.014330209232866764, 0.024139735847711563, -0.021278992295265198, 0.025252249091863632, -0.011116286739706993, 0.036271411925554276, -0.05672043561935425, 0.02919018641114235, -0.09394542872905731, -0.06392527371644974, -0.025181611999869347, -0.05608471482992172, -0.022956589236855507, -0.003074858570471406, -0.021014109253883362, 0.045136187225580215, -0.00022570299915969372, -0.0022371637169271708, 0.006913464982062578, -0.0116195660084486, -0.02604690007865429, -0.025358201935887337, 0.005315333604812622, -0.04379411041736603, 0.015319108963012695, -0.023945488035678864, 0.07649841904640198, 0.02622348815202713, 0.0017283662455156446, -0.03711903840303421, -0.018153363838791847, -0.03434658795595169, 0.003308839164674282, 0.047184620052576065, -0.014904123730957508, -0.06894040107727051, -0.019989890977740288, 0.008507181890308857, 0.007809655275195837, 0.014727534726262093, 0.025817332789301872, -0.05071640387177467, 0.01375629473477602, -0.04375879094004631, -0.020025208592414856, -0.05114021897315979, 0.03355193883180618, 0.08052465319633484, -0.06699792295694351, 0.013906395062804222, 0.007500624284148216, -0.08822394162416458, -0.05725020170211792, -0.03155647963285446, -0.06000499427318573, 0.027989380061626434, 0.08836521208286285, 0.017676573246717453, 0.007716945838183165, -0.03973255679011345, 0.008595476858317852, -0.002622348954901099, 0.03524719551205635, 0.04298179969191551, 0.009067852981388569, -0.008233468979597092, 0.012431875802576542, -0.026506030932068825, -0.012802713550627232, -0.008595476858317852, 0.019142264500260353, -0.022568093612790108, 0.051422759890556335, 0.05262356624007225, -0.04375879094004631, -0.0016798042925074697, 0.03286324068903923, -0.09366288781166077, -0.017049681395292282, 0.04188694432377815, 0.0013001376064494252, 0.03383447974920273, 0.024122077971696854, -0.010630667209625244, -0.017976775765419006, -0.011442977003753185, 0.0661856159567833, 0.04245202988386154, -0.013535558246076107, -0.01568111591041088, -0.01940714754164219, -0.01136351190507412, 0.00018472880765330046, 0.0050592790357768536, -0.0306558758020401, 0.04213416948914528, 0.042946480214595795, 0.010842573828995228, 0.034470200538635254, 0.007743434049189091, 0.07268409430980682, 0.0208904966711998, 0.038496434688568115, 0.013367798179388046, -0.0008101027342490852, -0.025057999417185783, 0.00958879105746746, 0.02860744297504425, 0.05029258877038956, 0.018771426752209663, -0.04397069662809372, 0.045913178473711014, 0.05001004785299301, 0.04125122353434563, 0.007986243814229965, 0.034470200538635254, 0.0019479990005493164, -0.025358201935887337, 0.010966186411678791, 0.020766884088516235, -0.00437941076233983, -0.017190953716635704, -0.0016974632162600756, -0.01033929456025362, 0.014250744134187698, 0.002975527197122574, 0.004410313908010721, 0.050892993807792664, 0.015089542604982853, 0.019106945022940636 ]
718,233
pytorch_optimizer.optimizer.sgd
SignSGD
Compressed Optimisation for Non-Convex Problems. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param momentum: float. momentum factor (0.0 = SignSGD, >0 = Signum). :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW.
class SignSGD(Optimizer, BaseOptimizer): r"""Compressed Optimisation for Non-Convex Problems. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param momentum: float. momentum factor (0.0 = SignSGD, >0 = Signum). :param weight_decay: float. weight decay (L2 penalty). :param weight_decouple: bool. the optimizer uses decoupled weight decay as in AdamW. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, momentum: float = 0.9, weight_decay: float = 0.0, weight_decouple: bool = True, ): self.validate_learning_rate(lr) self.validate_range(momentum, 'beta', 0.0, 1.0) self.validate_non_negative(weight_decay, 'weight_decay') defaults: DEFAULTS = { 'lr': lr, 'momentum': momentum, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, } super().__init__(params, defaults) @torch.no_grad() def reset(self): for group in self.param_groups: group['step'] = 0 for p in group['params']: state = self.state[p] if group['momentum'] > 0.0: state['momentum_buffer'] = 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: momentum = group['momentum'] 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 momentum > 0.0: if len(state) == 0: state['momentum_buffer'] = torch.zeros_like(p) buf = state['momentum_buffer'] buf.mul_(momentum).add_(grad, alpha=1.0 - momentum) else: buf = grad p.add_(torch.sign(buf), alpha=-group['lr']) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, momentum: float = 0.9, weight_decay: float = 0.0, weight_decouple: bool = True)
[ -0.02208808623254299, -0.027727598324418068, 0.021011095494031906, 0.04057314991950989, 0.013315512798726559, -0.006975958123803139, -0.08145961165428162, -0.03029279224574566, 0.040005285292863846, 0.0005008615553379059, -0.017545146867632866, 0.009893622249364853, -0.006388509180396795, 0.008263451047241688, -0.07844403386116028, 0.056238461285829544, 0.00532130990177393, 0.007788596209138632, -0.01780949905514717, -0.003416995517909527, -0.011141951195895672, -0.06469772756099701, 0.023987505584955215, 0.103861004114151, -0.03346501663327217, -0.0015004429733380675, 0.02543654665350914, -0.030018649995326996, -0.06489354372024536, -0.03949616104364395, 0.007636838126927614, -0.02433997392654419, -0.006736082956194878, 0.0032872671727091074, 0.029333291575312614, -0.018044479191303253, 0.019180214032530785, 0.03209430351853371, -0.075506791472435, -0.052204642444849014, 0.01490162592381239, -0.034502845257520676, 0.029450781643390656, -0.05596431717276573, 0.042218007147312164, 0.003781703533604741, 0.008454371243715286, 0.05870574712753296, -0.0002499718393664807, -0.020002642646431923, 0.0488366037607193, -0.08138128370046616, 0.01989494264125824, -0.04311876371502876, -0.03665682300925255, 0.03489447757601738, 0.1132601872086525, 0.044371988624334335, 0.019924314692616463, -0.028667517006397247, 0.04374537616968155, -0.043392907828092575, 0.021187331527471542, -0.008116587996482849, -0.04789668321609497, -0.012982625514268875, -0.048366643488407135, -0.049345724284648895, 0.02230348438024521, 0.04405868425965309, 0.024712026119232178, -0.05157802999019623, -0.0032015976030379534, 0.05866658315062523, 0.0009539928869344294, -0.057335034012794495, -0.05702172592282295, -0.05459360405802727, -0.052282970398664474, -0.05604264512658119, 0.017780127003788948, -0.04507692903280258, -0.033974140882492065, -0.002484420081600547, 0.0001903090305859223, -0.046330153942108154, 0.03270133212208748, -0.013638610020279884, 0.013344885781407356, -0.020071176812052727, 0.006966167129576206, 0.007470394484698772, 0.025005750358104706, 0.01687937043607235, 0.09649830311536789, 0.061447177082300186, -0.0043618096970021725, -0.053262051194906235, 0.002538269618526101, -0.004126830026507378, 0.04108227416872978, 0.04687843844294548, 0.008194915018975735, 0.010995089076459408, 0.03718552738428116, 0.008018679916858673, -0.007935457862913609, -0.05290958285331726, 0.01202312484383583, -0.08059801906347275, 0.025632362812757492, -0.012346222065389156, -0.015234513208270073, -0.06512852758169174, -0.01900397799909115, -0.020815279334783554, 0.01605694182217121, 0.035971466451883316, -0.004613923374563456, 0.0304102823138237, 0.04202219098806381, 0.01402045227587223, -0.052243806421756744, 0.028471698984503746, 0.0015848887851461768, 0.004173336550593376, 0.06959313899278641, 0.027962576597929, 0.008097006939351559, -0.02743387408554554, -0.02927454747259617, 0.03262300789356232, -0.0015579640166833997, 0.008699142374098301, 0.0022323066368699074, -0.03542318195104599, -0.024144157767295837, 0.01659543626010418, -0.010339104570448399, 0.03673515096306801, 0.03297547623515129, 0.008752991445362568, -0.025044914335012436, 0.05486774817109108, 0.006530475802719593, 0.02359587326645851, 0.05510272458195686, 0.0038282100576907396, 0.03452242538332939, 0.01720246858894825, 0.01025098655372858, 0.036989711225032806, 0.014578528702259064, 0.017926989123225212, 0.01663460023701191, -0.0015653071459382772, 0.006261228583753109, 0.02426164783537388, -0.050207316875457764, 0.030234048143029213, -0.04217884689569473, -0.021167749539017677, -0.04390202835202217, -0.017887825146317482, -0.019464146345853806, -0.023537127301096916, 0.030997730791568756, 0.05310539901256561, -0.06078140065073967, 0.055181052535772324, 0.01895502395927906, -0.04589935764670372, 0.0011742862407118082, 0.04797501116991043, 0.04178721457719803, 0.08999720215797424, 0.022146830335259438, 0.0032750286627560854, 0.002773249289020896, -0.06904485076665878, 0.0466434583067894, 0.0019079857738688588, -0.043314579874277115, -0.033974140882492065, 0.011670655570924282, 0.02279302477836609, -0.009575420059263706, -0.012062287889420986, 0.013080533593893051, 0.0014637273270636797, 0.0033019534312188625, -0.00015389942564070225, 0.031154384836554527, -0.014519783668220043, 0.007876713760197163, 0.02136356569826603, 0.021265657618641853, -0.022969260811805725, 0.045194417238235474, 0.006075202953070402, 0.017985733225941658, 0.0011320633348077536, 0.06927983462810516, -0.017388492822647095, 0.012581201270222664, -0.002800174057483673, 0.003086555516347289, 0.028138812631368637, -0.03383706882596016, 0.021990178152918816, -0.03183974325656891, -0.011817517690360546, 0.027688434347510338, 0.012444130145013332, 0.0233217291533947, -0.06646007299423218, 0.015606564469635487, 0.029196221381425858, 0.02751220017671585, -0.02506449446082115, 0.007680897135287523, -0.0528312548995018, 0.01153358444571495, 0.02238181047141552, 0.07907065004110336, -0.021128585562109947, 0.052361298352479935, -0.043353743851184845, -0.009829981252551079, -0.01822071336209774, 0.02359587326645851, -0.058274950832128525, -0.010348894633352757, -0.02095235139131546, 0.040494825690984726, -0.0051989248022437096, -0.008939017541706562, 0.0011846889974549413, 0.024672862142324448, -0.03444409742951393, -0.011514002457261086, -0.02958785369992256, -0.02359587326645851, 0.026435209438204765, 0.01351132895797491, -0.0025774328969419003, 0.08576756715774536, 0.003385175485163927, 0.007720060180872679, 0.060193952172994614, -0.034718241542577744, -0.05287041887640953, -0.061094705015420914, 0.00040693089249543846, -0.02140272967517376, -0.0264156274497509, 0.035736486315727234, 0.02539738267660141, -0.0008046829025261104, -0.051147233694791794, -0.0675174817442894, -0.056316789239645004, -0.05071644112467766, 0.04817082732915878, -0.0036030211485922337, 0.014314176514744759, 0.051421377807855606, -0.03452242538332939, 0.018896279856562614, 0.06070307269692421, 0.12187610566616058, 0.0335041806101799, -0.0630137100815773, -0.016722718253731728, 0.00032799242762848735, 0.028804587200284004, -0.003370489226654172, 0.018455693498253822, 0.00839562714099884, 0.006545162294059992, 0.035031549632549286, -0.03166350722312927, -0.02042364701628685, -0.009805504232645035, -0.02878500521183014, 0.07785658538341522, -0.021461473777890205, -0.06411027908325195, 0.03481614962220192, -0.0017084977589547634, 0.044489480555057526, 0.06618592888116837, 0.07852236181497574, -0.015802381560206413, 0.09054549038410187, -0.008973284624516964, 0.009624374099075794, 0.005042271688580513, 0.01351132895797491, -0.010838435962796211, 0.07879650592803955, -0.009609688073396683, 0.024320393800735474, 0.005766792222857475, 0.022558046504855156, -0.04166972264647484, -0.01935644820332527, 0.020795699208974838, -0.0031012417748570442, 0.019023559987545013, -0.029627015814185143, -0.015087651088833809, -0.01226789504289627, 0.004836664069443941, -0.016820626333355904, -0.029039567336440086, 0.025123240426182747, -0.04914990812540054, 0.013599446974694729, 0.07863985002040863, 0.0025284788571298122, 0.02426164783537388, -0.03321045637130737, -0.01854380965232849, -0.0751151591539383, -0.02535822056233883, -0.016487738117575645, -0.0032554471399635077, -0.041434742510318756, -0.008601234294474125, -0.026396047323942184, 0.0228713508695364, 0.014705808833241463, 0.017956361174583435, -0.049463216215372086, -0.011680446565151215, 0.05850993096828461, 0.02185310609638691, -0.024124575778841972, -0.07907065004110336, 0.0673999935388565, 0.0002918887767009437, -0.03029279224574566, 0.024104995653033257, -0.057335034012794495, -0.060193952172994614, 0.0070689707063138485, -0.02755136229097843, 0.015273676253855228, 0.02144189178943634, 0.0017807050608098507, 0.016654182225465775, -0.011269232258200645, 0.08153793215751648, 0.06273956596851349, -0.0007673553773202002, -0.012483293190598488, -0.018210921436548233, 0.032838404178619385, -0.05259627476334572, 0.01414773240685463, 0.021755198016762733, -0.017133932560682297, 0.0268660057336092, 0.04554688557982445, -0.02185310609638691, 0.013002206571400166, -0.0426488034427166, 0.019131259992718697, -0.04088645800948143, 0.014255431480705738, -0.08247785270214081, -0.026396047323942184, 0.004036264959722757, -0.06904485076665878, -0.013090324588119984, -0.04589935764670372, -0.0170751865953207, -0.013344885781407356, 0.007450812961906195, 0.04797501116991043, -0.01806405931711197, 0.023693781346082687, 0.01712414063513279, 0.047465886920690536, -0.012972834520041943, 0.028080066666007042, 0.008327091112732887, 0.05698256194591522, -0.050363969057798386, 0.016908742487430573, -0.034757405519485474, 0.025984831154346466, -0.0035026653204113245, -0.0484449677169323, 0.017545146867632866, 0.04464613273739815, 0.077582448720932, -0.055181052535772324, 0.008488639257848263, -0.023282567039132118, -0.02935287356376648, 0.010427221655845642, 0.00870403740555048, 0.0044107637368142605, -0.08310446888208389, 0.021951014176011086, 0.03321045637130737, 0.04104311019182205, 0.11435675621032715, 0.011151742190122604, 0.02392875961959362, 0.0052038198336958885, 0.011807726696133614, -0.0006920884479768574, -0.047465886920690536, -0.04409784451127052, 0.006961272098124027, -0.006902527064085007, 0.03661765903234482, 0.051421377807855606, -0.0017403180245310068, 0.060428932309150696, 0.0007887728279456496, -0.012101451866328716, -0.018279457464814186, -0.051303889602422714, -0.0005424725241027772, -0.07170795649290085, 0.01957184635102749, -0.04370621219277382, -0.025867342948913574, -0.004968840163201094, 0.008708933368325233, -0.039926957339048386, 0.00017271615797653794, -0.0003258506767451763, 0.02095235139131546, 0.011083206161856651, 0.031115220859646797, 0.005257669370621443, -0.003157538827508688, -0.032466351985931396, -0.021578963845968246, 0.006168215535581112, -0.03751841560006142, 0.03755757957696915, 0.015586982481181622, -0.03888913244009018, 0.018328411504626274, 0.03164392337203026, 0.0019447013037279248, 0.03818419203162193, -0.010769899934530258, -0.013109905645251274, 0.023497963324189186, 0.00992789026349783, -0.02234264835715294, -0.060389768332242966, -0.026396047323942184, 0.006819305010139942, -0.006662651896476746, -0.036049794405698776, -0.012150405906140804, -0.004241872113198042, -0.0025651943869888783, 0.03787088394165039, -0.008287928067147732, -0.016742300242185593, -0.009433453902602196, -0.011376931332051754, -0.010437012650072575, -0.009903413243591785, -0.04358872398734093, -0.041317254304885864, -0.005326205398887396, -0.07339197397232056, -0.0020401617512106895, 0.007421440444886684, -0.013344885781407356, 0.024124575778841972, -0.06403195112943649, 0.010446803644299507, 0.06924066692590714, 0.02698349580168724, -0.010711154900491238, 0.034992385655641556, 0.0029764086939394474, 0.051460541784763336, 0.0377533957362175, -0.02185310609638691, -0.032388027757406235, 0.04899325594305992, 0.04797501116991043, 0.0037254064809530973, 0.00994747132062912, -0.041591398417949677, -0.015479284338653088, 0.05173468589782715, 0.00034696212969720364, -0.00829771813005209, -0.004937020130455494, -0.08984054625034332, -0.02148105576634407, 0.05486774817109108, -0.017643054947257042, -0.022930096834897995, 0.039359088987112045, -0.030586516484618187, -0.006608802359551191, -0.032955896109342575, 0.0005544050945900381, -0.014137941412627697, 0.03044944442808628, 0.007896294817328453, 0.017780127003788948, -0.015028906054794788, 0.057217542082071304, 0.041395578533411026, -0.04096478596329689, 0.022577626630663872, 0.010270568542182446, -0.042296335101127625, 0.010260777547955513, 0.011053834110498428, 0.029450781643390656, -0.012649737298488617, -0.07366611808538437, 0.06062474846839905, 0.030997730791568756, -0.006359136663377285, 0.006266123615205288, 0.013795263133943081, 0.0940701812505722, 0.01149442046880722, -0.011846890673041344, 0.02437913790345192, -0.019464146345853806, -0.055376868695020676, -0.0731961578130722, -0.003656870685517788, 0.031173964962363243, 0.014108569361269474, 0.0025284788571298122, 0.004339780192822218, 0.044293660670518875, -0.019963478669524193, 0.04589935764670372, -0.05655176565051079, -0.00228248443454504, -0.08420103788375854, 0.01944456622004509, -0.03869331255555153, 0.023204239085316658, 0.07558511942625046, -0.012571411207318306, -0.01789761520922184, 0.06387530267238617, 0.005306623410433531, 0.04417617246508598, -0.039398252964019775, -0.04002486541867256, 0.0288633331656456, -0.06336617469787598, -0.08459267020225525, 0.03918285667896271, 0.03538401797413826, -0.043275415897369385, -0.030390700325369835, 0.07347030192613602, 0.009433453902602196, -0.05204799026250839, 0.0124343391507864, 0.01744723878800869, -0.019307494163513184, 0.024065831676125526, 0.008199810050427914, -0.020404065027832985, 0.0000022134515802463284, -0.022146830335259438, 0.049384888261556625, -0.05251795053482056, -0.00033778324723243713, -0.00010831093095475808, -0.0064962077885866165, 0.05216548219323158, -0.0813029557466507, 0.009555839002132416, 0.0039848629385232925, 0.021833524107933044, -0.0038845071103423834, 0.01224831398576498, 0.01882774382829666, -0.06320952624082565, -0.002538269618526101, 0.0003175896708853543, -0.0577266663312912, 0.01312948763370514, 0.07045473158359528, 0.03044944442808628, -0.06681254506111145, -0.04668262228369713, 0.029685761779546738, 0.0077347466722130775, -0.003123271046206355, -0.01830882951617241, -0.0159786157310009, 0.01882774382829666, 0.011465048417448997, -0.09164205938577652, -0.0013327751075848937, -0.010799272917211056, -0.015165978111326694, 0.01117132417857647, -0.09649830311536789, 0.003299505915492773, -0.0034757405519485474, 0.013295931741595268, 0.06951481103897095, -0.008997761644423008, -0.027218475937843323, -0.02144189178943634, -0.0020744295325130224, -0.012228731997311115, -0.025867342948913574, 0.007382276933640242, 0.03796879202127457, -0.023341311141848564, -0.03160476312041283, -0.0024183320347219706, -0.023458801209926605, -0.0008756663301028311, 0.017466820776462555, 0.0021099213045090437, 0.0074948715046048164, -0.030116558074951172, -0.008997761644423008, 0.01650732010602951, -0.02727722004055977, 0.005115702748298645, 0.0029005298856645823, 0.030801914632320404, -0.015469493344426155, -0.013687564060091972, -0.08850900083780289, 0.0015347107546404004, 0.040259845554828644, 0.003409652505069971, -0.0018663747468963265, 0.031095638871192932, -0.0031036895234137774, 0.046447642147541046, -0.04398035630583763, -0.03624561056494713, 0.036989711225032806, 0.008498430252075195, 0.0008169214124791324, 0.024966586381196976, 0.040338173508644104, -0.04190470278263092, 0.051460541784763336, -0.021951014176011086, 0.003372936975210905, 0.03712678328156471, -0.0751151591539383, -0.013854008167982101, -0.030136138200759888, -0.030684424564242363, 0.039887793362140656, -0.051460541784763336, -0.050324805080890656, -0.0055318125523626804, -0.07609423995018005, -0.0077151646837592125, 0.028177974745631218, -0.0034512635320425034, 0.03254467993974686, -0.011866471730172634, -0.046486806124448776, -0.03554067015647888, 0.053340379148721695, 0.008699142374098301, 0.031134802848100662, 0.030390700325369835, 0.0025970146525651217, -0.05600348114967346, -0.052439622581005096, -0.01437292154878378, -0.017926989123225212, -0.017545146867632866, -0.024966586381196976, -0.013384048826992512, 0.05204799026250839, -0.01859276369214058, 0.05882323533296585, -0.04676095023751259, -0.027942996472120285, 0.014578528702259064, 0.02788425050675869, -0.06959313899278641, 0.008449476212263107, -0.021148167550563812, -0.03460075333714485, 0.01019224151968956, 0.019679544493556023, 0.051499705761671066, 0.025789014995098114, -0.028471698984503746, 0.02181394398212433, 0.02058030106127262, 0.020482392981648445, 0.013002206571400166, 0.0071179247461259365, 0.0035124560818076134, 0.015675099566578865, 0.01729058474302292, -0.008816631510853767, -0.0118860537186265, 0.017887825146317482, 0.03665682300925255, -0.03395455703139305, 0.010427221655845642, -0.035481926053762436, 0.026239393278956413, -0.03452242538332939, -0.055141888558864594, 0.01757451891899109, -0.02980325184762478, 0.018720045685768127, -0.002753667766228318, 0.00494191562756896, 0.029901159927248955, -0.006643070373684168, 0.0008566966280341148, 0.016654182225465775, 0.00835646316409111, 0.04985484853386879, 0.046330153942108154, -0.023987505584955215, 0.08443601429462433, -0.0003555291041266173, 0.08255618065595627, -0.019395612180233, -0.012679110281169415, 0.029215801507234573, 0.03289714828133583, -0.01177835464477539, -0.02124607563018799, -0.008341777138411999, -0.03512945771217346, 0.06716501712799072, -0.00267534120939672, -0.0048978570848703384, -0.01829903945326805, 0.04785751923918724, -0.07049389183521271, -0.00026251631788909435, -0.02433997392654419, -0.07828738540410995, -0.0820862203836441, -0.03268175199627876, -0.07574176788330078, 0.062269605696201324, 0.020032014697790146, -0.009247427806258202, 0.016615018248558044, 0.013423211872577667, 0.04879743978381157 ]
718,235
pytorch_optimizer.optimizer.sgd
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, momentum: float = 0.9, weight_decay: float = 0.0, weight_decouple: bool = True, ): self.validate_learning_rate(lr) self.validate_range(momentum, 'beta', 0.0, 1.0) self.validate_non_negative(weight_decay, 'weight_decay') defaults: DEFAULTS = { 'lr': lr, 'momentum': momentum, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, momentum: float = 0.9, weight_decay: float = 0.0, weight_decouple: bool = True)
[ 0.021510019898414612, -0.004658637102693319, -0.013499777764081955, -0.008220300078392029, -0.0333106555044651, -0.013537121936678886, -0.07035569101572037, -0.01791567914187908, -0.027391664683818817, 0.043729569762945175, -0.013434425927698612, 0.04709051176905632, 0.029949713498353958, 0.06329771131277084, -0.031928934156894684, 0.03484174981713295, 0.02147267572581768, 0.015002865344285965, -0.031256746500730515, 0.0036060090642422438, -0.009289266541600227, -0.03295588865876198, -0.006735885050147772, 0.11979885399341583, -0.005116098094731569, 0.028082525357604027, -0.027821118012070656, 0.01682337373495102, -0.039808474481105804, 0.0017434878973290324, 0.0049713910557329655, -0.017131460830569267, -0.00588164571672678, 0.08805663883686066, 0.03487909212708473, -0.006441802717745304, -0.019904237240552902, 0.01384520810097456, -0.07509835064411163, 0.04242253676056862, 0.057584114372730255, -0.022014159709215164, 0.05840567871928215, -0.02309712953865528, -0.012622199021279812, -0.0007556281052529812, 0.03458034247159958, 0.03547659516334534, -0.006451138760894537, -0.035681985318660736, 0.027298305183649063, -0.008897156454622746, 0.029576275497674942, -0.03894956782460213, -0.03736245632171631, 0.021771425381302834, 0.06367114931344986, 0.03917362913489342, 0.02449752204120159, 0.010969736613333225, -0.008817801252007484, -0.04850957542657852, -0.0008034748607315123, -0.024385491386055946, -0.01141786202788353, -0.024329474195837975, -0.08529320359230042, -0.024609552696347237, 0.04481254145503044, 0.042534567415714264, 0.09604821354150772, -0.015936460345983505, -0.015208255499601364, 0.022761035710573196, -0.005946997553110123, -0.027522368356585503, -0.075583815574646, -0.04981660842895508, -0.041414257138967514, -0.009051199071109295, 0.035625968128442764, 0.02952026017010212, -0.027727758511900902, -0.028511978685855865, 0.027877135202288628, -0.043057382106781006, -0.05030207708477974, -0.058069583028554916, 0.02053908072412014, 0.02541244402527809, -0.057360053062438965, -0.013882551342248917, 0.00722135417163372, -0.02558049187064171, 0.09492789953947067, 0.02192080020904541, 0.010811025276780128, -0.040518004447221756, 0.017812984064221382, -0.007132662460207939, -0.030341824516654015, 0.0061850640922784805, -0.035439249128103256, 0.007650807499885559, 0.017346186563372612, -0.03805331513285637, -0.05829364433884621, -0.037735894322395325, 0.03409487381577492, -0.06326036900281906, -0.031499482691287994, 0.0447005070745945, -0.03736245632171631, 0.021976817399263382, -0.05650114268064499, 0.0475386343896389, 0.03646620362997055, 0.01443337183445692, 0.01813974231481552, 0.01613251492381096, 0.03435628116130829, 0.030155105516314507, -0.031480807811021805, 0.027335649356245995, 0.04757598042488098, -0.012183409184217453, 0.003673694794997573, 0.02053908072412014, 0.029184166342020035, -0.02235025353729725, 0.022779708728194237, -0.0012988634407520294, -0.03532721847295761, -0.02744768001139164, 0.010465594939887524, -0.03226502984762192, 0.003426292212679982, 0.04656769707798958, -0.03232104331254959, 0.02584189735352993, 0.06247615069150925, 0.03325463831424713, 0.03743714466691017, 0.007370729465037584, -0.02190212905406952, 0.023377208039164543, -0.025300413370132446, 0.007188678253442049, -0.010792353190481663, 0.04358019679784775, 0.007772175129503012, 0.03043518401682377, 0.012080714106559753, 0.017178140580654144, 0.020875174552202225, -0.02955760434269905, 0.004145159851759672, -0.018755914643406868, 0.009578680619597435, 0.016440600156784058, -0.019437439739704132, 0.02744768001139164, 0.013854543678462505, -0.023134473711252213, -0.012864933349192142, 0.012902277521789074, -0.021864784881472588, -0.012043369933962822, -0.00577895063906908, 0.005228129681199789, 0.005615571513772011, -0.09769133478403091, 0.0022172871977090836, 0.019941579550504684, 0.014853489585220814, 0.06326036900281906, 0.03233971819281578, -0.0004965556436218321, -0.007870201952755451, -0.0026607445906847715, 0.0871603935956955, -0.004182503558695316, -0.03430026397109032, -0.06068364903330803, 0.0457087904214859, 0.021416660398244858, -0.05429786071181297, 0.051571764051914215, -0.03736245632171631, 0.03163018450140953, 0.06669599562883377, 0.022667676210403442, 0.009205242618918419, 0.019288064911961555, -0.01769161783158779, 0.012687550857663155, 0.06288693100214005, -0.013042316772043705, -0.010204188525676727, 0.05440989136695862, 0.08282851427793503, 0.009275262244045734, 0.0037413802929222584, -0.009377957321703434, 0.031779561191797256, -0.01223942544311285, -0.028680026531219482, 0.004707650747150183, -0.02748502418398857, -0.03872550278902054, -0.006950611714273691, -0.013686496764421463, 0.05679989606142044, 0.033814795315265656, 0.0007106988923624158, -0.049069732427597046, -0.0188959538936615, 0.008192292414605618, 0.020613769069314003, -0.014881497249007225, 0.10516009479761124, -0.02007228322327137, 0.014620090834796429, 0.0009592684218659997, 0.05287879705429077, 0.01197801809757948, 0.029146822169423103, -0.07285772264003754, -0.07909413427114487, 0.06426864862442017, -0.015096224844455719, -0.07162537425756454, -0.028530649840831757, -0.003748382208868861, 0.027746431529521942, 0.007314713671803474, -0.028549322858452797, 0.04503660276532173, -0.07730162888765335, -0.017495563253760338, 0.028792057186365128, 0.03256377950310707, 0.0033516045659780502, -0.01576841250061989, 0.012575519271194935, 0.007263365667313337, 0.0637831836938858, 0.013397082686424255, -0.04933113604784012, -0.014171965420246124, -0.04645566642284393, -0.018111735582351685, 0.000055432177759939805, 0.058965835720300674, -0.04100347310304642, 0.024740256369113922, 0.028941432014107704, -0.007450084667652845, -0.0012731896713376045, -0.004159163683652878, -0.02449752204120159, -0.004873363766819239, -0.00779551500454545, 0.08462101221084595, 0.024180099368095398, 0.0034029523376375437, 0.004637631122022867, -0.011137783527374268, 0.013014308176934719, 0.00041982581024058163, 0.1271929293870926, 0.006857252214103937, 0.0048500238917768, 0.004962055012583733, -0.004047132562845945, -0.05422317236661911, 0.0014820813667029142, -0.038426753133535385, -0.017299506813287735, 0.04197441413998604, 0.014059934765100479, -0.04089144244790077, 0.013257043436169624, -0.0006243413663469255, -0.014162629842758179, 0.010633641853928566, -0.007772175129503012, 0.002331652445718646, -0.009116550907492638, 0.016459273174405098, -0.0003168386756442487, -0.005223461892455816, 0.08215632289648056, 0.032433077692985535, 0.09388227015733719, -0.021379316225647926, 0.04750129207968712, 0.002291974611580372, 0.05175848305225372, -0.015619037672877312, 0.054335203021764755, -0.02886674366891384, 0.03508448600769043, -0.007674147374927998, -0.033814795315265656, -0.048322856426239014, 0.037698548287153244, 0.018111735582351685, 0.029819011688232422, 0.05142239108681679, 0.029445573687553406, 0.014825481921434402, 0.0001597321970621124, 0.03459901362657547, 0.028997447341680527, -0.07255896925926208, 0.013639817014336586, -0.03947237879037857, 0.03484174981713295, 0.051310356706380844, 0.011968682520091534, 0.015516341663897038, -0.0004609623283613473, -0.010792353190481663, -0.09014789015054703, -0.05396176874637604, 0.01062430627644062, 0.03902425244450569, -0.03370276466012001, 0.007725495379418135, -0.042795974761247635, 0.005928325466811657, 0.021155253052711487, -0.020819159224629402, -0.055044736713171005, -0.020389705896377563, 0.019773533567786217, 0.04772535338997841, -0.007020631339401007, -0.022107519209384918, 0.0871603935956955, -0.018503844738006592, -0.007048639003187418, 0.036130111664533615, -0.022443613037467003, -0.045820821076631546, 0.0105122746899724, -0.02193947322666645, 0.04806144908070564, -0.012258096598088741, -0.018251774832606316, 0.014620090834796429, -0.0172715000808239, 0.07024365663528442, 0.02190212905406952, -0.034001514315605164, -0.03071526251733303, -0.008710437454283237, 0.03164885565638542, -0.047613322734832764, -0.045372698456048965, 0.005638911388814449, -0.03301190584897995, 0.05971270799636841, 0.026177993044257164, -0.013453098013997078, 0.01658063940703869, -0.017906343564391136, 0.039808474481105804, 0.003118205815553665, 0.015796421095728874, -0.06673333793878555, -0.023731974884867668, -0.013415753841400146, -0.0010672153439372778, -0.007431413047015667, -0.025319084525108337, 0.007846862077713013, 0.04962988942861557, -0.010633641853928566, -0.000044455147872213274, -0.006852584425359964, 0.05440989136695862, 0.007725495379418135, -0.00809426512569189, -0.017663609236478806, -0.004509261809289455, 0.023395881056785583, 0.04171300679445267, -0.00913055520504713, -0.00021676899632439017, 0.005545551888644695, 0.014713450334966183, -0.028101196512579918, -0.06632255762815475, 0.05048879608511925, 0.041862379759550095, 0.03045385517179966, -0.05071285739541054, -0.020464392378926277, -0.013387746177613735, -0.05631442368030548, -0.01601114682853222, 0.04130222275853157, -0.010390907526016235, 0.0008349836571142077, 0.003062190255150199, 0.05702395737171173, 0.018130406737327576, 0.062214743345975876, 0.002562717068940401, -0.031779561191797256, -0.02541244402527809, 0.018401149660348892, -0.020240331068634987, -0.04873363673686981, 0.018457164987921715, -0.03824003413319588, 0.029912371188402176, -0.0015567690134048462, 0.03571932762861252, 0.0008460701210424304, 0.08252976089715958, 0.02257431671023369, 0.058517709374427795, 0.04940582439303398, -0.0105122746899724, 0.02235025353729725, -0.006119712721556425, -0.035887375473976135, -0.0637831836938858, 0.006726549006998539, -0.040928784757852554, -0.04667972773313522, 0.021117908880114555, 0.003451965982094407, 0.009433973580598831, 0.01594579592347145, 0.011623252183198929, -0.01247282326221466, 0.0308833085000515, -0.07371662557125092, 0.015899116173386574, -0.027970492839813232, -0.04981660842895508, -0.01779431290924549, 0.011128447018563747, 0.0038604135625064373, -0.044401757419109344, -0.019792204722762108, 0.032414402812719345, 0.005242133513092995, 0.034748390316963196, -0.025319084525108337, -0.01836380548775196, -0.022424941882491112, -0.023414552211761475, -0.022070176899433136, 0.0562770813703537, -0.04682910442352295, 0.040293943136930466, -0.004611957352608442, -0.013742512091994286, -0.03041651099920273, -0.058069583028554916, 0.02978166751563549, 0.0660238116979599, -0.02143533155322075, -0.010605634190142155, 0.01729017123579979, 0.010698993690311909, 0.009532000869512558, 0.03465503081679344, -0.05138504505157471, -0.05071285739541054, 0.030136432498693466, -0.012286105193197727, -0.022761035710573196, 0.019792204722762108, -0.030379168689250946, 0.004392562434077263, -0.04414035379886627, 0.020184315741062164, 0.07722694426774979, 0.008341667242348194, -0.012108721770346165, -0.06385786831378937, -0.0038160679396241903, 0.015572357922792435, 0.03626081347465515, -0.08297788351774216, -0.0012008360354229808, 0.043244101107120514, 0.043020039796829224, -0.01511489599943161, -0.019941579550504684, 0.015992475673556328, 0.015152240172028542, 0.0690860003232956, 0.038874879479408264, 0.0105122746899724, -0.009452644735574722, -0.024628225713968277, -0.010530946776270866, 0.022312911227345467, -0.029202839359641075, -0.08477038890123367, 0.022238222882151604, -0.03995784744620323, -0.007608796004205942, -0.015422982163727283, 0.028661353513598442, -0.017420874908566475, 0.028792057186365128, -0.05672520771622658, -0.02608463354408741, -0.057845521718263626, 0.07946757227182388, 0.004322542808949947, -0.04126488044857979, 0.0526173897087574, 0.05116098374128342, 0.024796271696686745, -0.059451304376125336, 0.01826111041009426, 0.031032683327794075, -0.000413990841479972, -0.07304444164037704, 0.0723349079489708, 0.03812800347805023, -0.006516490131616592, -0.032918546348810196, -0.04477519541978836, 0.048546917736530304, -0.0318915918469429, 0.008080260828137398, 0.02742900885641575, -0.023022443056106567, -0.05310285836458206, -0.04197441413998604, 0.02147267572581768, 0.023825334385037422, 0.045335352420806885, -0.028101196512579918, -0.006600513588637114, 0.011613916605710983, -0.027298305183649063, 0.05859239771962166, -0.07420209795236588, -0.0014774134615436196, -0.015096224844455719, -0.03463635966181755, -0.0751730352640152, 0.021976817399263382, 0.014115950092673302, -0.0011319834738969803, 0.02027767524123192, -0.013667824678122997, 0.06098239868879318, 0.03523385897278786, -0.032433077692985535, -0.03620479628443718, -0.014349348843097687, 0.015889780595898628, -0.01915736123919487, 0.016057826578617096, -0.011959346942603588, -0.040256597101688385, -0.07453819364309311, 0.023022443056106567, 0.013313058763742447, -0.02634603902697563, 0.014741458930075169, 0.009634695947170258, -0.03346002846956253, 0.01584310084581375, 0.003526653628796339, 0.02927752584218979, -0.026476742699742317, -0.04877098277211189, -0.003918763250112534, -0.015394974499940872, -0.06789100170135498, -0.07857131958007812, 0.02419877238571644, -0.009578680619597435, -0.05235598608851433, 0.0037320442497730255, -0.012528839521110058, 0.0008945002919062972, 0.015180247835814953, 0.02446017786860466, -0.011455205269157887, -0.05026473104953766, -0.045372698456048965, 0.007496764417737722, -0.05231864005327225, -0.023246504366397858, 0.052953485399484634, 0.06023552268743515, -0.06729349493980408, -0.016776693984866142, 0.03204096481204033, 0.0011442368850111961, -0.015236263163387775, -0.018597204238176346, -0.010120165534317493, 0.04638097807765007, 0.015749741345643997, -0.059413958340883255, -0.011389854364097118, -0.04298269376158714, -0.027559712529182434, -0.022686349228024483, -0.0019407097715884447, -0.036802299320697784, -0.042310506105422974, 0.02955760434269905, 0.08163350820541382, -0.014638762921094894, -0.016281889751553535, -0.030565885826945305, 0.006829244550317526, 0.04264660179615021, -0.07662944495677948, 0.005130102392286062, -0.0014494055649265647, -0.10911853611469269, 0.003911761101335287, -0.0312940888106823, 0.020259002223610878, -0.026868851855397224, -0.017869001254439354, -0.05373770371079445, 0.00866375770419836, 0.017710288986563683, 0.008757117204368114, 0.0035499935038387775, 0.04432706907391548, -0.008486375212669373, 0.011128447018563747, 0.052505359053611755, 0.003164885565638542, -0.01564704440534115, -0.04343082010746002, -0.014732122421264648, -0.018307790160179138, 0.0020982539281249046, 0.056911926716566086, 0.02356392703950405, -0.02933354116976261, 0.027746431529521942, -0.0335160456597805, 0.017747633159160614, -0.003757718252018094, -0.0005490703042596579, 0.016898062080144882, 0.008761784993112087, 0.04798676073551178, -0.03327330946922302, -0.02307845838367939, -0.009905438870191574, 0.03898691013455391, 0.037978626787662506, 0.005302817095071077, -0.0004189505707472563, -0.049704574048519135, -0.02769041620194912, -0.020837830379605293, -0.031742215156555176, -0.04574613645672798, -0.01757024973630905, -0.027634399011731148, 0.021323300898075104, 0.022929083555936813, 0.02884807251393795, -0.06355912238359451, -0.02864268235862255, 0.008168952539563179, -0.00806625746190548, 0.07226022332906723, 0.019773533567786217, -0.001738819875754416, -0.029258854687213898, 0.018457164987921715, -0.01867189258337021, -0.0798410102725029, 0.04944317042827606, -0.004892035853117704, -0.022312911227345467, -0.04552207142114639, 0.0007212018244899809, 0.014974856749176979, -0.00531215313822031, 0.027074243873357773, -0.039360348135232925, -0.08872883021831512, -0.0522066093981266, 0.01658063940703869, -0.021155253052711487, -0.01895196922123432, 0.006819908507168293, -0.07039303332567215, 0.06740552932024002, 0.003930433187633753, 0.033609405159950256, 0.0023094795178622007, -0.0135091133415699, 0.014050598256289959, -0.05541817471385002, 0.03969644010066986, 0.043766915798187256, 0.03736245632171631, -0.08424757421016693, -0.0022884737700223923, 0.034001514315605164, 0.036130111664533615, -0.016281889751553535, -0.03430026397109032, -0.002793781692162156, -0.01715013198554516, -0.02952026017010212, 0.004583949223160744, 0.001637291512452066, 0.009377957321703434, -0.06512755900621414, -0.04723988473415375, 0.011389854364097118, 0.027877135202288628, -0.03415089100599289, 0.033366668969392776, 0.007389401085674763, -0.029650963842868805, 0.01373317651450634, 0.030323151499032974, -0.019978923723101616, 0.022891739383339882, 0.022462286055088043, 0.05235598608851433, 0.06027286499738693, 0.007356725167483091, 0.050638169050216675, -0.0595259889960289, 0.0012113390257582068, -0.002768107922747731, 0.06546365469694138, -0.008042917586863041, -0.03538323566317558, 0.07730162888765335, -0.015675053000450134, -0.011753955855965614, -0.030547214671969414, 0.018130406737327576, 0.020632440224289894, 0.03652222082018852, -0.04432706907391548, 0.0040844762697815895, -0.02627135068178177, -0.08140944689512253, -0.08387413620948792, 0.0013105333782732487, -0.05127301439642906, 0.07113990932703018, 0.020837830379605293, 0.000624924898147583, 0.03222768381237984, 0.05676255002617836, 0.02421744354069233 ]
718,273
pytorch_optimizer.loss.f1
SoftF1Loss
Soft-F1 loss. :param beta: float. f-beta. :param eps: float. epsilon.
class SoftF1Loss(nn.Module): r"""Soft-F1 loss. :param beta: float. f-beta. :param eps: float. epsilon. """ def __init__(self, beta: float = 1.0, eps: float = 1e-6): super().__init__() self.beta = beta self.eps = eps def forward(self, y_pred: torch.Tensor, y_true: torch.Tensor) -> torch.Tensor: tp = (y_true * y_pred).sum().float() fn = ((1 - y_true) * y_pred).sum().float() fp = (y_true * (1 - y_pred)).sum().float() p = tp / (tp + fp + self.eps) r = tp / (tp + fn + self.eps) f1 = (1 + self.beta ** 2) * (p * r) / ((self.beta ** 2) * p + r + self.eps) # fmt: skip f1 = torch.where(torch.isnan(f1), torch.zeros_like(f1), f1) return 1.0 - f1.mean()
(beta: float = 1.0, eps: float = 1e-06)
[ -0.03969491273164749, -0.046721201390028, 0.017094889655709267, 0.04690229147672653, 0.039151642471551895, -0.037739139050245285, -0.04979972913861275, -0.02229217067360878, 0.01528398972004652, 0.019720692187547684, -0.009769801050424576, -0.02087966911494732, -0.004601947497576475, 0.03379138186573982, -0.014994245953857899, 0.03192615509033203, 0.014206504449248314, 0.04346158355474472, -0.014088796451687813, -0.003531253430992365, 0.02049938030540943, 0.009561548009514809, 0.0026642854791134596, 0.051864154636859894, -0.037847794592380524, -0.03947760537266731, -0.0009495902922935784, -0.03288593143224716, -0.02977118454873562, -0.02741701528429985, -0.01806372031569481, -0.020227745175361633, 0.028322463855147362, 0.013491199351847172, 0.011861390434205532, 0.017384633421897888, -0.002424341393634677, 0.03674314543604851, -0.08344623446464539, -0.03035067208111286, 0.00974263809621334, -0.032958365976810455, -0.0020768751855939627, 0.018724698573350906, -0.010358343832194805, 0.007850248366594315, 0.008348245173692703, 0.021314283832907677, 0.02020963653922081, 0.008506699465215206, -0.020463161170482635, 0.0029766657389700413, 0.01924985833466053, -0.054689157754182816, -0.004690228961408138, 0.07341385632753372, 0.05190037190914154, -0.015854423865675926, -0.042809657752513885, -0.02162213623523712, 0.02048126980662346, -0.02296220324933529, 0.036163657903671265, -0.012730621732771397, 0.01609889417886734, -0.0112909572198987, -0.03558417037129402, 0.0031328557524830103, -0.004126586485654116, 0.0380651019513607, -0.0003681218659039587, -0.021748900413513184, 0.0023111600894480944, 0.05425454303622246, 0.010829177685081959, -0.010059545747935772, -0.014541520737111568, -0.04458434134721756, 0.014460030943155289, -0.014541520737111568, 0.001979539170861244, -0.05678980052471161, -0.014070686884224415, -0.0031419103033840656, 0.009588711895048618, -0.07091481238603592, -0.03417167067527771, -0.02826813794672489, 0.01716732420027256, 0.029843619093298912, -0.019883673638105392, 0.02370467036962509, -0.007284342311322689, -0.02672887220978737, 0.09090714156627655, 0.03531253710389137, -0.009326131083071232, -0.023632235825061798, -0.010358343832194805, -0.023686561733484268, -0.0010367397917434573, 0.1177808865904808, -0.039658691734075546, 0.05918018892407417, 0.023034637793898582, -0.014007305726408958, -0.018217645585536957, 0.004414067137986422, -0.019666366279125214, -0.05200902745127678, -0.04317183792591095, -0.0462503656744957, -0.01072052400559187, -0.03000660054385662, 0.005858259275555611, -0.06196897104382515, -0.028177592903375626, 0.03674314543604851, -0.00985129177570343, 0.020137200132012367, 0.05809364840388298, 0.023614125326275826, -0.05765903368592262, -0.0029155476950109005, -0.004984500352293253, -0.01320145558565855, 0.06023050844669342, -0.05374749004840851, 0.031491536647081375, -0.06334525346755981, -0.03973113000392914, 0.06537346541881561, -0.00547344284132123, 0.06095486879348755, 0.013971087522804737, -0.07156673818826675, -0.014776937663555145, 0.034642502665519714, 0.026819417253136635, -0.015121009200811386, 0.005563987884670496, -0.002822739304974675, 0.004835100844502449, 0.038535937666893005, -0.009176732040941715, -0.010847286321222782, 0.01246804092079401, 0.006505655590444803, 0.035547953099012375, -0.016524456441402435, 0.010186308063566685, 0.012078697793185711, 0.01588158681988716, -0.0016728182090446353, 0.025062846019864082, 0.04277344048023224, 0.020463161170482635, -0.0533490926027298, -0.002822739304974675, 0.027706759050488472, -0.024048741906881332, -0.02989794686436653, -0.04664876312017441, -0.007162106689065695, -0.0032505642157047987, -0.04223017022013664, -0.006116311997175217, 0.015130063518881798, 0.008230537176132202, 0.035765260457992554, 0.04070901498198509, -0.04244747757911682, 0.06982827186584473, 0.04197664558887482, -0.014559630304574966, 0.08351867645978928, -0.008262228220701218, -0.0007056848262436688, -0.021694572642445564, 0.031889934092760086, 0.04425837844610214, -0.02960820309817791, -0.05577569827437401, -0.0903276577591896, 0.024555793032050133, 0.049002934247255325, -0.003015147289261222, 0.035547953099012375, -0.017592886462807655, 0.04237504303455353, 0.031437210738658905, -0.01711299829185009, 0.025877749547362328, 0.013264836743474007, 0.01580915041267872, -0.026873745024204254, 0.03983978182077408, -0.020734796300530434, 0.09771612286567688, -0.05487024784088135, 0.0004479146155063063, 0.022600023075938225, 0.043932415544986725, 0.07069750875234604, -0.05345774441957474, 0.022092970088124275, 0.012676294893026352, 0.07757892459630966, -0.0513208843767643, -0.06823468208312988, -0.03596445918083191, 0.007519759237766266, -0.009688311256468296, 0.054797809571027756, 0.005179171916097403, -0.04396863281726837, -0.012676294893026352, -0.0061751664616167545, 0.001153882360085845, -0.014460030943155289, -0.015510352328419685, -0.04317183792591095, -0.06229493394494057, 0.03303080052137375, 0.06577186286449432, 0.013699452392756939, 0.01440570317208767, -0.019503384828567505, 0.02803272008895874, 0.047590430825948715, 0.019267968833446503, 0.012676294893026352, -0.0007967956480570138, -0.012051534838974476, 0.08858919143676758, 0.050234343856573105, 0.0051338993944227695, -0.02651156485080719, -0.05566704273223877, -0.025696659460663795, -0.0016965862596407533, -0.07547827810049057, 0.015329262241721153, 0.005002608988434076, 0.025189608335494995, -0.011019322089850903, 0.025805315002799034, 0.03263240307569504, -0.022255951538681984, 0.013436872512102127, -0.05070517957210541, -0.031093141064047813, 0.0025262045674026012, 0.03361029177904129, -0.011272847652435303, -0.09633983671665192, -0.02482742816209793, -0.017076779156923294, 0.020626142621040344, 0.005903531331568956, -0.027779193595051765, -0.014369485899806023, -0.06377986818552017, 0.043425362557172775, -0.003182655433192849, -0.008973006159067154, -0.03201669827103615, 0.0022692831698805094, 0.05650005489587784, 0.008941315114498138, 0.10220715403556824, 0.011236629448831081, -0.011336229741573334, -0.03654394671320915, 0.003615007735788822, -0.003436181228607893, -0.007977011613547802, 0.005124845076352358, -0.006347201764583588, 0.0003084187919739634, 0.02178511768579483, -0.10706036537885666, -0.025877749547362328, -0.012114915996789932, 0.03882567957043648, 0.03433464840054512, -0.007628412917256355, -0.045960623770952225, 0.045851968228816986, -0.020535597577691078, 0.06265711039304733, 0.04780774191021919, 0.10141035914421082, 0.007374887354671955, 0.004033777862787247, 0.032052915543317795, 0.002594113117083907, -0.007664631120860577, 0.0400933101773262, 0.006831617560237646, 0.04711959883570671, -0.0007475618622265756, -0.03697856143116951, -0.05374749004840851, -0.04099876061081886, -0.06298307329416275, 0.00807661097496748, 0.09235586225986481, 0.013844325207173824, -0.01483126450330019, 0.014378540217876434, -0.005025245249271393, -0.012160188518464565, 0.032849714159965515, 0.01345498114824295, -0.043534018099308014, 0.029753074049949646, -0.013011311180889606, 0.045055173337459564, 0.04020196199417114, 0.014704502187669277, 0.05349396541714668, 0.022600023075938225, 0.06113595888018608, -0.03147342801094055, -0.06106352433562279, 0.0528058223426342, -0.01700434461236, -0.023052748292684555, 0.017773976549506187, 0.014876537024974823, -0.029698748141527176, 0.04020196199417114, 0.005034300033003092, -0.06914013624191284, 0.013980141840875149, 0.052552297711372375, 0.02066235989332199, 0.005142953712493181, -0.02674698270857334, 0.03639907389879227, 0.002291919430717826, -0.012314114719629288, 0.016705544665455818, 0.01767437718808651, -0.026239929720759392, 0.0037236616481095552, -0.01599024049937725, 0.046069275587797165, 0.05056030675768852, -0.027616214007139206, -0.004117532167583704, 0.028105156496167183, 0.024048741906881332, 0.06113595888018608, -0.0015483188908547163, -0.048785626888275146, 0.014994245953857899, 0.01632525585591793, -0.06095486879348755, -0.0028544298838824034, -0.012277896516025066, -0.055196210741996765, 0.024501467123627663, 0.008542917668819427, 0.023740889504551888, -0.0032981003168970346, 0.03958625718951225, -0.03384570777416229, -0.013826215639710426, -0.019829345867037773, -0.019557712599635124, -0.05736928805708885, -0.025171499699354172, -0.021187521517276764, -0.03795645013451576, 0.009824128821492195, 0.005831095390021801, 0.03129233792424202, -0.003467872040346265, 0.04751799628138542, -0.007429214194417, -0.06819846481084824, 0.013328218832612038, 0.04338914528489113, 0.013518363237380981, -0.013083746656775475, -0.05878179147839546, 0.041505809873342514, -0.006750126834958792, 0.02611316740512848, -0.005170117132365704, 0.018217645585536957, 0.022328387945890427, -0.062005192041397095, 0.024048741906881332, 0.04650389403104782, 0.03569282591342926, -0.02515339106321335, -0.025370698422193527, -0.015510352328419685, -0.0370509997010231, -0.002345114480704069, 0.0055504064075648785, -0.004153750371187925, -0.0017792085418477654, 0.01302941981703043, 0.03417167067527771, -0.030441217124462128, 0.1308917999267578, -0.03073096089065075, 0.04903915151953697, -0.011852335184812546, 0.010901613160967827, -0.001282343058846891, -0.003293572925031185, 0.01991989091038704, -0.04491030052304268, 0.018779024481773376, 0.017239760607481003, 0.007112307008355856, 0.016180384904146194, 0.020282071083784103, 0.00970641989260912, -0.07562315464019775, -0.026891853660345078, -0.015130063518881798, 0.04143337532877922, -0.03140099346637726, 0.017592886462807655, -0.04882184416055679, -0.06569942831993103, 0.0005149744683876634, -0.08909624069929123, -0.023614125326275826, -0.03091205097734928, 0.00007767060014884919, -0.04969107359647751, -0.0038028883282095194, 0.0302239079028368, 0.018724698573350906, 0.028974387794733047, 0.0528058223426342, 0.010992158204317093, -0.036616381257772446, -0.059252623468637466, 0.03303080052137375, -0.01699529029428959, -0.06819846481084824, -0.0009156359592452645, -0.06186031922698021, -0.004672119859606028, 0.03619987517595291, 0.020517488941550255, 0.026022622361779213, 0.007320560049265623, -0.047264471650123596, -0.037123434245586395, 0.019177423790097237, 0.026203712448477745, -0.025406915694475174, 0.07533340901136398, -0.05726063251495361, 0.02881140634417534, -0.007845721207559109, -0.056717365980148315, 0.07910007983446121, 0.007610304281115532, -0.02183944545686245, 0.008963950909674168, 0.0008669680100865662, -0.038535937666893005, 0.029698748141527176, -0.020390724763274193, -0.06320038437843323, 0.027887849137187004, -0.017810193821787834, -0.006786345038563013, 0.07873789966106415, -0.00332752731628716, -0.0049980818293988705, -0.04498273879289627, 0.02122373878955841, 0.010104818269610405, 0.010602815076708794, 0.0008092456264421344, 0.007596722338348627, 0.0035968986339867115, -0.006750126834958792, 0.04520004615187645, 0.011951935477554798, -0.044946517795324326, 0.026765091344714165, 0.023034637793898582, -0.08895137161016464, -0.04664876312017441, -0.023958196863532066, 0.034642502665519714, 0.004443494137376547, -0.011037430725991726, 0.0000857347622513771, 0.00923105888068676, -0.10075843334197998, 0.014767883345484734, 0.031726956367492676, -0.003375063417479396, -0.04175933822989464, 0.0004538566281553358, -0.031944263726472855, -0.011897607706487179, -0.015546570532023907, -0.028847625479102135, -0.009697365574538708, 0.033465418964624405, -0.02509906329214573, -0.008167156018316746, 0.03480548411607742, 0.06747410446405411, -0.0005667548975907266, -0.017257869243621826, -0.0026325949002057314, 0.019376622512936592, 0.03831862658262253, -0.02926413156092167, -0.024175504222512245, 0.0203182902187109, -0.012984147295355797, -0.018996333703398705, 0.06428692489862442, 0.023161401972174644, -0.002262492198497057, 0.00435973983258009, -0.0022308016195893288, -0.0042782495729625225, -0.00751523207873106, -0.02060803398489952, -0.04262856766581535, -0.04791639372706413, -0.10836420953273773, -0.03313945606350899, 0.003617271315306425, -0.007800448685884476, 0.023777106776833534, 0.00011947690654778853, -0.010675251483917236, -0.021821336820721626, -0.04480164870619774, 0.05617409572005272, -0.0630192905664444, 0.007592195179313421, -0.0680898129940033, -0.05171928182244301, -0.014813155867159367, -0.02205675281584263, 0.037521831691265106, 0.07975200563669205, 0.010928777046501637, 0.07084237784147263, 0.029879838228225708, 0.03417167067527771, -0.03719586879014969, -0.047481779009103775, 0.06924878805875778, 0.01468639262020588, -0.07247218489646912, 0.00005093154322821647, 0.024954192340373993, -0.004219395108520985, -0.047373123466968536, 0.02296220324933529, -0.016171330586075783, 0.028793297708034515, -0.0182900819927454, 0.015800096094608307, -0.03857215493917465, -0.0213323924690485, 0.028105156496167183, -0.063960961997509, -0.012866439297795296, -0.0037802523002028465, -0.006224966142326593, -0.05726063251495361, -0.006383419968187809, -0.01097404956817627, -0.040781449526548386, 0.0238676518201828, -0.05363883450627327, 0.0451638288795948, -0.032849714159965515, 0.03027823567390442, -0.018154265359044075, -0.054001014679670334, 0.013129019178450108, -0.041179850697517395, 0.009090714156627655, -0.017085835337638855, -0.05863691866397858, 0.011635027825832367, 0.07431930303573608, 0.06479397416114807, -0.022527586668729782, -0.024917973205447197, 0.01672365516424179, -0.04085388779640198, 0.04903915151953697, -0.005378370638936758, -0.021549701690673828, 0.020300179719924927, 0.022944092750549316, -0.07446417957544327, -0.02786973863840103, 0.025642333552241325, 0.012504259124398232, -0.00012018428969895467, -0.05932505801320076, 0.043534018099308014, -0.005174644757062197, -0.0005387425189837813, 0.010548488236963749, 0.01165313646197319, -0.00998710934072733, 0.023541690781712532, -0.0213323924690485, 0.000622496590949595, 0.03467871993780136, -0.01570049673318863, 0.04845966398715973, -0.07069750875234604, -0.0014396648621186614, -0.01165313646197319, -0.037521831691265106, 0.04273722320795059, -0.008370881900191307, -0.00804944708943367, -0.012051534838974476, 0.004667592700570822, -0.011644082143902779, 0.03462439402937889, -0.015121009200811386, -0.02774297632277012, -0.03558417037129402, 0.0386083722114563, -0.05932505801320076, -0.020119091495871544, -0.005975967738777399, -0.013110910542309284, -0.05881800875067711, -0.027091052383184433, 0.07830328494310379, -0.03630853071808815, -0.022092970088124275, 0.041795555502176285, 0.019575821235775948, 0.05070517957210541, 0.06001320108771324, -0.006089148577302694, 0.01605362258851528, 0.00465853838250041, 0.0036399075761437416, -0.027163488790392876, 0.008493117056787014, -0.07830328494310379, 0.06243980675935745, 0.052045244723558426, 0.021604027599096298, 0.031165575608611107, 0.022889766842126846, -0.08743021637201309, -0.03399058058857918, -0.040672797709703445, -0.037847794592380524, 0.02825002744793892, -0.033012691885232925, 0.00143853307235986, 0.05461672320961952, -0.024157395586371422, 0.025189608335494995, 0.038861896842718124, -0.04277344048023224, 0.019503384828567505, 0.04943754896521568, 0.009778856299817562, 0.022672459483146667, -0.0012483886675909162, 0.030948268249630928, 0.01210586167871952, -0.048495881259441376, 0.04375132545828819, -0.06971962004899979, -0.005396479740738869, -0.054906465113162994, -0.024573903530836105, 0.04052792489528656, 0.027054835110902786, 0.013989197090268135, -0.006519237533211708, -0.026602109894156456, 0.0019274759106338024, -0.03181749954819679, -0.05668114498257637, -0.03665260225534439, -0.012848329730331898, -0.01847117207944393, -0.0026552309282124043, 0.014613957144320011, 0.044041071087121964, 0.0036557528655976057, -0.05157440900802612, -0.04744556173682213, 0.009298967197537422, -0.02520771697163582, 0.048387229442596436, 0.04491030052304268, 0.03748561441898346, 0.00075661635491997, 0.03518577292561531, 0.0017260133754462004, -0.038644589483737946, -0.0019331349758431315, 0.04186799004673958, -0.007931739091873169, -0.030260127037763596, 0.00661430973559618, 0.0751885399222374, -0.0436788909137249, -0.03466061130166054, 0.0012551795225590467, -0.04262856766581535, -0.03507711738348007, 0.007655576802790165, 0.03849971666932106, 0.01762004941701889, -0.015791041776537895, -0.015401697717607021, 0.02042694389820099, -0.022654348984360695, 0.11010267585515976, 0.007479013875126839, 0.02757999487221241, 0.0319804809987545, 0.02515339106321335, 0.0013559107901528478, 0.008312027901411057, 0.009778856299817562, 0.05371127277612686, 0.02939089573919773, -0.010711468756198883, 0.027851630002260208, -0.009108822792768478, -0.010358343832194805, 0.03207102417945862, 0.010756741277873516, 0.011155139654874802, 0.005428170319646597, 0.10293151438236237, -0.0400933101773262, 0.00886435154825449, -0.028974387794733047, -0.07076994329690933, -0.06787250190973282, -0.02645723894238472, -0.026131276041269302, 0.06117217615246773, 0.033809490501880646, -0.010077654384076595, 0.03158208355307579, 0.03623609244823456, 0.05751416087150574 ]
718,279
pytorch_optimizer.loss.f1
__init__
null
def __init__(self, beta: float = 1.0, eps: float = 1e-6): super().__init__() self.beta = beta self.eps = eps
(self, beta: float = 1.0, eps: float = 1e-06)
[ 0.02952057309448719, -0.02309507504105568, -0.020635027438402176, 0.00605373689904809, -0.057242006063461304, -0.02634454146027565, -0.050779789686203, -0.012997863814234734, -0.024637194350361824, 0.037231169641017914, -0.008201688528060913, 0.0069992030039429665, -0.014879616908729076, 0.05279923230409622, -0.05801306664943695, 0.003325195051729679, 0.0626027062535286, 0.048026006668806076, -0.02751948870718479, 0.017055107280611992, -0.040609147399663925, 0.012538899667561054, -0.014365577138960361, 0.053313273936510086, -0.017312126234173775, 0.0591512955725193, 0.026693353429436684, 0.0015042548766359687, -0.028125321492552757, -0.02856592647731304, -0.019423361867666245, -0.013383394107222557, 0.025518406182527542, 0.0374881885945797, 0.05588347092270851, -0.03333915397524834, 0.00653105927631259, -0.004497848451137543, -0.10677341371774673, 0.04714479669928551, 0.06216210126876831, -0.022342372685670853, -0.014338038861751556, -0.017385561019182205, 0.0007710597128607333, -0.02122250199317932, 0.04244500398635864, 0.04765883460640907, -0.017302947118878365, -0.02952057309448719, -0.02544497139751911, -0.016155537217855453, 0.08129172772169113, -0.021479520946741104, -0.05467180535197258, 0.08775394409894943, 0.06675174087285995, 0.01581590436398983, -0.01986396685242653, 0.050816506147384644, -0.02851085178554058, -0.017302947118878365, -0.004277545493096113, -0.053092971444129944, -0.016082102432847023, -0.027684716507792473, -0.07842779159545898, -0.015990309417247772, 0.020561592653393745, 0.092820905148983, 0.0772528424859047, -0.004263776820152998, -0.01900111511349678, 0.015384477563202381, 0.016072923317551613, 0.01776191219687462, -0.07156168669462204, 0.000036896413803333417, -0.03899359330534935, -0.02417822927236557, -0.0027537846472114325, 0.02002919465303421, -0.02535317838191986, -0.01156589575111866, 0.04127005487680435, -0.04538237303495407, -0.02404971979558468, -0.023884493857622147, 0.0356706902384758, 0.07563728839159012, -0.06388780474662781, -0.02829054929316044, 0.011703585274517536, -0.010794836096465588, 0.038369402289390564, 0.00898192822933197, 0.03991151973605156, -0.03438559174537659, 0.03163180872797966, -0.038259249180555344, 0.022874772548675537, 0.0039539760909974575, -0.024912573397159576, 0.018615584820508957, -0.016017848625779152, -0.02964908257126808, -0.005062374286353588, -0.04420742392539978, 0.030915822833776474, -0.0017211154336109757, -0.020818613469600677, 0.07864809036254883, -0.029869385063648224, 0.042628586292266846, -0.061427757143974304, -0.01051945798099041, -0.023590756580233574, 0.01054699532687664, 0.0544147863984108, 0.021497879177331924, -0.00684315524995327, 0.056250642985105515, -0.03717609494924545, 0.08863515406847, 0.014237066730856895, 0.009096669033169746, 0.024416891857981682, 0.013970867730677128, -0.03866313770413399, -0.018156621605157852, 0.07615132629871368, 0.001419346546754241, -0.006742183119058609, 0.01594441384077072, 0.03697415068745613, -0.05283594876527786, 0.004132972098886967, 0.03653354570269585, 0.008532143197953701, 0.0037910437677055597, 0.035156652331352234, -0.019441720098257065, 0.0026436334010213614, -0.048943933099508286, -0.02324194274842739, 0.049898579716682434, -0.0054570832289755344, -0.03150329738855362, -0.03440394997596741, 0.0090094655752182, -0.004539155401289463, 0.017486533150076866, 0.011226262897253036, -0.021791616454720497, 0.038589704781770706, -0.053239837288856506, 0.051146961748600006, -0.045676108449697495, 0.02223222143948078, 0.004865019582211971, -0.01569657400250435, 0.015081561170518398, -0.0033458485268056393, -0.03987480327486992, -0.03183375298976898, 0.04964156076312065, -0.06186836585402489, -0.01772519387304783, -0.0025243025738745928, -0.00031266931910067797, -0.017458995804190636, -0.07501309365034103, -0.010767298750579357, 0.037396397441625595, -0.0015627729007974267, 0.045822978019714355, 0.040645863860845566, 0.04024197533726692, 0.016183074563741684, 0.025591839104890823, 0.07292021811008453, -0.021791616454720497, -0.06003250926733017, -0.004300493746995926, 0.03141150623559952, 0.002733131404966116, -0.02856592647731304, 0.041380204260349274, -0.05382731184363365, -0.013438469730317593, 0.018193338066339493, 0.023829417303204536, 0.013823999091982841, 0.03256809338927269, -0.0014227888314053416, 0.010785656981170177, 0.05257892981171608, -0.005351521540433168, 0.03510157763957977, 0.04655732214450836, 0.00951891578733921, 0.014549163170158863, 0.005815075244754553, -0.04809943959116936, 0.051036812365055084, -0.03064044564962387, -0.0231134332716465, -0.03251301869750023, -0.020690102130174637, -0.025977369397878647, -0.05052277073264122, -0.009225178509950638, 0.02324194274842739, -0.005558055359870195, -0.01209829468280077, -0.06792668998241425, 0.045786261558532715, -0.016522709280252457, 0.01879917085170746, 0.0460432805120945, 0.08503687381744385, -0.05992235615849495, 0.03253137692809105, -0.017137721180915833, 0.008903903886675835, 0.03245794400572777, 0.04762211814522743, -0.010289975441992283, -0.04321606084704399, -0.0029281910974532366, -0.025812141597270966, -0.0240680780261755, -0.019313210621476173, -0.033155567944049835, -0.012988684698939323, 0.07222259789705276, -0.01682562567293644, 0.019478436559438705, -0.09649261832237244, -0.04244500398635864, 0.025959011167287827, 0.003265529638156295, -0.013291601091623306, 0.01907454989850521, -0.019405003637075424, -0.0024072667583823204, 0.01415445376187563, 0.04644716903567314, -0.016614500433206558, -0.0033894500229507685, -0.020359648391604424, -0.057352155447006226, 0.018101545050740242, 0.04299575835466385, -0.006278629414737225, 0.01786288432776928, 0.009904446080327034, 0.022819695994257927, 0.04865019768476486, 0.012382851913571358, 0.003132430138066411, 0.002010262804105878, 0.0032747089862823486, 0.08466970175504684, -0.0010533226886764169, 0.038479551672935486, -0.027592923492193222, -0.03163180872797966, 0.037341322749853134, 0.023755982518196106, 0.15553376078605652, -0.0024233306758105755, -0.010234899818897247, -0.026674995198845863, 0.01570575311779976, -0.035193368792533875, -0.019533513113856316, 0.0063796015456318855, -0.007825338281691074, 0.015118278563022614, 0.04435429349541664, -0.05959190055727959, 0.004571282770484686, 0.030328350141644478, -0.04391368851065636, -0.013952509500086308, -0.022360732778906822, 0.023737624287605286, 0.01258479617536068, -0.04090288281440735, -0.035046499222517014, -0.005011888220906258, 0.07409516721963882, 0.05019231513142586, 0.07894182950258255, -0.012190086767077446, 0.029851026833057404, -0.021369369700551033, 0.015595600940287113, 0.008706549182534218, 0.0776200145483017, -0.053276557475328445, 0.003958565648645163, 0.030713878571987152, -0.033100493252277374, -0.012171728536486626, 0.053166404366493225, 0.031980618834495544, 0.055406149476766586, 0.01108857337385416, 0.0054570832289755344, 0.0337614007294178, -0.01584344170987606, 0.04398712143301964, -0.0012908366043120623, -0.04248172044754028, -0.0006987728993408382, -0.10853583365678787, -0.003738262690603733, 0.03662533685564995, -0.009610708802938461, 0.010234899818897247, -0.0028685256838798523, -0.023792700842022896, -0.0551491305232048, -0.035303521901369095, 0.021644748747348785, 0.034348875284194946, -0.01006049383431673, -0.016559425741434097, -0.06117073819041252, -0.017018388956785202, 0.04288560897111893, 0.010721402242779732, -0.026748429983854294, -0.022470884025096893, -0.0034376413095742464, 0.004532270599156618, -0.005328573286533356, -0.05959190055727959, 0.042591869831085205, -0.011694406159222126, -0.039581067860126495, 0.01698167249560356, 0.030016254633665085, -0.04141692444682121, -0.024765703827142715, -0.07813405245542526, 0.03578084334731102, 0.03370632603764534, 0.005424955859780312, -0.004718151409178972, -0.014025943353772163, 0.027133958414196968, 0.02214043028652668, -0.008812110871076584, -0.012704126536846161, -0.028988173231482506, 0.011042676866054535, -0.05155085027217865, -0.003653354477137327, 0.06546664237976074, -0.03697415068745613, 0.03653354570269585, 0.036331601440906525, -0.0253898948431015, 0.012419569306075573, 0.00707263732329011, 0.032274357974529266, 0.023682549595832825, 0.01698167249560356, -0.037543267011642456, -0.04244500398635864, -0.029006533324718475, -0.017247872427105904, 0.022434165701270103, -0.03877329081296921, 0.0016614501364529133, 0.02729918621480465, -0.01464095525443554, 0.034036777913570404, -0.022397449240088463, 0.00021069322247058153, 0.016293225809931755, 0.0067972587421536446, -0.024765703827142715, 0.004093959927558899, 0.0035684460308402777, 0.10009089857339859, 0.0335778146982193, -0.01990068517625332, 0.006127171218395233, 0.0378553606569767, 0.01889096386730671, -0.032035697251558304, -0.0013642708072438836, 0.05797634646296501, -0.024545401334762573, -0.03759834170341492, 0.0401318222284317, 0.016155537217855453, 0.03168688341975212, -0.006705465726554394, 0.05122039467096329, -0.0017876653000712395, -0.04751196503639221, 0.023921210318803787, -0.011685227043926716, 0.002478406298905611, 0.06109730526804924, -0.016375839710235596, -0.0251145176589489, -0.037231169641017914, -0.002829513745382428, 0.011712764389812946, -0.015219250693917274, 0.007774852216243744, -0.09590514004230499, 0.03392662853002548, -0.06014265865087509, -0.0006987728993408382, 0.007907952181994915, 0.04317934438586235, 0.04729166254401207, 0.04736509919166565, 0.02434345707297325, 0.004479489754885435, -0.02118578366935253, -0.011712764389812946, -0.00138607167173177, -0.05812321603298187, -0.03647846728563309, -0.05290938541293144, -0.021442804485559464, 0.030934182927012444, -0.02639961615204811, -0.036515187472105026, -0.026014085859060287, -0.007343425881117582, 0.0013482071226462722, 0.002430215012282133, -0.015402835793793201, 0.05481867492198944, 0.015613959170877934, -0.009385816752910614, -0.0273909792304039, 0.03150329738855362, -0.008394453674554825, -0.01787206344306469, -0.02623439021408558, 0.034348875284194946, -0.03359617292881012, 0.05779276415705681, -0.03289854899048805, 0.018395282328128815, -0.045933131128549576, -0.05569988489151001, -0.03245794400572777, 0.03717609494924545, -0.018285131081938744, 0.00582425482571125, 0.022746261209249496, -0.02419658936560154, -0.03262317180633545, -0.057388875633478165, 0.023755982518196106, 0.09377554804086685, 0.011712764389812946, -0.0034904221538454294, -0.014962230809032917, 0.03653354570269585, 0.030181480571627617, -0.0006322230910882354, -0.045933131128549576, -0.06642128527164459, -0.0002720796619541943, -0.04927438870072365, 0.00007189242751337588, 0.012410390190780163, -0.024802422150969505, -0.03220092132687569, -0.05364372581243515, 0.026950374245643616, 0.055185846984386444, 0.021387727931141853, 0.020212780684232712, -0.0013126373523846269, -0.004823713097721338, 0.03155837208032608, 0.03269660472869873, -0.0696156769990921, 0.02212207019329071, -0.004805354401469231, 0.05614049360156059, -0.03546874597668648, -0.015512987039983273, 0.03866313770413399, 0.060656700283288956, 0.02212207019329071, 0.003632701002061367, -0.030126405879855156, -0.0001701035798760131, -0.02100219763815403, -0.04189424589276314, 0.015255967155098915, -0.06708219647407532, -0.06539320945739746, 0.005062374286353588, -0.030934182927012444, 0.0014790118439123034, 0.02832726575434208, -0.017596684396266937, -0.016293225809931755, 0.0201577041298151, 0.013098835945129395, -0.0006402549333870411, -0.06175821274518967, 0.018404461443424225, -0.010895808227360249, -0.01425542589277029, 0.01885424554347992, 0.030934182927012444, 0.025500046089291573, -0.07292021811008453, 0.01887260563671589, 0.011804557405412197, -0.012951967306435108, -0.012254342436790466, 0.042591869831085205, 0.06781654059886932, -0.002006820635870099, -0.049090802669525146, -0.013906612992286682, 0.0669720470905304, -0.038369402289390564, 0.027703074738383293, 0.00448407931253314, -0.032090771943330765, -0.008169561624526978, -0.031044334173202515, 0.018670661374926567, 0.023719266057014465, 0.0802636444568634, -0.03264153003692627, -0.01982725039124489, 0.014062660746276379, -0.054121050983667374, 0.06814699620008469, -0.03181539475917816, -0.018698198720812798, 0.06326361745595932, -0.022360732778906822, -0.04009510576725006, -0.021736541762948036, -0.0014342628419399261, 0.0033894500229507685, 0.01794549636542797, 0.0022603983525186777, 0.016183074563741684, -0.0031898007728159428, -0.013539441861212254, -0.02419658936560154, 0.07082734256982803, 0.008091537281870842, -0.055259279906749725, -0.0024325097911059856, -0.012419569306075573, -0.005998661275953054, -0.05070635676383972, 0.012437927536666393, 0.030824029818177223, -0.06502603739500046, -0.006985433865338564, -0.019349927082657814, -0.04545580595731735, 0.03704758360981941, -0.013851537369191647, 0.030713878571987152, -0.04953140765428543, -0.014227887615561485, 0.0037933385465294123, -0.011611792258918285, -0.07060704380273819, -0.08283384889364243, 0.0083485571667552, 0.019184701144695282, -0.057278722524642944, -0.0054846215061843395, -0.013410931453108788, 0.006710055284202099, -0.010767298750579357, 0.03712102025747299, -0.02412315458059311, -0.07090077549219131, -0.08349475264549255, -0.039581067860126495, -0.027941735461354256, -0.028749512508511543, 0.017578326165676117, 0.012768382206559181, -0.03381647542119026, 0.014962230809032917, 0.00582425482571125, 0.03568905219435692, 0.02012098766863346, -0.02623439021408558, 0.010198182426393032, 0.019478436559438705, -0.018606405705213547, -0.03234779089689255, 0.0032930676825344563, -0.011327235028147697, -0.013566979207098484, -0.009785114787518978, -0.019294852390885353, -0.0068936413154006, -0.0026619918644428253, -0.014347218908369541, 0.0333942286670208, 0.03818581625819206, -0.06653144210577011, 0.024728987365961075, 0.014934692531824112, 0.041380204260349274, -0.014521624892950058, -0.041563790291547775, 0.014797003008425236, -0.1198447123169899, 0.004350979812443256, -0.044831614941358566, 0.013842358253896236, 0.00018745816487353295, -0.020635027438402176, -0.07585758715867996, -0.05481867492198944, 0.00844952929764986, -0.0020137052051723003, 0.004594231024384499, 0.032109130173921585, 0.038589704781770706, -0.0004466294776648283, 0.043693386018276215, -0.008343967609107494, 0.01414527464658022, -0.00653105927631259, 0.01257561706006527, -0.06855088472366333, 0.014136094599962234, 0.062455836683511734, -0.002925896318629384, -0.0027216572780162096, 0.020745178684592247, -0.012281879782676697, 0.029814310371875763, -0.04545580595731735, 0.008132844232022762, 0.04024197533726692, 0.04751196503639221, 0.04729166254401207, -0.004247712902724743, -0.048943933099508286, -0.028786230832338333, -0.022470884025096893, 0.01671547256410122, 0.050118882209062576, 0.010592891834676266, -0.0253898948431015, -0.04497848451137543, -0.04758540168404579, -0.012144191190600395, -0.022581035271286964, -0.015118278563022614, -0.04112318530678749, -0.02109399065375328, -0.026876939460635185, 0.011253800243139267, -0.043693386018276215, -0.003215043805539608, -0.004123792517930269, 0.022305656224489212, 0.0667884573340416, 0.018230054527521133, -0.013952509500086308, -0.052028171718120575, -0.006296987645328045, 0.03163180872797966, -0.03598278760910034, 0.10405634343624115, -0.007825338281691074, -0.014521624892950058, -0.042702022939920425, -0.0422246977686882, 0.010491919703781605, 0.0397646501660347, 0.015063202939927578, 0.002983266720548272, -0.048026006668806076, -0.047805704176425934, 0.046814341098070145, -0.027078883722424507, 0.022525958716869354, 0.030879106372594833, -0.06502603739500046, 0.09693322330713272, 0.030713878571987152, 0.009243537671864033, 0.007504063658416271, -0.012612334452569485, 0.008876366540789604, -0.042738739401102066, 0.031925544142723083, 0.05085322633385658, 0.02404971979558468, -0.10581877082586288, -0.0007658964022994041, 0.09575827419757843, 0.028180398046970367, -0.030071329325437546, -0.04920095577836037, 0.04428086057305336, -0.02305835671722889, -0.036092936992645264, 0.03884672373533249, 0.00835773628205061, -0.004146740771830082, -0.0045735775493085384, -0.05375387892127037, -0.017605863511562347, 0.027868302538990974, -0.021626388654112816, 0.004587346222251654, 0.045933131128549576, -0.025628557428717613, -0.012254342436790466, -0.03818581625819206, -0.045786261558532715, -0.011308875866234303, 0.002531187143176794, 0.07350769639015198, 0.03589099273085594, 0.011832094751298428, -0.007279171142727137, -0.013741386123001575, -0.00249217520467937, 0.016614500433206558, 0.020524876192212105, 0.008288891986012459, 0.02201191894710064, 0.04949469119310379, -0.006255681160837412, -0.014053481630980968, 0.003373386338353157, 0.03605622053146362, 0.05885756015777588, 0.05246878042817116, -0.0397646501660347, 0.04292232543230057, -0.028051886707544327, -0.033284079283475876, -0.04916423559188843, -0.022838054224848747, -0.017440637573599815, 0.04703464359045029, 0.052028171718120575, -0.025408253073692322, 0.059628620743751526, 0.030970899388194084, 0.011877991259098053 ]
718,309
pytorch_optimizer.loss.f1
forward
null
def forward(self, y_pred: torch.Tensor, y_true: torch.Tensor) -> torch.Tensor: tp = (y_true * y_pred).sum().float() fn = ((1 - y_true) * y_pred).sum().float() fp = (y_true * (1 - y_pred)).sum().float() p = tp / (tp + fp + self.eps) r = tp / (tp + fn + self.eps) f1 = (1 + self.beta ** 2) * (p * r) / ((self.beta ** 2) * p + r + self.eps) # fmt: skip f1 = torch.where(torch.isnan(f1), torch.zeros_like(f1), f1) return 1.0 - f1.mean()
(self, y_pred: torch.Tensor, y_true: torch.Tensor) -> torch.Tensor
[ -0.019717318937182426, -0.031581129878759384, 0.005240313708782196, 0.0153635423630476, 0.029947303235530853, -0.002977556549012661, -0.05707254260778427, 0.0058344327844679356, 0.0051381997764110565, 0.05321076884865761, 0.03586992621421814, -0.04181111231446266, 0.029074691236019135, 0.02545427903532982, 0.017155181616544724, 0.05807511880993843, 0.02825777791440487, 0.021332580596208572, -0.0028104607481509447, 0.0022418703883886337, 0.004569609183818102, -0.028146380558609962, -0.030801348388195038, 0.05153980851173401, -0.016820989549160004, -0.03891478478908539, -0.02090555615723133, -0.03249087557196617, -0.054658934473991394, 0.04218243807554245, -0.006419268436729908, -0.008243398740887642, 0.01720159687101841, 0.006052585784345865, 0.04422472044825554, 0.011102596297860146, -0.016115473583340645, 0.009858659468591213, -0.053619224578142166, -0.04221957176923752, -0.012262984178960323, -0.07107146829366684, 0.026438288390636444, 0.048977673053741455, -0.040362950414419174, 0.0104713449254632, -0.05447327345609665, 0.002831347519531846, 0.03767084702849388, -0.0010443495120853186, -0.0028615177143365145, -0.01476014032959938, -0.010267116129398346, -0.005458466708660126, 0.009932924062013626, 0.08280531316995621, 0.03976882994174957, 0.0042586252093315125, -0.07140565663576126, -0.04827215522527695, 0.03620411828160286, -0.05443613976240158, 0.007978830486536026, 0.0019726601894944906, 0.029743075370788574, 0.0074357688426971436, -0.01820417307317257, 0.0003240384394302964, 0.009923641569912434, 0.023152068257331848, -0.04288795590400696, 0.024674497544765472, 0.016143323853611946, 0.019921546801924706, -0.008173775859177113, -0.00743112713098526, 0.01272713951766491, -0.05146554484963417, 0.007361503783613443, -0.0564412921667099, -0.03325209021568298, -0.008136643096804619, -0.01722944714128971, -0.03653831034898758, -0.025194352492690086, -0.05053723603487015, -0.010276399552822113, -0.02588130161166191, -0.02562137506902218, 0.05911482498049736, -0.03243517503142357, -0.00354382605291903, 0.013915377669036388, 0.012179436162114143, 0.05948615074157715, 0.02985447272658348, -0.017888547852635384, -0.015502789057791233, 0.009074237197637558, 0.01229083351790905, 0.01776786707341671, 0.11726420372724533, -0.044633179903030396, 0.029241787269711494, 0.05707254260778427, 0.008925707079470158, -0.04054861143231392, -0.00831766426563263, 0.00010936660692095757, -0.0418853797018528, -0.00948269385844469, -0.03817213699221611, -0.009245974943041801, -0.005681261420249939, -0.026958143338561058, -0.06668984144926071, -0.054584670811891556, 0.029000425711274147, -0.02161107398569584, 0.04619273915886879, 0.04377913102507591, -0.011548184789717197, -0.01776786707341671, -0.006957688834518194, -0.03356771543622017, -0.012402230873703957, 0.08800385147333145, -0.025695640593767166, -0.004887555725872517, -0.04507876932621002, -0.04715818166732788, 0.06215968355536461, 0.00911601074039936, 0.03022579662501812, -0.006456400733441114, 0.0026897802017629147, 0.00955231674015522, 0.010508476756513119, 0.04519016295671463, -0.017424391582608223, 0.06338505446910858, 0.003996377345174551, 0.016319701448082924, 0.026326891034841537, -0.012151586823165417, -0.00980296079069376, 0.020589930936694145, 0.08013177663087845, 0.02939031645655632, 0.011167577467858791, 0.03774511441588402, 0.011000481434166431, 0.04611847549676895, -0.044707443565130234, 0.007250106427818537, 0.02888902835547924, 0.01135323941707611, -0.016941670328378677, -0.0016523930244147778, -0.018909689038991928, -0.025528544560074806, -0.04095706716179848, -0.036315515637397766, -0.025305749848484993, 0.03122837282717228, -0.015038633719086647, 0.023653356358408928, 0.05558724328875542, 0.008707554079592228, 0.03984309360384941, 0.07140565663576126, -0.06409057229757309, 0.029873037710785866, 0.05072289705276489, -0.04281368851661682, 0.005904056131839752, 0.042033907026052475, -0.05109421908855438, -0.023263465613126755, 0.07070014625787735, 0.06472182273864746, -0.034923046827316284, -0.05588430538773537, -0.09468769282102585, 0.05933761969208717, -0.0009126454824581742, 0.0050964257679879665, 0.050314441323280334, -0.0032165965531021357, 0.04225670173764229, -0.010174285620450974, -0.050685763359069824, 0.04014015570282936, -0.010703422129154205, -0.009691563434898853, -0.028109248727560043, 0.03586992621421814, 0.017090199515223503, 0.08807811886072159, -0.0652788057923317, -0.02888902835547924, -0.042702291160821915, 0.0083687212318182, 0.0013054369483143091, -0.05558724328875542, 0.007974188774824142, -0.05387915298342705, 0.07259389758110046, -0.033753376454114914, -0.07348507642745972, -0.03297359496355057, -0.006725611165165901, -0.01977301761507988, 0.03052285499870777, 0.0030471798963844776, -0.004019585438072681, 0.0259555671364069, -0.02307780459523201, -0.02718093805015087, -0.00032490873127244413, -0.01613404043018818, -0.05588430538773537, -0.04110559821128845, 0.021351145580410957, 0.041031334549188614, -0.018185606226325035, 0.01770288497209549, 0.009120652452111244, -0.023894717916846275, -0.017025217413902283, 0.0005523448926396668, 0.027477996423840523, 0.0007467099349014461, -0.009129935875535011, 0.08622150123119354, 0.03319638967514038, 0.001771913026459515, -0.01048991084098816, -0.05246812105178833, 0.0452272966504097, -0.018027793616056442, -0.03410613536834717, 0.04244236648082733, 0.005839074496179819, 0.004929329734295607, 0.018826140090823174, 0.04025155305862427, 0.037893641740083694, -0.01749865710735321, 0.03286219760775566, -0.026809612289071083, -0.024098945781588554, -0.022223757579922676, 0.0030471798963844776, -0.016486797481775284, -0.0632365271449089, 0.05020304396748543, -0.032342344522476196, 0.049348995089530945, 0.04214530438184738, 0.011965924873948097, -0.00511035043746233, -0.026475420221686363, 0.0047158184461295605, -0.043630603700876236, 0.003297823714092374, -0.02835060842335224, -0.00183689477853477, 0.06245674565434456, 0.045672886073589325, 0.1083524227142334, 0.0005442221299745142, -0.04273942485451698, -0.023337731137871742, -0.0029288202058523893, 0.01553063839673996, 0.055624376982450485, -0.008614723570644855, 0.012495062313973904, -0.018055643886327744, 0.021685337647795677, -0.13850395381450653, -0.010062888264656067, -0.010629157535731792, 0.004887555725872517, 0.029371749609708786, 0.01237438153475523, -0.03128407150506973, 0.08547884970903397, -0.004130982793867588, 0.03828353434801102, 0.030987011268734932, 0.05306223779916763, 0.014481646940112114, 0.008280531503260136, -0.025602808222174644, -0.01969875395298004, -0.04455891251564026, 0.046304136514663696, 0.017192313447594643, 0.019383126869797707, 0.008090227842330933, 0.010759120807051659, -0.021388279274106026, -0.0699203610420227, -0.04028868302702904, 0.06011740118265152, 0.0652788057923317, -0.00946876872330904, -0.04611847549676895, 0.024823028594255447, -0.0009729856392368674, -0.0435563363134861, 0.0018415363738313317, -0.020961254835128784, -0.05688687786459923, 0.01897467114031315, -0.020497100427746773, 0.0508342944085598, 0.029817339032888412, 0.009747262112796307, 0.018928255885839462, 0.02801641635596752, 0.0502401739358902, -0.020051511004567146, -0.015707017853856087, 0.0008290974656119943, 0.00034521555062383413, -0.029817339032888412, 0.026159795001149178, 0.02073846012353897, -0.017480090260505676, -0.0040358309634029865, 0.034848783165216446, -0.0669497698545456, -0.037225257605314255, 0.003699318040162325, 0.022929273545742035, 0.010619874112308025, 0.013664733618497849, -0.01969875395298004, -0.02721806988120079, -0.020162908360362053, 0.009269182570278645, 0.012662158347666264, 0.014212436974048615, -0.008164492435753345, -0.014871537685394287, 0.0855531170964241, 0.03106127679347992, -0.030170097947120667, 0.023022105917334557, 0.039694566279649734, 0.04556148871779442, -0.007695695850998163, -0.018120624125003815, -0.07333654165267944, 0.029743075370788574, -0.007612147834151983, -0.026029832661151886, -0.043964795768260956, 0.009524467401206493, -0.05785232409834862, 0.053247902542352676, -0.016858121380209923, 0.0004957759520038962, -0.02354195900261402, 0.0006968132220208645, -0.027905019000172615, 0.013878244906663895, -0.012615742161870003, -0.01304276566952467, -0.022836443036794662, 0.011093312874436378, -0.04314788058400154, 0.01897467114031315, 0.012513628229498863, 0.000575262529309839, 0.0681380033493042, -0.008897857740521431, 0.008215549401938915, -0.000380027195205912, -0.09134577214717865, -0.003961565904319286, 0.01210517156869173, 0.02888902835547924, -0.0206456296145916, -0.06895492225885391, 0.014639459550380707, -0.04426185414195061, 0.028072115033864975, -0.043036483228206635, 0.0062336064875125885, -0.036018453538417816, -0.029371749609708786, -0.0008882773108780384, 0.035554300993680954, 0.06115710735321045, -0.0608600489795208, 0.016171172261238098, -0.0029868397396057844, 0.005314578767865896, -0.007858149707317352, 0.011232559569180012, -0.04047434777021408, 0.01239294745028019, 0.03546147048473358, 0.0721854418516159, -0.0491633340716362, 0.12112598121166229, -0.006210398394614458, 0.016291853040456772, -0.05684974789619446, -0.004998953081667423, -0.04905193671584129, 0.0346074216067791, -0.03629694879055023, -0.024841593578457832, 0.026401156559586525, 0.018194889649748802, 0.03516440838575363, 0.020757026970386505, 0.007236181758344173, -0.019828716292977333, -0.05153980851173401, 0.006470325402915478, -0.02261364832520485, 0.022149493917822838, -0.01706235110759735, 0.015809131786227226, -0.008252682164311409, -0.08354796469211578, -0.005839074496179819, -0.042330969125032425, 0.006488891784101725, -0.005156766157597303, 0.018324853852391243, -0.02872193232178688, -0.023597657680511475, 0.024098945781588554, -0.012532194145023823, -0.01947595924139023, 0.03750375285744667, 0.027106672525405884, -0.04273942485451698, -0.016217587515711784, 0.016106190159916878, -0.07393066585063934, -0.06750675290822983, -0.007588939741253853, -0.04819789156317711, 0.0232077669352293, 0.03891478478908539, 0.04281368851661682, -0.0012416155077517033, -0.007064444478601217, -0.047715168446302414, -0.07523030042648315, 0.019754450768232346, 0.010972632095217705, -0.0012752668699249625, 0.04652693122625351, -0.034180399030447006, 0.058594971895217896, -0.00769105413928628, -0.018621912226080894, 0.049943115562200546, 0.008596156723797321, -0.026976708322763443, -0.013432655483484268, -0.002471627201884985, -0.03767084702849388, 0.02745942957699299, 0.012225852347910404, -0.06836079806089401, 0.04860634729266167, -0.01477870624512434, 0.0037248467560857534, 0.06412770599126816, -0.008359437808394432, -0.06357071548700333, -0.008870008401572704, -0.039991624653339386, 0.00933416374027729, 0.022762177512049675, -0.0005787436966784298, -0.016885971650481224, 0.0026712140534073114, 0.04121699556708336, 0.04715818166732788, 0.007092293817549944, -0.03744805231690407, 0.051651205867528915, 0.008684346452355385, -0.12268554419279099, -0.047640904784202576, 0.0293531846255064, 0.028462005779147148, 0.04058574512600899, 0.04155118763446808, 0.016208304092288017, -0.0061918324790894985, -0.08020604401826859, -0.002193134045228362, -0.01572558283805847, 0.010898367501795292, -0.0024321740493178368, 0.0022732007782906294, -0.06984609365463257, 0.04990598186850548, 0.02244655229151249, 0.0019680187106132507, -0.030132966116070747, 0.007904565893113613, -0.003290861379355192, 0.008549741469323635, 0.028610534965991974, 0.0441504567861557, 0.0013228427851572633, -0.039694566279649734, -0.017025217413902283, 0.026605384424328804, -0.005825149826705456, -0.023003539070487022, -0.011473920196294785, 0.063719242811203, -0.03707673028111458, 0.004502306692302227, 0.034347496926784515, -0.03432893007993698, -0.006015453487634659, -0.03377194330096245, 0.004105453845113516, -0.004836498759686947, -0.07641853392124176, -0.02278074435889721, -0.023133503273129463, -0.05944901704788208, -0.06353358179330826, -0.013516203500330448, 0.005662695039063692, -0.01589267887175083, -0.013581185601651669, -0.017944246530532837, -0.02525005117058754, -0.009728696197271347, -0.03780081123113632, 0.026735348626971245, -0.036891065537929535, 0.018185606226325035, -0.0714799240231514, -0.027106672525405884, 0.014992217533290386, 0.03861772641539574, 0.0508342944085598, 0.09134577214717865, 0.03364197909832001, 0.08740973472595215, 0.01434240024536848, 0.030448591336607933, -0.025658506900072098, -0.06494461745023727, 0.05317363515496254, -0.010062888264656067, -0.01011858694255352, 0.02047853358089924, 0.014472363516688347, 0.02558424323797226, -0.0011441429378464818, 0.014899387024343014, -0.010647723451256752, 0.041662584990262985, -0.005444542039185762, 0.013163445517420769, 0.018844706937670708, 0.0065074581652879715, 0.06316225975751877, -0.08562737703323364, -0.016273286193609238, 0.019661620259284973, -0.013609034940600395, -0.08458767086267471, 0.024136077612638474, 0.006419268436729908, -0.04459604620933533, 0.0023544279392808676, -0.04953465983271599, 0.06639277935028076, 0.00938522070646286, 0.0024994765408337116, -0.062233950942754745, 0.006939122453331947, -0.028294909745454788, -0.02842487394809723, -0.014583760872483253, -0.047715168446302414, -0.03009583242237568, -0.0013820225140079856, 0.07337367534637451, 0.060897182673215866, 0.016709592193365097, -0.009589449502527714, 0.009942207485437393, -0.020497100427746773, 0.007115501444786787, -0.020682761445641518, -0.04901480674743652, 0.004321286454796791, -0.027997851371765137, -0.07849795371294022, -0.000791965052485466, -0.01653321273624897, 0.025268618017435074, -0.02291070856153965, -0.015651319175958633, 0.008535817265510559, 0.013182012364268303, 0.04051147773861885, -0.003288540756329894, 0.07203690707683563, 0.02538001537322998, 0.01504791621118784, -0.0016175813507288694, 0.0570354089140892, 0.02127688191831112, -0.030207229778170586, 0.06004313752055168, -0.07378213107585907, 0.0031098409090191126, -0.014871537685394287, -0.028740499168634415, 0.03577709570527077, -0.028313476592302322, -0.006163983140140772, -0.02281787618994713, 0.00986794289201498, 0.01740582473576069, 0.03570282831788063, 0.0011574873933568597, -0.09312812983989716, -0.056589819490909576, 0.0285177044570446, -0.005583788733929396, -0.0047575924545526505, -0.021128350868821144, 0.018928255885839462, -0.048977673053741455, -0.02203809656202793, 0.06245674565434456, -0.0008586873882450163, -0.016978802159428596, 0.03059712052345276, 0.019624488428235054, 0.06735822558403015, 0.028944727033376694, 0.011492486111819744, -0.015855547040700912, 0.06516741216182709, 0.026531118899583817, -0.009324881248176098, -0.023523394018411636, -0.04493023827672005, 0.019030369818210602, 0.007027312181890011, 0.003546146908774972, 0.03659400716423988, 0.0029381033964455128, -0.07753250747919083, -0.06446189433336258, -0.07136852294206619, -0.03887765109539032, 0.05087142810225487, -0.04493023827672005, 0.005477033089846373, 0.05770379304885864, -0.054584670811891556, 0.001393626444041729, 0.03340061753988266, 0.000812852056697011, -0.012114454992115498, 0.031841058284044266, 0.02504582330584526, 0.011464636772871017, 0.013191294856369495, 0.023430561646819115, -0.035350073128938675, -0.025769904255867004, 0.04288795590400696, -0.041328392922878265, -0.016913820058107376, -0.0447445772588253, -0.011093312874436378, 0.024674497544765472, -0.001733620185405016, 0.022762177512049675, 0.002195454901084304, -0.014685874804854393, 0.03165539354085922, 0.007291880436241627, -0.016421815380454063, -0.047640904784202576, -0.0010437692981213331, -0.008777177892625332, -0.024321740493178368, 0.005073218140751123, 0.05076003074645996, 0.0002699353499338031, -0.024098945781588554, -0.0441504567861557, -0.05317363515496254, 0.01829700358211994, 0.02307780459523201, -0.015577053651213646, 0.0005688804085366428, -0.0232077669352293, 0.03861772641539574, -0.020515667274594307, -0.00502680242061615, 0.015539920888841152, 0.03542433679103851, -0.011306824162602425, -0.011446070857346058, 0.00503608537837863, 0.04686112329363823, -0.04593281447887421, -0.04726957902312279, 0.018751876428723335, -0.054287608712911606, -0.03757801651954651, 0.016978802159428596, 0.023003539070487022, 0.03343775123357773, 0.01605977490544319, 0.012940650805830956, -0.030708517879247665, -0.026735348626971245, 0.029278919100761414, -0.03440319374203682, 0.06995749473571777, 0.03943463787436485, 0.0541762113571167, 0.022000962868332863, 0.05621849745512009, 0.012987066991627216, 0.04619273915886879, 0.04374200105667114, -0.03310355916619301, -0.007737469859421253, -0.00490148039534688, -0.037726547569036484, 0.03612985089421272, 0.010889084078371525, -0.01245792955160141, 0.025899868458509445, 0.09201415628194809, 0.010861234739422798, 0.05109421908855438, -0.04143979027867317, -0.055290184915065765, -0.04715818166732788, -0.03198958560824394, -0.010517760179936886, 0.0152150122448802, 0.0547703318297863, -0.010954066179692745, 0.04782656580209732, 0.01969875395298004, 0.0491633340716362 ]
718,343
pytorch_optimizer.optimizer.sophia
SophiaH
Second-order Clipped Stochastic Optimization. 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 p: float. clip effective (applied) gradient (p). :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 eps: float. term added to the denominator to improve numerical stability.
class SophiaH(Optimizer, BaseOptimizer): r"""Second-order Clipped Stochastic Optimization. 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 p: float. clip effective (applied) gradient (p). :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 eps: float. term added to the denominator to improve numerical stability. """ def __init__( self, params: PARAMETERS, lr: float = 6e-2, betas: BETAS = (0.96, 0.99), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, p: float = 1e-2, update_period: int = 10, num_samples: int = 1, hessian_distribution: HUTCHINSON_G = 'gaussian', eps: float = 1e-12, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(p, 'p (gradient clip)') self.validate_step(update_period, 'update_period') self.validate_positive(num_samples, 'num_samples') self.validate_options(hessian_distribution, 'hessian_distribution', ['gaussian', 'rademacher']) self.validate_non_negative(eps, 'eps') 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, 'p': p, 'eps': eps, } super().__init__(params, defaults) def __str__(self) -> str: return 'SophiaH' @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'] = torch.zeros_like(p) state['hessian_moment'] = 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'] 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'] = torch.zeros_like(p) state['hessian_moment'] = 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'], ) momentum, hessian_moment = state['momentum'], state['hessian_moment'] momentum.mul_(beta1).add_(grad, alpha=1.0 - beta1) if 'hessian' in state and (group['step'] % self.update_period == 0 or hessian is not None): hessian_moment.mul_(beta2).add_(state['hessian'], alpha=1.0 - beta2) update = (momentum / torch.clip(hessian_moment, min=group['eps'])).clamp_(-group['p'], group['p']) p.add_(update, alpha=-group['lr']) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.06, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.96, 0.99), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, p: float = 0.01, update_period: int = 10, num_samples: int = 1, hessian_distribution: Literal['gaussian', 'rademacher'] = 'gaussian', eps: float = 1e-12)
[ -0.042463600635528564, -0.026069672778248787, 0.007986407727003098, -0.04614586755633354, -0.0132307019084692, -0.038448359817266464, -0.06874872744083405, 0.041053369641304016, -0.021976089105010033, 0.027166519314050674, -0.003111810190603137, 0.018832450732588768, 0.015806330367922783, 0.0395452082157135, -0.06279441714286804, 0.07160835713148117, 0.010606106370687485, 0.00040856280247680843, -0.022054433822631836, -0.045049022883176804, -0.01514038909226656, -0.11085976660251617, -0.012231788598001003, 0.05919049680233002, -0.03603921830654144, -0.037527795881032944, -0.0059983753599226475, -0.00177380524110049, -0.021055521443486214, -0.026853134855628014, 0.005763337016105652, -0.043207887560129166, -0.037527795881032944, 0.023210039362311363, 0.041719309985637665, -0.021388491615653038, 0.02172146365046501, 0.01532646082341671, -0.06835699081420898, 0.035549554973840714, 0.04140592738986015, -0.031612660735845566, 0.03190645948052406, -0.00173830462154001, 0.005753543693572283, 0.027675768360495567, -0.031122999265789986, 0.08602404594421387, 0.0009003683808259666, -0.021603943780064583, 0.026676855981349945, -0.1086660772562027, 0.02855716273188591, -0.007932545617222786, -0.010655073449015617, 0.014611552469432354, 0.07023730129003525, 0.0010105426190420985, 0.07768018543720245, -0.046850983053445816, 0.06283359229564667, -0.06255938112735748, 0.05123836547136307, 0.02313169278204441, 0.0023834360763430595, -0.025873808190226555, -0.02591298148036003, -0.014611552469432354, 0.014258994720876217, 0.023856395855545998, 0.018274234607815742, 0.029085999354720116, 0.022406991571187973, 0.02663768269121647, -0.021741049364209175, -0.012182822450995445, -0.02146683819591999, -0.0322590172290802, -0.03940810263156891, -0.029399383813142776, 0.02324921265244484, 0.02287706919014454, -0.0413275808095932, -0.014405894093215466, -0.00948477815836668, -0.036548469215631485, 0.08868781477212906, -0.019273146986961365, -0.023092521354556084, -0.02330797165632248, -0.04379548504948616, -0.010704039596021175, 0.0359804593026638, 0.0020908622536808252, 0.11281841993331909, 0.02146683819591999, -0.041601791977882385, -0.06063990294933319, 0.023366732522845268, -0.04359962046146393, -0.01143853459507227, 0.0557432696223259, 0.05021986737847328, 0.07211761176586151, 0.037155650556087494, -0.04218938946723938, -0.012574553489685059, -0.03274868056178093, 0.012995664030313492, -0.10498380661010742, -0.032650746405124664, 0.028282951563596725, -0.022426579147577286, -0.0514342300593853, -0.002600111998617649, -0.03137762472033501, -0.01051796693354845, 0.04019156098365784, 0.012995664030313492, 0.04218938946723938, -0.009142013266682625, 0.013162149116396904, -0.05343205854296684, -0.005920029245316982, 0.008196962997317314, 0.014954316429793835, -0.005596851464360952, -0.016628965735435486, 0.02250492386519909, -0.03231777623295784, -0.03325793147087097, 0.018861830234527588, -0.013661605305969715, 0.024894481524825096, -0.03615673631429672, -0.050729114562273026, -0.004651801194995642, 0.0016440445324406028, 0.047164369374513626, 0.00007475016172975302, 0.023425491526722908, 0.014445066452026367, -0.008671936579048634, 0.001432265155017376, 0.018127335235476494, 0.009925474412739277, 0.034628987312316895, -0.012026130221784115, 0.004443694371730089, 0.021486425772309303, 0.01845051348209381, 0.0063901059329509735, 0.041053369641304016, 0.00982754211872816, -0.017441805452108383, -0.05163009837269783, -0.03817414864897728, -0.0042380355298519135, -0.023856395855545998, -0.004201311152428389, -0.01627640798687935, -0.04066164046525955, 0.005219810642302036, -0.008133307099342346, -0.048378732055425644, -0.00900980457663536, 0.03386511281132698, 0.039251409471035004, 0.014758451841771603, 0.04865294322371483, -0.011262255720794201, -0.061775919049978256, -0.04974978789687157, 0.044813983142375946, -0.00047038280172273517, 0.055899959057569504, 0.03915347531437874, -0.0023136590607464314, 0.039251409471035004, -0.03171059489250183, 0.024032674729824066, -0.03588252514600754, -0.04497067630290985, -0.048692118376493454, -0.005719267297536135, 0.05539071187376976, 0.02060503140091896, 0.004632214549928904, -0.004443694371730089, 0.03989776596426964, -0.02023288607597351, -0.052021827548742294, 0.020134953781962395, 0.012750832363963127, 0.02873344160616398, 0.02238740585744381, 0.026422230526804924, -0.0045636617578566074, 0.01764746569097042, 0.025462491437792778, 0.014905350282788277, 0.015551705844700336, 0.006164860911667347, -0.01310338918119669, -0.0004679344710893929, -0.005591954570263624, -0.012339514680206776, 0.03153431415557861, -0.048378732055425644, 0.012035923078656197, -0.03447229415178299, -0.0020088437013328075, -0.014307960867881775, 0.022857481613755226, 0.022975001484155655, -0.033159997314214706, 0.007721989881247282, 0.017951056361198425, 0.03294454514980316, -0.016149094328284264, -0.0018986694049090147, -0.04156262055039406, -0.029869459569454193, 0.01715780235826969, 0.04422638937830925, -0.012192616239190102, 0.035432036966085434, -0.017236147075891495, 0.0053373295813798904, -0.02924269065260887, 0.040544118732213974, -0.004810941871255636, 0.026931481435894966, -0.03476609289646149, 0.029497316107153893, 0.033512555062770844, -0.04779113829135895, 0.02350383810698986, -0.02695106714963913, 0.01529708132147789, -0.014601758681237698, -0.047164369374513626, -0.006860182620584965, -0.013867264613509178, -0.030692094936966896, 0.0022781584411859512, 0.061697572469711304, 0.017314493656158447, -0.026226365938782692, 0.025756288319826126, -0.042346082627773285, -0.038644228130578995, -0.014464653097093105, 0.004970082547515631, -0.027793288230895996, -0.029751941561698914, 0.02258327044546604, 0.018381958827376366, 0.0012039595749229193, -0.05691846087574959, -0.04736023396253586, -0.04297285154461861, -0.06032651662826538, 0.059543054550886154, -0.03664639964699745, 0.0045489720068871975, 0.003995652310550213, 0.012026130221784115, -0.0010503277881070971, 0.019704051315784454, 0.079090416431427, 0.00970022939145565, -0.08242012560367584, -0.0021349319722503424, 0.0027592526748776436, 0.036058805882930756, 0.01400437019765377, -0.01578674465417862, -0.0023136590607464314, 0.025423318147659302, 0.05343205854296684, -0.02000764198601246, -0.014484239742159843, -0.006889562588185072, 0.011223082430660725, 0.09432873874902725, -0.0390947163105011, 0.003077533794566989, 0.07207843661308289, 0.01162460632622242, 0.039133891463279724, -0.00014850570005364716, 0.008872698992490768, -0.013642018660902977, 0.09221339225769043, 0.047830309718847275, -0.005547884851694107, 0.04532323405146599, 0.052139345556497574, -0.03096630610525608, 0.07137332111597061, 0.01718718186020851, 0.010899905115365982, -0.003493747441098094, -0.040426600724458694, -0.048378732055425644, 0.0352361686527729, 0.027617009356617928, 0.026441818103194237, 0.0004807881487067789, 0.019214387983083725, -0.0260892603546381, -0.023366732522845268, 0.009416225366294384, 0.00853972788900137, -0.073723703622818, 0.005405882839113474, -0.03786076605319977, 0.0008917992818169296, 0.0826551616191864, -0.06679007411003113, 0.00644396897405386, 0.05358875170350075, -0.008128410205245018, -0.0350794792175293, -0.051042500883340836, -0.0037385791074484587, 0.0010772591922432184, -0.042776983231306076, -0.049436405301094055, -0.03059416264295578, -0.02751907706260681, 0.042776983231306076, 0.003606370184570551, -0.0028008739463984966, 0.031475555151700974, 0.03997610881924629, 0.07912958413362503, -0.011281842365860939, -0.07074654847383499, 0.06710345298051834, 0.042776983231306076, -0.0268335472792387, 0.0493580587208271, -0.004987220745533705, -0.05562574788928032, -0.03717523813247681, -0.002548697404563427, -0.027107760310173035, 0.008412415161728859, 0.0037287860177457333, -0.01800002157688141, 0.015179561451077461, 0.09338857978582382, 0.0781894326210022, 0.021192627027630806, -0.021349318325519562, -0.027088172733783722, 0.04755609855055809, -0.03717523813247681, -0.015365634113550186, 0.020369993522763252, -0.05789778754115105, 0.05848538130521774, -0.002301417523995042, -0.01369098573923111, -0.006943425163626671, 0.017030488699674606, -0.01149729359894991, -0.04403052106499672, -0.0023295730352401733, -0.05386296287178993, -0.00547443563118577, 0.002269589342176914, -0.002747011138126254, 0.0024017984978854656, -0.03985859081149101, 0.04001528397202492, 0.002720079617574811, -0.004443694371730089, 0.07717093080282211, 0.0007571418536826968, -0.01433734130114317, 0.02307293377816677, 0.018665963783860207, -0.019498391076922417, 0.01736346073448658, -0.03206315264105797, 0.06455720961093903, -0.05151257663965225, 0.013544086366891861, -0.001345349824987352, 0.03390428423881531, -0.022152366116642952, -0.017951056361198425, 0.059543054550886154, 0.09417204558849335, 0.07768018543720245, -0.06886624544858932, -0.01896955631673336, 0.04226773604750633, -0.08406539261341095, 0.014405894093215466, 0.014317754656076431, -0.02959524840116501, -0.09597400575876236, 0.04755609855055809, 0.08947127312421799, 0.004233139101415873, 0.0746246874332428, -0.0312209315598011, -0.014131681993603706, -0.07341031730175018, 0.03384552523493767, -0.012417861260473728, -0.023601770401000977, -0.005929822567850351, 0.050494078546762466, -0.01954735815525055, 0.07384122163057327, 0.052335210144519806, -0.009646366350352764, 0.028596336022019386, 0.04250277206301689, 0.020487511530518532, 0.011311221867799759, -0.1015365794301033, 0.001014827168546617, -0.04183683171868324, 0.0022145023103803396, -0.004421659279614687, -0.02127097360789776, 0.0030359122902154922, -0.00775626627728343, -0.011889024637639523, 0.0026050086598843336, 0.014758451841771603, 0.032043565064668655, 0.027460316196084023, -0.012094683013856411, 0.031064238399267197, -0.022113194689154625, 0.011732332408428192, -0.00856910739094019, -0.0016403719782829285, -0.028576748445630074, 0.03323834389448166, -0.030319951474666595, -0.015855297446250916, -0.0037557173054665327, 0.01705007627606392, -0.00500925537198782, 0.01245703361928463, 0.031299278140068054, -0.006086514797061682, -0.012339514680206776, -0.007315569557249546, 0.018832450732588768, -0.009494571015238762, 0.007966822013258934, -0.015346047468483448, 0.04391300305724144, 0.007051151245832443, 0.0016171130118891597, -0.010664866305887699, -0.040975023061037064, 0.06651586294174194, -0.05433303862810135, -0.00708053121343255, 0.011017424054443836, -0.005621334537863731, -0.013426567427814007, 0.0018803069833666086, -0.021349318325519562, 0.001866841223090887, -0.02473778836429119, -0.05080746114253998, -0.0027225278317928314, -0.014778037555515766, -0.03319917246699333, 0.04916219413280487, -0.03361048921942711, -0.0049333577044308186, 0.0332971028983593, 0.05108167231082916, -0.06463555246591568, 0.023523423820734024, -0.03366924822330475, 0.02554083615541458, 0.00405441178008914, -0.008157790638506413, -0.050180692225694656, 0.02597174048423767, -0.01610012911260128, -0.01326008141040802, -0.007775852922350168, 0.005518505349755287, -0.0067720431834459305, 0.045362405478954315, -0.005175740923732519, -0.02669644169509411, -0.0018129782984033227, -0.05210017412900925, -0.027891220524907112, 0.024502750486135483, 0.01636454649269581, 0.010723626241087914, 0.013916230760514736, -0.052139345556497574, 0.04399134963750839, -0.0032170878257602453, -0.05096415430307388, 0.009979337453842163, -0.0030995686538517475, 0.009847128763794899, -0.03848753497004509, -0.030006565153598785, 0.08343861997127533, 0.022524511441588402, -0.01670731045305729, 0.026970652863383293, 0.046733465045690536, -0.017588704824447632, 0.028694268316030502, 0.01977260410785675, -0.002521765884011984, -0.015473360195755959, -0.06255938112735748, 0.08782600611448288, -0.00803537480533123, -0.007673023734241724, -0.02873344160616398, -0.015532119199633598, 0.09299685060977936, 0.005112084560096264, -0.029321037232875824, -0.021329732611775398, -0.06322532147169113, -0.0688270702958107, -0.07658334076404572, -0.017432013526558876, 0.025991328060626984, -0.048261214047670364, -0.03903595730662346, -0.007624057121574879, 0.00011721314513124526, -0.020644204691052437, 0.040975023061037064, -0.07211761176586151, -0.014572379179298878, -0.07995221763849258, -0.01753973960876465, 0.015443979762494564, 0.04583248496055603, 0.029516903683543205, -0.012006543576717377, -0.03817414864897728, 0.013886850327253342, -0.0028743233997374773, 0.06682924181222916, -0.06173674762248993, -0.06349953263998032, 0.013064216822385788, -0.04453977197408676, -0.01862679049372673, 0.058446209877729416, 0.03711647540330887, -0.007242119871079922, -0.055351536720991135, 0.05464642122387886, -0.0035769902169704437, 0.05186513438820839, 0.01937107928097248, 0.027303624898195267, -0.050611596554517746, 0.002923289779573679, 0.023856395855545998, -0.03711647540330887, 0.046850983053445816, 0.0022047089878469706, 0.0268335472792387, -0.026755202561616898, -0.02232864499092102, 0.010155616328120232, 0.028361298143863678, 0.06369540095329285, -0.053627923130989075, 0.09636573493480682, -0.02003702148795128, 0.04763444513082504, 0.0048819431103765965, -0.006091411225497723, 0.0034105046652257442, -0.051473405212163925, 0.00035531193134374917, 0.012075096368789673, -0.019018521532416344, -0.03929058089852333, 0.04348209872841835, 0.04978896304965019, -0.07160835713148117, 0.013152356259524822, 0.05127754062414169, -0.03229818865656853, 0.04775196313858032, -0.004193965811282396, 0.02589339390397072, 0.0037704072892665863, -0.007442881818860769, -0.07411543279886246, -0.0009664729004725814, -0.00010497156472411007, 0.028282951563596725, 0.0003351133200339973, -0.04779113829135895, 0.024835722520947456, 0.027656182646751404, -0.005258983466774225, 0.04446142539381981, -0.02164311707019806, -0.011330808512866497, -0.005900442600250244, 0.0013661605771631002, 0.025638770312070847, -0.028204604983329773, -0.04344292730093002, 0.04704684764146805, -0.07117745280265808, -0.030241604894399643, -0.02411101944744587, -0.011663779616355896, -0.03237653523683548, 0.002065154956653714, -0.0074575720354914665, 0.017206767573952675, -0.001842358149588108, 0.02603049948811531, 0.01965508423745632, -0.020272059366106987, -0.018763897940516472, -0.026676855981349945, 0.04140592738986015, 0.024816134944558144, -0.01532646082341671, -0.04007404297590256, 0.005376502871513367, 0.024287298321723938, -0.015473360195755959, -0.006816112902015448, 0.0028424954507499933, -0.004837873391807079, 0.03934933990240097, -0.08876615762710571, 0.00013741175644099712, -0.007384122349321842, -0.0319652184844017, 0.030613748356699944, -0.0026637683622539043, 0.0026417335029691458, -0.03361048921942711, 0.05762357637286186, 0.02855716273188591, 0.007673023734241724, 0.018499478697776794, -0.014934729784727097, 0.03071168065071106, 0.009900991804897785, 0.0210359338670969, 0.030261190608143806, 0.009455397725105286, -0.05503815412521362, 0.0015497843269258738, -0.08445712178945541, -0.007863991893827915, 0.0016244580037891865, -0.017774777486920357, -0.013926023617386818, -0.008735593408346176, -0.044304732233285904, -0.004113171715289354, 0.07474220544099808, 0.031103411689400673, 0.011154529638588428, 0.009773679077625275, 0.02855716273188591, 0.026069672778248787, -0.014533205889165401, -0.0032268811482936144, -0.025736702606081963, -0.05472476780414581, -0.07176505029201508, -0.005006806924939156, -0.013769331388175488, -0.01636454649269581, 0.10412199795246124, -0.07666168361902237, -0.05840703472495079, -0.06040486320853233, 0.03460939973592758, -0.0609532855451107, 0.005939615424722433, 0.022896654903888702, -0.02744073048233986, 0.02293582819402218, 0.009122426621615887, 0.045910827815532684, 0.008946147747337818, -0.02751907706260681, 0.031103411689400673, -0.016775863245129585, -0.03126010298728943, -0.007805232889950275, -0.00581230316311121, 0.007389018777757883, 0.038879264146089554, -0.0031852596439421177, -0.003931995946913958, -0.02054627053439617, 0.001602423144504428, 0.05119919404387474, 0.018861830234527588, -0.021506011486053467, 0.028087085112929344, -0.0010093183955177665, -0.07035481929779053, -0.06099245697259903, 0.048770464956760406, -0.026618096977472305, 0.02035040594637394, -0.01914583519101143, -0.012721451930701733, -0.022054433822631836, 0.0017799260094761848, 0.03453105315566063, 0.03504030406475067, -0.016570204868912697, 0.0499456562101841, 0.0206637904047966, 0.022191539406776428, 0.04222856089472771, 0.010939077474176884, 0.028890132904052734, -0.019899915903806686, -0.020702963694930077, 0.04152344539761543, 0.018636584281921387, -0.012388480827212334, -0.039251409471035004, 0.04254194721579552, -0.018411340191960335, 0.0330033041536808, -0.012692072428762913, 0.018205681815743446, 0.025384144857525826, 0.08093154430389404, -0.02620677836239338, -0.007389018777757883, 0.0020321025513112545, -0.08367366343736649, -0.06236351653933525, -0.0053128465078771114, -0.00257562892511487, 0.0998913124203682, 0.005449952557682991, 0.01014582347124815, 0.0007375553250312805, 0.01891079545021057, 0.034511469304561615 ]
718,345
pytorch_optimizer.optimizer.sophia
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 6e-2, betas: BETAS = (0.96, 0.99), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, p: float = 1e-2, update_period: int = 10, num_samples: int = 1, hessian_distribution: HUTCHINSON_G = 'gaussian', eps: float = 1e-12, ): self.validate_learning_rate(lr) self.validate_betas(betas) self.validate_non_negative(weight_decay, 'weight_decay') self.validate_non_negative(p, 'p (gradient clip)') self.validate_step(update_period, 'update_period') self.validate_positive(num_samples, 'num_samples') self.validate_options(hessian_distribution, 'hessian_distribution', ['gaussian', 'rademacher']) self.validate_non_negative(eps, 'eps') 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, 'p': p, 'eps': eps, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.06, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.96, 0.99), weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, p: float = 0.01, update_period: int = 10, num_samples: int = 1, hessian_distribution: Literal['gaussian', 'rademacher'] = 'gaussian', eps: float = 1e-12)
[ 0.012216459959745407, -0.04886583983898163, -0.005693243350833654, -0.026279376819729805, -0.02644723653793335, -0.025701193138957024, -0.08654102683067322, 0.01614251360297203, -0.025626588612794876, 0.028797272592782974, -0.021915024146437645, 0.051738105714321136, 0.007684246636927128, 0.0529317744076252, -0.08333304524421692, 0.05789296329021454, 0.01683260314166546, 0.026055563241243362, -0.012645434588193893, -0.01930387131869793, -0.026913514360785484, -0.05502069741487503, -0.033721160143613815, 0.111757293343544, -0.0093255415558815, 0.014230776578187943, -0.0074790846556425095, 0.002569186734035611, -0.005105734337121248, -0.01287857349961996, 0.006989493500441313, -0.01932252198457718, -0.01801694743335247, 0.06192159652709961, 0.03879425302147865, -0.028219088912010193, -0.0032079864758998156, 0.011750183068215847, -0.09407606720924377, 0.05472227931022644, 0.06885980069637299, -0.04797058552503586, 0.07900599390268326, -0.027771463617682457, 0.005217640660703182, 0.02834964729845524, 0.005017141345888376, 0.06591293215751648, -0.034355297684669495, -0.038719650357961655, 0.011227952316403389, -0.059832677245140076, 0.034373946487903595, -0.017308205366134644, -0.05625166743993759, 0.03677993640303612, 0.07438052445650101, 0.07285113632678986, 0.05222303420305252, 0.002485256874933839, 0.020292378962039948, -0.034392599016427994, 0.011349184438586235, -0.007404480129480362, 0.0018452915828675032, -0.01590937376022339, -0.06553991138935089, -0.021579304710030556, 0.01995665952563286, 0.04148000851273537, 0.10481908917427063, 0.036556124687194824, -0.013559337705373764, 0.04237526282668114, 0.0029305515345185995, -0.005203652195632458, -0.05692310631275177, -0.04192763566970825, -0.062294621020555496, -0.026950815692543983, 0.05640087649226189, 0.0528198704123497, -0.016049258410930634, -0.036239054054021835, 0.022903529927134514, -0.047112636268138885, 0.02454482577741146, -0.049947600811719894, 0.009232286363840103, 0.02767820842564106, -0.06098904460668564, -0.024749988690018654, 0.03400092571973801, -0.053379401564598083, 0.11407002806663513, 0.0020877555944025517, 0.004881921224296093, -0.06121285632252693, 0.045545946806669235, -0.02363092266023159, -0.020460238680243492, 0.015209958888590336, -0.004658108111470938, 0.026969466358423233, 0.0170843917876482, -0.026988118886947632, -0.03942839056253433, -0.019210616126656532, 0.013708546757698059, -0.08363145589828491, -0.018455246463418007, 0.06904631108045578, -0.0011021625250577927, -0.008374336175620556, -0.0341874361038208, -0.0217844657599926, -0.01776515692472458, 0.023761481046676636, 0.0012834277004003525, 0.011321207508444786, 0.027864718809723854, 0.03968950733542442, -0.04133080318570137, 0.046217385679483414, 0.021952325478196144, 0.005516057834029198, -0.016077233478426933, -0.010668420232832432, 0.030550474300980568, -0.02299678698182106, -0.007353189866989851, 0.0093302046880126, -0.037097007036209106, 0.008901230059564114, 0.014417287893593311, -0.05323019251227379, -0.00630406616255641, 0.017308205366134644, -0.005931044463068247, 0.011740856803953648, 0.06927012652158737, 0.029711175709962845, 0.04513562098145485, 0.004557858686894178, -0.010985488072037697, 0.019509034231305122, 0.0071993181481957436, -0.010052934288978577, -0.015760166570544243, 0.019770149141550064, 0.013820452615618706, 0.020721353590488434, 0.0071666790172457695, 0.009390820749104023, -0.008323046378791332, -0.04729914665222168, -0.006154857575893402, -0.02206423133611679, -0.0015993304550647736, -0.013251595199108124, -0.048679329454898834, 0.024731336161494255, 0.02236264944076538, -0.018399294465780258, -0.03608984872698784, 0.016357000917196274, -0.00809923280030489, 0.020646749064326286, -0.00903644971549511, 0.01802627183496952, -0.009922376833856106, -0.08780930191278458, -0.03916727751493454, 0.03659342601895332, -0.013615290634334087, 0.06125015765428543, 0.03793630376458168, 0.0018336346838623285, 0.016925858333706856, 0.0035740139428526163, 0.047784075140953064, -0.03012149967253208, -0.037451375275850296, -0.06087713688611984, 0.008309057913720608, 0.02922624722123146, -0.028722668066620827, 0.04789598286151886, -0.014575822278857231, 0.021262235939502716, 0.033683858811855316, -0.0015527027426287532, 0.022269394248723984, 0.021952325478196144, 0.002368687652051449, 0.01834334060549736, 0.015750840306282043, -0.0264658872038126, -0.006173508707433939, 0.03898076340556145, 0.06606213748455048, 0.024973800405859947, 0.012235110625624657, -0.0436062328517437, 0.010146189481019974, 0.0008987491019070148, -0.013531360775232315, 0.017942342907190323, -0.04953727871179581, -0.020049914717674255, -0.0014827611157670617, -0.026559142395853996, 0.02363092266023159, 0.027622254565358162, -0.007707560434937477, -0.07206778973340988, 0.006024300120770931, 0.006042951252311468, 0.004592829383909702, -0.017942342907190323, 0.059496957808732986, -0.02053484320640564, -0.01540579553693533, -0.009404809214174747, 0.03605254366993904, 0.015694886445999146, 0.037824396044015884, -0.03519459441304207, -0.07016537338495255, -0.020273728296160698, 0.019788799807429314, -0.030886193737387657, 0.034691017121076584, -0.01148906722664833, 0.014165498316287994, 0.004385335836559534, -0.03608984872698784, 0.051141273230314255, -0.062294621020555496, 0.008514219895005226, 0.02113167755305767, 0.017830435186624527, 0.026242075487971306, -0.021206282079219818, 0.009530703537166119, 0.020068565383553505, 0.04140540584921837, 0.021262235939502716, -0.061138253659009933, -0.03168819099664688, -0.055244509130716324, -0.030942147597670555, -0.02079595811665058, 0.016291720792651176, -0.046814221888780594, -0.016925858333706856, 0.04692612588405609, -0.00037039886228740215, 0.03480292111635208, -0.020945167168974876, -0.02392934076488018, -0.013727197423577309, -0.018902873620390892, 0.08206477016210556, -0.026876211166381836, 0.017466740682721138, -0.010304723866283894, 0.02452617511153221, 0.014398636296391487, 0.01706574112176895, 0.09795549511909485, 0.024395616725087166, -0.0233511570841074, -0.00839298777282238, 0.004075261764228344, -0.0023861730005592108, 0.01399763859808445, -0.03521324694156647, 0.010472583584487438, 0.051476992666721344, 0.05692310631275177, -0.037507329136133194, 0.03241558372974396, 0.027435744181275368, 0.019359825178980827, 0.030028244480490685, -0.025328172370791435, 0.03299376741051674, 0.02176581509411335, 0.005581336561590433, 0.01133985910564661, 0.0009972500847652555, 0.05572943761944771, -0.0022451241966336966, 0.08228857815265656, 0.006761017721146345, 0.05069364607334137, -0.0037721816916018724, 0.059198539704084396, -0.01614251360297203, 0.05975807085633278, -0.024041246622800827, 0.025011103600263596, 0.006397321820259094, -0.062033504247665405, -0.05203652381896973, 0.045881666243076324, 0.021224932745099068, 0.022772973403334618, 0.036220405250787735, 0.037488676607608795, 0.020609447732567787, 0.05192461609840393, 0.02523491531610489, 0.012915875762701035, -0.06774073839187622, 0.02394799143075943, -0.04923886060714722, 0.013260920532047749, 0.07669325917959213, -0.04282288998365402, 0.03041991777718067, 0.051476992666721344, -0.011293231509625912, -0.0590493306517601, -0.034056879580020905, -0.002306905807927251, 0.024768639355897903, -0.046515803784132004, -0.01118132472038269, -0.04856742173433304, -0.02396664209663868, 0.03957759961485863, -0.012981154024600983, -0.017019113525748253, 0.0341128334403038, 0.014575822278857231, 0.055169906467199326, -0.0202177744358778, -0.06647246330976486, 0.07893138378858566, -0.005697906017303467, -0.03767519071698189, 0.050208717584609985, -0.013652592897415161, -0.05565483495593071, -0.004597492050379515, -0.03204256296157837, 0.011992646381258965, 0.015508376061916351, -0.007031458429992199, 0.029655223712325096, 0.008024629205465317, 0.11988916248083115, 0.05688580498099327, -0.015564328990876675, -0.030998101457953453, -0.015974653884768486, 0.04636659473180771, -0.03569817543029785, -0.043009400367736816, 0.007180667016655207, -0.04763486608862877, 0.04226335510611534, -0.02083326131105423, -0.030046895146369934, -0.002354699419811368, -0.00039371271850541234, 0.004702404607087374, -0.0116755785420537, 0.025253567844629288, -0.049947600811719894, -0.050842855125665665, -0.009521378204226494, 0.012636109255254269, -0.03909267112612724, -0.05032062530517578, 0.02928220108151436, 0.013689895160496235, -0.008677416481077671, 0.026876211166381836, 0.011871415190398693, 0.028200438246130943, 0.02551468275487423, -0.001567856757901609, -0.032490186393260956, -0.012785318307578564, -0.009456099011003971, 0.06393591314554214, -0.015629608184099197, 0.0085421958938241, -0.0042734295129776, 0.03245288506150246, -0.015275237150490284, -0.04535943642258644, 0.037824396044015884, 0.07273922860622406, 0.06759152561426163, -0.049611881375312805, -0.016897881403565407, 0.014100219123065472, -0.05043252930045128, -0.023481713607907295, 0.03659342601895332, -0.015732189640402794, -0.04416576772928238, 0.039018068462610245, 0.037227563560009, 0.019527684897184372, 0.08646642416715622, 0.010192817077040672, -0.014454590156674385, -0.05095475912094116, 0.0011417960049584508, -0.04077126830816269, -0.02551468275487423, -0.014221451245248318, 0.0037721816916018724, 0.013102386146783829, 0.025029754266142845, 0.03864504396915436, 0.009470087476074696, 0.07180666923522949, 0.04073396697640419, 0.04841821268200874, 0.04073396697640419, -0.050171416252851486, 0.000038504287658724934, -0.019173314794898033, -0.025402776896953583, -0.03987601771950722, -0.01775583252310753, -0.030699683353304863, -0.002308071590960026, 0.017186973243951797, 0.007828792557120323, -0.010752350091934204, 0.01832468993961811, -0.00753037491813302, -0.016384977847337723, 0.018585804849863052, -0.06326447427272797, 0.032471537590026855, -0.024451570585370064, -0.0778869241476059, -0.029673874378204346, 0.01715899631381035, -0.04390465095639229, -0.04080856963992119, -0.02141144499182701, 0.030606428161263466, 0.005931044463068247, 0.03817876800894737, 0.008131872862577438, -0.0343179926276207, -0.033422742038965225, -0.00567925488576293, -0.00839298777282238, 0.03674263507127762, -0.0031497017480432987, 0.017960993573069572, 0.001410488155670464, -0.011973995715379715, -0.024003945291042328, -0.04315860942006111, -0.01645025610923767, 0.08348225057125092, -0.03457910940051079, 0.0019653579220175743, 0.0020003286190330982, 0.011703555472195148, 0.015433771535754204, 0.03133381903171539, -0.027174629271030426, -0.042748283594846725, -0.004180174320936203, -0.03502673655748367, 0.0003715645580086857, -0.029990943148732185, -0.019788799807429314, 0.01336350105702877, -0.0279952771961689, 0.012664086185395718, 0.0840790867805481, 0.015527026727795601, -0.06669627875089645, -0.031576283276081085, -0.005842451937496662, 0.030046895146369934, 0.03909267112612724, -0.053043682128190994, -0.023537667468190193, 0.019070733338594437, 0.029394108802080154, -0.03860774263739586, -0.02025507763028145, 0.019490381702780724, 0.012794643640518188, 0.03924188017845154, 0.002368687652051449, -0.011694229207932949, -0.024638080969452858, -0.038421232253313065, -0.03799225762486458, 0.016683394089341164, -0.019117360934615135, -0.0372462123632431, 0.01617981493473053, -0.023183297365903854, 0.014296055771410465, -0.014454590156674385, -0.010854930616915226, -0.03329218551516533, 0.014547845348715782, -0.0014547845348715782, -0.027510348707437515, -0.049313466995954514, 0.07915519922971725, -0.014864914119243622, -0.02085191197693348, 0.03633230924606323, 0.0777377188205719, 0.036798588931560516, -0.007255271542817354, 0.01984475366771221, 0.025365473702549934, 0.020982468500733376, -0.05662469193339348, 0.08974901586771011, 0.03633230924606323, -0.011088069528341293, -0.05259605497121811, -0.034635063260793686, 0.044613391160964966, 0.006872924510389566, -0.0022999118082225323, -0.00872404407709837, -0.05005950853228569, -0.07714088261127472, -0.05822868272662163, -0.015032773837447166, 0.013615290634334087, -0.009717214852571487, -0.07840915769338608, -0.012692062184214592, -0.023407110944390297, -0.027827417477965355, 0.0496864877641201, -0.0653160959482193, -0.029095690697431564, -0.010015632025897503, -0.04487450793385506, -0.020161820575594902, 0.03487752750515938, 0.023444412276148796, 0.010099561884999275, -0.020740004256367683, 0.013951011002063751, 0.03860774263739586, 0.05039522796869278, -0.05625166743993759, -0.0341128334403038, 0.02331385388970375, 0.007432457059621811, -0.036500170826911926, 0.045545946806669235, 0.018744338303804398, -0.030065547674894333, -0.08639182150363922, 0.00995035283267498, -0.00032143975840881467, 0.03232232853770256, 0.012580156326293945, 0.02833099663257599, -0.05509530007839203, 0.012803968973457813, 0.003986669238656759, -0.005198989529162645, -0.009698563255369663, -0.001608656020835042, 0.005464767571538687, -0.037134308367967606, -0.08348225057125092, -0.08497433364391327, 0.03049452230334282, 0.04427767172455788, -0.05852710083127022, 0.0373581200838089, -0.021653907373547554, 0.029095690697431564, 0.0004039125342387706, 0.02670835144817829, -0.027827417477965355, -0.03577277809381485, -0.02984173409640789, 0.026540491729974747, -0.0008416301570832729, -0.05572943761944771, 0.033683858811855316, 0.055244509130716324, -0.08124411851167679, 0.007213306613266468, 0.03336678817868233, -0.022903529927134514, 0.03672398254275322, -0.027454394847154617, 0.0022626095451414585, 0.012626783922314644, 0.011610299348831177, -0.08012505620718002, 0.018166154623031616, -0.017214950174093246, 0.008770671673119068, -0.003193998010829091, -0.0021448745392262936, -0.027417093515396118, -0.036854542791843414, -0.008644777350127697, 0.0779615268111229, -0.0012624452356249094, 0.012664086185395718, -0.0030447894241660833, -0.0027929998468607664, 0.03400092571973801, -0.04726184532046318, -0.038682349026203156, 0.017326856032013893, -0.10944455862045288, -0.012057925574481487, -0.01585342176258564, 0.03291916102170944, -0.03357195109128952, 0.00886392779648304, -0.043121304363012314, 0.018651083111763, 0.03146437928080559, 0.01135850977152586, 0.02213883586227894, 0.023145994171500206, -0.012626783922314644, 0.022959483787417412, 0.03387036919593811, 0.021915024146437645, -0.013932359404861927, -0.030886193737387657, -0.00977316778153181, 0.003312898799777031, -0.020292378962039948, 0.014603798277676105, 0.00643928674980998, -0.018837595358490944, 0.05565483495593071, -0.07825994491577148, 0.0040006572380661964, -0.020684052258729935, -0.009875749237835407, 0.010668420232832432, 0.017485391348600388, 0.03015880286693573, -0.023127343505620956, 0.017354832962155342, 0.014836937189102173, 0.031837400048971176, 0.009530703537166119, -0.003930715844035149, 0.02454482577741146, -0.016720697283744812, 0.013624616898596287, -0.008406976237893105, -0.011582323350012302, -0.0467023141682148, 0.012701388448476791, -0.06158587709069252, 0.0021273891907185316, 0.021859070286154747, 0.0033828401938080788, -0.05625166743993759, -0.03879425302147865, -0.006089578848332167, 0.003289584768936038, 0.06930742412805557, 0.05095475912094116, -0.001256616786122322, -0.020124519243836403, 0.023481713607907295, 0.01153569482266903, -0.04192763566970825, 0.01620779186487198, -0.03476561978459358, -0.03608984872698784, -0.056139763444662094, -0.0033991599921137094, 0.010024957358837128, -0.03366520628333092, 0.07206778973340988, -0.03898076340556145, -0.07825994491577148, -0.07617102563381195, 0.011871415190398693, -0.059198539704084396, -0.007096737157553434, 0.010724373161792755, -0.04726184532046318, 0.07549958676099777, -0.0132329436019063, 0.02948736399412155, -0.002368687652051449, -0.004965851083397865, 0.027267884463071823, -0.030289359390735626, 0.018809618428349495, 0.04890314117074013, 0.027454394847154617, -0.05576673895120621, -0.017867738381028175, 0.03754463046789169, 0.010668420232832432, 0.0002813690807670355, -0.012934526428580284, 0.017951667308807373, -0.02019912376999855, -0.01801694743335247, 0.021952325478196144, -0.012981154024600983, -0.015788141638040543, -0.09161411970853806, 0.005805149674415588, 0.0064206356182694435, 0.014296055771410465, -0.03849583491683006, 0.03394497185945511, 0.004233796149492264, -0.01988205499947071, 0.015144679695367813, 0.03222907334566116, -0.035921987146139145, 0.04894044250249863, 0.032807257026433945, 0.06098904460668564, 0.06788994371891022, 0.0043830047361552715, 0.031147310510277748, -0.0559159480035305, -0.007269260007888079, 0.040547456592321396, 0.04144270718097687, -0.022530509158968925, -0.02834964729845524, 0.06125015765428543, -0.016105210408568382, 0.016105210408568382, -0.014249428175389767, -0.00870539341121912, 0.03388901799917221, 0.08221397548913956, -0.0560278557240963, 0.013279571197926998, -0.011060092598199844, -0.0685986876487732, -0.07729008793830872, -0.00021084467880427837, -0.027491698041558266, 0.08012505620718002, 0.00794069841504097, 0.0017158996779471636, 0.035642221570014954, 0.029785780236124992, 0.005399488843977451 ]
718,348
pytorch_optimizer.optimizer.sophia
__str__
null
def __str__(self) -> str: return 'SophiaH'
(self) -> str
[ -0.016291169449687004, -0.04292263463139534, 0.03001461550593376, -0.021704209968447685, 0.004706048872321844, -0.08494309335947037, 0.013367781415581703, 0.03223535045981407, 0.06849578022956848, -0.03733609989285469, -0.04188166558742523, 0.01708057150244713, -0.01468634232878685, 0.019101787358522415, 0.011251143179833889, 0.0067663006484508514, 0.006822686642408371, -0.08119560778141022, -0.003929659258574247, 0.001416151993907988, 0.019379379227757454, 0.027342794463038445, 0.031124982982873917, -0.019709018990397453, -0.0225369855761528, 0.059647541493177414, -0.023647353053092957, -0.01906708814203739, -0.025122059509158134, -0.011103672906756401, 0.0009889209177345037, -0.06526877731084824, -0.013740794733166695, 0.004979303106665611, -0.015840083360671997, 0.027186648920178413, -0.03716260567307472, 0.02952883020043373, -0.040285512804985046, 0.0032118242233991623, -0.009082457050681114, 0.027342794463038445, -0.027238696813583374, -0.011450662277638912, -0.04309612885117531, -0.012101268395781517, 0.0037171279545873404, 0.07071651518344879, 0.02054179459810257, -0.0030253170989453793, -0.003094715066254139, 0.00240507279522717, -0.055622462183237076, -0.013584650121629238, -0.015892131254076958, 0.016126349568367004, 0.04358191415667534, -0.0038602612912654877, 0.0018184432992711663, 0.03567054867744446, -0.03494187071919441, -0.03322426974773407, 0.06113959848880768, -0.02342180907726288, -0.0038645986933261156, 0.0216174628585577, 0.005694969557225704, 0.04437999054789543, 0.03803008049726486, 0.01906708814203739, 0.03674621880054474, -0.040181417018175125, -0.005139785818755627, 0.03945273905992508, 0.01957022398710251, 0.0007785583147779107, -0.09812870621681213, 0.005725331138819456, 0.03301607817411423, -0.04052840545773506, 0.006770637817680836, -0.006141718942672014, -0.05864127352833748, 0.003608693601563573, -0.04774579405784607, -0.07467219978570938, -0.0003071401733905077, -0.05544896796345711, -0.030413653701543808, 0.022068548947572708, -0.0525689497590065, 0.018824195489287376, -0.02699580416083336, 0.07134109735488892, -0.02031625062227249, -0.006258828099817038, 0.001639526686631143, -0.05447739362716675, 0.018824195489287376, 0.02427193522453308, 0.00606798380613327, 0.040077317506074905, -0.02383819781243801, 0.0322006493806839, -0.04840507358312607, -0.03764839097857475, -0.031506672501564026, 0.017852624878287315, 0.0019409740343689919, 0.006094007752835751, -0.06398491561412811, 0.020142756402492523, -0.007967752404510975, 0.005356654524803162, 0.0188588947057724, -0.07862788438796997, 0.010132101364433765, 0.0020472395699471235, 0.04628843441605568, -0.02840111404657364, 0.0005763283115811646, -0.0009357880335301161, -0.0537487156689167, 0.0012578379828482866, 0.04483107849955559, 0.08709443360567093, -0.055622462183237076, -0.03464692831039429, 0.013402479700744152, -0.05201376602053642, 0.04149997606873512, 0.00008512092608725652, -0.03636452928185463, -0.03327631950378418, 0.0680793970823288, 0.004196407739073038, 0.018928293138742447, 0.018546603620052338, 0.06336033344268799, 0.14108604192733765, -0.03424789011478424, 0.00027230565319769084, 0.020958183333277702, 0.03327631950378418, 0.004983640741556883, 0.008809203281998634, -0.018789496272802353, 0.05104219540953636, -0.017514308914542198, 0.010201499797403812, 0.024844467639923096, 0.03429993987083435, 0.05617764592170715, -0.011147046461701393, -0.030413653701543808, 0.008401489816606045, -0.0066535291261971, -0.049341946840286255, 0.04049370810389519, -0.022571684792637825, 0.006944132968783379, -0.05576125532388687, 0.007677148561924696, -0.005989911034703255, -0.01750563457608223, 0.03591344133019447, -0.0027867616154253483, 0.018789496272802353, 0.030760644003748894, 0.008852576836943626, -0.033519212156534195, -0.05839838087558746, -0.10298656672239304, 0.04032021015882492, 0.015562491491436958, 0.01648201420903206, 0.015206826850771904, 0.07966884970664978, 0.04795398563146591, -0.03374475613236427, -0.015562491491436958, -0.02406374178826809, -0.05600414797663689, 0.030587147921323776, 0.08133440464735031, -0.026596765965223312, 0.03667682036757469, 0.03364066034555435, 0.04483107849955559, -0.007152326870709658, -0.011398614384233952, -0.006401961203664541, -0.047329407185316086, 0.019379379227757454, 0.005616896785795689, -0.03733609989285469, 0.02107962965965271, -0.07082061469554901, -0.007464617490768433, 0.007707510609179735, -0.018355758860707283, 0.05413040518760681, -0.0327211357653141, 0.020125407725572586, 0.03827297315001488, 0.010704634711146355, 0.023768799379467964, -0.002788930432870984, 0.022988073527812958, -0.043651312589645386, 0.03407439589500427, 0.0027217010501772165, -0.0281235221773386, 0.017106596380472183, 0.06134779378771782, -0.06096610426902771, 0.00023855546896811575, -0.03547970578074455, -0.018494555726647377, 0.008852576836943626, 0.04552505910396576, -0.016612134873867035, -0.003055678680539131, -0.034213192760944366, -0.040077317506074905, 0.00962029118090868, -0.004719060845673084, -0.022016501054167747, -0.006024609785526991, -0.03419584408402443, 0.0036368865985423326, -0.041152987629175186, -0.00577304232865572, 0.024688322097063065, -0.007685823366045952, 0.03416114300489426, -0.045559756457805634, 0.00041991184116341174, -0.07002253830432892, -0.03185366094112396, -0.016612134873867035, -0.0007579557714052498, -0.013419829308986664, 0.00332676456309855, 0.023491207510232925, -0.053297627717256546, -0.011910423636436462, 0.008379803039133549, -0.013662721961736679, -0.026405921205878258, 0.055206071585416794, -0.05229135975241661, -0.010886804200708866, -0.018251663073897362, 0.01906708814203739, -0.07154928892850876, -0.042679741978645325, 0.022727830335497856, 0.023994343355298042, -0.03138522431254387, -0.07932186126708984, 0.012543680146336555, -0.029632925987243652, 0.05912705883383751, -0.019257932901382446, 0.004014237783849239, -0.05173617601394653, 0.04042430967092514, 0.04080599918961525, -0.02210324816405773, 0.09424242377281189, 0.014183207415044308, -0.07467219978570938, 0.03095148876309395, -0.02697845548391342, -0.0195181742310524, -0.022311443462967873, 0.02460157498717308, -0.09077252447605133, -0.048682667315006256, -0.009117156267166138, -0.017748527228832245, 0.0219471026211977, 0.014564896002411842, 0.020576493814587593, -0.0371973030269146, 0.024289283901453018, -0.022901324555277824, 0.029979916289448738, 0.013255009427666664, 0.058606572449207306, 0.026544718071818352, -0.030500400811433792, 0.016672858968377113, 0.033311016857624054, 0.022797228768467903, 0.01788732223212719, 0.050487011671066284, -0.00045894819777458906, -0.03914044797420502, 0.005452076904475689, -0.010453066788613796, 0.002567724324762821, -0.029303286224603653, -0.050972796976566315, -0.010019329376518726, -0.005807741545140743, -0.002165433019399643, 0.003131582634523511, -0.007985102012753487, -0.024428080767393112, 0.028574608266353607, 0.017575033009052277, 0.09597737342119217, 0.00523087102919817, 0.07897487282752991, -0.0297023244202137, 0.0027151950635015965, 0.02557314559817314, 0.06849578022956848, -0.029979916289448738, -0.00016942860384006053, -0.02855725772678852, -0.01393163949251175, 0.02687435783445835, -0.04108358919620514, -0.04927254840731621, 0.037578992545604706, 0.0008349441341124475, 0.03131582587957382, -0.027516288682818413, -0.049133751541376114, 0.05017472058534622, 0.003023148514330387, -0.010392343625426292, 0.011415963992476463, 0.038724057376384735, 0.00788967963308096, -0.031992457807064056, -0.04618433862924576, 0.08903757482767105, -0.007941728457808495, -0.03712790459394455, 0.0204376969486475, 0.027342794463038445, 0.024948565289378166, -0.0600639283657074, -0.01740153692662716, 0.013740794733166695, 0.0002632242685649544, -0.004736410453915596, -0.03657272085547447, 0.0425756461918354, 0.007052567321807146, 0.018199613317847252, 0.023612653836607933, -0.014877187088131905, 0.05794729292392731, -0.011459337547421455, -0.0024896515533328056, -0.0008674744167365134, -0.05968224257230759, 0.012673801742494106, 0.02834906429052353, -0.03820357471704483, -0.003582669422030449, 0.010088727809488773, 0.003365800715982914, 0.042471546679735184, -0.04070189967751503, -0.025243505835533142, 0.004445806611329317, -0.021912403404712677, -0.014217905700206757, 0.0018867568578571081, 0.08098741620779037, 0.048682667315006256, 0.04552505910396576, -0.0654422715306282, -0.043755412101745605, 0.05853717401623726, 0.011277168057858944, 0.01078270748257637, 0.04125708341598511, 0.004723398480564356, -0.009247277863323689, 0.027498940005898476, 0.030656546354293823, 0.015371646732091904, -0.015484418720006943, -0.03190571069717407, -0.032495591789484024, 0.0060723209753632545, 0.003537127049639821, -0.03636452928185463, -0.07245146483182907, -0.016594786196947098, -0.019847815856337547, -0.07328423857688904, 0.039209846407175064, 0.035202112048864365, -0.059265851974487305, 0.003962189424782991, -0.0051484606228768826, -0.0494113452732563, 0.03681561350822449, 0.008722455240786076, 0.004365565255284309, -0.03383150324225426, -0.011155721731483936, 0.013176936656236649, -0.014538872055709362, -0.06301334500312805, -0.0619029775261879, 0.06540757417678833, -0.0027455566450953484, -0.008709443733096123, 0.013341756537556648, -0.003608693601563573, 0.011415963992476463, -0.030743293464183807, 0.03509801626205444, 0.029407383874058723, 0.09701833873987198, 0.0027715808246284723, 0.06183357909321785, 0.02475772053003311, 0.04097949340939522, 0.08508189022541046, -0.016976473852992058, -0.036399226635694504, 0.01957022398710251, -0.024150488898158073, -0.010357644408941269, 0.03580934554338455, -0.04091009497642517, 0.013775493949651718, -0.041534677147865295, -0.04483107849955559, 0.022797228768467903, 0.018182264640927315, -0.05652463436126709, -0.012127292342483997, 0.03973032906651497, 0.03544500470161438, -0.040216114372015, -0.0600639283657074, -0.0005012375768274069, 0.06457480043172836, 0.005851115100085735, -0.010956201702356339, 0.021686861291527748, -0.017193343490362167, -0.029979916289448738, 0.05555306375026703, -0.036225732415914536, 0.02205120027065277, -0.04174286872148514, 0.01032294612377882, -0.007104615680873394, -0.06107020005583763, 0.07071651518344879, -0.009559568017721176, 0.025711942464113235, 0.03185366094112396, -0.0009769931202754378, -0.004588939715176821, 0.03532356023788452, -0.03364066034555435, -0.0020819385536015034, 0.04125708341598511, -0.006172080524265766, -0.014434774406254292, -0.017418887466192245, 0.013688746839761734, 0.033727407455444336, -0.050035927444696426, -0.0023096506483852863, -0.00191386544611305, -0.030968837440013885, -0.018876243382692337, -0.009507520124316216, -0.02232879213988781, 0.05187497287988663, 0.004502192139625549, 0.0001514014002168551, 0.0030470038764178753, 0.00018176299636252224, -0.027516288682818413, -0.008262693881988525, 0.05149328336119652, 0.01170223020017147, -0.06450539827346802, -0.03126377984881401, -0.0007758474675938487, 0.05933525040745735, -0.02623242698609829, -0.013289708644151688, -0.08362453430891037, 0.011728254146873951, -0.00008078356040641665, -0.010964876972138882, -0.0022510960698127747, -0.016568761318922043, 0.03764839097857475, -0.005096412263810635, 0.02600688301026821, 0.008722455240786076, -0.031090283766388893, -0.02097553201019764, 0.008496912196278572, -0.060723211616277695, 0.03095148876309395, -0.011589458212256432, 0.0284531619399786, -0.013558625243604183, -0.0043980954214930534, 0.01962227188050747, -0.015952855348587036, 0.047502901405096054, 0.006770637817680836, -0.03858526423573494, -0.03152402117848396, -0.00856197252869606, -0.019205885007977486, 0.02330036275088787, -0.04261034354567528, 0.030118713155388832, -0.018112866207957268, 0.07606016099452972, 0.0034417049027979374, 0.03152402117848396, -0.012517656199634075, 0.08057102560997009, -0.004454481415450573, 0.07272905856370926, -0.11166130751371384, 0.016291169449687004, 0.06499118357896805, 0.029546178877353668, 0.008028475567698479, -0.032374147325754166, -0.008926312439143658, -0.011606807820498943, 0.009047758765518665, -0.03827297315001488, -0.014929234981536865, 0.020854085683822632, 0.0008148837951011956, 0.01381886750459671, -0.017852624878287315, -0.026943756267428398, -0.006406298838555813, -0.055067278444767, 0.018459856510162354, 0.03176691383123398, -0.01200584601610899, 0.015805384144186974, 0.024289283901453018, 0.040944792330265045, -0.02477506920695305, -0.008284380659461021, 0.0637420192360878, 0.035531751811504364, 0.03161076828837395, 0.047780491411685944, -0.022450238466262817, 0.026596765965223312, -0.003528452245518565, -0.03629513084888458, 0.013046815991401672, -0.02623242698609829, 0.033137522637844086, 0.08015463501214981, -0.08417972177267075, 0.05218726396560669, 0.04608024284243584, 0.03986912593245506, -0.017635755240917206, 0.029598228633403778, -0.05399160832166672, 0.0452127680182457, -0.013098863884806633, -0.009646316058933735, -0.0162651464343071, -0.019709018990397453, -0.00481014559045434, 0.010800057090818882, 0.0023053132463246584, -0.03343246504664421, -0.02867870405316353, 0.01037499401718378, -0.03322426974773407, -0.003838574280962348, 0.04774579405784607, -0.08195898681879044, -0.0017718165181577206, -0.044692281633615494, 0.024428080767393112, 0.007425581105053425, 0.015631889924407005, 0.04059780389070511, 0.0024918203707784414, 0.025434350594878197, 0.10173740237951279, 0.04444938898086548, 0.004948941525071859, 0.024480128660798073, -0.033363066613674164, 0.00870076846331358, -0.011919098906219006, 0.02271048165857792, -0.004109660163521767, -0.014469473622739315, -0.020940832793712616, 0.010227523744106293, 0.04729470610618591, -0.03900165110826492, -0.027950026094913483, -0.01452152244746685, 0.00750365387648344, 0.07321484386920929, -0.03391825035214424, 0.05090339854359627, -0.060133326798677444, -0.011259818449616432, 0.013966338708996773, -0.013159587047994137, 0.02401169203221798, -0.10472151637077332, 0.013714770786464214, -0.010227523744106293, -0.014183207415044308, -0.06457480043172836, -0.03938334062695503, 0.0023963982239365578, 0.019604923203587532, 0.03619103506207466, -0.02232879213988781, 0.03190571069717407, -0.031229080632328987, 0.006371599622070789, -0.024636274203658104, 0.05284654349088669, -0.04864796623587608, 0.04077129811048508, -0.0939648300409317, -0.05846777558326721, -0.019431427121162415, -0.062354061752557755, -0.028383763507008553, 0.021218424662947655, -0.022849276661872864, 0.026579417288303375, -0.006467022001743317, -0.024289283901453018, 0.007729197386652231, -0.009177879430353642, -0.02748158946633339, -0.01674225740134716, 0.010678610764443874, -0.03580934554338455, 0.013098863884806633, -0.03419584408402443, 0.08723323047161102, 0.034386686980724335, -0.004684362094849348, -0.029615577310323715, -0.01652538776397705, -0.03343246504664421, -0.0018683230737224221, 0.035635851323604584, -0.0019648296292871237, -0.05024411901831627, -0.032165952026844025, 0.0037323087453842163, 0.009325350634753704, 0.012066569179296494, 0.04864796623587608, -0.058606572449207306, 0.026631465181708336, -0.02281457744538784, 0.001667719567194581, -0.08730262517929077, 0.021825656294822693, 0.07127170264720917, -0.05381811410188675, 0.0010810900712385774, 0.025538448244333267, -0.08751082420349121, -0.08952336013317108, -0.031177030876278877, -0.06329093873500824, 0.029285937547683716, 0.11679676175117493, 0.0037474895361810923, 0.001197114703245461, -0.045178066939115524, 0.0018086842028424144, 0.012500306591391563, 0.04038960859179497, 0.05284654349088669, -0.0007964499527588487, -0.0036911037750542164, 0.014989958144724369, -0.0171846691519022, -0.005599547643214464, 0.0038819480687379837, 0.025052661076188087, -0.033137522637844086, 0.05895356461405754, 0.048370376229286194, -0.05989043414592743, -0.007985102012753487, 0.05343642458319664, -0.07717052847146988, -0.0005044906283728778, 0.05024411901831627, 0.0013218141393736005, 0.03799537941813469, 0.02715194970369339, -0.021443968638777733, 0.0044197821989655495, -0.017800575122237206, 0.04080599918961525, 0.045976147055625916, 0.011225119233131409, -0.029927868396043777, -0.0425756461918354, -0.005486775655299425, -0.013992362655699253, 0.015059356577694416, -0.0370585098862648, 0.023543255403637886, 0.026683513075113297, 0.005391353741288185, 0.03674621880054474, 0.004571590106934309, 0.07012663036584854, 0.021149026229977608, 0.03292933106422424, 0.030413653701543808, 0.02508736029267311, -0.026405921205878258, 0.017167318612337112, 0.024202536791563034, 0.04583735018968582, 0.009368724189698696, -0.04091009497642517, 0.04986242949962616, 0.0470518134534359, 0.045559756457805634, 0.014868511818349361, 0.014755739830434322, -0.004413275979459286, -0.0210275799036026, -0.0043677338398993015, 0.03228740021586418, -0.0005269907414913177, 0.0048882183618843555, -0.009880533441901207, -0.018668049946427345, 0.03560115024447441, -0.001155909732915461, 0.011893074959516525, 0.03733609989285469, 0.003086040262132883, 0.01065258588641882 ]
718,369
pytorch_optimizer.optimizer.sophia
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'] 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'] = torch.zeros_like(p) state['hessian_moment'] = 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'], ) momentum, hessian_moment = state['momentum'], state['hessian_moment'] momentum.mul_(beta1).add_(grad, alpha=1.0 - beta1) if 'hessian' in state and (group['step'] % self.update_period == 0 or hessian is not None): hessian_moment.mul_(beta2).add_(state['hessian'], alpha=1.0 - beta2) update = (momentum / torch.clip(hessian_moment, min=group['eps'])).clamp_(-group['p'], group['p']) p.add_(update, alpha=-group['lr']) return loss
(self)
[ -0.010799715295433998, 0.004661375191062689, -0.01581386849284172, 0.00016345387848559767, -0.01922876015305519, -0.011373567394912243, -0.042897824198007584, 0.04485456645488739, -0.016284238547086716, 0.005192894488573074, -0.010978455655276775, 0.020414095371961594, 0.029162993654608727, 0.05501457676291466, -0.04944538325071335, 0.04982168227434158, -0.012737642973661423, 0.04526849091053009, 0.010432825423777103, -0.020508170127868652, -0.007464785594493151, -0.10265373438596725, -0.010169417597353458, 0.07458200305700302, -0.055616650730371475, -0.020752761512994766, 0.04116685688495636, -0.0015169460093602538, 0.0036877074744552374, 0.00677334051579237, -0.012747050262987614, -0.017272017896175385, -0.006110117305070162, 0.014289867132902145, 0.045419011265039444, -0.04880568012595177, 0.007239007391035557, 0.01534349750727415, -0.07766763865947723, 0.01033875159919262, 0.01790231466293335, -0.029219437390565872, 0.017337869852781296, 0.016566460952162743, 0.0009066398488357663, 0.017036832869052887, -0.025569360703229904, 0.06216421350836754, 0.017262611538171768, -0.01302927266806364, 0.00813741609454155, -0.078119195997715, 0.04033900424838066, -0.03939826413989067, 0.015202386304736137, 0.04692419618368149, 0.06969014555215836, -0.042784933000802994, 0.041543155908584595, -0.029332326725125313, 0.07428096979856491, -0.06637873500585556, 0.04319886118173599, 0.030912773683667183, -0.001340557006187737, -0.02605854533612728, -0.029369955882430077, -0.034525223076343536, 0.02037646621465683, 0.030743438750505447, 0.01764831505715847, 0.04346226900815964, 0.016669943928718567, 0.021919282153248787, -0.02468506246805191, -0.023142246529459953, -0.05008509010076523, -0.04368804395198822, -0.021279577165842056, -0.014374533668160439, 0.018400907516479492, 0.000018814835129887797, -0.049520645290613174, 0.0030809291638433933, -0.010508084669709206, -0.03804359585046768, 0.06005695089697838, -0.04654790088534355, -0.021373651921749115, -0.003673596540465951, -0.013518458232283592, 0.0019132334273308516, 0.027450842782855034, -0.016886314377188683, 0.09979388117790222, 0.028429215773940086, -0.03422418236732483, -0.02899366058409214, -0.024703877046704292, -0.01954861357808113, 0.016566460952162743, 0.027055731043219566, 0.05064953491091728, 0.04575767740607262, 0.03936063498258591, -0.048053085803985596, -0.004642560612410307, -0.04094107821583748, 0.006161858327686787, -0.08677401393651962, -0.006481710355728865, -0.01684868335723877, -0.029972031712532043, -0.024703877046704292, -0.030066104605793953, -0.019191130995750427, -0.019087649881839752, 0.02351854369044304, -0.012257864698767662, 0.021241948008537292, 0.01449683029204607, -0.0024341691751033068, -0.05524035543203354, -0.02406417392194271, -0.0022530765272676945, 0.03717811405658722, 0.027130991220474243, 0.00045919956755824387, 0.031138550490140915, -0.026528917253017426, -0.03437470272183418, 0.030856328085064888, -0.013527865521609783, 0.002083742991089821, -0.01338675431907177, -0.03721574321389198, -0.026698250323534012, -0.011514678597450256, 0.042371008545160294, -0.007869304157793522, 0.001886187121272087, 0.020526984706521034, 0.013988829217851162, 0.022558987140655518, 0.021166689693927765, 0.03729100152850151, 0.042182859033346176, 0.046886567026376724, -0.0015357608208432794, 0.005940783768892288, 0.03266255185008049, 0.03087514266371727, 0.045306120067834854, 0.019680317491292953, -0.024553358554840088, 0.007803452666848898, -0.04233337938785553, 0.029689809307456017, -0.01842913031578064, -0.030480030924081802, -0.02615262009203434, -0.010112973861396313, -0.004844819661229849, 0.010479862801730633, -0.014186385087668896, 0.012050901539623737, 0.0008102137944661081, 0.04609634354710579, -0.028297511860728264, 0.05475116893649101, -0.009962454438209534, -0.03636907413601875, 0.017102684825658798, 0.04997219890356064, -0.0030715216416865587, 0.10310529172420502, 0.032512035220861435, -0.006237117573618889, 0.00633119186386466, -0.0006155978771857917, -0.0006367645692080259, -0.040602412074804306, -0.03510848060250282, -0.05211709067225456, 0.0007902230718173087, 0.041242118924856186, -0.0018544371705502272, -0.001106547424569726, 0.020338835194706917, 0.023970099166035652, -0.020564613863825798, -0.022032171487808228, 0.027544917538762093, -0.003008021740242839, 0.00826441589742899, 0.03352803364396095, 0.02731913886964321, -0.0005188778741285205, 0.0577615424990654, 0.0014828441198915243, 0.011053714901208878, -0.014986015856266022, 0.02141128107905388, -0.021580616012215614, -0.0225778017193079, 0.007474192883819342, -0.019510982558131218, 0.07322733849287033, -0.04824123531579971, 0.004484985955059528, -0.04508034512400627, -0.007074377965182066, 0.0005185838672332466, 0.06374465674161911, 0.0217499490827322, -0.0858709067106247, 0.010611566714942455, 0.012295494787395, 0.042483896017074585, -0.01801520399749279, -0.028203437104821205, -0.052794426679611206, -0.0024506321642547846, 0.0027163918130099773, 0.05275679752230644, -0.033678553998470306, 0.022841209545731544, -0.05313309282064438, -0.018024612218141556, -0.0243840254843235, 0.009708454832434654, -0.008212675340473652, 0.03164655342698097, -0.027243880555033684, 0.03567292541265488, 0.022822394967079163, -0.044290121644735336, -0.003793541109189391, -0.011016085743904114, 0.03689588978886604, -0.011279493570327759, -0.0403013750910759, -0.006288858596235514, -0.0019508631667122245, -0.013377347029745579, 0.03778018802404404, 0.07209844887256622, 0.017337869852781296, -0.02773306518793106, 0.03392314538359642, -0.042182859033346176, -0.05170316621661186, -0.020508170127868652, -0.0009795472724363208, -0.0451556034386158, -0.019125279039144516, 0.07307681441307068, 0.02878669649362564, 0.03559766709804535, -0.04176893085241318, -0.0016016127774491906, -0.054976947605609894, -0.056143466383218765, 0.05572953820228577, -0.05302020534873009, 0.007300155702978373, 0.009285121224820614, -0.014468607492744923, 0.03288833051919937, 0.04767679050564766, 0.0670560672879219, 0.01734727807343006, -0.06438436359167099, -0.02825988084077835, 0.018880685791373253, 0.03066818043589592, 0.029050104320049286, -0.011223048903048038, -0.030216624960303307, -0.010178825818002224, 0.06126110255718231, -0.05836361646652222, -0.05038612708449364, -0.003774726064875722, -0.021806392818689346, 0.04692419618368149, -0.021091429516673088, 0.006994414608925581, 0.06016984209418297, -0.010065936483442783, 0.04380093514919281, -0.006712192203849554, 0.04839175567030907, -0.01771416701376438, 0.08466675877571106, 0.012812902219593525, -0.017450759187340736, 0.009092268534004688, 0.012154382653534412, 0.0014640293084084988, 0.08105430752038956, -0.020188316702842712, -0.03096921741962433, -0.015738608315587044, -0.030291883274912834, -0.0451556034386158, 0.02111024409532547, 0.018485574051737785, 0.0029892069287598133, -0.00455083791166544, 0.018786612898111343, -0.012587124481797218, -0.0049577089957892895, -0.003153836587443948, -0.015832683071494102, -0.07819445431232452, 0.001968502067029476, -0.04255915433168411, -0.013678384944796562, 0.08158112317323685, -0.049106717109680176, 0.010225862264633179, 0.04827886447310448, 0.062013693153858185, -0.03279425576329231, 0.0034901518374681473, 0.02353735826909542, 0.01476023718714714, -0.05211709067225456, -0.031345512717962265, -0.05524035543203354, -0.01889009401202202, 0.06731947511434555, 0.02227676473557949, -0.016425350680947304, 0.020432909950613976, 0.051740795373916626, 0.022841209545731544, -0.0004233337822370231, -0.06092243269085884, 0.07055562734603882, 0.01338675431907177, -0.033678553998470306, 0.030084921047091484, 0.006364117842167616, -0.029670994728803635, 0.0016733442898839712, 0.018805427476763725, 0.03087514266371727, 0.03697114810347557, -0.011881567537784576, -0.017507202923297882, -0.020940911024808884, 0.07059326022863388, 0.048165977001190186, 0.026077359914779663, -0.01844794489443302, -0.03215455263853073, 0.02511780336499214, -0.0740928202867508, -0.014506237581372261, 0.021505355834960938, -0.03898433595895767, 0.10920129716396332, 0.03708403930068016, -0.018824242055416107, -0.014515644870698452, 0.04011322557926178, 0.028805511072278023, -0.02280357852578163, 0.015964386984705925, -0.017384907230734825, -0.009233379736542702, 0.033753812313079834, -0.011533493176102638, -0.03057410567998886, -0.035767000168561935, 0.02120431885123253, 0.03636907413601875, 0.019830835983157158, 0.05095057189464569, -0.05422435328364372, -0.018927723169326782, 0.026340767741203308, 0.010602159425616264, -0.020940911024808884, 0.022088615223765373, -0.06931384652853012, 0.04929486662149429, -0.06374465674161911, 0.05881517380475998, 0.005874932277947664, 0.008043341338634491, -0.0015051867812871933, -0.031872328370809555, 0.049934569746255875, 0.08978439122438431, 0.05132686719298363, -0.029257068410515785, -0.00926160253584385, 0.018165722489356995, -0.04210760071873665, -0.007394229993224144, 0.0321357361972332, -0.023443283513188362, -0.07055562734603882, 0.02825988084077835, 0.04775204882025719, 0.027977658435702324, 0.06999118626117706, 0.0073895263485610485, -0.02385720983147621, -0.06754525750875473, 0.0005103523726575077, 0.012747050262987614, -0.01954861357808113, -0.018090464174747467, 0.008391416631639004, -0.009120491333305836, 0.036801815032958984, 0.05787442997097969, 0.004873041994869709, 0.036613669246435165, 0.0390595979988575, -0.017817648127675056, -0.0398874506354332, -0.04651027172803879, -0.023499729111790657, -0.05704657733440399, 0.029050104320049286, -0.020320020616054535, -0.04771441966295242, -0.020602243021130562, 0.003356096101924777, -0.01920994557440281, 0.015465794131159782, -0.0030244847293943167, 0.03693351894617081, 0.031439587473869324, 0.001856788992881775, -0.02005661278963089, -0.006759229116141796, 0.005747932009398937, -0.027695436030626297, -0.02365024760365486, -0.028109362348914146, 0.05922909826040268, -0.07179740816354752, -0.07620008289813995, 0.013471421785652637, -0.010743270628154278, -0.010197640396654606, 0.010216454975306988, 0.04274730384349823, 0.01932283490896225, -0.02406417392194271, -0.03810004144906998, -0.008636008948087692, -0.008471379056572914, 0.02090328186750412, -0.001643946161493659, 0.01728142611682415, -0.013010458089411259, 0.0015216497704386711, -0.02225794829428196, -0.062126584351062775, 0.05723472684621811, 0.014054681174457073, 0.00012207594409119338, -0.015588090755045414, -0.01794935204088688, -0.016152534633874893, 0.027225065976381302, -0.01093141920864582, -0.011947419494390488, -0.042483896017074585, -0.06208895519375801, -0.0023977155797183514, -0.014478014782071114, -0.05821309611201286, -0.005771450698375702, -0.033960774540901184, 0.03772374242544174, 0.03725337237119675, 0.022220319136977196, -0.05452539026737213, 0.02837277017533779, -0.023255135864019394, 0.04425249248743057, 0.04714997485280037, -0.031571291387081146, -0.05870228260755539, 0.04011322557926178, 0.009012306109070778, -0.025362396612763405, -0.04684893786907196, 0.014637941494584084, 0.007794045377522707, 0.08707505464553833, 0.010065936483442783, -0.007366007659584284, 0.040489524602890015, -0.030404772609472275, -0.01077149249613285, -0.010489270091056824, 0.011251270771026611, -0.005108227487653494, 0.006025450769811869, -0.05557902157306671, 0.03537188842892647, 0.013208013959228992, -0.03405484929680824, -0.017544833943247795, 0.00038511614548042417, -0.012154382653534412, -0.04827886447310448, 0.005080005154013634, 0.1016753688454628, 0.029558105394244194, -0.028918400406837463, 0.013302087783813477, 0.028015287593007088, 0.008207971230149269, 0.026848768815398216, -0.0015310571761801839, 0.033866703510284424, -0.0010160011006519198, -0.058250728994607925, 0.03909722715616226, 0.014365126378834248, -0.030273068696260452, 0.002403595019131899, 0.021279577165842056, 0.07364126294851303, -0.010470455512404442, -0.058438874781131744, -0.04263441637158394, -0.0748077854514122, -0.12816664576530457, -0.05794969201087952, -0.022239133715629578, -0.01986846514046192, -0.01824098266661167, -0.02647247165441513, -0.013904162682592869, -0.007351896725594997, 0.006345302797853947, 0.015569275245070457, -0.052794426679611206, -0.01613372005522251, -0.07514645159244537, -0.004706060513854027, 0.00041951201274059713, 0.05140212923288345, 0.019360464066267014, 0.012511865235865116, -0.028617363423109055, 0.030197808519005775, 0.008071564137935638, 0.048768050968647, -0.060771916061639786, -0.07458200305700302, 0.041731301695108414, -0.022935282438993454, -0.01654764637351036, 0.05787442997097969, 0.061486877501010895, -0.04176893085241318, -0.047639161348342896, 0.04579530656337738, -0.005244635045528412, 0.06126110255718231, -0.006796858739107847, 0.002932762261480093, -0.027808325365185738, 0.0068062664940953255, 0.02918180823326111, -0.0585893951356411, 0.025287138298153877, -0.010018899105489254, 0.0018803075654432178, -0.046999458223581314, -0.006674562580883503, -0.01480727456510067, 0.0034713370259851217, 0.09843921661376953, -0.09332157671451569, 0.07665163278579712, -0.02280357852578163, 0.0688246637582779, -0.018052833154797554, -0.008203268051147461, -0.06799681484699249, -0.061298731714487076, 0.017149722203612328, 0.0030103735625743866, -0.036801815032958984, -0.02952047437429428, 0.025644619017839432, 0.031251441687345505, -0.07635059952735901, 0.010178825818002224, 0.0374603345990181, 0.003356096101924777, 0.017845870926976204, 0.004235689528286457, -0.015682164579629898, 0.02991558611392975, -0.012944606132805347, -0.061185840517282486, -0.026020916178822517, -0.03202284872531891, 0.047940198332071304, 0.029896771535277367, -0.04282256215810776, -0.0028363363817334175, 0.0025776324328035116, -0.035334259271621704, 0.03973693028092384, -0.029388772323727608, -0.014214607886970043, -0.0034572258591651917, -0.013405569829046726, -0.004576708655804396, 0.018984168767929077, -0.03360329568386078, 0.05990643426775932, -0.07386703789234161, -0.029859142377972603, -0.029859142377972603, -0.046585530042648315, 0.00036159760202281177, 0.02186283841729164, -0.019680317491292953, 0.05618109554052353, 0.008852379396557808, 0.023142246529459953, 0.02679232507944107, -0.01213556807488203, -0.08346260339021683, -0.0260397307574749, 0.06126110255718231, 0.043537527322769165, -0.04737575352191925, -0.04387619346380234, -0.002069631824269891, 0.015484608709812164, 0.011985049583017826, 0.010489270091056824, 0.0007896350580267608, -0.010009491816163063, 0.04989694058895111, -0.06773340702056885, 0.037535592913627625, 0.025230692699551582, -0.0012899921275675297, 0.05143975839018822, 0.0068533034063875675, 0.019812021404504776, -0.05648213252425194, 0.027281509712338448, 0.01313275471329689, -0.021166689693927765, -0.006872118450701237, -0.012173198163509369, 0.034487590193748474, -0.014628534205257893, 0.00633119186386466, 0.0013299735728651285, -0.032700181007385254, -0.06005695089697838, -0.006444080732762814, -0.07635059952735901, -0.0012923439498990774, 0.032700181007385254, -0.04398908466100693, -0.0019191130995750427, -0.020357651636004448, -0.04775204882025719, 0.0197367612272501, 0.057197097688913345, 0.02248372696340084, -0.02466624788939953, 0.06306732445955276, 0.030649365857243538, 0.015042460523545742, 0.017253203317523003, 0.01728142611682415, -0.023236321285367012, -0.015992609784007072, -0.04380093514919281, -0.02395128458738327, 0.016782833263278008, 0.0017697704024612904, 0.05975591391324997, -0.07172214984893799, -0.06035798788070679, -0.03928537294268608, 0.042596783488988876, -0.07352837175130844, 0.0023636135738343, 0.011016085743904114, -0.02028239145874977, 0.015183571726083755, 0.03495796397328377, 0.015155348926782608, 0.028598548844456673, -0.032305069267749786, 0.03969930112361908, 0.02468506246805191, -0.016124313697218895, 0.017253203317523003, -0.030103735625743866, 0.007968082092702389, -0.00056885473895818, -0.006175969261676073, -0.024609804153442383, -0.03390433266758919, -0.01212616078555584, 0.031571291387081146, 0.00044891019933857024, -0.03529663011431694, 0.022521356120705605, 0.0068062664940953255, -0.06306732445955276, -0.05452539026737213, 0.0662282183766365, 0.016876906156539917, 0.00493889395147562, 0.0009513250552117825, -0.002002603840082884, -0.027356769889593124, 0.021768763661384583, 0.019191130995750427, 0.03599277883768082, -0.027921214699745178, 0.058024950325489044, 0.04116685688495636, -0.00695678498595953, 0.036613669246435165, 0.013330310583114624, 0.012831716798245907, 0.006194784305989742, -0.03132670000195503, 0.06084717437624931, 0.023781951516866684, -0.018306834623217583, -0.02931351214647293, 0.034393519163131714, -0.06381991505622864, 0.05625635385513306, 0.02878669649362564, 0.022747134789824486, 0.025381211191415787, 0.09256898611783981, -0.042483896017074585, -0.010489270091056824, -0.0472252331674099, -0.06449725478887558, -0.03603040799498558, -0.014252237044274807, -0.00455083791166544, 0.08632246404886246, 0.029670994728803635, 0.009360380470752716, 0.011533493176102638, 0.05493931844830513, 0.03836344927549362 ]
718,384
pytorch_optimizer.optimizer.tiger
Tiger
A Tight-fisted Optimizer, an optimizer that is extremely budget-conscious. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param beta: float. 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.
class Tiger(Optimizer, BaseOptimizer): r"""A Tight-fisted Optimizer, an optimizer that is extremely budget-conscious. :param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups. :param lr: float. learning rate. :param beta: float. 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. """ def __init__( self, params: PARAMETERS, lr: float = 1e-3, beta: float = 0.965, weight_decay: float = 0.01, weight_decouple: bool = True, fixed_decay: bool = False, ): self.validate_learning_rate(lr) self.validate_range(beta, 'beta', 0.0, 1.0, range_type='[)') self.validate_non_negative(weight_decay, 'weight_decay') defaults: DEFAULTS = { 'lr': lr, 'beta': beta, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, } super().__init__(params, defaults) def __str__(self) -> str: return 'Tiger' @torch.no_grad() def reset(self): for group in self.param_groups: for p in group['params']: state = self.state[p] state['exp_avg'] = 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: beta = group['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['exp_avg'] = 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 = state['exp_avg'] exp_avg.mul_(beta).add_(grad, alpha=1.0 - beta) p.add_(torch.sign(exp_avg), alpha=-group['lr']) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, beta: float = 0.965, weight_decay: float = 0.01, weight_decouple: bool = True, fixed_decay: bool = False)
[ -0.007806910201907158, -0.04222828522324562, -0.02324330061674118, 0.004945855122059584, -0.014342240057885647, -0.017841549590229988, -0.06489986926317215, -0.047748323529958725, -0.03550567105412483, -0.003366237273439765, -0.021883005276322365, 0.035111382603645325, -0.023598160594701767, 0.05559466406702995, -0.052046068012714386, 0.046644315123558044, -0.017151545733213425, 0.035623956471681595, 0.009177062660455704, -0.019428560510277748, -0.02269129641354084, -0.08177541196346283, -0.016707969829440117, 0.06600387394428253, -0.04423915594816208, 0.010162783786654472, 0.01265665702521801, -0.038837406784296036, -0.024524739012122154, -0.004985284060239792, -0.03430309146642685, -0.06951304525136948, 0.003790097078308463, 0.009068633429706097, 0.023617874830961227, -0.07290392369031906, -0.00030464938026852906, 0.02209986373782158, -0.04349001124501228, -0.015436390414834023, 0.03589995950460434, -0.04711746424436569, 0.04274086281657219, -0.038226258009672165, -0.024643024429678917, 0.009822709485888481, 0.01903427205979824, 0.03917255252599716, -0.019941136240959167, -0.038226258009672165, 0.025490744039416313, -0.07984340190887451, 0.04530373588204384, 0.004063634667545557, -0.0026786967646330595, 0.03179935738444328, 0.059419259428977966, -0.037753112614154816, 0.04325343668460846, -0.057881537824869156, 0.04049341753125191, -0.08082912117242813, 0.05811810865998268, 0.001619046670384705, -0.016106680035591125, -0.011996224522590637, -0.08524514734745026, -0.00897006131708622, 0.013110089115798473, 0.03735882416367531, 0.05184892192482948, -0.026161035522818565, 0.011168219149112701, 0.00580589659512043, -0.04262257367372513, -0.025648459792137146, -0.053583793342113495, -0.08090797811746597, -0.008299770765006542, -0.04187342897057533, 0.01960599049925804, -0.0050148554146289825, -0.02596389129757881, -0.01961584761738777, 0.01449995581060648, -0.06277070939540863, 0.010714787058532238, -0.07365307211875916, 0.009191848337650299, -0.046802032738924026, 0.0005932808271609247, -0.01736840419471264, 0.0484580434858799, -0.008915846236050129, 0.07156334072351456, 0.027659330517053604, -0.03757568448781967, -0.06135127320885658, -0.020877569913864136, -0.006224827840924263, 0.008265270851552486, 0.03708282485604286, 0.014411240816116333, 0.03793054446578026, 0.03649139031767845, -0.01747683249413967, -0.0507449172437191, -0.03954712674021721, 0.01638268306851387, -0.0708930566906929, -0.04179456830024719, -0.003361308481544256, -0.0317402146756649, 0.004931069444864988, -0.032509077340364456, 0.016599541530013084, -0.00725983502343297, 0.010172640904784203, 0.020719856023788452, 0.042425431311130524, 0.046802032738924026, -0.0005178115679882467, -0.03907398134469986, 0.02903934009373188, 0.0002649125235620886, 0.007649194914847612, 0.027580473572015762, 0.038797978311777115, 0.025490744039416313, -0.02689046785235405, -0.020404424518346786, 0.016165824607014656, -0.03846283257007599, -0.0004408021050039679, 0.025234457105398178, 0.01163150742650032, 0.0028807695489376783, 0.03177964314818382, 0.016678398475050926, 0.005909397266805172, 0.03737853839993477, 0.003427844727411866, 0.007491479627788067, -0.002458141651004553, 0.016057394444942474, 0.021902719512581825, -0.012853801250457764, 0.015446247532963753, 0.0289801973849535, 0.0021168359089642763, 0.0009715512278489769, 0.026653895154595375, -0.008073055185377598, 0.011523078195750713, 0.01792040839791298, 0.03266679495573044, -0.03688567876815796, 0.018127409741282463, -0.042543716728687286, -0.021764719858765602, -0.04593459889292717, -0.028211334720253944, -0.03524938225746155, -0.006397329270839691, 0.012291940860450268, 0.0006573526770807803, 0.02371644601225853, 0.03310051187872887, -0.01949756033718586, 0.05894611403346062, -0.0007663980941288173, -0.07940968126058578, 0.0055151088163256645, 0.05389922484755516, 0.020424138754606247, 0.1130819097161293, 0.001590707222931087, 0.01688539981842041, 0.010961217805743217, 0.015239246189594269, 0.02594417706131935, -0.04392372816801071, -0.04321400821208954, -0.07388964295387268, 0.0023497124202549458, -0.00185069115832448, 0.0005794191383756697, 0.02211957797408104, -0.021015571430325508, 0.057290103286504745, 0.007959697395563126, -0.035190239548683167, 0.028723908588290215, -0.022415295243263245, -0.000405993836466223, 0.025195028632879257, 0.014273240230977535, 0.024603595957159996, 0.06967075914144516, 0.037753112614154816, -0.0024384271819144487, 0.014174668118357658, 0.02750161476433277, 0.0002812385209836066, 0.005899540148675442, 0.000576030695810914, -0.017555691301822662, -0.01801897957921028, -0.04321400821208954, 0.027146756649017334, -0.034677665680646896, 0.00900948978960514, 0.02269129641354084, 0.055712949484586716, 0.031247355043888092, -0.046210598200559616, 0.0049631050787866116, 0.04384487122297287, 0.017338832840323448, -0.0014945993898436427, 0.03177964314818382, -0.045698024332523346, 0.021863291040062904, 0.010448642075061798, 0.08713773638010025, -0.014125381596386433, 0.0699467584490776, -0.02484016865491867, -0.010000139474868774, -0.008043482899665833, 0.018630126491189003, -0.03759539872407913, 0.013602949678897858, 0.017614834010601044, 0.0528346449136734, 0.026555323973298073, -0.03179935738444328, -0.03645196184515953, 0.0046994248405098915, -0.019359560683369637, 0.0044874949380755424, -0.010009996592998505, -0.04076942056417465, -0.0035609169863164425, -0.04171571135520935, 0.027797332033514977, 0.06237642467021942, 0.022533582523465157, -0.015387104824185371, 0.03335679695010185, -0.030379921197891235, -0.049877483397722244, -0.04278029128909111, 0.0378122553229332, -0.07136619836091995, -0.0005495394580066204, 0.018334411084651947, 0.009985353797674179, -0.012508799321949482, -0.04640774428844452, -0.0002533610968384892, -0.005835468415170908, -0.08745316416025162, 0.07976454496383667, -0.019812991842627525, 0.0258456040173769, 0.03621538728475571, -0.06194270774722099, 0.009191848337650299, 0.0328836515545845, 0.10117439925670624, 0.04416029900312424, -0.054687801748514175, -0.004800461232662201, -0.046210598200559616, 0.028408478945493698, 0.00018836511299014091, 0.03692510724067688, -0.02482045441865921, -0.031897932291030884, 0.027127042412757874, -0.05433294177055359, -0.024169879034161568, -0.011503363959491253, -0.04554031044244766, 0.027521329000592232, -0.04688088968396187, 0.003233164781704545, 0.05338664725422859, 0.02635817974805832, 0.039823126047849655, 0.010083925910294056, 0.09809895604848862, 0.007348550017923117, 0.11647278815507889, 0.004507209174335003, -0.020207280293107033, 0.023065870627760887, 0.026200463995337486, -0.01898498646914959, 0.08327370882034302, -0.016106680035591125, -0.030912209302186966, -0.0047733536921441555, 0.014273240230977535, -0.010892217047512531, 0.006559973116964102, 0.0113062197342515, 0.02537245862185955, 0.018738556653261185, 0.0097389230504632, -0.06281013786792755, -0.02422902174293995, 0.006057255435734987, 0.01578139327466488, -0.11103161424398422, -0.028329622000455856, -0.058236394077539444, -0.007299263961613178, 0.060917556285858154, -0.018827270716428757, 0.03430309146642685, 0.006357900332659483, -0.004805389791727066, -0.04317457973957062, -0.05401751026511192, 0.016215110197663307, 0.021291572600603104, -0.06355928629636765, -0.010202212259173393, -0.04076942056417465, -0.0011126325698569417, 0.04187342897057533, 0.013287519104778767, -0.040887705981731415, 0.02746218629181385, 0.05500322952866554, 0.05433294177055359, -0.019398989155888557, -0.05117863416671753, 0.051375776529312134, 0.04498830437660217, -0.017181117087602615, 0.06186385080218315, 0.0006268569268286228, -0.03747711330652237, -0.012498942203819752, 0.00594882620498538, 0.053150076419115067, 0.04187342897057533, 0.013602949678897858, -0.06324385851621628, -0.003077913774177432, 0.06399300694465637, 0.03913312405347824, 0.0025431602261960506, -0.005421465262770653, -0.009586136788129807, 0.026713037863373756, -0.059971265494823456, -0.03546624258160591, 0.004465315956622362, -0.04416029900312424, 0.10062240064144135, 0.058236394077539444, -0.016796685755252838, 0.014007095247507095, -0.0400991290807724, 0.007594980299472809, -0.02531331405043602, 0.033041369169950485, -0.08595486730337143, 0.0000820150671643205, 0.024899311363697052, -0.02531331405043602, -0.026713037863373756, -0.01900470070540905, 0.004970497917383909, 0.054608941078186035, 0.03426366299390793, 0.03120792657136917, 0.02273072674870491, 0.029650487005710602, 0.038364261388778687, 0.03187821805477142, -0.02594417706131935, -0.024662738665938377, -0.014164811000227928, 0.1037767082452774, -0.05906440317630768, 0.028763338923454285, -0.0022770154755562544, 0.0016289039049297571, 0.0004811550606973469, -0.08563943952322006, 0.04999576881527901, 0.0357225276529789, 0.026003319770097733, -0.05906440317630768, -0.011089361272752285, -0.018324553966522217, -0.02797476202249527, -0.0059931837022304535, 0.022888440638780594, -0.0019086023094132543, -0.03808825835585594, 0.026713037863373756, 0.0988086685538292, 0.004206564277410507, 0.08642801642417908, -0.01802883669734001, 0.014194382354617119, -0.02947305701673031, 0.028881624341011047, -0.0200495645403862, -0.05847296863794327, -0.02113385871052742, 0.027265042066574097, 0.012331369332969189, 0.06001069396734238, 0.05713238939642906, 0.026752468198537827, 0.03442137688398361, 0.025017598643898964, -0.0029768773820251226, -0.010645786300301552, -0.057802677154541016, -0.014361954294145107, -0.026634180918335915, -0.012153939343988895, -0.015268818475306034, -0.036767393350601196, -0.028408478945493698, -0.004144956823438406, -0.0051701064221560955, -0.010971074923872948, -0.00658954493701458, 0.037733398377895355, 0.029453342780470848, -0.008575772866606712, -0.01586025021970272, -0.030202491208910942, 0.007082405500113964, -0.013415662571787834, -0.004460387397557497, -0.05129691958427429, 0.033041369169950485, -0.004418494179844856, -0.05646209791302681, 0.0020318173337727785, 0.03889654949307442, -0.013386091217398643, -0.0012167493114247918, 0.045658595860004425, -0.00840819999575615, 0.02013828046619892, 0.028408478945493698, -0.013760664500296116, 0.0037186325062066317, 0.02107471413910389, -0.0031789501663297415, 0.031464215368032455, 0.0055151088163256645, -0.006594473496079445, -0.03276536613702774, -0.00256780325435102, 0.048773474991321564, 0.00044111013994552195, 0.005874896887689829, -0.01857098378241062, -0.0017927800072357059, 0.006249471101909876, 0.0047511751763522625, -0.043016862124204636, -0.029197055846452713, 0.027146756649017334, -0.031365640461444855, 0.005130677949637175, 0.03765454143285751, -0.030734781175851822, 0.060483839362859726, -0.04179456830024719, 0.025017598643898964, 0.0473146066069603, 0.015603963285684586, 0.009147490374743938, -0.020226994529366493, 0.009862138889729977, 0.02160700410604477, 0.04049341753125191, -0.05539751797914505, -0.04554031044244766, 0.06639816612005234, 0.020404424518346786, -0.052006639540195465, -0.02209986373782158, -0.0016868150560185313, 0.024445880204439163, 0.05267693102359772, 0.017664119601249695, 0.02685103937983513, -0.0032109860330820084, -0.07649195194244385, -0.004549102392047644, 0.030754495412111282, -0.023125015199184418, -0.03162192925810814, 0.02793533354997635, -0.03808825835585594, 0.03008420392870903, 0.0008501843549311161, -0.013652235269546509, 0.000523972325026989, -0.011168219149112701, 0.01028107013553381, -0.06564901769161224, 0.0021821397822350264, 0.056304384022951126, 0.03544652834534645, -0.04423915594816208, 0.0400005578994751, 0.054569512605667114, -0.03793054446578026, -0.01293265912681818, 0.05965583398938179, 0.009832566604018211, 0.01852169819176197, 0.0024519809521734715, 0.07747767120599747, 0.004857140127569437, 0.02115357294678688, 0.0028093047440052032, 0.02015799470245838, 0.049877483397722244, 0.0048768543638288975, -0.013888808898627758, 0.009625565260648727, -0.0327850803732872, -0.05480608716607094, -0.07645251601934433, 0.006264256779104471, 0.015160388313233852, 0.03051792085170746, -0.04072999209165573, -0.019142702221870422, 0.022375866770744324, -0.044554587453603745, 0.021409859880805016, -0.05066606029868126, -0.01188779529184103, -0.06793589144945145, 0.025195028632879257, -0.005968540441244841, 0.03950769826769829, 0.022947585210204124, 0.005041962955147028, -0.02172529138624668, 0.05236149951815605, 0.02107471413910389, 0.048221468925476074, -0.058906685560941696, -0.04912833496928215, 0.0243275947868824, -0.008058269508183002, 0.020739570260047913, 0.021449288353323936, 0.023637589067220688, 0.019941136240959167, -0.04031598940491676, 0.029374485835433006, 0.004554030951112509, -0.017230402678251266, 0.01393809448927641, 0.01889627054333687, -0.05894611403346062, 0.026713037863373756, -0.0258456040173769, -0.016254538670182228, 0.020286137238144875, -0.057329531759023666, 0.017289545387029648, -0.02426845021545887, -0.015722250565886497, -0.025766747072339058, 0.008339199237525463, 0.020226994529366493, -0.05807868018746376, 0.05342607572674751, -0.035663384944200516, 0.02842819318175316, 0.0037925615906715393, 0.012370798736810684, -0.032449934631586075, -0.04057227447628975, 0.0035609169863164425, -0.008319485001266003, -0.0667135939002037, 0.010399356484413147, 0.04506716504693031, 0.0010701233986765146, -0.06162727624177933, -0.029256198555231094, 0.033041369169950485, -0.012015938758850098, -0.007895625196397305, 0.012755229137837887, -0.025057027116417885, 0.028270477429032326, 0.02103528566658497, -0.06675302237272263, -0.0174866896122694, -0.02963077276945114, 0.024465594440698624, 0.006362828891724348, -0.050902631133794785, 0.004014348611235619, -0.020877569913864136, 0.023617874830961227, 0.0800011157989502, -0.03593938797712326, -0.022573010995984077, -0.0026515894569456577, -0.004204099997878075, 0.0145393842831254, -0.006983833387494087, -0.05689581483602524, 0.05342607572674751, -0.09778352081775665, -0.01164136454463005, -0.010182498022913933, -0.022494152188301086, -0.018265409395098686, 0.010823216289281845, -0.02211957797408104, 0.010478214360773563, 0.02263215370476246, 0.03065592236816883, 0.03331736847758293, -0.029354771599173546, -0.07207591831684113, -0.009167205542325974, 0.07199706137180328, 0.002431034343317151, -0.01007899735122919, -0.04266200587153435, -0.06403243541717529, -0.007373192813247442, 0.01737826131284237, 0.04975919425487518, 0.02799447625875473, -0.024031877517700195, 0.026535609737038612, -0.01449009869247675, -0.0015143138589337468, -0.01218351162970066, 0.013859236612915993, 0.04554031044244766, 0.019960850477218628, 0.04550088196992874, -0.02377559058368206, 0.007555551361292601, -0.005179964005947113, 0.006288900040090084, 0.028309905901551247, -0.032430220395326614, 0.007195763289928436, -0.024110734462738037, -0.012055367231369019, 0.005342607852071524, -0.025510458275675774, -0.06344100087881088, -0.011966653168201447, -0.05867011472582817, -0.0026023034006357193, -0.0046698530204594135, -0.01900470070540905, 0.005638324189931154, -0.0015512784011662006, -0.045106593519449234, -0.04214942827820778, 0.0672655999660492, 0.007629480212926865, 0.0021919971331954002, 0.025510458275675774, 0.056304384022951126, -0.015515248291194439, -0.06336214393377304, 0.024426165968179703, -0.023479873314499855, -0.02537245862185955, -0.046683747321367264, -0.04167628288269043, 0.03753625601530075, 0.007989268749952316, 0.06564901769161224, -0.08011940121650696, -0.038364261388778687, -0.027265042066574097, 0.0339285172522068, -0.0921846255660057, -0.008097697980701923, -0.008122340776026249, -0.02643703669309616, -0.005056748632341623, 0.02750161476433277, 0.05082377418875694, 0.012676372192800045, -0.03889654949307442, 0.03156278654932976, -0.039842844009399414, 0.015002673491835594, 0.01693468727171421, -0.0014391526347026229, 0.03633367642760277, 0.035564813762903214, -0.002553017344325781, 0.017752835527062416, -0.01636296883225441, -0.04490944743156433, 0.02064099721610546, 0.023893876001238823, 0.0005609368672594428, -0.011937080882489681, 0.023046156391501427, -0.03412565961480141, -0.040927134454250336, 0.020838141441345215, -0.02377559058368206, 0.010448642075061798, -0.011385077610611916, 0.05370207875967026, -0.004071027506142855, 0.022513866424560547, -0.03538738191127777, 0.013829665258526802, -0.0016276717651635408, 0.04128199443221092, -0.018225980922579765, 0.02430787868797779, 0.06391414999961853, -0.00396506255492568, 0.053544364869594574, -0.04258314520120621, -0.01188779529184103, 0.014913958497345448, 0.0421888567507267, -0.006377614568918943, -0.01346494909375906, 0.03893597796559334, -0.021784434095025063, 0.05697467178106308, 0.026653895154595375, 0.02369673177599907, 0.011730079539120197, 0.10283041000366211, -0.039330266416072845, 0.02858590893447399, -0.0801982581615448, -0.08903031796216965, -0.08272170275449753, 0.009832566604018211, -0.06111470237374306, 0.06872446835041046, -0.008600415661931038, 0.006983833387494087, 0.004662460181862116, 0.039290837943553925, 0.02750161476433277 ]
718,386
pytorch_optimizer.optimizer.tiger
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-3, beta: float = 0.965, weight_decay: float = 0.01, weight_decouple: bool = True, fixed_decay: bool = False, ): self.validate_learning_rate(lr) self.validate_range(beta, 'beta', 0.0, 1.0, range_type='[)') self.validate_non_negative(weight_decay, 'weight_decay') defaults: DEFAULTS = { 'lr': lr, 'beta': beta, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, } super().__init__(params, defaults)
(self, params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.001, beta: float = 0.965, weight_decay: float = 0.01, weight_decouple: bool = True, fixed_decay: bool = False)
[ 0.019537050276994705, -0.01215638592839241, -0.03439275920391083, -0.005908305756747723, -0.051683519035577774, -0.01573345996439457, -0.07433517277240753, -0.009928974322974682, -0.03505343198776245, 0.03703545033931732, -0.018376152962446213, 0.04586959630250931, 0.01421391125768423, 0.061272718012332916, -0.032637253403663635, 0.023595470935106277, 0.0184894111007452, 0.02718198113143444, -0.020631879568099976, 0.0004406454099807888, -0.015138854272663593, -0.011797735467553139, -0.02848445251584053, 0.11544791609048843, -0.001090110745280981, 0.039149604737758636, -0.020480867475271225, 0.009112570434808731, -0.0366767980158329, 0.011797735467553139, 0.014195035211741924, -0.025804005563259125, 0.000004889608135272283, 0.08298055082559586, 0.027012094855308533, -0.013713687658309937, -0.01359099056571722, 0.00008405886183027178, -0.05787497013807297, 0.03765837103128433, 0.06308484822511673, -0.03093838132917881, 0.0624052993953228, -0.04462375491857529, -0.007055045571178198, 0.004761565942317247, 0.022670527920126915, 0.03356219828128815, -0.023350076749920845, -0.036129385232925415, 0.03057972900569439, -0.019093453884124756, 0.03746960684657097, -0.031164897605776787, -0.03807365149259567, 0.026634566485881805, 0.051834531128406525, 0.03546871244907379, 0.03505343198776245, 0.011929869651794434, -0.007262685801833868, -0.06410417705774307, -0.0025341534055769444, -0.028918609023094177, -0.006767180748283863, -0.028352316468954086, -0.0813194289803505, -0.039791401475667953, 0.043642181903123856, 0.0443594828248024, 0.10495265573263168, -0.00922582857310772, -0.014044024050235748, 0.016007166355848312, -0.013251216150820255, -0.01893300563097, -0.07116393744945526, -0.04511453956365585, -0.053231380879879, -0.016941547393798828, 0.041981060057878494, 0.024275019764900208, -0.011958184652030468, -0.034826915711164474, 0.032844893634319305, -0.04994689300656319, -0.04273611679673195, -0.06368889659643173, 0.02744625136256218, 0.041716791689395905, -0.05953609198331833, -0.03344893828034401, 0.013543800450861454, -0.03465702757239342, 0.08584976196289062, 0.007819538936018944, 0.029711415991187096, -0.037280842661857605, 0.030560852959752083, -0.00698897847905755, -0.01828177087008953, -0.01212807185947895, -0.04794599488377571, 0.01520492136478424, 0.0061065079644322395, -0.041188254952430725, -0.05432621017098427, -0.03439275920391083, 0.022991426289081573, -0.05542103946208954, -0.01946154423058033, 0.03439275920391083, -0.026389174163341522, 0.0325428731739521, -0.07248528301715851, 0.05704440921545029, 0.020518621429800987, 0.019272780045866966, 0.01090110745280981, 0.005176846403628588, 0.03290152549743652, 0.03303365781903267, -0.04126375913619995, 0.04247184842824936, 0.038639944046735764, -0.0027040408458560705, 0.003659657435491681, 0.029975686222314835, 0.02963590994477272, -0.0018369073513895273, 0.025973893702030182, 0.0037469607777893543, -0.04877655580639839, -0.020990530028939247, 0.02535097301006317, -0.03324129804968834, 0.01311908196657896, 0.05096621438860893, -0.027370745316147804, 0.01780042238533497, 0.07222101837396622, 0.019386038184165955, 0.04602060467004776, -0.009306053631007671, -0.01750783994793892, 0.02786153182387352, -0.020103340968489647, -0.004067859146744013, -0.02238738164305687, 0.04005566984415054, 0.008819987066090107, 0.03584623709321022, -0.0008016561041586101, 0.025841759517788887, 0.02854108065366745, -0.035865116864442825, 0.009556165896356106, -0.019065139815211296, 0.015469190664589405, 0.009485378861427307, -0.014600876718759537, 0.03611050918698311, 0.004308532923460007, -0.030636359006166458, -0.004367521498352289, 0.024010751396417618, -0.034826915711164474, -0.004336847458034754, 0.0038130281027406454, -0.002364266198128462, 0.00128477334510535, -0.0970245748758316, -0.003907409962266684, 0.025841759517788887, -0.000894268334377557, 0.057572945952415466, 0.023784233257174492, -0.010995489545166492, -0.0004518532659858465, -0.009844030253589153, 0.07965830713510513, -0.0022663448471575975, -0.027144229039549828, -0.045945100486278534, 0.04439723864197731, 0.018621545284986496, -0.05534553527832031, 0.05889429524540901, -0.04560532420873642, 0.027370745316147804, 0.05213655158877373, 0.02019772306084633, 0.015516381710767746, 0.015412561595439911, -0.023519964888691902, 0.010948298498988152, 0.06304709613323212, -0.0013909529661759734, -0.0013626384316012263, 0.05745968967676163, 0.08494369685649872, 0.011958184652030468, -0.006314147729426622, -0.01756446808576584, 0.021990979090332985, -0.010599085129797459, -0.01925390399992466, -0.009777963161468506, -0.04469925910234451, -0.037224214524030685, -0.0009485378977842629, -0.00033446578891016543, 0.046511393040418625, 0.01780042238533497, 0.0022026372607797384, -0.05711991339921951, -0.026842206716537476, 0.01166560035198927, 0.020178847014904022, -0.005365610122680664, 0.11491937935352325, -0.03448713943362236, 0.010712343268096447, 0.00039728873525746167, 0.05587407574057579, 0.017083121463656425, 0.053306885063648224, -0.06089518964290619, -0.0819234699010849, 0.053759921342134476, -0.02786153182387352, -0.066256083548069, -0.015412561595439911, -0.004851228557527065, 0.03492129594087601, 0.014761325903236866, -0.02244401164352894, 0.0352044403553009, -0.07135270535945892, -0.01727188378572464, 0.043377913534641266, 0.025124456733465195, 0.009414592757821083, -0.011618409305810928, 0.005096621811389923, 0.027616137638688087, 0.04605835676193237, 0.031221525743603706, -0.04956936463713646, -0.028144676238298416, -0.03677118197083473, -0.021462440490722656, 0.003565275575965643, 0.06297159194946289, -0.04481251910328865, 0.030636359006166458, 0.041565779596567154, -0.013911888934671879, 0.005592126399278641, -0.006856843829154968, -0.02206648327410221, 0.00799886416643858, -0.014695258811116219, 0.07739314436912537, 0.021764462813735008, 0.018083568662405014, 0.008456616662442684, -0.00922582857310772, 0.03495904803276062, 0.008763357996940613, 0.13500384986400604, 0.015988290309906006, -0.0024916816037148237, 0.0047828019596636295, -0.002531793899834156, -0.05213655158877373, 0.020405363291502, -0.025785129517316818, 0.0062999906949698925, 0.03507230803370476, 0.017262445762753487, -0.049531612545251846, 0.011948746629059315, -0.00023890413285698742, -0.00004464705489226617, -0.006502911448478699, -0.011608971282839775, 0.022576145827770233, -0.0013803350739181042, 0.013883574865758419, 0.002121232682839036, -0.014015709049999714, 0.08456616848707199, 0.04292488098144531, 0.08501920104026794, -0.010863354429602623, 0.05398643761873245, -0.0026875240728259087, 0.06149923428893089, -0.009339087642729282, 0.048021502792835236, -0.03395860269665718, 0.03259950131177902, -0.008541560731828213, -0.03512893617153168, -0.04926734045147896, 0.03865882009267807, 0.018055254593491554, 0.030353212729096413, 0.058365754783153534, 0.02650243230164051, 0.01372312568128109, 0.007234371267259121, 0.021066036075353622, 0.02629479207098484, -0.08041336387395859, 0.010919983498752117, -0.0411127470433712, 0.031164897605776787, 0.052891604602336884, 0.0049833632074296474, 0.009466502815485, -0.016488514840602875, -0.008848301135003567, -0.08562324196100235, -0.053231380879879, 0.023557716980576515, 0.027276363223791122, -0.03382646664977074, 0.0034024668857455254, -0.03960263729095459, 0.002892804564908147, 0.024973446503281593, -0.028880855068564415, -0.04658689722418785, -0.009947850368916988, 0.005615721922367811, 0.05628935247659683, -0.01045751292258501, -0.024388277903199196, 0.06923855096101761, -0.010325377807021141, -0.008909649215638638, 0.03711095452308655, -0.012769868597388268, -0.04443499073386192, -0.0066727991215884686, -0.01972581259906292, 0.03533657640218735, 0.0030202202033251524, 0.0014865145785734057, -0.011892116628587246, -0.008569874800741673, 0.07761965692043304, 0.030277708545327187, -0.040206681936979294, -0.020159969106316566, -0.00439111702144146, 0.03354332223534584, -0.05111722648143768, -0.04001791775226593, 0.003687971970066428, -0.043491169810295105, 0.06285833567380905, 0.04016892984509468, -0.007489202078431845, 0.0037776348181068897, -0.026181533932685852, 0.02593614161014557, 0.011656162329018116, 0.0294282715767622, -0.07055989652872086, -0.0156768299639225, -0.0036714551970362663, 0.003492129733785987, -0.008291448466479778, -0.023463334888219833, 0.009032346308231354, 0.057950474321842194, -0.014685820788145065, -0.012146947905421257, -0.004242465365678072, 0.051834531128406525, 0.025275468826293945, -0.0024444907903671265, -0.023104684427380562, -0.02285929210484028, 0.009466502815485, 0.06176350265741348, -0.006120664998888969, 0.012297959066927433, 0.007814819924533367, 0.012628295458853245, -0.033316805958747864, -0.06161249056458473, 0.0443594828248024, 0.04205656796693802, 0.0266156904399395, -0.026785578578710556, -0.02395412139594555, -0.019367162138223648, -0.05338239297270775, -0.020858395844697952, 0.042962633073329926, -0.004926734138280153, 0.006064035929739475, 0.010240433737635612, 0.0591585636138916, 0.006163137033581734, 0.07414640486240387, -0.0040253871120512486, -0.03152354806661606, -0.030692987143993378, 0.0025553894229233265, -0.013657058589160442, -0.04005566984415054, 0.02655906230211258, -0.02363322302699089, 0.02368985302746296, -0.013675934635102749, 0.03752623498439789, -0.005261790007352829, 0.0762983113527298, 0.023387830704450607, 0.05644036456942558, 0.04647363722324371, -0.006502911448478699, 0.01795143447816372, 0.007319314870983362, -0.04277386888861656, -0.05024891346693039, -0.017734356224536896, -0.04692666977643967, -0.038847584277391434, 0.00962695199996233, 0.012213015928864479, 0.004627071786671877, 0.029201753437519073, 0.017639974132180214, -0.01750783994793892, 0.02087727189064026, -0.0777706727385521, 0.02280266210436821, -0.02102828398346901, -0.05228756368160248, -0.024709176272153854, 0.016696155071258545, -0.003239658195525408, -0.046511393040418625, -0.020801765844225883, 0.035147812217473984, -0.00804605521261692, 0.023803111165761948, -0.003982915543019772, -0.015714583918452263, -0.027314117178320885, -0.02357659488916397, -0.03539320454001427, 0.0683324858546257, -0.035657476633787155, 0.052778348326683044, 0.003900331212207675, -0.00653594546020031, -0.02416176162660122, -0.06674686819314957, 0.029201753437519073, 0.06908753514289856, -0.018479973077774048, -0.003230219939723611, 0.008348077535629272, 0.015176606364548206, 0.013609867542982101, 0.02620040997862816, -0.042396340519189835, -0.055534299463033676, 0.029466023668646812, 0.0021825809963047504, -0.01293975580483675, -0.0019029746763408184, -0.02650243230164051, -0.0055071827955543995, -0.055232275277376175, 0.0023701649624854326, 0.07980931550264359, 0.005766733083873987, -0.020310981199145317, -0.06806821376085281, 0.015053910203278065, 0.005795047618448734, 0.053457897156476974, -0.08562324196100235, -0.005327857099473476, 0.03329792618751526, 0.049795880913734436, -0.037224214524030685, -0.02806917205452919, 0.028918609023094177, 0.018121320754289627, 0.05036217346787453, 0.03688443824648857, 0.004145724233239889, -0.02487906441092491, -0.03580848500132561, -0.010193243622779846, 0.017168063670396805, -0.04375544190406799, -0.09423086792230606, 0.028975237160921097, -0.03599724918603897, -0.008786953054368496, -0.019499296322464943, 0.021273676306009293, -0.010146052576601505, 0.00884358212351799, -0.051683519035577774, -0.02519996277987957, -0.04737970605492592, 0.06659585237503052, -0.011354140006005764, -0.039413873106241226, 0.054175201803445816, 0.05670463293790817, 0.03141029179096222, -0.058365754783153534, 0.02859771065413952, 0.029126249253749847, 0.006663360632956028, -0.06670911610126495, 0.06618057191371918, 0.026879960671067238, -0.013808068819344044, -0.035242196172475815, -0.03286376968026161, 0.0312026496976614, -0.030825123190879822, 0.015450313687324524, 0.03448713943362236, -0.025634119287133217, -0.055232275277376175, -0.047719478607177734, 0.02608715184032917, 0.020518621429800987, 0.038734324276447296, -0.047190941870212555, -0.012250768020749092, 0.007295719347894192, -0.03580848500132561, 0.05972485616803169, -0.06425518542528152, 0.004263701383024454, -0.0016469638794660568, -0.02029210515320301, -0.054703738540410995, 0.015488066710531712, 0.013874136842787266, -0.0003568815009202808, 0.00986290629953146, -0.010684029199182987, 0.04919183626770973, 0.02969253994524479, -0.03191995248198509, -0.03108939155936241, -0.006545383483171463, 0.02629479207098484, -0.015629639849066734, 0.006021563895046711, -0.0014003912219777703, -0.028975237160921097, -0.05938507989048958, 0.017205817624926567, 0.009919535368680954, -0.026106027886271477, 0.00833863951265812, 0.010212119668722153, -0.03937612101435661, 0.0212925523519516, 0.0011514589423313737, 0.018479973077774048, -0.03937612101435661, -0.039829153567552567, -0.00047426894889213145, -0.001759042264893651, -0.0736556202173233, -0.0863782986998558, 0.027144229039549828, -0.002531793899834156, -0.050324417650699615, 0.010164928622543812, -0.021462440490722656, 0.002810220466926694, 0.010938860476016998, 0.03250512108206749, -0.039413873106241226, -0.0588565431535244, -0.058932047337293625, 0.01090110745280981, -0.04273611679673195, -0.01911233179271221, 0.04073521867394447, 0.057837218046188354, -0.05991361662745476, -0.02091502584517002, 0.035978373140096664, 0.008409425616264343, 0.006889877375215292, -0.006082912441343069, -0.007753471378237009, 0.03792263939976692, 0.012241329997777939, -0.06787944585084915, -0.005974373314529657, -0.034675903618335724, -0.022198619320988655, -0.02640805020928383, -0.0017790984129533172, -0.03599724918603897, -0.044850271195173264, 0.019971206784248352, 0.07161697000265121, -0.009353244677186012, -0.02185884304344654, -0.029598157852888107, 0.0061489795334637165, 0.05462823435664177, -0.07237202674150467, -0.006738866213709116, -0.0020410080906003714, -0.1073688268661499, 0.007899763062596321, -0.01883862353861332, 0.029239507392048836, -0.004155162256211042, -0.016460200771689415, -0.05202329158782959, 0.0020610643550753593, 0.02552086114883423, 0.021726708859205246, 0.011750544421374798, 0.050475429743528366, -0.0029659506399184465, 0.010514141991734505, 0.055383287370204926, -0.00020542806305456907, -0.014600876718759537, -0.025501985102891922, -0.029730292037129402, -0.017337951809167862, 0.002519996138289571, 0.04926734045147896, 0.01453480962663889, -0.033260174095630646, 0.02306693233549595, -0.045152291655540466, 0.015893908217549324, 0.00423066783696413, 0.005620440933853388, 0.035506464540958405, 0.02321794256567955, 0.053722165524959564, -0.022047607228159904, -0.023821987211704254, -0.01934828609228134, 0.037167586386203766, 0.024237267673015594, 0.002384322229772806, 0.005620440933853388, -0.03186332434415817, -0.03167456015944481, -0.019688060507178307, -0.03452489152550697, -0.043793193995952606, -0.028994113206863403, -0.04300038516521454, 0.010627400130033493, 0.02416176162660122, 0.01004223246127367, -0.06482147425413132, -0.019744690507650375, 0.00735706789419055, -0.01450649555772543, 0.06957831978797913, 0.02801254205405712, -0.0041480837389826775, -0.04058421030640602, 0.027899283915758133, -0.007753471378237009, -0.068596750497818, 0.050060149282217026, -0.011995936743915081, -0.02097165398299694, -0.03335455805063248, -0.02395412139594555, 0.01886693760752678, -0.007621336728334427, 0.02091502584517002, -0.0405087023973465, -0.08350908756256104, -0.05432621017098427, 0.02117929421365261, -0.023236818611621857, -0.025426479056477547, 0.004270780365914106, -0.06516125053167343, 0.0777706727385521, 0.013204025104641914, 0.03290152549743652, 0.0037210057489573956, -0.024275019764900208, 0.01777210831642151, -0.06168799847364426, 0.031353659927845, 0.04122600704431534, 0.026577938348054886, -0.08147043734788895, -0.020329857245087624, 0.02723861113190651, 0.02650243230164051, -0.029919056221842766, -0.045945100486278534, 0.01437436044216156, -0.015082224272191525, -0.02436940185725689, 0.00615841755643487, -0.0034874104894697666, -0.0005064177676104009, -0.059196315705776215, -0.04556757211685181, 0.011910993605852127, 0.011854364536702633, -0.03010782040655613, 0.048021502792835236, 0.011391893029212952, -0.024275019764900208, 0.00039138985448516905, 0.02822018228471279, -0.01993345282971859, 0.015516381710767746, 0.0019796600099653006, 0.06591630727052689, 0.05474149063229561, 0.0047072963789105415, 0.04013117775321007, -0.048021502792835236, 0.001005756901577115, -0.008470773696899414, 0.08109290897846222, -0.014827393926680088, -0.02771051973104477, 0.07252303510904312, -0.021764462813735008, -0.021141542121767998, -0.014072338119149208, 0.018508287146687508, 0.033109165728092194, 0.04454824700951576, -0.047190941870212555, 0.015063348226249218, -0.03156130015850067, -0.0896250382065773, -0.078676737844944, 0.008550998754799366, -0.03292040154337883, 0.07471270114183426, 0.01934828609228134, 0.012675486505031586, 0.02780490182340145, 0.04586959630250931, 0.020424239337444305 ]
718,389
pytorch_optimizer.optimizer.tiger
__str__
null
def __str__(self) -> str: return 'Tiger'
(self) -> str
[ 0.017638351768255234, -0.054135099053382874, 0.04922006279230118, 0.011694993823766708, 0.0066579547710716724, -0.0748758465051651, 0.019921576604247093, 0.011982575990259647, 0.07508499920368195, -0.06553379446268082, -0.028949903324246407, 0.006047932896763086, -0.04726799204945564, 0.013185190968215466, 0.010108936578035355, -0.00995207391679287, -0.03062310628592968, -0.05389108881354332, 0.006474948022514582, -0.004257082473486662, 0.001786493114195764, 0.032174304127693176, 0.0538213737308979, -0.015381270088255405, -0.01901525817811489, 0.08498478680849075, -0.045664507895708084, -0.01842266507446766, 0.0005098041146993637, 0.01261874195188284, -0.0237560011446476, -0.09070156514644623, 0.014553382992744446, 0.010997826233506203, -0.04507191479206085, 0.005363836418837309, -0.05765579640865326, 0.032348595559597015, -0.013620920479297638, 0.01288889441639185, 0.006052290089428425, 0.027590425685048103, -0.027102407068014145, -0.028984760865569115, -0.042178668081760406, -0.004411766305565834, 0.009176474064588547, 0.02637038193643093, -0.0012200440978631377, 0.01936384290456772, 0.004257082473486662, -0.010997826233506203, -0.057411789894104004, -0.034091517329216, -0.021594779565930367, -0.005982573144137859, 0.03761221468448639, -0.013263622298836708, -0.0277995765209198, 0.01950327679514885, -0.020653603598475456, -0.031093694269657135, 0.039564285427331924, -0.036566462367773056, -0.02882789820432663, 0.02067103236913681, -0.013830071315169334, 0.039389993995428085, 0.04552507400512695, 0.04291069135069847, 0.04183008149266243, -0.04733771085739136, -0.007429196964949369, 0.02551634982228279, 0.033655788749456406, -0.002688454231247306, -0.07731593400239944, -0.00009660951764089987, 0.034718967974185944, -0.03816995024681091, 0.022901970893144608, -0.00535947922617197, -0.021350771188735962, 0.030605677515268326, -0.01964270882308483, -0.06790416687726974, -0.04698912426829338, -0.07508499920368195, -0.015860572457313538, 0.012052292935550213, -0.03743792325258255, -0.011729852296411991, -0.012087150476872921, 0.03191286697983742, -0.029298486188054085, 0.004189544357359409, 0.013612206093966961, -0.06609153002500534, 0.020461881533265114, 0.048941195011138916, 0.013838785700500011, 0.05887584015727043, -0.006239654030650854, 0.007664490956813097, -0.047686293721199036, -0.02725926972925663, -0.0502309575676918, 0.024453168734908104, 0.004989109002053738, 0.021856218576431274, -0.059468433260917664, 0.025132907554507256, 0.017498917877674103, 0.005734207108616829, 0.00916775967925787, -0.07072769850492477, -0.018718961626291275, -0.0018725497648119926, 0.04928978160023689, -0.036740757524967194, 0.027137266471982002, -0.009202618151903152, -0.03604358807206154, 0.007564273197203875, 0.030344238504767418, 0.07522442936897278, -0.04479304701089859, -0.015416128560900688, 0.04061003774404526, -0.02027016133069992, 0.028148159384727478, 0.015816999599337578, -0.07640961557626724, -0.0286884643137455, 0.09516343474388123, 0.018840966746211052, 0.015372555702924728, 0.017159048467874527, 0.055703725665807724, 0.11733338236808777, -0.013063185848295689, 0.008470592088997364, 0.042701542377471924, 0.04608280584216118, -0.01351634506136179, 0.025655783712863922, -0.03520698472857475, 0.06598695367574692, -0.027294129133224487, 0.0006296298815868795, 0.015851859003305435, 0.055355142802000046, 0.04061003774404526, -0.011058827862143517, -0.008644883520901203, 0.05277562141418457, -0.021315913647413254, -0.040156878530979156, 0.02942049130797386, -0.035032693296670914, -0.007803924847394228, -0.058945558965206146, -0.012183011509478092, -0.0009346408769488335, 0.00825272686779499, 0.032209161669015884, -0.0043878015130758286, 0.014832249842584133, 0.03600873053073883, 0.019939005374908447, -0.05263618752360344, -0.05511113256216049, -0.09481485188007355, 0.03447496145963669, 0.01549455989152193, 0.05657518655061722, 0.005555558018386364, 0.09558174014091492, 0.030657963827252388, 0.03527670353651047, -0.004888890776783228, -0.037228774279356, -0.03473639860749245, 0.02560349553823471, 0.0730632096529007, -0.061629652976989746, 0.03233116865158081, 0.04196951538324356, 0.03461439162492752, 0.016845323145389557, 0.00443791039288044, 0.002945534884929657, -0.04130720719695091, 0.007708064280450344, 0.0074379113502800465, -0.03330720216035843, 0.010631812736392021, -0.06396516412496567, -0.011947717517614365, 0.031895436346530914, -0.023302841931581497, 0.040958620607852936, -0.03614816442131996, 0.01618301309645176, 0.049254920333623886, 0.00655773701146245, 0.02260567434132099, -0.02922876924276352, 0.004775600973516703, -0.03708934038877487, 0.04702398553490639, 0.02677125297486782, -0.028775610029697418, 0.021734213456511497, 0.05326363816857338, -0.05779523029923439, 0.0027472777292132378, -0.03159914165735245, -0.03694990649819374, 0.02555120922625065, 0.0730632096529007, 0.0028779967688024044, -0.008745101280510426, -0.04308498650789261, -0.025411775335669518, 0.021734213456511497, 0.014143796637654305, -0.03911112621426582, 0.013350768014788628, -0.01549455989152193, 0.013167761266231537, -0.057376928627491, 0.005551200360059738, 0.03111112304031849, 0.03555557131767273, -0.00007244011794682592, -0.028758181259036064, -0.02272767759859562, -0.062431398779153824, -0.0336209274828434, -0.006100220140069723, 0.028444455936551094, -0.009002182632684708, -0.015773426741361618, 0.0192766971886158, -0.04489762336015701, -0.010108936578035355, 0.02272767759859562, -0.02645752765238285, -0.026074085384607315, 0.06344228982925415, -0.06954251229763031, -0.025342058390378952, -0.012095865793526173, -0.00726361945271492, -0.06093248724937439, -0.04137692227959633, 0.021507633849978447, 0.031668856739997864, -0.0034270165488123894, -0.061943382024765015, 0.034544676542282104, -0.04500219598412514, 0.0515555776655674, -0.02178650163114071, -0.013089329935610294, -0.053019627928733826, 0.010710244067013264, 0.032575175166130066, -0.004037038888782263, 0.11315037310123444, 0.00682788947597146, -0.05716777965426445, 0.04029631242156029, -0.05326363816857338, -0.023790858685970306, -0.029124194756150246, 0.03670589625835419, -0.11008283495903015, -0.06574294716119766, -0.03313291072845459, -0.03806537389755249, 0.015843143686652184, -0.004758171737194061, -0.013873644173145294, -0.068183034658432, 0.00966449175029993, -0.019119832664728165, 0.016801750287413597, 0.014413949102163315, 0.0538213737308979, 0.009803925640881062, -0.030047941952943802, 0.015564276836812496, 0.019137263298034668, 0.016017435118556023, 0.017141619697213173, 0.032435741275548935, -0.016618743538856506, -0.0363224558532238, 0.005320263560861349, -0.015895431861281395, -0.017455345019698143, -0.005721135064959526, -0.01842266507446766, -0.017899788916110992, -0.019433559849858284, -0.007381266448646784, -0.014849679544568062, 0.022623103111982346, -0.03206973150372505, 0.018039222806692123, -0.0035490209702402353, 0.08498478680849075, 0.027119837701320648, 0.047546859830617905, -0.01784750260412693, 0.001799565041437745, 0.008191724307835102, 0.06797388195991516, -0.031947724521160126, 0.006056647282093763, -0.05727235600352287, -0.008261441253125668, 0.031006548553705215, -0.013856214471161366, -0.0591895654797554, 0.08268412947654724, 0.00763399014249444, 0.07341179251670837, -0.026074085384607315, -0.03292376175522804, 0.05249675363302231, 0.00020901425159536302, -0.02049674093723297, 0.008148151449859142, 0.03994772955775261, -0.009777781553566456, -0.03196515515446663, -0.025254912674427032, 0.06936822086572647, -0.009594774805009365, -0.04521134868264198, 0.017289767041802406, 0.025411775335669518, 0.04012202098965645, -0.05340307205915451, -0.02250109799206257, 0.03649674728512764, 0.01255773939192295, -0.02631809376180172, -0.04545535519719124, 0.010257084853947163, -0.013751639984548092, -0.009106757119297981, 0.014605670236051083, -0.013978219591081142, 0.06560350954532623, -0.007202617358416319, -0.004466232843697071, -0.017551206052303314, -0.06093248724937439, 0.017516346648335457, 0.03653160482645035, -0.0161394402384758, 0.0035424851812422276, 0.021943364292383194, 0.018318090587854385, 0.031947724521160126, -0.03607844561338425, 0.007211331743746996, 0.010509808547794819, -0.04336385056376457, -0.013028327375650406, -0.020113298669457436, 0.05681919679045677, 0.02968192845582962, 0.014631814323365688, -0.03918084502220154, -0.008958609774708748, 0.03820480778813362, 0.014971683733165264, 0.023337699472904205, 0.04733771085739136, 0.004980394151061773, -0.014274515211582184, 0.00589542742818594, 0.031860578805208206, 0.016714604571461678, -0.018771249800920486, -0.02272767759859562, -0.030901974067091942, -0.023511992767453194, -0.0067843166179955006, -0.04413073882460594, -0.06406974047422409, -0.02469717711210251, -0.04420045390725136, -0.06982138007879257, 0.05549457669258118, 0.016958612948656082, -0.02075817808508873, 0.0013169939629733562, -0.015050115063786507, -0.026021797209978104, 0.06574294716119766, 0.012453163973987103, -0.007812639698386192, -0.037821367383003235, -0.007742922753095627, 0.016427021473646164, -0.007930286228656769, -0.054727692157030106, -0.07201746106147766, 0.06870590895414352, -0.016383448615670204, -0.029350774362683296, 0.0295947827398777, 0.004183008335530758, 0.010091507807374, -0.039564285427331924, 0.05751636251807213, 0.01623530127108097, 0.104017473757267, -0.007703706622123718, 0.043782152235507965, 0.03238345682621002, 0.03757735714316368, 0.07100656628608704, -0.0014967325842007995, -0.02030501887202263, 0.014544668607413769, -0.01819608546793461, 0.0018910682993009686, 0.05936385691165924, -0.03510241210460663, 0.01040523312985897, -0.04852289706468582, -0.03457953408360481, 0.02637038193643093, 0.01842266507446766, -0.05765579640865326, 0.007067541126161814, 0.026753824204206467, 0.031808290630578995, -0.051590435206890106, -0.062396541237831116, 0.002690632827579975, 0.062396541237831116, 0.0059607867151498795, 0.013577347621321678, 0.002086057560518384, -0.014152511022984982, -0.01549455989152193, 0.029699359089136124, -0.0075860596261918545, 0.02412201464176178, -0.03806537389755249, 0.01398693397641182, 0.03484097123146057, -0.08909807354211807, 0.058666691184043884, -0.019625280052423477, 0.02326798252761364, 0.006718956865370274, -0.00697168055921793, -0.010893250815570354, 0.04228324070572853, -0.03932027891278267, -0.016392163932323456, 0.04061003774404526, -0.007694992236793041, -0.036880187690258026, -0.034910690039396286, -0.02820044755935669, 0.0735512301325798, -0.030065372586250305, -0.0021034867968410254, 0.007416124921292067, -0.03834424167871475, -0.03330720216035843, -0.01722005009651184, -0.008514164946973324, 0.05274076387286186, -0.020183015614748, 0.013830071315169334, 0.009551201947033405, 0.025045761838555336, -0.03276689723134041, -0.009734208695590496, 0.020322447642683983, 0.014936825260519981, -0.07125057280063629, -0.020793037489056587, -0.01924183778464794, 0.034318096935749054, -0.043015267699956894, -0.003618737915530801, -0.09335079789161682, 0.03233116865158081, 0.029943367466330528, -0.018893253058195114, 0.0004833879938814789, 0.008030503988265991, 0.04733771085739136, -0.03193029761314392, 0.03775164857506752, 0.025725500658154488, -0.009411768987774849, -0.020427023991942406, 0.0163573045283556, -0.03529413044452667, 0.019259266555309296, -0.00995207391679287, 0.00763399014249444, -0.03914598375558853, -0.01506754383444786, -0.004084968939423561, -0.011128544807434082, 0.04367757961153984, -0.008618740364909172, -0.031407419592142105, -0.05657518655061722, -0.019660139456391335, 0.03156428411602974, 0.01044880598783493, -0.014858393929898739, 0.04465361312031746, -0.010013075545430183, 0.08010460436344147, -0.009272335097193718, 0.047372568398714066, 0.019851859658956528, 0.03173857554793358, -0.02300654537975788, 0.06375601887702942, -0.09202618151903152, 0.01793464832007885, 0.03473639860749245, -0.0028888899832963943, 0.0145708117634058, -0.03147713840007782, 0.0028779967688024044, -0.032749470323324203, 0.03233116865158081, -0.07229632884263992, -0.044270168989896774, -0.01910240389406681, 0.011947717517614365, 0.021002186462283134, -0.02349456213414669, -0.03932027891278267, -0.02583007514476776, -0.03335949033498764, -0.010126365348696709, 0.052217885851860046, -0.00513289961963892, 0.03998258709907532, 0.052078451961278915, 0.03435295447707176, -0.0322788804769516, 0.006082791369408369, 0.07717650383710861, 0.04890633746981621, 0.04953378811478615, 0.03607844561338425, -0.02394772134721279, 0.05654032900929451, 0.0024618746247142553, -0.056784335523843765, 0.011895429342985153, -0.06372115761041641, 0.026509813964366913, 0.07752508670091629, -0.07529415190219879, 0.06811331957578659, 0.037368208169937134, 0.04869718849658966, -0.0028191732708364725, 0.006836604326963425, -0.04855775460600853, 0.06208281219005585, 0.017010901123285294, -0.03348149359226227, -0.03133770450949669, -0.01531155314296484, -0.02394772134721279, -0.000012399583283695392, -0.0107625313103199, -0.0569586306810379, -0.024540314450860023, 0.00813507940620184, -0.04388672858476639, -0.01127669308334589, 0.04183008149266243, -0.07125057280063629, 0.006945536471903324, -0.02820044755935669, 0.025969509035348892, -0.030466243624687195, 0.03224402293562889, 0.024854039773344994, 0.00784314051270485, 0.007145972456783056, 0.07299349457025528, 0.044095877557992935, -0.00017347501125186682, 0.017917219549417496, -0.021891076117753983, 0.03241831436753273, -0.005869283340871334, -0.009978218004107475, 0.014727674424648285, -0.002189543331041932, -0.016392163932323456, -0.005446625407785177, 0.03376036137342453, -0.01246187835931778, -0.014962969347834587, 0.000005735977083531907, 0.0007440090412274003, 0.07564273476600647, -0.027363846078515053, 0.03698476403951645, -0.03883225843310356, 0.004636167548596859, 0.007877998985350132, -0.02067103236913681, 0.04510677233338356, -0.09411768615245819, 0.003104576375335455, -0.0197298564016819, -0.006422660779207945, -0.0587364062666893, -0.046919409185647964, 0.0032984763383865356, 0.015459701418876648, 0.034718967974185944, -0.0221873726695776, 0.018143799155950546, -0.010457520373165607, 0.020880183205008507, -0.04695426672697067, 0.044095877557992935, -0.053019627928733826, -0.0031111123971641064, -0.06675384193658829, -0.04447932168841362, -0.0019291946664452553, -0.046605683863162994, -0.03416123241186142, 0.02246624045073986, -0.009525058791041374, 0.016244014725089073, -0.02300654537975788, -0.005355122033506632, 0.0038344243075698614, 0.010248370468616486, -0.026056654751300812, -0.00275163515470922, -0.0013910681009292603, -0.009612204506993294, 0.010605668649077415, -0.029891079291701317, 0.06598695367574692, 0.03424838185310364, -0.01508497353643179, -0.050962984561920166, -0.001046841382049024, -0.024784324690699577, 0.02260567434132099, 0.029472779482603073, 0.007642704527825117, -0.059119850397109985, -0.006509806495159864, -0.001632898231036961, 0.027520708739757538, 0.02286711148917675, 0.05716777965426445, -0.058945558965206146, 0.02851417288184166, -0.02896733209490776, -0.005106755997985601, -0.049115490168333054, 0.019520705565810204, 0.0502309575676918, -0.06218738853931427, 0.01179085485637188, 0.04155121371150017, -0.05448368191719055, -0.07250547409057617, -0.044862762093544006, -0.04524620622396469, 0.0327320396900177, 0.09202618151903152, 0.04444446414709091, -0.0070370398461818695, -0.049254920333623886, -0.007594774477183819, -0.004941178485751152, 0.014021792449057102, 0.03820480778813362, -0.01910240389406681, 0.005464054644107819, 0.021315913647413254, -0.018718961626291275, -0.006610024254769087, -0.0061176493763923645, 0.02743356302380562, -0.05169501155614853, 0.06267540901899338, 0.05532028526067734, -0.02169935591518879, 0.00100599171128124, 0.014187369495630264, -0.0726449117064476, 0.020949900150299072, 0.056296318769454956, -0.02129848301410675, 0.014989112503826618, 0.0302570927888155, -0.01618301309645176, -0.01159041840583086, 0.0017690638778731227, 0.06393031030893326, 0.06361658126115799, -0.02187364734709263, -0.02304140292108059, -0.05350764840841293, 0.014135082252323627, 0.02950763702392578, 0.03729848936200142, -0.004159043077379465, 0.008644883520901203, 0.01334205362945795, -0.013272336684167385, 0.006448804400861263, -0.010230940766632557, 0.06563837081193924, 0.042387817054986954, 0.0049673221074044704, 0.006592595484107733, -0.018440093845129013, -0.00575163634493947, 0.009917215444147587, 0.03932027891278267, 0.05389108881354332, 0.026701536029577255, -0.05493684113025665, 0.048941195011138916, 0.058631833642721176, 0.03928541764616966, -0.004276690073311329, 0.004084968939423561, -0.00035239665885455906, -0.005830067675560713, 0.007978216744959354, 0.00784314051270485, 0.00009061823220690712, 0.025795217603445053, -0.004108934197574854, -0.04590851441025734, 0.02269282005727291, -0.016296302899718285, -0.003921570256352425, 0.04224838316440582, 0.006374730262905359, 0.02551634982228279 ]
718,425
pytorch_optimizer.loss.tversky
TverskyLoss
Tversky Loss w/ logits input. :param alpha: float. alpha. :param beta: float. beta. :param smooth: float. smooth factor.
class TverskyLoss(nn.Module): r"""Tversky Loss w/ logits input. :param alpha: float. alpha. :param beta: float. beta. :param smooth: float. smooth factor. """ def __init__(self, alpha: float = 0.5, beta: float = 0.5, smooth: float = 1e-6): super().__init__() self.alpha = alpha self.beta = beta self.smooth = smooth def forward(self, y_pred: torch.Tensor, y_true: torch.Tensor) -> torch.Tensor: y_pred = torch.sigmoid(y_pred) y_pred = y_pred.view(-1) y_true = y_true.view(-1) tp = (y_pred * y_true).sum() fp = ((1.0 - y_true) * y_pred).sum() fn = (y_true * (1.0 - y_pred)).sum() loss = (tp + self.smooth) / (tp + self.alpha * fp + self.beta * fn + self.smooth) return 1.0 - loss
(alpha: float = 0.5, beta: float = 0.5, smooth: float = 1e-06)
[ -0.049884896725416183, -0.054917145520448685, 0.008008750155568123, 0.013391979970037937, 0.024103740230202675, -0.03996626287698746, -0.08715271204710007, 0.041607216000556946, 0.04492558166384697, 0.006609384436160326, -0.0031565509270876646, -0.00964514259248972, 0.014258037321269512, 0.017193516716361046, -0.03628323972225189, 0.022535720840096474, 0.027385642752051353, 0.019673174247145653, -0.015762241557240486, -0.04299290478229523, 0.02189757488667965, -0.02111356519162655, -0.011240511201322079, 0.03194383904337883, -0.0434669591486454, -0.025197708979249, 0.018597440794110298, -0.006623059045523405, -0.03074047528207302, -0.023957878351211548, -0.029482413083314896, -0.014695623889565468, 0.011359024792909622, 0.05272921174764633, -0.013309932313859463, -0.02924538590013981, -0.036994319409132004, 0.042628251016139984, -0.09145564585924149, -0.031797975301742554, 0.0013446678640320897, -0.050687141716480255, 0.016500670462846756, 0.025653528049588203, -0.02311917021870613, -0.03982040286064148, -0.016555368900299072, 0.03825238347053528, -0.03586388751864433, -0.05455249175429344, -0.027987323701381683, -0.0022027483209967613, 0.021150030195713043, -0.02399434521794319, 0.014750322327017784, 0.0636688843369484, 0.06917518377304077, 0.03212616592645645, -0.0053877877071499825, 0.010356221348047256, 0.03174327686429024, -0.05028602108359337, 0.01324611809104681, 0.05582878738641739, 0.007890237495303154, -0.017339378595352173, -0.07482735067605972, 0.029227154329419136, 0.0023360755294561386, 0.03487931564450264, 0.015944570302963257, -0.024012576788663864, 0.015051163733005524, 0.03628323972225189, -0.010438269004225731, -0.03323836624622345, -0.03349362686276436, -0.03974746912717819, -0.015534332022070885, -0.01870683766901493, -0.018834466114640236, -0.02820611745119095, -0.010100962594151497, 0.019235586747527122, -0.024541327729821205, -0.11639809608459473, -0.015206142328679562, -0.07172777503728867, -0.0042892624624073505, 0.019253820180892944, -0.0844542607665062, 0.04146135225892067, -0.016391273587942123, -0.03130568936467171, 0.019509078934788704, 0.02866193652153015, 0.004255075938999653, -0.043065838515758514, -0.013738403096795082, -0.04423273354768753, 0.01974610611796379, 0.0768694207072258, -0.0303940512239933, 0.08525650203227997, 0.03807005286216736, -0.023064471781253815, -0.045764289796352386, 0.02762266807258129, 0.003931444138288498, -0.028151419013738632, -0.03108689747750759, 0.02857077307999134, -0.016017500311136246, -0.04415980353951454, 0.013455795124173164, -0.08737150579690933, 0.0020010480657219887, 0.006381474435329437, -0.040987297892570496, -0.0064999875612556934, 0.026437537744641304, 0.030321121215820312, -0.043321095407009125, 0.0112587446346879, -0.0012443875893950462, 0.007060645613819361, 0.036319706588983536, -0.055865250527858734, 0.029847068712115288, -0.03600975126028061, -0.06148095056414604, 0.054917145520448685, 0.0021674223244190216, 0.05061420798301697, 0.013656355440616608, -0.040549714118242264, -0.0016876721056178212, 0.03642910346388817, 0.053896110504865646, 0.001370877493172884, 0.012516806833446026, 0.03898169472813606, -0.004462474025785923, 0.008537501096725464, 0.009608677588403225, -0.04076850786805153, -0.00347334542311728, -0.02138705551624298, 0.0888301283121109, 0.02053011581301689, 0.029901767149567604, -0.02510654367506504, 0.002424960257485509, 0.058381374925374985, -0.04299290478229523, 0.03369418531656265, 0.007530140224844217, -0.04361281916499138, 0.029591809958219528, 0.02528887242078781, -0.016810627654194832, -0.031560949981212616, -0.026601633056998253, -0.030011164024472237, -0.0011349908309057355, -0.039419278502464294, 0.044013943523168564, 0.012899694964289665, 0.0058390493504703045, 0.01834218204021454, -0.003199853701516986, -0.041242558509111404, 0.03099573403596878, 0.05633930489420891, 0.034314099699258804, 0.050504814833402634, 0.009362534619867802, -0.007051529362797737, 0.016090432181954384, 0.04284704476594925, 0.02771383337676525, -0.05393257737159729, -0.06567449122667313, -0.0614444836974144, 0.03861703723669052, 0.0008563710725866258, -0.00847824476659298, 0.02596348524093628, -0.05550059676170349, 0.05655809864401817, 0.021514685824513435, -0.019600244238972664, 0.027823228389024734, 0.005921096540987492, 0.03296487405896187, 0.034934014081954956, 0.0019133028108626604, 0.003997537773102522, 0.05130705609917641, 0.005182669032365084, -0.010319756343960762, 0.029646508395671844, -0.007589396554976702, 0.03861703723669052, -0.002161724492907524, -0.00917109102010727, 0.016455087810754776, 0.03920048847794533, -0.0658203512430191, -0.0400027297437191, -0.02370261959731579, 0.009257696568965912, 0.01246210839599371, 0.07336872816085815, 0.030503448098897934, -0.05021308735013008, -0.03495224937796593, 0.04138842225074768, 0.006272078026086092, -0.027586203068494797, 0.008852017112076283, -0.04904618859291077, -0.06768009811639786, 0.05896482616662979, 0.06873759627342224, -0.002974222879856825, 0.03281901031732559, 0.04062264412641525, 0.014686508104205132, 0.0054926262237131596, 0.016646532341837883, 0.07920321822166443, -0.0074708834290504456, 0.04200833663344383, 0.048426274210214615, 0.021532919257879257, -0.004610615316778421, -0.019928433001041412, -0.053640853613615036, -0.05356791988015175, -0.023319730535149574, -0.026364605873823166, -0.00005327391772880219, -0.0036351613234728575, 0.01757640391588211, 0.005278391297906637, 0.01683797687292099, 0.05714154615998268, -0.05615697801113129, 0.04831687733530998, -0.02485128492116928, -0.00008710427937330678, 0.014367434196174145, 0.02873486839234829, -0.019107958301901817, -0.06819061189889908, 0.00887024961411953, -0.01548875030130148, -0.00007264625310199335, -0.025689993053674698, -0.04638420417904854, -0.015953686088323593, -0.08306856453418732, 0.05090593546628952, 0.004428287502378225, -0.033019572496414185, -0.010720876976847649, 0.00850103609263897, 0.012170383706688881, 0.008177404291927814, 0.09240375459194183, 0.011568701826035976, -0.06359595060348511, -0.025927020236849785, 0.0020306764636188745, -0.01644597202539444, -0.0006039610016159713, 0.021004168316721916, 0.011614283546805382, 0.010000682435929775, 0.006550127640366554, -0.07504614442586899, -0.04295644164085388, -0.025562364608049393, 0.023337963968515396, 0.011204046197235584, -0.007990517653524876, -0.06428879499435425, 0.04645713418722153, -0.012617086991667747, 0.033110737800598145, 0.02122296206653118, 0.07716114073991776, 0.02388494834303856, 0.03411354124546051, -0.008687921799719334, -0.04291997477412224, 0.04900972545146942, 0.028497843071818352, -0.014221572317183018, 0.05655809864401817, -0.00029143967549316585, -0.02813318558037281, -0.06822708249092102, -0.010930554009974003, -0.030667543411254883, 0.014987348578870296, 0.04106023162603378, 0.054588958621025085, 0.00038915598997846246, 0.04259178414940834, -0.006331334356218576, -0.011696331202983856, 0.03126922622323036, -0.006449847482144833, -0.012635319493710995, 0.0032180864363908768, -0.04744170606136322, 0.004218610469251871, 0.07238415628671646, -0.007767166011035442, -0.004277867265045643, 0.03394944593310356, 0.05316679924726486, 0.009107275865972042, -0.08985116332769394, 0.04200833663344383, 0.0031018524896353483, -0.04787929356098175, -0.002038653241470456, -0.0030084094032645226, -0.002680219244211912, 0.03021172434091568, 0.009193881414830685, -0.046092480421066284, 0.030941035598516464, 0.024650724604725838, 0.06067870557308197, 0.019162656739354134, -0.02753150463104248, 0.02122296206653118, -0.019272053614258766, -0.045581962913274765, 0.044706787914037704, 0.025489432737231255, -0.032581984996795654, -0.017476124688982964, -0.015333771705627441, 0.06345009058713913, 0.07023268938064575, -0.006978598423302174, -0.002071700058877468, 0.03858057036995888, 0.04456092417240143, 0.045326702296733856, 0.035462766885757446, -0.019709639251232147, 0.006778037641197443, -0.019800804555416107, -0.054406628012657166, -0.05754266679286957, 0.014075709506869316, -0.0456913597881794, 0.023429127410054207, -0.015598147176206112, 0.003090457059442997, 0.05488068237900734, 0.00030198050080798566, -0.0004541102971415967, -0.00649087131023407, -0.04919205233454704, -0.03134215623140335, 0.004795222543179989, 0.0038106520660221577, -0.012963510118424892, -0.009973333217203617, -0.022134600207209587, -0.021788178011775017, 0.08591288328170776, -0.021624082699418068, 0.049119122326374054, -0.016063082963228226, -0.0002713551220949739, -0.0015463680028915405, 0.04736877232789993, 0.018096039071679115, 0.004482985939830542, -0.05447956174612045, 0.050249554216861725, -0.049884896725416183, 0.017384959384799004, -0.02855253964662552, 0.059694137424230576, -0.015598147176206112, -0.023775551468133926, 0.004182144999504089, 0.005305740516632795, 0.04499851167201996, -0.004922851920127869, 0.003687580581754446, 0.010502084158360958, -0.016865326091647148, 0.010283290408551693, 0.030685776844620705, -0.05272921174764633, 0.006654966156929731, 0.03148801997303963, 0.07194656878709793, -0.01445859856903553, 0.04146135225892067, -0.02630990743637085, 0.04273764789104462, -0.05754266679286957, -0.005004899576306343, 0.05298447236418724, 0.007502791006118059, 0.028607238084077835, -0.010675295256078243, -0.012152151204645634, 0.042300060391426086, 0.04499851167201996, 0.010875855572521687, 0.03670259565114975, -0.016163364052772522, -0.006522778887301683, 0.02067597769200802, -0.040732041001319885, 0.021788178011775017, -0.024687189608812332, 0.02009252831339836, -0.053896110504865646, -0.05739680677652359, 0.006541011389344931, -0.07898442447185516, 0.014485946856439114, -0.02510654367506504, -0.0004971282905898988, -0.028370212763547897, -0.020821839570999146, 0.028242582455277443, 0.015178793109953403, 0.0225174892693758, 0.0237937830388546, 0.05269274860620499, 0.014340084977447987, -0.03203500062227249, 0.03600975126028061, -0.0217334795743227, -0.032071467489004135, 0.0034026934299618006, -0.05488068237900734, 0.04707704856991768, 0.013601657003164291, 0.015352004207670689, -0.022298695519566536, -0.013820450752973557, -0.026182278990745544, -0.05167170986533165, 0.004913735203444958, 0.0066823153756558895, -0.06261137872934341, 0.048790931701660156, 0.01138637401163578, 0.015251724049448967, 0.009048019535839558, -0.12748363614082336, 0.05167170986533165, -0.0554276667535305, -0.011632516980171204, -0.028516074642539024, -0.04321169853210449, -0.04302937164902687, 0.01743965782225132, 0.0013537842314690351, -0.019946666434407234, -0.0010837111622095108, -0.001464320463128388, 0.006231054197996855, 0.03486108407378197, -0.04908265545964241, -0.015443168580532074, 0.005674954038113356, 0.022699816152453423, 0.007862888276576996, 0.014877951703965664, 0.040476780384778976, -0.015543448738753796, -0.007671444211155176, 0.058126118034124374, 0.023429127410054207, -0.01427626982331276, -0.03030288778245449, 0.018816234543919563, 0.024523094296455383, -0.11245981603860855, -0.024304302409291267, -0.03201676905155182, 0.051635246723890305, -0.026929821819067, 0.02935478277504444, -0.001048385165631771, 0.02796909213066101, -0.031178060919046402, -0.0059074223972857, 0.02942771464586258, 0.043758682906627655, -0.028370212763547897, -0.011495770886540413, -0.028424911201000214, 0.025835854932665825, 0.00575700169429183, -0.01840599626302719, -0.005045922938734293, 0.02189757488667965, 0.011076416820287704, -0.03695785254240036, -0.01840599626302719, 0.07293114066123962, 0.05236455798149109, -0.027148615568876266, -0.0023520293179899454, 0.03715841472148895, 0.029208920896053314, -0.03462405875325203, 0.0193814504891634, 0.05845430865883827, -0.017384959384799004, 0.017594637349247932, 0.0794220119714737, 0.03557216376066208, 0.02889896370470524, 0.002997013973072171, -0.03766893222928047, 0.013209652155637741, -0.007662327494472265, -0.041935402899980545, -0.04113316163420677, -0.03956514224410057, -0.03314720094203949, -0.04259178414940834, -0.015388470143079758, -0.03030288778245449, -0.0070105055347085, -0.006208263337612152, -0.017840780317783356, -0.012261547148227692, -0.04408687353134155, 0.06764362752437592, -0.10246825218200684, 0.00016936547763179988, -0.07767166197299957, -0.005898305680602789, -0.008583083748817444, -0.04208126664161682, 0.014741206541657448, 0.07391570508480072, -0.04846274107694626, 0.014221572317183018, -0.01991020143032074, 0.0475875660777092, -0.018515393137931824, -0.07898442447185516, 0.043394025415182114, 0.027422107756137848, -0.08037011325359344, 0.026127580553293228, 0.03382181376218796, 0.018889164552092552, -0.033365994691848755, 0.023410895839333534, 0.024340767413377762, -0.0010273033985868096, 0.019800804555416107, 0.029537111520767212, -0.013729286380112171, 0.018889164552092552, 0.0326184518635273, -0.03099573403596878, 0.041424885392189026, 0.0077170259319245815, 0.02501538023352623, -0.0318344421684742, 0.001569158979691565, 0.024705423042178154, -0.040221523493528366, 0.0035576720256358385, -0.033365994691848755, 0.05148938298225403, 0.0044693113304674625, 0.04846274107694626, -0.0057478854432702065, 0.018023107200860977, 0.002623241860419512, -0.02702098712325096, 0.026091115549206734, -0.04904618859291077, -0.07030561566352844, 0.032417889684438705, 0.08795495331287384, 0.03677552565932274, -0.035025179386138916, 0.010748226195573807, 0.001295667258091271, -0.022918609902262688, 0.01753082312643528, -0.04456092417240143, -0.01691090688109398, 0.02390317991375923, 0.007849213667213917, -0.06009525805711746, -0.006855526939034462, -0.011231395415961742, 0.017731383442878723, -0.04477971792221069, -0.0023053076583892107, 0.03781479597091675, 0.011094649322330952, 0.017704034224152565, 0.03358478844165802, -0.02078537456691265, 0.0020591651555150747, 0.034824617207050323, 0.0077261426486074924, 0.026091115549206734, -0.0009993844432756305, -0.022298695519566536, 0.03584565594792366, -0.06461698561906815, -0.002974222879856825, -0.04656653106212616, -0.06505457311868668, -0.03130568936467171, -0.024121973663568497, 0.011413723230361938, -0.00039200487663038075, 0.023502059280872345, 0.0031155270989984274, 0.03230849280953407, 0.01790459454059601, -0.03615561127662659, -0.06567449122667313, 0.03037581965327263, -0.02355675771832466, 0.0172573309391737, -0.03559039533138275, -0.001048385165631771, -0.007320463191717863, 0.03203500062227249, 0.04270118102431297, -0.03462405875325203, 0.014212455600500107, 0.022371627390384674, 0.02517947554588318, 0.05046834796667099, -0.017430542036890984, -0.0006301706307567656, 0.022207532078027725, -0.006841852329671383, 0.08117235451936722, -0.03825238347053528, 0.01428538653999567, -0.029445946216583252, 0.037340741604566574, 0.05236455798149109, 0.05338559299707413, 0.0017241376917809248, -0.009982449933886528, -0.03263668343424797, -0.022553954273462296, -0.01389338169246912, -0.0315062515437603, 0.006764363031834364, -0.07278527319431305, -0.007721584290266037, 0.048608604818582535, -0.040476780384778976, 0.011368141509592533, 0.008646897971630096, -0.011851309798657894, -0.00340953073464334, 0.04755110293626785, 0.022535720840096474, -0.01298174262046814, -0.02857077307999134, 0.015835173428058624, 0.02370261959731579, -0.054917145520448685, 0.06031405180692673, -0.06607560813426971, -0.06611207872629166, -0.09437289088964462, -0.02215283364057541, 0.024176672101020813, 0.025197708979249, 0.042628251016139984, -0.035462766885757446, -0.03391297906637192, -0.007347811944782734, -0.02501538023352623, -0.04755110293626785, -0.07045147567987442, -0.021496452391147614, -0.035608626902103424, 0.02198873832821846, -0.012124801985919476, 0.0064999875612556934, 0.017722265794873238, -0.061845604330301285, -0.021168263629078865, -0.03074047528207302, -0.01403012778609991, -0.029664739966392517, 0.049301449209451675, 0.029646508395671844, 0.01711146906018257, 0.026291675865650177, -0.004849920514971018, -0.041424885392189026, -0.0008734643342904747, 0.020876538008451462, 0.03635617345571518, -0.04857213795185089, 0.024905983358621597, 0.07231122255325317, -0.03438703343272209, -0.04095083475112915, 0.006582035217434168, 0.010985252447426319, 0.007320463191717863, -0.026856891810894012, 0.02908129058778286, -0.007876562885940075, -0.006190030369907618, -0.041607216000556946, 0.014075709506869316, 0.00037747560418210924, 0.023757318034768105, 0.012635319493710995, 0.0327460803091526, 0.05805318430066109, -0.0004569591546896845, 0.01734849438071251, 0.005998586304485798, -0.009535746648907661, 0.050942398607730865, 0.018424227833747864, -0.024340767413377762, 0.02483305335044861, 0.042810577899217606, -0.024267835542559624, 0.06957630813121796, 0.0012592016719281673, 0.004772431217133999, -0.03868996724486351, 0.1443307250738144, -0.015689311549067497, 0.016828859224915504, -0.05896482616662979, -0.08233925700187683, -0.07898442447185516, 0.020293088629841805, -0.013957196846604347, 0.06326775997877121, 0.014650042168796062, -0.018023107200860977, 0.023921413347125053, 0.015579914674162865, 0.0415707491338253 ]
718,431
pytorch_optimizer.loss.tversky
__init__
null
def __init__(self, alpha: float = 0.5, beta: float = 0.5, smooth: float = 1e-6): super().__init__() self.alpha = alpha self.beta = beta self.smooth = smooth
(self, alpha: float = 0.5, beta: float = 0.5, smooth: float = 1e-06)
[ 0.01732458919286728, -0.03839702159166336, -0.03986676409840584, -0.0014685941860079765, -0.023570993915200233, -0.013089893385767937, -0.08120327442884445, -0.004276032093912363, -0.05401303619146347, 0.06444820761680603, -0.015974262729287148, 0.04350437596440315, 0.007311968598514795, 0.05867946892976761, -0.03442871570587158, -0.008547470904886723, 0.06867371499538422, 0.030515527352690697, -0.010058550164103508, 0.007247667759656906, 0.008446426130831242, 0.020227329805493355, -0.015312879346311092, 0.06885743141174316, -0.00890572089701891, 0.04607642814517021, 0.0025973105803132057, 0.03068087436258793, -0.008914906531572342, -0.03891143202781677, -0.017655281350016594, -0.029578566551208496, 0.029523450881242752, 0.05518883094191551, 0.02928461879491806, -0.05015496164560318, 0.006310706492513418, 0.010517844930291176, -0.10391078889369965, 0.04739919304847717, 0.0629049763083458, -0.0012768387096002698, 0.016332512721419334, -0.008758746087551117, 0.0012527258368209004, -0.02761278674006462, 0.022303342819213867, 0.047840118408203125, -0.004480417817831039, -0.029817400500178337, 0.013944181613624096, -0.025481659919023514, 0.021439868956804276, -0.015294507145881653, -0.031176911666989326, 0.10457217693328857, 0.05647485330700874, 0.04699501395225525, 0.01590077579021454, 0.02877020835876465, -0.018178876489400864, -0.0637868195772171, -0.004429895430803299, -0.03624752536416054, -0.04886893555521965, -0.045892708003520966, -0.07311968505382538, 0.024287493899464607, 0.011555850505828857, 0.05206562578678131, 0.07988050580024719, 0.04379832372069359, -0.0061407675966620445, 0.00563554372638464, -0.05706275254487991, 0.00834538135677576, -0.04820755124092102, 0.01154666393995285, -0.03898491710424423, -0.044569939374923706, 0.02445284090936184, 0.009245598688721657, -0.038801200687885284, -0.006329078692942858, -0.013200124725699425, -0.050595883280038834, -0.040087226778268814, -0.047215476632118225, 0.028953926637768745, 0.056401368230581284, -0.09854622930288315, 0.03180155158042908, 0.006540353875607252, 0.004186469595879316, 0.044496454298496246, 0.00027241907082498074, 0.025371428579092026, -0.04049140587449074, 0.03512684628367424, 0.0019209993770346045, 0.00032093204208649695, -0.02351588010787964, -0.047215476632118225, 0.022909611463546753, 0.021348008885979652, -0.048574987798929214, -0.03312432020902634, -0.003988972865045071, 0.03665170446038246, 0.009162926115095615, 0.028953926637768745, 0.05882644280791283, -0.035108473151922226, 0.041373249143362045, -0.06595469266176224, -0.016332512721419334, -0.0026822800282388926, 0.017140870913863182, 0.04960380867123604, 0.010187152773141861, -0.00634745042771101, 0.04710524529218674, -0.02191753499209881, 0.07150296866893768, 0.03799284249544144, 0.010416800156235695, -0.0029946002177894115, 0.023019840940833092, -0.01203351654112339, -0.02313007228076458, 0.02695140242576599, 0.005029275082051754, -0.00717418035492301, -0.0006068428629077971, 0.027539299800992012, -0.055666495114564896, 0.014385104179382324, 0.05720972642302513, -0.010453543625772, 0.057613905519247055, -0.005924899131059647, -0.008198407478630543, 0.0019967828411608934, -0.029817400500178337, -0.03297734633088112, 0.04795034974813461, 0.05478465184569359, -0.03334478288888931, -0.0055896141566336155, 0.010664818808436394, 0.035916831344366074, 0.026657454669475555, 0.002836143597960472, -0.0006768853054381907, 0.01812376268208027, -0.07833727449178696, 0.01651623100042343, -0.02970716916024685, 0.03760703653097153, 0.03850725293159485, -0.0042921071872115135, 0.025922583416104317, 0.022248227149248123, -0.06389705091714859, -0.01483521331101656, 0.043871812522411346, -0.03784586861729622, 0.007628881838172674, 0.007541615981608629, -0.02807208150625229, 0.008202999830245972, -0.08193814009428024, 0.0004460898053366691, 0.041961148381233215, 0.01053621619939804, 0.05860598012804985, 0.00040331800119020045, 0.011555850505828857, 0.005185435060411692, 0.02737395279109478, 0.04706850275397301, -0.04229183867573738, -0.04670106619596481, -0.02052127942442894, 0.050559140741825104, 0.003267880529165268, -0.005993793718516827, 0.026455365121364594, -0.02347913570702076, -0.016745878383517265, 0.05294747278094292, 0.02663908153772354, 0.03154434636235237, -0.013769649900496006, 0.00479962769895792, 0.005993793718516827, 0.040013737976551056, -0.09009521454572678, 0.03365710377693176, 0.061471980065107346, -0.01306233648210764, -0.0020369712729007006, 0.0008617513231001794, -0.03264665603637695, 0.05250655114650726, -0.02542654424905777, 0.0125754838809371, -0.017719581723213196, 0.013503259047865868, -0.01592833362519741, -0.040748611092567444, -0.02511422522366047, 0.048501502722501755, 0.004475825000554323, 0.012134561315178871, -0.03975653275847435, 0.012355023063719273, 0.005837633274495602, 0.04372483864426613, 0.029817400500178337, 0.06356636434793472, -0.0641542598605156, -0.007298190146684647, 0.014320802874863148, 0.010600517503917217, 0.0323343351483345, 0.059046901762485504, -0.04607642814517021, -0.04633362963795662, -0.017857370898127556, -0.02761278674006462, -0.0251509677618742, -0.036045435816049576, 0.000013375159142015036, -0.045304812490940094, 0.06904115527868271, -0.005015496164560318, 0.03185666725039482, -0.09457793086767197, -0.083628349006176, 0.039940252900123596, 0.01590077579021454, -0.0030933485832065344, 0.02764952927827835, -0.0020013758912682533, -0.004193359054625034, 0.006016758270561695, 0.044018786400556564, -0.04883219301700592, 0.00942472368478775, -0.029266247525811195, -0.009470652788877487, 0.009116996079683304, 0.057687390595674515, -0.025187712162733078, -0.0018957381835207343, -0.01784818433225155, -0.008115733973681927, -0.0030910521745681763, -0.0018612910062074661, -0.05397629365324974, -0.06345613300800323, -0.02939485013484955, 0.08465716242790222, 0.05162470415234566, 0.019014792516827583, -0.022983098402619362, -0.004423006437718868, -0.009801344946026802, 0.03235270455479622, 0.13683302700519562, -0.02764952927827835, -0.0036146477796137333, 0.006090245209634304, 0.024195635691285133, 0.00239981384947896, -0.0005884711281396449, -0.01728784665465355, 0.012777573429048061, 0.02320355921983719, 0.06771838665008545, -0.0369456522166729, -0.015349622815847397, 0.0016752767842262983, -0.006825116463005543, -0.02581235207617283, 0.02698814682662487, 0.033969420939683914, 0.023809827864170074, -0.04030768573284149, -0.02044779248535633, 0.04107930138707161, 0.07620614767074585, 0.033620357513427734, 0.07322991639375687, -0.023607738316059113, 0.046554092317819595, 0.011904913932085037, 0.006260184105485678, -0.012070260010659695, 0.10589494556188583, -0.08656783401966095, 0.027429068461060524, 0.01547822542488575, -0.005295665934681892, -0.010168780572712421, 0.022799380123615265, 0.013788021169602871, 0.04321042820811272, 0.018390152603387833, 0.00021457666298374534, 0.04251230135560036, -0.026198159903287888, 0.04324717074632645, -0.05210237205028534, -0.05662182718515396, -0.005915713496506214, -0.05934085324406624, -0.008965428918600082, 0.0807623490691185, -0.014743354171514511, -0.02838440053164959, -0.026657454669475555, -0.0075002796947956085, -0.023699596524238586, -0.03887468948960304, 0.053131189197301865, 0.04772988706827164, -0.012952105142176151, -0.012538740411400795, -0.08744967728853226, 0.005231364630162716, 0.036118920892477036, 0.009461467154324055, -0.045157838612794876, -0.011317016556859016, -0.008423461578786373, 0.02177056111395359, 0.008501541800796986, -0.04883219301700592, 0.04280624911189079, -0.03960955888032913, -0.029449963942170143, 0.03025832213461399, -0.0005035016220062971, -0.05386606231331825, 0.00918129738420248, -0.059634801000356674, 0.039278868585824966, -0.024930506944656372, 0.0023561809211969376, -0.038176558911800385, 0.0076013244688510895, 0.0625375434756279, 0.04163045436143875, 0.011087370105087757, -0.01923525519669056, -0.02274426445364952, 0.02156847156584263, -0.04692152887582779, -0.030699245631694794, 0.04563550278544426, -0.05088983103632927, 0.033473383635282516, 0.018656542524695396, -0.0031920969486236572, 0.0063704149797558784, -0.013549188151955605, 0.03161783516407013, 0.004712361842393875, 0.008864384144544601, -0.04273276403546333, -0.019712921231985092, -0.021991021931171417, -0.0023458467330783606, -0.018371781334280968, -0.03336315229535103, 0.0024250750429928303, 0.08744967728853226, -0.012272349558770657, 0.04475365951657295, -0.008611772209405899, 0.011381317861378193, 0.019492458552122116, 0.020153842866420746, 0.005167063325643539, 0.007605917286127806, -0.015974262729287148, 0.07319317758083344, -0.008253522217273712, -0.013613489456474781, -0.002507748082280159, 0.050522398203611374, -0.02577560767531395, -0.026179786771535873, -0.008547470904886723, 0.0581650584936142, 0.011895728297531605, -0.044496454298496246, 0.03670681640505791, -0.0011620151344686747, -0.02838440053164959, 0.007555394899100065, 0.015386366285383701, -0.013742092065513134, -0.04438622295856476, 0.04122627526521683, 0.011362946592271328, 0.026492107659578323, 0.015037302859127522, -0.031140169128775597, -0.034832894802093506, -0.07223784178495407, -0.005396710708737373, 0.04313694313168526, -0.03215061500668526, -0.009029730223119259, -0.07106205075979233, -0.007821785286068916, -0.013328727334737778, 0.005212992895394564, 0.015919148921966553, 0.004039495252072811, 0.03758866339921951, 0.049126140773296356, 0.005653915461152792, -0.005782518070191145, 0.006916975602507591, 0.04350437596440315, -0.011528292670845985, -0.06312543898820877, -0.04416576027870178, -0.05324142053723335, -0.06654258817434311, 0.021954277530312538, -0.01175794005393982, -0.024214006960392, -0.031838297843933105, 0.0031163133680820465, -0.02959693968296051, 0.028531376272439957, -0.04497411847114563, 0.0411895327270031, 0.00996669102460146, -0.02149498276412487, -0.03071761690080166, 0.024967249482870102, 0.0074865007773041725, 0.0029234096873551607, -0.04670106619596481, 0.036192409694194794, 0.041814174503088, 0.012198862619698048, -0.02987251617014408, 0.03496149927377701, -0.04890568181872368, -0.07620614767074585, -0.029725542291998863, 0.028016965836286545, -0.01669076271355152, -0.0004816851287614554, 0.01368697639554739, -0.05706275254487991, -0.019951753318309784, -0.03690890595316887, -0.0029946002177894115, 0.10758514702320099, -0.00232517858967185, -0.044716913253068924, -0.02469167299568653, 0.010269825346767902, -0.018592242151498795, 0.0023068066220730543, -0.051734935492277145, -0.0025490846019238234, 0.018454452976584435, -0.035420794039964676, 0.0078952731564641, 0.01749912090599537, -0.026418620720505714, -0.022983098402619362, -0.059561312198638916, -0.0038603704888373613, 0.031213656067848206, 0.022927982732653618, 0.05096331983804703, -0.016681576147675514, -0.0015730836894363165, 0.03676193207502365, 0.05298421531915665, -0.051073551177978516, 0.0021116065327078104, -0.023570993915200233, 0.04964055120944977, -0.050448909401893616, 0.027006518095731735, 0.041336506605148315, 0.04739919304847717, -0.0015638978220522404, 0.024875391274690628, -0.022376829758286476, -0.04820755124092102, -0.01828910782933235, -0.03172806650400162, 0.004193359054625034, -0.049714040011167526, -0.058973416686058044, -0.001971521647647023, -0.039499327540397644, -0.0028545153327286243, 0.041336506605148315, -0.03503498435020447, -0.02647373639047146, 0.018527941778302193, 0.035769857466220856, -0.04152022302150726, -0.09097705781459808, 0.02987251617014408, 0.005915713496506214, -0.05798134207725525, 0.02316681481897831, 0.05298421531915665, 0.038139816373586655, -0.0725317895412445, 0.001745319226756692, 0.017793070524930954, -0.004117575474083424, -0.01062807533890009, 0.053094446659088135, 0.045231323689222336, 0.017535865306854248, -0.021788932383060455, -0.035145215690135956, 0.07863122224807739, 0.017067383974790573, 0.008078990504145622, -0.014871956780552864, -0.029431592673063278, 0.016323328018188477, -0.054417215287685394, 0.03099319338798523, 0.030625758692622185, 0.0716499462723732, -0.02441609650850296, -0.0006717182113789022, 0.009507396258413792, -0.04820755124092102, 0.0575404167175293, -0.025408172979950905, -0.021439868956804276, 0.014770912006497383, -0.01454126462340355, -0.0353289358317852, -0.024048661813139915, -0.00693994015455246, 0.00479962769895792, -0.026657454669475555, -0.051698192954063416, -0.019290369004011154, 0.006549539975821972, -0.009801344946026802, -0.004138243850320578, 0.02570212073624134, 0.017765512689948082, -0.0873761922121048, -0.008405089378356934, 0.03854399546980858, 0.039499327540397644, -0.044569939374923706, -0.013071522116661072, 0.019841523841023445, -0.0077023692429065704, 0.0016913521103560925, 0.01452289242297411, -0.015661943703889847, 0.04236532747745514, 0.013585931621491909, 0.005975421518087387, -0.03920537978410721, -0.027043260633945465, 0.017682839184999466, 0.007243074476718903, -0.08877244591712952, -0.054380472749471664, 0.015404738485813141, 0.0012699493672698736, -0.04611317068338394, 0.019290369004011154, 0.0004862780624534935, -0.0401974581182003, 0.0017625427572056651, 0.004195655230432749, -0.016259025782346725, -0.06533005088567734, -0.07521407306194305, -0.03509010002017021, -0.035769857466220856, -0.01700308360159397, 0.023387277498841286, 0.012667343020439148, -0.020576395094394684, 0.0188494473695755, -0.022597290575504303, 0.025224454700946808, -0.009162926115095615, -0.010076921433210373, 0.02893555536866188, 0.03551265224814415, -0.029413221403956413, -0.03442871570587158, -0.004269142635166645, 0.017627723515033722, -0.03683542087674141, -0.049934498965740204, -0.004946602042764425, 0.007762077264487743, -0.020539650693535805, -0.001641977927647531, 0.02893555536866188, 0.04504760727286339, -0.046480607241392136, 0.017857370898127556, 0.008597993291914463, 0.07980701327323914, -0.024434467777609825, -0.04677455499768257, 0.037129368633031845, -0.12044539302587509, -0.006030537188053131, -0.05397629365324974, 0.025573518127202988, -0.002964746206998825, -0.0012596151791512966, -0.08193814009428024, -0.03960955888032913, 0.003244915744289756, -0.020631510764360428, 0.033932678401470184, 0.03791935741901398, 0.023938430473208427, 0.015165905468165874, 0.027355581521987915, 0.0057457746006548405, 0.012474439106881618, -0.023773083463311195, -0.011509920470416546, -0.06426449120044708, 0.007720740977674723, 0.055041857063770294, -0.013135823421180248, -0.012538740411400795, 0.027980221435427666, -0.018739216029644012, 0.04772988706827164, -0.05210237205028534, -0.011215971782803535, 0.03430011495947838, 0.004023420158773661, 0.06724071502685547, -0.010444357059895992, -0.04049140587449074, 0.024893762543797493, 0.03174643591046333, 0.051183782517910004, 0.04229183867573738, -0.0034240407403558493, 0.0037662151735275984, -0.058275289833545685, -0.0118589848279953, -0.01624065451323986, -0.038801200687885284, -0.0002452919725328684, -0.06389705091714859, -0.003717989195138216, 0.007054763846099377, 0.030901335179805756, -0.026547223329544067, -0.002064528875052929, 0.0031415745615959167, 0.0068940105848014355, 0.06110454350709915, 0.009052694775164127, -0.0074727218598127365, -0.04273276403546333, 0.026914658024907112, 0.0358249731361866, -0.03244456648826599, 0.06786535680294037, -0.016773436218500137, -0.01387988030910492, -0.038690969347953796, -0.05349862575531006, -0.01899642124772072, 0.00586978392675519, 0.03679867833852768, -0.04089558497071266, -0.06044315919280052, -0.034594062715768814, 0.06051664426922798, -0.04574573412537575, 0.016892852261662483, 0.011638523079454899, -0.06308869272470474, 0.07708799093961716, -0.007298190146684647, 0.021274521946907043, 0.02959693968296051, -0.036045435816049576, 0.007582952734082937, -0.061912901699543, 0.014917885884642601, 0.04438622295856476, 0.010150409303605556, -0.040087226778268814, 0.004900672473013401, 0.03920537978410721, 0.006214255001395941, -0.026308389380574226, -0.03916863724589348, 0.043982043862342834, -0.010196338407695293, 0.0023538845125585794, 0.02963368222117424, 0.016745878383517265, 0.008304044604301453, -0.007633475121110678, -0.03464917838573456, 0.02382819913327694, 0.0009409796330146492, -0.038103073835372925, 0.010885280556976795, 0.016745878383517265, -0.040601637214422226, -0.0022298749536275864, -0.0019301852444186807, -0.01857387088239193, 0.005415082443505526, 0.004905265290290117, 0.05125726759433746, 0.004443674348294735, 0.0029946002177894115, -0.004462046083062887, -0.028788581490516663, 0.014431034214794636, -0.023975174874067307, 0.044018786400556564, 0.012777573429048061, -0.009433909319341183, 0.01930874213576317, -0.015193462371826172, 0.0034401160664856434, 0.032536424696445465, 0.028200684115290642, 0.040087226778268814, 0.08752316236495972, -0.035769857466220856, 0.00045958158443681896, -0.017223544418811798, -0.0038626668974757195, -0.08120327442884445, -0.03668844699859619, 0.004367890767753124, 0.04548852890729904, 0.027484184131026268, 0.0135124446824193, 0.0848776251077652, 0.035292189568281174, 0.016736691817641258 ]
718,461
pytorch_optimizer.loss.tversky
forward
null
def forward(self, y_pred: torch.Tensor, y_true: torch.Tensor) -> torch.Tensor: y_pred = torch.sigmoid(y_pred) y_pred = y_pred.view(-1) y_true = y_true.view(-1) tp = (y_pred * y_true).sum() fp = ((1.0 - y_true) * y_pred).sum() fn = (y_true * (1.0 - y_pred)).sum() loss = (tp + self.smooth) / (tp + self.alpha * fp + self.beta * fn + self.smooth) return 1.0 - loss
(self, y_pred: torch.Tensor, y_true: torch.Tensor) -> torch.Tensor
[ -0.04473426565527916, -0.03842274472117424, 0.006408404558897018, 0.00411079078912735, 0.0345841608941555, -0.007787895854562521, -0.07023870199918747, 0.03805365040898323, 0.012133984826505184, 0.0642593652009964, 0.019525103271007538, -0.030025845393538475, 0.03890256956219673, 0.01395177561789751, 0.025615165010094643, 0.04502953961491585, 0.022588588297367096, -0.014560781419277191, -0.0011984040029346943, -0.00482129817828536, 0.03017348237335682, -0.029490657150745392, -0.017901087179780006, 0.040969498455524445, -0.0121432114392519, -0.027202270925045013, -0.03611590340733528, -0.010851380415260792, -0.035119350999593735, 0.02116757445037365, -0.031243856996297836, -0.022514769807457924, 0.025688983500003815, 0.004546783864498138, 0.037832196801900864, 0.0227731354534626, -0.023714326322078705, 0.0016436242731288075, -0.03367988020181656, -0.03853347525000572, -0.024507880210876465, -0.057062022387981415, 0.028567921370267868, 0.07127216458320618, -0.03893947973847389, 0.009513412602245808, -0.08208663761615753, 0.010814471170306206, 0.049237217754125595, -0.02827264554798603, -0.021315211430191994, -0.024784700945019722, -0.02476624585688114, 0.0031649861484766006, 0.02236713282763958, 0.07603348791599274, 0.047317925840616226, 0.005725579801946878, -0.06163879483938217, -0.04576772823929787, 0.03580217435956001, -0.060162417590618134, 0.01650775596499443, 0.006454541347920895, 0.03565453737974167, 0.005863990169018507, -0.035469990223646164, 0.027276089414954185, 0.007386505603790283, 0.007801736705005169, -0.02624262496829033, 0.00878906436264515, 0.017079852521419525, 0.02268086187541485, -0.02552289143204689, -0.01564961113035679, 0.015151333063840866, -0.05100887268781662, 0.00803242065012455, -0.03144685924053192, -0.03129922226071358, -0.022201038897037506, -0.01470841933041811, -0.02240404114127159, -0.03919784352183342, -0.05805857852101326, -0.01563115604221821, -0.035894449800252914, -0.04702265188097954, 0.0511195994913578, -0.04580463841557503, 0.030505668371915817, -0.017015259712934494, 0.03056103177368641, 0.054773636162281036, 0.022902319207787514, -0.03532235324382782, -0.019506648182868958, 0.026482537388801575, 0.008770610205829144, 0.01720903441309929, 0.13287405669689178, -0.04226132854819298, 0.03017348237335682, 0.06001478061079979, -0.014883738942444324, -0.04462353512644768, 0.004535249900072813, -0.014210141263902187, -0.03809056058526039, -0.001581339631229639, -0.03421506658196449, -0.011829481460154057, -0.02620571479201317, -0.005328802857547998, -0.06034696474671364, -0.02190576307475567, 0.011727980338037014, -0.0242864228785038, 0.0502706840634346, 0.024397151544690132, -0.019912652671337128, -0.022994592785835266, -0.017854951322078705, -0.013342768885195255, -0.014800692908465862, 0.07271163165569305, -0.025578254833817482, 0.025227615609765053, -0.045730818063020706, -0.058981314301490784, 0.05532727763056755, 0.014957558363676071, 0.03294169157743454, -0.014477735385298729, -0.00044406691449694335, -0.0027474479284137487, 0.042999520897865295, 0.05968259274959564, -0.00902897585183382, 0.04458662495017052, -0.001573265646584332, 0.014247051440179348, 0.04270424321293831, -0.007626417092978954, -0.017947224900126457, 0.01805795170366764, 0.060605332255363464, 0.03805365040898323, 0.02113066427409649, 0.05063977837562561, -0.004085415508598089, 0.020484749227762222, -0.03292323648929596, -0.010639151558279991, 0.022477859631180763, -0.012844491750001907, -0.018205590546131134, 0.013019811362028122, 0.0003310317115392536, -0.01253076083958149, -0.05097196251153946, -0.012124757282435894, -0.03794292360544205, 0.027682093903422356, -0.011451159603893757, 0.03834892809391022, 0.07618112117052078, 0.017061397433280945, 0.02196112833917141, 0.0703125149011612, -0.06566192954778671, 0.03554380685091019, 0.07293309271335602, -0.008055489510297775, 0.005679443012923002, 0.05270670726895332, -0.047317925840616226, -0.01806717924773693, 0.07396655529737473, 0.05757875367999077, -0.026593264192342758, -0.06540355831384659, -0.09493112564086914, 0.050861235707998276, -0.026002714410424232, 0.0072573223151266575, 0.042999520897865295, -0.012890628539025784, 0.03556226193904877, -0.00304041663184762, -0.05337107554078102, 0.036263544112443924, -0.023455960676074028, 0.016673848032951355, -0.02620571479201317, 0.03499016538262367, 0.004092336166650057, 0.06112206354737282, -0.056656017899513245, -0.03379061073064804, -0.021795034408569336, 0.018547002226114273, 0.012789127416908741, -0.03343996778130531, -0.007658712565898895, -0.04034203663468361, 0.06481301039457321, -0.03644809126853943, -0.08976380527019501, -0.016987578943371773, -0.013121312484145164, -0.018353227525949478, 0.05097196251153946, 0.027386818081140518, 0.01256767101585865, -0.015603473410010338, 0.003128076670691371, -0.02585507556796074, -0.017818041145801544, -0.039087116718292236, -0.053186528384685516, -0.05407235771417618, 0.05259597674012184, 0.04406989365816116, -0.02548598125576973, 0.035063985735177994, 0.004756706301122904, 0.011063610203564167, -0.011995574459433556, -0.007469551637768745, 0.041043318808078766, -0.006952819414436817, 0.01725517213344574, 0.08983762562274933, 0.028346464037895203, 0.007935533300042152, 0.0004189800238236785, -0.03797983378171921, 0.024507880210876465, -0.015280515886843204, -0.03971457853913307, 0.02747909165918827, -0.002560593653470278, 0.017412036657333374, 0.03369833528995514, 0.037832196801900864, 0.03890256956219673, -0.029306109994649887, 0.05425690487027168, -0.016729211434721947, -0.0038062878884375095, -0.02114911936223507, -0.005107346456497908, -0.011672616004943848, -0.05407235771417618, 0.010814471170306206, -0.051193419843912125, 0.02467397227883339, 0.02472933754324913, -0.024231059476733208, 0.0011620712466537952, -0.04277806356549263, 0.013527316972613335, -0.026925450190901756, -0.024895429611206055, -0.012484624050557613, 0.0021765045821666718, 0.05104578286409378, 0.054699815809726715, 0.1302165687084198, -0.0040992568247020245, -0.052374523133039474, -0.015289743430912495, -0.022662406787276268, 0.024950794875621796, 0.031963590532541275, -0.023861965164542198, 0.009351934306323528, -0.000010533974091231357, 0.02155512385070324, -0.11227857321500778, -0.025707438588142395, -0.03384597226977348, 0.019100645557045937, 0.04270424321293831, 0.029490657150745392, -0.0345841608941555, 0.07721458375453949, -0.0007624109857715666, 0.03773992136120796, 0.0597195029258728, 0.06440700590610504, 0.004770547617226839, 0.004816684406250715, -0.015991022810339928, -0.012281622737646103, -0.027239181101322174, 0.041818417608737946, 0.017015259712934494, 0.03408588469028473, 0.009328865446150303, 0.0038939479272812605, -0.04702265188097954, -0.06721212714910507, -0.049274127930402756, 0.05529036745429039, 0.055474914610385895, -0.0008944776491262019, -0.035119350999593735, 0.027719004079699516, 0.01075910683721304, -0.05171015113592148, 0.013462725095450878, -0.02672244794666767, -0.03611590340733528, 0.01218934915959835, -0.010731425136327744, 0.02635335363447666, 0.04820375144481659, 0.017393581569194794, 0.013241268694400787, 0.025024613365530968, 0.037869103252887726, -0.006994342431426048, -0.021702760830521584, 0.03168677166104317, -0.0024083422031253576, -0.013508861884474754, -0.005771716590970755, 0.03541462495923042, -0.02546752616763115, 0.003614820074290037, 0.00221226061694324, -0.05171015113592148, -0.025172250345349312, 0.008175444789230824, 0.033882882446050644, 0.015871066600084305, 0.02321605011820793, -0.02509843185544014, -0.01889764331281185, -0.006860545836389065, 0.02233022265136242, 0.006113129202276468, 0.00883981492370367, -0.02358514443039894, -0.00034285426954738796, 0.06621556729078293, 0.018676185980439186, -0.03635581582784653, 0.009296569973230362, 0.037832196801900864, 0.048019204288721085, -0.005910126958042383, 0.0008414203184656799, -0.05300198122859001, 0.02548598125576973, -0.005088891368359327, -0.04945867508649826, -0.040194399654865265, -0.012420033104717731, -0.04635827988386154, 0.04126477614045143, -0.036706455051898956, 0.012198575772345066, 0.010103964246809483, -0.025375252589583397, -0.013887183740735054, 0.01689530536532402, -0.02666708454489708, -0.005670215468853712, -0.013601135462522507, 0.015012922696769238, -0.03482407331466675, 0.010067055001854897, 0.01688607782125473, -0.0028374146204441786, 0.09522639960050583, 0.005347257945686579, 0.01468996424227953, -0.0004919338971376419, -0.07706695050001144, -0.007889396511018276, 0.03975148871541023, 0.028955470770597458, 0.004505260847508907, -0.06669539213180542, 0.004092336166650057, -0.06222934648394585, 0.028328008949756622, -0.05850149318575859, 0.011109746992588043, -0.05418308451771736, -0.021887309849262238, -0.025006158277392387, 0.025707438588142395, 0.07319145649671555, -0.05097196251153946, 0.015991022810339928, -0.020300202071666718, 0.0030150413513183594, -0.010879063047468662, 0.004675967153161764, -0.04982776939868927, 0.03102239966392517, 0.01770731247961521, 0.07274854183197021, -0.05108268931508064, 0.06012550741434097, -0.026482537388801575, 0.026445627212524414, -0.07566439360380173, -0.0016540051437914371, -0.022643953561782837, 0.02548598125576973, -0.0344918891787529, -0.010897517204284668, 0.00716043496504426, 0.04274115338921547, 0.03532235324382782, 0.018630050122737885, 0.004717490170150995, -0.02622416988015175, -0.05676674842834473, 0.002305687637999654, -0.043774619698524475, 0.025043068453669548, -0.0010986330453306437, 0.0007231946801766753, -0.020115654915571213, -0.07846950739622116, -0.008553766645491123, -0.07149361819028854, 0.01691375859081745, -0.011423476971685886, 0.025209160521626472, -0.031151583418250084, -0.02426796965301037, 0.01493910327553749, -0.016387799754738808, -0.03960384801030159, 0.022902319207787514, 0.05610237643122673, -0.015271288342773914, -0.03408588469028473, 0.009282728657126427, -0.06392718106508255, -0.039050206542015076, 0.007460324093699455, -0.05920277163386345, 0.03650345280766487, 0.026925450190901756, 0.04351625218987465, 0.008927475661039352, 0.008876725099980831, -0.06507137417793274, -0.06067914888262749, 0.02825419045984745, 0.013905638828873634, -0.010048599913716316, 0.040157489478588104, -0.047687020152807236, 0.05506891384720802, 0.000568059622310102, -0.04440207779407501, 0.030099663883447647, -0.0055502597242593765, -0.01810408942401409, -0.0038824137300252914, -0.02151821367442608, -0.059387318789958954, 0.04510335996747017, 0.006066992413252592, -0.047317925840616226, 0.05067668482661247, -0.001546737039461732, 0.007967829704284668, 0.07119834423065186, -0.007552598137408495, -0.03726010024547577, -0.006934364326298237, -0.04359006881713867, -0.01370263658463955, 0.018177907913923264, 0.028143461793661118, -0.028734013438224792, -0.019008371978998184, 0.031963590532541275, 0.04753938317298889, 0.03262796252965927, -0.04359006881713867, 0.049200307577848434, -0.011672616004943848, -0.08747541904449463, -0.02194267325103283, 0.01720903441309929, 0.028309553861618042, -0.0015801861882209778, 0.0377030111849308, 0.00924581941217184, -0.010417694225907326, -0.09249510616064072, -0.002528297947719693, -0.0010288511402904987, 0.037832196801900864, -0.0033702950458973646, 0.007409573998302221, -0.07640258222818375, 0.0375184640288353, 0.01967274211347103, 0.0050981189124286175, -0.028383374214172363, 0.019691195338964462, 0.0011672616237774491, -0.021333666518330574, 0.020983027294278145, 0.05337107554078102, 0.021112211048603058, -0.03334769606590271, -0.008004738949239254, 0.03327387571334839, -0.014846829697489738, -0.007400346454232931, -0.009744097478687763, 0.06806103885173798, -0.03674336522817612, 0.011700298637151718, 0.06326281279325485, -0.02358514443039894, 0.026870084926486015, -0.006639088969677687, -0.005111960228532553, 0.014560781419277191, -0.03853347525000572, -0.020983027294278145, -0.011589569970965385, -0.049975406378507614, -0.041855327785015106, -0.025209160521626472, 0.0012180121848359704, -0.02594734914600849, -0.03489789366722107, -0.009052044712007046, -0.01332431472837925, 0.0025559801142662764, -0.039013296365737915, 0.04008367285132408, -0.06053151190280914, 0.00941652525216341, -0.08747541904449463, 0.011617251671850681, 0.0055318051017820835, 0.016701530665159225, 0.08134844899177551, 0.09168309718370438, 0.0368540957570076, 0.07282236218452454, -0.021702760830521584, 0.04694883152842522, -0.03262796252965927, -0.07640258222818375, 0.03056103177368641, 0.0020726968068629503, -0.031594496220350266, 0.015769565477967262, 0.014477735385298729, 0.03967766836285591, -0.0030196551233530045, 0.006731362547725439, -0.020207928493618965, 0.06348426640033722, 0.02275468036532402, 0.02583662047982216, 0.009088953956961632, 0.015557336620986462, 0.06555119901895523, -0.09485730528831482, 0.012198575772345066, 0.009587232023477554, -0.0263164434581995, -0.07241635769605637, -0.005628692451864481, 0.04499262943863869, -0.028955470770597458, -0.008982839062809944, -0.03532235324382782, 0.05370326340198517, 0.004140779841691256, -0.005056595895439386, -0.04436516761779785, -0.002326449379324913, 0.0017382048536092043, -0.0055041229352355, -0.005873217713087797, -0.05049213767051697, -0.04048967733979225, 0.014791465364396572, 0.08289864659309387, 0.08223427087068558, 0.018750004470348358, -0.005536418873816729, 0.015981795266270638, -0.018187135457992554, 0.018713096156716347, -0.014846829697489738, -0.040932588279247284, 0.013988684862852097, -0.03919784352183342, -0.07832187414169312, -0.019303645938634872, 0.011211248114705086, 0.024544790387153625, -0.041781507432460785, -0.006426859647035599, 0.027331454679369926, 0.025338342413306236, 0.05285434424877167, -0.0037762990687042475, 0.049606312066316605, 0.05506891384720802, -0.004456817172467709, 0.008013966493308544, 0.057394206523895264, 0.014976012520492077, -0.031170038506388664, 0.042593516409397125, -0.05647147074341774, 0.00016739015700295568, -0.030321119353175163, -0.04617373272776604, 0.010039372369647026, -0.029582930728793144, -0.0024498652201145887, 0.0021234473679214716, 0.013877956196665764, 0.016175569966435432, 0.03764764592051506, 0.002021946245804429, -0.09758860617876053, -0.057874031364917755, 0.041375502943992615, -0.005005845334380865, -0.01002091821283102, -0.035875994712114334, -0.0009077420108951628, -0.03775837644934654, -0.012069392949342728, 0.057431116700172424, -0.018611595034599304, -0.010749880224466324, 0.031243856996297836, 0.031114673241972923, 0.05850149318575859, 0.03439961373806, 0.012023256160318851, -0.017771903425455093, 0.03445497900247574, 0.050049226731061935, -0.02544907107949257, -0.0328863263130188, -0.024434061720967293, 0.06344735622406006, 0.018685413524508476, 0.0017162897856906056, 0.026187261566519737, 0.018934551626443863, -0.08393210917711258, -0.04665355384349823, -0.07130907475948334, -0.04034203663468361, 0.0463951900601387, -0.05695129558444023, 0.007441869471222162, 0.04827757179737091, -0.04587845876812935, 0.0005571021465584636, 0.022182583808898926, 0.007644871715456247, -0.03340306133031845, 0.03331078588962555, 0.026021167635917664, 0.017125988379120827, -0.011608025059103966, 0.03249877691268921, -0.029601385816931725, -0.03674336522817612, 0.0227731354534626, -0.0595349557697773, -0.03692791238427162, -0.060199327766895294, -0.01002091821283102, -0.005988559685647488, -0.008646040223538876, 0.02474779263138771, -0.017162898555397987, -0.006099287886172533, 0.017042942345142365, -0.0018604673678055406, -0.013619590550661087, -0.05813239887356758, -0.0020277134608477354, -0.007907851599156857, -0.01959892176091671, -0.0009336939547210932, 0.03377215564250946, -0.003575603710487485, -0.04045276716351509, -0.04912649095058441, -0.050418321043252945, 0.020669296383857727, -0.01332431472837925, -0.014957558363676071, 0.021850399672985077, -0.010528422892093658, 0.008899793028831482, -0.03425197675824165, -0.010989791713654995, 0.0050981189124286175, 0.018713096156716347, 0.008267718367278576, -0.027589820325374603, 0.005914740730077028, 0.054699815809726715, -0.05410926789045334, -0.07053397595882416, 0.019506648182868958, -0.03654036298394203, -0.01608329638838768, 0.013785682618618011, 0.006920523475855589, 0.0020427077542990446, -0.006233084946870804, 0.011617251671850681, -0.019838834181427956, -0.0143393250182271, 0.023031502962112427, -0.03812747076153755, 0.08223427087068558, 0.026113441213965416, 0.05185778811573982, 0.019691195338964462, 0.05599164962768555, 0.004936640150845051, 0.003485637018457055, 0.024452516809105873, -0.03188977390527725, -0.0008719859761185944, -0.004807456862181425, -0.03403051942586899, 0.036281999200582504, 0.016803031787276268, -0.024138785898685455, 0.007584893610328436, 0.122096486389637, 0.01291831023991108, 0.03871802240610123, -0.026131896302103996, -0.04071113094687462, -0.05816930532455444, -0.013868728652596474, -0.006057764869183302, 0.023345232009887695, 0.01770731247961521, -0.015861839056015015, 0.039862215518951416, 0.03056103177368641, 0.03692791238427162 ]
718,495
pytorch_optimizer.optimizer.yogi
Yogi
Decoupled Weight Decay Regularization. :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 initial_accumulator: float. initial values for first and second moments. :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 Yogi(Optimizer, BaseOptimizer): r"""Decoupled Weight Decay Regularization. :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 initial_accumulator: float. initial values for first and second moments. :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-2, betas: BETAS = (0.9, 0.999), initial_accumulator: float = 1e-6, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: 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') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'initial_accumulator': initial_accumulator, 'adanorm': adanorm, 'adam_debias': adam_debias, 'eps': eps, } if adanorm: defaults.update({'r': r}) super().__init__(params, defaults) def __str__(self) -> str: return 'Yogi' @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.full_like(p, fill_value=group['initial_accumulator']) state['exp_avg_sq'] = torch.full_like(p, fill_value=group['initial_accumulator']) 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.full_like(p, fill_value=group['initial_accumulator']) state['exp_avg_sq'] = torch.full_like(p, fill_value=group['initial_accumulator']) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) self.apply_weight_decay( p=p, grad=p.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), ) grad_p2 = grad.mul(grad) 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.addcmul_((exp_avg_sq - grad_p2).sign_(), grad_p2, value=-(1.0 - beta2)) de_nom = exp_avg_sq.sqrt().div_(bias_correction2_sq).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_(exp_avg, de_nom, value=-step_size) return loss
(params: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], lr: float = 0.01, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), initial_accumulator: float = 1e-06, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 0.001)
[ -0.003294076304882765, -0.04390718415379524, -0.004925551824271679, 0.031187379732728004, 0.0005660883034579456, -0.031062878668308258, -0.0771903246641159, -0.05639873445034027, -0.04390718415379524, 0.02353059872984886, -0.007438906002789736, 0.01633031852543354, 0.031104380264878273, 0.09387338906526566, -0.04365818202495575, 0.042786676436662674, -0.007853907532989979, 0.022181842476129532, -0.002290290780365467, -0.044820185750722885, -0.04701969772577286, -0.09254538267850876, -0.016610443592071533, 0.046397194266319275, -0.034341394901275635, -0.008087346330285072, 0.019038204103708267, -0.0002154442627215758, -0.05639873445034027, -0.011288046836853027, -0.023800348863005638, -0.10076241940259933, 0.001435646554455161, -0.000055482163588749245, 0.04245467856526375, -0.07349680364131927, 0.015106063336133957, 0.03413389250636101, -0.10258843004703522, -0.03917616233229637, 0.0369766540825367, -0.047227196395397186, 0.04988320916891098, -0.01874770224094391, -0.0060953376814723015, 0.024505851790308952, -0.03878191113471985, 0.04469568654894829, -0.017378197982907295, -0.03990241512656212, 0.02353059872984886, -0.07764682173728943, 0.058598242700099945, 0.02537735551595688, 0.009524289518594742, 0.04340917989611626, 0.04851370304822922, 0.015687065199017525, 0.06370276212692261, -0.06764528155326843, 0.008818786591291428, -0.08847837150096893, 0.03446589410305023, 0.007086154539138079, -0.010556606575846672, 0.0061524007469415665, -0.08814636617898941, -0.018125200644135475, 0.018695827573537827, 0.018778828904032707, 0.03172688186168671, -0.023385347798466682, 0.01923532970249653, 0.00016632491315249354, -0.05444822832942009, -0.022638345137238503, -0.05594223365187645, -0.03934216499328613, -0.01601906679570675, -0.04838920012116432, 0.00388545379973948, 0.02207809127867222, -0.020418085157871246, -0.021891340613365173, 0.04253767803311348, -0.07125579565763474, 0.014846687205135822, -0.022887345403432846, 0.0018104449845850468, -0.05697973817586899, 0.0014291622210294008, -0.032017383724451065, 0.06552877277135849, 0.030212126672267914, 0.05955274775624275, 0.033884890377521515, -0.046480193734169006, -0.026414860039949417, 0.028199367225170135, -0.02006533369421959, -0.005960462149232626, 0.023426847532391548, 0.0059085870161652565, 0.05623273551464081, -0.006448089145123959, -0.03859516233205795, -0.04814020171761513, -0.024671852588653564, 0.03288888558745384, -0.09644640237092972, -0.06465727090835571, -0.003716859268024564, 0.0031228880397975445, -0.028282368555665016, -0.02107171341776848, -0.005752961616963148, -0.01909007877111435, 0.046480193734169006, -0.006899403873831034, 0.0431186780333519, 0.029174622148275375, 0.03135338053107262, -0.06478177011013031, 0.017523448914289474, 0.026933612301945686, -0.02187059074640274, 0.03272288665175438, 0.044986188411712646, 0.023094845935702324, -0.05727024003863335, -0.029921624809503555, -0.0010991061571985483, -0.003597546136006713, 0.0018843672005459666, 0.015604064799845219, -0.009545039385557175, 0.008040658198297024, 0.03355288878083229, -0.02032470889389515, 0.024215351790189743, 0.04448818415403366, 0.017658323049545288, -0.011018295772373676, -0.008398597128689289, 0.009576165117323399, 0.007630844134837389, 0.026912862434983253, 0.012626427225768566, 0.006603715009987354, -0.015033437870442867, 0.006676340475678444, 0.008414160460233688, 0.014774061739444733, -0.000815089326351881, 0.028635120019316673, -0.024070100858807564, -0.04930220544338226, 0.04353368282318115, -0.03139488026499748, -0.009679915383458138, -0.03998541831970215, -0.024443602189421654, -0.024900102987885475, 0.004679144360125065, 0.02017945982515812, 0.021766841411590576, 0.014742936007678509, 0.053950224071741104, -0.003262951038777828, 0.03423764184117317, -0.006167963147163391, -0.07980483025312424, -0.008704661391675472, 0.020563336089253426, -0.03743315488100052, 0.12757153809070587, 0.013715807348489761, 0.020853836089372635, -0.017326321452856064, 0.009015912190079689, 0.029029371216893196, -0.0034782332368195057, -0.05083771049976349, -0.05482172966003418, -0.016351068392395973, 0.019899332895874977, 0.0227628443390131, 0.006053837947547436, -0.01713957078754902, 0.02158009074628353, 0.021455589681863785, -0.013861057348549366, 0.02095758728682995, -0.0196918323636055, -0.010893795639276505, 0.017637573182582855, 0.02979712374508381, 0.018841078504920006, 0.08312484622001648, 0.04755919799208641, -0.00031951890559867024, 0.023696599528193474, 0.021050963550806046, -0.013051804155111313, -0.009923729114234447, -0.010483981110155582, -0.03423764184117317, 0.010380230844020844, -0.014794811606407166, -0.004116298630833626, -0.027286363765597343, 0.03440364450216293, 0.012086925096809864, 0.0478082001209259, 0.047974199056625366, 0.005467647686600685, 0.030440377071499825, 0.04693669453263283, 0.036582402884960175, 0.008860287256538868, -0.004572800360620022, -0.05548573285341263, -0.0027467927429825068, -0.01273017842322588, 0.08964037150144577, -0.03871966153383255, 0.053659722208976746, 0.02009645849466324, 0.002793480409309268, -0.026705361902713776, 0.031125130131840706, -0.05187521502375603, 0.014545810408890247, 0.0020698211155831814, 0.06366126239299774, 0.022368593141436577, -0.038823410868644714, 0.013591306284070015, -0.028116367757320404, -0.0034030142705887556, -0.018322326242923737, -0.02135183848440647, -0.03315863758325577, 0.019930457696318626, -0.017699824646115303, 0.005592148285359144, 0.08930837363004684, 0.02121696248650551, -0.034714896231889725, 0.009519102051854134, -0.01103904563933611, -0.019992709159851074, -0.02353059872984886, 0.03355288878083229, -0.08051033318042755, -0.012782053090631962, 0.03961191326379776, 0.02419460006058216, 0.023841848596930504, -0.07337230443954468, 0.0017754292348399758, -0.01834307610988617, -0.09893640875816345, 0.04506918787956238, -0.01837420091032982, 0.05063021183013916, 0.08175534009933472, -0.05262221768498421, 0.02359284833073616, 0.024920854717493057, 0.051335714757442474, 0.07615281641483307, -0.06225026026368141, 0.015002312138676643, -0.017492322251200676, 0.048430703580379486, 0.010748544707894325, -0.009690290316939354, 0.0020257271826267242, 0.01572856493294239, 0.04390718415379524, -0.04162467271089554, -0.029299121350049973, -0.007288468070328236, -0.03946666419506073, 0.04428068548440933, -0.028780369088053703, 0.019297581166028976, 0.04706119745969772, 0.006992779206484556, 0.05004920810461044, 0.010483981110155582, 0.08445285260677338, 0.016631193459033966, 0.07810332626104355, 0.024671852588653564, 0.009202663786709309, 0.03407164290547371, -0.011288046836853027, -0.005120083689689636, 0.04253767803311348, 0.01785544864833355, 0.022368593141436577, -0.006354713812470436, -0.020418085157871246, -0.026331860572099686, 0.03475639596581459, 0.010483981110155582, 0.04239242523908615, 0.003563827369362116, 0.00008721520862309262, -0.010904170572757721, -0.00356642110273242, 0.02846911922097206, -0.01593606546521187, -0.10582543909549713, -0.00022241499391384423, -0.030440377071499825, 0.03355288878083229, 0.06685677915811539, -0.019868208095431328, 0.028884120285511017, 0.02069821208715439, -0.045276690274477005, -0.03622965142130852, -0.03674840182065964, 0.04411468282341957, 0.039508163928985596, -0.023987099528312683, -0.042579177767038345, -0.03525439649820328, -0.038304660469293594, 0.02568860724568367, 0.024671852588653564, -0.03446589410305023, -0.018986329436302185, 0.03309638798236847, 0.017834698781371117, 0.002412197645753622, -0.04170767217874527, 0.022596843540668488, 0.05108671262860298, -0.04452968388795853, 0.043616682291030884, -0.0051019275560975075, -0.07698281854391098, 0.026622360572218895, 0.006126462947577238, 0.016454817727208138, 0.05893024429678917, 0.0051849279552698135, 0.007272905204445124, 0.02253459393978119, 0.08773136883974075, 0.05818324163556099, 0.02121696248650551, -0.03705965355038643, 0.010250542312860489, 0.05428222566843033, -0.05195821821689606, -0.05353522300720215, 0.011485172435641289, -0.04415618255734444, 0.06586077809333801, 0.05884724482893944, 0.0014135995879769325, 0.004251174163073301, -0.047974199056625366, 0.030357375741004944, -0.03915541246533394, 0.009347913786768913, -0.05204121768474579, -0.016029441729187965, -0.011205046437680721, -0.04093991965055466, 0.0007087451522238553, -0.02290809527039528, -0.014369434677064419, 0.03992316499352455, 0.018436452373862267, 0.046770695596933365, 0.0020801962818950415, 0.009545039385557175, 0.04614819213747978, 0.04768369719386101, -0.02224409207701683, 0.02224409207701683, 0.0018921485170722008, 0.0467291958630085, -0.0723763033747673, 0.03871966153383255, -0.002627479610964656, -0.0008954959339462221, -0.0018376795342192054, -0.06913928687572479, 0.030585628002882004, 0.03365664184093475, 0.06005075201392174, -0.08814636617898941, -0.03332464024424553, -0.03378114104270935, -0.012014299631118774, 0.03595989942550659, 0.009638414718210697, -0.02755611389875412, -0.05187521502375603, 0.032245635986328125, 0.0821288451552391, -0.006230213679373264, 0.10134342312812805, -0.03892716392874718, 0.021912090480327606, -0.026622360572218895, 0.018986329436302185, -0.037329405546188354, -0.03917616233229637, -0.0014615842374041677, 0.004731019493192434, -0.0006101822364144027, 0.043326180428266525, 0.03407164290547371, 0.016112441197037697, 0.032536134123802185, 0.018955204635858536, -0.007158780004829168, -0.005789274349808693, -0.06474027037620544, -0.016236942261457443, -0.055983733385801315, -0.008419347926974297, -0.022513844072818756, -0.019619205966591835, -0.038242410868406296, -0.022036591544747353, -0.015521064400672913, -0.024070100858807564, -0.0073507181368768215, 0.022638345137238503, 0.03907241299748421, 0.0012508411891758442, 0.008211846463382244, -0.030523376539349556, 0.035399649292230606, 0.0027882929425686598, -0.009192287921905518, -0.03315863758325577, 0.03452814370393753, 0.006479214411228895, -0.05743623897433281, 0.0061524007469415665, 0.05727024003863335, 0.010956045240163803, 0.04706119745969772, 0.009861478582024574, 0.010551419109106064, -0.009404976852238178, 0.030295126140117645, -0.017347073182463646, 0.00799397099763155, -0.009145600721240044, 0.002920574741438031, 0.028697369620203972, -0.02411160059273243, 0.023115595802664757, -0.030689377337694168, 0.059054747223854065, 0.07523981481790543, -0.020511459559202194, 0.00003852140071103349, 0.04316018149256706, -0.016911320388317108, -0.03452814370393753, 0.006847528740763664, -0.04089841991662979, -0.036582402884960175, 0.012574552558362484, -0.0051278648898005486, 0.012709427624940872, 0.034943144768476486, -0.0331793874502182, 0.03809715807437897, -0.05531973019242287, 0.01542768906801939, 0.03172688186168671, 0.024298351258039474, 0.020449209958314896, 0.005794461816549301, -0.012605677358806133, 0.004967052023857832, 0.029319871217012405, -0.05909624695777893, -0.023924849927425385, 0.054116226732730865, -0.0006578426109626889, -0.04963420704007149, -0.03984016552567482, 0.01093529537320137, 0.006712652742862701, 0.05623273551464081, -0.04735169559717178, 0.021289588883519173, -0.006842340808361769, -0.05681373551487923, -0.03934216499328613, 0.030523376539349556, -0.04635569453239441, -0.05614973232150078, 0.009467227384448051, -0.04818170145153999, 0.024007849395275116, -0.025730106979608536, -0.02107171341776848, 0.01897595450282097, -0.001704100868664682, 0.0007029091939330101, -0.03705965355038643, 0.018892953172326088, 0.06005075201392174, 0.02890487015247345, -0.025418855249881744, 0.05569323152303696, 0.026871362701058388, -0.022410092875361443, -0.014141184277832508, 0.03641640022397041, 0.04135492071509361, 0.005153802689164877, -0.008185909129679203, 0.05756073817610741, -0.00031271029729396105, 0.011889799498021603, -0.03174763172864914, 0.0036546089686453342, 0.06216726079583168, -0.024817103520035744, -0.034797895699739456, 0.022949595004320145, -0.03612590208649635, -0.09088537842035294, -0.031706131994724274, -0.0015303188702091575, 0.020563336089253426, 0.012273675762116909, -0.04581619054079056, -0.015251313336193562, 0.0726253017783165, -0.009716227650642395, 0.04037966951727867, -0.04316018149256706, -0.01785544864833355, -0.053286220878362656, 0.011578548699617386, -0.023177847266197205, 0.047600697726011276, 0.035607147961854935, 0.008061408996582031, -0.049094703048467636, 0.046106692403554916, 0.004367893096059561, 0.036063648760318756, -0.052912719547748566, -0.05361822247505188, 0.000308819639030844, -0.04701969772577286, 0.021829091012477875, 0.04755919799208641, 0.020563336089253426, -0.01209730003029108, -0.062416259199380875, 0.046770695596933365, -0.03114587999880314, -0.03842915967106819, 0.0030009811744093895, -0.015863440930843353, -0.06776978075504303, 0.018924077972769737, -0.008144408464431763, -0.025045353919267654, 0.012927304022014141, -0.04096066951751709, 0.04083617031574249, -0.020220959559082985, -0.004917770624160767, -0.03550339862704277, 0.04008916765451431, 0.010509918443858624, -0.03940441459417343, 0.06859978288412094, -0.0035430772695690393, 0.007687907200306654, -0.010904170572757721, 0.038242410868406296, -0.033822640776634216, -0.05428222566843033, -0.019442830234766006, 0.028697369620203972, -0.04465418681502342, 0.008777286857366562, 0.03166463226079941, 0.0227005947381258, -0.023841848596930504, -0.008528285659849644, 0.045857690274715424, -0.01923532970249653, -0.009321976453065872, 0.0006237994530238211, -0.0025781982112675905, 0.014805186539888382, 0.02792961709201336, -0.053576722741127014, -0.011910549364984035, -0.014317560009658337, -0.011111671105027199, -0.014442060142755508, -0.06677377969026566, -0.01498156227171421, -0.008191096596419811, 0.03923841193318367, 0.0722518041729927, -0.0005249123205430806, -0.010120854713022709, -0.00027007533935829997, -0.008958850055932999, 0.018903328105807304, -0.023758849129080772, -0.03573164716362953, 0.04015141725540161, -0.07420230656862259, 0.00403329823166132, -0.0055765858851373196, -0.014784436672925949, 0.021808341145515442, 0.015635190531611443, -0.03749540448188782, 0.024547351524233818, 0.015313563868403435, 0.04187367483973503, 0.022181842476129532, -0.050962213426828384, -0.038761161267757416, 0.0011179109569638968, 0.04618969187140465, -0.002917981008067727, 0.013684681616723537, -0.04139642417430878, -0.0014213809045031667, 0.007423343602567911, 0.006282088812440634, 0.04768369719386101, 0.0016781631857156754, -0.0041344547644257545, 0.03137413039803505, -0.04996620863676071, -0.03131188079714775, -0.015220188535749912, 0.0009506133501417935, 0.018156325444579124, 0.053950224071741104, 0.01811482571065426, -0.047517698258161545, 0.010032666847109795, -0.009264913387596607, 0.03745390474796295, 0.010624044574797153, -0.04349217936396599, 0.01800069957971573, 0.00286351190879941, -0.011775674298405647, 0.01811482571065426, -0.0012955835554748774, -0.07158780097961426, -0.019007079303264618, -0.04208117350935936, 0.005026708357036114, 0.005810024216771126, -0.005810024216771126, 0.027825865894556046, -0.03585615009069443, -0.018664702773094177, 0.00018902031297329813, 0.06308026611804962, 0.04747619852423668, 0.016236942261457443, -0.015272063203155994, 0.03946666419506073, -0.03108363039791584, -0.014317560009658337, 0.009648790583014488, 0.016517069190740585, -0.03637490049004555, -0.07183679938316345, -0.007874657399952412, 0.020501084625720978, -0.028344618156552315, 0.0825023427605629, -0.09711040556430817, -0.03548264876008034, -0.009233788587152958, 0.0032110759057104588, -0.06540427356958389, -0.014410935342311859, -0.02867661975324154, -0.03795190900564194, 0.01624731719493866, 0.04027591645717621, 0.06810178607702255, 0.007112092338502407, -0.015853065997362137, 0.004489799961447716, -0.03749540448188782, -0.003486014436930418, 0.030896877869963646, -0.009161163121461868, -0.0066504026763141155, 0.06270676106214523, 0.004624675493687391, 0.015230563469231129, -0.001396740204654634, -0.046978194266557693, 0.049177706241607666, 0.0070394668728113174, 0.017720574513077736, -0.001084840507246554, 0.008860287256538868, -0.04656319320201874, -0.06270676106214523, -0.008715036325156689, -0.040317416191101074, 0.03174763172864914, -0.015230563469231129, 0.031208129599690437, 0.023011846467852592, -0.011122046038508415, 0.0016094285529106855, -0.03079312853515148, -0.014006308279931545, 0.021289588883519173, -0.026394110172986984, 0.007558219134807587, 0.04693669453263283, -0.0032811074052006006, 0.032100383192300797, -0.021995091810822487, -0.002135962015017867, -0.004832176491618156, 0.031208129599690437, -0.004085173364728689, -0.025252854451537132, 0.04452968388795853, -0.032764386385679245, 0.06104675307869911, 0.0015977566363289952, 0.01426568441092968, 0.03820090740919113, 0.06789427995681763, -0.04382418096065521, 0.018187450245022774, -0.035399649292230606, -0.08897636830806732, -0.08312484622001648, 0.016745319589972496, -0.06278976052999496, 0.06880728900432587, -0.0028946371749043465, 0.014203433878719807, 0.006333963945508003, 0.02867661975324154, 0.01392330788075924 ]
718,497
pytorch_optimizer.optimizer.yogi
__init__
null
def __init__( self, params: PARAMETERS, lr: float = 1e-2, betas: BETAS = (0.9, 0.999), initial_accumulator: float = 1e-6, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: 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') defaults: DEFAULTS = { 'lr': lr, 'betas': betas, 'weight_decay': weight_decay, 'weight_decouple': weight_decouple, 'fixed_decay': fixed_decay, 'initial_accumulator': initial_accumulator, '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.01, betas: Union[Tuple[float, float], Tuple[float, float, float]] = (0.9, 0.999), initial_accumulator: float = 1e-06, weight_decay: float = 0.0, weight_decouple: bool = True, fixed_decay: bool = False, r: float = 0.95, adanorm: bool = False, adam_debias: bool = False, eps: float = 0.001)
[ -0.005409132223576307, -0.029573071748018265, -0.014531432650983334, 0.011281229555606842, -0.02641735039651394, -0.017469843849539757, -0.0876799076795578, -0.05759662762284279, -0.04852629080414772, 0.03295554965734482, -0.015825845301151276, 0.0555558018386364, 0.026927556842565536, 0.09085451811552048, -0.05672738701105118, 0.05309925228357315, 0.024697765707969666, 0.0331067219376564, -0.016799015924334526, -0.0022286097519099712, -0.006873613223433495, -0.006746061611920595, -0.0390024408698082, 0.11730966717004776, 0.012566193006932735, 0.03202962130308151, -0.0007505465764552355, 0.0038289097137749195, -0.04365098848938942, 0.014966052956879139, 0.014144053682684898, -0.01735646463930607, -0.002157747745513916, 0.04992463439702988, 0.03543099761009216, -0.024678869172930717, -0.013104744255542755, 0.02320493943989277, -0.1003027856349945, 0.02775900438427925, 0.06700710207223892, -0.02944079600274563, 0.07294061034917831, -0.04754367098212242, -0.02250576950609684, -0.02709762565791607, 0.04414229840040207, 0.02902507223188877, -0.01539122499525547, -0.035336513072252274, 0.029497485607862473, -0.03174617141485214, 0.040665335953235626, -0.014087364077568054, -0.04402891919016838, 0.05075608193874359, 0.03743402659893036, 0.06500406563282013, 0.0351097546517849, 0.0026785833761096, 0.013926743529736996, -0.04036299139261246, 0.023847421631217003, -0.007331854198127985, 0.002059721853584051, 0.006741337478160858, -0.09115686267614365, -0.02065390907227993, 0.018452461808919907, 0.03968271613121033, 0.0965234786272049, 0.003892685519531369, -0.018471358343958855, 0.023034870624542236, -0.009504955261945724, 0.0059098899364471436, -0.0789875015616417, -0.05094504728913307, -0.04754367098212242, -0.012613434344530106, 0.04909318685531616, 0.0487530492246151, -0.02942189946770668, -0.04425567761063576, 0.01008129958063364, -0.06734723597764969, -0.04357540234923363, -0.06009097024798393, 0.010459230281412601, -0.0012294555781409144, -0.05589593946933746, -0.033862583339214325, 0.019898047670722008, -0.0034840479493141174, 0.04792160168290138, 0.019076047465205193, 0.017403705045580864, -0.05400628596544266, 0.02874162420630455, -0.013511019758880138, -0.0272676944732666, 0.01017578225582838, -0.04172354191541672, 0.002017204649746418, 0.01447474304586649, -0.01823515258729458, -0.05600931867957115, -0.033768102526664734, 0.04508712515234947, -0.060166556388139725, -0.0369994081556797, 0.06772516667842865, -0.028099142014980316, 0.04179912805557251, -0.06349234282970428, 0.018953220918774605, 0.01101667806506157, 0.007709784898906946, -0.0033352377358824015, 0.031330447643995285, 0.047808222472667694, 0.02222232148051262, -0.029667554423213005, 0.04043857753276825, 0.039796095341444016, -0.006566544529050589, 0.008456197567284107, 0.004941442981362343, 0.0020443685352802277, -0.02932741679251194, 0.03480741009116173, -0.011186746880412102, -0.029157347977161407, -0.02074839174747467, 0.03851113095879555, -0.017895014956593513, 0.016931291669607162, 0.049168772995471954, -0.037169475108385086, 0.01666674017906189, 0.06689371913671494, 0.013681088574230671, 0.04024961218237877, -0.020616116002202034, -0.018008394166827202, 0.009226230904459953, 0.00012024394527543336, -0.016884051263332367, -0.002539221430197358, 0.03681044280529022, 0.03369251638650894, -0.00017907415167428553, -0.002365609398111701, 0.04792160168290138, 0.0075113712809979916, -0.03919140622019768, 0.02464107610285282, -0.016610050573945045, -0.013973984867334366, 0.012169365771114826, -0.031311552971601486, 0.009046714752912521, 0.02299707755446434, -0.03956933692097664, -0.0009501412278041244, 0.01407791581004858, -0.04727911949157715, 0.006240579299628735, -0.006798027083277702, -0.016439981758594513, 0.0016758861020207405, -0.10272154211997986, -0.0369994081556797, 0.01426688116043806, -0.03136824071407318, 0.0516253225505352, 0.01452198438346386, -0.000074368181230966, -0.014625915326178074, -0.01665729284286499, 0.06666696071624756, -0.009684472344815731, -0.0136338472366333, -0.08692404627799988, 0.015400673262774944, -0.0018861100543290377, -0.034448377788066864, 0.04659884423017502, -0.03448617085814476, 0.02658741921186447, 0.05933510884642601, 0.004620201885700226, 0.01066709216684103, 0.012490606866776943, -0.02377183549106121, 0.016336051747202873, 0.03749071806669235, -0.017989497631788254, 0.034845203161239624, 0.05876821279525757, 0.06050669401884079, 0.04489815980195999, 0.013369295746088028, -0.012792951427400112, 0.021220805123448372, -0.005031201522797346, -0.02622838504612446, 0.009651402942836285, -0.007757026236504316, -0.0263228677213192, -0.004960339516401291, -0.019727978855371475, 0.04996242746710777, 0.02660631574690342, -0.012537848204374313, -0.03949375078082085, 0.007331854198127985, 0.029006175696849823, 0.035619962960481644, 0.009160093031823635, 0.09418030828237534, -0.019557910040020943, -0.007454681675881147, -0.01762101612985134, 0.05056711658835411, 0.008654611185193062, 0.022524666041135788, -0.04765705019235611, -0.08269122242927551, 0.020635012537240982, -0.011196195147931576, -0.052381183952093124, -0.032105207443237305, -0.014597570523619652, 0.024716662243008614, 0.007123992312699556, -0.0209562536329031, 0.03208630904555321, -0.09697699546813965, -0.038813475519418716, 0.034051548689603806, 0.046334292739629745, 0.002848651958629489, -0.023998593911528587, 0.006939751096069813, -0.007227923255413771, 0.026379557326436043, 0.024206455796957016, -0.07464129477739334, -0.044369056820869446, -0.04693898186087608, -0.011649711057543755, 0.0016711619682610035, 0.044369056820869446, -0.03983388841152191, 0.013917295262217522, 0.04240381717681885, 0.01285908930003643, 0.03488299623131752, -0.008366439491510391, 0.015844741836190224, -0.007204302586615086, -0.026663005352020264, 0.06987937539815903, 0.0065476479940116405, 0.02074839174747467, -0.0045753223821520805, -0.0007263353909365833, 0.03399486094713211, 0.000046687717258464545, 0.12025752663612366, 0.040589749813079834, -0.014682604931294918, -0.003663565032184124, -0.005064270459115505, -0.0048422361724078655, -0.0019687823951244354, -0.032596517354249954, -0.01919887587428093, 0.04890422150492668, 0.024338731542229652, -0.04036299139261246, 0.004117081873118877, 0.015032190829515457, 0.0031037551816552877, 0.009835644625127316, -0.018480807542800903, 0.01635494828224182, -0.0041808574460446835, 0.013369295746088028, 0.020691702142357826, 0.009854541160166264, 0.06935027241706848, 0.02231680415570736, 0.1042332649230957, -0.017025774344801903, 0.03758519887924194, -0.011385159566998482, 0.04716574028134346, -0.01285908930003643, 0.03654589131474495, -0.04538946598768234, 0.0671960636973381, -0.005985476076602936, -0.05347718298435211, -0.0340893417596817, 0.03272879123687744, 0.02834479697048664, 0.03363582491874695, 0.04520050436258316, 0.031028104946017265, 0.04100547358393669, 0.06156489998102188, 0.01588253490626812, 0.031708378344774246, -0.08065039664506912, 0.009769506752490997, -0.059864211827516556, 0.027532245963811874, 0.04002285376191139, -0.015570742078125477, 0.03987168148159981, 0.002756531583145261, -0.0369994081556797, -0.05381732061505318, -0.057143110781908035, 0.028382590040564537, 0.025453627109527588, -0.03197292983531952, -0.008848301135003567, -0.04198809340596199, -0.007407440338283777, 0.005668959114700556, -0.020238185301423073, -0.05668959394097328, -0.005300477147102356, 0.005428028758615255, 0.04470919445157051, 0.001943980692885816, -0.02981872670352459, 0.08752873539924622, -0.02749445289373398, -0.011744193732738495, 0.04822394624352455, -0.009282920509576797, -0.03286106884479523, 0.019557910040020943, -0.019822461530566216, 0.03080134652554989, -0.008248335681855679, -0.01311419252306223, 0.0129063306376338, -0.007369647268205881, 0.08843576908111572, 0.027551142498850822, -0.0068310960195958614, -0.02921403758227825, 0.013709433376789093, 0.0340893417596817, -0.04501153901219368, -0.018584737554192543, 0.013766122981905937, -0.046447671949863434, 0.048979807645082474, 0.015429018065333366, -0.007875129580497742, -0.021315287798643112, -0.03019665740430355, 0.040665335953235626, -0.0059098899364471436, 0.03197292983531952, -0.07388543337583542, -0.021183012053370476, -0.007265716325491667, 0.01812177337706089, -0.00002264262002427131, -0.033560238778591156, 0.0019262651912868023, 0.041458990424871445, -0.007001164834946394, 0.0007015337469056249, 0.00413834024220705, 0.05495111271739006, 0.014436949975788593, 0.004799718968570232, -0.029591968283057213, 0.0032620136626064777, 0.014115708880126476, 0.06058228015899658, -0.00115209782961756, -0.00866878405213356, -0.00843257736414671, 0.017781635746359825, -0.016732878983020782, -0.08012129366397858, 0.03907802700996399, 0.04588077589869499, 0.039796095341444016, -0.056765180081129074, -0.0467878095805645, -0.004646184388548136, -0.031708378344774246, -0.0015695930924266577, 0.022449079900979996, -0.00847981870174408, -0.012972468510270119, 0.025869350880384445, 0.031708378344774246, 0.008890817873179913, 0.07535936683416367, -0.0005125683965161443, 0.00046414605458267033, -0.022486872971057892, 0.000339547055773437, -0.0487530492246151, -0.036186859011650085, 0.007095647510141134, -0.022656941786408424, 0.021693218499422073, -0.010591506026685238, 0.023167146369814873, 0.02035156451165676, 0.0584658682346344, 0.033560238778591156, 0.06557096540927887, 0.0633033812046051, -0.019520116969943047, 0.0035596340894699097, -0.021938873454928398, -0.05464876815676689, -0.03758519887924194, -0.012188262306153774, -0.028798313811421394, -0.029478589072823524, 0.014181846752762794, 0.010024609975516796, -0.013265364803373814, 0.01022302359342575, 0.010685988701879978, -0.02093735709786415, 0.02171211503446102, -0.06579772382974625, 0.01115840207785368, -0.035204239189624786, -0.06492847949266434, -0.03431610018014908, 0.01986025460064411, -0.003091944847255945, -0.044860366731882095, -0.012055986560881138, 0.022430183365941048, 0.01506053563207388, 0.04255498945713043, -0.007544440217316151, -0.0175359807908535, -0.030933622270822525, 0.0009595894953235984, -0.019727978855371475, 0.03739623352885246, -0.01008129958063364, 0.053628355264663696, -0.01812177337706089, -0.01149853877723217, 0.00042605772614479065, -0.03089582920074463, 0.03586561605334282, 0.06855661422014236, -0.018858738243579865, -0.012301641516387463, 0.003467513481155038, -0.0015258948551490903, 0.012603986077010632, 0.03539320454001427, -0.024905627593398094, -0.04338643699884415, 0.0024612732231616974, -0.008031025528907776, -0.028987279161810875, -0.026133902370929718, -0.013454330153763294, 0.0037320649717003107, -0.03465623781085014, 0.014096812345087528, 0.06379468739032745, 0.019992530345916748, -0.00041542842518538237, -0.04795939475297928, 0.015995914116501808, 0.017507636919617653, 0.052381183952093124, -0.08510997891426086, -0.015145570039749146, 0.02473555877804756, 0.06538199633359909, -0.045238297432661057, -0.02590714395046234, 0.0331256203353405, 0.021183012053370476, 0.04051416367292404, 0.0027919625863432884, 0.01840522140264511, -0.054308630526065826, -0.04463360831141472, -0.026436246931552887, 0.026568522676825523, -0.03722616657614708, -0.09606996178627014, -0.00895695574581623, -0.01568412035703659, 0.014059019275009632, -0.025510316714644432, -0.006679923739284277, -0.03012107126414776, 0.007785371039062738, -0.029686450958251953, -0.027248797938227654, -0.041836921125650406, 0.047694843262434006, -0.01524950098246336, -0.04074092209339142, 0.04153457656502724, 0.05914614349603653, 0.03696161508560181, -0.026379557326436043, 0.006783854681998491, 0.05502669885754585, 0.01986025460064411, -0.039985060691833496, 0.07558612525463104, 0.02222232148051262, -0.0037084443029016256, -0.06708268821239471, -0.04459581524133682, 0.04727911949157715, -0.006505130790174007, 0.0467878095805645, 0.018187910318374634, -0.018858738243579865, -0.05204104632139206, -0.04236602410674095, 0.026663005352020264, 0.026814177632331848, 0.024527696892619133, -0.04610753431916237, -0.01901935786008835, 0.0021223167423158884, -0.025283558294177055, 0.05854145437479019, -0.03907802700996399, -0.032407552003860474, 0.02006811648607254, -0.02991320937871933, -0.04950891062617302, 0.030536795035004616, 0.018764255568385124, -0.017696602270007133, 0.001956972060725093, -0.0053571667522192, 0.06398365646600723, 0.024981213733553886, -0.015740809962153435, -0.0136338472366333, -0.010997781530022621, 0.01052536815404892, -0.007431061007082462, 0.013218123465776443, 0.018008394166827202, -0.03681044280529022, -0.0642860010266304, 0.021579839289188385, -0.006486234255135059, -0.0034887720830738544, -0.001561325858347118, 0.005437477026134729, -0.041270025074481964, 0.01704467087984085, -0.007686164230108261, 0.017261981964111328, -0.04470919445157051, -0.0351097546517849, 0.018830392509698868, -0.03458065167069435, -0.09372679144144058, -0.09418030828237534, 0.023072663694620132, -0.008054646663367748, -0.058617040514945984, 0.013265364803373814, -0.014247984625399113, 0.016005361452698708, -0.013766122981905937, 0.04572960361838341, -0.03575223684310913, -0.02280811220407486, -0.042441610246896744, 0.016392741352319717, -0.010043506510555744, -0.021183012053370476, 0.02738107368350029, 0.056954145431518555, -0.0760774314403534, -0.023923007771372795, 0.014115708880126476, 0.023639559745788574, -0.005050098057836294, -0.01644943095743656, -0.020805081352591515, 0.05015139281749725, 0.02339390479028225, -0.04550284519791603, 0.007105095777660608, -0.029081761837005615, 0.008871921338140965, -0.013964536599814892, -0.0048516844399273396, -0.05903276428580284, -0.043121885508298874, 0.02688976377248764, 0.09735492616891861, 0.015920327976346016, 0.0029762035701423883, -0.02328052558004856, -0.0258126612752676, 0.040967680513858795, -0.08117949962615967, -0.0065381997264921665, 0.01618487946689129, -0.11957725137472153, 0.014002329669892788, -0.02260025218129158, 0.03856781870126724, -0.014040122739970684, -0.005442201159894466, -0.04640987887978554, 0.0030328931752592325, 0.023923007771372795, 0.035015273839235306, 0.045351672917604446, 0.031821757555007935, -0.018367428332567215, 0.02046494372189045, 0.044973745942115784, -0.020616116002202034, -0.0022345148026943207, -0.0011981581337749958, -0.025793764740228653, -0.02641735039651394, -0.006316165439784527, 0.054422009736299515, 0.047505877912044525, -0.03647030517458916, 0.04444464296102524, -0.03907802700996399, -0.0007564517436549067, -0.009826196357607841, -0.006750785745680332, 0.0199736338108778, 0.03919140622019768, 0.045767396688461304, -0.0238852147012949, -0.0267952810972929, -0.021504253149032593, 0.03524203225970268, 0.0019380755256861448, -0.0037462373729795218, -0.008843576535582542, -0.04036299139261246, 0.0025793765671551228, -0.036281339824199677, -0.015466811135411263, -0.05241897702217102, -0.0165533609688282, -0.02855265885591507, 0.000767081044614315, 0.02280811220407486, 0.02503790333867073, -0.051398564130067825, -0.059864211827516556, 0.03117927722632885, -0.01588253490626812, 0.040098439902067184, 0.04743029177188873, -0.00818219780921936, -0.04996242746710777, 0.009339610114693642, -0.012433917261660099, -0.060355521738529205, 0.04198809340596199, -0.007407440338283777, -0.034845203161239624, -0.06413482874631882, -0.006963371764868498, 0.027248797938227654, 0.000999744632281363, 0.025170179083943367, -0.028571555390954018, -0.0692368894815445, -0.06538199633359909, 0.025699282065033913, -0.022184528410434723, 0.001166270230896771, -0.0030659621115773916, -0.045842982828617096, 0.05672738701105118, -0.04168574884533882, 0.02883610688149929, 0.014191295020282269, 0.0025699282996356487, 0.024300938472151756, -0.047203533351421356, 0.038813475519418716, 0.06156489998102188, 0.027059832587838173, -0.06708268821239471, -0.00862154271453619, 0.03820878639817238, 0.04538946598768234, -0.0017219464061781764, -0.05332601070404053, 0.01908549666404724, -0.04070312902331352, -0.006495682522654533, 0.03272879123687744, 0.007610578089952469, 0.017082463949918747, -0.07532157003879547, -0.026474040001630783, 0.006396475713700056, 0.039796095341444016, -0.029780933633446693, 0.043802160769701004, 0.03467513620853424, -0.02728659100830555, -0.0019534288439899683, -0.005394959822297096, -0.03150051832199097, 0.04172354191541672, 0.0019427996594458818, 0.0545353889465332, 0.07740019261837006, 0.009372679516673088, 0.031991828233003616, -0.03788754343986511, -0.009882885962724686, 0.00521544273942709, 0.03953154385089874, -0.016997430473566055, -0.0016262826975435019, 0.06300103664398193, -0.004804443102329969, 0.008871921338140965, -0.03301224112510681, 0.01812177337706089, 0.05272132158279419, 0.04278174787759781, -0.044860366731882095, 0.021579839289188385, -0.03333348035812378, -0.05623607710003853, -0.09327327460050583, -0.002073894254863262, -0.06863220036029816, 0.06734723597764969, 0.018660323694348335, 0.016109293326735497, 0.01194260735064745, 0.03972050920128822, 0.0006596070597879589 ]
718,500
pytorch_optimizer.optimizer.yogi
__str__
null
def __str__(self) -> str: return 'Yogi'
(self) -> str
[ -0.011343450285494328, -0.03703277185559273, 0.02948777750134468, -0.005338603165000677, 0.0067922258749604225, -0.07579605281352997, 0.013073953799903393, 0.04007846117019653, 0.08839411288499832, -0.05880250781774521, -0.01806645654141903, 0.011101179756224155, -0.01860291138291359, 0.028501391410827637, 0.0032857933547347784, -0.006528323981910944, -0.007830527611076832, -0.07070837169885635, 0.0021187851671129465, 0.012182744219899178, 0.0062600960955023766, 0.015617793425917625, 0.05856023728847504, -0.005901016760617495, -0.02794763073325157, 0.06859715282917023, -0.008643864654004574, -0.015288997441530228, -0.018014540895819664, -0.008769325911998749, -0.009111100807785988, -0.06607062369585037, 0.015799496322870255, 0.01549665816128254, -0.024036692455410957, 0.013714239932596684, -0.05014998838305473, 0.042258892208337784, -0.05219198390841484, -0.024330878630280495, 0.00036719118361361325, 0.01308260578662157, -0.03807107359170914, -0.01941624842584133, -0.03099331632256508, -0.019970009103417397, -0.016829146072268486, 0.0668320432305336, -0.00045074205263517797, -0.026199821382761, 0.00753201637417078, -0.00376600818708539, -0.03710199519991875, -0.025126909837126732, -0.018758656457066536, 0.0085659921169281, 0.027013158425688744, 0.00654995534569025, -0.014233390800654888, 0.04516613855957985, -0.05807569622993469, -0.024469317868351936, 0.0497000589966774, -0.002662812126800418, -0.025715280324220657, 0.018724046647548676, -0.013290266506373882, 0.04956161975860596, 0.034142833203077316, 0.0329141765832901, 0.05011538043618202, -0.03852100670337677, -0.010573375970125198, 0.030716435983777046, 0.0023772791028022766, -0.021371716633439064, -0.10985235869884491, 0.017893405631184578, 0.011075221933424473, -0.0335717648267746, 0.008328047581017017, -0.008375636301934719, -0.050530701875686646, -0.01581680215895176, -0.05184588208794594, -0.07835719734430313, -0.014380483888089657, -0.06541302800178528, -0.02928011864423752, 0.024175133556127548, -0.04727735370397568, -0.004341400694102049, -0.02777457982301712, 0.05561837926506996, -0.030335724353790283, -0.005849101580679417, 0.013792112469673157, -0.03424666449427605, 0.0319104827940464, 0.024296268820762634, 0.001005855156108737, 0.02777457982301712, -0.03696355223655701, 0.03582141920924187, -0.06607062369585037, -0.034644678235054016, -0.04738118499517441, 0.029937708750367165, -0.0050141336396336555, -0.006225486285984516, -0.07164283841848373, 0.01123096700757742, 0.02767075039446354, 0.004642075393348932, 0.01867213286459446, -0.07337334752082825, -0.02427896298468113, 0.016509002074599266, 0.058179523795843124, -0.025126909837126732, 0.01039167307317257, 0.011940473690629005, -0.05565299093723297, -0.029210897162556648, 0.04665437340736389, 0.09157823771238327, -0.05644902214407921, -0.0167080108076334, 0.027393870055675507, -0.04720813408493996, 0.03203161805868149, 0.004931934643536806, -0.032758429646492004, -0.0021847605239599943, 0.07212737947702408, -0.00813769269734621, 0.022756120190024376, 0.00898131262511015, 0.060498401522636414, 0.13539458811283112, 0.0018700252985581756, 0.002130682347342372, 0.04167052358388901, 0.03651362285017967, -0.006074067205190659, 0.009725429117679596, -0.012139481492340565, 0.06215968355536461, 0.0006132471607998013, -0.009137057699263096, 0.028726356104016304, 0.05291879549622536, 0.044854648411273956, -0.0115857208147645, -0.01964121311903, 0.008886135183274746, -0.01392189972102642, -0.027393870055675507, 0.032187364995479584, -0.03338140994310379, -0.015038074925541878, -0.0510498508810997, -0.01096273958683014, -0.013022038154304028, 0.0060264780186116695, 0.0544070266187191, 0.004425762686878443, 0.04952700808644295, 0.04270882532000542, 0.01995270512998104, -0.05745271220803261, -0.06015229970216751, -0.08680205047130585, 0.0372750423848629, 0.02777457982301712, 0.0334160216152668, 0.0007543913670815527, 0.07773421704769135, 0.023759812116622925, -0.011646288447082043, -0.02085256576538086, -0.018118370324373245, -0.05091141164302826, 0.011507847346365452, 0.08673283457756042, -0.03076835162937641, 0.04111676290631294, 0.04862714558839798, 0.016396520659327507, -0.006623501889407635, -0.012719199992716312, 0.005386191885918379, -0.04616983234882355, 0.015539920888841152, 0.0032598357647657394, -0.03227388858795166, 0.016967585310339928, -0.06105216220021248, 0.002589265815913677, 0.00408831425011158, 0.003746539819985628, 0.0587678961455822, -0.01551396306604147, 0.0041791656985878944, 0.04987310990691185, 0.0019370822701603174, -0.0029721397440880537, 0.014986159279942513, 0.02670166827738285, -0.05759115517139435, 0.054960787296295166, 0.020229585468769073, -0.031183671206235886, 0.009171668440103531, 0.0399746298789978, -0.024192437529563904, 0.02078334614634514, -0.02817259542644024, -0.034644678235054016, 0.028657136484980583, 0.06991233676671982, 0.0034501911140978336, -0.010599333792924881, -0.04212045297026634, -0.01492559164762497, 0.003850370179861784, 0.015055379830300808, -0.015981199219822884, -0.006692721974104643, -0.04146286100149155, 0.007281093392521143, -0.07309646159410477, -0.007696413900703192, 0.028328340500593185, 0.0008182036690413952, 0.03955930843949318, -0.030179979279637337, 0.0019132879097014666, -0.0792570561170578, -0.02256576530635357, -0.010140749625861645, 0.017339644953608513, -0.006480735260993242, 0.01124827191233635, 0.04443932697176933, -0.036894332617521286, 0.002526534954085946, 0.02988579496741295, -0.01874135248363018, -0.03192778676748276, 0.06558608263731003, -0.04440471902489662, -0.02502308040857315, -0.026442091912031174, -0.005987541750073433, -0.06485927104949951, -0.011516500264406204, 0.015721622854471207, 0.03362368047237396, -0.005970236845314503, -0.07579605281352997, 0.019520077854394913, -0.057279665023088455, 0.04897324740886688, -0.027930324897170067, 0.010374368168413639, -0.0310625359416008, 0.024053998291492462, 0.03644440323114395, -0.008635211735963821, 0.09407016634941101, 0.0015888185007497668, -0.04284726455807686, 0.04052839055657387, -0.029643524438142776, -0.010235927999019623, -0.014778499491512775, 0.02673627808690071, -0.09213200211524963, -0.05793725326657295, -0.010045572184026241, -0.03159899264574051, 0.03402169793844223, -0.0004061275103595108, 0.0009950394742190838, -0.05679512396454811, 0.018897097557783127, -0.013688282109797001, 0.021129446104168892, 0.0022821014281362295, 0.0651707574725151, 0.01645708829164505, -0.031079841777682304, 0.026044076308608055, 0.04208584502339363, 0.018343336880207062, 0.02531726472079754, 0.04741579294204712, -0.004010441713035107, -0.026822803542017937, -0.015107294544577599, -0.007921379059553146, -0.036998163908720016, -0.03251615911722183, -0.01702815294265747, -0.011179052293300629, 0.0030132390093058348, -0.018499081954360008, -0.007307050749659538, -0.005329950712621212, -0.008682801388204098, 0.025299960747361183, 0.020402634516358376, 0.08583296835422516, -0.017149288207292557, 0.07911861687898636, 0.002526534954085946, -0.001452541328035295, 0.013333529233932495, 0.06503231823444366, -0.028726356104016304, -0.008306416682898998, -0.0310625359416008, -0.00935337133705616, 0.02216774970293045, -0.01180203352123499, -0.035682979971170425, 0.06299032270908356, 0.006575913168489933, 0.017270423471927643, -0.01322969887405634, -0.0449930876493454, 0.038970936089754105, -0.008185281418263912, -0.00794301088899374, 0.008107408881187439, 0.0305606909096241, 0.002301569562405348, -0.034298576414585114, -0.029505083337426186, 0.05793725326657295, -0.013307571411132812, -0.03540610149502754, 0.01991809532046318, 0.026822803542017937, 0.028259120881557465, -0.0433318056166172, -0.01574758067727089, 0.027324648573994637, 0.038001853972673416, -0.0005948605248704553, -0.01308260578662157, 0.036859724670648575, -0.01653495989739895, 0.014345873147249222, 0.010945433750748634, -0.01817028596997261, 0.06662438064813614, -0.01124827191233635, -0.003326892852783203, -0.03859022632241249, -0.07600370794534683, 0.01392189972102642, 0.015877369791269302, -0.02834564633667469, -0.0011410507140681148, 0.020610295236110687, 0.0015444742748513818, 0.045996781438589096, -0.033294886350631714, -0.014553533867001534, 0.027722664177417755, -0.04973466694355011, -0.020160365849733353, -0.019468164071440697, 0.07496540993452072, 0.04184357449412346, 0.032187364995479584, -0.054718516767024994, -0.023188745602965355, 0.06928935647010803, -0.006459103897213936, 0.02320605143904686, 0.04554685205221176, 0.00963890366256237, -0.005697682499885559, 0.024867333471775055, 0.03149516135454178, 0.0033225666265934706, -0.009240888059139252, -0.012771115638315678, -0.03751731291413307, 0.005801512859761715, -0.0028985932003706694, -0.02270420454442501, -0.0829257220029831, -0.017227161675691605, -0.014787151478230953, -0.07766499370336533, 0.04305492714047432, 0.01724446751177311, -0.00019535761384759098, 0.0077310241758823395, -0.00397150544449687, -0.04416244849562645, 0.063128761947155, -0.0006986907683312893, 0.01742617040872574, -0.042639605700969696, 0.0022366757038980722, -0.009517768397927284, -0.01917397789657116, -0.04506231099367142, -0.06534381210803986, 0.06935857981443405, 0.006117329467087984, -0.0043608685955405235, 0.010824298486113548, -0.003761681728065014, 0.018983623012900352, -0.054960787296295166, 0.032758429646492004, 0.01406899280846119, 0.08050301671028137, -0.01222600694745779, 0.04108215123414993, 0.03634057193994522, 0.027445783838629723, 0.08209507912397385, 0.004616118036210537, -0.04610061272978783, 0.009950394742190838, -0.03634057193994522, -0.012035651132464409, 0.025144215673208237, -0.0564144104719162, 0.00469399057328701, -0.043747127056121826, -0.039074767380952835, 0.043608687818050385, 0.008258827961981297, -0.05772959440946579, 0.018949013203382492, 0.05298801511526108, 0.03630596026778221, -0.02599216066300869, -0.06686665117740631, 0.029262812808156013, 0.06215968355536461, 0.018481776118278503, 0.0072508095763623714, 0.043643295764923096, -0.009119752794504166, -0.0406322218477726, 0.06250578165054321, -0.03412552922964096, 0.015254387632012367, -0.04322797432541847, 0.013809417374432087, 0.0019057169556617737, -0.07198894023895264, 0.06859715282917023, -0.029695438221096992, 0.018222201615571976, 0.01138671301305294, 0.017789574339985847, -0.017504042014479637, 0.03159899264574051, -0.035613760352134705, -0.00197710026986897, 0.006177897099405527, -0.02085256576538086, -0.029574302956461906, -0.031183671206235886, -0.00095394003437832, 0.04731196537613869, -0.04090910032391548, -0.013740196824073792, 0.01681184023618698, -0.04447393864393234, -0.04966544732451439, -0.01903553679585457, -0.005148247815668583, 0.05174205079674721, 0.002459478098899126, -0.004633422940969467, 0.011949126608669758, 0.006247117184102535, -0.0362713523209095, 0.007268114481121302, 0.031149061396718025, 0.046965863555669785, -0.06250578165054321, -0.050530701875686646, -0.01967582479119301, 0.05108446255326271, -0.04378173500299454, -0.0015747580910101533, -0.10826029628515244, 0.003867675084620714, 0.0045858342200517654, 0.004568528849631548, 0.010218623094260693, -0.00933606643229723, 0.03248155117034912, -0.016829146072268486, 0.024625062942504883, 0.0073849232867360115, -0.02645939774811268, -0.032187364995479584, 0.011256924830377102, -0.03480042517185211, 0.02471158839762211, -0.014138213358819485, 0.02992040477693081, -0.007873790338635445, 0.00632066372781992, 0.010036920197308064, -0.0009187891846522689, 0.0386248379945755, 0.005494348239153624, -0.03246424347162247, -0.024798113852739334, -0.02138902246952057, -0.0011053590569645166, 0.036998163908720016, -0.01425934862345457, 0.03246424347162247, -0.024296268820762634, 0.09780805557966232, 0.00561548350378871, 0.028553307056427002, -0.0036729935090988874, 0.056102920323610306, -0.022392714396119118, 0.06662438064813614, -0.10549148917198181, 0.029124373570084572, 0.04495847970247269, 0.03748270496726036, 0.004302463959902525, -0.0386248379945755, -0.006350947543978691, -0.016396520659327507, 0.0030629909597337246, -0.02874366194009781, -0.016258079558610916, 0.027428479865193367, 0.014916939660906792, 0.02216774970293045, -0.022946475073695183, -0.03537148982286453, -0.022929171100258827, -0.02216774970293045, 0.003990973345935345, 0.03748270496726036, -0.010884866118431091, 0.029972318559885025, 0.023188745602965355, 0.0382787361741066, -0.03381403535604477, -0.0010134261101484299, 0.054753128439188004, 0.015211124904453754, 0.025074994191527367, 0.06344025582075119, -0.025126909837126732, 0.020160365849733353, 0.009898480027914047, -0.04277804493904114, 0.002956997836008668, -0.05672590062022209, 0.03535418584942818, 0.04288187623023987, -0.0792570561170578, 0.07101985812187195, 0.042258892208337784, 0.031287502497434616, -0.02156207337975502, 0.028293730691075325, -0.05984080955386162, 0.06240195408463478, 0.02777457982301712, -0.03255077078938484, -0.022081224247813225, -0.03634057193994522, 0.015167862176895142, 0.007596909999847412, 0.011222315020859241, -0.04277804493904114, -0.035579148679971695, 0.011473237536847591, -0.040113069117069244, -0.01160302571952343, 0.05426858738064766, -0.08957085758447647, -0.012736504897475243, -0.04994232952594757, 0.021406328305602074, -0.020662210881710052, 0.04831565544009209, 0.028362950310111046, 0.0013465479714795947, 0.033969782292842865, 0.06693587452173233, 0.0684933289885521, 0.0056587462313473225, 0.01304799597710371, -0.02310222014784813, 0.015937937423586845, -0.011732812970876694, 0.0063120112754404545, 0.005048743914812803, -0.012087566778063774, -0.04222428426146507, -0.005044417455792427, 0.050392258912324905, -0.009137057699263096, -0.041324421763420105, 0.014717931859195232, 0.00654995534569025, 0.058456405997276306, -0.035579148679971695, 0.048211824148893356, -0.05759115517139435, -0.00020387493714224547, 0.01964121311903, 0.013324876315891743, 0.03623674064874649, -0.06589756906032562, 0.005944279488176107, 0.000434248213423416, -0.00899861752986908, -0.06890864670276642, -0.053680215030908585, -0.005009807646274567, 0.008700106292963028, 0.027532309293746948, -0.023119525983929634, 0.027982240542769432, -0.02227157913148403, 0.02149285189807415, -0.019727738574147224, 0.056241363286972046, -0.060498401522636414, 0.039074767380952835, -0.08514077216386795, -0.05797186493873596, -0.016733968630433083, -0.0886709988117218, -0.016768578439950943, -0.0005634951521642506, -0.009232236072421074, 0.029643524438142776, -0.026147907599806786, -0.015470700338482857, 0.0033917867112904787, 0.015401480719447136, -0.013376791961491108, -0.03144324570894241, 0.01566970907151699, -0.036652062088251114, 0.012805725447833538, -0.04416244849562645, 0.056206751614809036, 0.04215506464242935, -0.007358965929597616, -0.060498401522636414, -0.010841604322195053, -0.05302262678742409, 0.015505311079323292, 0.03398708626627922, 0.0071513052098453045, -0.05523766949772835, -0.014415093697607517, -0.002835862571373582, 0.017616525292396545, 0.00038179231341928244, 0.05478774011135101, -0.045892950147390366, 0.029972318559885025, -0.015574530698359013, 0.0009766528382897377, -0.07233504205942154, 0.0052477517165243626, 0.06136365234851837, -0.0366174541413784, 0.000989090884104371, 0.045892950147390366, -0.08251040428876877, -0.0923396646976471, -0.020004618912935257, -0.05544532835483551, 0.006350947543978691, 0.11649749428033829, -0.0003763845015782863, -0.011516500264406204, -0.01449296623468399, -0.009760038927197456, 0.0006170326378196478, 0.02310222014784813, 0.03616752102971077, -0.007116695400327444, -0.0014146865578368306, 0.027220819145441055, -0.01770305074751377, -0.01941624842584133, 0.00290508265607059, 0.01924319751560688, -0.04322797432541847, 0.06029073894023895, 0.043747127056121826, -0.054926179349422455, -0.021717818453907967, 0.03938625752925873, -0.05430319905281067, -0.012961470521986485, 0.050219208002090454, 0.0037962920032441616, 0.03765575587749481, 0.023552151396870613, -0.014899634756147861, -0.03637518361210823, -0.007951662875711918, 0.05523766949772835, 0.036825112998485565, -0.022150443866848946, -0.03724043443799019, -0.05700278282165527, -0.011516500264406204, -0.001727258786559105, 0.027047768235206604, -0.02213313803076744, 0.020471855998039246, 0.016984891146421432, -0.010383020155131817, 0.0050054811872541904, -0.002243165159597993, 0.07095064222812653, 0.033260274678468704, 0.018222201615571976, 0.011109831742942333, 0.025819111615419388, -0.012087566778063774, 0.028587916865944862, 0.01162033062428236, 0.06267883628606796, 0.008505424484610558, -0.03544070944190025, 0.04502769932150841, 0.05790264531970024, 0.050496090203523636, -0.0072118728421628475, 0.026580533012747765, -0.00037341020652092993, -0.015288997441530228, -0.011455932632088661, 0.049284737557172775, 0.0001800805184757337, 0.02055838145315647, -0.020143060013651848, -0.03227388858795166, 0.02928011864423752, -0.006701374426484108, 0.0018786777509376407, 0.04066682979464531, 0.013792112469673157, 0.010305147618055344 ]
718,521
pytorch_optimizer.optimizer.yogi
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.full_like(p, fill_value=group['initial_accumulator']) state['exp_avg_sq'] = torch.full_like(p, fill_value=group['initial_accumulator']) if group['adanorm']: state['exp_grad_norm'] = torch.zeros((1,), dtype=grad.dtype, device=grad.device) self.apply_weight_decay( p=p, grad=p.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), ) grad_p2 = grad.mul(grad) 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.addcmul_((exp_avg_sq - grad_p2).sign_(), grad_p2, value=-(1.0 - beta2)) de_nom = exp_avg_sq.sqrt().div_(bias_correction2_sq).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_(exp_avg, de_nom, value=-step_size) return loss
(self)
[ -0.014308801852166653, -0.02197663113474846, -0.02230292186141014, 0.06307005137205124, -0.0027014941442757845, -0.0020045279525220394, -0.029116638004779816, -0.051170043647289276, -0.021919051185250282, 0.014020898379385471, -0.025066794827580452, 0.007178393192589283, 0.013329930603504181, 0.08928845822811127, -0.02884792722761631, 0.04207229241728783, 0.011180250905454159, 0.05163068696856499, 0.025565827265381813, -0.009716741740703583, -0.026487119495868683, -0.06740780174732208, -0.01946227438747883, 0.05009520426392555, -0.06525811553001404, -0.01337791420519352, 0.05140036717057228, -0.008061297237873077, -0.018665742129087448, 0.0030565750785171986, -0.02013404853641987, -0.07186070829629898, 0.016803964972496033, 0.008368394337594509, 0.04038326069712639, -0.05447133630514145, 0.004426515661180019, 0.01665041781961918, -0.07362651079893112, -0.034989867359399796, -0.025527440011501312, -0.019692597910761833, -0.0019493463914841413, 0.00188456813339144, 0.006914481520652771, 0.005364601034671068, -0.037926483899354935, 0.035661641508340836, -0.01268694642931223, -0.005844440311193466, 0.0020261206664144993, -0.04736971855163574, 0.05946166068315506, -0.009006580337882042, 0.023915180936455727, 0.08030587434768677, 0.061496179550886154, -0.05765746906399727, 0.02934695966541767, -0.043914876878261566, 0.056621015071868896, -0.07182231545448303, 0.02905905619263649, -0.0024447801988571882, 0.008857830427587032, -0.011189848184585571, -0.06948070228099823, -0.02460614964365959, 0.02197663113474846, 0.046563588082790375, 0.01886727288365364, 0.011784848757088184, 0.006799320224672556, -0.007931740023195744, -0.045220036059617996, -0.01668880507349968, -0.03571922332048416, -0.051592301577329636, 0.03026825189590454, -0.0351434163749218, 0.004980729892849922, 0.0008349200361408293, -0.025853730738162994, 0.01660243235528469, 0.004827181342989206, -0.04141971096396446, -0.018848080188035965, -0.03706277161836624, -0.005014318507164717, -0.023339373990893364, 0.030057121068239212, -0.006405852269381285, 0.021535178646445274, 0.03224518895149231, 0.04994165524840355, 0.047062620520591736, -0.04138132557272911, -0.032686639577150345, -0.03836793452501297, -0.03090163879096508, 0.01886727288365364, 0.04307035729289055, 0.02892470173537731, 0.04644842445850372, 0.04095906764268875, -0.04867487773299217, -0.009323273785412312, -0.03213002532720566, 0.037888094782829285, -0.060651663690805435, -0.020940179005265236, -0.01520130317658186, -0.039730679243803024, -0.01320517249405384, -0.03332002833485603, -0.01564275473356247, -0.009663959965109825, 0.006952868774533272, -0.03439486771821976, 0.0407671295106411, 0.051515527069568634, -0.008857830427587032, -0.05028713867068291, 0.0033324826508760452, 0.009779120795428753, 0.03332002833485603, 0.04994165524840355, 0.018944047391414642, 0.022590825334191322, -0.07086264342069626, -0.003752341726794839, -0.0008265228825621307, -0.011727267876267433, -0.011564122512936592, 0.03153502568602562, -0.011727267876267433, -0.010402912274003029, 0.018752112984657288, 0.0005008320440538228, 0.008109280839562416, -0.006204319652169943, 0.007840570993721485, -0.0076918210834264755, 0.008147668093442917, 0.026487119495868683, 0.030172282829880714, 0.04364616423845291, 0.04809907078742981, 0.006679360289126635, -0.0032797004096210003, 0.022149372845888138, 0.016823159530758858, 0.024970827624201775, 0.024183891713619232, 0.0037883296608924866, 0.021400824189186096, -0.01665041781961918, 0.03282099589705467, -0.019385499879717827, -0.023550502955913544, -0.02201501838862896, -0.02898228168487549, -0.02527792379260063, 0.0022348505444824696, 0.02318582497537136, 0.005345407873392105, 0.001549880369566381, 0.04514326527714729, -0.03946196660399437, 0.01364662405103445, -0.0030013935174793005, -0.030383411794900894, 0.048329394310712814, 0.027389217168092728, -0.0363142229616642, 0.1408807635307312, 0.005950004793703556, 0.016535256057977676, -0.0272932481020689, -0.011209041811525822, 0.0035196198150515556, -0.010575653985142708, -0.018838483840227127, -0.04617971554398537, 0.004865568596869707, 0.027561958879232407, 0.012619768269360065, 0.0009746731957420707, 0.030978413298726082, 0.0023008284624665976, -0.006655368488281965, -0.012408639304339886, 0.04364616423845291, -0.009812709875404835, -0.006156335584819317, 0.026007279753684998, 0.025393085554242134, 0.016832755878567696, 0.10126524418592453, 0.011823236010968685, -0.015047754161059856, -0.009932669810950756, 0.02909744344651699, 0.004990326706320047, -0.03401099517941475, -0.010067024268209934, -0.021746307611465454, 0.06295488774776459, -0.0014695072313770652, 0.004685628693550825, -0.060613274574279785, 0.005364601034671068, 0.029078250750899315, 0.06713908910751343, 0.045527134090662, -0.0702868327498436, 0.0047528063878417015, 0.014817431569099426, 0.0659106969833374, 0.006549804005771875, -0.03713954612612724, -0.07566103339195251, 0.025853730738162994, -0.007116014137864113, 0.059231340885162354, -0.02230292186141014, 0.02944292686879635, -0.049289073795080185, -0.01545081939548254, -0.0034716359805315733, 0.0028622401878237724, -0.031304702162742615, 0.00924649927765131, -0.007840570993721485, 0.04234100133180618, 0.021285662427544594, -0.055277466773986816, -0.02994196116924286, -0.0032581074628978968, -0.0024111915845423937, -0.037888094782829285, -0.03552728891372681, -0.02742760442197323, 0.041611649096012115, -0.016333723440766335, 0.032725028693675995, 0.06218715012073517, 0.01861775666475296, -0.014788641594350338, 0.04130455106496811, -0.029922766610980034, -0.02637195773422718, -0.026352763175964355, 0.03821438550949097, -0.04859810322523117, -0.02268679253757, 0.06464392691850662, 0.041496485471725464, 0.049250684678554535, -0.051131654530763626, 0.0329553484916687, -0.05397230386734009, -0.055162303149700165, 0.04767681285738945, -0.0387326143682003, 0.013838560320436954, 0.04452906921505928, -0.03999938815832138, 0.05627553164958954, 0.04191874340176582, 0.07093941420316696, 0.08844394236803055, -0.05585327371954918, -0.030632928013801575, 0.003354075364768505, 0.035834383219480515, 0.011583316139876842, 0.011756057851016521, -0.006866497453302145, -0.03468276932835579, 0.0748932883143425, -0.05178423598408699, -0.07976845651865005, -0.005019117146730423, -0.053780365735292435, 0.03621825575828552, -0.016506465151906013, -0.00670815072953701, 0.06376101821660995, 0.005067101214081049, 0.039769064635038376, 0.006242706906050444, 0.09949943423271179, 0.011679284274578094, 0.07312747836112976, 0.008277224376797676, -0.016660014167428017, 0.01042210590094328, -0.03715873882174492, 0.0170246921479702, 0.06978780031204224, -0.011055492796003819, -0.003445244859904051, -0.0009296882781200111, -0.017120659351348877, -0.020901791751384735, 0.00911694299429655, 0.005129480268806219, 0.021362436935305595, -0.023377761244773865, -0.004558471497148275, -0.010191782377660275, -0.0034812327940016985, 0.023262599483132362, -0.005930811166763306, -0.09742653369903564, -0.007394320797175169, -0.058386821299791336, 0.02385760098695755, 0.0634923130273819, -0.023742439225316048, 0.02927018515765667, 0.02867518551647663, 0.03445244953036308, -0.028540831059217453, -0.022283729165792465, 0.06967263668775558, 0.0340493842959404, -0.023915180936455727, -0.021861469373106956, -0.07984522730112076, -0.005825246684253216, 0.05585327371954918, 0.03040260635316372, -0.03723551332950592, -0.015613964758813381, 0.04414519667625427, -0.00872347503900528, 0.02809937857091427, -0.055622950196266174, 0.06088198721408844, 0.029250992462038994, -0.02898228168487549, 0.013896140269935131, 0.026007279753684998, -0.02888631448149681, 0.02742760442197323, 0.02226453460752964, 0.03337761014699936, 0.01744695007801056, -0.010047830641269684, -0.022629212588071823, -0.012523801065981388, 0.05132359266281128, 0.025124376639723778, 0.03921245038509369, -0.00899218488484621, -0.017341384664177895, 0.02527792379260063, -0.07781071215867996, 0.022859536111354828, 0.013934527523815632, -0.0498264916241169, 0.09604459255933762, 0.10095814615488052, 0.010460492223501205, -0.043799713253974915, -0.03330083563923836, 0.04080551862716675, -0.0181571114808321, 0.018358644098043442, -0.04487455263733864, 0.0018329854356124997, 0.022110985592007637, -0.041573259979486465, -0.024510182440280914, -0.04195713251829147, -0.011161057278513908, 0.06928876787424088, 0.041534874588251114, 0.03606470674276352, -0.047484878450632095, -0.029366154223680496, 0.03266744688153267, 0.03681325539946556, -0.030172282829880714, 0.016583239659667015, -0.04955778270959854, 0.030594540759921074, -0.06299328058958054, 0.06045972928404808, 0.021611953154206276, 0.006041174288839102, 0.005738875828683376, -0.06237908452749252, 0.037427451461553574, 0.037638578563928604, 0.031419865787029266, -0.04180358350276947, -0.021458404138684273, -0.03174615651369095, -0.000127607214380987, 0.011573719792068005, 0.014817431569099426, -0.01109388004988432, -0.07527715712785721, -0.0009314876515418291, 0.04783036187291145, 0.023377761244773865, 0.06710070371627808, -0.013003639876842499, 0.005604520905762911, -0.03965390473604202, 0.010086217895150185, 0.009361661039292812, -0.040152937173843384, -0.018972838297486305, -0.018099531531333923, -0.008104482665657997, 0.0067321425303816795, 0.045642297714948654, 0.014961383305490017, 0.03001873381435871, 0.03022986464202404, -0.042033907026052475, -0.04491294175386429, -0.04345422983169556, -0.01520130317658186, -0.05009520426392555, -0.00022657403314951807, -0.034106962382793427, -0.041611649096012115, -0.021535178646445274, -0.020825017243623734, -0.03262905776500702, 0.010143798775970936, -0.011784848757088184, 0.04349261522293091, 0.05090133100748062, 0.016583239659667015, -0.007187990006059408, 0.012043961323797703, -0.009942266158759594, -0.016381707042455673, -0.006636174861341715, -0.033607929944992065, 0.058425210416316986, -0.03957713022828102, -0.09819427877664566, 0.01996130682528019, 0.005657303147017956, 0.009932669810950756, 0.05650585517287254, 0.0005575130926445127, 0.02445260062813759, 0.006377061828970909, -0.048367783427238464, -0.03195728361606598, -0.011554526165127754, 0.026314375922083855, 0.011688880622386932, 0.015249286778271198, -0.03259067237377167, 0.020114855840802193, -0.010786782950162888, -0.01042210590094328, 0.07861684262752533, 0.046064555644989014, -0.01121863815933466, 0.007864562794566154, -0.010172588750720024, -0.02948131412267685, 0.0260456670075655, -0.021285662427544594, -0.02063308097422123, -0.023512115702033043, -0.03320486471056938, -0.007447103038430214, 0.035028256475925446, -0.03965390473604202, -0.005350206047296524, -0.055162303149700165, 0.025335505604743958, 0.03161180019378662, -0.009558395482599735, 0.03619906306266785, 0.011372187174856663, 0.014827028848230839, 0.04168842360377312, 0.06594908982515335, -0.04349261522293091, -0.06621779501438141, 0.04783036187291145, 0.031227929517626762, -0.05262875184416771, -0.05493197962641716, 0.031055187806487083, 0.01309960801154375, 0.08368393778800964, -0.03786890208721161, 0.01879050023853779, 0.04218745604157448, -0.05362682044506073, -0.014366382732987404, 0.009663959965109825, -0.030421799048781395, -0.05777262896299362, 0.006909683346748352, -0.04848294332623482, 0.019846145063638687, -0.002651110989972949, -0.019231950864195824, 0.0009080955060198903, 0.0006465832120738924, -0.015901867300271988, -0.04122777655720711, 0.051054880023002625, 0.06940393149852753, 0.045220036059617996, -0.04905875027179718, 0.025316311046481133, 0.005887625738978386, -0.016458481550216675, -0.005782061256468296, -0.00916492659598589, 0.04272487387061119, -0.0009374856599606574, -0.007471094839274883, 0.0005950005142949522, -0.0033324826508760452, -0.024663729593157768, 0.01584428735077381, 0.05320455878973007, 0.06748457252979279, -0.01541243214160204, -0.04126616194844246, -0.017494933679699898, -0.06621779501438141, -0.136043980717659, -0.040191322565078735, 0.005067101214081049, -0.012773317284882069, 0.01727420836687088, -0.014836625196039677, -0.031803734600543976, 0.03435647860169411, 0.019980501383543015, 0.01672719046473503, -0.031304702162742615, -0.010153395123779774, -0.03395341709256172, 0.028444861993193626, -0.01798436976969242, 0.02364647202193737, 0.019673403352499008, 0.018848080188035965, -0.034740351140499115, 0.026026472449302673, 0.013137995265424252, 0.002082501770928502, -0.0477919764816761, -0.05850198492407799, 0.005172665696591139, -0.03165018931031227, 0.004831979982554913, 0.026986151933670044, 0.03414535149931908, -0.02562340907752514, -0.05047907307744026, 0.01978856511414051, -0.028233733028173447, 0.004260971210896969, -0.008545934222638607, -0.01285009179264307, -0.03593035414814949, 0.0028550426941365004, 0.024164697155356407, -0.037427451461553574, 0.003925084136426449, -0.02562340907752514, 0.04372293874621391, -0.045719072222709656, -0.0028310506604611874, -0.012994043529033661, -0.0025767360348254442, 0.061496179550886154, -0.11024783551692963, 0.04053680971264839, 0.0016218562377616763, 0.024433407932519913, -0.036544546484947205, 0.01572912558913231, -0.08291620016098022, -0.08092007040977478, 0.011295412667095661, 0.01375218853354454, -0.04130455106496811, 0.011314606294035912, 0.019903726875782013, 0.01946227438747883, -0.05055584758520126, -0.002299628918990493, 0.04894359037280083, 0.009731137193739414, -0.016170578077435493, 0.003193329321220517, -0.02520114928483963, 0.04168842360377312, 0.01719743385910988, -0.023742439225316048, -0.0476384274661541, -0.030959218740463257, 0.0038651039358228445, -0.014222430996596813, -0.07673586905002594, -0.021266469731926918, -0.022110985592007637, -0.00031999271595850587, 0.061995211988687515, 0.011823236010968685, -0.03950035572052002, 0.004145809914916754, -0.039097290486097336, -0.008166861720383167, 0.024433407932519913, -0.022322114557027817, 0.05186101049184799, -0.07485490292310715, -0.022130180150270462, -0.029404541477560997, -0.049365848302841187, 0.0387326143682003, 0.030844058841466904, -0.03773454576730728, 0.06268618255853653, 0.009323273785412312, 0.05174585059285164, 0.03408776968717575, -0.028310507535934448, -0.06260940432548523, -0.018771305680274963, 0.044298745691776276, -0.02180388942360878, -0.014711867086589336, -0.016208965331315994, -0.006962465588003397, -0.02318582497537136, 0.03760019317269325, 0.04621810466051102, 0.0017406163970008492, -0.010844363830983639, 0.058348435908555984, -0.030095508322119713, 0.024164697155356407, 0.026103246957063675, 0.0006243906682357192, 0.033819060772657394, 0.03197648003697395, 0.01856977306306362, -0.03556567430496216, -0.0042753666639328, -0.02314743958413601, -0.01978856511414051, -0.005513351410627365, -0.031227929517626762, -0.0016866344958543777, -0.0005203255568630993, -0.02067146822810173, -0.01958703249692917, -0.019846145063638687, -0.08859749138355255, -0.035412125289440155, -0.06433682888746262, -0.0009722739923745394, 0.02197663113474846, -0.026429537683725357, 0.033569544553756714, -0.03921245038509369, -0.03754261136054993, 0.025393085554242134, 0.029212605208158493, 0.037254709750413895, -0.021919051185250282, 0.039692290127277374, 0.04030648618936539, -0.0027686716057360172, 0.001525888335891068, 0.02414550445973873, -0.003121353453025222, 0.0027686716057360172, -0.05370359495282173, -0.020095661282539368, 0.021208887919783592, 0.026602279394865036, 0.025297118350863457, -0.07884716242551804, -0.03026825189590454, -0.028943894430994987, 0.006055569741874933, -0.06034456565976143, 0.010508476756513119, -0.03228357434272766, -0.01555638387799263, -0.0035556077491492033, 0.0385790653526783, 0.03345438092947006, 0.035834383219480515, -0.02028759755194187, 0.01773485355079174, 0.024471795186400414, 0.004666435532271862, 0.017293401062488556, -0.027619538828730583, 0.017005497589707375, 0.002807058859616518, -0.0010052629513666034, -0.017178239300847054, -0.027024539187550545, -0.0635690838098526, 0.0475616529583931, -0.01785961166024208, -0.025393085554242134, 0.03228357434272766, -0.0000376748685084749, -0.04502810165286064, -0.018723322078585625, 0.03758100047707558, -0.01597864180803299, 0.022629212588071823, 0.007183191366493702, 0.02042195200920105, 0.011544928885996342, -0.005590125452727079, 0.00895379763096571, -0.021535178646445274, -0.004165003541857004, 0.054663270711898804, 0.0187425147742033, -0.027158893644809723, 0.0058492389507591724, 0.017168642953038216, 0.03241793066263199, 0.014788641594350338, -0.033819060772657394, 0.028963088989257812, 0.0409206785261631, -0.019807757809758186, -0.021899856626987457, 0.027235668152570724, -0.07343457639217377, 0.07116973400115967, 0.0499032661318779, 0.031765349209308624, 0.04641003906726837, 0.07389522343873978, -0.055699724704027176, 0.018838483840227127, -0.07155361026525497, -0.07447102665901184, -0.07604490220546722, -0.014932593330740929, -0.023742439225316048, 0.07892393320798874, 0.03232196345925331, 0.023723244667053223, 0.021266469731926918, 0.05719682201743126, 0.025968892499804497 ]
718,536
pytorch_optimizer.optimizer.agc
agc
Clip gradient values in excess of the unit wise norm. :param p: torch.Tensor. parameter. :param grad: torch.Tensor, gradient. :param agc_eps: float. agc epsilon to clip the norm of parameter. :param agc_clip_val: float. norm clip. :param eps: float. simple stop from div by zero and no relation to standard optimizer eps.
def agc(p: torch.Tensor, grad: torch.Tensor, agc_eps: float, agc_clip_val: float, eps: float = 1e-6) -> torch.Tensor: r"""Clip gradient values in excess of the unit wise norm. :param p: torch.Tensor. parameter. :param grad: torch.Tensor, gradient. :param agc_eps: float. agc epsilon to clip the norm of parameter. :param agc_clip_val: float. norm clip. :param eps: float. simple stop from div by zero and no relation to standard optimizer eps. """ p_norm = unit_norm(p).clamp_(agc_eps) g_norm = unit_norm(grad) max_norm = p_norm * agc_clip_val clipped_grad = grad * (max_norm / g_norm.clamp_min_(eps)) return torch.where(g_norm > max_norm, clipped_grad, grad)
(p: torch.Tensor, grad: torch.Tensor, agc_eps: float, agc_clip_val: float, eps: float = 1e-06) -> torch.Tensor
[ -0.05853857100009918, 0.013138116337358952, -0.006725671235471964, 0.023387586697936058, 0.039918988943099976, -0.017349272966384888, -0.015269797295331955, -0.07837625592947006, 0.024849310517311096, -0.06936229020357132, 0.0008330957498401403, -0.00495942123234272, 0.033689260482788086, 0.020986182615160942, -0.034698545932769775, 0.03482035920023918, -0.01715785823762417, 0.0035825292579829693, 0.02035972848534584, -0.04764524847269058, -0.004121975041925907, -0.09689143300056458, 0.006547306198626757, -0.012407253496348858, -0.04075426235795021, -0.025475764647126198, 0.015443812124431133, 0.008944359607994556, -0.08993083983659744, -0.025562770664691925, 0.045174237340688705, -0.07287739217281342, 0.032801784574985504, 0.02841661311686039, 0.06090517342090607, 0.02039453200995922, 0.025945603847503662, -0.027302918955683708, -0.09250625967979431, -0.04792366921901703, -0.02404884248971939, -0.01961146667599678, -0.04844571650028229, 0.014486730098724365, 0.0686662346124649, 0.006107918918132782, 0.05018586292862892, 0.009274987503886223, -0.012494261376559734, -0.010171163827180862, -0.014565037563443184, -0.007360825315117836, 0.02737252414226532, 0.018254149705171585, -0.020533744245767593, 0.04841091111302376, 0.041450321674346924, 0.03168809041380882, 0.020777365192770958, -0.034663744270801544, -0.000021615898731397465, -0.06758733838796616, 0.004137201234698296, -0.04942019656300545, 0.04479140415787697, 0.00861373171210289, -0.08074285835027695, -0.018915407359600067, 0.013599255122244358, 0.010745412670075893, -0.03167068958282471, -0.01700124330818653, 0.019211232662200928, -0.042424801737070084, 0.03027857095003128, -0.04809768497943878, 0.028329607099294662, 0.03640389069914818, -0.014460627920925617, -0.06066155433654785, 0.017592893913388252, 0.004185055382549763, 0.037830814719200134, 0.05258726701140404, 0.1022510826587677, -0.03709995001554489, -0.03758719190955162, 0.002668951638042927, -0.009997148998081684, 0.0324537567794323, 0.11025576293468475, -0.008818198926746845, 0.0046070413663983345, 0.037830814719200134, 0.05596315488219261, 0.0539097785949707, -0.02088177390396595, 0.0171926598995924, -0.014739051461219788, 0.027790160849690437, 0.05070790648460388, 0.07698413729667664, -0.011189150623977184, 0.0004847942909691483, 0.07837625592947006, -0.02577158808708191, 0.015896249562501907, 0.0006182962679304183, 0.024814506992697716, -0.016844630241394043, -0.013068510219454765, -0.0638982281088829, 0.02695488929748535, -0.08088207244873047, -0.01670541986823082, 0.01066710613667965, -0.017505886033177376, -0.0021284183021634817, 0.02587599866092205, -0.006216677837073803, 0.04113709554076195, 0.019628867506980896, -0.004409099463373423, 0.012485560961067677, 0.007121555041521788, 0.029443301260471344, -0.011920012533664703, 0.0071302554570138454, -0.07406069338321686, -0.029443301260471344, 0.005524969194084406, -0.0026428494602441788, 0.03355005010962486, -0.04479140415787697, 0.0813693106174469, -0.05540630593895912, 0.02342239022254944, 0.03584704548120499, -0.029773928225040436, -0.034141700714826584, 0.022465307265520096, 0.039953794330358505, -0.021264607086777687, 0.018706588074564934, 0.04451297968626022, -0.006290634162724018, -0.011145646683871746, -0.002534090308472514, 0.007778460625559092, 0.04642714187502861, -0.02819039486348629, 0.027250714600086212, -0.00481150858104229, -0.029895739629864693, 0.09466403722763062, -0.016461798921227455, -0.02845141664147377, -0.04733201861381531, -0.0374479815363884, -0.02721591107547283, -0.022813336923718452, -0.017401477321982384, -0.01648790016770363, 0.006194926332682371, 0.00048180343583226204, -0.04600950703024864, 0.0112065514549613, 0.01834115758538246, -0.04127630591392517, -0.004789756610989571, -0.018689187243580818, -0.13225123286247253, -0.015382906422019005, -0.028329607099294662, -0.032279741019010544, -0.014034291729331017, -0.03330642729997635, 0.02498852275311947, -0.027007093653082848, -0.013547050766646862, 0.03877049311995506, 0.051438767462968826, 0.022587118670344353, -0.00575118837878108, 0.02368341200053692, 0.006142721977084875, -0.016174674034118652, 0.013808072544634342, -0.008348358795046806, -0.020516343414783478, -0.038283251225948334, -0.03355005010962486, -0.0035564270801842213, -0.006060064770281315, -0.012459457851946354, -0.08109088987112045, 0.00214908248744905, 0.0206555537879467, 0.036786723881959915, 0.07259896397590637, -0.02692008577287197, 0.035777438431978226, 0.03151407837867737, -0.013494846411049366, 0.04232039302587509, 0.006090517155826092, -0.001563957892358303, 0.00316489371471107, -0.023091761395335197, -0.005424910690635443, -0.012276742607355118, 0.024918915703892708, 0.027790160849690437, -0.033724065870046616, -0.01928083784878254, -0.017253564670681953, 0.03932734206318855, 0.02263932302594185, 0.0016770674847066402, 0.02551056630909443, -0.09222783148288727, -0.03530759736895561, 0.06936229020357132, -0.03217533230781555, 0.08916517347097397, -0.010884624905884266, -0.04235519841313362, 0.04444337636232376, 0.024675296619534492, -0.015591724775731564, 0.0271811094135046, -0.0474364310503006, 0.005933904089033604, -0.039988595992326736, 0.05739007517695427, 0.028329607099294662, 0.0017423230456188321, 0.049141775816679, -0.04371251165866852, 0.011215252801775932, -0.01879359595477581, -0.009248885326087475, -0.05018586292862892, 0.06153162568807602, 0.015330702066421509, -0.016940338537096977, -0.004781056195497513, 0.00031676128855906427, 0.05387497693300247, 0.05303970351815224, -0.05860817804932594, -0.019907290115952492, -0.03180990368127823, 0.006616911850869656, 0.005159538239240646, 0.039953794330358505, -0.033236823976039886, 0.025562770664691925, 0.03327162563800812, -0.010519193485379219, -0.023126564919948578, 0.0035455510951578617, 0.025458361953496933, 0.011363165453076363, 0.0001445138332201168, 0.005703334230929613, 0.0274073276668787, -0.01386897824704647, 0.007791511714458466, 0.01745368167757988, 0.014973971992731094, 0.06010470539331436, 0.03341083973646164, -0.03482035920023918, 0.009205382317304611, 0.030452586710453033, 0.012668276205658913, 0.010867223143577576, 0.03196651488542557, 0.0031692441552877426, 0.06598640233278275, 0.016305185854434967, -0.05415340140461922, 0.03772640600800514, -0.01513928547501564, -0.012033121660351753, -0.02453608438372612, 0.010980332270264626, -0.004180705174803734, 0.020794766023755074, 0.00423290953040123, 0.0076610008254647255, 0.10420005023479462, -0.017166558653116226, 0.0679701715707779, 0.038840100169181824, 0.08310946077108383, -0.046670764684677124, -0.027320319786667824, -0.012502961792051792, 0.09821394085884094, -0.00005108285404276103, 0.01228544395416975, 0.004737552255392075, -0.025945603847503662, 0.029634717851877213, -0.03542941063642502, 0.017923522740602493, 0.013599255122244358, 0.012772684916853905, -0.0661604180932045, -0.0583297535777092, -0.04381692036986351, 0.04813248664140701, -0.020377131178975105, -0.011250055395066738, 0.024692697450518608, -0.08234379440546036, 0.06306295841932297, -0.049942243844270706, -0.013955985195934772, 0.03584704548120499, 0.07461753487586975, -0.010693208314478397, -0.07075440883636475, -0.04708839952945709, 0.005011625587940216, 0.06222768500447273, 0.020377131178975105, -0.02822519652545452, -0.05464063957333565, 0.037830814719200134, -0.005494516808539629, 0.019037216901779175, 0.003045258577913046, 0.022291293367743492, 0.05185640603303909, -0.004981173202395439, -0.003521624021232128, -0.08206537365913391, 0.008518023416399956, 0.06560356914997101, -0.0291648767888546, 0.04071945697069168, 0.021490825340151787, 0.02345719188451767, -0.017236163839697838, -0.019489655271172523, -0.008283103816211224, -0.06977992504835129, 0.05321371927857399, -0.036229878664016724, -0.006877934094518423, 0.05575433745980263, 0.06243650242686272, 0.04134591296315193, 0.04451297968626022, -0.04019741341471672, 0.04165913909673691, -0.029547709971666336, 0.055058278143405914, 0.007952475920319557, 0.027581343427300453, -0.018741391599178314, -0.011824304237961769, 0.05446662753820419, 0.0016390017699450254, -0.022239089012145996, -0.055058278143405914, -0.03356745094060898, -0.0007417380111292005, -0.05624157562851906, 0.056624408811330795, -0.07085882127285004, -0.039605762809515, -0.03640389069914818, -0.045243844389915466, -0.047297216951847076, 0.017871318385004997, 0.0743391141295433, 0.02460568957030773, 0.03321942314505577, 0.0007069350685924292, 0.008061234839260578, 0.009161878377199173, -0.020011700689792633, 0.00019087246619164944, -0.009344593621790409, -0.01032777689397335, 0.007326022256165743, 0.019333042204380035, 0.02737252414226532, 0.005633728578686714, 0.01834115758538246, -0.05025546997785568, 0.0058904001489281654, 0.02390963025391102, 0.003995814360678196, -0.03375886753201485, -0.004802808165550232, 0.0009559937170706689, 0.023074360564351082, 0.024936318397521973, -0.025754187256097794, -0.02263932302594185, -0.05533669888973236, -0.01898501254618168, -0.026728671044111252, 0.0020892650354653597, 0.09292389452457428, 0.01329472940415144, 0.0012104903580620885, 0.02848622016608715, 0.07329502701759338, -0.003771770279854536, -0.05150837451219559, -0.05947825312614441, -0.05321371927857399, -0.025597574189305305, -0.009344593621790409, 0.002764659933745861, -0.08199576288461685, 0.032088324427604675, 0.020307524129748344, 0.019681071862578392, -0.06466389447450638, 0.017053447663784027, -0.033724065870046616, -0.07089362293481827, -0.05627638101577759, -0.004550486337393522, -0.011058639734983444, -0.008844301104545593, -0.016540104523301125, 0.0161137692630291, 0.03344564139842987, -0.00047881255159154534, 0.0635501965880394, 0.018549975007772446, -0.01368626207113266, 0.03706514835357666, -0.006908386945724487, 0.01834115758538246, 0.03367185965180397, -0.025719383731484413, -0.025197340175509453, -0.009840535931289196, 0.0009864462772384286, -0.04799327626824379, -0.03128785640001297, 0.017183959484100342, 0.01898501254618168, 0.06118359789252281, 0.04071945697069168, 0.006373291369527578, 0.016287783160805702, -0.042529214173555374, 0.01820194534957409, -0.0006906211492605507, 0.030696207657456398, 0.022569717839360237, 0.0369955413043499, 0.0006797452224418521, -0.06167083978652954, -0.0038718287833034992, 0.09041807800531387, 0.06873583793640137, 0.017166558653116226, 0.0006966029177419841, 0.01983768492937088, 0.03598625585436821, -0.05102113261818886, -0.004506982862949371, -0.03363705798983574, 0.036821529269218445, -0.006042663473635912, -0.06814418733119965, 0.06960590928792953, 0.06915347278118134, 0.04799327626824379, 0.040928278118371964, -0.01912422478199005, -0.018880603834986687, 0.06501191854476929, 0.010580098256468773, 0.04339928552508354, -0.00889215525239706, 0.026989692822098732, -0.01301630586385727, 0.020237918943166733, 0.005442312452942133, -0.054605837911367416, -0.002453608438372612, -0.008639833889901638, -0.021020986139774323, -0.04604431241750717, 0.03852687403559685, -0.010484390892088413, 0.046253129839897156, -0.010414784774184227, -0.028138190507888794, 0.028851650655269623, -0.06198406592011452, -0.04078906401991844, 0.0408586710691452, -0.04186795651912689, -0.06755253672599792, 0.02270892821252346, 0.010545295663177967, 0.03386327624320984, 0.005698984023183584, -0.003937084227800369, 0.015678731724619865, 0.026746071875095367, 0.005437961779534817, -0.016722820699214935, -0.02173444628715515, -0.027250714600086212, 0.014086496084928513, -0.029843535274267197, -0.012998904101550579, 0.049350593239068985, -0.027494335547089577, 0.01111084409058094, -0.0030822367407381535, 0.0005927378660999238, 0.006725671235471964, 0.0036630111280828714, -0.032801784574985504, 0.012337648309767246, -0.011885209940373898, 0.01938524655997753, 0.045104630291461945, 0.06000029668211937, -0.0071128541603684425, 0.004802808165550232, -0.053561750799417496, -0.013773269951343536, -0.057181257754564285, -0.02222168818116188, 0.019454851746559143, 0.07719295471906662, 0.08150852471590042, 0.013660159893333912, 0.005725086200982332, 0.052935294806957245, 0.0032693026587367058, -0.006838780827820301, -0.03455933555960655, 0.010971631854772568, -0.008548475801944733, -0.004117624834179878, -0.038840100169181824, 0.025423560291528702, 0.00889650546014309, 0.06884025037288666, 0.00152915483340621, -0.025406157597899437, -0.028573226183652878, -0.011397968046367168, -0.022343497723340988, -0.07594005018472672, 0.02822519652545452, -0.002755959052592516, -0.050847120583057404, 0.014799957163631916, -0.003245375584810972, -0.004585289396345615, -0.010501791723072529, -0.034994371235370636, -0.007543540559709072, -0.08025562018156052, -0.02651985175907612, 0.012946699745953083, -0.026189224794507027, 0.042007166892290115, 0.014173503965139389, -0.0315488800406456, 0.020986182615160942, -0.017923522740602493, 0.014025591313838959, -0.06281933933496475, -0.023996638134121895, -0.0565200001001358, 0.022239089012145996, 0.06769175082445145, 0.01445192750543356, 0.026780875399708748, -0.02434466779232025, -0.02382262423634529, 0.007199861574918032, 0.06943190097808838, 0.016618411988019943, -0.06299334764480591, -0.03897931054234505, -0.027250714600086212, -0.03647349774837494, 0.07266857475042343, -0.010188565589487553, 0.04075426235795021, -0.044130150228738785, -0.019298238679766655, 0.04656635597348213, -0.013373035937547684, -0.009596914984285831, -0.0352901965379715, 0.009214082732796669, -0.032871391624212265, 0.006351539399474859, -0.05627638101577759, -0.024118447676301003, 0.061914458870887756, -0.0853368490934372, 0.010031952522695065, 0.009840535931289196, -0.024884114041924477, -0.07065000385046005, 0.008400563150644302, 0.029739126563072205, 0.05314411222934723, -0.015226293355226517, -0.010101557709276676, 0.010014550760388374, 0.031200850382447243, 0.0019489655969664454, 0.0013812422985211015, 0.025684582069516182, -0.04110229015350342, -0.0644550770521164, 0.03957096114754677, -0.0027929372154176235, 0.01722746342420578, -0.01779301092028618, 0.019889889284968376, -0.07628808170557022, -0.020725160837173462, 0.033358633518218994, -0.006151422392576933, -0.013973386958241463, -0.03605586290359497, -0.015087081119418144, 0.04336448386311531, -0.028294803574681282, -0.019002413377165794, -0.02110799215734005, 0.014739051461219788, -0.019524458795785904, -0.004789756610989571, -0.017366675660014153, -0.0652555450797081, 0.041032686829566956, 0.02211727946996689, 0.005638078786432743, -0.012885794043540955, -0.025997808203101158, 0.033254224807024, 0.040023401379585266, 0.043642908334732056, -0.033463042229413986, -0.026050012558698654, 0.029251884669065475, -0.008265702053904533, 0.03382847458124161, 0.017349272966384888, -0.018428165465593338, -0.00977092981338501, 0.027302918955683708, 0.03146187216043472, -0.013433940708637238, 0.014608540572226048, -0.020638152956962585, -0.001058771158568561, -0.08575448393821716, 0.03520318865776062, 0.0037565440870821476, -0.046705566346645355, 0.029217081144452095, -0.030261170119047165, -0.056067563593387604, -0.016688017174601555, 0.038840100169181824, 0.026311034336686134, 0.03513358533382416, -0.007273817900568247, 0.016305185854434967, 0.0077828108333051205, -0.009527308866381645, -0.014791256748139858, 0.0422159843146801, -0.012433355674147606, -0.04447817802429199, -0.014295314438641071, -0.008117789402604103, -0.023317981511354446, 0.04273803159594536, -0.03807443380355835, -0.04646194726228714, 0.012215837836265564, 0.0013899430632591248, 0.039814580231904984, -0.012798787094652653, 0.03266257420182228, -0.05178679898381233, 0.03537720441818237, -0.011171748861670494, -0.0043612453155219555, 0.05739007517695427, -0.008674636483192444, -0.01827155239880085, 0.0036238578613847494, 0.007404328789561987, 0.04124150425195694, -0.018898004665970802, -0.016548804938793182, 0.04486101120710373, 0.010754113085567951, 0.002921273233368993, -0.03034817799925804, 0.006268882658332586, 0.024362068623304367, -0.02845141664147377, 0.0770537480711937, 0.019072020426392555, -0.021508226171135902, 0.011250055395066738, -0.04656635597348213, -0.00143779709469527, -0.040371429175138474, 0.014156102202832699, -0.015165388584136963, -0.016696717590093613, 0.00502467667683959, 0.044095344841480255, 0.010362580418586731, -0.02535395324230194, 0.058225344866514206, -0.011023836210370064, 0.0027255064342170954, -0.027772758156061172, -0.034211304038763046, 0.004324267152696848, 0.03099203296005726, 0.006316736340522766, -0.06299334764480591, -0.056589607149362564, -0.0035172738134860992, -0.022065075114369392, -0.08276142925024033, 0.008222198113799095, -0.009797031991183758, 0.015087081119418144, 0.042041972279548645, 0.05370096117258072, 0.013668861240148544, 0.009779630228877068, -0.04848051816225052, 0.010989033617079258, 0.006038312800228596, -0.053492143750190735, -0.0320013165473938, -0.012772684916853905, 0.0274073276668787, -0.018445566296577454, 0.015356804244220257, -0.00863113347440958, 0.017758209258317947, 0.007360825315117836, 0.007278168108314276 ]
718,538
pytorch_optimizer.optimizer.gc
centralize_gradient
Gradient Centralization (GC). :param x: torch.Tensor. gradient. :param gc_conv_only: bool. 'False' for both conv & fc layers.
def centralize_gradient(x: torch.Tensor, gc_conv_only: bool = False): r"""Gradient Centralization (GC). :param x: torch.Tensor. gradient. :param gc_conv_only: bool. 'False' for both conv & fc layers. """ size: int = x.dim() if (gc_conv_only and size > 3) or (not gc_conv_only and size > 1): x.add_(-x.mean(dim=tuple(range(1, size)), keepdim=True))
(x: torch.Tensor, gc_conv_only: bool = False)
[ -0.05809573829174042, -0.05047662556171417, 0.035026755183935165, 0.07135863602161407, 0.04007089138031006, 0.03724899888038635, 0.0009733329061418772, 0.005330733954906464, 0.07499182969331741, -0.058695390820503235, 0.02865985967218876, -0.02301607094705105, 0.020352909341454506, -0.04571468010544777, -0.014797305688261986, -0.029294785112142563, -0.043174974620342255, 0.015273500233888626, 0.006587358191609383, -0.019135966897010803, 0.01821885257959366, -0.054180361330509186, -0.026684533804655075, -0.04437427967786789, -0.019294699653983116, 0.028606947511434555, -0.01906541921198368, 0.021975498646497726, -0.012936619110405445, -0.012292874976992607, -0.008060034364461899, -0.028483489528298378, -0.018359946087002754, -0.016702083870768547, 0.006715225521475077, -0.0012709544971585274, 0.09107661992311478, 0.009797262959182262, -0.02559104934334755, -0.02202840894460678, -0.041164375841617584, 0.003467842936515808, -0.056966979056596756, 0.00901242345571518, 0.03714317828416824, 0.04606741666793823, -0.03172867000102997, 0.059753600507974625, -0.02298079803586006, 0.014250563457608223, -0.0063051688484847546, -0.10299912095069885, -0.011710858903825283, -0.0006013058591634035, 0.021340571343898773, 0.0032121087424457073, 0.09502727538347244, 0.027178363874554634, -0.02643761783838272, -0.005970069207251072, 0.008836055174469948, -0.029876800253987312, -0.00795862264931202, -0.040494177490472794, -0.011657948605716228, 0.021534577012062073, -0.03813083842396736, 0.009329886175692081, 0.044515375047922134, -0.013201171532273293, 0.0009744351846165955, -0.014832579530775547, 0.03162284567952156, -0.034056730568408966, -0.020194176584482193, -0.08402188867330551, 0.02883622795343399, 0.002660957630723715, 0.019435793161392212, -0.0362260602414608, -0.041940394788980484, -0.007182601373642683, -0.00972671527415514, 0.03901268169283867, 0.07442744821310043, -0.05527384579181671, -0.023739181458950043, 0.002513249171897769, 0.01897723600268364, 0.005608513951301575, 0.03208140656352043, -0.007473609410226345, 0.03192267194390297, 0.006331623997539282, 0.02137584611773491, 0.05548548698425293, -0.033404167741537094, 0.007464790716767311, 0.014717940241098404, 0.04504447802901268, -0.002583796391263604, 0.04056472331285477, -0.01925942488014698, -0.010661467909812927, 0.06310459971427917, -0.015449868515133858, -0.008739052340388298, -0.06617341190576553, -0.039929796010255814, -0.032927971333265305, 0.008518591523170471, -0.058413200080394745, 0.059929970651865005, -0.017292918637394905, 0.011075933463871479, 0.012469243258237839, -0.05347488820552826, -0.01695781759917736, -0.04391572251915932, 0.00382278417237103, 0.03929487243294716, -0.010388096794486046, 0.0075265197083354, 0.0033752494491636753, 0.013765550218522549, 0.06448027491569519, 0.03171103075146675, 0.039153777062892914, 0.01955925114452839, 0.04419791325926781, 0.02329825982451439, 0.004201976116746664, -0.043457165360450745, -0.07746098190546036, 0.02807784266769886, -0.04966533184051514, 0.002528681419789791, -0.000876330304890871, -0.008963922038674355, -0.012583882547914982, 0.033016156405210495, 0.03497384488582611, -0.022557513788342476, 0.08345750719308853, 0.02790147438645363, 0.05950668454170227, -0.021393481642007828, 0.011296393349766731, 0.0025374998804181814, -0.025326495990157127, 0.0039330143481493, 0.04493865743279457, 0.01848340407013893, -0.04398626834154129, -0.04313969984650612, 0.04458592087030411, -0.05453309789299965, 0.011463943868875504, -0.04945368692278862, 0.009903083555400372, -0.019506340846419334, 0.030300084501504898, -0.02710781805217266, -0.007173783145844936, -0.00018766695575322956, -0.043562985956668854, 0.09361632913351059, -0.040211986750364304, -0.049206774681806564, 0.03940069302916527, 0.022592786699533463, -0.049206774681806564, 0.014814942143857479, 0.02654343843460083, -0.0011982026044279337, 0.061376191675662994, -0.02645525336265564, -0.03954178839921951, -0.044021543115377426, 0.018342310562729836, 0.05809573829174042, 0.0032363594509661198, 0.04313969984650612, -0.02146402932703495, -0.012416332960128784, -0.019788529723882675, -0.017010727897286415, -0.002601433312520385, 0.05185229703783989, -0.003948446828871965, 0.013262900523841381, 0.007879256270825863, -0.016031883656978607, -0.009753170423209667, 0.01984144002199173, -0.06430390477180481, -0.01088192779570818, -0.0145680271089077, 0.014726758003234863, -0.010149999521672726, -0.06455081701278687, -0.003121719928458333, 0.0072884224355220795, -0.04349243640899658, -0.006627041380852461, -0.016904907301068306, 0.03130538389086723, 0.03553822636604309, -0.045573584735393524, 0.018994873389601707, 0.028518764302134514, 0.0460321418941021, -0.03536185622215271, 0.02291025035083294, -0.024850301444530487, -0.05686115846037865, 0.021023109555244446, -0.01848340407013893, 0.004748718347400427, 0.018254125490784645, -0.04218731075525284, -0.027284186333417892, 0.060917630791664124, -0.026490528136491776, 0.02624361217021942, -0.04243422672152519, 0.0032165180891752243, -0.025749780237674713, 0.054674193263053894, -0.07195828855037689, 0.03543240204453468, -0.004060881678014994, -0.01000890415161848, -0.012301693670451641, 0.0827520340681076, -0.08246984332799911, 0.040000345557928085, 0.026860902085900307, 0.07114699482917786, 0.01399482972919941, -0.011781406588852406, -0.04687871038913727, -0.0574960857629776, 0.057637181133031845, -0.007751389406621456, 0.05319269746541977, 0.008606775663793087, 0.022839702665805817, 0.01591724529862404, 0.06430390477180481, -0.0972142443060875, -0.0705120712518692, -0.024656297639012337, -0.030229536816477776, -0.03188740089535713, -0.026402343064546585, -0.023157166317105293, 0.046525973826646805, -0.014074195176362991, -0.0004180481191724539, -0.012689704075455666, 0.04532666876912117, 0.015079494565725327, -0.006000933703035116, -0.018800867721438408, 0.016613898798823357, 0.05721389502286911, -0.019100693985819817, 0.006283123046159744, 0.033968545496463776, 0.06634977459907532, 0.035785142332315445, 0.059824150055646896, -0.0037588507402688265, -0.022310597822070122, -0.022839702665805817, 0.0069665503688156605, 0.0013591386377811432, 0.03601441904902458, -0.0026058426592499018, 0.02195786125957966, -0.014294655993580818, -0.03543240204453468, 0.02127002365887165, -0.07696714997291565, 0.0012114301789551973, -0.025167765095829964, -0.05128791928291321, -0.04476229101419449, 0.014153560623526573, -0.00838190596550703, 0.010970111936330795, 0.06391589343547821, 0.05470946431159973, 0.042398955672979355, 0.038554124534130096, 0.06084708496928215, -0.06000051647424698, -0.026613986119627953, 0.027619285508990288, 0.028677495196461678, 0.014497479423880577, -0.0776020810008049, -0.02989443764090538, 0.04677288979291916, -0.018183577805757523, 0.012795524671673775, 0.002008394803851843, 0.009744351729750633, 0.055520761758089066, -0.04271641746163368, -0.08761980384588242, -0.005392462480813265, 0.008205537684261799, -0.013245264068245888, 0.015855515375733376, 0.0492420457303524, -0.026772717013955116, 0.06313987076282501, 0.015837877988815308, 0.012936619110405445, 0.008492136374115944, -0.04148183763027191, 0.05107627809047699, -0.06881893426179886, -0.025326495990157127, 0.011181754060089588, 0.032328322529792786, -0.041728753596544266, 0.01628761738538742, 0.0020591006614267826, -0.013765550218522549, -0.0437040813267231, -0.008866919204592705, -0.010000086389482021, 0.009003604762256145, 0.08444517105817795, 0.008386315777897835, -0.03105846792459488, -0.03028244711458683, 0.003163607558235526, 0.08479791134595871, -0.030811551958322525, 0.06758435815572739, -0.09389851242303848, -0.008703778497874737, -0.007257557939738035, -0.010626194067299366, 0.016657991334795952, -0.0677959993481636, 0.015952518209815025, -0.00030781791429035366, -0.058801211416721344, 0.027196001261472702, 0.038871586322784424, 0.05612041428685188, -0.02213422954082489, -0.05714334920048714, 0.03947123885154724, -0.01888905093073845, 0.04677288979291916, 0.004497393034398556, -0.004695807583630085, 0.009973631240427494, 0.004504006821662188, 0.055062200874090195, -0.006578539963811636, 0.01125230174511671, -0.03058227337896824, -0.026860902085900307, 0.015784967690706253, -0.026120154187083244, -0.0029828299302607775, -0.008112944662570953, -0.08564447611570358, 0.010687923058867455, -0.03682571277022362, 0.015061858110129833, -0.014550389721989632, 0.04483283683657646, -0.012090051546692848, 0.01897723600268364, -0.02261042408645153, 0.011754951439797878, 0.01620825193822384, 0.01499131042510271, -0.019241787493228912, -0.03345707803964615, 0.04772527888417244, -0.01077610719949007, 0.01403010357171297, -0.03211667761206627, -0.03123483620584011, 0.0024779755622148514, -0.05231085792183876, 0.004872175864875317, 0.05220503360033035, 0.07703769952058792, -0.006384534761309624, -0.01609361357986927, 0.011719677597284317, -0.016261162236332893, 0.03236359357833862, -0.01432992983609438, -0.04162293300032616, -0.04377462714910507, -0.033280711621046066, 0.008606775663793087, 0.024603387340903282, 0.11090042442083359, 0.045291393995285034, -0.0002954170049633831, 0.04363353177905083, 0.03380981460213661, 0.009567983448505402, -0.07442744821310043, -0.020546915009617805, 0.0036552343517541885, -0.014638573862612247, -0.015344047918915749, 0.011605038307607174, -0.028730405494570732, 0.01934760995209217, 0.0008234197739511728, -0.02425064891576767, -0.04493865743279457, 0.02463866025209427, -0.013500997796654701, 0.023174801841378212, -0.020053083077073097, -0.0417640283703804, -0.01054682768881321, -0.009664986282587051, -0.00003051999374292791, -0.04906567931175232, 0.04395099729299545, 0.047372542321681976, 0.07964795082807541, -0.0042350455187261105, 0.020740918815135956, -0.022963160648941994, -0.02347462810575962, -0.006662314757704735, -0.027337096631526947, -0.03104083240032196, 0.03095264732837677, -0.02865985967218876, -0.03802501782774925, -0.03356289863586426, 0.011666767299175262, -0.011957774870097637, -0.034144915640354156, 0.006049434654414654, 0.008302540518343449, -0.0044797565788030624, 0.0009330988395959139, -0.02472684346139431, 0.009241702035069466, 0.0024713617749512196, 0.015026584267616272, -0.017134185880422592, 0.03717844933271408, -0.014180016703903675, -0.029435880482196808, -0.02135820873081684, -0.029382968321442604, 0.0066402689553797245, 0.051993392407894135, -0.003333362052217126, 0.0026785945519804955, 0.022381145507097244, 0.017689745873212814, 0.004076313693076372, -0.037425365298986435, 0.030705731362104416, 0.0015840083360671997, -0.03430364653468132, 0.05047662556171417, 0.04913622513413429, -0.029365332797169685, -0.014259382151067257, -0.01179022528231144, -0.03553822636604309, 0.008121763356029987, -0.010864291340112686, 0.03135829418897629, -0.047478362917900085, -0.012698521837592125, 0.05139373987913132, 0.014206471852958202, -0.02416246570646763, 0.02365099824965, -0.00533955218270421, -0.020088355988264084, -0.010335185565054417, -0.018359946087002754, -0.052557770162820816, -0.023897912353277206, 0.06335151195526123, 0.07149973511695862, -0.0015829059993848205, 0.021728582680225372, -0.08056506514549255, 0.041834574192762375, -0.01251333486288786, -0.006935685873031616, -0.09446289390325546, 0.014894308522343636, 0.004248273093253374, 0.0035516179632395506, -0.00382278417237103, 0.021217113360762596, -0.004345275461673737, 0.029576973989605904, 0.005687879864126444, -0.037002082914114, -0.0019918601028621197, 0.02194022387266159, 0.036067329347133636, -0.06853674352169037, -0.08289313316345215, 0.0835280567407608, -0.0685720220208168, 0.0169489998370409, -0.013642093166708946, 0.05164065584540367, 0.0285540372133255, -0.08761980384588242, -0.024356471374630928, -0.005833383649587631, 0.010326367802917957, 0.011366941034793854, -0.001202611718326807, 0.05005333945155144, -0.017460467293858528, -0.013007166795432568, -0.00486335763707757, -0.04945368692278862, -0.06102345138788223, -0.022187139838933945, -0.005983296781778336, -0.010467462241649628, 0.08204656094312668, 0.01149039901793003, -0.004995633848011494, 0.012239964678883553, 0.039718154817819595, -0.028800953179597855, -0.04465647041797638, 0.01589079014956951, -0.030423542484641075, 0.02232823520898819, -0.04818383604288101, 0.011199390515685081, 0.0500180684030056, 0.05396872013807297, -0.027813291177153587, -0.002746937330812216, 0.00007840125181246549, -0.009435707703232765, -0.01975325681269169, -0.05714334920048714, 0.04419791325926781, 0.01179022528231144, -0.053122151643037796, -0.004788401070982218, 0.00790130253881216, 0.014347566291689873, -0.000968923675827682, 0.020441092550754547, -0.024180103093385696, 0.017504559829831123, -0.030123716220259666, 0.01532641053199768, -0.016613898798823357, 0.0036464158911257982, -0.003467842936515808, -0.03261050954461098, 0.0027491417713463306, -0.048712942749261856, -0.003119515487924218, -0.08021233230829239, 0.05728444457054138, -0.0220460444688797, 0.004085132386535406, 0.08437462151050568, -0.020758556202054024, 0.02328062430024147, -0.00353398104198277, -0.020247088745236397, 0.04225786030292511, 0.015176497399806976, 0.020846741273999214, -0.010793743655085564, -0.023351171985268593, 0.007592658046633005, -0.04984169825911522, 0.020194176584482193, 0.04363353177905083, 0.022063681855797768, -0.010414551943540573, 0.008064443245530128, -0.011843135580420494, -0.0005409548175521195, -0.040388353168964386, 0.033104341477155685, 0.029682794585824013, -0.011860772036015987, 0.026278885081410408, -0.11308739334344864, -0.03619078919291496, 0.004164497833698988, -0.02463866025209427, -0.028342396020889282, -0.036261335015296936, -0.0244270171970129, -0.012389877811074257, -0.009008013643324375, -0.0038712855894118547, 0.05873066559433937, 0.010052996687591076, -0.027425279840826988, -0.02176385559141636, -0.021904950961470604, -0.008364269509911537, 0.02569686993956566, -0.016419894993305206, 0.015070676803588867, -0.030599910765886307, 0.048818763345479965, -0.03395090997219086, -0.01077610719949007, -0.04225786030292511, -0.0024823846761137247, 0.048712942749261856, 0.023880276829004288, -0.03820138797163963, 0.04243422672152519, -0.010194091126322746, -0.05978887528181076, 0.034056730568408966, 0.03432128205895424, 0.02185204066336155, -0.00532191526144743, -0.09714369475841522, -0.013774368911981583, 0.022240050137043, -0.008699369616806507, 0.007698479108512402, -0.03735481947660446, -0.0405999980866909, 0.0590481273829937, 0.04934786632657051, 0.004190952982753515, 0.024973759427666664, -0.03037063218653202, -0.030158989131450653, -0.0013205581344664097, 0.030494090169668198, -0.03901268169283867, 0.05689643323421478, 0.010687923058867455, 0.04052944853901863, 0.03612023964524269, -0.03507966548204422, -0.039153777062892914, 0.03181685134768486, -0.04723144695162773, -0.009620893746614456, -0.011569764465093613, -0.011234664358198643, -0.02837766893208027, -0.042504776269197464, 0.01945343054831028, 0.03643770515918732, -0.03423310071229935, 0.06335151195526123, 0.031957946717739105, 0.04246950149536133, 0.030158989131450653, 0.040388353168964386, 0.0018717092461884022, 0.04342189058661461, 0.03534422069787979, 0.011896045878529549, -0.017601562663912773, -0.05100572854280472, -0.003141561523079872, 0.050935182720422745, 0.045573584735393524, -0.024074280634522438, 0.022680971771478653, 0.07273431122303009, -0.042010944336652756, 0.03795447200536728, 0.06874838471412659, -0.06906585395336151, 0.033386532217264175, -0.0022773565724492073, -0.0035670502111315727, 0.030070805922150612, -0.0044709378853440285, -0.06356316059827805, 0.003990333992987871, 0.014285837300121784, -0.004492984153330326, 0.05033553019165993, -0.009206428192555904, -0.012178235687315464, 0.06345734000205994, 0.05961250513792038, 0.04994751885533333, -0.05996524170041084, 0.009453344158828259, -0.02098783478140831, 0.01275143213570118, -0.04973587766289711, -0.04303387925028801, 0.018271762877702713, -0.0024008143227547407, 0.022857340052723885, 0.01888905093073845, 0.0022663334384560585, 0.06853674352169037, -0.0092505207285285, -0.03432128205895424, 0.07336924225091934, -0.0377781018614769, -0.06804291158914566, -0.0007192522170953453, 0.05164065584540367, 0.04151711240410805, 0.02425064891576767, 0.08571502566337585, 0.02798965945839882, 0.09538000822067261, 0.04560885950922966, 0.036367155611515045, -0.003132743062451482, 0.0022994026076048613, -0.011878409422934055, -0.03412727639079094, 0.012707340531051159, 0.008743461221456528, 0.011781406588852406, -0.0018254125025123358, -0.0460321418941021, -0.00625666743144393, -0.032169587910175323, 0.04257532209157944, -0.025643959641456604, 0.056508421897888184, -0.023051345720887184, -0.04081163927912712, -0.02444465458393097, -0.006547675468027592, -0.05097045749425888, -0.01697545498609543, -0.038483574986457825, -0.021111292764544487, 0.03696680814027786, -0.04472701624035835, -0.0072531490586698055, -0.011305212043225765, 0.04045890271663666, 0.0027778015937656164, 0.00982371810823679, 0.03536185622215271 ]
718,539
pytorch_optimizer.optimizer.utils
clip_grad_norm
Clip gradient norms. During combination with FSDP, will also ensure that grad norms are aggregated across all workers, since each worker only stores their shard of the gradients. :param parameters: PARAMETERS. Parameters whose gradients we wish to clip. :param max_norm: float. Maximum norm we wish the gradients to have. If non-positive, then we will not perform clipping. :param sync: bool. Boolean indicating whether we should aggregate across the distributed group. Used only in combination with FSDP. :returns: The gradient norm across all parameters, before clipping.
def clip_grad_norm( parameters: PARAMETERS, max_norm: float = 0.0, sync: bool = False, ) -> Union[torch.Tensor, float]: # pragma: no cover r"""Clip gradient norms. During combination with FSDP, will also ensure that grad norms are aggregated across all workers, since each worker only stores their shard of the gradients. :param parameters: PARAMETERS. Parameters whose gradients we wish to clip. :param max_norm: float. Maximum norm we wish the gradients to have. If non-positive, then we will not perform clipping. :param sync: bool. Boolean indicating whether we should aggregate across the distributed group. Used only in combination with FSDP. :returns: The gradient norm across all parameters, before clipping. """ if isinstance(parameters, torch.Tensor): parameters = [parameters] # make sure any generators are expanded parameters = list(parameters) # if syncing we need to manually perform the clipping so that we aggregate properly if max_norm > 0 and not sync: return clip_grad_norm_(parameters, max_norm) norm_sq = sum(p.grad.norm() ** 2 for p in parameters if p.grad is not None) if sync: # also need to get the norms from all the other sharded works in FSDP all_reduce(norm_sq) grad_norm = math.sqrt(norm_sq) if max_norm > 0: clip_coefficient = max_norm / (grad_norm + 1e-6) for p in parameters: p.grad.detach().mul_(clip_coefficient) return grad_norm
(parameters: Union[Iterable[Dict], Iterable[torch.Tensor], NoneType], max_norm: float = 0.0, sync: bool = False) -> Union[torch.Tensor, float]
[ 0.0024594487622380257, 0.04321764409542084, -0.02621605433523655, 0.0029472734313458204, -0.029901839792728424, 0.022078579291701317, -0.010027505457401276, -0.0031234323978424072, 0.009485477581620216, -0.011319336481392384, -0.017209365963935852, 0.008984102867543697, -0.0330275297164917, -0.031672462821006775, 0.04119407385587692, 0.044193293899297714, -0.04050750657916069, -0.01760685257613659, 0.05301026999950409, -0.01760685257613659, 0.036135151982307434, 0.015501980669796467, -0.04513280838727951, -0.02842029742896557, -0.006558530498296022, -0.029269473627209663, 0.006079739425331354, 0.01947684772312641, -0.06619960069656372, 0.0273362435400486, 0.02802281081676483, 0.01598077081143856, 0.03747215494513512, 0.015212900005280972, 0.02847450040280819, -0.026505134999752045, 0.011310302652418613, 0.03140144795179367, -0.11230805516242981, -0.037978045642375946, -0.01195170171558857, -0.01776946149766445, -0.014996089041233063, 0.030696813017129898, 0.04581937566399574, 0.01486961543560028, -0.030967826023697853, 0.05857508257031441, -0.09322869777679443, 0.01486961543560028, -0.0068747131153941154, -0.030480001121759415, 0.007791642565280199, 0.01370425708591938, -0.036785587668418884, -0.00770582165569067, 0.0013178038643673062, 0.011283202096819878, 0.0671752467751503, -0.07324595749378204, 0.04968583583831787, -0.05087829753756523, -0.019621388986706734, 0.004268465097993612, 0.03313593566417694, -0.006992151960730553, -0.016712509095668793, 0.019115496426820755, 0.04433783143758774, 0.05254051461815834, -0.0852789655327797, 0.046433672308921814, -0.01198783703148365, -0.014137879014015198, -0.0007848103414289653, -0.01994660496711731, 0.06392308324575424, -0.019639456644654274, -0.026667743921279907, -0.006310101132839918, 0.03201574459671974, 0.05239597335457802, 0.0004858484317082912, 0.005501577164977789, -0.042567212134599686, -0.021446213126182556, -0.03239516541361809, 0.008320119231939316, 0.012981553561985493, -0.062405411154031754, 0.0019467814126983285, 0.054527945816516876, 0.02903459593653679, -0.0006430927896872163, -0.0083246361464262, 0.025366878136992455, -0.05073375627398491, -0.02384920045733452, -0.03465361148118973, -0.04964970052242279, 0.03308173269033432, 0.0651155486702919, 0.03866461291909218, -0.014743142761290073, 0.08961518108844757, -0.04722864553332329, -0.007150243502110243, -0.05629856884479523, -0.0375082902610302, 0.05586494877934456, 0.009774559177458286, -0.020669307559728622, -0.023018091917037964, -0.002592697273939848, -0.0019004832720384002, 0.024102147668600082, -0.0210848618298769, -0.0020834174938499928, 0.06428443640470505, -0.014978021383285522, 0.03129304200410843, 0.03996548056602478, -0.02627025730907917, -0.05886416509747505, -0.033930908888578415, 0.06583824753761292, -0.021518483757972717, 0.011644553393125534, 0.029937975108623505, 0.005727421957999468, 0.0009999274043366313, -0.020886119455099106, -0.01541164331138134, -0.008356254547834396, 0.04719251021742821, -0.0766787976026535, -0.023650458082556725, 0.05308254063129425, 0.025312675163149834, -0.02571016177535057, -0.01947684772312641, 0.041880641132593155, 0.00669403700158, 0.01770622469484806, -0.009214464575052261, 0.07523339241743088, 0.01825728639960289, 0.060201164335012436, -0.004905347246676683, -0.0104972617700696, -0.004067463334649801, 0.037978045642375946, 0.014345656149089336, 0.025005526840686798, -0.014020439237356186, 0.04661434888839722, -0.043036967515945435, -0.05355229601264, -0.000699553987942636, -0.006373337469995022, -0.031600192189216614, -0.039567992091178894, -0.016947386786341667, -0.03524984046816826, 0.008433041162788868, -0.046542078256607056, 0.04856564477086067, -0.020831916481256485, -0.04383194074034691, 0.0716560110449791, -0.01370425708591938, -0.04437396675348282, -0.026487067341804504, -0.039170507341623306, 0.014273385517299175, 0.027534987777471542, 0.016242751851677895, -0.04090499505400658, -0.06377854943275452, 0.002342009684070945, -0.018139846622943878, -0.019675590097904205, 0.10508102923631668, -0.08578485250473022, -0.011292234994471073, 0.039098236709833145, -0.05937005579471588, -0.0045936815440654755, 0.014146912842988968, -0.03808645159006119, -0.00940417405217886, -0.037905775010585785, -0.030480001121759415, -0.025204269215464592, -0.018934819847345352, -0.031202705577015877, 0.03187120705842972, 0.030624542385339737, 0.08000323176383972, -0.028293825685977936, -0.005361553281545639, 0.01202397234737873, 0.003843876998871565, -0.04805975407361984, -0.040254559367895126, -0.05940619111061096, -0.026487067341804504, 0.033461153507232666, 0.006386888213455677, 0.034545205533504486, 0.011608418077230453, 0.04744545742869377, 0.029432082548737526, -0.0057861413806676865, 0.009476443752646446, -0.04036296531558037, 0.04961356520652771, -0.02504166215658188, 0.007470943033695221, 0.03830326348543167, -0.052143026143312454, -0.09098831564188004, 0.04516893997788429, -0.006170077249407768, -0.03232289478182793, 0.005456408020108938, -0.020723510533571243, -0.013550682924687862, 0.01945878006517887, -0.07978641986846924, 0.04032682999968529, -0.03837553411722183, -0.032142218202352524, 0.0028772614896297455, 0.025547552853822708, -0.015330338850617409, -0.012547931633889675, 0.02283741720020771, 0.03261197730898857, 0.027571121230721474, -0.04896313324570656, -0.05470862239599228, -0.06681390106678009, 0.04903540387749672, 0.052287567406892776, 0.012873148545622826, 0.01710999570786953, -0.01884448155760765, 0.03703853115439415, 0.05427499860525131, -0.05759943276643753, -0.0036744934041053057, -0.05669605731964111, 0.005343485623598099, 0.021771429106593132, 0.023542052134871483, -0.07212576270103455, 0.03481622040271759, 0.03291912376880646, -0.01486961543560028, -0.02233152464032173, -0.05246824398636818, -0.02861904166638851, 0.03015478514134884, -0.013984303921461105, -0.029305608943104744, -0.023578187450766563, 0.016838980838656425, -0.0211752001196146, 0.014318554662168026, 0.08672437071800232, 0.012638269923627377, -0.0009152356651611626, 0.0021850476041436195, -0.010406924411654472, 0.01762492023408413, 0.035141438245773315, -0.007615483365952969, 0.09742037206888199, 0.020416362211108208, 0.0856403112411499, 0.010976052843034267, -0.06171884015202522, -0.013848797418177128, 0.06468192487955093, 0.0421697236597538, 0.006865679286420345, -0.015529082156717777, -0.0630558431148529, 0.021446213126182556, 0.041952911764383316, -0.011138660833239555, 0.05712967738509178, -0.011563248932361603, 0.030389664694666862, -0.01644149422645569, 0.025999242439866066, -0.030678745359182358, -0.000388735206797719, -0.04856564477086067, 0.033858638256788254, 0.013035756535828114, 0.03714693710207939, 0.044157158583402634, 0.023578187450766563, -0.04379580542445183, -0.0364784374833107, -0.025421081110835075, 0.03580993786454201, 0.012846047058701515, -0.018555400893092155, -0.035683464258909225, 0.02283741720020771, 0.0024594487622380257, 0.012900250032544136, 0.05647924542427063, 0.05749103054404259, -0.06894586980342865, 0.016342123970389366, 0.021482348442077637, -0.022548336535692215, 0.010081707499921322, 0.026035377755761147, 0.048240430653095245, -0.041338615119457245, -0.03655070811510086, -0.020904187113046646, 0.02674001269042492, -0.026360593736171722, 0.00821623019874096, -0.006301067303866148, 0.005894546862691641, 0.024409295991063118, 0.030678745359182358, 0.04029069468379021, 0.014553433284163475, 0.0936623141169548, -0.03600868210196495, 0.02800474315881729, -0.06583824753761292, 0.016161447390913963, 0.11368118971586227, 0.010135910473763943, 0.014734108932316303, -0.042567212134599686, 0.027011027559638023, 0.018501197919249535, 0.05073375627398491, -0.01998274028301239, -0.07172828167676926, 0.0244454313069582, -0.026703879237174988, -0.08838658779859543, 0.04036296531558037, -0.008554997853934765, 0.03134724497795105, -0.011192863807082176, -0.025818567723035812, 0.03924277797341347, -0.04263948276638985, 0.023813067004084587, 0.05806919187307358, 0.008419490419328213, 0.02556562051177025, -0.002712395042181015, 0.02334330976009369, -0.03367796167731285, -0.037291478365659714, -0.01596270315349102, -0.016405358910560608, -0.04556642845273018, -0.01877221278846264, 0.06146589666604996, -0.04954129457473755, -0.03588220849633217, -0.007154760416597128, -0.07252325117588043, -0.03073294833302498, 0.052143026143312454, 0.004277498926967382, -0.023813067004084587, -0.026017310097813606, 0.024102147668600082, -0.00770582165569067, 0.05474475771188736, -0.02231345698237419, 0.010027505457401276, -0.02390340343117714, 0.00668500317260623, -0.014905750751495361, 0.025366878136992455, 0.0004158365773037076, 0.01484251394867897, 0.0016102727968245745, -0.03808645159006119, 0.032124150544404984, 0.03707466647028923, 0.04390421137213707, -0.05937005579471588, -0.03412965312600136, -0.022403795272111893, 0.03300946205854416, -0.008139443583786488, 0.008351737633347511, -0.023271039128303528, -0.056732192635536194, 0.05416659638285637, -0.0004610055184457451, 0.000038922924431972206, 0.04903540387749672, -0.012502763420343399, -0.005899063777178526, -0.03651457279920578, 0.045891646295785904, 0.040868859738111496, 0.01589946821331978, -0.011554215103387833, 0.0043339598923921585, -0.0030782634858042, 0.01370425708591938, -0.004001968074589968, -0.08368901163339615, 0.05539518967270851, 0.015483913011848927, 0.015763960778713226, -0.031202705577015877, -0.032124150544404984, -0.028799716383218765, -0.06204405799508095, -0.04289242625236511, 0.013080925680696964, 0.021518483757972717, -0.0020913220942020416, 0.004706603940576315, -0.008040071465075016, 0.03291912376880646, 0.023108430206775665, 0.06442897766828537, -0.052179161459207535, -0.036821722984313965, 0.01507739257067442, -0.043687399476766586, -0.019241970032453537, -0.012322086840867996, -0.026360593736171722, -0.02050669863820076, -0.02059703692793846, -0.00526669854298234, -0.016143379732966423, -0.025818567723035812, -0.02057896926999092, -0.01345131080597639, 0.006626283749938011, 0.03436453267931938, 0.017507482320070267, -0.014020439237356186, 0.0017096444498747587, 0.025945039466023445, -0.01945878006517887, -0.03328047692775726, 0.031130434945225716, 0.028293825685977936, -0.02346978150308132, -0.017381008714437485, -0.02449963428080082, 0.03196154162287712, 0.07237870991230011, -0.015673622488975525, -0.006328168790787458, -0.03459940850734711, 0.029865704476833344, 0.011030255816876888, 0.03203381225466728, -0.02339751273393631, 0.06052638217806816, 0.010244316421449184, -0.06424830108880997, -0.01051532942801714, -0.03418385609984398, 0.0008982973522506654, -0.009259632788598537, -0.0181940495967865, -0.049360617995262146, 0.005709354300051928, -0.0492522157728672, -0.06627187132835388, -0.04636140167713165, 0.01709192804992199, 0.014264351688325405, 0.03378636762499809, 0.04798748344182968, 0.008979585953056812, 0.014571500942111015, -0.0026852935552597046, 0.011355471797287464, -0.011798127554357052, 0.02048863284289837, -0.0006876971456222236, 0.07870236039161682, 0.010985086672008038, -0.009720356203615665, -0.015547149814665318, 0.0010338041465729475, 0.03859234228730202, -0.009002170525491238, -0.020380226895213127, -0.07870236039161682, 0.031600192189216614, 0.03127497434616089, 0.03747215494513512, 0.027769865468144417, -0.02332524210214615, 0.015727825462818146, 0.03313593566417694, 0.0030059930868446827, -0.04805975407361984, -0.0074393246322870255, -0.02849256806075573, 0.04791521281003952, -0.002904362976551056, -0.030534204095602036, 0.061899516731500626, -0.10710459202528, -0.0136681217700243, 0.03877301886677742, -0.007854878902435303, -0.039025966078042984, -0.048240430653095245, 0.025240404531359673, -0.03758056089282036, 0.04487986117601395, 0.031202705577015877, 0.05326321721076965, 0.005447374191135168, 0.05525064840912819, 0.01991046965122223, -0.033388882875442505, -0.037978045642375946, -0.07819647341966629, -0.032196421176195145, -0.02339751273393631, 0.02057896926999092, 0.03711080178618431, 0.022548336535692215, 0.005713871214538813, -0.001698352163657546, 0.05828600376844406, -0.0034960759803652763, 0.026143783703446388, 0.007872946560382843, -0.03028125874698162, 0.061393626034259796, -0.05192621424794197, -0.03418385609984398, -0.02395760640501976, -0.016107244417071342, -0.03855620697140694, 0.0033944458700716496, -0.03080521896481514, 0.015673622488975525, 0.019729793071746826, -0.0582137331366539, 0.049938783049583435, -0.01537550799548626, -0.03492462635040283, 0.004392679780721664, 0.017200332134962082, -0.012087209150195122, -0.0071321758441627026, 0.01202397234737873, -0.043109238147735596, 0.02171722799539566, -0.010686971247196198, 0.048204295337200165, 0.029558556154370308, 0.042567212134599686, 0.04231426492333412, -0.03575573489069939, -0.006061671767383814, -0.051745541393756866, 0.052143026143312454, -0.04896313324570656, 0.05138418823480606, -0.01764298789203167, 0.002917913720011711, 0.0641760304570198, -0.03129304200410843, 0.028203487396240234, 0.00036671533598564565, 0.006011986173689365, 0.04412102326750755, 0.06739205867052078, 0.012439526617527008, -0.04003775119781494, -0.004473983775824308, 0.030227055773139, -0.07841328531503677, 0.03761669620871544, 0.02103065885603428, 0.06952403485774994, -0.04097726568579674, 0.015782028436660767, 0.06479033082723618, 0.028329961001873016, 0.01709192804992199, -0.051637135446071625, -0.009047338739037514, -0.06273062527179718, -0.02556562051177025, -0.02907073125243187, -0.03949572145938873, 0.049866512417793274, -0.033985111862421036, -0.05973140895366669, 0.023072294890880585, -0.043036967515945435, -0.05008332431316376, -0.007236064411699772, 0.02843836508691311, 0.012186580337584019, 0.020109212026000023, 0.029865704476833344, 0.005235080141574144, -0.02627025730907917, -0.016468595713377, 0.027101365849375725, -0.05142032355070114, -0.014697973616421223, -0.06731978803873062, -0.011174796149134636, -0.03465361148118973, -0.02516813389956951, -0.014598602429032326, 0.012972519733011723, -0.02399374172091484, -0.019187767058610916, 0.05832213908433914, -0.025945039466023445, -0.01888061687350273, -0.004053912591189146, 0.03479815274477005, 0.04802361875772476, -0.003884528996422887, -0.005569330416619778, -0.07176441699266434, -0.01481541246175766, 0.03087748773396015, 0.0013528098352253437, -0.02796860784292221, -0.03501496464014053, -0.029432082548737526, 0.052287567406892776, 0.039098236709833145, -0.013216432183980942, 0.02963082492351532, -0.04155542701482773, 0.025366878136992455, 0.010208181105554104, 0.024174418300390244, -0.03421999141573906, 0.016875116154551506, 0.00046298163942992687, 0.0027756313793361187, -0.01193363405764103, -0.09019334614276886, -0.048818591982126236, 0.009991370141506195, 0.02160882204771042, 0.01593560352921486, -0.06601892411708832, -0.03239516541361809, 0.005329935345798731, -0.04224199429154396, 0.015772994607686996, 0.006856645457446575, -0.0006346236332319677, -0.0320880152285099, -0.03582800552248955, 0.018076609820127487, 0.021934038028120995, 0.03859234228730202, 0.016071109101176262, -0.03179893642663956, 0.024879053235054016, 0.005876479204744101, 0.06273062527179718, -0.001087442273274064, 0.015230966731905937, 0.015836231410503387, 0.046542078256607056, 0.0037354715168476105, 0.02330717444419861, -0.028095081448554993, -0.027227837592363358, 0.04336218535900116, -0.031600192189216614, 0.0023149081971496344, -0.0006775341462343931, 0.016360189765691757, 0.05640697479248047, 0.009593883529305458, 0.03255777433514595, -0.02460804022848606, 0.029540488496422768, -0.01486961543560028, -0.014950919896364212, 0.036785587668418884, 0.008848595432937145, -0.028077013790607452, 0.03488849103450775, 0.025999242439866066, 0.01654086634516716, -0.005993918515741825, 0.0019456521840766072, -0.03436453267931938, -0.02110292948782444, 0.039640262722969055, 0.0014137878315523267, 0.006806959398090839, -0.019187767058610916, 0.05817759782075882, 0.03815872222185135, 0.03805031627416611, -0.007638067938387394, 0.005596431903541088, 0.017245501279830933, 0.019260035827755928, 0.01714613102376461, 0.007552247028797865, -0.05774397403001785, 0.04029069468379021, 0.029414014890789986, 0.031654395163059235, 0.04166383296251297, 0.04972197115421295, 0.0686567947268486, 0.05532291904091835, 0.0216449573636055, -0.14454060792922974, -0.060815464705228806, 0.015772994607686996, 0.0205247662961483, 0.023216836154460907, -0.03369602933526039, -0.06507941335439682, 0.030552271753549576, -0.04715637490153313, -0.07306528091430664, 0.022548336535692215, -0.03580993786454201, 0.04556642845273018, -0.012556965462863445, 0.02800474315881729, 0.007854878902435303, 0.012340154498815536, -0.024734511971473694, 0.003642875235527754, -0.027553053572773933, -0.02621605433523655, -0.05416659638285637, 0.03349728882312775, 0.019260035827755928, 0.029540488496422768, 0.03019092045724392, -0.009855862706899643, 0.015610386617481709, 0.01538454182446003, -0.030967826023697853 ]
718,540
pytorch_optimizer.optimizer.shampoo_utils
compute_power_schur_newton
Compute G^{-1/p} using a coupled Newton iteration. See for example equation 3.2 on page 9 of: A Schur-Newton Method for the Matrix p-th Root and its Inverse by Chun-Hua Guo and Nicholas J. Higham SIAM Journal on Matrix Analysis and Applications, 2006, Vol. 28, No. 3 : pp. 788-804 https://pdfs.semanticscholar.org/0abe/7f77433cf5908bfe2b79aa91af881da83858.pdf. The best value for z is (1 + p) * (c_max^{1/p} - c_min^{1/p}) / (c_max^{1+1/p} - c_min^{1+1/p}) where c_max and c_min are the largest and smallest singular values of mat_g. The above estimate assumes that c_max > c_min * 2^p can replace above line by the one below, but it is less accurate, hence needs more iterations to converge. z = (1 + p) / tf.trace(mat_g) If we want the method to always converge, use z = 1 / norm(mat_g) or z = 1 / tf.trace(mat_g), but these can result in many extra iterations. :param mat_g: torch.Tensor. A square positive semi-definite matrix. :param p: int. a positive integer. :param max_iters: int. Stop iterating after this many rounds. :param error_tolerance: float. Threshold for stopping iteration. :param ridge_epsilon: float. We add this times I to G, to make is positive definite. For scaling, we multiply it by the largest eigenvalue of G. :param max_error_ratio: float. Sometimes error increases after an iteration before decreasing and converging. 1.2 factor is used to bound the maximal allowed increase.
def precondition_gradient(self, grad: torch.Tensor) -> torch.Tensor: r"""Get preconditioned gradient.""" return grad / (torch.sqrt(self.statistics) + self.diagonal_eps)
(mat_g: torch.Tensor, p: int, max_iters: int = 100, error_tolerance: float = 0.001, ridge_epsilon: float = 1e-06, max_error_ratio: float = 1.2) -> torch.Tensor
[ -0.0368955135345459, -0.018697500228881836, 0.0032966206781566143, 0.01934683509171009, 0.014143834821879864, -0.005794060882180929, 0.006697301287204027, -0.02324284054338932, 0.010314427316188812, -0.00479924725368619, 0.031917281448841095, -0.001181080937385559, 0.023176243528723717, 0.006156189367175102, -0.04838373512029648, -0.004749298095703125, 0.011688019149005413, 0.022976446896791458, 0.0005822156672365963, -0.028720559552311897, -0.04222338646650314, -0.0823822170495987, 0.019713126122951508, 0.051813554018735886, -0.045286912471055984, -0.00700948154553771, 0.007180139888077974, -0.017232336103916168, 0.02615652047097683, -0.026356317102909088, -0.05198005214333534, 0.0358632393181324, 0.02099514566361904, 0.0013683889992535114, 0.026639359071850777, 0.024524860084056854, 0.032749760895967484, -0.05381150543689728, -0.04691857099533081, -0.018730800598859787, -0.03378203883767128, 0.015775496140122414, -0.015658948570489883, -0.017024215310811996, 0.04545340687036514, 0.006830498110502958, -0.004210267681628466, -0.02402537316083908, -0.03338244929909706, 0.0489165224134922, 0.020029468461871147, 0.012761917896568775, 0.010264478623867035, -0.03972594439983368, -0.028104525059461594, -0.02710554748773575, 0.044188037514686584, -0.04035862907767296, -0.01461002416908741, -0.017232336103916168, 0.04911632090806961, -0.04192369058728218, -0.002403785940259695, -0.013011662289500237, 0.018697500228881836, 0.0075630806386470795, -0.014185459353029728, -0.01824796199798584, 0.05714142695069313, 0.010714017786085606, -0.030968256294727325, 0.011196855455636978, -0.003157180268317461, -0.029952630400657654, 0.03732840344309807, -0.08278180658817291, 0.05088117718696594, -0.034830961376428604, -0.005348683800548315, -0.07758713513612747, 0.015209409408271313, 0.013977338559925556, -0.001308034174144268, 0.0011082389391958714, 0.03389858454465866, -0.06659840047359467, -0.020129365846514702, -0.029985928907990456, -0.0038564635906368494, 0.00600634329020977, 0.01221248134970665, 0.0019604903645813465, -0.005648376885801554, -0.005856496747583151, 0.0869775116443634, 0.038360677659511566, -0.0058065480552613735, 0.018863996490836143, 0.020195964723825455, 0.005357008893042803, 0.022793302312493324, 0.11135252565145493, -0.011180206201970577, -0.007363285403698683, 0.05124746635556221, -0.04412144050002098, -0.009431998245418072, -0.04079151898622513, 0.0074257212691009045, -0.06536632776260376, 0.007155165541917086, -0.04848363623023033, -0.01038102526217699, -0.025457238778471947, 0.022160617634654045, -0.00783779937773943, -0.041790496557950974, -0.0423232838511467, 0.007329986430704594, 0.027188796550035477, 0.047717753797769547, 0.008940835483372211, -0.03513065725564957, 0.03011912666261196, -0.02315959334373474, 0.019962869584560394, 0.02965293638408184, 0.042456477880477905, 0.015484128147363663, -0.04338885843753815, 0.015042913146317005, 0.014152159914374352, 0.011047009378671646, 0.006389284040778875, 0.04475412517786026, -0.030019227415323257, 0.04362194985151291, 0.014343630522489548, 0.024957749992609024, 0.00886591151356697, 0.034081730991601944, 0.023892175406217575, -0.01605021394789219, 0.03155099228024483, 0.003931386861950159, 0.03642932325601578, -0.020795350894331932, 0.04112451151013374, 0.024391664192080498, 0.023376038298010826, 0.03822747990489006, 0.0061728390865027905, 0.012162532657384872, -0.07891910523176193, 0.017015891149640083, -0.02918674796819687, -0.004932444076985121, -0.045919597148895264, 0.026106571778655052, -0.053944703191518784, -0.043755147606134415, -0.04731816425919533, -0.03311605378985405, -0.0018023191951215267, -0.004466255195438862, 0.0008075055666267872, 0.02364243194460869, -0.04338885843753815, -0.03519725427031517, 0.028520764783024788, 0.03842727467417717, -0.07319164276123047, 0.007363285403698683, 0.05144726485013962, -0.06716448813676834, 0.0330827534198761, 0.011496548540890217, 0.05451079085469246, -0.05993855744600296, -0.0008080258849076927, 0.07046110928058624, 0.03449796885251999, -0.00103591731749475, -0.03539704903960228, 0.056342244148254395, 0.008462158963084221, -0.04285607114434242, 0.0018356184009462595, 0.03975924476981163, 0.006306035909801722, -0.037694692611694336, -0.02379227802157402, 0.04821724072098732, 0.005515180062502623, -0.001647269818931818, -0.039459552615880966, 0.041390903294086456, 0.0346977673470974, 0.06832996010780334, -0.007579730357974768, 0.015459153801202774, -0.01816471293568611, 0.02332608960568905, 0.0032633214723318815, -0.03296620771288872, -0.00884926225990057, -0.040092237293720245, 0.025157544761896133, -0.011762942187488079, 0.014718245714902878, -0.030019227415323257, 0.026839155703783035, -0.026489512994885445, 0.000548396201338619, -0.031567640602588654, -0.03391523286700249, 0.053145524114370346, -0.003935548942536116, -0.010389350354671478, -0.00037383552989922464, 0.008949159644544125, -0.025590434670448303, 0.04865013062953949, -0.03866036981344223, 0.006863797549158335, -0.04272287338972092, -0.013985663652420044, -0.043788447976112366, -0.015117836184799671, -0.04728486388921738, 0.023259490728378296, -0.0380609855055809, 0.03210042789578438, -0.0044163065031170845, 0.06756407767534256, 0.04518701508641243, -0.07279205322265625, 0.015725547447800636, 0.051147568970918655, 0.010372701101005077, -0.033648841083049774, -0.010389350354671478, 0.014851442538201809, 0.09317115694284439, 0.03433147445321083, 0.0025890127290040255, 0.01325308158993721, 0.03496415913105011, 0.01610848866403103, 0.025657033547759056, -0.0867777168750763, -0.05447749048471451, -0.025240793824195862, -0.0022497770842164755, 0.01498463936150074, 0.045286912471055984, 0.059405770152807236, 0.04365525022149086, 0.040325332432985306, -0.00512391421943903, -0.01879739761352539, -0.07765373587608337, 0.033682141453027725, -0.003981335554271936, -0.029752835631370544, 0.015775496140122414, 0.03716190531849861, 0.06886274367570877, 0.0005325270467437804, 0.019163688644766808, -0.00740490946918726, 0.06476694345474243, -0.023858876898884773, -0.04838373512029648, 0.029253346845507622, -0.014676622115075588, 0.0055318293161690235, 0.027521789073944092, 0.05620905011892319, 0.006992831826210022, 0.03716190531849861, -0.06170341745018959, -0.04338885843753815, 0.041390903294086456, -0.033765386790037155, -0.003637937596067786, -0.004018797073513269, -0.04532020911574364, 0.016524728387594223, 0.006443395279347897, 0.013461201451718807, 0.006264411844313145, 0.03296620771288872, -0.048117343336343765, 0.058739788830280304, 0.012345678173005581, 0.04242318123579025, -0.03766139596700668, -0.007642166223376989, 0.020662153139710426, 0.07851951569318771, -0.01101370994001627, -0.06576591730117798, -0.008029269054532051, -0.06673159450292587, -0.015209409408271313, 0.01654137670993805, 0.032233625650405884, -0.0026785044465214014, -0.04698517173528671, -0.07232586294412613, -0.025623733177781105, 0.005332034546881914, 0.03383198752999306, -0.01824796199798584, -0.07945188879966736, -0.001097833039239049, -0.044421132653951645, 0.04085811600089073, 0.0488499253988266, -0.006938720587641001, 0.06539962440729141, 0.04848363623023033, 0.039659347385168076, -0.0759221762418747, -0.0277215838432312, 0.004081232938915491, 0.00260149990208447, -0.02119494043290615, 0.03143444284796715, -0.037461601197719574, -0.008699416182935238, 0.016058538109064102, 0.02044570818543434, 0.0007757673156447709, 0.0016930561978369951, 0.09743345528841019, 0.02803792618215084, -0.03493085876107216, -0.0663653016090393, 0.03449796885251999, -0.025157544761896133, 0.009964785538613796, 0.027638334780931473, 0.00422275485470891, -0.034764364361763, 0.004691024776548147, -0.013377953320741653, 0.01648310385644436, 0.028570713475346565, -0.0025806878693401814, -0.03473106399178505, -0.03756149858236313, 0.023026395589113235, 0.023259490728378296, 0.0012403951259329915, -0.036129631102085114, -0.03609633073210716, 0.03236682340502739, 0.001519275945611298, 0.060737740248441696, 0.04795084893703461, -0.019829673692584038, 0.03662911802530289, 0.0036566683556884527, -0.0030531203374266624, -0.04585299640893936, 0.014027288183569908, -0.022077368572354317, 0.022227216511964798, 0.011596445925533772, -0.02965293638408184, -0.017132438719272614, -0.010430973954498768, -0.03979254513978958, -0.03772799298167229, -0.03479766473174095, 0.001308034174144268, 0.030418818816542625, 0.0320504792034626, -0.03473106399178505, -0.017432130873203278, -0.022277165204286575, 0.011346702463924885, -0.04718496650457382, 0.006738925352692604, -0.0000837032639537938, -0.04039192944765091, 0.021294837817549706, -0.02202741988003254, -0.007754551246762276, -0.02902025170624256, 0.008599517866969109, 0.008395561017096043, -0.02618982084095478, 0.0031863171607255936, 0.07838631421327591, 0.02246030978858471, 0.018148064613342285, -0.005390307866036892, -0.039626047015190125, -0.032699812203645706, 0.011346702463924885, 0.0036941298749297857, -0.011313403025269508, -0.08624492585659027, 0.0005619240109808743, 0.05437759310007095, 0.04861683025956154, 0.09223878383636475, 0.02722209505736828, -0.0013631859328597784, 0.025773581117391586, 0.05557636544108391, -0.0022643455304205418, -0.02119494043290615, 0.0024662220384925604, -0.023958774283528328, -0.0036733178421854973, 0.031983882188797, 0.03712860867381096, -0.04325566068291664, 0.052912428975105286, -0.002686829073354602, -0.05857329070568085, 0.015109512023627758, -0.023775627836585045, 0.018980544060468674, -0.04415473714470863, 0.006393446121364832, -0.005831522401422262, -0.011296753771603107, 0.010131281800568104, 0.01144659984856844, -0.026772556826472282, 0.008145816624164581, 0.01746542938053608, 0.09403693675994873, -0.01309491042047739, 0.015758845955133438, 0.05217984691262245, -0.017165737226605415, 0.01582544483244419, -0.005698325578123331, -0.04578639939427376, -0.01622503437101841, -0.0030989067163318396, -0.05863989144563675, -0.022543558850884438, -0.013486175797879696, 0.0031863171607255936, 0.007779525592923164, 0.04022543132305145, 0.002949060406535864, -0.016408180817961693, 0.012678669765591621, -0.05457738786935806, -0.043988242745399475, -0.004176968242973089, 0.03749489784240723, 0.019596578553318977, 0.07725414633750916, -0.06473364681005478, -0.026256419718265533, 0.007230088580399752, -0.006776386871933937, 0.032183676958084106, -0.00581071013584733, -0.02277665212750435, -0.00038736333954147995, 0.0390932597219944, -0.004333058372139931, -0.0018657958135008812, -0.03582993894815445, -0.02182762511074543, -0.009515246376395226, -0.0641675591468811, 0.06932893395423889, 0.06663169711828232, 0.016016915440559387, -0.039392951875925064, -0.025573784485459328, -0.01634158194065094, 0.049848902970552444, 0.010264478623867035, -0.029902681708335876, -0.07425721734762192, 0.053178820759058, 0.0244582612067461, 0.028487464413046837, 0.019729776307940483, 0.0035546894650906324, 0.05301232635974884, 0.005602590274065733, -0.020079417154192924, -0.014410228468477726, 0.031950581818819046, -0.04192369058728218, 0.053511813282966614, 0.04192369058728218, -0.0003993302525486797, -0.006206138525158167, -0.0662321075797081, 0.047717753797769547, -0.019796373322606087, -0.069528728723526, -0.03719520568847656, 0.06789706647396088, 0.04621928930282593, -0.00928215216845274, 0.03599643334746361, 0.04265627637505531, -0.039193157106637955, 0.038327377289533615, -0.014127185568213463, -0.015517426654696465, -0.04998209699988365, 0.06423415243625641, 0.017199035733938217, -0.026522811502218246, -0.05101437494158745, 0.08577873557806015, -0.040292032063007355, -0.04368855059146881, -0.018897294998168945, 0.05091447755694389, 0.0005231616669334471, -0.07465680688619614, 0.007508969400078058, 0.023259490728378296, -0.02737194113433361, -0.016391530632972717, 0.05777411162853241, 0.033848635852336884, -0.0277215838432312, 0.03075181134045124, -0.010763966478407383, -0.052712634205818176, -0.08125004917383194, -0.0520799495279789, 0.009698391892015934, -0.01610848866403103, 0.07252565771341324, 0.033415745943784714, -0.005606752820312977, 0.003710779594257474, 0.006189488805830479, 0.030618613585829735, -0.10702362656593323, 0.006842985283583403, -0.040058936923742294, -0.01761527732014656, -0.06899593770503998, -0.03716190531849861, 0.02685580402612686, 0.08817628026008606, 0.022227216511964798, 0.025107596069574356, -0.006888771895319223, 0.03872697055339813, -0.04262297600507736, -0.1281353235244751, 0.09170599281787872, 0.013527799397706985, -0.07439041137695312, 0.00584817212074995, -0.0006358065875247121, -0.00612705247476697, -0.01674949750304222, -0.005423607304692268, -0.026489512994885445, -0.007504806853830814, 0.02685580402612686, 0.056575339287519455, -0.0067722247913479805, -0.019163688644766808, 0.05620905011892319, -0.03782789036631584, -0.0061728390865027905, -0.025890126824378967, 0.024691356346011162, -0.023376038298010826, 0.004185293335467577, -0.0222605150192976, -0.025690332055091858, 0.030352219939231873, -0.04688527435064316, 0.06063784286379814, -0.003327838843688369, -0.05411119759082794, -0.006239437498152256, 0.005923095159232616, -0.015251033008098602, -0.06343497335910797, 0.0023413500748574734, -0.04392164573073387, -0.005794060882180929, -0.026972351595759392, 0.034864261746406555, 0.02765498496592045, -0.05404460057616234, -0.010947111994028091, 0.054610688239336014, 0.021344786509871483, -0.01614178717136383, -0.016874369233846664, -0.01677447184920311, -0.012287404388189316, -0.00041650014463812113, -0.0999641939997673, 0.014743220992386341, -0.018431106582283974, -0.04805074632167816, -0.005361170973628759, -0.003513065632432699, -0.036396026611328125, -0.07665475457906723, 0.036362726241350174, 0.00799597054719925, 0.08604513108730316, 0.01238730177283287, 0.010264478623867035, 0.026556111872196198, 0.010447624139487743, 0.025357339531183243, 0.008495458401739597, 0.03626282885670662, -0.10389350354671478, -0.02379227802157402, -0.014585049822926521, -0.004786760080605745, 0.05554306507110596, -0.009715041145682335, 0.01919698901474476, -0.040924716740846634, 0.010830564424395561, 0.02304304577410221, -0.012578772380948067, 0.01773182302713394, -0.02142803557217121, -0.015459153801202774, 0.06819675862789154, -0.006980344653129578, -0.012720294296741486, -0.018431106582283974, 0.005144726485013962, -0.0006758696981705725, -0.058306898921728134, 0.024591458961367607, -0.06060454249382019, -0.029819432646036148, 0.0803842693567276, 0.012745268642902374, 0.013244756497442722, 0.016408180817961693, 0.000163244127179496, -0.01813141442835331, 0.0738576278090477, 0.014393579214811325, -0.02151128277182579, 0.05381150543689728, -0.02064550295472145, 0.009198904037475586, -0.013760894536972046, -0.0018397807143628597, 0.05164705961942673, 0.02246030978858471, 0.013444552198052406, -0.02044570818543434, -0.08511275053024292, 0.002574444282799959, 0.038560472428798676, -0.04112451151013374, -0.03158428892493248, 0.06037144735455513, -0.03394853323698044, 0.019729776307940483, -0.02335938811302185, 0.010880513116717339, -0.0003210250870324671, 0.040058936923742294, 0.002403785940259695, 0.011762942187488079, 0.07492320239543915, 0.027971327304840088, -0.0146516477689147, 0.0018657958135008812, -0.04928281530737877, -0.02214396744966507, 0.04848363623023033, -0.04132430627942085, -0.04545340687036514, 0.03351564332842827, 0.021994121372699738, 0.07745394110679626, -0.036828912794589996, -0.04741806164383888, 0.035929836332798004, 0.017881670966744423, -0.0022830762900412083, 0.013111559674143791, -0.01789831928908825, -0.035929836332798004, 0.052646033465862274, -0.0055318293161690235, -0.002233127597719431, 0.07532279193401337, -0.0320504792034626, -0.0023371875286102295, 0.007592217531055212, 0.04328896105289459, 0.015517426654696465, 0.02237706258893013, -0.0467187762260437, 0.02517419494688511, 0.023192891851067543, 0.008549569174647331, -0.06383456289768219, 0.006643190514296293, -0.008237389847636223, 0.007829474285244942, -0.02131148800253868, -0.004449605476111174, 0.038793567568063736, -0.051780253648757935, 0.0006248803110793233, 0.022626806050539017, -0.04275617375969887, -0.0662321075797081, -0.01049757283180952, -0.020046118646860123, 0.02052895724773407, 0.023376038298010826, 0.03264986351132393, 0.030768459662795067, 0.013594398275017738, 0.031018204987049103, 0.03083505854010582, -0.04262297600507736, 0.028703909367322922, 0.018064815551042557, 0.061403725296258926, -0.01828126050531864, -0.036162931472063065, -0.001136335195042193, 0.033765386790037155, -0.035330452024936676, -0.041357606649398804, 0.037028711289167404, -0.040325332432985306, 0.0761219710111618, 0.018814047798514366, -0.004853358492255211, -0.030102476477622986, 0.03196723014116287, -0.06543292850255966, 0.04318905994296074, -0.021994121372699738, -0.05777411162853241, -0.005173862911760807, -0.0111469067633152, -0.008832613006234169, -0.02315959334373474, 0.05883968621492386, -0.006626540794968605, 0.024841202422976494, -0.006555779837071896, 0.005831522401422262 ]
718,541
pytorch_optimizer.optimizer.shampoo_utils
compute_power_svd
Compute G^{-1/p} using a SVD. Calculate SVD on the GPU. Sometimes, SVD on the CPU is faster than GPU, but based on the several experiments, CUDA seems much faster than on CPU. :param matrix: torch.Tensor. a square positive semi-definite matrix. :param power: float. rank.
def precondition_gradient(self, grad: torch.Tensor) -> torch.Tensor: r"""Get preconditioned gradient.""" return grad / (torch.sqrt(self.statistics) + self.diagonal_eps)
(matrix: torch.Tensor, power: float) -> torch.Tensor
[ -0.0368955135345459, -0.018697500228881836, 0.0032966206781566143, 0.01934683509171009, 0.014143834821879864, -0.005794060882180929, 0.006697301287204027, -0.02324284054338932, 0.010314427316188812, -0.00479924725368619, 0.031917281448841095, -0.001181080937385559, 0.023176243528723717, 0.006156189367175102, -0.04838373512029648, -0.004749298095703125, 0.011688019149005413, 0.022976446896791458, 0.0005822156672365963, -0.028720559552311897, -0.04222338646650314, -0.0823822170495987, 0.019713126122951508, 0.051813554018735886, -0.045286912471055984, -0.00700948154553771, 0.007180139888077974, -0.017232336103916168, 0.02615652047097683, -0.026356317102909088, -0.05198005214333534, 0.0358632393181324, 0.02099514566361904, 0.0013683889992535114, 0.026639359071850777, 0.024524860084056854, 0.032749760895967484, -0.05381150543689728, -0.04691857099533081, -0.018730800598859787, -0.03378203883767128, 0.015775496140122414, -0.015658948570489883, -0.017024215310811996, 0.04545340687036514, 0.006830498110502958, -0.004210267681628466, -0.02402537316083908, -0.03338244929909706, 0.0489165224134922, 0.020029468461871147, 0.012761917896568775, 0.010264478623867035, -0.03972594439983368, -0.028104525059461594, -0.02710554748773575, 0.044188037514686584, -0.04035862907767296, -0.01461002416908741, -0.017232336103916168, 0.04911632090806961, -0.04192369058728218, -0.002403785940259695, -0.013011662289500237, 0.018697500228881836, 0.0075630806386470795, -0.014185459353029728, -0.01824796199798584, 0.05714142695069313, 0.010714017786085606, -0.030968256294727325, 0.011196855455636978, -0.003157180268317461, -0.029952630400657654, 0.03732840344309807, -0.08278180658817291, 0.05088117718696594, -0.034830961376428604, -0.005348683800548315, -0.07758713513612747, 0.015209409408271313, 0.013977338559925556, -0.001308034174144268, 0.0011082389391958714, 0.03389858454465866, -0.06659840047359467, -0.020129365846514702, -0.029985928907990456, -0.0038564635906368494, 0.00600634329020977, 0.01221248134970665, 0.0019604903645813465, -0.005648376885801554, -0.005856496747583151, 0.0869775116443634, 0.038360677659511566, -0.0058065480552613735, 0.018863996490836143, 0.020195964723825455, 0.005357008893042803, 0.022793302312493324, 0.11135252565145493, -0.011180206201970577, -0.007363285403698683, 0.05124746635556221, -0.04412144050002098, -0.009431998245418072, -0.04079151898622513, 0.0074257212691009045, -0.06536632776260376, 0.007155165541917086, -0.04848363623023033, -0.01038102526217699, -0.025457238778471947, 0.022160617634654045, -0.00783779937773943, -0.041790496557950974, -0.0423232838511467, 0.007329986430704594, 0.027188796550035477, 0.047717753797769547, 0.008940835483372211, -0.03513065725564957, 0.03011912666261196, -0.02315959334373474, 0.019962869584560394, 0.02965293638408184, 0.042456477880477905, 0.015484128147363663, -0.04338885843753815, 0.015042913146317005, 0.014152159914374352, 0.011047009378671646, 0.006389284040778875, 0.04475412517786026, -0.030019227415323257, 0.04362194985151291, 0.014343630522489548, 0.024957749992609024, 0.00886591151356697, 0.034081730991601944, 0.023892175406217575, -0.01605021394789219, 0.03155099228024483, 0.003931386861950159, 0.03642932325601578, -0.020795350894331932, 0.04112451151013374, 0.024391664192080498, 0.023376038298010826, 0.03822747990489006, 0.0061728390865027905, 0.012162532657384872, -0.07891910523176193, 0.017015891149640083, -0.02918674796819687, -0.004932444076985121, -0.045919597148895264, 0.026106571778655052, -0.053944703191518784, -0.043755147606134415, -0.04731816425919533, -0.03311605378985405, -0.0018023191951215267, -0.004466255195438862, 0.0008075055666267872, 0.02364243194460869, -0.04338885843753815, -0.03519725427031517, 0.028520764783024788, 0.03842727467417717, -0.07319164276123047, 0.007363285403698683, 0.05144726485013962, -0.06716448813676834, 0.0330827534198761, 0.011496548540890217, 0.05451079085469246, -0.05993855744600296, -0.0008080258849076927, 0.07046110928058624, 0.03449796885251999, -0.00103591731749475, -0.03539704903960228, 0.056342244148254395, 0.008462158963084221, -0.04285607114434242, 0.0018356184009462595, 0.03975924476981163, 0.006306035909801722, -0.037694692611694336, -0.02379227802157402, 0.04821724072098732, 0.005515180062502623, -0.001647269818931818, -0.039459552615880966, 0.041390903294086456, 0.0346977673470974, 0.06832996010780334, -0.007579730357974768, 0.015459153801202774, -0.01816471293568611, 0.02332608960568905, 0.0032633214723318815, -0.03296620771288872, -0.00884926225990057, -0.040092237293720245, 0.025157544761896133, -0.011762942187488079, 0.014718245714902878, -0.030019227415323257, 0.026839155703783035, -0.026489512994885445, 0.000548396201338619, -0.031567640602588654, -0.03391523286700249, 0.053145524114370346, -0.003935548942536116, -0.010389350354671478, -0.00037383552989922464, 0.008949159644544125, -0.025590434670448303, 0.04865013062953949, -0.03866036981344223, 0.006863797549158335, -0.04272287338972092, -0.013985663652420044, -0.043788447976112366, -0.015117836184799671, -0.04728486388921738, 0.023259490728378296, -0.0380609855055809, 0.03210042789578438, -0.0044163065031170845, 0.06756407767534256, 0.04518701508641243, -0.07279205322265625, 0.015725547447800636, 0.051147568970918655, 0.010372701101005077, -0.033648841083049774, -0.010389350354671478, 0.014851442538201809, 0.09317115694284439, 0.03433147445321083, 0.0025890127290040255, 0.01325308158993721, 0.03496415913105011, 0.01610848866403103, 0.025657033547759056, -0.0867777168750763, -0.05447749048471451, -0.025240793824195862, -0.0022497770842164755, 0.01498463936150074, 0.045286912471055984, 0.059405770152807236, 0.04365525022149086, 0.040325332432985306, -0.00512391421943903, -0.01879739761352539, -0.07765373587608337, 0.033682141453027725, -0.003981335554271936, -0.029752835631370544, 0.015775496140122414, 0.03716190531849861, 0.06886274367570877, 0.0005325270467437804, 0.019163688644766808, -0.00740490946918726, 0.06476694345474243, -0.023858876898884773, -0.04838373512029648, 0.029253346845507622, -0.014676622115075588, 0.0055318293161690235, 0.027521789073944092, 0.05620905011892319, 0.006992831826210022, 0.03716190531849861, -0.06170341745018959, -0.04338885843753815, 0.041390903294086456, -0.033765386790037155, -0.003637937596067786, -0.004018797073513269, -0.04532020911574364, 0.016524728387594223, 0.006443395279347897, 0.013461201451718807, 0.006264411844313145, 0.03296620771288872, -0.048117343336343765, 0.058739788830280304, 0.012345678173005581, 0.04242318123579025, -0.03766139596700668, -0.007642166223376989, 0.020662153139710426, 0.07851951569318771, -0.01101370994001627, -0.06576591730117798, -0.008029269054532051, -0.06673159450292587, -0.015209409408271313, 0.01654137670993805, 0.032233625650405884, -0.0026785044465214014, -0.04698517173528671, -0.07232586294412613, -0.025623733177781105, 0.005332034546881914, 0.03383198752999306, -0.01824796199798584, -0.07945188879966736, -0.001097833039239049, -0.044421132653951645, 0.04085811600089073, 0.0488499253988266, -0.006938720587641001, 0.06539962440729141, 0.04848363623023033, 0.039659347385168076, -0.0759221762418747, -0.0277215838432312, 0.004081232938915491, 0.00260149990208447, -0.02119494043290615, 0.03143444284796715, -0.037461601197719574, -0.008699416182935238, 0.016058538109064102, 0.02044570818543434, 0.0007757673156447709, 0.0016930561978369951, 0.09743345528841019, 0.02803792618215084, -0.03493085876107216, -0.0663653016090393, 0.03449796885251999, -0.025157544761896133, 0.009964785538613796, 0.027638334780931473, 0.00422275485470891, -0.034764364361763, 0.004691024776548147, -0.013377953320741653, 0.01648310385644436, 0.028570713475346565, -0.0025806878693401814, -0.03473106399178505, -0.03756149858236313, 0.023026395589113235, 0.023259490728378296, 0.0012403951259329915, -0.036129631102085114, -0.03609633073210716, 0.03236682340502739, 0.001519275945611298, 0.060737740248441696, 0.04795084893703461, -0.019829673692584038, 0.03662911802530289, 0.0036566683556884527, -0.0030531203374266624, -0.04585299640893936, 0.014027288183569908, -0.022077368572354317, 0.022227216511964798, 0.011596445925533772, -0.02965293638408184, -0.017132438719272614, -0.010430973954498768, -0.03979254513978958, -0.03772799298167229, -0.03479766473174095, 0.001308034174144268, 0.030418818816542625, 0.0320504792034626, -0.03473106399178505, -0.017432130873203278, -0.022277165204286575, 0.011346702463924885, -0.04718496650457382, 0.006738925352692604, -0.0000837032639537938, -0.04039192944765091, 0.021294837817549706, -0.02202741988003254, -0.007754551246762276, -0.02902025170624256, 0.008599517866969109, 0.008395561017096043, -0.02618982084095478, 0.0031863171607255936, 0.07838631421327591, 0.02246030978858471, 0.018148064613342285, -0.005390307866036892, -0.039626047015190125, -0.032699812203645706, 0.011346702463924885, 0.0036941298749297857, -0.011313403025269508, -0.08624492585659027, 0.0005619240109808743, 0.05437759310007095, 0.04861683025956154, 0.09223878383636475, 0.02722209505736828, -0.0013631859328597784, 0.025773581117391586, 0.05557636544108391, -0.0022643455304205418, -0.02119494043290615, 0.0024662220384925604, -0.023958774283528328, -0.0036733178421854973, 0.031983882188797, 0.03712860867381096, -0.04325566068291664, 0.052912428975105286, -0.002686829073354602, -0.05857329070568085, 0.015109512023627758, -0.023775627836585045, 0.018980544060468674, -0.04415473714470863, 0.006393446121364832, -0.005831522401422262, -0.011296753771603107, 0.010131281800568104, 0.01144659984856844, -0.026772556826472282, 0.008145816624164581, 0.01746542938053608, 0.09403693675994873, -0.01309491042047739, 0.015758845955133438, 0.05217984691262245, -0.017165737226605415, 0.01582544483244419, -0.005698325578123331, -0.04578639939427376, -0.01622503437101841, -0.0030989067163318396, -0.05863989144563675, -0.022543558850884438, -0.013486175797879696, 0.0031863171607255936, 0.007779525592923164, 0.04022543132305145, 0.002949060406535864, -0.016408180817961693, 0.012678669765591621, -0.05457738786935806, -0.043988242745399475, -0.004176968242973089, 0.03749489784240723, 0.019596578553318977, 0.07725414633750916, -0.06473364681005478, -0.026256419718265533, 0.007230088580399752, -0.006776386871933937, 0.032183676958084106, -0.00581071013584733, -0.02277665212750435, -0.00038736333954147995, 0.0390932597219944, -0.004333058372139931, -0.0018657958135008812, -0.03582993894815445, -0.02182762511074543, -0.009515246376395226, -0.0641675591468811, 0.06932893395423889, 0.06663169711828232, 0.016016915440559387, -0.039392951875925064, -0.025573784485459328, -0.01634158194065094, 0.049848902970552444, 0.010264478623867035, -0.029902681708335876, -0.07425721734762192, 0.053178820759058, 0.0244582612067461, 0.028487464413046837, 0.019729776307940483, 0.0035546894650906324, 0.05301232635974884, 0.005602590274065733, -0.020079417154192924, -0.014410228468477726, 0.031950581818819046, -0.04192369058728218, 0.053511813282966614, 0.04192369058728218, -0.0003993302525486797, -0.006206138525158167, -0.0662321075797081, 0.047717753797769547, -0.019796373322606087, -0.069528728723526, -0.03719520568847656, 0.06789706647396088, 0.04621928930282593, -0.00928215216845274, 0.03599643334746361, 0.04265627637505531, -0.039193157106637955, 0.038327377289533615, -0.014127185568213463, -0.015517426654696465, -0.04998209699988365, 0.06423415243625641, 0.017199035733938217, -0.026522811502218246, -0.05101437494158745, 0.08577873557806015, -0.040292032063007355, -0.04368855059146881, -0.018897294998168945, 0.05091447755694389, 0.0005231616669334471, -0.07465680688619614, 0.007508969400078058, 0.023259490728378296, -0.02737194113433361, -0.016391530632972717, 0.05777411162853241, 0.033848635852336884, -0.0277215838432312, 0.03075181134045124, -0.010763966478407383, -0.052712634205818176, -0.08125004917383194, -0.0520799495279789, 0.009698391892015934, -0.01610848866403103, 0.07252565771341324, 0.033415745943784714, -0.005606752820312977, 0.003710779594257474, 0.006189488805830479, 0.030618613585829735, -0.10702362656593323, 0.006842985283583403, -0.040058936923742294, -0.01761527732014656, -0.06899593770503998, -0.03716190531849861, 0.02685580402612686, 0.08817628026008606, 0.022227216511964798, 0.025107596069574356, -0.006888771895319223, 0.03872697055339813, -0.04262297600507736, -0.1281353235244751, 0.09170599281787872, 0.013527799397706985, -0.07439041137695312, 0.00584817212074995, -0.0006358065875247121, -0.00612705247476697, -0.01674949750304222, -0.005423607304692268, -0.026489512994885445, -0.007504806853830814, 0.02685580402612686, 0.056575339287519455, -0.0067722247913479805, -0.019163688644766808, 0.05620905011892319, -0.03782789036631584, -0.0061728390865027905, -0.025890126824378967, 0.024691356346011162, -0.023376038298010826, 0.004185293335467577, -0.0222605150192976, -0.025690332055091858, 0.030352219939231873, -0.04688527435064316, 0.06063784286379814, -0.003327838843688369, -0.05411119759082794, -0.006239437498152256, 0.005923095159232616, -0.015251033008098602, -0.06343497335910797, 0.0023413500748574734, -0.04392164573073387, -0.005794060882180929, -0.026972351595759392, 0.034864261746406555, 0.02765498496592045, -0.05404460057616234, -0.010947111994028091, 0.054610688239336014, 0.021344786509871483, -0.01614178717136383, -0.016874369233846664, -0.01677447184920311, -0.012287404388189316, -0.00041650014463812113, -0.0999641939997673, 0.014743220992386341, -0.018431106582283974, -0.04805074632167816, -0.005361170973628759, -0.003513065632432699, -0.036396026611328125, -0.07665475457906723, 0.036362726241350174, 0.00799597054719925, 0.08604513108730316, 0.01238730177283287, 0.010264478623867035, 0.026556111872196198, 0.010447624139487743, 0.025357339531183243, 0.008495458401739597, 0.03626282885670662, -0.10389350354671478, -0.02379227802157402, -0.014585049822926521, -0.004786760080605745, 0.05554306507110596, -0.009715041145682335, 0.01919698901474476, -0.040924716740846634, 0.010830564424395561, 0.02304304577410221, -0.012578772380948067, 0.01773182302713394, -0.02142803557217121, -0.015459153801202774, 0.06819675862789154, -0.006980344653129578, -0.012720294296741486, -0.018431106582283974, 0.005144726485013962, -0.0006758696981705725, -0.058306898921728134, 0.024591458961367607, -0.06060454249382019, -0.029819432646036148, 0.0803842693567276, 0.012745268642902374, 0.013244756497442722, 0.016408180817961693, 0.000163244127179496, -0.01813141442835331, 0.0738576278090477, 0.014393579214811325, -0.02151128277182579, 0.05381150543689728, -0.02064550295472145, 0.009198904037475586, -0.013760894536972046, -0.0018397807143628597, 0.05164705961942673, 0.02246030978858471, 0.013444552198052406, -0.02044570818543434, -0.08511275053024292, 0.002574444282799959, 0.038560472428798676, -0.04112451151013374, -0.03158428892493248, 0.06037144735455513, -0.03394853323698044, 0.019729776307940483, -0.02335938811302185, 0.010880513116717339, -0.0003210250870324671, 0.040058936923742294, 0.002403785940259695, 0.011762942187488079, 0.07492320239543915, 0.027971327304840088, -0.0146516477689147, 0.0018657958135008812, -0.04928281530737877, -0.02214396744966507, 0.04848363623023033, -0.04132430627942085, -0.04545340687036514, 0.03351564332842827, 0.021994121372699738, 0.07745394110679626, -0.036828912794589996, -0.04741806164383888, 0.035929836332798004, 0.017881670966744423, -0.0022830762900412083, 0.013111559674143791, -0.01789831928908825, -0.035929836332798004, 0.052646033465862274, -0.0055318293161690235, -0.002233127597719431, 0.07532279193401337, -0.0320504792034626, -0.0023371875286102295, 0.007592217531055212, 0.04328896105289459, 0.015517426654696465, 0.02237706258893013, -0.0467187762260437, 0.02517419494688511, 0.023192891851067543, 0.008549569174647331, -0.06383456289768219, 0.006643190514296293, -0.008237389847636223, 0.007829474285244942, -0.02131148800253868, -0.004449605476111174, 0.038793567568063736, -0.051780253648757935, 0.0006248803110793233, 0.022626806050539017, -0.04275617375969887, -0.0662321075797081, -0.01049757283180952, -0.020046118646860123, 0.02052895724773407, 0.023376038298010826, 0.03264986351132393, 0.030768459662795067, 0.013594398275017738, 0.031018204987049103, 0.03083505854010582, -0.04262297600507736, 0.028703909367322922, 0.018064815551042557, 0.061403725296258926, -0.01828126050531864, -0.036162931472063065, -0.001136335195042193, 0.033765386790037155, -0.035330452024936676, -0.041357606649398804, 0.037028711289167404, -0.040325332432985306, 0.0761219710111618, 0.018814047798514366, -0.004853358492255211, -0.030102476477622986, 0.03196723014116287, -0.06543292850255966, 0.04318905994296074, -0.021994121372699738, -0.05777411162853241, -0.005173862911760807, -0.0111469067633152, -0.008832613006234169, -0.02315959334373474, 0.05883968621492386, -0.006626540794968605, 0.024841202422976494, -0.006555779837071896, 0.005831522401422262 ]
718,542
pytorch_optimizer
create_optimizer
Build optimizer. :param model: nn.Module. model. :param optimizer_name: str. name of optimizer. :param lr: float. learning rate. :param weight_decay: float. weight decay. :param wd_ban_list: List[str]. weight decay ban list by layer. :param use_lookahead: bool. use lookahead.
def create_optimizer( model: nn.Module, optimizer_name: str, lr: float = 1e-3, weight_decay: float = 0.0, wd_ban_list: List[str] = ('bias', 'LayerNorm.bias', 'LayerNorm.weight'), use_lookahead: bool = False, **kwargs, ): r"""Build optimizer. :param model: nn.Module. model. :param optimizer_name: str. name of optimizer. :param lr: float. learning rate. :param weight_decay: float. weight decay. :param wd_ban_list: List[str]. weight decay ban list by layer. :param use_lookahead: bool. use lookahead. """ optimizer_name = optimizer_name.lower() parameters = ( get_optimizer_parameters(model, weight_decay, wd_ban_list) if weight_decay > 0.0 else model.parameters() ) optimizer = load_optimizer(optimizer_name) if optimizer_name == 'alig': optimizer = optimizer(parameters, max_lr=lr, **kwargs) else: optimizer = optimizer(parameters, lr=lr, **kwargs) if use_lookahead: optimizer = Lookahead( optimizer, k=kwargs['k'] if 'k' in kwargs else 5, alpha=kwargs['alpha'] if 'alpha' in kwargs else 0.5, pullback_momentum=kwargs['pullback_momentum'] if 'pullback_momentum' in kwargs else 'none', ) return optimizer
(model: torch.nn.modules.module.Module, optimizer_name: str, lr: float = 0.001, weight_decay: float = 0.0, wd_ban_list: List[str] = ('bias', 'LayerNorm.bias', 'LayerNorm.weight'), use_lookahead: bool = False, **kwargs)
[ 0.013675043359398842, -0.032082658261060715, -0.005640123970806599, -0.020678870379924774, -0.018426621332764626, 0.02864251472055912, -0.05922367423772812, -0.04512099176645279, -0.03280489891767502, -0.004946393426507711, -0.027103004977107048, 0.032006632536649704, 0.007303176447749138, 0.041471779346466064, -0.019481472671031952, 0.06264480948448181, -0.007840104401111603, 0.00018560854368843138, -0.043220359832048416, 0.007312679197639227, 0.019690541550517082, -0.0702473372220993, 0.024917278438806534, 0.06488755345344543, -0.0037988871335983276, 0.03407832235097885, -0.033888258039951324, 0.02371988072991371, -0.05762714520096779, -0.03099929913878441, -0.0013149994192644954, -0.05485222116112709, -0.00792563334107399, 0.01150832325220108, 0.027711207047104836, 0.013684546574950218, 0.0016381066525354981, 0.024100005626678467, -0.058919575065374374, -0.05367382988333702, 0.0667501762509346, -0.043144334107637405, 0.030201032757759094, 0.010843101888895035, -0.03080923482775688, -0.03991325944662094, 0.02210434339940548, -0.01755233108997345, 0.01571822166442871, -0.014463805593550205, 0.02613368257880211, -0.02529740519821644, 0.023510809987783432, -0.03519969433546066, -0.0004071508883498609, -0.03238676115870476, 0.004314433317631483, 0.0026228714268654585, 0.05960380285978317, -0.02696995995938778, -0.016278907656669617, -0.048846226185560226, 0.010130365379154682, 0.03656814992427826, -0.01560418400913477, 0.002549221972003579, -0.08476816117763519, -0.008733401075005531, 0.04386657476425171, -0.022978633642196655, 0.06621799618005753, -0.03649212419986725, 0.029421774670481682, 0.012734230607748032, -0.04246010631322861, -0.021039990708231926, -0.0632530152797699, -0.08142305165529251, 0.0005660317838191986, 0.0018412367207929492, -0.03825971111655235, -0.0008582538575865328, -0.009845270775258541, -0.04561515524983406, 0.03805064037442207, -0.04200395569205284, -0.022275399416685104, -0.03698628768324852, 0.05473818629980087, -0.05158313736319542, -0.009213310666382313, -0.06944907456636429, 0.0006254265317693353, -0.0061675491742789745, -0.01463486161082983, 0.036606162786483765, 0.028756553307175636, -0.029079660773277283, -0.014416289515793324, 0.018559666350483894, -0.05317966639995575, 0.038544803857803345, -0.0093891192227602, 0.03231073543429375, -0.008861694484949112, -0.03335608169436455, -0.06165648251771927, -0.03094227984547615, 0.0021097008138895035, -0.038677848875522614, -0.013513489626348019, -0.02731207385659218, 0.008909209631383419, -0.01105217169970274, 0.03339409455657005, 0.0500626303255558, 0.015699215233325958, -0.03603597357869148, 0.020906945690512657, 0.042650170624256134, 0.02267453260719776, 0.004993909038603306, -0.048276036977767944, -0.014900950714945793, 0.017723388969898224, -0.010130365379154682, 0.028072325512766838, 0.0029531060717999935, 0.013541999273002148, -0.01064353622496128, 0.014539830386638641, 0.01254416722804308, -0.043410420417785645, 0.005844441708177328, 0.012145034968852997, 0.03219669684767723, -0.031132342293858528, 0.04325837269425392, -0.0194624662399292, 0.01988060399889946, 0.02197129838168621, 0.03976120799779892, 0.022199375554919243, -0.01365603692829609, -0.017276739701628685, -0.013541999273002148, -0.02508833445608616, -0.0021524650510400534, 0.05964181572198868, 0.0416998527944088, -0.013684546574950218, -0.003870160784572363, 0.005345525685697794, 0.02573454938828945, 0.021039990708231926, -0.010491485707461834, -0.028072325512766838, 0.005065182689577341, -0.043828561902046204, -0.012411123141646385, 0.019234390929341316, 0.0048941257409751415, -0.009355857968330383, -0.06298692524433136, -0.006690222769975662, -0.031189361587166786, 0.02892761118710041, 0.028737546876072884, 0.00627208361402154, 0.00873815268278122, -0.013903118669986725, -0.07762178778648376, 0.01896830089390278, 0.05101294815540314, -0.048770204186439514, 0.048352062702178955, -0.013732061721384525, 0.01689661294221878, -0.0145968496799469, -0.04899827763438225, 0.032424770295619965, 0.047249697148799896, -0.01762835681438446, -0.061922572553157806, -0.031322404742240906, -0.020260730758309364, -0.015043498016893864, 0.01480591855943203, -0.039457108825445175, 0.04979654401540756, -0.0004977278294973075, 0.005217233207076788, 0.05549843609333038, -0.04158581420779228, -0.04998660832643509, -0.016098348423838615, 0.01300031878054142, 0.03816467896103859, -0.021192040294408798, 0.06766247749328613, 0.04652745649218559, 0.04496894031763077, 0.0003237013006582856, 0.05496625974774361, 0.060592129826545715, -0.010719561018049717, -0.04246010631322861, -0.014995981939136982, -0.012116525322198868, -0.032576821744441986, 0.029421774670481682, 0.01759984716773033, 0.01783742569386959, 0.07952241599559784, 0.011574845761060715, 0.051545124500989914, -0.015471139922738075, 0.09214261174201965, 0.0416998527944088, 0.008072932250797749, -0.043068308383226395, 0.026399770751595497, 0.0011581972939893603, 0.00544055737555027, 0.02508833445608616, -0.03432540223002434, 0.01608884520828724, -0.028832579031586647, 0.011688883416354656, 0.02307366579771042, -0.020887939259409904, -0.058919575065374374, -0.028338413685560226, -0.018616685643792152, 0.027711207047104836, -0.0005761288921348751, -0.04778187349438667, 0.004445101600140333, -0.009716978296637535, -0.0639752522110939, 0.023415779694914818, 0.01893979124724865, -0.006523917429149151, 0.03307098522782326, -0.0008018288644962013, 0.03267185389995575, 0.03675821051001549, -0.04880821332335472, -0.009911793284118176, -0.0014064672868698835, -0.037860579788684845, 0.010206391103565693, 0.0048941257409751415, 0.06150443106889725, -0.04823802411556244, 0.03386925160884857, 0.01953849196434021, -0.05990790203213692, -0.0493784062564373, -0.03461049869656563, -0.025943618267774582, -0.027350086718797684, -0.03206365182995796, -0.016278907656669617, 0.0092988396063447, -0.0007121428498066962, 0.018683206290006638, -0.01723872683942318, 0.01220205333083868, -0.029003635048866272, 0.0987568125128746, 0.025392435491085052, -0.009450890123844147, 0.004007956478744745, 0.0023639104329049587, -0.009778748266398907, 0.0250313151627779, 0.021781235933303833, -0.04854212701320648, 0.010453472845256329, 0.02280757762491703, 0.011717393063008785, -0.03272887319326401, 0.002653756644576788, -0.004490241874009371, 0.046679507941007614, -0.052381403744220734, 0.0344204343855381, 0.044398751109838486, 0.026057656854391098, 0.05260947719216347, -0.010025830939412117, 0.06697825342416763, -0.003228697692975402, 0.06503960490226746, 0.032234709709882736, 0.044664837419986725, 0.006348108872771263, 0.02105899527668953, -0.026817908510565758, 0.025886600837111473, -0.0021097008138895035, 0.05359780788421631, 0.005098443944007158, -0.024803239852190018, -0.01780891604721546, -0.014853434637188911, -0.004770584870129824, 0.02461317740380764, -0.0019422076875343919, -0.012952802702784538, -0.026988966390490532, 0.040787551552057266, -0.023244721814990044, 0.039305057376623154, -0.07868614047765732, -0.012411123141646385, -0.022009311243891716, 0.018436124548316002, 0.007878117263317108, 0.023320747539401054, 0.030676191672682762, -0.009911793284118176, -0.1036224216222763, -0.03107532300055027, -0.04017934948205948, 0.004435598384588957, 0.038677848875522614, -0.01794196106493473, -0.028129344806075096, -0.03086625412106514, -0.031322404742240906, 0.018217552453279495, 0.026931947097182274, -0.08317162841558456, 0.022788571193814278, 0.04922635480761528, 0.021192040294408798, -0.02029874362051487, 0.013998150825500488, 0.09898488223552704, 0.00729842483997345, -0.03607398271560669, 0.045501116663217545, 0.027996301651000977, -0.02065986394882202, -0.012886281125247478, 0.019842592999339104, 0.04257414489984512, -0.011004655621945858, 0.031113335862755775, -0.019861597567796707, -0.02932674251496792, 0.030581159517169, 0.04743976145982742, 0.016525989398360252, -0.027236048132181168, 0.00950790848582983, 0.02801530808210373, -0.0688408687710762, -0.0931309387087822, -0.01509101316332817, -0.006063014268875122, 0.045425090938806534, 0.029497800394892693, -0.005739906802773476, 0.04025537520647049, -0.04648944362998009, 0.033679187297821045, -0.031607501208782196, 0.001126718008890748, -0.08423598110675812, 0.04493092745542526, 0.03763250261545181, -0.011935965158045292, 0.001085141790099442, 0.020735889673233032, -0.03155048191547394, 0.049682505428791046, 0.007094106636941433, -0.01150832325220108, 0.01119471900165081, 0.08864545077085495, -0.006034504622220993, 0.06899292021989822, -0.03711933270096779, -0.02529740519821644, 0.036321066319942474, 0.016630524769425392, -0.05485222116112709, -0.00023134247749112546, -0.013465973548591137, 0.015129026025533676, 0.047857899218797684, -0.04211799055337906, 0.0667501762509346, -0.025126347318291664, 0.060516104102134705, -0.07952241599559784, -0.012848268263041973, 0.009384367614984512, -0.06089623272418976, -0.0147774089127779, 0.016041329130530357, -0.0737064853310585, 0.008215479552745819, 0.0007869802066124976, 0.10932432115077972, 0.003908173181116581, 0.04131972789764404, -0.044322725385427475, -0.010177881456911564, -0.048656165599823, 0.022161362692713737, -0.046907585114240646, 0.013047834858298302, 0.04420868679881096, 0.01264870259910822, -0.014482811093330383, 0.0000012435772305252613, 0.06895490735769272, -0.023377766832709312, 0.07271815836429596, 0.023035652935504913, 0.024727214127779007, -0.0008612236124463379, -0.016811085864901543, 0.025050321593880653, -0.026380764320492744, -0.004442725796252489, -0.018797244876623154, -0.01834109239280224, 0.05112698674201965, -0.061846546828746796, 0.012278079055249691, 0.007022832985967398, 0.015936793759465218, -0.0004199207469355315, -0.0013755819527432323, -0.02508833445608616, 0.03873486816883087, -0.06925901025533676, -0.03704330697655678, 0.046679507941007614, -0.04200395569205284, -0.032633841037750244, 0.020564831793308258, -0.0035541807301342487, -0.01682058721780777, -0.0048941257409751415, 0.0673963874578476, 0.053369730710983276, 0.05610663816332817, 0.0194624662399292, 0.018721219152212143, 0.013323426246643066, 0.02238943800330162, -0.009327348321676254, 0.032576821744441986, 0.01794196106493473, 0.02265552617609501, 0.004473611246794462, 0.08104292303323746, -0.0018935040570795536, -0.04850411415100098, 0.10088551789522171, 0.024100005626678467, -0.04128171503543854, 0.022845590487122536, 0.011831430718302727, -0.02309267222881317, -0.054206009954214096, 0.027578162029385567, -0.03554180637001991, -0.012116525322198868, -0.0052124815993011, -0.01160335447639227, 0.012553670443594456, 0.06291089951992035, -0.011156706139445305, 0.052115313708782196, -0.027483129873871803, 0.01067204587161541, 0.06982919573783875, -0.0330139696598053, 0.04375253617763519, -0.04276420548558235, -0.013988647609949112, -0.013703553006052971, 0.026019643992185593, -0.06751042604446411, 0.015803750604391098, 0.062112633138895035, -0.014435295946896076, -0.0236438550055027, 0.02474622055888176, 0.009517411701381207, 0.01982358656823635, 0.015214554965496063, -0.0010002072667703032, 0.04500695317983627, -0.043334394693374634, -0.0771276205778122, -0.045995280146598816, 0.03168352693319321, -0.013465973548591137, -0.0695251002907753, -0.007079852279275656, -0.030334077775478363, 0.004504496697336435, -0.031379424035549164, 0.05618266388773918, -0.0625307708978653, 0.015756234526634216, -0.04569118097424507, 0.0019101345678791404, 0.006319599691778421, 0.031113335862755775, 0.011308756656944752, -0.03915300592780113, 0.017428789287805557, 0.045995280146598816, -0.015946296975016594, -0.043828561902046204, 0.005065182689577341, 0.032633841037750244, 0.016839593648910522, 0.01018738467246294, 0.08917762339115143, 0.018189042806625366, 0.036663178354501724, -0.010443969629704952, -0.007060845848172903, 0.06857477873563766, 0.0024470628704875708, -0.03280489891767502, -0.0039224280044436455, -0.0036824734415858984, -0.042726192623376846, -0.021667197346687317, 0.019110849127173424, 0.05348376929759979, -0.011137699708342552, -0.04428471252322197, 0.006590439472347498, 0.07564513385295868, -0.017333758994936943, 0.03468652442097664, -0.09351106733083725, -0.010472479276359081, -0.01377007458359003, 0.0330139696598053, -0.02649480290710926, 0.05082288384437561, 0.03976120799779892, -0.05603061616420746, 0.0022094841115176678, -0.023244721814990044, 0.021154027432203293, 0.04861815273761749, -0.038411762565374374, -0.048200011253356934, -0.052799541503190994, 0.016383443027734756, -0.010615026578307152, 0.04295426979660988, 0.011717393063008785, -0.010263409465551376, -0.03272887319326401, 0.03094227984547615, 0.029858918860554695, -0.06762446463108063, 0.025886600837111473, -0.05010064318776131, -0.08454008400440216, 0.03957114741206169, -0.023244721814990044, 0.019500479102134705, 0.02328273467719555, -0.02968786284327507, 0.007911378517746925, -0.022294405847787857, -0.07621531933546066, -0.029174692928791046, 0.014159704558551311, -0.0205078125, 0.012943300418555737, 0.02573454938828945, -0.016621021553874016, 0.016459468752145767, 0.022883601486682892, 0.059489764273166656, -0.008714394643902779, 0.01150832325220108, -0.0006770999170839787, -0.00028227345319464803, -0.09685617685317993, -0.019481472671031952, 0.06488755345344543, 0.056638818234205246, -0.05150711163878441, -0.050024617463350296, 0.004150503780692816, 0.021667197346687317, -0.023187702521681786, 0.046907585114240646, -0.0562967024743557, -0.00669497437775135, 0.05789323151111603, -0.043144334107637405, -0.01640244945883751, -0.0416998527944088, -0.00861936341971159, -0.02704598568379879, -0.029307736083865166, -0.041015625, 0.00004866655945079401, 0.04607130587100983, 0.07176784425973892, -0.009845270775258541, 0.011004655621945858, 0.03031507134437561, 0.04044543579220772, 0.019690541550517082, -0.05724702030420303, -0.03379322588443756, 0.035427771508693695, -0.07522699236869812, 0.036321066319942474, -0.032500796020030975, -0.027635181322693825, 0.016459468752145767, 0.00867163110524416, -0.0333750881254673, -0.016649531200528145, 0.041813891381025314, 0.03407832235097885, 0.02434708923101425, 0.03039109706878662, -0.05986988916993141, 0.004437974188476801, 0.04276420548558235, 0.034306395798921585, -0.0047658332623541355, -0.03094227984547615, 0.00011084541620220989, 0.044322725385427475, 0.0029554818756878376, -0.029744882136583328, 0.03293794393539429, -0.02508833445608616, 0.004193268250674009, -0.01686810329556465, 0.002549221972003579, 0.04736373573541641, 0.013513489626348019, 0.019633522257208824, -0.014938962645828724, 0.056752853095531464, -0.02801530808210373, 0.009683717042207718, 0.0006563118076883256, 0.008510077372193336, 0.008624115027487278, -0.041889917105436325, 0.035560812801122665, -0.020412782207131386, 0.01526207011193037, 0.027274060994386673, -0.01655449904501438, -0.05595459043979645, -0.015651699155569077, -0.048276036977767944, 0.027293067425489426, 0.006063014268875122, 0.009289336390793324, -0.020944958552718163, -0.03900095820426941, -0.011033165268599987, -0.05679086595773697, 0.013950634747743607, 0.00020075419161003083, 0.01988060399889946, -0.05192524939775467, 0.025069328024983406, 0.031056316569447517, -0.048009950667619705, 0.02615268900990486, 0.03039109706878662, -0.033546146005392075, -0.08089087158441544, 0.02510734088718891, 0.01734326221048832, 0.012249569408595562, 0.025620510801672935, -0.06412730365991592, -0.04401862248778343, -0.014340263791382313, -0.01650698482990265, -0.029630843549966812, 0.05477619916200638, -0.02746412344276905, -0.04394259676337242, -0.004863240756094456, 0.01865469664335251, 0.00917054619640112, -0.0010803901823237538, -0.01543312706053257, 0.020906945690512657, -0.03288092464208603, -0.003250079695135355, 0.030144015327095985, 0.0358269028365612, 0.0006984820356592536, 0.07271815836429596, -0.0004959460347890854, -0.010225396603345871, 0.008828433230519295, -0.03155048191547394, 0.0145968496799469, 0.023966962471604347, 0.04192792996764183, -0.01167938020080328, -0.008248740807175636, -0.06104828044772148, -0.07868614047765732, -0.05108897387981415, -0.0011617609998211265, -0.011954971589148045, -0.024214044213294983, 0.002435184083878994, -0.020108681172132492, 0.01865469664335251, 0.00850057415664196, 0.02982090786099434, 0.03516168147325516, 0.011764908209443092, 0.005126953125, 0.013637030497193336, 0.06713030487298965, 0.010862108319997787, 0.08035869896411896, -0.07271815836429596, -0.005250494461506605, -0.019158365204930305, 0.026323745027184486, 0.0336981937289238, -0.013541999273002148, 0.04546310380101204, 0.01509101316332817, 0.019338924437761307, -0.015537661500275135, 0.06104828044772148, 0.05260947719216347, 0.03356515243649483, -0.07758377492427826, 0.04637540504336357, -0.01883525773882866, -0.07039938867092133, -0.09487952291965485, 0.011764908209443092, -0.03599796071648598, 0.05652477964758873, -0.025145353749394417, -0.036948274821043015, -0.05755111947655678, 0.0396091602742672, -0.030086996033787727 ]
718,543
pytorch_optimizer.lr_scheduler.experimental.deberta_v3_lr_scheduler
deberta_v3_large_lr_scheduler
DeBERTa-v3 large layer-wise lr scheduler. Reference : https://github.com/gilfernandes/commonlit. :param model: nn.Module. model. based on Huggingface Transformers. :param layer_low_threshold: int. start of the 12 layers. :param layer_middle_threshold: int. end of the 24 layers. :param head_param_start: int. where the backbone ends (head starts). :param base_lr: float. base lr. :param head_lr: float. head_lr. :param wd: float. weight decay.
def deberta_v3_large_lr_scheduler( model: nn.Module, layer_low_threshold: int = 195, layer_middle_threshold: int = 323, head_param_start: int = 390, base_lr: float = 2e-5, head_lr: float = 1e-4, wd: float = 1e-2, ) -> PARAMETERS: """DeBERTa-v3 large layer-wise lr scheduler. Reference : https://github.com/gilfernandes/commonlit. :param model: nn.Module. model. based on Huggingface Transformers. :param layer_low_threshold: int. start of the 12 layers. :param layer_middle_threshold: int. end of the 24 layers. :param head_param_start: int. where the backbone ends (head starts). :param base_lr: float. base lr. :param head_lr: float. head_lr. :param wd: float. weight decay. """ named_parameters = list(model.named_parameters()) backbone_parameters = named_parameters[:head_param_start] head_parameters = named_parameters[head_param_start:] head_group = [params for (_, params) in head_parameters] parameters = [{'params': head_group, 'lr': head_lr}] for layer_num, (name, params) in enumerate(backbone_parameters): weight_decay: float = 0.0 if ('bias' in name) or ('LayerNorm.weight' in name) else wd lr = base_lr / 2.5 # 2e-5 if layer_num >= layer_middle_threshold: lr = base_lr / 0.5 # 1e-4 elif layer_num >= layer_low_threshold: lr = base_lr parameters.append({'params': params, 'weight_decay': weight_decay, 'lr': lr}) return parameters
(model: torch.nn.modules.module.Module, layer_low_threshold: int = 195, layer_middle_threshold: int = 323, head_param_start: int = 390, base_lr: float = 2e-05, head_lr: float = 0.0001, wd: float = 0.01) -> Union[Iterable[Dict], Iterable[torch.Tensor], NoneType]
[ -0.026115581393241882, -0.0011319711338728666, -0.10941590368747711, 0.018776264041662216, -0.005340581759810448, 0.030814198777079582, -0.04243326559662819, -0.0418504923582077, -0.07415805011987686, -0.05252254754304886, -0.024804338812828064, 0.009479191154241562, -0.03276285156607628, 0.005768556613475084, -0.0224914513528347, 0.05070137977600098, -0.006132790818810463, 0.012165416963398457, 0.029375474900007248, -0.06971439719200134, 0.005937014706432819, -0.03684227168560028, -0.0175105519592762, 0.08734332025051117, -0.011081820353865623, 0.01979612000286579, -0.025696711614727974, -0.008855439722537994, -0.029357263818383217, 0.03343668580055237, -0.005112935323268175, -0.016973305493593216, -0.018457559868693352, -0.012556968256831169, -0.04104917496442795, -0.02941189892590046, 0.03285390883684158, 0.0004146007704548538, -0.12201840430498123, -0.014004798606038094, 0.03882734850049019, -0.044145166873931885, 0.04924444109201431, 0.01010749489068985, -0.001914505148306489, -0.013959269970655441, 0.043271005153656006, 0.031779419630765915, 0.04800604656338692, -0.052886784076690674, 0.009588461369276047, -0.0880717933177948, 0.010471728630363941, -0.034456539899110794, -0.06807534396648407, -0.04993648827075958, -0.030031096190214157, 0.02653444930911064, 0.03589526563882828, -0.008960157632827759, 0.04134056344628334, -0.03343668580055237, -0.021271267905831337, 0.0837009847164154, -0.018758052960038185, -0.00036480315611697733, -0.06989651173353195, 0.010899703949689865, -0.017009729519486427, -0.015671169385313988, 0.010417093522846699, -0.02198152430355549, 0.049754370003938675, 0.05026429891586304, -0.0012782338308170438, -0.022782839834690094, -0.04381735622882843, -0.0745951309800148, -0.06060854345560074, 0.014277974143624306, 0.07419447600841522, 0.0016652324702590704, 0.007940301671624184, -0.0184120312333107, 0.028647007420659065, -0.06894950568675995, 0.00043907275539822876, -0.034037671983242035, -0.0032325771171599627, -0.06723760068416595, -0.04895305633544922, 0.0006015552789904177, -0.007653467822819948, 0.033345624804496765, 0.04334384948015213, 0.025259630754590034, -0.0418504923582077, 0.019468309357762337, -0.040065743029117584, -0.06403234601020813, 0.027718210592865944, 0.014405456371605396, -0.021526232361793518, 0.015461734496057034, 0.02309243753552437, -0.014013905078172684, -0.06902235001325607, -0.0023299595341086388, -0.010407987982034683, 0.010462623089551926, -0.0642508864402771, -0.020979881286621094, -0.03392840176820755, 0.021854043006896973, -0.01908586360514164, 0.03638698160648346, 0.005326922982931137, 0.053141746670007706, -0.026206638664007187, -0.0035376232117414474, 0.0503007210791111, -0.02964865043759346, -0.0719362199306488, -0.03977435827255249, -0.03655088692903519, -0.003583152312785387, 0.03926442936062813, 0.044618669897317886, 0.02901124209165573, -0.08158842474222183, -0.024130504578351974, 0.01290299091488123, -0.043234579265117645, -0.043016038835048676, 0.023984812200069427, -0.05977080389857292, -0.015771333128213882, 0.03864523023366928, -0.010699374601244926, -0.018921958282589912, -0.008008595556020737, 0.042761076241731644, 0.02986719086766243, 0.004871630109846592, -0.008646005764603615, -0.061191316694021225, 0.012019723653793335, -0.03250788897275925, 0.015871498733758926, 0.07495936751365662, 0.014797007665038109, 0.018457559868693352, -0.005231311544775963, -0.0075032212771475315, -0.001326039549894631, 0.018093325197696686, -0.01728290505707264, -0.01910407468676567, -0.032708216458559036, -0.00522220553830266, -0.03323635458946228, 0.018603254109621048, -0.04396304860711098, -0.03842668980360031, 0.0032439595088362694, -0.02451295033097267, 0.010462623089551926, 0.05620131269097328, -0.020815975964069366, 0.034237999469041824, -0.019614003598690033, -0.005053747445344925, -0.02114378660917282, 0.03296317905187607, 0.021435173228383064, 0.0534331351518631, 0.0007341592572629452, -0.021653713658452034, -0.02651623822748661, 0.0016766148619353771, 0.008026807568967342, 0.038535960018634796, 0.027772845700383186, -0.07590637356042862, -0.05332386493682861, -0.0025792322121560574, -0.01928619295358658, 0.020815975964069366, -0.04246968775987625, 0.009228779934346676, 0.003284935839474201, -0.012484122067689896, 0.01202882919460535, -0.01930440403521061, -0.03791676461696625, 0.03208901733160019, 0.03367343544960022, 0.018921958282589912, 0.022309334948658943, -0.0033327415585517883, 0.020834187045693398, 0.003858604235574603, 0.012174522504210472, -0.02292853221297264, -0.004589349031448364, -0.05660197138786316, -0.02495003119111061, 0.022327546030282974, -0.038754500448703766, 0.008837228640913963, -0.0075715151615440845, 0.0034989232663065195, 0.02806423231959343, 0.06763826310634613, 0.056929782032966614, -0.060572121292352676, -0.09899881482124329, 0.07171767950057983, 0.027954962104558945, -0.0346386581659317, -0.024549374356865883, -0.039009466767311096, 0.0012110781390219927, -0.006701906211674213, 0.00472593680024147, -0.002856960752978921, 0.054489411413669586, -0.01392284594476223, 0.012748191133141518, 0.004382190760225058, 0.02941189892590046, -0.04698619246482849, -0.032016173005104065, -0.005545463413000107, 0.0709892138838768, 0.024148717522621155, -0.02496824413537979, 0.022109005600214005, -0.003132412675768137, -0.040284283459186554, 0.031069163233041763, 0.011874029412865639, 0.013321859762072563, 0.011373207904398441, 0.042105454951524734, 0.002904766472056508, 0.05947941914200783, -0.027499670162796974, -0.0705157071352005, 0.01685493066906929, -0.06279394775629044, -0.01134589035063982, -0.0009020483703352511, 0.07233688235282898, -0.048588819801807404, -0.051976196467876434, 0.056492701172828674, -0.03212544322013855, -0.015671169385313988, -0.035822417587041855, -0.026643719524145126, -0.034511175006628036, -0.029375474900007248, 0.0553271509706974, -0.0013465277152135968, 0.021526232361793518, -0.006410519126802683, 0.004532437305897474, 0.02944832108914852, -0.004115844611078501, 0.08668769896030426, 0.010744904167950153, -0.039009466767311096, -0.013194378465414047, 0.0035444526001811028, 0.013103319332003593, -0.04381735622882843, -0.016108250245451927, 0.015470840968191624, 0.014305291697382927, 0.029339052736759186, -0.06060854345560074, -0.05758540332317352, -0.018776264041662216, -0.0074986680410802364, -0.033363837748765945, -0.06964154541492462, -0.024549374356865883, 0.002570126438513398, -0.020342471078038216, -0.005859615281224251, -0.061628397554159164, 0.05886022001504898, -0.019213344901800156, 0.05977080389857292, 0.011163773015141487, 0.025897040963172913, 0.02090703323483467, 0.06618132442235947, 0.012201840057969093, 0.030286060646176338, -0.03319993242621422, 0.07503221184015274, -0.006629059556871653, -0.0476418137550354, -0.03272642940282822, -0.021508019417524338, -0.03662373125553131, 0.0011940046679228544, -0.04206903278827667, -0.021398749202489853, -0.016964200884103775, 0.07925732433795929, -0.045929912477731705, -0.013431129977107048, -0.0019759696442633867, -0.004958136007189751, 0.021289478987455368, 0.019377250224351883, 0.029065877199172974, -0.008782593533396721, 0.002034019446000457, 0.015625640749931335, 0.026680143550038338, 0.04268822818994522, -0.07244615256786346, 0.07612491399049759, 0.012192734517157078, -0.0028797253035008907, -0.051794081926345825, -0.026206638664007187, -0.006783858872950077, 0.021872254088521004, 0.019377250224351883, -0.08457514643669128, -0.005044641438871622, 0.02422156371176243, 0.02272820472717285, 0.03125128149986267, -0.0028000492602586746, 0.07860170304775238, -0.0037516106385737658, -0.02292853221297264, 0.06436015665531158, 0.027481459081172943, 0.0032143653370440006, 0.0445093996822834, 0.017792832106351852, 0.03238040581345558, 0.02715364843606949, -0.005458957515656948, -0.007066140417009592, -0.014296186156570911, 0.10118421912193298, 0.009460979141294956, 0.01224736962467432, 0.007311998400837183, -0.057621825486421585, 0.0719362199306488, -0.03930085152387619, -0.014159598387777805, -0.006692800670862198, -0.05682051181793213, 0.0534331351518631, 0.06705548614263535, -0.010407987982034683, 0.015306935645639896, -0.023420248180627823, 0.08479368686676025, -0.01595345139503479, -0.025733135640621185, -0.008031360805034637, 0.030486388131976128, 0.061846937984228134, -0.012092569842934608, -0.04968152195215225, -0.05598277226090431, 0.004272920545190573, 0.011609960347414017, 0.06618132442235947, 0.000042327978007961065, 0.015407099388539791, 0.05569138377904892, -0.04330742731690407, 0.04017501324415207, -0.04352596774697304, -0.00006078866863390431, -0.005263181868940592, 0.01345844753086567, -0.03981078043580055, 0.0987074226140976, -0.00029124494176357985, 0.0006920446758158505, -0.0037174636963754892, -0.048661667853593826, 0.06971439719200134, -0.018129749223589897, 0.029539380222558975, -0.01538888830691576, -0.04268822818994522, -0.030832411721348763, -0.013686094433069229, -0.019413674250245094, 0.001207663444802165, -0.04509217292070389, -0.0036332346498966217, 0.0651978924870491, 0.06869453936815262, 0.0013396983267739415, 0.03576778247952461, -0.012493227608501911, 0.023456672206521034, -0.04068494215607643, -0.003690146142616868, -0.014323503710329533, -0.015352464281022549, 0.03860880807042122, 0.02309243753552437, -0.03666015714406967, 0.027699999511241913, 0.05463510751724243, -0.0017289734678342938, 0.05700262635946274, 0.025751346722245216, -0.0016140120569616556, -0.0008974954253062606, -0.047969624400138855, -0.002545085269957781, -0.03795318678021431, -0.04152268171310425, -0.004097633063793182, -0.03350953012704849, -0.006701906211674213, -0.0565655454993248, 0.0053451345302164555, 0.048661667853593826, -0.00031358274281956255, 0.025969887152314186, 0.05587350204586983, -0.046148452907800674, 0.032653581351041794, 0.00494447723031044, 0.02853773720562458, -0.01843024231493473, 0.014751478098332882, -0.0018268614076077938, -0.01868520677089691, -0.0010158715303987265, -0.03773464635014534, 0.024622220546007156, -0.0029411897994577885, 0.036696579307317734, 0.03970151022076607, 0.00976147223263979, 0.023711636662483215, -0.04268822818994522, 0.013813575729727745, 0.0036537228152155876, -0.013840893283486366, -0.015561899170279503, 0.03387376666069031, -0.006055390927940607, 0.033345624804496765, 0.04491005837917328, -0.014687737450003624, 0.03798960894346237, 0.03125128149986267, -0.028901971876621246, -0.05955226346850395, -0.02516857162117958, -0.011801183223724365, -0.004812442231923342, 0.049972910434007645, -0.033163510262966156, 0.018102431669831276, 0.06414161622524261, 0.0184120312333107, -0.02132590301334858, 0.037170082330703735, -0.021744772791862488, 0.05569138377904892, -0.06450584530830383, 0.04596633464097977, 0.04873451590538025, -0.01326722465455532, 0.051976196467876434, -0.07200907170772552, 0.0368240624666214, -0.019832544028759003, -0.01883089914917946, -0.09834319353103638, 0.003553558373823762, 0.038973040878772736, 0.08464799076318741, 0.00500366510823369, -0.011209302581846714, 0.01640874333679676, 0.02604273334145546, 0.061664823442697525, 0.025878828018903732, 0.04618487507104874, -0.05259539559483528, 0.013121531344950199, -0.04338027536869049, 0.011728336103260517, 0.016281262040138245, -0.04195976257324219, 0.0025268737226724625, -0.04465509206056595, 0.047277577221393585, 0.004468696191906929, 0.03172478452324867, 0.01771087944507599, 0.019359039142727852, -0.04647626355290413, -0.011063609272241592, -0.008195266127586365, 0.048406705260276794, 0.04487363249063492, 0.002451750449836254, 0.031142009422183037, 0.021016303449869156, 0.05150269344449043, -0.04611203074455261, 0.04603918269276619, 0.023511307314038277, 0.013840893283486366, -0.015079288743436337, 0.042105454951524734, 0.07080709934234619, 0.008955604396760464, 0.0030003779102116823, 0.009679519571363926, -0.005272287875413895, 0.038062456995248795, -0.008577711880207062, -0.040794212371110916, -0.036933332681655884, -0.03726114332675934, -0.07113490998744965, -0.003259894670918584, -0.005618310067802668, 0.028246350586414337, -0.023984812200069427, -0.020597435534000397, 0.03926442936062813, -0.014678631909191608, 0.08814463764429092, -0.07168126106262207, 0.026425179094076157, -0.02316528558731079, 0.04068494215607643, -0.037188295274972916, -0.0008872513426467776, -0.014778795652091503, -0.004038444720208645, -0.0043662553653120995, -0.013431129977107048, 0.05521788075566292, 0.005103829316794872, -0.006920446641743183, 0.00567294517531991, -0.002327683148905635, 0.016982411965727806, -0.01035335287451744, 0.011036291718482971, 0.007808267138898373, 0.014405456371605396, -0.024312622845172882, 0.0314151868224144, 0.03145160898566246, 0.003965598065406084, 0.01211988739669323, -0.04407231882214546, -0.046585533767938614, -0.003580875927582383, -0.010380670428276062, -0.0028319195844233036, -0.01751965656876564, -0.048625245690345764, 0.0322711355984211, -0.0141413863748312, 0.03345489501953125, -0.03835384547710419, 0.02719007059931755, 0.0228738971054554, -0.005914250388741493, 0.03167014941573143, -0.029757920652627945, -0.009961800649762154, -0.02136232703924179, 0.07120775431394577, -0.013403812423348427, 0.00612368481233716, 0.013440236449241638, 0.01595345139503479, -0.03758895397186279, 0.009624884463846684, -0.025022879242897034, 0.07007862627506256, -0.02651623822748661, -0.021945100277662277, 0.023748058825731277, 0.04804246872663498, -0.020105719566345215, -0.04676765203475952, -0.00224117748439312, -0.00747590372338891, 0.01211988739669323, -0.021854043006896973, -0.002001010812819004, 0.0004643983847927302, 0.025423536077141762, -0.0327446386218071, -0.017410386353731155, -0.06760183721780777, 0.013758940622210503, -0.010672057047486305, 0.12143562734127045, -0.03640519082546234, 0.025878828018903732, 0.03034069575369358, 0.004871630109846592, 0.010635633952915668, -0.002403944730758667, 0.019686849787831306, 0.018994804471731186, -0.07055213302373886, 0.018594147637486458, -0.0666184052824974, 0.007494115270674229, 0.005814085714519024, 0.02871985360980034, -0.037206508219242096, -0.01034424640238285, 0.02108915150165558, 0.04654911160469055, 0.017801938578486443, -0.013412918895483017, -0.07109848409891129, 0.01547994650900364, 0.02871985360980034, -0.015279618091881275, -0.0332181453704834, -0.007662573363631964, 0.04541998356580734, 0.015097500756382942, 0.04312530905008316, 0.032872121781110764, 0.07656199485063553, -0.038280997425317764, 0.024640433490276337, -0.02203615941107273, 0.0056957099586725235, -0.0053451345302164555, 0.029029453173279762, 0.038499537855386734, -0.002661184873431921, 0.04633057117462158, -0.04359881579875946, -0.01659085974097252, -0.015470840968191624, 0.023966599255800247, -0.047532543540000916, 0.007006952539086342, -0.03370986133813858, 0.029921825975179672, -0.008218030445277691, 0.005404322408139706, -0.02294674515724182, -0.05809532850980759, -0.08435660600662231, -0.004876183345913887, 0.021234843879938126, 0.05306889861822128, -0.00010087575356010348, -0.0300857312977314, -0.023875541985034943, 0.015152135863900185, -0.061846937984228134, 0.07040643692016602, 0.023766271770000458, -0.0394829697906971, 0.0023185773752629757, -0.0026657378766685724, -0.0029776133596897125, -0.05190335214138031, 0.023493096232414246, 0.010080177336931229, 0.024658644571900368, -0.013758940622210503, 0.030213212594389915, -0.021872254088521004, 0.004516501910984516, -0.012575180269777775, -0.019941814243793488, -0.041668374091386795, -0.020524587482213974, -0.014441879466176033, -0.030449965968728065, 0.029812555760145187, -0.03882734850049019, -0.08872741460800171, 0.022983167320489883, -0.012156311422586441, 0.0818069651722908, -0.0004533006576821208, -0.01495180744677782, -0.02606094628572464, -0.03332741558551788, 0.050664953887462616, 0.014223339036107063, 0.06410519033670425, 0.005081064999103546, 0.0015912475064396858, -0.04512859880924225, -0.03075956366956234, 0.0323621928691864, -0.0075806207023561, 0.04046640172600746, -0.0027226493693888187, 0.04421801120042801, 0.05099276453256607, -0.0015195389278233051, -0.012994049116969109, -0.019705060869455338, 0.015543687157332897, 0.030468177050352097, -0.020360682159662247, 0.00472593680024147, 0.06829388439655304, 0.0336916483938694, -0.028009597212076187, 0.016681918874382973, 0.05259539559483528, 0.004511949140578508, -0.000873592565767467, -0.017392175272107124, 0.0016959647182375193, 0.009907165542244911, 0.02043353021144867, 0.0026429733261466026, -0.02877448871731758, -0.03667836636304855, -0.014778795652091503, 0.04578422009944916, 0.020815975964069366, -0.02671656757593155, 0.06042642518877983, -0.03522143140435219, 0.05616489052772522, -0.009652202017605305, -0.00967041403055191, -0.03101452812552452, 0.046840496361255646, -0.0454564094543457, 0.015179453417658806, -0.02112557366490364, -0.0303224828094244, -0.06639986485242844, 0.03183405473828316, -0.08552215248346329, 0.056529123336076736, 0.01156443078070879, 0.022090794518589973, 0.005991649813950062, 0.022782839834690094, -0.014514726586639881 ]
718,544
pytorch_optimizer.optimizer.utils
disable_running_stats
Disable running stats (momentum) of BatchNorm.
def disable_running_stats(model): r"""Disable running stats (momentum) of BatchNorm.""" def _disable(module): if isinstance(module, _BatchNorm): module.backup_momentum = module.momentum module.momentum = 0 model.apply(_disable)
(model)
[ 0.06648177653551102, 0.03772728145122528, -0.018707742914557457, 0.011267950758337975, 0.010046751238405704, -0.012281287461519241, -0.0638488382101059, -0.017053494229912758, 0.005885144229978323, 0.02345396764576435, -0.04015235975384712, -0.009908175095915794, 0.008769255131483078, -0.03014025278389454, -0.014247332699596882, 0.02468382753431797, 0.0054953997023403645, 0.034695934504270554, 0.0016975544858723879, -0.07801821827888489, 0.01775503344833851, -0.017876287922263145, -0.06249772012233734, 0.032530687749385834, 0.00022044932120479643, 0.009778260253369808, -0.03014025278389454, -0.012896217405796051, -0.007145318668335676, 0.00006539726018672809, 0.030711878091096878, -0.007556715980172157, -0.0009408002952113748, -0.043893907219171524, -0.0012374392244964838, -0.05342100188136101, -0.019729740917682648, 0.07857251912355423, -0.14134739339351654, -0.0038368196692317724, 0.05799400433897972, -0.023540576919913292, 0.004681266378611326, 0.06807539612054825, -0.010150683112442493, -0.05033768713474274, 0.05116914212703705, 0.021583192050457, 0.0038389847613871098, -0.014048129320144653, -0.03348339721560478, 0.008141333237290382, 0.036099016666412354, 0.07815679162740707, -0.007184293121099472, 0.01924472488462925, -0.015797650441527367, 0.014238671399652958, 0.029118256643414497, -0.04728901758790016, 0.006993751507252455, -0.010653020814061165, -0.02683175355195999, 0.017391271889209747, 0.06873363256454468, -0.035336848348379135, -0.02347128838300705, 0.05799400433897972, 0.005413120146840811, 0.021358007565140724, -0.05827115476131439, -0.03436681628227234, 0.04645756259560585, 0.09457803517580032, -0.019833672791719437, -0.021080855280160904, -0.06790217757225037, 0.004194085486233234, -0.02385237254202366, 0.020890314131975174, 0.051377005875110626, 0.009492447599768639, 0.002189065795391798, 0.03531952574849129, -0.052797410637140274, -0.07427667081356049, 0.018361303955316544, -0.018898285925388336, 0.013822943903505802, -0.029031645506620407, -0.019504554569721222, 0.031855128705501556, -0.005876483395695686, -0.02504758909344673, 0.0286332406103611, 0.041330255568027496, -0.013233995996415615, 0.040221650153398514, -0.04822440445423126, -0.09700311720371246, 0.047081153839826584, -0.017261357977986336, 0.06655106693506241, 0.027455344796180725, 0.030469371005892754, -0.002297328319400549, -0.035717930644750595, -0.049610164016485214, -0.011155358515679836, 0.06083481013774872, -0.03575257584452629, 0.09970534592866898, -0.0488133542239666, -0.015814971178770065, -0.008219282142817974, -0.02132336236536503, -0.01953919790685177, 0.0007870676927268505, -0.0038628026377409697, 0.04683864489197731, 0.00016658876847941428, 0.0017062154365703464, -0.03776192665100098, -0.050268400460481644, 0.003421091940253973, 0.028096258640289307, 0.016577139496803284, 0.005274544470012188, 0.05127307400107384, -0.014732347801327705, -0.024701150134205818, -0.03977127745747566, 0.006517396774142981, -0.0042633735574781895, 0.04029093682765961, -0.05671217665076256, 0.041919201612472534, 0.04399784281849861, 0.026398705318570137, 0.04711579903960228, 0.0147843137383461, 0.027541955932974815, 0.021565871313214302, -0.0010799175361171365, 0.0769096091389656, 0.0356486439704895, -0.005469416733831167, 0.06932258605957031, 0.043686043471097946, -0.017070814967155457, 0.021912310272455215, 0.0009938488947227597, 0.021756412461400032, 0.022951629012823105, -0.010938833467662334, 0.0637795478105545, 0.016152750700712204, -0.02279573120176792, 0.0013121403753757477, -0.05792471766471863, -0.022085530683398247, 0.03305034711956978, 0.0013749325880780816, -0.07725605368614197, 0.018898285925388336, -0.005880813580006361, -0.024822404608130455, 0.03473057970404625, -0.013346589170396328, 0.02279573120176792, -0.006400473415851593, 0.005859161261469126, 0.044171061366796494, 0.04067201912403107, 0.05525713041424751, 0.06953044980764389, 0.029326120391488075, 0.014463856816291809, -0.028685206547379494, 0.054009947925806046, 0.007634664885699749, 0.038524094969034195, -0.03473057970404625, -0.04205777868628502, -0.030521336942911148, 0.00793346855789423, -0.009657006710767746, -0.05574214830994606, -0.035821862518787384, -0.030348116531968117, 0.04995660483837128, 0.033067669719457626, 0.06253236532211304, -0.023956304416060448, -0.008492102846503258, 0.06440313905477524, -0.05750899016857147, -0.025584571063518524, 0.049229081720113754, -0.04119167849421501, 0.010453817434608936, 0.02347128838300705, 0.009977462701499462, -0.02468382753431797, -0.03706904873251915, -0.008362188003957272, -0.052416324615478516, 0.004910782445222139, -0.006768565624952316, -0.0019714583177119493, 0.008535407483577728, -0.020336009562015533, 0.05847901850938797, 0.0994974821805954, 0.05650431290268898, -0.007929138839244843, 0.05394066125154495, 0.036376167088747025, 0.010064072906970978, -0.0029793812427669764, -0.023228781297802925, -0.0450371615588665, -0.023419322445988655, -0.036549389362335205, 0.008171645924448967, 0.040221650153398514, 0.03987520933151245, -0.049783382564783096, 0.020336009562015533, 0.0023059891536831856, 0.0629134476184845, 0.00957039650529623, -0.0713665783405304, -0.025030268356204033, -0.030902421101927757, 0.016577139496803284, -0.02591368928551674, 0.0012038779677823186, 0.006361498963087797, -0.03762334957718849, -0.007162640802562237, -0.013502486981451511, 0.023419322445988655, 0.008444467559456825, 0.04202313348650932, -0.008712958544492722, 0.015182719565927982, 0.03783121332526207, -0.04981802776455879, -0.001169233932159841, 0.01903686113655567, -0.0030898090917617083, -0.01375365536659956, 0.035717930644750595, 0.006526057608425617, -0.09589450806379318, -0.007119335699826479, -0.005278874654322863, 0.008323214016854763, 0.007396487519145012, -0.02638138271868229, -0.07056976854801178, -0.06267093867063522, -0.0012883226154372096, 0.03150869160890579, 0.012887556105852127, -0.037311553955078125, 0.03620294854044914, 0.031040996313095093, 0.038524094969034195, 0.020041536539793015, -0.0450718030333519, -0.042958520352840424, -0.04160740599036217, -0.003784853732213378, 0.043686043471097946, -0.006266227923333645, -0.00021598349849227816, 0.06558103114366531, 0.03318892419338226, 0.0656849667429924, -0.06485351175069809, -0.05078805983066559, -0.03277319669723511, 0.01933133415877819, -0.004490724299103022, -0.012445845641195774, -0.032149601727724075, 0.007283894345164299, 0.00572924641892314, 0.025480639189481735, -0.014836279675364494, 0.0469079352915287, -0.009076720103621483, -0.035613998770713806, -0.057474344968795776, 0.007968112826347351, -0.029880423098802567, -0.01604015752673149, 0.022865019738674164, 0.046596139669418335, -0.007024064660072327, -0.002929580630734563, 0.017858965322375298, 0.02345396764576435, 0.013303284533321857, 0.022293394431471825, -0.0007156144711188972, 0.010245953686535358, -0.0015459870919585228, 0.011588407680392265, -0.008535407483577728, 0.03578722104430199, -0.020717093721032143, -0.009223956614732742, 0.016984205693006516, 0.028408054262399673, -0.0206304844468832, -0.01914079301059246, 0.055049266666173935, -0.05539570748806, -0.006058364175260067, 0.04063737764954567, 0.012748980894684792, -0.006041042041033506, -0.031300827860832214, 0.06222056970000267, 0.018430592492222786, -0.05612323060631752, 0.03831623122096062, -0.017443237826228142, -0.04812047258019447, 0.045002516359090805, 0.03296373784542084, -0.023731118068099022, -0.02870252914726734, 0.01102544367313385, -0.026693178340792656, 0.036376167088747025, -0.0019324838649481535, 0.007426801137626171, 0.019677774980664253, -0.011337239295244217, 0.03772728145122528, -0.006673294585198164, -0.003693913109600544, 0.014238671399652958, 0.06235914304852486, 0.060869455337524414, -0.030261507257819176, 0.045383598655462265, 0.0825912207365036, -0.10005178302526474, 0.09340014308691025, 0.008089366368949413, -0.014671720564365387, 0.03301570191979408, 0.0056686196476221085, 0.007011073175817728, -0.09589450806379318, -0.08300694823265076, 0.029915068298578262, -0.0319417379796505, 0.015598447062075138, 0.016923578456044197, 0.02478775940835476, 0.00016848336963448673, -0.050441619008779526, 0.08425413072109222, -0.034401461482048035, -0.03651474416255951, -0.012186015956103802, -0.006114660762250423, 0.02449328638613224, -0.025394029915332794, 0.011848237365484238, -0.030382761731743813, -0.013918214477598667, 0.033847156912088394, 0.010661681182682514, 0.05321313813328743, -0.050060536712408066, 0.01586693711578846, -0.035336848348379135, 0.04715044051408768, 0.023315390571951866, 0.007296885829418898, -0.008630678988993168, -0.016542496159672737, -0.0975574180483818, 0.057474344968795776, -0.07912682741880417, -0.03499040752649307, 0.02279573120176792, 0.019002217799425125, 0.051377005875110626, -0.011389205232262611, 0.024008270353078842, -0.005361154209822416, -0.01884631998836994, -0.03247871994972229, 0.02825215645134449, -0.01639525778591633, 0.033656615763902664, -0.02073441632091999, -0.014974855817854404, -0.031300827860832214, -0.009232617914676666, -0.008938143961131573, -0.007985434494912624, -0.01435992494225502, -0.0028148225974291563, -0.023142172023653984, 0.007846859283745289, 0.051377005875110626, 0.03557935729622841, 0.00957039650529623, -0.063883475959301, 0.017261357977986336, -0.01849987916648388, 0.053455643355846405, -0.000530485762283206, 0.053559575229883194, -0.013251318596303463, 0.02553260512650013, 0.028477342799305916, 0.0034990408457815647, -0.045279666781425476, -0.03259997442364693, 0.035146307200193405, -0.027056939899921417, -0.04261208325624466, -0.03575257584452629, -0.051758091896772385, 0.0054867384023964405, -0.023350035771727562, 0.010696325451135635, -0.00020610455248970538, -0.029897745698690414, 0.026433348655700684, -0.0046076481230556965, 0.03211496025323868, 0.05875617265701294, -0.021946953609585762, 0.02994971163570881, 0.02816554717719555, 0.00018797059601638466, 0.04299316555261612, 0.011579746380448341, -0.008279908448457718, 0.004941096063703299, 0.01224664319306612, 0.010549088940024376, -0.001976871397346258, 0.0052225785329937935, -0.0666896402835846, -0.017408594489097595, -0.03341410681605339, 0.02880646102130413, -0.024857047945261, -0.03724226728081703, 0.01416938379406929, -0.11058355122804642, -0.007669308688491583, 0.01357177458703518, 0.005876483395695686, 0.06807539612054825, -0.022362682968378067, -0.0005629644729197025, 0.005291866138577461, 0.023402001708745956, -0.020907634869217873, 0.08744137734174728, -0.021479260176420212, -0.05996870994567871, 0.019660452380776405, -0.012809607200324535, -0.00811534933745861, 0.04517573490738869, -0.00032126868609339, 0.017495203763246536, -0.027663208544254303, 0.03507702052593231, 0.02288234233856201, -0.019002217799425125, 0.016577139496803284, -0.04815511777997017, -0.029724525287747383, 0.048570845276117325, -0.009890853427350521, -0.03859338164329529, -0.016031496226787567, 0.03859338164329529, 0.016092123463749886, 0.0007697456749156117, -0.028945036232471466, 0.002617785008624196, 0.03790050372481346, 0.06793682277202606, 0.019106149673461914, 0.029152899980545044, 0.018136117607355118, -0.02310752682387829, -0.06270558387041092, -0.014299298636615276, 0.03235746547579765, -0.01309542078524828, -0.002403425285592675, -0.06457635760307312, 0.0008801733492873609, 0.002845135983079672, -0.017261357977986336, 0.005421780981123447, 0.009137347340583801, -0.0037891841493546963, -0.06225521117448807, 0.0055603571236133575, -0.031768519431352615, 0.04628434404730797, -0.006694946903735399, 0.003016190603375435, -0.018153440207242966, -0.01775503344833851, 0.0075134108774363995, 0.013017471879720688, 0.008639340288937092, -0.0305040143430233, 0.01675901934504509, 0.038350872695446014, 0.03828158602118492, 0.060661591589450836, -0.021167464554309845, 0.03977127745747566, 0.01463707722723484, 0.036480098962783813, -0.05331707000732422, -0.016793664544820786, -0.11778949201107025, -0.01014202181249857, -0.027923040091991425, -0.03959805518388748, -0.049055859446525574, 0.1014375388622284, 0.023211458697915077, -0.006227253470569849, 0.049610164016485214, -0.028217513114213943, 0.04805118590593338, -0.032236214727163315, 0.012402541004121304, -0.0044344281777739525, 0.01610078476369381, -0.04732366278767586, -0.05366350710391998, -0.056261807680130005, -0.002533340360969305, -0.05324777960777283, -0.00078598503023386, 0.012974166311323643, 0.00446041114628315, -0.004646622575819492, -0.029360763728618622, 0.059102609753608704, -0.01610078476369381, -0.02000689134001732, 0.01421268843114376, -0.007037056144326925, -0.01539058331400156, -0.06828325986862183, 0.014290637336671352, -0.0011551599018275738, -0.045660752803087234, -0.00934521108865738, -0.0637795478105545, 0.0016401754692196846, 0.05196595564484596, 0.022865019738674164, -0.021756412461400032, -0.022085530683398247, -0.02870252914726734, -0.03221889212727547, -0.06554639339447021, -0.013840265572071075, -0.0412956103682518, -0.004932435229420662, -0.019002217799425125, -0.03897446393966675, 0.0016542494995519519, 0.043512824922800064, 0.0314394012093544, 0.02468382753431797, 0.07954255491495132, 0.01811879500746727, -0.05951834097504616, -0.0015492349630221725, 0.02101156674325466, -0.06502673029899597, -0.014255993068218231, 0.00824093446135521, 0.09797314554452896, 0.01646454632282257, -0.006331185344606638, 0.056157875806093216, 0.041711337864398956, -0.012402541004121304, -0.02523813210427761, -0.04524502530694008, -0.030919741839170456, -0.021375328302383423, 0.04372068867087364, -0.07517741620540619, -0.0013554452452808619, 0.016828307881951332, 0.020249400287866592, 0.09873531013727188, -0.029031645506620407, 0.0253593847155571, -0.03407234326004982, 0.030902421101927757, -0.043963197618722916, -0.01801486313343048, 0.06080016493797302, -0.03201102837920189, -0.025272775441408157, -0.010427834466099739, 0.007400817703455687, 0.0001381698966724798, -0.004137788899242878, 0.013822943903505802, -0.03547542542219162, -0.07732533663511276, 0.0027303777169436216, 0.002654594136402011, -0.017625119537115097, -0.014056790620088577, -0.03259997442364693, -0.011579746380448341, 0.00914600770920515, 0.03235746547579765, -0.03575257584452629, 0.038246940821409225, -0.04954087734222412, 0.0403255820274353, -0.008132671937346458, -0.08751066774129868, -0.007613012101501226, -0.014654398895800114, 0.03596043959259987, 0.043166384100914, 0.02655460312962532, -0.013346589170396328, -0.038420163094997406, -0.008076375350356102, 0.017261357977986336, -0.058063291013240814, 0.0048718079924583435, -0.02186034433543682, -0.005313518922775984, 0.0713665783405304, -0.05958762764930725, -0.050822701305150986, -0.032981060445308685, -0.052624188363552094, 0.051480937749147415, 0.03689582645893097, -0.04635363072156906, -0.030729200690984726, 0.019677774980664253, 0.004798189736902714, -0.0384894497692585, 0.0031547665130347013, -0.0004828503297176212, -0.014091434888541698, -0.018725065514445305, -0.044517502188682556, 0.017218053340911865, -0.05567285791039467, 0.03717298060655594, -0.04853620007634163, 0.011241967789828777, -0.03395108878612518, 0.02477043867111206, -0.034505393356084824, -0.011415188200771809, -0.0037545401137322187, 0.06461100280284882, -0.010826240293681622, 0.03511166200041771, 0.0028841104358434677, -0.03855873644351959, -0.05116914212703705, 0.014680381864309311, 0.03388180211186409, 0.018984895199537277, -0.0007632499327883124, -0.040498800575733185, -0.006313863210380077, 0.017200730741024017, 0.02504758909344673, 0.011432509869337082, -0.004388957750052214, -0.00603238120675087, -0.04178062826395035, 0.01990295946598053, 0.008704297244548798, 0.0020331679843366146, 0.0043283309787511826, 0.003204567125067115, -0.004456080496311188, -0.04160740599036217, 0.04493322968482971, 0.043686043471097946, 0.03772728145122528, 0.03887053206562996, -0.024701150134205818, 0.0220508873462677, -0.01905418373644352, -0.01933133415877819, 0.010168004781007767, -0.023765763267874718, 0.045937903225421906, 0.004789528902620077, 0.010211310349404812, 0.056920040398836136, -0.02102888934314251, -0.008310222066938877, -0.019954925402998924, 0.0230035949498415, 0.035995084792375565, -0.019071504473686218, 0.06991153210401535, -0.07351450622081757, -0.013545791618525982, 0.04063737764954567, 0.05331707000732422, 0.061423756182193756, -0.010254614986479282, 0.024337388575077057, -0.03925161808729172, 0.004001378547400236, -0.02232803776860237, -0.013831604272127151, -0.027801785618066788, -0.007283894345164299, -0.02787107415497303, 0.013909554108977318, 0.014628415927290916, 0.02691836468875408, 0.04001378268003464, -0.050164468586444855, 0.058063291013240814, -0.027663208544254303, 0.004070666618645191, 0.06537316739559174, 0.02702229656279087, 0.013026132248342037, 0.027334092184901237, 0.004421436693519354, -0.025879045948386192, -0.04091452807188034, 0.04739294946193695, -0.028460020199418068, -0.029897745698690414, 0.0034167615231126547, 0.015381922014057636, -0.02419881336390972, 0.023332713171839714, -0.02270912192761898 ]
718,545
pytorch_optimizer.optimizer.utils
enable_running_stats
Enable running stats (momentum) of BatchNorm.
def enable_running_stats(model): r"""Enable running stats (momentum) of BatchNorm.""" def _enable(module): if isinstance(module, _BatchNorm) and hasattr(module, 'backup_momentum'): module.momentum = module.backup_momentum model.apply(_enable)
(model)
[ 0.05930953100323677, 0.01994326338171959, -0.018451854586601257, 0.027920568361878395, 0.04838409274816513, 0.015798533335328102, -0.03919284790754318, -0.005363003816455603, -0.003019670257344842, 0.029897553846240044, -0.017740832641720772, -0.05088133364915848, 0.047343574464321136, -0.01782754249870777, -0.016804367303848267, -0.011194240301847458, -0.004743028432130814, 0.026758655905723572, -0.01791425235569477, -0.07477856427431107, 0.024851040914654732, -0.02365444414317608, -0.056742921471595764, 0.026533210650086403, 0.01589391380548477, 0.03610597923398018, -0.014948776923120022, -0.029342610388994217, 0.003409864380955696, 0.0005086074233986437, 0.029238557443022728, -0.017446020618081093, -0.010231761261820793, -0.05924016237258911, 0.006542257498949766, -0.062014877796173096, -0.012399506755173206, 0.06177208945155144, -0.12860803306102753, -0.002293475205078721, 0.06250045448541641, -0.006143392063677311, 0.024209387600421906, 0.07512540370225906, -0.0014046994037926197, -0.019266925752162933, 0.04071894288063049, 0.04883498325943947, 0.044222019612789154, -0.03728523105382919, -0.047447625547647476, -0.007916608825325966, 0.038950059562921524, 0.05937889963388443, -0.010127709247171879, 0.012122035957872868, -0.0009462211164645851, 0.016587592661380768, 0.01815704070031643, -0.04332023486495018, 0.02544066682457924, -0.018521221354603767, -0.007907937280833721, 0.03475330397486687, 0.07193448394536972, -0.054974038153886795, -0.0323774553835392, 0.04273061081767082, 0.01643151417374611, 0.022874055430293083, -0.05185248330235481, -0.025510035455226898, 0.05979510769248009, 0.06874356418848038, -0.04554000869393349, 0.005454048980027437, -0.10294192284345627, -0.008376170881092548, -0.0073963492177426815, 0.03565508499741554, 0.05424567684531212, 0.011055504903197289, 0.01624942384660244, 0.027885884046554565, -0.05556366592645645, -0.07387678325176239, -0.028423486277461052, -0.03669560328125954, 0.02008199878036976, -0.024417491629719734, -0.01253824308514595, 0.0468926802277565, 0.00756109831854701, -0.0038542523980140686, 0.03593255952000618, 0.03610597923398018, -0.02172948606312275, 0.02013402432203293, -0.05587582290172577, -0.06100904196500778, -0.002120055491104722, 0.004899105988442898, 0.06461617350578308, 0.007439704146236181, 0.026567894965410233, -0.012286784127354622, -0.04175945743918419, -0.058477114886045456, -0.008757693693041801, 0.05757533386349678, -0.011662473902106285, 0.04893903434276581, -0.038950059562921524, -0.027989936992526054, -0.008432531729340553, -0.04831472411751747, 0.006633302662521601, -0.012104693800210953, 0.0014437187928706408, 0.044256702065467834, 0.009199914522469044, -0.004838408902287483, 0.0034792323131114244, -0.033088475465774536, 0.0019076165044680238, 0.018382485955953598, 0.047586359083652496, 0.012781030498445034, 0.042418453842401505, -0.036973077803850174, -0.0035789485555142164, -0.03421570360660553, 0.009321307763457298, -0.007899266667664051, 0.04158603772521019, -0.08442070335149765, 0.026637263596057892, 0.04332023486495018, 0.0019303777953609824, 0.05757533386349678, 0.004231440369039774, 0.04113514721393585, 0.010899427346885204, -0.00584857864305377, 0.05185248330235481, 0.005844243336468935, -0.028093988075852394, 0.08185409009456635, 0.04484632983803749, -0.016648288816213608, 0.049493975937366486, -0.015781190246343613, 0.03614066168665886, 0.03790954127907753, -0.03449317440390587, 0.04106578230857849, 0.01599796488881111, -0.025683455169200897, 0.03790954127907753, -0.05459251627326012, -0.045713428407907486, 0.024486858397722244, -0.014749343506991863, -0.03404228389263153, 0.018711984157562256, -0.0007662982097826898, -0.06589947640895844, 0.03286302834749222, -0.04356302320957184, 0.022267086431384087, 0.056708235293626785, 0.0011228924850001931, 0.07824695855379105, 0.049702081829309464, 0.05764470249414444, 0.06777241080999374, 0.024469517171382904, -0.0017981453565880656, -0.0008058595703914762, 0.04342428967356682, 0.0181223563849926, 0.060211312025785446, -0.031527698040008545, -0.05889332294464111, -0.04314681515097618, 0.009399347007274628, 0.0013093185843899846, -0.06173740699887276, -0.006425199098885059, -0.024070652201771736, 0.05601455643773079, 0.020342128351330757, 0.05986447259783745, -0.034996092319488525, -0.03586319088935852, 0.05160969868302345, -0.08379638940095901, -0.04883498325943947, 0.03419836238026619, -0.009121875278651714, -0.01999528892338276, 0.0040493495762348175, 0.020827703177928925, 0.0011050085304304957, -0.006420863792300224, -0.007855911739170551, -0.035117484629154205, 0.0362447127699852, -0.004981480538845062, -0.008957126177847385, -0.0072922976687550545, -0.0395050048828125, 0.022197719663381577, 0.11639928817749023, 0.03209998458623886, -0.0355510339140892, 0.06118246167898178, 0.027521703392267227, 0.025683455169200897, -0.02868361584842205, 0.000627562461886555, -0.02526724711060524, -0.043944548815488815, -0.02552737668156624, 0.001520673860795796, 0.0077431886456906796, 0.029862869530916214, -0.053170472383499146, -0.007595782168209553, 0.014515227638185024, 0.053031738847494125, 0.02172948606312275, -0.094479039311409, -0.011853234842419624, -0.058615852147340775, 0.012824385426938534, 0.02370646968483925, 0.05906674265861511, 0.02190290577709675, -0.03431975468993187, 0.013414012268185616, 0.007925279438495636, 0.026619920507073402, -0.003778381273150444, 0.0035399291664361954, -0.05074260011315346, 0.0019585585687309504, 0.03600192442536354, -0.07949557900428772, 0.012156719341874123, -0.0044655567035079, -0.00638184417039156, -0.021972274407744408, 0.020411496981978416, -0.04456885904073715, -0.08719541877508163, -0.0006145560182631016, 0.013587431982159615, 0.0080076539888978, -0.0035984583664685488, -0.03562040254473686, -0.03409430757164955, -0.029481345787644386, -0.00037583295488730073, 0.007387678604573011, 0.013509392738342285, -0.027608413249254227, 0.024382807314395905, 0.0389847457408905, 0.03797890990972519, -0.03294973820447922, -0.013006475754082203, -0.05261553078889847, -0.029134506359696388, 0.011246266774833202, 0.020411496981978416, -0.022648610174655914, -0.012078681029379368, 0.03631408140063286, 0.029672106727957726, 0.04429138824343681, -0.0757497176527977, -0.06534453481435776, -0.029932236298918724, -0.010422523133456707, -0.009303965605795383, -0.006815393455326557, 0.018729325383901596, 0.005033506080508232, -0.029394635930657387, 0.00761312386021018, 0.003002328332513571, 0.056881655007600784, -0.02890906110405922, -0.012937108054757118, -0.040788307785987854, 0.014437188394367695, -0.016613606363534927, -0.02002997323870659, 0.020324787124991417, 0.06499769538640976, -0.034961406141519547, -0.027469677850604057, 0.017003798857331276, 0.020897071808576584, 0.009789541363716125, 0.01810501515865326, -0.0011109698098152876, -0.015373654663562775, -0.03040046989917755, 0.013665471225976944, 0.010483219288289547, 0.006208424456417561, -0.026342449709773064, 0.0021211395505815744, -0.011480382643640041, 0.011636460199952126, 0.002562275854870677, -0.021018465980887413, 0.052962370216846466, -0.05757533386349678, 0.01168848667293787, 0.04814130440354347, 0.02365444414317608, -0.014307123608887196, -0.027434993535280228, 0.10703462362289429, 0.015772519633173943, -0.05365604907274246, 0.02368912845849991, -0.03404228389263153, -0.03227340430021286, 0.05920547991991043, 0.05407225713133812, -0.05261553078889847, -0.022874055430293083, -0.0005365171236917377, -0.027868542820215225, 0.0179489366710186, 0.01970047503709793, 0.030313760042190552, 0.04821067303419113, -0.025926241651177406, 0.04564405977725983, -0.0003422329027671367, -0.012442861683666706, 0.005280629266053438, 0.05417630821466446, 0.05365604907274246, -0.04335492104291916, -0.00359412282705307, 0.06534453481435776, -0.10467611998319626, 0.07269752770662308, 0.026099661365151405, -0.0022609590087085962, 0.03943563625216484, -0.037007760256528854, 0.005982979200780392, -0.09919605404138565, -0.04814130440354347, 0.027868542820215225, -0.02185088023543358, 0.00981555413454771, -0.015104854479432106, 0.04529722034931183, -0.005948294885456562, -0.03728523105382919, 0.10592474043369293, -0.031336937099695206, -0.008618958294391632, 0.022561900317668915, -0.0026663276366889477, 0.04089236259460449, -0.029307926073670387, 0.01436782069504261, -0.0249030664563179, -0.010396509431302547, 0.012529571540653706, 0.003210431896150112, 0.07040838897228241, -0.009243269450962543, 0.03262024372816086, -0.040372103452682495, 0.05920547991991043, 0.006481560412794352, 0.033105816692113876, -0.029359951615333557, -0.012139378115534782, -0.10419054329395294, 0.047690413892269135, -0.06253513693809509, -0.04658052697777748, 0.004146898165345192, -0.000056225911976071075, 0.02179885469377041, 0.012937108054757118, 0.029377294704318047, -0.0011196407722309232, -0.015625113621354103, 0.012252100743353367, 0.0026988438330590725, 0.01535631250590086, 0.03756270185112953, -0.03053920529782772, -0.03822169825434685, -0.015278274193406105, -0.011133543215692043, -0.013708826154470444, 0.006659315899014473, -0.017003798857331276, 0.005969972349703312, -0.038950059562921524, 0.01808767206966877, 0.00814638938754797, 0.004782047588378191, 0.01356141921132803, -0.08185409009456635, -0.00629513431340456, -0.0032017608173191547, 0.05785280466079712, 0.020324787124991417, 0.027625754475593567, 0.023862548172473907, 0.03064325824379921, 0.013622116297483444, 0.011948616243898869, -0.026151688769459724, -0.025683455169200897, 0.018590589985251427, -0.02363710291683674, -0.03230808675289154, -0.012364823371171951, -0.023793179541826248, 0.0060263341292738914, -0.03718117997050285, 0.01619739830493927, 0.015130867250263691, -0.03385152295231819, 0.015625113621354103, 0.001534764189273119, 0.014792698435485363, 0.031215542927384377, -0.03593255952000618, 0.009225927293300629, 0.020723652094602585, -0.013726167380809784, 0.027712464332580566, -0.0025427660439163446, 0.006867419462651014, -0.021070491522550583, 0.00998897384852171, 0.0029936572536826134, 0.037042442709207535, 0.011306962929666042, -0.058685220777988434, 0.005532087758183479, -0.029741475358605385, 0.013283947482705116, -0.01796627976000309, -0.02899577096104622, -0.006329818163067102, -0.12153251469135284, 0.013760851696133614, 0.031666435301303864, 0.014983460307121277, 0.06530985236167908, 0.012607610784471035, -0.014740672893822193, 0.0025145853869616985, 0.03940095007419586, -0.03425038605928421, 0.08407386392354965, -0.03385152295231819, -0.03449317440390587, 0.02852753736078739, -0.02358507737517357, 0.0030716960318386555, 0.015833217650651932, -0.007413691375404596, 0.0082244286313653, 0.0012952282559126616, 0.06111309677362442, 0.037319913506507874, 0.003008831525221467, 0.018521221354603767, -0.02497243322432041, -0.028215382248163223, 0.047586359083652496, -0.01782754249870777, -0.01976984366774559, -0.006429534871131182, 0.05095070227980614, 0.03728523105382919, -0.005735856015235186, -0.013587431982159615, 0.0024690628051757812, 0.026654604822397232, 0.094479039311409, 0.04845345765352249, 0.03385152295231819, 0.025874216109514236, -0.03242947906255722, -0.025995610281825066, -0.005627468694001436, 0.06333287060260773, -0.030175024643540382, -0.006858748383820057, -0.07033902406692505, 0.019145533442497253, 0.026498526334762573, -0.01613670215010643, -0.003927955869585276, 0.02134796231985092, 0.009364662691950798, -0.04182882606983185, 0.0269667599350214, -0.005150564480572939, 0.018313119187951088, -0.010110367089509964, -0.012043996714055538, -0.015815874561667442, 0.0037090133409947157, -0.0041230530478060246, 0.004101375583559275, 0.030157683417201042, -0.02013402432203293, -0.00798597652465105, 0.025874216109514236, 0.05018765479326248, 0.077969491481781, -0.008055344223976135, 0.021157201379537582, 0.01267697848379612, 0.05199122056365013, -0.03645281866192818, -0.003943129908293486, -0.11168227344751358, 0.005076861009001732, -0.0396784245967865, -0.044360753148794174, -0.058442432433366776, 0.09350789338350296, 0.01775817573070526, 0.012512230314314365, 0.03468393534421921, 0.000005360090653994121, 0.0035681098233908415, -0.03752801939845085, -0.005376010201871395, -0.00820275116711855, 0.01609334722161293, -0.06728683412075043, -0.005566771607846022, -0.05778343603014946, 0.0033079804852604866, -0.05344794690608978, -0.02698410302400589, 0.004088369198143482, 0.01834780164062977, 0.007006155326962471, -0.04103109613060951, 0.03050452098250389, 0.018694641068577766, -0.026012951508164406, -0.028163356706500053, -0.02171214483678341, 0.0010307632619515061, -0.05195653811097145, 0.031718458980321884, 0.01633613370358944, -0.029117165133357048, -0.03542964160442352, -0.0721425861120224, -0.0055581009946763515, 0.04009462893009186, 0.010136380791664124, -0.01787956990301609, -0.0050378418527543545, -0.03988652676343918, -0.0580609105527401, -0.07907937467098236, 0.014341807924211025, -0.013075844384729862, -0.0014599768910557032, -0.031423646956682205, -0.055251508951187134, 0.0503263920545578, 0.01351806428283453, 0.03936626762151718, -0.007084194105118513, 0.05587582290172577, 0.0003143231733702123, -0.04921650514006615, 0.026758655905723572, -0.007998982444405556, -0.05091601982712746, -0.03433709591627121, 0.04283466190099716, 0.07408488541841507, 0.005644810386002064, 0.0018317453796043992, 0.03301910683512688, 0.010942782275378704, -0.03034844435751438, -0.053170472383499146, -0.03277631849050522, -0.007131884340196848, -0.0328977145254612, 0.042071614414453506, -0.06929850578308105, 0.0023628431372344494, 0.014437188394367695, 0.02334228903055191, 0.08032799512147903, -0.029758816584944725, 0.010431193746626377, -0.026099661365151405, 0.0714489072561264, -0.015781190246343613, 0.009382004849612713, 0.060211312025785446, -0.04175945743918419, -0.027799174189567566, 0.00978086981922388, 0.00047311055823229253, -0.0003175747988279909, -0.023897232487797737, 0.03839511796832085, -0.06326349824666977, -0.05757533386349678, 0.01810501515865326, 0.026463843882083893, -0.04692736640572548, 0.018555905669927597, -0.05986447259783745, -0.03419836238026619, 0.02880500815808773, 0.018486538901925087, -0.06534453481435776, 0.017168547958135605, -0.044360753148794174, 0.040302734822034836, -0.011766524985432625, -0.030261734500527382, 0.013908258639276028, -0.038811326026916504, 0.021070491522550583, 0.05889332294464111, 0.026550553739070892, -0.0021211395505815744, -0.03242947906255722, -0.027625754475593567, 0.060627520084381104, -0.040649574249982834, 0.025874216109514236, -0.026671946048736572, -0.022856714203953743, 0.07290563732385635, -0.0608009397983551, -0.07172638177871704, -0.013596102595329285, -0.02894374541938305, 0.024556227028369904, 0.05452314764261246, -0.033088475465774536, -0.027972593903541565, 0.00981555413454771, -0.008701332844793797, -0.021001122891902924, -0.031666435301303864, -0.004261788446456194, -0.02337697334587574, -0.007782208267599344, -0.036764971911907196, 0.008718674071133137, -0.05417630821466446, 0.03759738802909851, -0.05091601982712746, 0.009442701935768127, -0.031822510063648224, 0.0010182986734434962, -0.010353154502809048, 0.0024625593796372414, -0.025735480710864067, 0.04439543932676315, -0.011757854372262955, 0.012408178299665451, 0.00900915265083313, -0.020636942237615585, -0.04456885904073715, 0.026446500793099403, 0.033574048429727554, 0.004920783452689648, -0.0063081406988203526, -0.0355510339140892, -0.031718458980321884, 0.014784027822315693, 0.0017103515565395355, -0.011679815128445625, 0.014185730367898941, -0.0067633674480021, -0.044083282351493835, -0.002501579001545906, -0.0018415002850815654, 0.0016312288353219628, -0.02186822146177292, 0.02153872512280941, -0.010543916374444962, -0.029568055644631386, 0.0364181324839592, 0.06825798749923706, 0.027539044618606567, 0.027539044618606567, -0.015044157393276691, 0.014810040593147278, 0.007300968747586012, -0.008423861116170883, 0.019180215895175934, -0.022301770746707916, 0.04533190280199051, -0.01782754249870777, 0.007244606968015432, 0.03718117997050285, -0.022128351032733917, -0.025648770853877068, 0.009043836034834385, 0.04713546857237816, 0.02720954827964306, -0.027885884046554565, 0.06898634880781174, -0.06319413334131241, -0.02504180185496807, 0.06850077211856842, 0.056951023638248444, 0.06499769538640976, -0.030313760042190552, 0.027833858504891396, -0.035169512033462524, -0.007543756160885096, 0.013769522309303284, -0.03206529840826988, -0.017168547958135605, -0.02162543497979641, -0.0011001310776919127, 0.006993148475885391, 0.024729646742343903, -0.001194428070448339, 0.03209998458623886, -0.01983921229839325, 0.03725054860115051, -0.022128351032733917, 0.010327141731977463, 0.06739088892936707, 0.024001283571124077, 0.02708815410733223, 0.015208905562758446, 0.023931916803121567, -0.008345821872353554, -0.051020070910453796, 0.04651115834712982, -0.08386575430631638, -0.015486377291381359, -0.0006107624503783882, 0.022579241544008255, -0.006728683598339558, 0.023827863857150078, 0.009390675462782383 ]
718,546
pytorch_optimizer.lr_scheduler.chebyshev
get_chebyshev_lr
Get chebyshev learning rate. :param lr: float. learning rate. :param epoch: int. current epochs. :param num_epochs: int. number of total epochs. :param is_warmup: bool. whether warm-up stage or not.
def get_chebyshev_lr(lr: float, epoch: int, num_epochs: int, is_warmup: bool = False) -> float: r"""Get chebyshev learning rate. :param lr: float. learning rate. :param epoch: int. current epochs. :param num_epochs: int. number of total epochs. :param is_warmup: bool. whether warm-up stage or not. """ if is_warmup: return lr epoch_power: int = np.power(2, int(np.log2(num_epochs - 1)) + 1) if num_epochs > 1 else 1 scheduler = get_chebyshev_schedule(epoch_power) idx: int = epoch - 2 if idx < 0: idx = 0 elif idx > len(scheduler) - 1: idx = len(scheduler) - 1 chebyshev_value: float = scheduler[idx] return lr * chebyshev_value
(lr: float, epoch: int, num_epochs: int, is_warmup: bool = False) -> float
[ -0.06291591376066208, -0.0369657464325428, -0.04706336185336113, -0.04208516702055931, 0.002848780946806073, 0.04473314434289932, 0.0426853746175766, -0.03604778274893761, -0.061750803142786026, 0.040284544229507446, 0.027009356766939163, -0.019259613007307053, 0.0747082382440567, 0.03484736755490303, -0.035147469490766525, 0.02911008521914482, 0.004342680796980858, -0.012798551470041275, 0.036400847136974335, -0.028562836349010468, 0.004656024742871523, -0.057372815907001495, 0.01611734926700592, -0.00992991030216217, -0.01261319313198328, 0.08480585366487503, 0.05557219311594963, 0.053771570324897766, -0.06436347216367722, 0.008941332809627056, 0.012118903920054436, 0.03172275424003601, -0.031916938722133636, 0.0025817768182605505, -0.002075351309031248, 0.0504174679517746, 0.020195230841636658, -0.010618384927511215, -0.03045172616839409, 0.023408109322190285, -0.0021283109672367573, 0.029427841305732727, 0.03954311087727547, 0.0048016635701060295, -0.04434477537870407, -0.020054006949067116, -0.056384239345788956, 0.0049208225682377815, 0.028033241629600525, -0.06556388735771179, -0.0015236895997077227, -0.006840605288743973, 0.033029090613126755, -0.01293095014989376, -0.000043305444705765694, -0.06245693191885948, 0.05592525750398636, -0.03880167752504349, 0.04586294665932655, 0.010830222629010677, 0.006363969296216965, -0.028368651866912842, 0.003735853126272559, 0.04695744439959526, 0.033258579671382904, -0.018924202769994736, -0.06514021754264832, 0.023796480149030685, 0.005613709334284067, 0.041520267724990845, 0.007939515635371208, 0.03883698582649231, -0.01821807585656643, 0.00011295273725409061, -0.041520267724990845, -0.018518179655075073, -0.05927935987710953, -0.09871654957532883, -0.03798963129520416, -0.019948087632656097, 0.0654226616024971, 0.05747873708605766, 0.015958469361066818, -0.0467103011906147, -0.012489620596170425, -0.08035725355148315, 0.03834269568324089, -0.03571237251162529, -0.011421604081988335, 0.008592682890594006, -0.028245078399777412, -0.02534995786845684, -0.04695744439959526, -0.025314651429653168, 0.030310500413179398, 0.004393433686345816, -0.02796262875199318, 0.030663564801216125, 0.029939783737063408, -0.024520259350538254, 0.059491198509931564, 0.07604987919330597, 0.04978195205330849, 0.01936553232371807, 0.016082042828202248, 0.013310493901371956, -0.03032815456390381, 0.03046937845647335, 0.031528569757938385, -0.025685368105769157, -0.05182972177863121, 0.010053482837975025, -0.02233126573264599, -0.04095536470413208, -0.001776350662112236, 0.030292848125100136, -0.014484429731965065, 0.031157853081822395, 0.019895127043128014, -0.007109816186130047, 0.007039203308522701, -0.016135001555085182, -0.0000570625088585075, -0.013628250919282436, -0.009832818061113358, 0.0274506863206625, -0.033258579671382904, -0.01729128509759903, 0.02487332373857498, -0.0031268184538930655, 0.02434372715651989, 0.06040916219353676, 0.002049974864348769, 0.000057200424635084346, -0.0020874878391623497, -0.08805403113365173, -0.0001019194969558157, 0.04759296029806137, 0.028774674981832504, -0.04780479520559311, 0.02534995786845684, 0.033382151275873184, 0.028509877622127533, 0.02822742611169815, 0.01947145164012909, 0.02487332373857498, 0.011386297643184662, 0.0377424880862236, 0.03211112320423126, 0.036789216101169586, 0.04342680796980858, 0.01466978807002306, 0.051017675548791885, 0.013513505458831787, 0.0544423907995224, -0.0122954361140728, -0.05744342878460884, -0.03022223524749279, -0.015375914983451366, -0.009320876561105251, 0.009779858402907848, 0.04582764208316803, -0.02021288499236107, -0.046145398169755936, -0.023937704041600227, 0.01823573000729084, -0.005225339438766241, 0.007074509747326374, 0.02309035323560238, 0.0361890085041523, 0.021183809265494347, -0.04286190867424011, -0.036030128598213196, 0.06581103801727295, -0.012366048991680145, 0.0077276770025491714, -0.02407892979681492, 0.04409762844443321, -0.020018700510263443, -0.008098393678665161, 0.006664073560386896, 0.00433385418727994, -0.0019142661476507783, -0.04459191858768463, -0.01080374326556921, -0.005101767368614674, 0.00590498698875308, -0.005463657435029745, -0.03555349260568619, 0.03848392143845558, -0.04017862677574158, -0.006889151409268379, -0.0015435494715347886, -0.013998967595398426, -0.026179658249020576, -0.02873936854302883, -0.03204051032662392, 0.06302183121442795, -0.03961372375488281, 0.018412260338664055, 0.013407586142420769, 0.11799381673336029, 0.028174467384815216, -0.020760133862495422, -0.001033262349665165, -0.046145398169755936, -0.03933127224445343, -0.014722747728228569, 0.004629544913768768, 0.07343720644712448, -0.015499487519264221, 0.01761786825954914, -0.04109659045934677, 0.05370095744729042, -0.013840088620781898, -0.02171340398490429, -0.02886294014751911, -0.004278688225895166, 0.02033645659685135, -0.036400847136974335, -0.018694711849093437, -0.025685368105769157, 0.051900334656238556, 0.06002079322934151, 0.028880594298243523, -0.02508516050875187, 0.021254422143101692, -0.008032194338738918, 0.010079963132739067, -0.0020168751943856478, -0.02286086045205593, -0.00004430533226695843, 0.021395647898316383, 0.002828921191394329, -0.02796262875199318, 0.020001046359539032, -0.0001616368826944381, 0.08169889450073242, -0.06817656010389328, 0.004598652012646198, -0.0213426873087883, 0.005309192463755608, 0.011103847064077854, -0.03968433663249016, 0.0068847378715872765, 0.03322327509522438, 0.05596056208014488, 0.01124507188796997, -0.1194060742855072, -0.002813474740833044, -0.043391503393650055, -0.061503659933805466, 0.03249949589371681, -0.017503121867775917, -0.045403964817523956, 0.010468332096934319, -0.01429024524986744, -0.008601509034633636, -0.017300110310316086, -0.03131673112511635, -0.0028355412650853395, -0.037283506244421005, -0.02407892979681492, 0.03234061598777771, -0.061856724321842194, -0.04074352607131004, 0.012886817567050457, 0.036259621381759644, -0.006875911261886358, -0.0017432509921491146, 0.05334789305925369, -0.024696791544556618, -0.008597096428275108, -0.023778825998306274, 0.006787645630538464, 0.017582561820745468, -0.016320358961820602, -0.027697831392288208, 0.029445495456457138, 0.04879337549209595, 0.04558049514889717, -0.005322432145476341, -0.058855682611465454, 0.0024008317850530148, -0.008685361593961716, 0.02298443391919136, -0.048510923981666565, 0.010406546294689178, -0.008411738090217113, 0.01518173050135374, 0.03057529777288437, -0.028245078399777412, -0.004841383080929518, -0.007374613545835018, 0.16297410428524017, 0.03809555247426033, 0.060232631862163544, -0.06115059554576874, 0.014025446958839893, 0.059597115963697433, 0.027309460565447807, 0.00406023021787405, 0.012798551470041275, -0.029551414772868156, -0.0394371934235096, -0.06637593358755112, -0.000086679843661841, -0.0036299340426921844, 0.016311533749103546, 0.010380066931247711, -0.004916409030556679, 0.0389782078564167, 0.018006237223744392, -0.009267916902899742, 0.022031161934137344, -0.05694914236664772, 0.01973624899983406, 0.008941332809627056, 0.023884745314717293, -0.014696267433464527, -0.037283506244421005, 0.0015281029045581818, 0.06083283945918083, 0.025385264307260513, -0.038660451769828796, -0.04731050878763199, -0.006712619680911303, 0.008005714975297451, -0.01605556160211563, -0.0675763487815857, -0.0016869815299287438, -0.027997935190796852, 0.02610904537141323, 0.019948087632656097, 0.038024939596652985, 0.01611734926700592, 0.05426585674285889, 0.07322537153959274, -0.06754104793071747, -0.035271041095256805, 0.033770523965358734, 0.049499500542879105, -0.0011038751108571887, 0.01466978807002306, -0.036259621381759644, -0.056243013590574265, 0.04074352607131004, 0.021024931222200394, -0.007061269599944353, 0.019789209589362144, -0.006037385668605566, -0.06503429263830185, 0.00895457249134779, 0.040778834372758865, 0.03225234895944595, 0.014449123293161392, -0.07604987919330597, -0.05045277252793312, 0.038272082805633545, -0.06443408876657486, 0.055360354483127594, -0.01091848872601986, -0.048758067190647125, 0.030063357204198837, -0.0909491553902626, -0.006125651765614748, -0.002539850538596511, 0.013036869466304779, 0.009938737377524376, -0.0036696535535156727, -0.030239887535572052, 0.05479545518755913, 0.04208516702055931, -0.023496374487876892, 0.017317764461040497, -0.03182867541909218, -0.00458982540294528, 0.012763245031237602, 0.009603327140212059, 0.060868144035339355, 0.03269368037581444, 0.013363453559577465, -0.019948087632656097, -0.03537696227431297, 0.03324092924594879, 0.0078027029521763325, -0.040143318474292755, 0.005415111314505339, 0.03279959782958031, -0.06658777594566345, -0.007277521304786205, 0.003009866224601865, 0.015084637328982353, 0.04070822149515152, -0.015146424062550068, 0.05719628557562828, 0.035165123641490936, 0.04257945716381073, 0.007299587596207857, -0.028562836349010468, -0.009506234899163246, 0.08946628868579865, 0.0471692830324173, -0.018782977014780045, -0.02298443391919136, -0.03993147984147072, 0.03122846595942974, 0.02058360166847706, 0.005295952316373587, 0.016646943986415863, 0.013125135563313961, -0.014811013825237751, -0.029657334089279175, 0.03073417767882347, -0.04921704903244972, -0.015799591317772865, 0.03244653344154358, 0.004642785061150789, -0.007608518004417419, 0.08007480204105377, -0.022507797926664352, -0.07043616473674774, -0.04095536470413208, 0.004925235640257597, 0.010989101603627205, 0.022790247574448586, -0.004823729861527681, 0.03048703260719776, 0.0046383715234696865, -0.012763245031237602, -0.008804520592093468, -0.014431470073759556, -0.016823476180434227, -0.0394371934235096, -0.04017862677574158, 0.010265321470797062, 0.0294631477445364, 0.05843200907111168, -0.001357087749056518, -0.03400001302361488, 0.0039300378412008286, -0.027027010917663574, 0.012454315088689327, 0.02024819143116474, -0.03343511372804642, -0.016108522191643715, 0.027997935190796852, 0.055501580238342285, -0.013336973264813423, -0.039896175265312195, -0.0037490930408239365, 0.008411738090217113, 0.0094356220215559, 0.03721289336681366, 0.007551145274192095, -0.00402933731675148, 0.006633180193603039, 0.04695744439959526, 0.03350572660565376, 0.03595951572060585, 0.07266046851873398, 0.0669761449098587, 0.012639673426747322, -0.01547300722450018, -0.024696791544556618, 0.01591433770954609, 0.03661268576979637, -0.017564909532666206, 0.04236761853098869, -0.024820363149046898, -0.0064434087835252285, 0.030381113290786743, 0.024749750271439552, 0.01959502324461937, 0.009091384708881378, -0.021889936178922653, -0.0008159076678566635, 0.008389671333134174, 0.008786867372691631, -0.06909452378749847, 0.02882763370871544, -0.03798963129520416, 0.01834164746105671, -0.04660438001155853, 0.02859814278781414, -0.025526490062475204, -0.08628872036933899, 0.019418492913246155, -0.007189255207777023, 0.017379550263285637, -0.03781310096383095, -0.00762175815179944, 0.0009014152456074953, -0.020407069474458694, -0.006575807463377714, -0.03094601444900036, 0.041131895035505295, 0.012083598412573338, 0.05468953400850296, 0.03629492595791817, -0.009144344367086887, -0.006094758398830891, -0.027062317356467247, 0.04257945716381073, 0.014705094508826733, 0.03784840553998947, -0.00016053355648182333, -0.001970535609871149, -0.010962621308863163, 0.009700419381260872, 0.03196989744901657, 0.010989101603627205, 0.008380844257771969, 0.00167705153580755, -0.06609348207712173, -0.028527529910206795, 0.013398759067058563, 0.09793981164693832, 0.024908630177378654, 0.0539834089577198, -0.004110983107239008, 0.08318176120519638, 0.019206654280424118, -0.02972794510424137, -0.0026126697193831205, 0.03121081180870533, 0.004276481457054615, -0.027680177241563797, 0.06747043132781982, 0.02060125395655632, 0.012198343873023987, -0.03267602622509003, -0.015119943767786026, 0.06189202889800072, -0.008336711674928665, 0.020883705466985703, -0.04822847247123718, 0.0012147590750828385, -0.05744342878460884, -0.09977573901414871, -0.019418492913246155, -0.019647983834147453, 0.07513190805912018, -0.006456648465245962, -0.01696470007300377, -0.02598547376692295, 0.009276743046939373, 0.07322537153959274, -0.02411423623561859, -0.031775712966918945, -0.004823729861527681, 0.03643615171313286, -0.004508179612457752, -0.0788743868470192, 0.016664596274495125, -0.003647587262094021, 0.016849955543875694, 0.018429914489388466, 0.007886555977165699, 0.015367088839411736, -0.033911749720573425, -0.05045277252793312, 0.03421185165643692, -0.026938743889331818, 0.01547300722450018, -0.04342680796980858, -0.05532504990696907, 0.019136041402816772, -0.002240849891677499, -0.08791281282901764, -0.0245908722281456, 0.045509882271289825, 0.022578410804271698, -0.03894290328025818, -0.05331258848309517, 0.004642785061150789, -0.016699902713298798, -0.045757029205560684, 0.03606543689966202, -0.024661485105752945, -0.01123624574393034, -0.028915900737047195, -0.05098236724734306, -0.05295952409505844, -0.007458466105163097, -0.013001563027501106, -0.05419524759054184, 0.034052975475788116, -0.046745605766773224, 0.030751829966902733, 0.05709036812186241, -0.025314651429653168, -0.01617913506925106, -0.009329702705144882, 0.06228040158748627, -0.02086605317890644, -0.020177578553557396, -0.0026126697193831205, -0.02273728884756565, 0.07018902152776718, -0.059597115963697433, 0.006968590430915356, 0.03633023425936699, -0.011253898963332176, 0.038024939596652985, -0.01811215654015541, -0.004058023449033499, -0.039754949510097504, 0.023796480149030685, -0.10577782243490219, 0.009073731489479542, 0.058114249259233475, 0.004770770203322172, -0.0034865019842982292, 0.017194192856550217, 0.0009301016107201576, 0.04907582700252533, -0.08233440667390823, -0.009479754604399204, -0.06739982217550278, 0.005640189163386822, 0.03299378231167793, 0.04759296029806137, -0.026497414335608482, -0.027662524953484535, -0.05055869370698929, 0.028562836349010468, -0.04611009359359741, -0.0014155639801174402, -0.03460022062063217, 0.023002086207270622, -0.022949127480387688, -0.0053312587551772594, -0.030645910650491714, -0.001267718616873026, 0.05017032101750374, 0.03071652352809906, 0.04815785959362984, 0.018888896331191063, -0.04695744439959526, -0.0007789463270455599, 0.10987336188554764, -0.010574251413345337, -0.04685152694582939, -0.033664602786302567, 0.009329702705144882, -0.0111744599416852, -0.007321654353290796, 0.0072422148659825325, -0.04522743448615074, -0.012215997092425823, 0.002256296342238784, 0.030116315931081772, 0.03255245462059975, -0.03368225693702698, -0.035271041095256805, 0.031069587916135788, -0.01399014052003622, 0.016629289835691452, -0.0739314928650856, 0.02060125395655632, 0.00287305423989892, 0.018165117129683495, -0.004413293674588203, -0.044274162501096725, -0.012383702211081982, 0.02757425792515278, 0.006311010103672743, -0.05359503626823425, -0.034052975475788116, -0.036259621381759644, -0.04109659045934677, -0.02598547376692295, -0.016955874860286713, 0.034264810383319855, 0.029392534866929054, -0.11848811060190201, -0.03468848764896393, 0.0268328245729208, -0.007617344614118338, 0.0024626178201287985, 0.022013507783412933, -0.01743250899016857, 0.05747873708605766, -0.018888896331191063, -0.020442375913262367, 0.006218330934643745, 0.02457321807742119, -0.01784735918045044, -0.0217310581356287, -0.05571341887116432, 0.033770523965358734, -0.06877677142620087, -0.03385878726840019, 0.015940817072987556, -0.021148502826690674, -0.04522743448615074, -0.037636566907167435, 0.004625131841748953, 0.004148495849221945, 0.012948603369295597, 0.02746834047138691, 0.023566987365484238, -0.0007292967638932168, -0.027680177241563797, 0.021660445258021355, 0.02635619044303894, 0.0017620074795559049, -0.02746834047138691, 0.027009356766939163, 0.036647990345954895, -0.019700942561030388, -0.04921704903244972, -0.02633853629231453, 0.017326591536402702, -0.029763251543045044, -0.016108522191643715, 0.0002151480584871024, -0.009947563521564007, 0.03961372375488281, 0.07244862616062164, -0.01630270667374134, 0.027927322313189507, 0.04046107456088066, -0.08092214912176132, -0.0070038968697190285, -0.0105565981939435, 0.043391503393650055, 0.0056754956021904945, -0.035535842180252075, 0.0349532850086689, 0.004678091034293175, 0.038130857050418854, 0.02347872219979763, 0.08205195516347885, -0.008191073313355446, 0.02919835038483143, 0.02321392484009266, 0.07258985191583633, -0.025049854069948196, 0.04981726035475731, 0.04656907543540001, -0.04074352607131004, -0.03919004648923874, -0.004854623228311539, 0.001667121658101678, -0.026656294241547585, 0.001367017743177712, 0.06715267896652222, -0.025526490062475204, -0.06934166699647903, -0.05754934996366501, 0.0026479761581867933, -0.010512465611100197, 0.0504174679517746, -0.048652149736881256, -0.06090345233678818, 0.029427841305732727, -0.022172387689352036, -0.0006564774084836245, 0.07435517013072968, 0.002508957404643297, -0.005017914809286594, -0.004814903251826763, 0.004468459635972977, -0.019012469798326492, -0.015217036008834839, -0.02586190029978752 ]
718,547
pytorch_optimizer.lr_scheduler.chebyshev
get_chebyshev_schedule
Get Chebyshev schedules. :param num_epochs: int. number of total epochs.
def get_chebyshev_schedule(num_epochs: int) -> np.ndarray: r"""Get Chebyshev schedules. :param num_epochs: int. number of total epochs. """ steps: np.ndarray = get_chebyshev_steps(num_epochs) perm: np.ndarray = get_chebyshev_permutation(num_epochs - 2) return steps[perm]
(num_epochs: int) -> numpy.ndarray
[ -0.030430790036916733, 0.024529892951250076, -0.08075995743274689, -0.07938764989376068, -0.031494323164224625, 0.05773959308862686, -0.004858805797994137, 0.011527334339916706, -0.036571841686964035, 0.037429530173540115, 0.04350196197628975, 0.004755883011966944, 0.05043208599090576, 0.007213160861283541, -0.019143609330058098, 0.02149367518723011, 0.0541716106235981, -0.021047677844762802, 0.001101057743653655, -0.033209700137376785, 0.006449818145483732, -0.0962669625878334, 0.023809434846043587, -0.033141087740659714, -0.02106483094394207, 0.09160114079713821, 0.015232549048960209, 0.01346570998430252, -0.09160114079713821, -0.01892060972750187, -0.030996864661574364, 0.06069004163146019, -0.05002039670944214, 0.027205880731344223, -0.003782406449317932, 0.056710366159677505, -0.00451144203543663, -0.033775776624679565, -0.03288377821445465, 0.06895816326141357, 0.059660814702510834, 0.008654077537357807, 0.05492637678980827, -0.017222385853528976, -0.04346765577793121, -0.03158009424805641, 0.019795451313257217, 0.04010551795363426, 0.024547046050429344, -0.04892255738377571, -0.01755688525736332, -0.012453638017177582, 0.0426785834133625, -0.046315182000398636, -0.001753973076120019, -0.0114244120195508, 0.050397779792547226, -0.010909798555076122, 0.04494288191199303, -0.04161505028605461, 0.024169662967324257, 0.02428974024951458, 0.029984792694449425, 0.07815258204936981, -0.0028153627645224333, -0.05760236456990242, -0.02020714245736599, 0.011278604157269001, -0.010120725259184837, 0.052833616733551025, 0.04779040813446045, 0.0234320517629385, -0.014143284410238266, -0.011681717820465565, -0.014494936913251877, -0.029418718069791794, -0.05739651992917061, -0.08082856982946396, 0.006719989702105522, 0.020687447860836983, 0.03182024508714676, 0.054548993706703186, -0.008156618103384972, -0.049197014421224594, -0.004875959362834692, -0.04271288961172104, 0.04974593594670296, -0.01286532822996378, -0.046246565878391266, -0.04103182256221771, 0.01038660854101181, -0.01597016118466854, -0.05201023444533348, -0.05959220230579376, 0.04353627189993858, 0.00581941707059741, -0.017162347212433815, 0.014529244042932987, -0.00766344740986824, -0.04099751263856888, 0.04147781804203987, 0.027394572272896767, 0.04329611733555794, 0.007170276250690222, -0.02176813594996929, 0.024478431791067123, -0.0541716106235981, 0.015961583703756332, -0.03674337640404701, 0.00435276934877038, -0.04827071353793144, 0.08405347913503647, -0.003074813401326537, -0.029624562710523605, 0.016604850068688393, 0.010103571228682995, -0.026828497648239136, 0.04648672044277191, 0.032712243497371674, -0.023672204464673996, 0.01955529861152172, 0.0025602004025131464, 0.0009273757459595799, 0.006509856320917606, -0.012402176856994629, 0.04027705639600754, -0.04514872655272484, -0.038870446383953094, 0.05372561141848564, -0.03756675869226456, 0.01977829821407795, 0.04086028411984444, 0.01206767838448286, 0.025404734537005424, -0.007367544807493687, -0.08206364512443542, 0.028749721124768257, -0.036297380924224854, 0.036434609442949295, -0.12288961559534073, 0.008280983194708824, 0.030859634280204773, 0.0102064935490489, 0.060587119311094284, 0.013705863617360592, -0.02293459139764309, 0.05468622222542763, -0.0016842859331518412, 0.02801210805773735, 0.031185556203126907, 0.04830501973628998, 0.024083895608782768, 0.01118425838649273, -0.014280514791607857, 0.05365699529647827, -0.0007177781080827117, -0.017170924693346024, -0.04662394896149635, -0.005969512276351452, -0.004875959362834692, -0.03358708322048187, 0.015215395018458366, -0.07142830640077591, -0.0015727863647043705, -0.0401398241519928, 0.045183032751083374, 0.023826587945222855, -0.002913996810093522, 0.02602227032184601, 0.04487426578998566, 0.012470792047679424, 0.02356928214430809, -0.05547529458999634, 0.035645537078380585, 0.03543969243764877, -0.011870409362018108, -0.02794349379837513, 0.022008288651704788, -0.008443944156169891, -0.013199826702475548, -0.01761692389845848, 0.004211250692605972, -0.007453313563019037, -0.041306279599666595, 0.016930771991610527, 0.017393924295902252, 0.04600641503930092, 0.016176005825400352, -0.022797362878918648, 0.032935239374637604, -0.07993657141923904, 0.004863094072788954, 0.009588957764208317, 0.05918050929903984, 0.002091687871143222, -0.07183999568223953, -0.04672687128186226, 0.07595689594745636, -0.07712335884571075, 0.0004092782619409263, 0.003242062870413065, 0.10058971494436264, 0.018011460080742836, -0.052559155970811844, 0.034925077110528946, -0.03365569934248924, -0.005098958499729633, -0.03128847852349281, -0.021476522088050842, 0.08268117904663086, -0.02356928214430809, -0.0023457782808691263, -0.014409167692065239, 0.01684500277042389, 0.006857220083475113, -0.03008771501481533, 0.019246531650424004, -0.02363789640367031, 0.020515911281108856, -0.05791113153100014, -0.027343111112713814, 0.026279577985405922, 0.055269449949264526, 0.05043208599090576, 0.003926069475710392, -0.025902194902300835, 0.023106129840016365, 0.004339904058724642, 0.009160113520920277, -0.016793541610240936, -0.012016216292977333, 0.010086417198181152, -0.022540055215358734, -0.018577534705400467, 0.010884067974984646, 0.03756675869226456, -0.005381995812058449, 0.02169951982796192, -0.028681105002760887, 0.018320227041840553, -0.025095967575907707, -0.018577534705400467, -0.003527244320139289, -0.007804966066032648, 0.03480500355362892, 0.033141087740659714, 0.04648672044277191, 0.015095318667590618, -0.0835045576095581, -0.0017046560533344746, -0.018165843561291695, -0.07835842669010162, -0.01934945397078991, -0.043227504938840866, -0.06429233402013779, -0.05293653905391693, -0.009357382543385029, -0.015258279629051685, 0.023757973685860634, -0.012831021100282669, -0.017393924295902252, -0.019520992413163185, -0.028766874223947525, 0.010103571228682995, -0.021750980988144875, -0.01206767838448286, -0.05152992904186249, 0.02916141040623188, -0.0535883828997612, 0.003853165777400136, -0.033141087740659714, -0.013011135160923004, -0.03139140084385872, -0.002678132615983486, -0.013577209785580635, 0.022900285199284554, -0.0015223971568048, -0.03670907020568848, 0.0322490893304348, 0.009837687946856022, -0.0016799974255263805, -0.001891203224658966, -0.048339325934648514, -0.006334030069410801, 0.03015632927417755, 0.00939168967306614, -0.03418746590614319, -0.044325344264507294, 0.03784121945500374, 0.011098490096628666, -0.004489999730139971, -0.023757973685860634, 0.017436807975172997, -0.07568243891000748, 0.14724797010421753, 0.023243360221385956, 0.03547399863600731, -0.07101660966873169, 0.009091498330235481, 0.07664304971694946, 0.04254135116934776, 0.009871995076537132, -0.0005548172630369663, -0.0030040540732443333, -0.046109337359666824, -0.02972748503088951, -0.005489206872880459, 0.024907276034355164, 0.043879345059394836, -0.037360914051532745, 0.04377642273902893, -0.00458863377571106, 0.04182089492678642, 0.003919636830687523, 0.03996828570961952, -0.03398162126541138, 0.022745899856090546, 0.038218602538108826, 0.03308962285518646, 0.0023350571282207966, 0.0006068146321922541, -0.020584525540471077, 0.07218307256698608, -0.01790853776037693, -0.009580381214618683, -0.015790047124028206, 0.005973801016807556, -0.06679678708314896, -0.004914555232971907, -0.02787487767636776, -0.015507008880376816, -0.009365959092974663, 0.037360914051532745, 0.04737871512770653, 0.03664045408368111, 0.017925690859556198, 0.027274496853351593, 0.08453378826379776, -0.05818559229373932, -0.05705344304442406, 0.03567984327673912, 0.06717416644096375, 0.0057122060097754, 0.02300320751965046, -0.02550765872001648, -0.056573137640953064, -0.010189340449869633, 0.021099139004945755, -0.027703341096639633, -0.025267504155635834, 0.04041428491473198, -0.032060399651527405, -0.00445998040959239, 0.0644981786608696, 0.018011460080742836, 0.07520212978124619, -0.00014513698988594115, -0.04343334957957268, -0.006188223138451576, -0.03602292016148567, 0.09908018261194229, 0.009082921780645847, -0.04034566879272461, -0.003242062870413065, -0.08192641288042068, -0.02192251943051815, 0.024409815669059753, 0.04336473345756531, 0.035782765597105026, 0.004417096264660358, -0.03760106489062309, 0.10436354577541351, 0.0560242161154747, -0.009588957764208317, 0.018217304721474648, -0.028423799201846123, -0.010480954311788082, 0.021819597110152245, 0.000898428785149008, -0.010009225457906723, 0.0378069132566452, -0.024958737194538116, -0.032129012048244476, -0.03008771501481533, 0.00013548799324780703, 0.02236851677298546, -0.014537821523845196, 0.019864067435264587, 0.07197722047567368, -0.04463411122560501, -0.012445061467587948, -0.028475260362029076, -0.0011525190202519298, -0.0013647968880832195, 0.03602292016148567, 0.05029485747218132, 0.021733827888965607, 0.08240671455860138, -0.03459915518760681, 0.011407257989048958, -0.0064240870997309685, 0.063914954662323, 0.028492413461208344, 0.0003881040611304343, -0.0267941914498806, -0.07177137583494186, 0.0535883828997612, -0.0036065804306417704, 0.024890122935175896, 0.00755623634904623, 0.0045929220505058765, -0.008979999460279942, -0.018440304324030876, -0.020738909021019936, -0.0005341791547834873, -0.049197014421224594, -0.025816425681114197, -0.03218047320842743, 0.018320227041840553, 0.03245493397116661, -0.023191899061203003, -0.06998738646507263, -0.03626307100057602, 0.008748423308134079, 0.06027835234999657, 0.044085193425416946, -0.010978413745760918, 0.047481637448072433, 0.012770982459187508, 0.007800677325576544, -0.01699081063270569, -0.0034757829271256924, -0.07022754102945328, -0.029761793091893196, -0.024615662172436714, 0.0060552810318768024, 0.04113474488258362, 0.04899116978049278, 0.013234134763479233, 0.020155681297183037, -0.029607409611344337, 0.015026703476905823, 0.041100434958934784, 0.005184727255254984, 0.004022559151053429, -0.011844678781926632, 0.024306893348693848, 0.02629673108458519, -0.031408555805683136, -0.03178593888878822, -0.01497524231672287, 0.022540055215358734, 0.014460628852248192, -0.042163968086242676, 0.02602227032184601, 0.02736026421189308, 0.02773764729499817, 0.043810732662677765, -0.049402862787246704, -0.01756546087563038, 0.08508270233869553, 0.033346932381391525, -0.0025602004025131464, -0.006955854129046202, -0.027669033035635948, 0.007830696180462837, -0.002826083917170763, -0.028458107262849808, 0.05550960451364517, -0.04048290103673935, 0.01128718163818121, 0.04274719953536987, -0.008388194255530834, -0.018165843561291695, 0.0030126310884952545, -0.02363789640367031, 0.0015395509544759989, 0.01404036208987236, -0.005652167834341526, -0.039076291024684906, -0.004610076081007719, -0.01433197595179081, 0.04062012955546379, -0.03267793357372284, 0.01163883414119482, -0.036503225564956665, -0.04254135116934776, -0.05238761752843857, 0.0015770748723298311, -0.008834192529320717, -0.007101661060005426, -0.017942843958735466, 0.007736350875347853, 0.000939705001655966, 0.02156229130923748, 0.009786226786673069, 0.015669969841837883, 0.009537496604025364, 0.057636670768260956, 0.0498831681907177, 0.008023676462471485, 0.02736026421189308, -0.0012790280161425471, 0.0007585183484479785, -0.021613752469420433, 0.008435366675257683, 0.05870020389556885, -0.026331039145588875, -0.006981584709137678, 0.021613752469420433, 0.06470402330160141, -0.0018686889670789242, -0.05791113153100014, 0.01318267360329628, -0.02693141996860504, -0.013345633633434772, -0.002986900508403778, 0.03405023738741875, 0.013714440166950226, 0.09654142707586288, 0.007135968655347824, 0.05393145605921745, 0.013302749954164028, -0.01150160375982523, -0.011818948201835155, -0.00022152486781124026, -0.008684096857905388, -0.03094540350139141, 0.052833616733551025, 0.048613786697387695, 0.02600511722266674, -0.025027351453900337, 0.010438069701194763, 0.08748423308134079, -0.0027960645966231823, 0.017599768936634064, -0.03962521255016327, -0.010926952585577965, -0.028286568820476532, -0.035919997841119766, -0.025559119880199432, -0.02873256616294384, 0.07828981429338455, -0.021081984043121338, -0.03132278472185135, -0.022231288254261017, 0.031134095042943954, 0.003507946152240038, -0.01840599626302719, -0.035079460591077805, 0.015609932132065296, 0.04027705639600754, 0.017599768936634064, -0.08830761164426804, 0.007298929616808891, 0.016939349472522736, 0.0475502535700798, -0.03459915518760681, -0.02307182177901268, 0.04113474488258362, -0.01856037974357605, -0.05393145605921745, 0.024306893348693848, -0.04508011043071747, -0.04799625277519226, -0.034650616347789764, -0.04113474488258362, 0.034993693232536316, -0.02665696106851101, -0.0349765382707119, -0.04339903965592384, 0.049334246665239334, 0.024083895608782768, -0.04363919422030449, -0.003400735091418028, -0.019246531650424004, 0.006509856320917606, -0.05818559229373932, 0.00755623634904623, -0.018080074340105057, 0.005742224864661694, -0.024529892951250076, -0.04329611733555794, -0.05811697617173195, -0.03777260333299637, 0.00031010800739750266, -0.02643396146595478, 0.0015438394621014595, -0.027394572272896767, 0.010523838922381401, 0.08240671455860138, 0.015601354651153088, 0.002016640268266201, 0.025061659514904022, 0.04693271964788437, -0.02236851677298546, -0.01991552859544754, -0.002285740105435252, -0.04449688270688057, 0.027669033035635948, -0.01883484050631523, 0.043947961181402206, 0.04676118120551109, 0.04034566879272461, 0.05698482692241669, -0.032626472413539886, 0.011621680110692978, -0.03749814257025719, 0.012016216292977333, -0.040517207235097885, 0.007963638752698898, 0.02384374290704727, 0.02034437283873558, -0.016733502969145775, 0.00560499494895339, 0.009220152162015438, 0.032780855894088745, -0.029058488085865974, -0.043947961181402206, -0.030928250402212143, 0.00560499494895339, 0.055852677673101425, -0.00684006605297327, -0.022677285596728325, -0.022334210574626923, -0.05310807749629021, 0.033861543983221054, -0.025902194902300835, 0.005609283223748207, -0.017145194113254547, 0.03602292016148567, -0.013731594197452068, -0.014203322120010853, -0.035508304834365845, -0.037944141775369644, 0.03175162896513939, -0.027480341494083405, 0.04079166799783707, 0.007980791851878166, -0.012582290917634964, -0.031425707042217255, 0.09654142707586288, -0.022763054817914963, -0.008289559744298458, -0.05760236456990242, -0.0005682186456397176, -0.0132512878626585, -0.005459187552332878, -0.0167592354118824, -0.018646148964762688, -0.000027925132599193603, -0.018320227041840553, 0.005227611865848303, 0.062439728528261185, -0.0414092019200325, 0.0018215160816907883, 0.017857076600193977, -0.062302496284246445, 0.008529712446033955, -0.08734700083732605, 0.06641940027475357, 0.034650616347789764, -0.01576431654393673, -0.03346700593829155, -0.032935239374637604, 0.0010597814107313752, 0.024752892553806305, 0.03453054279088974, -0.05811697617173195, 0.00859832763671875, -0.010986990295350552, -0.07643720507621765, 0.002362932078540325, -0.03427323326468468, 0.017754152417182922, 0.0523190014064312, -0.10504969209432602, 0.016930771991610527, 0.008023676462471485, -0.01479512732475996, 0.03315823897719383, -0.03094540350139141, -0.01597016118466854, 0.038012757897377014, -0.06456679850816727, -0.004164077807217836, 0.001077471300959587, 0.007706331554800272, -0.011047028936445713, -0.03315823897719383, 0.001933015650138259, 0.07129107415676117, -0.03605722635984421, -0.0102064935490489, 0.007247468456625938, 0.037017837166786194, -0.024032432585954666, -0.025679195299744606, 0.019675375893712044, 0.015798622742295265, -0.013894555158913136, 0.009108652360737324, -0.00744902528822422, -0.024529892951250076, -0.03691491484642029, 0.02607373148202896, 0.005840858910232782, 0.021939672529697418, -0.007114526815712452, 0.02264297753572464, 0.02665696106851101, -0.021802444010972977, -0.00426056794822216, -0.0013487152755260468, -0.03274654969573021, -0.055852677673101425, -0.0015416952082887292, 0.002247144002467394, 0.0002902739797718823, 0.04017413407564163, 0.06782601028680801, 0.00220211548730731, 0.01175033301115036, 0.06906108558177948, -0.07087938487529755, 0.03921351954340935, -0.03171732276678085, 0.0377039909362793, 0.034204620867967606, -0.041100434958934784, 0.018508918583393097, -0.021304983645677567, 0.02278020791709423, 0.043158888816833496, 0.07266337424516678, 0.00426056794822216, 0.06388064473867416, -0.01964106783270836, 0.015498432330787182, 0.001231855247169733, 0.025747811421751976, 0.017110886052250862, -0.02814933843910694, -0.05214746296405792, 0.03362139314413071, 0.003836011979728937, 0.004605787806212902, 0.012668060138821602, 0.06916400790214539, -0.04233550652861595, -0.061650652438402176, -0.040002595633268356, 0.0010973053285852075, -0.007603409234434366, -0.010266532190144062, -0.02543904259800911, -0.052833616733551025, 0.009048614650964737, -0.029984792694449425, 0.009769072756171227, 0.011304335668683052, 0.01296825148165226, -0.035645537078380585, 0.03530246019363403, -0.03825290873646736, -0.025902194902300835, 0.036571841686964035, -0.007367544807493687 ]
718,548
pytorch_optimizer.optimizer.utils
get_global_gradient_norm
Get global gradient norm.
def clip_grad_norm( parameters: PARAMETERS, max_norm: float = 0.0, sync: bool = False, ) -> Union[torch.Tensor, float]: # pragma: no cover r"""Clip gradient norms. During combination with FSDP, will also ensure that grad norms are aggregated across all workers, since each worker only stores their shard of the gradients. :param parameters: PARAMETERS. Parameters whose gradients we wish to clip. :param max_norm: float. Maximum norm we wish the gradients to have. If non-positive, then we will not perform clipping. :param sync: bool. Boolean indicating whether we should aggregate across the distributed group. Used only in combination with FSDP. :returns: The gradient norm across all parameters, before clipping. """ if isinstance(parameters, torch.Tensor): parameters = [parameters] # make sure any generators are expanded parameters = list(parameters) # if syncing we need to manually perform the clipping so that we aggregate properly if max_norm > 0 and not sync: return clip_grad_norm_(parameters, max_norm) norm_sq = sum(p.grad.norm() ** 2 for p in parameters if p.grad is not None) if sync: # also need to get the norms from all the other sharded works in FSDP all_reduce(norm_sq) grad_norm = math.sqrt(norm_sq) if max_norm > 0: clip_coefficient = max_norm / (grad_norm + 1e-6) for p in parameters: p.grad.detach().mul_(clip_coefficient) return grad_norm
(param_groups: List[Dict], device: torch.device) -> torch.Tensor
[ 0.002468419959768653, 0.04321654513478279, -0.026233455166220665, 0.0029788159299641848, -0.029883012175559998, 0.022041883319616318, -0.010054350830614567, -0.0030804434791207314, 0.009530404582619667, -0.011346150189638138, -0.01713666133582592, 0.008920639753341675, -0.032990556210279465, -0.03168972581624985, 0.041229162365198135, 0.0441560372710228, -0.04057874530553818, -0.017642540857195854, 0.052972789853811264, -0.017579305917024612, 0.03608003258705139, 0.01554675493389368, -0.045167792588472366, -0.028437642380595207, -0.006486095022410154, -0.02923259697854519, 0.006047967821359634, 0.019512487575411797, -0.06605338305234909, 0.027281347662210464, 0.028022099286317825, 0.01600746624171734, 0.03743506595492363, 0.015230580233037472, 0.028437642380595207, -0.026576729491353035, 0.011319049634039402, 0.03134644776582718, -0.11230520159006119, -0.037977080792188644, -0.011987532489001751, -0.017723841592669487, -0.01499570719897747, 0.030804434791207314, 0.045818209648132324, 0.01479696948081255, -0.03105737455189228, 0.05857359617948532, -0.09329859912395477, 0.014851170592010021, -0.006883571855723858, -0.030479228124022484, 0.007832095958292484, 0.013712942600250244, -0.03671238198876381, -0.007782410830259323, 0.0013222871348261833, 0.01123774703592062, 0.06720967590808868, -0.07331636548042297, 0.049792975187301636, -0.050877004861831665, -0.01967509090900421, 0.004236739128828049, 0.03309895843267441, -0.006951323710381985, -0.016703050583600998, 0.019151145592331886, 0.0443367063999176, 0.05257531255483627, -0.08527679741382599, 0.04650476202368736, -0.011987532489001751, -0.01411945279687643, -0.0008480253163725138, -0.01992803066968918, 0.06388533115386963, -0.01962088979780674, -0.026667065918445587, -0.006291873753070831, 0.03203300014138222, 0.05243077501654625, 0.00046889815712347627, 0.0055104708299040794, -0.042602263391017914, -0.02142760157585144, -0.03241240978240967, 0.008297324180603027, 0.012981223873794079, -0.06243995949625969, 0.0018563963240012527, 0.05459883064031601, 0.029033858329057693, -0.0006368659087456763, -0.008333457633852959, 0.02536623366177082, -0.05076859891414642, -0.02386666275560856, -0.03467079997062683, -0.04961230605840683, 0.033062826842069626, 0.06511389464139938, 0.038699764758348465, -0.014742768369615078, 0.08961290121078491, -0.047263581305742264, -0.007181679364293814, -0.0563332736492157, -0.037579603493213654, 0.05589966103434563, 0.009747209958732128, -0.02066878229379654, -0.022999441251158714, -0.0025971480645239353, -0.001829295651987195, 0.024137668311595917, -0.02104819193482399, -0.0021296613849699497, 0.0643189400434494, -0.014968606643378735, 0.03132838383316994, 0.039819926023483276, -0.026161186397075653, -0.05882653594017029, -0.03393004834651947, 0.06590884178876877, -0.021536003798246384, 0.011599089950323105, 0.02999141439795494, 0.005785994231700897, 0.0010687828762456775, -0.020885588601231575, -0.015465452335774899, -0.008369592018425465, 0.04715517535805702, -0.07660458236932755, -0.023685991764068604, 0.05308119207620621, 0.02536623366177082, -0.025763709098100662, -0.019476352259516716, 0.041951846331357956, 0.0067254845052957535, 0.017696741968393326, -0.0092774648219347, 0.07530374825000763, 0.0182658564299345, 0.060199636965990067, -0.004878121893852949, -0.010578297078609467, -0.003995091188699007, 0.037977080792188644, 0.014345291070640087, 0.02495068870484829, -0.014047184027731419, 0.046649299561977386, -0.04307200759649277, -0.05355093628168106, -0.0006594497826881707, -0.006359625607728958, -0.03168972581624985, -0.03949471935629845, -0.016892755404114723, -0.03526701405644417, 0.008437343873083591, -0.046540893614292145, 0.04860054701566696, -0.020867520943284035, -0.04390309751033783, 0.07172645628452301, -0.013685842044651508, -0.04430057108402252, -0.026468327268958092, -0.039133377373218536, 0.014282056130468845, 0.027552355080842972, 0.016233304515480995, -0.04094008728861809, -0.0637407898902893, 0.0023487252183258533, -0.01816648617386818, -0.019711226224899292, 0.10493382066488266, -0.08578267693519592, -0.011328082531690598, 0.039097242057323456, -0.059476952999830246, -0.004573239013552666, 0.014182687737047672, -0.03808548301458359, -0.009331665933132172, -0.03790481388568878, -0.030425027012825012, -0.025203628465533257, -0.01895240694284439, -0.031165778636932373, 0.03187039494514465, 0.03069603256881237, 0.08000119775533676, -0.02823890559375286, -0.005402068141847849, 0.012050767429172993, 0.0037918363232165575, -0.048022396862506866, -0.04028967395424843, -0.059476952999830246, -0.026468327268958092, 0.03346030041575432, 0.006427376996725798, 0.03452626243233681, 0.011635223403573036, 0.04748038575053215, 0.029340999200940132, -0.0057453433983027935, 0.009530404582619667, -0.04028967395424843, 0.04957617074251175, -0.025077158585190773, 0.007497853599488735, 0.03826615586876869, -0.05206943303346634, -0.09098600596189499, 0.045167792588472366, -0.006192504428327084, -0.03235820680856705, 0.00543368561193347, -0.02074105106294155, -0.013541304506361485, 0.019422151148319244, -0.07978439331054688, 0.04032580554485321, -0.038374558091163635, -0.03208719938993454, 0.002888480434194207, 0.025474635884165764, -0.015348016284406185, -0.01251147873699665, 0.02285490371286869, 0.032629214227199554, 0.027570420876145363, -0.04899802431464195, -0.05474336817860603, -0.06692060083150864, 0.04896188899874687, 0.052286237478256226, 0.012872821651399136, 0.01714569516479969, -0.01889820583164692, 0.03703759238123894, 0.05427362024784088, -0.057634104043245316, -0.0036495577078312635, -0.05665848031640053, 0.005343350116163492, 0.02175281010568142, 0.02354145422577858, -0.0721239373087883, 0.034797269850969315, 0.0329182893037796, -0.014878271147608757, -0.022349024191498756, -0.05253917723894119, -0.02861831523478031, 0.030135951936244965, -0.014020083472132683, -0.0293048657476902, -0.02357758767902851, 0.016901789233088493, -0.021174661815166473, 0.014336258172988892, 0.08672216534614563, 0.012547613121569157, -0.0009372316999360919, 0.002227901481091976, -0.010415693745017052, 0.017642540857195854, 0.035158611834049225, -0.007624323479831219, 0.09734562784433365, 0.02039777673780918, 0.08556587249040604, 0.011002874933183193, -0.06175340712070465, -0.013839412480592728, 0.06457187980413437, 0.04216865077614784, 0.006815820001065731, -0.015483519993722439, -0.06309037655591965, 0.02142760157585144, 0.041987981647253036, -0.011111277155578136, 0.0570920929312706, -0.011562955565750599, 0.03035275824368, -0.01644107699394226, 0.025998583063483238, -0.030605698004364967, -0.00038816072628833354, -0.04860054701566696, 0.03380357846617699, 0.012981223873794079, 0.03718212991952896, 0.0441560372710228, 0.02361372299492359, -0.04383082687854767, -0.03647750988602638, -0.025438502430915833, 0.03575482591986656, 0.012854753993451595, -0.01859106495976448, -0.03564642369747162, 0.02285490371286869, 0.0024639032781124115, 0.0128457210958004, 0.056550078094005585, 0.05748956650495529, -0.06894411891698837, 0.016296539455652237, 0.021499870344996452, -0.02251162938773632, 0.010072418488562107, 0.025998583063483238, 0.04823920503258705, -0.041301429271698, -0.03651364520192146, -0.020903654396533966, 0.0267393346875906, -0.026305723935365677, 0.008202471770346165, -0.006291873753070831, 0.005876330193132162, 0.024444811046123505, 0.03067796491086483, 0.04028967395424843, 0.014598230831325054, 0.09365993738174438, -0.03600776568055153, 0.028004031628370285, -0.0658365786075592, 0.01610683463513851, 0.1136060357093811, 0.010108551941812038, 0.014742768369615078, -0.042638398706912994, 0.026974206790328026, 0.01850072853267193, 0.05073246732354164, -0.02001836709678173, -0.07165418565273285, 0.024480944499373436, -0.02675740048289299, -0.08845660835504532, 0.04036194086074829, -0.008636082522571087, 0.03136451542377472, -0.011219680309295654, -0.025799844413995743, 0.03924177959561348, -0.042674530297517776, 0.023776326328516006, 0.05813998356461525, 0.00841476023197174, 0.025492703542113304, -0.002653607865795493, 0.023306582123041153, -0.03365904092788696, -0.037254396826028824, -0.01604359969496727, -0.01637784205377102, -0.04556526988744736, -0.018753668293356895, 0.06139206513762474, -0.04954003542661667, -0.03579096123576164, -0.007168129086494446, -0.07255754619836807, -0.030750233680009842, 0.0521416999399662, 0.004248030949383974, -0.02384859509766102, -0.025944380089640617, 0.024101534858345985, -0.007701108697801828, 0.054815635085105896, -0.022312890738248825, 0.009982082061469555, -0.02392086386680603, 0.006671283394098282, -0.014896338805556297, 0.02529396489262581, 0.0004290940414648503, 0.014851170592010021, 0.0015458677662536502, -0.03808548301458359, 0.03214140236377716, 0.0371098592877388, 0.04397536441683769, -0.059476952999830246, -0.034056518226861954, -0.022403225302696228, 0.03308089077472687, -0.008098585531115532, 0.008301840163767338, -0.023270446807146072, -0.05669461563229561, 0.05412908270955086, -0.0005067262100055814, -0.000015085337508935481, 0.049034155905246735, -0.012502445839345455, -0.005853746086359024, -0.036531712859869, 0.045890480279922485, 0.040831685066223145, 0.015962298959493637, -0.011553921736776829, 0.004320299718528986, -0.0031210945453494787, 0.01373100932687521, -0.003977024462074041, -0.08375915884971619, 0.05539378151297569, 0.01554675493389368, 0.01573645882308483, -0.031165778636932373, -0.03212333470582962, -0.028798986226320267, -0.0620424821972847, -0.04285520315170288, 0.013134794309735298, 0.021536003798246384, -0.002081106184050441, 0.004769719205796719, -0.00803535059094429, 0.03293635696172714, 0.023107843473553658, 0.06439121067523956, -0.05217783525586128, -0.03685691952705383, 0.015040875412523746, -0.043686289340257645, -0.019187279045581818, -0.012186271138489246, -0.02641412615776062, -0.020632648840546608, -0.020596513524651527, -0.0052439807914197445, -0.01609780266880989, -0.025817910209298134, -0.020578447729349136, -0.013478069566190243, 0.006626115180552006, 0.0343455895781517, 0.01749800331890583, -0.013983949087560177, 0.0017265388742089272, 0.025998583063483238, -0.019386017695069313, -0.03322542831301689, 0.03109350986778736, 0.028329240158200264, -0.023433052003383636, -0.017407668754458427, -0.024480944499373436, 0.031924597918987274, 0.0723046064376831, -0.01564612425863743, -0.006377692334353924, -0.03459852933883667, 0.029828811064362526, 0.011048042215406895, 0.03203300014138222, -0.023360783234238625, 0.06056097894906998, 0.010298256762325764, -0.06428280472755432, -0.01054216269403696, -0.03420105203986168, 0.0008147140615619719, -0.009232297539710999, -0.018094217404723167, -0.0492870956659317, 0.005736310034990311, -0.0492870956659317, -0.06630632281303406, -0.04632408916950226, 0.01709149405360222, 0.014209788292646408, 0.033785510808229446, 0.048022396862506866, 0.009047108702361584, 0.014544029720127583, -0.0026310239918529987, 0.011355183087289333, -0.011806861497461796, 0.020470043644309044, -0.000614281976595521, 0.07870036363601685, 0.011020941659808159, -0.009738176129758358, -0.015582889318466187, 0.0010953190503641963, 0.0386274978518486, -0.009029041975736618, -0.02037970907986164, -0.078772634267807, 0.03152712062001228, 0.03134644776582718, 0.03743506595492363, 0.027696890756487846, -0.023306582123041153, 0.01573645882308483, 0.03313509374856949, 0.003055601380765438, -0.04809466749429703, -0.007448169402778149, -0.028419576585292816, 0.047950129956007004, -0.0028681550174951553, -0.030551495030522346, 0.061861809343099594, -0.10710187256336212, -0.013667774386703968, 0.03880816698074341, -0.007890813983976841, -0.03902497515082359, -0.048275336623191833, 0.02527589723467827, -0.037579603493213654, 0.04487872123718262, 0.031219979748129845, 0.05326186120510101, 0.005442718975245953, 0.05524924397468567, 0.019873829558491707, -0.033388033509254456, -0.03790481388568878, -0.07812221348285675, -0.03221366927027702, -0.023469185456633568, 0.020596513524651527, 0.03703759238123894, 0.022638099268078804, 0.005668558180332184, -0.0017717067385092378, 0.05839292332530022, -0.0034869536757469177, 0.02610698528587818, 0.00786371249705553, -0.030406959354877472, 0.06139206513762474, -0.051888760179281235, -0.03418298810720444, -0.023975064978003502, -0.016142969951033592, -0.03859136253595352, 0.0033446750603616238, -0.030804434791207314, 0.01567322388291359, 0.01967509090900421, -0.05821225419640541, 0.04993751272559166, -0.015429318882524967, -0.03488760441541672, 0.004394826479256153, 0.017208930104970932, -0.012086901813745499, -0.007159095257520676, 0.012023666873574257, -0.04310814291238785, 0.02177087590098381, -0.010695734061300755, 0.048275336623191833, 0.0295939389616251, 0.04256612807512283, 0.042313188314437866, -0.0356825590133667, -0.0060118334367871284, -0.05178035795688629, 0.05217783525586128, -0.04892575368285179, 0.05134674906730652, -0.017642540857195854, 0.0029042891692370176, 0.06417439877986908, -0.031274180859327316, 0.02822083793580532, 0.00029359065229073167, 0.006106685847043991, 0.044119901955127716, 0.067354217171669, 0.012412109412252903, -0.04007286578416824, -0.0044241854920983315, 0.030226288363337517, -0.07833902537822723, 0.037615738809108734, 0.02101205848157406, 0.06948613375425339, -0.04097622260451317, 0.0157454926520586, 0.06478868424892426, 0.02823890559375286, 0.017046324908733368, -0.051527418196201324, -0.009051625616848469, -0.0628013014793396, -0.025619173422455788, -0.029106127098202705, -0.03953085467219353, 0.0498652458190918, -0.03400231525301933, -0.05972989276051521, 0.023107843473553658, -0.042999740689992905, -0.050118185579776764, -0.007217813283205032, 0.028491845354437828, 0.012213371694087982, 0.020072568207979202, 0.029864946380257607, 0.005302698817104101, -0.026233455166220665, -0.016477210447192192, 0.02710067667067051, -0.05149128660559654, -0.01463436521589756, -0.06731808185577393, -0.011165478266775608, -0.03465273231267929, -0.025167495012283325, -0.014571130275726318, 0.012936056591570377, -0.02390279620885849, -0.01922341249883175, 0.058320656418800354, -0.025944380089640617, -0.01888013817369938, -0.0040154168382287025, 0.034797269850969315, 0.047950129956007004, -0.003875396680086851, -0.0054924036376178265, -0.07183486223220825, -0.014751801267266273, 0.030894771218299866, 0.0013380958698689938, -0.027949830517172813, -0.03505020961165428, -0.029413267970085144, 0.052322372794151306, 0.039097242057323456, -0.013252230361104012, 0.029503602534532547, -0.04166277498006821, 0.02534816600382328, 0.010153720155358315, 0.024137668311595917, -0.03427332267165184, 0.016874687746167183, 0.0005386259290389717, 0.0027574938721954823, -0.011960431933403015, -0.09019105136394501, -0.04878121614456177, 0.010027250275015831, 0.021680541336536407, 0.01600746624171734, -0.06601724773645401, -0.03239434212446213, 0.005352383479475975, -0.04213251918554306, 0.015781627967953682, 0.006842921022325754, -0.0005493533099070191, -0.0320691354572773, -0.035863228142261505, 0.018130352720618248, 0.022041883319616318, 0.03848296031355858, 0.01603456772863865, -0.03183425962924957, 0.02495068870484829, 0.00588084664195776, 0.06272903084754944, -0.0011060463730245829, 0.015248646959662437, 0.015871962532401085, 0.046540893614292145, 0.003726342925801873, 0.023360783234238625, -0.028094368055462837, -0.027299415320158005, 0.043361082673072815, -0.03165359050035477, 0.002287748735398054, -0.0007096989429555833, 0.01635977439582348, 0.0563332736492157, 0.00963880680501461, 0.032593078911304474, -0.024553213268518448, 0.029503602534532547, -0.014896338805556297, -0.014968606643378735, 0.03674851730465889, 0.008852887898683548, -0.028094368055462837, 0.03486953675746918, 0.025962447747588158, 0.016549479216337204, -0.006052484270185232, 0.0019094684394076467, -0.03436365723609924, -0.02108432538807392, 0.03967539221048355, 0.0014092351775616407, 0.006757101975381374, -0.019151145592331886, 0.05821225419640541, 0.03812161833047867, 0.038013216108083725, -0.007683041971176863, 0.005605323240160942, 0.017236029729247093, 0.01927761361002922, 0.017199896275997162, 0.0074752699583768845, -0.05774250626564026, 0.04028967395424843, 0.029413267970085144, 0.03165359050035477, 0.04173504188656807, 0.04968457296490669, 0.06865504384040833, 0.05524924397468567, 0.021680541336536407, -0.14453694224357605, -0.060850054025650024, 0.015862928703427315, 0.020560380071401596, 0.02319817990064621, -0.033749375492334366, -0.06511389464139938, 0.030551495030522346, -0.04715517535805702, -0.07302729040384293, 0.022565830498933792, -0.03573675826191902, 0.04560140520334244, -0.012601814232766628, 0.028004031628370285, 0.007814028300344944, 0.012366942130029202, -0.024697748944163322, 0.003579547628760338, -0.02753428742289543, -0.026197319850325584, -0.05412908270955086, 0.03355063870549202, 0.01929568126797676, 0.029539737850427628, 0.030099818482995033, -0.0098014110699296, 0.015628056600689888, 0.015338982455432415, -0.030967039987444878 ]
718,549
pytorch_optimizer.optimizer.utils
get_optimizer_parameters
Get optimizer parameters while filtering specified modules. :param model_or_parameter: Union[nn.Module, List]. model or parameters. :param weight_decay: float. weight_decay. :param wd_ban_list: List[str]. ban list not to set weight decay. :returns: PARAMETERS. new parameter list.
def get_optimizer_parameters( model_or_parameter: Union[nn.Module, List], weight_decay: float, wd_ban_list: List[str] = ('bias', 'LayerNorm.bias', 'LayerNorm.weight'), ) -> PARAMETERS: r"""Get optimizer parameters while filtering specified modules. :param model_or_parameter: Union[nn.Module, List]. model or parameters. :param weight_decay: float. weight_decay. :param wd_ban_list: List[str]. ban list not to set weight decay. :returns: PARAMETERS. new parameter list. """ if isinstance(model_or_parameter, nn.Module): model_or_parameter = list(model_or_parameter.named_parameters()) return [ { 'params': [p for n, p in model_or_parameter if p.requires_grad and not any(nd in n for nd in wd_ban_list)], 'weight_decay': weight_decay, }, { 'params': [p for n, p in model_or_parameter if p.requires_grad and any(nd in n for nd in wd_ban_list)], 'weight_decay': 0.0, }, ]
(model_or_parameter: Union[torch.nn.modules.module.Module, List], weight_decay: float, wd_ban_list: List[str] = ('bias', 'LayerNorm.bias', 'LayerNorm.weight')) -> Union[Iterable[Dict], Iterable[torch.Tensor], NoneType]
[ 0.06801013648509979, 0.007904439233243465, -0.026899531483650208, -0.014850195497274399, -0.025470905005931854, 0.011504202149808407, -0.019493231549859047, -0.018158594146370888, 0.011757970787584782, 0.050039518624544144, -0.016607781872153282, -0.031899724155664444, -0.021786551922559738, -0.009037001989781857, -0.02637319453060627, 0.02885449305176735, -0.0224444717168808, 0.031373389065265656, -0.04545287787914276, -0.010752293281257153, -0.02126021683216095, -0.09143208712339401, -0.007194825913757086, 0.0750780776143074, -0.020301533862948418, -0.01909847930073738, -0.028760505840182304, -0.020527105778455734, -0.05846089497208595, 0.016711169853806496, 0.033046383410692215, -0.058761660009622574, -0.02881689742207527, 0.005944777745753527, 0.0224444717168808, 0.07248399406671524, 0.05646833777427673, 0.05455097183585167, -0.036185603588819504, -0.061242956668138504, 0.06094219535589218, -0.06097979098558426, 0.058084942400455475, 0.005291556939482689, -0.02819657325744629, 0.000690816028509289, 0.025113748386502266, 0.027294283732771873, 0.02915525622665882, -0.005761499982327223, 0.04627997428178787, -0.006386524066329002, 0.016908545047044754, 0.0015414126683026552, -0.019013889133930206, -0.06406261771917343, 0.0013828069204464555, -0.0007842172053642571, 0.07173208147287369, -0.020019566640257835, 0.03883608058094978, -0.06515288352966309, -0.005531227681785822, -0.009756014682352543, 0.009591534733772278, -0.01975639909505844, -0.06376185268163681, -0.0167863592505455, 0.016072047874331474, 0.01613783836364746, -0.00028666516300290823, -0.06011509522795677, -0.012885834090411663, 0.04515211284160614, -0.048686083406209946, -0.02934323437511921, -0.003195611760020256, -0.03691871464252472, -0.02819657325744629, -0.008999406360089779, 0.0010297623230144382, 0.013571950607001781, -0.03488856181502342, -0.02272643893957138, 0.08105575293302536, -0.07864964008331299, -0.03891127184033394, -0.003435282502323389, 0.03853531554341316, -0.09609392285346985, -0.058912042528390884, -0.03674953430891037, 0.03757663443684578, -0.01632581651210785, 0.04022711142897606, 0.02355353720486164, -0.02637319453060627, -0.024418232962489128, -0.021523384377360344, 0.0029042470268905163, -0.028384551405906677, -0.0024002334102988243, 0.01681455597281456, 0.02900487557053566, 0.018741322681307793, -0.05458856746554375, -0.048084557056427, -0.053310323506593704, -0.008623451925814152, -0.02156098000705242, -0.04026470705866814, -0.0015132160624489188, -0.02272643893957138, -0.028309360146522522, 0.0372946672141552, 0.03985115885734558, 0.008139410987496376, -0.005597020033746958, 0.03842253237962723, 0.04485135152935982, 0.015367132611572742, 0.05962635576725006, -0.017510071396827698, -0.0021358905360102654, 0.03532090783119202, -0.016748765483498573, 0.014812599867582321, -0.011532398872077465, 0.006809472572058439, -0.02291441522538662, 0.002299195621162653, -0.026561172679066658, -0.049024444073438644, -0.030189132317900658, 0.0032214585226029158, -0.01829017698764801, -0.06718303263187408, 0.016184832900762558, 0.010968467220664024, -0.05612998083233833, 0.03543369472026825, 0.02156098000705242, 0.00002652607327036094, 0.030602680519223213, -0.054287802428007126, -0.023102393373847008, 0.020658690482378006, 0.013910309411585331, 0.021692564710974693, -0.01146660652011633, -0.021485788747668266, 0.004149595741182566, -0.024512222036719322, -0.016579585149884224, -0.02438063733279705, -0.022707641124725342, -0.025959646329283714, -0.021617373451590538, -0.02735067717730999, -0.009859401732683182, 0.019700005650520325, 0.008943012915551662, -0.030621478334069252, -0.033723101019859314, 0.031185410916805267, 0.00011660457676043734, 0.013205395080149174, 0.03791499137878418, 0.023027202114462852, -0.017763841897249222, 0.019530827179551125, -0.03973837196826935, 0.014549432322382927, 0.017829634249210358, 0.0011783818481490016, 0.05519009381532669, -0.024493424221873283, -0.027783023193478584, 0.003179163672029972, -0.02569647692143917, 0.05503971129655838, 0.056430742144584656, -0.0038018380291759968, -0.013130204752087593, -0.013571950607001781, 0.013637742958962917, -0.008581156842410564, 0.01335577666759491, -0.08466491103172302, 0.009412956424057484, 0.030922241508960724, 0.00712903356179595, 0.03471938148140907, 0.014389651827514172, -0.09707140177488327, 0.017058927565813065, 0.04120459407567978, 0.004962597042322159, -0.04248283803462982, 0.05357348918914795, 0.031373389065265656, -0.0438738688826561, -0.043911464512348175, 0.0487612746655941, 0.010197760537266731, -0.027914607897400856, -0.014060690999031067, 0.031053826212882996, -0.006485212128609419, -0.02733187936246395, 0.03206890448927879, 0.02060229703783989, 0.08819888532161713, 0.006809472572058439, 0.03199371322989464, 0.013177198357880116, -0.008050121366977692, 0.0438738688826561, 0.024023480713367462, -0.024963365867733955, -0.040151920169591904, -0.007058542221784592, 0.02079027332365513, 0.021974530071020126, 0.046881504356861115, -0.013684737496078014, -0.004457408562302589, -0.027895810082554817, -0.02204972133040428, -0.011231634765863419, 0.01177676860243082, -0.06252120435237885, -0.027482260018587112, -0.02191813662648201, 0.054964520037174225, -0.026091229170560837, -0.032219283282756805, -0.010705298744142056, 0.0006773052155040205, -0.04793417453765869, 0.01261326763778925, -0.021128632128238678, -0.00979361031204462, 0.02817777544260025, 0.012791845947504044, 0.009727817960083485, 0.0681605190038681, -0.04267081618309021, 0.007566080428659916, -0.014211073517799377, 0.001119638909585774, 0.04567844793200493, 0.011081253178417683, 0.017359690740704536, -0.043573103845119476, 0.05575402453541756, 0.0060058701783418655, 0.0056111179292202, -0.04928760975599289, -0.05722024664282799, -0.044926539063453674, -0.006057563703507185, -0.03611041232943535, -0.02868531458079815, 0.07774735242128372, 0.0034822768066078424, 0.03943760693073273, 0.025433309376239777, 0.004177792463451624, 0.015329536981880665, 0.09631949663162231, -0.004971995949745178, -0.013750528916716576, 0.008618752472102642, 0.0017493624472990632, 0.004586642608046532, 0.03936241567134857, 0.045076921582221985, -0.034550201147794724, 0.053498297929763794, -0.0033953373786062002, 0.012011740356683731, -0.04282119497656822, -0.0031321693677455187, 0.012848238460719585, 0.0681605190038681, -0.04661833494901657, 0.036317188292741776, 0.015921665355563164, 0.051317762583494186, 0.04861089214682579, -0.014652819372713566, 0.06357387453317642, -0.008341486565768719, 0.005836690776050091, 0.025677679106593132, 0.0369563102722168, -0.030076345428824425, 0.06199486553668976, 0.011551196686923504, 0.03635478392243385, 0.014906588941812515, 0.0673334151506424, 0.006297234911471605, -0.008167607709765434, 0.005784996785223484, 0.04477616026997566, -0.017998812720179558, 0.030264321714639664, 0.007566080428659916, 0.01020715944468975, -0.03327195718884468, 0.05357348918914795, -0.01235009916126728, 0.03473817929625511, -0.08090537041425705, -0.007772855460643768, 0.023121191188693047, -0.013280586339533329, 0.03580964729189873, 0.001845700666308403, 0.03359151631593704, 0.041768524795770645, -0.051505740731954575, -0.027914607897400856, -0.05357348918914795, -0.01013196911662817, 0.03347873315215111, 0.004384567029774189, -0.007157230284065008, -0.07564200460910797, 0.012378295883536339, -0.013797523453831673, 0.01880711503326893, -0.0366179496049881, 0.006358327344059944, 0.031072624027729034, 0.028290562331676483, -0.02338435873389244, -0.001554336166009307, 0.04691909998655319, -0.02045191451907158, -0.01617543399333954, 0.0663183405995369, -0.03951279819011688, -0.0027773624751716852, 0.0019819841254502535, 0.0870710164308548, -0.00039974518585950136, -0.0202451404184103, 0.055340476334095, 0.04898684844374657, -0.009591534733772278, 0.040114324539899826, 0.02586565725505352, 0.010912073776125908, -0.021354205906391144, 0.028478538617491722, 0.006269038189202547, -0.009206181392073631, 0.007763456553220749, 0.03712548688054085, -0.014624622650444508, 0.05090421438217163, 0.05868646875023842, 0.018534548580646515, 0.029625199735164642, -0.04725745692849159, 0.07056662440299988, -0.07466452568769455, 0.01743488200008869, -0.04274600371718407, 0.03906165435910225, -0.012444088235497475, -0.00556412385776639, 0.016053250059485435, -0.038948867470026016, -0.014962981455028057, 0.02832815796136856, 0.01235009916126728, -0.008576457388699055, -0.017575863748788834, 0.05473894998431206, -0.00840727798640728, -0.01301741786301136, -0.025151344016194344, -0.03406146168708801, -0.016081444919109344, 0.014981779269874096, -0.021373001858592033, -0.035866040736436844, -0.01745367981493473, -0.01892929896712303, 0.08308590203523636, -0.02718149684369564, 0.05639314651489258, -0.0017857829807326198, 0.05300955846905708, -0.08188284933567047, -0.045528069138526917, 0.004628937691450119, -0.055415667593479156, -0.06943876296281815, 0.04699428752064705, -0.06650631874799728, -0.04154295101761818, -0.029098864644765854, 0.1167714074254036, 0.0023168185725808144, 0.016729967668652534, -0.05436299368739128, -0.027632642537355423, 0.022162506356835365, 0.012547475285828114, -0.01211512740701437, 0.03891127184033394, 0.006781275849789381, 0.04338512942194939, 0.03355392441153526, -0.01766045391559601, 0.06049104779958725, -0.056618720293045044, 0.07985269278287888, 0.020470712333917618, 0.036824725568294525, 0.005648713558912277, 0.024004682898521423, 0.0013663589488714933, -0.015902867540717125, -0.007763456553220749, -0.009182684123516083, 0.0069128600880503654, 0.007575479336082935, -0.0705290287733078, 0.008012526668608189, 0.003721947781741619, 0.04214447736740112, 0.035020142793655396, 0.0027844116557389498, -0.03861050680279732, 0.01941804029047489, 0.008364983834326267, -0.01360014732927084, 0.01880711503326893, -0.03940001130104065, -0.022218899801373482, 0.020226342603564262, 0.04007672891020775, -0.03490735962986946, -0.021185025572776794, 0.026655161753296852, -0.02768903598189354, 0.0830107107758522, -0.008755035698413849, 0.0494379922747612, 0.03097863495349884, 0.0269935205578804, -0.024267850443720818, 0.036993905901908875, -0.0022486767265945673, 0.11654584109783173, 0.014756206423044205, 0.03891127184033394, -0.023365560919046402, -0.059739138931035995, 0.06812292337417603, 0.05409982427954674, -0.05571642890572548, 0.04643035680055618, 0.07045383751392365, 0.0382157564163208, -0.012152723036706448, -0.014060690999031067, -0.06541605293750763, -0.009488146752119064, 0.031542565673589706, 0.014934784732758999, 0.01650439389050007, 0.03597882762551308, -0.00012600343325175345, 0.025978442281484604, -0.02325277402997017, 0.0012136275181546807, 0.017340892925858498, -0.03308397904038429, -0.03727586939930916, -0.03868569806218147, -0.013947905041277409, -0.0069269584491848946, -0.0018926949705928564, -0.036486364901065826, -0.005507730878889561, 0.048686083406209946, -0.014605824835598469, -0.03178693726658821, 0.003360091708600521, 0.0006355977384373546, 0.03218168765306473, 0.08631911128759384, 0.04928760975599289, 0.007932635955512524, -0.02934323437511921, -0.04124218970537186, -0.022839223966002464, 0.006048165261745453, -0.08308590203523636, -0.027275485917925835, 0.016053250059485435, -0.019230064004659653, 0.0356028750538826, -0.02206851914525032, 0.04124218970537186, -0.03573445603251457, 0.024512222036719322, -0.051656123250722885, -0.023027202114462852, -0.00988759845495224, 0.044400203973054886, 0.010160164907574654, 0.006499310024082661, 0.03580964729189873, 0.029362032189965248, -0.0006332480697892606, -0.060566239058971405, 0.025000961497426033, 0.007227721624076366, -0.07496529072523117, -0.06654391437768936, 0.037990182638168335, -0.02556489408016205, 0.003432932775467634, -0.030358310788869858, -0.024944568052887917, 0.01325238961726427, -0.013994899578392506, -0.01597805880010128, 0.052671197801828384, -0.022707641124725342, -0.08985307812690735, 0.03218168765306473, 0.012773048132658005, 0.04349791258573532, 0.021391799673438072, -0.023121191188693047, 0.053460702300071716, 0.0933118611574173, -0.028102584183216095, 0.005869586952030659, -0.08534163236618042, -0.024098671972751617, -0.014962981455028057, 0.010442131198942661, -0.05996471270918846, 0.03853531554341316, 0.014521235600113869, -0.06526567041873932, 0.005394944455474615, -0.0435355082154274, 0.0017282150220125914, 0.019718803465366364, -0.002350889379158616, -0.09496606141328812, -0.017886025831103325, 0.04105421155691147, -0.019342849031090736, 0.007683566305786371, -0.012237313203513622, -0.017077725380659103, -0.06485211849212646, 0.04624238237738609, 0.0425204336643219, -0.04000153765082359, 0.00013092315930407494, -0.039775967597961426, -0.0027209692634642124, -0.009821806102991104, -0.003822985338047147, 0.0005792046431452036, -0.0006514583365060389, -0.030771860852837563, 0.029775582253932953, -0.013487361371517181, -0.019887983798980713, -0.023027202114462852, 0.05259601026773453, -0.003475227626040578, 0.004245934076607227, 0.012979823164641857, 0.02701231837272644, 0.02127901464700699, 0.019230064004659653, 0.07955193519592285, 0.032538846135139465, -0.008693943731486797, -0.023440752178430557, 0.00028710573678836226, -0.09857521951198578, 0.045716043561697006, 0.010178962722420692, 0.05503971129655838, -0.03377949446439743, -0.056430742144584656, 0.07297272980213165, 0.008487168699502945, 0.014408448711037636, -0.006630894262343645, -0.032388463616371155, 0.018243182450532913, 0.04616719111800194, -0.023271571844816208, -0.044061847031116486, -0.05090421438217163, -0.011541797779500484, -0.031185410916805267, -0.023835504427552223, -0.013759927824139595, -0.013092609122395515, 0.034174248576164246, 0.06879963725805283, -0.004795767366886139, -0.011804965324699879, 0.0191078782081604, 0.017237504944205284, 0.007194825913757086, -0.057934559881687164, -0.02932443656027317, -0.016523191705346107, -0.05936318635940552, 0.01171097718179226, 0.012171520851552486, 0.012491081841289997, -0.00044967661960981786, 0.0722208246588707, -0.005545326042920351, -0.07131853699684143, 0.051505740731954575, 0.011974144726991653, -0.047370243817567825, 0.000582729175221175, -0.01629761978983879, 0.07237120717763901, 0.07616834342479706, 0.027313081547617912, -0.020057162269949913, -0.009671424515545368, 0.013374574482440948, 0.007476791273802519, -0.00806891918182373, 0.008933614008128643, 0.0093236668035388, -0.05060344934463501, -0.014605824835598469, -0.037200678139925, -0.008012526668608189, 0.019887983798980713, -0.04394906014204025, 0.011992942541837692, 0.004840411711484194, 0.019831590354442596, -0.029700390994548798, 0.0105455182492733, -0.030264321714639664, 0.013872713781893253, -0.022632449865341187, -0.04928760975599289, 0.00403680931776762, -0.04650554805994034, 0.027726631611585617, 0.0739126205444336, -0.03505773842334747, -0.029230447486042976, -0.034700583666563034, -0.044550586491823196, 0.010695899836719036, -0.014962981455028057, 0.018995091319084167, -0.018891705200076103, 0.027256688103079796, -0.055453263223171234, -0.02573407255113125, 0.0619196742773056, -0.03141098469495773, 0.002026628702878952, 0.0007413349230773747, 0.004925001412630081, 0.028760505840182304, -0.0857175812125206, 0.02915525622665882, 0.04665593057870865, 0.023797908797860146, -0.06067902594804764, -0.0415053553879261, 0.03212529793381691, 0.009464649483561516, 0.02720029465854168, -0.05188169702887535, -0.017716847360134125, -0.0253957137465477, 0.01810220070183277, 0.014887791126966476, -0.018243182450532913, -0.02077147550880909, -0.04496413469314575, 0.0041683935560286045, 0.02981317788362503, -0.02013235352933407, -0.01565849781036377, -0.028967279940843582, 0.02094065584242344, -0.016354013234376907, -0.028553729876875877, 0.0184781551361084, -0.011607589200139046, -0.047671008855104446, 0.03267043083906174, 0.020639892667531967, -0.016053250059485435, -0.001643625320866704, -0.026091229170560837, -0.005437239073216915, 0.00954923965036869, 0.02671155333518982, 0.03580964729189873, 0.04800936579704285, -0.0019608368165791035, -0.037670623511075974, -0.027632642537355423, -0.018374767154455185, 0.004734674468636513, -0.036185603588819504, 0.023008404299616814, -0.01392910722643137, -0.005023689474910498, -0.037482645362615585, 0.01300801895558834, 0.040603067725896835, 0.03970077633857727, 0.0033530425280332565, -0.06052864342927933, 0.05278398469090462, 0.020884262397885323, 0.08443933725357056, -0.03906165435910225, 0.026955924928188324, -0.029061269015073776, 0.013045614585280418, 0.03082825429737568, -0.07819849997758865, 0.07707063108682632, -0.04466337338089943, 0.024173863232135773, -0.019230064004659653, 0.0649649053812027, -0.003578615142032504, 0.018092801794409752, -0.0024413533974438906, 0.017096523195505142, -0.005503031425178051, -0.08030384033918381, -0.0747397169470787, -0.010442131198942661, -0.002948891604319215, 0.04518970847129822, -0.01596865989267826, 0.02359113283455372, -0.052182458341121674, 0.022632449865341187, -0.022350484505295753 ]
718,550
pytorch_optimizer
get_supported_loss_functions
null
def get_supported_loss_functions() -> List[nn.Module]: return LOSS_FUNCTION_LIST
() -> List[torch.nn.modules.module.Module]
[ -0.03135991841554642, -0.05193774029612541, 0.020934956148266792, -0.021547188982367516, -0.0004985019913874567, 0.017550671473145485, -0.03304355964064598, -0.009515116922557354, 0.0704747885465622, 0.022754648700356483, -0.01891118846833706, -0.04853644594550133, 0.027737542986869812, -0.027584483847022057, 0.004723545163869858, 0.008341670036315918, -0.03819651901721954, 0.032788462936878204, 0.025407657027244568, -0.022091396152973175, -0.02785658836364746, 0.030220486223697662, 0.006917379330843687, -0.03571357578039169, -0.0183669812977314, 0.06510074436664581, 0.04374062642455101, 0.003479947568848729, -0.007657160516828299, -0.020594827830791473, -0.07190332561731339, -0.004719293676316738, 0.004425932187587023, -0.028060665354132652, -0.023604972288012505, 0.030424563214182854, 0.022873694077134132, 0.0369720533490181, -0.02248254604637623, -0.024353256449103355, -0.017958825454115868, -0.03731217980384827, -0.0010868193348869681, 0.011283788830041885, -0.016912927851080894, 0.008430954068899155, -0.0362577810883522, -0.012440227903425694, 0.014072848483920097, -0.03151297569274902, -0.030696667730808258, -0.014021829701960087, 0.028927994892001152, 0.016674837097525597, 0.009651168249547482, 0.031189855188131332, -0.009761710651218891, -0.005867229774594307, 0.0020343982614576817, -0.02137712575495243, 0.04472700133919716, 0.020118646323680878, 0.008571257814764977, -0.021785279735922813, 0.047141917049884796, -0.016156140714883804, -0.03503331542015076, 0.006879114545881748, 0.013290551491081715, 0.07006663084030151, -0.03918289393186569, -0.051155444234609604, -0.005446319933980703, 0.013282048515975475, 0.007733689621090889, -0.023690003901720047, 0.03867269679903984, 0.002999515039846301, -0.017329586669802666, 0.005752436351031065, -0.007716682739555836, 0.014140875078737736, 0.01020387839525938, 0.06805986911058426, 0.06016886979341507, -0.1116984561085701, -0.038604672998189926, 0.011207259260118008, -0.04312839359045029, -0.027465438470244408, -0.08421600610017776, 0.006938637234270573, -0.04948880895972252, -0.014021829701960087, -0.03469318524003029, 0.0017314705764874816, -0.035067327320575714, -0.006585753057152033, 0.06857006251811981, -0.08312759548425674, 0.025951864197850227, 0.04006722941994667, 0.0061095720157027245, 0.06690342724323273, 0.04632560908794403, -0.008532993495464325, -0.02712531015276909, 0.029778318479657173, -0.03367279842495918, -0.007057682611048222, 0.0035012057051062584, -0.0000609841154073365, 0.09544027596712112, -0.04397871717810631, 0.030934758484363556, -0.027465438470244408, -0.03003341518342495, -0.0055143460631370544, -0.025356637313961983, 0.017134012654423714, -0.05829815939068794, 0.01901322603225708, -0.03272043541073799, -0.02050979621708393, 0.06016886979341507, -0.0068068369291722775, 0.06190352886915207, 0.028043659403920174, 0.02442128211259842, 0.006942888721823692, -0.024710392579436302, 0.030424563214182854, -0.03435305505990982, 0.045747388154268265, -0.024234211072325706, -0.08217523247003555, -0.028825955465435982, 0.01619865745306015, 0.08448810875415802, -0.09047438949346542, -0.040441371500492096, -0.004100683610886335, 0.014770113863050938, 0.03812849149107933, -0.02280566841363907, 0.031700048595666885, 0.02428523078560829, -0.008167354390025139, 0.03025449998676777, -0.006470959633588791, 0.02062883973121643, 0.012746344320476055, -0.04180188849568367, -0.04652968421578407, -0.017788760364055634, 0.0005224173073656857, 0.0036521381698548794, -0.03867269679903984, 0.020033614709973335, -0.019149277359247208, -0.012015067040920258, -0.018945200368762016, -0.05214181914925575, -0.05639343336224556, 0.04125767946243286, -0.024336250498890877, 0.006088314112275839, -0.025339631363749504, 0.04125767946243286, 0.038604672998189926, -0.006041546352207661, -0.031478963792324066, 0.0620395801961422, 0.06285589188337326, 0.07163122296333313, 0.04183590039610863, -0.026513077318668365, 0.0166323222219944, -0.030526602640748024, 0.04258418455719948, 0.050713274627923965, 0.026717154309153557, -0.04785618931055069, -0.024234211072325706, -0.0275504719465971, 0.013724216260015965, -0.02115604095160961, -0.000783891708124429, -0.09822933375835419, 0.0160796120762825, 0.03693803772330284, -0.016997961327433586, 0.04006722941994667, 0.030951764434576035, 0.004177212715148926, -0.01662381924688816, -0.017873793840408325, 0.023298855870962143, 0.01377523597329855, -0.0533662848174572, -0.004685280844569206, 0.05894440412521362, 0.019727498292922974, 0.05625738203525543, -0.05241392180323601, -0.01479562371969223, -0.007032172754406929, 0.008188612759113312, -0.05608731880784035, -0.03445509448647499, 0.028043659403920174, 0.019370362162590027, 0.011862008832395077, 0.09986195713281631, 0.05380845069885254, 0.020458776503801346, 0.014378964900970459, 0.04829835891723633, -0.06775375455617905, -0.012890899553894997, -0.033213622868061066, -0.049114666879177094, -0.018605072051286697, 0.03210820257663727, 0.017856787890195847, 0.05241392180323601, -0.004472699947655201, -0.0034204251132905483, 0.06299193948507309, 0.013919790275394917, -0.004056041594594717, 0.013758229091763496, -0.04115564376115799, 0.04809428006410599, 0.0330265536904335, 0.03329865634441376, 0.032788462936878204, 0.009999800473451614, 0.07040675729513168, -0.007129959762096405, -0.02612192928791046, -0.04357055947184563, 0.03125787898898125, 0.036665935069322586, 0.0759848803281784, 0.035373445600271225, 0.028927994892001152, 0.021887319162487984, -0.031581003218889236, 0.029880356043577194, -0.006415688432753086, -0.02300974540412426, 0.015611933544278145, -0.008260889910161495, -0.04646166041493416, -0.0343700647354126, -0.054590750485658646, -0.009591645561158657, 0.01252526044845581, -0.02799263969063759, -0.040781501680612564, 0.03819651901721954, -0.072991743683815, 0.04139373451471329, 0.004464196972548962, -0.03965907171368599, 0.053740426898002625, 0.04081551358103752, -0.017023470252752304, 0.03001640923321247, 0.0528901033103466, 0.008333167061209679, -0.09244713932275772, -0.010612033307552338, 0.03891078755259514, 0.024268222972750664, -0.013690203428268433, 0.039693087339401245, 0.06343410909175873, 0.016011586412787437, 0.055679161101579666, -0.020441768690943718, -0.09061043709516525, 0.0136561905965209, -0.0046937838196754456, 0.05887637659907341, -0.023809049278497696, -0.061835501343011856, 0.02278866060078144, -0.0521078035235405, 0.04357055947184563, 0.05197175219655037, 0.02636001817882061, 0.0055100941099226475, 0.06309398263692856, 0.02399612031877041, 0.026223966851830482, -0.012057582847774029, 0.08476021885871887, 0.009447090327739716, 0.008022799156606197, -0.028979014605283737, 0.01063754316419363, -0.014293932355940342, -0.03445509448647499, -0.07652908563613892, 0.055679161101579666, -0.022312480956315994, -0.027703529223799706, 0.007750696036964655, 0.013979312963783741, -0.0032779958564788103, 0.017040476202964783, -0.029217105358839035, 0.04550929740071297, -0.017754748463630676, 0.0022129660937935114, 0.050067029893398285, 0.011904524639248848, 0.06380825489759445, -0.0382305309176445, 0.07135912030935287, 0.046393632888793945, 0.03173406049609184, 0.003815825330093503, -0.03595166280865669, 0.04605350270867348, -0.07809368520975113, 0.01437046192586422, -0.04870651289820671, -0.05132550746202469, -0.07720934599637985, 0.03328165039420128, 0.02874092385172844, -0.011275285854935646, -0.0010841620387509465, 0.03595166280865669, 0.03976111114025116, 0.00691312737762928, -0.0011224265908822417, -0.023690003901720047, 0.02959124743938446, 0.01999960094690323, 0.05778796225786209, -0.028774937614798546, 0.011028692126274109, 0.02464236691594124, 0.051359519362449646, -0.015467379242181778, 0.014472500421106815, -0.018400993198156357, -0.0030866730958223343, -0.06309398263692856, 0.054080553352832794, 0.028434807434678078, -0.003558602649718523, -0.05292411521077156, 0.025747785344719887, 0.050169069319963455, -0.029013026505708694, 0.03348572552204132, -0.018298955634236336, -0.021479163318872452, 0.05282207578420639, 0.0003919458540622145, 0.000728089245967567, 0.08163102716207504, -0.01610512100160122, 0.02302675135433674, -0.061631426215171814, -0.0341319739818573, -0.007070437539368868, -0.022516557946801186, -0.007818722166121006, -0.017244555056095123, -0.05401252955198288, 0.06816190481185913, -0.020271705463528633, 0.03328165039420128, 0.037754349410533905, -0.009821232408285141, 0.009982794523239136, -0.031717054545879364, -0.03057762235403061, 0.03751625865697861, 0.03329865634441376, -0.02797563374042511, 0.00803980603814125, -0.03457413986325264, -0.01268682163208723, -0.010858627036213875, -0.013018447905778885, -0.03629179298877716, 0.027057284489274025, -0.023621978238224983, 0.031036796048283577, 0.009974290616810322, 0.04234609380364418, -0.0016134883044287562, -0.043604571372270584, -0.028468821197748184, 0.04894460365176201, -0.0023724017664790154, -0.009089955128729343, -0.032890502363443375, 0.015042217448353767, 0.004583241883665323, 0.08135892450809479, -0.010994679294526577, -0.02204037643969059, -0.005735429935157299, 0.033434707671403885, -0.04567936062812805, -0.005756687838584185, -0.002525459975004196, 0.06438647210597992, -0.0266831424087286, 0.005603629630059004, 0.015926552936434746, 0.013605170883238316, 0.025424662977457047, -0.04350253567099571, 0.025645747780799866, 0.031070809811353683, -0.02666613459587097, 0.005837468896061182, -0.01999960094690323, -0.010305916890501976, -0.05608731880784035, 0.015730978921055794, -0.01491466909646988, 0.0023150048218667507, 0.016802385449409485, -0.09013425558805466, -0.012678318656980991, -0.07612093538045883, -0.007499850355088711, -0.0038030704017728567, -0.01933634839951992, -0.019710492342710495, -0.022380506619811058, 0.029625259339809418, 0.04231208190321922, 0.05292411521077156, 0.02559472806751728, -0.019727498292922974, -0.008826354518532753, 0.016054101288318634, -0.02300974540412426, 0.002738040639087558, -0.07516857236623764, -0.024234211072325706, 0.028536846861243248, 0.05047518387436867, 0.08081471920013428, 0.026955245062708855, -0.051155444234609604, -0.03357075899839401, -0.019030233845114708, -0.01009333599358797, 0.01161541510373354, 0.06340009719133377, -0.049182694405317307, 0.029863350093364716, -0.025866830721497536, 0.007508353795856237, 0.07482843846082687, -0.06656330078840256, 0.01220213808119297, 0.04663172364234924, 0.009268523193895817, 0.0026253729593008757, 0.03595166280865669, -0.05445469543337822, -0.03982913866639137, 0.04064544662833214, -0.015093236230313778, -0.00777620542794466, 0.05921650677919388, -0.03598567843437195, 0.002729537431150675, -0.06822993606328964, 0.012355196289718151, -0.021241072565317154, -0.031036796048283577, -0.02052680216729641, -0.03146195784211159, 0.003798818914219737, -0.02117304690182209, -0.021887319162487984, -0.017584683373570442, -0.019523421302437782, 0.018213922157883644, -0.05615534260869026, 0.0021555693820118904, -0.02226146124303341, 0.009464097209274769, -0.03045857697725296, 0.0050126551650464535, 0.029557233676314354, 0.07979432493448257, 0.013877274468541145, -0.08727717399597168, 0.023928094655275345, 0.03952302038669586, -0.05663152411580086, 0.01511874608695507, -0.0028762181755155325, -0.03704007714986801, -0.0018834659131243825, -0.002559472806751728, 0.017975831404328346, 0.04567936062812805, 0.020577821880578995, -0.010986175388097763, -0.023690003901720047, 0.0030739184003323317, 0.04789020121097565, 0.05571317672729492, 0.07380805164575577, -0.0011745089432224631, 0.004425932187587023, 0.008141844533383846, -0.03751625865697861, -0.004872351884841919, 0.004187841899693012, -0.07476041465997696, -0.00033720629289746284, 0.0341319739818573, 0.021224066615104675, 0.025798805058002472, 0.035815611481666565, -0.02127508632838726, -0.017465637996792793, -0.04289030283689499, -0.013205518946051598, 0.0320061631500721, -0.047924213111400604, -0.025101540610194206, -0.01588403806090355, -0.01523779146373272, -0.010986175388097763, 0.01770372875034809, 0.026223966851830482, 0.02656409703195095, -0.055475085973739624, -0.040781501680612564, 0.02418319135904312, -0.055236995220184326, -0.01263580285012722, 0.010314419865608215, 0.007946270518004894, -0.04598547890782356, -0.034387070685625076, 0.05965867638587952, -0.0009417329565621912, 0.04003321751952171, 0.012023570016026497, -0.05571317672729492, 0.001806936808861792, -0.08176707476377487, -0.0963246077299118, -0.006543236784636974, 0.013919790275394917, -0.03877473622560501, 0.004600248299539089, -0.016028592362999916, 0.017329586669802666, -0.029795324429869652, -0.02353694662451744, 0.0017559173284098506, 0.032584384083747864, 0.05863828584551811, -0.04809428006410599, -0.02127508632838726, -0.011419840157032013, 0.025747785344719887, -0.07686921954154968, 0.010952162556350231, -0.08544047176837921, 0.011326304636895657, -0.0020195175893604755, -0.005046667996793985, -0.0076911733485758305, 0.04435285925865173, -0.008337418548762798, -0.036359820514917374, 0.030067427083849907, 0.023604972288012505, -0.005862978287041187, 0.01867309771478176, 0.018945200368762016, 0.03659791126847267, -0.07095097005367279, 0.002440427662804723, -0.0033162604086101055, -0.06867209821939468, 0.04778816178441048, 0.0019483029609546065, 0.04789020121097565, 0.010824614204466343, 0.020339731127023697, 0.049318745732307434, -0.06642724573612213, 0.06112122908234596, -0.023690003901720047, -0.0035054574254900217, -0.03836658224463463, 0.004974390845745802, -0.022839680314064026, -0.07387607544660568, 0.0183669812977314, 0.004523719195276499, -0.06380825489759445, 0.0323973149061203, -0.0034204251132905483, 0.03265241160988808, 0.0384686216711998, 0.038060467690229416, 0.02302675135433674, 0.023485926911234856, 0.008686051703989506, 0.014157881028950214, -0.006530482321977615, 0.051359519362449646, -0.018928194418549538, -0.04772013798356056, -0.02960825338959694, 0.0015879785642027855, -0.007117205299437046, -0.03474420681595802, -0.009685181081295013, 0.061733461916446686, -0.02821372263133526, -0.04061143472790718, 0.02248254604637623, 0.0341319739818573, -0.04421680420637131, 0.03295852616429329, 0.005739681422710419, -0.02300974540412426, 0.08326364308595657, 0.020458776503801346, -0.039693087339401245, 0.010765091516077518, 0.02137712575495243, -0.05084932595491409, 0.017244555056095123, 0.08027050644159317, -0.026206960901618004, -0.00890288408845663, 0.010025310330092907, -0.004391919355839491, 0.04428483173251152, 0.0015061349840834737, -0.0006823843577876687, -0.03477821871638298, 0.01349462941288948, 0.046699751168489456, -0.04268622398376465, -0.0449310764670372, -0.020339731127023697, 0.046937838196754456, 0.11387528479099274, -0.024013126268982887, 0.025084534659981728, -0.032482344657182693, -0.03564554825425148, 0.003488450776785612, -0.014387468807399273, -0.009132470935583115, 0.005548358894884586, -0.012933415360748768, 0.017227547243237495, -0.031274888664484024, 0.04071347415447235, 0.021428143605589867, 0.046835802495479584, 0.01738060638308525, 0.0084734708070755, 0.023741023615002632, 0.0016857656883075833, -0.05176767706871033, 0.013052460737526417, 0.023264842107892036, 0.06758368760347366, -0.051903728395700455, 0.06394430249929428, -0.003879599506035447, 0.008567006327211857, -0.032346293330192566, 0.021955344825983047, 0.03312859311699867, 0.01740611530840397, -0.032040178775787354, -0.015696965157985687, -0.0026445051189512014, -0.026598108932375908, -0.03467617928981781, -0.0431964173913002, -0.007767702452838421, 0.026172947138547897, -0.08326364308595657, -0.007151218131184578, 0.02505052089691162, -0.011751466430723667, -0.020917950198054314, -0.052652012556791306, -0.044114768505096436, 0.005357035901397467, -0.03185310587286949, 0.011691943742334843, 0.0273123811930418, 0.009523619897663593, -0.0069939084351062775, -0.07591685652732849, 0.025339631363749504, -0.040679462254047394, -0.034182991832494736, -0.012941919267177582, 0.030407557263970375, -0.028247736394405365, 0.04850243404507637, 0.07176727801561356, -0.00821837317198515, 0.032346293330192566, 0.007988786324858665, -0.03380884975194931, -0.0011149862548336387, 0.016921430826187134, 0.036767974495887756, 0.002368150046095252, -0.01194704044610262, 0.007095946930348873, 0.0063901785761117935, -0.035815611481666565, 0.05887637659907341, -0.005386797245591879, -0.04071347415447235, -0.019727498292922974, 0.006024539936333895, -0.03584962710738182, -0.023928094655275345, 0.03414897993206978, -0.021666234359145164, -0.011785479262471199, -0.006925882305949926, -0.006254127249121666, 0.012270163744688034, 0.01074808556586504, 0.04255017265677452, -0.013111983425915241, 0.004166583530604839, -0.04101959243416786, 0.06993057578802109, -0.016470760107040405, -0.005280506797134876, -0.04040735960006714, -0.008558503352105618, -0.05489686504006386, -0.014387468807399273, 0.03209119662642479, -0.009362058714032173, -0.02389408089220524, -0.003985889721661806, -0.02181929349899292, -0.0023150048218667507, -0.031700048595666885 ]
718,551
pytorch_optimizer
get_supported_lr_schedulers
null
def get_supported_lr_schedulers() -> List[SCHEDULER]: return LR_SCHEDULER_LIST
() -> List[Type[torch.optim.lr_scheduler._LRScheduler]]
[ 0.05371260643005371, 0.01523231714963913, -0.04237213358283043, -0.050997763872146606, -0.01571342907845974, 0.04598046466708183, -0.025567613542079926, -0.0036448452156037092, -0.024278922006487846, 0.020533129572868347, -0.0031014475971460342, -0.007976992055773735, 0.008453807793557644, 0.003531011054292321, -0.009424620307981968, -0.022663764655590057, -0.029828881844878197, -0.024399200454354286, 0.009046604856848717, -0.04268141835927963, 0.025567613542079926, -0.0006341429543681443, -0.0008741614874452353, 0.005571437068283558, 0.014940214343369007, 0.08151394873857498, 0.004463163670152426, -0.0063575380481779575, -0.05250982940196991, 0.021117335185408592, -0.019467812031507492, 0.03070519119501114, -0.03577403724193573, -0.051169589161872864, 0.011727080680429935, 0.0749845877289772, -0.01622890494763851, 0.006026774179190397, -0.021340709179639816, 0.01676156371831894, 0.05182252824306488, -0.03436506912112236, 0.04663340002298355, -0.029708603397011757, -0.029261857271194458, -0.023265153169631958, -0.015533012337982655, -0.019588090479373932, 0.0578707791864872, -0.031134754419326782, 0.05838625505566597, -0.015498646534979343, -0.026529835537075996, -0.015077674761414528, -0.07443474233150482, 0.013505472801625729, -0.024880310520529747, 0.03457126021385193, 0.03907308727502823, -0.03879816457629204, 0.033815231174230576, -0.0049614571034908295, -0.03759538754820824, 0.027629517018795013, 0.04195975139737129, -0.08508791774511337, 0.03584276884794235, 0.011091326363384724, -0.01786983758211136, 0.03742356225848198, -0.016211722046136856, 0.003163734218105674, -0.09429775178432465, -0.029502414166927338, -0.011160057038068771, -0.02140943892300129, -0.01774955913424492, -0.006001000292599201, -0.06625586003065109, -0.0032926034182310104, 0.039210546761751175, 0.07457220554351807, 0.01571342907845974, 0.0269937627017498, 0.011194421909749508, -0.02957114391028881, -0.001588310580700636, 0.025859715417027473, -0.07182300090789795, -0.04422784596681595, -0.010902319103479385, -0.03135812655091286, 0.010678946040570736, -0.019467812031507492, -0.03256090357899666, -0.038042131811380386, -0.03742356225848198, -0.009922914206981659, 0.0031272214837372303, -0.03694245219230652, -0.02068777196109295, 0.022354478016495705, -0.02333388291299343, -0.01118583045899868, 0.0299835242331028, 0.026254914700984955, -0.07388490438461304, -0.007830940186977386, -0.03175332397222519, 0.007848123088479042, -0.04065387696027756, 0.044846415519714355, 0.02213110588490963, -0.0025945629458874464, -0.010678946040570736, 0.04285324364900589, -0.058042604476213455, 0.04848911613225937, 0.0314955860376358, -0.025172414258122444, -0.04787054285407066, 0.06677133589982986, 0.03427915647625923, -0.011520889587700367, -0.007143639028072357, 0.003331264015287161, -0.0036920972634106874, 0.03677062690258026, 0.0187461469322443, 0.01696775294840336, 0.019364716485142708, 0.03202824667096138, 0.024124279618263245, -0.025498881936073303, -0.0027105449698865414, -0.06113545969128609, -0.026375191286206245, 0.026323644444346428, -0.0003900972369592637, -0.023247970268130302, -0.039451099932193756, 0.00963940192013979, 0.0030305697582662106, 0.008230434730648994, -0.03536165878176689, 0.035189833492040634, 0.025653526186943054, 0.03931364044547081, -0.03166741132736206, 0.04663340002298355, 0.006838649045675993, 0.009218430146574974, 0.0003758679667953402, -0.0064477464184165, -0.005197716876864433, -0.013299282640218735, -0.014338825829327106, -0.017818288877606392, 0.055911969393491745, -0.034141696989536285, -0.055946335196495056, 0.04519006982445717, -0.088180772960186, -0.09182346612215042, 0.022955866530537605, 0.04209721088409424, -0.028024714440107346, -0.0016699276166036725, 0.016813110560178757, 0.0176980122923851, -0.01484571024775505, 0.018282217904925346, -0.017955750226974487, -0.0027212840504944324, 0.012165235355496407, 0.025928445160388947, -0.010275156237185001, 0.04965752735733986, 0.04683959111571312, 0.007976992055773735, -0.0072166649624705315, 0.011984818615019321, -0.014983170665800571, -0.04553372040390968, -0.034622807055711746, 0.01416700053960085, -0.03876379877328873, -0.014321642927825451, -0.06305990368127823, 0.038729432970285416, -0.005708897486329079, -0.008505354635417461, 0.0026074496563524008, -0.0012575468281283975, -0.04711451381444931, 0.002663292922079563, -0.035705309361219406, 0.017251266166567802, -0.07965823262929916, -0.02128916047513485, 0.04711451381444931, 0.06979545950889587, 0.005665941163897514, 0.029193127527832985, 0.02510368451476097, -0.05151323974132538, -0.01295563206076622, -0.05044792219996452, -0.03372931852936745, 0.009089561179280281, -0.007422855123877525, 0.009098152630031109, -0.030842650681734085, 0.06574037671089172, 0.010446981526911259, 0.025412969291210175, -0.002944657113403082, 0.012337060645222664, -0.012225373648107052, -0.03931364044547081, 0.01939908228814602, -0.01919289119541645, 0.02000047080218792, -0.01267211977392435, -0.03125503286719322, 0.006860127206891775, 0.012122279033064842, -0.009527715854346752, 0.003245351370424032, 0.020979875698685646, -0.0011791514698415995, -0.0800706148147583, -0.008664293214678764, 0.001880413736216724, -0.009888549335300922, -0.009261386469006538, 0.022663764655590057, 0.09216711670160294, -0.0019856567960232496, 0.036873720586299896, 0.01622890494763851, 0.045361895114183426, 0.02269812859594822, -0.006499294191598892, 0.06708061695098877, 0.01963963732123375, 0.04773308336734772, 0.002172516891732812, -0.050963398069143295, -0.010678946040570736, -0.0067742145620286465, -0.028643285855650902, -0.0017826880794018507, -0.05110086128115654, -0.0491764172911644, -0.019777098670601845, -0.06223514303565025, 0.002948952605947852, 0.004428798332810402, -0.019467812031507492, -0.016933389008045197, 0.044090386480093, -0.05563705042004585, 0.0278872549533844, -0.0029833177104592323, -0.0145450159907341, 0.00008061025437200442, 0.031203484162688255, -0.03529292717576027, 0.0416848324239254, 0.08419442176818848, -0.04876403510570526, -0.08742474019527435, 0.03049900010228157, 0.0032303165644407272, 0.011091326363384724, -0.05086030438542366, -0.0048325881361961365, 0.0030069437343627214, -0.030155349522829056, 0.015335412696003914, 0.07209791988134384, -0.02695939876139164, -0.02575661987066269, 0.0353960245847702, -0.018007297068834305, -0.01943344809114933, -0.020893963053822517, -0.038213957101106644, 0.011297517456114292, 0.019416265189647675, 0.014149817638099194, 0.00983700156211853, -0.046977050602436066, 0.11732234805822372, 0.021117335185408592, 0.07027657330036163, -0.04024149850010872, 0.0965658500790596, 0.020223844796419144, 0.05110086128115654, -0.010034600272774696, 0.03996657580137253, 0.02482876367866993, -0.04429657757282257, -0.03407296910881996, 0.010352477431297302, -0.004634988959878683, 0.0015850889030843973, 0.021632812917232513, 0.009630811400711536, -0.0009198025800287724, 0.04807673394680023, -0.07127315551042557, 0.017191126942634583, 0.004454572219401598, -0.03673626109957695, 0.03161586448550224, 0.0023089032620191574, 0.01112569123506546, -0.043643638491630554, 0.0692799836397171, 0.04642720893025398, -0.0015238760970532894, -0.016658468171954155, -0.0039627221412956715, -0.0155931506305933, -0.014390373602509499, -0.019948923960328102, -0.018127575516700745, -0.03451971337199211, -0.03907308727502823, 0.016624102368950844, 0.011177239008247852, 0.050276096910238266, 0.020945509895682335, 0.05790514498949051, 0.09251076728105545, -0.01915852725505829, -0.04701141640543938, 0.014424738474190235, 0.049760621041059494, 0.032492175698280334, 0.038523245602846146, -0.03646133840084076, 0.021220430731773376, 0.046014830470085144, 0.10879981517791748, -0.01364293321967125, -0.0278872549533844, -0.04443403705954552, 0.025687890127301216, -0.05914228782057762, 0.040619514882564545, 0.02582535147666931, -0.033815231174230576, -0.0413755439221859, -0.03001789003610611, 0.05625561997294426, 0.0494857020676136, 0.0019598829094320536, -0.0112459696829319, -0.013410968706011772, 0.034502532333135605, -0.0782836303114891, -0.029072849079966545, 0.03187360242009163, -0.031151937320828438, 0.08529410511255264, -0.058283161371946335, -0.026856303215026855, 0.01364293321967125, 0.035911500453948975, -0.017208309844136238, -0.008406555280089378, 0.015936801210045815, 0.060894906520843506, -0.019742732867598534, 0.0019147788407281041, 0.007839531637728214, 0.026186183094978333, -0.00025465054204687476, 0.059692129492759705, -0.00529222097247839, 0.02888384275138378, -0.011623985134065151, -0.054021891206502914, 0.009381663985550404, -0.006181417033076286, -0.03362622112035751, 0.004295633640140295, -0.03070519119501114, -0.052612923085689545, 0.010335295461118221, -0.028059080243110657, 0.03311074525117874, 0.008466694504022598, 0.05962339788675308, 0.023230787366628647, -0.03649570420384407, -0.0053480640053749084, 0.050035543739795685, -0.0021864776499569416, -0.03262963518500328, -0.03331693634390831, 0.0009928283980116248, 0.08405696600675583, 0.04336871951818466, -0.05281911417841911, 0.01178721897304058, 0.02036130428314209, -0.025773802772164345, -0.021254796534776688, -0.05206308141350746, -0.058042604476213455, 0.002240173052996397, 0.010704719461500645, 0.07848982512950897, 0.07725267857313156, 0.019845828413963318, -0.04000094160437584, -0.03793903812766075, 0.02644392102956772, 0.05653054267168045, 0.06409085541963577, 0.01460515521466732, -0.019588090479373932, -0.007813758216798306, -0.05553395301103592, -0.05110086128115654, 0.07704649120569229, 0.017173944041132927, -0.010008826851844788, -0.05965776368975639, 0.0008618115680292249, -0.04316252842545509, -0.026684477925300598, -0.0002130365901393816, -0.028866659849882126, -0.07058585435152054, 0.021460985764861107, -0.03472590446472168, 0.027577970176935196, 0.017019301652908325, -0.0012994292192161083, -0.012096504680812359, -0.022680947557091713, 0.004403024911880493, 0.006976109463721514, -0.01879769377410412, -0.10364505648612976, -0.006323173176497221, 0.007676297798752785, 0.05020736902952194, 0.060379430651664734, -0.010764858685433865, 0.023402612656354904, -0.017070848494768143, -0.06635895371437073, -0.05481228604912758, 0.06519053876399994, 0.014562198892235756, 0.008131634443998337, 0.02156408131122589, -0.024210192263126373, 0.059692129492759705, 0.021392256021499634, -0.039932213723659515, 0.010678946040570736, 0.0003887548518832773, -0.026667295023798943, 0.012783806771039963, 0.021632812917232513, -0.09038013964891434, -0.020017653703689575, 0.05797387287020683, -0.005979522131383419, -0.012723667547106743, 0.023763446137309074, -0.024536659941077232, 0.008436624892055988, -0.021392256021499634, 0.008440920151770115, 0.04642720893025398, -0.005159056279808283, -0.08591267466545105, -0.04278451204299927, -0.0054769329726696014, -0.05539649352431297, -0.007238143123686314, 0.006190008483827114, 0.0042204600758850574, 0.03025844506919384, -0.017070848494768143, 0.016624102368950844, 0.016082853078842163, 0.06336919218301773, -0.02482876367866993, 0.047458164393901825, 0.0761529952287674, 0.059932682663202286, -0.016417913138866425, -0.04010403901338577, 0.06305990368127823, 0.06570601463317871, -0.0851566419005394, 0.011357655748724937, -0.03701118007302284, -0.0626818910241127, -0.001315537840127945, 0.003498793812468648, -0.017852654680609703, 0.03465717285871506, 0.003339855233207345, -0.06364411115646362, -0.04003530740737915, -0.013960810378193855, -0.007195186801254749, 0.03642697632312775, 0.08653125166893005, 0.013651524670422077, -0.007736436557024717, 0.026684477925300598, -0.05371260643005371, 0.01549005601555109, -0.024124279618263245, -0.008161704055964947, -0.023316700011491776, 0.006482111290097237, 0.02611745335161686, 0.08117029815912247, 0.011194421909749508, -0.03584276884794235, 0.00589360948652029, -0.015696246176958084, 0.04140990972518921, -0.04000094160437584, -0.002015726175159216, 0.039691656827926636, 0.0035739673767238855, 0.0289353895932436, 0.0021982905454933643, 0.04051641747355461, 0.035430386662483215, 0.0014014504849910736, -0.05838625505566597, -0.01951936073601246, 0.0007039469783194363, 0.001751544652506709, 0.002517241518944502, 0.06570601463317871, 0.005751853808760643, -0.038729432970285416, -0.036804988980293274, -0.04515570402145386, -0.04422784596681595, 0.05350641533732414, 0.003640549723058939, -0.008183182217180729, 0.008196068927645683, -0.04192538559436798, -0.019089797511696815, -0.04965752735733986, 0.006323173176497221, -0.008745910599827766, -0.03098011203110218, 0.0016409321688115597, 0.03395269066095352, 0.007813758216798306, 0.0007479772320948541, 0.024760033935308456, -0.06309427320957184, 0.034141696989536285, -0.06436577439308167, 0.005043074022978544, 0.0048325881361961365, 0.002373337745666504, -0.028797930106520653, -0.07113569974899292, -0.06309427320957184, 0.03154713660478592, 0.0017139578703790903, -0.04457149654626846, -0.07409109175205231, 0.011091326363384724, -0.01598834991455078, -0.04443403705954552, 0.0030090915970504284, -0.03931364044547081, -0.0030305697582662106, 0.0064606331288814545, 0.09092997759580612, 0.058283161371946335, -0.015060491859912872, -0.028660468757152557, 0.02321360446512699, -0.0086213368922472, 0.007693480234593153, -0.01898670196533203, 0.045327529311180115, 0.04374673590064049, 0.059898316860198975, 0.008943509310483932, 0.0015238760970532894, 0.06553418934345245, -0.07938331365585327, 0.030447453260421753, -0.07800871133804321, -0.013307874090969563, -0.003198099322617054, 0.000868254981469363, -0.001742953434586525, 0.03472590446472168, -0.021306343376636505, 0.05866117402911186, -0.025034954771399498, 0.011563845910131931, -0.028677651658654213, 0.0524754635989666, -0.05855808034539223, 0.02884947694838047, 0.023763446137309074, 0.011589620262384415, -0.016770154237747192, 0.01562751643359661, 0.015610333532094955, -0.0004223145078867674, -0.037526655942201614, 0.031409673392772675, -0.04924514517188072, 0.03694245219230652, -0.02269812859594822, 0.04787054285407066, -0.07704649120569229, -0.01595398411154747, 0.006580911111086607, -0.008698658086359501, -0.019536543637514114, 0.03948546573519707, -0.013788985088467598, -0.0061298697255551815, 0.08130775392055511, 0.02888384275138378, -0.04161610081791878, -0.013608568347990513, -0.013067318126559258, -0.007822349667549133, 0.014201365411281586, 0.05910792201757431, 0.05515594035387039, -0.026547016575932503, 0.003082117298617959, -0.046530306339263916, 0.026254914700984955, -0.06996728479862213, 0.041547369211912155, -0.014751207083463669, -0.037801578640937805, 0.026461103931069374, -0.06697752326726913, -0.019484994933009148, 0.008690067566931248, 0.002689066808670759, 0.047664351761341095, -0.039004355669021606, -0.012345652095973492, -0.0013907114043831825, 0.0401727668941021, 0.03817959502339363, 0.008041426539421082, 0.03214852511882782, 0.0032883076928555965, 0.021306343376636505, -0.009407438337802887, -0.015301047824323177, 0.06670260429382324, -0.0506884790956974, -0.013376603834331036, 0.05151323974132538, -0.004884135909378529, -0.0005111804348416626, 0.02276686020195484, -0.08446934074163437, 0.0015367630403488874, -0.01358279399573803, 0.027509238570928574, 0.011374838650226593, 0.007375603541731834, 0.031804874539375305, -0.0057862186804413795, 0.00015746182180009782, 0.04402165487408638, 0.011280334554612637, 0.039210546761751175, 0.04443403705954552, 0.032045427709817886, -0.010988231748342514, -0.016606921330094337, -0.03866070508956909, 0.019502177834510803, 0.0253442395478487, -0.004583441186696291, -0.0566680021584034, 0.03529292717576027, -0.0017612099181860685, 0.027354596182703972, 0.008075791411101818, -0.007702071685343981, 0.005777627695351839, 0.008797458373010159, 0.018574321642518044, 0.024004001170396805, 0.03601459413766861, -0.013402377255260944, 0.010696128010749817, -0.1079750508069992, 0.018196305260062218, 0.006688301917165518, 0.009141108952462673, -0.002013578312471509, 0.011761445552110672, 0.04285324364900589, 0.04099753126502037, -0.0012779510580003262, 0.017208309844136238, 0.04261268675327301, -0.0025408673100173473, 0.024416383355855942, -0.022869953885674477, 0.034983642399311066, -0.001173781929537654, 0.00893491879105568, -0.010773450136184692, 0.0149917621165514, 0.07182300090789795, -0.0262377317994833, 0.04780181497335434, -0.03175332397222519, -0.020859597250819206, 0.012345652095973492, 0.03493209555745125, -0.029399318620562553, -0.012500294484198093, 0.0066711194813251495, -0.014914440922439098, 0.011812993325293064, -0.033694952726364136, -0.021220430731773376, 0.029760152101516724, 0.014330234378576279, 0.000021025114619988017, -0.08763092756271362, -0.003402142086997628, -0.034107331186532974, -0.029639873653650284, -0.021065788343548775, -0.011280334554612637, -0.029468048363924026, -0.031134754419326782, -0.005206308327615261, 0.011959044262766838, 0.02438201755285263, 0.0009853109950199723, 0.03556784987449646, 0.027990350499749184, -0.06546545773744583, -0.005171942990273237, -0.025790985673666 ]
718,552
pytorch_optimizer
get_supported_optimizers
null
def get_supported_optimizers() -> List[OPTIMIZER]: return OPTIMIZER_LIST
() -> List[Type[torch.optim.optimizer.Optimizer]]
[ 0.037614013999700546, -0.03678199648857117, 0.01894567534327507, -0.03997138887643814, -0.009854177944362164, 0.02438843995332718, -0.019396349787712097, -0.04583016037940979, -0.02927652932703495, 0.009698174893856049, -0.0015881953295320272, -0.0068857911974191666, -0.045344818383455276, -0.011422872543334961, -0.009620173834264278, -0.02185772731900215, -0.055571671575307846, -0.031183229759335518, 0.032153915613889694, -0.016432296484708786, -0.014152922667562962, -0.01547027938067913, -0.013086902908980846, -0.006599785760045052, 0.02345242351293564, 0.09762309491634369, 0.02787250280380249, -0.018356330692768097, -0.028115173801779747, 0.001497193705290556, -0.062262456864118576, 0.004567415919154882, -0.04250210151076317, -0.02594846859574318, 0.030281880870461464, 0.030385881662368774, 0.03406061604619026, 0.06940391659736633, -0.028773853555321693, -0.01396225206553936, -0.0014386926777660847, -0.05619568005204201, 0.015461612492799759, -0.03633132204413414, -0.044512804597616196, -0.003488396294414997, -0.02620847336947918, -0.02527245692908764, 0.041912756860256195, -0.054323647171258926, 0.08008144795894623, -0.007717805914580822, 0.010287519544363022, 0.024457775056362152, -0.02404176816344261, -0.0077698067761957645, 0.019968360662460327, 0.016986973583698273, 0.08056678622961044, 0.01375424861907959, 0.028427179902791977, -0.020384367555379868, -0.027837835252285004, -0.024423107504844666, 0.004879421554505825, -0.026641814038157463, -0.039832718670368195, 0.003091889200732112, 0.0021569556556642056, 0.06371848285198212, -0.027959171682596207, -0.043784789741039276, -0.04537948593497276, -0.018286997452378273, -0.019552353769540787, -0.024665778502821922, -0.010634192265570164, -0.0032413918524980545, -0.052139610052108765, -0.012887566350400448, -0.006114443764090538, 0.02558446303009987, 0.028739186003804207, -0.02289774641394615, 0.035533975809812546, -0.09616707265377045, -0.032413918524980545, 0.0057764374651014805, -0.027005821466445923, -0.08500420302152634, -0.03778734803199768, -0.01868567056953907, 0.02112971432507038, 0.001432192511856556, -0.060494426637887955, 0.02600046992301941, -0.03289926052093506, -0.04277943819761276, -0.006599785760045052, -0.0006391782080754638, 0.005330096464604139, 0.06458516418933868, 0.013858250342309475, -0.013225572183728218, 0.04458213970065117, 0.019535019993782043, -0.04641950502991676, 0.015045604668557644, -0.027837835252285004, -0.02532445825636387, -0.011960215866565704, -0.02438843995332718, 0.032465919852256775, -0.026381809264421463, 0.02990053966641426, 0.017532983794808388, -0.07786273956298828, -0.006504450924694538, 0.035065967589616776, 0.032985929399728775, -0.06708121299743652, 0.052139610052108765, 0.01095486432313919, 0.009143498726189137, -0.010140183381736279, -0.03622731938958168, 0.06898791342973709, 0.06035575643181801, -0.03482329472899437, 0.0031373898964375257, 0.015964288264513016, 0.019240347668528557, -0.018911007791757584, 0.0374753437936306, 0.0033735609613358974, -0.008103479631245136, -0.02320975251495838, 0.0018644502852112055, 0.030247213318943977, -0.043992795050144196, -0.019968360662460327, -0.011760879307985306, 0.005117759108543396, -0.0004114032781217247, -0.04586482793092728, 0.012601560913026333, -0.017168976366519928, 0.010920197702944279, -0.03120056353509426, -0.03062855266034603, 0.01858166977763176, 0.019015010446310043, 0.001015101675875485, -0.05217427387833595, 0.00009100164606934413, -0.012514892965555191, -0.032673925161361694, -0.004940089304000139, 0.02352175861597061, -0.05272895097732544, -0.027005821466445923, 0.03520463407039642, -0.09138298034667969, -0.04104607552289963, 0.05373430252075195, -0.0015318610239773989, -0.025393791496753693, -0.004727751947939396, -0.028739186003804207, 0.03913937509059906, -0.014828934334218502, -0.04749419167637825, -0.006157777737826109, 0.04381945729255676, 0.04652350768446922, 0.036573994904756546, -0.010062181390821934, 0.05525966361165047, 0.010088182054460049, 0.016276294365525246, 0.031009893864393234, 0.03364460915327072, -0.02698848769068718, -0.037232670933008194, -0.019032344222068787, -0.005230427719652653, 0.021875061094760895, -0.04260610416531563, -0.03640065714716911, 0.029969874769449234, 0.03445928916335106, -0.019275015220046043, 0.04437413439154625, -0.040040723979473114, -0.05168893188238144, -0.027005821466445923, -0.005811105016618967, 0.025133786723017693, -0.029259195551276207, -0.03754467889666557, 0.0189976766705513, 0.051411595195531845, 0.04794486612081528, 0.03354060649871826, 0.026953820139169693, 0.031079227104783058, -0.026017803698778152, -0.03875803202390671, 0.015695616602897644, 0.03452862426638603, 0.03754467889666557, 0.02454444393515587, -0.011327537707984447, 0.04277943819761276, 0.023885764181613922, 0.0400753915309906, 0.06940391659736633, 0.037614013999700546, -0.04416613280773163, 0.016475630924105644, 0.05706236511468887, -0.019847024232149124, 0.02216973342001438, 0.010287519544363022, 0.051515597850084305, -0.022083066403865814, -0.04517148435115814, -0.0015643616206943989, 0.012107552029192448, -0.055710338056087494, -0.0014993604272603989, -0.06669986993074417, 0.007332132663577795, 0.0033042263239622116, -0.000027913263693335466, -0.0005506140878424048, 0.0195176862180233, 0.00019067010725848377, 0.002788550453260541, -0.020679039880633354, 0.006829456891864538, 0.014568929560482502, 0.030507218092679977, 0.035481974482536316, -0.03388727828860283, 0.03419928625226021, 0.020055029541254044, -0.0349966324865818, 0.04392345994710922, -0.0004940089420415461, 0.013320907019078732, -0.03315926715731621, -0.016050957143306732, -0.06389182060956955, -0.035845980048179626, 0.01884167455136776, -0.014768267050385475, 0.012809564359486103, 0.005512099713087082, -0.030801890417933464, -0.033297933638095856, 0.02730049379169941, -0.04680084437131882, 0.032725922763347626, -0.020159030333161354, -0.018252329900860786, 0.0627131313085556, -0.00786080863326788, -0.08167614042758942, 0.005464431829750538, 0.05796371400356293, 0.012514892965555191, -0.061846449971199036, 0.00362056540325284, -0.01074686087667942, 0.025099119171500206, -0.009932179003953934, 0.0650705099105835, -0.036469992250204086, -0.03432061895728111, 0.03310726583003998, 0.032777924090623856, -0.01245422475039959, 0.0012220221105962992, -0.0022447071969509125, 0.006296447012573481, -0.004177408758550882, -0.003384394571185112, -0.022395070642232895, 0.028791187331080437, 0.05123825743794441, 0.034389954060316086, 0.03664333000779152, -0.02418043650686741, 0.13513310253620148, 0.01744631491601467, 0.044512804597616196, -0.011145534925162792, 0.07300931960344315, -0.007028793450444937, -0.002461377764120698, -0.0056291017681360245, 0.02180572785437107, 0.01592962071299553, 0.03712867200374603, -0.007821807637810707, 0.029831204563379288, -0.04856887832283974, 0.0010362270986661315, 0.039104707539081573, -0.009117498062551022, -0.011440206319093704, 0.05300629138946533, -0.025203121826052666, 0.03997138887643814, -0.04697418212890625, -0.039936721324920654, 0.027057822793722153, 0.017662985250353813, 0.03664333000779152, -0.05720103159546852, 0.07571336627006531, 0.031737904995679855, -0.051307592540979385, -0.021424386650323868, -0.006716787815093994, -0.015444278717041016, -0.03626198694109917, -0.0007166379364207387, -0.054011642932891846, -0.06590252369642258, -0.08167614042758942, 0.02397243306040764, 0.04236343130469322, 0.04846487566828728, 0.02600046992301941, 0.08736158162355423, 0.058206383138895035, -0.031685907393693924, -0.008536821231245995, 0.04427013173699379, 0.03525663539767265, 0.03757934644818306, 0.053595636039972305, -0.07578270137310028, 0.003761401167139411, 0.04427013173699379, 0.029293863102793694, 0.000016191048416658305, -0.006426449399441481, -0.02953653410077095, -0.03317660093307495, -0.034337952733039856, 0.028617849573493004, 0.03296859562397003, -0.04132341220974922, -0.045656826347112656, 0.0437154546380043, 0.016856970265507698, 0.027283160015940666, 0.01315623801201582, -0.004805753473192453, 0.021528389304876328, 0.07314798980951309, -0.00672112125903368, -0.0359153151512146, 0.045656826347112656, -0.04822220280766487, 0.05723569914698601, -0.10927131026983261, -0.019223013892769814, 0.00657811900600791, 0.04125407710671425, -0.011284204199910164, 0.022031065076589584, 0.01624162681400776, 0.04496347904205322, 0.018096327781677246, 0.019552353769540787, 0.06628386676311493, -0.004129741340875626, 0.03927804157137871, 0.05754770711064339, -0.01245422475039959, 0.0033692275173962116, 0.00041031991713680327, -0.0725933089852333, 0.002329208655282855, 0.011717544868588448, -0.016700968146324158, -0.027231158688664436, -0.05754770711064339, -0.11211402714252472, 0.048915550112724304, -0.05148093029856682, 0.05148093029856682, -0.0013411908876150846, 0.04246743395924568, -0.024353772401809692, 0.002111454727128148, -0.004771086387336254, 0.030091209337115288, 0.043056778609752655, -0.0060364422388374805, -0.042432766407728195, -0.02750849723815918, 0.05148093029856682, 0.10115916281938553, 0.005208760965615511, -0.002851384924724698, -0.016640299931168556, -0.044824808835983276, 0.04957422986626625, 0.013615579344332218, -0.05525966361165047, 0.020523037761449814, 0.01677030324935913, 0.04908888787031174, 0.06666520237922668, 0.014508262276649475, 0.025619128718972206, -0.0059064398519694805, -0.021684391424059868, 0.008740491233766079, 0.007999477908015251, -0.001543777878396213, -0.0069291251711547375, -0.022707076743245125, -0.07564403116703033, -0.029761871322989464, 0.0405954010784626, 0.024371106177568436, 0.026329809799790382, -0.07536669820547104, -0.02019369788467884, -0.04846487566828728, -0.015617615543305874, -0.014178922399878502, -0.006734121590852737, -0.039832718670368195, 0.02719649113714695, -0.012211553752422333, -0.03719800338149071, 0.01806166023015976, -0.010712193325161934, -0.024423107504844666, -0.005412430968135595, 0.05654235556721687, 0.0009490171214565635, -0.05879572778940201, -0.006032108794897795, 0.005806771572679281, 0.02459644339978695, 0.04926222190260887, 0.09325502067804337, 0.03990205377340317, 0.04260610416531563, -0.007782807108014822, -0.05376897007226944, -0.023591091856360435, 0.0707906112074852, 0.006825123447924852, 0.0632331445813179, 0.010989531874656677, -0.006222778931260109, 0.05217427387833595, 0.014698931947350502, 0.006933458615094423, 0.02263774164021015, -0.006998459808528423, -0.0007269298075698316, -0.023279087617993355, -0.03803002089262009, -0.08035878837108612, -0.04836087301373482, 0.05186226963996887, 0.0015556947328150272, -0.0002526920579839498, 0.06423849612474442, 0.0005424889386631548, 0.016830971464514732, -0.032361917197704315, -0.024631110951304436, 0.012228887528181076, 0.00020786833192687482, -0.07980410754680634, -0.05629968270659447, -0.04329944774508476, -0.038376692682504654, -0.005780770909041166, 0.015071605332195759, 0.012254888191819191, 0.04593416303396225, -0.05054491385817528, 0.034649960696697235, 0.03328059986233711, 0.041392747312784195, -0.07328666001558304, 0.03705933690071106, 0.06621453166007996, 0.07120662182569504, -0.010729527100920677, -0.04822220280766487, 0.013069569133222103, 0.05165426805615425, -0.07862541824579239, -0.004879421554505825, -0.0015318610239773989, -0.06943858414888382, 0.02600046992301941, -0.025341790169477463, -0.010062181390821934, 0.011483540758490562, 0.020072363317012787, 0.0014224423794075847, 0.011240869760513306, -0.03426861763000488, 0.010131516493856907, 0.015201607719063759, 0.04877687990665436, -0.027837835252285004, 0.021719058975577354, 0.018720338121056557, -0.049435559660196304, 0.06264379620552063, -0.0032370584085583687, -0.04583016037940979, -0.03154723718762398, 0.008211814798414707, 0.002786383731290698, 0.061534445732831955, -0.015816953033208847, -0.05834505334496498, 0.025255123153328896, -0.02953653410077095, 0.022447071969509125, 0.0507529154419899, 0.00336056062951684, 0.056334350258111954, -0.00819881446659565, 0.02371242828667164, 0.026451144367456436, 0.014967603608965874, 0.026139138266444206, 0.005204427521675825, -0.027543164789676666, -0.030801890417933464, -0.0014690265525132418, -0.02891252189874649, -0.0040430729277431965, 0.01651029847562313, 0.03508330136537552, -0.041392747312784195, 0.01250622607767582, 0.038792699575424194, -0.08022011816501617, 0.07723873108625412, 0.018564336001873016, -0.011483540758490562, 0.04340345039963722, -0.02823651023209095, -0.04947022721171379, -0.04416613280773163, -0.007410133723169565, -0.01276623085141182, 0.024111101403832436, -0.018928341567516327, 0.07349465787410736, 0.015071605332195759, -0.030021876096725464, 0.04257143661379814, -0.10559657216072083, 0.05064891651272774, -0.05817171558737755, -0.054323647171258926, 0.028531182557344437, -0.0174983162432909, 0.008883493952453136, -0.0564730204641819, -0.04624616727232933, 0.020055029541254044, 0.012315555475652218, -0.04562215879559517, -0.050163574516773224, 0.03052455186843872, -0.0060364422388374805, -0.010868196375668049, -0.003429895266890526, 0.005074425134807825, 0.03166857361793518, 0.00664312019944191, 0.04947022721171379, 0.047355521470308304, -0.03125256299972534, -0.031685907393693924, 0.00691612483933568, -0.08028945326805115, 0.02190972864627838, -0.017004307359457016, 0.0210777148604393, 0.02293241396546364, -0.0174376480281353, 0.02594846859574318, -0.017740987241268158, 0.0447554737329483, -0.014906936325132847, -0.044824808835983276, -0.06004375219345093, -0.0012296055210754275, -0.01121486909687519, -0.018182994797825813, 0.0008720990736037493, 0.038272690027952194, -0.04042206332087517, -0.03185924142599106, 0.007748140022158623, -0.02620847336947918, 0.04011005908250809, 0.009672175161540508, -0.015158274210989475, 0.01655363291501999, 0.0400753915309906, 0.055571671575307846, -0.02386843040585518, -0.01417025551199913, 0.000024544713596696965, -0.017506983131170273, -0.07855608314275742, -0.01988169178366661, 0.0021342053078114986, 0.02688448503613472, -0.025185788050293922, 0.07973477244377136, -0.041600752621889114, -0.032829925417900085, 0.005919440183788538, 0.011977549642324448, -0.004866421222686768, -0.006842456758022308, -0.021372385323047638, -0.004034406039863825, 0.09866311401128769, 0.03674732893705368, 0.002959720091894269, -0.01396225206553936, -0.03305526450276375, -0.03875803202390671, 0.028063174337148666, 0.0533529631793499, 0.02034970000386238, -0.03882736712694168, 0.013598245568573475, -0.016674967482686043, 0.004628083668649197, -0.019136345013976097, -0.017723653465509415, -0.029085857793688774, 0.011908215470612049, 0.043472785502672195, -0.07189996540546417, 0.016544966027140617, 0.005910773295909166, 0.004987756721675396, 0.08008144795894623, -0.05692369490861893, 0.011873547919094563, -0.08895627409219742, 0.023071084171533585, 0.05550233647227287, 0.012948233634233475, 0.05324896052479744, 0.02144172042608261, -0.011760879307985306, -0.001659696688875556, -0.013710914179682732, 0.04472080618143082, -0.017012974247336388, -0.010053514502942562, -0.008861826732754707, 0.012133552692830563, 0.0011039365781471133, 0.0033453938085585833, 0.0031135561875998974, 0.044096797704696655, 0.007778473664075136, 0.023903097957372665, -0.03151256963610649, 0.04447813704609871, 0.053387630730867386, 0.008675489574670792, -0.010547523386776447, -0.016735635697841644, 0.043680790811777115, 0.03948604688048363, 0.06825990229845047, 0.01982969231903553, -0.0033757276833057404, -0.014863601885735989, -0.01383224967867136, -0.01074686087667942, 0.030697887763381004, -0.03151256963610649, -0.05990508198738098, -0.013598245568573475, -0.0008785991813056171, 0.02268974296748638, 0.01754165068268776, -0.017359646037220955, 0.010902863927185535, -0.033037930727005005, 0.03482329472899437, 0.026815151795744896, -0.006682120729237795, -0.0030637220479547977, 0.05806771665811539, -0.048707544803619385, 0.006638786755502224, -0.01224622130393982, 0.028617849573493004, -0.028583182021975517, 0.00942083727568388, 0.029207194223999977, 0.003380061127245426, -0.005031090695410967, -0.005416764412075281, 0.054843656718730927, 0.0042380765080451965, -0.051515597850084305, -0.027161823585629463, -0.007800140883773565, 0.002922886051237583, 0.0011971049243584275, 0.012592894025146961, -0.0684332326054573, 0.00003889913932653144, -0.029501866549253464, 0.021667057648301125, -0.02662448026239872, -0.052347611635923386, 0.022204400971531868, 0.0031828908249735832, 0.01677030324935913, -0.04083807021379471, 0.06867590546607971, -0.029831204563379288, -0.02034970000386238, 0.020540371537208557, -0.034805960953235626, 0.020575039088726044, 0.03560331091284752, -0.004628083668649197, -0.025567129254341125, 0.04551815614104271, -0.012471558526158333, 0.025757798925042152, -0.02984853833913803, 0.013130237348377705, -0.041496749967336655, -0.034961964935064316, -0.05574500560760498, -0.021771060302853584, -0.002916386118158698, 0.007375466637313366, -0.04693951457738876, -0.012549559585750103, -0.06742788106203079, 0.00209520454518497, -0.030923224985599518 ]
718,553
pytorch_optimizer
load_bnb_optimizer
load bnb optimizer instance.
def load_bnb_optimizer(optimizer: str) -> OPTIMIZER: # pragma: no cover r"""load bnb optimizer instance.""" if 'sgd8bit' in optimizer: return bnb.optim.SGD8bit if 'adam8bit' in optimizer: return bnb.optim.Adam8bit if 'adamw8bit' in optimizer: return bnb.optim.AdamW8bit if 'lamb8bit' in optimizer: return bnb.optim.LAMB8bit if 'lars8bit' in optimizer: return bnb.optim.LARS8bit if 'lion8bit' in optimizer: return bnb.optim.Lion8bit if 'adagrad8bit' in optimizer: return bnb.optim.Adagrad8bit if 'rmsprop8bit' in optimizer: return bnb.optim.RMSprop8bit raise NotImplementedError(f'[-] not implemented optimizer : {optimizer}')
(optimizer: str) -> Type[torch.optim.optimizer.Optimizer]
[ 0.009633148089051247, -0.02071303129196167, -0.057269591838121414, 0.02087181992828846, -0.06880819797515869, -0.050424057990312576, -0.026499977335333824, 0.00007091709994710982, -0.074595145881176, -0.047248296439647675, 0.01741376705467701, 0.02365943416953087, -0.04746001213788986, 0.011679750867187977, -0.04675428941845894, -0.007882067002356052, -0.018542926758527756, -0.006647048518061638, -0.04209650307893753, 0.0005756070604547858, -0.046824861317873, -0.032304566353559494, 0.005778124090284109, 0.04019104316830635, 0.03609783947467804, 0.08052323758602142, -0.01049766130745411, -0.0033874805085361004, -0.04608384892344475, -0.01037415862083435, 0.009183247573673725, -0.09181483834981918, -0.0071145910769701, 0.01960151456296444, 0.06520900130271912, 0.021083537489175797, 0.04121434688568115, 0.02305956743657589, -0.06753788888454437, -0.028405435383319855, 0.012853018939495087, -0.06295067816972733, 0.0516943633556366, -0.007021964993327856, -0.0021138673182576895, -0.04029690474271774, -0.006029538810253143, -0.04686014726758003, 0.028317220509052277, 0.018648786470294, 0.05116507038474083, -0.07480686157941818, 0.012738337740302086, 0.005257652141153812, -0.013064735569059849, -0.0011512141209095716, -0.01180325262248516, 0.03256921470165253, 0.02230091392993927, 0.05391739681363106, -0.04435482248663902, -0.06803189963102341, -0.017237335443496704, -0.004891557153314352, 0.032304566353559494, -0.006686745211482048, -0.0820758268237114, -0.0009014535462483764, 0.007004321552813053, -0.003561706282198429, 0.05938676744699478, 0.01536716427654028, -0.008596614003181458, -0.010118333622813225, -0.08659247308969498, -0.017643127590417862, -0.12293731421232224, -0.02512381412088871, -0.054129116237163544, 0.013108843937516212, 0.037156425416469574, -0.0031757629476487637, 0.004216707311570644, -0.0772063285112381, 0.03121069259941578, -0.11729151010513306, 0.000526261399500072, -0.03195170313119888, 0.03135183826088905, -0.09760177880525589, -0.03105190396308899, -0.07297197729349136, 0.026023613288998604, 0.04354323819279671, 0.0055752284824848175, -0.008565738797187805, 0.04029690474271774, -0.01111517008394003, 0.01208554208278656, -0.01777545176446438, -0.02734684757888317, -0.045413412153720856, -0.031828202307224274, -0.01208554208278656, 0.023994654417037964, 0.044143106788396835, 0.03073432855308056, -0.00313606602139771, -0.006836711894720793, -0.07417170703411102, -0.017352016642689705, -0.03997932747006416, -0.0349157489836216, -0.02353593148291111, -0.009324393235147, 0.06146865710616112, 0.005557585041970015, -0.019019290804862976, 0.03272800147533417, 0.052329517900943756, -0.03383952006697655, 0.057269591838121414, -0.033733658492565155, 0.05518770217895508, 0.06132751330733299, -0.008305502124130726, 0.06778489798307419, 0.027240989729762077, 0.013488170690834522, -0.042555224150419235, 0.0947788804769516, -0.015217197127640247, -0.05462312325835228, -0.00022164179245010018, 0.0030037425458431244, 0.04686014726758003, -0.009253820404410362, 0.06792604178190231, 0.00036085708416067064, -0.02544138953089714, -0.003080931259319186, -0.04273165389895439, 0.02508852817118168, -0.05649329349398613, 0.015278948470950127, 0.003286032471805811, -0.0170609038323164, -0.039661750197410583, -0.00959786120802164, -0.02103060856461525, 0.032092850655317307, 0.0037844509351998568, -0.015958208590745926, -0.009271463379263878, -0.008279037661850452, -0.061750948429107666, -0.041002627462148666, -0.01924865134060383, -0.02524731494486332, -0.03549797460436821, 0.019089864566922188, 0.047848161309957504, -0.019742660224437714, -0.10677620768547058, -0.016760971397161484, 0.0014820226933807135, 0.007268968503922224, 0.0558934286236763, -0.01467026025056839, -0.006192737724632025, -0.052011940628290176, -0.0829932689666748, -0.0655265748500824, 0.059810202568769455, -0.0218245480209589, 0.08793334662914276, -0.016752149909734726, 0.018631143495440483, 0.04484882950782776, 0.0016220650868490338, 0.04555455595254898, 0.0846870094537735, -0.050106480717659, -0.04082619771361351, -0.010021296329796314, 0.022159768268465996, 0.05483483895659447, -0.01355874352157116, 0.012164936400949955, 0.02337714470922947, 0.020413098856806755, 0.038462016731500626, 0.05045934394001961, -0.008861260488629341, -0.029164090752601624, -0.057022590190172195, 0.04054390639066696, 0.04604856297373772, -0.03133419528603554, 0.08546330779790878, 0.047565873712301254, 0.0664440169930458, 0.040014613419771194, 0.055399421602487564, 0.03867373615503311, 0.001908765872940421, -0.012129650451242924, -0.028281932696700096, 0.03987346962094307, 0.004285074770450592, 0.0032264869660139084, -0.0239770095795393, -0.012517798691987991, 0.03285150229930878, 0.03323965147137642, 0.04678957536816597, 0.02170104719698429, 0.06707917153835297, 0.028599509969353676, 0.02575896680355072, 0.06499728560447693, 0.015967030078172684, 0.004529872909188271, -0.016955045983195305, 0.022706706076860428, -0.011335709132254124, 0.003608019556850195, -0.030046246945858, 0.04643671214580536, 0.029446380212903023, -0.020024949684739113, -0.053529247641563416, 0.024418089538812637, -0.04216707497835159, 0.05250594764947891, 0.025900110602378845, -0.001117581850849092, 0.001797393662855029, -0.011265137232840061, -0.054799553006887436, 0.028158431872725487, 0.011670929379761219, -0.03145769611001015, 0.012156114913523197, -0.04827159643173218, -0.00768358213827014, 0.01137099601328373, -0.0383208729326725, -0.062033236026763916, -0.014511472545564175, 0.006505903322249651, -0.013064735569059849, 0.007286611944437027, -0.01379692554473877, -0.016831543296575546, 0.040720339864492416, -0.000983053003437817, -0.05240008980035782, -0.025670750066637993, -0.001261483645066619, -0.028193717822432518, -0.0033985073678195477, -0.061080507934093475, -0.0008953887154348195, 0.033574871718883514, 0.0266411229968071, 0.03175763040781021, -0.012438405305147171, 0.04089676961302757, -0.020130809396505356, 0.035074539482593536, -0.01403510756790638, -0.004816574044525623, 0.053211674094200134, 0.007701225113123655, -0.0175725556910038, -0.0017610046779736876, 0.044778257608413696, 0.011820895597338676, -0.059175051748752594, 0.004719536751508713, 0.03757986053824425, 0.0039476496167480946, -0.01736965961754322, -0.045660413801670074, -0.021842192858457565, -0.017193228006362915, -0.05236480385065079, 0.02373000606894493, 0.01960151456296444, 0.04671900346875191, -0.008129071444272995, 0.004860681481659412, 0.013091200962662697, 0.06506785750389099, 0.0367329902946949, 0.061997950077056885, 0.013347025960683823, 0.05190608277916908, -0.008226107805967331, 0.014379149302840233, -0.00526647362858057, 0.006942570675164461, -0.007149877492338419, -0.006836711894720793, -0.005173847079277039, 0.02249498851597309, -0.020536599680781364, -0.03705056756734848, 0.0426257960498333, -0.01928393915295601, -0.02918173372745514, 0.030504968017339706, -0.015570060350000858, 0.013347025960683823, -0.06658516079187393, -0.01856056973338127, 0.03856787830591202, -0.013841033913195133, -0.011838538572192192, -0.028034929186105728, 0.03041675128042698, -0.027258632704615593, -0.08736877143383026, -0.010762307792901993, -0.007136645261198282, -0.0017742370255291462, 0.011221028864383698, -0.01614346168935299, -0.030469682067632675, -0.0027567388024181128, -0.03159883990883827, 0.019425082951784134, 0.029393451288342476, 0.012297259643673897, 0.052576519548892975, 0.04463711380958557, 0.06736145913600922, -0.0452369786798954, 0.021753976121544838, 0.07247796654701233, 0.00789088848978281, 0.03073432855308056, 0.07544201612472534, -0.03009917587041855, -0.040049899369478226, -0.03828558698296547, -0.0014974604127928615, -0.0021337156649678946, -0.006153040565550327, -0.02043074183166027, -0.027382133528590202, -0.03466874733567238, 0.01800481230020523, 0.030522610992193222, 0.0022528069093823433, 0.002679550088942051, 0.0252826027572155, 0.039732322096824646, -0.021436400711536407, -0.06302125006914139, -0.0008402539533562958, -0.0215422585606575, 0.02413579821586609, 0.02020138129591942, 0.03352194279432297, -0.012306081131100655, -0.012606014497578144, 0.010303586721420288, -0.04686014726758003, -0.002373000606894493, -0.03175763040781021, 0.028052572160959244, -0.010991668328642845, 0.007996747270226479, 0.017281442880630493, 0.010665270499885082, -0.0247709508985281, 0.027099844068288803, 0.02575896680355072, 0.03323965147137642, 0.029111159965395927, 0.034210026264190674, 0.02286549285054207, 0.011150456964969635, 0.025741323828697205, -0.04244936630129814, 0.008067320100963116, 0.03916774317622185, -0.06718502938747406, -0.030116818845272064, 0.01801363378763199, -0.02496502548456192, -0.0004898724728263915, -0.025547249242663383, 0.005213544238358736, -0.007317487150430679, 0.047848161309957504, 0.005853107664734125, 0.008367253467440605, -0.0028537758626043797, -0.008133482187986374, 0.011150456964969635, 0.024312229827046394, -0.05836346745491028, -0.012932412326335907, 0.02461216226220131, 0.08045266568660736, -0.019178079441189766, -0.02715277299284935, -0.009615504182875156, -0.01979558914899826, -0.025035597383975983, 0.03306322172284126, -0.0643974170088768, 0.05109449848532677, 0.06686745584011078, 0.003286032471805811, 0.009977188892662525, -0.03835615888237953, 0.018348852172493935, 0.034051235765218735, -0.0035065715201199055, -0.02905823104083538, 0.009818400256335735, 0.02651762031018734, 0.020130809396505356, -0.014502651058137417, -0.014317397959530354, -0.0012162730563431978, 0.03927360102534294, -0.015393628738820553, -0.010162441059947014, -0.03076961450278759, 0.0218245480209589, -0.013108843937516212, -0.0026663176249712706, 0.005204722750931978, 0.055999286472797394, -0.059774916619062424, 0.060480643063783646, -0.03009917587041855, -0.013620494864881039, 0.027452707290649414, -0.037191711366176605, -0.03398066386580467, 0.006007485091686249, 0.0531763881444931, 0.040049899369478226, -0.03581554815173149, 0.015340699814260006, -0.041320204734802246, 0.01184736005961895, 0.021612830460071564, 0.01092991791665554, -0.010727021843194962, 0.054799553006887436, -0.006430920213460922, 0.008909779600799084, -0.007957050576806068, -0.01292359083890915, 0.009112675674259663, 0.057657741010189056, -0.0006472822278738022, -0.009712541475892067, 0.06976092606782913, 0.030028603971004486, 0.012835375033318996, 0.039450034499168396, 0.05049462988972664, -0.037156425416469574, -0.052011940628290176, 0.0010034529259428382, -0.02814078889787197, 0.03258685767650604, 0.0321987085044384, -0.01833120919764042, 0.025970684364438057, 0.04862445965409279, 0.01049766130745411, 0.012985342182219028, 0.031104834750294685, -0.03765043616294861, 0.049788907170295715, 0.040720339864492416, -0.011141635477542877, -0.053882110863924026, 0.015543595887720585, -0.013999821618199348, -0.023924080654978752, -0.041955359280109406, 0.08539273589849472, 0.020254310220479965, 0.01175032276660204, 0.05127092823386192, 0.06559714674949646, 0.013841033913195133, 0.008636310696601868, 0.010382981039583683, 0.01887814700603485, 0.024912096560001373, -0.02731156162917614, -0.08927422761917114, -0.02941109426319599, 0.0072469147853553295, -0.061045221984386444, -0.08447529375553131, 0.017316730692982674, -0.024559233337640762, 0.05409383028745651, -0.031157763674855232, 0.05208251252770424, -0.02762913703918457, 0.023641791194677353, -0.03133419528603554, 0.002798641100525856, -0.01520837564021349, 0.03486282005906105, -0.030205033719539642, 0.022477343678474426, 0.06792604178190231, -0.024418089538812637, -0.0033323457464575768, -0.05783417075872421, 0.012826553545892239, -0.017078546807169914, 0.04925961419939995, -0.0263588335365057, 0.05250594764947891, -0.016902117058634758, 0.00660735135897994, -0.01003893930464983, 0.003504366148263216, 0.07494800537824631, 0.030998975038528442, -0.03128126636147499, 0.03569204732775688, 0.03597433865070343, 0.027082201093435287, -0.04558984190225601, 0.0040468922816216946, 0.01175032276660204, 0.040367476642131805, 0.02695869840681553, 0.0032441301736980677, 0.03415709361433983, -0.04548398405313492, 0.06549128890037537, -0.043472666293382645, 0.014696725644171238, 0.024894453585147858, 0.027558565139770508, -0.0151642682030797, 0.013108843937516212, 0.021648118272423744, -0.066655732691288, 0.008406950160861015, 0.014299754984676838, 0.02194805070757866, 0.03867373615503311, -0.043084517121315, -0.03828558698296547, -0.045660413801670074, 0.01784602366387844, -0.0164963249117136, 0.048165738582611084, 0.0001095114421332255, 0.022071553394198418, 0.036238983273506165, 0.019142793491482735, 0.047248296439647675, -0.07734747231006622, 0.004514435306191444, -0.04054390639066696, -0.07523029297590256, 0.047601159662008286, -0.03466874733567238, 0.03697999566793442, -0.01976030319929123, -0.010047760792076588, 0.01438797079026699, 0.037191711366176605, -0.002855981234461069, 0.005659033078700304, 0.002994920825585723, -0.024259300902485847, -0.03800329566001892, -0.00015754761989228427, -0.017087368294596672, -0.054411403834819794, 0.02242441475391388, 0.020765962079167366, 0.008596614003181458, -0.052611805498600006, -0.0284583643078804, 0.03463346138596535, -0.039450034499168396, -0.03521568328142166, 0.0055752284824848175, -0.009271463379263878, 0.005412029568105936, -0.0004832562990486622, 0.03800329566001892, -0.0037712184712290764, 0.037826865911483765, 0.06940806657075882, -0.04057919234037399, -0.045095834881067276, 0.022442057728767395, -0.0028692136984318495, 0.009227355942130089, -0.00041599187534302473, -0.035639118403196335, -0.0030390287283807993, -0.06722031533718109, 0.006166273262351751, -0.013876319862902164, 0.007286611944437027, -0.012932412326335907, -0.013064735569059849, -0.000059063127991976216, 0.016672756522893906, 0.06549128890037537, 0.03930888697504997, -0.08066438138484955, -0.016840364784002304, 0.03638013079762459, -0.0824286937713623, 0.051341500133275986, -0.01856056973338127, -0.0041086431592702866, -0.007163109723478556, 0.07487743347883224, -0.07388941943645477, -0.03757986053824425, -0.02807021513581276, 0.05836346745491028, 0.06298596411943436, -0.012597193010151386, 0.00687640905380249, 0.007396881468594074, 0.03315143659710884, 0.008124660700559616, 0.022247983142733574, 0.003680797526612878, -0.0345805287361145, -0.007366005796939135, 0.036909423768520355, 0.007436578162014484, 0.005010648164898157, -0.02385350875556469, 0.0018415014492347836, -0.0351451113820076, 0.0263588335365057, -0.021012965589761734, 0.013638137839734554, 0.06002192199230194, 0.023324213922023773, 0.05402325838804245, -0.03207520768046379, 0.010083047673106194, -0.019548585638403893, -0.027558565139770508, 0.039450034499168396, -0.008455469273030758, 0.05268237739801407, -0.040720339864492416, -0.015728848055005074, 0.05557585135102272, -0.05137678608298302, -0.032692715525627136, 0.024153441190719604, -0.03195170313119888, -0.06986678391695023, -0.010506482794880867, 0.013938071206212044, -0.034721676260232925, -0.03948532044887543, 0.004790109116584063, -0.027417419478297234, 0.001908765872940421, -0.002829516539350152, 0.01947801373898983, -0.04805988073348999, -0.005994252394884825, 0.009386143647134304, -0.04121434688568115, 0.03768572211265564, 0.02877594158053398, -0.022830206900835037, -0.05864575505256653, 0.052258942276239395, 0.040649764239788055, 0.01836649514734745, 0.06947863847017288, -0.0489773228764534, 0.004909200128167868, -0.0045475163497030735, -0.023306570947170258, -0.007877656258642673, 0.022759635001420975, -0.06686745584011078, -0.07138409465551376, -0.006245667114853859, 0.009668434038758278, 0.0601983517408371, -0.04139077663421631, -0.0377562940120697, -0.025017954409122467, -0.03156355395913124, -0.021524615585803986, -0.022759635001420975, -0.021842192858457565, -0.005981020163744688, 0.06690274178981781, 0.023924080654978752, -0.020977679640054703, 0.013223524205386639, -0.07099594920873642, -0.0034293830394744873, -0.010568233206868172, 0.020660102367401123, 0.009836043231189251, 0.018772287294268608, 0.01820770837366581, -0.010065404698252678, -0.012597193010151386, -0.05483483895659447, -0.029922744259238243, 0.05049462988972664, 0.01654043234884739, -0.004803341347724199, -0.011538605205714703, -0.027523279190063477, 0.008711294271051884, 0.013708709739148617, 0.00239946530200541, -0.03641541674733162, 0.04460182785987854, 0.035991981625556946, 0.010312408208847046, 0.02226562798023224, -0.029164090752601624, 0.04495468735694885, -0.0414966344833374, 0.02103060856461525, 0.02807021513581276, -0.027929071336984634, 0.05081220716238022, 0.05250594764947891, -0.002015727339312434, 0.006810247432440519, 0.06947863847017288, 0.03927360102534294, 0.015420093201100826, -0.0585046112537384, 0.015481844544410706, 0.01995437778532505, -0.021524615585803986, -0.05331753194332123, -0.027858499437570572, -0.005204722750931978, 0.011203385889530182, -0.05836346745491028, 0.006232434883713722, -0.07159581035375595, -0.014943729154765606, -0.04237879440188408 ]
718,554
pytorch_optimizer
load_lr_scheduler
null
def load_lr_scheduler(lr_scheduler: str) -> SCHEDULER: lr_scheduler: str = lr_scheduler.lower() if lr_scheduler not in LR_SCHEDULERS: raise NotImplementedError(f'[-] not implemented lr_scheduler : {lr_scheduler}') return LR_SCHEDULERS[lr_scheduler]
(lr_scheduler: str) -> Type[torch.optim.lr_scheduler._LRScheduler]
[ 0.052720773965120316, 0.05134952813386917, -0.060082193464040756, -0.029734371230006218, -0.00234555103816092, -0.026198001578450203, 0.02121821604669094, 0.028417253866791725, -0.0738307312130928, 0.017032310366630554, -0.009950549341738224, -0.0053000436164438725, -0.02118213102221489, 0.019161349162459373, -0.02892244979739189, 0.036464300006628036, -0.015399444848299026, -0.0013193725608289242, -0.033036187291145325, -0.047127533704042435, -0.009454375132918358, 0.0012314143823459744, 0.03585084527730942, 0.028994619846343994, 0.021362558007240295, 0.049581341445446014, -0.014064285904169083, -0.03900831937789917, -0.044421128928661346, -0.004210715182125568, 0.05766447260975838, -0.024195261299610138, -0.04142604023218155, -0.021957967430353165, -0.022896187379956245, 0.041353870183229446, -0.030221523717045784, -0.001388160279020667, -0.02854355238378048, -0.002751511987298727, 0.012088609859347343, 0.011475157923996449, 0.055715858936309814, -0.046802766621112823, 0.029716327786445618, -0.00016224334831349552, 0.011132346466183662, -0.026612984016537666, 0.06235557422041893, 0.004118246491998434, 0.06473720818758011, -0.05380333587527275, -0.019107220694422722, -0.008015469647943974, -0.031448427587747574, 0.027767715975642204, 0.005327107384800911, 0.060623474419116974, 0.0367710255086422, -0.010356510058045387, 0.02729860693216324, -0.04232817515730858, -0.054236359894275665, 0.05611279979348183, 0.051457785069942474, -0.05629322677850723, -0.020117612555623055, 0.010419660247862339, -0.03810618445277214, -0.006102943792939186, -0.01970263011753559, 0.009021350182592869, -0.0708717331290245, -0.016644392162561417, 0.005331618245691061, 0.015417488291859627, -0.07249557226896286, -0.07105215638875961, -0.034912627190351486, 0.02397874929010868, 0.07736710458993912, 0.046550169587135315, 0.009301012381911278, -0.011881118640303612, -0.034515686333179474, -0.06246383115649223, 0.01290053129196167, -0.05860269442200661, -0.047452304512262344, -0.04424070194363594, 0.0059766448102891445, -0.014885228127241135, -0.003942330367863178, 0.013044873252511024, 0.01598583348095417, -0.017871296033263206, 0.02551237866282463, 0.006535968277603388, 0.021398643031716347, -0.060984328389167786, -0.0030559825245290995, 0.043807677924633026, -0.05109693109989166, 0.005006849300116301, 0.018529854714870453, 0.04481806978583336, -0.0021098684519529343, -0.026649069041013718, -0.0084439842030406, -0.0024335093330591917, -0.037673160433769226, 0.03664472699165344, -0.06325770914554596, 0.05596845969557762, -0.023762237280607224, 0.01968458667397499, -0.04232817515730858, 0.024411775171756744, -0.0023523170966655016, 0.001715184305794537, -0.008421430364251137, 0.06960874050855637, -0.010365531779825687, -0.007961342111229897, 0.006039794068783522, 0.012034481391310692, -0.016039961948990822, -0.005056466907262802, 0.05625714361667633, -0.018060743808746338, 0.06343813985586166, 0.011024090461432934, 0.0024944033939391375, -0.00982425082474947, 0.0007358039147220552, -0.03810618445277214, 0.0009032626985572278, 0.09605933725833893, -0.010554980486631393, -0.011105282232165337, -0.008498111739754677, 0.030293695628643036, 0.036428213119506836, -0.016364729031920433, 0.02614387311041355, 0.021091917529702187, -0.010825620964169502, 0.09411072731018066, -0.0029544923454523087, 0.02430351823568344, 0.0038949681911617517, -0.01427177619189024, 0.011610478162765503, 0.028146613389253616, 0.01354104746133089, -0.02430351823568344, -0.01934177614748478, -0.010816599242389202, 0.0012832870706915855, -0.07585151493549347, -0.00674797035753727, 0.03467807173728943, -0.041317787021398544, -0.11821577697992325, -0.0006393882213160396, 0.007415550295263529, 0.006689331494271755, 0.02675732597708702, -0.0071719735860824585, 0.015056634321808815, -0.03630191460251808, -0.021001704037189484, -0.07924354076385498, 0.04882355034351349, -0.017754018306732178, 0.051493868231773376, -0.01705937460064888, 0.061020415276288986, 0.03408266231417656, 0.015841491520404816, 0.03655451163649559, 0.03817835450172424, -0.019756756722927094, -0.05365899205207825, -0.014136455953121185, 0.04384376481175423, -0.0322783924639225, 0.04517892375588417, -0.020839320495724678, 0.031231915578246117, 0.005227872636169195, 0.009851315058767796, -0.010573022998869419, -0.0006298030493780971, -0.02367202378809452, -0.012034481391310692, -0.057628385722637177, 0.006549500394612551, -0.037023622542619705, 0.01816900074481964, 0.058566607534885406, 0.10291557013988495, 0.005746600218117237, 0.06614454090595245, -0.032693374902009964, -0.043158140033483505, -0.02700992301106453, 0.014776972122490406, 0.0013949263375252485, 0.0038024992682039738, -0.020478466525673866, -0.04398810490965843, -0.05337030813097954, 0.05156603828072548, 0.015209997072815895, -0.002907130168750882, -0.053550735116004944, 0.023275084793567657, 0.009197266772389412, -0.044385045766830444, 0.04077650606632233, 0.052432090044021606, 0.01815095730125904, -0.01105115469545126, -0.013306492008268833, -0.004427227657288313, -0.0031867921352386475, -0.0770062506198883, -0.019287647679448128, 0.06538674980401993, 0.04185906797647476, -0.09764710068702698, 0.05059173330664635, -0.06289685517549515, 0.08148083835840225, -0.016779711470007896, 0.023257041350007057, 0.07534632086753845, -0.0039017340168356895, -0.0035634334199130535, 0.012287079356610775, 0.06545891612768173, 0.01088877022266388, -0.04272511601448059, 0.036121487617492676, 0.03720404952764511, -0.004440759774297476, -0.0012066055787727237, -0.09353335946798325, -0.025566507130861282, 0.006865247618407011, -0.003387517062947154, -0.023491596803069115, 0.021037789061665535, -0.0245200302451849, -0.05257643014192581, -0.026504727080464363, 0.0007515912875533104, 0.017275886610150337, 0.030239567160606384, -0.013153129257261753, -0.036067359149456024, -0.025981489568948746, 0.03294597193598747, -0.015002505853772163, -0.016536135226488113, -0.03442547470331192, 0.04756056144833565, 0.070835642516613, -0.019828928634524345, 0.11099869757890701, -0.02576497755944729, 0.0138026662170887, -0.008137257769703865, 0.017429249361157417, -0.025349995121359825, -0.0675518736243248, -0.011375922709703445, 0.08379030227661133, -0.028976578265428543, 0.02488088421523571, 0.06614454090595245, 0.014831100590527058, -0.020045440644025803, 0.03590497374534607, -0.011908182874321938, -0.028669852763414383, -0.06935614347457886, -0.018908750265836716, 0.04525109380483627, 0.015417488291859627, -0.029950883239507675, -0.006657756865024567, -0.02367202378809452, 0.0768619030714035, 0.03307227045297623, 0.05077216029167175, -0.040993016213178635, 0.08978047966957092, 0.02031608112156391, 0.05369507893919945, 0.022824017331004143, 0.021308429539203644, 0.007244144566357136, -0.020063484087586403, -0.04355508089065552, -0.03276554495096207, 0.012729126028716564, -0.052035149186849594, 0.048029668629169464, 0.023581810295581818, 0.004731698427349329, 0.005868388339877129, -0.044709812849760056, 0.06354638934135437, 0.0199732705950737, -0.006296902429312468, 0.042508602142333984, 0.029247218742966652, -0.015751278027892113, -0.033649638295173645, 0.06535066664218903, 0.0006788566242903471, -0.0306906346231699, -0.0012562230695039034, -0.013162150047719479, -0.01813291385769844, 0.01738414168357849, -0.03585084527730942, 0.018123893067240715, 0.018232150003314018, -0.04636974260210991, 0.005214340519160032, -0.009061946533620358, 0.059757426381111145, 0.0707634761929512, 0.05470547080039978, 0.055751945823431015, -0.026793411001563072, -0.015688128769397736, 0.0739029049873352, -0.014822078868746758, 0.04066824913024902, 0.03260315954685211, -0.009941528551280499, -0.006017240695655346, -0.005088041536509991, 0.029120920225977898, 0.014154499396681786, -0.07621236890554428, -0.056076712906360626, -0.021001704037189484, -0.03774533048272133, 0.02915700525045395, -0.0115292863920331, -0.04676667973399162, -0.0049301679246127605, 0.0011304880026727915, 0.04730796068906784, -0.02120017446577549, -0.03525543957948685, -0.04157038405537605, -0.061886463314294815, -0.022950315847992897, -0.07411941885948181, 0.008628921583294868, -0.06257208436727524, -0.036987535655498505, 0.05567977577447891, -0.06379899382591248, -0.01550770178437233, 0.01659928448498249, 0.013622239232063293, 0.01241337787359953, -0.0008553367806598544, -0.004465568345040083, 0.026829496026039124, 0.001633992069400847, -0.013459854759275913, -0.004607654642313719, 0.008570282720029354, 0.0399826243519783, 0.06387116014957428, 0.011276688426733017, 0.04113736003637314, -0.008439473807811737, -0.03202579542994499, 0.00019381807942409068, 0.021939923986792564, -0.07033044844865799, 0.01103311125189066, -0.002853002166375518, 0.029553944244980812, 0.00291840685531497, -0.042292091995477676, 0.0011705202050507069, -0.06412375718355179, 0.037059709429740906, 0.004585101269185543, -0.018944835290312767, 0.04124561324715614, 0.010112933814525604, -0.02026195265352726, -0.007753850892186165, 0.0050384243950247765, 0.04019913822412491, 0.05918005853891373, -0.010103913024067879, -0.02298640087246895, 0.02394266426563263, 0.020676935091614723, -0.025079354643821716, -0.024393731728196144, -0.06293293833732605, -0.048354439437389374, 0.015706170350313187, 0.08646062016487122, 0.0644124448299408, 0.04813792556524277, -0.0071764844469726086, -0.03617561608552933, -0.0306725911796093, -0.003698753658682108, -0.005385746248066425, -0.016012897714972496, 0.03469611331820488, 0.0003794605436269194, 0.004925657529383898, -0.03168298304080963, -0.02856159582734108, -0.003346920944750309, -0.017185673117637634, -0.017582612112164497, -0.03648234158754349, -0.000788240518886596, -0.03799792751669884, -0.014578502625226974, 0.0583140105009079, -0.011754820123314857, -0.070835642516613, 0.06242774426937103, -0.04110127314925194, 0.027767715975642204, 0.0036265829112380743, -0.04709145054221153, -0.006319455802440643, -0.05102475732564926, 0.054236359894275665, 0.006567543372511864, -0.031213872134685516, -0.04727187752723694, -0.011123324744403362, -0.0006258561625145376, 0.09605933725833893, 0.0026793410070240498, -0.027731630951166153, 0.04463764280080795, -0.029319388791918755, -0.04817401245236397, -0.00029037470812909305, -0.014497309923171997, 0.0062337531708180904, 0.0429777130484581, 0.02092953398823738, -0.025566507130861282, 0.06387116014957428, 0.01673460565507412, -0.016978181898593903, 0.01594974845647812, 0.020731063559651375, -0.015994854271411896, -0.04261685907840729, 0.02670319750905037, -0.07170169055461884, -0.010356510058045387, 0.05679842457175255, 0.018277255818247795, 0.008813859894871712, 0.02432156167924404, 0.017140565440058708, 0.032152093946933746, -0.001453565084375441, -0.0018178020836785436, 0.0892031118273735, 0.004677570424973965, -0.06091215834021568, -0.06578368693590164, 0.031448427587747574, -0.035201311111450195, 0.041317787021398544, -0.03128604218363762, 0.040054794400930405, 0.025313910096883774, -0.001003625220619142, 0.0041768853552639484, 0.023238999769091606, 0.047452304512262344, 0.04362725093960762, 0.03630191460251808, 0.03359550982713699, -0.007573423907160759, -0.02484479919075966, -0.0492204874753952, 0.016454942524433136, 0.046225398778915405, -0.02605365961790085, -0.052648600190877914, 0.02309465780854225, -0.03007718175649643, -0.014813057146966457, -0.008746199309825897, -0.0025462761987000704, -0.02210230939090252, 0.005656386725604534, -0.06268034130334854, -0.01273814681917429, 0.022517289966344833, 0.023563766852021217, -0.027533162385225296, 0.028399212285876274, 0.027875972911715508, -0.017663804814219475, 0.01673460565507412, -0.042544689029455185, -0.007158441469073296, -0.010789535008370876, 0.022878145799040794, -0.009224331006407738, 0.02673928253352642, 0.0039919475093483925, 0.026829496026039124, 0.028218785300850868, -0.008398877456784248, -0.011114303953945637, 0.04333856701850891, 0.07830531895160675, -0.032368604093790054, -0.0080515556037426, -0.0014163519954308867, -0.030528249219059944, 0.00982425082474947, -0.019792843610048294, 0.0766453966498375, 0.03139429911971092, 0.0063284775242209435, -0.07455243915319443, -0.061525609344244, 0.030257608741521835, 0.002618446946144104, 0.004612165503203869, 0.011971332132816315, -0.008858966641128063, -0.05427244305610657, -0.07155735045671463, -0.04644191265106201, -0.04882355034351349, -0.016689497977495193, 0.050230879336595535, 0.027406862005591393, 0.030925190076231956, -0.04106518626213074, -0.007185505703091621, -0.012756189331412315, 0.026270173490047455, -0.012007417157292366, -0.005110594909638166, -0.029608072713017464, 0.002408700529485941, -0.010997026227414608, 0.021001704037189484, 0.012611848302185535, -0.05163821205496788, 0.026919709518551826, -0.0614173524081707, -0.025368036702275276, 0.07938788086175919, 0.006202178541570902, -0.00908450037240982, -0.05318988114595413, -0.0008632304961793125, -0.0026545324362814426, 0.0011671371757984161, -0.013342577032744884, -0.0490400604903698, -0.0553189218044281, -0.06181429326534271, -0.059721339493989944, 0.04171472415328026, -0.07328945398330688, 0.016671456396579742, -0.004530973266810179, 0.059504829347133636, 0.018349427729845047, 0.0054488955065608025, 0.02058672159910202, 0.017320992425084114, 0.031773194670677185, 0.013928964734077454, 0.005471448879688978, 0.013099000789225101, -0.009246883913874626, 0.016644392162561417, -0.017086436972022057, -0.028327040374279022, 0.07105215638875961, -0.021055832505226135, 0.0006929524824954569, -0.06268034130334854, 0.010627150535583496, -0.021109960973262787, 0.000010298787856299896, -0.0058052390813827515, 0.04673059657216072, 0.03720404952764511, 0.07278425246477127, -0.030943231657147408, -0.004817401058971882, -0.07180994749069214, 0.014091349206864834, -0.07462461292743683, 0.013568110764026642, 0.032693374902009964, 0.037059709429740906, -0.024032877758145332, -0.015670085325837135, -0.01045574527233839, 0.028742022812366486, -0.04261685907840729, 0.03965785726904869, -0.048390522599220276, -0.025115439668297768, -0.04463764280080795, 0.027136221528053284, -0.09107955545186996, -0.011258644983172417, 0.018962878733873367, 0.023762237280607224, 0.01755554787814617, 0.039224833250045776, -0.02798422984778881, 0.002778575988486409, 0.041606467217206955, -0.022228607907891273, -0.008299642242491245, -0.034281130880117416, -0.026829496026039124, -0.014731865376234055, 0.010076848790049553, 0.05315379798412323, 0.0306906346231699, -0.029337432235479355, -0.007235123310238123, -0.03689732402563095, 0.04759664461016655, -0.03280163183808327, 0.026829496026039124, 0.02977045625448227, -0.06372682005167007, 0.007032142952084541, -0.00402126694098115, -0.000539871456567198, -0.026558855548501015, -0.006707374006509781, 0.02298640087246895, -0.014785993844270706, 0.0062337531708180904, -0.008660496212542057, 0.025133483111858368, 0.016400815919041634, -0.04359116405248642, -0.0042219921015203, -0.02058672159910202, 0.018980922177433968, -0.04633365571498871, 0.028669852763414383, 0.022210564464330673, -0.08241906017065048, -0.08111998438835144, 0.03749273344874382, -0.0036333489697426558, -0.022372949868440628, 0.055463261902332306, -0.04553977772593498, -0.03660864010453224, -0.03742056339979172, 0.048029668629169464, 0.01736610010266304, -0.040126968175172806, 0.030654549598693848, -0.035526078194379807, 0.0063149454072117805, 0.04885963350534439, 0.002776320558041334, -0.0013396705035120249, 0.032152093946933746, -0.002539510140195489, -0.00868305005133152, 0.004061863292008638, -0.04463764280080795, 0.05315379798412323, 0.006102943792939186, -0.005322596989572048, -0.0261258315294981, -0.0013047128450125456, -0.04507066681981087, 0.02796618640422821, -0.02915700525045395, 0.006535968277603388, -0.013874837197363377, -0.04604497179389, 0.03359550982713699, -0.03973002731800079, 0.0521434061229229, 0.01593170501291752, 0.00599468732252717, -0.0522877462208271, -0.03328878432512283, 0.04539543390274048, 0.017717933282256126, -0.007162952329963446, 0.014470246620476246, -0.011908182874321938, 0.023816365748643875, 0.0008795816684141755, 0.034208960831165314, -0.003468709299340844, -0.004100203979760408, -0.002228273544460535, -0.042580775916576385, 0.038575295358896255, 0.021037789061665535, 0.03958568722009659, -0.029644157737493515, 0.04460155591368675, 0.06946440041065216, -0.026324300095438957, 0.005056466907262802, 0.009116075001657009, 0.011186474934220314, 0.04247251898050308, 0.04460155591368675, 0.024790670722723007, -0.003182281507179141, -0.020731063559651375, 0.00797487422823906, 0.04146212711930275, -0.03106953203678131, -0.020442379638552666, 0.02369006723165512, 0.04965351149439812, -0.016860904172062874, -0.039802197366952896, 0.004052841570228338, 0.04676667973399162, -0.05777272954583168, -0.05860269442200661, 0.010654214769601822, 0.04247251898050308, 0.0028958534821867943, 0.012070567347109318, 0.001164881861768663, -0.005394767504185438, 0.01105115469545126, 0.00023497798247262836, 0.03599518910050392, -0.048101842403411865, -0.021687326952815056, -0.018674194812774658 ]
718,555
pytorch_optimizer
load_optimizer
null
def load_optimizer(optimizer: str) -> OPTIMIZER: optimizer: str = optimizer.lower() if optimizer.startswith('bnb'): if HAS_BNB and torch.cuda.is_available(): return load_bnb_optimizer(optimizer) # pragma: no cover raise ImportError(f'[-] bitsandbytes and CUDA required for bnb optimizers : {optimizer}') if optimizer not in OPTIMIZERS: raise NotImplementedError(f'[-] not implemented optimizer : {optimizer}') return OPTIMIZERS[optimizer]
(optimizer: str) -> Type[torch.optim.optimizer.Optimizer]
[ 0.004867104813456535, -0.008229494094848633, -0.03325235843658447, 0.019747070968151093, -0.048708200454711914, -0.03644755482673645, -0.0021607065573334694, -0.0033577450085431337, -0.08797942101955414, -0.016858387738466263, 0.029611317440867424, 0.025635896250605583, -0.07010859996080399, 0.0021142647601664066, -0.04354386776685715, -0.015613746829330921, -0.029927121475338936, 0.004251750651746988, -0.035704486072063446, -0.015892397612333298, -0.05182909220457077, -0.041314661502838135, 0.022310659289360046, 0.04361817613244057, 0.015121462754905224, 0.07163189351558685, 0.003817519173026085, -0.01924549788236618, -0.05803372338414192, -0.012325664050877094, 0.028255214914679527, -0.08738496899604797, 0.009994284249842167, 0.04428694024682045, 0.02883109450340271, 0.05186624825000763, 0.041277509182691574, 0.016784081235527992, -0.06356959044933319, -0.043023720383644104, -0.02513432316482067, -0.03466419130563736, 0.06791654974222183, -0.027493569999933243, 0.0034390182700008154, -0.022756502032279968, -0.011341097764670849, -0.014257645234465599, 0.00018837970856111497, 0.03904829919338226, 0.07817090302705765, -0.04176050424575806, 0.024669906124472618, 0.00974349770694971, -0.0009085185010917485, -0.018976135179400444, 0.0007366836653091013, 0.024149756878614426, 0.043358102440834045, 0.06479565799236298, -0.008907545357942581, -0.08656758815050125, -0.029815660789608955, 0.017359958961606026, 0.01915261521935463, -0.035574451088905334, -0.06434981524944305, -0.0019807445351034403, 0.0011447913711890578, -0.002628608141094446, 0.017861532047390938, 0.01058873999863863, -0.014842811971902847, -0.029295513406395912, -0.03637325018644333, -0.021827664226293564, -0.08552729338407516, -0.03466419130563736, -0.029982851818203926, 0.01444341242313385, 0.0230537299066782, -0.0012214203597977757, -0.01858602464199066, -0.03590882942080498, 0.017025578767061234, -0.11257502436637878, 0.0018019434064626694, -0.05420691519975662, 0.03263932466506958, -0.10759645700454712, -0.05621320381760597, -0.06193483993411064, 0.033679623156785965, 0.05008288100361824, 0.001961006782948971, 0.0016208202578127384, 0.045104313641786575, -0.003666583215817809, -0.017397113144397736, -0.02656473219394684, -0.028478136286139488, 0.008201628923416138, -0.022310659289360046, 0.00631609046831727, 0.03904829919338226, 0.029221205040812492, 0.018521005287766457, -0.0029397686012089252, 0.017824377864599228, -0.05249785631895065, -0.03291797637939453, -0.02862675115466118, -0.05205201357603073, -0.013050157576799393, 0.006562232039868832, 0.00910724513232708, -0.001706737675704062, -0.035332951694726944, 0.023555301129817963, 0.06000285595655441, -0.041537582874298096, 0.06345812976360321, -0.02286796271800995, 0.03878822550177574, 0.041203200817108154, -0.00031493374262936413, 0.06695055961608887, 0.009984995238482952, 0.03587167710065842, -0.041314661502838135, 0.08314947038888931, -0.03488710895180702, -0.047184910625219345, -0.008647470735013485, 0.005972420796751976, 0.031914833933115005, -0.009093312546610832, 0.07022006064653397, 0.0214189775288105, -0.027567876502871513, -0.0009897917043417692, -0.02322092093527317, 0.01046799123287201, -0.04350671544671059, 0.011257502250373363, -0.0006989496760070324, -0.028793940320611, -0.033605314791202545, -0.011183194816112518, -0.05625035613775253, 0.0209545586258173, -0.005698413588106632, -0.011016004718840122, -0.03875107318162918, 0.003664261195808649, -0.05268362537026405, -0.04562446475028992, -0.007463203743100166, -0.007653615437448025, -0.054912831634283066, 0.033475279808044434, 0.03871391713619232, -0.03975421562790871, -0.0816633328795433, -0.019542725756764412, -0.01896684803068638, 0.033345241099596024, 0.041537582874298096, -0.03256502002477646, 0.007997284643352032, -0.04038582369685173, -0.06531580537557602, -0.03416261821985245, 0.06587310880422592, -0.03392111882567406, 0.07423263788223267, -0.0328993983566761, 0.01840025745332241, 0.024577021598815918, -0.0024103315081447363, 0.04458416625857353, 0.07077736407518387, -0.03979136794805527, -0.022496428340673447, 0.004314446821808815, -0.0007947359699755907, 0.04287510737776756, -0.01564161106944084, 0.015845956280827522, 0.03232352063059807, 0.018994713202118874, 0.05023149400949478, 0.03979136794805527, -0.024131180718541145, -0.017861532047390938, -0.046776220202445984, 0.023982565850019455, 0.04005144163966179, -0.02316519059240818, 0.06609603017568588, 0.03241640329360962, 0.06966275721788406, 0.039642754942178726, 0.09630180150270462, 0.01609674096107483, -0.016031723469495773, -0.025468705222010612, 0.008327022194862366, 0.012799371033906937, 0.020508715882897377, 0.004163511097431183, -0.029704200103878975, 0.006083881016820669, 0.05390968918800354, 0.041277509182691574, 0.047519292682409286, 0.0172206349670887, 0.07137182354927063, 0.04826236143708229, -0.005303658079355955, 0.06802801042795181, 0.024168333038687706, 0.013189482502639294, 0.033753927797079086, 0.020583024248480797, -0.004330701660364866, -0.00912582129240036, -0.04398971050977707, 0.031394682824611664, 0.041574735194444656, 0.01352386362850666, -0.0532037727534771, 0.03236067295074463, -0.024521291255950928, 0.09013432264328003, 0.03802657872438431, -0.0229608453810215, 0.019821377471089363, 0.04239211231470108, -0.06910546123981476, 0.0019017934100702405, 0.006678336765617132, -0.03707916662096977, 0.013087310828268528, -0.04681337624788284, 0.008215561509132385, 0.009279079735279083, -0.0497484989464283, -0.04577307775616646, -0.002893326571211219, 0.006594741251319647, 0.025431551039218903, -0.00966919120401144, -0.010347242467105389, -0.035704486072063446, 0.003928979858756065, 0.007765075657516718, -0.04086881875991821, -0.001314304070547223, -0.030038582161068916, -0.045327235013246536, -0.02686196006834507, -0.0583309531211853, 0.011146041564643383, 0.011173906736075878, -0.007156687788665295, 0.03852815181016922, -0.0028956488240510225, 0.014935695566236973, -0.030372964218258858, 0.06594741344451904, 0.03286224603652954, 0.0040357960388064384, 0.029629893600940704, 0.00811338983476162, -0.021753357723355293, 0.0032555731013417244, 0.06498142331838608, 0.025617318227887154, -0.0012608959805220366, -0.01346813328564167, 0.04476993530988693, -0.031636182218790054, -0.02114032581448555, -0.04439840093255043, 0.0038244854658842087, -0.013430980034172535, -0.08671620488166809, 0.0077000572346150875, 0.0386396124958992, 0.0612289234995842, -0.016607601195573807, 0.0036085310857743025, -0.00022335622634273022, 0.056807659566402435, 0.03048442304134369, 0.020601600408554077, 0.02849671244621277, 0.06119176745414734, -0.016068877652287483, 0.009641326032578945, 0.011016004718840122, -0.004270327277481556, -0.009919976815581322, 0.02102886512875557, -0.008192340843379498, 0.01909688487648964, -0.024669906124472618, -0.01913403905928135, 0.032007716596126556, 0.00775114307180047, -0.04428694024682045, 0.01956130377948284, 0.0014478244120255113, 0.06089454144239426, -0.046999141573905945, -0.021920548751950264, 0.030261503532528877, -0.012910831719636917, 0.004423585254698992, -0.02862675115466118, 0.0579594150185585, -0.013848956674337387, -0.0625292956829071, -0.02868247963488102, -0.03849099576473236, 0.0030140753369778395, 0.007969419471919537, -0.022087739780545235, -0.02533866837620735, -0.024224063381552696, -0.020527293905615807, 0.011666189879179, 0.039456985890865326, -0.00032915655174292624, 0.07192911952733994, 0.05168047919869423, 0.05227493494749069, -0.0457359254360199, 0.039531294256448746, 0.07430694252252579, -0.0061674765311181545, 0.02331380359828472, 0.07846813648939133, -0.008577807806432247, -0.023629607632756233, -0.03093026578426361, -0.0023662117309868336, 0.004871748853474855, -0.017731495201587677, -0.03442269191145897, -0.03046584688127041, -0.017861532047390938, 0.006395041476935148, 0.037729352712631226, 0.0034018647857010365, -0.009316232986748219, 0.043098028749227524, 0.009446270763874054, -0.04599599912762642, -0.04644184187054634, -0.015149327926337719, -0.0175921693444252, 0.027326378971338272, 0.004542011767625809, 0.0027168476954102516, 0.0014060267712920904, -0.04105458781123161, 0.025710202753543854, -0.048856817185878754, -0.005642683710902929, -0.037302084267139435, 0.031338952481746674, 0.011192483827471733, 0.02136324718594551, -0.0027447128668427467, 0.007291369140148163, -0.004964632913470268, 0.022607887163758278, 0.041017431765794754, 0.022477850317955017, 0.05119748413562775, 0.041649043560028076, 0.0002192925603594631, 0.0005398864159360528, 0.02522720769047737, -0.05922263488173485, -0.0016811946406960487, 0.02533866837620735, -0.07085166871547699, -0.003631751984357834, 0.004727779421955347, -0.009046870283782482, 0.03613175079226494, -0.04098027944564819, 0.0183631032705307, -0.03468276560306549, 0.03529579937458038, -0.025765933096408844, 0.0002779253991320729, 0.0038964704144746065, -0.04023721069097519, -0.0096599031239748, 0.04105458781123161, -0.043098028749227524, 0.01047727931290865, 0.01037510670721531, 0.07140897214412689, -0.006283580791205168, -0.02323949709534645, -0.011963417753577232, -0.03211917728185654, 0.00011690281826304272, 0.03464561328291893, -0.063086599111557, 0.031134609133005142, 0.07051728665828705, 0.011740497313439846, 0.018651042133569717, 0.0007041743956506252, 0.015474420972168446, 0.005721634719520807, -0.00972492154687643, -0.04863389581441879, -0.0025798443239182234, 0.029351243749260902, 0.010282223112881184, -0.002570555778220296, -0.01915261521935463, -0.0016301085706800222, 0.013170906342566013, -0.004411974921822548, 0.021697627380490303, -0.054912831634283066, 0.027382109314203262, -0.024372678250074387, -0.0074957129545509815, 0.028106601908802986, 0.024484138935804367, -0.07348956912755966, 0.06810231506824493, -0.04967419058084488, -0.021660475060343742, 0.025375820696353912, -0.02303515188395977, -0.015297941863536835, -0.0008324699592776597, 0.07241211831569672, 0.013059445656836033, -0.025375820696353912, 0.004620963241904974, -0.032137755304574966, 0.009344098158180714, 0.049005430191755295, 0.022496428340673447, 0.006083881016820669, 0.07118605077266693, -0.003915047273039818, 0.008443126454949379, 0.01542797964066267, -0.014870677143335342, 0.037655044347047806, 0.0537610724568367, -0.011229637078940868, 0.02128893882036209, 0.08225778490304947, -0.00037908152444288135, 0.008833237923681736, 0.029927121475338936, 0.04276364669203758, -0.014006858691573143, -0.0650557279586792, -0.011796227656304836, -0.04633038118481636, 0.015585881657898426, 0.03967990726232529, -0.0010844169883057475, 0.05342669412493706, 0.06810231506824493, 0.0077557871118187904, 0.0245955977588892, 0.008118033409118652, -0.025970276445150375, 0.0363546721637249, 0.018855387344956398, -0.0183631032705307, -0.05164332687854767, 0.01264146901667118, -0.006464703939855099, -0.016087453812360764, -0.02528293803334236, 0.0572163462638855, 0.023703915998339653, -0.009957130998373032, 0.04577307775616646, 0.04796513170003891, 0.020768791437149048, 0.02301657572388649, 0.00384770636446774, 0.011248214170336723, 0.029221205040812492, 0.007110245525836945, -0.062454987317323685, -0.00713346665725112, 0.007648970931768417, -0.033698197454214096, -0.04770505800843239, 0.042912259697914124, -0.008661403320729733, 0.043023720383644104, -0.037264931946992874, 0.039345528930425644, -0.03076307475566864, 0.013495998457074165, -0.037432122975587845, 0.015975993126630783, -0.037785083055496216, 0.058591026812791824, -0.03613175079226494, 0.013932552188634872, 0.052832238376140594, 0.022570734843611717, -0.004632573574781418, -0.05268362537026405, 0.021604744717478752, -0.021957702934741974, 0.0033345241099596024, -0.026471849530935287, 0.045921690762043, -0.030335810035467148, 0.014768505468964577, 0.025450129061937332, 0.0018971491372212768, 0.06947699189186096, 0.05725350230932236, -0.03655901551246643, 0.016719061881303787, 0.015818091109395027, 0.017545728012919426, -0.049042582511901855, 0.01817733608186245, -0.010644469410181046, 0.048893969506025314, -0.0022547512780874968, 0.0030698056798428297, 0.024577021598815918, -0.05335238575935364, 0.0610431544482708, -0.03997713699936867, 0.029815660789608955, -0.010997427627444267, 0.03856530413031578, -0.058813948184251785, -0.009316232986748219, 0.027995141223073006, -0.06914260983467102, 0.0007047549006529152, 0.010245069861412048, 0.0057773650623857975, 0.03713489696383476, -0.024446984753012657, -0.06546441465616226, -0.039642754942178726, 0.05565590038895607, -0.011777650564908981, 0.016830522567033768, -0.013746784999966621, 0.022440697997808456, 0.022013431414961815, -0.0011157651897519827, 0.04276364669203758, -0.10670477151870728, -0.006292869336903095, -0.018892541527748108, -0.09102600812911987, 0.06802801042795181, -0.006710845977067947, 0.013728207908570766, 0.008090168237686157, 0.004625607281923294, 0.01543726772069931, 0.01577164977788925, -0.005568376742303371, 0.02719634212553501, -0.006650471594184637, -0.027939410880208015, -0.037636466324329376, 0.002493926789611578, -0.00450253626331687, -0.05517290532588959, 0.02136324718594551, 0.028310945257544518, 0.025412974879145622, -0.046887680888175964, 0.0022628786973655224, 0.007328522391617298, -0.04863389581441879, 0.006571520585566759, 0.028143756091594696, -0.007221706211566925, -0.02693626657128334, -0.017842955887317657, 0.0390111468732357, -0.0417233482003212, 0.041017431765794754, 0.05892540514469147, -0.0761646181344986, -0.02331380359828472, 0.02102886512875557, -0.026118891313672066, -0.009975707158446312, -0.026304658502340317, -0.018799657002091408, 0.023648185655474663, -0.058293797075748444, -0.0006507663056254387, -0.00768148060888052, -0.01334738451987505, 0.0014420191291719675, -0.013802515342831612, -0.013607459142804146, 0.05168047919869423, 0.05580451712012291, 0.022162046283483505, -0.05996570363640785, -0.01701628975570202, 0.013858244754374027, -0.08433838188648224, 0.02526436187326908, -0.03080022893846035, -0.03800800070166588, -0.013365961611270905, 0.08634466677904129, -0.04618176445364952, -0.06330951303243637, -0.05231208726763725, 0.06903114914894104, 0.0328993983566761, -0.006441483274102211, -0.05268362537026405, 0.005410474259406328, 0.08032580465078354, -0.012901543639600277, -0.005726278759539127, -0.005684481468051672, -0.027772219851613045, -0.011443269439041615, 0.03512860834598541, 0.04187196493148804, -0.017852243036031723, -0.019839953631162643, -0.006590097211301327, -0.023555301129817963, 0.03596455976366997, -0.003241640515625477, 0.01449914276599884, 0.058739639818668365, 0.016384681686758995, 0.066170334815979, -0.013783938251435757, 0.03670763224363327, -0.03466419130563736, -0.01351457554847002, 0.048968277871608734, -0.020100029185414314, 0.02121463231742382, -0.05153186619281769, -0.04239211231470108, 0.05220063030719757, -0.054466988891363144, -0.031468991190195084, 0.008624250069260597, -0.035351529717445374, -0.07077736407518387, 0.0006646988331340253, 0.018130894750356674, -0.021994855254888535, -0.06312374770641327, -0.02702915109694004, -0.012362818233668804, 0.004518791101872921, 0.0043980423361063, 0.010895255953073502, -0.02099171094596386, -0.03524006903171539, 0.06379251182079315, -0.03815661743283272, 0.024316947907209396, 0.026471849530935287, -0.04815090075135231, -0.04001428931951523, 0.028292369097471237, 0.044844239950180054, 0.03893683850765228, 0.0801771953701973, -0.05227493494749069, 0.002742390614002943, 0.004685981664806604, -0.029146898537874222, -0.000856271421071142, 0.033642470836639404, -0.07066590338945389, -0.07750214636325836, 0.0006890807999297976, -0.028329523280262947, 0.028255214914679527, -0.0721520408987999, -0.02918405272066593, -0.037432122975587845, -0.03315947577357292, -0.010737353004515171, -0.04826236143708229, -0.0047301012091338634, 0.0015871499199420214, 0.06457273662090302, 0.033475279808044434, -0.030112888664007187, 0.025450129061937332, -0.033326663076877594, -0.02509717084467411, 0.0004052050644531846, 0.0009305783896706998, -0.004314446821808815, 0.0245955977588892, 0.023685337975621223, -0.007825450040400028, -0.022440697997808456, -0.05963132157921791, -0.02686196006834507, 0.04424978420138359, 0.020248642191290855, -0.014545584097504616, -0.0052618603222072124, -0.0125300083309412, 0.006859459914267063, 0.01053300965577364, 0.0009329004678875208, -0.012502143159508705, 0.023759646341204643, 0.04402686282992363, 0.020081451162695885, 0.031023148447275162, -0.031803373247385025, 0.05420691519975662, -0.02883109450340271, 0.0006136128213256598, 0.045475851744413376, -0.031561873853206635, 0.03798942640423775, 0.05914832651615143, 0.018372392281889915, -0.00960417278110981, 0.07412117719650269, 0.0627150610089302, 0.017192769795656204, -0.06397827714681625, 0.017768647521734238, 0.009325521066784859, -0.022459274157881737, -0.07913689315319061, -0.028459560126066208, -0.014944984577596188, 0.0038871821016073227, -0.07118605077266693, -0.008522077463567257, -0.08738496899604797, -0.013477422297000885, -0.03219348192214966 ]
718,558
pytorch_optimizer.optimizer.shampoo_utils
merge_small_dims
Merge small dimensions. If there are some small dimensions, we collapse them e.g. [1, 2, 512, 1, 2048, 1, 3, 4] --> [1024, 2048, 12] if max_dim = 1024 [1, 2, 768, 1, 2048] --> [2, 768, 2048]. :param shape_to_merge: List[int]. Shape to merge small dimensions. :param max_dim: int. Maximal dimension of output shape used in merging.
def merge_small_dims(shape_to_merge: List[int], max_dim: int) -> List[int]: r"""Merge small dimensions. If there are some small dimensions, we collapse them e.g. [1, 2, 512, 1, 2048, 1, 3, 4] --> [1024, 2048, 12] if max_dim = 1024 [1, 2, 768, 1, 2048] --> [2, 768, 2048]. :param shape_to_merge: List[int]. Shape to merge small dimensions. :param max_dim: int. Maximal dimension of output shape used in merging. """ merged_shape: List[int] = [] product: int = 1 for dim in shape_to_merge: product *= dim if product > max_dim: merged_shape.append(product // dim) product = dim merged_shape.append(product) return merged_shape if len(merged_shape) > 1 else [1]
(shape_to_merge: List[int], max_dim: int) -> List[int]
[ -0.05748441442847252, -0.03819737583398819, -0.0528133325278759, -0.0009558761375956237, 0.02478685788810253, 0.010509928688406944, 0.03814087063074112, -0.012675954028964043, -0.03454338759183884, 0.0118189612403512, -0.05172090604901314, -0.0491216741502285, -0.022583162412047386, -0.0161321759223938, 0.03128493204712868, 0.016320526599884033, 0.04720050469040871, -0.03823504596948624, 0.07417222112417221, 0.031548622995615005, 0.02211228758096695, 0.030832892283797264, -0.00524554681032896, -0.049536045640707016, -0.015840234234929085, 0.023506077006459236, 0.02086917869746685, 0.030663376674056053, -0.015614213421940804, -0.017507130280137062, 0.05744674429297447, -0.01966373808681965, 0.07029221206903458, 0.04177602380514145, -0.000552395184058696, 0.06256986409425735, 0.05194692313671112, 0.13207100331783295, -0.021584907546639442, -0.010999638587236404, -0.0669395849108696, -0.03015483170747757, 0.014380521140992641, -0.00412721885368228, 0.04072126746177673, 0.0809904932975769, -0.016716061159968376, 0.06200481206178665, -0.032829400151968, 0.025521421805024147, 0.02510705217719078, -0.03731213137507439, -0.031755805015563965, 0.056429654359817505, -0.13063955307006836, 0.01363653875887394, 0.011479930952191353, -0.01474780309945345, -0.018401792272925377, -0.04946070536971092, -0.04456360638141632, -0.004120155703276396, 0.009393955580890179, -0.04203971475362778, -0.000985894468612969, 0.0031336727552115917, -0.09522975236177444, 0.021886266767978668, -0.05383042246103287, 0.004134282004088163, 0.011922554112970829, 0.0217920932918787, 0.02069966308772564, -0.005485692992806435, -0.008113175630569458, 0.014521783217787743, 0.06840871274471283, -0.04678613319993019, -0.01647120527923107, -0.05514887347817421, 0.016179263591766357, -0.0020224079489707947, 0.003736392827704549, 0.023995786905288696, 0.02211228758096695, -0.02467384748160839, 0.04411156475543976, 0.09153808653354645, -0.05612829327583313, -0.0994487926363945, 0.04678613319993019, 0.04625875502824783, 0.025182392448186874, -0.023430736735463142, 0.005415061954408884, 0.034750569611787796, -0.02069966308772564, -0.0056457906030118465, -0.05499819293618202, -0.05511120334267616, -0.056919362396001816, -0.0393274761736393, -0.032961245626211166, -0.014380521140992641, -0.022413646802306175, -0.011960223317146301, 0.039591167122125626, 0.0026557347737252712, -0.02879871241748333, 0.06505608558654785, -0.0037199121434241533, -0.021716753020882607, -0.016772566363215446, -0.005231420509517193, 0.04373486712574959, -0.041550006717443466, 0.030418522655963898, 0.03827271610498428, 0.03614436089992523, 0.01853363774716854, -0.048556625843048096, -0.004244937561452389, 0.008518127724528313, -0.04004320502281189, 0.03847990185022354, 0.036276206374168396, 0.01176245603710413, 0.04460127651691437, -0.0002090979105560109, 0.026915211230516434, -0.04362185671925545, 0.003449158975854516, -0.052135273814201355, 0.04516632482409477, -0.00566462567076087, -0.06166578456759453, -0.08453147113323212, -0.006182588171213865, 0.052888672798871994, -0.02721657231450081, -0.0022366559132933617, -0.07164832949638367, -0.037086110562086105, 0.04203971475362778, -0.05997063219547272, 0.012459350749850273, 0.04456360638141632, -0.04814225435256958, 0.06720327585935593, 0.045769043266773224, -0.02444782666862011, -0.00885715801268816, 0.01029332634061575, -0.02098218724131584, -0.007303270511329174, 0.004769963212311268, 0.02260199747979641, -0.047351185232400894, 0.04350884631276131, -0.011508183553814888, -0.010820706374943256, -0.024372488260269165, 0.018844416365027428, -0.02586045302450657, -0.06385064125061035, -0.028949391096830368, 0.04603273421525955, -0.011611776426434517, -0.017337616533041, 0.033884160220623016, 0.006846521981060505, -0.009991966187953949, 0.029589781537652016, -0.06309724599123001, 0.0028558566700667143, 0.0454300157725811, -0.03944048658013344, -0.05326537415385246, -0.002542724832892418, 0.0070395804941654205, -0.010208568535745144, 0.0029900558292865753, 0.0037104946095496416, 0.02510705217719078, -0.06539510935544968, 0.07812757045030594, -0.04064592719078064, -0.016781983897089958, 0.030060656368732452, -0.002676923992112279, 0.024768022820353508, -0.044262245297431946, -0.04520399495959282, -0.012355758808553219, -0.04497797414660454, 0.020718498155474663, -0.02248898707330227, -0.0005850621382705867, 0.007246765308082104, 0.020398302003741264, -0.022093452513217926, 0.035127270966768265, 0.001518571749329567, 0.011677699163556099, 0.03465639799833298, -0.02499404177069664, 0.002787579782307148, -0.001683377893641591, 0.06053568422794342, -0.003967121243476868, -0.026180647313594818, -0.009332741610705853, -0.028761042281985283, 0.003406780306249857, 0.05330304428935051, -0.037086110562086105, -0.027480261400341988, 0.0031477990560233593, -0.039478156715631485, 0.013485858216881752, -0.04124864563345909, -0.03913912549614906, 0.02879871241748333, 0.04897099360823631, 0.006728802807629108, 0.07115862518548965, 0.006766472943127155, -0.05383042246103287, 0.035956010222435, -0.018326453864574432, -0.021547237411141396, -0.05966927483677864, 0.0019164610421285033, -0.007034871727228165, 0.007392736617475748, 0.07379551976919174, 0.035824164748191833, -0.06852172315120697, 0.02857269160449505, 0.024372488260269165, -0.022564327344298363, -0.03821621090173721, -0.004713458474725485, -0.0230352021753788, -0.05130653455853462, 0.042529426515102386, -0.03638921678066254, -0.004487438127398491, 0.022733842954039574, 0.0417383573949337, -0.03704844042658806, -0.0021895684767514467, 0.014163918793201447, -0.02928842231631279, 0.04554302617907524, 0.01960723288357258, -0.07142230868339539, -0.05141954496502876, -0.051758576184511185, -0.02781929261982441, 0.0006545161595568061, 0.04136165603995323, 0.02265850268304348, 0.06818269193172455, -0.06321025639772415, 0.001314918277785182, 0.01836412213742733, 0.00970002356916666, 0.013354013673961163, -0.0061731706373393536, 0.13402985036373138, 0.017337616533041, 0.007425697986036539, -0.021660247817635536, 0.043659526854753494, -0.014437026344239712, -0.021264713257551193, 0.057785775512456894, -0.00815555453300476, 0.008277981542050838, 0.009130265563726425, -0.03486358001828194, -0.006135500501841307, -0.010368666611611843, 0.02346840687096119, 0.0313037671148777, -0.024523166939616203, -0.061100732535123825, -0.023826273158192635, -0.0067617641761898994, -0.005217294674366713, 0.03774533420801163, -0.011677699163556099, 0.09033264964818954, -0.0773741751909256, 0.009888374246656895, 0.0337899848818779, 0.011753038503229618, 0.021754423156380653, -0.009356285445392132, 0.03184998035430908, 0.011724785901606083, -0.004459185991436243, -0.02069966308772564, 0.014766638167202473, -0.05315236374735832, -0.004089548718184233, -0.04124864563345909, 0.00031342613510787487, 0.061816465109586716, -0.025728607550263405, -0.02184859849512577, -0.013080906122922897, 0.013796635903418064, 0.000533854472450912, 0.0032137215603142977, 0.021641412749886513, -0.006662880536168814, 0.009393955580890179, 0.03450571745634079, 0.012073233723640442, -0.029966481029987335, -0.03245270252227783, 0.02429714798927307, -0.0075339991599321365, -0.03058803640305996, -0.010396919213235378, 0.04531700536608696, 0.00037964293733239174, 0.013222168199717999, -0.051381874829530716, 0.012967895716428757, 0.04595739394426346, 0.013382266275584698, 0.04964905604720116, -0.024485496804118156, 0.029439100995659828, 0.0002990055945701897, -0.003861174685880542, -0.03424202650785446, -0.044751957058906555, 0.0004402680788189173, -0.0010335705010220408, 0.005885936785489321, 0.021340053528547287, 0.03657756745815277, 0.027084726840257645, -0.033281441777944565, -0.025144722312688828, -0.06057335436344147, 0.0583508238196373, -0.04429991543292999, -0.017582470551133156, -0.06562113016843796, 0.01089604664593935, 0.029796967282891273, -0.04957371577620506, -0.011291581206023693, 0.050176434218883514, 0.05100517347455025, 0.0001119799489970319, 0.0033526297193020582, 0.011649446561932564, -0.009709441103041172, -0.02369442768394947, 0.05673101544380188, -0.05537489429116249, -0.051268864423036575, -0.0014914964558556676, -0.03644572198390961, -0.018674900755286217, -0.04256709665060043, 0.010434589348733425, -0.013598868623375893, -0.04128631576895714, 0.09357226639986038, -0.09040798991918564, 0.001515040174126625, -0.0322643518447876, 0.03294241055846214, -0.01749771274626255, 0.024749187752604485, 0.034581057727336884, 0.017252858728170395, -0.0009458700660616159, 0.010566433891654015, -0.0645287036895752, -0.046597786247730255, -0.09070935100317001, 0.03222668170928955, 0.029815802350640297, -0.002304932801052928, 0.028290167450904846, 0.050666145980358124, -0.006780599243938923, 0.014305180869996548, -0.01630169153213501, 0.02960861660540104, 0.013118576258420944, 0.032961245626211166, 0.02233830839395523, 0.0010941956425085664, 0.004958313424140215, -0.008405118249356747, -0.01285488624125719, -0.0015032682567834854, -0.01127274613827467, 0.0774495080113411, -0.04554302617907524, 0.06223083287477493, 0.009563470259308815, 0.017469460144639015, -0.011404591612517834, 0.027687447145581245, -0.02228180319070816, -0.030286677181720734, -0.02868570201098919, 0.10035286843776703, 0.031209591776132584, 0.02271500788629055, -0.014154501259326935, 0.012487603351473808, 0.011790708638727665, -0.006521617993712425, -0.07100794464349747, -0.06626152247190475, 0.004256709478795528, 0.050515465438365936, -0.0035974846687167883, -0.04509098455309868, 0.031228426843881607, 0.05985762178897858, 0.031058911234140396, -0.015143338590860367, 0.0003499189333524555, 0.003409134689718485, 0.01847713254392147, 0.02522006258368492, -0.01810043305158615, -0.007011327892541885, 0.048933323472738266, 0.013561198487877846, 0.016094505786895752, 0.04158767685294151, 0.0871683731675148, -0.011621193960309029, -0.026067636907100677, 0.057635094970464706, 0.00804254412651062, 0.023619087412953377, 0.05503586307168007, -0.04603273421525955, 0.014512365683913231, 0.01754480041563511, 0.0711962953209877, -0.06931279599666595, 0.03951582685112953, 0.007350358180701733, -0.022093452513217926, -0.026613852009177208, 0.044262245297431946, 0.014032073318958282, -0.042529426515102386, -0.022206462919712067, 0.007543416693806648, 0.045505356043577194, 0.016584215685725212, -0.010057888925075531, -0.005669334437698126, 0.013410518877208233, 0.06321025639772415, 0.013683626428246498, 0.010933716781437397, -0.02804531157016754, 0.045769043266773224, -0.0448649637401104, 0.02493753656744957, 0.031379107385873795, 0.01576489396393299, 0.016207516193389893, 0.005273799411952496, 0.009737693704664707, -0.037462811917066574, -0.053001683205366135, -0.027178902179002762, 0.021114032715559006, -0.014324015937745571, -0.0014079160755500197, 0.022846853360533714, 0.03136027231812477, 0.024768022820353508, -0.016819654032588005, -0.021208208054304123, -0.04897099360823631, 0.01491731870919466, -0.04787856340408325, -0.021980442106723785, -0.013655373826622963, 0.031040076166391373, 0.05477217584848404, -0.010086141526699066, -0.0035951302852481604, 0.004435642156749964, 0.029533276334404945, 0.02101985737681389, 0.008824196644127369, 0.007388027850538492, 0.035353291779756546, -0.06667589396238327, 0.005292634479701519, -0.06038500368595123, 0.04554302617907524, -0.02439132146537304, 0.012223913334310055, 0.027593271806836128, -0.02145306207239628, 0.07066891342401505, 0.02320471778512001, 0.07835359126329422, 0.0034232609905302525, -0.011611776426434517, 0.009238566271960735, -0.05661800503730774, 0.033111926168203354, -0.047351185232400894, -0.07164832949638367, 0.027084726840257645, 0.05473450571298599, -0.03184998035430908, -0.015661301091313362, -0.03424202650785446, 0.014794890768826008, -0.018345288932323456, 0.051645565778017044, -0.002061255043372512, 0.0331495963037014, -0.03776416927576065, 0.0024932827800512314, 0.022131122648715973, 0.020888011902570724, -0.04373486712574959, 0.031209591776132584, -0.03348862752318382, -0.004459185991436243, -0.007303270511329174, 0.07955902814865112, -0.0011171507649123669, 0.059631604701280594, -0.004042461514472961, -0.056203633546829224, -0.001434991369023919, 0.045241665095090866, -0.002387335989624262, 0.006611084099858999, 0.000512370781507343, -0.06614851206541061, 0.02586045302450657, -0.04938536509871483, 0.014342851005494595, 0.025333072990179062, 0.05624130368232727, 0.0061731706373393536, -0.01879732869565487, 0.0254837516695261, 0.0018175772856920958, -0.016810236498713493, -0.06189180165529251, 0.03977951407432556, -0.017836743965744972, 0.006695841904729605, -0.024278312921524048, -0.0034185522235929966, -0.050666145980358124, -0.06418967247009277, 0.05119352415204048, -0.00009395426604896784, 0.00596598582342267, 0.009492838755249977, -0.012930226512253284, 0.037688832730054855, -0.0417383573949337, 0.03559814766049385, 0.02081267349421978, 0.01480430830270052, -0.00437207380309701, 0.008795944042503834, -0.07417222112417221, -0.03081405721604824, -0.0023143503349274397, -0.006757055409252644, 0.012619448825716972, 0.08784642815589905, 0.03508960083127022, -0.0031360271386802197, -0.03559814766049385, 0.0003045972262043506, -0.004788798280060291, 0.009285653941333294, 0.004800570197403431, -0.01972024329006672, -0.018119268119335175, -0.046597786247730255, -0.007185551803559065, -0.0025215353816747665, 0.027536766603589058, -0.05981995537877083, 0.0337899848818779, -0.04038223624229431, -0.00715729920193553, -0.01712101325392723, -0.015378776006400585, 0.04309447482228279, -0.023976951837539673, -0.04158767685294151, -0.061967141926288605, -0.028987061232328415, -0.01830761879682541, -0.026482006534934044, 0.03799019008874893, -0.041173305362463, -0.004953604657202959, 0.01868431828916073, 0.04840594530105591, -0.08581224828958511, 0.005975402891635895, 0.02499404177069664, -0.019739078357815742, 0.0006439214921556413, 0.0024862196296453476, 0.00755283422768116, -0.02211228758096695, -0.01236517634242773, 0.03271638974547386, -0.04595739394426346, -0.017686063423752785, -0.02346840687096119, 0.019626067951321602, 0.004845303017646074, -0.004103675018996, -0.0033526297193020582, 0.026538511738181114, 0.010020218789577484, -0.02874220721423626, -0.08920255303382874, 0.012930226512253284, -0.0663745328783989, -0.030173666775226593, 0.0378018394112587, -0.04124864563345909, -0.004207267891615629, -0.03220784664154053, -0.007491620257496834, -0.01491731870919466, -0.010359249077737331, 0.03505193069577217, 0.00991662684828043, 0.04509098455309868, -0.029024731367826462, 0.029759297147393227, 0.02678336761891842, 0.009605849161744118, -0.01024623867124319, -0.01705509051680565, -0.0008687642985023558, -0.03200066089630127, -0.011611776426434517, 0.026180647313594818, -0.0378018394112587, 0.056542664766311646, -0.04384787380695343, -0.02015344798564911, 0.001726933871395886, 0.022884521633386612, 0.010566433891654015, -0.032132506370544434, 0.015020910650491714, -0.008353321813046932, 0.0884491503238678, 0.029043566435575485, -0.02113286778330803, 0.036747079342603683, 0.0000565049922442995, -0.001640999224036932, 0.007312688045203686, 0.000821088207885623, 0.009337450377643108, -0.016160428524017334, -0.04407389461994171, -0.01680081896483898, 0.08317535370588303, 0.02401462197303772, -0.03075755201280117, 0.03823504596948624, -0.03156745806336403, -0.06731628626585007, 0.027951136231422424, 0.01097138598561287, 0.015218677930533886, -0.09688723087310791, 0.0417383573949337, 0.0021471898071467876, 0.03318726643919945, -0.06004597246646881, -0.04166301712393761, 0.01004847139120102, 0.038988444954156876, -0.030625706538558006, 0.05168323591351509, -0.002089507644996047, 0.009097304195165634, -0.008480457589030266, 0.008000165224075317, -0.009813033975660801, -0.028648031875491142, -0.0460704043507576, -0.02906240150332451, 0.0052785081788897514, 0.021114032715559006, -0.023769767954945564, 0.014361686073243618, -0.022451316937804222, 0.011056143790483475, 0.037783004343509674, -0.04264243692159653, 0.0033055420499294996, 0.016546545550227165, 0.06893609464168549, 0.016047418117523193, 0.004084840416908264, -0.011169154196977615, -0.00508074089884758, 0.04863196611404419, -0.014794890768826008, 0.049686726182699203, 0.0016304044984281063, -0.007227930705994368, 0.04049524664878845, -0.01274187583476305, -0.00044615400838665664, -0.01793091744184494, 0.035183776170015335, -0.012487603351473808, 0.03516494110226631, 0.027480261400341988, 0.012685371562838554, -0.020567817613482475, 0.07266542315483093, -0.07259008288383484, -0.06991551071405411, 0.031096581369638443, -0.005349139217287302, -0.00740215415135026, 0.01951305754482746, -0.052022263407707214, 0.001267830841243267, 0.03646455705165863, -0.014465278014540672, -0.009850704111158848, -0.03412901610136032, -0.0687854140996933, 0.035503972321748734, -0.02032296359539032, -0.03819737583398819, 0.024485496804118156, 0.05010109394788742, 0.05081682279706001, -0.012911391444504261, -0.04256709665060043 ]
718,560
pytorch_optimizer.optimizer.utils
normalize_gradient
Normalize gradient with stddev. :param x: torch.Tensor. gradient. :param use_channels: bool. channel-wise normalization. :param epsilon: float. eps.
def normalize_gradient(x: torch.Tensor, use_channels: bool = False, epsilon: float = 1e-8): r"""Normalize gradient with stddev. :param x: torch.Tensor. gradient. :param use_channels: bool. channel-wise normalization. :param epsilon: float. eps. """ size: int = x.dim() if size > 1 and use_channels: s = x.std(dim=tuple(range(1, size)), keepdim=True).add_(epsilon) x.div_(s) elif torch.numel(x) > 2: s = x.std().add_(epsilon) x.div_(s)
(x: torch.Tensor, use_channels: bool = False, epsilon: float = 1e-08)
[ -0.04852322116494179, -0.011131797917187214, 0.0035991028416901827, -0.014958352781832218, 0.055980097502470016, 0.017545068636536598, -0.02365506999194622, -0.002720511518418789, 0.03360946476459503, 0.04356386139988899, 0.0025265077129006386, -0.03009510040283203, 0.005222490057349205, 0.0268483255058527, 0.010409301146864891, 0.029131771996617317, -0.04634680971503258, 0.05626552924513817, 0.06093945726752281, 0.019926631823182106, -0.025403331965208054, 0.005048555787652731, -0.013807710260152817, -0.010070351883769035, 0.009990074671804905, 0.030576763674616814, 0.030148617923259735, -0.018660033121705055, -0.025956355035305023, 0.016617419198155403, 0.04031708836555481, 0.018392441794276237, 0.05762132257223129, -0.003590183099731803, 0.03451927751302719, -0.0014862465905025601, -0.015029710717499256, 0.012710586190223694, -0.0632585808634758, -0.04099498689174652, -0.05619417130947113, -0.004691767040640116, -0.004239092115312815, 0.04285028576850891, 0.0009265348198823631, 0.008085716515779495, -0.031094107776880264, 0.08063417673110962, -0.03742710128426552, 0.0009583113132975996, -0.029328005388379097, -0.015475695952773094, 0.014655082486569881, 0.02014070376753807, -0.0029189749620854855, 0.013673914596438408, 0.05105641856789589, -0.006939534097909927, 0.026473697274923325, -0.03849746659398079, 0.016733374446630478, 0.009713564068078995, -0.015984119847416878, -0.053803689777851105, 0.010944483801722527, -0.04442015290260315, -0.05062827095389366, 0.03996029868721962, 0.01994447037577629, 0.028204122558236122, -0.045740269124507904, 0.012193243019282818, 0.021014835685491562, -0.016117915511131287, -0.03967486694455147, 0.04631113260984421, 0.027115916833281517, 0.01923089474439621, -0.01093556359410286, -0.052697643637657166, 0.046061381697654724, 0.08277490735054016, -0.002173064276576042, -0.002776259556412697, 0.06329426169395447, -0.010980162769556046, -0.04513373225927353, 0.01871355064213276, 0.005641716532409191, 0.06168871000409126, 0.021781930699944496, 0.005802270956337452, 0.05762132257223129, -0.0002737235918175429, 0.01561841182410717, 0.0828462615609169, -0.040174372494220734, 0.007898402400314808, 0.06186710670590401, -0.038283392786979675, 0.0027361209504306316, 0.07289186865091324, -0.016795814037322998, 0.03269965574145317, 0.006747760344296694, -0.007586212828755379, 0.0029122852720320225, -0.06093945726752281, -0.002090557012706995, 0.01202376838773489, -0.018240805715322495, -0.020283419638872147, 0.008108016103506088, -0.02270958013832569, -0.003155347192659974, -0.02447568252682686, -0.03154009208083153, 0.01421801745891571, 0.007969760335981846, -0.02779381535947323, -0.01643010415136814, 0.058192186057567596, -0.027972208335995674, -0.00945489201694727, -0.021175390109419823, 0.04934383183717728, 0.030184296891093254, 0.013995024375617504, 0.0004930926952511072, 0.04984333738684654, -0.017286397516727448, 0.025367654860019684, 0.003752967808395624, -0.0532328262925148, 0.0386045016348362, -0.015511374920606613, -0.007394439075142145, 0.016537141054868698, 0.08755587041378021, -0.04466990381479263, 0.03846178948879242, 0.05027148500084877, -0.04652520641684532, 0.007305242121219635, 0.04695335030555725, 0.05762132257223129, 0.020996997132897377, 0.029827509075403214, 0.017714543268084526, -0.018035652115941048, -0.024493522942066193, 0.04556187614798546, 0.0381406769156456, -0.020319098606705666, -0.007153606973588467, 0.019605521112680435, -0.06290179491043091, -0.06607721000909805, -0.014976192265748978, -0.001172941760160029, -0.04024573042988777, -0.028882019221782684, -0.004825562704354525, 0.021978164091706276, -0.047880999743938446, -0.0642932653427124, 0.005534679628908634, -0.0018497247947379947, -0.001620042254216969, 0.015823565423488617, 0.0697164535522461, 0.037105992436409, -0.02124674804508686, 0.02026558108627796, -0.02724079228937626, 0.026598574593663216, 0.03107626736164093, -0.015002951957285404, -0.08120503276586533, -0.013754191808402538, 0.058691687881946564, -0.04406336694955826, 0.027419187128543854, -0.05366097390651703, -0.0012487593339756131, -0.05216246098279953, -0.06589881330728531, 0.007126847747713327, -0.03459063544869423, -0.0024083214811980724, 0.05134184658527374, -0.026188267394900322, 0.014985112473368645, -0.019373608753085136, 0.001974600600078702, -0.0005095383967272937, -0.005507920868694782, -0.05366097390651703, 0.03425168618559837, -0.07635271549224854, -0.018588675186038017, 0.0017460332019254565, 0.001469522132538259, -0.041601523756980896, -0.00838006753474474, -0.07977788150310516, -0.0030148618388921022, -0.03526853024959564, -0.027347829192876816, -0.024778952822089195, -0.020443974062800407, 0.006935073994100094, 0.018588675186038017, -0.0105430968105793, -0.02128242701292038, -0.031183304265141487, 0.10054297000169754, -0.009570848196744919, 0.015511374920606613, 0.004252471495419741, -0.05002173036336899, -0.08812673389911652, 0.0909096822142601, 0.012389476411044598, -0.007398899178951979, 0.002296825172379613, 0.011399389244616032, -0.030416209250688553, 0.01962336152791977, -0.032913729548454285, 0.040887948125600815, -0.0062750158831477165, 0.03503661975264549, -0.003810945898294449, 0.032396383583545685, -0.04281460493803024, 0.015234864316880703, 0.039032649248838425, 0.04070955514907837, 0.03541124612092972, -0.03732006624341011, -0.04659656435251236, -0.026705609634518623, -0.0029658034909516573, 0.020711565390229225, -0.0010937793413177133, 0.004310449585318565, -0.011167475953698158, 0.009383534081280231, 0.010186308063566685, -0.05947662517428398, -0.03956783190369606, 0.022638222202658653, 0.008268570527434349, -0.045347802340984344, 0.044919658452272415, 0.008375607430934906, 0.0899820327758789, 0.011399389244616032, -0.03146873414516449, -0.04252917692065239, -0.016751214861869812, 0.00951732974499464, 0.030380530282855034, -0.029881026595830917, -0.005026256199926138, 0.03396625444293022, 0.0687887966632843, 0.06247364729642868, 0.024154573678970337, 0.031682807952165604, 0.10824959725141525, 0.046061381697654724, -0.02645585872232914, -0.005507920868694782, -0.00044570674072019756, 0.05548059195280075, -0.0762813538312912, 0.06618424504995346, 0.05944094434380531, -0.00914270244538784, -0.05212678387761116, -0.03728438541293144, 0.092408187687397, 0.023244762793183327, 0.008397907018661499, 0.029113931581377983, -0.04777396470308304, -0.0288641806691885, 0.029345843940973282, 0.0236193910241127, -0.018624354153871536, 0.0268483255058527, 0.025403331965208054, -0.02467191591858864, -0.01591276191174984, -0.0019199674716219306, -0.0777798667550087, 0.040459804236888885, -0.011194235645234585, 0.002095016883686185, 0.030612442642450333, 0.014940513297915459, 0.05983341112732887, 0.048665937036275864, -0.04042412340641022, 0.009722483344376087, -0.04038844630122185, 0.013950426131486893, -0.00811693537980318, -0.024457843974232674, -0.010025753639638424, -0.04210102930665016, -0.01994447037577629, 0.02681264653801918, -0.04277892783284187, 0.05630120635032654, -0.02558172680437565, -0.0012197702890262008, 0.0487372949719429, 0.0007447957759723067, 0.0698234885931015, 0.01332604605704546, 0.04174423962831497, -0.07485420256853104, 0.03032701276242733, 0.002111741341650486, 0.045312125235795975, -0.03230718895792961, -0.015163506381213665, 0.002345883520320058, -0.039817582815885544, 0.009668964892625809, -0.004111986141651869, -0.030933553352952003, -0.037177350372076035, 0.05066395178437233, -0.007042110897600651, 0.0005025698919780552, -0.02088996022939682, -0.08084824681282043, 0.08819808810949326, -0.0014182338491082191, -0.010320103727281094, -0.05498109012842178, -0.024172412231564522, -0.03384137898683548, -0.034162487834692, -0.015404338017106056, -0.021621376276016235, 0.047916680574417114, -0.006114460993558168, -0.013798790983855724, 0.06290179491043091, 0.029310164973139763, -0.009883037768304348, -0.03537556901574135, -0.024975186213850975, 0.03732006624341011, -0.04210102930665016, 0.013780951499938965, 0.02495734766125679, -0.024315128102898598, -0.009909797459840775, 0.0220673605799675, -0.0044576250948011875, -0.03029133379459381, -0.0027316610794514418, -0.0027361209504306316, -0.006047563161700964, -0.0208542812615633, -0.009570848196744919, -0.03657080978155136, -0.04063819721341133, -0.015190265141427517, -0.02629530429840088, -0.027615420520305634, -0.01338848378509283, 0.0677541121840477, 0.07870751619338989, -0.009802760556340218, 0.015074308961629868, -0.0011484125861898065, -0.015725448727607727, 0.07267779111862183, -0.012924659065902233, -0.019141696393489838, -0.012844381853938103, 0.01871355064213276, -0.0381406769156456, -0.02724079228937626, 0.0008574071107432246, -0.02977398969233036, 0.04684631526470184, -0.07232100516557693, 0.02740134857594967, 0.014869156293570995, 0.012960338033735752, -0.030023742467164993, -0.02531413547694683, -0.04991469532251358, 0.015886003151535988, -0.013361725024878979, 0.03601778671145439, -0.035839393734931946, -0.002209858037531376, -0.01172941830009222, 0.00925865862518549, 0.0035143655259162188, 0.07392655313014984, 0.01281762309372425, 0.0007152492180466652, -0.04984333738684654, 0.0387115404009819, 0.042743247002363205, 0.0025688763707876205, 0.0068414174020290375, -0.031218983232975006, -0.00198909523896873, 0.0073453807272017, 0.0003155347367282957, -0.0774230808019638, -0.0052670883014798164, 0.022566866129636765, 0.03127250075340271, -0.05094937980175018, -0.007782446686178446, -0.03774821013212204, -0.012764104641973972, -0.015966279432177544, -0.022477667778730392, -0.03630321845412254, -0.01835676282644272, -0.009927636943757534, 0.002548807067796588, 0.008678877726197243, 0.011256673373281956, 0.058691687881946564, -0.016260631382465363, -0.0030104019679129124, -0.017099082469940186, -0.02140730246901512, 0.009874118492007256, -0.04103066399693489, -0.01695636846125126, 0.0008791488944552839, 0.0031709568575024605, -0.02590283751487732, -0.048630256205797195, -0.04249349609017372, -0.03648161143064499, -0.05280468240380287, 0.04053116217255592, -0.014003943651914597, -0.025688763707876205, -0.006551526486873627, -0.04673927649855614, 0.0073097022250294685, 0.03505446016788483, 0.05983341112732887, 0.00941921304911375, 0.013638235628604889, -0.05333986505866051, -0.0024283910170197487, -0.015029710717499256, -0.00857630092650652, 0.05294739454984665, 0.00528046814724803, 0.04331411048769951, -0.004294840153306723, 0.05298307538032532, 0.03193255886435509, 0.04848754033446312, 0.024511361494660378, -0.007229424547404051, 0.006957373581826687, -0.05398208275437355, -0.006047563161700964, 0.03186120092868805, -0.0035701137967407703, -0.040852271020412445, -0.016608498990535736, -0.017125843092799187, 0.06208118051290512, -0.027437027543783188, 0.011622381396591663, -0.04780964180827141, 0.024903828278183937, 0.07406926900148392, 0.01835676282644272, 0.013566878624260426, -0.04884433001279831, 0.029149610549211502, -0.009040125645697117, -0.03332403674721718, -0.05887008458375931, -0.0173131562769413, -0.00009735026833368465, 0.08769858628511429, -0.014191257767379284, 0.010899885557591915, 0.003284682985395193, -0.03505446016788483, -0.0004733020905405283, 0.017081243917346, 0.058227863162755966, -0.05002173036336899, 0.04513373225927353, -0.015957361087203026, -0.03475118800997734, -0.017848338931798935, 0.0039893402718007565, -0.013317126780748367, -0.0038198656402528286, 0.022210076451301575, -0.035000938922166824, -0.014869156293570995, 0.023904820904135704, 0.07082249224185944, -0.06065402552485466, -0.04727445915341377, 0.06450734287500381, -0.06076106056571007, 0.02033693715929985, 0.03332403674721718, 0.03482254594564438, 0.0326639749109745, -0.018107010051608086, 0.03225367143750191, -0.01312981266528368, 0.03084435500204563, 0.00516451196745038, 0.0025688763707876205, 0.0010207492159679532, 0.009642206132411957, -0.0702873095870018, 0.004497763700783253, -0.03878289833664894, -0.04802371561527252, -0.031415216624736786, -0.011622381396591663, -0.03630321845412254, 0.047952357679605484, 0.003195486031472683, -0.013718513771891594, -0.06618424504995346, 0.07139335572719574, 0.028293319046497345, -0.0016824802150949836, -0.037534136325120926, -0.005958366207778454, 0.01032902393490076, -0.03262829780578613, 0.02834683656692505, 0.028650106862187386, 0.018963303416967392, -0.06493548303842545, 0.06076106056571007, -0.010596615262329578, -0.0356610007584095, -0.04370657727122307, -0.06272339820861816, 0.055302198976278305, 0.023012850433588028, -0.04285028576850891, 0.01303169596940279, -0.01974823698401451, -0.02121106907725334, -0.03205743804574013, 0.020711565390229225, -0.03277101367712021, 0.05155592039227486, 0.008518322370946407, 0.04210102930665016, -0.006725461222231388, 0.02463623695075512, 0.05109209567308426, -0.020800761878490448, -0.02401185780763626, -0.001427153591066599, -0.02306636981666088, -0.10610886663198471, -0.030416209250688553, -0.023851303383708, 0.006020803935825825, -0.010391461662948132, -0.005293847527354956, -0.004937059246003628, -0.03685624152421951, 0.014913754537701607, -0.005704154260456562, -0.033145640045404434, 0.0011818615021184087, -0.040103014558553696, 0.009579768404364586, -0.05105641856789589, -0.024332968518137932, -0.029435042291879654, 0.030202137306332588, 0.07203557342290878, -0.03029133379459381, 0.017598586156964302, 0.05512380599975586, -0.0188384260982275, 0.06004748493432999, -0.03803364187479019, 0.03107626736164093, -0.06168871000409126, 0.009686804376542568, -0.11552807688713074, -0.016617419198155403, 0.07371248304843903, -0.05851329490542412, 0.04402768611907959, 0.020354777574539185, 0.008366687223315239, 0.02049749344587326, -0.008727936074137688, 0.025010865181684494, 0.04070955514907837, 0.0049459789879620075, 0.00037657900247722864, -0.01482455711811781, -0.035125818103551865, 0.015315141528844833, -0.046061381697654724, -0.026009872555732727, -0.036428093910217285, -0.07296322286128998, -0.03803364187479019, -0.018624354153871536, -0.029506400227546692, -0.06750436127185822, -0.0009165001683868468, 0.019855273887515068, 0.023744266480207443, 0.01478887815028429, -0.04277892783284187, -0.028204122558236122, -0.010293344967067242, 0.09833087772130966, 0.03494742140173912, 0.05066395178437233, -0.009936556220054626, -0.010070351883769035, 0.03150441497564316, 0.007046570535749197, 0.01013279054313898, -0.01056093629449606, 0.007434578146785498, -0.023744266480207443, 0.009981155395507812, 0.03269965574145317, -0.0029680333100259304, 0.047167424112558365, 0.04078091308474541, -0.0010586580028757453, 0.029631275683641434, -0.015217024832963943, -0.01864219270646572, 0.04395632818341255, -0.0009800530970096588, 0.03924672305583954, 0.04945087060332298, -0.06283043324947357, -0.015823565423488617, 0.019997989758849144, -0.006868176162242889, -0.08384527266025543, -0.04331411048769951, -0.050057411193847656, -0.0021429602056741714, -0.03781956806778908, -0.020087186247110367, 0.041244737803936005, -0.018499476835131645, -0.026116909459233284, 0.0077690668404102325, -0.02388698235154152, -0.02242415025830269, -0.03435872122645378, 0.053803689777851105, 0.028043566271662712, 0.014003943651914597, 0.045312125235795975, -0.0717858225107193, -0.053768008947372437, -0.01200592890381813, 0.01314765214920044, 0.06179574877023697, -0.0774230808019638, -0.007104548625648022, -0.0331813208758831, -0.04499101638793945, 0.020426135510206223, -0.02404753677546978, -0.01942712813615799, 0.05166295915842056, -0.03052324615418911, -0.015466776676476002, 0.06336561590433121, -0.014048542827367783, -0.011105038225650787, 0.037498459219932556, 0.07175014168024063, -0.017223959788680077, 0.03186120092868805, 0.010882046073675156, 0.029203129932284355, 0.06793250888586044, 0.06629128009080887, -0.008438045158982277, 0.024315128102898598, 0.02447568252682686, -0.03228934854269028, 0.03931808099150658, 0.010783928446471691, -0.03874721750617027, 0.027847332879900932, 0.044527191668748856, 0.039781905710697174, -0.039353758096694946, 0.017384514212608337, 0.019088178873062134, -0.07449741661548615, -0.05037852004170418, 0.01824972592294216, 0.035197172313928604, -0.0021529949735850096, -0.03592858836054802, 0.02752622403204441, 0.007184825837612152, -0.016216032207012177, 0.08570057153701782, 0.012353797443211079, 0.07046570628881454, 0.0037351283244788647, 0.0487372949719429, 0.011836454272270203, -0.04352818429470062, 0.01741127297282219, -0.008513863198459148, 0.02463623695075512, -0.05762132257223129, -0.0002043170970864594, 0.019052499905228615, -0.014325053431093693, -0.02736566960811615, 0.015663009136915207, 0.017108002677559853, 0.004825562704354525, -0.027544062584638596, -0.05433887243270874, 0.010873125866055489, 0.05319714918732643, -0.03466198965907097, -0.0075460742227733135, -0.031129786744713783, -0.03739142417907715, -0.047702606767416, 0.10018617659807205, 0.0019389218650758266, 0.04559755697846413, 0.02791869081556797, -0.02677696757018566, 0.011684819124639034, 0.011506425216794014, 0.015172425657510757 ]
718,562
pytorch_optimizer.optimizer.shampoo_utils
power_iteration
Compute the maximum eigenvalue of matrix, for scaling. Mostly, power_iteration method is faster than torch.einval in case of the symmetric PSD matrix. Also, I removed the validation, error of singular value every iteration, so that boosting the speed. :param mat_g: torch.Tensor. the symmetric PSD matrix. :param num_iters: int. Number of iterations.
def precondition_gradient(self, grad: torch.Tensor) -> torch.Tensor: r"""Get preconditioned gradient.""" return grad / (torch.sqrt(self.statistics) + self.diagonal_eps)
(mat_g: torch.Tensor, num_iters: int = 100) -> torch.Tensor
[ -0.03686351701617241, -0.018698161467909813, 0.003203079802915454, 0.019330868497490883, 0.014177635312080383, -0.005810915492475033, 0.006672562565654516, -0.02324366196990013, 0.010398042388260365, -0.004786929115653038, 0.03195171058177948, -0.0011842446401715279, 0.023110460489988327, 0.006089806091040373, -0.04838544502854347, -0.004745303653180599, 0.011696756817400455, 0.022977259010076523, 0.0005822362727485597, -0.028721574693918228, -0.04225817695260048, -0.082451730966568, 0.019663872197270393, 0.051915284246206284, -0.04522190988063812, -0.006963940802961588, 0.007246994413435459, -0.01729954592883587, 0.0261907447129488, -0.02637389674782753, -0.051948584616184235, 0.035797905176877975, 0.020929286256432533, 0.0014204691397026181, 0.02659034915268421, 0.024492425844073296, 0.03263436630368233, -0.053846705704927444, -0.046886928379535675, -0.018681511282920837, -0.033683329820632935, 0.015776053071022034, -0.015651175752282143, -0.017024816945195198, 0.04545501247048378, 0.006830739323049784, -0.004262448288500309, -0.024042870849370956, -0.033416926860809326, 0.04898485168814659, 0.020030176267027855, 0.01272074319422245, 0.01023154053837061, -0.0397273488342762, -0.02812216803431511, -0.027089854702353477, 0.04418959841132164, -0.040226854383945465, -0.014627190306782722, -0.01718299463391304, 0.04905145242810249, -0.04199177399277687, -0.0024017896503210068, -0.012978821061551571, 0.01859826035797596, 0.007588323205709457, -0.014244236052036285, -0.0182985570281744, 0.057110145688056946, 0.010664445348083973, -0.03095269948244095, 0.011247201822698116, -0.003196835983544588, -0.029986988753080368, 0.03719652071595192, -0.0827847346663475, 0.05078307166695595, -0.034865494817495346, -0.005240646656602621, -0.07765647768974304, 0.015276547521352768, 0.013952856883406639, -0.0013299337588250637, 0.0011166032636538148, 0.033983033150434494, -0.0666007474064827, -0.020146727561950684, -0.030036939308047295, -0.0039044690784066916, 0.006014880258589983, 0.012287838384509087, 0.0019532751757651567, -0.0056818765588104725, -0.005898328963667154, 0.08691398054361343, 0.038328733295202255, -0.005873353686183691, 0.01889796368777752, 0.02022997848689556, 0.005457099061459303, 0.022827407345175743, 0.1113564521074295, -0.011180601082742214, -0.007359383162111044, 0.051282577216625214, -0.04415629804134369, -0.00937405601143837, -0.040859561413526535, 0.00743014644831419, -0.06543523818254471, 0.0071970438584685326, -0.048452045768499374, -0.010364742018282413, -0.025491436943411827, 0.022178050130605698, -0.007808938156813383, -0.04165877029299736, -0.04239137843251228, 0.007259482052177191, 0.02718975581228733, 0.04771943762898445, 0.008932826109230518, -0.03506529703736305, 0.030236741527915, -0.02324366196990013, 0.019946925342082977, 0.029587384313344955, 0.04252457991242409, 0.015592901036143303, -0.04345699027180672, 0.015076745301485062, 0.014144334942102432, 0.011080699972808361, 0.006297933403402567, 0.04478900507092476, -0.02990373782813549, 0.04362349212169647, 0.014327486976981163, 0.024892030283808708, 0.008899525739252567, 0.034049633890390396, 0.02384306862950325, -0.016075756400823593, 0.031518805772066116, 0.00388157507404685, 0.036430612206459045, -0.020846035331487656, 0.041159264743328094, 0.024459125474095345, 0.023310262709856033, 0.0382288321852684, 0.006231332663446665, 0.012096361257135868, -0.07885529100894928, 0.01697486639022827, -0.02923773042857647, -0.004953430965542793, -0.04585461691021919, 0.026174094527959824, -0.05381340533494949, -0.043723393231630325, -0.04738643392920494, -0.03315052390098572, -0.0017274569254368544, -0.004449762869626284, 0.0007783962646499276, 0.023643266409635544, -0.043423689901828766, -0.03523179888725281, 0.028521772474050522, 0.03846193477511406, -0.0732608288526535, 0.007413496263325214, 0.05151567980647087, -0.06713355332612991, 0.033167172223329544, 0.01149695459753275, 0.05461261421442032, -0.059907376766204834, -0.000801290269009769, 0.07039699703454971, 0.034532491117715836, -0.0010853841667994857, -0.035431601107120514, 0.05631093680858612, 0.008404182270169258, -0.0428575836122036, 0.0018450489733368158, 0.03976064920425415, 0.006339558865875006, -0.037662725895643234, -0.023826418444514275, 0.04825224354863167, 0.005473749246448278, -0.0016442060004919767, -0.03939434513449669, 0.04139236733317375, 0.03473229333758354, 0.06826577335596085, -0.007455121725797653, 0.015359798446297646, -0.018165355548262596, 0.02332691289484501, 0.0032155674416571856, -0.03291742131114006, -0.008866225369274616, -0.04006035253405571, 0.02510848268866539, -0.011746707372367382, 0.014718766324222088, -0.03005358949303627, 0.026840101927518845, -0.026507098227739334, 0.0006259430083446205, -0.031518805772066116, -0.033899784088134766, 0.05314739793539047, -0.0038628436159342527, -0.010314791463315487, -0.0003598001494538039, 0.00896612647920847, -0.025757839903235435, 0.04871844872832298, -0.038661736994981766, 0.006830739323049784, -0.042724382132291794, -0.013919556513428688, -0.04378999397158623, -0.01515999622642994, -0.04728653281927109, 0.023310262709856033, -0.03806233033537865, 0.03210156038403511, -0.004399812314659357, 0.06766636669635773, 0.045288510620594025, -0.07279462367296219, 0.01567615196108818, 0.05124927684664726, 0.010381392203271389, -0.03358342871069908, -0.010447992943227291, 0.014843642711639404, 0.09317445009946823, 0.03433268889784813, 0.0024496589321643114, 0.013186948373913765, 0.03499869629740715, 0.016117380931973457, 0.025641288608312607, -0.08678077906370163, -0.05434621125459671, -0.025175083428621292, -0.0022040687035769224, 0.014843642711639404, 0.04535511136054993, 0.05944117158651352, 0.04365679249167442, 0.04029345512390137, -0.005174045916646719, -0.018798062577843666, -0.07772307842969894, 0.03363337740302086, -0.003979394678026438, -0.02968728542327881, 0.015759402886033058, 0.03729642182588577, 0.06886518001556396, 0.0005853581824339926, 0.019147716462612152, -0.007538372650742531, 0.06476923078298569, -0.023909669369459152, -0.04838544502854347, 0.029187779873609543, -0.014677140861749649, 0.005565325263887644, 0.027556059882044792, 0.05621103569865227, 0.007009728811681271, 0.03719652071595192, -0.06170559674501419, -0.043390389531850815, 0.0413590669631958, -0.03376658260822296, -0.0035652215592563152, -0.004012695048004389, -0.045255210250616074, 0.016541961580514908, 0.006426972337067127, 0.013544927351176739, 0.0062771206721663475, 0.032900769263505936, -0.04808574169874191, 0.0587751641869545, 0.01231281366199255, 0.04239137843251228, -0.03756282478570938, -0.007638273760676384, 0.02064623311161995, 0.07858888804912567, -0.011080699972808361, -0.06576824188232422, -0.007975439541041851, -0.06676725298166275, -0.015218271873891354, 0.01651698537170887, 0.03221811354160309, -0.0026640300638973713, -0.046920228749513626, -0.07226181775331497, -0.025657938793301582, 0.00528227211907506, 0.033833183348178864, -0.018248606473207474, -0.0794546976685524, -0.0012227481929585338, -0.04445600137114525, 0.040859561413526535, 0.048751749098300934, -0.00688068987801671, 0.0653686374425888, 0.048518646508455276, 0.039627447724342346, -0.07592485845088959, -0.0277558621019125, 0.004018939100205898, 0.0026536236982792616, -0.021145738661289215, 0.031485505402088165, -0.03746292367577553, -0.008708048611879349, 0.016084080561995506, 0.020446430891752243, 0.0008153388625942171, 0.0016816689167171717, 0.09743689745664597, 0.02797231450676918, -0.0349653959274292, -0.06636764854192734, 0.034465890377759933, -0.025158433243632317, 0.009898536838591099, 0.027722561731934547, 0.004324886482208967, -0.03473229333758354, 0.0046995156444609165, -0.013411725871264935, 0.016525311395525932, 0.02863832376897335, -0.002674436429515481, -0.034798894077539444, -0.03762942552566528, 0.023110460489988327, 0.023260312154889107, 0.001281023840419948, -0.036130908876657486, -0.036130908876657486, 0.032417915761470795, 0.001565117621794343, 0.06063998490571976, 0.04791923984885216, -0.019780423492193222, 0.0366637147963047, 0.0037046668585389853, -0.0030823659617453814, -0.045921217650175095, 0.014011132530868053, -0.022161399945616722, 0.022261301055550575, 0.011663456447422504, -0.029637334868311882, -0.017083093523979187, -0.010398042388260365, -0.0397939495742321, -0.03789582848548889, -0.034798894077539444, 0.0012768612941727042, 0.030453193932771683, 0.03203495964407921, -0.03473229333758354, -0.017399447038769722, -0.02227795124053955, 0.011397053487598896, -0.047186631709337234, 0.006776626221835613, -0.00012038866407237947, -0.04039335623383522, 0.021228989586234093, -0.022028198465704918, -0.007771475240588188, -0.029037928208708763, 0.00859149731695652, 0.008345906622707844, -0.026307296007871628, 0.0031822670716792345, 0.07838908582925797, 0.02239450253546238, 0.018132055178284645, -0.005382173229008913, -0.03969404846429825, -0.0326843187212944, 0.011280502192676067, 0.0037566986866295338, -0.011247201822698116, -0.08624797314405441, 0.0005895207286812365, 0.05437951162457466, 0.04861854761838913, 0.0921754390001297, 0.02712315507233143, -0.0012997552985325456, 0.025691239163279533, 0.0556449256837368, -0.0022623443510383368, -0.02116238884627819, 0.0023830581922084093, -0.024042870849370956, -0.0037233983166515827, 0.03210156038403511, 0.037096619606018066, -0.04329048842191696, 0.052880994975566864, -0.002711899345740676, -0.058708563446998596, 0.0151183707639575, -0.023859718814492226, 0.019064465537667274, -0.04415629804134369, 0.006377021782100201, -0.005777615122497082, -0.011213901452720165, 0.010173264890909195, 0.01142202876508236, -0.026756851002573967, 0.008071178570389748, 0.017432747408747673, 0.09404025971889496, -0.013028771616518497, 0.01570945233106613, 0.05218168720602989, -0.017099743708968163, 0.01585930399596691, -0.005694364197552204, -0.04572141543030739, -0.01615068130195141, -0.00312399142421782, -0.058641962707042694, -0.022494403645396233, -0.013561577536165714, 0.0032197299879044294, 0.007788125425577164, 0.040260154753923416, 0.003057390684261918, -0.016350483521819115, 0.012620842084288597, -0.054512713104486465, -0.044056396931409836, -0.004187521990388632, 0.037662725895643234, 0.019497370347380638, 0.07719027251005173, -0.06483583152294159, -0.0261907447129488, 0.007142930757254362, -0.006726675666868687, 0.03228471428155899, -0.005873353686183691, -0.022927308455109596, -0.00031687389127910137, 0.03909464180469513, -0.004458087962120771, -0.001840886427089572, -0.035831205546855927, -0.021928297355771065, -0.009465632028877735, -0.06410322338342667, 0.06939798593521118, 0.0667339488863945, 0.016109056770801544, -0.039294444024562836, -0.025641288608312607, -0.016292208805680275, 0.04981736093759537, 0.01023154053837061, -0.029770536348223686, -0.07425983995199203, 0.05328059941530228, 0.02450907602906227, 0.02848847210407257, 0.01971382275223732, 0.0034944580402225256, 0.05301419645547867, 0.005590300541371107, -0.019996875897049904, -0.014444038271903992, 0.03195171058177948, -0.04189187288284302, 0.05344710126519203, 0.041858572512865067, -0.00042353913886472583, -0.006239657755941153, -0.06630104780197144, 0.04778603836894035, -0.019763773307204247, -0.06966438889503479, -0.03712991997599602, 0.06796606630086899, 0.046220920979976654, -0.009315780363976955, 0.03593110665678978, 0.04265778139233589, -0.03919454291462898, 0.038328733295202255, -0.014160985127091408, -0.015592901036143303, -0.050050463527441025, 0.06420312076807022, 0.017133044078946114, -0.026457147672772408, -0.050982873886823654, 0.0857151672244072, -0.04032675549387932, -0.04365679249167442, -0.01893126405775547, 0.05084967240691185, 0.0006566417869180441, -0.07452624291181564, 0.007525885012000799, 0.02324366196990013, -0.027389558032155037, -0.01642541028559208, 0.05780945345759392, 0.03376658260822296, -0.027722561731934547, 0.030752897262573242, -0.0107143959030509, -0.05271449312567711, -0.08131951838731766, -0.05204848572611809, 0.009748685173690319, -0.016117380931973457, 0.07252822071313858, 0.033416926860809326, -0.005652738735079765, 0.0037275608628988266, 0.006231332663446665, 0.03056974522769451, -0.10676100105047226, 0.006793276406824589, -0.04006035253405571, -0.01759924925863743, -0.06906498223543167, -0.037063319236040115, 0.026840101927518845, 0.08824599534273148, 0.02212809957563877, 0.025125132873654366, -0.0069098277017474174, 0.038628436625003815, -0.04265778139233589, -0.12794004380702972, 0.09164263308048248, 0.013619853183627129, -0.07439304143190384, 0.005865028593689203, -0.0006467557395808399, -0.006156406830996275, -0.016775064170360565, -0.0053988234139978886, -0.026507098227739334, -0.0074800970032811165, 0.026790151372551918, 0.05661064013838768, -0.006710025481879711, -0.019164366647601128, 0.056111130863428116, -0.03779592737555504, -0.00604401808232069, -0.02585774101316929, 0.0246256273239851, -0.02339351363480091, 0.004239554051309824, -0.022228000685572624, -0.02562463842332363, 0.03035329282283783, -0.046886928379535675, 0.06063998490571976, -0.003207242349162698, -0.054179709404706955, -0.0062063573859632015, 0.005848378408700228, -0.015243247151374817, -0.06343721598386765, 0.0024059521965682507, -0.04388989508152008, -0.005939954426139593, -0.026989953592419624, 0.034798894077539444, 0.02763931080698967, -0.05404650792479515, -0.010914198122918606, 0.05457931384444237, 0.02134554088115692, -0.01624225825071335, -0.01688329130411148, -0.016741763800382614, -0.012221237644553185, -0.00038815749576315284, -0.09996772557497025, 0.014752066694200039, -0.018431758508086205, -0.048119042068719864, -0.0053655230440199375, -0.0034882142208516598, -0.036463912576436996, -0.07659086585044861, 0.036463912576436996, 0.007971277460455894, 0.08611477166414261, 0.01242103986442089, 0.01023154053837061, 0.02649044804275036, 0.010481293313205242, 0.025374885648489, 0.008329256437718868, 0.03629741072654724, -0.10389716923236847, -0.023826418444514275, -0.01456058956682682, -0.00477860402315855, 0.0556449256837368, -0.009690409526228905, 0.01919766701757908, -0.04099276289343834, 0.01074769627302885, 0.023043859750032425, -0.012620842084288597, 0.01766584999859333, -0.021412141621112823, -0.015509650111198425, 0.06826577335596085, -0.006980590987950563, -0.0126874428242445, -0.018431758508086205, 0.005182371009141207, -0.0006321868277154863, -0.058342259377241135, 0.0246256273239851, -0.060573384165763855, -0.029770536348223686, 0.08038710802793503, 0.012787343934178352, 0.01327852439135313, 0.01625058241188526, 0.00023661478189751506, -0.018132055178284645, 0.07392683625221252, 0.014385762624442577, -0.0214287918061018, 0.05378010496497154, -0.020662883296608925, 0.009174253791570663, -0.013819655403494835, -0.0017982203280553222, 0.051682181656360626, 0.022444453090429306, 0.013453351333737373, -0.020429780706763268, -0.08504915982484818, 0.002466309117153287, 0.038661736994981766, -0.04112596437335014, -0.031568754464387894, 0.06030698120594025, -0.03396638482809067, 0.019797073677182198, -0.023293612524867058, 0.010955823585391045, -0.00036500333226285875, 0.04012695327401161, 0.0023851394653320312, 0.011796657927334309, 0.07492584735155106, 0.027922363951802254, -0.014685465954244137, 0.0018440083367750049, -0.0493178553879261, -0.02209479920566082, 0.048485346138477325, -0.04132576659321785, -0.04545501247048378, 0.03351682797074318, 0.021961597725749016, 0.07745667546987534, -0.03696341812610626, -0.04738643392920494, 0.03599770739674568, 0.01781570166349411, -0.002293563447892666, 0.013062071986496449, -0.017898952588438988, -0.03589780628681183, 0.052581291645765305, -0.005490399431437254, -0.0021999061573296785, 0.07532545179128647, -0.03205161169171333, -0.0024184398353099823, 0.007525885012000799, 0.04329048842191696, 0.015609551221132278, 0.022344551980495453, -0.04672042652964592, 0.02525833435356617, 0.023260312154889107, 0.008649772964417934, -0.06383682042360306, 0.006597636733204126, -0.008225192315876484, 0.007821425795555115, -0.02119568921625614, -0.004466413054615259, 0.03879493847489357, -0.05178208276629448, 0.0006020083674229681, 0.02257765457034111, -0.04269108176231384, -0.06633434444665909, -0.010481293313205242, -0.020030176267027855, 0.020579632371664047, 0.02336021326482296, 0.03251781687140465, 0.030636345967650414, 0.013561577536165714, 0.031035950407385826, 0.030886098742485046, -0.04252457991242409, 0.02875487506389618, 0.01799885369837284, 0.06143919378519058, -0.0182985570281744, -0.03616420924663544, -0.001058847876265645, 0.03378323093056679, -0.03533169999718666, -0.041458968073129654, 0.03699671849608421, -0.040226854383945465, 0.0761912614107132, 0.018864663317799568, -0.004828554578125477, -0.030103540048003197, 0.03203495964407921, -0.06550183892250061, 0.04319058731198311, -0.022044848650693893, -0.05777615308761597, -0.0051906961016356945, -0.01123055163770914, -0.008824599906802177, -0.023127110674977303, 0.05874186381697655, -0.006647587288171053, 0.024825429543852806, -0.006580986548215151, 0.005844215862452984 ]
718,563
pytorch_optimizer.optimizer.utils
reduce_max_except_dim
Perform reduce-max along all dimensions except the given dim. :param x: torch.Tensor. tensor to reduce-max. :param dim: int. dimension to exclude.
def clip_grad_norm( parameters: PARAMETERS, max_norm: float = 0.0, sync: bool = False, ) -> Union[torch.Tensor, float]: # pragma: no cover r"""Clip gradient norms. During combination with FSDP, will also ensure that grad norms are aggregated across all workers, since each worker only stores their shard of the gradients. :param parameters: PARAMETERS. Parameters whose gradients we wish to clip. :param max_norm: float. Maximum norm we wish the gradients to have. If non-positive, then we will not perform clipping. :param sync: bool. Boolean indicating whether we should aggregate across the distributed group. Used only in combination with FSDP. :returns: The gradient norm across all parameters, before clipping. """ if isinstance(parameters, torch.Tensor): parameters = [parameters] # make sure any generators are expanded parameters = list(parameters) # if syncing we need to manually perform the clipping so that we aggregate properly if max_norm > 0 and not sync: return clip_grad_norm_(parameters, max_norm) norm_sq = sum(p.grad.norm() ** 2 for p in parameters if p.grad is not None) if sync: # also need to get the norms from all the other sharded works in FSDP all_reduce(norm_sq) grad_norm = math.sqrt(norm_sq) if max_norm > 0: clip_coefficient = max_norm / (grad_norm + 1e-6) for p in parameters: p.grad.detach().mul_(clip_coefficient) return grad_norm
(x: torch.Tensor, dim: int) -> torch.Tensor
[ 0.002439050702378154, 0.04325249791145325, -0.02623334527015686, 0.003037521615624428, -0.02990095503628254, 0.022041792050004005, -0.010054308921098709, -0.003030746476724744, 0.009521331638097763, -0.011382237076759338, -0.01717272400856018, 0.008947703056037426, -0.0330265536904335, -0.03165346011519432, 0.041192855685949326, 0.044155851006507874, -0.040542442351579666, -0.017633432522416115, 0.052972570061683655, -0.017624400556087494, 0.036134086549282074, 0.015510556288063526, -0.04513147100806236, -0.028419457376003265, -0.006526718847453594, -0.02921440824866295, 0.005984707735478878, 0.01945820450782776, -0.06616150587797165, 0.027335435152053833, 0.028076183050870895, 0.016007399186491966, 0.037507180124521255, 0.015176315791904926, 0.028437525033950806, -0.0265404861420393, 0.011346102692186832, 0.03127405047416687, -0.11230473220348358, -0.03808532655239105, -0.011987482197582722, -0.0177599024027586, -0.01495047751814127, 0.030804308131337166, 0.0458180196583271, 0.01481497474014759, -0.031075313687324524, 0.05853721871972084, -0.09329820424318314, 0.014896276406943798, -0.006915160454809666, -0.030352631583809853, 0.007791412062942982, 0.013739985413849354, -0.03674836456775665, -0.007732694037258625, 0.0012872767401859164, 0.011192533187568188, 0.06717326492071152, -0.07324378937482834, 0.04968436807394028, -0.05084065720438957, -0.019638875499367714, 0.004261563532054424, 0.033080752938985825, -0.00698742875829339, -0.016739115118980408, 0.0191871989518404, 0.04437265545129776, 0.05253896117210388, -0.08527643978595734, 0.04646843299269676, -0.012005549855530262, -0.014146494679152966, -0.0008542323485016823, -0.019946014508605003, 0.06392119824886322, -0.019602740183472633, -0.026666954159736633, -0.006300881039351225, 0.03196059912443161, 0.0523221530020237, 0.00048329337732866406, 0.005564649123698473, -0.042565952986478806, -0.021409444510936737, -0.03234000504016876, 0.008337940089404583, 0.012972136028110981, -0.062403563410043716, 0.0019388195360079408, 0.0545986033976078, 0.029015669599175453, -0.0006554948631674051, -0.008301805704832077, 0.025366127490997314, -0.05073225498199463, -0.02384849637746811, -0.03472485393285751, -0.049575965851545334, 0.03300848603248596, 0.06507748365402222, 0.03869960457086563, -0.014733673073351383, 0.0895402655005455, -0.047227248549461365, -0.007168099284172058, -0.056333038955926895, -0.0376155823469162, 0.05589943006634712, 0.009801370091736317, -0.020740965381264687, -0.023035479709506035, -0.0026468217838555574, -0.0018688096897676587, 0.024119501933455467, -0.021084237843751907, -0.002087872475385666, 0.06431867182254791, -0.014977578073740005, 0.03127405047416687, 0.03989202901721001, -0.02619721181690693, -0.05886242538690567, -0.03394797444343567, 0.0658724382519722, -0.02146364562213421, 0.011571940965950489, 0.030027424916625023, 0.005844688042998314, 0.0010258692782372236, -0.020921634510159492, -0.015375053510069847, -0.008274705149233341, 0.0471549816429615, -0.07660426199436188, -0.023613624274730682, 0.0530809722840786, 0.025366127490997314, -0.025673266500234604, -0.01949433796107769, 0.041879404336214066, 0.006684805732220411, 0.017705701291561127, -0.009322593919932842, 0.07537569850683212, 0.01816641166806221, 0.06019938364624977, -0.0048871347680687904, -0.01056921947747469, -0.004092185292392969, 0.03790465369820595, 0.014281997457146645, 0.025022853165864944, -0.014001958072185516, 0.04668523743748665, -0.04303569346666336, -0.053622983396053314, -0.0006605762173421681, -0.006346048787236214, -0.031743794679641724, -0.03956682235002518, -0.016910752281546593, -0.03526686504483223, 0.008401175029575825, -0.046576835215091705, 0.048600345849990845, -0.02088550105690956, -0.043902911245822906, 0.07172615826129913, -0.013667717576026917, -0.04433652386069298, -0.026468217372894287, -0.039169348776340485, 0.014336198568344116, 0.027461905032396317, 0.016296472400426865, -0.04097605124115944, -0.0637766569852829, 0.0022595094051212072, -0.01820254512131214, -0.019693076610565186, 0.10493338108062744, -0.08563777804374695, -0.011255767196416855, 0.039097078144550323, -0.059404436498880386, -0.004670330323278904, 0.014200695790350437, -0.03801305592060089, -0.009421962313354015, -0.03794078901410103, -0.030497167259454727, -0.02522159181535244, -0.018916193395853043, -0.031201781705021858, 0.03183412924408913, 0.030677838250994682, 0.0800008624792099, -0.028329122811555862, -0.005411079153418541, 0.012014582753181458, 0.003916031215339899, -0.04802219942212105, -0.04025337100028992, -0.059404436498880386, -0.026432083919644356, 0.033478230237960815, 0.0063731493428349495, 0.03452611714601517, 0.011553873308002949, 0.04740791767835617, 0.029431212693452835, -0.00580403720960021, 0.009575532749295235, -0.040289506316185, 0.049612097442150116, -0.025113189592957497, 0.007425554562360048, 0.03830213099718094, -0.05206921696662903, -0.09098562598228455, 0.04509533941745758, -0.006215062458068132, -0.03234000504016876, 0.005429146345704794, -0.020759031176567078, -0.013478013686835766, 0.01949433796107769, -0.07978405803442001, 0.040289506316185, -0.0383743979036808, -0.032087069004774094, 0.002863626228645444, 0.025420328602194786, -0.015338919125497341, -0.01246625930070877, 0.02285480871796608, 0.03273748233914375, 0.02753417193889618, -0.04899781942367554, -0.05470700562000275, -0.06692032516002655, 0.0490700863301754, 0.052286021411418915, 0.012854700908064842, 0.01716369017958641, -0.01884392462670803, 0.0370374359190464, 0.054309528321027756, -0.05759773030877113, -0.003642767434939742, -0.056694380939006805, 0.0053117102943360806, 0.02180691994726658, 0.02357749082148075, -0.0721597671508789, 0.0348513238132, 0.03288201615214348, -0.014896276406943798, -0.022348931059241295, -0.05253896117210388, -0.02860012836754322, 0.030027424916625023, -0.014010990969836712, -0.02928667515516281, -0.02357749082148075, 0.01683848351240158, -0.02117457427084446, 0.014372332021594048, 0.08664953708648682, 0.012619828805327415, -0.0009061751188710332, 0.002286609960719943, -0.010406616143882275, 0.017606332898139954, 0.035158462822437286, -0.007615258451551199, 0.09741749614477158, 0.020361557602882385, 0.08563777804374695, 0.010975727811455727, -0.06175315007567406, -0.013848387636244297, 0.0647161453962326, 0.04209620878100395, 0.006838375702500343, -0.015537656843662262, -0.06309011578559875, 0.021409444510936737, 0.04195167124271393, -0.011075097136199474, 0.05712798982858658, -0.011590007692575455, 0.030334563925862312, -0.01643197424709797, 0.025962339714169502, -0.030659770593047142, -0.00044800620526075363, -0.048564210534095764, 0.03385763615369797, 0.013008270412683487, 0.03700130432844162, 0.044155851006507874, 0.02357749082148075, -0.043830644339323044, -0.036513492465019226, -0.025329994037747383, 0.03575467690825462, 0.012845667079091072, -0.018627120181918144, -0.03564627468585968, 0.022746406495571136, 0.002547452924773097, 0.012836633250117302, 0.056658245623111725, 0.05745319649577141, -0.06890770047903061, 0.016278404742479324, 0.02153591439127922, -0.02252960205078125, 0.010054308921098709, 0.025998473167419434, 0.048275139182806015, -0.04126512631773949, -0.03658575937151909, -0.020939702168107033, 0.026739222928881645, -0.026341747492551804, 0.008256638422608376, -0.006269263569265604, 0.005885338876396418, 0.024390507489442825, 0.030695905908942223, 0.04043404012918472, 0.01461623702198267, 0.09365954995155334, -0.03598954901099205, 0.028003916144371033, -0.06590857356786728, 0.016043534502387047, 0.11367782950401306, 0.010126577690243721, 0.014670438133180141, -0.042529817670583725, 0.02693795971572399, 0.0184735506772995, 0.050659988075494766, -0.020018283277750015, -0.07161775976419449, 0.02448084205389023, -0.026757290586829185, -0.08838397264480591, 0.04036177322268486, -0.008572811260819435, 0.031418588012456894, -0.01128286775201559, -0.02589007094502449, 0.03924161568284035, -0.04274662211537361, 0.02384849637746811, 0.05817587673664093, 0.008496026508510113, 0.025492597371339798, -0.002707798033952713, 0.023288417607545853, -0.0336950346827507, -0.03729037567973137, -0.016070634126663208, -0.016332605853676796, -0.045565079897642136, -0.01878972351551056, 0.06146407872438431, -0.04953983053565025, -0.03588114678859711, -0.00715454900637269, -0.0725572407245636, -0.030732039362192154, 0.05214148387312889, 0.004216396249830723, -0.023722026497125626, -0.025962339714169502, 0.024011099711060524, -0.00763784209266305, 0.05474313721060753, -0.022348931059241295, 0.010009141638875008, -0.02384849637746811, 0.006671255454421043, -0.014851109124720097, 0.025329994037747383, 0.00042288171243853867, 0.01481497474014759, 0.0015661867801100016, -0.03801305592060089, 0.03206900134682655, 0.0370374359190464, 0.04401131719350815, -0.059404436498880386, -0.03405637666583061, -0.022366998717188835, 0.03306268900632858, -0.008134685456752777, 0.008346973918378353, -0.023306485265493393, -0.05673051252961159, 0.05412885919213295, -0.0004982551326975226, 0.00001863163743109908, 0.04910622164607048, -0.012475293129682541, -0.005876305513083935, -0.036459293216466904, 0.045890286564826965, 0.040831517428159714, 0.015944164246320724, -0.011590007692575455, 0.004311248194426298, -0.0031233399640768766, 0.013739985413849354, -0.0039679743349552155, -0.08375880867242813, 0.05539355054497719, 0.015546689741313457, 0.01576349511742592, -0.0312198493629694, -0.032087069004774094, -0.028744664043188095, -0.062042225152254105, -0.042891159653663635, 0.013107639737427235, 0.02155398204922676, -0.0020619011484086514, 0.004765182267874479, -0.008039833977818489, 0.03291815146803856, 0.023107746616005898, 0.06439094245433807, -0.052286021411418915, -0.03674836456775665, 0.015067913569509983, -0.04368610680103302, -0.0191871989518404, -0.01226752158254385, -0.026395948603749275, -0.02057836204767227, -0.020614495500922203, -0.005252992734313011, -0.016070634126663208, -0.025817804038524628, -0.02056029438972473, -0.013468979857861996, 0.0066396379843354225, 0.0343635156750679, 0.017570199444890022, -0.013983890414237976, 0.0016915268497541547, 0.026016540825366974, -0.01944013684988022, -0.03327949345111847, 0.031057246029376984, 0.028329122811555862, -0.0234871543943882, -0.0174256619066, -0.024444708600640297, 0.03196059912443161, 0.07230430096387863, -0.0156099246814847, -0.006409283261746168, -0.03461645171046257, 0.029810620471835136, 0.010993795469403267, 0.03203286603093147, -0.023360686376690865, 0.06056072562932968, 0.01025304663926363, -0.06428253650665283, -0.010505985468626022, -0.034146711230278015, 0.000891495612449944, -0.009218708612024784, -0.01816641166806221, -0.04935916140675545, 0.005772420205175877, -0.049286890774965286, -0.06626991182565689, -0.046287763863801956, 0.01712755672633648, 0.014245863072574139, 0.033749233931303024, 0.04805833101272583, 0.009033521637320518, 0.014598170295357704, -0.0027507073245942593, 0.011300935409963131, -0.011833912692964077, 0.020415758714079857, -0.0006859829882159829, 0.07862776517868042, 0.011057030409574509, -0.009792337194085121, -0.015510556288063526, 0.0010190941393375397, 0.03862733766436577, -0.009047071449458599, -0.020325422286987305, -0.0788445696234703, 0.03156312182545662, 0.03129211813211441, 0.03739877790212631, 0.027769044041633606, -0.023342618718743324, 0.015673158690333366, 0.033134955912828445, 0.0030781724490225315, -0.04802219942212105, -0.007448138203471899, -0.028473658487200737, 0.04794992879033089, -0.002850075950846076, -0.03056943602859974, 0.061861552298069, -0.1071014255285263, -0.013667717576026917, 0.038771871477365494, -0.00788174755871296, -0.03902481123805046, -0.048202868551015854, 0.02527579292654991, -0.03768784925341606, 0.04495080187916756, 0.0312198493629694, 0.05333390831947327, 0.005361394956707954, 0.05524901673197746, 0.0198556799441576, -0.03335176035761833, -0.03794078901410103, -0.07804962247610092, -0.032141268253326416, -0.023378752171993256, 0.02054222673177719, 0.03707357123494148, 0.022656071931123734, 0.005695634987205267, -0.0017163690645247698, 0.058320414274930954, -0.0035185564775019884, 0.026088809594511986, 0.007899814285337925, -0.030388765037059784, 0.061391811817884445, -0.05181627720594406, -0.03420091047883034, -0.024011099711060524, -0.01610676757991314, -0.03855506703257561, 0.0033695034217089415, -0.030858509242534637, 0.015682192519307137, 0.019729210063815117, -0.05828427895903587, 0.049937304109334946, -0.015402154065668583, -0.03492359444499016, 0.004392549861222506, 0.017208857461810112, -0.012032650411128998, -0.0070913140662014484, 0.012014582753181458, -0.043180231004953384, 0.021770786494016647, -0.010704722255468369, 0.04834740608930588, 0.02961188182234764, 0.042565952986478806, 0.04234914854168892, -0.03573660925030708, -0.006007291376590729, -0.0517440102994442, 0.05217761918902397, -0.048925552517175674, 0.05138266831636429, -0.017624400556087494, 0.0028387841302901506, 0.0641380026936531, -0.03125598281621933, 0.02820265293121338, 0.00030403444543480873, 0.006115694064646959, 0.04411971941590309, 0.0673900693655014, 0.01242109201848507, -0.04010883346199989, -0.004410616587847471, 0.03020809404551983, -0.07841096073389053, 0.0376155823469162, 0.021030036732554436, 0.06952197849750519, -0.04112058877944946, 0.01578156091272831, 0.06478841602802277, 0.02827492170035839, 0.017028188332915306, -0.051599472761154175, -0.008997387252748013, -0.06283717602491379, -0.025637133046984673, -0.029142139479517937, -0.039458420127630234, 0.04986503720283508, -0.034074440598487854, -0.059729643166065216, 0.023143881931900978, -0.04310796409845352, -0.05008184164762497, -0.007258434314280748, 0.028419457376003265, 0.012303655967116356, 0.020090552046895027, 0.029792552813887596, 0.0052123419009149075, -0.02626948058605194, -0.01647714339196682, 0.027100563049316406, -0.05138266831636429, -0.014543969184160233, -0.06735393404960632, -0.011219633743166924, -0.03465258702635765, -0.025095121935009956, -0.014580103568732738, 0.012945035472512245, -0.023938830941915512, -0.019223332405090332, 0.05821201205253601, -0.02590813860297203, -0.018916193395853043, -0.003965715877711773, 0.03486939147114754, 0.04798606410622597, -0.0038573136553168297, -0.005528515204787254, -0.07183456420898438, -0.014833041466772556, 0.03089464269578457, 0.0012838891707360744, -0.027967780828475952, -0.03505006060004234, -0.029413145035505295, 0.0523221530020237, 0.03906094655394554, -0.013243142515420914, 0.02959381602704525, -0.0416264645755291, 0.02527579292654991, 0.010180778801441193, 0.02420983649790287, -0.03425511345267296, 0.016937851905822754, 0.0005264849169179797, 0.0027755494229495525, -0.011987482197582722, -0.09019067883491516, -0.04874487966299057, 0.010036242194473743, 0.021680450066924095, 0.016070634126663208, -0.06601697206497192, -0.03234000504016876, 0.005397528875619173, -0.042204611003398895, 0.01578156091272831, 0.006851925980299711, -0.0006035521510057151, -0.03201479837298393, -0.03586307913064957, 0.0181393101811409, 0.021987590938806534, 0.038446664810180664, 0.016016433015465736, -0.031797993928194046, 0.02491445094347, 0.005831137765198946, 0.06272877007722855, -0.0010484530357643962, 0.01514921523630619, 0.015880931168794632, 0.046540699899196625, 0.003735360922291875, 0.023306485265493393, -0.028166519477963448, -0.0272993016988039, 0.04336090013384819, -0.03167152404785156, 0.00234871543943882, -0.0007610741886310279, 0.016305506229400635, 0.05644144117832184, 0.00958456564694643, 0.03259294480085373, -0.02457117848098278, 0.02953961491584778, -0.014896276406943798, -0.015013712458312511, 0.03674836456775665, 0.008870917372405529, -0.028021981939673424, 0.03495972603559494, 0.025944272056221962, 0.016576511785387993, -0.0060524591244757175, 0.001988503849133849, -0.0343635156750679, -0.021084237843751907, 0.03967522457242012, 0.0014397174818441272, 0.006842892151325941, -0.019223332405090332, 0.05821201205253601, 0.038157593458890915, 0.03790465369820595, -0.007597191259264946, 0.005569166038185358, 0.017263058573007584, 0.0191871989518404, 0.01714562252163887, 0.007457171566784382, -0.05774226784706116, 0.04025337100028992, 0.029395077377557755, 0.03172572702169418, 0.04177100211381912, 0.04972049966454506, 0.06865476071834564, 0.05521288141608238, 0.021644316613674164, -0.1445363461971283, -0.06081366539001465, 0.01580866239964962, 0.0205241609364748, 0.023288417607545853, -0.03373116999864578, -0.0651136189699173, 0.030533302575349808, -0.04704657942056656, -0.07306312024593353, 0.02256573550403118, -0.03575467690825462, 0.045601215213537216, -0.012556594796478748, 0.028021981939673424, 0.007841096259653568, 0.012312689796090126, -0.024697646498680115, 0.003629217157140374, -0.02755223959684372, -0.02621527947485447, -0.05412885919213295, 0.0336047001183033, 0.019313668832182884, 0.02953961491584778, 0.030153892934322357, -0.009801370091736317, 0.015582824125885963, 0.015429254621267319, -0.03096691146492958 ]
718,564
pytorch_optimizer.loss.dice
soft_dice_score
Get soft dice score. :param output: torch.Tensor. predicted segments. :param target. torch.Tensor. ground truth segments. :param label_smooth: float. label smoothing factor. :param eps: float. epsilon. :param dims: Optional[Tuple[int, ...]]. target dimensions to reduce.
def soft_dice_score( output: torch.Tensor, target: torch.Tensor, label_smooth: float = 0.0, eps: float = 1e-6, dims: Optional[Tuple[int, ...]] = None, ) -> torch.Tensor: r"""Get soft dice score. :param output: torch.Tensor. predicted segments. :param target. torch.Tensor. ground truth segments. :param label_smooth: float. label smoothing factor. :param eps: float. epsilon. :param dims: Optional[Tuple[int, ...]]. target dimensions to reduce. """ if dims is not None: intersection = torch.sum(output * target, dim=dims) cardinality = torch.sum(output + target, dim=dims) else: intersection = torch.sum(output * target) cardinality = torch.sum(output + target) return (2.0 * intersection + label_smooth) / (cardinality + label_smooth).clamp_min(eps)
(output: torch.Tensor, target: torch.Tensor, label_smooth: float = 0.0, eps: float = 1e-06, dims: Optional[Tuple[int, ...]] = None) -> torch.Tensor
[ -0.04864811524748802, -0.03943972289562225, -0.025957243517041206, -0.030839430168271065, 0.03624284639954567, 0.021787405014038086, -0.011128256097435951, 0.01611468754708767, 0.033393457531929016, 0.0034118834882974625, -0.017052901908755302, 0.0067282081581652164, 0.035113513469696045, -0.038675252348184586, -0.00159952393732965, 0.04607671499252319, 0.062061093747615814, 0.037076812237501144, -0.01712239906191826, 0.009086772799491882, 0.06751663237810135, -0.018625278025865555, 0.053512927144765854, 0.03282010182738304, -0.05966343730688095, -0.057474274188280106, -0.000931698246859014, -0.022239137440919876, -0.04256710037589073, -0.03367144614458084, -0.04183737933635712, 0.00463894521817565, 0.013829964213073254, 0.07297217100858688, -0.022847238928079605, 0.04218486323952675, 0.02161366306245327, 0.015888821333646774, -0.03593010827898979, -0.027607804164290428, -0.06272131949663162, 0.001606039353646338, -0.021596288308501244, 0.013604097999632359, -0.03438379243016243, 0.008956464938819408, 0.008778378367424011, 0.002071888418868184, 0.03735480085015297, -0.02015421912074089, -0.008278866298496723, -0.03487027436494827, -0.06289505958557129, -0.00998155027627945, -0.01688784547150135, 0.03248998895287514, 0.033810440450906754, -0.049238841980695724, -0.015298094600439072, -0.030127082020044327, 0.04208061844110489, -0.047570906579494476, 0.040794920176267624, 0.06042790785431862, -0.008066031150519848, 0.009677499532699585, -0.05021180212497711, 0.0006254757754504681, -0.019476620480418205, -0.03422742336988449, -0.020241091027855873, -0.012031720951199532, 0.056675054132938385, 0.011745044961571693, 0.00804431363940239, 0.004417422693222761, 0.03818877041339874, -0.08270179480314255, 0.04347056522965431, -0.04781414568424225, 0.04218486323952675, -0.023333720862865448, 0.0025214492343366146, -0.04989906772971153, -0.01909438520669937, -0.03252473846077919, 0.013378231786191463, 0.018781647086143494, 0.0029015124309808016, 0.01364753395318985, 0.022742994129657745, 0.10146606713533401, -0.003605172736570239, 0.038675252348184586, 0.009920740500092506, 0.03111741878092289, -0.033184964209795, 0.028424398973584175, 0.01633186638355255, 0.007279842626303434, 0.006176573224365711, 0.0854816883802414, -0.020936064422130585, 0.05247046798467636, 0.03870999813079834, -0.07074825465679169, -0.018885893747210503, 0.04037793353199959, 0.055424101650714874, -0.01648823544383049, -0.005234016105532646, -0.009799120016396046, -0.021596288308501244, -0.029831718653440475, 0.023038357496261597, -0.05844723433256149, 0.03407105430960655, 0.02468891814351082, -0.02785104513168335, 0.007175596896559, -0.04065592586994171, -0.059941425919532776, -0.0456249825656414, 0.019285501912236214, 0.00007472317520296201, -0.015680329874157906, 0.0037137623876333237, 0.015567396767437458, 0.06119237840175629, -0.0301097072660923, 0.035356756299734116, -0.029640601947903633, 0.05222722515463829, -0.00736237084493041, 0.03950921818614006, -0.017643628641963005, 0.06275606900453568, 0.05392991006374359, 0.04027368873357773, -0.0422196127474308, 0.03725055605173111, -0.007809759583324194, -0.05382566526532173, 0.035825859755277634, 0.07359764724969864, 0.001515910029411316, 0.052748456597328186, 0.04513850063085556, 0.09263990819454193, 0.05281795188784599, 0.041142404079437256, -0.030231328681111336, -0.005429476965218782, 0.013838651590049267, -0.03202088549733162, -0.013326108455657959, 0.001446412643417716, -0.07373664528131485, -0.020241091027855873, -0.04628520458936691, 0.016496922820806503, -0.10883278399705887, -0.0022934111766517162, -0.001359541085548699, 0.010485406033694744, -0.042358607053756714, 0.007158222608268261, 0.05313069000840187, 0.030387697741389275, 0.019372373819351196, -0.016201559454202652, -0.05608432739973068, -0.02880663424730301, 0.0019459245959296823, 0.04951683059334755, -0.01720927096903324, -0.025957243517041206, -0.009938115254044533, -0.07116524130105972, 0.033045969903469086, 0.08902604877948761, -0.010607026517391205, -0.04086441546678543, -0.03217725455760956, -0.005055929068475962, 0.031239038333296776, 0.02663484215736389, 0.03389731049537659, -0.03311546519398689, 0.054972369223833084, 0.00038494993350468576, -0.045069001615047455, 0.04082966595888138, 0.0017917273798957467, 0.03846675902605057, -0.018312539905309677, -0.05187973752617836, -0.02065807394683361, 0.02237813174724579, -0.036069102585315704, -0.01226627454161644, 0.03898799046874046, 0.014368568547070026, 0.001703769899904728, -0.004817032255232334, 0.012822252698242664, -0.008226743899285793, 0.04409604147076607, -0.023907072842121124, -0.039231229573488235, -0.0642155110836029, -0.04030843824148178, -0.01794767938554287, 0.027573056519031525, 0.06775987148284912, 0.0314822793006897, 0.011718983761966228, -0.006484967190772295, -0.05135850980877876, -0.03523513302206993, -0.037320055067539215, -0.03638184070587158, 0.021700533106923103, 0.05955919250845909, 0.013864712789654732, -0.0365903303027153, 0.002016507787629962, -0.033306583762168884, 0.06956680119037628, -0.005433820653706789, 0.057022541761398315, -0.023333720862865448, 0.0019480963237583637, -0.04718866944313049, 0.06640467792749405, 0.0455554835498333, -0.046215709298849106, -0.0000544983777217567, 0.06793361902236938, 0.014481501653790474, -0.01571507751941681, -0.01959824003279209, -0.014038455672562122, 0.02091868966817856, 0.033497702330350876, 0.04864811524748802, -0.020727571099996567, -0.009356074966490269, -0.012665883637964725, 0.07144322991371155, -0.0024932159576565027, -0.0534781776368618, 0.0008790323627181351, -0.021735282614827156, 0.028841381892561913, 0.009764371439814568, -0.009712248109281063, 0.01606256514787674, -0.008635040372610092, 0.018764272332191467, -0.08117285370826721, 0.030092334374785423, -0.028876131400465965, -0.039578717201948166, -0.05337393283843994, -0.0033423861023038626, -0.037320055067539215, 0.030839430168271065, -0.017348265275359154, 0.009547192603349686, -0.036069102585315704, 0.031795017421245575, 0.016071252524852753, -0.04816163331270218, -0.008196339011192322, 0.018138796091079712, 0.025557635352015495, 0.025852998718619347, 0.0647367388010025, 0.03964821249246597, 0.01550658605992794, -0.01329135987907648, -0.04976006969809532, 0.015020105056464672, 0.027520934119820595, 0.013256611302495003, 0.01316973939538002, 0.013604097999632359, 0.03791078180074692, -0.03247261792421341, 0.010242165997624397, 0.03784128278493881, 0.08979052305221558, -0.026513222604990005, -0.029744846746325493, 0.019685111939907074, 0.011041384190320969, -0.04684118553996086, -0.026930205523967743, 0.018781647086143494, 0.043713804334402084, -0.017165834084153175, 0.0010294289095327258, -0.012483453378081322, -0.01460312120616436, -0.0003390708297956735, 0.017270080745220184, -0.02623523399233818, 0.02373333089053631, -0.03648608550429344, -0.024115566164255142, -0.014542311429977417, 0.014785552397370338, 0.014081891626119614, -0.004195899702608585, -0.0009566738735884428, -0.020241091027855873, -0.004925621673464775, 0.04996856302022934, 0.031082671135663986, -0.019563492387533188, 0.05942019820213318, 0.01930287666618824, 0.07470960170030594, 0.030092334374785423, -0.03480077534914017, 0.03492239490151405, -0.012683258391916752, 0.02413293905556202, -0.006832453887909651, 0.003055709647014737, -0.03469653055071831, 0.019111759960651398, -0.03589535877108574, -0.021544165909290314, -0.04513850063085556, 0.06369428336620331, 0.023611709475517273, -0.0439222976565361, -0.0005019551608711481, 0.01717452146112919, -0.02654797025024891, 0.029588477686047554, 0.04183737933635712, 0.03811927139759064, 0.008422205224633217, -0.02623523399233818, 0.01045934483408928, 0.04381805285811424, -0.0019426669459789991, 0.012709319591522217, 0.0007432954153046012, 0.06445875018835068, 0.014264321886003017, 0.048578616231679916, 0.01691390760242939, 0.024393554776906967, 0.041142404079437256, 0.021700533106923103, -0.04781414568424225, -0.04760565608739853, -0.06445875018835068, -0.006011516787111759, 0.021683160215616226, -0.012327084317803383, 0.048439621925354004, -0.03368882089853287, -0.016323179006576538, 0.004426109604537487, -0.008752317167818546, -0.08986001461744308, -0.07839296013116837, -0.05514611303806305, -0.01904226280748844, 0.039231229573488235, -0.012301023118197918, -0.03870999813079834, -0.02442830242216587, 0.11057021468877792, 0.060601651668548584, 0.0038353826384991407, 0.024914784356951714, -0.05796075239777565, 0.03391468524932861, 0.004132918082177639, 0.015419715084135532, 0.008930403739213943, -0.02658271975815296, 0.042810339480638504, -0.027937917038798332, 0.0625128298997879, 0.010719959624111652, 0.07304167002439499, -0.018277792260050774, -0.043852798640728, -0.01954611763358116, -0.0067629567347466946, -0.002499731257557869, -0.04413079097867012, -0.016349241137504578, -0.0301097072660923, 0.010190042667090893, 0.0191465076059103, -0.02482791244983673, -0.05601482838392258, 0.025714002549648285, -0.00957325380295515, -0.03493976965546608, 0.011944849975407124, 0.028685012832283974, -0.041038159281015396, 0.043852798640728, -0.04152464121580124, -0.0036073445808142424, -0.006067983340471983, -0.0026865052059292793, -0.05907271057367325, 0.03679882362484932, -0.027069201692938805, 0.0026539284735918045, 0.04364430904388428, -0.06497997790575027, 0.035009268671274185, -0.010980574414134026, -0.02211751788854599, -0.04927359148859978, -0.07040077447891235, 0.03143015503883362, 0.03492239490151405, -0.03106529638171196, -0.05427739769220352, -0.029223617166280746, -0.008400486782193184, -0.08485621213912964, 0.023507464677095413, -0.013664907775819302, 0.0028841381426900625, 0.04826587811112404, -0.015871446579694748, -0.020727571099996567, 0.042150117456912994, -0.0038353826384991407, 0.043505314737558365, 0.05156700313091278, 0.025661880150437355, -0.04308833181858063, -0.025505511090159416, 0.017009465023875237, -0.0945163369178772, -0.040030449628829956, 0.060844890773296356, -0.03520038723945618, 0.049690574407577515, 0.06800311803817749, -0.031951386481523514, -0.02286461368203163, -0.05737002566456795, 0.019216004759073257, 0.002221741946414113, 0.047675151377916336, -0.03398418426513672, 0.046528447419404984, -0.01656641997396946, 0.04625045880675316, -0.04347056522965431, -0.03704206272959709, -0.04472151771187782, -0.021248800680041313, 0.022187015041708946, -0.001171681098639965, 0.04638945311307907, -0.06164411082863808, 0.046563196927309036, -0.032802727073431015, 0.010059734806418419, 0.022742994129657745, -0.010129231959581375, 0.06143561750650406, 0.057926006615161896, 0.06289505958557129, 0.04138564690947533, -0.01050278078764677, -0.037076812237501144, -0.027225568890571594, -0.00007764152542222291, 0.03725055605173111, -0.036972567439079285, 0.020223716273903847, 0.020293213427066803, 0.02588774636387825, 0.055111363530159, -0.0247757900506258, 0.0021196678280830383, -0.0912499651312828, -0.01574113965034485, -0.014950607903301716, 0.0439222976565361, 0.02432405762374401, 0.0034770371858030558, -0.02137042209506035, -0.048092134296894073, -0.024150313809514046, -0.08291028439998627, -0.0063720340840518475, 0.02739931270480156, 0.019771983847022057, 0.004350096918642521, 0.08569017797708511, 0.0022825521882623434, 0.02196114882826805, -0.011875351890921593, 0.018208295106887817, 0.005985455587506294, 0.05841248482465744, 0.019685111939907074, -0.02296886034309864, -0.01760019361972809, 0.043053582310676575, -0.008461297489702702, -0.057022541761398315, 0.024654168635606766, 0.05917695537209511, -0.04715392366051674, -0.008304928429424763, -0.018017176538705826, 0.009225767105817795, 0.024358805269002914, 0.006697802804410458, 0.01951136812567711, 0.007327622268348932, 0.00776632409542799, 0.0346270315349102, 0.007827133871614933, 0.051601748913526535, -0.0031230351887643337, 0.007709857542067766, -0.024150313809514046, -0.09312639385461807, 0.0057204971089959145, -0.03523513302206993, 0.012744068168103695, 0.03919648006558418, 0.029935965314507484, 0.026530597358942032, 0.08026938885450363, 0.043505314737558365, -0.0031795017421245575, 0.04993381351232529, -0.0388142466545105, -0.024063441902399063, -0.042045868933200836, -0.01244001742452383, -0.005373010411858559, -0.026061490178108215, 0.06838534772396088, 0.07616905122995377, -0.021022934466600418, -0.007392776198685169, -0.0365903303027153, 0.016688041388988495, -0.03554787114262581, -0.06261707097291946, 0.08916504681110382, -0.0399262011051178, -0.018816396594047546, -0.03756329417228699, -0.02262137271463871, -0.0007965042605064809, -0.040343187749385834, -0.0261831097304821, -0.04037793353199959, 0.018833769485354424, 0.04072542116045952, 0.07700301706790924, 0.014863735996186733, 0.058586228638887405, 0.04197637364268303, -0.09263990819454193, 0.04791839420795441, 0.027937917038798332, -0.053860411047935486, -0.01845153421163559, 0.02734719030559063, 0.02216964028775692, 0.007349340245127678, 0.005095021333545446, -0.022030645981431007, -0.01545446366071701, -0.003246827283874154, -0.0021913370583206415, -0.03374094143509865, -0.034001559019088745, 0.006719520781189203, 0.01945924572646618, -0.01311761699616909, -0.0557020902633667, -0.021544165909290314, 0.04579872637987137, 0.0798524022102356, -0.036173347383737564, -0.03954396769404411, 0.03589535877108574, -0.00651971623301506, -0.004391361027956009, 0.031152168288826942, 0.009147582575678825, -0.014142701402306557, -0.011875351890921593, -0.0010402877815067768, -0.07582156360149384, -0.06213059276342392, 0.05333918333053589, -0.013960271142423153, -0.004061248619109392, -0.007523083593696356, 0.009217080660164356, 0.026269981637597084, 0.03243786841630936, -0.01128462515771389, -0.02960585243999958, 0.041350897401571274, -0.020067347213625908, 0.01667066663503647, 0.019181257113814354, 0.01311761699616909, -0.0043131764978170395, -0.004089482128620148, -0.01409926638007164, 0.0017178865382447839, 0.010963199660182, -0.028076911345124245, 0.05945494398474693, -0.026304731145501137, 0.017105024307966232, -0.026356853544712067, 0.01815617084503174, 0.06782937049865723, 0.023941822350025177, -0.019372373819351196, -0.01728745549917221, -0.016774911433458328, 0.046563196927309036, -0.013187114149332047, 0.012770130299031734, -0.0023650801740586758, -0.02296886034309864, -0.036520835012197495, 0.018260417506098747, 0.05618857219815254, 0.006901951041072607, -0.011180379427969456, -0.008378769271075726, -0.0039135669358074665, -0.006128793582320213, 0.01965036429464817, 0.02840702421963215, 0.05448588728904724, -0.02474104054272175, -0.028268029913306236, -0.04086441546678543, -0.010077109560370445, 0.029866468161344528, 0.004050389863550663, -0.007970471866428852, -0.03261161223053932, 0.020675448700785637, 0.013334795832633972, -0.043262071907520294, -0.06157461181282997, -0.06317304819822311, -0.01954611763358116, 0.03483552485704422, -0.06803786009550095, -0.024602046236395836, 0.005516348872333765, -0.07331965863704681, 0.006767300423234701, 0.03433166816830635, -0.012431330978870392, -0.06067114695906639, 0.05556309595704079, -0.012309710495173931, 0.011050071567296982, -0.009052024222910404, -0.0018297337228432298, -0.03669457882642746, -0.009469008073210716, -0.08708012849092484, -0.06035840883851051, -0.03964821249246597, -0.042358607053756714, -0.022291261702775955, 0.014385942369699478, 0.0301097072660923, 0.005060272756963968, -0.03721580654382706, -0.06289505958557129, 0.046319954097270966, 0.00008863621042110026, 0.0034010244999080896, 0.009912053123116493, 0.008113810792565346, 0.006484967190772295, -0.006832453887909651, -0.053061194717884064, 0.00522967241704464, -0.055424101650714874, 0.005138457287102938, 0.010407221503555775, -0.01181454211473465, 0.042045868933200836, -0.0026886770501732826, -0.01397764589637518, 0.03773703798651695, -0.004777939990162849, -0.04479101300239563, -0.0035161294508725405, -0.036173347383737564, -0.03700731694698334, 0.013230550102889538, 0.019216004759073257, 0.01630580611526966, 0.007201658561825752, -0.008465640246868134, -0.07589105516672134, -0.0013660563854500651, 0.03870999813079834, 0.001380173023790121, 0.02593986876308918, 0.031082671135663986, -0.007961785420775414, -0.04374855384230614, -0.015306781977415085, -0.026617469266057014, -0.014828987419605255, 0.04607671499252319, 0.03683357313275337, -0.034105803817510605, 0.07078300416469574, -0.029188869521021843, -0.004999462515115738, 0.010520154610276222, 0.02126617543399334, -0.01661854423582554, -0.00952113140374422, 0.0020534282084554434, 0.0064545623026788235, 0.006836797576397657, 0.023142602294683456, 0.01329135987907648, 0.04965582489967346, 0.037320055067539215, 0.018885893747210503, -0.035374127328395844, 0.0833272710442543, -0.002005648799240589, -0.02774680033326149, -0.04770990088582039, 0.03031820058822632, -0.011918787844479084, -0.02482791244983673, -0.025349142029881477, -0.018069298937916756, 0.005577158648520708, -0.0040199849754571915, 0.022638747468590736, 0.001986102666705847, 0.02397656999528408 ]
718,565
pytorch_optimizer.loss.jaccard
soft_jaccard_score
Get soft jaccard score. :param output: torch.Tensor. predicted segments. :param target: torch.Tensor. ground truth segments. :param label_smooth: float. label smoothing factor. :param eps: float. epsilon. :param dims: Optional[Tuple[int, ...]]. target dimensions to reduce.
def soft_jaccard_score( output: torch.Tensor, target: torch.Tensor, label_smooth: float = 0.0, eps: float = 1e-6, dims: Optional[Tuple[int, ...]] = None, ) -> torch.Tensor: r"""Get soft jaccard score. :param output: torch.Tensor. predicted segments. :param target: torch.Tensor. ground truth segments. :param label_smooth: float. label smoothing factor. :param eps: float. epsilon. :param dims: Optional[Tuple[int, ...]]. target dimensions to reduce. """ if dims is not None: intersection = torch.sum(output * target, dim=dims) cardinality = torch.sum(output + target, dim=dims) else: intersection = torch.sum(output * target) cardinality = torch.sum(output + target) return (intersection + label_smooth) / (cardinality - intersection + label_smooth).clamp_min(eps)
(output: torch.Tensor, target: torch.Tensor, label_smooth: float = 0.0, eps: float = 1e-06, dims: Optional[Tuple[int, ...]] = None) -> torch.Tensor
[ -0.02291100099682808, -0.009097788482904434, -0.05511261522769928, -0.018931813538074493, 0.016416337341070175, 0.004597099963575602, -0.018458519130945206, 0.04042292758822441, 0.020404288545250893, -0.029957842081785202, -0.003930980805307627, -0.011008499190211296, 0.026189008727669716, -0.03269243612885475, 0.014751038514077663, 0.027959484606981277, 0.08098609000444412, 0.0016674896469339728, -0.023173943161964417, 0.055147673934698105, 0.05185213312506676, -0.09851554781198502, 0.05146648734807968, 0.07446513324975967, -0.05251825228333473, -0.03572503477334976, 0.054306257516145706, 0.004956454038619995, -0.04775024205446243, -0.020895112305879593, -0.031009608879685402, 0.026346774771809578, -0.011122440919280052, 0.05707591399550438, -0.0043757907114923, 0.04950318858027458, 0.036881979554891586, 0.005670779384672642, -0.014917568303644657, -0.039055630564689636, -0.021736526861786842, 0.009755142964422703, -0.045927178114652634, -0.008804169483482838, 0.01660039648413658, 0.025049595162272453, 0.009553554467856884, 0.022718176245689392, 0.04266669973731041, -0.040387868881225586, -0.020544523373246193, -0.06135309860110283, -0.06499923020601273, -0.022542882710695267, -0.043753523379564285, 0.029747487977147102, 0.07544678449630737, -0.03663656488060951, -0.02727583609521389, -0.03435773774981499, 0.019703110679984093, -0.03193867206573486, 0.05248319357633591, 0.08617480844259262, -0.04266669973731041, 0.015224333852529526, -0.027661483734846115, -0.02164888009428978, -0.028362661600112915, -0.030957020819187164, -0.019580403342843056, -0.012743915431201458, 0.057531677186489105, 0.0043582613579928875, 0.004860042128711939, -0.022946059703826904, 0.05956509709358215, -0.10496638715267181, -0.014645861461758614, -0.053254492580890656, 0.03712739050388336, -0.03782856836915016, -0.015513570047914982, -0.09094282239675522, -0.02543524280190468, -0.013655447401106358, 0.03807397931814194, 0.004003289621323347, -0.022507822141051292, 0.02685512788593769, 0.019930992275476456, 0.03937116265296936, 0.007007400505244732, 0.044735174626111984, -0.010219673626124859, 0.030325960367918015, -0.019843345507979393, -0.02930925227701664, -0.010596556589007378, 0.029063839465379715, 0.02965984120965004, 0.11618524044752121, -0.05097566172480583, 0.04280693456530571, 0.060616862028837204, -0.0310797281563282, -0.013015622273087502, 0.04196552187204361, 0.03600550442934036, -0.014821155928075314, 0.02480418235063553, 0.00644645793363452, -0.03979186713695526, -0.04280693456530571, 0.046137530356645584, -0.024050414562225342, 0.04697894677519798, 0.04638294503092766, -0.04775024205446243, 0.00794522650539875, 0.00455327657982707, -0.06349169462919235, -0.01728404499590397, -0.020544523373246193, 0.009325671009719372, -0.005530543625354767, 0.044314466416835785, 0.04729447513818741, 0.021771585568785667, -0.03909068927168846, 0.013234740123152733, -0.002023556735366583, 0.041089046746492386, -0.004310055170208216, 0.04484035074710846, -0.03134267032146454, 0.040247634053230286, 0.025750773027539253, 0.0030786108691245317, -0.03747798129916191, 0.04820600897073746, -0.043402936309576035, -0.03881021961569786, 0.004145716782659292, 0.018230635672807693, -0.046137530356645584, 0.06489405035972595, 0.007480695843696594, 0.08631505072116852, 0.052132606506347656, 0.07572725415229797, -0.01826569437980652, 0.007419342640787363, -0.015697628259658813, -0.029537135735154152, -0.010000555776059628, 0.04736459255218506, -0.06815452873706818, 0.01666174829006195, 0.009685025550425053, 0.00973761361092329, -0.09472918510437012, -0.023805003613233566, 0.020228993147611618, 0.007857578806579113, -0.021420996636152267, 0.03493620827794075, 0.05108083784580231, -0.03351632133126259, -0.01261244434863329, 0.002806904260069132, -0.060055918991565704, -0.013716800138354301, 0.006700634956359863, 0.04715424031019211, -0.006437693256884813, -0.0330430269241333, 0.00917667057365179, -0.015636276453733444, 0.0168019849807024, 0.037583157420158386, -0.005456043407320976, -0.020860053598880768, -0.04112410545349121, 0.008808552287518978, 0.05087048560380936, 0.020912641659379005, 0.04028269276022911, 0.007498225197196007, 0.03456808999180794, 0.0013300476130098104, -0.03057137317955494, 0.021981939673423767, -0.0032845819368958473, 0.006713781971484423, -0.05686555802822113, -0.0013618196826428175, 0.015294451266527176, -0.013874565251171589, 0.018511107191443443, -0.03712739050388336, 0.026679834350943565, 0.03148290514945984, 0.0080153439193964, 0.054446492344141006, 0.04967848211526871, 0.001172282500192523, 0.04999401047825813, 0.010710498318076134, -0.032920319586992264, -0.06752347201108932, -0.031588081270456314, -0.03614573925733566, 0.01504027470946312, 0.04929283261299133, 0.014321566559374332, -0.014602038078010082, 0.018791578710079193, -0.0004820600734092295, -0.035391975194215775, -0.07993432134389877, -0.035532210022211075, 0.015758981928229332, 0.07748020440340042, -0.0071169594302773476, -0.044033996760845184, 0.023103823885321617, -0.006174751091748476, 0.03979186713695526, -0.038424570113420486, 0.01884416677057743, -0.03344620391726494, -0.0032582879066467285, -0.04957330599427223, 0.043753523379564285, 0.02909889817237854, -0.01248097326606512, 0.004292525816708803, -0.005521778948605061, -0.007103812415152788, 0.015154215507209301, -0.03933610022068024, 0.007121341768652201, 0.026189008727669716, 0.010403732769191265, 0.04119422286748886, 0.011201323010027409, -0.014242683537304401, 0.005561220459640026, 0.05938979983329773, -0.06177380681037903, -0.030588902533054352, -0.009772672317922115, -0.04792553558945656, 0.00678389985114336, -0.03423503041267395, -0.013015622273087502, 0.018826637417078018, -0.010219673626124859, 0.02263052947819233, -0.09157388657331467, -0.000602027284912765, 0.01602192409336567, -0.047399651259183884, -0.009141611866652966, 0.01601315848529339, -0.02433088608086109, 0.058302976191043854, -0.0014648052165284753, 0.011139970272779465, -0.07860208302736282, -0.00948343612253666, -0.01191126648336649, -0.043122462928295135, -0.0065866936929523945, 0.0162410419434309, -0.011078616604208946, 0.027030423283576965, 0.060055918991565704, 0.03071160987019539, 0.013611623086035252, -0.04329776018857956, -0.05009919032454491, 0.00760778458788991, 0.00635881070047617, 0.009465906769037247, 0.02846783772110939, 0.014216389507055283, 0.03709233179688454, -0.03521667793393135, -0.008102991618216038, 0.07572725415229797, 0.08757717162370682, -0.028099719434976578, 0.007208989467471838, 0.026171479374170303, 0.030676549300551414, -0.04105398803949356, -0.03604056313633919, 0.03754809871315956, 0.02552288956940174, -0.011937560513615608, -0.008098608814179897, -0.03302549570798874, -0.012445914559066296, -0.007888255640864372, -0.027749130502343178, -0.021754056215286255, 0.05044977739453316, -0.005346484482288361, -0.02832760289311409, -0.026399362832307816, -0.013988506980240345, 0.014996450394392014, -0.03849468752741814, 0.000823884503915906, 0.009649965912103653, -0.029642311856150627, 0.06745335459709167, 0.016635455191135406, 0.007003018166869879, -0.0064771343022584915, 0.011052322573959827, 0.07776067405939102, -0.007708578836172819, -0.05062507092952728, 0.03127255290746689, 0.0034664501436054707, 0.026802539825439453, -0.026101361960172653, -0.01047385111451149, -0.0048249829560518265, 0.010850734077394009, -0.03747798129916191, -0.03381432220339775, -0.036881979554891586, 0.046207647770643234, -0.008615728467702866, -0.07474560290575027, -0.0034182441886514425, 0.052132606506347656, -0.03120243363082409, 0.007967138662934303, 0.05146648734807968, 0.0012172017013654113, 0.04364834725856781, -0.022016998380422592, 0.013348681852221489, 0.013120798394083977, -0.022122174501419067, 0.008878669701516628, -0.035742562264204025, 0.06815452873706818, 0.039546456187963486, 0.04154481366276741, 0.025838419795036316, 0.029011251404881477, -0.000009731929822009988, 0.01482992060482502, -0.03376173600554466, -0.0024300210643559694, -0.06450840085744858, -0.003924407064914703, -0.003718435997143388, -0.01903698965907097, 0.025259947404265404, -0.03009807877242565, 0.006262398790568113, 0.043963879346847534, -0.04820600897073746, -0.0610375702381134, -0.053394727408885956, -0.04477023333311081, -0.01616215892136097, -0.0006858400302007794, 0.02629418671131134, -0.03807397931814194, -0.0033349792938679457, 0.07832161337137222, 0.028923604637384415, 0.00776993203908205, -0.0014691876713186502, -0.06282557547092438, -0.014812391251325607, -0.028064660727977753, 0.03723256662487984, -0.0026929627638310194, -0.01707369089126587, 0.02748618833720684, -0.025067124515771866, 0.055428143590688705, 0.019948521628975868, 0.0684700608253479, -0.04596223682165146, -0.02213970385491848, 0.028292544186115265, 0.0334637351334095, 0.015978099778294563, -0.026101361960172653, 0.008067932911217213, -0.03793374449014664, -0.013374975882470608, 0.031184904277324677, -0.016284866258502007, -0.055778734385967255, 0.01082444004714489, 0.0012697901111096144, -0.008208168670535088, 0.00419830484315753, 0.060686979442834854, -0.043192584067583084, 0.013348681852221489, -0.021981939673423767, -0.014216389507055283, -0.05139636993408203, 0.015338274650275707, -0.07250183820724487, 0.005061630625277758, -0.019527815282344818, 0.021333349868655205, 0.0073448424227535725, -0.056760381907224655, 0.05171189829707146, -0.03190361335873604, -0.03754809871315956, -0.06759358942508698, -0.0617387481033802, 0.04526105895638466, -0.006902223918586969, -0.03856480494141579, -0.037653274834156036, -0.01560998149216175, 0.016705572605133057, -0.09879601746797562, -0.01877404935657978, 0.029063839465379715, 0.022034527733922005, 0.03383185341954231, -0.0017135044327005744, -0.02557547762989998, 0.0615985132753849, 0.022192291915416718, -0.006275545805692673, 0.04196552187204361, 0.016197217628359795, -0.01008820254355669, 0.0048819538205862045, -0.001431937562301755, -0.09648213535547256, -0.010701733641326427, 0.028275014832615852, -0.008405374363064766, 0.03376173600554466, 0.015268157236278057, -0.020264051854610443, -0.05048483610153198, -0.03407726436853409, -0.00847549270838499, -0.003047934267669916, 0.03793374449014664, -0.007353607099503279, 0.024628886952996254, -0.0017014528857544065, 0.035251736640930176, -0.05094060301780701, 0.016556572169065475, -0.03199125826358795, 0.01110491156578064, 0.010526439175009727, -0.009974260814487934, 0.0324820838868618, -0.04491046816110611, 0.045296117663383484, -0.03295537829399109, 0.025049595162272453, 0.01286662183701992, -0.03807397931814194, 0.05083542689681053, 0.04936295002698898, 0.09234517812728882, -0.006222957279533148, -0.01581156998872757, -0.021631350740790367, -0.033551380038261414, 0.04294716939330101, 0.04000222310423851, -0.007594637107104063, -0.008466728031635284, 0.03129008039832115, -0.00428595207631588, 0.01637251302599907, -0.00963243655860424, 0.026942776516079903, -0.0645434632897377, -0.013480152934789658, 0.020562052726745605, 0.04028269276022911, 0.05314931273460388, -0.032306790351867676, 0.008457963354885578, -0.05097566172480583, -0.009974260814487934, -0.10615839064121246, -0.00009613811562303454, 0.0042136432603001595, -0.008032874204218388, 0.0014144080923870206, 0.031815964728593826, 0.0005976449465379119, 0.051501546055078506, -0.02452371083199978, 0.026171479374170303, 0.01982581615447998, 0.061318039894104004, -0.004868806805461645, 0.00005977818727842532, -0.026890186592936516, 0.018651342019438744, 0.0009115317952819169, -0.0307291392236948, 0.011683383025228977, 0.045927178114652634, 0.00411284901201725, -0.010500145144760609, -0.029063839465379715, 0.031377729028463364, 0.02347194403409958, 0.014847449958324432, 0.015101627446711063, 0.010202144272625446, -0.01826569437980652, 0.028275014832615852, -0.015513570047914982, 0.09711319208145142, -0.007559578400105238, 0.03411232307553291, -0.005968780256807804, -0.04841636121273041, 0.017739810049533844, -0.03467326611280441, 0.010973440483212471, 0.04182528331875801, 0.008812934160232544, 0.011166264303028584, 0.05595402792096138, 0.07895267754793167, -0.0014352243160828948, 0.046207647770643234, -0.046838708221912384, -0.046277765184640884, -0.033148203045129776, 0.013401269912719727, 0.0016872102860361338, -0.0006858400302007794, 0.07755032181739807, 0.07818137854337692, 0.014426743611693382, -0.02426076866686344, -0.004250893369317055, 0.015872923657298088, -0.0038104658015072346, -0.010973440483212471, 0.055217791348695755, -0.045296117663383484, -0.024786652997136116, -0.03600550442934036, -0.014207624830305576, -0.006209810264408588, -0.00016707764007151127, -0.028362661600112915, 0.0008594911778345704, -0.002160505624487996, 0.03540950268507004, 0.08189762383699417, 0.016039453446865082, 0.030483726412057877, 0.03845962882041931, -0.07088912278413773, 0.029747487977147102, 0.019142167642712593, -0.04659329727292061, -0.030027959495782852, 0.006669958587735891, 0.05374531447887421, 0.012314443476498127, 0.01924734376370907, -0.021526172757148743, -0.03663656488060951, -0.0160306878387928, -0.06279051303863525, -0.03789868578314781, -0.001395783037878573, 0.022946059703826904, 0.013813212513923645, -0.024979475885629654, -0.04725941643118858, -0.07726984471082687, 0.04929283261299133, 0.08561386913061142, -0.04308740422129631, -0.028923604637384415, -0.007279106881469488, 0.0009964400669559836, 0.003565053455531597, 0.03148290514945984, 0.005434131715446711, -0.04992389306426048, -0.01250726729631424, 0.014339095912873745, -0.03325337916612625, -0.05875873938202858, 0.03274502605199814, -0.00858066976070404, -0.02263052947819233, -0.04203563928604126, 0.01521556917577982, 0.023296648636460304, 0.03635609522461891, -0.01805534027516842, -0.008672699332237244, 0.04413917288184166, 0.014663390815258026, 0.05181707441806793, 0.04350811243057251, 0.01226185541599989, 0.028485367074608803, -0.026031244546175003, -0.043613288551568985, 0.026416892185807228, 0.03267490863800049, -0.013629153370857239, 0.05371025577187538, -0.002491374034434557, 0.025908537209033966, -0.009343200363218784, -0.024786652997136116, 0.039897043257951736, 0.017871281132102013, 0.0007882777717895806, 0.020228993147611618, -0.08785764127969742, 0.04554152861237526, 0.007612166926264763, -0.015399628318846226, -0.014961391687393188, -0.023875121027231216, 0.029046310111880302, 0.018178047612309456, 0.06135309860110283, 0.0015984673518687487, -0.017695987597107887, 0.011297735385596752, -0.00839660968631506, 0.032902792096138, 0.04484035074710846, 0.04119422286748886, 0.02987019531428814, -0.001647769007831812, -0.022385116666555405, -0.05132624879479408, 0.002291976474225521, -0.0019939758349210024, 0.009264318272471428, -0.03043113835155964, -0.05392061173915863, 0.01672310195863247, 0.04655823856592178, -0.05896909534931183, -0.06503428518772125, -0.04161493107676506, -0.05146648734807968, 0.04077351838350296, -0.01688086800277233, -0.032306790351867676, -0.004719806369394064, -0.058232855051755905, 0.016749396920204163, 0.043613288551568985, -0.02080746553838253, -0.06808441132307053, 0.09318659454584122, -0.010692968964576721, 0.02003617025911808, 0.018528636544942856, 0.00021624228975269943, -0.06527969986200333, -0.012139149010181427, -0.064683698117733, -0.04455988109111786, -0.060686979442834854, -0.024436064064502716, 0.00019378267461434007, 0.03937116265296936, 0.02958972379565239, -0.0153645696118474, 0.03635609522461891, -0.05728626623749733, 0.07348348200321198, 0.034901149570941925, -0.018528636544942856, 0.010035614483058453, 0.02620653808116913, -0.020562052726745605, 0.010500145144760609, -0.052763666957616806, 0.044594939798116684, -0.0614582784473896, -0.003998907282948494, -0.011034793220460415, -0.03824927657842636, 0.03874010220170021, -0.011464265175163746, -0.030957020819187164, -0.003970421850681305, 0.004518217407166958, -0.029694899916648865, 0.003619832918047905, -0.05255331099033356, 0.021806644275784492, 0.056479912251234055, 0.008935640566051006, 0.001940291840583086, 0.033779263496398926, 0.014742273837327957, -0.08294939249753952, -0.01996605098247528, 0.014777332544326782, -0.004930160008370876, 0.03600550442934036, 0.0006885789916850626, -0.02454124018549919, 0.0035891563165932894, -0.024208180606365204, 0.028520427644252777, -0.0028989340644329786, 0.02559300698339939, 0.04273681715130806, -0.045015644282102585, 0.05840815231204033, 0.023436883464455605, 0.010245967656373978, 0.0027740364894270897, 0.016898397356271744, -0.008234462700784206, 0.019229814410209656, 0.03807397931814194, -0.032078906893730164, 0.015504804439842701, 0.021000290289521217, -0.0069942534901201725, 0.05188719183206558, -0.008567522279918194, 0.045997295528650284, -0.054516613483428955, 0.08883929252624512, -0.0017463722033426166, -0.06633146852254868, -0.009124082513153553, 0.02003617025911808, -0.03474338352680206, -0.07271219044923782, -0.0310797281563282, -0.05553331971168518, 0.0011624221224337816, -0.05181707441806793, 0.031886082142591476, 0.006648046430200338, 0.0034467296209186316 ]
718,567
pytorch_optimizer.optimizer.utils
unit_norm
Get norm of unit.
def unit_norm(x: torch.Tensor, norm: float = 2.0) -> torch.Tensor: r"""Get norm of unit.""" keep_dim: bool = True dim: Optional[Union[int, Tuple[int, ...]]] = None x_len: int = len(x.shape) if x_len <= 1: keep_dim = False elif x_len in (2, 3): # linear layers dim = 1 elif x_len == 4: # conv kernels dim = (1, 2, 3) else: dim = tuple(range(1, x_len)) return x.norm(p=norm, dim=dim, keepdim=keep_dim)
(x: torch.Tensor, norm: float = 2.0) -> torch.Tensor
[ -0.03145492076873779, 0.06329948455095291, 0.016860971227288246, 0.00665051955729723, 0.07467001676559448, 0.008603168651461601, 0.010307862423360348, -0.005698547698557377, 0.03444809839129448, 0.038858164101839066, 0.004423348233103752, -0.01461166050285101, -0.03634318709373474, 0.031082987785339355, 0.010918895713984966, 0.041621096432209015, 0.012309216894209385, -0.016480183228850365, -0.018277859315276146, -0.0036042097490280867, 0.01939365826547146, 0.08820129930973053, 0.028550298884510994, -0.02010210230946541, -0.047359492629766464, -0.012743139639496803, -0.0036396319046616554, -0.06078450754284859, -0.013212483376264572, -0.04856384918093681, 0.041337717324495316, 0.03630776330828667, 0.05706517770886421, -0.012016983702778816, 0.012034695595502853, 0.021271035075187683, -0.005981925409287214, 0.011273117735981941, -0.020279213786125183, -0.05444393306970596, -0.011450229212641716, -0.021820079535245895, -0.0008966246386989951, 0.06740846484899521, 0.026991723105311394, 0.004120045807212591, 0.0029754654970020056, 0.0022415616549551487, -0.09018494188785553, -0.0019858574960380793, -0.01663072593510151, 0.05122051388025284, 0.05246029049158096, -0.023467212915420532, 0.020172948017716408, -0.035191964358091354, -0.008554463274776936, 0.023892279714345932, 0.00047875329619273543, 0.00869615189731121, 0.005171642173081636, 0.028390899300575256, -0.06971090286970139, -0.01096317358314991, 0.02433505654335022, -0.05844664201140404, -0.00006468703941209242, 0.07537846267223358, 0.04576549306511879, 0.040629271417856216, -0.045021627098321915, 0.020190658047795296, -0.04222327098250389, -0.007899152114987373, 0.04023962840437889, 0.014983594417572021, 0.026070745661854744, 0.00888211838901043, 0.047855403274297714, 0.01601969450712204, 0.0035422209184616804, 0.04073553904891014, -0.02899307757616043, 0.02093452587723732, -0.03177371993660927, -0.030445387586951256, -0.017914781346917152, -0.00636271433904767, -0.020314635708928108, -0.020048970356583595, -0.04243580624461174, 0.011512218043208122, 0.044384025037288666, -0.007248269394040108, -0.005224775522947311, 0.04236496239900589, -0.039849985390901566, -0.011724750511348248, -0.0038388818502426147, -0.06744388490915298, -0.02256394736468792, 0.09174352139234543, -0.007885868661105633, 0.06581446528434753, 0.01301766186952591, 0.046580202877521515, -0.009962496347725391, -0.08926396816968918, -0.04767829179763794, 0.07714956998825073, -0.03149034455418587, -0.020119814202189445, -0.03478460758924484, -0.00707115838304162, -0.01668385975062847, -0.047288648784160614, -0.02908163331449032, -0.0007322434685193002, -0.007221702486276627, -0.006163464393466711, 0.04980362579226494, 0.044950783252716064, -0.012211806140840054, -0.10088244825601578, -0.005614419933408499, 0.018791481852531433, -0.03198625519871712, -0.031578898429870605, 0.0016327423509210348, 0.03577642887830734, 0.04881180450320244, -0.02249310165643692, 0.01923425868153572, 0.04626140370965004, 0.05469188839197159, -0.014363705180585384, -0.02072199247777462, 0.028532588854432106, 0.025415433570742607, 0.08508414030075073, -0.01534667145460844, 0.06163464114069939, -0.004839559085667133, 0.024954944849014282, 0.02729281224310398, 0.028886809945106506, -0.004443273413926363, 0.03510340675711632, 0.013522427529096603, -0.043392203748226166, -0.043817270547151566, 0.007066730409860611, 0.09110592305660248, 0.007354536093771458, -0.026637500151991844, 0.013292183168232441, -0.02383914589881897, -0.08954734355211258, 0.04781997948884964, 0.0073279691860079765, -0.043817270547151566, -0.03404074162244797, -0.019127992913126945, -0.06319321691989899, -0.0002479554677847773, 0.02502579055726528, -0.0064512696117162704, 0.014124605804681778, 0.004277231637388468, 0.033562541007995605, 0.0057428255677223206, 0.025875922292470932, 0.03524509817361832, 0.03184456378221512, 0.034200143069028854, -0.044738247990608215, -0.02355576865375042, 0.0022825184278190136, -0.05812784284353256, -0.044525716453790665, 0.028674278408288956, -0.02830234356224537, 0.021040791645646095, -0.05826953426003456, -0.02263479121029377, -0.009395740926265717, -0.036166075617074966, 0.008195813745260239, -0.05182269215583801, -0.037157896906137466, 0.008461480028927326, -0.008319791406393051, -0.05961557477712631, 0.02383914589881897, 0.02780643291771412, 0.023963123559951782, 0.0035200819838792086, 0.002468485152348876, 0.07215503603219986, -0.09245195984840393, -0.05157473683357239, -0.019641613587737083, 0.017170915380120277, 0.04512789472937584, -0.06375997513532639, -0.06138668581843376, -0.03644945099949837, 0.022741056978702545, 0.01372610591351986, -0.028745122253894806, 0.01594884879887104, 0.015824871137738228, -0.020987657830119133, 0.034979429095983505, -0.019145702943205833, -0.012034695595502853, -0.018578948453068733, -0.0031370793003588915, 0.014983594417572021, -0.008563319221138954, 0.0076777637004852295, -0.034554362297058105, 0.07892067730426788, 0.030445387586951256, -0.027682455256581306, 0.04767829179763794, 0.005756109021604061, 0.01390321645885706, 0.015594626776874065, 0.03882274031639099, 0.008700580336153507, -0.00746523030102253, -0.016577593982219696, 0.02837318927049637, -0.0029001932125538588, -0.11632653325796127, 0.020810548216104507, 0.05543575435876846, 0.09039747714996338, -0.04349847137928009, -0.06896703690290451, -0.048138782382011414, -0.02793041057884693, 0.021696101874113083, 0.02440590225160122, 0.0019958200864493847, -0.004091265145689249, 0.03396989777684212, -0.03591812029480934, 0.001549721579067409, -0.10343284904956818, 0.031082987785339355, 0.024069391191005707, 0.019358236342668533, 0.06985259801149368, -0.019677037373185158, -0.07544930279254913, 0.023892279714345932, -0.014416838996112347, 0.0011744676157832146, -0.011680473573505878, -0.029028499498963356, 0.013212483376264572, 0.02164296992123127, -0.012504039332270622, -0.07665365934371948, -0.00800984725356102, 0.024565301835536957, 0.05710059776902199, 0.06446842104196548, 0.10782520473003387, 0.046651046723127365, 0.03924780711531639, -0.040983494371175766, 0.03960203006863594, 0.020420903339982033, 0.04349847137928009, -0.020739702507853508, 0.07116321474313736, 0.025096634402871132, -0.011051729321479797, 0.007066730409860611, -0.05823411047458649, 0.019553059712052345, 0.003537792945280671, -0.004046987276524305, -0.01390321645885706, -0.05458562448620796, -0.03655571863055229, 0.007394385989755392, 0.01454081665724516, -0.0006625059759244323, 0.0022714491933584213, 0.015444083139300346, -0.030516231432557106, -0.05426682159304619, -0.06652290374040604, -0.010626662522554398, 0.03641403093934059, 0.026424966752529144, -0.03184456378221512, 0.03510340675711632, -0.04916602373123169, 0.03262385353446007, 0.05763193219900131, 0.017525138333439827, -0.0045694648288190365, -0.03591812029480934, 0.013070794753730297, -0.008107258006930351, 0.027204256504774094, -0.019322814419865608, -0.04321509227156639, 0.018578948453068733, 0.07969997078180313, 0.08720947802066803, 0.018578948453068733, -0.021554414182901382, 0.007801741361618042, 0.06021775305271149, 0.006004064343869686, 0.06719592958688736, 0.05256655812263489, 0.04647393524646759, -0.08777622878551483, -0.05256655812263489, 0.022882746532559395, 0.02001354843378067, -0.015355527400970459, 0.0012807341990992427, 0.00643798615783453, -0.042754605412483215, -0.004888264928013086, 0.004950253758579493, -0.03846851736307144, -0.012734283693134785, 0.07187166064977646, -0.02256394736468792, 0.021465858444571495, -0.02778872288763523, 0.0028669850435107946, 0.04101891815662384, 0.009980207309126854, -0.014275149442255497, -0.03140178695321083, -0.010688651353120804, 0.023927701637148857, -0.016365060582756996, 0.05246029049158096, -0.02263479121029377, 0.0018231368158012629, -0.0029001932125538588, 0.00715971365571022, -0.03740585222840309, 0.0005623275646939874, 0.040700118988752365, -0.012318072840571404, -0.04179820418357849, -0.030959010124206543, -0.015328960493206978, 0.021749235689640045, 0.021820079535245895, -0.021660679951310158, -0.046296827495098114, 0.01651560515165329, -0.003991640172898769, 0.03836224973201752, -0.05749024450778961, -0.013070794753730297, 0.06064281985163689, -0.020261503756046295, 0.0016604160191491246, -0.025008078664541245, 0.012078972533345222, -0.04009794071316719, 0.029117055237293243, -0.030108876526355743, -0.045659225434064865, 0.0044587706215679646, -0.08657187968492508, 0.043463047593832016, -0.022404545918107033, 0.01845497079193592, 0.001181109226308763, 0.013761527836322784, -0.026407256722450256, 0.01424858346581459, 0.009502007625997066, -0.041125182062387466, -0.011467940174043179, 0.0031016571447253227, 0.007947857491672039, 0.017994482070207596, 0.023679746314883232, -0.06290984153747559, 0.006336147431284189, -0.02440590225160122, -0.016922960057854652, -0.05277908965945244, -0.06131584197282791, -0.02206803485751152, 0.031136121600866318, 0.0036529151257127523, 0.06793979555368423, -0.05873002111911774, 0.0006957143195904791, -0.030321409925818443, 0.01923425868153572, -0.005477158818393946, 0.023644324392080307, -0.04470282793045044, 0.06181175261735916, 0.029825499281287193, 0.007084441836923361, 0.04236496239900589, -0.0077353245578706264, 0.07144659757614136, -0.04023962840437889, -0.016781270503997803, 0.03149034455418587, -0.03182685375213623, -0.03258842974901199, 0.05763193219900131, 0.044525716453790665, 0.04874095693230629, -0.0022714491933584213, 0.03593583032488823, -0.05277908965945244, -0.017843937501311302, 0.01665729284286499, -0.07516592741012573, 0.004560609348118305, -0.03634318709373474, -0.07332397252321243, 0.009927073493599892, 0.020881392061710358, 0.01859665848314762, 0.040629271417856216, -0.053168732672929764, 0.026779189705848694, -0.004542898386716843, 0.03928322717547417, -0.012654583901166916, -0.018756059929728508, -0.015355527400970459, 0.030463099479675293, -0.02858572266995907, 0.017498571425676346, 0.021129347383975983, -0.0013471508864313364, -0.041479405015707016, -0.025645678862929344, 0.05936761945486069, -0.047926247119903564, 0.02454758994281292, -0.010405274108052254, -0.049839045852422714, -0.01847268082201481, -0.03683909773826599, -0.02837318927049637, -0.007770746946334839, 0.028815966099500656, -0.019004015251994133, -0.02651352249085903, -0.006991458125412464, -0.0052513424307107925, 0.030108876526355743, 0.03311976417899132, 0.029329588636755943, 0.008793563582003117, 0.01987185887992382, 0.052176911383867264, 0.05221233516931534, 0.019623903557658195, 0.03928322717547417, -0.024990368634462357, 0.0016050687991082668, 0.004208601079881191, 0.01103401742875576, -0.05837579816579819, -0.05646299943327904, 0.03283638879656792, -0.010175029747188091, 0.03359796479344368, -0.02043861337006092, 0.020332347601652145, -0.020491747185587883, 0.043250516057014465, 0.06723134964704514, 0.01994270272552967, -0.010175029747188091, 0.06563735008239746, 0.05873002111911774, -0.04123144969344139, -0.04803251475095749, -0.013584417290985584, 0.004239595495164394, 0.02743449993431568, 0.0036839095409959555, 0.04718238115310669, 0.04271918162703514, 0.00047986023128032684, 0.05497526749968529, 0.03428869694471359, -0.03444809839129448, 0.08550921082496643, -0.07948743551969528, -0.014062616974115372, 0.0007632378838025033, -0.05370006710290909, 0.002716440474614501, -0.02793041057884693, -0.03262385353446007, -0.011538784019649029, 0.03005574271082878, 0.02362661249935627, -0.01506329420953989, -0.019694747403264046, 0.02474241331219673, -0.01103401742875576, -0.026407256722450256, 0.030002610757946968, -0.07516592741012573, -0.024246500805020332, -0.007815024815499783, 0.038999851793050766, -0.037087053060531616, -0.020332347601652145, 0.018578948453068733, -0.016267649829387665, 0.02157212421298027, -0.00726598035544157, 0.005897797644138336, -0.004226312041282654, 0.006415847223252058, 0.012778561562299728, -0.05561286583542824, -0.02957754395902157, -0.023449501022696495, 0.029719233512878418, -0.01868521422147751, -0.03239360824227333, 0.08210867643356323, 0.0017545062582939863, 0.011981561779975891, -0.0000940902391448617, 0.01715320348739624, 0.022014902904629707, 0.0036839095409959555, 0.01128197368234396, -0.06567277759313583, 0.02844403311610222, 0.0018663075752556324, -0.04314424842596054, -0.029524410143494606, -0.01746314950287342, -0.046084292232990265, 0.03995624929666519, -0.020420903339982033, -0.0059066531248390675, 0.012087828479707241, -0.05777361989021301, 0.06496433168649673, 0.03524509817361832, -0.022174302488565445, 0.014469971880316734, -0.005087514873594046, -0.05231860280036926, 0.016072826460003853, 0.02291816845536232, -0.02539772354066372, 0.04378185048699379, 0.013309895060956478, 0.02220972441136837, 0.0016272077336907387, -0.01446111686527729, 0.019499925896525383, -0.07644112408161163, -0.01392978336662054, -0.041125182062387466, 0.024033967405557632, -0.05982811003923416, 0.004839559085667133, 0.03634318709373474, -0.03836224973201752, -0.06014690920710564, -0.017374593764543533, 0.015497216023504734, -0.00788144115358591, -0.005286764353513718, 0.02814294397830963, 0.011397095397114754, -0.0035134402569383383, -0.013850083574652672, 0.07729125767946243, -0.07148201763629913, -0.043817270547151566, -0.000756596215069294, 0.047146957367658615, 0.03549305349588394, 0.025911346077919006, 0.03184456378221512, 0.013292183168232441, 0.08352556824684143, -0.008833413012325764, -0.053593799471855164, -0.01117570698261261, -0.015700893476605415, -0.012831694446504116, -0.03981456160545349, -0.013770383782684803, -0.030321409925818443, -0.01463822741061449, -0.008527896367013454, 0.007761891465634108, -0.04696984961628914, -0.006017347797751427, -0.03466062992811203, 0.006615097168833017, -0.0030839459504932165, -0.0030396683141589165, -0.02623014524579048, -0.029382722452282906, -0.03237589821219444, -0.021873213350772858, -0.006628380622714758, 0.019269680604338646, 0.023998545482754707, 0.00038327937363646924, -0.06039486452937126, -0.01594884879887104, 0.0011988203041255474, -0.03012658841907978, -0.007770746946334839, -0.0068320585414767265, 0.02878054417669773, -0.06453926116228104, -0.012707716785371304, 0.0030773042235523462, 0.04760744795203209, 0.09457729756832123, 0.024813257157802582, 0.020048970356583595, 0.03297807648777962, 0.0019105853280052543, 0.009661407209932804, 0.020031258463859558, 0.009192063473165035, 0.005455019883811474, -0.04413606971502304, -0.04016878455877304, 0.018153881654143333, 0.08940565586090088, 0.018136169761419296, 0.036591142416000366, -0.0036152792163193226, -0.015399805270135403, -0.03535136207938194, 0.008647446520626545, -0.041054338216781616, -0.03698078542947769, -0.05734855681657791, 0.008536752313375473, 0.039991673082113266, -0.02893994376063347, -0.038858164101839066, -0.011042873375117779, -0.06811690330505371, -0.07254467904567719, -0.09719853848218918, 0.012716572731733322, 0.021696101874113083, 0.028337767347693443, -0.016675004735589027, 0.014345994219183922, 0.041125182062387466, 0.03811429440975189, -0.025008078664541245, 0.02497265674173832, 0.021448146551847458, -0.009918218478560448, -0.02029692567884922, -0.025415433570742607, -0.002973251510411501, -0.002119797747582197, -0.0050078146159648895, -0.044171493500471115, 0.00583580881357193, -0.01755170337855816, -0.008957390673458576, -0.03733500838279724, 0.005973069928586483, -0.04562380537390709, 0.014266294427216053, -0.018720636144280434, -0.008430485613644123, -0.005928792059421539, 0.03386363014578819, 0.030994432047009468, 0.04555296152830124, 0.05022869259119034, -0.06025317683815956, -0.042117007076740265, -0.00696489168331027, 0.05426682159304619, -0.04718238115310669, 0.01011303998529911, -0.00169251742772758, 0.00010170048335567117, 0.07736210525035858, 0.05479815602302551, -0.007000314071774483, 0.02722196653485298, -0.051681000739336014, 0.025716522708535194, 0.01774652674794197, -0.01817159354686737, 0.05557744577527046, -0.0010825912468135357, -0.01106944028288126, 0.042542070150375366, -0.062272243201732635, 0.00954628549516201, 0.002638954436406493, 0.014469971880316734, 0.015470649115741253, -0.024671567603945732, 0.03326145187020302, -0.03389905393123627, -0.023396369069814682, -0.017170915380120277, 0.021890925243496895, 0.025149768218398094, 0.04633224755525589, 0.005056519992649555, 0.02263479121029377, -0.04031047224998474, -0.014443404972553253, -0.06684170663356781, -0.05674637854099274, 0.05423140153288841, 0.014514249749481678, 0.03797260671854019, -0.011556494981050491, -0.00634943088516593, -0.018091892823576927, 0.01392978336662054, -0.029754655435681343, 0.023998545482754707, -0.03352712094783783, 0.04293171688914299, -0.04845758154988289, -0.05327500030398369, -0.00562327541410923, 0.03522738441824913, -0.031136121600866318, -0.009245196357369423, 0.014186594635248184, -0.02228056825697422, -0.03140178695321083, 0.035687875002622604, -0.027912700548768044, 0.03234047442674637, 0.046580202877521515, -0.04526958242058754, 0.012955673038959503, 0.06368912756443024, 0.040416739881038666 ]
718,568
masky.core
Masky
null
class Masky: def __init__( self, ca, user, template="User", domain=".", password=None, hashes=None, kerberos=False, dc_ip=None, quiet=True, stealth=False, exe_path=None, file_args=False, ): self.__ca = ca self.__template = template self.__domain = domain self.__user = user self.__password = password self.__hashes = hashes self.__kerberos = kerberos self.__dc_ip = dc_ip self.__dc_target = None self.__quiet = quiet self.__stealth = stealth self.__exe_path = exe_path self.__file_args = file_args self.__tracker = Tracker() def __process_options(self): try: self.__dc_target = socket.gethostbyname(self.__domain) except: self.__dc_target = self.__dc_ip if self.__dc_target == "0.0.0.0": self.__dc_target = self.__dc_ip if not self.__dc_target: err_msg = f"The provided domain '{self.__domain}' cannot be resolved, please set the full FQDN or provide the DC IP address" logger.error(err_msg) self.__tracker.last_error_msg = err_msg return False return True def __process_certificate(self, user_data): certipy_auth = Authenticate( self.__tracker, self.__domain, self.__dc_ip, user_data, False, False ) if certipy_auth.authenticate(): return True return False def run(self, target): self.__tracker = Tracker() add_result_level() if self.__quiet: logger.disabled = True if not self.__process_options(): return None if not scan_port(target): logger.info("The port tcp/445 seems not exposed, skipping this target") return None s = Smb( self.__tracker, self.__domain, self.__user, password=self.__password, hashes=self.__hashes, kerberos=self.__kerberos, dc_target=self.__dc_target, stealth=self.__stealth, exe_path=self.__exe_path, file_args=self.__file_args, ) rslt = None try: rslt = s.exec_masky(target, self.__ca, self.__template) except: return rslt self.__tracker.nb_hijacked_users = len(rslt.users) if not rslt or not rslt.users: logger.info("No user session was hijacked") return None if len(rslt.users) == 1: logger.info(f"{len(rslt.users)} user session was hijacked") else: logger.info(f"{len(rslt.users)} user sessions were hijacked") for user_data in rslt.users: logger.debug( f"Start processing PFX of the user '{user_data.domain}\{user_data.name}'" ) if not self.__process_certificate(user_data): logger.warn( f"Fail to process gathered certificate related to the user '{user_data.domain}\{user_data.name}'" ) else: logger.debug( f"End processing PFX of the user '{user_data.domain}\{user_data.name}'" ) return rslt def get_last_tracker(self): return self.__tracker
(ca, user, template='User', domain='.', password=None, hashes=None, kerberos=False, dc_ip=None, quiet=True, stealth=False, exe_path=None, file_args=False)
[ 0.06528828293085098, -0.0046097575686872005, -0.01823449321091175, 0.0888509750366211, -0.01496189832687378, -0.0414392426609993, -0.08467841148376465, -0.00998141709715128, 0.029514722526073456, -0.03941432386636734, 0.0065912120044231415, 0.03753258287906647, -0.008559882640838623, 0.008728626184165478, -0.04311644658446312, -0.008922936394810677, 0.03260323405265808, 0.045529987663030624, -0.030189694836735725, -0.03730759024620056, -0.00007666151213925332, 0.023337697610259056, 0.06610643118619919, 0.0832875594496727, -0.01575959287583828, 0.03861662745475769, 0.017375437542796135, -0.017078857868909836, 0.042543742805719376, -0.00199040281586349, -0.009301329962909222, 0.011781344190239906, 0.00466600526124239, 0.01928786002099514, 0.017283394932746887, -0.030189694836735725, 0.023971762508153915, 0.05571594089269638, -0.06569735705852509, -0.02714209072291851, -0.020780982449650764, -0.022785447537899017, 0.06680186092853546, -0.002789376536384225, -0.020075328648090363, 0.019615119323134422, 0.0002042176347458735, 0.08516930043697357, -0.0005190132069401443, -0.03063967637717724, -0.02613985724747181, -0.016700465232133865, 0.0025413751136511564, 0.00001984450500458479, 0.034178171306848526, 0.016587968915700912, 0.007066761143505573, 0.05272969603538513, 0.0009600466000847518, -0.04929347336292267, -0.03205098211765289, 0.004251817706972361, 0.03730759024620056, 0.027837516739964485, 0.012190418317914009, 0.015728913247585297, -0.07338795810937881, -0.016158441081643105, -0.0007682929863221943, -0.007787754759192467, 0.04092789813876152, -0.04323916882276535, -0.01073820423334837, 0.023542234674096107, 0.06631097197532654, -0.025158079341053963, -0.04618450626730919, -0.01630161702632904, -0.015268703922629356, -0.0037353611551225185, 0.04217557609081268, 0.004042166750878096, -0.01886855997145176, -0.035098589956760406, 0.025648968294262886, -0.011546126566827297, 0.14530324935913086, -0.014593730680644512, 0.0036382058169692755, 0.019052643328905106, -0.02474900521337986, 0.02100597321987152, 0.018398122861981392, 0.04352552071213722, 0.03215325251221657, -0.012180191464722157, -0.0191242303699255, 0.05227971449494362, -0.0249126348644495, -0.025873959064483643, -0.04806624725461006, 0.02319452166557312, -0.005670794751495123, 0.05416145920753479, -0.004313178826123476, 0.05416145920753479, -0.02618076466023922, -0.006979832891374826, -0.029657898470759392, -0.013806262984871864, -0.050234343856573105, 0.0034796895924955606, -0.01727316901087761, -0.03372818976640701, -0.010201293975114822, -0.04884348809719086, -0.022028658539056778, 0.011443858034908772, 0.010165500454604626, 0.011290455237030983, -0.03685760870575905, 0.001588998595252633, -0.03141691908240318, 0.022744540125131607, -0.03104875050485134, 0.021865028887987137, 0.00026877468917518854, 0.01621980220079422, 0.0685608759522438, -0.03311457857489586, -0.04121425002813339, 0.0056810216046869755, 0.01911400444805622, 0.06365198642015457, 0.016577742993831635, -0.04524363577365875, -0.00007446433301083744, -0.015381199307739735, 0.008687718771398067, 0.015749366953969002, 0.04152105748653412, 0.0191242303699255, -0.008513862267136574, -0.014021026901900768, 0.03610081970691681, -0.009628590196371078, 0.04589815437793732, -0.05236152932047844, 0.018940147012472153, -0.04974345490336418, 0.01430737879127264, -0.03577356040477753, -0.04205285385251045, 0.04471183940768242, -0.008810441009700298, 0.05416145920753479, -0.006028734613209963, -0.023971762508153915, 0.016587968915700912, -0.04892530292272568, -0.0653291866183281, -0.05755677446722984, -0.03822800889611244, -0.02765343338251114, -0.037921201437711716, -0.029555629938840866, -0.00511598726734519, -0.011045009829103947, 0.03714396059513092, 0.09793242067098618, -0.039434775710105896, 0.01132113579660654, -0.06434740871191025, 0.041541509330272675, -0.009756425395607948, 0.04618450626730919, 0.008513862267136574, -0.028594303876161575, -0.034730419516563416, 0.022580910474061966, -0.01765156351029873, -0.013724448159337044, -0.05088886246085167, -0.000493126455694437, 0.0016107306582853198, 0.05841583386063576, 0.03685760870575905, 0.02450355887413025, 0.03278731927275658, 0.025178533047437668, -0.048557136207818985, 0.03184644505381584, 0.04929347336292267, 0.016035718843340874, 0.01575959287583828, -0.023378605023026466, -0.007884910330176353, 0.022928623482584953, -0.0320918895304203, -0.05673862621188164, -0.03016924113035202, 0.048557136207818985, 0.011065463535487652, -0.02949426881968975, -0.03411680832505226, 0.0034566791728138924, -0.02718299813568592, 0.06267020851373672, -0.07702872157096863, 0.018715156242251396, 0.038677990436553955, -0.04618450626730919, -0.025771690532565117, 0.05289332568645477, 0.025198986753821373, -0.05612501502037048, 0.13057656586170197, 0.04283009469509125, 0.01399034634232521, 0.049825269728899, 0.010881380178034306, 0.007025853730738163, -0.05722951516509056, 0.016506154090166092, -0.06500192731618881, 0.039352960884571075, 0.018173132091760635, 0.05526595935225487, 0.07678327709436417, -0.08525111526250839, 0.05289332568645477, 0.000852664583362639, -0.014614185318350792, 0.0161379873752594, -0.017457252368330956, 0.004873099271208048, 0.027673887088894844, 0.0354667566716671, 0.04156196489930153, 0.036837153136730194, 0.0037507014349102974, 0.008022972382605076, 0.09408712387084961, -0.027673887088894844, 0.0022741982247680426, 0.005415122956037521, 0.034178171306848526, 0.016608422622084618, 0.020494630560278893, -0.004947244189679623, 0.028226137161254883, -0.03344183787703514, -0.011617714539170265, -0.0023879720829427242, -0.025526246055960655, -0.017385663464665413, -0.02335815131664276, -0.032296426594257355, 0.06222022324800491, 0.025914866477251053, -0.011740436777472496, -0.001669535064138472, -0.034219078719615936, 0.010707523673772812, -0.04626632109284401, 0.024217206984758377, -0.047248098999261856, -0.007271298207342625, -0.022887716069817543, -0.006990059744566679, 0.022908169776201248, 0.04029383510351181, -0.03601900488138199, 0.0010731812799349427, -0.06213840842247009, -0.005890672095119953, 0.005926466081291437, 0.031825993210077286, -0.018377669155597687, -0.010574574582278728, 0.06344744563102722, 0.020034421235322952, 0.053343307226896286, -0.023092253133654594, 0.01634252443909645, -0.0031524300575256348, -0.02630348689854145, 0.03515994921326637, 0.017222033813595772, -0.04123470559716225, -0.047002654522657394, 0.003556390991434455, 0.051747918128967285, -0.06410196423530579, 0.016189120709896088, 0.011842705309391022, -0.09875057637691498, -0.062302038073539734, -0.005054626148194075, -0.03751212731003761, -0.036837153136730194, -0.002827727235853672, -0.04597996920347214, 0.014522142708301544, 0.010605255141854286, -0.026487570255994797, 0.05076614022254944, -0.006381561513990164, 0.018725384026765823, 0.03438270837068558, 0.06500192731618881, -0.033339567482471466, 0.01570845954120159, -0.05264788120985031, 0.035282671451568604, -0.0029964703135192394, 0.06393833458423615, 0.04659358039498329, 0.003763485001400113, 0.06880632042884827, -0.02104688063263893, 0.005517391487956047, 0.039475683122873306, 0.005445803515613079, 0.027755701914429665, 0.024196753278374672, 0.0342804379761219, 0.01631184294819832, -0.047043561935424805, -0.010707523673772812, -0.06348835676908493, 0.03196916729211807, -0.02004464901983738, 0.008795101195573807, 0.003886207239702344, -0.02227410487830639, -0.0084218205884099, -0.04917075112462044, 0.027919331565499306, -0.07637420296669006, -0.025812597945332527, -0.00943427998572588, -0.06299746781587601, 0.006857110653072596, 0.03362591937184334, -0.0462254136800766, -0.045407265424728394, 0.016373205929994583, -0.008375799283385277, 0.005420236382633448, 0.07306069880723953, -0.002180878072977066, 0.0011690581450238824, 0.027489803731441498, 0.06831543147563934, -0.010196181014180183, -0.032173704355955124, -0.014532369561493397, 0.03515994921326637, -0.024769458919763565, -0.012149510905146599, -0.02613985724747181, -0.014378966763615608, -0.017375437542796135, -0.03878025710582733, -0.03933250904083252, 0.01697658933699131, -0.009132587350904942, 0.07567877322435379, -0.00357684469781816, -0.024769458919763565, -0.021865028887987137, -0.05555231124162674, -0.062465667724609375, 0.01132113579660654, 0.02382858656346798, -0.005384442396461964, -0.027407988905906677, -0.06954265385866165, 0.020269639790058136, 0.032746411859989166, 0.0043029519729316235, -0.02227410487830639, -0.005082750227302313, -0.006442922633141279, -0.034178171306848526, -0.01516643539071083, 0.03434180095791817, 0.050316158682107925, 0.008600790053606033, 0.08046494424343109, -0.038637083023786545, 0.06618824601173401, -0.04953891783952713, 0.012435863725841045, 0.004553509876132011, 0.005629887338727713, 0.06185205653309822, 0.005962260067462921, -0.020607125014066696, -0.021333232522010803, 0.01655728928744793, 0.0300874263048172, 0.050316158682107925, 0.011719983071088791, -0.012210872024297714, 0.04352552071213722, -0.02722390554845333, 0.016659557819366455, 0.062383852899074554, -0.019103776663541794, -0.022028658539056778, 0.004752933979034424, -0.04340279847383499, -0.06291565299034119, 0.0008226231439039111, -0.07645601779222488, -0.015688005834817886, 0.030864667147397995, 0.03908706456422806, 0.03685760870575905, 0.021026426926255226, -0.01869470253586769, 0.010441625490784645, -0.03442361578345299, 0.018919693306088448, -0.029514722526073456, -0.01642433926463127, -0.04499819129705429, 0.023685410618782043, -0.03495541214942932, 0.03718486800789833, -0.025096718221902847, 0.03201007470488548, 0.015299384482204914, -0.035569023340940475, -0.041418787091970444, 0.0430346317589283, 0.00765991909429431, -0.008708172477781773, -0.016833413392305374, 0.01823449321091175, 0.04794352501630783, -0.034771326929330826, 0.08803281933069229, 0.00046500260941684246, -0.07060625404119492, 0.05845674127340317, -0.027878424152731895, 0.04475274682044983, 0.00798717886209488, -0.03004651889204979, -0.0016567514976486564, 0.0180299561470747, -0.029985157772898674, 0.04908893629908562, 0.0017117209499701858, 0.013202877715229988, 0.003333956701681018, 0.004637881647795439, -0.04810715466737747, -0.02558760717511177, 0.008958730846643448, 0.025996681302785873, -0.04360733553767204, 0.027919331565499306, 0.02227410487830639, 0.025014903396368027, 0.02315361425280571, -0.00932689756155014, -0.05444781109690666, -0.028205683454871178, -0.005394669249653816, -0.019533304497599602, 0.03830982372164726, 0.0048552025109529495, 0.006913358345627785, 0.03542584925889969, -0.0338713638484478, -0.01992192678153515, -0.033973634243011475, -0.0017897007055580616, 0.03661216422915459, -0.01430737879127264, -0.014920990914106369, -0.11020465940237045, 0.07391975075006485, -0.059561241418123245, 0.0013921315548941493, -0.028942016884684563, -0.0018331649480387568, 0.02538307011127472, -0.017303848639130592, 0.034607697278261185, -0.01954353228211403, -0.002794489962980151, -0.005778176710009575, 0.020177597180008888, 0.03323730081319809, -0.0884418934583664, -0.033298660069704056, 0.02243773452937603, -0.05289332568645477, -0.02155822329223156, 0.052975140511989594, 0.03524176403880119, -0.05362965911626816, -0.00561966048553586, 0.007716166786849499, 0.02100597321987152, -0.039352960884571075, -0.03743031248450279, -0.0019175364868715405, -0.02706027589738369, -0.03908706456422806, 0.022826354950666428, -0.004947244189679623, 0.004637881647795439, -0.03563038632273674, -0.003776268567889929, 0.026589838787913322, 0.06209750100970268, 0.0010623151902109385, -0.011904066428542137, 0.014481235295534134, 0.01663910411298275, 0.009582568891346455, 0.02949426881968975, 0.040232472121715546, 0.03953704610466957, -0.0035691745579242706, -0.013775582425296307, 0.04217557609081268, -0.004080517683178186, 0.050316158682107925, 0.00593669293448329, -0.04070290923118591, -0.0625474825501442, -0.06283383816480637, -0.07457426935434341, -0.005773063283413649, 0.0589885376393795, -0.02730572037398815, -0.05677953362464905, -0.01132113579660654, -0.01811177097260952, -0.025689875707030296, 0.022724086418747902, -0.005711702164262533, -0.045734524726867676, -0.0013032855931669474, 0.018592434003949165, 0.058006756007671356, -0.004001259338110685, 0.03141691908240318, 0.020433269441127777, 0.05829310789704323, 0.0418483167886734, -0.051747918128967285, 0.015575509518384933, -0.019727615639567375, -0.05256606638431549, 0.0008667265065014362, -0.05682044103741646, -0.08656015247106552, -0.02622167207300663, 0.011464311741292477, 0.007486062590032816, -0.001826773164793849, -0.03495541214942932, -0.03542584925889969, 0.050357066094875336, 0.040191564708948135, 0.05600229278206825, -0.03497586399316788, 0.014153975993394852, 0.021987751126289368, 0.0032419150229543447, 0.04352552071213722, 0.006759955547749996, 0.038759805262088776, 0.01496189832687378, 0.013223331421613693, -0.08484204113483429, -0.06442922353744507, 0.026712561026215553, -0.015657324343919754, 0.018091317266225815, -0.04033474251627922, 0.029310185462236404, -0.038514360785484314, 0.009480300359427929, -0.03802347183227539, -0.009413826279342175, -0.0172322615981102, 0.04532545059919357, -0.002883974928408861, 0.008115014061331749, 0.04536635801196098, 0.02339905872941017, -0.02677392214536667, 0.01865379512310028, -0.004019156564027071, -0.05457053333520889, 0.01403125375509262, -0.028839748352766037, -0.07686509191989899, -0.008293984457850456, -0.027367081493139267, -0.01082001905888319, -0.04495728388428688, -0.005614547058939934, 0.02446265146136284, 0.051666103303432465, -0.003852969966828823, -0.000390538276406005, -0.02622167207300663, 0.03033287078142166, 0.013438096269965172, -0.005440690089017153, -0.009659270755946636, 0.022212743759155273, -0.020607125014066696, 0.019349221140146255, 0.02100597321987152, -0.0019137014169245958, 0.018081091344356537, 0.051666103303432465, -0.012517678551375866, 0.04769808053970337, -0.03295094892382622, 0.03354410454630852, 0.012855164706707, 0.031069204211235046, 0.007373567204922438, 0.005686135031282902, 0.015094847418367863, 0.02945336140692234, -0.05866127833724022, 0.01915491186082363, -0.016608422622084618, -0.02180366776883602, 0.010175727307796478, -0.05211608484387398, -0.05105249211192131, -0.018173132091760635, 0.00624861242249608, -0.010283108800649643, 0.04585724696516991, -0.002451889915391803, -0.03096693567931652, -0.0040651774033904076, -0.023255882784724236, 0.0019098663469776511, 0.001985289389267564, 0.0005989105557091534, -0.015135754831135273, 0.022969530895352364, 0.009822900407016277, -0.03878025710582733, -0.054815977811813354, 0.004481921903789043, 0.06197477877140045, -0.043811872601509094, -0.005522504914551973, -0.0040651774033904076, 0.043770965188741684, -0.04418003931641579, -0.0016375761479139328, 0.044016409665346146, 0.04442548751831055, -0.06569735705852509, -0.057884033769369125, 0.0006423747399821877, -0.03702123835682869, -0.048638951033353806, -0.001750071649439633, -0.041746046394109726, -0.017917461693286896, 0.00407796073704958, 0.04990708455443382, -0.04912984371185303, -0.019277634099125862, -0.002748468890786171, 0.02378767915070057, 0.006877564359456301, 0.10529576241970062, -0.028921563178300858, -0.07191529124975204, -0.04962073266506195, -0.043934594839811325, 0.018142452463507652, 0.07396066188812256, 0.02487172745168209, -0.02558760717511177, -0.020648032426834106, -0.028287498280405998, -0.004834748804569244, 0.030455593019723892, -0.02865566499531269, -0.009470073506236076, 0.012527905404567719, 0.011290455237030983, 0.008585450239479542, -0.023521780967712402, 0.03354410454630852, -0.08991456776857376, 0.0006954265991225839, 0.05992940813302994, 0.015299384482204914, 0.04757535830140114, 0.00579863041639328, 0.09114179015159607, 0.029064739122986794, 0.002776592969894409, 0.0015097403666004539, -0.04827078431844711, 0.007905364036560059, 0.0010559234069660306, 0.012630173936486244, 0.040907446295022964, 0.03479178249835968, 0.001678483560681343, -0.01237450260668993, 0.019533304497599602, -0.015105074271559715, -0.02798069268465042, -0.02841022051870823, 0.08324664831161499, 0.042257390916347504, -0.017303848639130592, -0.008559882640838623, -0.07011536508798599, 0.05984759330749512, -0.032500963658094406, -0.09277808666229248, 0.01203701552003622, -0.028982924297451973, -0.008672378025949001, 0.060788463801145554, -0.0360599122941494, -0.06504283845424652, -0.02251954935491085, 0.019400356337428093, -0.03454633802175522, 0.02335815131664276, 0.03466906026005745, -0.004269714467227459, 0.04679811745882034, -0.01552437525242567, 0.06283383816480637, 0.006693480536341667, -0.016444792971014977, 0.03698033094406128, 0.037798479199409485, -0.02168094553053379, 0.02706027589738369, 0.0011569136986508965, 0.02761252596974373, 0.014133522287011147, 0.008181489072740078, -0.06352926045656204, 0.0005193328252062201, -0.013223331421613693, 0.0380643792450428, -0.013499457389116287, -0.020729847252368927, 0.04047791659832001 ]
718,569
masky.core
__process_certificate
null
def __process_certificate(self, user_data): certipy_auth = Authenticate( self.__tracker, self.__domain, self.__dc_ip, user_data, False, False ) if certipy_auth.authenticate(): return True return False
(self, user_data)
[ -0.010606170631945133, 0.04366413503885269, -0.01249190978705883, 0.1439889520406723, 0.014563565142452717, -0.0327746607363224, 0.002961405785754323, -0.003897635033354163, 0.05010928958654404, -0.04791368916630745, 0.027020061388611794, 0.009951031766831875, 0.025762902572751045, -0.06002490967512131, -0.05191534757614136, -0.06119353324174881, -0.035749346017837524, 0.008605340495705605, -0.031783100217580795, -0.021230049431324005, -0.04394743964076042, 0.0017872460884973407, -0.005781160201877356, 0.011703971773386002, -0.018087152391672134, 0.032756954431533813, 0.005413751117885113, 0.02436409331858158, 0.0033553745597600937, 0.035696227103471756, -0.04270798712968826, 0.033642277121543884, 0.027940798550844193, 0.0319424569606781, 0.09752719849348068, 0.00845483597368002, 0.053792234510183334, -0.004767464939504862, -0.005059621762484312, 0.01719297468662262, -0.08442441374063492, 0.003114124061539769, -0.015926962718367577, 0.04408909007906914, -0.011774797923862934, 0.0247536338865757, -0.04001660645008087, 0.08222880959510803, 0.015749897807836533, -0.050746720284223557, 0.005874118767678738, -0.0712508037686348, 0.03224346786737442, 0.016095174476504326, 0.053225625306367874, -0.019707292318344116, 0.0326153039932251, 0.06643464416265488, -0.026683639734983444, 0.016582101583480835, -0.02234555594623089, -0.024594277143478394, 0.017538251355290413, -0.04996763914823532, 0.006321207154542208, 0.04277881234884262, 0.01704247109591961, -0.013536590151488781, -0.0005596902337856591, -0.004276110790669918, -0.03624513000249863, -0.015493154525756836, -0.010163509286940098, -0.0007729977369308472, 0.06122894585132599, -0.02558583766222, -0.0247536338865757, 0.017883528023958206, -0.03516503423452377, 0.027232538908720016, -0.0012582654599100351, -0.056837745010852814, 0.008242358453571796, 0.003319961717352271, -0.00417208531871438, -0.004541707690805197, 0.07996238768100739, -0.021584177389740944, -0.01933545619249344, 0.11601274460554123, 0.02588684856891632, 0.002979112323373556, 0.017077883705496788, 0.0035811320412904024, 0.045682672411203384, 0.04224761947989464, 0.024895286187529564, 0.04522230476140976, -0.017449717968702316, -0.025497306138277054, 0.02411620132625103, 0.018273068591952324, 0.05088837444782257, 0.01653783582150936, 0.01523641124367714, 0.029676031321287155, 0.004413335584104061, 0.005581962410360575, 0.009676582179963589, -0.027940798550844193, -0.050144702196121216, -0.06512437015771866, -0.00791036244481802, 0.034492187201976776, -0.05492544546723366, -0.07287979871034622, 0.03040199540555477, -0.0020561630371958017, -0.06452234834432602, 0.04253092408180237, -0.04104357957839966, -0.026630518957972527, 0.0446556992828846, 0.024169322103261948, -0.06792198866605759, -0.023903723806142807, -0.02411620132625103, 0.021318580955266953, -0.014988520182669163, 0.021283168345689774, 0.021318580955266953, 0.018034031614661217, 0.015590540133416653, -0.0005610735388472676, -0.013633975759148598, -0.06781575083732605, 0.03654613718390465, 0.022681977599859238, 0.012545028701424599, 0.022664271295070648, 0.029144836589694023, 0.012500762939453125, -0.01903444714844227, 0.015245264396071434, 0.04844488203525543, 0.030260344967246056, -0.029977040365338326, -0.0039020616095513105, -0.04221220687031746, -0.05032176524400711, 0.012757506221532822, -0.020964451134204865, 0.0645577609539032, -0.010792088694870472, -0.02050408348441124, -0.009331305511295795, -0.032402824610471725, -0.06055610254406929, -0.010818648152053356, -0.001136533566750586, -0.0007940242066979408, -0.017316920682787895, -0.06703666597604752, 0.018875088542699814, -0.007281782571226358, -0.031800806522369385, -0.02891465276479721, -0.021017571911215782, 0.0031760968267917633, 0.042353857308626175, -0.029693737626075745, 0.008631900884211063, -0.01461668498814106, 0.06565556675195694, 0.01627223938703537, -0.009933325462043285, 0.06657630205154419, -0.017396599054336548, -0.007923642173409462, 0.012536175549030304, -0.019105272367596626, 0.029074011370539665, 0.0059936377219855785, 0.05637737736105919, -0.005232259631156921, 0.03403181955218315, 0.04008743166923523, -0.004621386528015137, 0.036900267004966736, 0.005568682681769133, -0.09334847331047058, 0.00980052724480629, -0.013757921755313873, 0.01717526838183403, 0.05630655214190483, -0.0032092963811010122, 0.014545858837664127, 0.02169041708111763, -0.0655493214726448, -0.06207885593175888, 0.02470051497220993, -0.0787583440542221, 0.00963231548666954, -0.010827502235770226, -0.050746720284223557, 0.04996763914823532, -0.019069859758019447, 0.09150699526071548, -0.05025094002485275, -0.004727625288069248, 0.03458072245121002, -0.02558583766222, -0.003933047875761986, 0.07635026425123215, -0.010004151612520218, 0.00737031502649188, 0.05127791687846184, -0.0033243882935494184, -0.03489943593740463, 0.03018951788544655, 0.032951727509498596, 0.03546604514122009, 0.010924887843430042, -0.01675916649401188, -0.020380137488245964, 0.009747407399117947, 0.010331721045076847, 0.06292876601219177, 0.03132273256778717, -0.06232674792408943, 0.038458436727523804, -0.025408774614334106, -0.006701895967125893, 0.04911772534251213, -0.02262885868549347, -0.0488344244658947, 0.011703971773386002, 0.11332136392593384, -0.015139025636017323, 0.0819455087184906, 0.03516503423452377, -0.008007748052477837, 0.009827086701989174, -0.07043630629777908, -0.07557117938995361, 0.0001043021329678595, 0.04228303208947182, 0.020132247358560562, 0.022823629900813103, -0.04812616482377052, 0.00036159917362965643, -0.021637296304106712, -0.013217873871326447, -0.05028635263442993, -0.051100850105285645, 0.008043160662055016, 0.004280537366867065, -0.03493485227227211, 0.06027279794216156, 0.004165445454418659, 0.010880621150135994, 0.07493375241756439, 0.04228303208947182, 0.08739910274744034, -0.057404350489377975, -0.018034031614661217, 0.020043715834617615, -0.008835525251924992, 0.03502338379621506, 0.02229243703186512, 0.03803348168730736, -0.029729150235652924, 0.012155486270785332, -0.015316090546548367, -0.006542537827044725, 0.013341819867491722, 0.04284963756799698, 0.030525941401720047, 0.021885188296437263, 0.05991866812109947, 0.060981057584285736, 0.05450049042701721, -0.016431597992777824, -0.00994217861443758, 0.004771891515702009, -0.061299774795770645, -0.019406283274292946, 0.08067063987255096, 0.003269055625423789, -0.02043325826525688, -0.05843132734298706, -0.02560354396700859, 0.05127791687846184, -0.016812285408377647, -0.015192144550383091, 0.018290774896740913, -0.0057723065838217735, -0.06030821055173874, -0.006529258098453283, -0.010163509286940098, -0.029056305065751076, 0.04182266443967819, -0.02866676263511181, -0.05573994293808937, 0.02831263281404972, 0.015174438245594501, 0.03560769557952881, 0.0015625953674316406, -0.030490528792142868, 0.008414996787905693, 0.014005811884999275, 0.01054419856518507, 0.0026869557332247496, -0.017405452206730843, -0.01385530736297369, -0.010190068744122982, 0.06831153482198715, -0.012952277436852455, -0.005528843030333519, 0.01837930828332901, -0.027940798550844193, -0.014714070595800877, 0.023337118327617645, 0.00903029553592205, 0.03376622498035431, 0.034173473715782166, 0.04493900015950203, -0.030030161142349243, -0.045009829103946686, -0.002414718735963106, -0.015262970700860023, 0.016192559152841568, -0.0021690416615456343, -0.014829162508249283, 0.035696227103471756, -0.05605866014957428, -0.03916669636964798, -0.03587329387664795, 0.015776457265019417, -0.06239757314324379, -0.09554407000541687, -0.00034195606713183224, 0.0195656418800354, -0.013625122606754303, 0.00003634666427387856, -0.0506758950650692, -0.09639398008584976, -0.0018956981366500258, 0.005989211145788431, -0.034226592630147934, -0.03615659475326538, 0.012093514204025269, 0.005670494399964809, 0.01593581587076187, -0.005320792086422443, -0.013917279429733753, -0.002017430029809475, -0.022133078426122665, 0.04911772534251213, 0.031464383006095886, 0.06877189874649048, -0.015714485198259354, -0.013138195499777794, 0.018786557018756866, -0.02441721223294735, 0.007666898425668478, 0.012412230484187603, 0.03941458463668823, -0.02103527821600437, 0.017972059547901154, -0.020380137488245964, -0.002633836353197694, 0.02137169986963272, -0.03803348168730736, 0.023638127371668816, 0.0009544889908283949, -0.010756676085293293, -0.03187163174152374, -0.058325085788965225, 0.00655139097943902, -0.0039861672557890415, 0.039025042206048965, -0.0167237538844347, 0.00030239319312386215, 0.021566471084952354, -0.06898437440395355, -0.07238402217626572, 0.02624097838997841, 0.01598893478512764, 0.01128786988556385, -0.00004979942605132237, -0.019353164359927177, -0.0008017707732506096, -0.044159919023513794, -0.00014538665709551424, -0.027515843510627747, 0.008468115702271461, 0.011544613167643547, 0.05283608287572861, -0.03686485439538956, -0.05400471016764641, 0.005037488415837288, 0.051136262714862823, -0.005971504375338554, -0.03103942796587944, 0.02588684856891632, 0.03075612522661686, -0.05333186686038971, 0.005657214671373367, 0.024240147322416306, -0.006352193653583527, 0.022150784730911255, 0.02317775972187519, -0.02895006537437439, -0.04752414673566818, 0.053756821900606155, -0.024293266236782074, 0.040795691311359406, 0.002370452741160989, 0.04462028667330742, 0.028702175244688988, 0.038741741329431534, -0.017617929726839066, 0.004043713212013245, -0.022487208247184753, -0.019105272367596626, 0.017502838745713234, -0.06349537521600723, 0.023638127371668816, -0.03342980146408081, -0.056837745010852814, 0.03620971739292145, 0.01477604266256094, 0.00843712966889143, -0.010429106652736664, -0.0002600636798888445, -0.05173828452825546, 0.04600138962268829, -0.021619589999318123, -0.03242053464055061, -0.008835525251924992, 0.02376207336783409, -0.03711274638772011, -0.04253092408180237, 0.042035143822431564, 0.001843685400672257, -0.05945830047130585, 0.011137365363538265, 0.002100429031997919, 0.00015285657718777657, 0.010650437325239182, -0.012155486270785332, -0.00175404641777277, -0.013332966715097427, -0.06788657605648041, 0.10028940439224243, 0.0327746607363224, 0.00016668974421918392, 0.05520875006914139, 0.02014995366334915, -0.056235723197460175, -0.0010839675087481737, -0.006741735618561506, -0.021477939561009407, -0.029020892456173897, 0.006666483357548714, -0.03291631489992142, 0.054075535386800766, -0.00879568513482809, 0.021495645865797997, -0.008313184604048729, -0.061264362186193466, 0.029923921450972557, 0.023142347112298012, 0.02953437902033329, 0.021601883694529533, 0.021159222349524498, 0.08024568855762482, -0.0304374098777771, -0.003674091072753072, -0.07833339273929596, -0.005241112783551216, -0.019990596920251846, -0.024009963497519493, 0.02714400738477707, -0.06884272396564484, 0.007795270066708326, -0.0265065748244524, -0.00037653898471035063, -0.038706328719854355, 0.011588879860937595, 0.025408774614334106, -0.0034262004774063826, 0.03289860859513283, 0.029074011370539665, -0.0022885603830218315, 0.03888339176774025, 0.014138610102236271, 0.001882418291643262, -0.008184812031686306, -0.010314014740288258, 0.04720542952418327, 0.0523403026163578, -0.018237655982375145, 0.09101121872663498, 0.038387611508369446, -0.033589158207178116, -0.005657214671373367, 0.02082280069589615, 0.035342101007699966, -0.06813446432352066, 0.002265320625156164, 0.0740838423371315, -0.03927293419837952, -0.0060733165591955185, 0.014660950750112534, -0.002543090609833598, -0.031127961352467537, -0.06685960292816162, 0.006378753110766411, -0.0045062946155667305, 0.02078738622367382, 0.00036574911791831255, 0.012545028701424599, 0.04426615685224533, 0.028542818501591682, -0.054075535386800766, -0.016148293390870094, -0.04373496398329735, -0.041433122009038925, -0.010730116628110409, -0.00129699835088104, 0.0402999073266983, 0.0031451103277504444, -0.023142347112298012, 0.001702033681795001, -0.029304195195436478, -0.0030034587252885103, -0.0754295289516449, -0.027551256120204926, 0.03102172166109085, 0.039343759417533875, -0.014944254420697689, -0.05117167532444, 0.03321732208132744, 0.020291605964303017, -0.03164144977927208, -0.0007265182794071734, -0.053508929908275604, 0.012270578183233738, -0.009862499311566353, 0.044159919023513794, 0.021513352170586586, 0.029463553801178932, 0.0590333454310894, 0.019831238314509392, 0.027020061388611794, 0.02202683873474598, -0.07238402217626572, 0.0062857940793037415, -0.004559413995593786, -0.05595242232084274, -0.01933545619249344, -0.015316090546548367, -0.04826781526207924, -0.045009829103946686, 0.0150504931807518, 0.004377922974526882, -0.02319546602666378, -0.019477108493447304, 0.02588684856891632, -0.058891694992780685, -0.03164144977927208, 0.048055339604616165, -0.00693650683388114, 0.010650437325239182, -0.032703835517168045, -0.004501868039369583, 0.00994217861443758, 0.0044686682522296906, 0.00497108930721879, -0.007658045273274183, 0.012412230484187603, -0.02443491853773594, -0.0007049385458230972, -0.05025094002485275, -0.010730116628110409, 0.049861397594213486, -0.004006087314337492, -0.05821884796023369, -0.03125190734863281, -0.04334542155265808, -0.02289445698261261, -0.03286319598555565, -0.012810626067221165, 0.057121049612760544, 0.0031052709091454744, 0.03973330184817314, 0.05612948536872864, 0.0019554574973881245, 0.0007320515578612685, 0.007866095751523972, -0.00031401304295286536, -0.02622327022254467, -0.015245264396071434, -0.03546604514122009, -0.06983429193496704, 0.010429106652736664, -0.022664271295070648, -0.04366413503885269, 0.029020892456173897, 0.026063913479447365, 0.031765393912792206, 0.025851435959339142, 0.026152445003390312, 0.0428142249584198, -0.03466925397515297, -0.02528482861816883, 0.0010850741527974606, 0.034208886325359344, 0.003720570355653763, -0.02562125213444233, 0.03440365567803383, 0.051384154707193375, -0.042920466512441635, -0.014067784883081913, 0.06183096766471863, 0.0259222611784935, 0.02255803346633911, 0.013616269454360008, 0.0022000279277563095, 0.000362982478691265, 0.013297553174197674, 0.06144142523407936, 0.041114404797554016, -0.018768850713968277, -0.017856966704130173, 0.030224932357668877, 0.030579060316085815, -0.015918109565973282, -0.01161543931812048, -0.0032911887392401695, -0.008538941852748394, -0.024009963497519493, 0.018237655982375145, 0.014368793927133083, 0.04798451438546181, 0.016050908714532852, 0.05149039253592491, 0.010066123679280281, -0.018733438104391098, 0.03171227499842644, 0.025745196267962456, -0.03337668254971504, -0.03252677246928215, -0.0039064884185791016, 0.046532582491636276, 0.05616489797830582, -0.011057686060667038, -0.035696227103471756, -0.02438179962337017, 0.025461893528699875, 0.04458487406373024, -0.033305857330560684, 0.033040259033441544, 0.0034527601674199104, 0.03403181955218315, -0.0036763043608516455, -0.014802603051066399, 0.023726658895611763, 0.02292986959218979, 0.018290774896740913, 0.0008100706618279219, 0.05308397486805916, 0.07213612645864487, -0.04100816696882248, -0.03374851867556572, -0.12274120002985, -0.02172582969069481, -0.007609352469444275, -0.02080509439110756, -0.006307927425950766, -0.014501593075692654, -0.02471822127699852, 0.005812146235257387, -0.02712630107998848, 0.10028940439224243, -0.01901674084365368, -0.05453590303659439, -0.07103832811117172, -0.024895286187529564, -0.01323558110743761, 0.012615854851901531, -0.017449717968702316, 0.0023859457578510046, -0.012854891829192638, -0.037502288818359375, 0.07606696337461472, 0.03566081449389458, 0.007042745593935251, -0.009154241532087326, 0.011518053710460663, 0.006653203163295984, 0.05060506984591484, -0.0069453599862754345, -0.015448888763785362, -0.07220695167779922, -0.05340269207954407, 0.0724194347858429, -0.018875088542699814, -0.004572693724185228, -0.042318444699048996, 0.0024877579417079687, -0.0692322701215744, -0.008751419372856617, 0.034828610718250275, -0.10262665897607803, -0.011402961798012257, 0.051100850105285645, -0.0356254018843174, -0.0060290503315627575, 0.009065709076821804, -0.016626369208097458, 0.007963481359183788, -0.01689196564257145, -0.02080509439110756, 0.013633975759148598, -0.025727489963173866, 0.01894591562449932, 0.009499517269432545, -0.044726524502038956, -0.034155767410993576, -0.05088837444782257, 0.0667179524898529, -0.07507540285587311, 0.010942594148218632, -0.06384950131177902, -0.02866676263511181, 0.014643244445323944, 0.04153935983777046, -0.007538526318967342, -0.03560769557952881, 0.023549595847725868, -0.007503113709390163, -0.06870107352733612, 0.008476968854665756, -0.019654173403978348, -0.03775017708539963, 0.053154800087213516, -0.042955879122018814, -0.0024257854092866182, 0.05035717785358429, -0.052906911820173264, -0.03215493634343147, 0.030986309051513672, 0.07132162898778915, -0.05538581311702728, 0.03624513000249863, 0.015209851786494255, -0.010508785955607891, 0.008999309502542019, 0.004428829066455364, -0.028259513899683952, 0.02165500447154045, -0.03454530984163284, 0.008273344486951828, -0.0016101814107969403, 0.09256938844919205 ]
718,570
masky.core
__process_options
null
def __process_options(self): try: self.__dc_target = socket.gethostbyname(self.__domain) except: self.__dc_target = self.__dc_ip if self.__dc_target == "0.0.0.0": self.__dc_target = self.__dc_ip if not self.__dc_target: err_msg = f"The provided domain '{self.__domain}' cannot be resolved, please set the full FQDN or provide the DC IP address" logger.error(err_msg) self.__tracker.last_error_msg = err_msg return False return True
(self)
[ 0.0438329353928566, 0.04830792918801308, -0.00935805682092905, 0.010371348820626736, -0.0006608181865885854, 0.0019360310398042202, 0.013608383946120739, -0.041962239891290665, 0.0448233038187027, -0.06382368505001068, -0.017881635576486588, 0.008051321841776371, 0.028225475922226906, -0.039321258664131165, 0.01911042630672455, 0.026263080537319183, -0.04797780513763428, 0.03660691902041435, 0.0689222440123558, -0.002588252304121852, 0.011948601342737675, 0.007657008245587349, -0.004928912501782179, -0.015937581658363342, 0.017964167520403862, 0.09140725433826447, 0.03508468717336655, -0.023108575493097305, -0.00479136174544692, 0.021054480224847794, -0.0006493555847555399, 0.030536333099007607, 0.01099491398781538, 0.060559142380952835, 0.03315897285938263, 0.016249364241957664, 0.009211335331201553, 0.02844555675983429, -0.040788471698760986, -0.0030605108477175236, -0.09060028940439224, -0.04232904314994812, -0.0019108133856207132, 0.047097478061914444, -0.006712491158396006, -0.0018603779608383775, -0.03792740777134895, 0.08209046721458435, -0.017854126170277596, -0.06716158986091614, -0.0032484973780810833, 0.00967442337423563, -0.022099869325757027, 0.010343838483095169, -0.009032518602907658, -0.0032003545202314854, 0.03836757317185402, 0.13549695909023285, -0.0494450181722641, 0.002957347547635436, -0.03622177615761757, 0.011480927467346191, -0.021641364321112633, -0.04009154438972473, 0.0017686772625893354, 0.0058413343504071236, -0.016203513368964195, 0.0016208098968490958, -0.02662988379597664, 0.0405317097902298, 0.03622177615761757, -0.021054480224847794, -0.055020421743392944, -0.032480388879776, 0.07413084805011749, -0.03337905555963516, -0.012847268022596836, 0.06840872019529343, 0.00391332758590579, 0.0006407586624845862, -0.03770732879638672, 0.03671696037054062, 0.009949525818228722, -0.04794112592935562, 0.021054480224847794, -0.037560608237981796, 0.023548739030957222, 0.021347923204302788, 0.0451534241437912, -0.00239568087272346, 0.002308565191924572, -0.005566232372075319, 0.008899552747607231, 0.04258580505847931, 0.0016563439276069403, 0.036093395203351974, 0.006309008225798607, -0.003262252314016223, 0.0010322059970349073, -0.030738074332475662, -0.03629513829946518, 0.0345895029604435, 0.06008229777216911, -0.030114509165287018, 0.04827124997973442, -0.012993989512324333, -0.008885798044502735, -0.020467596128582954, -0.02529105357825756, 0.020229173824191093, -0.02884904108941555, -0.024429066106677055, 0.018092548474669456, -0.008014640770852566, -0.0056441780179739, -0.03862433508038521, -0.04596038907766342, -0.020944440737366676, -0.054433535784482956, 0.011416736990213394, -0.06646467000246048, 0.05355320870876312, -0.022925175726413727, -0.039724744856357574, -0.019238807260990143, -0.017734915018081665, -0.019312167540192604, 0.004532306920737028, 0.008615280501544476, -0.012434614822268486, 0.01008707657456398, 0.003358538029715419, -0.003539646975696087, -0.009866995736956596, 0.017964167520403862, -0.015011404640972614, -0.04860137030482292, 0.029124142602086067, -0.005708368495106697, 0.006822532042860985, -0.0034364836756139994, 0.022283270955085754, -0.008427293971180916, -0.038000769913196564, 0.04735423997044563, 0.06455729156732559, 0.013104029931128025, -0.04133867472410202, -0.03266378864645958, -0.013168220408260822, 0.016597826033830643, -0.011627648957073689, -0.03361747786402702, -0.04042166844010353, -0.06118270754814148, 0.01999075338244438, -0.029124142602086067, -0.06518086045980453, -0.007968790829181671, -0.027821991592645645, -0.06305339932441711, -0.08421792089939117, -0.019147105515003204, -0.020375896245241165, -0.0037505587097257376, -0.06242983788251877, 0.012618016451597214, -0.03361747786402702, 0.04753764346241951, 0.10072404891252518, -0.007184749934822321, 0.03325067460536957, -0.008161362260580063, 0.020614316686987877, -0.021806426346302032, 0.05149911344051361, 0.047097478061914444, -0.06815195828676224, -0.017459813505411148, 0.018835322931408882, 0.017799105495214462, 0.028390536084771156, -0.01901872456073761, 0.023255297914147377, 0.04298928752541542, 0.01397518627345562, -0.020357554778456688, 0.0052177696488797665, 0.0027143408078700304, 0.06881220638751984, 0.016762888059020042, -0.0395413413643837, -0.0058321645483374596, -0.028867380693554878, 0.03495630621910095, -0.01240710448473692, 0.012260383926331997, 0.0018420377746224403, 0.052122678607702255, -0.006950912997126579, 0.0474642813205719, -0.008853702805936337, -0.046180471777915955, 0.021934807300567627, -0.0530763640999794, 0.03504800796508789, 0.00407151086255908, 0.04970178008079529, 0.0042915926314890385, 0.013617553748190403, -0.022631732746958733, -0.09001340717077255, -0.0428425669670105, 0.020962780341506004, 0.009912845678627491, 0.006441974081099033, 0.0550571009516716, 0.03191184252500534, -0.01571750082075596, 0.04794112592935562, 0.03312229365110397, -0.029325883835554123, 0.08297079056501389, 0.003443361259996891, 0.005749634001404047, 0.012452955357730389, 0.004805116448551416, 0.046510595828294754, 0.04860137030482292, -0.007533212658017874, 0.016726206988096237, 0.00244840863160789, -0.04313600808382034, 0.045446865260601044, 0.09544208645820618, -0.005116899032145739, 0.0666113868355751, 0.06360360234975815, 0.029656006023287773, 0.006680395919829607, -0.005199429579079151, 0.0201007928699255, 0.003438776358962059, -0.0494450181722641, -0.011462587863206863, -0.05722123757004738, 0.0038376743905246258, 0.031031517311930656, 0.019623950123786926, 0.0020758744794875383, 0.001178354024887085, -0.018963703885674477, -0.0524161197245121, 0.0034502388443797827, -0.033030591905117035, -0.01604762300848961, -0.04144871607422829, -0.014167757704854012, 0.03961470350623131, -0.0037505587097257376, -0.043429452925920486, 0.0192754864692688, 0.021457964554429054, 0.05491038039326668, -0.0679318755865097, 0.03429606184363365, 0.05135239288210869, -0.032792169600725174, -0.0006843164446763694, 0.01901872456073761, 0.03688202053308487, 0.03869769349694252, -0.042695846408605576, 0.0160751324146986, -0.03126993775367737, 0.039798103272914886, 0.002613469958305359, -0.061292748898267746, -0.04456654191017151, 0.00710680428892374, 0.0699126124382019, 0.021476304158568382, -0.020192494615912437, -0.031783461570739746, -0.04390629380941391, -0.015818370506167412, -0.008560260757803917, -0.0028564766980707645, -0.006955497898161411, 0.038147490471601486, -0.08069661259651184, -0.005181089509278536, 0.0543968565762043, -0.0014236533315852284, -0.043429452925920486, -0.00781289953738451, 0.04959173873066902, -0.03264544904232025, 0.004679028410464525, -0.028317175805568695, -0.07042613625526428, -0.026079678907990456, -0.052856285125017166, 0.052782922983169556, 0.02024751529097557, 0.038404252380132675, 0.040971871465444565, -0.023346997797489166, 0.06433720886707306, 0.007941280491650105, -0.0265381820499897, 0.010563920252025127, -0.008124682120978832, 0.018872004002332687, 0.05575402453541756, 0.06525421887636185, 0.03374585881829262, 0.0012746397405862808, -0.04669399559497833, 0.0411919541656971, -0.06477737426757812, 0.05861508846282959, -0.036166757345199585, 0.004158626776188612, 0.001984173897653818, 0.06866548210382462, 0.031379979103803635, 0.025602836161851883, 0.02844555675983429, -0.022668413817882538, -0.0415220782160759, -0.015552438795566559, -0.01016960758715868, 0.00489681726321578, 0.07471773028373718, -0.085685133934021, -0.015442397445440292, -0.014993064105510712, 0.04298928752541542, 0.01680873893201351, -0.0491148941218853, 0.028812360018491745, -0.0570378340780735, -0.018422670662403107, 0.11590968817472458, -0.016973799094557762, -0.01703798957169056, -0.01682707853615284, 0.007464436814188957, -0.057331278920173645, -0.05971549451351166, 0.028720658272504807, -0.042292363941669464, 0.04566694796085358, 0.06492409855127335, -0.030444633215665817, -0.022723432630300522, 0.0063456883653998375, 0.039651382714509964, 0.04045834764838219, 0.045336827635765076, -0.06690482795238495, 0.016790397465229034, 0.0032553747296333313, -0.018532712012529373, -0.012342914007604122, 0.01099491398781538, -0.02338367886841297, 0.03884441778063774, -0.05447021499276161, -0.027473529800772667, -0.05564398318529129, 0.04247576370835304, -0.11070108413696289, -0.00781289953738451, 0.008147607557475567, -0.019403867423534393, -0.001154282595962286, -0.033030591905117035, 0.026849964633584023, -0.0016460275510326028, 0.030132850632071495, 0.01579086109995842, 0.011985281482338905, -0.00770744401961565, -0.05927533283829689, -0.0003839966666419059, 0.03321399167180061, 0.0011216141283512115, 0.011343376711010933, 0.01892702467739582, -0.0033172727562487125, -0.010215457528829575, 0.016836248338222504, -0.02107282169163227, 0.015029744245111942, -0.043209370225667953, -0.02430068515241146, -0.028738999739289284, 0.003979810513556004, -0.03746890649199486, -0.020962780341506004, -0.003537354525178671, 0.10651953518390656, 0.013489172793924809, 0.0005267058731988072, 0.0351213663816452, 0.0371021032333374, 0.017716575413942337, 0.08216382563114166, -0.019568929448723793, -0.04067843034863472, -0.012966479174792767, -0.004096728749573231, -0.08619865775108337, 0.02729012817144394, -0.031636741012334824, 0.040128227323293686, 0.05546058341860771, 0.03471788391470909, 0.008771171793341637, -0.031123217195272446, -0.005139824002981186, 0.0072718653827905655, 0.009977036155760288, 0.014131077565252781, 0.013855976052582264, -0.019220465794205666, 0.03935794159770012, -0.03367249667644501, -0.022741774097085, 0.07394744455814362, -0.03429606184363365, 0.006510749459266663, 0.06716158986091614, 0.018230099231004715, -0.02149464376270771, 0.053956691175699234, 0.007432341575622559, -0.022099869325757027, -0.06044910103082657, -0.04827124997973442, -0.041045233607292175, -0.0018225513631477952, 0.04603375121951103, -0.03818416967988014, -0.019403867423534393, -0.06110934540629387, -0.052049316465854645, -0.02481420896947384, -0.025602836161851883, 0.00791835505515337, -0.031031517311930656, 0.0019119596108794212, -0.02140294387936592, 0.016414424404501915, -0.02976604737341404, 0.04390629380941391, -0.019000384956598282, 0.001318197580985725, -0.052049316465854645, -0.03671696037054062, -0.00486013712361455, 0.01934884674847126, 0.012141172774136066, 0.09602897614240646, 0.03836757317185402, 0.020797718316316605, -0.032700467854738235, 0.009766124188899994, -0.08949988335371017, -0.045336827635765076, 0.011600138619542122, 0.02712506614625454, -0.0345895029604435, -0.028500577434897423, 0.003950007725507021, 0.07141650468111038, -0.033360715955495834, 0.004041708540171385, -0.010142097249627113, 0.025896277278661728, 0.04159543663263321, 0.02413562498986721, 0.010105417110025883, -0.08355768024921417, 0.003303517820313573, 0.009573552757501602, -0.016240194439888, 0.004078388679772615, 0.0378907285630703, -0.04926161468029022, -0.009188409894704819, -0.06052246317267418, 0.04970178008079529, -0.002700585639104247, 0.020302534103393555, 0.02222825028002262, 0.06848208606243134, -0.01708384044468403, 0.0012413982767611742, -0.016762888059020042, -0.03664359822869301, -0.003853722009807825, 0.025676196441054344, -0.008885798044502735, -0.04768436402082443, 0.10065069049596786, -0.014855513349175453, 0.03719380497932434, -0.018816983327269554, 0.008835362270474434, 0.040311627089977264, 0.031031517311930656, 0.045336827635765076, 0.02952762506902218, -0.058578405529260635, 0.004814286716282368, -0.019954072311520576, -0.0014958676183596253, -0.027565229684114456, 0.00379411643370986, -0.009041689336299896, -0.015369037166237831, -0.01132503617554903, 0.00425949739292264, -0.02662988379597664, 0.027326809242367744, -0.015873391181230545, -0.0415220782160759, -0.016469445079565048, -0.014690452255308628, 0.07471773028373718, 0.03125159814953804, 0.0441630557179451, 0.046657316386699677, -0.005281960126012564, -0.014938044361770153, -0.15537767112255096, -0.015084764920175076, 0.04728088155388832, 0.008161362260580063, -0.028170455247163773, -0.045593589544296265, 0.00407151086255908, -0.0949285626411438, 0.03358079493045807, 0.029490945860743523, 0.04629051312804222, -0.008821607567369938, 0.006043076049536467, 0.03622177615761757, 0.038404252380132675, 0.029876088723540306, 0.02993110753595829, 0.03092147596180439, 0.039321258664131165, 0.04992186278104782, 0.0036336402408778667, -0.010903213173151016, -0.041301995515823364, -0.0936080738902092, -0.01691877841949463, 0.012874778360128403, -0.0758548155426979, -0.04706079885363579, -0.033030591905117035, -0.02611635997891426, -0.009064613841474056, -0.004101313650608063, -0.0005848785513080657, -0.011590968817472458, -0.025749556720256805, 0.0258779376745224, -0.008959158323705196, 0.005850504618138075, 0.03354411572217941, 0.014406180009245872, 0.00523152481764555, 0.021054480224847794, -0.03961470350623131, 0.007611158303916454, 0.01330577116459608, 0.0076845185831189156, -0.02398890256881714, -0.011095784604549408, 0.018963703885674477, -0.027987053617835045, 0.03688202053308487, -0.061219386756420135, -0.04871141165494919, -0.007945865392684937, -0.015433227643370628, -0.005245279986411333, -0.01894536428153515, 0.013920166529715061, 0.030297910794615746, -0.045263465493917465, 0.07600153982639313, 0.016909608617424965, -0.03638683632016182, 0.009023348800837994, 0.02769361063838005, -0.040788471698760986, -0.0021412114147096872, -0.04082515090703964, -0.06730831414461136, -0.018083378672599792, -0.030206210911273956, -0.0843646451830864, -0.010233798064291477, -0.0025263542775064707, 0.021274562925100327, 0.023218616843223572, 0.021769745275378227, -0.04860137030482292, 0.022686753422021866, 0.02620805986225605, 0.01107744500041008, 0.00800088606774807, 0.028005393221974373, 0.035763271152973175, 0.009500192478299141, -0.014415349811315536, -0.033030591905117035, -0.00818887259811163, -0.004296177998185158, -0.011756029911339283, -0.06294336169958115, 0.023108575493097305, 0.0196056105196476, -0.021347923204302788, -0.004543769638985395, 0.01199445128440857, -0.06646467000246048, -0.02969268709421158, 0.04577698931097984, 0.014112737961113453, -0.03455282375216484, -0.006964668165892363, 0.009848655201494694, 0.024410726502537727, 0.022374970838427544, -0.02578623592853546, 0.010894043371081352, 0.0027877013199031353, -0.04280588775873184, 0.015442397445440292, 0.004924327600747347, -0.0011485512368381023, 0.004296177998185158, 0.0027624836657196283, 0.011682668700814247, -0.0010316328844055533, 0.03226030617952347, -0.004653810523450375, 0.0005903232377022505, 0.04023826867341995, 0.0371021032333374, -0.029417583718895912, -0.04207228124141693, 0.043356090784072876, 0.06617122143507004, -0.06639130413532257, 0.041962239891290665, 0.004617130383849144, 0.008418124169111252, -0.043539490550756454, -0.04419973865151405, 0.010077906772494316, 0.032352007925510406, -0.0704994946718216, -0.05938537418842316, 0.08399783819913864, 0.02950928546488285, -0.03895445913076401, 0.015607459470629692, -0.029564306139945984, -0.003984395414590836, -0.0347912460565567, 0.06976589560508728, -0.02925252355635166, -0.004892232362180948, 0.002652442781254649, 0.02563951537013054, -0.03108653798699379, 0.05003190040588379, -0.026079678907990456, 0.02398890256881714, 0.015818370506167412, -0.019568929448723793, -0.019532248377799988, -0.014534560963511467, 0.06683146953582764, 0.00908753927797079, -0.05259952321648598, -0.059825535863637924, -0.03910117968916893, 0.0056304228492081165, 0.024374045431613922, 0.03618509694933891, -0.002544694347307086, -0.031618401408195496, 0.003237034659832716, -0.016020111739635468, -0.028959080576896667, -0.07237019389867783, 0.008363103494048119, 0.028060413897037506, 0.019660629332065582, 0.03189350292086601, -0.02125622145831585, 0.0494450181722641, -0.005891770124435425, -0.0001766671339282766, -0.01558911893516779, -0.03348909690976143, 0.0097202742472291, 0.026831625029444695, -0.01330577116459608, -0.004066925961524248, 0.026666563004255295, -0.004685905762016773, 0.0006889015203341842, 0.04471326246857643, 0.011590968817472458, -0.00740024633705616, -0.05314972624182701, 0.04441981762647629, 0.04111859202384949, -0.06965585052967072, -0.0025103066582232714, -0.005653348285704851, 0.03117823787033558, -0.06052246317267418, -0.046987440437078476, 0.00911963451653719, 0.017945826053619385, -0.03453448414802551, 0.0458136685192585, -0.014681282453238964, -0.010673961602151394, 0.043282728642225266, -0.013278261758387089, -0.00620355224236846, 0.01600177213549614, 0.001526816631667316, -0.0013743642484769225, 0.0186152420938015, -0.018587732687592506, 0.03546983003616333, 0.0028541842475533485, 0.019825691357254982, 0.014167757704854012, 0.022136548534035683, -0.028225475922226906, -0.04009154438972473, 0.043942976742982864, 0.05318640545010567, 0.023548739030957222, -0.0176248736679554, 0.01621268317103386, 0.03068305365741253, 0.03051799349486828, 0.023915542289614677, -0.02107282169163227, 0.009137975051999092, 0.022595051676034927 ]
718,571
masky.core
__init__
null
def __init__( self, ca, user, template="User", domain=".", password=None, hashes=None, kerberos=False, dc_ip=None, quiet=True, stealth=False, exe_path=None, file_args=False, ): self.__ca = ca self.__template = template self.__domain = domain self.__user = user self.__password = password self.__hashes = hashes self.__kerberos = kerberos self.__dc_ip = dc_ip self.__dc_target = None self.__quiet = quiet self.__stealth = stealth self.__exe_path = exe_path self.__file_args = file_args self.__tracker = Tracker()
(self, ca, user, template='User', domain='.', password=None, hashes=None, kerberos=False, dc_ip=None, quiet=True, stealth=False, exe_path=None, file_args=False)
[ -0.01026566419750452, 0.02912626974284649, 0.0280867088586092, 0.023594321683049202, -0.020048676058650017, -0.038352373987436295, -0.023371558636426926, -0.000586493406444788, -0.009792293421924114, -0.04726289585232735, 0.0302029587328434, 0.08799140900373459, -0.04388432204723358, 0.019714530557394028, -0.0770760178565979, 0.01585330441594124, -0.029107706621289253, 0.035010926425457, -0.03629181534051895, -0.040505751967430115, 0.010553400032222271, 0.00908687710762024, 0.011435170657932758, 0.12058907002210617, -0.0027288475539535284, -0.01982591301202774, -0.016085349023342133, -0.010488427244126797, 0.03493667393922806, 0.01085041742771864, 0.030425721779465675, 0.02210923470556736, 0.01281815767288208, 0.018489334732294083, 0.03592054545879364, -0.07202672213315964, 0.04663173481822014, 0.04700300469994545, -0.08153127878904343, -0.017858171835541725, 0.005810403265058994, 0.03178086504340172, 0.03913204371929169, -0.013495729304850101, 0.03423125669360161, 0.045443665236234665, 0.06363598257303238, 0.05453982204198837, -0.04135967418551445, -0.04139680415391922, -0.00917041301727295, 0.017152756452560425, -0.003436584258452058, -0.002972494577988982, -0.03566065430641174, -0.004668742418289185, -0.014535290189087391, 0.0519409216940403, -0.06931643933057785, 0.01576048694550991, -0.05383440852165222, 0.026360295712947845, 0.040505751967430115, -0.014563134871423244, 0.008089084178209305, 0.036031924188137054, -0.0389835350215435, -0.027863945811986923, 0.016066785901784897, -0.018192317336797714, 0.04767129570245743, 0.019139060750603676, -0.010293509811162949, -0.0460377000272274, 0.07930365204811096, -0.012066332623362541, -0.08702610433101654, 0.0146188260987401, -0.046186208724975586, 0.007351181004196405, -0.0009827099274843931, -0.010544118471443653, -0.05736148729920387, -0.005378799978643656, 0.03753557801246643, 0.02298172190785408, 0.036737341433763504, -0.04600057378411293, 0.02675013057887554, 0.09920381754636765, -0.0380924828350544, -0.06738582998514175, -0.008260796777904034, 0.012985230423510075, 0.023612884804606438, 0.013579265214502811, 0.038426630198955536, 0.03913204371929169, -0.010534836910665035, 0.013087330386042595, 0.023742830380797386, -0.06036879122257233, -0.028977761045098305, 0.03367434814572334, -0.03931768238544464, 0.022963158786296844, -0.003942442126572132, -0.012168432585895061, 0.01244688592851162, -0.002308846451342106, -0.06471267342567444, 0.023260176181793213, -0.004501670133322477, 0.028049582615494728, -0.04377294331789017, -0.029646050184965134, -0.009950083680450916, 0.010571964085102081, 0.00821438804268837, -0.033377330750226974, 0.004775483161211014, -0.033284515142440796, -0.027158530429005623, 0.05071572586894035, 0.01596468687057495, -0.02543211728334427, -0.05880944803357124, -0.053277499973773956, 0.0015233744634315372, 0.008358255960047245, 0.03954044356942177, -0.036811597645282745, 0.04095127806067467, -0.01499937940388918, 0.014609544537961483, -0.06289343535900116, -0.016150321811437607, 0.03595767170190811, 0.0036268611438572407, 0.0742543563246727, 0.034788165241479874, 0.0066457646898925304, -0.02829090878367424, -0.04607482627034187, 0.0021568569354712963, -0.03181799128651619, -0.014823025092482567, -0.04069138690829277, -0.06734869629144669, -0.005726866889744997, -0.02426261082291603, -0.03319169580936432, -0.010479145683348179, 0.026156095787882805, -0.018442925065755844, 0.009820138104259968, 0.010386328212916851, -0.0705416351556778, 0.014442471787333488, 0.0036825519055128098, -0.004719792399555445, 0.020308565348386765, -0.04622333496809006, -0.00794057548046112, -0.036774467676877975, -0.006033166311681271, -0.019176186993718147, -0.057769887149333954, 0.012484013102948666, 0.009699475020170212, -0.09757022559642792, -0.05687883496284485, -0.0813085213303566, 0.0765562430024147, -0.029423287138342857, 0.0038589059840887785, 0.0587351955473423, -0.021886471658945084, -0.01483230758458376, -0.02994306944310665, -0.04199083894491196, 0.0007576264906674623, 0.03554927185177803, 0.013449319638311863, -0.013040920719504356, 0.004573604092001915, 0.0395033173263073, 0.08331338316202164, 0.03313600644469261, 0.012669648975133896, -0.04102553054690361, 0.009110081009566784, -0.03902066498994827, 0.025153663009405136, 0.05546800419688225, -0.0037846516352146864, 0.000325442902976647, -0.020884037017822266, -0.04975041747093201, 0.01912049576640129, -0.007082009222358465, 0.018136626109480858, 0.011416606605052948, -0.0641186386346817, 0.050789978355169296, 0.033043187111616135, 0.005439131520688534, 0.04522090032696724, -0.046891625970602036, -0.02285177819430828, 0.031335338950157166, -0.027511239051818848, -0.01593684032559395, 0.06883378326892853, -0.037888284772634506, -0.003789292648434639, 0.06753433495759964, 0.02832803688943386, -0.017449773848056793, 0.06159398704767227, 0.062113769352436066, 0.05728723481297493, -0.02281465008854866, -0.05665607377886772, -0.02069840207695961, 0.04306752607226372, 0.023408684879541397, 0.0037985744420439005, 0.006947422865778208, -0.06125984340906143, 0.026360295712947845, -0.01965884119272232, -0.012205559760332108, 0.044069960713386536, -0.005907861981540918, -0.04477537423372269, 0.008724886924028397, 0.06326471269130707, -0.05483683943748474, 0.007727093994617462, 0.016994966194033623, 0.05130976065993309, 0.03554927185177803, 0.0037219994701445103, 0.002645311411470175, -0.03439832851290703, -0.04139680415391922, 0.021459508687257767, -0.022740395739674568, -0.05439131334424019, -0.0029144834261387587, 0.005689739715307951, -0.013644238002598286, -0.011639369651675224, -0.05561651289463043, 0.02103254571557045, 0.047968313097953796, -0.06508394330739975, 0.02339012175798416, -0.00405382364988327, 0.04484963044524193, -0.0026383500080555677, -0.002893599448725581, 0.03692297637462616, 0.03742419555783272, -0.02816096320748329, -0.02862505428493023, -0.02849510870873928, 0.014340371824800968, 0.03458396717905998, 0.09088733047246933, 0.07206384837627411, 0.015036506578326225, 0.004868301097303629, -0.06783135235309601, -0.024949463084340096, -0.01293882168829441, 0.033748604357242584, -0.010506991297006607, 0.023538630455732346, 0.01501794345676899, -0.01385771855711937, 0.041174039244651794, 0.006747864652425051, 0.03356296941637993, -0.056062038987874985, -0.049304891377687454, 0.04737427830696106, -0.04095127806067467, -0.0004635096120182425, -0.023575756698846817, 0.01281815767288208, -0.010126437991857529, -0.07013323903083801, 0.008441791869699955, -0.03248627856373787, -0.09385750442743301, -0.03816673904657364, 0.03759126737713814, -0.02140381745994091, -0.008464996702969074, -0.023037413135170937, -0.0409141480922699, 0.003566529368981719, -0.03549358248710632, 0.002018790226429701, 0.0035781317856162786, 0.002689399989321828, 0.030518539249897003, 0.027399856597185135, 0.051421139389276505, 0.01958458684384823, 0.026063278317451477, 0.03352583944797516, 0.016456620767712593, 0.03198506310582161, 0.06326471269130707, -0.058104030787944794, 0.022034980356693268, 0.020754091441631317, -0.035567834973335266, -0.020809782668948174, 0.010516272857785225, -0.02869930863380432, 0.030964065343141556, 0.0488593652844429, 0.0035943747498095036, 0.02422548271715641, -0.05621054768562317, 0.03712717816233635, -0.055690765380859375, 0.0821995735168457, 0.015528442338109016, -0.006942782085388899, -0.0446268655359745, -0.02352006733417511, -0.020308565348386765, -0.009425662457942963, -0.028198091313242912, -0.1024710088968277, 0.0003448766656219959, -0.002793820109218359, -0.030926939100027084, -0.01201064232736826, 0.045777808874845505, -0.07095003873109818, -0.037517011165618896, -0.07206384837627411, -0.01585330441594124, -0.028346600010991096, -0.000730941304937005, 0.03551214560866356, 0.01150942500680685, 0.010330636985599995, 0.05153252184391022, -0.03174373507499695, -0.014386781491339207, -0.028810689225792885, 0.012502577155828476, -0.023055976256728172, 0.03114970214664936, -0.009040467441082, 0.0073697445914149284, -0.010219255462288857, -0.01572335883975029, -0.0019630994647741318, 0.01912049576640129, 0.004715151619166136, -0.015166452154517174, 0.038426630198955536, 0.03968895226716995, -0.054985348135232925, -0.004269625525921583, -0.005963552743196487, 0.017059937119483948, -0.01642877608537674, -0.0423249825835228, -0.03846375644207001, -0.10120868682861328, -0.010339918546378613, -0.004513272549957037, 0.02816096320748329, 0.00887339562177658, 0.02318592183291912, -0.03629181534051895, -0.08294211328029633, -0.02476382814347744, 0.0716925784945488, 0.05932923033833504, 0.030926939100027084, 0.006631841883063316, -0.04340166971087456, 0.06400725245475769, -0.05583927407860756, 0.03174373507499695, 0.02422548271715641, 0.024076974019408226, 0.03057423047721386, -0.0173476729542017, -0.0011225170455873013, -0.0024039847776293755, -0.02621178701519966, 0.049304891377687454, 0.026601621881127357, -0.010191409848630428, -0.012873848900198936, 0.0201971847563982, 0.02248050644993782, 0.01283672172576189, 0.049304891377687454, 0.031168265268206596, 0.004028298892080784, -0.041211165487766266, -0.035029493272304535, -0.045406538993120193, -0.026156095787882805, -0.032913241535425186, -0.0009363010176457465, -0.01572335883975029, 0.011063898913562298, -0.02136669121682644, 0.014126891270279884, -0.02882925234735012, 0.001902767806313932, 0.034825291484594345, 0.028031019493937492, 0.007063445635139942, -0.03571634367108345, 0.016484467312693596, -0.034955237060785294, -0.021515199914574623, 0.05279484763741493, -0.01867496967315674, 0.03571634367108345, 0.024708136916160583, -0.012948103249073029, -0.06148260459303856, 0.013393629342317581, 0.019064806401729584, -0.000232479942496866, -0.042993269860744476, -0.04377294331789017, 0.05561651289463043, -0.0026267478242516518, 0.01443319022655487, 0.0035711703822016716, -0.06749720871448517, 0.0029632127843797207, 0.04663173481822014, 0.04904500022530556, 0.009959365241229534, 0.00033211419940926135, 0.0190462414175272, -0.021088236942887306, -0.02912626974284649, -0.0003239926300011575, -0.019343258813023567, -0.014943689107894897, 0.042956143617630005, 0.020976854488253593, -0.03157666325569153, -0.021645143628120422, 0.0346953459084034, -0.027678310871124268, -0.05583927407860756, 0.03571634367108345, 0.044404104351997375, 0.036273252218961716, 0.014126891270279884, -0.03376716747879982, -0.04941627383232117, -0.0052117276936769485, -0.01837795227766037, 0.07599933445453644, 0.024782391265034676, 0.00794057548046112, -0.004227857105433941, -0.023594321683049202, -0.06003464758396149, -0.028346600010991096, -0.01718060113489628, 0.0016011095140129328, 0.0491192564368248, 0.04737427830696106, 0.0066179195418953896, -0.029014889150857925, 0.022387687116861343, -0.05728723481297493, 0.014498163014650345, 0.010729754343628883, -0.0073651038110256195, 0.03759126737713814, -0.041545312851667404, 0.04600057378411293, -0.04986179992556572, 0.006576151121407747, 0.045369409024715424, 0.07388308644294739, -0.016874302178621292, -0.014405344612896442, -0.017514746636152267, -0.011954951100051403, 0.02170083485543728, -0.036273252218961716, 0.04239923506975174, 0.00887803640216589, -0.021552326157689095, -0.008223669603466988, 0.029181960970163345, -0.0016846456564962864, 0.0003614098532125354, -0.023538630455732346, 0.013653519563376904, -0.02862505428493023, -0.016818610951304436, 0.01130522508174181, -0.07960066944360733, -0.0465574786067009, -0.06448990851640701, 0.015463469550013542, 0.006135266274213791, 0.0347510389983654, 0.014980816282331944, 0.005643330980092287, 0.028105273842811584, 0.007986984215676785, 0.03621756285429001, 0.03114970214664936, 0.060962826013565063, 0.022591887041926384, 0.02845798060297966, -0.030332904309034348, -0.01850789785385132, -0.023427248001098633, 0.008929085917770863, 0.0618167519569397, -0.06567797809839249, -0.013440038077533245, -0.030184395611286163, -0.04199083894491196, 0.03998596966266632, 0.05520811304450035, -0.004708189982920885, -0.04447835683822632, 0.02754836529493332, -0.03894640877842903, -0.04822820425033569, 0.014683798886835575, -0.055727891623973846, -0.014767334796488285, 0.03541932627558708, -0.04622333496809006, -0.026063278317451477, 0.02691720426082611, -0.003148848656564951, 0.03463965654373169, 0.051161251962184906, 0.0140433544293046, -0.01667010225355625, 0.026527367532253265, 0.024856645613908768, -0.036774467676877975, -0.04915638267993927, 0.052126556634902954, -0.007049522828310728, -0.017152756452560425, 0.047894060611724854, -0.016280267387628555, -0.01236335001885891, 0.016159603372216225, -0.033043187111616135, 0.028439417481422424, 0.012892412021756172, 0.08546676486730576, -0.041545312851667404, -0.0009774889331310987, 0.010998926125466824, 0.05932923033833504, 0.01663297601044178, -0.008089084178209305, 0.0366816520690918, -0.016113195568323135, -0.03369291499257088, -0.03376716747879982, -0.051495395600795746, -0.013300810940563679, 0.02194216102361679, 0.0251350998878479, -0.03373004123568535, -0.04061713069677353, -0.022629015147686005, -0.04410708695650101, -0.06534383445978165, 0.03309888020157814, -0.04811682179570198, 0.04592631757259369, 0.01975165866315365, -0.05260920897126198, 0.019733095541596413, 0.02314879558980465, -0.06656903028488159, 0.02409553900361061, 0.01140732504427433, 0.04176807403564453, -0.006200238596647978, -0.0491192564368248, -0.01824800856411457, -0.013987664133310318, -0.042547743767499924, -0.0008521847194060683, 0.06508394330739975, -0.02311166748404503, 0.03265335410833359, 0.07172970473766327, 0.0041187964379787445, -0.014470317400991917, -0.023538630455732346, 0.0011265778448432684, 0.018312979489564896, 0.0037544858641922474, -0.008813063614070415, -0.0009908315259963274, -0.01585330441594124, 0.07250937819480896, -0.04358730465173721, 0.020958291366696358, 0.05231219157576561, 0.03571634367108345, -0.026063278317451477, 0.04496101289987564, -0.0024712777230888605, -0.005429849494248629, -0.019900167360901833, 0.036811597645282745, -0.004698908422142267, 0.029757432639598846, 0.050010308623313904, 0.04239923506975174, 0.05546800419688225, 0.020234310999512672, -0.03779546543955803, 0.002443432342261076, 0.04135967418551445, -0.004550399724394083, -0.005462335888296366, -0.015277833677828312, 0.0029678537975996733, -0.026267478242516518, 0.03796253725886345, 0.01300379354506731, 0.01609463058412075, 0.0462975911796093, -0.0051978048868477345, -0.025283608585596085, -0.05015881732106209, 0.031038319692015648, -0.01501794345676899, 0.009653066284954548, 0.017208445817232132, -0.0029608923941850662, -0.04952765628695488, -0.0012982910266146064, 0.08531825244426727, -0.028012454509735107, 0.04377294331789017, 0.0041187964379787445, 0.02472670003771782, -0.010172846727073193, -0.026360295712947845, 0.052497830241918564, 0.02940472401678562, 0.005081782583147287, 0.010247101075947285, 0.03890928253531456, 0.016568003222346306, -0.03580916300415993, 0.0053370315581560135, -0.07050450891256332, 0.00981085654348135, -0.019473204389214516, 0.039466191083192825, 0.04028298705816269, -0.0029608923941850662, -0.08264509588479996, -0.0014943688875064254, 0.003148848656564951, 0.0693906918168068, 0.03382285684347153, -0.030258649960160255, -0.04273338243365288, -0.05843817815184593, 0.029720304533839226, -0.03057423047721386, -0.003752165473997593, -0.042547743767499924, 0.00032834347803145647, 0.0013702248688787222, -0.062076639384031296, 0.055690765380859375, 0.04128542169928551, -0.002221829490736127, -0.0006178194307722151, -0.021459508687257767, 0.05338888242840767, -0.031502410769462585, -0.03463965654373169, -0.02264757826924324, -0.04284476116299629, 0.06330183893442154, -0.02875499799847603, 0.05520811304450035, 0.01683717407286167, 0.10254526138305664, 0.0019747016485780478, -0.008734168484807014, 0.007485767360776663, -0.05702734366059303, 0.0395033173263073, -0.01572335883975029, -0.05119837820529938, 0.033989932388067245, -0.041174039244651794, 0.006116702686995268, -0.026397423818707466, 0.08680333942174911, -0.013894845731556416, -0.05164390429854393, -0.007959138602018356, 0.045146647840738297, 0.004325316287577152, -0.025562060996890068, -0.004186089150607586, -0.028105273842811584, 0.06942781805992126, -0.008019470609724522, -0.039429061114788055, -0.011750751174986362, -0.034825291484594345, 0.021478071808815002, 0.11360916495323181, -0.030258649960160255, -0.026731567457318306, 0.027102839201688766, -0.00518388208001852, -0.052497830241918564, -0.010349201038479805, 0.008395383134484291, 0.004044542089104652, 0.049639035016298294, 0.015630541369318962, -0.012251968495547771, 0.017143474891781807, -0.015333523973822594, 0.03766551986336708, 0.02170083485543728, -0.032764732837677, 0.021310999989509583, 0.013495729304850101, -0.01696711964905262, -0.02858792617917061, -0.0163823664188385, -0.06218802183866501, 0.022721832618117332, -0.0006572670536115766, 0.0333402045071125, 0.0004133298934902996, 0.02082834579050541, 0.0389835350215435 ]
718,572
masky.core
get_last_tracker
null
def get_last_tracker(self): return self.__tracker
(self)
[ -0.012479730881750584, 0.045101895928382874, -0.07100167125463486, 0.08895004540681839, 0.0238706823438406, -0.041142694652080536, 0.01011245884001255, 0.06562375277280807, 0.052327439188957214, -0.03682056814432144, -0.04866517707705498, -0.05371315777301788, -0.06578872352838516, -0.010739332064986229, 0.009914498776197433, 0.03032088093459606, -0.028737200424075127, 0.0001116102866944857, -0.04694952443242073, -0.040812764316797256, 0.02279839850962162, 0.02614722214639187, 0.02368921786546707, -0.03922908380627632, -0.014896493405103683, 0.017849396914243698, 0.00807511992752552, -0.01681835576891899, 0.022303499281406403, 0.017865894362330437, -0.07925000786781311, -0.0483352430164814, -0.013114852830767632, -0.02522340975701809, -0.020472368225455284, 0.02400265634059906, -0.07139758765697479, 0.030007444322109222, -0.04549781605601311, -0.02705453895032406, 0.01900416426360607, -0.002990021603181958, -0.013345805928111076, 0.005984167102724314, 0.025025449693202972, -0.010722835548222065, 0.04209950193762779, -0.020917778834700584, 0.03715050220489502, -0.037678394466638565, 0.029842477291822433, 0.034511033445596695, -0.02931458316743374, 0.01765143685042858, -0.027252499014139175, -0.0003518430457916111, 0.025487355887889862, -0.028027843683958054, -0.0483352430164814, 0.02278190106153488, 0.0031838573049753904, -0.01638944260776043, 0.04859919100999832, -0.022897377610206604, 0.07456494867801666, -0.024975959211587906, 0.04107670858502388, 0.036292675882577896, 0.004132416099309921, 0.07119963318109512, 0.007341018412262201, -0.04351821541786194, 0.03939404711127281, -0.012743677943944931, -0.00867724884301424, -0.05193151906132698, 0.01796487346291542, -0.016125494614243507, 0.02509143576025963, 0.01576256938278675, -0.019152633845806122, 0.05077674984931946, 0.03592974692583084, 0.025767799466848373, 0.03606172278523445, -0.05513187125325203, 0.03411511331796646, -0.039625003933906555, -0.09092964977025986, 0.029331080615520477, -0.014921238645911217, 0.026213210076093674, -0.00040262186666950583, 0.005802704021334648, 0.004388114437460899, -0.06562375277280807, -0.045662783086299896, 0.04229746386408806, -0.016991570591926575, -0.01080531906336546, -0.017107047140598297, 0.04140664264559746, -0.034676000475883484, 0.037513427436351776, 0.0185917466878891, 0.015119198709726334, 0.042033515870571136, -0.04048283025622368, -0.03724948316812515, 0.02354074828326702, -0.0416375957429409, 0.011597159318625927, -0.03418109938502312, 0.03771138936281204, 0.05377914384007454, 0.0006974998395889997, -0.03731546923518181, 0.0197795070707798, 0.0574084147810936, -0.006503812503069639, -0.0383712537586689, 0.03474198654294014, -0.044903937727212906, -0.021841591224074364, -0.04985293745994568, -0.0150944534689188, -0.0054975152015686035, -0.027895869687199593, 0.002132194582372904, -0.020950771868228912, 0.02144567109644413, -0.014112901873886585, -0.003111684462055564, 0.040845755487680435, 0.05272335931658745, -0.014459331519901752, 0.06889009475708008, 0.03794234246015549, -0.04777435585856438, 0.011300219222903252, 0.006668779067695141, 0.037975333631038666, 0.05226145312190056, -0.011382702738046646, 0.05631963163614273, 0.016694629564881325, -0.03754642233252525, 0.05344921350479126, -0.021396180614829063, -0.05061178654432297, 0.02146216854453087, -0.0843309760093689, -0.0057903314009308815, 0.0649968832731247, -0.01689258962869644, -0.013246825896203518, -0.03368620201945305, 0.036325667053461075, -0.014071660116314888, -0.05424105376005173, -0.020785804837942123, -0.04209950193762779, -0.006606916431337595, -0.0739050805568695, -0.015044962987303734, 0.014616049826145172, 0.022765405476093292, 0.033735692501068115, -0.03579777479171753, 0.03711750730872154, -0.025718308985233307, 0.02961152419447899, 0.011300219222903252, 0.020950771868228912, -0.060344818979501724, 0.023326292634010315, 0.007242038380354643, 0.027895869687199593, 0.03985595703125, 0.07397107034921646, -0.016010018065571785, -0.04058180749416351, -0.02474500611424446, -0.044475022703409195, 0.03296034783124924, -0.042363449931144714, 0.060938701033592224, -0.014022169634699821, -0.005905807949602604, 0.06575572490692139, -0.003119932720437646, 0.020884783938527107, 0.01870722509920597, -0.02583378553390503, 0.049457017332315445, -0.00198887987062335, -0.0021569395903497934, 0.025107933208346367, 0.013601505197584629, 0.03437906131148338, -0.009485585615038872, -0.008693745359778404, -0.003730309661477804, -0.05239342525601387, -0.01570483110845089, 0.054900918155908585, -0.001044445438310504, -0.03711750730872154, -0.02644416317343712, 0.0306343175470829, -0.020455870777368546, 0.04097772762179375, -0.04120868444442749, -0.011003279127180576, -0.018806204199790955, -0.10538072884082794, 0.024827489629387856, 0.004689178429543972, 0.009724787436425686, 0.03876717388629913, 0.010029975324869156, -0.07205745577812195, -0.051403626799583435, -0.023342788219451904, -0.029529040679335594, -0.010326915420591831, 0.0047799102030694485, -0.004895386751741171, 0.0006598668405786157, -0.06681151688098907, 0.027252499014139175, -0.0015011969953775406, -0.005122215952724218, -0.022550947964191437, 0.038107309490442276, 0.029380569234490395, -0.05793630704283714, -0.008495785295963287, -0.034807976335287094, 0.023903675377368927, -0.0030168285593390465, 0.04615768417716026, 0.056220654398202896, 0.05509888008236885, -0.008561772294342518, -0.014673788100481033, 0.006949222180992365, 0.027730902656912804, 0.053383223712444305, -0.0425284169614315, 0.06928601861000061, -0.007213169243186712, -0.01609250158071518, -0.0035426600370556116, -0.003608646569773555, -0.0574084147810936, 0.006087271496653557, -0.0095185786485672, 0.012413744814693928, 0.002208491787314415, 0.013081859797239304, 0.0744989663362503, -0.029941456392407417, 0.030584827065467834, -0.08004184812307358, 0.00206723902374506, -0.006652282550930977, -0.02233649231493473, -0.019416581839323044, 0.0518985241651535, 0.09832015633583069, -0.008701994083821774, -0.03909710794687271, -0.07588468492031097, -0.05358118563890457, -0.093107208609581, 0.008916450664401054, -0.0006108923116698861, -0.08393505960702896, -0.02687307633459568, -0.03305932879447937, -0.012166294269263744, 0.02161063812673092, -0.01433560624718666, -0.028209306299686432, 0.023359285667538643, 0.02326030470430851, -0.011011527851223946, -0.022715914994478226, -0.011605408042669296, -0.004998491145670414, 0.014467580243945122, 0.008285452611744404, 0.0022456091828644276, 0.056517593562603, -0.06486491113901138, -0.023524252697825432, -0.0015197558095678687, 0.04094473645091057, 0.062159452587366104, -0.019664030522108078, -0.025173919275403023, -0.07766632735729218, 0.00008125899330480024, -0.03922908380627632, 0.039031121879816055, 0.008487536571919918, -0.0146490428596735, 0.019960971549153328, -0.02885267697274685, 0.02614722214639187, 0.00596767058596015, 0.013494276441633701, 0.039921943098306656, -0.027219505980610847, -0.03457701951265335, -0.027813386172056198, -0.02114873193204403, 0.0038375379517674446, 0.07621461898088455, -0.03231697902083397, 0.05674854665994644, 0.038305267691612244, -0.017008068040013313, 0.015902791172266006, -0.01842678152024746, -0.01618323288857937, 0.054274044930934906, -0.015919286757707596, 0.012421992607414722, -0.0318220779299736, -0.09587864577770233, -0.012265274301171303, -0.01753596030175686, 0.03741445019841194, 0.05255839228630066, 0.005534633062779903, -0.011687890626490116, 0.06136761233210564, -0.042825356125831604, -0.027664916589856148, -0.0477413646876812, -0.038569215685129166, 0.03033737652003765, 0.017915384843945503, 0.04411209747195244, 0.057012494653463364, -0.019548553973436356, 0.049226064234972, -0.05542881414294243, -0.00540265953168273, -0.02024141512811184, -0.05892610549926758, 0.02266642451286316, 0.007101816590875387, -0.01601826772093773, 0.00017424608813598752, 0.012545717880129814, 0.006083147134631872, 0.03187156841158867, -0.06479892134666443, -0.049753956496715546, 0.029347576200962067, -0.0035674050450325012, -0.0395590141415596, 0.023309795185923576, 0.01547387707978487, 0.008850463666021824, 0.02792886272072792, -0.06961595267057419, -0.07185949385166168, 0.008244210854172707, 0.06255537271499634, 0.07067173719406128, -0.02533888630568981, 0.004746916703879833, 0.02339227870106697, 0.044936928898096085, -0.037051521241664886, -0.009617558680474758, 0.011283722706139088, 0.0056707304902374744, -0.03612770885229111, 0.014632546342909336, 0.009469089098274708, 0.021643631160259247, -0.002596163423731923, -0.07826020568609238, 0.005237692967057228, -0.00043638848001137376, 0.02748345211148262, -0.07595066726207733, -0.08169151097536087, -0.009040175005793571, -0.013197336345911026, -0.006755386479198933, 0.0024311968591064215, -0.0019105206010863185, 0.02916611358523369, -0.03711750730872154, 0.05598969757556915, 0.030551834031939507, 0.04708149656653404, -0.017123544588685036, 0.004396362695842981, -0.007930774241685867, 0.0020827045664191246, 0.012859154492616653, -0.05559377744793892, -0.049885932356119156, -0.044310055673122406, -0.02055485174059868, -0.003592150053009391, -0.035830769687891006, 0.03939404711127281, -0.02037338726222515, -0.042066510766744614, 0.004548956640064716, 0.06849417835474014, 0.013832458294928074, -0.04338624328374863, 0.02236948534846306, -0.05509888008236885, -0.0002589203941170126, -0.03144265338778496, -0.020043455064296722, -0.020769307389855385, 0.048830144107341766, -0.08485887199640274, 0.06130162626504898, 0.021066248416900635, -0.021198220551013947, 0.04332025721669197, 0.015861548483371735, 0.013106605038046837, 0.029413564130663872, -0.006738889962434769, -0.01979600451886654, -0.023441769182682037, 0.05476894602179527, 0.015696581453084946, 0.0501168854534626, 0.03362021595239639, 0.017915384843945503, 0.05424105376005173, -0.053680166602134705, -0.043089304119348526, -0.03249844163656235, 0.0477413646876812, 0.024415072053670883, -0.05493391305208206, -0.019532058387994766, 0.053680166602134705, 0.013552014715969563, -0.011258977465331554, -0.016884341835975647, -0.08993984758853912, -0.011217735707759857, 0.021544652059674263, -0.010945540852844715, -0.03909710794687271, 0.02687307633459568, 0.03111272118985653, -0.011423944495618343, -0.014310861937701702, -0.056253645569086075, 0.00279412348754704, -0.04440903663635254, -0.045530810952186584, 0.016603898257017136, 0.09983784705400467, 0.0079555194824934, -0.06869213283061981, -0.05047981068491936, -0.06572273373603821, -0.03507192060351372, 0.015432635322213173, 0.027730902656912804, 0.030700303614139557, -0.03190455958247185, -0.007402881048619747, 0.04302331805229187, -0.028489749878644943, -0.010937292128801346, 0.01139919925481081, -0.007604965008795261, -0.0489291250705719, -0.011679642833769321, 0.006850242614746094, -0.00411591911688447, -0.04434305056929588, -0.022880882024765015, -0.04213249683380127, 0.01214979775249958, -0.03302633389830589, 0.03401613608002663, 0.07014384120702744, -0.0004647421301342547, 0.011910595931112766, 0.029792986810207367, 0.031937554478645325, -0.024068642407655716, 0.019746514037251472, -0.0016702879220247269, 0.011127004399895668, -0.05569275841116905, -0.00782354548573494, 0.027120526880025864, 0.006165630649775267, 0.03655662015080452, 0.06519483774900436, -0.026180215179920197, -0.011201239190995693, 0.026807090267539024, -0.03111272118985653, -0.025701813399791718, -0.013857203535735607, -0.04120868444442749, 0.03685356304049492, 0.04170358180999756, -0.023161325603723526, 0.06285231560468674, 0.030716801062226295, -0.04196752980351448, -0.02538837492465973, -0.020026957616209984, -0.052327439188957214, 0.040086910128593445, -0.029479550197720528, 0.04978695139288902, 0.05275635048747063, -0.024497555568814278, 0.03922908380627632, 0.00762558588758111, 0.03913010284304619, 0.03853622078895569, -0.032102521508932114, -0.059849921613931656, -0.11936990916728973, -0.019680527970194817, 0.014393344521522522, -0.0832751914858818, 0.034214094281196594, -0.03642464801669121, 0.00811223778873682, -0.07139758765697479, -0.02370571531355381, 0.0016599774826318026, 0.0037488683592528105, -0.008029754273593426, 0.07588468492031097, -0.012067314237356186, 0.024876978248357773, -0.07304725795984268, 0.0026807088870555162, 0.03202003613114357, -0.009856760501861572, 0.032415956258773804, 0.06272034347057343, -0.004606695380061865, 0.0027673165313899517, -0.0037797996774315834, -0.01080531906336546, 0.0721234455704689, -0.054900918155908585, -0.007444122340530157, 0.03592974692583084, 0.06351218372583389, -0.01887219026684761, 0.036292675882577896, -0.009279376827180386, 0.012430241331458092, -0.004977870266884565, -0.0294465571641922, 0.03474198654294014, 0.045827750116586685, -0.0017424607649445534, 0.026064738631248474, 0.032069526612758636, 0.025899773463606834, 0.05272335931658745, 0.016711127012968063, 0.07892007380723953, -0.03520389646291733, -0.03231697902083397, 0.015416138805449009, -0.0010099055944010615, 0.03487396240234375, -0.01290864497423172, 0.02172611467540264, 0.011613655835390091, 0.028902167454361916, -0.0003433369565755129, 0.008891705423593521, 0.02383768931031227, -0.006606916431337595, 0.006140885408967733, -0.00021883864246774465, -0.03734846040606499, 0.04246243089437485, 0.030139416456222534, 0.031327176839113235, -0.03982296213507652, 0.01826181448996067, 0.027813386172056198, -0.07779829949140549, -0.0459597222507, 0.0026002877857536077, -0.0007804987253621221, 0.007200796622782946, -0.008471040055155754, -0.030452853068709373, 0.028489749878644943, 0.00679662823677063, 0.033290281891822815, -0.005641861353069544, 0.04473897069692612, 0.029265092685818672, -0.03249844163656235, 0.057771340012550354, 0.02159414067864418, 0.0380743145942688, 0.011638401076197624, 0.016339952126145363, -0.008660752326250076, -0.0000056062904150167014, 0.009947491809725761, -0.042825356125831604, 0.009320618584752083, 0.02885267697274685, -0.04473897069692612, -0.017717424780130386, -0.02233649231493473, -0.014517069794237614, -0.030452853068709373, 0.0095185786485672, 0.009312370792031288, -0.03230047971010208, 0.0035550324246287346, -0.03140966221690178, -0.06301727890968323, 0.060938701033592224, -0.010887802578508854, 0.03127768635749817, -0.038272276520729065, -0.009642303921282291, -0.04381515830755234, 0.02796185575425625, -0.004775786306709051, -0.02448105812072754, -0.013461283408105373, -0.011316715739667416, 0.048698171973228455, 0.022237511351704597, -0.026064738631248474, -0.008314321748912334, 0.007365763187408447, 0.05542881414294243, 0.003950952552258968, -0.05054579675197601, -0.020455870777368546, -0.023771701380610466, 0.000798026449047029, -0.05635262653231621, 0.0015310972230508924, -0.004751041065901518, -0.05787032097578049, 0.04414508864283562, 0.015119198709726334, -0.018146337941288948, 0.012545717880129814, -0.03853622078895569, 0.04681755229830742, -0.010343411937355995, -0.013139598071575165, -0.06298428773880005, 0.009320618584752083, 0.051733557134866714, 0.016364697366952896, -0.007571971509605646, 0.05252539739012718, 0.05242642015218735, -0.0285557359457016, -0.02533888630568981, 0.02144567109644413, 0.07892007380723953, 0.0010037192841991782, 0.024398576468229294, 0.03543484956026077, 0.004986118525266647, -0.03165711089968681, -0.04678455740213394, 0.01709054969251156, 0.06285231560468674, 0.04414508864283562, 0.004961373750120401, 0.0002804434043355286, -0.010417647659778595, 0.03309231996536255, -0.04186854884028435, -0.01418713666498661, 0.019977467134594917, 0.02868770994246006, 0.0037014405243098736, 0.02553684636950493, 0.0073822601698338985, 0.015127446502447128, 0.0009516516583971679, -0.022996358573436737, -0.010896050371229649, 0.012430241331458092, -0.008817470632493496, 0.040251877158880234, 0.023491257801651955, 0.003103436203673482, 0.014904742129147053, -0.01579556241631508, -0.007341018412262201, -0.01781640388071537, 0.07892007380723953, -0.024563541635870934, -0.0035055424086749554, 0.021841591224074364, 0.041307661682367325, 0.05371315777301788, 0.0591900534927845, 0.031508639454841614, -0.03546784073114395, -0.043848149478435516, 0.006784255616366863, -0.06159856915473938, -0.05028185248374939, 0.01403041835874319, 0.011415695771574974, 0.008734987117350101, 0.010260929353535175, 0.03790934756398201, 0.010755829513072968, 0.01525117177516222, 0.03550083562731743, -0.018162833526730537, -0.040812764316797256, -0.017733920365571976, 0.07146357744932175, -0.024942966178059578, -0.0518985241651535, -0.011135252192616463, -0.027598930522799492, -0.017255516722798347, -0.044936928898096085, 0.07284929603338242, -0.014863500371575356, 0.018047356978058815, -0.02098376490175724, -0.028803186491131783, 0.02490997314453125, 0.006763634737581015, 0.039196088910102844, 0.0404498353600502, 0.0670754611492157, 0.005464522168040276, -0.0474444255232811, 0.009774276986718178, 0.00196516583673656, -0.04589373618364334, 0.03395014628767967, -0.02429959550499916, 0.03337276354432106 ]
718,573
masky.core
run
null
def run(self, target): self.__tracker = Tracker() add_result_level() if self.__quiet: logger.disabled = True if not self.__process_options(): return None if not scan_port(target): logger.info("The port tcp/445 seems not exposed, skipping this target") return None s = Smb( self.__tracker, self.__domain, self.__user, password=self.__password, hashes=self.__hashes, kerberos=self.__kerberos, dc_target=self.__dc_target, stealth=self.__stealth, exe_path=self.__exe_path, file_args=self.__file_args, ) rslt = None try: rslt = s.exec_masky(target, self.__ca, self.__template) except: return rslt self.__tracker.nb_hijacked_users = len(rslt.users) if not rslt or not rslt.users: logger.info("No user session was hijacked") return None if len(rslt.users) == 1: logger.info(f"{len(rslt.users)} user session was hijacked") else: logger.info(f"{len(rslt.users)} user sessions were hijacked") for user_data in rslt.users: logger.debug( f"Start processing PFX of the user '{user_data.domain}\{user_data.name}'" ) if not self.__process_certificate(user_data): logger.warn( f"Fail to process gathered certificate related to the user '{user_data.domain}\{user_data.name}'" ) else: logger.debug( f"End processing PFX of the user '{user_data.domain}\{user_data.name}'" ) return rslt
(self, target)
[ 0.06496711820363998, -0.05908989533782005, -0.0567072369158268, 0.06127399578690529, -0.04312609136104584, -0.02037171833217144, -0.03820193558931351, -0.004040589090436697, -0.012925914488732815, -0.02622908353805542, -0.01905132830142975, 0.018952051177620888, 0.030378878116607666, 0.008105997927486897, -0.011357331648468971, 0.01711541973054409, 0.07080462574958801, 0.011496320366859436, -0.027579255402088165, 0.002176656387746334, 0.032404135912656784, 0.05750145763158798, 0.04503221809864044, 0.07171797752380371, -0.03369474038481712, 0.03683190792798996, -0.0030775987543165684, 0.0151199446991086, 0.005902040284126997, -0.02196015603840351, 0.037725403904914856, 0.007579827681183815, 0.017780577763915062, 0.02873087301850319, 0.004819916561245918, 0.048685625195503235, -0.01116870529949665, 0.03067670948803425, -0.02956480346620083, -0.019468294456601143, -0.034548528492450714, -0.036037687212228775, 0.07616560161113739, 0.02920740470290184, -0.041895054280757904, 0.042768694460392, 0.035858988761901855, 0.036772340536117554, 0.011476464569568634, -0.0018478002166375518, 0.010553184896707535, 0.06949416548013687, -0.0381622239947319, -0.011962924152612686, 0.03971095010638237, 0.008339299820363522, -0.0334763303399086, -0.00961997825652361, 0.007654285989701748, -0.04157736524939537, -0.007698960602283478, 0.017274264246225357, 0.055555619299411774, 0.04578672721982002, 0.03172904998064041, 0.012826637364923954, -0.020709261298179626, -0.019120823591947556, -0.01609286293387413, -0.00390904676169157, 0.06409347802400589, -0.03383373096585274, -0.03961167484521866, 0.042768694460392, 0.04074343666434288, -0.01701614260673523, 0.015834741294384003, -0.007237320765852928, -0.05726319178938866, -0.018773352727293968, 0.044873375445604324, 0.01618221215903759, -0.027837377041578293, -0.04249071702361107, 0.006209800019860268, 0.01031491905450821, 0.1237393245100975, -0.023091917857527733, -0.08863484114408493, 0.021046804264187813, -0.024700211361050606, 0.04697805643081665, 0.0019632100593298674, 0.0697721391916275, 0.04141852259635925, -0.01507030613720417, -0.02920740470290184, 0.058255963027477264, -0.07267104089260101, -0.007525225169956684, -0.06854110211133957, 0.08577565103769302, 0.009932701475918293, 0.06306099146604538, 0.05154481530189514, 0.0311730969697237, -0.005504930391907692, 0.018177688121795654, 0.029187548905611038, 0.008200311101973057, -0.05198163539171219, 0.0186045803129673, -0.02112622559070587, -0.011486392468214035, -0.03496549278497696, -0.08394894748926163, -0.0007774659316055477, 0.0735049694776535, -0.03049801103770733, 0.015268860384821892, -0.03822179138660431, -0.033615320920944214, 0.01176436897367239, -0.010960222221910954, -0.03655393049120903, 0.03834092244505882, 0.010890727862715721, -0.0015723054530099034, 0.10094523429870605, -0.019309449940919876, -0.040902279317379, -0.013849194161593914, 0.020143380388617516, 0.03655393049120903, -0.002007884904742241, -0.041895054280757904, 0.006701223086565733, -0.010970150120556355, 0.04036618024110794, -0.006140305660665035, 0.051663946360349655, -0.011893429793417454, -0.0265070591121912, -0.02426339127123356, 0.03615682199597359, -0.0026531878393143415, 0.02567313052713871, -0.009729183278977871, 0.05142568051815033, 0.00019436648290138692, 0.02587168477475643, -0.03802323713898659, 0.013749917037785053, 0.019944824278354645, -0.03210630267858505, 0.01683744229376316, 0.03429040685296059, 0.010533330030739307, 0.011148849502205849, -0.03689147159457207, -0.0006930801901035011, -0.05134626105427742, -0.0293066818267107, -0.027738099917769432, -0.04713689908385277, -0.047375164926052094, -0.016211995854973793, 0.031490784138441086, 0.04312609136104584, 0.08704640716314316, -0.010801378637552261, 0.03155035153031349, -0.035581011325120926, 0.04062430188059807, -0.018803134560585022, 0.020609984174370766, 0.014047748409211636, -0.056786660104990005, -0.029505236074328423, 0.03041858784854412, -0.03943297266960144, -0.0030130683444440365, -0.034826502203941345, -0.02845289558172226, 0.004939049482345581, 0.05384805053472519, 0.02342946082353592, 0.031212806701660156, 0.017264336347579956, 0.026566626504063606, -0.027122579514980316, 0.012320322915911674, 0.051385968923568726, 0.015318498946726322, 0.005956642795354128, -0.014931317418813705, -0.03683190792798996, 0.01502066757529974, -0.08128831535577774, -0.06250503659248352, -0.01358114555478096, 0.013233674690127373, 0.0069295610301196575, -0.02549443021416664, -0.0334961861371994, -0.002752465195953846, -0.008766192011535168, 0.055555619299411774, -0.003802323481068015, 0.007411056198179722, 0.021424058824777603, -0.033714596182107925, -0.03188789263367653, 0.06282272189855576, 0.01557662058621645, -0.042768694460392, 0.07147970795631409, -0.0035342746414244175, 0.019577499479055405, 0.049718111753463745, -0.010031978599727154, -0.010473763570189476, -0.036414943635463715, 0.028850005939602852, -0.07199595123529434, 0.04118025675415993, -0.010771595872938633, -0.016509827226400375, 0.03736800327897072, -0.0688587874174118, 0.04121996834874153, -0.027857232838869095, -0.02017316222190857, 0.0062644025310873985, -0.005629027262330055, 0.01683744229376316, -0.01915060542523861, 0.03188789263367653, 0.02344931662082672, 0.036792196333408356, 0.028869861736893654, -0.03643479570746422, 0.09181171655654907, -0.010101472958922386, -0.00035491661401465535, 0.010066726244986057, 0.04471452906727791, -0.001329075894318521, 0.023925848305225372, 0.02511717565357685, 0.0585736520588398, -0.026268793269991875, -0.005127676296979189, -0.010463835671544075, -0.02890957146883011, -0.053053829818964005, 0.010215641930699348, -0.008890288881957531, 0.05126683786511421, 0.02158290147781372, -0.021185792982578278, -0.016142502427101135, -0.0010870873229578137, 0.009173229336738586, -0.035203758627176285, 0.0214042030274868, -0.08680813759565353, -0.009535592049360275, -0.020212873816490173, -0.02539515309035778, -0.002921236911788583, 0.05067117139697075, -0.037070173770189285, 0.0316496267914772, -0.07028838247060776, -0.027182145044207573, -0.022992640733718872, 0.021225502714514732, -0.007614574860781431, 0.007971973158419132, 0.05253758653998375, -0.0013228710740804672, 0.06075775623321533, -0.04288782551884651, 0.011823935434222221, 0.027003446593880653, -0.02670561522245407, 0.0015896790428087115, 0.04975781962275505, -0.05225961282849312, -0.04380117729306221, 0.010304992087185383, 0.013174108229577541, -0.07267104089260101, -0.00837404653429985, 0.01841595396399498, -0.09371784329414368, -0.04824880510568619, -0.00935192871838808, -0.023310327902436256, -0.019418654963374138, -0.04066401347517967, -0.0428084060549736, 0.035481736063957214, -0.017919566482305527, 0.00487948302179575, 0.09800662845373154, -0.012300467118620872, -0.02698359079658985, -0.003889191197231412, 0.019865402951836586, -0.010920511558651924, 0.04118025675415993, -0.0390755757689476, 0.08172513544559479, -0.04975781962275505, 0.010582968592643738, 0.005514858290553093, 0.03319835662841797, 0.005271628499031067, -0.040703725069761276, -0.003983504604548216, 0.046819210052490234, 0.02994205616414547, -0.0072869593277573586, 0.01850530318915844, -0.010106436908245087, 0.014673196710646152, -0.022635241970419884, -0.03935355320572853, -0.07954103499650955, 0.01710549183189869, 0.02902870438992977, 0.03359546512365341, -0.04876504838466644, -0.04074343666434288, 0.010473763570189476, -0.005569460801780224, 0.05059175193309784, -0.01811812072992325, 0.006492740474641323, -0.0014159436104819179, -0.038936588913202286, 0.03490592539310455, 0.07842912524938583, 0.0185946524143219, -0.033158645033836365, -0.00785780418664217, 0.04392031207680702, -0.050274062901735306, 0.032682113349437714, 0.00966961681842804, -0.01065246295183897, 0.00031070716795511544, 0.06746890395879745, -0.039035864174366, -0.018922267481684685, 0.010860945098102093, -0.010002195835113525, -0.0293066818267107, -0.017730940133333206, 0.00339528638869524, -0.03895644098520279, 0.007882623933255672, -0.023965558037161827, -0.03238428011536598, -0.0023019942454993725, -0.00836411863565445, 0.058931052684783936, 0.020312150940299034, -0.024898765608668327, -0.02344931662082672, -0.04288782551884651, -0.0027549471706151962, -0.0185946524143219, 0.048963602632284164, -0.03599797561764717, -0.044595398008823395, -0.023846425116062164, 0.024322956800460815, 0.030914975330233574, -0.0016393177211284637, -0.021642468869686127, -0.014841968193650246, -0.010041906498372555, -0.02845289558172226, -0.04419828951358795, 0.003467262489721179, 0.04483366385102272, 0.017929494380950928, 0.07457716763019562, -0.02799621969461441, 0.058931052684783936, -0.005360978189855814, 0.021999867632985115, 0.023191194981336594, 0.01812804862856865, 0.039591819047927856, 0.016589250415563583, -0.015646114945411682, 0.004000878427177668, 0.02196015603840351, -0.02956480346620083, 0.04030661657452583, -0.01738346926867962, -0.04149794206023216, 0.01740332506597042, -0.059010472148656845, 0.025792263448238373, 0.0302200336009264, -0.0185946524143219, -0.04864591360092163, -0.04967840015888214, -0.04340406879782677, -0.07791288197040558, 0.013531506061553955, -0.05468197911977768, 0.018574796617031097, 0.024124402552843094, -0.007500405889004469, 0.052974406629800797, 0.030378878116607666, -0.002151837106794119, -0.012518877163529396, -0.03280124440789223, 0.035303033888339996, 0.007500405889004469, -0.01803869940340519, -0.012161478400230408, 0.037169449031353, -0.029167693108320236, 0.045429326593875885, -0.02438252419233322, 0.05773972347378731, 0.08077207207679749, -0.02686445787549019, -0.058533940464258194, 0.047375164926052094, 0.008398866280913353, 0.02261538617312908, -0.03186803683638573, -0.011327548883855343, 0.020510705187916756, -0.011843791231513023, 0.12667793035507202, -0.026725469157099724, -0.07517282664775848, 0.010870872996747494, 0.0018056073458865285, 0.028869861736893654, 0.02519659884274006, -0.06707179546356201, 0.015973730012774467, -0.002066210377961397, 0.002151837106794119, 0.00590700376778841, -0.01609286293387413, 0.054562848061323166, 0.026467349380254745, -0.02456122264266014, -0.05142568051815033, -0.026387926191091537, 0.017810361459851265, 0.0018192579736933112, -0.037705548107624054, 0.03589870035648346, 0.01464341301470995, 0.023191194981336594, 0.033535897731781006, -0.02279408648610115, -0.016063079237937927, -0.038082800805568695, 0.011029716581106186, -0.004621361847966909, 0.02277423068881035, -0.014921389520168304, -0.01589430868625641, 0.024700211361050606, -0.017810361459851265, -0.03299979865550995, -0.03635537624359131, -0.0005357876070775092, 0.03599797561764717, 0.026447493582963943, -0.05809712037444115, -0.07175768911838531, 0.09069981426000595, -0.03303951025009155, 0.045707304030656815, -0.05400689318776131, 0.003400250105187297, -0.0010256593814119697, 0.00034964250517077744, -0.001280678203329444, -0.028055787086486816, -0.011357331648468971, 0.008647059090435505, 0.03655393049120903, 0.047454584389925, -0.05813683196902275, 0.011019788682460785, 0.043562911450862885, -0.030656853690743446, 0.004512156825512648, 0.010027014650404453, 0.017274264246225357, -0.024064837023615837, 0.012320322915911674, -0.016053151339292526, 0.039849940687417984, -0.017174987122416496, 0.010990005917847157, -0.03730843961238861, -0.012975553050637245, -0.06314041465520859, 0.021900588646531105, 0.00045853739720769227, 0.010950294323265553, -0.07243277132511139, -0.008721517398953438, 0.04610441252589226, 0.04662065580487251, 0.0013390036765486002, 0.02890957146883011, -0.007331634406000376, -0.04789140820503235, -0.02966408059000969, 0.057700011879205704, 0.022714663296937943, 0.03236442431807518, -0.005261701066046953, -0.01358114555478096, 0.02438252419233322, -0.02920740470290184, 0.028313908725976944, -0.004129938781261444, -0.04606470465660095, -0.04725603014230728, -0.04324522614479065, -0.07386236637830734, 0.0016467635286971927, 0.04773256182670593, -0.04697805643081665, -0.04670007899403572, -0.04531019553542137, -0.029505236074328423, -0.028512462973594666, 0.025256164371967316, -0.006522523704916239, -0.04028676077723503, 0.015378065407276154, -0.0040455530397593975, 0.0548805333673954, 0.06238590553402901, 0.006661511957645416, -0.017601879313588142, 0.07382265478372574, 0.04689863324165344, -0.048129674047231674, -0.0035814314614981413, -0.008582529611885548, -0.06242561340332031, 0.004703265614807606, -0.009267543442547321, -0.0353427454829216, -0.03712973743677139, -0.014712907373905182, 0.027102723717689514, 0.020947527140378952, -0.06429202854633331, -0.022555820643901825, 0.038837309926748276, 0.03327777609229088, 0.06500682979822159, 0.003546684281900525, -0.029882490634918213, 0.05412602424621582, 0.014256231486797333, 0.04511164128780365, 0.006949416361749172, 0.005132640246301889, -0.01664881594479084, 0.06445087492465973, -0.046183835715055466, -0.06008267030119896, 0.037904102355241776, -0.04550874978303909, -0.014534207992255688, 0.008915108628571033, 0.01719484105706215, -0.010443979874253273, -0.03188789263367653, -0.03452867269515991, -0.014722835272550583, -0.014732763171195984, 0.020431283861398697, -0.002769838785752654, 0.01376977190375328, 0.07060606777667999, 0.054284870624542236, -0.024223679676651955, 0.07175768911838531, 0.06453029811382294, -0.03272182494401932, -0.011218343861401081, -0.05079030618071556, -0.08021611720323563, 0.004596542567014694, 0.000916454300750047, 0.013511651195585728, -0.04249071702361107, -0.038817454129457474, 0.004618879873305559, 0.05889134109020233, -0.034826502203941345, 0.03458823636174202, 0.005683629773557186, 0.044873375445604324, 0.007634430192410946, 0.004258999601006508, -0.009034241549670696, 0.033714596182107925, -0.03796366974711418, 0.03776511549949646, 0.02640778198838234, 0.0008531649364158511, 0.015646114945411682, 0.04177591949701309, -0.02865145169198513, 0.025593707337975502, -0.06762775033712387, 0.020431283861398697, 0.012360033579170704, 0.02698359079658985, -0.007291923277080059, 0.006894813850522041, 0.05031377449631691, 0.04380117729306221, -0.058653075248003006, -0.01934916153550148, 0.005802762694656849, 0.011138921603560448, 0.009734147228300571, -0.045905858278274536, -0.011982779018580914, -0.03208644688129425, -0.013561289757490158, 0.01981576532125473, 0.03822179138660431, 0.03276153281331062, -0.001944595598615706, -0.027023302391171455, -0.021364491432905197, 0.04562788084149361, 0.04221273958683014, -0.0039338660426437855, 0.010384413413703442, 0.01693672128021717, 0.0024471874348819256, -0.008800939656794071, -0.06929560750722885, 0.010041906498372555, 0.042768694460392, -0.04125967621803284, -0.02807564288377762, 0.010563112795352936, -0.004450108390301466, -0.06500682979822159, -0.05345093831419945, 0.03186803683638573, -0.008388938382267952, -0.051187414675951004, -0.07576849311590195, -0.0006583331269212067, -0.06707179546356201, -0.03490592539310455, 0.009565374813973904, -0.029803069308400154, -0.040902279317379, 0.0014370400458574295, 0.025037754327058792, -0.05638955160975456, -0.01013125665485859, -0.023965558037161827, 0.0010188340675085783, -0.01570568047463894, 0.027380701154470444, -0.02473992295563221, -0.03794381394982338, -0.06159168481826782, -0.04443655535578728, -0.01115877740085125, 0.02938610315322876, 0.06159168481826782, -0.07576849311590195, 0.037606269121170044, -0.024501657113432884, -0.003963649272918701, 0.030656853690743446, 0.026387926191091537, -0.025176743045449257, 0.002298271283507347, 0.03264240175485611, -0.0176713727414608, -0.00875130109488964, 0.008671878837049007, -0.04900331422686577, 0.02110636979341507, 0.04380117729306221, -0.004365722648799419, 0.0390755757689476, -0.04173620790243149, 0.05281556397676468, 0.05293469876050949, -0.04550874978303909, -0.004780205897986889, -0.09347958117723465, 0.022059433162212372, -0.03589870035648346, 0.030636997893452644, -0.025732696056365967, 0.03570014610886574, 0.035680290311574936, -0.010513474233448505, 0.008115925826132298, 0.007917370647192001, 0.010900655761361122, -0.012290539219975471, 0.10626650601625443, 0.04451597481966019, -0.01037448551505804, -0.042728982865810394, -0.0641728937625885, 0.016440333798527718, -0.023767003789544106, -0.06762775033712387, 0.018564868718385696, -0.024322956800460815, 0.029326537624001503, 0.05293469876050949, -0.03286081179976463, -0.04157736524939537, -0.03186803683638573, -0.02398541383445263, -0.018842846155166626, 0.033992573618888855, 0.02612980641424656, -0.040405891835689545, 0.053172964602708817, 0.0016616551438346505, 0.024799488484859467, -0.001232280395925045, 0.024243535473942757, 0.06663497537374496, 0.02791679836809635, -0.0030701528303325176, 0.004191987216472626, 0.016708383336663246, 0.02057027257978916, -0.014325725845992565, -0.006795536261051893, -0.024799488484859467, -0.013571217656135559, -0.02027244120836258, 0.030001623556017876, -0.03369474038481712, 0.00879101175814867, 0.0028765620663762093 ]
718,579
hypothesis_graphql._strategies.strategy
from_schema
A strategy for generating valid queries and mutations for the given GraphQL schema. :param schema: GraphQL schema as a string or `graphql.GraphQLSchema`. :param fields: Restrict generated fields to ones in this list. :param custom_scalars: Strategies for generating custom scalars. :param print_ast: A function to convert the generated AST to a string. :param allow_x00: Determines whether to allow the generation of `\x00` bytes within strings. :param codec: Specifies the codec used for generating strings.
@cacheable # type: ignore def from_schema( schema: Union[str, graphql.GraphQLSchema], *, fields: Optional[Iterable[str]] = None, custom_scalars: Optional[CustomScalarStrategies] = None, print_ast: AstPrinter = graphql.print_ast, allow_x00: bool = True, codec: Optional[str] = "utf-8", ) -> st.SearchStrategy[str]: r"""A strategy for generating valid queries and mutations for the given GraphQL schema. :param schema: GraphQL schema as a string or `graphql.GraphQLSchema`. :param fields: Restrict generated fields to ones in this list. :param custom_scalars: Strategies for generating custom scalars. :param print_ast: A function to convert the generated AST to a string. :param allow_x00: Determines whether to allow the generation of `\x00` bytes within strings. :param codec: Specifies the codec used for generating strings. """ parsed_schema = validation.maybe_parse_schema(schema) if custom_scalars: validation.validate_custom_scalars(custom_scalars) query = parsed_schema.query_type mutation = parsed_schema.mutation_type query_fields = None mutation_fields = None if fields is not None: # Split fields based on the type they are defined on & validate them fields = tuple(fields) available_fields = [] if query is not None: query_fields = tuple(field for field in fields if field in query.fields) available_fields.extend(query.fields) if mutation is not None: mutation_fields = tuple(field for field in fields if field in mutation.fields) available_fields.extend(mutation.fields) validation.validate_fields(fields, available_fields) alphabet = _build_alphabet(allow_x00=allow_x00, codec=codec) strategy = GraphQLStrategy(parsed_schema, alphabet=alphabet, custom_scalars=custom_scalars or {}) strategies = [ strategy.selections(type_, fields=type_fields).map(node_factory).map(print_ast) for (type_, type_fields, node_factory) in ( (query, query_fields, make_query), (mutation, mutation_fields, make_mutation), ) # If a type is defined in the schema and don't have restrictions on fields or has at least one selected field if type_ is not None and (type_fields is None or len(type_fields) > 0) ] if not strategies: raise InvalidArgument("Query or Mutation type must be provided") return reduce(or_, strategies)
(schema: Union[str, graphql.type.schema.GraphQLSchema], *, fields: Optional[Iterable[str]] = None, custom_scalars: Optional[Dict[str, hypothesis.strategies.SearchStrategy[graphql.language.ast.ValueNode]]] = None, print_ast: Callable[[graphql.language.ast.Node], str] = <function print_ast at 0x7fb911e60820>, allow_x00: bool = True, codec: Optional[str] = 'utf-8') -> hypothesis.strategies.SearchStrategy[str]
[ 0.016167862340807915, -0.05988968163728714, -0.020753657445311546, -0.016481421887874603, 0.01617766171693802, 0.062476541846990585, 0.003963576164096594, -0.05636214837431908, -0.0020528286695480347, -0.0010190652683377266, 0.006829697173088789, 0.07646909356117249, -0.004835660569369793, -0.0007300035213120282, -0.007050168234854937, 0.015295778401196003, -0.019215259701013565, 0.03153223171830177, 0.022301852703094482, 0.029827257618308067, 0.02530025504529476, 0.0044118668884038925, -0.014482486061751842, 0.060124851763248444, 0.043584637343883514, 0.018156999722123146, -0.006197680719196796, -0.027024827897548676, -0.04095858708024025, -0.014521680772304535, 0.030944310128688812, -0.009798704646527767, 0.06326043605804443, 0.0036524671595543623, -0.033746737986803055, -0.061888620257377625, 0.03621601313352585, 0.07909514755010605, -0.019754188135266304, 0.0030375984497368336, 0.032982438802719116, 0.018059013411402702, -0.005982109345495701, -0.07639069855213165, -0.011709452606737614, -0.0019205461721867323, 0.010631594806909561, -0.009646824561059475, -0.06314285099506378, -0.026711268350481987, 0.04770009592175484, -0.031218674033880234, -0.014423693530261517, 0.027593152597546577, 0.05969370901584625, -0.01979338377714157, -0.021380774676799774, 0.0783112496137619, 0.05745960399508476, 0.022595813497900963, -0.029964439570903778, 0.029729269444942474, -0.04515243321657181, 0.048013653606176376, -0.015962090343236923, -0.03911643102765083, 0.027769528329372406, -0.08285784721374512, -0.045191626995801926, -0.013963154517114162, -0.023477695882320404, 0.021380774676799774, 0.025359047576785088, -0.00022200190869625658, 0.0476217046380043, -0.010406224057078362, 0.004193845670670271, -0.03502057120203972, 0.005849826615303755, -0.017451493069529533, 0.03355076536536217, -0.04875835403800011, -0.0681597888469696, -0.04601471871137619, 0.01526638213545084, -0.01131750363856554, 0.013434024527668953, 0.0005674062413163483, 0.03807776793837547, -0.047425732016563416, -0.0031551828142255545, -0.072667196393013, -0.014943025074899197, 0.048209626227617264, -0.035216543823480606, -0.000403277954319492, -0.006859093438833952, -0.04331027343869209, 0.011601665988564491, 0.06435789167881012, 0.003042497904971242, 0.040880195796489716, -0.06118311360478401, 0.04621069133281708, 0.011993614956736565, -0.019999155774712563, -0.005869423970580101, -0.038822468370199203, 0.014433491975069046, -0.042683158069849014, -0.009338165633380413, 0.022830981761217117, 0.05424562841653824, 0.021498357877135277, -0.017725856974720955, 0.01705954410135746, 0.036431584507226944, 0.013825972564518452, 0.020381305366754532, -0.054167240858078, -0.01192502398043871, 0.021067215129733086, 0.008270107209682465, -0.012532543390989304, 0.09406756609678268, 0.0065308366902172565, 0.06373077630996704, 0.02157674729824066, -0.017167331650853157, 0.04409417137503624, 0.017186928540468216, 0.05275622755289078, -0.02637811377644539, 0.018803713843226433, -0.013835771009325981, 0.004808714147657156, 0.004345725756138563, -0.006574931088835001, -0.0002593594545032829, 0.0004262436705175787, -0.016755785793066025, -0.026319321244955063, 0.001854404923506081, -0.035216543823480606, -0.08881545811891556, 0.016873368993401527, 0.007711580488830805, -0.003917032387107611, 0.025986164808273315, 0.023301320150494576, 0.01473725214600563, -0.007128557655960321, -0.011758445762097836, 0.01785323955118656, -0.027828320860862732, -0.053383342921733856, 0.006378956604748964, -0.04856238141655922, -0.004135053604841232, 0.023654073476791382, 0.04260476678609848, 0.005688148085027933, -0.007985943928360939, -0.010749178938567638, -0.0376858189702034, 0.04856238141655922, 0.020969228819012642, -0.05655812472105026, -0.023654073476791382, -0.022419435903429985, 0.019195662811398506, 0.013737783767282963, -0.03441305086016655, 0.0030571958050131798, -0.03368794545531273, 0.04754331707954407, 0.027299191802740097, -0.00860816240310669, -0.03247290849685669, -0.03964556008577347, -0.029082555323839188, -0.05067890137434006, -0.0031355854589492083, -0.03892045468091965, 0.021086812019348145, -0.018215792253613472, -0.03797977790236473, 0.0034883387852460146, 0.04064502567052841, 0.025574618950486183, -0.04091938957571983, 0.0000983698118943721, -0.01584450528025627, -0.006187882274389267, 0.010386627167463303, -0.05530389025807381, -0.015697525814175606, 0.015354570001363754, -0.06094794347882271, 0.08027099072933197, 0.013620199635624886, 0.028964972123503685, 0.0233601126819849, -0.012757913209497929, -0.008725746534764767, 0.05887061730027199, 0.031336259096860886, -0.012277777306735516, 0.005722443573176861, -0.10182814300060272, -0.009029506705701351, -0.04052744433283806, -0.05005178228020668, -0.0178238432854414, -0.04138972982764244, 0.00982810091227293, 0.04421175643801689, -0.007304934319108725, 0.013894563540816307, 0.016138466075062752, 0.10480694472789764, -0.011386094614863396, -0.051031652837991714, -0.03721548244357109, 0.07411739975214005, -0.03292364627122879, 0.0236932672560215, -0.07678265124559402, -0.012542341835796833, -0.062162984162569046, 0.009240178391337395, -0.0038410923443734646, 0.012444354593753815, 0.005575463175773621, 0.017431896179914474, 0.04440772905945778, 0.035059764981269836, -0.005281501915305853, 0.035510506480932236, 0.014796043746173382, -0.013100868090987206, 0.0008916821097955108, -0.043702222406864166, -0.036137621849775314, -0.04511323571205139, 0.010112263262271881, -0.012953887693583965, -0.024810319766402245, 0.010259243659675121, 0.005501972511410713, -0.09540019184350967, -0.02545703575015068, 0.04538759961724281, 0.0012946538627147675, -0.03157142549753189, -0.004044415429234505, -0.020146137103438377, -0.018019817769527435, 0.01662840135395527, -0.04025308042764664, -0.04797445982694626, -0.023869644850492477, -0.07462693750858307, 0.02428119070827961, 0.04397658631205559, -0.09406756609678268, 0.0013803925830870867, 0.018646935001015663, 0.047308146953582764, 0.006369158159941435, -0.11625183373689651, 0.048797547817230225, -0.022458631545305252, 0.005379488691687584, 0.025731397792696953, 0.013091069646179676, -0.0021018220577389, 0.014825440011918545, 0.041036974638700485, 0.027162009850144386, -0.030454374849796295, -0.01595229096710682, 0.035059764981269836, -0.03560849279165268, 0.04111536592245102, 0.04166409373283386, -0.021811917424201965, -0.05216830223798752, -0.023595280945301056, -0.050561316311359406, 0.05052212253212929, 0.0026505496352910995, 0.0247123334556818, 0.01288529671728611, 0.007089362945407629, 0.05412804335355759, 0.030454374849796295, -0.01602088287472725, -0.013228251598775387, -0.03960636630654335, 0.020910436287522316, -0.011003945022821426, 0.02769113890826702, 0.024908307939767838, 0.04895433038473129, -0.046994589269161224, -0.033433180302381516, -0.06757187098264694, 0.03421707823872566, -0.0018286833073943853, -0.10182814300060272, 0.047896068543195724, -0.015491751953959465, 0.007157953921705484, 0.03421707823872566, 0.018333377316594124, 0.0013840669998899102, -0.017382903024554253, 0.05557825416326523, 0.02518267184495926, 0.024085216224193573, 0.042643964290618896, -0.036862727254629135, 0.004142402205616236, -0.10214170068502426, -0.024046020582318306, -0.09179426729679108, 0.00039501028368249536, 0.02694643847644329, -0.07160893082618713, 0.005693047307431698, 0.008960915729403496, 0.05404965579509735, 0.023575684055685997, -0.04003750905394554, -0.047268953174352646, 0.04393739253282547, -0.04405497759580612, -0.043584637343883514, -0.022419435903429985, 0.06706233322620392, -0.01012206170707941, 0.08795317262411118, -0.009377360343933105, 0.013189056888222694, -0.024241995066404343, 0.002240228932350874, -0.03676474094390869, 0.014551076106727123, -0.010817769914865494, 0.0369999073445797, -0.08144683390855789, 0.008284804411232471, -0.015374167822301388, 0.06157505884766579, -0.018852708861231804, -0.016050279140472412, 0.04554437845945358, -0.06788542866706848, 0.005301099270582199, 0.03051316738128662, -0.02518267184495926, 0.004399618599563837, 0.027083620429039, 0.032688479870557785, -0.008421986363828182, 0.006472044624388218, -0.040880195796489716, 0.03155183047056198, -0.037450648844242096, 0.028220269829034805, -0.033433180302381516, -0.040449053049087524, -0.0005346418474800885, -0.026711268350481987, 0.03153223171830177, -0.0035887756384909153, 0.03531453013420105, -0.05357931926846504, -0.0236932672560215, 0.049228694289922714, -0.01540356408804655, 0.012836303561925888, -0.010318036191165447, 0.02412441186606884, -0.02845543809235096, -0.031218674033880234, 0.039390794932842255, 0.01369858905673027, -0.01579551212489605, -0.07082504034042358, -0.024771125987172127, -0.005129621829837561, -0.014384498819708824, 0.00040297172381542623, 0.018137402832508087, 0.010249445214867592, 0.019558215513825417, -0.003035148838534951, 0.004730324726551771, -0.030062425881624222, -0.09720315039157867, 0.03935159742832184, 0.03770541772246361, -0.03333519399166107, -0.040449053049087524, 0.046406663954257965, 0.018656734377145767, 0.0015677927294746041, 0.12957806885242462, 0.016579408198595047, 0.007726278621703386, -0.02637811377644539, 0.02175312489271164, 0.006476943846791983, -0.04958144575357437, 0.044015780091285706, 0.03823454678058624, -0.02488870918750763, 0.09814382344484329, -0.0076184929348528385, 0.00028569347341544926, 0.025946971029043198, 0.025398243218660355, 0.03310002386569977, 0.01848035678267479, -0.02906295843422413, -0.009999577887356281, -0.03221813961863518, 0.03915562480688095, 0.02057727985084057, -0.029298126697540283, -0.027808723971247673, -0.06090874969959259, -0.023340513929724693, 0.002002610359340906, -0.0024631493724882603, 0.007481310982257128, 0.01785323955118656, 0.02308574877679348, 0.07043308764696121, -0.024947501718997955, 0.006501440424472094, -0.04123295098543167, -0.0003717383660841733, -0.019215259701013565, 0.007314733229577541, 0.027828320860862732, -0.0028244766872376204, 0.011797640472650528, 0.01710853911936283, 0.04958144575357437, 0.0036034737713634968, 0.0369999073445797, 0.030787529423832893, -0.034922584891319275, 0.0697275847196579, -0.005854726303368807, -0.018578344956040382, 0.0073588271625339985, 0.07196168601512909, -0.008020239882171154, -0.050286952406167984, -0.0178238432854414, 0.03421707823872566, -0.004754821304231882, -0.04166409373283386, 0.026613282039761543, -0.0033609557431191206, 0.006138888653367758, 0.002895517274737358, 0.031179478392004967, -0.005928216502070427, -0.013002880848944187, 0.028533827513456345, -0.03794058412313461, -0.019940363243222237, -0.03423667326569557, -0.03978274017572403, -0.010435620322823524, 0.0022916721645742655, -0.025261061266064644, 0.015354570001363754, 0.0017662164755165577, 0.0604776069521904, 0.005384388379752636, 0.016843972727656364, -0.045505184680223465, -0.03070914000272751, 0.05640134587883949, -0.010141659528017044, 0.049228694289922714, 0.055617447942495346, -0.035196948796510696, 0.007912454195320606, -0.03529493510723114, -0.00004558694126899354, 0.0500909797847271, -0.0006163997459225357, 0.0027485366445034742, 0.03282565996050835, -0.04413336515426636, -0.03525574132800102, 0.029004165902733803, 0.036235611885786057, -0.06392674893140793, 0.1006522923707962, 0.01460007019340992, 0.015138998627662659, -0.026574086397886276, -0.07392142713069916, -0.01006327010691166, 0.026574086397886276, -0.00517861545085907, -0.006937482859939337, 0.008034938015043736, 0.040449053049087524, 0.02931772544980049, -0.028083087876439095, -0.020204929634928703, -0.035980843007564545, -0.01304207555949688, -0.038489311933517456, 0.016648000106215477, 0.0008696350269019604, 0.03502057120203972, -0.04142892360687256, -0.03856770321726799, 0.07752735167741776, -0.019234856590628624, 0.053540121763944626, -0.007834064774215221, -0.0054970732890069485, 0.019754188135266304, 0.01595229096710682, 0.07635150849819183, 0.037901390343904495, 0.01849995367228985, 0.009597831405699253, 0.041036974638700485, 0.03472660854458809, 0.08842351287603378, -0.04542679339647293, -0.00812312588095665, 0.0007636865484528244, 0.01340462826192379, 0.04405497759580612, 0.013532010838389397, 0.030944310128688812, -0.05988968163728714, 0.0011874805204570293, 0.017363304272294044, 0.03788179159164429, 0.027926309034228325, -0.030277997255325317, -0.037489842623472214, -0.0137083875015378, 0.020067747682332993, 0.03145384043455124, 0.004811163991689682, 0.014168927446007729, -0.00900501012802124, -0.0327276736497879, 0.058321889489889145, -0.03139505162835121, 0.015854304656386375, 0.050443731248378754, -0.0060164048336446285, -0.031336259096860886, 0.0032017268240451813, 0.030924711376428604, -0.0010270267957821488, 0.016667596995830536, -0.027514763176441193, 0.008005541749298573, -0.02457515150308609, -0.04969903081655502, -0.04781768098473549, -0.0204205010086298, -0.03531453013420105, -0.022301852703094482, 0.003233572468161583, -0.01570732332766056, -0.010758977383375168, 0.031238270923495293, 0.04601471871137619, 0.02292896993458271, 0.029592087492346764, 0.04323188588023186, 0.006089895032346249, 0.014619667083024979, 0.02710321731865406, -0.02533945068717003, -0.023007359355688095, -0.025986164808273315, -0.012248381040990353, -0.03784259781241417, -0.013071471825242043, 0.007985943928360939, -0.07744896411895752, -0.10551245510578156, 0.05632295459508896, -0.010660991072654724, -0.01785323955118656, 0.027357984334230423, 0.0013509964337572455, 0.012346368283033371, 0.041036974638700485, 0.0816820040345192, -0.03682353347539902, -0.000371432164683938, 0.009436152875423431, 0.02001875452697277, 0.000760012015234679, 0.045505184680223465, 0.004546598996967077, -0.01155267283320427, -0.017706260085105896, 0.02326212450861931, -0.04479967802762985, 0.0084072882309556, 0.06717991828918457, -0.0014502082485705614, -0.010856964625418186, -0.0539320707321167, 0.05738121643662453, -0.002368836896494031, -0.03392311558127403, 0.015619135461747646, -0.005840028170496225, -0.0022635008208453655, -0.02024412341415882, 0.0009333266061730683, -0.02533945068717003, -0.007050168234854937, -0.06451467424631119, -0.015668129548430443, 0.011199919506907463, -0.004073811694979668, 0.006070297677069902, -0.03470701351761818, 0.060124851763248444, -0.009700717404484749, 0.0025109180714935064, -0.013287043198943138, -0.02994484081864357, 0.016461823135614395, -0.0577731616795063, 0.04546599090099335, 0.046994589269161224, 0.019852176308631897, 0.05691087618470192, 0.03129706159234047, 0.017676863819360733, 0.08426886051893234, 0.03584366291761398, 0.023595280945301056, -0.0753716379404068, 0.09728153795003891, 0.02383044920861721, 0.04777848348021507, -0.01631484366953373, 0.08270106464624405, 0.03025840036571026, -0.07168732583522797, 0.0011868680594488978, 0.025104282423853874, -0.04429014399647713, 0.037313468754291534, -0.022889774292707443, -0.043859001249074936, -0.023320917040109634, 0.0437806136906147, -0.01859794184565544, 0.018352974206209183, 0.0014257115544751287, 0.03217894583940506, 0.011484081856906414, -0.012561939656734467, -0.04871916025876999, 0.04915030300617218, -0.00968112051486969, 0.001676803338341415, -0.031649816781282425, -0.0652201771736145, -0.044917263090610504, -0.018509753048419952, 0.013306641019880772, -0.006119291298091412, -0.04131133854389191, 0.004553948063403368, -0.0408410020172596, 0.010621796362102032, -0.021400371566414833, -0.032374922186136246, 0.009788906201720238, -0.0074911098927259445, -0.023203331977128983, 0.047739289700984955, 0.031061893329024315, 0.03310002386569977, 0.020322512835264206, 0.02012654021382332, 0.05412804335355759, 0.013061673380434513, 0.0021422419231384993, 0.034040700644254684, -0.030748335644602776, 0.03456982970237732, -0.017206525430083275, -0.012140595354139805, -0.005967411212623119, 0.014129731804132462, -0.004620089195668697, 0.06369157880544662, -0.03602004051208496, -0.052325084805488586, 0.09438112378120422, 0.008020239882171154, -0.005403985735028982, 0.00484545947983861, -0.0509924590587616, -0.010455218143761158, 0.03602004051208496, -0.022909371182322502, -0.02667207457125187, -0.004480457864701748, -0.043427858501672745, 0.07364706695079803, -0.023712866008281708, 0.0005759801133535802, 0.03337438777089119, -0.00565875181928277, 0.026123346760869026, -0.0042844838462769985, -0.048052847385406494, 0.026397710666060448, -0.0052129109390079975, 0.03480499982833862, 0.048170432448387146, -0.015540746040642262, 0.045779548585414886, -0.045191626995801926, -0.006369158159941435, 0.012101400643587112, -0.014952823519706726, 0.04856238141655922, 0.06224137172102928, -0.052364278584718704, 0.02784791961312294, -0.010425821878015995, 0.01636383682489395, -0.00565875181928277, 0.03809736296534538, -0.032394517213106155, 0.0016363837057724595, -0.004188946448266506, 0.013326238840818405, -0.04225201532244682, -0.0834849625825882, -0.06549454480409622, 0.03190458193421364, -0.016216855496168137, -0.018989888951182365, 0.0014306108932942152, -0.04985580965876579, 0.04319269210100174, -0.008980512619018555 ]
718,580
hypothesis_graphql._strategies.strategy
mutations
A strategy for generating valid mutations for the given GraphQL schema. The output mutation will contain a subset of fields defined in the `Mutation` type. :param schema: GraphQL schema as a string or `graphql.GraphQLSchema`. :param fields: Restrict generated fields to ones in this list. :param custom_scalars: Strategies for generating custom scalars. :param print_ast: A function to convert the generated AST to a string. :param allow_x00: Determines whether to allow the generation of `\x00` bytes within strings. :param codec: Specifies the codec used for generating strings.
@cacheable # type: ignore def mutations( schema: Union[str, graphql.GraphQLSchema], *, fields: Optional[Iterable[str]] = None, custom_scalars: Optional[CustomScalarStrategies] = None, print_ast: AstPrinter = graphql.print_ast, allow_x00: bool = True, codec: Optional[str] = "utf-8", ) -> st.SearchStrategy[str]: r"""A strategy for generating valid mutations for the given GraphQL schema. The output mutation will contain a subset of fields defined in the `Mutation` type. :param schema: GraphQL schema as a string or `graphql.GraphQLSchema`. :param fields: Restrict generated fields to ones in this list. :param custom_scalars: Strategies for generating custom scalars. :param print_ast: A function to convert the generated AST to a string. :param allow_x00: Determines whether to allow the generation of `\x00` bytes within strings. :param codec: Specifies the codec used for generating strings. """ parsed_schema = validation.maybe_parse_schema(schema) if parsed_schema.mutation_type is None: raise InvalidArgument("Mutation type is not defined in the schema") alphabet = _build_alphabet(allow_x00=allow_x00, codec=codec) return ( _make_strategy( parsed_schema, type_=parsed_schema.mutation_type, fields=fields, custom_scalars=custom_scalars, alphabet=alphabet, ) .map(make_mutation) .map(print_ast) )
(schema: Union[str, graphql.type.schema.GraphQLSchema], *, fields: Optional[Iterable[str]] = None, custom_scalars: Optional[Dict[str, hypothesis.strategies.SearchStrategy[graphql.language.ast.ValueNode]]] = None, print_ast: Callable[[graphql.language.ast.Node], str] = <function print_ast at 0x7fb911e60820>, allow_x00: bool = True, codec: Optional[str] = 'utf-8') -> hypothesis.strategies.SearchStrategy[str]
[ 0.022825492545962334, -0.06802374124526978, -0.03220092132687569, -0.031031349673867226, -0.00909246876835823, 0.045349158346652985, -0.021844562143087387, -0.05078200250864029, -0.030163604766130447, 0.02354232594370842, 0.021787969395518303, 0.05961037427186966, 0.009573501534759998, 0.0015232714358717203, -0.015308170579373837, -0.015176122076809406, -0.021580465137958527, -0.010318631306290627, 0.02393846958875656, 0.02788105420768261, 0.021844562143087387, 0.0437268503010273, -0.011214673519134521, 0.044330500066280365, 0.007399420719593763, 0.02354232594370842, 0.019373372197151184, -0.033068668097257614, -0.03233296796679497, 0.02407051809132099, 0.029880642890930176, 0.004732516594231129, 0.049838799983263016, -0.01195980329066515, -0.02367437444627285, -0.055196188390254974, 0.03171045705676079, 0.08292633295059204, -0.03437028452754021, -0.014619633555412292, 0.033313900232315063, 0.019901564344763756, -0.0039048567414283752, -0.08851008862257004, 0.008092674426734447, 0.006725031416863203, 0.0054894364438951015, 0.0310690775513649, -0.042783647775650024, -0.03852037340402603, 0.05730896070599556, -0.00480089895427227, -0.018845178186893463, 0.03387982025742531, 0.0946974977850914, 0.009384861215949059, 0.02471189573407173, 0.06738235801458359, 0.058818086981773376, 0.02224070578813553, -0.0006820530397817492, 0.05202702805399895, -0.022976404055953026, 0.020957952365279198, 0.016147620975971222, -0.03889765590429306, 0.04217999801039696, -0.0757957249879837, -0.03842605650424957, 0.007347544655203819, -0.04474550858139992, 0.002919210586696863, 0.028956305235624313, 0.0007580987294204533, 0.03736966848373413, -0.019109275192022324, 0.011044897139072418, -0.04414185881614685, -0.00630530621856451, -0.021542737260460854, 0.013959391973912716, -0.07436205446720123, -0.04565098509192467, -0.03510598465800285, -0.0020915507338941097, -0.008587855845689774, 0.000667905027512461, -0.03489847853779793, 0.014902593567967415, -0.060855403542518616, -0.0018404232105240226, -0.06719371676445007, 0.009960214607417583, 0.03203114494681358, -0.03968994691967964, 0.009483897127211094, -0.036143504083156586, -0.033728908747434616, 0.009417872875928879, 0.06489230692386627, -0.004284495487809181, 0.06798601150512695, -0.050744276493787766, 0.04172726348042488, 0.016722973436117172, 0.0022035560104995966, -0.01145990565419197, -0.035992592573165894, 0.007257940247654915, -0.05229112505912781, -0.0006596519961021841, 0.04376458004117012, 0.06647688895463943, 0.007314532529562712, 0.0014678583247587085, 0.03133317455649376, -0.014308376237750053, 0.007861590012907982, 0.0015209134435281157, -0.05757305771112442, -0.0040369052439928055, -0.0023591844365000725, 0.03161613643169403, -0.02584373764693737, 0.08247359842061996, 0.014770545065402985, 0.08036082237958908, 0.03540780767798424, -0.05810125172138214, 0.06730690598487854, -0.01067704800516367, 0.0391240231692791, 0.005970469675958157, 0.05489436537027359, 0.00278480420820415, 0.018948931246995926, 0.037577174603939056, -0.012082419358193874, 0.014280080795288086, -0.026918988674879074, -0.02188229002058506, -0.02482507936656475, 0.004133583512157202, -0.0030583329498767853, -0.07590890675783157, 0.01693047769367695, -0.014185760170221329, 0.016034435480833054, 0.006126097869127989, -0.021769104525446892, 0.01880745030939579, 0.011940939351916313, -0.02291981130838394, 0.002525423653423786, -0.03220092132687569, -0.018354713916778564, 0.004301001783460379, -0.009620661847293377, -0.030767254531383514, 0.024240294471383095, 0.0300881490111351, 0.004631122574210167, -0.002671620110049844, 0.03719989210367203, -0.005767681170254946, 0.043802306056022644, 0.037048980593681335, -0.017864247784018517, -0.05945946276187897, -0.010856256820261478, 0.04451914131641388, 0.025617370381951332, 0.0035511560272425413, 0.015874091535806656, 0.010412951931357384, 0.051498837769031525, 0.0148365693166852, -0.030408836901187897, -0.0365019217133522, -0.055837567895650864, -0.06847647577524185, -0.055460285395383835, 0.004265631549060345, -0.05221566930413246, 0.02278776280581951, -0.013412334024906158, -0.0071589043363928795, 0.005211191717535257, 0.03799218311905861, 0.0016859738389030099, -0.05089518800377846, -0.013657567091286182, -0.0216181930154562, -0.010290334932506084, 0.029880642890930176, -0.04040677845478058, -0.02507031336426735, 0.0024358194787055254, -0.04180271923542023, 0.04282137751579285, 0.020957952365279198, 0.0011000095400959253, 0.0483296774327755, -0.018515057861804962, -0.003666698234155774, 0.07406023144721985, 0.048669230192899704, -0.004138299264013767, 0.0032917754724621773, -0.09673481434583664, 0.014421560801565647, -0.009399008937180042, -0.009950782172381878, -0.010384655557572842, -0.03593600168824196, 0.022542530670762062, 0.05180066078901291, -0.02084476687014103, 0.002841396490111947, 0.02854129672050476, 0.12450268119573593, -0.014015983790159225, -0.07330566644668579, -0.01606273278594017, 0.08036082237958908, -0.021467281505465508, 0.01630796492099762, -0.05489436537027359, -0.013148237951099873, -0.06964604556560516, -0.0008199963485822082, 0.006418490316718817, 0.013185965828597546, 0.016147620975971222, -0.003654908388853073, 0.048178765922784805, 0.02774900756776333, -0.02237275429069996, 0.05093291401863098, 0.03476643189787865, -0.043575938791036606, 0.006710883229970932, 0.0005992280784994364, 0.007121175993233919, -0.011733434163033962, 0.009483897127211094, 0.0047065787948668, -0.013450062833726406, 0.04648100212216377, 0.027824463322758675, -0.0675709992647171, -0.019014954566955566, -0.009295256808400154, 0.00254192971624434, -0.01376131922006607, 0.025277817621827126, -0.011752299033105373, 0.015892956405878067, 0.01472338568419218, -0.03593600168824196, -0.016355125233530998, -0.042029086500406265, -0.04942379146814346, 0.012195603922009468, 0.03533235192298889, -0.0739847719669342, 0.017383215948939323, 0.011110921390354633, 0.001937101362273097, 0.019788380712270737, -0.09952668845653534, 0.029748596251010895, -0.02854129672050476, 0.007069299928843975, 0.017270030453801155, 0.014855433255434036, 0.012893573381006718, 0.01942996308207512, 0.030484292656183243, 0.01105432864278555, -0.029465634375810623, -0.03406846150755882, 0.07394704967737198, -0.04874468594789505, 0.027333997189998627, 0.040746331214904785, -0.002468831604346633, -0.027918783947825432, -0.014242351986467838, -0.03953903168439865, 0.03495506942272186, -0.0009850567439571023, -0.00830961111932993, 0.00042385145206935704, 0.039463575929403305, 0.04666964337229729, 0.004475493915379047, 0.028371520340442657, -0.023881878703832626, -0.018798017874360085, -0.017996296286582947, -0.007498457096517086, -0.0011689811944961548, 0.01432724017649889, 0.06342091411352158, -0.04772602766752243, 0.008455807343125343, -0.08624640107154846, 0.02354232594370842, -0.009446169249713421, -0.058931268751621246, 0.033068668097257614, -0.012459699995815754, 0.022617986425757408, 0.04410413280129433, 0.008559559471905231, 0.016590924933552742, -0.01706252619624138, 0.04776375740766525, 0.013902799226343632, 0.0211277287453413, 0.029371313750743866, -0.04051996394991875, 0.02084476687014103, -0.11069419980049133, -0.01747753471136093, -0.08496364951133728, -0.007951194420456886, 0.013874503783881664, -0.08111538738012314, -0.03901084139943123, -0.010177151300013065, 0.05259295180439949, -0.003827042644843459, -0.041010428220033646, -0.05217794328927994, 0.010988305322825909, -0.036539651453495026, -0.02431575022637844, -0.020259981974959373, 0.049838799983263016, 0.00913962908089161, 0.09250926226377487, 0.025881467387080193, 0.007937045767903328, 0.007224928587675095, 0.010478976182639599, -0.000505792151670903, 0.012450268492102623, 0.008333191275596619, 0.04998971149325371, -0.02993723563849926, -0.004633480682969093, -0.013959391973912716, 0.0652695894241333, -0.016496606171131134, -0.0008883785340003669, 0.032691385596990585, -0.09582933783531189, 0.00004981286110705696, 0.009799869731068611, -0.041010428220033646, 0.043802306056022644, 0.028371520340442657, 0.06142132356762886, -0.040897246450185776, -0.003989744931459427, -0.04474550858139992, 0.012704933062195778, -0.05131019651889801, 0.029409043490886688, -0.006956115830689669, -0.06055357679724693, 0.011120352894067764, -0.030012691393494606, 0.0468582808971405, 0.004744306672364473, 0.04682055488228798, -0.07662574201822281, -0.03867128863930702, 0.04757511615753174, -0.030371109023690224, 0.0059563214890658855, -0.012582316063344479, 0.031521815806627274, 0.004885787144303322, 0.007088163867592812, 0.026711484417319298, -0.013978255912661552, 0.017930272966623306, -0.07164563238620758, -0.028616752475500107, -0.05757305771112442, -0.015902388840913773, -0.023957334458827972, 0.0065552550368011, -0.010186582803726196, 0.007088163867592812, -0.041651807725429535, -0.003329503582790494, -0.0014383832458406687, -0.0547434501349926, 0.01642114855349064, 0.02327822893857956, -0.03582281619310379, -0.031653862446546555, 0.012054122984409332, 0.012355947867035866, 0.012365380302071571, 0.11461792141199112, 0.002309666248038411, 0.018081184476614, 0.009087752550840378, 0.008965136483311653, 0.014346104115247726, -0.05198930203914642, 0.006418490316718817, 0.01182775478810072, -0.013082213699817657, 0.09296200424432755, -0.016213644295930862, -0.006390194408595562, 0.030540885403752327, 0.01783595234155655, 0.025032585486769676, -0.005413980223238468, -0.014421560801565647, -0.024221431463956833, -0.04184044525027275, 0.033181849867105484, 0.025919195264577866, -0.004400038160383701, -0.04338729754090309, -0.021580465137958527, 0.013280286453664303, -0.026918988674879074, 0.0017189858481287956, 0.007295668590813875, 0.005244203843176365, 0.08217176795005798, 0.03440801426768303, -0.018637673929333687, -0.014355536550283432, -0.06926876306533813, 0.010893984697759151, -0.006220418028533459, -0.009611229412257671, -0.01011112704873085, 0.009931918233633041, 0.0422554574906826, 0.041387710720300674, 0.09416930377483368, 0.0009037055424414575, 0.01606273278594017, 0.05987447127699852, -0.032691385596990585, 0.04874468594789505, -0.007715393323451281, -0.03442687913775444, -0.0606667622923851, 0.07598436623811722, -0.018043456599116325, -0.032823435962200165, -0.0041972496546804905, 0.03927493840456009, -0.022165250033140182, -0.05685622617602348, 0.014959186315536499, 0.013223693706095219, 0.0059185936115682125, 0.02061839960515499, 0.007715393323451281, -0.010507271625101566, -0.006659007165580988, -0.01112978532910347, -0.04134998098015785, -0.05976128578186035, -0.042670466005802155, -0.05779942870140076, -0.028843121603131294, -0.014393264427781105, -0.015289306640625, 0.035256896167993546, 0.013233126141130924, 0.03648305684328079, -0.005762964952737093, 0.03580395132303238, -0.06568459421396255, -0.0032045291736721992, 0.03957676142454147, -0.021542737260460854, -0.007979489862918854, 0.0483296774327755, -0.04319865629076958, -0.016666382551193237, -0.04565098509192467, 0.00531022809445858, 0.04059541970491409, -0.02854129672050476, 0.004838626831769943, 0.04029359668493271, -0.01311994157731533, 0.00415952131152153, 0.02186342515051365, 0.03610577806830406, -0.0836808905005455, 0.13468927145004272, -0.01368586253374815, -0.021561600267887115, -0.034087326377630234, -0.06696735322475433, -0.024655302986502647, 0.02842811308801174, -0.018222665414214134, 0.0023450362496078014, 0.01112978532910347, 0.021316368132829666, 0.027598094195127487, -0.011158081702888012, -0.02048635110259056, -0.03719989210367203, -0.05281931906938553, -0.02250480279326439, 0.02842811308801174, 0.0239196065813303, 0.003386095631867647, -0.04527370259165764, -0.04682055488228798, 0.059044454246759415, -0.03378549963235855, 0.019156435504555702, -0.013346309773623943, -0.03761490061879158, -0.024466663599014282, 0.006965547800064087, 0.07145699113607407, 0.05180066078901291, 0.0012898289132863283, 0.004051052965223789, 0.04976334422826767, 0.01534589845687151, 0.06553368270397186, -0.03733193874359131, -0.02135409601032734, -0.045085061341524124, 0.0011454010382294655, 0.03787899762392044, -0.02546645700931549, 0.07647483050823212, -0.032408423721790314, -0.00502726761624217, -0.005098007619380951, -0.036539651453495026, 0.032446153461933136, -0.02009020559489727, -0.04157635197043419, 0.010554431937634945, 0.03310639411211014, 0.028843121603131294, 0.037539444863796234, 0.02137296088039875, -0.0051687476225197315, -0.004095855168998241, 0.027730142697691917, -0.004829194862395525, 0.06549595296382904, 0.038822200149297714, -0.011280697770416737, -0.013393470086157322, -0.008884964510798454, 0.04719783365726471, 0.021542737260460854, 0.041274525225162506, -0.030427701771259308, -0.0030937029514461756, -0.045349158346652985, -0.01942996308207512, -0.035124845802783966, -0.006201554089784622, -0.05436617136001587, -0.0351814404129982, 0.020769311115145683, 0.0015598204918205738, -0.007173052057623863, 0.04565098509192467, 0.06874056905508041, 0.021920017898082733, 0.02058066986501217, 0.08624640107154846, 0.04301001876592636, 0.0015327035216614604, 0.020882494747638702, -0.03006928414106369, -0.035879410803318024, -0.011167513206601143, -0.0035983161069452763, -0.057120323181152344, 0.005064995493739843, -0.01703423075377941, -0.045085061341524124, -0.06881602853536606, 0.04108588397502899, 0.020674990490078926, -0.04168953374028206, -0.00350163783878088, -0.012365380302071571, 0.01716627925634384, 0.04270819202065468, 0.08254905045032501, -0.008267167024314404, -0.004624048247933388, -0.0022235990036278963, 0.040104955434799194, -0.02086363174021244, 0.04059541970491409, 0.009828166104853153, -0.013836774975061417, -0.002822532318532467, 0.025126904249191284, -0.049461521208286285, -0.01770390383899212, 0.0356719046831131, -0.04806558042764664, -0.030654069036245346, -0.05206475779414177, 0.04391549155116081, -0.042670466005802155, -0.02595692314207554, -0.009465033188462257, 0.0024334616027772427, -0.03465324640274048, -0.027051037177443504, 0.014242351986467838, -0.02150500938296318, -0.0014301302144303918, -0.06979695707559586, -0.05259295180439949, -0.016213644295930862, -0.015581699088215828, -0.016034435480833054, -0.008710471913218498, 0.0726642906665802, 0.023466868326067924, -0.005513016600161791, -0.044707782566547394, -0.020241117104887962, -0.008729335851967335, -0.03491734340786934, 0.031276583671569824, 0.024749623611569405, 0.03506825491786003, 0.06677871197462082, 0.02163705788552761, 0.012959597632288933, 0.07032515108585358, 0.029409043490886688, -0.006913671735674143, -0.06387364864349365, 0.10231857001781464, 0.018354713916778564, 0.03504939004778862, -0.033728908747434616, 0.08383180946111679, 0.036766018718481064, -0.03878447040915489, 0.011158081702888012, 0.010837392881512642, -0.04531143233180046, 0.035898271948099136, -0.04451914131641388, -0.01427064836025238, -0.009450885467231274, 0.032710250467061996, 0.006031777709722519, 0.024240294471383095, 0.0078097134828567505, 0.047160107642412186, 0.03214433044195175, -0.04282137751579285, -0.031521815806627274, 0.02829606458544731, -0.007007991895079613, 0.016166483983397484, -0.021071135997772217, -0.04168953374028206, -0.013393470086157322, -0.02957881987094879, 0.020674990490078926, -0.007696529384702444, -0.026051243767142296, 0.03150295093655586, -0.045613255351781845, -0.0052772159688174725, -0.010648752562701702, -0.01568545214831829, 0.08315270394086838, 0.004932946991175413, -0.04444368556141853, 0.054932091385126114, 0.022825492545962334, 0.0037327224854379892, 0.019920429214835167, 0.02954109013080597, 0.05108382925391197, 0.026051243767142296, -0.008790643885731697, 0.036275554448366165, -0.027466045692563057, 0.027994239702820778, -0.019882701337337494, 0.006277010310441256, 0.006498662754893303, -0.0012084777699783444, 0.00630530621856451, 0.04942379146814346, -0.04991425573825836, -0.051762934774160385, 0.08345452696084976, 0.04799012467265129, -0.01874142698943615, -0.03235183283686638, -0.05066881701350212, -0.030540885403752327, 0.02929585799574852, -0.027598094195127487, -0.046518728137016296, 0.037030115723609924, -0.01810004934668541, 0.07138153910636902, -0.01747753471136093, 0.0034167496487498283, 0.04376458004117012, 0.0025655098725110292, 0.007705961354076862, -0.001011584303341806, -0.050216082483530045, -0.013157669454813004, -0.0030371109023690224, 0.0026315338909626007, 0.060591306537389755, 0.010045102797448635, 0.030993621796369553, -0.013129374012351036, -0.017137981951236725, -0.006791055202484131, -0.02595692314207554, 0.01721343956887722, 0.0672314465045929, -0.03069179691374302, -0.006559970788657665, 0.0009361281408928335, 0.019618604332208633, -0.03801104426383972, 0.027051037177443504, -0.006951399613171816, 0.017015365883708, 0.0059185936115682125, -0.007606925442814827, -0.06417547166347504, -0.08300178498029709, -0.06979695707559586, 0.024278022348880768, -0.0028649764135479927, -0.025749418884515762, -0.024919399991631508, -0.016204211860895157, 0.04391549155116081, 0.0012921869056299329 ]
718,582
hypothesis_graphql._strategies.strategy
queries
A strategy for generating valid queries for the given GraphQL schema. The output query will contain a subset of fields defined in the `Query` type. :param schema: GraphQL schema as a string or `graphql.GraphQLSchema`. :param fields: Restrict generated fields to ones in this list. :param custom_scalars: Strategies for generating custom scalars. :param print_ast: A function to convert the generated AST to a string. :param allow_x00: Determines whether to allow the generation of `\x00` bytes within strings. :param codec: Specifies the codec used for generating strings.
@cacheable # type: ignore def queries( schema: Union[str, graphql.GraphQLSchema], *, fields: Optional[Iterable[str]] = None, custom_scalars: Optional[CustomScalarStrategies] = None, print_ast: AstPrinter = graphql.print_ast, allow_x00: bool = True, codec: Optional[str] = "utf-8", ) -> st.SearchStrategy[str]: r"""A strategy for generating valid queries for the given GraphQL schema. The output query will contain a subset of fields defined in the `Query` type. :param schema: GraphQL schema as a string or `graphql.GraphQLSchema`. :param fields: Restrict generated fields to ones in this list. :param custom_scalars: Strategies for generating custom scalars. :param print_ast: A function to convert the generated AST to a string. :param allow_x00: Determines whether to allow the generation of `\x00` bytes within strings. :param codec: Specifies the codec used for generating strings. """ parsed_schema = validation.maybe_parse_schema(schema) if parsed_schema.query_type is None: raise InvalidArgument("Query type is not defined in the schema") alphabet = _build_alphabet(allow_x00=allow_x00, codec=codec) return ( _make_strategy( parsed_schema, type_=parsed_schema.query_type, fields=fields, custom_scalars=custom_scalars, alphabet=alphabet, ) .map(make_query) .map(print_ast) )
(schema: Union[str, graphql.type.schema.GraphQLSchema], *, fields: Optional[Iterable[str]] = None, custom_scalars: Optional[Dict[str, hypothesis.strategies.SearchStrategy[graphql.language.ast.ValueNode]]] = None, print_ast: Callable[[graphql.language.ast.Node], str] = <function print_ast at 0x7fb911e60820>, allow_x00: bool = True, codec: Optional[str] = 'utf-8') -> hypothesis.strategies.SearchStrategy[str]
[ 0.012818439863622189, -0.05926206335425377, -0.0271788090467453, -0.012381870299577713, 0.0028725380543619394, 0.08166646957397461, -0.004133482463657856, -0.0808490589261055, -0.0008539821137674153, 0.0034832716919481754, 0.019246237352490425, 0.06126842647790909, 0.004579341039061546, -0.014704051427543163, 0.011508730240166187, -0.012121785432100296, -0.01541928295046091, -0.002749462379142642, 0.03282635286450386, 0.009901780635118484, 0.035055648535490036, 0.03457263484597206, -0.014769071713089943, 0.06821639090776443, 0.03979289531707764, 0.030559904873371124, 0.0064742411486804485, -0.051050830632448196, -0.038901180028915405, 0.015289240516722202, 0.0034554055891931057, 0.03111722692847252, 0.04235658422112465, -0.015800120308995247, -0.05736716464161873, -0.023964909836649895, 0.03741498291492462, 0.04220796376466751, -0.003499526996165514, -0.0024034574162214994, 0.028739314526319504, 0.015279952436685562, -0.008596714586019516, -0.08486178517341614, -0.019413433969020844, -0.020212264731526375, 0.02171703800559044, -0.02535821869969368, -0.05439477041363716, -0.013858777470886707, 0.04963894560933113, -0.004388922359794378, -0.027048766613006592, 0.03080141171813011, 0.06524400413036346, -0.03280777484178543, -0.022125741466879845, 0.03412677347660065, 0.027531780302524567, -0.010914251208305359, -0.030392706394195557, 0.03390384465456009, -0.03098718449473381, 0.06007947027683258, -0.016078783199191093, -0.03009546734392643, 0.031303003430366516, -0.058667585253715515, -0.026993034407496452, -0.026584329083561897, -0.03009546734392643, 0.03089429810643196, 0.01033835019916296, -0.012790573760867119, 0.01681259088218212, -0.025896964594721794, -0.012316849082708359, -0.042765289545059204, -0.007115162909030914, -0.03743356093764305, 0.037154898047447205, -0.043731316924095154, -0.09585963934659958, -0.040870387107133865, 0.0008661735919304192, -0.021382644772529602, -0.0018890943611040711, 0.0024243572261184454, 0.0435083843767643, -0.037173476070165634, 0.010236174799501896, -0.05721854418516159, -0.003615636145696044, 0.05989369750022888, -0.02621278166770935, 0.0197292510420084, -0.021345488727092743, -0.03213898837566376, 0.016060205176472664, 0.059670768678188324, -0.0012667498085647821, 0.011155758053064346, -0.041687797755002975, 0.023128924891352654, -0.011815257370471954, -0.030299820005893707, -0.01592087373137474, -0.05747862905263901, 0.036003097891807556, -0.012530489824712276, -0.02264591120183468, 0.05179392918944359, 0.0645752102136612, 0.002689085667952895, -0.014128150418400764, 0.020881053060293198, 0.011425131000578403, 0.02260875515639782, 0.026101315394043922, -0.05892767012119293, -0.03317932412028313, 0.02912943996489048, 0.03882686793804169, -0.038901180028915405, 0.09140104800462723, 0.026751527562737465, 0.04440010339021683, 0.020936785265803337, -0.03561297059059143, 0.055026404559612274, 0.044548723846673965, 0.05744147300720215, -0.01834523119032383, 0.030782833695411682, 0.00017706630751490593, 0.04844998940825462, 0.043582696467638016, -0.015252085402607918, 0.0018647115211933851, 0.0029631031211465597, -0.027791863307356834, -0.056958459317684174, -0.014676185324788094, 0.00836914125829935, -0.06985121220350266, 0.03355087339878082, 0.01688690111041069, -0.0038919756188988686, 0.018540294840931892, 0.02344474010169506, 0.047446805983781815, 0.006692525930702686, -0.01794581674039364, 0.011750237084925175, -0.031395889818668365, -0.037247784435749054, 0.03011404536664486, -0.04785550758242607, 0.0025334996171295643, 0.02626851387321949, 0.018484562635421753, 0.015326395630836487, -0.005735787563025951, 0.004347123205661774, -0.0338481143116951, 0.030708523467183113, -0.036188870668411255, -0.03466552123427391, -0.0170169435441494, -0.01658037304878235, 0.044548723846673965, -0.0041892146691679955, -0.012818439863622189, -0.016311001032590866, -0.0019274103688076138, 0.021977122873067856, 0.01743493601679802, -0.010068977251648903, -0.05004764720797539, -0.04038737341761589, -0.028869356960058212, -0.06301470845937729, -0.011963876895606518, -0.042839597910642624, 0.03459120914340019, -0.014462544582784176, -0.029835384339094162, -0.00939090084284544, 0.015159199014306068, 0.025952696800231934, -0.0897662341594696, 0.020137954503297806, -0.02073243260383606, 0.0017578911501914263, 0.007746796123683453, -0.06022809073328972, -0.006242022849619389, 0.012929904274642467, -0.04908161982893944, 0.0634605661034584, 0.007338092662394047, 0.04217081144452095, 0.031433045864105225, -0.060636796057224274, -0.013171411119401455, 0.03132157772779465, -0.004909091163426638, -0.018038703128695488, -0.0060980478301644325, -0.09883203357458115, -0.017639288678765297, -0.037080589681863785, -0.030764255672693253, -0.04257951304316521, -0.032324761152267456, 0.07527582347393036, 0.043694160878658295, 0.004005762282758951, 0.02158699557185173, -0.0019401824101805687, 0.09311017394065857, -0.02634282223880291, -0.055992431938648224, -0.03949565812945366, 0.06219730153679848, -0.02914801798760891, 0.052165478467941284, -0.035241421312093735, -0.0039384192787110806, -0.08775986731052399, -0.015363550744950771, -0.0005314892041496933, 0.0112207792699337, 0.007607465609908104, 0.03007689118385315, 0.05082790181040764, 0.051125138998031616, 0.005396748892962933, 0.06847647577524185, 0.008410939946770668, -0.009873914532363415, -0.0042890687473118305, -0.027606088668107986, -0.04105616360902786, -0.036207448691129684, -0.0013515094760805368, -0.027698976919054985, -0.017081964761018753, 0.026900146156549454, 0.008573492988944054, -0.08790849149227142, -0.04882153496146202, 0.04989903047680855, -0.027921905741095543, -0.014397523365914822, 0.01783435046672821, -0.023221811279654503, -0.010951406322419643, 0.019952179864048958, -0.02351905032992363, -0.05342874303460121, 0.006488174200057983, -0.08107198774814606, 0.014072418212890625, 0.041873570531606674, -0.0470009483397007, -0.00425423588603735, -0.005215618759393692, 0.008889309130609035, -0.003678334876894951, -0.071188785135746, 0.05350305512547493, -0.021995699033141136, 0.007946504279971123, 0.015484304167330265, 0.04592345282435417, -0.028386343270540237, 0.00897290837019682, 0.0035645479802042246, 0.01868891343474388, -0.021809926256537437, -0.036077406257390976, 0.04900731146335602, -0.08174077421426773, 0.05751578137278557, 0.02338900789618492, -0.016951922327280045, -0.011062870733439922, -0.027606088668107986, -0.04785550758242607, 0.05275995656847954, -0.008457384072244167, 0.0167382825165987, -0.009706716984510422, 0.01505702268332243, 0.042839597910642624, 0.024930937215685844, -0.02444792352616787, -0.023723402991890907, -0.01965494081377983, 0.0345354788005352, -0.014471832662820816, 0.040721770375967026, 0.029909692704677582, 0.04785550758242607, -0.031507354229688644, -0.011035004630684853, -0.03451690077781677, 0.02825630083680153, -0.031228691339492798, -0.0959339514374733, 0.04064745828509331, 0.028925089165568352, 0.004296035040169954, -0.003631891217082739, -0.01747209019958973, 0.004409822169691324, -0.012576933018863201, 0.023686246946454048, 0.0010426593944430351, 0.02171703800559044, 0.06959112733602524, -0.02814483642578125, 0.0019111550645902753, -0.08909744769334793, -0.004739571828395128, -0.08515902608633041, 0.0048951576463878155, 0.027791863307356834, -0.061528511345386505, 0.029408102855086327, 0.020267996937036514, 0.02914801798760891, -0.0033369744196534157, -0.01646890863776207, -0.052202630788087845, 0.047409649938344955, -0.024633698165416718, -0.03204609826207161, -0.01705409772694111, 0.05079074576497078, -0.0039384192787110806, 0.09140104800462723, -0.0011715403525158763, 0.002665864070877433, -0.015196353197097778, 0.009558097459375858, -0.01845669560134411, 0.010709899477660656, -0.012335426174104214, 0.04919308423995972, -0.079288549721241, 0.012121785432100296, -0.013552249409258366, 0.06780768930912018, 0.0020725466310977936, -0.02158699557185173, 0.048264212906360626, -0.06505822390317917, 0.014908403158187866, 0.058556120842695236, -0.018540294840931892, 0.007630687206983566, 0.044660188257694244, 0.02260875515639782, -0.025098133832216263, 0.029872538521885872, -0.04495742544531822, 0.028887933120131493, -0.026008429005742073, 0.01033835019916296, -0.024002064019441605, -0.04317399114370346, 0.009158682078123093, -0.0233146995306015, 0.04153917729854584, 0.003678334876894951, 0.028757890686392784, -0.039049796760082245, -0.007900060154497623, 0.017351336777210236, -0.03195321187376976, 0.019227659329771996, -0.028665004298090935, 0.02716023102402687, -0.016989076510071754, -0.022943150252103806, 0.05101367458701134, 0.005837963428348303, -0.006497462745755911, -0.051942549645900726, -0.03741498291492462, -0.03265915438532829, -0.010087555274367332, -0.014323213137686253, 0.011555173434317112, 0.032529111951589584, 0.0334765650331974, -0.04778119921684265, 0.005712565500289202, -0.03728494048118591, -0.08404438197612762, 0.048375677317380905, 0.029408102855086327, -0.010979272425174713, -0.03953281044960022, 0.025989850983023643, -0.021122559905052185, 0.002089963061735034, 0.11986169964075089, 0.011425131000578403, -0.02541395090520382, -0.02725311741232872, 0.040833234786987305, -0.0009428055491298437, -0.041762106120586395, 0.011471575126051903, 0.06342341005802155, 0.004760471172630787, 0.11688931286334991, -0.007588888052850962, -0.01792723871767521, 0.023091768845915794, 0.05506356060504913, 0.04257951304316521, 0.017184140160679817, -0.009539520367980003, -0.024930937215685844, -0.023797713220119476, 0.027661822736263275, 0.0079325707629323, -0.008749978616833687, -0.059633612632751465, -0.033513717353343964, -0.012837017886340618, -0.00206790235824883, 0.00017837254563346505, 0.01690547913312912, 0.005327083636075258, 0.011062870733439922, 0.07616753876209259, -0.02543252892792225, 0.0034832716919481754, -0.05235125124454498, 0.03592878580093384, -0.015753677114844322, 0.025636879727244377, 0.018540294840931892, 0.0112207792699337, 0.0043146125972270966, 0.0002714049187488854, 0.044585879892110825, -0.0047836932353675365, 0.03483271598815918, 0.07215481251478195, -0.029612453654408455, 0.050159111618995667, 0.010087555274367332, -0.04068461433053017, -0.012827728874981403, 0.07913993299007416, -0.0002480379771441221, -0.05733000859618187, -0.02723454125225544, 0.04607207328081131, 0.0011407715501263738, -0.06847647577524185, 0.051125138998031616, -0.004992689471691847, -0.024206416681408882, -0.023147501051425934, 0.040870387107133865, -0.044697344303131104, -0.004992689471691847, 0.03561297059059143, -0.036188870668411255, -0.02251586876809597, -0.01318070013076067, -0.01552145928144455, -0.0037990882992744446, 0.010078266263008118, -0.021865658462047577, 0.021419798955321312, 0.006390642374753952, 0.039830051362514496, -0.012902038171887398, 0.05168246477842331, -0.02996542491018772, -0.0224415585398674, 0.0429510623216629, 0.03018835559487343, 0.03979289531707764, 0.053020041435956955, -0.043731316924095154, 0.0040963273495435715, -0.034461166709661484, -0.0020052033942192793, 0.03134015575051308, -0.011165047064423561, 0.01555861346423626, 0.016199536621570587, -0.030225509777665138, -0.015140620991587639, 0.03390384465456009, 0.030448438599705696, -0.0470009483397007, 0.12944766879081726, 0.0035506149288266897, 0.01461116410791874, -0.025599725544452667, -0.08330128341913223, 0.0022629655431956053, 0.018958287313580513, -0.01959920860826969, 0.00009774931095307693, -0.014109572395682335, 0.03290066123008728, -0.016134515404701233, -0.012985637411475182, 0.004955534357577562, -0.024856626987457275, 0.019877871498465538, -0.0580359511077404, 0.013933086767792702, 0.014954846352338791, 0.023054614663124084, -0.048375677317380905, -0.026064161211252213, 0.06111980974674225, 0.01165734976530075, 0.07022275775671005, -0.00842487346380949, -0.008475961163640022, 0.015660788863897324, 0.024856626987457275, 0.09348172694444656, 0.005726498551666737, 0.009641695767641068, 0.01967351883649826, 0.04781835526227951, 0.0452546663582325, 0.08129491657018661, -0.013087812811136246, -0.011954588815569878, 0.003933774773031473, -0.007050142157822847, 0.055955275893211365, 0.01592087373137474, 0.0429510623216629, -0.03464694321155548, 0.007746796123683453, -0.022125741466879845, 0.01637602224946022, 0.0431368388235569, -0.008838221430778503, 0.004792981781065464, 0.003898942144587636, 0.012521200813353062, -0.002122473670169711, 0.016914768144488335, 0.0413905568420887, -0.017044810578227043, -0.04967609792947769, 0.03979289531707764, -0.045700524002313614, -0.006878300569951534, 0.057887330651283264, 0.019134772941470146, -0.010654167272150517, -0.0030118690337985754, 0.003429861506447196, 0.017184140160679817, 0.02348189614713192, -0.013338608667254448, 0.013803044334053993, -0.0322876051068306, -0.040721770375967026, -0.059522148221731186, -0.012196095660328865, -0.048487141728401184, -0.03546435013413429, -0.004848714452236891, -0.024856626987457275, -0.026770103722810745, 0.033235058188438416, 0.03011404536664486, 0.028943665325641632, -0.011062870733439922, 0.034163929522037506, -0.013412917964160442, 0.03382953628897667, 0.012354004196822643, -0.028404919430613518, 0.005577879026532173, -0.029612453654408455, -0.022330094128847122, -0.05896482244133949, -0.020360885187983513, -0.007352025713771582, -0.07951148599386215, -0.0971229076385498, 0.0584075003862381, 0.018986152485013008, -0.020007912069559097, 0.014137438498437405, 0.010598435066640377, 0.025618301704525948, 0.05368882790207863, 0.03773079812526703, -0.022107165306806564, -0.01874464564025402, 0.01406312920153141, 0.02171703800559044, 0.027810441330075264, 0.05654975399374962, 0.006242022849619389, -0.026547174900770187, 0.011155758053064346, 0.024615120142698288, -0.04309968277812004, 0.012428313493728638, 0.05569519102573395, -0.002264126669615507, -0.005354949738830328, -0.047558270394802094, 0.06409219652414322, -0.015298529528081417, -0.03741498291492462, 0.007663197815418243, 0.01796439290046692, 0.01417459361255169, 0.008763912133872509, -0.006780768744647503, 0.005837963428348303, -0.01077492069453001, -0.06498391926288605, -0.04952748119831085, 0.02539537288248539, -0.019227659329771996, -0.029500989243388176, -0.03667188435792923, 0.09853479266166687, -0.01033835019916296, -0.027661822736263275, -0.010431237518787384, -0.05562088266015053, -0.015855852514505386, -0.060562483966350555, 0.06680450588464737, 0.03949565812945366, 0.019450590014457703, 0.03085714392364025, 0.01606949418783188, 0.039904359728097916, 0.06464952230453491, 0.0450688935816288, -0.011313666589558125, -0.0682535469532013, 0.08515902608633041, 0.013106390833854675, 0.03643037751317024, -0.018103724345564842, 0.062383074313402176, 0.0292966365814209, -0.08196370303630829, -0.013728735037147999, 0.026119893416762352, -0.05814741551876068, 0.030634213238954544, -0.05562088266015053, -0.02545110508799553, -0.018029414117336273, 0.044548723846673965, -0.007249849382787943, 0.008801066316664219, 0.01827092096209526, -0.0020284252241253853, 0.03572443500161171, -0.01494555827230215, -0.06884802877902985, 0.01273484155535698, -0.01582798734307289, -0.01227040495723486, -0.00801616907119751, -0.03682050481438637, -0.05528648942708969, -0.018967576324939728, -0.009339812211692333, -0.006776124704629183, 0.0003567450912669301, 0.005573234986513853, -0.041762106120586395, 0.03200894594192505, -0.028943665325641632, -0.00777930673211813, 0.03680192679166794, -0.001609271508641541, -0.036133140325546265, 0.052091166377067566, 0.03765648975968361, 0.0033880623523145914, 0.0224415585398674, 0.036151714622974396, 0.060711104422807693, 0.03102434054017067, 0.011146469973027706, 0.05168246477842331, -0.030225509777665138, 0.016060205176472664, 0.00038925561239011586, -0.0184195414185524, -0.012381870299577713, 0.018883977085351944, -0.013580115512013435, 0.03303070366382599, -0.04714956507086754, 0.011443709023296833, 0.08545626699924469, 0.0056754108518362045, -0.014741205610334873, 0.006646082270890474, -0.03306785970926285, -0.016329577192664146, 0.032324761152267456, -0.027773287147283554, -0.014332502149045467, -0.007639976218342781, -0.04384278133511543, 0.07583314925432205, -0.006999053992331028, -0.010041111148893833, 0.02154984138906002, 0.0016766147455200553, -0.0005372946616262197, 0.017732175067067146, -0.05179392918944359, 0.022274361923336983, -0.030244087800383568, 0.010180442593991756, 0.021085405722260475, -0.005749720614403486, 0.04105616360902786, -0.02528390847146511, -0.04897015541791916, 0.016403887420892715, -0.0489330030977726, 0.06301470845937729, 0.05729285255074501, -0.04971325397491455, -0.010895674116909504, 0.015224219299852848, 0.010960695333778858, -0.005930850747972727, 0.01403526309877634, -0.0433226116001606, 0.04997333884239197, 0.0005126214819028974, -0.016245979815721512, -0.0271788090467453, -0.06268031150102615, -0.07178326696157455, 0.056809838861227036, -0.028850778937339783, -0.0009300335659645498, 0.0017753074644133449, -0.06111980974674225, 0.05640113726258278, -0.021122559905052185 ]
718,585
hypothesis_graphql._strategies.validation
validate_scalar_strategy
null
def validate_scalar_strategy(name: str, strategy: st.SearchStrategy) -> None: if not isinstance(name, str): raise InvalidArgument(f"scalar name {name!r} must be a string") if not isinstance(strategy, st.SearchStrategy): raise InvalidArgument( f"custom_scalars[{name!r}]={strategy!r} must be a Hypothesis " "strategy which generates AST nodes matching this scalar." )
(name: str, strategy: hypothesis.strategies.SearchStrategy) -> NoneType
[ 0.0236666239798069, -0.07943360507488251, 0.006507887039333582, 0.02039746567606926, 0.025631597265601158, 0.034117501229047775, -0.004829834681004286, -0.007764252834022045, 0.039334241300821304, -0.015198111534118652, 0.0013954787282273173, 0.05477580428123474, 0.01677182875573635, -0.07206061482429504, -0.0343957245349884, 0.014059122651815414, 0.06837411224842072, 0.056897278875112534, -0.008807601407170296, 0.021771207451820374, 0.009485777467489243, 0.041420940309762955, 0.02117997780442238, 0.02865730971097946, 0.02985716052353382, 0.0228145569562912, 0.0602707713842392, -0.03190907835960388, -0.07303440570831299, -0.004221214447170496, -0.06040988489985466, -0.022153768688440323, 0.013180971145629883, 0.01058129407465458, -0.012650602497160435, -0.08089429885149002, 0.01125077623873949, 0.02486647479236126, -0.03849956393241882, -0.02615327201783657, 0.03710843250155449, 0.06420072168111801, -0.022971058264374733, -0.01448515709489584, -0.02166687324643135, -0.006151409354060888, -0.02244938537478447, 0.02363184653222561, -0.056549496948719025, -0.006686125881969929, 0.021440813317894936, -0.04013414308428764, -0.023492733016610146, 0.024796918034553528, 0.0028539930935949087, 0.07616444677114487, 0.027909575030207634, 0.07028692215681076, 0.03437833860516548, 0.04542044177651405, -0.006460066884756088, -0.01410259585827589, -0.029683267697691917, -0.002527946839109063, -0.000172940461197868, -0.0595056489109993, 0.016145819798111916, 0.0051428391598165035, 0.0069817411713302135, -0.0256663765758276, -0.024379579350352287, -0.04298596456646919, 0.02121475525200367, 0.02363184653222561, 0.024379579350352287, -0.015241584740579128, 0.0013607004657387733, -0.02528381533920765, 0.058566637337207794, 0.020293131470680237, 0.008394609205424786, -0.05501925200223923, -0.005195006728172302, -0.03926468640565872, -0.04048192501068115, -0.029596323147416115, -0.053732454776763916, -0.06134890019893646, 0.04378586262464523, 0.00025879935128614306, -0.019006334245204926, -0.024414358660578728, -0.018136877566576004, 0.049663394689559937, -0.0008123990846797824, 0.03309154137969017, 0.06287914514541626, -0.03582163527607918, 0.043924976140260696, 0.02862253040075302, 0.002282325178384781, 0.011111662723124027, 0.04528133198618889, 0.057801514863967896, 0.012502794153988361, 0.00028012823895551264, 0.04215128347277641, -0.022640665993094444, -0.011511612683534622, 0.04448143020272255, 0.05175008997321129, -0.009737920016050339, 0.024779530242085457, 0.0015780647518113256, -0.04823748394846916, -0.006686125881969929, -0.019406285136938095, -0.03922990709543228, -0.039438579231500626, 0.009650974534451962, 0.03253508731722832, -0.003099614754319191, -0.004664637614041567, 0.02361445687711239, 0.07553844153881073, 0.01201589871197939, 0.0069773937575519085, 0.018588993698358536, -0.06134890019893646, 0.06326170265674591, 0.04444665089249611, 0.00856415368616581, -0.003829958848655224, -0.013572226278483868, -0.01912805810570717, 0.013789591379463673, 0.04249906539916992, 0.004242951050400734, 0.009033660404384136, -0.02895292453467846, 0.018241211771965027, 0.030413612723350525, -0.04082971066236496, -0.04371630772948265, 0.03218730539083481, 0.029561543837189674, -0.03957769274711609, 0.0024931684602051973, 0.015545894391834736, -0.01923239231109619, -0.023023225367069244, 0.02048441208899021, -0.0366910919547081, -0.036482423543930054, -0.005047198850661516, -0.05547136813402176, 0.07129549235105515, -0.05317600071430206, -0.02277977764606476, -0.038951680064201355, 0.04601167514920235, -0.01761520281434059, -0.047507140785455704, -0.04076015204191208, -0.006946962792426348, 0.00509501900523901, 0.016467519104480743, 0.0032691590022295713, -0.005386287346482277, 0.01103341206908226, -0.000979226198978722, -0.05672338604927063, -0.028726864606142044, 0.06253135949373245, 0.021458202973008156, 0.018988944590091705, 0.007025213912129402, 0.013911315239965916, -0.0003464243491180241, -0.03919513151049614, 0.025005588307976723, -0.014754688367247581, -0.046742018312215805, -0.06152278929948807, -0.0023692708928138018, -0.03634331002831459, -0.016180599108338356, 0.01596323400735855, -0.016884857788681984, 0.038534343242645264, -0.028466029092669487, 0.0034169666469097137, -0.022136379033327103, -0.002645323518663645, 0.037004098296165466, -0.043890200555324554, -0.0012998385354876518, -0.026831448078155518, 0.024657806381583214, 0.01679791323840618, 0.03150912746787071, -0.023840516805648804, 0.005751459393650293, 0.02646627649664879, -0.02404918521642685, -0.004673332441598177, 0.015763258561491966, 0.005121103022247553, 0.006112284027040005, -0.09299714118242264, -0.028292136266827583, 0.0024236119352281094, -0.021945100277662277, 0.07532977312803268, 0.016928331926465034, -0.002760526491329074, 0.006394857540726662, -0.045490000396966934, 0.0010335672413930297, 0.04072537273168564, 0.11685504764318466, 0.03846478462219238, 0.07219972461462021, 0.015198111534118652, 0.07119115442037582, -0.030326666310429573, 0.019406285136938095, -0.05668860673904419, 0.01431996002793312, 0.037734441459178925, -0.01914544776082039, -0.013615699484944344, 0.014589491300284863, -0.0023084087297320366, 0.0007069773855619133, 0.013389640487730503, 0.018258601427078247, -0.02079741656780243, 0.020275741815567017, 0.0028126940596848726, -0.049663394689559937, 0.026640167459845543, -0.06086200475692749, 0.045872561633586884, -0.03178735449910164, 0.017015276476740837, -0.04284685105085373, 0.05101974681019783, -0.012502794153988361, 0.00602533807978034, 0.019841013476252556, -0.009494472295045853, 0.003586510894820094, -0.02159731648862362, -0.01963234320282936, -0.040655817836523056, -0.03552602231502533, -0.021910320967435837, 0.027840018272399902, -0.008698918856680393, -0.05230654403567314, 0.0171978622674942, -0.02159731648862362, 0.019858401268720627, -0.04761147499084473, -0.06583529710769653, -0.009677058085799217, 0.0545671321451664, 0.05581915006041527, 0.01916283555328846, -0.11163830012083054, 0.01839771494269371, 0.00010073476732941344, 0.0007558843353763223, 0.01490249577909708, -0.010946465656161308, 0.01712830737233162, 0.04569866880774498, 0.049559060484170914, 0.03676065057516098, 0.04521177336573601, -0.009564029052853584, 0.001939976355060935, -0.012372375465929508, 0.0028822505846619606, 0.015024220570921898, -0.021545149385929108, -0.10162215679883957, -0.028744254261255264, -0.02250155247747898, -0.04169916734099388, -0.03585641458630562, 0.056132156401872635, 0.03182213380932808, -0.032065581530332565, 0.0545671321451664, 0.017423922196030617, -0.054949693381786346, 0.02321450598537922, -0.009398831985890865, 0.048759158700704575, 0.010998633690178394, -0.021492982283234596, -0.015389392152428627, -0.03926468640565872, -0.09000620990991592, -0.00981617160141468, -0.034900009632110596, -0.061801016330718994, 0.02773568406701088, -0.03020494244992733, 0.07178238779306412, -0.056897278875112534, 0.010659544728696346, 0.09640540927648544, 0.04938516765832901, 0.004547261167317629, -0.06694820523262024, 0.014832939952611923, 0.04030803591012955, 0.005490622017532587, -0.0342218354344368, -0.03665631636977196, -0.049141719937324524, -0.04778536781668663, 0.01831076852977276, -0.033265430480241776, -0.03957769274711609, -0.009920506738126278, -0.01754564605653286, -0.015702396631240845, -0.03376971557736397, 0.04778536781668663, -0.036065082997083664, 0.0015019873389974236, -0.0359259694814682, 0.011763756163418293, -0.0075338464230299, -0.0100248409435153, 0.0023953544441610575, 0.06287914514541626, 0.01410259585827589, 0.07706868648529053, 0.01753695122897625, 0.011189914308488369, 0.016189292073249817, -0.03187429904937744, -0.04375108703970909, 0.07157371193170547, -0.03310893103480339, -0.012998385354876518, -0.030778784304857254, -0.01470252126455307, -0.02737051248550415, 0.027579182758927345, 0.035717301070690155, 0.014641659334301949, 0.05508880689740181, -0.06447894126176834, -0.06639175117015839, 0.0376301072537899, -0.11198608577251434, 0.0269879512488842, -0.008068562485277653, -0.002817041240632534, 0.027944354340434074, 0.04277729243040085, -0.03679542988538742, 0.06051421910524368, -0.022988447919487953, -0.03097006492316723, -0.03630853071808815, -0.012041982263326645, -0.01963234320282936, -0.03415227681398392, 0.028779033571481705, 0.04291640594601631, 0.003960377536714077, -0.004464662633836269, -0.05435846373438835, 0.05213265120983124, 0.00145416718441993, 0.023805737495422363, 0.016224071383476257, -0.0028496459126472473, -0.03521301597356796, -0.05846229940652847, 0.012641907669603825, -0.003673456609249115, -0.039716802537441254, -0.0037408394273370504, -0.01201589871197939, 0.047507140785455704, -0.025440316647291183, -0.01667618937790394, -0.027840018272399902, 0.01792820729315281, -0.010989938862621784, -0.037699662148952484, 0.06531362235546112, -0.010676934383809566, -0.07484287768602371, 0.016919637098908424, 0.012294124811887741, -0.05112408101558685, -0.016937026754021645, -0.0025366414338350296, 0.06639175117015839, -0.028500806540250778, 0.06545273959636688, -0.015311140567064285, 0.016493603587150574, -0.017328280955553055, -0.030517946928739548, -0.023962240666151047, -0.029561543837189674, 0.06903489679098129, 0.011685504578053951, -0.03846478462219238, -0.009798782877624035, 0.0277530737221241, -0.0352477952837944, -0.005242826882749796, 0.08026828616857529, 0.026431499049067497, 0.045037880539894104, 0.00022456448641605675, -0.0293702632188797, -0.04896782711148262, 0.006703515071421862, -0.06826978176832199, -0.033300209790468216, -0.05143708735704422, -0.06868711858987808, 0.01794559694826603, -0.0011759408516809344, -0.05540181323885918, -0.004725500009953976, -0.010007452219724655, 0.0005613432731479406, 0.06420072168111801, -0.013398335315287113, -0.006946962792426348, 0.043924976140260696, 0.015998011454939842, -0.026727113872766495, -0.018049931153655052, 0.009077132679522038, -0.027666127309203148, -0.05115886032581329, 0.006603527348488569, 0.020571356639266014, -0.01958017610013485, 0.04156005382537842, 0.031265679746866226, -0.040168922394514084, -0.0012857097899541259, -0.037351880222558975, 0.007207800168544054, -0.04451620951294899, -0.010746491141617298, 0.02126692235469818, 0.004968947730958462, 0.016867469996213913, 0.003816917072981596, 0.025944601744413376, -0.0016563159879297018, 0.015580672770738602, 0.013128803111612797, 0.0342218354344368, -0.013372251763939857, 0.011468140408396721, 0.032030802220106125, -0.0301353856921196, -0.006912184413522482, -0.007229536306113005, -0.0069817411713302135, 0.022240715101361275, 0.004184262827038765, 0.07035647332668304, 0.0027257483452558517, 0.0035626008175313473, -0.0015367656014859676, 0.04002980887889862, 0.027613960206508636, 0.016884857788681984, -0.043090298771858215, -0.021875543519854546, -0.017754316329956055, 0.028865978121757507, -0.04076015204191208, 0.051715314388275146, 0.07046081125736237, 0.002771394792944193, -0.002236678497865796, -0.024762140586972237, -0.007042603101581335, 0.018728107213974, 0.021475592628121376, 0.05199354141950607, 0.012241956777870655, 0.02003229409456253, -0.05620171129703522, -0.012563656084239483, 0.07407775521278381, -0.09021487832069397, 0.03679542988538742, 0.016850080341100693, -0.009103217162191868, -0.013224443420767784, -0.056897278875112534, 0.013920009136199951, 0.024396969005465508, 0.0352477952837944, 0.06642653048038483, 0.023092782124876976, 0.05512358620762825, 0.022571109235286713, -0.0695565715432167, -0.02865730971097946, -0.012468015775084496, -0.06256613880395889, -0.04493354633450508, -0.010163954459130764, 0.032900258898735046, 0.01205937098711729, -0.06127934157848358, -0.04973294958472252, 0.04169916734099388, 0.012607129290699959, 0.061453234404325485, 0.014780771918594837, -0.03559557721018791, 0.031230902299284935, -0.012972300872206688, 0.09424915909767151, 0.008516333065927029, 0.00715998001396656, 0.032013412564992905, 0.029683267697691917, -0.006060116458684206, 0.039821140468120575, 0.07901626825332642, 0.06475716829299927, 0.015380697324872017, 0.01792820729315281, -0.018571605905890465, 0.04681157320737839, -0.04976772889494896, -0.02130170166492462, 0.03359582647681236, 0.01265929639339447, -0.03752577304840088, -0.011815923266112804, 0.013667866587638855, -0.034900009632110596, 0.022345049306750298, 0.021075641736388206, -0.025996770709753036, 0.04681157320737839, 0.025909824296832085, -0.048759158700704575, 0.05846229940652847, 0.004603775683790445, -0.017876040190458298, -0.0448639914393425, 0.017450004816055298, -0.05755806714296341, 0.036065082997083664, 0.035752080380916595, 0.0359259694814682, -0.032395973801612854, 0.01798037439584732, -0.050776299089193344, -0.0399254746735096, 0.010729101486504078, 0.027979131788015366, -0.02371879108250141, -0.07331263273954391, 0.019041111692786217, -0.025196868926286697, 0.001282449346035719, -0.022988447919487953, -0.0011726804077625275, 0.024275245144963264, 0.02653583325445652, 0.027440069243311882, 0.0028126940596848726, -0.07063470035791397, 0.056062597781419754, -0.01631971076130867, 0.025944601744413376, 0.015241584740579128, 0.00982486642897129, -0.021440813317894936, -0.0014411252923309803, -0.019684510305523872, -0.01801515370607376, 0.06534840166568756, -0.04131660610437393, -0.05300211161375046, 0.0032104705460369587, -0.025961991399526596, 0.070147804915905, 0.025214258581399918, 0.035352129489183426, -0.010259594768285751, -0.005547136999666691, 0.009520555846393108, -0.059053532779216766, 0.00234101340174675, 0.014015649445354939, 0.045942116528749466, 0.009624890983104706, 0.047541920095682144, 0.004342938773334026, -0.010998633690178394, 0.029961494728922844, 0.012737547978758812, 0.0038364797364920378, 0.03521301597356796, 0.046359457075595856, -0.013711339794099331, -0.006616569124162197, -0.0158762875944376, -0.028309525921940804, 0.006607874762266874, -0.038151782006025314, -0.022188547998666763, -0.0733821839094162, -0.04455098509788513, -0.013302695006132126, -0.008355483412742615, -0.0482722632586956, -0.03909079357981682, 0.008238106966018677, 0.036517202854156494, 0.013094025664031506, 0.014659048058092594, 0.010833436623215675, -0.007099118083715439, 0.03295242786407471, -0.00815550796687603, 0.05710594728589058, 0.010320456698536873, 0.02817041240632534, -0.05345422774553299, -0.024796918034553528, 0.08729349821805954, 0.043820641934871674, 0.0065774437971413136, 0.03686498478055, -0.006729598622769117, -0.011189914308488369, 0.1178288385272026, 0.03665631636977196, 0.01879766397178173, -0.043020740151405334, 0.052097875624895096, 0.020571356639266014, -0.04326418787240982, -0.011702893301844597, 0.03272636979818344, 0.06934790313243866, -0.03849956393241882, -0.05919264629483223, -0.007212147116661072, -0.06496584415435791, 0.009790088050067425, -0.0220494344830513, -0.07296484708786011, -0.0433337464928627, -0.02159731648862362, -0.03603030741214752, 0.03220469504594803, -0.025040367618203163, -0.0031083093490451574, -0.020901750773191452, 0.008116383105516434, -0.018902000039815903, -0.018258601427078247, -0.032082971185445786, -0.019510619342327118, -0.012189789675176144, -0.06270524859428406, -0.02690100483596325, -0.010955160483717918, 0.011555085889995098, -0.0031191776506602764, -0.014406905509531498, -0.026431499049067497, -0.01160725299268961, 0.024570859968662262, -0.0008047912851907313, 0.0114072784781456, -0.015119860880076885, 0.011442056857049465, 0.05021984875202179, 0.050845857709646225, 0.059783875942230225, 0.01265929639339447, 0.010989938862621784, -0.02486647479236126, 0.018189044669270515, 0.005812321323901415, -0.026796670630574226, 0.013806980103254318, -0.029509376734495163, 0.11428145319223404, -0.06009688228368759, -0.019336728379130363, -0.013693951070308685, 0.04072537273168564, -0.015737175941467285, -0.009850949980318546, 0.02535337209701538, -0.04698546603322029, 0.049663394689559937, -0.008233759552240372, -0.04618556424975395, 0.021440813317894936, -0.0333697684109211, 0.029648490250110626, -0.008720655925571918, 0.0006423114682547748, 0.018432492390275, 0.04528133198618889, -0.058079738169908524, 0.06392249464988708, 0.036969318985939026, 0.009624890983104706, 0.01529375184327364, 0.00460812309756875, 0.037699662148952484, 0.013085330836474895, 0.010703017935156822, 0.01839771494269371, -0.031091788783669472, 0.02210160158574581, 0.014798161573708057, 0.02291889116168022, 0.052793439477682114, 0.018432492390275, -0.08124207705259323, 0.07546888291835785, 0.02043224312365055, 0.009911811910569668, 0.08040740340948105, -0.015571977943181992, -0.006486150436103344, 0.011424667201936245, 0.0011628989595919847, -0.012320208363234997, 0.061070673167705536, -0.03867345675826073, -0.04928083345293999, 0.05581915006041527, 0.00019589957082644105, -0.01138988882303238, -0.03189168870449066, -0.04823748394846916, 0.05790584906935692, 0.000008337958206539042, -0.007990311831235886, -0.015545894391834736, -0.03881257027387619, -0.006368773989379406, 0.004864613059908152 ]
718,586
pluginlib._objects
BlacklistEntry
Args: plugin_type(str): Parent type name(str): Plugin name version(str): Plugin version operator(str): Comparison operator ('=', '==', '!=', '<', '<=', '>', '>=') **Container for blacklist entry** If ``operator`` is :py:data:`None` or not specified, it defaults to '=='. One of ``plugin_type``, ``name``, or ``version`` must be specified. If any are unspecified or :py:data:`None`, they are treated as a wildcard. In order to be more compatible with parsed text, the order of ``operator`` and ``version`` can be swapped. The following are equivalent: .. code-block:: python BlacklistEntry('parser', 'json', '1.0', '>=') .. code-block:: python BlacklistEntry('parser', 'json', '>=', '1.0') ``version`` is evaluated using :py:func:`pkg_resources.parse_version` and should conform to `PEP 440`_ .. _PEP 440: https://www.python.org/dev/peps/pep-0440/
class BlacklistEntry(object): """ Args: plugin_type(str): Parent type name(str): Plugin name version(str): Plugin version operator(str): Comparison operator ('=', '==', '!=', '<', '<=', '>', '>=') **Container for blacklist entry** If ``operator`` is :py:data:`None` or not specified, it defaults to '=='. One of ``plugin_type``, ``name``, or ``version`` must be specified. If any are unspecified or :py:data:`None`, they are treated as a wildcard. In order to be more compatible with parsed text, the order of ``operator`` and ``version`` can be swapped. The following are equivalent: .. code-block:: python BlacklistEntry('parser', 'json', '1.0', '>=') .. code-block:: python BlacklistEntry('parser', 'json', '>=', '1.0') ``version`` is evaluated using :py:func:`pkg_resources.parse_version` and should conform to `PEP 440`_ .. _PEP 440: https://www.python.org/dev/peps/pep-0440/ """ __slots__ = ('type', 'name', 'version', 'operator') def __init__(self, plugin_type=None, name=None, version=None, operator=None): if plugin_type is name is version is None: raise AttributeError('plugin_type, name, or version must be specified') self.type = plugin_type self.name = name if version in OPERATORS: self.operator = version self.version = operator if self.version is None: raise AttributeError('version must be specifed when operator is specified') else: self.version = version self.operator = operator if self.version is not None and not isinstance(self.version, BASESTRING): raise TypeError('version must be a string, received %s' % type(self.version).__name__) if self.operator is None: self.operator = '==' elif self.operator not in OPERATORS: raise AttributeError("Unsupported operator '%s'" % self.operator) def __repr__(self): attrs = (self.type, self.name, self.operator, self.version) return '%s(%s)' % (self.__class__.__name__, ', '.join([repr(attr) for attr in attrs]))
(plugin_type=None, name=None, version=None, operator=None)
[ 0.0691111832857132, -0.03387695178389549, -0.0632418692111969, -0.03837064653635025, 0.014012989588081837, -0.08246387541294098, 0.037490248680114746, 0.011151698417961597, -0.013728694058954716, -0.029493307694792747, -0.01980893686413765, 0.0354359894990921, -0.01210546214133501, -0.018699269741773605, -0.03193274140357971, -0.010665645822882652, 0.022431787103414536, 0.03505081310868263, 0.03701336681842804, 0.007176154758781195, -0.017855556681752205, -0.024045849218964577, 0.015067631378769875, 0.11753302812576294, 0.01651661843061447, 0.060417260974645615, 0.04137866944074631, -0.009684369899332523, -0.05939013138413429, -0.009235000237822533, -0.009537636302411556, -0.007134885992854834, 0.010610620491206646, 0.016250666230916977, -0.008574701845645905, -0.05972027778625488, 0.0023064573761075735, 0.07894228398799896, -0.11988075822591782, 0.030868928879499435, 0.060233842581510544, 0.00304470700211823, 0.013563619926571846, -0.046844471246004105, 0.030942294746637344, 0.0354359894990921, 0.002907145069912076, 0.03545432910323143, -0.0373251736164093, -0.0640489012002945, 0.028062662109732628, 0.002168895211070776, 0.018369121477007866, 0.00834543164819479, -0.0413053035736084, 0.03873747959733009, 0.07520059496164322, 0.06555291265249252, 0.03259303793311119, 0.07277950644493103, -0.02474283054471016, 0.030373703688383102, -0.008822313509881496, -0.025751618668437004, -0.014664116315543652, -0.010463887825608253, -0.028411151841282845, -0.050879623740911484, -0.04207565262913704, 0.038994260132312775, -0.015425292775034904, -0.058803196996450424, -0.005241114646196365, -0.004860526416450739, 0.00048089405754581094, -0.06885439902544022, 0.009849444031715393, 0.038150545209646225, 0.023422235623002052, -0.019753912463784218, 0.02747572958469391, 0.033400069922208786, 0.04501030966639519, -0.057629335671663284, 0.01993732899427414, -0.03239127993583679, 0.04545050859451294, -0.023844091221690178, -0.005254871211946011, 0.06808405369520187, -0.10168588161468506, -0.05330071598291397, -0.017241112887859344, 0.02246847189962864, -0.030887270346283913, 0.00017266905342694372, 0.009390903636813164, -0.07402673363685608, 0.015361097641289234, 0.03200610727071762, 0.044056545943021774, -0.0045234994031488895, -0.03429880738258362, -0.02415589988231659, 0.0007072982843965292, -0.030942294746637344, -0.036848291754722595, 0.012187998741865158, -0.031089026480913162, 0.008134503848850727, 0.0019671376794576645, -0.03167595714330673, -0.03862742707133293, -0.005754679907113314, 0.03505081310868263, -0.0019258689135313034, -0.08187694102525711, -0.04005807265639305, 0.054768044501543045, -0.020560944452881813, 0.010573937557637691, 0.03884752839803696, -0.03936109319329262, 0.06793732196092606, -0.009115779772400856, 0.01840580441057682, 0.007749329786747694, -0.013728694058954716, -0.002298432867974043, 0.020597627386450768, 0.018038973212242126, 0.01817653514444828, -0.06496597826480865, 0.010463887825608253, 0.01211463287472725, -0.0527137853205204, 0.02591669373214245, 0.015782954171299934, -0.016525790095329285, 0.03486739844083786, 0.04959570989012718, -0.036389753222465515, 0.03130912780761719, -0.05909666419029236, -0.07512722909450531, -0.0927351787686348, -0.0034390517976135015, 0.014599921181797981, 0.041708819568157196, -0.004142910707741976, -0.0240275077521801, 0.018625903874635696, -0.007740159053355455, 0.037636980414390564, 0.035601064562797546, 0.029383257031440735, -0.009996176697313786, -0.0581795834004879, 0.012408098205924034, 0.004225448239594698, 0.04680778458714485, -0.0071623981930315495, 0.0037921275943517685, -0.03429880738258362, 0.0046473052352666855, 0.008125333115458488, 0.04915551096200943, -0.0375269316136837, -0.02012074552476406, 0.012793272733688354, -0.03174932673573494, -0.04695452004671097, -0.032299574464559555, 0.0961833968758583, -0.03154756873846054, 0.07644782960414886, -0.008858997374773026, 0.060747407376766205, 0.04442337527871132, -0.05168665573000908, 0.0059472667053341866, 0.0019476496381685138, -0.049448978155851364, 0.001177301979623735, 0.038333963602781296, -0.007226593792438507, 0.03822391480207443, 0.01669086329638958, -0.007299960590898991, 0.02819105237722397, -0.01791975274682045, -0.060343895107507706, 0.058142900466918945, 0.025366446003317833, -0.05557507649064064, -0.020469235256314278, -0.06588306277990341, 0.03837064653635025, -0.00023098963720258325, 0.010390521958470345, -0.03479403257369995, -0.002311042742803693, 0.00832250528037548, 0.012940005399286747, 0.05550171062350273, 0.0014593042433261871, 0.04156208783388138, -0.029181499034166336, -0.03312494605779648, 0.000011150050340802409, -0.022560179233551025, 0.02661367505788803, -0.004750476684421301, 0.015425292775034904, -0.020469235256314278, -0.06188458949327469, 0.04754145070910454, 0.03785708174109459, -0.020359186455607414, 0.034372176975011826, 0.05036605894565582, 0.0038012985605746508, 0.014948410913348198, 0.06019715964794159, 0.022688569501042366, 0.03312494605779648, 0.05487809330224991, 0.01664501056075096, 0.005983950104564428, 0.013453570194542408, 0.02279862016439438, -0.031584251672029495, 0.010353838093578815, 0.0031524640507996082, -0.029768431559205055, 0.025146346539258957, 0.012068778276443481, 0.007850208319723606, -0.047688182443380356, 0.026393575593829155, 0.045670606195926666, -0.005341993644833565, 0.0075613283552229404, 0.0322628915309906, 0.0250729788094759, -0.06045394390821457, -0.021899880841374397, -0.015196023508906364, 0.007047763094305992, -0.043212831020355225, -0.025017954409122467, 0.015782954171299934, 0.03576613590121269, -0.019900646060705185, -0.007643865421414375, -0.04754145070910454, -0.05172333866357803, -0.06606647372245789, 0.06503934413194656, -0.036463119089603424, -0.0014501335099339485, -0.015883833169937134, 0.008157430216670036, 0.009555978700518608, 0.02461443841457367, -0.01119755208492279, 0.02336720936000347, 0.022028272971510887, -0.000732518034055829, 0.02986013889312744, -0.03173098340630531, -0.016085591167211533, -0.012857467867434025, 0.04365302994847298, -0.04354298114776611, -0.014425675384700298, 0.030098579823970795, 0.03116239421069622, -0.003725639311596751, -0.045157041400671005, 0.010436375625431538, 0.017158575356006622, -0.02446770668029785, -0.0077722566202282906, 0.06426899880170822, -0.004952234216034412, -0.021478023380041122, -0.0002537733525969088, -0.022046614438295364, 0.020230794325470924, 0.020487576723098755, -0.014269771985709667, 0.028282761573791504, -0.0396178737282753, 0.05069620907306671, 0.071275494992733, 0.015617880038917065, -0.018589220941066742, 0.03539930656552315, -0.032299574464559555, -0.019497130066156387, -0.01253648940473795, 0.06639662384986877, -0.0006688955472782254, -0.03488574177026749, 0.0025609470903873444, 0.03026365488767624, 0.0240275077521801, 0.017286965623497963, 0.0029117304366081953, 0.07776842266321182, 0.01896522380411625, 0.017351161688566208, -0.012499806471168995, -0.011362627148628235, 0.0041245692409574986, 0.02182651497423649, 0.014875045046210289, -0.014480700716376305, 0.05025601014494896, -0.015260218642652035, 0.012664880603551865, -0.013912110589444637, 0.032941531389951706, -0.01973557099699974, -0.0716790109872818, -0.007588840555399656, -0.0004628390306606889, 0.004601451102644205, -0.02916315756738186, -0.021019484847784042, -0.026008401066064835, -0.0021964076440781355, 0.0392143614590168, 0.0045349630527198315, 0.03998470678925514, 0.009312951937317848, -0.012508977204561234, -0.011344284750521183, -0.04332287982106209, 0.06995489448308945, -0.01870844140648842, -0.03297821432352066, 0.029438283294439316, -0.05495145916938782, -0.03376690298318863, 0.016929304227232933, 0.02883300930261612, 0.021001141518354416, 0.0514298714697361, 0.04614748805761337, -0.03998470678925514, -0.026393575593829155, 0.020414210855960846, 0.10528083890676498, -0.07747495919466019, -0.02883300930261612, -0.061591122299432755, -0.001442109001800418, -0.007034006994217634, 0.042442481964826584, 0.019001906737685204, -0.01165609247982502, 0.017442870885133743, -0.05641878768801689, -0.05773938447237015, 0.03701336681842804, 0.013737864792346954, 0.055354975163936615, -0.07325638830661774, -0.00608941400423646, 0.03277645632624626, 0.0229820366948843, -0.09493616968393326, 0.01980893686413765, -0.019258689135313034, 0.03299655392765999, 0.03369353711605072, -0.07120212912559509, 0.026283524930477142, 0.00018341609393246472, 0.08495832979679108, -0.03202445060014725, 0.021899880841374397, -0.029493307694792747, 0.03708673268556595, -0.022560179233551025, 0.025146346539258957, 0.056198690086603165, 0.05245700106024742, -0.008056552149355412, -0.009977835230529308, -0.002563239773735404, 0.020872751250863075, -0.08914022147655487, 0.019918987527489662, 0.0030722194351255894, -0.00823079701513052, -0.02830110304057598, -0.04079173877835274, 0.061517756432294846, -0.03501413017511368, -0.014719141647219658, 0.018726782873272896, -0.0012655709870159626, -0.02518302947282791, 0.06250820308923721, 0.08892012387514114, -0.019717229530215263, 0.02103782631456852, 0.0008637751452624798, -0.09647686034440994, 0.033216655254364014, -0.04618417099118233, -0.03154756873846054, 0.008570116944611073, 0.025238053873181343, -0.009922810830175877, -0.03384026885032654, -0.03400534391403198, 0.010115397162735462, -0.03202445060014725, 0.034977447241544724, -0.00211845594458282, 0.003787542227655649, -0.00024230984854511917, -0.004330912604928017, -0.00608482863754034, -0.0793091207742691, -0.026980506256222725, -0.010032860562205315, -0.03156590834259987, 0.001232326845638454, -0.07732822000980377, -0.011215893551707268, -0.05458462983369827, 0.01216965727508068, -0.0654061809182167, 0.015627050772309303, -0.00349866203032434, -0.05564844235777855, 0.012233853340148926, 0.06518607586622238, 0.016149787232279778, -0.009046998806297779, 0.005241114646196365, -0.04922887682914734, 0.03914099186658859, 0.0400213897228241, -0.05935344845056534, -0.07230262458324432, 0.017112720757722855, 0.001312571344897151, -0.010243788361549377, -0.025751618668437004, -0.019974011927843094, -0.020414210855960846, 0.006676345597952604, -0.006561710499227047, 0.017901411280035973, 0.018231559544801712, 0.00403973925858736, 0.01567290537059307, -0.011720288544893265, -0.04423996061086655, 0.05454794690012932, 0.0619579553604126, -0.0021161630284041166, 0.004321741405874491, 0.019772253930568695, -0.020891092717647552, 0.00306763406842947, 0.01781887374818325, 0.038994260132312775, -0.02433931455016136, 0.03615131229162216, 0.03218952566385269, -0.03494076430797577, -0.07090865820646286, -0.034573931246995926, 0.006153609603643417, -0.02714558131992817, -0.007987771183252335, -0.0005141382571309805, -0.020744359120726585, -0.07050514221191406, 0.04640427231788635, -0.055685125291347504, 0.021588074043393135, 0.01016125176101923, -0.06635994464159012, -0.003936567809432745, 0.011967900209128857, -0.010170422494411469, 0.01733282022178173, 0.033730220049619675, -0.00808864925056696, 0.04688115417957306, 0.050732892006635666, -0.02532976120710373, 0.004674817435443401, -0.018928540870547295, -0.018130680546164513, -0.041708819568157196, 0.05278715118765831, -0.013380203396081924, -0.003269391832873225, 0.012444782070815563, -0.010555596090853214, 0.0006006876938045025, -0.03939777612686157, -0.030887270346283913, 0.05051279067993164, 0.025036295875906944, -0.009381732903420925, 0.02435765601694584, -0.020340844988822937, 0.012096291407942772, -0.02428429014980793, 0.014453187584877014, 0.0029529989697039127, 0.04453342780470848, 0.06221473962068558, -0.061774540692567825, -0.0015292316675186157, -0.013618644326925278, -0.043469611555337906, -0.047761548310518265, 0.020744359120726585, -0.008505920879542828, 0.019515471532940865, 0.02433931455016136, -0.04141535237431526, -0.03607794642448425, -0.0076713780872523785, 0.06206800416111946, -0.013205958530306816, 0.08187694102525711, 0.02182651497423649, 0.02103782631456852, 0.02753075584769249, 0.019717229530215263, 0.01617729850113392, -0.048862047493457794, -0.02448604814708233, 0.028154369443655014, -0.043873127549886703, 0.03330836072564125, -0.0433962456882, -0.06302177160978317, 0.024045849218964577, 0.022046614438295364, 0.03466564044356346, -0.05109972134232521, 0.014544895850121975, -0.02377072535455227, 0.011738630011677742, 0.002464653691276908, 0.05264041945338249, 0.024852879345417023, -0.016223153099417686, 0.02252349629998207, -0.05726250261068344, -0.0035399305634200573, -0.015837978571653366, 0.0005714557482860982, -0.0023236526176333427, 0.00823079701513052, -0.006149024236947298, 0.03739853948354721, 0.029768431559205055, -0.05018264055252075, 0.040424905717372894, 0.00168857432436198, -0.03481237217783928, 0.007079861126840115, 0.02142299897968769, 0.03195108473300934, 0.0017963313730433583, -0.010188763961195946, 0.00470920791849494, 0.010693158023059368, -0.010711499489843845, -0.06485593318939209, -0.02349560149013996, -0.010720670223236084, 0.025311419740319252, 0.03349177911877632, -0.009895297698676586, 0.0842980369925499, 0.014920898713171482, 0.04005807265639305, 0.024559414014220238, 0.0034573932643979788, -0.013233470730483532, -0.05550171062350273, -0.0341520756483078, -0.02850286103785038, -0.009184560738503933, 0.03494076430797577, -0.015984712168574333, -0.019203664734959602, -0.00951012410223484, -0.017222771421074867, 0.06885439902544022, -0.007474205456674099, -0.03649980202317238, -0.08290407061576843, -0.03972792625427246, -0.039581190794706345, -0.011573554947972298, 0.033546801656484604, -0.011454334482550621, 0.028484519571065903, 0.046844471246004105, 0.0037164685782045126, 0.03292318806052208, 0.016149787232279778, 0.007776842452585697, -0.003909055609256029, 0.002001528162509203, 0.10440044105052948, 0.03273977339267731, 0.052750468254089355, -0.061150923371315, -0.048531897366046906, -0.045670606195926666, 0.004232326056808233, -0.009546807035803795, -0.02272525429725647, 0.03404202684760094, 0.0057271672412753105, 0.005690484307706356, -0.010207105427980423, -0.06731370836496353, 0.025568202137947083, 0.020340844988822937, -0.04614748805761337, 0.020084062591195107, 0.028209393844008446, 0.011170039884746075, -0.09134121239185333, 0.002705387305468321, 0.0343538336455822, -0.06012379378080368, 0.04420327767729759, -0.014746653847396374, -0.0343538336455822, 0.03932441025972366, -0.01648910716176033, -0.01607641950249672, 0.05381428077816963, -0.02180817350745201, 0.036463119089603424, -0.04416659474372864, 0.06467251479625702, -0.015214364975690842, 0.061004191637039185, -0.016314860433340073, 0.00007429784454870969, -0.010106226429343224, -0.028466178104281425, 0.033601827919483185, 0.03954450786113739, -0.03914099186658859, 0.0206526517868042, 0.006593808531761169, 0.014764995314180851, 0.0019682839047163725, 0.024320973083376884, 0.0023431405425071716, -0.005176919046789408, 0.00592433987185359, -0.01217882800847292, -0.04783491790294647, -0.05036605894565582, -0.0446801595389843, 0.04823843017220497, -0.024009166285395622, -0.023532284423708916, 0.019258689135313034, -0.021386316046118736, -0.009271683171391487, -0.001976308412849903, -0.004032861441373825, 0.06896445155143738, -0.017883067950606346, 0.02676040679216385, -0.03198776766657829, -0.08026288449764252, -0.006332440301775932, -0.00961100310087204, 0.03681160882115364, -0.02883300930261612, -0.020414210855960846, 0.053264033049345016, -0.034830715507268906, -0.012279707007110119, 0.03486739844083786, -0.027384022250771523, 0.027237288653850555, 0.008790216408669949, -0.0009348489111289382, 0.02377072535455227, -0.002838364103808999, -0.020634310320019722, -0.041268620640039444, -0.04071837291121483, 0.017681311815977097, -0.010463887825608253, -0.013114250265061855, 0.08239050954580307, 0.024944588541984558, -0.06955137848854065, 0.050476107746362686, -0.0043584248051047325, 0.006850590929389, -0.00792357511818409, 0.03116239421069622, 0.03369353711605072, -0.0005247419467195868, -0.008070307783782482, 0.06078409403562546, 0.029566673561930656, 0.0015899882419034839, 0.042956046760082245, -0.031125711277127266, -0.07549406588077545, -0.04820174723863602, -0.03796713054180145, 0.019442105665802956, 0.04798164963722229, -0.049889177083969116, 0.046514321118593216, 0.06757048517465591, -0.02630186825990677, 0.007607182487845421, -0.036463119089603424, 0.07615435868501663, 0.06507603079080582, 0.030465412884950638, 0.010262129828333855, -0.036903318017721176, 0.021789832040667534, -0.03525257110595703, 0.027842562645673752, -0.000040552149584982544, 0.047358036041259766, -0.005896827206015587, 0.04618417099118233, 0.004656475968658924, -0.05495145916938782, -0.029658380895853043, 0.02558654546737671, 0.029713407158851624, -0.06500266492366791, 0.042442481964826584, 0.010729840956628323, -0.028484519571065903, -0.024504389613866806, 0.00832250528037548, 0.02791592851281166, 0.015205194242298603, -0.009294610470533371, 0.011280089616775513, -0.0009887273190543056, -0.03207947313785553, -0.00017911726899910718 ]
718,587
pluginlib._objects
__init__
null
def __init__(self, plugin_type=None, name=None, version=None, operator=None): if plugin_type is name is version is None: raise AttributeError('plugin_type, name, or version must be specified') self.type = plugin_type self.name = name if version in OPERATORS: self.operator = version self.version = operator if self.version is None: raise AttributeError('version must be specifed when operator is specified') else: self.version = version self.operator = operator if self.version is not None and not isinstance(self.version, BASESTRING): raise TypeError('version must be a string, received %s' % type(self.version).__name__) if self.operator is None: self.operator = '==' elif self.operator not in OPERATORS: raise AttributeError("Unsupported operator '%s'" % self.operator)
(self, plugin_type=None, name=None, version=None, operator=None)
[ 0.024113791063427925, -0.03640272840857506, -0.013012907467782497, -0.038277626037597656, 0.03194752335548401, -0.04039384797215462, 0.021180780604481697, 0.03994832560420036, -0.06356091052293777, 0.018349871039390564, 0.035994332283735275, 0.04692814499139786, -0.03380385786294937, 0.020512500777840614, -0.027937840670347214, -0.02706536278128624, 0.028606120496988297, -0.006176954600960016, 0.0019131851149722934, -0.03575301170349121, -0.005666462238878012, -0.023742523044347763, 0.0193058829754591, 0.09586113691329956, 0.07533007115125656, 0.05832604318857193, 0.05090070143342018, -0.013681188225746155, -0.02994268201291561, -0.011425741016864777, -0.009968518279492855, 0.020623881369829178, 0.03499191254377365, 0.04974977672100067, -0.0025501400232315063, -0.03222597390413284, -0.0155282411724329, 0.04681676626205444, -0.0791541188955307, 0.042955588549375534, 0.05981111153960228, 0.007838374003767967, -0.056135568767786026, -0.03703388199210167, -0.0015453988453373313, 0.021923314779996872, -0.01744026690721512, 0.01586238108575344, 0.006887002382427454, -0.03979982063174248, 0.004775421693921089, -0.0019537925254553556, 0.04076511412858963, -0.015509678050875664, -0.04284420982003212, 0.07410489022731781, 0.09682642668485641, 0.0470024012029171, -0.011351487599313259, 0.08063919097185135, -0.052497152239084244, 0.031372059136629105, -0.008409197442233562, -0.009532279334962368, -0.007248987909406424, -0.026397082954645157, -0.02346407249569893, -0.04633411765098572, -0.025060521438717842, 0.0710233747959137, 0.024150917306542397, -0.0030072624795138836, 0.012511697597801685, -0.03898303210735321, 0.04670538753271103, 0.02303711697459221, -0.04109925404191017, 0.050121042877435684, 0.02350120060145855, 0.041470520198345184, -0.003984158858656883, 0.013736878521740437, -0.024912014603614807, -0.04555445909500122, 0.013987483456730843, -0.003659300273284316, -0.04366099834442139, -0.06504597514867783, 0.045331697911024094, 0.06096203997731209, -0.07804031670093536, -0.06278124451637268, -0.013022189028561115, -0.012316782027482986, 0.0190459955483675, -0.008274612948298454, 0.0332469567656517, -0.06823886930942535, 0.04232443496584892, 0.029682794585824013, -0.009439462795853615, -0.021403541788458824, -0.035734448581933975, -0.02129216119647026, 0.018563348799943924, -0.06066502630710602, 0.004647798370569944, -0.00543906120583415, -0.009332723915576935, 0.008037930354475975, 0.02558029443025589, 0.0026568793691694736, -0.07469891756772995, 0.011564966291189194, -0.005944912321865559, -0.012780865654349327, -0.036124277859926224, -0.018479814752936363, 0.021496357396245003, -0.026230012997984886, -0.017913632094860077, 0.04848746955394745, -0.040319595485925674, 0.09586113691329956, 0.041247762739658356, 0.007239706348627806, 0.045071810483932495, -0.05383371189236641, -0.02125503495335579, -0.003004942089319229, 0.05264565721154213, -0.004812548402696848, -0.04139626771211624, -0.02710248902440071, -0.03577157482504845, -0.020883766934275627, 0.001625453238375485, 0.04321547597646713, -0.03458352014422417, 0.0027172102127224207, 0.012075458653271198, 0.006896283943206072, -0.011323642916977406, -0.06240997835993767, -0.006408996414393187, -0.010655362159013748, 0.009499793872237206, -0.005949553567916155, -0.0005136826657690108, -0.018804673105478287, -0.024243734776973724, 0.0090542733669281, 0.01895317994058132, -0.023761086165905, 0.037442274391651154, -0.030443891882896423, 0.02663840539753437, -0.06712506711483002, 0.01183413527905941, -0.02040112018585205, 0.03965131193399429, 0.01662347838282585, -0.014033892191946507, -0.03003549948334694, 0.017495956271886826, -0.013012907467782497, 0.005230223760008812, -0.05858593061566353, -0.02706536278128624, 0.0007518156198784709, -0.03165050968527794, -0.05387083813548088, -0.030852286145091057, 0.050715070217847824, -0.04525744542479515, 0.04692814499139786, 0.014507257379591465, 0.03079659678041935, 0.013486272655427456, -0.05498464033007622, 0.022684412077069283, 0.0019027432426810265, -0.09289100021123886, 0.03471346199512482, 0.036959629505872726, -0.0007175894570536911, 0.04752217233181, 0.00945802591741085, 0.0005510994233191013, 0.00573607487604022, 0.011360769160091877, -0.03237448260188103, 0.0034017337020486593, 0.04703952744603157, 0.019287319853901863, 0.00603308854624629, 0.020642444491386414, -0.032727185636758804, -0.01105447392910719, 0.12311213463544846, 0.000486127712065354, 0.01236319076269865, -0.012251810170710087, 0.012548823840916157, -0.005963475909084082, -0.010386194102466106, 0.061778824776411057, 0.0009125046199187636, 0.018860362470149994, -0.03957705944776535, 0.041544776409864426, -0.027028236538171768, -0.027473757043480873, 0.05082644894719124, -0.03515898436307907, -0.043846629559993744, 0.04548020660877228, 0.011435022577643394, 0.041507650166749954, 0.06363516300916672, 0.07959964126348495, 0.06408067792654037, 0.05182887241244316, 0.028197728097438812, 0.0262114480137825, 0.021793371066451073, 0.007054072804749012, -0.041507650166749954, -0.06066502630710602, 0.0012727496214210987, 0.014303060248494148, -0.0042695701122283936, 0.014730017632246017, -0.004394873045384884, -0.03605002537369728, -0.013820413500070572, 0.004886801820248365, 0.05780626833438873, -0.08665371686220169, 0.0042695701122283936, 0.06240997835993767, -0.016827676445245743, -0.014832115732133389, 0.010562545619904995, -0.024800634011626244, -0.06333814561367035, -0.012548823840916157, -0.007959036156535149, 0.024410804733633995, -0.030573835596442223, 0.05145760253071785, -0.031242117285728455, -0.0155282411724329, -0.014145271852612495, -0.015667466446757317, 0.0218861885368824, 0.019157376140356064, -0.051346223801374435, 0.03816624730825424, -0.0470024012029171, -0.0583631694316864, 0.004789344035089016, 0.017189661040902138, 0.04321547597646713, 0.007077276706695557, -0.07455041259527206, 0.03638416528701782, 0.007132967002689838, 0.03653267025947571, 0.023649707436561584, 0.11657783389091492, 0.037089571356773376, 0.005030667409300804, 0.052200138568878174, -0.023594016209244728, -0.0980144813656807, 0.020883766934275627, -0.003708028933033347, 0.006176954600960016, -0.02142210491001606, 0.023185623809695244, 0.021533485502004623, 0.026452772319316864, -0.029849864542484283, -0.02108796499669552, 0.006910206750035286, -0.02320418693125248, -0.010868840850889683, -0.03799917548894882, 0.004218521062284708, -0.03432363271713257, 0.039725568145513535, -0.015351889654994011, -0.004255647771060467, 0.019138813018798828, 0.05093783140182495, -0.045925725251436234, 0.01696690171957016, 0.031242117285728455, -0.03317270427942276, 0.01153712160885334, -0.058140408247709274, -0.0030397484079003334, 0.002884280402213335, -0.0408022403717041, -0.008047211915254593, 0.014776425436139107, 0.004719731397926807, 0.012353909201920033, 0.021310724318027496, 0.06656816601753235, 0.045665837824344635, -0.07451328635215759, 0.028104910627007484, 0.015686029568314552, 0.04574009031057358, 0.07577559351921082, -0.07529294490814209, 0.008075056597590446, 0.057583507150411606, -0.00023595757375005633, 0.030610961839556694, -0.005244146101176739, 0.018442686647176743, -0.03872314468026161, -0.02346407249569893, -0.024707818403840065, -0.03554881364107132, -0.006938051898032427, -0.017124690115451813, -0.042695701122283936, 0.03003549948334694, 0.03894590586423874, 0.01293865405023098, -0.013319202698767185, -0.05943984538316727, 0.01306859776377678, -0.03614284098148346, -0.022851482033729553, 0.04276995733380318, 0.06875864416360855, 0.012678767554461956, -0.0147207360714674, -0.004179073963314295, -0.026824038475751877, -0.034342195838689804, -0.02452218346297741, -0.052200138568878174, 0.06924129277467728, -0.043586742132902145, -0.027176743373274803, -0.031242117285728455, -0.051309097558259964, -0.027640827000141144, 0.06240997835993767, -0.06705081462860107, 0.0026104708667844534, -0.02545035071671009, -0.004320619627833366, -0.02868037484586239, 0.005234864540398121, 0.019398700445890427, 0.010989503003656864, 0.052200138568878174, -0.03723808005452156, -0.04640837386250496, 0.07507017999887466, -0.005944912321865559, -0.010024208575487137, -0.02366827055811882, 0.0005252847913652658, -0.011861979961395264, -0.02558029443025589, -0.05880868807435036, 0.002445721300318837, 0.006037729326635599, 0.03547456115484238, -0.007434621453285217, -0.005884581711143255, -0.10217267274856567, 0.005420498084276915, 0.02435511350631714, -0.02558029443025589, 0.03202177584171295, -0.004682604689151049, 0.016140831634402275, -0.002390031237155199, 0.0588829442858696, 0.04948988929390907, 0.02676834911108017, -0.033748168498277664, 0.017236068844795227, 0.01866544783115387, -0.026062941178679466, 0.0001760617597028613, 0.04871022701263428, -0.0326714925467968, -0.027028236538171768, -0.06215009093284607, 0.002756657311692834, 0.03998545557260513, -0.07362224161624908, 0.016781266778707504, 0.03662548586726189, -0.021329287439584732, -0.00776412058621645, 0.04871022701263428, 0.03155769407749176, -0.009174935519695282, -0.018052857369184494, 0.004158189985901117, -0.0326714925467968, -0.025561731308698654, -0.028531868010759354, -0.035957206040620804, 0.016521381214261055, 0.07120900601148605, -0.037943486124277115, -0.003580405842512846, -0.027306687086820602, -0.003378529567271471, 0.011388614773750305, 0.024317987263202667, 0.02429942414164543, 0.052237264811992645, 0.01213114894926548, 0.01616867631673813, -0.026991110295057297, -0.011657782830297947, -0.01671629585325718, -0.03979982063174248, 0.025338971987366676, 0.010126306675374508, -0.04785631224513054, 0.0075506423600018024, 0.009295596741139889, 0.0026104708667844534, -0.018433405086398125, 0.02231314592063427, 0.030388202518224716, -0.031186426058411598, -0.02964566834270954, 0.03736802190542221, 0.03746083751320839, -0.04232443496584892, -0.012743739411234856, -0.005531878210604191, 0.008223563432693481, -0.03950280696153641, -0.01840556040406227, 0.0111380098387599, 0.06441482156515121, 0.03343259170651436, -0.03411943465471268, 0.023594016209244728, -0.03202177584171295, -0.04024533927440643, 0.01853550411760807, 0.017913632094860077, -0.03278287500143051, -0.02680547535419464, 0.025821618735790253, -0.002944611245766282, -0.0413220152258873, -0.06255848705768585, 0.07414201647043228, 0.03330264985561371, 0.01034906692802906, 0.0467425137758255, 0.003719631116837263, -0.004817189183086157, 0.030221132561564445, 0.011249389499425888, 0.056989479809999466, -0.03779497742652893, -0.007016946095973253, -0.013263513334095478, -0.003921507392078638, -0.029664231464266777, -0.06764484196901321, -0.05780626833438873, 0.013226386159658432, 0.022257454693317413, 0.017681589350104332, -0.03991119936108589, -0.03668117895722389, 0.017291760072112083, -0.07406776398420334, 0.03413799777626991, 0.009212061762809753, -0.04276995733380318, 0.061778824776411057, 0.024317987263202667, -0.0072953961789608, 0.006432200316339731, 0.05509601905941963, -0.011128727346658707, 0.0685730129480362, 0.022090384736657143, 0.03994832560420036, 0.03155769407749176, 0.02413235418498516, -0.00846024602651596, -0.03939142823219299, 0.06515735387802124, -0.08873280882835388, 0.0007726994226686656, 0.01759805530309677, -0.021644864231348038, -0.014497975818812847, -0.05743500217795372, -0.04841321334242821, 0.008534499444067478, 0.006585347931832075, -0.002591907512396574, 0.009485871531069279, -0.01595519855618477, 0.02274010330438614, -0.06764484196901321, -0.004420397337526083, 0.024206606671214104, 0.008641239255666733, 0.022127512842416763, -0.06348665058612823, -0.011499994434416294, 0.00009702250099508092, -0.04451490938663483, -0.04395801201462746, 0.034249380230903625, 0.0027705798856914043, 0.01524979155510664, -0.0071097626350820065, -0.07989665120840073, 0.003893662476912141, -0.014256652444601059, 0.042398687452077866, -0.06007099896669388, 0.09118317067623138, 0.06734783202409744, -0.004248686600476503, 0.002796104410663247, 0.01488780602812767, 0.006060933694243431, -0.01726391538977623, 0.02901451475918293, -0.014098864048719406, 0.022684412077069283, 0.056135568767786026, -0.03049958311021328, -0.02825341746211052, 0.02079095132648945, -0.025376098230481148, -0.05316543206572533, -0.0340266190469265, 0.016744140535593033, 0.036421291530132294, 0.0145258205011487, -0.06311538815498352, 0.03515898436307907, 0.001411974779330194, 0.010163433849811554, -0.022387398406863213, -0.05182887241244316, 0.04767068102955818, -0.04644550010561943, -0.000009598918950359803, 0.052200138568878174, -0.050418056547641754, 0.004014324396848679, 0.030258258804678917, 0.045925725251436234, -0.07280545681715012, 0.0012367831077426672, -0.02197900600731373, 0.006743136327713728, 0.015110566280782223, 0.029237274080514908, 0.06619690358638763, -0.03545599803328514, 0.019398700445890427, -0.008441682904958725, -0.005313758738338947, -0.029237274080514908, -0.03371104225516319, -0.033061325550079346, -0.012446725741028786, 0.02442936785519123, 0.034379322081804276, 0.013087160885334015, 0.05316543206572533, 0.018043575808405876, -0.008116824552416801, 0.008984660729765892, -0.002933009061962366, -0.03554881364107132, -0.061778824776411057, 0.0013203182024881244, -0.06790473312139511, 0.043586742132902145, -0.028791753575205803, -0.03406374529004097, -0.010330503806471825, -0.04830183461308479, -0.0402824692428112, 0.02650846168398857, -0.02066100761294365, -0.08390633761882782, 0.05684097483754158, 0.003958634100854397, -0.037980612367391586, 0.05917995795607567, -0.008799027651548386, -0.025338971987366676, 0.03471346199512482, 0.03471346199512482, 0.005420498084276915, -0.008812949992716312, 0.022201765328645706, 0.012214683927595615, -0.008107542991638184, -0.034973349422216415, 0.052831292152404785, 0.047188032418489456, 0.027158180251717567, -0.06307826191186905, -0.030518146231770515, -0.010562545619904995, -0.08234701305627823, 0.029924118891358376, -0.06374654173851013, 0.008269972167909145, -0.04911862313747406, -0.007481029722839594, -0.055764298886060715, -0.03508472815155983, -0.03653267025947571, 0.03950280696153641, -0.019751403480768204, 0.06653103977441788, 0.026712659746408463, 0.01980709284543991, 0.007481029722839594, 0.05479900538921356, 0.011379333212971687, -0.01925019361078739, 0.035140421241521835, -0.004476087633520365, 0.003434219630435109, 0.01482283417135477, 0.0006021486478857696, -0.01077602431178093, 0.011249389499425888, -0.023594016209244728, -0.0005772041622549295, -0.04848746955394745, 0.04845033958554268, 0.009578688070178032, 0.02914445847272873, 0.041210636496543884, -0.0024967703502625227, -0.03269005939364433, 0.026527026668190956, 0.036031462252140045, 0.06968681514263153, 0.014924932271242142, 0.02782646007835865, 0.004016644787043333, -0.04195316880941391, -0.0332469567656517, 0.003921507392078638, -0.005796405952423811, 0.015129129402339458, 0.02643420919775963, -0.006186236161738634, -0.00115324801299721, 0.004483048804104328, -0.0218861885368824, -0.0006027287454344332, -0.05060368776321411, 0.010803868994116783, -0.012604514136910439, 0.02617432177066803, 0.013792567886412144, -0.037943486124277115, -0.03614284098148346, 0.016744140535593033, 0.016901928931474686, 0.04098787531256676, -0.006051651667803526, -0.10143014043569565, -0.03432363271713257, 0.0588829442858696, 0.027213869616389275, -0.02235027216374874, 0.03224453702569008, -0.02795640379190445, -0.0291815847158432, -0.054353486746549606, -0.025635985657572746, 0.00629761628806591, 0.042138803750276566, -0.0032230615615844727, -0.054316360503435135, 0.05323968455195427, 0.008344225585460663, -0.005564363673329353, -0.009379131719470024, -0.02079095132648945, 0.05528165400028229, -0.044849053025245667, -0.0110080661252141, 0.04544307664036751, 0.009267752058804035, -0.06296688318252563, 0.0245964378118515, 0.07804031670093536, 0.022368835285305977, 0.032430171966552734, -0.02812347374856472, 0.013226386159658432, 0.004107140935957432, -0.06901853531599045, 0.02617432177066803, -0.02168199233710766, 0.031186426058411598, 0.01306859776377678, -0.027640827000141144, -0.022795792669057846, -0.013792567886412144, -0.020178360864520073, -0.027269558981060982, 0.011964078061282635, -0.011379333212971687, 0.0014595433603972197, 0.03991119936108589, -0.054947514086961746, 0.05528165400028229, -0.010265531949698925, 0.08375783264636993, 0.05457624793052673, -0.021310724318027496, 0.01701330952346325, -0.007457825355231762, -0.028531868010759354, 0.02235027216374874, 0.02888457104563713, 0.015286917798221111, 0.0007576167117804289, -0.003503832034766674, 0.05747212842106819, -0.026155758649110794, -0.06003386899828911, 0.04904436692595482, 0.03178045526146889, -0.014730017632246017, -0.06931554526090622, -0.009077477268874645, 0.03842613101005554, -0.030852286145091057, -0.027882149443030357, -0.018340589478611946, -0.014117427170276642, 0.027770770713686943, -0.016790548339486122, 0.0072953961789608, -0.020605318248271942, 0.01997416280210018, 0.006088778376579285 ]
718,588
pluginlib._objects
__repr__
null
def __repr__(self): attrs = (self.type, self.name, self.operator, self.version) return '%s(%s)' % (self.__class__.__name__, ', '.join([repr(attr) for attr in attrs]))
(self)
[ 0.02513306401669979, -0.03631935268640518, 0.07686062902212143, -0.03532702103257179, 0.05120433494448662, -0.08010826259851456, 0.0014433920150622725, -0.05784393846988678, 0.029625622555613518, -0.008290483616292477, -0.02132611721754074, 0.0041362205520272255, -0.001523455255664885, 0.06383401155471802, -0.023527290672063828, 0.014199369587004185, -0.00489400140941143, -0.08292287588119507, 0.00244474527426064, 0.013107804581522942, 0.0027920615393668413, 0.03684258088469505, 0.02787550911307335, -0.02818223088979721, 0.04943617805838585, 0.037636447697877884, -0.004325665533542633, -0.027081644162535667, -0.002999549265950918, -0.009188092313706875, -0.057158324867486954, -0.0557871051132679, 0.01930536888539791, -0.0431935079395771, -0.0008665990899316967, 0.002925124252215028, -0.02511502243578434, 0.02888588421046734, -0.028452865779399872, 0.004016689490526915, 0.03574199602007866, -0.0228055939078331, -0.02866937592625618, -0.06978800892829895, -0.026991432532668114, -0.015092468820512295, 0.06986017525196075, 0.007041046861559153, -0.008696436882019043, -0.09742896258831024, 0.001605773693881929, 0.06246279180049896, 0.015128552913665771, 0.007194407284259796, -0.05993685498833656, -0.02738836407661438, 0.0532250814139843, 0.020658548921346664, -0.0016565179685130715, 0.0686332955956459, -0.04189445450901985, 0.04203879460692406, 0.0170951746404171, -0.042507898062467575, 0.0045083449222147465, -0.057447005063295364, -0.061993688344955444, 0.0035904378164559603, -0.029553452506661415, 0.02184934727847576, 0.011619306169450283, -0.05380243808031082, -0.0029544432181864977, 0.013874606229364872, -0.033901672810316086, -0.03198917582631111, -0.006066757254302502, 0.018944520503282547, 0.026179524138569832, -0.06242670863866806, -0.024988725781440735, 0.009291836060583591, -0.012746956199407578, -0.027604874223470688, 0.00525935972109437, -0.0531889982521534, -0.05196211487054825, -0.03936851769685745, -0.047343261539936066, 0.01975642889738083, -0.021488498896360397, 0.02056833729147911, -0.030780335888266563, 0.028777629137039185, -0.03734777122735977, -0.010978801175951958, 0.0008519396069459617, -0.04384303465485573, 0.06242670863866806, -0.005191700998693705, 0.032819125801324844, -0.011285522021353245, -0.050626978278160095, -0.019936852157115936, -0.05784393846988678, -0.0330536775290966, -0.03603067621588707, 0.000900992366950959, -0.016752369701862335, 0.018926478922367096, 0.0008868967415764928, 0.08407758921384811, 0.02356337569653988, -0.05344159156084061, 0.059720348566770554, -0.012124493718147278, -0.021380245685577393, 0.010699143633246422, 0.04156969115138054, -0.028344612568616867, -0.007077131886035204, 0.039188094437122345, -0.008994136936962605, 0.05474064499139786, -0.04211096465587616, 0.05300857499241829, -0.004129454493522644, -0.0066666672937572, -0.04362652450799942, -0.07274696230888367, 0.002272214973345399, -0.031357694417238235, -0.05661705508828163, 0.04867839813232422, 0.05705007165670395, 0.0024402346462011337, 0.049616601318120956, 0.0067839426919817924, 0.01606675796210766, 0.11013081669807434, 0.02076680399477482, -0.010329274460673332, 0.014497068710625172, 0.03879116103053093, -0.052359048277139664, -0.027965720742940903, 0.005850248504430056, 0.06877763569355011, 0.01975642889738083, -0.05751917511224747, 0.003161930711939931, 0.01684258133172989, 0.0533333383500576, -0.04214704781770706, 0.03889941796660423, 0.056977901607751846, -0.010239062830805779, -0.053405508399009705, 0.02309427224099636, -0.039729367941617966, -0.037419941276311874, -0.021939558908343315, 0.01014885026961565, -0.0304194875061512, 0.04470906779170036, 0.04102842137217522, 0.020387912169098854, -0.06408660858869553, -0.010248083621263504, 0.004812810570001602, -0.01469553541392088, -0.07844836264848709, -0.0228236373513937, 0.03354082256555557, -0.05513757839798927, 0.06783942878246307, 0.010130807757377625, 0.10464592278003693, -0.01244023535400629, -0.05943166837096214, 0.06119982525706291, -0.05784393846988678, -0.08552098274230957, 0.02206585556268692, 0.04341001808643341, -0.0657825917005539, 0.028037890791893005, -0.018403248861432076, 0.02511502243578434, -0.01066305860877037, 0.026955347508192062, -0.003195760305970907, -0.006287776865065098, 0.028705459088087082, -0.015805143862962723, -0.06978800892829895, -0.017582319676876068, -0.049075331538915634, 0.035164639353752136, 0.04896707460284233, -0.014794768765568733, 0.04016238451004028, -0.007221471052616835, 0.05091565474867821, 0.0342986024916172, -0.023184485733509064, 0.030004512518644333, -0.03976545110344887, 0.03040144592523575, -0.023148400709033012, 0.04243572801351547, 0.0482092946767807, 0.02080288901925087, -0.00614794809371233, -0.0009032476809807122, -0.02076680399477482, -0.027983764186501503, -0.0013712224317714572, -0.04380694776773453, 0.017257556319236755, 0.05477672815322876, -0.02536761574447155, 0.017158323898911476, -0.03278304263949394, -0.044276051223278046, -0.02942715585231781, 0.03274695947766304, 0.008168697357177734, -0.02488047070801258, -0.008628778159618378, 0.030491657555103302, -0.02130807563662529, -0.018385207280516624, 0.00812810193747282, -0.031357694417238235, 0.06917456537485123, -0.04618854448199272, 0.03507442772388458, -0.0406314879655838, 0.011384755373001099, -0.005525485146790743, 0.02506089396774769, -0.0010289807105436921, 0.008394227363169193, 0.036698244512081146, -0.07945873588323593, 0.03861073777079582, 0.0368606261909008, 0.00620658602565527, -0.042471811175346375, 0.03271087259054184, -0.038177721202373505, -0.012169599533081055, -0.012467298656702042, 0.037456024438142776, -0.04027063772082329, -0.03778078779578209, -0.018601715564727783, 0.04698241129517555, -0.001240415032953024, -0.033631034195423126, 0.04232747107744217, -0.012250790372490883, 0.02993234246969223, 0.0482453815639019, 0.0020985568407922983, -0.022679297253489494, 0.006689220201224089, 0.013712224550545216, 0.0178078506141901, 0.1343798041343689, 0.0049706813879311085, -0.07339648902416229, 0.058204784989356995, -0.028615247458219528, -0.0583852082490921, 0.009224177338182926, -0.006892197299748659, -0.05658096820116043, -0.0786648690700531, 0.014000902883708477, -0.014659450389444828, -0.011059992015361786, -0.011429861187934875, 0.010166892781853676, -0.00411366717889905, -0.0017331981798633933, -0.0034258009400218725, 0.009580515325069427, 0.014668472111225128, 0.06949932873249054, 0.04341001808643341, 0.0014963916037231684, 0.0033062698785215616, 0.07476770877838135, -0.0006754623609595001, 0.029788004234433174, 0.030509699136018753, 0.005209743045270443, 0.027713127434253693, -0.022498873993754387, -0.02184934727847576, 0.06376184523105621, 0.010762291960418224, -0.03045557253062725, 0.018385207280516624, 0.02892196923494339, 0.04084799438714981, -0.000739738461561501, 0.009436175227165222, 0.009133965708315372, 0.034352730959653854, 0.008231845684349537, 0.06397835165262222, -0.021109608933329582, 0.03229589760303497, -0.03142986074090004, -0.015462337993085384, 0.036193057894706726, 0.06116373836994171, -0.009300857782363892, 0.02913847751915455, -0.03408209607005119, 0.02996842749416828, 0.0018673884915187955, -0.05798827484250069, -0.018403248861432076, -0.018872350454330444, 0.025944972410798073, 0.030834462493658066, -0.01381145790219307, -0.04232747107744217, 0.012422192841768265, 0.05434371158480644, 0.013342355377972126, 0.028110060840845108, 0.023202527314424515, -0.009508345276117325, -0.0532972514629364, -0.015940461307764053, 0.043265677988529205, 0.025259360671043396, -0.0043820482678711414, -0.014596302062273026, -0.07556157559156418, 0.007117727305740118, -0.02488047070801258, 0.022462788969278336, 0.04586378484964371, -0.0005618516588583589, -0.02383401244878769, -0.006242670584470034, 0.0015798377571627498, 0.00531799765303731, 0.021109608933329582, -0.013576907105743885, -0.022228237241506577, 0.025241319090127945, -0.02560216747224331, 0.030275149270892143, 0.043518271297216415, 0.031375735998153687, 0.028561120852828026, 0.018908435478806496, -0.023256653919816017, -0.03904375433921814, 0.02181326225399971, -0.0030018044635653496, 0.04218313470482826, -0.018709970638155937, -0.06058638170361519, 0.003822733648121357, -0.01535408291965723, -0.06033378839492798, -0.04283266142010689, 0.06679296493530273, 0.000900992366950959, -0.018051421269774437, -0.028290484100580215, -0.0836445689201355, 0.016093822196125984, -0.008516013622283936, 0.029499325901269913, 0.04434822127223015, 0.006892197299748659, 0.025421742349863052, 0.035128556191921234, 0.041497521102428436, 0.021686965599656105, 0.03496617451310158, -0.052864234894514084, -0.013044656254351139, -0.021903473883867264, 0.017555255442857742, -0.03576003760099411, -0.020947227254509926, -0.002260938286781311, -0.03496617451310158, -0.08025260269641876, -0.025439785793423653, 0.010753271169960499, -0.025818675756454468, -0.03200721740722656, -0.009079838171601295, -0.0027356790378689766, -0.0016542626544833183, 0.03141181915998459, 0.013513757847249508, -0.003676139283925295, -0.060045111924409866, 0.0030491657089442015, -0.011493009515106678, -0.018249887973070145, -0.03635543957352638, 0.0787370353937149, 0.0022214706987142563, 0.01281912624835968, 0.01575101539492607, 0.020911142230033875, -0.00474515138193965, -0.014027967117726803, 0.021632838994264603, 0.03657194599509239, 0.034352730959653854, 0.014262517914175987, 0.039693281054496765, -0.011420839466154575, 0.041172757744789124, 0.0430491678416729, 0.043229591101408005, -0.01777176558971405, 0.0032183132134377956, 0.0016779432771727443, 0.023473164066672325, 0.021741092205047607, -0.07397384196519852, 0.021253949031233788, -0.05271989479660988, -0.011862878687679768, 0.05603969842195511, -0.02387009561061859, -0.029860174283385277, 0.013982860371470451, -0.016553902998566628, -0.03393775597214699, 0.022029772400856018, -0.01930536888539791, -0.02055029384791851, 0.026684710755944252, -0.003195760305970907, 0.06783942878246307, 0.021632838994264603, 0.008728011511266232, -0.015308977104723454, 0.005908886436372995, -0.024934597313404083, -0.012575553730130196, -0.05091565474867821, -0.02769508585333824, -0.027027515694499016, -0.012945422902703285, 0.023473164066672325, -0.022967975586652756, 0.026702754199504852, -0.03518268093466759, -0.025006767362356186, 0.047848448157310486, 0.006680198945105076, -0.03990979120135307, -0.010816419497132301, 0.03406405448913574, 0.011231394484639168, -0.015877312049269676, 0.011998197063803673, -0.03702300786972046, 0.07830402255058289, -0.022372577339410782, -0.01498421374708414, -0.08566532284021378, -0.07018493860960007, -0.0710509717464447, -0.052359048277139664, -0.04510600119829178, -0.005841227248311043, -0.01736581139266491, 0.022210195660591125, 0.005588633473962545, 0.019124945625662804, 0.018051421269774437, -0.011429861187934875, 0.005620208103209734, 0.08595399558544159, -0.05892648175358772, 0.012981506995856762, 0.02939107082784176, 0.04636897146701813, -0.027316195890307426, -0.0012347768060863018, -0.06488047540187836, 0.03357690945267677, 0.012250790372490883, -0.04723500460386276, 0.023797927424311638, -0.015922419726848602, 0.035651784390211105, -0.020838972181081772, 0.056977901607751846, 0.02744249254465103, -0.0036693732254207134, -0.02336490899324417, 0.02866937592625618, -0.07902571558952332, 0.03494812920689583, 0.0041362205520272255, -0.01255751121789217, -0.039188094437122345, 0.008624267764389515, 0.0074064056389033794, -0.03532702103257179, 0.03518268093466759, 0.04586378484964371, -0.0029905280098319054, -0.07945873588323593, -0.012710871174931526, -0.0355074442923069, 0.04034280776977539, -0.016093822196125984, -0.005529996007680893, -0.03525485098361969, 0.05282814800739288, 0.02841678075492382, 0.0014106902526691556, -0.023202527314424515, -0.006865133531391621, -0.04092016443610191, 0.10233649611473083, -0.04510600119829178, 0.0963464230298996, 0.03289129585027695, 0.005534506402909756, 0.03760036453604698, -0.01950383558869362, -0.032566532492637634, -0.03857465460896492, -0.008989626541733742, -0.024447454139590263, 0.02895805425941944, -0.011312585324048996, 0.02004510723054409, -0.024411369115114212, -0.0019136221380904317, -0.0069147502072155476, -0.029481282457709312, -0.028723502531647682, 0.0035701401066035032, 0.09013983607292175, 0.032350026071071625, -0.0027740190271288157, 0.004821831826120615, 0.03507442772388458, 0.019431665539741516, -0.022516915574669838, 0.05806044489145279, 0.00012629679986275733, 0.039729367941617966, 0.06553000211715698, 0.03316193446516991, 0.010942716151475906, -0.04189445450901985, -0.012764998711645603, 0.0063419039361178875, -0.04243572801351547, 0.04867839813232422, -0.011592242866754532, -0.006391520611941814, -0.011023906990885735, -0.0023410015273839235, 0.07520072907209396, -0.02105548232793808, 0.0048849801532924175, -0.026305820792913437, 0.00937302689999342, -0.03904375433921814, -0.05203428491950035, -0.029571495950222015, 0.010617952793836594, -0.016752369701862335, 0.012341002002358437, 0.009327921085059643, -0.022174110636115074, -0.0406314879655838, -0.028037890791893005, 0.011880921199917793, -0.012945422902703285, 0.0304194875061512, -0.05019395798444748, -0.026035184040665627, -0.003209291957318783, -0.015029319562017918, 0.04676590487360954, 0.025692379102110863, 0.0006100586615502834, 0.039476774632930756, 0.004003157839179039, 0.018583672121167183, -0.03357690945267677, 0.011826793663203716, 0.038430314511060715, -0.026269735768437386, 0.02482634410262108, 0.006107352674007416, 0.0506991483271122, -0.03900767117738724, -0.019070817157626152, 0.0015978801529854536, -0.040198467671871185, -0.02639603242278099, 0.020387912169098854, -0.022462788969278336, -0.0008840776281431317, -0.016265224665403366, 0.025981057435274124, -0.0329454243183136, 0.026305820792913437, -0.03263870254158974, 0.03189896419644356, -0.03200721740722656, -0.0380694642663002, 0.05928732827305794, -0.0557871051132679, 0.025692379102110863, 0.005692377686500549, -0.0018662608927115798, -0.06563825160264969, -0.09179973602294922, -0.0355435311794281, 0.010076681151986122, 0.011917006224393845, -0.03402796760201454, 0.030563827604055405, 0.02435724064707756, -0.013856563717126846, -0.05448805168271065, 0.005376635584980249, -0.025259360671043396, 0.032620660960674286, -0.037925127893686295, -0.07462336868047714, 0.02127199061214924, -0.050626978278160095, -0.02639603242278099, 0.008434822782874107, 0.004009923432022333, -0.004718087613582611, -0.008313036523759365, 0.02688317745923996, -0.05019395798444748, 0.03657194599509239, -0.015669824555516243, -0.01684258133172989, -0.02688317745923996, -0.051096078008413315, 0.017510149627923965, -0.03020297922194004, 0.052936404943466187, 0.04846188798546791, -0.028849799185991287, 0.00008922530832933262, 0.009616599418222904, -0.03532702103257179, 0.0014941362896934152, 0.04243572801351547, 0.008078484795987606, -0.012801083736121655, -0.06282363831996918, 0.012223727069795132, 0.020838972181081772, 0.029625622555613518, 0.020369870588183403, -0.03882724791765213, 0.007456022314727306, -0.011429861187934875, -0.015092468820512295, -0.06516915559768677, 0.007880019024014473, -0.01535408291965723, -0.01724853552877903, 0.04766802489757538, -0.008132612332701683, -0.09807848930358887, -0.051889944821596146, -0.015525486320257187, 0.033883627504110336, -0.010960758663713932, 0.0506991483271122, -0.007947677746415138, 0.06498872488737106, -0.07166441529989243, 0.02940911427140236, -0.0003047474310733378, 0.03350473940372467, 0.03594046086072922, 0.0005144903552718461, 0.010437528602778912, 0.06372576206922531, 0.04795670136809349, 0.05964817851781845, -0.015056383796036243, 0.008682905696332455, -0.01674334891140461, -0.0036017142701894045, 0.11121335625648499, -0.012007217854261398, -0.05632837489247322, 0.025295445695519447, 0.013198016211390495, 0.02154262736439705, 0.022390618920326233, -0.04712675139307976, 0.026522329077124596, -0.017437979578971863, 0.024700047448277473, 0.04770410805940628, 0.0006906856433488429, 0.03045557253062725, 0.09071718901395798, -0.04918358474969864, -0.017203429713845253, -0.03749210759997368, -0.016544882208108902, 0.00011445648124208674, 0.043229591101408005, -0.0254037007689476, -0.02082093060016632, 0.041677944362163544, -0.010825440287590027, 0.00247406424023211, -0.03628326952457428, 0.03047361597418785, 0.04445647448301315, 0.0004440121992956847, 0.0659269317984581, 0.03152007609605789, -0.005421741399914026, -0.014713577926158905, 0.0003540821198839694, 0.014993235468864441, 0.04413171112537384, -0.0012426703469827771, 0.011790708638727665, 0.032584577798843384, 0.012007217854261398, -0.006111863534897566, -0.015345062129199505, 0.06477221846580505, -0.037889041006565094, 0.0506991483271122, 0.025926930829882622, 0.008046911098062992, -0.036950837820768356, -0.013423546217381954, -0.05484889820218086, 0.02459179237484932, 0.025746505707502365, -0.030762294307351112, 0.041714031249284744, -0.009769960306584835, -0.023130357265472412 ]
718,589
pluginlib.exceptions
EntryPointWarning
Warning for errors with importing entry points Subclass of :py:exc:`ImportWarning`
class EntryPointWarning(ImportWarning): """ Warning for errors with importing entry points Subclass of :py:exc:`ImportWarning` """
null
[ -0.01638924703001976, -0.027443310245871544, 0.0009832177311182022, 0.004396502394229174, 0.025671005249023438, -0.03994079679250717, 0.0803200975060463, 0.056604109704494476, -0.013082163408398628, -0.027333682402968407, -0.017540331929922104, -0.021158024668693542, 0.059344787150621414, -0.0033733162563294172, -0.04969760403037071, 0.003848366905003786, 0.01727539859712124, 0.08200104534626007, -0.015941603109240532, 0.03208418935537338, -0.02620087005198002, -0.03610384836792946, 0.011839723214507103, 0.018910668790340424, -0.031042732298374176, 0.09705650061368942, 0.03522683307528496, -0.020646430552005768, 0.03994079679250717, -0.06913813948631287, -0.02947141043841839, 0.0071531664580106735, -0.0004710538196377456, 0.010743453167378902, 0.0262922253459692, -0.05766383931040764, 0.02751639485359192, 0.026986530050635338, -0.04238913208246231, -0.008592021651566029, -0.03288812190294266, 0.059929464012384415, 0.014224112033843994, -0.04136594757437706, 0.04111015051603317, -0.008674241602420807, -0.023277482017874718, 0.03590286523103714, -0.05115929991006851, -0.009427928365767002, -0.002763515803962946, 0.016900839284062386, 0.07264620810747147, 0.01419670507311821, 0.02828378416597843, 0.08667846769094467, 0.05437502637505531, 0.017302805557847023, -0.04355848953127861, 0.015091992914676666, 0.008468691259622574, 0.054119229316711426, 0.0007399827009066939, -0.023825615644454956, 0.043046895414590836, -0.025634463876485825, 0.010140503756701946, -0.020317550748586655, -0.054411567747592926, 0.017987975850701332, -0.011967621743679047, -0.044033538550138474, -0.055434755980968475, 0.008349928073585033, 0.09997988492250443, -0.06296247988939285, 0.00029776309384033084, -0.009318300522863865, 0.024757446721196175, 0.019586702808737755, -0.008276843465864658, -0.03396612033247948, -0.02380734495818615, 0.03928303346037865, 0.03424018621444702, -0.010505927726626396, 0.012333045713603497, -0.0273154117166996, -0.03135334327816963, 0.09712958335876465, -0.07034403830766678, 0.02590853162109852, -0.058613941073417664, 0.004248049110174179, 0.003592570312321186, -0.0011545100715011358, 0.02868575043976307, -0.030768664553761482, -0.0257075484842062, 0.007842903025448322, 0.045970283448696136, -0.05422885715961456, -0.016663314774632454, -0.03268713876605034, -0.016617637127637863, -0.04279109835624695, 0.038077134639024734, -0.0031517783645540476, -0.031097546219825745, -0.0039557102136313915, 0.0013041053898632526, -0.04374120011925697, -0.06321827322244644, -0.01324660424143076, -0.020226193591952324, -0.056457940489053726, -0.0030741258524358273, -0.038844525814056396, 0.0663243755698204, 0.03721839189529419, -0.0063538020476698875, 0.03986771032214165, -0.0896749421954155, -0.02643839456140995, 0.05474045127630234, -0.02780873328447342, -0.00039654166903346777, 0.007582538761198521, 0.008217462338507175, 0.01248835027217865, 0.012872044928371906, 0.000714859867002815, -0.06855346262454987, -0.060075633227825165, -0.07630044221878052, -0.034368086606264114, 0.048710960894823074, 0.019422262907028198, -0.004512981045991182, 0.008793004788458347, -0.04063510149717331, 0.044472046196460724, 0.016718128696084023, -0.002064643194898963, 0.007253657560795546, -0.02088395692408085, -0.05064770579338074, 0.00642688712105155, -0.016471467912197113, 0.012935994192957878, 0.05327875539660454, -0.01419670507311821, -0.07345013320446014, 0.016307026147842407, -0.005289506167173386, -0.014233248308300972, 0.03135334327816963, -0.05167089030146599, 0.02249182015657425, -0.03281503543257713, -0.010067419148981571, -0.04443550482392311, 0.06303556263446808, -0.006372073199599981, -0.02360636182129383, 0.017503788694739342, 0.04385082796216011, -0.0534614659845829, 0.009053369052708149, -0.012205147184431553, -0.019769415259361267, 0.03727320209145546, 0.029891647398471832, 0.030622495338320732, 0.054996248334646225, 0.0010431701084598899, 0.016599364578723907, 0.05682336539030075, 0.038259848952293396, 0.029727207496762276, 0.0797354206442833, -0.027351953089237213, -0.005444811191409826, -0.00824486929923296, 0.03038496896624565, 0.03301601856946945, 0.0064314547926187515, 0.02844822406768799, -0.01673639938235283, -0.015503094531595707, 0.020646430552005768, 0.029252156615257263, 0.04297381266951561, 0.025926802307367325, -0.04706655442714691, -0.027626020833849907, -0.06943047791719437, -0.014452502131462097, 0.015091992914676666, -0.014032265171408653, -0.06584932655096054, 0.041292861104011536, -0.0019070542184635997, 0.007043539080768824, 0.0400138795375824, 0.07988159358501434, -0.0014457069337368011, -0.020281007513403893, -0.05817543342709541, -0.0015256433980539441, 0.0379675067961216, -0.04074472934007645, -0.002155998954549432, 0.031828392297029495, -0.012031571008265018, 0.013027350418269634, 0.04238913208246231, -0.014516451396048069, -0.026018157601356506, 0.019203009083867073, 0.049295637756586075, 0.05477699264883995, 0.04483747109770775, 0.03288812190294266, 0.026456665247678757, 0.00137833203189075, 0.019641516730189323, 0.01574975624680519, 0.032467883080244064, -0.019732872024178505, -0.012808095663785934, -0.024410294368863106, -0.05583672225475311, 0.025963343679904938, -0.004327985458076, -0.014041400514543056, -0.010231859982013702, -0.0016763806343078613, 0.012278231792151928, -0.01119109708815813, 0.008916335180401802, 0.0325775109231472, -0.04863787814974785, -0.009131021797657013, 0.005417404230684042, -0.01441595982760191, -0.02620087005198002, -0.00015087996143847704, 0.010524198412895203, -0.006230471655726433, 0.01629789173603058, 0.02419104054570198, -0.02492188662290573, 0.014790519140660763, -0.0243920236825943, -0.03906377777457237, 0.0005295786540955305, -0.013465858064591885, 0.00034601043444126844, 0.006513675209134817, -0.04925909638404846, 0.023862158879637718, 0.011136283166706562, 0.02521422691643238, 0.0006406331667676568, 0.0014422811800614, -0.026365309953689575, 0.0010631541954353452, 0.0034920789767056704, 0.029928190633654594, 0.14251519739627838, 0.03935611620545387, -0.011054063215851784, 0.06628783792257309, -0.026803817600011826, -0.014817925170063972, -0.02550656534731388, 0.0759350135922432, -0.0007354149129241705, 0.03961191326379776, 0.07615426927804947, -0.019294364377856255, -0.044508591294288635, 0.06818803399801254, -0.04520289599895477, -0.05623868852853775, -0.006787742953747511, 0.0239535141736269, -0.05857739597558975, 0.012049841694533825, 0.024867072701454163, 0.020025210455060005, 0.029051173478364944, -0.033929578959941864, -0.018572652712464333, 0.05718878656625748, -0.029782021418213844, -0.03195628896355629, 0.04074472934007645, -0.016124315559864044, 0.011163690127432346, 0.02018965221941471, -0.055580925196409225, 0.043485403060913086, 0.005737150087952614, -0.024994971230626106, 0.04483747109770775, -0.008304250426590443, -0.02874056249856949, -0.027242327108979225, 0.033235274255275726, 0.003277392592281103, 0.026420123875141144, -0.022418735548853874, -0.03752899914979935, -0.003878057701513171, 0.034806594252586365, -0.0302387997508049, -0.03698086366057396, 0.03877143934369087, -0.05137855187058449, 0.04297381266951561, 0.050757333636283875, -0.006467997096478939, -0.0018579504685476422, 0.017375890165567398, 0.07863914966583252, -0.010240995325148106, 0.004997167270630598, -0.013091299682855606, -0.04776085913181305, -0.034751780331134796, -0.03811367601156235, -0.005595548544079065, -0.030019545927643776, -0.0006651850999332964, -0.005782827734947205, -0.06113536283373833, 0.026913445442914963, -0.02609124220907688, 0.006422318983823061, 0.03449598327279091, -0.0068288529291749, 0.04801665619015694, -0.038661811500787735, -0.021541718393564224, 0.00511136231943965, -0.008336225524544716, 0.028210699558258057, 0.006787742953747511, -0.007591674569994211, 0.06277976930141449, -0.08507060259580612, -0.0003705623385030776, 0.04977069050073624, -0.023880429565906525, -0.06679942458868027, -0.040123507380485535, 0.024282395839691162, -0.04005042091012001, 0.057627297937870026, -0.024720903486013412, -0.005737150087952614, -0.014041400514543056, -0.04308343678712845, -0.014288061298429966, 0.03659716993570328, -0.014845332130789757, -0.028795376420021057, 0.02146863378584385, -0.013438452035188675, -0.013420180417597294, -0.009236080572009087, -0.026694191619753838, 0.03191974759101868, 0.008368199691176414, 0.03429500013589859, 0.052949875593185425, -0.04476438835263252, 0.0560925155878067, -0.019842499867081642, 0.032029375433921814, -0.022108126431703568, -0.027552936226129532, -0.001655825530178845, -0.020719517022371292, 0.006550217512995005, -0.012479214929044247, -0.010716046206653118, 0.027827003970742226, 0.02799144573509693, -0.045677945017814636, -0.013831282034516335, 0.0058148023672401905, -0.006198497023433447, -0.0265845637768507, -0.0024688930716365576, -0.01698306016623974, 0.02068297378718853, 0.03703567758202553, 0.04794357344508171, 0.01419670507311821, -0.020408906042575836, -0.0003822673170361668, 0.033399712294340134, -0.0033299222122877836, 0.009025962091982365, -0.06811495125293732, 0.02696825936436653, 0.014105349779129028, -0.023332294076681137, 0.007564267609268427, 0.0020178232807666063, -0.054959703236818314, 0.019970398396253586, 0.049478352069854736, 0.007422666065394878, -0.04845516383647919, -0.024994971230626106, -0.07396172732114792, 0.046847302466630936, -0.05013611167669296, 0.05547129735350609, 0.04472784325480461, -0.005070251878350973, -0.031389884650707245, -0.05320567265152931, -0.042608387768268585, 0.016261348500847816, -0.011163690127432346, -0.06058722734451294, -0.04180445522069931, -0.020701244473457336, -0.04838208109140396, -0.019732872024178505, -0.05967366695404053, 0.03434981405735016, 0.020792601630091667, 0.007116624154150486, 0.027132699266076088, -0.03288812190294266, 0.03899069502949715, 0.09040579199790955, -0.010213588364422321, 0.04414316639304161, -0.0023912405595183372, -0.018472161144018173, 0.025396937504410744, 0.008729055523872375, -0.039392661303281784, -0.03975808247923851, -0.027973173186182976, 0.04198716580867767, -0.029434869065880775, -0.04249875992536545, -0.0596005842089653, -0.0952293798327446, -0.015822840854525566, -0.0025693844072520733, 0.016937382519245148, -0.028722291812300682, 0.014881874434649944, -0.004910379182547331, -0.0391368642449379, 0.0549231618642807, 0.0216148030012846, 0.03486140817403793, -0.027772190049290657, -0.02430066652595997, 0.040854353457689285, 0.059929464012384415, 0.005983810871839523, 0.02976374886929989, 0.0014502747217193246, -0.014406824484467506, 0.024720903486013412, 0.00426860386505723, 0.0176042802631855, 0.03771171346306801, 0.004216074477881193, 0.0183351282030344, -0.007989072240889072, 0.032120730727910995, 0.00713489530608058, -0.03224863111972809, -0.041731372475624084, 0.004163544625043869, -0.03102446161210537, 0.015128535218536854, 0.028411682695150375, 0.017375890165567398, 0.011940214782953262, 0.01960497349500656, -0.03376513719558716, 0.02483053132891655, 0.03093310445547104, 0.046226080507040024, 0.07056329399347305, 0.028027987107634544, -0.02380734495818615, 0.0094918766990304, -0.027425037696957588, 0.014644348993897438, -0.06000255048274994, 0.034020934253931046, 0.001467403955757618, 0.028265513479709625, 0.00814894586801529, 0.02722405642271042, -0.012259960174560547, -0.015028044581413269, 0.011026656255126, 0.050026487559080124, 0.05547129735350609, 0.10736144334077835, 0.01258884184062481, -0.02532385289669037, 0.06760335713624954, 0.02868575043976307, 0.005198150407522917, 0.013593756593763828, -0.012789824977517128, 0.09822585433721542, -0.024994971230626106, 0.006436022464185953, -0.006563920993357897, 0.031536053866147995, 0.0059198616072535515, 0.013566349633038044, 0.08243955671787262, 0.012470079585909843, 0.05167089030146599, 0.028649207204580307, -0.06913813948631287, 0.018910668790340424, 0.021742701530456543, -0.038259848952293396, 0.017101822420954704, 0.012424401007592678, 0.018316855654120445, -0.026109512895345688, -0.043923910707235336, 0.045531775802373886, -0.027626020833849907, 0.03361896798014641, -0.017576873302459717, -0.08594762533903122, 0.027242327108979225, -0.07264620810747147, -0.04198716580867767, 0.06113536283373833, 0.005979243200272322, 0.02272934652864933, 0.0027041344437748194, 0.013867824338376522, -0.0803200975060463, 0.020372364670038223, 0.022016769275069237, -0.006682683248072863, 0.0022633422631770372, -0.054265398532152176, -0.04359503090381622, 0.03376513719558716, -0.06687251478433609, -0.04852825030684471, -0.01629789173603058, -0.06738410890102386, -0.017987975850701332, -0.08039318770170212, -0.021011855453252792, -0.01936744898557663, -0.0038141084369271994, 0.03774825483560562, -0.005581845063716173, -0.04472784325480461, 0.060404516756534576, 0.06420492380857468, 0.011163690127432346, 0.02141382172703743, -0.005778260063380003, -0.010789130814373493, 0.015055450610816479, -0.008039318025112152, 0.005051980726420879, -0.007952529937028885, -0.04882058873772621, 0.04198716580867767, -0.012269096449017525, 0.029873376712203026, 0.02927042730152607, -0.026749005541205406, -0.054265398532152176, 0.06617821007966995, -0.07695820182561874, 0.019276093691587448, -0.011273317039012909, -0.0558001771569252, -0.03087829053401947, 0.12044360488653183, -0.00880214013159275, -0.018125008791685104, 0.007472911849617958, -0.012972536496818066, -0.0543384850025177, 0.06869962811470032, 0.017732178792357445, -0.010597283020615578, -0.0210301261395216, -0.04005042091012001, 0.04195062443614006, -0.04297381266951561, -0.01849043183028698, -0.013383638113737106, -0.03224863111972809, -0.02503151446580887, -0.021249379962682724, 0.0432296060025692, -0.03237652778625488, 0.04823591187596321, 0.04648187756538391, -0.020372364670038223, 0.030202258378267288, 0.014178434386849403, 0.0007942252559587359, 0.04721272364258766, 0.03752899914979935, -0.0054539465345442295, -0.02716924250125885, -0.026511479169130325, -0.011136283166706562, -0.03206591680645943, 0.03811367601156235, 0.004467302933335304, -0.06654363125562668, 0.00560925155878067, 0.0105150630697608, 0.032467883080244064, -0.05364418029785156, 0.024702632799744606, 0.0360855758190155, 0.049295637756586075, -0.04750506207346916, -0.03994079679250717, 0.030220529064536095, -0.025524836033582687, 0.035044118762016296, -0.030330155044794083, -0.07761596888303757, 0.05653102695941925, -0.027973173186182976, 0.009564962238073349, 0.06003909185528755, -0.026255683973431587, 0.032796766608953476, -0.03064076602458954, 0.02906944416463375, -0.07995467633008957, -0.012333045713603497, 0.005956403911113739, -0.005878751631826162, 0.0019641516264528036, -0.04385082796216011, -0.024117955937981606, -0.014662620611488819, -0.004937786143273115, 0.03464215248823166, -0.012150333262979984, -0.06818803399801254, -0.028174156323075294, -0.008130674250423908, 0.0061299800872802734, 0.042900726199150085, -0.006298988591879606, -0.010716046206653118, 0.011647876352071762, -0.03283330798149109, -0.05839468538761139, -0.02155999094247818, -0.04502018168568611, -0.016754670068621635, 0.03486140817403793, -0.01819809339940548, -0.03899069502949715, -0.0021525730844587088, -0.06438763439655304, 0.055544380098581314, -0.02219948172569275, 0.0408908985555172, -0.0009906404884532094, -0.03321700170636177, 0.03179185092449188, 0.04925909638404846, -0.004768777638673782, 0.03800405189394951, 0.000074155286711175, -0.0026698759756982327, -0.03610384836792946, -0.021139753982424736, -0.013118705712258816, -0.043521948158741, 0.00426860386505723, 0.030257070437073708, -0.005129633471369743, 0.04074472934007645, -0.023862158879637718, 0.01726626418530941, -0.04520289599895477, -0.04505672678351402, 0.006933912169188261, 0.012122927233576775, 0.004718531854450703, 0.0011208226205781102, 0.03064076602458954, -0.06650708615779877, 0.016233941540122032, -0.04589720070362091, 0.012058977968990803, -0.01804278790950775, 0.020134838297963142, -0.018801042810082436, -0.02716924250125885, 0.0026493207551538944, -0.018280314281582832, 0.02716924250125885, -0.005874183960258961, -0.007157734129577875, -0.06142770126461983, -0.043046895414590836, -0.028905004262924194, 0.0034646722488105297, 0.015256433747708797, -0.028868461027741432, -0.050757333636283875, 0.13082163035869598, 0.047103095799684525, 0.0013326540356501937, 0.003181468928232789, 0.024318939074873924, 0.030165715143084526, -0.01207724865525961, 0.050464995205402374, -0.06621474772691727, -0.05894282087683678, -0.022309109568595886, 0.02068297378718853, 0.019879041239619255, 0.03310737386345863, 0.023478463292121887, 0.009437063708901405, 0.03321700170636177, 0.010432843118906021, 0.038698356598615646, -0.025342123582959175, -0.009103614836931229, -0.019440533593297005, -0.05039190873503685, 0.0296541228890419, 0.011364673264324665, -0.030311884358525276, -0.03833293169736862, -0.03601249307394028, -0.008811275474727154, -0.010551605373620987, -0.0108074015006423, 0.04534906521439552, 0.021304193884134293, -0.024117955937981606, 0.0036108416970819235 ]
718,590
pluginlib._parent
Parent
Args: plugin_type(str): Plugin type group(str): Group to store plugins **Class Decorator for plugin parents** ``plugin_type`` determines under what attribute child plugins will be accessed in :py:attr:`PluginLoader.plugins`. When not specified, the class name is used. ``group`` specifies the parent and all child plugins are members of the specified plugin group. A :py:attr:`PluginLoader` instance only accesses the plugins group specified when it was initialized. When not specified, the default group is used. ``group`` should be specified if plugins for different projects could be accessed in an single program, such as in libraries and frameworks.
def _check_skipload(self): """ Determine if subclass should be skipped _skipload_ is either a Boolean or callable that returns a Boolean """ # pylint: disable=protected-access if callable(self.subclass._skipload_): result = self.subclass._skipload_() if isinstance(result, tuple): skip, self.message = result else: skip = result if skip: self.errorcode = 156 elif self.subclass._skipload_: self.errorcode = 50 self.message = 'Skipload flag is True'
(plugin_type=None, group=None)
[ -0.008214619942009449, -0.0009721009992063046, 0.008065673522651196, 0.07077211141586304, -0.038383036851882935, -0.03935796022415161, 0.02448137290775776, 0.01843324676156044, 0.011094250716269016, -0.06286440789699554, 0.07380519807338715, 0.03726368397474289, 0.03708314150571823, -0.04589354619383812, -0.06943610310554504, -0.04426867887377739, 0.0313238799571991, 0.04080228880047798, 0.01953454688191414, -0.054270654916763306, -0.06196170300245285, 0.09482018649578094, 0.028435222804546356, 0.016275780275464058, -0.020419199019670486, 0.07167481631040573, 0.01892070658504963, 0.004515784326940775, 0.05149032175540924, -0.01628480665385723, -0.0617450550198555, 0.028489384800195694, -0.006549128331243992, 0.07878813147544861, 0.027045056223869324, 0.02426472306251526, -0.0031775233801454306, 0.04592965543270111, -0.09749219566583633, 0.016140373423695564, -0.05000988394021988, -0.03603600338101387, 0.011509494855999947, -0.026990894228219986, -0.0067477235570549965, -0.049901559948921204, -0.022838449105620384, 0.042138293385505676, -0.06593360751867294, 0.0044052028097212315, 0.01766594685614109, 0.029680956155061722, 0.017340973019599915, 0.018902651965618134, 0.0027036028914153576, 0.03648735582828522, 0.05152643099427223, 0.025077158585190773, -0.032515451312065125, 0.03744422271847725, -0.009929760359227657, 0.03179328888654709, 0.025022996589541435, -0.0192637350410223, 0.01886654458940029, -0.032334908843040466, -0.04556857421994209, -0.04405202716588974, -0.021159416064620018, 0.0753217488527298, -0.006702588405460119, -0.00022017551236785948, -0.01870405673980713, 0.053801245987415314, 0.06239500269293785, -0.0144523149356246, -0.033743131905794144, -0.04625462740659714, 0.022314880043268204, -0.008408701978623867, 0.0578092597424984, -0.023939749225974083, 0.020816387608647346, 0.021033037453889847, 0.023055098950862885, -0.03302096575498581, 0.024192506447434425, -0.04741009324789047, 0.03332788497209549, 0.0323890745639801, -0.07077211141586304, 0.05676212161779404, 0.012746201828122139, 0.00427882419899106, 0.025474349036812782, 0.04502695053815842, 0.019119301810860634, -0.05047928914427757, -0.0727219507098198, -0.06878615915775299, 0.04300488904118538, -0.005149934906512499, 0.0459657646715641, -0.07676607370376587, 0.0713859498500824, -0.01726875640451908, 0.0023086692672222853, 0.012493443675339222, -0.015291830524802208, 0.018722111359238625, 0.04286045581102371, -0.04845723137259483, -0.04163277521729469, 0.05499281734228134, -0.011987929232418537, -0.07979916781187057, -0.012791336514055729, -0.01760275661945343, -0.03311123698949814, 0.021953796967864037, 0.03495275601744652, 0.02543823979794979, -0.04390759393572807, -0.0014364301459863782, 0.040044017136096954, 0.033959779888391495, 0.02838106080889702, 0.032425180077552795, 0.10623037815093994, -0.00800248421728611, 0.06268386542797089, -0.027947761118412018, -0.04589354619383812, -0.04935993626713753, -0.010525546036660671, 0.03350842744112015, 0.035711027681827545, 0.04033287987112999, 0.0025388591457158327, -0.05687044560909271, 0.02951847016811371, -0.002254507038742304, 0.05809812620282173, 0.0264853797852993, 0.0273700300604105, 0.049107179045677185, -0.011482413858175278, 0.03004203923046589, 0.02675618976354599, 0.007605293765664101, 0.04405202716588974, -0.059181369841098785, -0.04881831258535385, 0.03105306811630726, -0.058784179389476776, 0.023434234783053398, -0.041307803243398666, 0.007406698539853096, -0.0365595705807209, -0.05087647959589958, 0.0014589977217838168, -0.054054003208875656, -0.003660470712929964, -0.03975515067577362, 0.00014767696848139167, -0.01827978529036045, 0.0012446051696315408, -0.0286879800260067, 0.015553615987300873, 0.06604193150997162, -0.02534797042608261, 0.009884624741971493, 0.030710041522979736, 0.03950239345431328, 0.033652860671281815, 0.05441508814692497, 0.010489437729120255, -0.024535534903407097, -0.04318543151021004, 0.037155356258153915, 0.062250569462776184, -0.007384130731225014, -0.03428475558757782, 0.03524162247776985, 0.05289854109287262, 0.0591091550886631, 0.03744422271847725, -0.04632684588432312, 0.017738163471221924, 0.041704993695020676, -0.023325908929109573, -0.020798334851861, 0.017918704077601433, 0.0291212797164917, 0.03914130851626396, 0.016609780490398407, -0.004477419424802065, 0.030980851501226425, 0.016546592116355896, 0.03524162247776985, -0.011292845942080021, 0.05928969755768776, 0.011635873466730118, -0.05112924054265022, -0.033345941454172134, 0.04322153702378273, -0.005149934906512499, 0.022350987419486046, -0.06730572134256363, -0.021087199449539185, -0.005637395661324263, -0.024192506447434425, 0.029085170477628708, 0.07510509341955185, 0.06448928266763687, -0.043943703174591064, 0.07073599845170975, 0.007334481924772263, -0.047229550778865814, 0.029175441712141037, 0.06069791689515114, 0.047879498451948166, -0.016790322959423065, 0.011744198389351368, 0.019462330266833305, 0.0216829851269722, 0.033779241144657135, -0.03957460820674896, -0.0014082205016165972, 0.03135998919606209, 0.0052086105570197105, -0.011617819778621197, -0.0042855944484472275, 0.0273700300604105, 0.04217439889907837, 0.08153235912322998, 0.03276820853352547, 0.0048385015688836575, -0.006810912862420082, 0.009677003137767315, -0.014037069864571095, -0.02338007278740406, -0.05661768838763237, -0.0055290712043643, -0.0015097749419510365, -0.012051118537783623, -0.03265988454222679, 0.05492060258984566, -0.02251347526907921, 0.033652860671281815, 0.03186550363898277, 0.013522528111934662, -0.04943215101957321, -0.03805806487798691, -0.005145421251654625, -0.022712070494890213, -0.01809021830558777, -0.038419146090745926, 0.02070806361734867, 0.02657564915716648, -0.03432086110115051, 0.00005042456541559659, -0.013847501948475838, 0.01624869927763939, -0.04307710751891136, 0.006192559842020273, 0.03762476518750191, -0.001334875705651939, -0.03618043661117554, 0.050118207931518555, 0.0595424547791481, 0.012204578146338463, 0.008562161587178707, 0.04567689821124077, -0.004062174819409847, -0.019372059032320976, -0.02684646099805832, 0.010317923501133919, 0.024553589522838593, -0.002595278201624751, 0.07878813147544861, 0.032515451312065125, 0.014641882851719856, -0.013486419804394245, -0.040477313101291656, -0.07517731189727783, 0.010417221114039421, 0.00849445816129446, -0.055606659501791, 0.00987559836357832, -0.029175441712141037, -0.013351013883948326, 0.07261362671852112, -0.004567689727991819, 0.0341583751142025, -0.025203537195920944, 0.003976417705416679, -0.0031639826484024525, -0.02395780384540558, -0.0178464874625206, -0.020816387608647346, 0.008043105714023113, -0.017368054017424583, -0.013883610256016254, 0.02540213242173195, -0.029283765703439713, 0.04076617956161499, -0.011175493709743023, -0.02031087316572666, 0.010092247277498245, 0.004418743308633566, 0.04607408866286278, 0.03204604610800743, 0.020112277939915657, 0.016636861488223076, 0.013062148354947567, 0.03341815620660782, 0.004398432560265064, -0.03935796022415161, 0.05539000779390335, -0.054848384112119675, 0.04780728369951248, -0.004369094502180815, 0.03587351739406586, 0.018848489969968796, -0.0035521460231393576, 0.026250675320625305, -0.0022533785086125135, -0.019426222890615463, -0.036758165806531906, -0.05730374529957771, -0.015300857834517956, 0.02771305851638317, -0.02740613929927349, -0.007519536651670933, 0.02276623249053955, -0.006160964723676443, -0.03090863674879074, 0.04163277521729469, 0.003488956717774272, 0.013224635273218155, -0.01855962537229061, -0.012556632980704308, 0.03616238012909889, 0.008936784230172634, -0.027604734525084496, -0.04986545071005821, 0.04535192251205444, 0.057159312069416046, 0.0031662394758313894, 0.022603744640946388, -0.06560863554477692, -0.04094672203063965, 0.013071175664663315, 0.04000790789723396, -0.070049948990345, 0.010363059118390083, -0.0072261574678123, 0.02430083230137825, -0.03664984181523323, 0.03117944672703743, -0.016826430335640907, -0.04921550303697586, 0.0634782463312149, -0.02273012325167656, -0.016366049647331238, -0.020798334851861, -0.026864515617489815, -0.03186550363898277, -0.015066154301166534, -0.04441310837864876, -0.04058563709259033, -0.0367942750453949, -0.08723745495080948, 0.023813370615243912, 0.018270758911967278, 0.026034025475382805, -0.009013514034450054, -0.006224154494702816, 0.03975515067577362, 0.006982427090406418, -0.008535080589354038, -0.08023246377706528, 0.0003940873721148819, -0.012800363823771477, -0.009279812686145306, -0.033382050693035126, 0.036505408585071564, 0.044990841299295425, 0.013558636419475079, 0.060011859983205795, 0.008855541236698627, -0.03424864634871483, -0.028344951570034027, -0.04795171692967415, -0.004080228973180056, -0.03870801255106926, 0.005912721157073975, -0.010426248423755169, 0.002333493670448661, -0.0038545525167137384, -0.007190049160271883, 0.00246889959089458, 0.03856357932090759, 0.019281789660453796, 0.02789359912276268, 0.02789359912276268, -0.031847450882196426, -0.01701599918305874, -0.03968293219804764, -0.015228641219437122, -0.029500415548682213, -0.031684961169958115, -0.03594573214650154, -0.03410421311855316, 0.03154052793979645, -0.00881943292915821, 0.03935796022415161, -0.009586731903254986, -0.017548594623804092, 0.014587720856070518, 0.024409156292676926, 0.06282830238342285, -0.035837408155202866, -0.01197890192270279, 0.03047533705830574, -0.0289046298712492, -0.008792351000010967, 0.028832413256168365, 0.015589723363518715, -0.03121555596590042, 0.037588655948638916, -0.05993964523077011, -0.006485939025878906, 0.021339958533644676, -0.062286678701639175, -0.04152445122599602, 0.013035067357122898, -0.05455952137708664, 0.03558465093374252, -0.05318740755319595, 0.031071122735738754, -0.0008626479539088905, 0.07871592044830322, 0.08044911175966263, -0.029193496331572533, -0.04607408866286278, 0.03957460820674896, 0.0005670118844136596, -0.020346982404589653, -0.06030072644352913, 0.012836472131311893, 0.005980423651635647, 0.002430534455925226, -0.06355046480894089, -0.02328980155289173, -0.05975910276174545, -0.01711529679596424, 0.021448282524943352, -0.03166690841317177, -0.013468366116285324, 0.036758165806531906, -0.07929365336894989, -0.03444724157452583, 0.038166388869285583, 0.03791363164782524, 0.012701066210865974, 0.009496461600065231, -0.02359672077000141, 0.01966092549264431, 0.018902651965618134, -0.036758165806531906, 0.04264380782842636, -0.03672206029295921, -0.03686649352312088, 0.03296680375933647, -0.005786342080682516, 0.012222631834447384, 0.015291830524802208, 0.01055262703448534, 0.03560270369052887, 0.009667975828051567, 0.002676521660760045, -0.01686253771185875, -0.011509494855999947, -0.05802590772509575, -0.014623829163610935, 0.034609727561473846, 0.041271694004535675, -0.025546565651893616, 0.003705606097355485, -0.01707918755710125, -0.02565488964319229, 0.025817377492785454, 0.0236508846282959, -0.03495275601744652, -0.031161393970251083, 0.020906658843159676, 0.02386753261089325, -0.015400155447423458, 0.004630879033356905, -0.02832689881324768, 0.03628876060247421, -0.007433779537677765, 0.015210587531328201, -0.017223620787262917, 0.005136394407600164, 0.07221643626689911, 0.039646826684474945, 0.028453277423977852, -0.014849505387246609, 0.07972694933414459, -0.006084234919399023, 0.03309318423271179, 0.06026461720466614, -0.013369068503379822, 0.009496461600065231, 0.026611758396029472, 0.017187511548399925, 0.02338007278740406, 0.05120145529508591, -0.020437251776456833, 0.007654942572116852, -0.022694015875458717, -0.0026516972575336695, 0.006088748574256897, -0.011374088935554028, 0.006765777710825205, 0.010715113952755928, 0.019588708877563477, 0.003572457004338503, -0.020166439935564995, 0.01118452101945877, -0.016627835109829903, 0.02049141377210617, -0.0089232437312603, -0.039827365428209305, 0.03672206029295921, -0.014154422096908092, -0.020383089780807495, 0.050732050091028214, 0.0034596186596900225, 0.04755452647805214, 0.010110301896929741, -0.0022059865295886993, 0.00818753894418478, -0.040224555879831314, 0.03215437009930611, -0.03412226587533951, -0.023452289402484894, -0.0038613227661699057, 0.014840478077530861, -0.005822450388222933, -0.05730374529957771, 0.12421227246522903, -0.0245174802839756, 0.038996875286102295, 0.04549635574221611, 0.01276425551623106, 0.05419843643903732, -0.006837993860244751, -0.04809614643454552, 0.016979889944195747, -0.060842350125312805, -0.04697679355740547, -0.06748626381158829, -0.014903667382895947, 0.01133798062801361, -0.03805806487798691, -0.031143339350819588, -0.002597535029053688, -0.009103785268962383, -0.07344412058591843, 0.05047928914427757, 0.005650936160236597, 0.04318543151021004, 0.02045530639588833, 0.08261560648679733, -0.01094981748610735, -0.061636731028556824, 0.004766284953802824, -0.008792351000010967, 0.009352028369903564, -0.02171909436583519, -0.031233610585331917, -0.05744817852973938, -0.009126352146267891, -0.013017012737691402, 0.03276820853352547, -0.018595732748508453, -0.021177470684051514, 0.04842112213373184, 0.01668199710547924, -0.0766216441988945, 0.02552851103246212, 0.023705046623945236, 0.04657960310578346, 0.008805892430245876, -0.018117299303412437, 0.0012897404376417398, -0.044340893626213074, 0.03989958390593529, 0.06336992233991623, -0.016474375501275063, 0.022657908499240875, -0.007366076577454805, -0.031847450882196426, 0.02285650372505188, -0.055895522236824036, 0.0031369016505777836, -0.005434287246316671, 0.01497588399797678, 0.03253350406885147, -0.024571644142270088, -0.026178458705544472, -0.02298288233578205, -0.04275213181972504, -0.01744929701089859, 0.019029032438993454, 0.010561654344201088, -0.06791955977678299, 0.01302604004740715, 0.00862986408174038, 0.007320941425859928, -0.06795566529035568, 0.021773256361484528, 0.00409376947209239, 0.0029225090984255075, -0.018099244683980942, -0.03888855129480362, -0.008363566361367702, 0.010633870959281921, 0.042102184146642685, -0.06640301644802094, -0.04257158935070038, -0.03350842744112015, -0.005668990314006805, 0.0023696019779890776, 0.019985899329185486, -0.03953849896788597, 0.0352596752345562, -0.038419146090745926, -0.056726012378931046, 0.015887616202235222, -0.06290052086114883, -0.06004796922206879, -0.012249713763594627, -0.010182517580688, 0.05120145529508591, -0.029482360929250717, -0.002516291569918394, 0.04755452647805214, 0.011328954249620438, 0.027875544503331184, -0.05029875040054321, 0.013107283972203732, 0.015327938832342625, 0.03341815620660782, 0.02070806361734867, -0.02395780384540558, -0.041091155260801315, -0.01892070658504963, -0.032732099294662476, -0.009415218606591225, 0.07387741655111313, 0.04502695053815842, 0.0028367519844323397, -0.04181331768631935, 0.03126971796154976, -0.09337585419416428, -0.002936049597337842, 0.042535483837127686, 0.011202574707567692, -0.029482360929250717, -0.048493336886167526, -0.02657564915716648, -0.04347429797053337, -0.07001383602619171, -0.005664477124810219, -0.012033063918352127, -0.06142008304595947, 0.016817403957247734, -0.056292712688446045, -0.022928718477487564, -0.0029699010774493217, 0.08897065371274948, -0.02561878226697445, -0.02986149676144123, -0.00023004885588306934, -0.06485036015510559, -0.02540213242173195, 0.008173998445272446, 0.009094757959246635, 0.07059156894683838, -0.0014477139338850975, -0.0512375645339489, -0.004475162364542484, -0.025997918099164963, -0.008431268855929375, -0.03302096575498581, 0.007781321182847023, -0.05084037408232689, -0.012330956757068634, 0.010624843649566174, -0.03078225627541542, 0.016429239884018898, -0.08680415898561478, -0.01766594685614109, 0.022657908499240875, -0.011446305550634861, -0.003570200176909566, 0.011780306696891785, 0.01870405673980713, -0.08174900710582733, -0.059831321239471436, -0.06333381682634354, 0.04112726077437401, 0.003879376919940114, -0.01591469720005989, 0.0025636835489422083, -0.027333922684192657, 0.03074614889919758, -0.02307315170764923, 0.049504369497299194, -0.014533557929098606, 0.027478355914354324, -0.00867951288819313, -0.10796357691287994, 0.02076222561299801, 0.032244641333818436, 0.0442325696349144, 0.008900675922632217, -0.10428053885698318, 0.01195182092487812, 0.038996875286102295, -0.01834297552704811, -0.05221248418092728, 0.026557594537734985, 0.012376092374324799, 0.013675987720489502, 0.003446078160777688, -0.04935993626713753, 0.01659172773361206, -0.02009422332048416, -0.043113213032484055, 0.029301820322871208, 0.02610624209046364, 0.07597169280052185, 0.0361262746155262, 0.02312731370329857, 0.01987757533788681, -0.0024034534581005573, 0.002046884736046195, 0.018207570537924767, 0.035404108464717865, 0.01628480665385723, -0.02224266342818737, -0.036758165806531906, -0.0008423370309174061, -0.04441310837864876, -0.019029032438993454, -0.006084234919399023, -0.01195182092487812, 0.0332917794585228, 0.06398376822471619, 0.026557594537734985, 0.004378121811896563, 0.018848489969968796 ]
718,591
pluginlib._parent
Plugin
**Mixin class for plugins. All parents and child plugins will inherit from this class automatically.** **Class Attributes** *The following attributes can be set as class attributes in subclasses* .. autoattribute:: _alias_ .. autoattribute:: _skipload_ .. autoattribute:: _version_ **Class Properties** .. autoattribute:: name :annotation: :py:class:`str` -- :attr:`_alias_` if set or falls back to class name .. autoattribute:: plugin_group .. autoattribute:: plugin_type .. autoattribute:: version :annotation: :py:class:`str` -- Returns :attr:`_version_` if set, otherwise falls back to module ``__version__`` or :py:data:`None`
class Plugin(object): """ **Mixin class for plugins. All parents and child plugins will inherit from this class automatically.** **Class Attributes** *The following attributes can be set as class attributes in subclasses* .. autoattribute:: _alias_ .. autoattribute:: _skipload_ .. autoattribute:: _version_ **Class Properties** .. autoattribute:: name :annotation: :py:class:`str` -- :attr:`_alias_` if set or falls back to class name .. autoattribute:: plugin_group .. autoattribute:: plugin_type .. autoattribute:: version :annotation: :py:class:`str` -- Returns :attr:`_version_` if set, otherwise falls back to module ``__version__`` or :py:data:`None` """ __slots__ = () _alias_ = None """:py:class:`str` -- Friendly name to refer to plugin. Accessed through :attr:`~Plugin.name` property.""" _skipload_ = False """:py:class:`bool` -- When True, plugin is not loaded. Can also be a static or class method that returns a tuple ``(bool, message)``""" _version_ = None """:py:class:`str` -- Plugin version. Should adhere to `PEP 440`_. Accessed through :attr:`~Plugin.version` property. .. _PEP 440: https://www.python.org/dev/peps/pep-0440/""" @ClassProperty def version(cls): # noqa: N805 # pylint: disable=no-self-argument """ :py:class:Returns `str` -- Returns :attr:`_version_` if set, otherwise falls back to module `__version__` or None """ return cls._version_ or getattr(sys.modules.get(cls.__module__, None), '__version__', None) @ClassProperty def name(cls): # noqa: N805 # pylint: disable=no-self-argument """ :py:class:`str` -- :attr:`_alias_` if set or falls back to class name """ return cls._alias_ or cls.__name__ # pylint: disable=no-member @ClassProperty def plugin_type(cls): # noqa: N805 # pylint: disable=no-self-argument """ :py:class:`str` -- ``plugin_type`` of :py:class:`~pluginlib.Parent` class """ return cls._type_ # pylint: disable=no-member @ClassProperty def plugin_group(cls): # noqa: N805 # pylint: disable=no-self-argument """ :py:class:`str` -- ``group`` of :py:class:`~pluginlib.Parent` class """ return cls._group_ # pylint: disable=no-member
()
[ 0.009033825248479843, -0.06351052969694138, -0.06478804349899292, 0.012729481793940067, 0.03314227610826492, 0.005338169634342194, 0.014755248092114925, 0.05997000262141228, -0.011442845687270164, -0.01014708448201418, 0.02936449460685253, 0.018259277567267418, 0.01460924744606018, 0.019837915897369385, -0.04161034896969795, -0.02580571547150612, 0.04752339795231819, 0.002885805442929268, 0.03467528894543648, -0.014873874373733997, 0.010557712987065315, -0.0038576258812099695, 0.028013983741402626, -0.013030609115958214, -0.018925407901406288, 0.054969459772109985, 0.060809507966041565, 0.01619701087474823, -0.02965649776160717, -0.06431353837251663, -0.09125076234340668, -0.008655134588479996, 0.032485272735357285, 0.03598929941654205, 0.016963517293334007, -0.03759531304240227, -0.017237268388271332, 0.04354486241936684, -0.05391095206141472, 0.05011491850018501, 0.015394004061818123, 0.03095225803554058, -0.0208964254707098, -0.06800007075071335, 0.025677964091300964, 0.0351315438747406, 0.006679555866867304, 0.07113909721374512, -0.06946007907390594, -0.05653897300362587, 0.07055509090423584, -0.049859415739774704, 0.017547521740198135, 0.016726264730095863, -0.03717556223273277, 0.10460987687110901, 0.04551587998867035, 0.02555021271109581, -0.019107909873127937, 0.061101511120796204, 0.015129376202821732, 0.012300603091716766, 0.04171985015273094, -0.023214194923639297, -0.0022732845973223448, -0.05672147497534752, 0.00003601910066208802, -0.0389823243021965, -0.004699414130300283, 0.03160926327109337, -0.03748581185936928, -0.03989483416080475, 0.08497270941734314, -0.010667214170098305, 0.08300169557332993, -0.03602579981088638, -0.010867965407669544, 0.004986854270100594, 0.07077409327030182, 0.0007665064185857773, 0.014727872796356678, -0.03686530888080597, 0.007564688101410866, -0.02991200052201748, 0.03438328579068184, 0.0008896949584595859, -0.004268254619091749, -0.049713414162397385, 0.04792490229010582, 0.013486863113939762, -0.0650070458650589, 0.03149976208806038, 0.03569729998707771, 0.02817823551595211, -0.0070034959353506565, -0.008157818578183651, 0.019983917474746704, -0.03733981028199196, 0.0023234726395457983, 0.00835856981575489, -0.021863682195544243, 0.03556954860687256, 0.00662936782464385, 0.0006615680176764727, 0.03752231225371361, -0.031408511102199554, -0.05310794338583946, 0.043362364172935486, 0.03679230809211731, 0.010968341492116451, 0.03239402174949646, -0.03952983021736145, -0.07898665964603424, 0.05106392502784729, 0.023725198581814766, -0.10993891954421997, -0.018943658098578453, 0.0005802978412248194, 0.0712485983967781, -0.017392395064234734, -0.011953850276768208, 0.04471287503838539, -0.057816483080387115, 0.02724747732281685, -0.00008618919673608616, -0.01313098520040512, 0.026115968823432922, 0.029638247564435005, -0.007801940198987722, -0.019126160070300102, 0.018067650496959686, 0.034000035375356674, -0.025988217443227768, -0.04810740053653717, 0.020951176062226295, 0.009184389375150204, 0.03365328162908554, 0.04427487030625343, -0.0393473282456398, 0.023049943149089813, -0.008098505437374115, -0.023433195427060127, 0.018925407901406288, -0.024820206686854362, -0.020586172118782997, -0.02011166885495186, 0.0033352153841406107, 0.025750964879989624, -0.028835240751504898, -0.052596937865018845, -0.032448772341012955, -0.01270210649818182, 0.03741281107068062, 0.03737631067633629, 0.013687614351511002, -0.007313748821616173, -0.04883740842342377, -0.021535180509090424, 0.010831465944647789, -0.04748689755797386, 0.020951176062226295, -0.03567904978990555, -0.018441779538989067, -0.010210960172116756, 0.00885588675737381, -0.030003251507878304, 0.018925407901406288, -0.07332911342382431, -0.03224802017211914, 0.06836507469415665, -0.05664847418665886, -0.028981242328882217, 0.0417928509414196, 0.06267102062702179, -0.030258752405643463, 0.09716381132602692, -0.018542155623435974, 0.036774057894945145, 0.033744532614946365, 0.022721439599990845, 0.027977483347058296, -0.031408511102199554, -0.05909399315714836, -0.018241027370095253, 0.055297963321208954, 0.03243052214384079, 0.08555671572685242, 0.004062940366566181, 0.027667231857776642, -0.00033163948683068156, 0.030550755560398102, -0.031153010204434395, 0.04591738432645798, 0.043325863778591156, -0.0007237326353788376, 0.034036535769701004, -0.012172851711511612, -0.032485272735357285, -0.02255718782544136, 0.0614665150642395, -0.026079468429088593, 0.00472222687676549, 0.0030386503785848618, -0.011981225572526455, 0.013988741673529148, -0.0063875531777739525, 0.03686530888080597, -0.0041655972599983215, -0.04518737643957138, -0.049749914556741714, -0.02158993110060692, -0.026791224256157875, -0.04719489440321922, 0.027192726731300354, 0.017985524609684944, -0.09730981290340424, 0.07679664343595505, -0.00744149973616004, 0.006232426967471838, 0.054859958589076996, 0.07789164781570435, 0.07077409327030182, 0.006081863306462765, 0.07811065018177032, -0.026353219524025917, 0.01273860689252615, 0.0208964254707098, -0.02699197642505169, 0.006173114292323589, -0.026791224256157875, 0.00987333245575428, -0.019290411844849586, -0.01387011632323265, 0.02669997327029705, -0.016844891011714935, 0.024528205394744873, 0.02259368821978569, 0.05307144299149513, -0.01679014042019844, 0.05464095622301102, 0.0002465196303091943, 0.01111434306949377, 0.014928624965250492, -0.008472633548080921, -0.016662389039993286, -0.037814315408468246, -0.02659047208726406, -0.023542696610093117, 0.05613746866583824, 0.002618897007778287, 0.03989483416080475, -0.03978533297777176, -0.008906074799597263, 0.011534096673130989, -0.020312419161200523, -0.024655956774950027, -0.05142892897129059, -0.06007950380444527, -0.01667151413857937, -0.026754723861813545, -0.030112750828266144, -0.04259585589170456, 0.02096942439675331, 0.05453145503997803, 0.0017143737059086561, -0.020841674879193306, 0.0474138967692852, 0.018432654440402985, -0.04263235628604889, 0.031481511890888214, 0.073073610663414, 0.003047775477170944, -0.043398864567279816, 0.03368978202342987, -0.020768674090504646, -0.04792490229010582, -0.024783706292510033, 0.012218477204442024, 0.013787990435957909, -0.0389823243021965, 0.029127243906259537, 0.016662389039993286, 0.03770481422543526, -0.029273245483636856, 0.029017742723226547, -0.0340912863612175, -0.03498554229736328, 0.03538704663515091, -0.02876223996281624, 0.02965649776160717, -0.011068717576563358, -0.031335510313510895, 0.0008571868529543281, -0.012118101119995117, 0.010995716787874699, 0.022757939994335175, -0.10971991717815399, 0.08986375480890274, -0.0023907700087875128, -0.0970178097486496, 0.03297802433371544, 0.005201293621212244, -0.021863682195544243, 0.035332296043634415, -0.03923782706260681, 0.0028812428936362267, -0.010484712198376656, -0.026681723073124886, 0.008148693479597569, -0.0024957084096968174, 0.037996817380189896, 0.008906074799597263, -0.011771348305046558, 0.035587798804044724, -0.03149976208806038, 0.005908486898988485, 0.04000433534383774, -0.04482237622141838, 0.009791206568479538, 0.05573596432805061, -0.05880199000239372, 0.03452928736805916, 0.01589588262140751, 0.07205159962177277, -0.0007665064185857773, -0.004110846668481827, -0.012966733425855637, 0.01733764447271824, -0.03869032487273216, -0.07949766516685486, -0.05438545346260071, 0.00398537702858448, -0.009033825248479843, 0.004941228777170181, -0.028269486501812935, -0.030459504574537277, 0.02551371417939663, -0.06559104472398758, 0.016817515715956688, 0.011415470391511917, 0.06150301545858383, 0.02580571547150612, -0.04566188156604767, 0.014371994882822037, -0.057743482291698456, -0.0139613663777709, -0.006132051348686218, 0.015695130452513695, 0.05018791928887367, -0.04449387267231941, 0.05391095206141472, -0.08643272519111633, -0.0256597138941288, -0.006519867107272148, 0.049749914556741714, -0.11979400366544724, -0.013933991082012653, -0.04577138274908066, -0.02669997327029705, -0.012428353540599346, -0.019089659675955772, -0.03368978202342987, -0.03890932351350784, 0.0748986229300499, -0.01949116215109825, -0.006880307570099831, 0.026024717837572098, -0.007272685877978802, -0.009699956513941288, -0.030313502997159958, 0.0020896424539387226, 0.00007578091026516631, 0.0018136089202016592, -0.06230602040886879, 0.03597104921936989, -0.009937208145856857, 0.046975892037153244, 0.041281845420598984, -0.004455318674445152, -0.07117559760808945, 0.04153734818100929, 0.028305986896157265, -0.05850999057292938, -0.004891040734946728, -0.0036933745723217726, 0.00493666622787714, 0.023250693455338478, 0.0024888645857572556, -0.010922715999186039, 0.002486583311110735, 0.03438328579068184, 0.01974666491150856, -0.055042460560798645, -0.044128868728876114, -0.077234648168087, -0.057889483869075775, -0.034036535769701004, -0.005192168522626162, 0.0348212905228138, -0.018259277567267418, 0.07413212209939957, -0.11818798631429672, 0.07015358656644821, 0.03613530099391937, 0.020768674090504646, 0.008769198320806026, 0.07570163160562515, 0.025823965668678284, 0.0005800126818940043, 0.0017531552584841847, -0.04726789519190788, -0.023652197793126106, -0.011050467379391193, -0.0100193340331316, -0.008842199109494686, -0.03379928320646286, 0.06935057789087296, -0.009499204345047474, -0.03598929941654205, -0.007797377649694681, -0.01815890148282051, 0.006186801940202713, 0.017620522528886795, -0.003152713878080249, 0.017848649993538857, -0.02940099500119686, -0.0702630877494812, -0.0017440301598981023, -0.014545371755957603, 0.011899099685251713, -0.0005683211493305862, 0.013824490830302238, -0.01333173643797636, -0.06212351843714714, -0.013185734860599041, -0.054859958589076996, 0.0181132759898901, -0.005228668916970491, 0.008696197532117367, 0.01981966570019722, -0.011762223206460476, 0.01407086756080389, 0.004405130632221699, 0.05843698978424072, 0.04869140684604645, 0.023086443543434143, -0.026097718626260757, 0.027466479688882828, 0.012063350528478622, -0.018761156126856804, -0.02536771260201931, 0.060773007571697235, 0.041208844631910324, 0.007665064185857773, -0.023177694529294968, -0.06128401309251785, 0.010804090648889542, -0.04763289913535118, -0.0008588978089392185, -0.027630731463432312, -0.0068392446264624596, 0.020878175273537636, 0.007217935286462307, -0.03358028084039688, -0.04803439974784851, 0.01562213059514761, 0.07165009528398514, -0.0362265519797802, -0.06887607276439667, -0.00602711271494627, 0.0719785988330841, 0.006843807175755501, 0.017812149599194527, -0.02983899973332882, -0.04755989834666252, -0.013778865337371826, 0.025385962799191475, -0.009029262699186802, -0.046756889671087265, -0.0428878590464592, 0.0014987938338890672, -0.00990983285009861, 0.00972733087837696, -0.01430811919271946, 0.0027306789997965097, 0.002022345084697008, 0.05256044119596481, -0.054896458983421326, 0.03354378044605255, -0.018332278355956078, -0.037923816591501236, 0.029711248353123665, -0.00112751720007509, -0.00490016583353281, -0.0073730614967644215, 0.001464574714191258, 0.043982867151498795, 0.020239418372511864, 0.030149251222610474, -0.05409345403313637, 0.005173918325453997, 0.0030819945968687534, 0.0174106452614069, 0.011132593266665936, 0.0449683740735054, -0.05887499079108238, 0.0004123393737245351, 0.03693830966949463, -0.006875745020806789, 0.01205422542989254, -0.043581362813711166, -0.010439087636768818, -0.017474520951509476, 0.004758727271109819, 0.02677297405898571, -0.03912832587957382, -0.03243052214384079, 0.06340102851390839, 0.007801940198987722, -0.037996817380189896, -0.000017519432731205598, 0.007523625623434782, 0.02576921507716179, 0.010858840309083462, -0.012318853288888931, 0.07840265333652496, -0.022392937913537025, 0.009453578852117062, -0.0013927147956565022, 0.010037584230303764, 0.007747189607471228, 0.006743431556969881, -0.05336344614624977, 0.01815890148282051, -0.022940441966056824, 0.057633981108665466, -0.060517504811286926, 0.0516844317317009, 0.044055867940187454, 0.0012729481095448136, 0.043727364391088486, 0.06000650301575661, -0.0002988462510984391, 0.03949332982301712, 0.0393473282456398, -0.008559321984648705, -0.012108976021409035, 0.013003233820199966, 0.0021421117708086967, -0.0006296302890405059, 0.00970908161252737, 0.015704255551099777, -0.002691897563636303, -0.03149976208806038, 0.030094502493739128, 0.0002663381746970117, -0.003962564282119274, -0.04343536123633385, 0.017611397430300713, 0.019655413925647736, 0.017593147233128548, 0.015129376202821732, -0.012300603091716766, -0.03394528478384018, -0.03328827768564224, 0.02233818732202053, 0.04843590408563614, 0.001797639997676015, -0.014499746263027191, 0.0009068044601008296, 0.004441631026566029, -0.02522171102464199, -0.05544396489858627, 0.00990983285009861, 0.00024908606428653, 0.06197751685976982, 0.020951176062226295, 0.03527754545211792, 0.008258193731307983, -0.04175635054707527, -0.014134743250906467, 0.012802481651306152, 0.006770806387066841, 0.001893453299999237, -0.04526037722826004, -0.010174459777772427, 0.004012752324342728, 0.06986158341169357, 0.04876440763473511, -0.019764915108680725, -0.01554912980645895, 0.013304361142218113, 0.02991200052201748, -0.032448772341012955, 0.02587871626019478, -0.019326912239193916, -0.026535721495747566, -0.04467637464404106, 0.08351270109415054, -0.04197534918785095, -0.018168026581406593, -0.00824450608342886, -0.009553954936563969, -0.0029542434494942427, 0.013422987423837185, -0.008586696349084377, -0.01945466175675392, -0.024546455591917038, -0.002274425234645605, -0.003526841988787055, -0.035076793283224106, -0.03538704663515091, -0.016251761466264725, -0.04438437148928642, -0.016744514927268028, -0.03314227610826492, -0.05953199788928032, 0.0037732189521193504, 0.022246936336159706, -0.01495600026100874, -0.034930791705846786, 0.03909182548522949, 0.049494415521621704, 0.018295777961611748, -0.034401535987854004, -0.0036021238192915916, -0.0348212905228138, -0.022429438307881355, -0.018943658098578453, -0.024966208264231682, 0.04821690171957016, -0.05591846629977226, 0.04562538117170334, -0.04796140268445015, -0.026115968823432922, -0.03420078754425049, -0.007290936075150967, -0.016872266307473183, 0.020056918263435364, -0.005735110491514206, -0.004599038511514664, -0.05409345403313637, 0.017793899402022362, 0.03905532509088516, -0.06438653916120529, -0.024528205394744873, -0.01403436716645956, 0.008833074010908604, -0.017511021345853806, -0.0477789007127285, 0.014545371755957603, 0.06380253285169601, -0.04431137070059776, -0.011607097461819649, -0.029455745592713356, 0.013952241279184818, 0.03184651583433151, 0.03469353914260864, -0.010283960960805416, 0.029565246775746346, 0.01927216164767742, 0.018387028947472572, 0.00863232184201479, 0.038142818957567215, 0.043690863996744156, 0.012483104132115841, 0.03467528894543648, -0.007496250327676535, 0.015074625611305237, -0.00004498377529671416, 0.0032348395325243473, 0.028013983741402626, -0.06270752102136612, -0.04190235212445259, -0.005493295844644308, -0.028926491737365723, 0.004918416030704975, -0.02356094680726528, -0.03949332982301712, -0.025787465274333954, 0.004117690492421389, 0.025312962010502815, -0.036372553557157516, 0.02976599894464016, -0.009782081469893456, 0.0485089048743248, 0.06847457587718964, -0.0017132330685853958, -0.005589109379798174, -0.10796790570020676, 0.02241118811070919, 0.04223085194826126, 0.04427487030625343, 0.020367169752717018, 0.07504462450742722, -0.0300580020993948, -0.02078692428767681, -0.0337262824177742, -0.03717556223273277, -0.07540962845087051, 0.04511437565088272, -0.04799790307879448, -0.033525530248880386, 0.022940441966056824, 0.0005232660914771259, 0.07048209011554718, -0.006264364812523127, -0.009480954147875309, 0.05942249670624733, -0.008568447083234787, 0.010557712987065315, 0.06894907355308533, 0.024692457169294357, -0.06727006286382675, 0.03317877650260925, 0.0033762783277779818, 0.06759856641292572, 0.01340473722666502, -0.003465247806161642, 0.016224386170506477, -0.004489537328481674, 0.007801940198987722, 0.038398321717977524, -0.017611397430300713, 0.013833615928888321, 0.03598929941654205, 0.038288820534944534, -0.008294694125652313, -0.012984983623027802, 0.006122926250100136, -0.013933991082012653, -0.00712668476626277, -0.07332911342382431, -0.015019875951111317, 0.04712189361453056, -0.008979074656963348, 0.04595388472080231, -0.026298468932509422, -0.020275918766856194, -0.007852127775549889, -0.02947399578988552, -0.023177694529294968, -0.011917349882423878, 0.035040292888879776, 0.02569621428847313, 0.03686530888080597, 0.022976942360401154, 0.05365544930100441, 0.006866619922220707, 0.024728957563638687, 0.018432654440402985, 0.025823965668678284, -0.011032217182219028, -0.003800594247877598, 0.006086425855755806, -0.06212351843714714, -0.008559321984648705, -0.016872266307473183, -0.03593454882502556, -0.0895717516541481, -0.01934516243636608, -0.05150192975997925, 0.007049121428281069, 0.000622786465100944, 0.06420403718948364, 0.02925499528646469, 0.01733764447271824, 0.027977483347058296 ]
718,592
pluginlib.exceptions
PluginImportError
**Exception class for Pluginlib import errors** Subclass of :py:exc:`PluginlibError` **Custom Instance Attributes** .. py:attribute:: friendly :annotation: = None :py:class:`str` -- May contain abbreviated traceback When an exception is raised while importing a module, an attempt is made to create a "friendly" version of the output with a traceback limited to the plugin itself or, failing that, the loader module.
class PluginImportError(PluginlibError): """ **Exception class for Pluginlib import errors** Subclass of :py:exc:`PluginlibError` **Custom Instance Attributes** .. py:attribute:: friendly :annotation: = None :py:class:`str` -- May contain abbreviated traceback When an exception is raised while importing a module, an attempt is made to create a "friendly" version of the output with a traceback limited to the plugin itself or, failing that, the loader module. """
(*args, **kwargs)
[ -0.01056964322924614, -0.04817790910601616, -0.025691242888569832, 0.07104694098234177, 0.057354651391506195, -0.025855112820863724, 0.03315645083785057, 0.033192869275808334, -0.000035242101148469374, -0.05120040848851204, 0.03328390792012215, 0.005084535572677851, 0.010032512247562408, -0.004870593547821045, -0.05367667227983475, 0.014666404575109482, -0.0312628373503685, 0.05815579742193222, -0.0025058521423488855, -0.0024808163288980722, -0.0315723717212677, 0.0027493818197399378, -0.026474179700016975, -0.008603197522461414, 0.030862266197800636, 0.09453503787517548, 0.03464949503540993, -0.023142147809267044, -0.004429053980857134, -0.05535179376602173, -0.0283131692558527, -0.023834044113755226, 0.014484326355159283, 0.03366627171635628, 0.0015840808628126979, -0.06784236431121826, -0.026565218344330788, -0.010205486789345741, -0.07312262803316116, -0.013246193528175354, -0.02166731283068657, 0.003054362954571843, -0.02802184410393238, -0.06893482804298401, 0.05757314711809158, -0.02030172571539879, -0.0028882164042443037, 0.0407855324447155, -0.0751619040966034, -0.057427484542131424, 0.01880868524312973, 0.022450249642133713, 0.06420079618692398, -0.00042674594442360103, -0.013564830645918846, 0.11135906726121902, 0.012699958868324757, 0.02785797417163849, -0.06146962195634842, 0.008657821454107761, 0.0065320576541125774, 0.03413967415690422, 0.021467028185725212, 0.008903627283871174, 0.020483804866671562, -0.03845493122935295, -0.007560799829661846, -0.030115744099020958, -0.045738060027360916, 0.032063983380794525, 0.007274026516824961, -0.028222130611538887, 0.011716736480593681, -0.01258160825818777, 0.10822732001543045, -0.028076468035578728, -0.019828323274850845, 0.011525553651154041, 0.022231755778193474, 0.013646765612065792, -0.0039078546687960625, -0.015503964386880398, -0.013073218986392021, 0.005972167011350393, 0.026710880920290947, -0.060996219515800476, -0.06230718269944191, -0.06390947103500366, -0.0076654949225485325, 0.054259322583675385, -0.08790738880634308, -0.013200674206018448, -0.02461698092520237, 0.030989721417427063, -0.031135383993387222, -0.01193523034453392, 0.08535829186439514, -0.04056703671813011, 0.03497723489999771, -0.030789434909820557, 0.026783712208271027, -0.047922998666763306, -0.017943812534213066, -0.0025468196254223585, 0.01442059874534607, -0.0690440759062767, -0.030643772333860397, -0.00372122460976243, 0.03725321218371391, 0.00988684967160225, -0.002712966175749898, -0.058410707861185074, -0.022031469270586967, 0.018298866227269173, -0.007765638176351786, -0.1078631654381752, 0.014866690151393414, -0.0029382880311459303, 0.08397449553012848, 0.0059129917062819, 0.01442059874534607, 0.0012426842004060745, -0.08135256916284561, -0.013956299051642418, 0.03517752140760422, -0.005526075139641762, 0.01060605887323618, -0.001394036691635847, -0.004014825914055109, 0.013264401815831661, -0.004039861261844635, -0.004756794776767492, -0.04690336063504219, -0.05691766366362572, -0.04446351155638695, -0.01873585395514965, 0.06390947103500366, 0.04267914593219757, -0.02439848706126213, 0.023506304249167442, -0.0010014304425567389, 0.05211079865694046, 0.021649105474352837, -0.03676160052418709, -0.010870072059333324, 0.01895434781908989, -0.006186109036207199, 0.023306017741560936, 0.0148029625415802, -0.03479515761137009, -0.0011527830502018332, -0.05658992379903793, -0.019136425107717514, -0.003272856818512082, 0.0005803744425065815, 0.022450249642133713, -0.0008802345837466419, -0.028003636747598648, 0.028131091967225075, -0.0466848686337471, 0.012891140766441822, -0.07785666733980179, 0.026929374784231186, 0.004934321157634258, 0.01690596714615822, -0.0028381450101733208, 0.027147868648171425, -0.04424501955509186, -0.037107549607753754, -0.0025104039814323187, -0.044900499284267426, -0.00029758416349068284, 0.0256730355322361, 0.05571594834327698, -0.04144101217389107, 0.05316685140132904, -0.01056964322924614, 0.04031212627887726, -0.0010799516458064318, 0.03444920852780342, 0.058410707861185074, -0.006204316858202219, -0.025126799941062927, -0.02319677174091339, 0.02190401591360569, 0.01993756927549839, 0.04340745881199837, 0.03608791157603264, -0.005867471918463707, 0.011762255802750587, 0.08026009798049927, -0.033192869275808334, 0.034849781543016434, 0.016259588301181793, -0.04956170171499252, 0.00902197789400816, -0.0351957269012928, -0.05950317531824112, 0.029624134302139282, 0.11383532732725143, -0.01789829321205616, 0.06671347469091415, -0.036889057606458664, -0.007096500135958195, 0.061433207243680954, 0.033648062497377396, 0.001579528907313943, -0.09045647829771042, -0.06529326736927032, 0.011489138007164001, 0.017861878499388695, -0.06026790663599968, 0.0029815316665917635, 0.04653920605778694, 0.017088044434785843, 0.008015995845198631, 0.02838600054383278, 0.020756922662258148, 0.005862920079380274, 0.04351670667529106, 0.09701129794120789, 0.04726751893758774, 0.030698394402861595, -0.02377942204475403, 0.02780335023999214, 0.02221354842185974, 0.018972555175423622, -0.008512158878147602, -0.003976134117692709, 0.009477173909544945, -0.006222524680197239, 0.000675965566188097, -0.06310832500457764, 0.05378592014312744, 0.009804914705455303, 0.06791519373655319, 0.04326179623603821, 0.01895434781908989, -0.016514498740434647, -0.009650148451328278, 0.0025604756083339453, 0.050180770456790924, -0.062270767986774445, 0.0014270383398979902, 0.013109634630382061, -0.054040830582380295, -0.05247495695948601, 0.010141759179532528, 0.007392377592623234, -0.021121079102158546, 0.03761737048625946, 0.03637923672795296, -0.048359986394643784, 0.013728701509535313, -0.03565092384815216, -0.0632539913058281, -0.019427750259637833, -0.07035504281520844, 0.01805306039750576, -0.015358301810920238, -0.06245284527540207, -0.014429702423512936, 0.026110023260116577, -0.006172453053295612, 0.03352060914039612, -0.00025576306506991386, 0.012226555496454239, 0.016814928501844406, 0.06416437774896622, 0.06551176309585571, 0.08470281213521957, 0.04020288214087486, -0.025199631229043007, 0.0414045974612236, -0.04653920605778694, -0.023852253332734108, -0.02181297540664673, 0.027238909155130386, 0.011307059787213802, 0.033338531851768494, 0.014721027575433254, -0.0058538164012134075, -0.032664839178323746, -0.005703601520508528, 0.00515736686065793, -0.02061126008629799, -0.04402652382850647, 0.019209256395697594, -0.05892052501440048, 0.03805435821413994, 0.02687475085258484, 0.004611132200807333, 0.01911821775138378, -0.036816224455833435, 0.01506697665899992, 0.02946026250720024, -0.03404863551259041, 0.00838015228509903, 0.020137855783104897, -0.03918324410915375, 0.034704118967056274, -0.01544934045523405, -0.02583690546452999, 0.057208988815546036, -0.029788004234433174, -0.023815836757421494, 0.029660549014806747, -0.010296525433659554, -0.04755884408950806, -0.004249251447618008, 0.03665235638618469, 0.06740537285804749, -0.02030172571539879, 0.011889711022377014, -0.00036244955845177174, 0.04632071033120155, 0.050799835473299026, -0.030498109757900238, -0.02377942204475403, 0.05076342076063156, -0.04581088945269585, 0.03262842446565628, 0.04664845019578934, -0.005371308885514736, 0.01139809936285019, -0.0038623351138085127, 0.025035761296749115, 0.03202756494283676, -0.02001040056347847, -0.054805558174848557, -0.02204967848956585, -0.015422029420733452, -0.030243199318647385, -0.010396668687462807, -0.05793730542063713, -0.027020415291190147, 0.0014384182868525386, -0.0847756415605545, 0.012991284020245075, -0.003762192092835903, 0.02922356128692627, 0.03186369687318802, -0.04267914593219757, 0.04147742688655853, -0.031918320804834366, -0.038491345942020416, -0.03097151219844818, -0.014020026661455631, 0.05098191276192665, 0.012973076663911343, 0.004256079439073801, -0.022759782150387764, -0.06664064526557922, 0.013209777884185314, 0.013464687392115593, -0.04868772625923157, -0.05498763546347618, -0.03588762506842613, 0.018845099955797195, -0.011470930650830269, -0.004237871617078781, -0.0447184219956398, -0.013382752425968647, 0.03180907294154167, -0.011206917464733124, -0.007301338482648134, 0.0025581996887922287, -0.0009564798674546182, -0.02152165025472641, 0.03889191895723343, -0.015604107640683651, 0.004215111956000328, -0.015112495981156826, -0.038782671093940735, 0.030461693182587624, 0.010779033415019512, -0.005430484190583229, 0.03918324410915375, -0.06817010045051575, -0.002318084007129073, 0.02113928645849228, 0.02725711651146412, -0.04562881216406822, -0.02243204228579998, 0.011152293533086777, -0.010050720535218716, 0.01722460426390171, 0.0014111065538600087, 0.00738327344879508, 0.034394584596157074, -0.006158797070384026, -0.029551303014159203, -0.029405640438199043, 0.003598321694880724, -0.007856677286326885, -0.06103263422846794, -0.017233707010746002, -0.04136818274855614, 0.0552789606153965, -0.015221742913126945, 0.00521199032664299, -0.04555598273873329, -0.001016224268823862, 0.03370268642902374, 0.0006173591245897114, 0.03679801896214485, 0.009513589553534985, 0.012344906106591225, -0.017698006704449654, -0.006750551518052816, -0.014511637389659882, 0.024016123265028, -0.031590577214956284, -0.09169461578130722, -0.02296006865799427, 0.03359343856573105, -0.00447229715064168, -0.024434903636574745, -0.07148392498493195, -0.014702820219099522, -0.01208089292049408, -0.06318115442991257, 0.04085836187005043, -0.00756990397349, -0.02998829074203968, -0.04027571156620979, -0.06259850412607193, -0.031026136130094528, 0.03268304839730263, -0.012973076663911343, -0.025418125092983246, 0.011917022056877613, 0.04945245757699013, -0.034631285816431046, -0.01767069473862648, -0.061360374093055725, -0.01513980794698, 0.010360253043472767, 0.02538171038031578, 0.03215502202510834, 0.0017035697819665074, -0.0015317334327846766, 0.09948756545782089, 0.039620231837034225, 0.06813368946313858, -0.016560018062591553, -0.025964360684156418, 0.037945110350847244, 0.004536024760454893, -0.0027288980782032013, -0.012171931564807892, 0.04267914593219757, 0.05065417289733887, -0.0047203791327774525, -0.0148029625415802, -0.05029001832008362, -0.05367667227983475, -0.028568079695105553, 0.00683248694986105, 0.019227465614676476, -0.04683053120970726, 0.07589022070169449, -0.018480943515896797, -0.05367667227983475, 0.0038850950077176094, 0.024070747196674347, 0.04901546984910965, -0.02507217787206173, -0.013701389543712139, 0.011452722363173962, 0.04431784898042679, 0.011043046601116657, 0.04114968702197075, -0.02181297540664673, 0.009176744148135185, 0.015321886166930199, 0.032664839178323746, 0.02521784044802189, 0.02425282448530197, -0.028968652710318565, 0.04726751893758774, -0.06154245510697365, 0.038637008517980576, -0.013692285865545273, 0.001565873040817678, -0.008020547218620777, 0.017015213146805763, -0.012790998443961143, 0.013564830645918846, 0.01128885243088007, 0.0031567818950861692, 0.0358147956430912, 0.0003103865310549736, -0.007251266855746508, 0.01714266836643219, -0.003705292707309127, 0.01783456653356552, 0.05076342076063156, -0.021649105474352837, 0.00376674416474998, 0.009103912860155106, -0.08127973973751068, 0.02152165025472641, -0.04690336063504219, 0.048906221985816956, -0.04795941337943077, 0.05338534712791443, 0.047995831817388535, 0.04661203548312187, -0.04559239745140076, -0.03368447721004486, 0.0029587717726826668, 0.05149173364043236, 0.004747690632939339, 0.01246325671672821, -0.0407855324447155, -0.026838336139917374, 0.036816224455833435, 0.031900111585855484, 0.024179993197321892, -0.00048449888709001243, -0.0175978634506464, 0.022231755778193474, -0.048979051411151886, -0.008694237098097801, -0.013191570527851582, 0.026765504851937294, 0.0024079850409179926, -0.018399009481072426, 0.07304979860782623, 0.00804785918444395, 0.05272986367344856, 0.018490048125386238, -0.0552789606153965, 0.01420210488140583, 0.0847756415605545, -0.11762256175279617, 0.07741967588663101, -0.0059585110284388065, -0.005562490783631802, 0.013719596900045872, 0.011853295378386974, 0.0149850407615304, 0.012071789242327213, 0.08026009798049927, -0.03805435821413994, -0.09963322430849075, 0.009386134333908558, -0.02944205515086651, -0.019682660698890686, 0.052220046520233154, 0.03306541219353676, -0.022377418354153633, -0.016068406403064728, 0.02312394045293331, 0.012736374512314796, 0.024744436144828796, -0.04122252017259598, 0.019992193207144737, 0.00883534736931324, 0.0026742746122181416, -0.028276754543185234, 0.03286512568593025, -0.043771613389253616, -0.04362595081329346, -0.0038304715417325497, 0.006550265476107597, -0.007037324830889702, -0.07530757039785385, -0.010123551823198795, -0.017233707010746002, -0.021394196897745132, -0.07133826613426208, 0.003807711647823453, -0.01638704352080822, 0.0869605764746666, 0.059175435453653336, 0.04009363427758217, 0.01559500303119421, -0.004738586954772472, 0.011498242616653442, 0.005639874376356602, 0.0031158141791820526, -0.009003770537674427, -0.03911041095852852, -0.008994665928184986, 0.022395625710487366, 0.030844058841466904, 0.01818961836397648, 0.01488489843904972, -0.023597342893481255, -0.042934056371450424, 0.007260370999574661, -0.07345037162303925, 0.03632461279630661, -0.0019425475038588047, -0.009263231419026852, -0.03503185883164406, 0.06551176309585571, -0.02636493183672428, 0.004670307505875826, -0.011407203041017056, 0.00029246319900266826, -0.0005772450240328908, 0.037945110350847244, -0.006404602900147438, 0.013573934324085712, -0.012026268988847733, -0.002195181092247367, 0.04344387352466583, -0.019154632464051247, -0.04358953610062599, -0.019737284630537033, -0.01552217174321413, -0.015494860708713531, -0.023014692589640617, 0.026838336139917374, -0.010232798755168915, 0.07326829433441162, 0.034613076597452164, -0.022231755778193474, 0.01416568923741579, 0.023834044113755226, 0.031244629994034767, 0.01926388032734394, 0.029733380302786827, -0.01836259290575981, -0.010833656415343285, -0.01948237419128418, -0.031991150230169296, -0.03437637537717819, 0.03555988520383835, 0.031226422637701035, -0.07720118761062622, -0.05280269682407379, 0.022177131846547127, 0.0657302513718605, -0.010078031569719315, 0.0388190858066082, 0.012190139852464199, 0.02031993493437767, -0.004975288640707731, -0.07596305012702942, 0.03335673734545708, -0.029114315286278725, 0.014821170829236507, -0.04388086125254631, -0.08317334949970245, 0.04297047108411789, -0.0400572195649147, 0.04260631278157234, 0.0473039336502552, -0.07290413975715637, -0.016059303656220436, -0.06562100350856781, 0.013883467763662338, -0.006236180663108826, 0.04581088945269585, 0.0036438412498682737, 0.0407855324447155, -0.01911821775138378, -0.014511637389659882, 0.02181297540664673, 0.0007214851211756468, 0.02099362388253212, 0.02319677174091339, 0.02982441894710064, -0.05626218393445015, 0.013837948441505432, -0.00744244921952486, -0.015167118981480598, -0.0009809467010200024, -0.04639354348182678, 0.00031949044205248356, -0.016277797520160675, 0.022377418354153633, -0.019373128190636635, -0.018444528803229332, -0.017352059483528137, 0.007333202287554741, 0.05979450047016144, 0.028349585831165314, -0.057136159390211105, -0.012818309478461742, -0.04071269929409027, 0.05473272502422333, 0.03639744594693184, 0.048760559409856796, 0.019045386463403702, -0.06238001212477684, -0.016068406403064728, 0.031007928773760796, -0.015695147216320038, 0.04045778885483742, 0.0016022886848077178, -0.034631285816431046, 0.02128494903445244, -0.031754449009895325, -0.012554296292364597, -0.044208601117134094, 0.021721936762332916, 0.009531796909868717, -0.04267914593219757, 0.05484197288751602, 0.0074925203807652, 0.01186239905655384, 0.009431653656065464, -0.04366236925125122, 0.04446351155638695, 0.015303677879273891, 0.010232798755168915, 0.03044348582625389, 0.03222785145044327, -0.06332682073116302, 0.032519176602363586, -0.02190401591360569, 0.044135771691799164, -0.0282585471868515, -0.0026924824342131615, 0.007155675906687975, 0.015676937997341156, -0.011653008870780468, 0.0049206651747226715, 0.03867342323064804, -0.03732604533433914, -0.003561906050890684, -0.05120040848851204, 0.01110677421092987, -0.010433084331452847, 0.0003174989833496511, 0.011307059787213802, -0.015258158557116985, -0.09591882675886154, 0.08346467465162277, 0.03479515761137009, -0.010687993839383125, -0.030498109757900238, 0.05043568089604378, 0.05830145999789238, 0.023979706689715385, 0.005262061953544617, -0.03497723489999771, -0.03169982507824898, -0.021995054557919502, 0.03097151219844818, 0.06132395938038826, 0.01911821775138378, 0.04584730789065361, -0.01843542419373989, 0.0558980256319046, 0.03903758153319359, 0.02552737295627594, -0.0047613466158509254, 0.005826504435390234, 0.005667185876518488, -0.05884769558906555, 0.02265053614974022, 0.010842761024832726, -0.04297047108411789, -0.03656131401658058, -0.0010008614044636488, -0.020829753950238228, -0.0064910901710391045, -0.007055532652884722, 0.02123032510280609, 0.036980096250772476, -0.004856937564909458, 0.019828323274850845 ]
718,593
pluginlib.exceptions
__init__
null
def __init__(self, *args, **kwargs): super(PluginlibError, self).__init__(*args) self.friendly = kwargs.get('friendly', None)
(self, *args, **kwargs)
[ -0.04935762286186218, -0.02655399776995182, -0.007253795396536589, 0.02151443064212799, 0.012799831107258797, 0.009258739650249481, 0.044569194316864014, 0.0671384185552597, 0.015587498433887959, -0.028897983953356743, 0.0373363271355629, 0.10005465894937515, -0.014289935119450092, -0.03263161703944206, -0.040450479835271835, 0.00828347448259592, -0.02642005681991577, 0.049960359930992126, 0.008957370184361935, -0.014909417368471622, -0.023557046428322792, -0.01578841172158718, -0.009417795576155186, 0.002689303830265999, 0.03978076949715614, 0.11391765624284744, 0.03201213479042053, -0.0031267080921679735, -0.00006141187623143196, -0.01977318525314331, -0.04426782578229904, 0.007178453262895346, 0.019003018736839294, 0.1130470335483551, -0.006956611759960651, -0.045808158814907074, -0.05759505182504654, -0.0007387737859971821, -0.1358841359615326, 0.030756428837776184, -0.010439103469252586, -0.02064380794763565, -0.03736981377005577, -0.033853836357593536, 0.04259354993700981, 0.0008533569634892046, -0.0002995382237713784, 0.07366809248924255, -0.05839870497584343, -0.04945807904005051, -0.03072294220328331, -0.0018134488491341472, 0.01965598575770855, -0.02226785570383072, -0.03356920927762985, 0.11425251513719559, 0.020744264125823975, 0.05642306059598923, -0.029467236250638962, 0.014382020570337772, -0.03874271735548973, 0.05083098262548447, 0.021531173959374428, -0.006801741197705269, 0.010087505914270878, -0.05203646048903465, -0.03633176162838936, -0.03656616061925888, -0.005173509009182453, 0.07996336370706558, 0.05689185857772827, -0.0061404029838740826, -0.011460411362349987, 0.0010453753639012575, 0.12429816275835037, -0.05598774924874306, -0.04731500521302223, 0.02755856327712536, -0.0026097758673131466, 0.0563226044178009, -0.012297548353672028, 0.015821896493434906, -0.04178990051150322, -0.010522817261517048, 0.014532705768942833, -0.047482434660196304, -0.01766359992325306, -0.04333023354411125, 0.02611868642270565, 0.027340907603502274, -0.0697837769985199, -0.05803036317229271, -0.011753409169614315, 0.01965598575770855, -0.01771382801234722, 0.0035055128391832113, 0.02655399776995182, -0.04852048307657242, 0.023171963170170784, -0.0459086149930954, -0.0013415126595646143, -0.03951288387179375, -0.007241238374263048, -0.05032870173454285, 0.06429215520620346, -0.06007298082113266, -0.0011447854340076447, -0.017646856606006622, 0.02625262923538685, 0.04011562466621399, -0.009786136448383331, -0.052337829023599625, -0.005307451356202364, 0.0480182021856308, -0.051333267241716385, -0.05240480229258537, -0.015018245205283165, -0.02611868642270565, 0.060541778802871704, -0.0075342366471886635, -0.021531173959374428, -0.0022393425460904837, -0.05940327048301697, -0.015185672789812088, 0.026955824345350266, 0.044870566576719284, -0.012272434309124947, -0.0008973066578619182, 0.0061445883475244045, 0.0012745417188853025, 0.026202401146292686, 0.01377090997993946, -0.05796339362859726, -0.06670311093330383, -0.04758289083838463, -0.023640761151909828, 0.018366795033216476, 0.014951273798942566, -0.030856885015964508, 0.02424350008368492, 0.010765586979687214, 0.06288576126098633, 0.02320544794201851, -0.034490060061216354, 0.0005093457875773311, 0.04520541802048683, 0.033669665455818176, 0.012381262145936489, 0.02822827361524105, -0.020727522671222687, 0.025515947490930557, -0.043062347918748856, 0.00972753670066595, 0.007019397336989641, -0.012264062650501728, -0.001906580408103764, -0.0025553619489073753, -0.016993889585137367, 0.02642005681991577, -0.010288418270647526, 0.018550964072346687, -0.06573203206062317, 0.02650376968085766, -0.016968775540590286, -0.011736666783690453, -0.028311986476182938, 0.03219630569219589, -0.0014053444610908628, -0.005529292393475771, 0.04235915094614029, -0.034104976803064346, -0.03003649041056633, -0.061981651932001114, 0.037034958600997925, -0.03974728286266327, 0.0676741898059845, -0.0184002798050642, -0.014557819813489914, -0.03998168185353279, 0.021782314404845238, 0.032313503324985504, -0.0023921201936900616, -0.05535152554512024, -0.0019442515913397074, 0.04547330364584923, 0.0035494626499712467, 0.03502582758665085, 0.03191167861223221, -0.0304048303514719, 0.04162247106432915, 0.05083098262548447, 0.030572257936000824, 0.02705628052353859, 0.014264821074903011, 0.010648387484252453, 0.0038885031826794147, 0.03911105915904045, -0.04272749274969101, 0.020844722166657448, 0.10367109626531601, -0.012975629419088364, 0.031074540689587593, -0.02487972378730774, -0.02804410271346569, 0.05508363991975784, 0.06626779586076736, 0.04433479532599449, -0.035159770399332047, -0.04091927781701088, 0.003396685002371669, 0.00552092120051384, -0.03191167861223221, -0.01240637619048357, 0.012824945151805878, 0.0019756443798542023, -0.01106695644557476, 0.04768334701657295, -0.006383172702044249, 0.0008109768386930227, 0.05441392958164215, 0.058298248797655106, -0.020878206938505173, 0.028697069734334946, -0.009652194567024708, -0.038709234446287155, 0.06445957720279694, 0.041455045342445374, -0.03636524826288223, -0.02817804552614689, 0.015964210033416748, -0.021296774968504906, -0.0004905101959593594, -0.018182624131441116, 0.038340892642736435, -0.036231305450201035, 0.061345428228378296, 0.05347633734345436, -0.007714221253991127, -0.0498599037528038, -0.02032569609582424, 0.016692519187927246, -0.011652952991425991, -0.031241968274116516, 0.03716890141367912, 0.020995406433939934, -0.029065411537885666, -0.022619452327489853, 0.006839412730187178, -0.0006079710437916219, 0.008840170688927174, 0.06857829540967941, 0.015964210033416748, -0.03837437927722931, -0.02126329019665718, -0.024896467104554176, -0.07232867181301117, -0.01866816356778145, -0.07259655743837357, 0.02847941406071186, -0.033167384564876556, -0.058063849806785583, 0.00885691400617361, 0.01371231023222208, 0.021866029128432274, -0.010765586979687214, 0.0009402099531143904, 0.022535739466547966, 0.032179560512304306, 0.012741231359541416, 0.04855396971106529, 0.04594210162758827, 0.02126329019665718, -0.01729525811970234, 0.05478227138519287, -0.01651672087609768, -0.013569997623562813, 0.014959645457565784, -0.02916586771607399, -0.005629749037325382, 0.016692519187927246, 0.07058742642402649, 0.007994662038981915, 0.010916272178292274, 0.006793370004743338, 0.024963436648249626, -0.02300453558564186, 0.011393439956009388, 0.03619782254099846, -0.05206994712352753, -0.0020949363242834806, -0.02668794058263302, 0.031694021075963974, 0.0073919231072068214, 0.016433008015155792, -0.0003992099082097411, 0.028027359396219254, -0.033301327377557755, 0.02636982873082161, 0.01865142211318016, -0.05458135902881622, 0.01958901435136795, -0.07748543471097946, -0.030304374173283577, 0.04614301398396492, -0.016257207840681076, -0.0185342226177454, -0.004131272900849581, 0.0030367160215973854, 0.0092001399025321, -0.001448247698135674, 0.031744249165058136, 0.0585661344230175, -0.01059815939515829, 0.03251441568136215, -0.02785993367433548, 0.05257222801446915, 0.0740029439330101, -0.031258709728717804, -0.021347003057599068, 0.08987507224082947, -0.021531173959374428, -0.01395508088171482, 0.0259847454726696, 0.008425788022577763, 0.04651135578751564, -0.004805168602615595, -0.03058900125324726, -0.03489188849925995, 0.0119375791400671, -0.03475794568657875, -0.047482434660196304, -0.002249806886538863, 0.0012253598542883992, -0.07989639043807983, -0.050395671278238297, -0.02817804552614689, -0.003984773997217417, -0.06824344396591187, 0.0008235339191742241, -0.039044089615345, 0.010941386222839355, 0.004041280597448349, -0.05732716992497444, 0.04510496184229851, 0.009518252685666084, -0.009995420463383198, -0.034104976803064346, -0.05330891162157059, 0.03035460226237774, -0.03383709490299225, -0.02325567789375782, -0.053945135325193405, -0.02270316705107689, 0.0477503165602684, 0.045305877923965454, -0.031208481639623642, -0.03263161703944206, 0.025080636143684387, 0.005554406903684139, -0.01592235267162323, 0.03407149389386177, -0.04751591756939888, -0.043263260275125504, 0.03526022657752037, 0.006764070130884647, -0.016918547451496124, 0.03670010343194008, 0.015319614671170712, 0.013595111668109894, -0.013611854054033756, 0.0006121566984802485, -0.028211530297994614, -0.04098624736070633, -0.033920805901288986, 0.009827992878854275, 0.014315049163997173, 0.015913981944322586, 0.03820694983005524, -0.05518409609794617, -0.04075184836983681, 0.011736666783690453, 0.031878191977739334, -0.034054748713970184, -0.027257194742560387, -0.00085701938951388, 0.002375377342104912, -0.015311243012547493, 0.05354330688714981, 0.050027329474687576, 0.005696719978004694, 0.024477897211909294, -0.029199352487921715, -0.009777764789760113, 0.027391135692596436, 0.006814298685640097, -0.011611095629632473, 0.03847483545541763, -0.025582918897271156, -0.008630886673927307, 0.01660880632698536, 0.010547931306064129, -0.09302271157503128, -0.014733618125319481, 0.03308366984128952, 0.027223708108067513, 0.020476380363106728, 0.016960402950644493, 0.058298248797655106, 0.009359195828437805, -0.0011814101599156857, 0.00047926115803420544, -0.019187189638614655, -0.03164379298686981, -0.05578683689236641, -0.043999940156936646, 0.03673359006643295, -0.05029521510004997, -0.0017265959177166224, -0.051333267241716385, -0.019605757668614388, 0.0010820000898092985, -0.04510496184229851, 0.01821611076593399, 0.011200898326933384, 0.014289935119450092, -0.02449464052915573, -0.03716890141367912, -0.04852048307657242, 0.03803952410817146, -0.028747297823429108, -0.03793906792998314, 0.014691761694848537, 0.017429200932383537, -0.03830740600824356, -0.0010736286640167236, 0.0029571878258138895, -0.0414215587079525, 0.0393119715154171, -0.02791016176342964, 0.05769550800323486, 0.03222978860139847, -0.037838611751794815, 0.041890356689691544, 0.044435255229473114, 0.0734671801328659, -0.011527381837368011, -0.025164350867271423, 0.02543223462998867, -0.03924500197172165, -0.020995406433939934, -0.010388875380158424, 0.022736651822924614, 0.025047151371836662, -0.034238919615745544, -0.007375180721282959, -0.050027329474687576, -0.08304402977228165, 0.023741217330098152, 0.01392996683716774, 0.004386600106954575, -0.0305387731641531, 0.05257222801446915, -0.040818821638822556, -0.04533936083316803, -0.02767576277256012, 0.07648087292909622, 0.009568480774760246, 0.011652952991425991, -0.04165595769882202, -0.008823428303003311, -0.015980953350663185, 0.03102431260049343, 0.020995406433939934, -0.014976387843489647, -0.005776247940957546, 0.004800983238965273, 0.0006728491862304509, -0.001139553263783455, -0.007827234454452991, -0.017194801941514015, 0.01007913425564766, -0.04962550476193428, 0.08163764327764511, 0.00646688649430871, -0.025666633620858192, -0.031241968274116516, -0.015068473294377327, -0.035795994102954865, 0.0001929340069182217, 0.03864226117730141, -0.005261408630758524, 0.022719908505678177, -0.05427999049425125, -0.00162404659204185, 0.0006728491862304509, 0.032547902315855026, -0.007601207587867975, 0.03549462556838989, -0.008948998525738716, 0.01480058953166008, 0.008873656392097473, -0.059101901948451996, -0.003739911364391446, -0.04919019341468811, 0.02822827361524105, -0.06064223498106003, -0.015018245205283165, 0.07406991720199585, 0.01059815939515829, -0.0073542520403862, -0.00976102240383625, 0.02449464052915573, 0.018333308398723602, 0.017102716490626335, 0.013645339757204056, -0.009961934760212898, -0.05726019665598869, 0.008714600466191769, 0.004045466426759958, 0.03475794568657875, 0.02580057457089424, 0.04105321690440178, 0.04992687329649925, -0.05113235116004944, 0.030505286529660225, -0.05769550800323486, 0.004880511201918125, -0.015537270344793797, -0.020509866997599602, 0.040818821638822556, -0.005093981046229601, 0.006772441789507866, -0.03358595445752144, 0.019003018736839294, 0.019923869520425797, 0.08532104641199112, -0.0866604670882225, 0.051467206329107285, 0.0017265959177166224, -0.02045963890850544, 0.009091312065720558, -0.008563915267586708, 0.02057683654129505, -0.03971379995346069, 0.04460268095135689, -0.07895880192518234, -0.05940327048301697, 0.05679140239953995, -0.025917774066329002, -0.02444441244006157, 0.014599676243960857, -0.037972550839185715, -0.0006048317882232368, 0.01672600582242012, -0.010280047543346882, 0.033184126019477844, 0.016918547451496124, -0.05859961733222008, 0.044870566576719284, 0.029433751478791237, -0.0017381064826622605, 0.004964224994182587, -0.0017307816306129098, -0.02462858147919178, -0.07065439969301224, -0.013544883579015732, 0.012632403522729874, 0.0373363271355629, -0.08813382685184479, -0.014959645457565784, -0.0157632976770401, -0.026838624849915504, -0.10440777987241745, 0.02487972378730774, -0.00596878957003355, 0.049525048583745956, 0.06546414643526077, 0.044435255229473114, 0.006529671605676413, -0.01395508088171482, 0.0025072265416383743, 0.017579885199666023, -0.0025072265416383743, -0.03197864815592766, -0.0239421296864748, 0.020543351769447327, 0.043062347918748856, 0.004792611580342054, 0.006722213234752417, -0.004947482142597437, 0.02052660845220089, -0.018065424636006355, -0.03415520489215851, -0.05170160531997681, 0.03418869152665138, 0.017697084695100784, 0.019187189638614655, -0.09992071986198425, 0.03539416939020157, 0.0026913967449218035, -0.02785993367433548, 0.022803623229265213, -0.01059815939515829, -0.000038913807657081634, 0.04714757949113846, 0.001224313396960497, -0.008882028050720692, 0.029768606647849083, -0.02618565782904625, 0.007379366084933281, -0.021815801039338112, -0.005746948067098856, -0.014716875739395618, 0.030488545075058937, -0.02586754597723484, -0.011987807229161263, -0.003369478043168783, 0.01017121970653534, 0.07480660080909729, 0.05042915791273117, -0.04333023354411125, 0.021933000534772873, 0.009468023665249348, 0.0655646026134491, -0.0325813889503479, -0.010330275632441044, 0.003911524545401335, -0.020694036036729813, -0.026018230244517326, -0.00596878957003355, 0.022937564179301262, 0.001923323143273592, 0.027089767158031464, -0.06074269115924835, -0.04677923768758774, 0.00740029476583004, 0.03690101578831673, -0.01766359992325306, 0.03351898118853569, 0.059101901948451996, -0.03308366984128952, -0.007157524581998587, -0.019438330084085464, 0.00409569451585412, -0.04085230454802513, 0.04185687005519867, -0.05163463577628136, -0.02735765092074871, 0.014047165401279926, -0.041019733995199203, 0.03951288387179375, 0.04346417263150215, -0.06589945405721664, 0.024360697716474533, 0.004763311706483364, 0.018500735983252525, 0.03793906792998314, 0.045238904654979706, 0.008082561194896698, -0.0023690988309681416, -0.004980967380106449, -0.0028127816040068865, 0.059738125652074814, 0.006332944612950087, 0.03397103399038315, 0.04389948397874832, 0.025733603164553642, -0.07172593474388123, -0.03090711310505867, 0.013067714869976044, 0.0012201278004795313, -0.05642306059598923, -0.04333023354411125, 0.02077775076031685, -0.005428836215287447, 0.034490060061216354, -0.029869062826037407, -0.00025781214935705066, -0.017512913793325424, -0.011376697570085526, 0.031878191977739334, 0.008124418556690216, -0.06820995360612869, 0.022803623229265213, -0.015252643264830112, 0.06824344396591187, 0.027257194742560387, 0.046477869153022766, -0.016784604638814926, -0.0674063041806221, -0.01660880632698536, -0.01651672087609768, -0.026570741087198257, 0.023490075021982193, -0.02114609070122242, -0.020945178344845772, -0.03998168185353279, -0.0674063041806221, 0.021665116772055626, -0.037838611751794815, 0.07380203157663345, -0.004955853335559368, -0.048654425889253616, 0.04708060622215271, -0.0029906732961535454, -0.011770151555538177, 0.02749159187078476, -0.04024956747889519, -0.005525107029825449, -0.02189951390028, 0.0173454862087965, 0.016826462000608444, 0.048788368701934814, -0.04888882488012314, -0.01290028728544712, -0.044133882969617844, 0.046678781509399414, -0.009225253947079182, 0.00025925098452717066, -0.01997409760951996, 0.03371989354491234, -0.03813998028635979, 0.021380489692091942, 0.03519325703382492, 0.07239564508199692, -0.0023104993160814047, -0.013628597371280193, -0.014440620318055153, 0.04520541802048683, -0.033669665455818176, -0.014750361442565918, -0.049089737236499786, -0.09228602796792984, 0.05458135902881622, 0.03222978860139847, -0.029333295300602913, 0.01557912677526474, 0.06117800250649452, 0.07661481201648712, 0.04389948397874832, 0.004968410357832909, -0.006425029598176479, -0.017211545258760452, -0.033435266464948654, 0.05374422296881676, 0.04677923768758774, 0.01162783894687891, 0.014917788095772266, -0.016006067395210266, 0.045171935111284256, 0.02712325192987919, -0.0030095090623944998, 0.025733603164553642, 0.05284011363983154, -0.0017799633787944913, -0.0610775463283062, -0.0174794290214777, 0.01638277806341648, 0.008291846141219139, 0.018182624131441116, -0.010656759142875671, -0.03757072612643242, 0.027692506089806557, 0.00972753670066595, 0.05247177183628082, 0.07708360999822617, 0.028747297823429108, -0.00019489605620037764 ]
718,594
pluginlib._loader
PluginLoader
Args: group(str): Group to retrieve plugins from library(str): Standard library package modules(list): Iterable of modules to import recursively paths(list): Iterable of paths to import recursively entry_point(str): `Entry point`_ for additional plugins blacklist(list): Iterable of :py:class:`BlacklistEntry` objects or tuples prefix_package(str): Alternative prefix for imported packages type_filter(list): Iterable of parent plugin types to allow **Interface for importing and accessing plugins** Plugins are loaded from sources specified at initialization when :py:meth:`load_modules` is called or when the :py:attr:`plugins` property is first accessed. ``group`` specifies the group whose members will be returned by :py:attr:`plugins` This corresponds directly with the ``group`` attribute for :py:func:`Parent`. When not specified, the default group is used. ``group`` should be specified if plugins for different projects could be accessed in an single program, such as in libraries and frameworks. ``library`` indicates the package of a program's standard library. This should be a package which is always loaded. ``modules`` is an iterable of optional modules to load. If a package is given, it will be loaded recursively. ``paths`` is an iterable of optional paths to find modules to load. The paths are searched recursively and imported under the namespace specified by ``prefix_package``. ``entry_point`` specifies an `entry point <Entry point_>`_ group to identify additional modules and packages which should be loaded. ``blacklist`` is an iterable containing :py:class:`BlacklistEntry` objects or tuples with arguments for new :py:class:`BlacklistEntry` objects. ``prefix_package`` must be the name of an existing package under which to import the paths specified in ``paths``. Because the package paths will be traversed recursively, this should be an empty path. ``type_filter`` limits plugins types to only those specified. A specified type is not guaranteed to be available. .. _Entry point: https://packaging.python.org/specifications/entry-points/
class PluginLoader(object): """ Args: group(str): Group to retrieve plugins from library(str): Standard library package modules(list): Iterable of modules to import recursively paths(list): Iterable of paths to import recursively entry_point(str): `Entry point`_ for additional plugins blacklist(list): Iterable of :py:class:`BlacklistEntry` objects or tuples prefix_package(str): Alternative prefix for imported packages type_filter(list): Iterable of parent plugin types to allow **Interface for importing and accessing plugins** Plugins are loaded from sources specified at initialization when :py:meth:`load_modules` is called or when the :py:attr:`plugins` property is first accessed. ``group`` specifies the group whose members will be returned by :py:attr:`plugins` This corresponds directly with the ``group`` attribute for :py:func:`Parent`. When not specified, the default group is used. ``group`` should be specified if plugins for different projects could be accessed in an single program, such as in libraries and frameworks. ``library`` indicates the package of a program's standard library. This should be a package which is always loaded. ``modules`` is an iterable of optional modules to load. If a package is given, it will be loaded recursively. ``paths`` is an iterable of optional paths to find modules to load. The paths are searched recursively and imported under the namespace specified by ``prefix_package``. ``entry_point`` specifies an `entry point <Entry point_>`_ group to identify additional modules and packages which should be loaded. ``blacklist`` is an iterable containing :py:class:`BlacklistEntry` objects or tuples with arguments for new :py:class:`BlacklistEntry` objects. ``prefix_package`` must be the name of an existing package under which to import the paths specified in ``paths``. Because the package paths will be traversed recursively, this should be an empty path. ``type_filter`` limits plugins types to only those specified. A specified type is not guaranteed to be available. .. _Entry point: https://packaging.python.org/specifications/entry-points/ """ def __init__(self, group=None, library=None, modules=None, paths=None, entry_point=None, blacklist=None, prefix_package='pluginlib.importer', type_filter=None): # Make sure we got iterables for argname, arg in (('modules', modules), ('paths', paths), ('blacklist', blacklist), ('type_filter', type_filter)): if not isinstance(arg, (NoneType, Iterable)) or isinstance(arg, BASESTRING): raise TypeError("Expecting iterable for '%s', received %s" % (argname, type(arg))) # Make sure we got strings for argname, arg in (('library', library), ('entry_point', entry_point), ('prefix_package', prefix_package)): if not isinstance(arg, (NoneType, BASESTRING)): raise TypeError("Expecting string for '%s', received %s" % (argname, type(arg))) self.group = group or '_default' self.library = library self.modules = modules or tuple() self.paths = paths or tuple() self.entry_point = entry_point self.prefix_package = prefix_package self.type_filter = type_filter self.loaded = False if blacklist: self.blacklist = [] for entry in blacklist: if isinstance(entry, BlacklistEntry): pass elif isinstance(entry, Iterable): try: entry = BlacklistEntry(*entry) except (AttributeError, TypeError) as e: # pylint: disable=raise-missing-from raise AttributeError("Invalid blacklist entry '%s': %s " % (entry, e)) else: raise AttributeError("Invalid blacklist entry '%s': Not an iterable" % entry) self.blacklist.append(entry) self.blacklist = tuple(self.blacklist) else: self.blacklist = None def __repr__(self): args = [] for attr, default in (('group', '_default'), ('library', None), ('modules', None), ('paths', None), ('entry_point', None), ('blacklist', None), ('prefix_package', 'pluginlib.importer'), ('type_filter', None)): val = getattr(self, attr) if default and val == default: continue if val: args.append('%s=%r' % (attr, val)) return '%s(%s)' % (self.__class__.__name__, ', '.join(args)) def load_modules(self): """ Locate and import modules from locations specified during initialization. Locations include: - Program's standard library (``library``) - `Entry points <Entry point_>`_ (``entry_point``) - Specified modules (``modules``) - Specified paths (``paths``) If a malformed child plugin class is imported, a :py:exc:`PluginWarning` will be issued, the class is skipped, and loading operations continue. If an invalid `entry point <Entry point_>`_ is specified, an :py:exc:`EntryPointWarning` is issued and loading operations continue. """ # Start with standard library if self.library: LOGGER.info('Loading plugins from standard library') libmod = _import_module(self.library) _recursive_import(libmod) # Get entry points if self.entry_point: LOGGER.info('Loading plugins from entry points group %s', self.entry_point) for epoint in iter_entry_points(group=self.entry_point): try: mod = _import_module(epoint) except PluginImportError as e: warnings.warn("Module %s can not be loaded for entry point %s: %s" % (epoint.module_name, epoint.name, e), EntryPointWarning) continue # If we have a package, walk it if ismodule(mod): _recursive_import(mod) else: warnings.warn("Entry point '%s' is not a module or package" % epoint.name, EntryPointWarning) # Load auxiliary modules if self.modules: for mod in self.modules: LOGGER.info('Loading plugins from %s', mod) _recursive_import(_import_module(mod)) # Load auxiliary paths if self.paths: # Import each path recursively for path in self.paths: modpath = os.path.realpath(path) if os.path.isdir(modpath): LOGGER.info("Recursively importing plugins from path `%s`", path) _recursive_path_import(path, self.prefix_package) else: LOGGER.info("Configured plugin path '%s' is not a valid directory", path) self.loaded = True @property def plugins(self): """ Newest version of all plugins in the group filtered by ``blacklist`` Returns: dict: Nested dictionary of plugins accessible through dot-notation. Plugins are returned in a nested dictionary, but can also be accessed through dot-notion. Just as when accessing an undefined dictionary key with index-notation, a :py:exc:`KeyError` will be raised if the plugin type or plugin does not exist. Parent types are always included. Child plugins will only be included if a valid, non-blacklisted plugin is available. """ if not self.loaded: self.load_modules() # pylint: disable=protected-access return get_plugins()[self.group]._filter(blacklist=self.blacklist, newest_only=True,
(group=None, library=None, modules=None, paths=None, entry_point=None, blacklist=None, prefix_package='pluginlib.importer', type_filter=None)
[ 0.02905832976102829, -0.02775905653834343, -0.07845129817724228, -0.006027179770171642, 0.012116230092942715, 0.01997373439371586, 0.059106580913066864, 0.049537334591150284, -0.06286003440618515, -0.027697186917066574, 0.017756721004843712, -0.010399334132671356, -0.03563718497753143, 0.004730485379695892, -0.0634787306189537, -0.015364411287009716, -0.030893808230757713, 0.09231020510196686, 0.03384295105934143, -0.028748977929353714, -0.05036227032542229, -0.01444667112082243, 0.039864975959062576, 0.004658303689211607, 0.010347776114940643, 0.04219541698694229, 0.079936183989048, -0.006522140931338072, -0.047763727605342865, -0.024933654814958572, 0.0008165565668605268, 0.012497762218117714, 0.011198489926755428, 0.012693684548139572, 0.004372154362499714, -0.03204871714115143, -0.014776645228266716, 0.05572434514760971, -0.02208762988448143, 0.026294797658920288, 0.03217245638370514, -0.027738433331251144, 0.04656757041811943, -0.050279777497053146, 0.032358068972826004, 0.03439978137612343, 0.002773843239992857, 0.08368963748216629, -0.03163624927401543, -0.042566634714603424, 0.012827736325562, -0.01933440938591957, 0.04875364899635315, 0.017086463049054146, -0.032646793872117996, 0.10047706216573715, 0.022809447720646858, 0.017653604969382286, 0.02637729048728943, 0.027408458292484283, 0.04376279190182686, 0.007290361449122429, 0.024830538779497147, 0.04966107755899429, 0.00308577180840075, -0.030749445781111717, -0.04244289547204971, -0.05155842751264572, -0.056796763092279434, 0.05737421661615372, -0.050486009567976, -0.042566634714603424, 0.05316704884171486, -0.04064866155385971, 0.07292423397302628, -0.013085528276860714, 0.0015738209476694465, -0.011683139018714428, 0.027779679745435715, 0.021283317357301712, 0.007011945825070143, 0.009718763642013073, -0.009904373437166214, -0.004155609291046858, 0.04227790981531143, -0.014261060394346714, 0.037142690271139145, -0.024974901229143143, 0.010548854246735573, 0.02338690124452114, -0.09783726930618286, -0.024954278022050858, 0.0316774956882, 0.031265027821063995, -0.017251448705792427, -0.009435191750526428, 0.022912563756108284, -0.03666835278272629, -0.0016047559911385179, -0.015715008601546288, -0.0017052949406206608, -0.04603136330842972, -0.010579789057374, -0.029491418972611427, 0.040504299104213715, -0.049908556044101715, -0.036895208060741425, 0.04124674201011658, -0.015281917527318, 0.02658352442085743, -0.027532199397683144, -0.05329078808426857, -0.03439978137612343, 0.023902487009763718, 0.001924418262206018, -0.09049534797668457, -0.04339157044887543, -0.00005320990749169141, 0.08170979470014572, 0.004328330047428608, -0.02196388877928257, 0.06533483415842056, -0.03627650812268257, 0.017406124621629715, 0.020241837948560715, -0.006140608340501785, 0.01228121668100357, 0.011384100653231144, 0.028295263648033142, -0.03303863853216171, 0.06413868069648743, 0.009966243989765644, -0.04442273825407028, -0.030873185023665428, -0.012549321167171001, -0.05564185231924057, -0.027614692226052284, 0.03011012077331543, -0.04182419553399086, 0.03724580630660057, 0.0004769154475070536, -0.03629713132977486, 0.031471263617277145, -0.005024368409067392, -0.027408458292484283, -0.04203042760491371, 0.050279777497053146, 0.018066072836518288, -0.01912817545235157, -0.028192147612571716, -0.025841083377599716, -0.02699599228799343, -0.012765866704285145, 0.045247673988342285, -0.0020146456081420183, -0.009667204692959785, -0.018086696043610573, -0.006785088684409857, -0.012703996151685715, -0.061540137976408005, -0.024871785193681717, -0.012642125599086285, -0.032316822558641434, -0.0004730485670734197, -0.029161445796489716, -0.011982178315520287, 0.03891630098223686, -0.03460601717233658, -0.033781081438064575, 0.047433752566576004, -0.05106346681714058, 0.0050475699827075005, -0.015013813972473145, 0.07259426265954971, -0.007135685998946428, 0.08150356262922287, -0.019355032593011856, 0.016952410340309143, 0.005800323095172644, 0.03497723489999771, 0.008935075253248215, 0.007341919932514429, -0.05366200953722, -0.039205025881528854, 0.008620568551123142, 0.04215417057275772, 0.05353827029466629, 0.004985699895769358, -0.01961282454431057, 0.003988044336438179, -0.03990622237324715, -0.017045214772224426, 0.08331841975450516, 0.03877193480730057, -0.06710844486951828, 0.05997275933623314, -0.07028444856405258, 0.009130997583270073, -0.03670959919691086, 0.06558232009410858, -0.04850616678595543, 0.0019257072126492858, 0.03099692612886429, -0.034997858107089996, 0.014570411294698715, -0.01503443717956543, -0.00875462032854557, 0.009337230585515499, -0.03427604213356972, 0.009806412272155285, -0.018261995166540146, -0.061210162937641144, -0.033368613570928574, 0.03998871520161629, 0.018004203215241432, -0.04825868830084801, 0.06756216287612915, 0.008558698929846287, 0.008842269890010357, 0.027140354737639427, 0.027243472635746002, 0.09371259808540344, 0.015178800560534, 0.057002995163202286, -0.019994357600808144, 0.026315420866012573, 0.02120082452893257, 0.016509007662534714, 0.021407058462500572, 0.015457215718925, 0.044670220464468, -0.042814116925001144, -0.03225495293736458, 0.008440114557743073, 0.023531265556812286, -0.005609556566923857, 0.057126734405756, 0.04887738823890686, -0.0008597367559559643, 0.057291723787784576, 0.031388770788908005, 0.00791937392205, -0.03204871714115143, -0.0834009125828743, -0.02196388877928257, -0.016096539795398712, -0.025222381576895714, -0.06644850224256516, 0.018127942457795143, -0.004763998556882143, 0.03254367783665657, 0.047516245394945145, 0.004970232490450144, -0.015756255015730858, -0.05824039876461029, -0.040916766971349716, 0.003874615766108036, -0.05316704884171486, 0.025923576205968857, -0.04007120802998543, 0.0023214181419461966, -0.03140939399600029, 0.02001498080790043, 0.04862990602850914, -0.007156309671700001, -0.007032569497823715, 0.061292655766010284, -0.01008998416364193, 0.013879528269171715, 0.02938830293715, 0.11392349749803543, 0.04264913126826286, -0.023036304861307144, 0.06364372372627258, -0.029532667249441147, 0.007078971713781357, 0.000568431627471, 0.0017800546484068036, 0.010734464041888714, -0.002565031638368964, 0.04599011689424515, 0.033533599227666855, -0.04677380248904228, -0.031347524374723434, 0.041844818741083145, -0.04887738823890686, -0.050898477435112, 0.00984765961766243, -0.069706991314888, 0.041721079498529434, 0.009311451576650143, -0.024706797674298286, -0.0034441028255969286, -0.04240164905786514, 0.00970845203846693, 0.028109652921557426, -0.06673722714185715, -0.01763298176229, 0.006975855212658644, -0.06884080916643143, 0.0005294405855238438, -0.031100042164325714, 0.052342113107442856, 0.021066773682832718, -0.013642359524965286, -0.025036770850419998, 0.018870383501052856, -0.036235261708498, 0.01665337197482586, 0.011559398844838142, 0.06248881295323372, -0.011012880131602287, 0.031801238656044006, -0.01589030772447586, -0.002273726509884, -0.002370398724451661, 0.033739835023880005, -0.0031347523909062147, -0.025304876267910004, 0.030811315402388573, -0.05498190596699715, 0.075234055519104, 0.034626640379428864, 0.06026148796081543, 0.03262617066502571, 0.02082960493862629, 0.03652399033308029, 0.02410871908068657, -0.014209502376616001, -0.07927623391151428, -0.027305342257022858, -0.028192147612571716, -0.028480874374508858, 0.039782483130693436, 0.03186310827732086, -0.009682672098279, -0.002531518694013357, -0.07445036619901657, 0.026150433346629143, 0.0030239017214626074, 0.06797462701797485, 0.012920541688799858, -0.059890266507864, 0.019313786178827286, -0.039163779467344284, -0.039122533053159714, 0.037266429513692856, 0.030130743980407715, 0.032564301043748856, 0.031100042164325714, 0.061210162937641144, -0.06026148796081543, -0.06752091646194458, -0.011580022051930428, 0.020643994212150574, -0.07882252335548401, -0.019262228161096573, -0.011322230100631714, -0.0065169851295650005, -0.022706331685185432, 0.04388653114438057, -0.0073006730526685715, -0.07106813788414001, 0.052383359521627426, -0.025758588686585426, -0.06607727706432343, 0.041721079498529434, -0.013910463079810143, 0.012209035456180573, -0.04735125973820686, 0.01524067111313343, 0.02132456563413143, 0.007176932878792286, -0.07902875542640686, 0.04330907762050629, -0.0103374645113945, 0.06558232009410858, 0.04838242754340172, -0.019231293350458145, -0.004336063750088215, 0.030357601121068, 0.05597182735800743, -0.02670726552605629, -0.011054126545786858, -0.02107708528637886, 0.0010002334602177143, 0.02813027799129486, 0.00842980295419693, 0.012807113118469715, -0.010414802469313145, 0.04363905265927315, -0.005681738723069429, -0.027944667264819145, 0.010224035941064358, -0.01782890409231186, -0.030976302921772003, 0.0029310965910553932, 0.007749231532216072, 0.0030058561824262142, -0.03039884753525257, 0.06830460578203201, -0.05778668448328972, 0.038524456322193146, 0.07061441987752914, -0.0012277349596843123, -0.010177633725106716, 0.05564185231924057, 0.049537334591150284, -0.015096306800842285, 0.022149499505758286, 0.01771547459065914, -0.023758122697472572, -0.013632047921419144, -0.036255884915590286, -0.06178761646151543, 0.01856103353202343, 0.0021551421377807856, 0.005867348983883858, -0.03536907956004143, -0.010002334602177143, -0.026315420866012573, -0.04648507758975029, -0.000781754613853991, -0.03716331347823143, 0.010569477453827858, -0.032151833176612854, -0.08076111972332001, -0.0058621931821107864, -0.059312812983989716, -0.015096306800842285, -0.03510097786784172, -0.027944667264819145, -0.006852114573121071, -0.08022490888834, 0.005676582921296358, -0.05065099895000458, 0.023655006662011147, -0.012239970266819, 0.008563854731619358, -0.006826335564255714, -0.015271605923771858, 0.027862172573804855, 0.06549982726573944, 0.007749231532216072, 0.008589633740484715, 0.028955211862921715, -0.04900112748146057, 0.07346044480800629, -0.019849993288517, -0.01228121668100357, -0.051310945302248, 0.01648838445544243, 0.07032569497823715, 0.0029646095354110003, -0.01596248894929886, -0.028295263648033142, 0.027573445811867714, 0.014570411294698715, -0.0013869216199964285, 0.02755282260477543, 0.009651737287640572, -0.014281683601439, 0.030419470742344856, -0.027119731530547142, -0.028625238686800003, 0.04174170270562172, 0.05267208814620972, -0.018416669219732285, -0.01933440938591957, 0.008842269890010357, 0.031388770788908005, 0.014714774675667286, 0.00934238638728857, -0.029429549351334572, -0.049867309629917145, 0.02549048513174057, 0.065004862844944, -0.02419121377170086, -0.0011104396544396877, -0.07539904117584229, 0.00818747840821743, -0.051929645240306854, 0.04594887048006058, 0.0019875774160027504, -0.029243938624858856, -0.058982837945222855, 0.07502782344818115, -0.025634849444031715, 0.026294797658920288, -0.023448772728443146, -0.022520720958709717, -0.010579789057374, 0.022582590579986572, -0.01824137195944786, 0.009662048891186714, -0.013992956839501858, 0.008378244005143642, 0.04104050621390343, 0.07684268057346344, -0.05580684170126915, 0.025304876267910004, 0.023407524451613426, 0.015209735371172428, -0.038111988455057144, 0.03908128663897514, -0.006063270848244429, 0.02464492805302143, 0.045453909784555435, -0.022665083408355713, -0.011765632778406143, -0.03800887241959572, -0.04182419553399086, -0.006429335568100214, -0.009316607378423214, 0.01019310113042593, -0.008543231524527073, 0.011817190796136856, 0.07176932692527771, -0.009414568543434143, -0.02225261740386486, 0.027367211878299713, 0.007635802961885929, 0.042937856167554855, -0.013621736317873001, -0.016962721943855286, 0.045536402612924576, -0.019272539764642715, 0.013229891657829285, -0.007249114569276571, 0.015869682654738426, 0.03192497789859772, 0.02914082258939743, -0.03800887241959572, -0.059477798640728, 0.0037586092948913574, 0.005836413707584143, -0.014096073806285858, 0.031512510031461716, 0.038029495626688004, 0.0029362523928284645, 0.023077551275491714, 0.025263627991080284, 0.031347524374723434, -0.006362309679389, 0.05403323099017143, -0.020314019173383713, -0.017880462110042572, 0.021572045981884003, 0.005753920413553715, -0.037204559892416, 0.06104517728090286, 0.0034260572865605354, -0.007042881101369858, -0.0019141065422445536, 0.041886065155267715, -0.06570605933666229, -0.004761420655995607, -0.040524922311306, -0.021654538810253143, 0.02990388683974743, 0.0011594201205298305, 0.028666485100984573, -0.052342113107442856, -0.020943032577633858, -0.022355733439326286, -0.01648838445544243, -0.031430017203092575, -0.005954998079687357, -0.01851978711783886, 0.0016356910346075892, 0.020314019173383713, -0.023902487009763718, -0.06620101630687714, -0.03565780818462372, -0.008058582432568073, 0.08686563372612, 0.024294329807162285, 0.03223432973027229, 0.012662749737501144, -0.04114362224936485, -0.0004923829692415893, -0.011270672082901001, 0.016921475529670715, -0.016581188887357712, -0.0012348243035376072, -0.03027510829269886, 0.025882329791784286, 0.08005992323160172, 0.04875364899635315, 0.033368613570928574, 0.005217712838202715, 0.03662710636854172, 0.03633837774395943, -0.024129344150424004, 0.01750924065709114, -0.005537374876439571, -0.029120199382305145, -0.012539009563624859, 0.03194560110569, -0.051929645240306854, -0.035162847489118576, -0.026129810139536858, -0.005728140939027071, -0.011487217620015144, 0.021695785224437714, -0.020283084362745285, -0.015127242542803288, -0.047804974019527435, -0.019984045997262, 0.021943265572190285, -0.018066072836518288, -0.04248414188623428, 0.030007004737854004, -0.02767656370997429, -0.0050398362800478935, -0.04077240452170372, -0.009182555601000786, -0.026171056553721428, 0.06471613794565201, 0.003320362651720643, -0.03683333843946457, 0.05741546303033829, 0.03976185992360115, 0.019437527284026146, -0.024211836978793144, -0.05506439879536629, -0.06050897017121315, -0.009512529708445072, 0.019509708508849144, -0.005173888057470322, 0.03322425112128258, -0.019808746874332428, 0.010177633725106716, -0.021180201321840286, -0.05584808811545372, -0.02893458865582943, 0.06950075924396515, -0.05551811307668686, 0.02050994150340557, 0.01551908627152443, 0.02792404405772686, -0.061952605843544006, -0.0073470757342875, -0.0026681486051529646, -0.026810381561517715, -0.010404489934444427, -0.02435620129108429, 0.024583056569099426, 0.043185338377952576, -0.015498463064432144, 0.007001634221524, 0.029367679730057716, -0.05976652726531029, 0.00472017377614975, -0.072759248316288, 0.0645923987030983, 0.031306277960538864, 0.009692983701825142, 0.009074282832443714, 0.03293552249670029, 0.03128565102815628, 0.003346141893416643, -0.015766566619277, 0.01948908530175686, -0.012404956854879856, -0.025799836963415146, 0.019293162971735, 0.023448772728443146, 0.02124207094311714, -0.0009641425567679107, -0.021695785224437714, -0.026129810139536858, -0.002895005512982607, -0.018375422805547714, -0.04401027411222458, -0.01762267015874386, -0.054651930928230286, 0.009775477461516857, -0.03699832782149315, -0.0034621483646333218, 0.010847892612218857, 0.03660648316144943, -0.02868710830807686, 0.06001400947570801, -0.05498190596699715, 0.08175104111433029, 0.021922642365098, -0.013869216665625572, 0.028955211862921715, -0.077461376786232, 0.014188879169523716, 0.0662422627210617, 0.06867582350969315, -0.012136853300035, 0.020200591534376144, 0.001978554530069232, -0.03477100282907486, -0.05774543806910515, -0.03173936530947685, -0.03328612074255943, 0.035121601074934006, -0.047516245394945145, -0.043061599135398865, 0.016529630869627, -0.023572511970996857, 0.019664384424686432, -0.06207634508609772, 0.035967156291007996, 0.006187011022120714, 0.022830070927739143, 0.0036632262635976076, 0.05411572381854057, 0.06273629516363144, -0.06088018789887428, 0.023840615525841713, -0.013343320228159428, 0.039864975959062576, -0.0004034446901641786, 0.031533133238554, -0.006130296736955643, 0.030254485085606575, -0.02030370756983757, 0.03772014379501343, 0.009935308247804642, -0.0017542754067108035, 0.02184014953672886, -0.02022121474146843, -0.034853495657444, -0.012466827407479286, -0.019148798659443855, -0.0016614702763035893, 0.00784203689545393, -0.05522938445210457, 0.019849993288517, 0.05741546303033829, -0.06248881295323372, 0.05762169510126114, 0.02221136912703514, 0.016715241596102715, -0.041473597288131714, 0.005093972664326429, -0.04858865961432457, -0.030007004737854004, 0.034461650997400284, -0.009512529708445072, 0.028604615479707718, 0.04339157044887543, -0.0023832882288843393, -0.003420901484787464, 0.06364372372627258, 0.020375890657305717, 0.010017802007496357, -0.01710708625614643, 0.02042744867503643, -0.01827230677008629, -0.04904237389564514, -0.007130530197173357, 0.026088563725352287, -0.04178294911980629, -0.08307093381881714, -0.022582590579986572, -0.05312580242753029, -0.008130763657391071, -0.019509708508849144, 0.0928051695227623, 0.018550721928477287, -0.01856103353202343, -0.007909062318503857 ]
718,595
pluginlib._loader
__init__
null
def __init__(self, group=None, library=None, modules=None, paths=None, entry_point=None, blacklist=None, prefix_package='pluginlib.importer', type_filter=None): # Make sure we got iterables for argname, arg in (('modules', modules), ('paths', paths), ('blacklist', blacklist), ('type_filter', type_filter)): if not isinstance(arg, (NoneType, Iterable)) or isinstance(arg, BASESTRING): raise TypeError("Expecting iterable for '%s', received %s" % (argname, type(arg))) # Make sure we got strings for argname, arg in (('library', library), ('entry_point', entry_point), ('prefix_package', prefix_package)): if not isinstance(arg, (NoneType, BASESTRING)): raise TypeError("Expecting string for '%s', received %s" % (argname, type(arg))) self.group = group or '_default' self.library = library self.modules = modules or tuple() self.paths = paths or tuple() self.entry_point = entry_point self.prefix_package = prefix_package self.type_filter = type_filter self.loaded = False if blacklist: self.blacklist = [] for entry in blacklist: if isinstance(entry, BlacklistEntry): pass elif isinstance(entry, Iterable): try: entry = BlacklistEntry(*entry) except (AttributeError, TypeError) as e: # pylint: disable=raise-missing-from raise AttributeError("Invalid blacklist entry '%s': %s " % (entry, e)) else: raise AttributeError("Invalid blacklist entry '%s': Not an iterable" % entry) self.blacklist.append(entry) self.blacklist = tuple(self.blacklist) else: self.blacklist = None
(self, group=None, library=None, modules=None, paths=None, entry_point=None, blacklist=None, prefix_package='pluginlib.importer', type_filter=None)
[ -0.004868193995207548, -0.0072042495012283325, -0.056433286517858505, 0.001600137329660356, -0.003742530010640621, -0.010641761124134064, 0.03935224562883377, 0.06743331998586655, -0.057750191539525986, -0.010138237848877907, 0.009513676166534424, 0.053993139415979385, -0.048493120819330215, 0.018126821145415306, -0.04973255842924118, 0.01118401624262333, -0.023258879780769348, 0.0831974595785141, 0.014137371443212032, -0.02054760418832302, -0.060190342366695404, 0.010544929653406143, 0.018407631665468216, 0.06789811700582504, 0.03154763951897621, 0.048067063093185425, 0.03582758456468582, -0.014030857011675835, -0.017032627016305923, -0.023607473820447922, 0.053373418748378754, -0.0049916538409888744, 0.008482422679662704, 0.03534342721104622, 0.02782931737601757, -0.058214981108903885, -0.020838098600506783, 0.05763399600982666, -0.04969382658600807, 0.012907613068819046, 0.07181009650230408, -0.031431443989276886, 0.05015861615538597, -0.0032922644168138504, 0.02252296172082424, 0.039700835943222046, 0.015551107935607433, 0.03276771306991577, -0.05654948577284813, -0.016906745731830597, -0.03493673726916313, 0.02872016653418541, 0.023103950545191765, 0.004693897906690836, -0.04733114317059517, 0.10171160846948624, 0.05635582283139229, 0.05434172973036766, 0.002515193307772279, 0.07394038885831833, 0.00047598639503121376, 0.03921667858958244, 0.04384521767497063, 0.0066281030885875225, 0.0180977713316679, -0.009387795813381672, -0.07529602944850922, -0.042993102222681046, -0.030288834124803543, 0.09807074815034866, -0.015599523670971394, -0.0042121619917452335, 0.0011916302610188723, -0.0012285471893846989, 0.08683831989765167, -0.03129588067531586, 0.007915959693491459, 0.002263431902974844, 0.01285919826477766, 0.012123280204832554, 0.03850013017654419, 0.034665606915950775, -0.015948116779327393, -0.0008254869026131928, 0.038287099450826645, -0.021632114425301552, 0.0005092721548862755, -0.0329032801091671, 0.008758392184972763, 0.04008816182613373, -0.12812718749046326, -0.03896491974592209, 0.012423456646502018, 0.01852382905781269, -0.028507137671113014, -0.005683997645974159, 0.02031520940363407, -0.05527131259441376, -0.013169057667255402, -0.003197853919118643, 0.021225422620773315, -0.10256372392177582, -0.020373307168483734, -0.023762403056025505, 0.0333874337375164, -0.009595982730388641, 0.001223100465722382, 0.011774687096476555, -0.06414105743169785, 0.02984340861439705, 0.018252702429890633, -0.027945516631007195, 0.0031615423504263163, 0.05697554349899292, -0.055968496948480606, -0.04616916924715042, -0.04814452677965164, -0.03464624285697937, 0.07986646145582199, -0.007949850521981716, -0.01702294498682022, 0.04950016364455223, -0.05744033306837082, 0.07072558999061584, 0.049422699958086014, -0.013691946864128113, 0.007543159183114767, -0.008007949218153954, 0.06046146899461746, -0.017700763419270515, 0.04640156403183937, 0.0036481195129454136, -0.06747205555438995, -0.01653878763318062, -0.038190267980098724, -0.05565863475203514, -0.022832822054624557, 0.003967662807554007, -0.04442620277404785, 0.04663395881652832, 0.012510605156421661, -0.019298478960990906, 0.05472905561327934, -0.008046681992709637, -0.050971999764442444, -0.03503356873989105, 0.008245185948908329, -0.005378979258239269, 0.021554648876190186, 0.005495176650583744, -0.03059869445860386, -0.0563945546746254, -0.0021133432164788246, 0.05194031447172165, -0.012568703852593899, 0.019201649352908134, -0.02519550733268261, -0.00884069874882698, 0.014863605611026287, -0.02904939278960228, -0.003076814813539386, -0.03514976426959038, 0.006894389167428017, -0.014824873767793179, -0.01729407161474228, -0.005044911056756973, 0.05678188055753708, -0.03737688437104225, -0.029552916064858437, 0.013914658688008785, -0.04628536477684975, -0.05178538337349892, -0.02815854549407959, 0.07808476686477661, -0.010235069319605827, 0.04996495693922043, 0.009557249955832958, 0.02684163860976696, 0.005587166640907526, 0.023917334154248238, 0.013362720608711243, 0.02769375406205654, -0.033368069678545, -0.009717022068798542, 0.00801279116421938, 0.02200007252395153, 0.010757958516478539, 0.016819598153233528, 0.010428732261061668, 0.02383986860513687, -0.018359215930104256, 0.0046067493967711926, 0.06603895127773285, 0.03896491974592209, -0.05724667012691498, 0.030346931889653206, -0.0658065602183342, 0.017710447311401367, -0.057788923382759094, 0.043457891792058945, -0.02120605669915676, 0.0056694732047617435, 0.00728655606508255, 0.008787441067397594, 0.02680290676653385, 0.026725441217422485, 0.0033697295002639294, 0.028274742886424065, -0.04063041880726814, 0.011551975272595882, 0.013914658688008785, -0.05879596993327141, -0.021399719640612602, 0.0413663350045681, -0.005587166640907526, -0.031063484027981758, 0.05325721949338913, 0.019007986411452293, -0.005378979258239269, 0.032128628343343735, 0.054883986711502075, 0.06224316358566284, 0.019656755030155182, 0.01701326109468937, -0.01175532117486, 0.04926776885986328, 0.03127651289105415, -0.002354211173951626, -0.02482754737138748, 0.02345254272222519, 0.010573978535830975, -0.05286989361047745, -0.022716624662280083, 0.015357445925474167, -0.015309030190110207, -0.05430299788713455, 0.061933305114507675, 0.039274778217077255, -0.021632114425301552, 0.03300011157989502, 0.0728946104645729, 0.015008852817118168, -0.026589877903461456, -0.07208122313022614, -0.016529103741049767, -0.01381782814860344, -0.05015861615538597, -0.06263048946857452, 0.025873325765132904, -0.005761462729424238, -0.004308993462473154, 0.07014460116624832, -0.014398816041648388, -0.015309030190110207, -0.04260577633976936, -0.002239224035292864, -0.013953391462564468, -0.07529602944850922, 0.03735752031207085, -0.041908591985702515, 0.017846010625362396, -0.02670607529580593, 0.03886808827519417, 0.05023608356714249, 0.002536980202421546, -0.011929617263376713, 0.04427127540111542, -0.0009743650443851948, 0.04140506684780121, 0.030385665595531464, 0.06100372597575188, 0.03158637136220932, 0.011154966428875923, 0.06317274272441864, -0.05364454537630081, 0.012491239234805107, 0.02351064234972, -0.01412768755108118, 0.03286454454064369, 0.006473172921687365, 0.07196503132581711, 0.021554648876190186, -0.0180977713316679, 0.0012025238247588277, 0.07893688231706619, -0.027209598571062088, -0.021787043660879135, 0.03323250636458397, -0.06646501272916794, 0.009218340739607811, 0.012423456646502018, 0.019714854657649994, 0.019869783893227577, -0.04930650070309639, 0.021748311817646027, 0.033813491463661194, -0.028797632083296776, -0.03088918700814247, 0.02006344683468342, -0.06166217848658562, -0.0422959141433239, -0.07041572779417038, 0.05914456397294998, 0.03507230058312416, -0.01743931882083416, -0.03592441603541374, 0.015618890523910522, -0.020276475697755814, -0.0013411135878413916, 0.03131524473428726, 0.08691578358411789, 0.04953889921307564, 0.018717491999268532, -0.01658720336854458, 0.017652347683906555, 0.027383893728256226, 0.022600427269935608, -0.01931784674525261, -0.04008816182613373, 0.038809988647699356, -0.024653250351548195, 0.022832822054624557, 0.04709874838590622, 0.025137407705187798, 0.03966210409998894, 0.033774759620428085, 0.008003107272088528, 0.007199408020824194, -0.01772981323301792, -0.007228457368910313, -0.042993102222681046, 0.017691079527139664, -0.012646169401705265, 0.022077538073062897, 0.020140912383794785, 0.0037352677900344133, -0.020605701953172684, -0.10047216713428497, 0.016751816496253014, -0.05519384518265724, 0.038577593863010406, -0.024033531546592712, -0.06913755089044571, 0.03834519907832146, -0.047834668308496475, -0.03112158179283142, 0.0038272575475275517, 0.000449660379672423, 0.04996495693922043, 0.01208454743027687, 0.04988748952746391, -0.01241377368569374, -0.050042420625686646, 0.021283522248268127, 0.04380648583173752, -0.034433212131261826, -0.05705300718545914, -0.014989486895501614, -0.0017223869217559695, -0.0024268347769975662, 0.08327492326498032, 0.010767641477286816, -0.04884171113371849, 0.03644730523228645, -0.03305820748209953, -0.044077612459659576, 0.014301984570920467, -0.026822272688150406, 0.010380316525697708, -0.029397984966635704, 0.017545832321047783, 0.01767171360552311, -0.030405031517148018, -0.07293333858251572, 0.041482534259557724, -0.011542292311787605, 0.05984174832701683, 0.012142646126449108, -0.04702128469944, -0.0030961812008172274, -0.03346490114927292, 0.08567634224891663, -0.02077999897301197, 0.02279409021139145, -0.04221845045685768, 0.014892655424773693, 0.013014127500355244, 0.05023608356714249, 0.015028218738734722, 0.02039267309010029, 0.04438747093081474, -0.017594248056411743, 0.014311667531728745, -0.018688442185521126, -0.0006614789017476141, -0.028739532455801964, -0.00671040965244174, 0.003510134993121028, 0.01752646639943123, -0.03604061156511307, 0.04733114317059517, -0.05682061240077019, -0.003590020816773176, 0.038480762392282486, -0.00907309353351593, -0.03284518048167229, 0.0390036515891552, 0.013740362599492073, -0.007272031158208847, -0.010089822113513947, 0.07657419890165329, -0.020993027836084366, -0.00975575391203165, -0.0766516625881195, -0.04310929775238037, 0.012636485509574413, -0.04492972791194916, -0.005800195503979921, -0.0296110138297081, -0.024420855566859245, -0.002892835298553109, -0.028778264299035072, 0.0246726181358099, -0.06263048946857452, 0.0033939373679459095, -0.0029315678402781487, -0.020702533423900604, -0.02533107064664364, -0.029862776398658752, -0.04105647653341293, -0.05515511333942413, 0.029223689809441566, -0.021264156326651573, -0.05519384518265724, 0.02670607529580593, -0.045433249324560165, -0.004955342039465904, -0.016422590240836143, 0.03327123820781708, -0.026822272688150406, -0.0479508638381958, -0.006032590754330158, 0.063947394490242, 0.01823333464562893, -0.0404367558658123, -0.006347292102873325, -0.06247556209564209, 0.08823268860578537, 0.0020564550068229437, -0.013159374706447124, -0.05306355655193329, 0.011019403114914894, 0.07955660670995712, -0.021883875131607056, -0.01706167683005333, -0.0333874337375164, -0.022484229877591133, 0.012520288117229939, 0.01701326109468937, 0.04245084524154663, -0.007209090981632471, -0.02647368051111698, -0.007514109369367361, -0.059067096561193466, -0.005364454351365566, 0.06053893268108368, 0.062165699899196625, -0.0030283990781754255, 0.013265889137983322, 0.018930520862340927, -0.019521191716194153, 0.004362250678241253, 0.018543194979429245, 0.013353037647902966, -0.03954590484499931, 0.04074661433696747, 0.055542439222335815, -0.007722296752035618, -0.043457891792058945, -0.05740160122513771, -0.004543809220194817, -0.009552408941090107, 0.013779095374047756, 0.022309932857751846, -0.04217971861362457, -0.03834519907832146, 0.0338522270321846, -0.02157401479780674, 0.04295437037944794, 0.006027748808264732, -0.005640423856675625, -0.00024117047723848373, -0.008801965974271297, -0.009237706661224365, 0.04159872978925705, 0.007480218540877104, 0.021360985934734344, 0.05763399600982666, 0.05317975580692291, -0.0225616954267025, 0.024130363017320633, 0.003001770470291376, -0.0069331219419837, -0.051824115216732025, 0.043264228850603104, -0.013953391462564468, -0.0033140515442937613, -0.0077513461001217365, -0.025447268038988113, -0.03733815252780914, -0.0122201107442379, 0.004158904775977135, -0.0009743650443851948, 0.013788778334856033, 0.010874155908823013, 0.00789659284055233, -0.012636485509574413, 0.036311741918325424, -0.027558190748095512, 0.013149691745638847, 0.021322254091501236, 0.006153629627078772, 0.027151498943567276, -0.035885684192180634, -0.016422590240836143, -0.021225422620773315, 0.006168154533952475, 0.014776458032429218, 0.0029775628354400396, -0.0239754319190979, 0.020993027836084366, 0.014544062316417694, -0.044542402029037476, -0.05294736102223396, -0.008845539763569832, 0.03859695792198181, -0.01318842452019453, 0.0536058135330677, 0.024149728938937187, -0.0008448531734757125, 0.02252296172082424, 0.028991293162107468, 0.029824042692780495, -0.010544929653406143, 0.04260577633976936, -0.015357445925474167, -0.05670441314578056, 0.041250135749578476, -0.014931388199329376, -0.03482053801417351, 0.060577668249607086, -0.013304621912539005, -0.019908517599105835, -0.014912021346390247, 0.01429230161011219, -0.054690323770046234, 0.011300213634967804, -0.01762329787015915, -0.006768508348613977, 0.04012689366936684, -0.023588106036186218, 0.00890363845974207, -0.07831716537475586, 0.024188460782170296, -0.023859234526753426, -0.030966652557253838, -0.014437547884881496, -0.0441938079893589, -0.042528312653303146, 0.01701326109468937, -0.002337265759706497, -0.05298609286546707, -0.05391567200422287, 0.044310007244348526, -0.0018712650053203106, 0.07909180968999863, 0.04117267206311226, 0.025795860216021538, -0.004962604492902756, -0.058641038835048676, 0.01236535795032978, 0.02039267309010029, 0.0115132424980402, -0.04907410591840744, -0.01447628065943718, -0.050507210195064545, 0.004822199232876301, 0.032554686069488525, 0.024924378842115402, 0.04709874838590622, 0.02651241235435009, 0.02674480713903904, 0.01752646639943123, -0.004217003472149372, -0.009261914528906345, -0.035091664642095566, -0.019637389108538628, -0.04063041880726814, 0.015154100023210049, -0.023200782015919685, -0.0281972773373127, 0.004894822835922241, -0.004270260687917471, -0.021612748503684998, 0.023607473820447922, -0.0324384868144989, -0.017700763419270515, -0.052676230669021606, -0.030250100418925285, -0.009363587945699692, -0.01452469639480114, -0.019201649352908134, 0.024382123723626137, 0.001773223397321999, 0.028662066906690598, -0.04965509474277496, 0.003277739742770791, 0.005369296297430992, 0.07165516912937164, -0.006114897318184376, -0.009373270906507969, 0.04047548770904541, 0.04202478751540184, 0.04644029587507248, -0.01922101527452469, -0.05705300718545914, -0.03135397657752037, -0.03422018513083458, 0.06321147829294205, -0.011009720154106617, 0.015483326278626919, -0.02618318609893322, 0.003091339487582445, -0.04314802959561348, -0.010012357495725155, 0.006255302578210831, 0.0780460312962532, -0.04535578563809395, 0.04485226050019264, 0.03780294209718704, 0.01285919826477766, -0.07111291587352753, 0.005548433866351843, 0.018349533900618553, -0.039468441158533096, -0.018320484086871147, -0.027558190748095512, 0.015047585591673851, 0.04926776885986328, 0.00026734519633464515, 0.0036916935350745916, 0.05306355655193329, -0.04396141320466995, -0.011542292311787605, -0.07103544473648071, 0.06282415241003036, 0.02275535836815834, 0.019530875608325005, 0.011367995291948318, 0.020470138639211655, -0.004451819229871035, 0.012375040911138058, 0.029088124632835388, 0.01857224479317665, -0.02891382947564125, -0.003730426076799631, 0.019346894696354866, -0.010670810006558895, -0.010089822113513947, 0.012433139607310295, -0.028875095769762993, 0.012471872381865978, -0.0020479820668697357, 0.01556079089641571, -0.04159872978925705, -0.01890147104859352, -0.062165699899196625, -0.00172722851857543, -0.013672580942511559, -0.0016642881091684103, -0.026589877903461456, -0.00433562183752656, -0.03576948493719101, 0.003134913509711623, -0.034239549189805984, 0.08342985808849335, -0.018301118165254593, -0.0039047226309776306, 0.005819561891257763, -0.07669039815664291, 0.03447194769978523, 0.03139271214604378, 0.04012689366936684, -0.03590504825115204, -0.015483326278626919, 0.03820963576436043, -0.03332933783531189, -0.0959017276763916, 0.0027960040606558323, -0.003987029194831848, 0.03724132105708122, -0.017652347683906555, -0.044581133872270584, 0.04953889921307564, -0.04217971861362457, -0.009184449911117554, -0.06778191775083542, 0.03530469536781311, 0.0023360552731901407, 0.020993027836084366, 0.02335571125149727, 0.04988748952746391, 0.03879062086343765, -0.06875023245811462, 0.017148824408650398, -0.0441938079893589, 0.014185787178575993, -0.003498031059280038, 0.017410269007086754, -0.05089453607797623, 0.029746579006314278, -0.032457854598760605, 0.019472775980830193, 0.03129588067531586, 0.04272197186946869, -0.01653878763318062, -0.04450367018580437, -0.005926076322793961, 0.005538750905543566, -0.05066214129328728, 0.01653878763318062, 0.01452469639480114, -0.06805304437875748, 0.04012689366936684, 0.07351432740688324, -0.06088752672076225, 0.013314304873347282, 0.031760670244693756, 0.06177837401628494, 0.0030937602277845144, 0.0010826950892806053, -0.04473606497049332, -0.010118871927261353, 0.01992788352072239, -0.041250135749578476, 0.05275369808077812, 0.014137371443212032, -0.05101073533296585, -0.0005946047604084015, 0.036176178604364395, -0.0033406801521778107, 0.0010536456247791648, -0.039700835943222046, 0.039042383432388306, 0.021748311817646027, -0.08234534412622452, 0.00902467779815197, 0.012985078617930412, -0.02637684904038906, -0.06685233861207962, -0.025544099509716034, -0.0545353926718235, 0.031005384400486946, -0.058873437345027924, 0.06902135908603668, 0.05720793828368187, -0.004894822835922241, -0.020799364894628525 ]
718,596
pluginlib._loader
__repr__
null
def __repr__(self): args = [] for attr, default in (('group', '_default'), ('library', None), ('modules', None), ('paths', None), ('entry_point', None), ('blacklist', None), ('prefix_package', 'pluginlib.importer'), ('type_filter', None)): val = getattr(self, attr) if default and val == default: continue if val: args.append('%s=%r' % (attr, val)) return '%s(%s)' % (self.__class__.__name__, ', '.join(args))
(self)
[ 0.024693917483091354, -0.0315278135240078, 0.08292561769485474, -0.021095113828778267, 0.05222093313932419, -0.0619453601539135, 0.042611364275217056, -0.028618143871426582, 0.05444147437810898, -0.03217866271734238, -0.020654834806919098, 0.031106678768992424, -0.0364091694355011, 0.041539378464221954, -0.02031026780605316, 0.026225322857499123, -0.019869988784193993, -0.030168691650032997, 0.01214596163481474, 0.016654036939144135, 0.02429192326962948, 0.03384406492114067, 0.002002791501581669, -0.028388433158397675, 0.05225921794772148, 0.06470189243555069, 0.008193020708858967, -0.02509591169655323, -0.019037287682294846, -0.005288135260343552, -0.03774914890527725, -0.06378304958343506, -0.006675971671938896, -0.00045702888746745884, -0.004491325933486223, -0.014213358983397484, -0.06064366549253464, 0.07523030787706375, -0.039089132100343704, -0.023717645555734634, 0.06642471998929977, -0.022664804011583328, -0.019467994570732117, -0.058269988745450974, -0.033269789069890976, 0.0014608175260946155, 0.06948753446340561, 0.022856229916214943, -0.03516490384936333, -0.07886739075183868, 0.028388433158397675, 0.07113379240036011, 0.005982053466141224, -0.0004654037766158581, -0.07978623360395432, 0.00353180430829525, 0.03189152479171753, 0.032236091792583466, 0.002660817466676235, 0.07940338551998138, -0.0130360908806324, 0.040007974952459335, 0.047511860728263855, -0.0445639044046402, -0.014471784234046936, -0.05042153224349022, -0.059724822640419006, 0.010959122329950333, -0.026167895644903183, 0.05995453521609306, -0.006594615988433361, -0.045061614364385605, -0.018338583409786224, -0.0030771682504564524, 0.026493318378925323, -0.048277564346790314, 0.006613758392632008, 0.004496111534535885, 0.022415950894355774, -0.03824685886502266, -0.013878364115953445, 0.00010139580990653485, -0.04406619817018509, 0.004259222187101841, 0.007518244907259941, -0.06340019404888153, -0.047129008919000626, -0.045444466173648834, 0.008432302623987198, 0.001258624019101262, -0.05298663675785065, 0.008618942461907864, 0.01282552257180214, 0.047282151877880096, -0.06914296746253967, -0.01820458471775055, 0.010346559807658195, -0.05417347699403763, 0.08445702493190765, -0.04069710522890091, 0.01913299970328808, -0.09058264642953873, -0.009513857774436474, -0.03993140533566475, -0.027316449210047722, -0.05455632880330086, -0.028943568468093872, 0.03281036764383316, -0.003617946058511734, 0.03828514367341995, -0.012538384646177292, -0.0007298105047084391, 0.022301096469163895, -0.0004677965771406889, 0.028771284967660904, -0.043109070509672165, -0.041309669613838196, -0.001037886249832809, 0.07320119440555573, -0.019965702667832375, -0.040505681186914444, 0.04173080623149872, -0.044142767786979675, 0.0050057824701070786, -0.019544566050171852, 0.012940377928316593, -0.034246060997247696, 0.010681554675102234, 0.028158722445368767, -0.05045981705188751, 0.05137865990400314, -0.03156609833240509, -0.07653199881315231, 0.0065180454403162, 0.037232302129268646, -0.008441873826086521, 0.05072781443595886, 0.05019182339310646, 0.03357607126235962, 0.1336917132139206, 0.012174675241112709, -0.025612760335206985, 0.01282552257180214, 0.06206021457910538, -0.0358731783926487, -0.027507875114679337, 0.0401993989944458, 0.08085822314023972, 0.017630308866500854, -0.030953537672758102, 0.015830906108021736, 0.024981055408716202, -0.001927417702972889, -0.010604984126985073, 0.020176270976662636, 0.04770328849554062, -0.025115054100751877, -0.030245263129472733, 0.00494356919080019, -0.0651995986700058, -0.02666560187935829, -0.028809569776058197, 0.03736630082130432, -0.02107597142457962, 0.055436886847019196, 0.028292721137404442, 0.06340019404888153, -0.03524147346615791, 0.02586161345243454, 0.041041672229766846, -0.046861015260219574, -0.08131764084100723, -0.04096510261297226, 0.04601874202489853, -0.007523030508309603, 0.0961722806096077, -0.010614556260406971, 0.07622572034597397, -0.007245463319122791, -0.010480557568371296, 0.029039280489087105, -0.024866200983524323, -0.06493160128593445, 0.011447257362306118, 0.0358731783926487, -0.05513060465455055, 0.043491922318935394, -0.029460417106747627, -0.011782252229750156, -0.0020482551772147417, 0.032350946217775345, 0.023277366533875465, 0.011609969660639763, 0.053752340376377106, -0.03416949138045311, -0.04257307946681976, -0.03732801228761673, -0.06186879053711891, 0.027144165709614754, 0.0439896285533905, -0.0006628115079365671, 0.020520836114883423, -0.03080039657652378, 0.04977068677544594, 0.046861015260219574, -0.0065276166424155235, 0.015955332666635513, -0.04326220974326134, -0.008116450160741806, 0.020654834806919098, 0.05241236090660095, 0.006977467332035303, 0.00390987005084753, -0.0035820535849779844, -0.0030939180869609118, 0.0021284145768731833, 0.032561514526605606, 0.003888334846124053, -0.07128693908452988, 0.05444147437810898, 0.042343366891145706, -0.019735991954803467, 0.05417347699403763, -0.0017635093536227942, -0.021650247275829315, -0.008030308410525322, 0.04820099472999573, -0.006958324462175369, -0.0017934197094291449, 0.014050647616386414, 0.04567417502403259, -0.04494675621390343, -0.050498101860284805, 0.04559760540723801, -0.0429176464676857, 0.01590747758746147, -0.010442272759974003, 0.03085782565176487, -0.0203676950186491, 0.025115054100751877, 0.010662412270903587, 0.05172322690486908, 0.006398404482752085, -0.00871944148093462, 0.07247377187013626, -0.08307875692844391, -0.02021455578505993, -0.005173279903829098, 0.01176310982555151, -0.01771645061671734, 0.02769930101931095, 0.02530648000538349, -0.03732801228761673, -0.0134476562961936, -0.0007070787250995636, -0.049962110817432404, -0.06699900329113007, -0.016328614205121994, 0.03885941952466965, -0.012815951369702816, -0.01165782567113638, -0.007384246680885553, -0.008121236227452755, 0.016395611688494682, 0.051263805478811264, 0.021305682137608528, -0.0063840476796031, -0.017860019579529762, 0.004024725407361984, 0.029958123341202736, 0.0717080757021904, 0.01510348916053772, -0.06447218358516693, 0.05275692790746689, -0.044678762555122375, -0.018329011276364326, -0.0033762711100280285, -0.02184167318046093, -0.026531603187322617, -0.052948351949453354, 0.03602631762623787, 0.013246659189462662, -0.025995612144470215, -0.0325997993350029, 0.03951026871800423, -0.018013158813118935, -0.006537188310176134, 0.007814954966306686, -0.027086738497018814, 0.05459461361169815, 0.08759640902280807, 0.03562432527542114, -0.0028450647369027138, -0.029020138084888458, 0.029536986723542213, -0.019199999049305916, 0.03786400705575943, 0.010872980579733849, -0.004012761637568474, 0.0055034891702234745, -0.02879042737185955, -0.05080438405275345, 0.06129451468586922, 0.0268953125923872, -0.034475769847631454, 0.02210967056453228, 0.01355294045060873, -0.008633299730718136, 0.012921235524117947, 0.0014847456477582455, 0.0062883347272872925, 0.03455233946442604, 0.031585242599248886, 0.043377067893743515, -0.00582891283556819, 0.029575273394584656, -0.007814954966306686, -0.023449650034308434, 0.007202392444014549, 0.05819341540336609, -0.030072979629039764, 0.03487776592373848, -0.054403189569711685, 0.04138623923063278, 0.02455991879105568, -0.020961115136742592, -0.03866799548268318, 0.01917128451168537, 0.014433498494327068, 0.01225124578922987, -0.02672302909195423, -0.025229908525943756, -0.008815154433250427, 0.05693000555038452, 0.024043070152401924, 0.04911983758211136, 0.012634096667170525, -0.044142767786979675, -0.0268953125923872, -0.0306855421513319, 0.052680354565382004, 0.017199600115418434, -0.05134037509560585, -0.005766699556261301, -0.03828514367341995, 0.03594974800944328, 0.006001196336001158, 0.04502332955598831, 0.061409369111061096, -0.01988913118839264, -0.011609969660639763, -0.029039280489087105, -0.016816748306155205, 0.03296350687742233, 0.017582451924681664, 0.01944885216653347, -0.02645503357052803, 0.019247855991125107, 0.014624924398958683, 0.03411206230521202, 0.05382890999317169, -0.008786439895629883, -0.00031435690470971167, 0.040390826761722565, -0.010193419642746449, -0.01656789518892765, 0.023334793746471405, 0.01529491413384676, 0.044908471405506134, -0.028675571084022522, -0.04812442511320114, 0.010193419642746449, -0.02352621965110302, -0.10995493084192276, -0.039625123143196106, 0.028503289446234703, 0.006642472464591265, -0.004364506341516972, -0.03064725734293461, -0.09961794316768646, -0.009839281439781189, 0.009954136796295643, 0.00790109671652317, 0.04326220974326134, -0.026416748762130737, 0.008480158634483814, 0.035720039159059525, 0.07469431310892105, 0.012509670108556747, 0.0072263204492628574, -0.03514575958251953, -0.020961115136742592, -0.01094955112785101, 0.0027589229866862297, -0.026110466569662094, -0.053254634141922, 0.010298703797161579, -0.04640159383416176, -0.056585442274808884, -0.04666958749294281, 0.017860019579529762, -0.05547517165541649, -0.023947356268763542, -0.014328214339911938, -0.0342269167304039, 0.017783448100090027, 0.022205382585525513, 0.022741375491023064, -0.002416749717667699, -0.054364901036024094, 0.025823328644037247, -0.009188434109091759, -0.04678444564342499, -0.058805979788303375, 0.08545243740081787, 0.004046260844916105, -0.03290608152747154, 0.04046739637851715, 0.013141375035047531, -0.014998205006122589, -0.0271633081138134, -0.021592820063233376, 0.03124067559838295, 0.028120437636971474, 0.017582451924681664, 0.03103010728955269, -0.040658820420503616, -0.006216550245881081, 0.031374674290418625, 0.02243509329855442, -0.03719401732087135, 0.010863409377634525, 0.013122232630848885, 0.019142571836709976, 0.04839241877198219, -0.06921953707933426, 0.01835772581398487, -0.03889770433306694, 0.008489730767905712, 0.021439678966999054, -0.025785043835639954, -0.0505363866686821, 0.003316450398415327, 0.0017276171129196882, -0.04226679727435112, 0.01809930056333542, -0.05455632880330086, 0.029345562681555748, 0.031221533194184303, -0.013332800939679146, 0.011715253815054893, 0.013179660774767399, 0.022951943799853325, -0.001981256064027548, -0.0020925223361700773, -0.06297905743122101, -0.04552103579044342, -0.019544566050171852, -0.005833698436617851, -0.0030867396853864193, -0.007188035640865564, 0.013055233284831047, -0.020578263327479362, 0.022205382585525513, -0.016395611688494682, -0.011006978340446949, 0.0575808547437191, -0.007767098490148783, -0.07917367666959763, -0.02769930101931095, 0.02358364872634411, 0.006920039653778076, -0.017793020233511925, -0.006470188964158297, -0.039625123143196106, 0.08078165352344513, 0.004108474589884281, 0.008011166006326675, -0.08751983940601349, -0.0646636039018631, -0.04146280884742737, -0.06581216305494308, 0.005532203242182732, 0.005474775563925505, -0.022722233086824417, 0.001030109589919448, -0.003948155324906111, 0.027565302327275276, 0.00528334965929389, -0.008523229509592056, 0.016146758571267128, 0.05608773231506348, -0.055168889462947845, -0.020386839285492897, 0.04287935793399811, 0.008810368366539478, 0.008709870278835297, 0.0014237287687137723, -0.035011764615774155, 0.009733997285366058, 0.024464206770062447, -0.07618743181228638, 0.05111066624522209, 0.000004014518708572723, 0.03286779671907425, -0.029575273394584656, 0.03221694752573967, 0.03520318865776062, -0.0001782651961548254, -0.021918244659900665, 0.041692521423101425, -0.06489332020282745, 0.030666399747133255, 0.008465802296996117, 0.0040821535512804985, -0.07377547025680542, 0.01652003824710846, 0.019429709762334824, 0.003519840305671096, 0.01830986887216568, 0.04421934112906456, 0.0016977067571133375, -0.08499301970005035, -0.007049251813441515, -0.03399720788002014, 0.037462010979652405, 0.0008697905577719212, 0.015945762395858765, -0.06696071475744247, 0.04372163116931915, 0.05091923847794533, 0.005752342753112316, -0.02270308881998062, -0.0026584246661514044, -0.03704087436199188, 0.09196091443300247, -0.0793268159031868, 0.09793339669704437, 0.01581176370382309, 0.008422731421887875, 0.057887136936187744, 0.00238325004465878, -0.013093519024550915, -0.014012361876666546, 0.036696311086416245, -0.05061296001076698, -0.011093120090663433, 0.027795013040304184, 0.047511860728263855, -0.04915812239050865, 0.01067198347300291, -0.011236689053475857, -0.03617946058511734, -0.042726218700408936, 0.009217147715389729, 0.05371405556797981, 0.00218584225513041, -0.011341973207890987, 0.008595014922320843, 0.03296350687742233, 0.0037926218938082457, -0.017994016408920288, 0.02639760635793209, -0.010920836590230465, 0.025612760335206985, 0.018979858607053757, 0.025172481313347816, -0.004773678723722696, -0.058537982404232025, -0.01933399774134159, -0.028503289446234703, -0.050383247435092926, -0.0024598203599452972, 0.016539182513952255, -0.02314336784183979, 0.04111824184656143, 0.04085024818778038, 0.050651244819164276, -0.0008494515786878765, -0.018731005489826202, -0.038821134716272354, 0.003562911180779338, 0.011169690638780594, -0.053369488567113876, -0.03384406492114067, 0.0005685942014679313, -0.018434295430779457, 0.0038165501318871975, 0.02205224148929119, -0.00033858424285426736, -0.01520877331495285, -0.01804187335073948, 0.0017790626734495163, 0.00005582003723247908, 0.041807375848293304, -0.020176270976662636, 0.0011898304801434278, -0.011753538623452187, 0.02559361793100834, 0.028809569776058197, 0.004582252819091082, 0.007953738793730736, 0.048047855496406555, 0.03711744397878647, 0.012882950715720654, -0.028866996988654137, 0.022951943799853325, -0.002328215166926384, -0.014060218818485737, 0.04839241877198219, -0.042841073125600815, 0.022569091990590096, -0.024579061195254326, -0.015476768836379051, 0.008733797818422318, -0.048430707305669785, 0.0037064803764224052, 0.019027715548872948, 0.018175872042775154, 0.00411565275862813, -0.040505681186914444, 0.03776829317212105, -0.03924227133393288, 0.01673060655593872, -0.014873777516186237, 0.0058863405138254166, -0.070636086165905, -0.018970288336277008, 0.06282591819763184, -0.04494675621390343, 0.011380258947610855, 0.008164307102560997, 0.03281036764383316, -0.06213678792119026, -0.06891325861215591, -0.037404585629701614, 0.05356091633439064, -0.0034576270263642073, -0.04483190178871155, 0.011332402005791664, 0.007197606842964888, -0.024961913004517555, -0.05026839300990105, 0.024904485791921616, -0.03487776592373848, 0.014778065495193005, -0.03269551321864128, -0.0450998991727829, 0.045827314257621765, -0.0695258155465126, -0.014060218818485737, 0.008968294598162174, -0.034150347113609314, -0.0029503488913178444, -0.03363349661231041, 0.03782572224736214, -0.027852442115545273, 0.04529132321476936, -0.010384844616055489, -0.03183409571647644, -0.03931884095072746, -0.01798444613814354, 0.01962113566696644, -0.01523748692125082, 0.026876170188188553, 0.018434295430779457, -0.028599001467227936, -0.0034695910289883614, 0.027297306805849075, -0.051531802862882614, -0.028713857755064964, 0.05057467520236969, 0.004627716727554798, -0.01328494492918253, -0.07339262217283249, 0.00044087733840569854, -0.006805184297263622, 0.03996969014406204, -0.0010528414277359843, -0.03977826237678528, 0.038821134716272354, -0.0315278135240078, -0.05693000555038452, -0.036256030201911926, 0.007302890997380018, 0.03905084729194641, -0.005737985949963331, 0.01825244165956974, 0.01830029860138893, -0.0559728778898716, -0.04559760540723801, -0.0418456606566906, 0.04605702683329582, -0.0027948154602199793, 0.051263805478811264, -0.00102173478808254, 0.02390907146036625, -0.06068195030093193, 0.03020697832107544, -0.02879042737185955, 0.039089132100343704, 0.035222332924604416, -0.014194216579198837, 0.030111264437437057, 0.015361913479864597, 0.012567098252475262, 0.051914654672145844, 0.0037591224536299706, 0.008236091583967209, 0.017046459019184113, 0.010260418057441711, 0.11363030225038528, -0.000637088727671653, -0.064127616584301, 0.00953300017863512, -0.03629431501030922, 0.0342269167304039, 0.01238524354994297, -0.0401993989944458, -0.005034496076405048, 0.011877965182065964, 0.013016948476433754, 0.026761313900351524, 0.007666599936783314, 0.043109070509672165, 0.07894396781921387, -0.06064366549253464, -0.02666560187935829, -0.005795413628220558, -0.02385164424777031, 0.019353140145540237, 0.034839481115341187, -0.03951026871800423, 0.0222819522023201, 0.07423488795757294, -0.007633100263774395, 0.03776829317212105, 0.0005066799349151552, 0.007594814989715815, 0.0002961116551887244, -0.0198317039757967, 0.043874774128198624, 0.04525303840637207, 0.02574675902724266, -0.0034695910289883614, 0.002660817466676235, 0.030455831438302994, 0.03271465376019478, -0.010901694186031818, 0.03156609833240509, 0.02997726760804653, 0.028943568468093872, -0.026914454996585846, -0.0134476562961936, 0.05302492156624794, -0.05291006714105606, 0.018453437834978104, 0.0068291123025119305, 0.023124225437641144, -0.029728412628173828, -0.03141295909881592, -0.044410765171051025, 0.03619860112667084, 0.011724825017154217, 0.041041672229766846, 0.04862213134765625, -0.022454235702753067, -0.029747555032372475 ]
718,597
pluginlib._loader
get_plugin
Args: plugin_type(str): Parent type name(str): Plugin name version(str): Plugin version Returns: :py:class:`Plugin`: Plugin, or :py:data:`None` if plugin can't be found Retrieve a specific plugin. ``blacklist`` and ``type_filter`` still apply. If ``version`` is not specified, the newest available version is returned.
def get_plugin(self, plugin_type, name, version=None): """ Args: plugin_type(str): Parent type name(str): Plugin name version(str): Plugin version Returns: :py:class:`Plugin`: Plugin, or :py:data:`None` if plugin can't be found Retrieve a specific plugin. ``blacklist`` and ``type_filter`` still apply. If ``version`` is not specified, the newest available version is returned. """ if not self.loaded: self.load_modules() # pylint: disable=protected-access return get_plugins()[self.group]._filter(blacklist=self.blacklist, newest_only=True, type_filter=self.type_filter, type=plugin_type, name=name, version=version)
(self, plugin_type, name, version=None)
[ 0.02163826860487461, -0.0193506870418787, -0.054826948791742325, -0.016969352960586548, 0.04841421917080879, -0.014850527979433537, 0.08857814967632294, 0.0032555845100432634, -0.05268937349319458, 0.0036610676907002926, 0.023982102051377296, -0.019425690174102783, -0.056814517825841904, 0.0007078376365825534, 0.01202855259180069, -0.02720721624791622, 0.004823608789592981, 0.026757201179862022, 0.041926492005586624, -0.03073234297335148, 0.013706737197935581, -0.004619695246219635, 0.02505088970065117, 0.00018369793542660773, 0.03442622348666191, 0.06825242936611176, 0.09667843580245972, -0.007659647148102522, -0.0636022612452507, -0.01966944895684719, 0.04241400584578514, 0.03442622348666191, 0.012066054157912731, 0.04282652214169502, -0.033957455307245255, 0.07534018158912659, -0.06978998333215714, 0.04440157860517502, 0.03093859925866127, 0.0728650912642479, 0.0445890836417675, 0.008611243218183517, 0.0038251359947025776, -0.051639337092638016, 0.00456109968945384, 0.018216272816061974, -0.004286871291697025, 0.018413154408335686, -0.021582016721367836, -0.025763416662812233, 0.032138641923666, -0.012056678533554077, -0.0016547463601455092, -0.044551584869623184, 0.005067367572337389, 0.017991265282034874, 0.021282006055116653, -0.0025500906631350517, 0.05358940362930298, 0.0577145516872406, 0.016969352960586548, -0.032419901341199875, -0.010040981695055962, 0.07365261763334274, -0.01837565377354622, -0.03204488754272461, 0.05583948642015457, -0.0577145516872406, -0.07676523178815842, 0.0463891476392746, -0.012694201432168484, 0.03005731850862503, 0.0290822833776474, -0.0457141250371933, 0.050889309495687485, 0.007565894164144993, 0.009478461928665638, -0.00124926317948848, 0.030526084825396538, 0.008179978467524052, 0.054039422422647476, 0.035682518035173416, -0.01868503913283348, -0.04260151460766792, 0.0039915479719638824, 0.01627557910978794, 0.03812010586261749, -0.0712900310754776, 0.007373699452728033, 0.015328669920563698, -0.06592734158039093, -0.03759508579969406, 0.029026031494140625, -0.003234490053728223, 0.04200149327516556, -0.021038247272372246, 0.023700842633843422, -0.032513655722141266, 0.02131950855255127, 0.008587805554270744, -0.02283831126987934, 0.017100607976317406, -0.006731489207595587, -0.0040993643924593925, 0.07147753983736038, -0.056364502757787704, -0.039376400411129, 0.05823957175016403, -0.013922370038926601, 0.06513981521129608, -0.015797436237335205, -0.0389263853430748, -0.08100287616252899, 0.0014578643022105098, 0.02426336333155632, -0.03881387785077095, -0.08580304682254791, 0.011391029693186283, 0.025425903499126434, -0.00879406277090311, -0.05073930323123932, 0.05955211818218231, -0.009619091637432575, 0.01827252469956875, 0.011409780941903591, 0.03660130128264427, -0.001202386454679072, -0.02066323533654213, -0.00013975106412544847, 0.0186756644397974, 0.03993891924619675, 0.0351950004696846, -0.026532193645834923, -0.012656699866056442, -0.04920174926519394, 0.03324493020772934, -0.007509641814976931, 0.034913741052150726, -0.03084484674036503, -0.0076315212063491344, -0.04833921790122986, -0.0033751199953258038, 0.009047196246683598, -0.05872708931565285, 0.006595546845346689, -0.04755169153213501, 0.05775205418467522, 0.010397244244813919, 0.01904130168259144, -0.03215739130973816, -0.023119572550058365, 0.00835342239588499, 0.08235292881727219, 0.007828403264284134, 0.020044462755322456, -0.015281793661415577, 0.003965766169130802, -0.029644804075360298, -0.039188891649246216, -0.05947711318731308, -0.006042402237653732, 0.029232289642095566, -0.06663987040519714, -0.03266366198658943, 0.015713058412075043, -0.0667523741722107, 0.039301395416259766, 0.0325886569917202, -0.007908093743026257, 0.029326042160391808, -0.058014560490846634, 0.02786349132657051, -0.031332362443208694, 0.03639504313468933, -0.0590646006166935, 0.0636022612452507, 0.0011314855655655265, -0.023644590750336647, 0.026719700545072556, -0.024563373997807503, 0.00043155832099728286, -0.00442984513938427, -0.047289181500673294, 0.009155012667179108, 0.018647538498044014, -0.02199453115463257, 0.0583895742893219, -0.015159914270043373, -0.032419901341199875, 0.010706630535423756, -0.06491480767726898, -0.012112930417060852, 0.057564545422792435, -0.007879967801272869, -0.04530160874128342, 0.047064173966646194, -0.020081963390111923, 0.03093859925866127, -0.04507660120725632, 0.04447657987475395, 0.030769843608140945, 0.0076408968307077885, -0.021132001653313637, -0.011081644333899021, -0.039376400411129, -0.023775845766067505, 0.06187719851732254, -0.01104414276778698, -0.005245498847216368, -0.002742284908890724, -0.01097851525992155, -0.023119572550058365, -0.042789019644260406, 0.008400298655033112, 0.007959658280014992, -0.014813026413321495, -0.005137682426720858, -0.051339324563741684, 0.0577145516872406, 0.05148933082818985, -0.04185148701071739, 0.03933889791369438, 0.056889522820711136, 0.09892851859331131, 0.00705025065690279, 0.004300934262573719, -0.02340083196759224, -0.013003586791455746, -0.04398906230926514, -0.028388509526848793, 0.041813984513282776, -0.025182144716382027, 0.024638375267386436, -0.02482588216662407, -0.02066323533654213, 0.02448837086558342, -0.016641216352581978, 0.0724150761961937, -0.011119144968688488, 0.04207649454474449, 0.02165701985359192, -0.020269470289349556, 0.00047169646131806076, 0.00008430475281784311, -0.05707702785730362, -0.028819775208830833, -0.02831350639462471, -0.05486445128917694, 0.06187719851732254, -0.01770062930881977, 0.017888136208057404, -0.01071600615978241, 0.034482475370168686, -0.0067549278028309345, -0.025838417932391167, -0.03506374731659889, -0.004739230964332819, -0.08317795395851135, 0.014372386038303375, -0.01957569643855095, -0.055689480155706406, 0.0005633989349007607, 0.009169075638055801, -0.0049408008344471455, -0.025613410398364067, -0.047289181500673294, 0.051226820796728134, 0.018881920725107193, 0.006928371265530586, 0.014409887604415417, 0.10515373945236206, 0.09532839059829712, 0.010228488594293594, 0.010294116102159023, 0.011259775608778, -0.08205291628837585, 0.024469619616866112, 0.02906353399157524, 0.014663021080195904, -0.020963246002793312, -0.016050569713115692, 0.04976426810026169, 0.0010904684895649552, -0.012778579257428646, -0.031182358041405678, -0.028819775208830833, -0.009492524899542332, -0.02133825793862343, -0.04886423796415329, 0.04151397570967674, -0.01747562177479267, -0.0193506870418787, -0.0516018345952034, -0.07008998841047287, -0.04537661373615265, 0.03202613815665245, -0.029888562858104706, 0.02754472941160202, 0.015506801195442677, -0.013978621922433376, 0.034369971603155136, -0.01583493873476982, 0.0651773139834404, 0.022988317534327507, -0.027638481929898262, 0.0095628397539258, -0.0029040095396339893, -0.052426863461732864, 0.0031946448143571615, 0.011681665666401386, 0.006665862165391445, -0.027957243844866753, -0.03300117328763008, 0.008283106610178947, -0.06333975493907928, -0.019969459623098373, 0.05988962948322296, -0.02021321840584278, -0.008840939030051231, 0.056251998990774155, -0.04102645814418793, 0.05257686972618103, 0.033394936472177505, 0.04425157234072685, -0.017222486436367035, 0.008123726584017277, -0.06828992813825607, 0.0258009172976017, -0.034369971603155136, -0.03476373478770256, 0.0011355872265994549, -0.011137896217405796, 0.025557158514857292, 0.042901523411273956, 0.016875600442290306, 0.000018210486814496107, 0.02371959388256073, -0.04845172166824341, 0.013912994414567947, 0.043351542204618454, 0.08070287108421326, 0.0011654711561277509, -0.004064206965267658, 0.0025266523007303476, -0.035588763654232025, 0.019725700840353966, 0.022932065650820732, -0.029888562858104706, 0.05268937349319458, -0.030769843608140945, 0.04110145941376686, -0.09915352612733841, -0.056777019053697586, -0.021375760436058044, -0.006787741091102362, -0.06705238670110703, 0.04143897444009781, 0.02668219804763794, -0.0009855818934738636, -0.0038720127195119858, 0.00021094499970786273, 0.0036868497263640165, -0.0439140610396862, 0.03693881258368492, -0.07339011132717133, -0.03378869965672493, 0.018853794783353806, 0.0016113853780552745, 0.011616038158535957, -0.0010582407703623176, -0.03806385397911072, 0.06303974241018295, -0.0011297276942059398, -0.03759508579969406, -0.011550410650670528, -0.035044994205236435, 0.03266366198658943, 0.004898611456155777, 0.05433943122625351, -0.03948890417814255, 0.008165915496647358, 0.04713917523622513, -0.03354494273662567, 0.01240356545895338, 0.000988511717878282, -0.01312546618282795, -0.01944444142282009, 0.011531660333275795, -0.01043474581092596, -0.04878923296928406, 0.03581377491354942, -0.017991265282034874, -0.017344366759061813, -0.012366064824163914, -0.04976426810026169, 0.01628495380282402, -0.016528712585568428, -0.0029766683001071215, -0.05692702531814575, -0.024338364601135254, 0.037445079535245895, -0.032513655722141266, -0.0006269754376262426, 0.021488264203071594, -0.029026031494140625, -0.02405710518360138, 0.05130182206630707, 0.03401371091604233, -0.03967640921473503, -0.04076394811272621, -0.020719487220048904, -0.024657126516103745, 0.006656486541032791, -0.012966086156666279, -0.002014524769037962, 0.023644590750336647, 0.05467694252729416, 0.006820554845035076, -0.03572002053260803, 0.014738024212419987, 0.0017707661027088761, -0.023119572550058365, -0.013181718997657299, -0.011578536592423916, 0.0031149545684456825, -0.032626159489154816, -0.014222380705177784, 0.0053673782385885715, -0.045639123767614365, -0.00814716424793005, -0.0011062893318012357, -0.03421996533870697, 0.03138861432671547, -0.05336439609527588, 0.025013389065861702, 0.02075698785483837, 0.03138861432671547, 0.010490997694432735, -0.014297382906079292, 0.017963139340281487, -0.0013254376826807857, 0.005840832833200693, -0.029551049694418907, 0.03105110302567482, 0.014372386038303375, 0.020363224670290947, 0.014916155487298965, 0.03851386904716492, -0.0288572758436203, -0.07429014146327972, -0.04447657987475395, 0.059627119451761246, 0.058014560490846634, -0.007134628482162952, 0.024675877764821053, -0.02373834326863289, -0.04878923296928406, 0.004141553305089474, 0.02756348066031933, -0.006928371265530586, -0.03628253936767578, 0.05947711318731308, 0.0330386757850647, -0.07005248963832855, -0.01837565377354622, 0.01536617148667574, 0.022332044318318367, -0.04001392051577568, 0.03386370465159416, -0.018310025334358215, 0.03618878498673439, 0.012478568591177464, 0.017860010266304016, 0.02362583950161934, -0.033188678324222565, -0.026607194915413857, 0.02611967921257019, 0.00639866478741169, 0.02034447342157364, -0.021469512954354286, -0.025838417932391167, 0.001170744770206511, 0.01366923563182354, 0.029982315376400948, -0.01836627721786499, -0.04657665640115738, 0.0013019994366914034, 0.0019102242076769471, 0.008625306189060211, -0.01552555151283741, -0.022125786170363426, 0.017109982669353485, 0.01486927829682827, -0.012037928216159344, -0.0224070455878973, -0.004619695246219635, -0.003632941748946905, 0.0171474851667881, 0.07432764023542404, 0.04905174300074577, 0.02919478714466095, 0.034276217222213745, 0.036132533103227615, -0.030638588592410088, 0.03967640921473503, -0.0801028460264206, -0.01783188432455063, 0.03161362558603287, 0.0030797969084233046, 0.035044994205236435, -0.032513655722141266, 0.013209844939410686, -0.027619732543826103, -0.019388189539313316, -0.009070634841918945, 0.008672183379530907, 0.01871316507458687, 0.014888029545545578, 0.011578536592423916, -0.042901523411273956, 0.022163288667798042, 0.019481942057609558, 0.024300863966345787, -0.006956497207283974, 0.0041649919003248215, 0.027375973761081696, -0.032644908875226974, 0.000555195496417582, -0.020250719040632248, -0.0010869527468457818, 0.024638375267386436, 0.05542697012424469, -0.10087858885526657, -0.031519871205091476, 0.021582016721367836, -0.052951883524656296, -0.09397833794355392, 0.04556411877274513, 0.005278312601149082, -0.0258009172976017, 0.0019746795296669006, -0.019613197073340416, 0.05737704038619995, -0.0042681205086410046, 0.014194254763424397, -0.017869384959340096, 0.03391995653510094, 0.002852445235475898, -0.02460087463259697, 0.010340992361307144, 0.034819986671209335, -0.01794438809156418, -0.014578643254935741, -0.0780777782201767, 0.018413154408335686, 0.022575803101062775, -0.050139281898736954, -0.042151499539613724, 0.016116198152303696, -0.012862957082688808, 0.02471337839961052, 0.015356795862317085, -0.01826315000653267, 0.029026031494140625, -0.03071359172463417, -0.025969672948122025, 0.0011338293552398682, -0.021019497886300087, 0.025819668546319008, 0.003452466567978263, 0.03975141420960426, -0.02272580750286579, -0.03354494273662567, -0.016453709453344345, 0.01739124394953251, 0.08220291882753372, 0.08272793889045715, 0.05445193499326706, -0.03039482980966568, 0.010265990160405636, -0.010397244244813919, -0.06401477754116058, 0.025632161647081375, 0.00896750669926405, -0.0774027481675148, -0.04447657987475395, 0.012834831140935421, 0.038195107132196426, 0.03279491513967514, 0.05707702785730362, 0.08730310201644897, 0.03986391797661781, 0.017681878060102463, -0.02056948095560074, 0.03716382011771202, -0.018516283482313156, -0.011475407518446445, -0.02066323533654213, -0.007458077743649483, 0.006515856832265854, -0.02308207005262375, -0.01597556844353676, 0.011559786275029182, -0.02403835393488407, 0.01536617148667574, -0.010359743610024452, -0.0688149482011795, -0.04811421036720276, 0.03770758956670761, -0.025500906631350517, 0.007115878164768219, -0.027900991961359978, -0.008001847192645073, 0.005400191992521286, 0.025425903499126434, 0.04162647947669029, 0.01824439875781536, -0.01878816820681095, 0.011906673200428486, -0.030357329174876213, -0.04102645814418793, 0.1256294697523117, 0.07474015653133392, 0.003323555691167712, -0.031069854274392128, -0.06978998333215714, -0.014372386038303375, -0.04057644307613373, 0.03463248163461685, -0.003028232604265213, 0.0005774619057774544, -0.02962605282664299, -0.01159728690981865, -0.0288572758436203, -0.04102645814418793, -0.03183863312005997, 0.015338045544922352, -0.06990248709917068, -0.013716112822294235, 0.0019324906170368195, 0.0018352215411141515, 0.024225860834121704, 0.03703256696462631, 0.010228488594293594, -0.020831990987062454, 0.021713271737098694, 0.02460087463259697, 0.02242579683661461, -0.014672396704554558, -0.05216435343027115, -0.07144004106521606, 0.022669555619359016, -0.028182251378893852, 0.014916155487298965, -0.016481835395097733, 0.003421996720135212, 0.04545161500573158, 0.06033964455127716, -0.054601941257715225, 0.02743222564458847, 0.037220072001218796, 0.01921943388879299, 0.0043290602043271065, 0.07770276069641113, 0.011316027492284775, -0.004804858472198248, 0.011287901550531387, -0.032851167023181915, -0.01398799754679203, -0.0525018647313118, -0.009656593203544617, 0.03911389037966728, -0.004270464181900024, -0.026044676080346107, -0.011559786275029182, -0.021900778636336327, -0.040726449340581894, 0.009497212246060371, -0.06596484780311584, 0.019763203337788582, 0.01966944895684719, 0.03271991387009621, 0.03403246030211449, 0.10417870432138443, -0.0007804965134710073, 0.09570340067148209, 0.029213538393378258, -0.0454891175031662, 0.003002450568601489, -0.04166398197412491, -0.03673255443572998, 0.0457141250371933, 0.04635164886713028, -0.031426116824150085, 0.06626485288143158, 0.021938279271125793, 0.002373131224885583, 0.0033352747559547424, -0.03881387785077095, 0.031013602390885353, 0.04188898950815201, -0.05598948895931244, -0.041701480746269226, 0.04931425303220749, -0.016538087278604507, 0.008869064971804619, -0.019097553566098213, 0.02371959388256073, -0.003525125328451395, 0.0034384033642709255, -0.02141326107084751, 0.0012410597410053015, 0.08362796902656555, 0.008653433062136173, 0.025275899097323418, 0.05347689986228943, -0.007458077743649483, 0.008428424596786499, 0.015572428703308105, 0.048714231699705124, -0.011006641201674938, -0.06952746957540512, 0.010022231377661228, -0.015131788328289986, 0.012497318908572197, 0.07534018158912659, -0.025632161647081375, -0.04316403344273567, -0.0658523440361023, 0.026044676080346107, -0.0076408968307077885, -0.07132753729820251, 0.012000426650047302, -0.014400511980056763, 0.07462765276432037, -0.022125786170363426, 0.02655094303190708, 0.014944281429052353, 0.033601194620132446, -0.0747026577591896, -0.02326957695186138, 0.040501438081264496, -0.04091395437717438, -0.022669555619359016, 0.0036259100306779146, 0.03592627868056297, -0.01442863792181015, -0.02469462715089321, -0.02122575417160988, 0.029682304710149765, -0.0020239001605659723, -0.040726449340581894, 0.029907312244176865, 0.04533911123871803, -0.06011463701725006, -0.053851913660764694, -0.03399495780467987, 0.0231945738196373, -0.009492524899542332, 0.018000639975070953, 0.051451828330755234, 0.013003586791455746, -0.0027282219380140305, -0.004922050051391125, 0.02330707758665085, -0.09525338560342789, -0.013566107489168644, -0.032513655722141266 ]
718,598
pluginlib._loader
load_modules
Locate and import modules from locations specified during initialization. Locations include: - Program's standard library (``library``) - `Entry points <Entry point_>`_ (``entry_point``) - Specified modules (``modules``) - Specified paths (``paths``) If a malformed child plugin class is imported, a :py:exc:`PluginWarning` will be issued, the class is skipped, and loading operations continue. If an invalid `entry point <Entry point_>`_ is specified, an :py:exc:`EntryPointWarning` is issued and loading operations continue.
def load_modules(self): """ Locate and import modules from locations specified during initialization. Locations include: - Program's standard library (``library``) - `Entry points <Entry point_>`_ (``entry_point``) - Specified modules (``modules``) - Specified paths (``paths``) If a malformed child plugin class is imported, a :py:exc:`PluginWarning` will be issued, the class is skipped, and loading operations continue. If an invalid `entry point <Entry point_>`_ is specified, an :py:exc:`EntryPointWarning` is issued and loading operations continue. """ # Start with standard library if self.library: LOGGER.info('Loading plugins from standard library') libmod = _import_module(self.library) _recursive_import(libmod) # Get entry points if self.entry_point: LOGGER.info('Loading plugins from entry points group %s', self.entry_point) for epoint in iter_entry_points(group=self.entry_point): try: mod = _import_module(epoint) except PluginImportError as e: warnings.warn("Module %s can not be loaded for entry point %s: %s" % (epoint.module_name, epoint.name, e), EntryPointWarning) continue # If we have a package, walk it if ismodule(mod): _recursive_import(mod) else: warnings.warn("Entry point '%s' is not a module or package" % epoint.name, EntryPointWarning) # Load auxiliary modules if self.modules: for mod in self.modules: LOGGER.info('Loading plugins from %s', mod) _recursive_import(_import_module(mod)) # Load auxiliary paths if self.paths: # Import each path recursively for path in self.paths: modpath = os.path.realpath(path) if os.path.isdir(modpath): LOGGER.info("Recursively importing plugins from path `%s`", path) _recursive_path_import(path, self.prefix_package) else: LOGGER.info("Configured plugin path '%s' is not a valid directory", path) self.loaded = True
(self)
[ 0.0040730880573391914, -0.03125471621751785, -0.04643557593226433, 0.006702188868075609, -0.00004657184035750106, 0.047613564878702164, 0.0586334653198719, 0.040355633944272995, -0.10305505990982056, -0.008245924487709999, 0.005543199367821217, -0.015579857863485813, -0.014088371768593788, -0.001970044570043683, -0.06691738963127136, -0.03739165887236595, -0.013613375835120678, 0.08861519396305084, -0.006645189598202705, -0.05395950749516487, -0.038493648171424866, -0.0013014881405979395, 0.05061553791165352, -0.002344103530049324, -0.02906973473727703, 0.015009863302111626, 0.05806346982717514, 0.014677366241812706, -0.03212870657444, -0.045371588319540024, -0.003196720965206623, 0.031615711748600006, -0.002266916912049055, 0.02530776895582676, 0.00844542309641838, -0.04502958804368973, 0.03081771917641163, 0.019398823380470276, -0.003930589184165001, 0.04084962606430054, -0.00313259637914598, -0.017916835844516754, 0.08572722226381302, -0.03587167337536812, 0.01809733547270298, 0.01883832924067974, 0.0074859317392110825, 0.0761513039469719, -0.027473749592900276, -0.01826833374798298, 0.010164907202124596, -0.00826492439955473, 0.06254743039608002, 0.008374174125492573, 0.018325332552194595, 0.1158229410648346, 0.025991763919591904, -0.05631548538804054, -0.001742046675644815, -0.010630402714014053, 0.05107153579592705, -0.006464690901339054, 0.005224952474236488, 0.060989443212747574, -0.0026053511537611485, -0.03214770555496216, -0.014772365801036358, -0.034845683723688126, -0.02692275494337082, 0.03138771280646324, -0.062053434550762177, -0.042635612189769745, 0.04795556142926216, -0.07219934463500977, 0.07664529979228973, 0.029088735580444336, -0.0074859317392110825, 0.001790733658708632, 0.009290914982557297, 0.038911644369363785, -0.023958781734108925, 0.004434084519743919, -0.006535940337926149, 0.011323897168040276, 0.011190897785127163, -0.0016707972390577197, 0.030418721958994865, -0.0014226119965314865, 0.04331960529088974, 0.010934400372207165, -0.06672739237546921, -0.021184807643294334, 0.027853745967149734, 0.030456721782684326, 0.0019213574705645442, -0.01349937729537487, 0.011437895707786083, -0.012159889563918114, -0.027359750121831894, -0.0007403995259664953, -0.02327478863298893, -0.043509602546691895, 0.03197670727968216, -0.02671375684440136, 0.033610694110393524, -0.08367523550987244, -0.013803374022245407, 0.027055753394961357, 0.005533699411898851, -0.0009796785889193416, -0.04084962606430054, -0.048715557903051376, -0.031292714178562164, 0.015323360450565815, -0.011181398294866085, -0.08990718424320221, 0.0250987708568573, 0.0069539365358650684, 0.07489731907844543, 0.01818283461034298, -0.026409760117530823, 0.05384550988674164, -0.009585412219166756, -0.00940016470849514, 0.03879764676094055, -0.01234038732945919, 0.021887799724936485, 0.011903391219675541, -0.016805347055196762, -0.05103353410959244, 0.08093926310539246, -0.00902966782450676, -0.015256861224770546, -0.04320560768246651, -0.035225678235292435, -0.028100743889808655, -0.021355805918574333, 0.020025817677378654, -0.012416386976838112, 0.03925364091992378, -0.009243415668606758, -0.022628793492913246, 0.007039435673505068, 0.011152897961437702, -0.007780428975820541, 0.016786346212029457, 0.04084962606430054, 0.054567500948905945, -0.034180689603090286, -0.006934936624020338, -0.011304897256195545, -0.011390396393835545, -0.01595035381615162, 0.026238759979605675, -0.022096797823905945, -0.0368596650660038, 0.011694393120706081, 0.00799417681992054, -0.012729884125292301, -0.03659366816282272, -0.027568748220801353, -0.00888241920620203, -0.00959016289561987, -0.004719081800431013, -0.05859546735882759, -0.0021006683818995953, 0.010269406251609325, -0.04647357761859894, -0.033401694148778915, 0.03286970034241676, -0.05684748291969299, 0.03408569097518921, -0.006882687099277973, 0.044041600078344345, 0.031368713825941086, 0.022343795746564865, -0.03286970034241676, 0.008996417745947838, -0.0020032941829413176, 0.05221152305603027, 0.008787419646978378, 0.0037809654604643583, -0.035643674433231354, -0.046283576637506485, 0.007177184801548719, 0.0593174584209919, 0.06041944772005081, -0.0069539365358650684, -0.039937637746334076, 0.02240079641342163, -0.03630866855382919, 0.038493648171424866, 0.07729129493236542, 0.04928554967045784, -0.036137670278549194, 0.08375123888254166, -0.04506758973002434, -0.015408859588205814, -0.040773630142211914, 0.07075535506010056, -0.05753147602081299, 0.013404377736151218, 0.0250987708568573, -0.03978563845157623, 0.0191328264772892, -0.008792170323431492, -0.017536839470267296, 0.030665719881653786, -0.042673610150814056, 0.014762865379452705, -0.015788856893777847, -0.0656634047627449, -0.01793583668768406, 0.05810147151350975, 0.005533699411898851, -0.022495795041322708, 0.060685448348522186, 0.014249870553612709, 0.009509413503110409, 0.007590430788695812, 0.037125661969184875, 0.10503104329109192, -0.014278369955718517, 0.03722066059708595, -0.028974736109375954, 0.03752465918660164, -0.020614812150597572, 0.015266360715031624, 0.0037738406099379063, 0.027853745967149734, 0.044497594237327576, -0.019113825634121895, -0.061521440744400024, -0.016919346526265144, 0.043509602546691895, 0.00231916643679142, 0.05627748742699623, 0.032242707908153534, 0.00805592630058527, 0.04974154755473137, 0.007580930832773447, 0.014249870553612709, -0.043091606348752975, -0.08808320015668869, -0.04605558142066002, -0.019436823204159737, -0.031368713825941086, -0.06737338751554489, 0.024205779656767845, 0.004586083348840475, 0.015408859588205814, 0.04054563120007515, -0.00651219068095088, -0.03001972660422325, -0.06513140350580215, -0.03330669552087784, 0.050919536501169205, 0.00843117292970419, 0.011561394669115543, -0.02260979451239109, -0.0012468636268749833, -0.02517477050423622, 0.006379191763699055, 0.03587167337536812, -0.0007700867136009037, -0.00021686521358788013, 0.048715557903051376, -0.010943899862468243, 0.026447758078575134, 0.011285897344350815, 0.1172669306397438, 0.032451704144477844, -0.031235715374350548, 0.05711347982287407, -0.01244488637894392, 0.02506077103316784, -0.0049447049386799335, -0.015627358108758926, -0.022343795746564865, 0.02804374508559704, 0.0593174584209919, 0.027017753571271896, -0.05570749193429947, -0.006497940979897976, 0.0035339677706360817, -0.03425668925046921, -0.06330741941928864, -0.014696366153657436, -0.06368742138147354, 0.030836718156933784, 0.0020341689232736826, -0.009105667471885681, -0.006958686746656895, -0.016330352053046227, 0.007172434590756893, 0.011143398471176624, -0.06851337850093842, 0.004282086156308651, -0.0010485529201105237, -0.051337532699108124, -0.02716975286602974, -0.00946191418915987, 0.0019581697415560484, 0.025706766173243523, 0.013014880940318108, -0.057417478412389755, 0.007799428887665272, -0.03437068685889244, 0.018372831866145134, 0.000732680840883404, 0.03408569097518921, 0.0061939433217048645, 0.06475140899419785, -0.017242342233657837, 0.011656394228339195, 0.006317442283034325, 0.05110953375697136, 0.0015081112505868077, -0.033819690346717834, 0.003574342466890812, -0.05338951200246811, 0.09811510890722275, 0.006588189862668514, 0.05517549812793732, 0.010098407976329327, 0.017451340332627296, 0.04385159909725189, 0.018230333924293518, -0.0013608626322820783, -0.07797528803348541, -0.02506077103316784, -0.02583976462483406, -0.03771465644240379, 0.029164733365178108, 0.027093753218650818, -0.04833555966615677, -0.020405814051628113, -0.06817138195037842, 0.028423741459846497, 0.005742697510868311, 0.050881534814834595, 0.015418359078466892, -0.04377559944987297, 0.02481377311050892, -0.016881346702575684, -0.019227825105190277, 0.03655566647648811, 0.032470703125, 0.015494358725845814, 0.013546876609325409, 0.05380750820040703, -0.06551140546798706, -0.08869118988513947, -0.007438432425260544, -0.007286433596163988, -0.04339560493826866, -0.030513722449541092, -0.010107907466590405, 0.017080843448638916, -0.03231870383024216, 0.03330669552087784, -0.008535671979188919, -0.06133143976330757, 0.03725866228342056, 0.000980272307060659, -0.07873528450727463, 0.04366160184144974, -0.00653119059279561, -0.016425350680947304, -0.034560684114694595, 0.00879692006856203, -0.01565585657954216, 0.00397571362555027, -0.019398823380470276, 0.03769565746188164, 0.029639730229973793, 0.047727566212415695, 0.05669548362493515, -0.00701093627139926, 0.001582923112437129, 0.05768347531557083, 0.031216716393828392, -0.02804374508559704, -0.034807682037353516, -0.017384842038154602, -0.0003847464977297932, 0.05513749644160271, -0.004044588189572096, 0.006640439387410879, -0.007813679054379463, 0.046321578323841095, -0.005970695521682501, -0.039329640567302704, 0.01631135120987892, 0.004925705026835203, -0.020842809230089188, 0.026409760117530823, 0.02658075839281082, -0.00940016470849514, -0.014354369603097439, 0.08169925212860107, -0.045865580439567566, 0.028252743184566498, 0.06961536407470703, 0.0018144834320992231, 0.002070981077849865, 0.01818283461034298, 0.02127980627119541, -0.0010918963234871626, 0.013898373581469059, 0.0031515962909907103, -0.02137480489909649, 0.007405182346701622, -0.0417616181075573, -0.06551140546798706, 0.007680680137127638, -0.001524736057035625, 0.01349937729537487, -0.026143761351704597, -0.0034722182899713516, -0.0061939433217048645, -0.047613564878702164, -0.01846783235669136, -0.035719674080610275, 0.02555476687848568, -0.01788833737373352, -0.07858328521251678, 0.0005118078552186489, -0.04841155931353569, -0.011038899421691895, -0.06323142349720001, 0.016140352934598923, -0.023673783987760544, -0.061901435256004333, 0.01918032579123974, -0.05167952924966812, 0.02990572713315487, 0.027568748220801353, -0.005875696428120136, -0.03176771104335785, -0.011969891376793385, 0.015361360274255276, 0.04525758698582649, -0.020766811445355415, 0.024110781028866768, 0.021507803350687027, -0.03691666200757027, 0.027150752022862434, -0.02965872921049595, -0.0019225450232625008, -0.04879155382514, 0.009119916707277298, 0.05122353136539459, 0.012378387153148651, 0.00304947211407125, -0.007348183076828718, 0.033819690346717834, 0.03695466369390488, 0.013993372209370136, 0.02067181095480919, -0.009480913169682026, -0.024946773424744606, 0.024699775502085686, -0.04335760325193405, 0.007324433419853449, 0.0027502248995006084, 0.06805738061666489, -0.028214743360877037, -0.023844782263040543, 0.016007354483008385, 0.05437750369310379, 0.007300683297216892, 0.021336805075407028, -0.04685357213020325, -0.048601556569337845, -0.00430583581328392, 0.04225561395287514, -0.01614985242486, 0.038702648133039474, -0.07341533154249191, 0.006379191763699055, -0.050463538616895676, 0.04651157557964325, -0.0033320945221930742, -0.03338269516825676, -0.0491335503757, 0.08223125338554382, -0.01983581855893135, 0.02120380662381649, -0.05665748193860054, 0.010383405722677708, -0.014097871258854866, 0.016491848975419998, 0.0038617148529738188, 0.00909141730517149, -0.02190680056810379, 0.020823810249567032, 0.02306579053401947, 0.07010935992002487, -0.055061496794223785, 0.012454386800527573, 0.041647620499134064, 0.0169383455067873, -0.04202761873602867, 0.020120816305279732, 0.03022872470319271, 0.061521440744400024, 0.03543467819690704, -0.01652034930884838, 0.017460841685533524, -0.0177268385887146, -0.043623603880405426, -0.028480740264058113, -0.028347741812467575, 0.031216716393828392, 0.004438834730535746, 0.0017099843826144934, 0.09887509793043137, -0.005566949490457773, -0.02612476237118244, 0.020348815247416496, -0.0256307665258646, 0.02158380299806595, -0.0034104688093066216, -0.03171071037650108, 0.049551546573638916, -0.03676466643810272, 0.01234038732945919, -0.013955372385680676, 0.028556739911437035, 0.02517477050423622, 0.03604267165064812, -0.04791756346821785, -0.06045744940638542, 0.002448602579534054, -0.00799417681992054, 0.0020246689673513174, 0.0057046981528401375, 0.03400969132781029, 0.011608893983066082, 0.008920419029891491, -0.0065929400734603405, 0.03727766126394272, 0.016244851052761078, 0.061939436942338943, -0.03171071037650108, -0.028176743537187576, 0.0021422305144369602, -0.00028870831010863185, -0.014420868828892708, 0.06999535858631134, -0.0009660224313847721, -0.00950466375797987, 0.02791074477136135, 0.039823636412620544, -0.10860300809144974, 0.00634594215080142, -0.037296660244464874, -0.03590967133641243, 0.034275688230991364, -0.001072896528057754, 0.0169383455067873, -0.03330669552087784, -0.0414196215569973, -0.037334658205509186, -0.01673884689807892, -0.03813265264034271, 0.01327137928456068, -0.01611185260117054, 0.009385914541780949, 0.011295396834611893, -0.003201470710337162, -0.08314324170351028, -0.03970963880419731, -0.014629866927862167, 0.0986471027135849, 0.010915400460362434, 0.020386815071105957, 0.018334832042455673, -0.015532358549535275, -0.01381287444382906, -0.006550190504640341, 0.04787956550717354, 0.012805882841348648, 0.020557813346385956, -0.020652811974287033, 0.030076725408434868, 0.08527122437953949, 0.06323142349720001, 0.017137844115495682, 0.002021106658503413, 0.0022716668900102377, 0.07033736258745193, -0.0512615330517292, 0.0021030432544648647, 0.00843117292970419, -0.04483959078788757, 0.0012991131516173482, 0.055099498480558395, -0.056999482214450836, -0.04290160909295082, -0.010107907466590405, -0.023654785007238388, -0.015874356031417847, -0.00311122159473598, -0.0035030930303037167, 0.004901955369859934, -0.020519813522696495, -0.03307870030403137, 0.06376341730356216, -0.019512822851538658, -0.07455532252788544, 0.05221152305603027, -0.027720747515559196, -0.007324433419853449, -0.011903391219675541, -0.02008281648159027, -0.05357951298356056, 0.07227534055709839, 0.014800865203142166, -0.05342751368880272, 0.032736700028181076, 0.006079944781959057, 0.0017883586697280407, 0.010202907025814056, -0.028670739382505417, -0.04244561493396759, -0.02642875909805298, 0.004044588189572096, 0.013869873248040676, 0.03490268066525459, -0.00013054959708824754, -0.0019344198517501354, -0.03146371245384216, -0.056011490523815155, -0.041685618460178375, 0.053617510944604874, -0.04202761873602867, 0.030323723331093788, 0.020861810073256493, 0.05202152580022812, -0.033363696187734604, -0.010079408064484596, -0.03305969759821892, 0.00003293426925665699, 0.008108176290988922, -0.04518158733844757, 0.03813265264034271, 0.041647620499134064, 0.010231406427919865, 0.0032917200587689877, 0.022229798138141632, -0.05544149503111839, 0.022229798138141632, -0.0937071442604065, 0.03190070763230324, -0.001289613195694983, -0.009243415668606758, 0.011361896060407162, 0.027302751317620277, 0.019531821832060814, 0.0028737238608300686, -0.03970963880419731, 0.014373368583619595, 0.02583976462483406, -0.03974763676524162, 0.013926872983574867, 0.029753729701042175, 0.03106471709907055, -0.014088371768593788, -0.00941916462033987, -0.02886073663830757, 0.009599662385880947, 0.011190897785127163, -0.02766374871134758, 0.005258202087134123, -0.048145562410354614, -0.018496330827474594, -0.04662557691335678, -0.007979927584528923, 0.011846392415463924, 0.053655512630939484, -0.04882955551147461, 0.06399141997098923, -0.06657539308071136, 0.05859546735882759, 0.014734365977346897, 0.00791342742741108, 0.05540349334478378, -0.05627748742699623, 0.011608893983066082, 0.07843128591775894, 0.055973488837480545, 0.02323678880929947, 0.024300778284668922, 0.012226388789713383, -0.02832874096930027, -0.08268724381923676, -0.02141280472278595, -0.043091606348752975, 0.05673348158597946, -0.04689157381653786, -0.053199514746665955, 0.0015651107532903552, -0.031197715550661087, 0.019075825810432434, -0.06798137724399567, 0.03513067960739136, -0.004747581668198109, 0.010050908662378788, -0.0019688571337610483, 0.022514794021844864, 0.042217615991830826, -0.05585949122905731, 0.019455822184681892, -0.0031515962909907103, 0.03437068685889244, -0.014325869269669056, 0.021982800215482712, -0.00788967777043581, 0.00948566384613514, -0.030532721430063248, 0.029639730229973793, -0.009946409612894058, -0.0003411062643863261, 0.03218570724129677, -0.018353832885622978, -0.012197888456285, 0.004968454595655203, -0.00651219068095088, -0.03296469897031784, -0.028670739382505417, -0.053199514746665955, 0.010934400372207165, 0.024167779833078384, -0.0452955886721611, 0.057341478765010834, 0.03469368442893028, 0.015465859323740005, -0.05574549362063408, 0.015798356384038925, -0.0715913474559784, -0.032945699989795685, 0.0417616181075573, -0.013157379813492298, 0.019104326143860817, 0.04787956550717354, -0.02057681232690811, 0.0018132959958165884, 0.08010327070951462, 0.01573185622692108, 0.023578785359859467, 0.017166344448924065, -0.00880166981369257, -0.03836065158247948, -0.016092853620648384, -0.019987817853689194, 0.016624849289655685, -0.050995536148548126, -0.07957127690315247, -0.037866655737161636, -0.07356733083724976, -0.0043153357692062855, -0.01839183270931244, 0.08428323268890381, 0.02355978451669216, -0.014420868828892708, -0.0020864184480160475 ]
718,599
pluginlib.exceptions
PluginWarning
Warning for errors with imported plugins Subclass of :py:exc:`UserWarning`
class PluginWarning(UserWarning): """ Warning for errors with imported plugins Subclass of :py:exc:`UserWarning` """
null
[ -0.018391301855444908, -0.0452599860727787, -0.013868851587176323, 0.027400735765695572, 0.03185224533081055, -0.026567185297608376, 0.07938232272863388, 0.04855871573090553, 0.012990963645279408, -0.029653092846274376, 0.011669698171317577, -0.01510144118219614, 0.029458006843924522, -0.01733606494963169, -0.07775069773197174, -0.013789042830467224, -0.02035989984869957, 0.07576436549425125, -0.003420658176764846, 0.005014600697904825, -0.0401168055832386, -0.04483434185385704, 0.01444524247199297, 0.008668032474815845, -0.009949393570423126, 0.0767575278878212, 0.037314657121896744, -0.01546501088887453, 0.03293408825993538, -0.03717277944087982, -0.07647376507520676, 0.012733804993331432, 0.021353065967559814, 0.02028895914554596, -0.012840215116739273, -0.020182548090815544, -0.025414403527975082, 0.04600485786795616, -0.06515876948833466, 0.009506016038358212, -0.05497882142663002, 0.045614685863256454, -0.03250844404101372, -0.05221214517951012, 0.02367636375129223, -0.01348754670470953, -0.010641062632203102, 0.08995244652032852, -0.0702664852142334, 0.0020406453404575586, 0.02676227129995823, -0.026052867993712425, 0.03390951827168465, 0.004540186375379562, 0.013460943475365639, 0.088462695479393, 0.044727932661771774, 0.011838181875646114, -0.02734752930700779, 0.01319491770118475, 0.031196048483252525, 0.05540446564555168, 0.01860412396490574, -0.02763129211962223, 0.03630375862121582, -0.050899747759103775, 0.015243321657180786, -0.041642025113105774, -0.03601999580860138, 0.04153561219573021, -0.023640893399715424, -0.04518904536962509, 0.00740440608933568, 0.0274184700101614, 0.10775849223136902, -0.06058311462402344, -0.03580717369914055, 0.017238520085811615, 0.005058938171714544, 0.044053997844457626, -0.0028464840725064278, -0.04674973338842392, 0.007714770268648863, 0.04490528255701065, 0.022151144221425056, -0.03580717369914055, 0.009869585745036602, -0.05607839673757553, 0.029422536492347717, 0.06937972456216812, -0.07214640080928802, -0.010880486108362675, -0.024438973516225815, 0.012982096523046494, -0.020022932440042496, 0.0380595326423645, 0.029599888250231743, -0.021122509613633156, -0.0008030676981434226, -0.02461632341146469, 0.018639594316482544, -0.01198006235063076, -0.005559955257922411, -0.04593392089009285, 0.044515110552310944, -0.05650404095649719, 0.013203784823417664, 0.002423058496788144, 0.030823610723018646, 0.0008972854120656848, 0.0014997246908023953, -0.04086168110370636, -0.07619000971317291, 0.021778708323836327, -0.012636261992156506, -0.08491567522287369, -0.02264772728085518, -0.040684327483177185, 0.05948353931307793, 0.03279220685362816, -0.0176464281976223, 0.017947925254702568, -0.0788148045539856, -0.010135611519217491, 0.0455792173743248, 0.0017868117429316044, -0.02057272009551525, 0.009031601250171661, 0.022239821031689644, 0.03438836708664894, -0.012290427461266518, -0.010206552222371101, -0.03763389214873314, -0.08867552131414413, -0.041783906519412994, -0.03243750333786011, 0.02264772728085518, 0.038839876651763916, 0.03625055402517319, -0.012742672115564346, -0.022434907034039497, 0.04408947005867958, 0.0133722685277462, -0.015083706006407738, 0.04022321477532387, 0.011776109226047993, -0.01984558068215847, 0.03710183873772621, -0.03071719966828823, -0.021885117515921593, 0.010605592280626297, 0.005036769434809685, -0.04291895031929016, 0.0019796809647232294, -0.011527817696332932, -0.0033918386325240135, 0.02323298528790474, -0.047530077397823334, 0.0011494563659653068, -0.04870059713721275, 0.0504031665623188, -0.04873606562614441, 0.016493646427989006, 0.026921886950731277, 0.0036711664870381355, -0.002788844984024763, 0.023640893399715424, -0.040826208889484406, -0.00606097187846899, -0.008065038360655308, -0.059057895094156265, 0.007985230535268784, 0.00793645903468132, 0.07824727892875671, -0.0172119177877903, 0.04997752234339714, 0.0009748765151016414, 0.03263259306550026, -0.00005181975575396791, 0.03635696321725845, 0.05249590799212456, -0.02564495988190174, -0.02050177939236164, -0.02117571420967579, 0.036782603710889816, 0.011368202045559883, 0.043167244642972946, 0.020253488793969154, -0.01223722193390131, -0.0026536148507148027, 0.031426604837179184, 0.0363214910030365, 0.05352454259991646, 0.03749201074242592, -0.015598024241626263, -0.027915053069591522, -0.05668139085173607, -0.03947834298014641, 0.0022390568628907204, 0.023623159155249596, -0.031054167076945305, 0.025999661535024643, -0.010836148634552956, -0.00973657239228487, 0.03499136120080948, 0.04135826230049133, 0.007515250239521265, -0.038095004856586456, -0.06650663912296295, -0.019065236672759056, 0.04093261808156967, -0.027595821768045425, -0.02764902636408806, 0.03628602251410484, -0.0028442672919481993, 0.019969727843999863, 0.06530065089464188, -0.024935556575655937, -0.05160915106534958, 0.04313177242875099, 0.06728698313236237, 0.04997752234339714, -0.009036035276949406, 0.02262999303638935, -0.004112327005714178, 0.020679131150245667, 0.040471505373716354, -0.03646337240934372, 0.03463665768504143, -0.021228918805718422, 0.021956058219075203, 0.0017724019708111882, -0.06863485276699066, 0.017584355548024178, -0.004141146782785654, 0.03174583613872528, -0.010304095223546028, -0.019934257492423058, -0.005870319437235594, 0.008699068799614906, -0.02931612730026245, -0.009913923218846321, -0.028606722131371498, 0.04742366820573807, 0.03511550650000572, -0.03249071165919304, -0.031071901321411133, -0.0005880295648239553, 0.018852414563298225, 0.011589890345931053, 0.04476340115070343, 0.0028420505113899708, -0.024900086224079132, 0.0053027961403131485, -0.032242417335510254, -0.031054167076945305, -0.011385936290025711, -0.05231855809688568, -0.0023875883780419827, -0.030681729316711426, -0.05547540634870529, 0.026372099295258522, -0.02176097221672535, 0.04079074040055275, -0.007063005119562149, 0.0002290322445333004, 0.003939409740269184, 0.007900988683104515, -0.001849993015639484, 0.02270093373954296, 0.13067224621772766, 0.04962282255291939, -0.02786184847354889, 0.03160395473241806, -0.02255905233323574, -0.03962022066116333, -0.007063005119562149, 0.09640802443027496, 0.015917256474494934, 0.03653431311249733, 0.07413273304700851, 0.01444524247199297, -0.01676854118704796, 0.02615927904844284, -0.020696865394711494, -0.036055468022823334, -0.02204473502933979, 0.033040497452020645, -0.06061858683824539, 0.0061363461427390575, 0.006517650559544563, -0.027170179411768913, 0.006557554472237825, -0.009124711155891418, -0.007364501710981131, 0.08392251282930374, -0.08512850105762482, 0.018178481608629227, 0.0342642217874527, -0.0320473313331604, 0.024350298568606377, 0.028429372236132622, -0.07260751724243164, 0.03178130462765694, 0.011793844401836395, -0.03176357224583626, 0.04057791829109192, -0.03314691036939621, -0.033696696162223816, 0.010969161987304688, 0.045898448675870895, -0.021370800212025642, 0.03256165236234665, 0.002209128811955452, -0.0231443103402853, -0.023357132449746132, 0.07760881632566452, -0.05948353931307793, -0.017309460788965225, 0.04518904536962509, -0.04362835735082626, -0.009075939655303955, 0.037314657121896744, -0.0010413831332698464, -0.021725501865148544, 0.021424004808068275, 0.029582154005765915, -0.0029395935125648975, -0.014161480590701103, -0.0555463470518589, -0.03625055402517319, -0.05629121884703636, -0.03593131899833679, -0.02653171494603157, -0.03094775602221489, -0.030025530606508255, 0.014773341827094555, -0.0698763057589531, 0.04444416984915733, -0.004285244271159172, -0.004868286196142435, 0.04018774628639221, -0.02153041586279869, 0.05512070283293724, -0.015331997536122799, -0.03202959895133972, -0.07512590289115906, 0.018116408959031105, 0.04504716396331787, -0.010605592280626297, 0.01704343408346176, 0.011589890345931053, -0.08853363990783691, 0.014711268246173859, 0.04742366820573807, -0.04813307151198387, -0.0197037011384964, -0.007799012120813131, -0.008583790622651577, -0.04018774628639221, 0.01127952616661787, -0.021991528570652008, 0.009239989332854748, 0.011909122578799725, 0.00973657239228487, 0.011882519349455833, 0.03742107003927231, -0.011838181875646114, -0.015482746064662933, -0.000008144465027726255, 0.00034971407148987055, -0.0009560329490341246, -0.002655831864103675, -0.019153911620378494, 0.03440610319375992, 0.005524484906345606, 0.02725885435938835, 0.05547540634870529, -0.03798859193921089, 0.013212652876973152, 0.033856313675642014, 0.007688167504966259, -0.025680430233478546, -0.04380570724606514, 0.006845749914646149, -0.017513414844870567, -0.009284326806664467, 0.01021542027592659, -0.030593054369091988, 0.005209686700254679, 0.02321525104343891, -0.06824468076229095, -0.02573363669216633, -0.003396272426471114, -0.052957020699977875, -0.015429540537297726, -0.0019320178544148803, -0.02138853445649147, 0.010978029109537601, 0.0037044198252260685, 0.022913753986358643, -0.05263778939843178, -0.0654425323009491, 0.022825079038739204, -0.011297261342406273, 0.014454109594225883, 0.005528918467462063, 0.030557584017515182, 0.012556453235447407, 0.01846224255859852, -0.02771996706724167, 0.0022257554810494184, 0.014134877361357212, -0.037953123450279236, 0.019384467974305153, 0.048168543726205826, 0.019881051033735275, -0.037740301340818405, -0.034814007580280304, -0.063775435090065, -0.00025286379968747497, -0.0706566572189331, 0.06281773746013641, 0.02293149009346962, -0.008960661478340626, -0.06462671607732773, -0.08080113679170609, -0.031142842024564743, 0.008960661478340626, -0.009514883160591125, -0.045756567269563675, -0.035824909806251526, 0.014161480590701103, -0.06682587414979935, -0.017087772488594055, -0.08924303948879242, -0.0022157796192914248, 0.022151144221425056, -0.002835399704053998, 0.061469871550798416, 0.008863118477165699, 0.05210573598742485, 0.10293454676866531, 0.020324429497122765, 0.07186263799667358, -0.015473878011107445, -0.022825079038739204, 0.049658291041851044, -0.015979329124093056, -0.014170347712934017, -0.0212466549128294, 0.020980628207325935, 0.04827495291829109, -0.036569785326719284, -0.006637362763285637, -0.040755268186330795, -0.0688476711511612, -0.036126405000686646, 0.037882182747125626, 0.003788661677390337, -0.031142842024564743, 0.03476080298423767, -0.023835979402065277, -0.04412493854761124, 0.025928722694516182, 0.012325896881520748, -0.00035303941695019603, -0.04504716396331787, 0.0036290455609560013, 0.025751370936632156, 0.05717797577381134, 0.023995595052838326, 0.0361618772149086, -0.02337486669421196, -0.03508003428578377, -0.005360435228794813, 0.0022678764071315527, 0.03527512028813362, 0.030043266713619232, -0.0113948043435812, 0.004801779519766569, -0.029121041297912598, 0.029582154005765915, -0.012760407291352749, -0.019136177375912666, -0.04635956138372421, 0.001344542601145804, -0.05579463765025139, 0.02071460150182247, 0.01770850084722042, 0.004014784004539251, 0.0020761156920343637, -0.022452641278505325, -0.056929685175418854, -0.01120858546346426, 0.003926108591258526, 0.010117876343429089, 0.05430488660931587, 0.01589065231382847, -0.02786184847354889, 0.018196215853095055, -0.04213860630989075, -0.002924075350165367, -0.04394758865237236, 0.06764168292284012, -0.0579228475689888, 0.061469871550798416, 0.04004586488008499, 0.040542446076869965, -0.030238352715969086, -0.06867032498121262, 0.010960293933749199, 0.03435289487242699, 0.03137340024113655, 0.06129251793026924, -0.031568486243486404, -0.05948353931307793, 0.0651233047246933, 0.04635956138372421, 0.004606693051755428, 0.006065405439585447, -0.00925772450864315, 0.09364134818315506, 0.0010469253174960613, 0.03353708237409592, -0.009204518981277943, -0.020040666684508324, -0.0062028528191149235, 0.00692555820569396, 0.04270613193511963, -0.003934976179152727, 0.03564755991101265, 0.01888788491487503, -0.05877413600683212, 0.01209534052759409, 0.0349736250936985, -0.03233109414577484, 0.02367636375129223, -0.005635329056531191, 0.004549053963273764, -0.0022479244507849216, -0.004730838816612959, 0.04341553524136543, -0.009630161337554455, 0.05285061150789261, -0.009346399456262589, -0.08058831095695496, 0.019650494679808617, -0.05238949880003929, -0.011820446699857712, 0.049729231745004654, -0.00617625005543232, -0.042670659720897675, 0.00004038892802782357, 0.03328879177570343, -0.048239484429359436, 0.02227529138326645, 0.018834680318832397, 0.005444677080959082, 0.007102909032255411, -0.029670828953385353, -0.04682067409157753, 0.037385597825050354, -0.055014293640851974, -0.051254451274871826, 0.0061407797038555145, -0.019295793026685715, -0.001392205711454153, -0.06186004355549812, -0.01867506466805935, 0.007732505444437265, -0.0493745282292366, -0.001623870455659926, -0.031000962480902672, -0.02770223282277584, 0.07718317210674286, 0.06767715513706207, 0.0322069488465786, 0.009195650927722454, -0.006069839466363192, -0.02585778199136257, 0.020980628207325935, 0.0002535565581638366, 0.0009837440447881818, -0.020821012556552887, -0.023534482344985008, 0.038024064153432846, 0.01867506466805935, 0.07973702996969223, 0.037527479231357574, 0.023623159155249596, -0.026354365050792694, 0.03350161015987396, -0.09349946677684784, 0.02697509340941906, 0.017158713191747665, -0.03515097498893738, -0.06817373633384705, 0.08314216881990433, -0.01055238675326109, -0.015225586481392384, 0.011474612168967724, 0.0007698143599554896, -0.01437430176883936, 0.04689161479473114, 0.043096303939819336, -0.020484045147895813, -0.025520814582705498, -0.01307963952422142, 0.03360802307724953, -0.046040330082178116, -0.025698166340589523, -0.0046776337549090385, -0.0019519699271768332, -0.02968856319785118, 0.006326998118311167, 0.03820141404867172, -0.026443039998412132, -0.00024815290817059577, 0.0462886206805706, -0.046182211488485336, 0.05799378827214241, 0.02220435068011284, 0.012485513463616371, 0.013159447349607944, 0.012538718059659004, -0.0373501293361187, -0.018426772207021713, -0.035097770392894745, -0.01407280471175909, -0.04859418421983719, 0.0012292644241824746, 0.02110477350652218, -0.06303055584430695, -0.05448224022984505, 0.011696301400661469, 0.03250844404101372, -0.03820141404867172, 0.0262302178889513, 0.0052407230250537395, 0.04025868698954582, -0.011696301400661469, -0.02873086743056774, 0.031728100031614304, -0.05026128515601158, 0.025769105181097984, -0.036268286406993866, -0.04419587925076485, 0.014392036944627762, -0.04476340115070343, 0.004074640106409788, 0.07569342106580734, -0.053843773901462555, 0.008433042094111443, -0.027897318825125694, 0.04511810466647148, -0.010924823582172394, 0.036711666733026505, 0.017229653894901276, 0.01466693077236414, 0.02138853445649147, -0.01632516272366047, -0.008397571742534637, 0.029227450489997864, 0.050686925649642944, 0.04862965643405914, -0.003183451248332858, -0.052602317184209824, 0.0018533183028921485, -0.03841423615813255, 0.023942390456795692, 0.02646077424287796, -0.02529025822877884, -0.019047502428293228, 0.0072580911219120026, -0.011962327174842358, -0.043983057141304016, -0.016041401773691177, -0.03852064535021782, -0.023906920105218887, 0.019082970917224884, 0.0035226349718868732, -0.052070263773202896, -0.011164247989654541, -0.0596608892083168, 0.07285580784082413, 0.003788661677390337, 0.042457837611436844, -0.02844710648059845, -0.07250110805034637, -0.01998746208846569, 0.07069212198257446, 0.010401638224720955, 0.06196645274758339, 0.04820401221513748, -0.0017081121914088726, -0.00575060723349452, 0.007927591912448406, -0.0069344257935881615, -0.025910986587405205, 0.028500311076641083, -0.0024452274665236473, -0.003167932853102684, 0.05366642400622368, -0.00826899241656065, 0.010898221284151077, -0.01157215517014265, -0.06980536878108978, 0.021069303154945374, -0.011953460052609444, -0.011527817696332932, 0.011589890345931053, 0.04050697758793831, -0.051112569868564606, 0.00018192337302025408, -0.03350161015987396, 0.03541700169444084, -0.042599719017744064, 0.02419068105518818, -0.017149845138192177, 0.012591923587024212, 0.00632256455719471, -0.022363966330885887, 0.03337746486067772, -0.009674498811364174, 0.030770406126976013, 0.007275826297700405, -0.046111270785331726, -0.009922790341079235, -0.006065405439585447, 0.04086168110370636, -0.02262999303638935, -0.07732505351305008, 0.10541746020317078, 0.0445505827665329, 0.023995595052838326, 0.004305196460336447, 0.04593392089009285, 0.043167244642972946, 0.022949224337935448, 0.0455792173743248, -0.038697995245456696, -0.029670828953385353, -0.004792911931872368, -0.05356001481413841, 0.0009416231769137084, 0.01623648777604103, 0.07753787189722061, 0.011510082520544529, 0.09009432792663574, 0.018941091373562813, 0.0038773370906710625, 0.008113809861242771, 0.037598419934511185, -0.019810110330581665, -0.05146727338433266, 0.044727932661771774, -0.017460210248827934, -0.03359028697013855, -0.03144434094429016, -0.014179215766489506, 0.016351765021681786, 0.023055635392665863, 0.03206506744027138, 0.023623159155249596, 0.0010208769235759974, -0.024864615872502327, 0.022754138335585594 ]
718,600
pluginlib.exceptions
PluginlibError
**Base exception class for Pluginlib exceptions** All Pluginlib exceptions are derived from this class. Subclass of :py:exc:`Exception` **Custom Instance Attributes** .. py:attribute:: friendly :annotation: = None :py:class:`str` -- Optional friendly output
class PluginlibError(Exception): """ **Base exception class for Pluginlib exceptions** All Pluginlib exceptions are derived from this class. Subclass of :py:exc:`Exception` **Custom Instance Attributes** .. py:attribute:: friendly :annotation: = None :py:class:`str` -- Optional friendly output """ def __init__(self, *args, **kwargs): super(PluginlibError, self).__init__(*args) self.friendly = kwargs.get('friendly', None)
(*args, **kwargs)
[ 0.004374284762889147, -0.0491224005818367, -0.0136662432923913, 0.05133218318223953, 0.04245682433247566, -0.04589829221367836, 0.02030465006828308, 0.02410837635397911, 0.04184098169207573, -0.0382908396422863, 0.036370862275362015, 0.05542571842670441, 0.02711513079702854, -0.015966592356562614, -0.03493993729352951, 0.026934001594781876, -0.025340057909488678, 0.027930215001106262, -0.0018203544896095991, -0.014635288156569004, -0.004473906010389328, 0.006276147440075874, -0.04086288437247276, -0.007018779870122671, 0.038580648601055145, 0.1014326885342598, 0.020558232441544533, -0.0035410874988883734, 0.014517553150653839, -0.04068175330758095, -0.07158249616622925, -0.05375932529568672, 0.01171004120260477, 0.047093749046325684, -0.007938013412058353, -0.04093533381819725, -0.04923107847571373, 0.012325882911682129, -0.1225161924958229, 0.007593866903334856, -0.027984553948044777, 0.006303316913545132, -0.06647463887929916, -0.06060602888464928, 0.0491224005818367, -0.02950604446232319, 0.02526760660111904, 0.04050062224268913, -0.0850585550069809, -0.07578470557928085, 0.014426988549530506, 0.008150841109454632, 0.05419403687119484, 0.00703689269721508, -0.009835348464548588, 0.10179494321346283, 0.006298788823187351, 0.06926403194665909, -0.045246224850416183, 0.0057418146170675755, -0.029469817876815796, 0.04231192171573639, 0.024851009249687195, -0.030991308391094208, 0.005986339878290892, -0.038109708577394485, -0.03483125939965248, -0.029451705515384674, -0.013195306062698364, 0.06393881887197495, 0.05238273739814758, -0.0219167061150074, 0.016229229047894478, 0.018275996670126915, 0.10577980428934097, -0.0525638684630394, -0.04209456592798233, 0.034523338079452515, 0.02097482979297638, 0.01821260154247284, -0.014227746054530144, 0.010523641481995583, -0.03457767888903618, -0.019634470343589783, 0.03334599733352661, -0.045499805361032486, -0.055751752108335495, -0.06393881887197495, 0.029433593153953552, 0.045934516936540604, -0.08107370138168335, -0.015051886439323425, -0.01522395946085453, 0.038906682282686234, -0.003393919672816992, -0.009061018005013466, 0.07353869825601578, -0.030266789719462395, 0.05140463635325432, -0.02340197004377842, -0.002515440108254552, -0.02892642840743065, 0.01996050402522087, -0.005470119882375002, 0.03365391492843628, -0.042927760630846024, -0.029578495770692825, -0.006543314084410667, 0.06372146308422089, 0.016763562336564064, -0.01648281142115593, -0.05647627264261246, -0.0011547025060281157, 0.00898856669664383, -0.024959687143564224, -0.057707954198122025, -0.002875435631722212, -0.015522823669016361, 0.0776684582233429, -0.010605149902403355, 0.02075747400522232, -0.023564986884593964, -0.07571225613355637, 0.009726670570671558, 0.01858391799032688, 0.01776883378624916, -0.0016154514160007238, 0.016962805762887, -0.019054854288697243, 0.02619136869907379, -0.025792883709073067, 0.008571967482566833, -0.04944843426346779, -0.04622432589530945, -0.034994278103113174, -0.013122853823006153, 0.0615479052066803, 0.028292475268244743, -0.03321920335292816, 0.009269317612051964, 0.009762896224856377, 0.06274336576461792, 0.033038076013326645, -0.03414296731352806, -0.003217318095266819, 0.018602030351758003, -0.005107860546559095, 0.020920490846037865, 0.027966441586613655, -0.0470212958753109, 0.010070816613733768, -0.05433893948793411, -0.01981559954583645, -0.017949962988495827, 0.021862367168068886, 0.014571892097592354, -0.009871574118733406, -0.023691777139902115, 0.02825624868273735, -0.024144602939486504, 0.011492685414850712, -0.08071143925189972, 0.02374611608684063, -0.018266940489411354, 0.02524949423968792, 0.003792405128479004, 0.009608935564756393, -0.02928868867456913, 0.011266273446381092, 0.023728003725409508, -0.06031622365117073, -0.027477391064167023, -0.0056376648135483265, 0.05075256898999214, -0.046876393258571625, 0.08411667495965958, 0.004451264627277851, 0.014888869598507881, 0.012987006455659866, 0.017334122210741043, 0.05745437368750572, -0.0225868858397007, -0.04933975636959076, -0.005692003760486841, 0.027767198160290718, 0.0011348914122208953, 0.04390586167573929, 0.0414787232875824, -0.008907058276236057, 0.034342210739851, 0.07832052558660507, -0.01820354536175728, 0.004913145676255226, 0.03077395260334015, -0.017388461157679558, -0.0031833562534302473, 0.0035637288819998503, -0.06252600997686386, 0.04789071902632713, 0.10027346014976501, -0.024995911866426468, 0.07082175463438034, -0.03582747280597687, 0.00004528244971879758, 0.053071029484272, 0.034632015973329544, 0.018602030351758003, -0.07107533514499664, -0.08839134126901627, -0.00882102083414793, 0.006248977966606617, -0.03262147679924965, -0.0012690406292676926, 0.021155960857868195, 0.03122677654027939, 0.002198462840169668, 0.034070514142513275, 0.024017810821533203, -0.013965107500553131, 0.07096665352582932, 0.06527917832136154, -0.01890995167195797, 0.03952252119779587, -0.012905498035252094, 0.02133709006011486, 0.041225142776966095, 0.04336247220635414, -0.03135356679558754, -0.010940239764750004, 0.004415038973093033, -0.01972503587603569, 0.011963623575866222, -0.039268940687179565, 0.04611564800143242, -0.007861033082008362, 0.05607778578996658, 0.043869636952877045, -0.0012328147422522306, -0.03756631910800934, -0.026010239496827126, 0.012298713438212872, 0.012724367901682854, -0.06027999520301819, 0.05752682313323021, 0.021174073219299316, -0.05531704053282738, -0.03340033441781998, 0.038327064365148544, 0.006384825333952904, -0.01950768008828163, 0.06317807734012604, 0.009554596617817879, -0.04723865166306496, -0.004052779171615839, -0.02236953005194664, -0.06538785994052887, -0.048470333218574524, -0.07379227876663208, 0.03756631910800934, -0.017451856285333633, -0.03970365226268768, -0.00910177268087864, 0.020087294280529022, 0.02041332796216011, 0.04245682433247566, -0.00003764103530556895, 0.024488748982548714, 0.022659337148070335, 0.030031319707632065, 0.05361441895365715, 0.05716456472873688, 0.02619136869907379, -0.017895624041557312, 0.02941547892987728, -0.04339870065450668, -0.014743966050446033, 0.006339543033391237, -0.024289505556225777, 0.00963610503822565, 0.002377328695729375, 0.031190551817417145, 0.0009164036018773913, 0.007652733940631151, 0.0244344100356102, 0.03311052545905113, -0.0200691819190979, -0.021192185580730438, 0.03865309804677963, -0.03151658549904823, 0.01577640511095524, 0.016066212207078934, 0.019562019035220146, 0.012606633827090263, -0.011220990680158138, 0.035465214401483536, 0.0366968959569931, -0.03271204233169556, 0.026336273178458214, 0.015359806828200817, -0.07035081088542938, 0.047564685344696045, -0.024144602939486504, -0.011954566463828087, 0.044920191168785095, -0.0438334122300148, -0.00036310864379629493, 0.01776883378624916, 0.0010748921195045114, -0.03599049150943756, -0.007181796710938215, 0.04097156226634979, 0.06147545203566551, -0.021826140582561493, 0.05846869945526123, -0.013222475536167622, 0.04343492537736893, 0.07245191931724548, -0.03919648751616478, -0.02269556373357773, 0.08020427823066711, -0.0422394685447216, -0.014091898687183857, 0.02941547892987728, -0.019652582705020905, 0.02419894188642502, -0.01239833515137434, -0.012036074884235859, 0.009527427144348621, 0.006484446581453085, -0.05383177474141121, -0.024742331355810165, -0.025647979229688644, -0.008974981494247913, -0.02950604446232319, -0.06767009198665619, -0.024633653461933136, -0.007439906243234873, -0.07491528242826462, 0.013793034479022026, -0.02445252239704132, -0.0010194211499765515, 0.030466031283140182, -0.048470333218574524, 0.04611564800143242, -0.017225444316864014, -0.04187721014022827, -0.04984692111611366, -0.03919648751616478, 0.03586370125412941, -0.024380071088671684, 0.007055005524307489, -0.01912730745971203, -0.037312738597393036, 0.049194853752851486, 0.0324946865439415, -0.06469956040382385, -0.03495804965496063, -0.015948478132486343, 0.01601187326014042, -0.00746254762634635, -0.01084967516362667, -0.04093533381819725, -0.033599577844142914, 0.04137004539370537, -0.017895624041557312, 0.0010630055330693722, 0.023238953202962875, 0.011320612393319607, 0.01419151946902275, 0.006031622178852558, 0.005628608632832766, -0.012896441854536533, -0.02965094894170761, -0.04321756958961487, 0.01534169353544712, -0.008105558343231678, -0.0009282902465201914, 0.03785612806677818, -0.058975864201784134, -0.015984704717993736, 0.0031335456296801567, 0.010179494507610798, -0.05524458736181259, -0.022097835317254066, 0.01762392930686474, -0.010813448578119278, 0.030013207346200943, 0.017841285094618797, 0.015396032482385635, 0.03792858123779297, -0.019054854288697243, -0.03066527470946312, -0.04256550222635269, 0.008852719329297543, -0.025158928707242012, -0.05611401051282883, -0.01821260154247284, -0.02168123610317707, 0.01811297982931137, 0.011329668574035168, -0.0003458447172306478, -0.07107533514499664, -0.0012045131297782063, 0.012054188176989555, 0.02561175264418125, 0.029723400250077248, 0.0066248225048184395, 0.021409541368484497, -0.011402120813727379, 0.007331228815019131, -0.020141633227467537, 0.004732016008347273, -0.0262819342315197, -0.07071307301521301, 0.006778782699257135, 0.02303970977663994, 0.017913736402988434, -0.003038452472537756, -0.06133054941892624, -0.029669061303138733, -0.0016641300171613693, -0.055860430002212524, 0.04854278638958931, 0.01199984923005104, -0.03506672754883766, -0.034632015973329544, -0.04165985435247421, -0.033038076013326645, 0.03646142780780792, -0.007295002695173025, -0.029578495770692825, 0.01521490328013897, -0.0016414887504652143, -0.05165821686387062, -0.004408246371895075, -0.05375932529568672, -0.042384371161460876, -0.0006067848298698664, -0.002295820275321603, 0.04220324382185936, -0.005035408306866884, -0.026336273178458214, 0.06589502096176147, 0.07031458616256714, 0.052853673696517944, -0.012162866070866585, -0.03803725913167, 0.029904529452323914, 0.025865335017442703, -0.009491201490163803, 0.024488748982548714, 0.04278285801410675, 0.05408535897731781, -0.013802090659737587, 0.002281103515997529, -0.07571225613355637, -0.07716129720211029, -0.03633463755249977, 0.03329165652394295, -0.0016584696713835, -0.04361605644226074, 0.07875523716211319, -0.04419567063450813, -0.07745110243558884, -0.025865335017442703, 0.01683601550757885, 0.03702292963862419, -0.024506861343979836, -0.02524949423968792, -0.0029705287888646126, 0.023836681619286537, 0.012153809890151024, 0.037077270448207855, -0.0357731357216835, 0.01228965725749731, 0.0023275178391486406, 0.017216388136148453, 0.008612722158432007, -0.010288172401487827, -0.033164866268634796, 0.04256550222635269, -0.03376259282231331, 0.02524949423968792, -0.008662533015012741, -0.0014331894926726818, -0.005669362843036652, 0.016663940623402596, -0.041442498564720154, -0.006258034612983465, 0.027948327362537384, -0.010469302535057068, 0.03149847313761711, -0.0157854612916708, 0.0105598671361804, 0.009545540437102318, 0.004396925680339336, 0.03146224468946457, 0.049883145838975906, -0.030357353389263153, 0.002834681421518326, 0.009781009517610073, -0.09556408226490021, 0.0188918374478817, -0.05767172947525978, 0.05249141529202461, -0.05872227996587753, 0.010614206083118916, 0.05893963575363159, 0.043869636952877045, -0.019779374822974205, -0.006434636190533638, 0.025303833186626434, 0.06317807734012604, -0.01292361132800579, -0.005805210210382938, -0.02765852026641369, -0.03642520308494568, 0.01521490328013897, 0.03680557385087013, 0.038435742259025574, -0.0026105332653969526, 0.021373316645622253, 0.021989157423377037, -0.02028653770685196, 0.0024090262595564127, -0.02396347187459469, 0.023945359513163567, -0.013276814483106136, -0.03215054050087929, 0.051006149500608444, -0.00869875866919756, 0.03436032310128212, 0.0012362109264358878, -0.02108350768685341, 0.017705438658595085, 0.08614533394575119, -0.08759436756372452, 0.07861033082008362, 0.012488899752497673, -0.02043144218623638, 0.038689326494932175, 0.02305782400071621, 0.011764380149543285, -0.0012045131297782063, 0.04908617585897446, -0.06053357943892479, -0.0892607644200325, -0.0007143306429497898, -0.03229544311761856, 0.002519968431442976, 0.022043496370315552, 0.007811222691088915, -0.029614722356200218, -0.00009615445014787838, 0.019453341141343117, 0.05426648631691933, 0.03785612806677818, -0.03470446914434433, 0.04361605644226074, 0.03767499700188637, -0.013765865005552769, -0.025303833186626434, 0.02410837635397911, -0.04865146428346634, -0.04712997376918793, 0.012588520534336567, 0.02546685002744198, 0.01389265526086092, -0.08817398548126221, -0.017850341275334358, -0.023818569257855415, -0.0009073470719158649, -0.06987987458705902, -0.0030293958261609077, -0.01673639379441738, 0.07379227876663208, 0.04347115010023117, 0.0396311990916729, 0.007095759734511375, -0.0014445101842284203, 0.0027010980993509293, 0.007974239066243172, -0.007231607101857662, -0.0509699247777462, -0.03376259282231331, 0.03077395260334015, 0.02546685002744198, 0.013756807893514633, -0.001100363559089601, -0.00036990101216360927, 0.005343329161405563, -0.04959334060549736, 0.005542571656405926, -0.07795826345682144, 0.020232198759913445, 0.011048917658627033, 0.02419894188642502, -0.08172576874494553, 0.04673148691654205, -0.006638407241553068, 0.005701060406863689, 0.0071365139447152615, 0.0032309028320014477, 0.007725185714662075, 0.05057143792510033, 0.0052572921849787235, -0.005456535145640373, 0.01568584144115448, -0.029723400250077248, 0.027042679488658905, -0.023836681619286537, -0.02039521560072899, -0.01544131524860859, 0.005207481794059277, -0.02892642840743065, -0.010233833454549313, 0.0008020653622224927, 0.02086615189909935, 0.05462874844670296, 0.020232198759913445, -0.030864518135786057, 0.005302574951201677, 0.00539313955232501, 0.05890341103076935, -0.009563653729856014, 0.00392372440546751, 0.006882932502776384, -0.009817235171794891, -0.03571879491209984, -0.0005660306196659803, -0.002114690374583006, 0.036606330424547195, 0.009527427144348621, -0.09585388749837875, -0.06386636942625046, 0.03265770152211189, 0.05872227996587753, 0.013530395925045013, 0.049883145838975906, 0.028310587629675865, -0.008399894461035728, -0.0060587916523218155, -0.03894290700554848, 0.03561011701822281, -0.03796480596065521, 0.048361655324697495, -0.03970365226268768, -0.06908290833234787, 0.029125671833753586, -0.052889902144670486, 0.03749386966228485, 0.036624446511268616, -0.08389931917190552, -0.013575678691267967, -0.03216865286231041, 0.016645828261971474, -0.009536484256386757, 0.0597003810107708, -0.006004452705383301, 0.020685022696852684, -0.036388978362083435, 0.0017399780917912722, 0.025901561602950096, -0.003380334936082363, 0.023709891363978386, 0.023782342672348022, 0.00933724083006382, -0.07408208400011063, 0.015993760898709297, 0.00951837096363306, 0.010577980428934097, 0.008680645376443863, -0.03850819543004036, 0.012588520534336567, -0.020503893494606018, 0.021590672433376312, -0.018475240096449852, -0.012045131996273994, -0.03044791892170906, 0.005302574951201677, 0.06252600997686386, 0.029089445248246193, -0.07527754455804825, -0.0048905047588050365, -0.0174246858805418, 0.04944843426346779, 0.048832595348358154, 0.05629514157772064, 0.006185582838952541, -0.08331970870494843, -0.0470212958753109, -0.022985370829701424, -0.016691111028194427, 0.03318297863006592, 0.011021748185157776, -0.05741814523935318, 0.002175821689888835, -0.034070514142513275, 0.01950768008828163, -0.034668244421482086, 0.023583099246025085, 0.01869259588420391, -0.05361441895365715, 0.052853673696517944, 0.027386825531721115, 0.0042837196961045265, 0.021174073219299316, -0.03609916940331459, 0.05901208892464638, -0.02849171683192253, 0.013820203952491283, 0.04057307541370392, 0.02409026399254799, -0.07433567196130753, 0.005347857251763344, -0.03030301444232464, 0.04636922851204872, -0.018484296277165413, -0.011048917658627033, -0.0023909134324640036, 0.029705287888646126, 0.001138853607699275, 0.012642859481275082, 0.013322096318006516, -0.0219167061150074, -0.005805210210382938, -0.037530094385147095, -0.021862367168068886, 0.025883447378873825, -0.014508496969938278, -0.005406724289059639, -0.029234349727630615, -0.09172412753105164, 0.06520672887563705, 0.015260185115039349, -0.014906981959939003, -0.025865335017442703, 0.021246524527668953, 0.0565124973654747, 0.04394209012389183, -0.0002813172177411616, 0.022278964519500732, -0.023474421352148056, -0.028636621311306953, 0.031317342072725296, 0.06781499832868576, -0.0010935711907222867, 0.0549185536801815, -0.010804392397403717, 0.029614722356200218, 0.025629866868257523, 0.013611904345452785, -0.004727487917989492, 0.051151055842638016, 0.027948327362537384, -0.06056980416178703, 0.03305618837475777, 0.0033825989812612534, -0.003013547044247389, -0.013168136589229107, -0.005696532316505909, -0.02211594767868519, -0.00755311269313097, 0.0048089963383972645, 0.021174073219299316, 0.06201884150505066, -0.012054188176989555, 0.03479503467679024 ]
718,606
pluginlib._util
abstractattribute
A class to be used to identify abstract attributes .. code-block:: python @pluginlib.Parent class ParentClass(object): abstract_attribute = pluginlib.abstractattribute
class abstractattribute(object): # noqa: N801 # pylint: disable=invalid-name """ A class to be used to identify abstract attributes .. code-block:: python @pluginlib.Parent class ParentClass(object): abstract_attribute = pluginlib.abstractattribute """ __isabstractmethod__ = True
()
[ 0.03384854272007942, 0.005901820491999388, 0.0024970977101475, 0.033722106367349625, 0.022162307053804398, -0.041615284979343414, 0.03206038475036621, -0.005621856544166803, -0.023697592318058014, -0.03310799226164818, 0.05935235321521759, 0.030814094468951225, 0.04157916083931923, 0.061664316803216934, -0.034860026091337204, -0.021223071962594986, 0.009889048524200916, 0.016752680763602257, -0.0540059469640255, 0.0008720650803297758, -0.0105934739112854, -0.006940396502614021, -0.019705848768353462, -0.024853572249412537, 0.026750102639198303, 0.07997937500476837, 0.01820668764412403, 0.0297845508903265, 0.03930332511663437, -0.021945560351014137, -0.09601859748363495, -0.0496348962187767, -0.0017576768295839429, 0.037424854934215546, 0.031012779101729393, -0.008416980504989624, -0.012318413704633713, 0.0750664621591568, -0.055414795875549316, -0.00038184598088264465, -0.017384856939315796, 0.08048511296510696, -0.043891120702028275, -0.04840666800737381, -0.017664821818470955, -0.04725068807601929, 0.01762869767844677, -0.009690364822745323, -0.02801445685327053, -0.04909303039312363, 0.018802739679813385, -0.016535934060811996, 0.02133144624531269, 0.049779392778873444, 0.011523677036166191, 0.06350665539503098, 0.017818350344896317, 0.027743523940443993, -0.05136886611580849, 0.029369119554758072, -0.06690234690904617, 0.009780675172805786, 0.07889564335346222, -0.08424205332994461, 0.010385759174823761, -0.016680432483553886, -0.046383701264858246, 0.012002324685454369, 0.030109670013189316, 0.026316609233617783, -0.015154177322983742, -0.009207201190292835, 0.0692504346370697, 0.02472713775932789, 0.05111599713563919, -0.016310157254338264, -0.038978204131126404, 0.01790866069495678, 0.04613083228468895, -0.055559296160936356, -0.041326288133859634, -0.0042762234807014465, -0.0027364217676222324, 0.0220358707010746, -0.022288741543889046, -0.005012257490307093, -0.035997942090034485, -0.02595536597073078, 0.05104374885559082, 0.016228877007961273, -0.0375332310795784, 0.04136241227388382, -0.02053670957684517, 0.06133919581770897, -0.018802739679813385, 0.028032518923282623, 0.044830355793237686, -0.014693590812385082, 0.01598503813147545, -0.003781770821660757, 0.020283838734030724, 0.02409496158361435, 0.04266289249062538, -0.048659536987543106, -0.0040910858660936356, 0.01094568707048893, -0.021692689508199692, 0.02467295154929161, 0.032728686928749084, -0.022360989823937416, -0.017737070098519325, -0.006940396502614021, -0.03057928755879402, 0.018387308344244957, -0.021728813648223877, 0.0023954978678375483, -0.0015680238138884306, -0.0033956917468458414, 0.06379565596580505, -0.01954328827559948, 0.01925429329276085, -0.01854986883699894, -0.05693202093243599, 0.0017802545335143805, 0.00845310464501381, 0.004003032576292753, 0.004565218463540077, 0.05201910436153412, -0.04685331881046295, -0.027960268780589104, 0.0034611669834703207, 0.026316609233617783, 0.010286416858434677, -0.019290419295430183, 0.014160756953060627, 0.013483424670994282, 0.07286287099123001, 0.012462911196053028, -0.053066711872816086, 0.014485876075923443, 0.007658368442207575, 0.020356087014079094, 0.04110954329371452, -0.012453879229724407, -0.02879112958908081, -0.006836538668721914, -0.06242292746901512, -0.008060252293944359, -0.007093925029039383, -0.03211457282304764, 0.04248226806521416, -0.028122829273343086, -0.029874861240386963, -0.0055450922809541225, 0.03336086496710777, -0.007753194775432348, -0.045877959579229355, 0.028971752151846886, -0.0012824154691770673, -0.06105019897222519, -0.0019958720076829195, -0.061230823397636414, -0.004432009533047676, -0.014422657899558544, 0.013149273581802845, -0.0076764305122196674, -0.058738239109516144, -0.09674108773469925, -0.03919495269656181, 0.044180113822221756, -0.056534651666879654, -0.044469110667705536, 0.01705070771276951, 0.04670882225036621, -0.0110179353505373, 0.030254166573286057, 0.027562901377677917, 0.0481899231672287, 0.046022459864616394, 0.029820675030350685, 0.07665593177080154, -0.04302413389086723, -0.06021934002637863, 0.03840021416544914, 0.05433106794953346, -0.03446265682578087, 0.04772030562162399, -0.011063091456890106, 0.06350665539503098, 0.00782092846930027, -0.008678882382810116, -0.011144370771944523, -0.029188498854637146, -0.037569355219602585, -0.007062315940856934, -0.030326416715979576, 0.014946461655199528, 0.009256872348487377, -0.04045930504798889, 0.09059993922710419, -0.037280358374118805, 0.06119469925761223, -0.008570509031414986, 0.021295322105288506, 0.048587288707494736, 0.01351051777601242, 0.0077622258104383945, -0.057618383318185806, -0.05595666170120239, -0.03489615023136139, -0.0013964329846203327, 0.008263451978564262, -0.014422657899558544, 0.0423738956451416, 0.025973428040742874, -0.029549742117524147, 0.05404207110404968, 0.032945435494184494, 0.009374276734888554, 0.04840666800737381, 0.029369119554758072, 0.0021177916787564754, 0.016815898939967155, 0.008313123136758804, 0.017186174169182777, -0.030470913276076317, 0.04876791313290596, -0.01428719237446785, -0.012318413704633713, -0.012092635966837406, -0.02261386066675186, -0.023209912702441216, 0.004066250286996365, -0.003729842137545347, 0.011008904315531254, 0.023769840598106384, -0.0033347317948937416, -0.006249517668038607, -0.11480327695608139, 0.017881568521261215, -0.04385499656200409, 0.04371050000190735, -0.009753582067787647, 0.05068250373005867, -0.037352606654167175, -0.05357245355844498, -0.04797317460179329, 0.06282029300928116, 0.009162046015262604, -0.019705848768353462, 0.03901432827115059, -0.054909057915210724, -0.0629647895693779, 0.00604180246591568, 0.012318413704633713, -0.0001540930534247309, -0.057257141917943954, -0.03346923738718033, 0.04782867804169655, -0.006890725344419479, 0.040134184062480927, -0.054981306195259094, -0.0021268227137625217, 0.05852149426937103, 0.04761193320155144, 0.02004902996122837, 0.037352606654167175, 0.01925429329276085, -0.06043608486652374, 0.03673849254846573, 0.09428463131189346, 0.019868409261107445, 0.016463685780763626, 0.0013851441908627748, -0.028881441801786423, -0.02496194653213024, -0.023715654388070107, -0.03811122104525566, -0.009247841313481331, -0.08720424771308899, 0.014549093320965767, 0.020916014909744263, 0.019452977925539017, 0.048659536987543106, -0.019796159118413925, -0.026768164709210396, 0.004714231472462416, 0.07889564335346222, -0.001656076987273991, 0.04172365739941597, -0.0073784044943749905, 0.0018141211476176977, -0.02935105748474598, -0.001636885921470821, 0.12022193521261215, 0.01538898516446352, -0.0059785847552120686, 0.06972005218267441, -0.023625344038009644, -0.06744421273469925, 0.011722360737621784, 0.02815895341336727, -0.03919495269656181, 0.006249517668038607, -0.06910593807697296, 0.018604055047035217, -0.03854471072554588, 0.01826087385416031, -0.041759781539440155, -0.015054835006594658, 0.03854471072554588, 0.08373630791902542, -0.07427172362804413, 0.03285512328147888, 0.0070803784765303135, 0.015443172305822372, 0.04284351319074631, -0.037352606654167175, 0.02259579859673977, 0.05223585292696953, -0.05245259776711464, -0.03021804243326187, 0.005513483192771673, -0.06928656250238419, -0.004181396681815386, 0.013356989249587059, 0.0057618385180830956, -0.026334673166275024, 0.001987969735637307, -0.022649984806776047, -0.017818350344896317, 0.0581241250038147, 0.005585731938481331, -0.025792807340621948, -0.06249517574906349, 0.0020579607225954533, -0.00228486699052155, -0.07463296502828598, 0.01564185693860054, -0.028122829273343086, 0.016093410551548004, 0.0004289770149625838, -0.02239711582660675, 0.01137014850974083, -0.04804542288184166, -0.014585218392312527, -0.05852149426937103, -0.016599152237176895, 0.07947363704442978, -0.028773067519068718, 0.033378925174474716, -0.030019359663128853, -0.0108373137190938, 0.03464328125119209, 0.04941815137863159, -0.04678107053041458, -0.029260747134685516, 0.004899369087070227, -0.0237337164580822, -0.003578571369871497, -0.00020249407680239528, -0.07752291858196259, -0.008100892417132854, 0.04750355705618858, -0.045950211584568024, -0.0046555292792618275, 0.004980648867785931, 0.014350409619510174, 0.07242938131093979, -0.01983228325843811, -0.03442653268575668, -0.04222939908504486, 0.007066831458359957, -0.059388477355241776, 0.01896529830992222, -0.014847119338810444, 0.02552187442779541, 0.0031089542899280787, -0.033234428614377975, 0.030868282541632652, -0.014422657899558544, -0.03646755963563919, -0.024365894496440887, -0.05191073194146156, -0.011695267632603645, -0.02460070140659809, 0.04464973136782646, 0.035997942090034485, -0.055414795875549316, 0.00945555604994297, 0.011081153526902199, -0.005269643850624561, -0.07195976376533508, -0.06690234690904617, -0.021168885752558708, -0.04063992574810982, -0.0447942316532135, -0.015154177322983742, -0.023336349055171013, 0.02467295154929161, 0.018324092030525208, -0.0733686164021492, 0.07911238819360733, -0.03189782798290253, 0.051585614681243896, 0.021277260035276413, 0.04031480848789215, -0.07214038819074631, -0.014621342532336712, -0.05877436324954033, 0.03428203612565994, 0.02160237915813923, -0.04136241227388382, -0.020229652523994446, 0.036937177181243896, 0.0093833077698946, 0.07199588418006897, -0.03314411640167236, -0.015578638762235641, -0.024113023653626442, 0.027382278814911842, -0.015163208357989788, -0.001556734903715551, 0.02039221115410328, -0.05396982282400131, 0.0289356280118227, 0.0030931499786674976, 0.031157277524471283, 0.004917431157082319, 0.039411697536706924, 0.006384984124451876, 0.032800935208797455, -0.05573991686105728, -0.013420206494629383, -0.01891111209988594, -0.06831119954586029, 0.00203425413928926, -0.030109670013189316, 0.01364598423242569, 0.0025557999033480883, 0.002619017381221056, 0.00739195104688406, 0.004727778024971485, 0.059966471046209335, 0.0634344071149826, 0.016165658831596375, -0.024203334003686905, 0.028953690081834793, 0.05620953440666199, -0.010710878297686577, 0.00613211328163743, 0.059460729360580444, 0.06083345413208008, 0.01941685378551483, -0.062314555048942566, -0.07326024025678635, -0.026750102639198303, -0.07600569725036621, 0.02658754214644432, -0.0012237133923918009, 0.01883886381983757, 0.028899503871798515, -0.046383701264858246, -0.08070186525583267, 0.024113023653626442, 0.04685331881046295, -0.03836409002542496, -0.035076770931482315, -0.03379435837268829, 0.006723650265485048, 0.050285134464502335, -0.050429634749889374, 0.0440717414021492, -0.026424983516335487, -0.0017091346671804786, 0.020627019926905632, 0.007310671266168356, 0.030525099486112595, -0.0297845508903265, -0.024203334003686905, 0.0020805385429412127, 0.026750102639198303, -0.029910985380411148, -0.0012462910963222384, 0.03581732138991356, 0.03560057654976845, -0.01705070771276951, -0.04725068807601929, 0.0166443083435297, -0.01812540739774704, -0.06838344782590866, 0.016012130305171013, 0.027779648080468178, 0.02794220671057701, 0.05266934633255005, 0.005179333034902811, 0.07875114679336548, 0.040278684347867966, 0.0067281657829880714, -0.05346408113837242, -0.016445623710751534, -0.038147345185279846, 0.03774997591972351, -0.031247587874531746, 0.035943757742643356, -0.015334798954427242, -0.004917431157082319, -0.011090184561908245, 0.015416079200804234, 0.013176367618143559, 0.04251839593052864, 0.010548318736255169, 0.07372985780239105, -0.005301252473145723, 0.028122829273343086, -0.03292737156152725, -0.0062224240973591805, 0.017728038132190704, -0.00828602910041809, -0.02225261740386486, -0.020645081996917725, -0.02302929200232029, -0.021006327122449875, 0.025359313935041428, -0.02402271144092083, 0.03995356336236, 0.019958719611167908, 0.02302929200232029, -0.026750102639198303, -0.022270679473876953, 0.03930332511663437, 0.008155078627169132, 0.03240356966853142, 0.04735906049609184, -0.012417755089700222, 0.0692504346370697, -0.03325249254703522, 0.05187460780143738, 0.03858083859086037, -0.025341251865029335, 0.05794350430369377, 0.020030967891216278, -0.003732099896296859, -0.021096637472510338, 0.0102322306483984, 0.008299576118588448, -0.03476971387863159, -0.029585866257548332, 0.0012203266378492117, 0.01918204501271248, 0.024365894496440887, 0.03868921101093292, -0.044469110667705536, -0.05664302781224251, 0.06990067660808563, 0.01721326634287834, 0.06314541399478912, -0.009464587084949017, -0.01460328046232462, 0.027472591027617455, 0.010530256666243076, 0.00004688408080255613, 0.025630246847867966, -0.023914339020848274, 0.053355708718299866, 0.04129016399383545, 0.040061935782432556, 0.017800288274884224, -0.018856925889849663, -0.031879764050245285, -0.052560970187187195, -0.025431562215089798, 0.03126564994454384, 0.017104893922805786, 0.024040773510932922, 0.03532964363694191, 0.010692816227674484, -0.019958719611167908, -0.014476845040917397, -0.0413985401391983, 0.008051221258938313, -0.027490653097629547, -0.013501486741006374, -0.033017683774232864, -0.025196755304932594, -0.021494004875421524, 0.04024255648255348, 0.07976263016462326, -0.013898855075240135, -0.05281384289264679, -0.020229652523994446, 0.007008129730820656, 0.0375332310795784, -0.044035617262125015, -0.022487426176667213, 0.002804154995828867, 0.027526777237653732, -0.05830474942922592, 0.015334798954427242, 0.0018987876828759909, -0.038147345185279846, 0.03141014650464058, -0.0057211983948946, 0.042265523225069046, 0.00927493441849947, -0.001344504184089601, -0.027201658114790916, 0.001078086905181408, -0.059171732515096664, 0.02183718793094158, -0.0012778999516740441, -0.013474393635988235, 0.032241009175777435, -0.05588441342115402, -0.010584442876279354, -0.01607534848153591, -0.004183654673397541, 0.030651535838842392, 0.03220488503575325, 0.024510391056537628, -0.041181791573762894, -0.013212491758167744, 0.03249387815594673, 0.026750102639198303, -0.03619662672281265, 0.04923752695322037, 0.009130436927080154, -0.0059785847552120686, -0.002230680314823985, -0.021096637472510338, 0.017475169152021408, 0.030254166573286057, -0.014946461655199528, -0.05772675946354866, 0.006299188826233149, -0.018495682626962662, 0.0016526903491467237, 0.04266289249062538, 0.02716553397476673, -0.03930332511663437, -0.05758225917816162, -0.013176367618143559, 0.007292609196156263, 0.039411697536706924, -0.032367441803216934, -0.0026596575044095516, 0.012914465740323067, -0.006660432554781437, -0.028231201693415642, -0.05978584662079811, -0.004619405139237642, 0.03634112700819969, -0.03397497907280922, -0.019362667575478554, 0.03056122548878193, 0.006290157325565815, -0.06820283085107803, 0.04569733887910843, -0.007360342424362898, -0.038075096905231476, -0.012517097406089306, 0.017249390482902527, -0.02346278354525566, -0.015262549743056297, 0.00510256877169013, 0.009401369839906693, 0.009311058558523655, -0.054620061069726944, 0.009762613102793694, 0.0028109282720834017, -0.00821378082036972, 0.08250807970762253, 0.014106569811701775, -0.0634344071149826, 0.006673979107290506, 0.017737070098519325, -0.009925173595547676, -0.0496348962187767, 0.017168110236525536, -0.013727264478802681, -0.014377502724528313, 0.024925822392106056, -0.05209135636687279, -0.030958592891693115, 0.016337251290678978, -0.0018818543758243322, 0.026388859376311302, 0.02431170642375946, 0.007897692732512951, -0.09348989278078079, -0.019525226205587387, -0.00540511030703783, -0.006213393062353134, 0.019001424312591553, 0.10858988016843796, -0.08323056995868683, -0.022216493263840675, 0.04790092632174492, 0.03012773208320141, -0.012598377652466297, 0.014449751935899258, 0.014946461655199528, -0.02467295154929161, 0.026461107656359673, 0.02906206250190735, 0.056751400232315063, -0.041470788419246674, 0.024582639336586, 0.039231076836586, -0.021656565368175507, 0.021024389192461967, -0.014883244410157204, -0.06336215883493423, -0.10215974599123001, -0.014187850058078766, -0.03471552953124046, 0.054836805909872055, 0.02467295154929161, 0.019796159118413925, 0.00280867051333189, 0.008972392417490482, 0.01528964377939701, 0.033378925174474716, -0.01340214442461729, -0.05180235952138901, 0.02012127824127674, -0.03854471072554588, 0.00655657472088933, 0.023625344038009644, 0.034932274371385574, 0.004127210471779108, 0.008615664206445217, -0.081352099776268, 0.04493872821331024, 0.029766488820314407, -0.009943235665559769, -0.024853572249412537, -0.04847891628742218, -0.04685331881046295, -0.014395564794540405, 0.024691013619303703, 0.0005274723516777158, 0.013600829057395458, 0.012634501792490482, 0.018098313361406326, 0.02055477164685726, -0.03399303928017616, 0.06972005218267441, 0.02537737600505352, -0.0038495040498673916, -0.02944136969745159, 0.03883370757102966, -0.01258031465113163, 0.05588441342115402, 0.004651013761758804, -0.00573926093056798, 0.03973681852221489, 0.017664821818470955, 0.009861955419182777, -0.023643406108021736, -0.018658241257071495, -0.030687659978866577, -0.013031870126724243, -0.0013625663705170155, -0.010403821244835854, 0.0220358707010746, -0.03489615023136139, 0.019886471331119537 ]
718,607
pluginlib._util
abstractclassmethod
A decorator for abstract class methods Used in parent classes to identify class methods required in child plugins This decorator is included to support older versions of Python and should be considered deprecated as of Python 3.3. The preferred implementation is: .. code-block:: python @classmethod @pluginlib.abstractmethod def abstract_classmethod(cls): return cls.foo
class abstractclassmethod(classmethod): # noqa: N801 # pylint: disable=invalid-name """ A decorator for abstract class methods Used in parent classes to identify class methods required in child plugins This decorator is included to support older versions of Python and should be considered deprecated as of Python 3.3. The preferred implementation is: .. code-block:: python @classmethod @pluginlib.abstractmethod def abstract_classmethod(cls): return cls.foo """ __isabstractmethod__ = True def __init__(self, func): super(abstractclassmethod, self).__init__(abstractmethod(func))
null
[ -0.017796313390135765, -0.06069241091609001, -0.026911497116088867, 0.004640157334506512, -0.036989156156778336, -0.01667342707514763, 0.021532973274588585, 0.004600054584443569, 0.017239589244127274, -0.009497342631220818, 0.038763124495744705, 0.03757418692111969, 0.04080130159854889, 0.016588503494858742, -0.015909111127257347, -0.019343817606568336, 0.03981995955109596, 0.03495097905397415, -0.04891626909375191, -0.0028119306080043316, -0.006841106340289116, 0.011285467073321342, 0.0329882875084877, -0.04223557561635971, 0.0005452244076877832, 0.09670022130012512, 0.02355227805674076, 0.014021909795701504, 0.013106616213917732, -0.0011641676537692547, -0.11066551506519318, -0.004864262416958809, 0.002545363502576947, 0.06858091056346893, 0.018956942483782768, 0.004536361433565617, 0.02024967595934868, 0.07745075970888138, -0.07918699085712433, 0.03891409933567047, -0.05895618349313736, 0.03785726800560951, -0.016635684296488762, -0.06314577162265778, 0.008129121735692024, -0.02781735546886921, 0.03132754936814308, 0.004203741904348135, -0.04310368746519089, -0.07367635518312454, -0.008214046247303486, -0.05197353661060333, 0.033044904470443726, -0.00034559384221211076, 0.024231670424342155, 0.10017266869544983, 0.0318370945751667, 0.018494578078389168, -0.04891626909375191, 0.031006725504994392, -0.029496964067220688, -0.00040633813478052616, 0.05423818156123161, -0.022684166207909584, 0.007978145964443684, -0.04057483747601509, -0.05159609764814377, -0.03476225584745407, 0.0260622575879097, 0.02191041223704815, -0.012427223846316338, 0.02241995744407177, 0.07144945859909058, -0.004279230255633593, 0.06699566543102264, -0.009822885505855083, -0.04506637901067734, 0.002052332041785121, 0.041782647371292114, 0.013314208947122097, -0.01406908966600895, -0.0500485934317112, 0.03963123634457588, 0.009096312336623669, -0.012313991785049438, -0.04008416458964348, -0.03195032477378845, -0.03174273297190666, 0.00954924151301384, 0.012446096166968346, -0.062428634613752365, 0.014003037475049496, -0.0348377451300621, 0.0037177875638008118, -0.029345987364649773, 0.025363992899656296, 0.030685901641845703, -0.00923785287886858, -0.01723015308380127, -0.010115401819348335, 0.007105314638465643, 0.026439696550369263, 0.051747072488069534, -0.06450455635786057, 0.009247289039194584, -0.022589806467294693, -0.029440348967909813, 0.03242212533950806, -0.017730260267853737, 0.001546325976960361, 0.009601139463484287, 0.013219848275184631, -0.03914056718349457, 0.03308264911174774, -0.025967895984649658, -0.028572235256433487, -0.0023943872656673193, -0.02096681110560894, 0.048614319413900375, -0.00700623681768775, -0.013691648840904236, -0.004316973965615034, -0.07665813714265823, 0.004274512175470591, -0.027024729177355766, -0.023420173674821854, 0.009001952596008778, 0.047481998801231384, -0.010898590087890625, -0.02232559770345688, 0.010096529498696327, 0.03238438442349434, -0.01591854728758335, -0.01806052215397358, 0.011917679570615292, 0.008888720534741879, 0.06529717892408371, 0.0011276031145825982, -0.04782169312238693, 0.010757050476968288, 0.002682185498997569, 0.006076789926737547, 0.026854882016777992, 0.04910499230027199, -0.020306291058659554, -0.008978362195193768, -0.06103210523724556, 0.008275380358099937, 0.009888937696814537, -0.011474186554551125, 0.05480434000492096, -0.004892570897936821, -0.030855748802423477, 0.012163016013801098, 0.046349674463272095, -0.020079826936125755, 0.011993166990578175, 0.0000620712453383021, -0.013285900466144085, -0.05208677053451538, 0.00923785287886858, -0.05989978462457657, -0.010209761559963226, -0.001357605797238648, 0.0019343819003552198, -0.015767570585012436, -0.057446423918008804, -0.09926681220531464, -0.0311388298869133, 0.059937529265880585, -0.06476876884698868, -0.014484274201095104, 0.007737527601420879, 0.012361171655356884, 0.011738395318388939, 0.0290629081428051, 0.006770336534827948, 0.03840455785393715, 0.0516715869307518, 0.051935791969299316, 0.05956009030342102, -0.0705813467502594, -0.04993535950779915, 0.0031162418890744448, 0.05374750867486, 0.03257310390472412, 0.05231323465704918, 0.012285683304071426, 0.012681996449828148, 0.01229511946439743, 0.004630721639841795, -0.01287071593105793, -0.015229718759655952, -0.01303112879395485, 0.000060265134379733354, -0.01612613908946514, -0.02387310191988945, 0.045292843133211136, -0.02770412154495716, 0.029855532571673393, -0.022646421566605568, 0.07216659933328629, 0.006548590026795864, -0.020060954615473747, 0.04008416458964348, 0.003168140072375536, 0.03238438442349434, -0.028383515775203705, -0.06016399338841438, -0.04597223550081253, -0.0010397302685305476, 0.005487039219588041, -0.041858136653900146, 0.035668112337589264, 0.011728959158062935, -0.06952451169490814, 0.10975965857505798, 0.014455965720117092, -0.00048536472604610026, 0.03293167054653168, 0.035120826214551926, 0.042386554181575775, 0.00347481039352715, 0.061711497604846954, -0.0037885576020926237, 0.0006133405840955675, 0.041782647371292114, -0.02542060799896717, 0.0019320228602737188, -0.01941930688917637, -0.04461345076560974, -0.015097614377737045, -0.006878850515931845, 0.03827245160937309, 0.012078091502189636, -0.0004983392427675426, 0.05427592247724533, 0.007034544833004475, -0.08130065351724625, 0.045104123651981354, -0.04423601180315018, 0.043216921389102936, 0.007308188825845718, 0.04299045726656914, -0.047255534678697586, -0.020985683426260948, -0.025269631296396255, 0.044877659529447556, 0.026232104748487473, 0.02045726776123047, 0.007803579326719046, -0.08107418566942215, -0.06163601204752922, -0.026552928611636162, -0.010049349628388882, -0.03580021858215332, -0.10047462582588196, 0.0035974783822894096, 0.016267679631710052, 0.0034582973457872868, 0.0018235087627545, -0.02800607495009899, 0.014550325460731983, 0.06518395245075226, 0.007284598890691996, 0.009487907402217388, 0.014861714094877243, 0.022061388939619064, -0.05155835300683975, 0.06001301854848862, 0.14252148568630219, -0.015795879065990448, 0.021570716053247452, 0.04204685613512993, -0.007614859379827976, -0.03559262678027153, -0.055068548768758774, -0.04585900530219078, -0.016163883730769157, -0.0906611755490303, 0.036989156156778336, 0.03030846081674099, -0.005430423188954592, 0.02075921930372715, -0.02304273471236229, -0.03540390729904175, -0.001808175235055387, 0.06363644450902939, -0.017060304060578346, 0.025571584701538086, -0.016569631174206734, -0.018956942483782768, 0.01893807016313076, 0.017815185710787773, 0.08832104504108429, 0.02304273471236229, -0.03225227817893028, 0.07182689756155014, 0.00477462075650692, -0.06616529822349548, -0.004536361433565617, 0.0009217801271006465, -0.07986637949943542, 0.001735046156682074, -0.04627418890595436, -0.01708861254155636, -0.08213102072477341, 0.01681496761739254, -0.03238438442349434, -0.01582418754696846, 0.007209111005067825, 0.03498871996998787, -0.06982646882534027, -0.03185596689581871, 0.015210846439003944, 0.033271368592977524, 0.015541106462478638, -0.010049349628388882, 0.04397180303931236, 0.05740867927670479, -0.05148286372423172, 0.008907592855393887, -0.010785358026623726, -0.008728308603167534, -0.017513232305645943, -0.009167082607746124, 0.009487907402217388, -0.024024078622460365, -0.0051898048259317875, -0.001211347640492022, -0.018371909856796265, 0.03613991290330887, -0.007487473078072071, -0.03568698465824127, -0.06922256201505661, -0.008799077942967415, 0.01151193119585514, -0.027270065620541573, 0.012342299334704876, -0.011596854776144028, 0.03446030616760254, 0.013257592916488647, -0.0022127442061901093, -0.0007572397007606924, -0.05337006598711014, -0.0020747424568980932, -0.05748416855931282, -0.010841974057257175, 0.041367463767528534, -0.02564707212150097, 0.07963991910219193, -0.0950394794344902, -0.03687592223286629, 0.028270283713936806, 0.07292147725820541, -0.02634533680975437, -0.023325813934206963, -0.04265075922012329, 0.019891107454895973, -0.07971540093421936, -0.009804013185203075, -0.055257268249988556, -0.02500542439520359, 0.07235531508922577, 0.003130395896732807, -0.007407267112284899, 0.01905130222439766, -0.007303470745682716, 0.0454438179731369, -0.021117787808179855, -0.035762473940849304, -0.04646290838718414, 0.009289750829339027, -0.0498221293091774, 0.028194794431328773, -0.023382430896162987, 0.05325683578848839, 0.02325032651424408, -0.01949479430913925, 0.0433678962290287, -0.0258357934653759, -0.027364425361156464, -0.02966681309044361, -0.05435141175985336, 0.026930369436740875, -0.015531671233475208, 0.017239589244127274, 0.07348763942718506, -0.021419741213321686, -0.005562527105212212, -0.0005133778904564679, 0.015503362752497196, -0.08001735806465149, -0.09005726873874664, -0.002543004462495446, -0.029610196128487587, -0.020513882860541344, -0.010153145529329777, -0.016248807311058044, 0.037196747958660126, 0.050690241158008575, -0.05416269227862358, 0.07760173827409744, -0.00794511940330267, 0.04068807139992714, 0.018579501658678055, 0.03464902564883232, -0.05529501289129257, -0.016409220173954964, -0.06725987046957016, 0.044877659529447556, -0.0046613882295787334, -0.013200976885855198, -0.006614642217755318, 0.004189588129520416, -0.0024132593534886837, 0.05438915640115738, -0.013521800749003887, -0.011276030912995338, -0.020098699256777763, 0.041480693966150284, -0.01635260321199894, 0.0009312161128036678, 0.0415184386074543, -0.004597695544362068, 0.03557375445961952, -0.015814751386642456, -0.0007790604722686112, -0.003493682248517871, -0.008714154362678528, 0.00033910656929947436, 0.025156399235129356, -0.06741084903478622, -0.022287853062152863, -0.03832906857132912, -0.049859870225191116, -0.004333487246185541, 0.03757418692111969, 0.0033356291241943836, 0.06084338575601578, -0.03708351403474808, -0.003967841621488333, -0.005760683678090572, 0.03421496972441673, 0.0793379619717598, -0.021627333015203476, 0.0028190077282488346, 0.017192408442497253, 0.051218658685684204, -0.019702386111021042, 0.011530802585184574, 0.08213102072477341, 0.021193277090787888, 0.03778177872300148, -0.027043601498007774, -0.0380648598074913, 0.010728741995990276, -0.045519307255744934, 0.02553384006023407, 0.00261849258095026, 0.04091453552246094, 0.030855748802423477, -0.059107162058353424, -0.07582776993513107, 0.02045726776123047, -0.0247978325933218, -0.009115184657275677, -0.01479566190391779, -0.03795162960886955, -0.025137528777122498, 0.04585900530219078, -0.03472451493144035, 0.029402604326605797, -0.05272841826081276, -0.036177657544612885, 0.025458352640271187, 0.012115835212171078, -0.0015699160285294056, 0.0066476683132350445, 0.028874186798930168, -0.005689913406968117, -0.000027202244382351637, 0.0049444688484072685, -0.005515347234904766, -0.004588259384036064, -0.0063928961753845215, -0.019438179209828377, -0.0518980510532856, 0.012776356190443039, -0.007963991723954678, -0.036385249346494675, 0.013880369253456593, 0.039706725627183914, 0.010757050476968288, 0.031384166330099106, 0.023269198834896088, 0.031195444986224174, 0.05948460102081299, 0.034705642610788345, -0.05355878546833992, -0.004132972098886967, -0.02396746352314949, 0.046538397669792175, -0.008223481476306915, 0.016154447570443153, -0.05337006598711014, 0.00908687710762024, 0.010624946095049381, 0.026005640625953674, 0.021193277090787888, 0.04389631375670433, 0.013191540725529194, 0.012568764388561249, -0.008619794622063637, 0.03402625024318695, -0.024665728211402893, -0.055672451853752136, 0.019551411271095276, -0.0071713668294250965, -0.007473319303244352, -0.004713286645710468, -0.011559111066162586, -0.0033710142597556114, 0.0310255978256464, -0.02253318950533867, 0.035837963223457336, 0.0016713531222194433, 0.016277115792036057, -0.0009907810017466545, -0.021570716053247452, -0.006468384061008692, 0.011993166990578175, 0.010549457743763924, 0.01670173555612564, -0.0061334059573709965, 0.053105857223272324, -0.023608895018696785, 0.04650065302848816, 0.07375184446573257, -0.0004508643178269267, 0.04261301830410957, 0.03266746178269386, 0.0012101681204512715, 0.008346149697899818, -0.007718655280768871, 0.015220282599329948, -0.029006291180849075, -0.026930369436740875, 0.003637581365182996, 0.004604772198945284, 0.022910630330443382, 0.04408503323793411, -0.03819696605205536, -0.05521952360868454, 0.05865423381328583, -0.009577549062669277, 0.04299045726656914, -0.012096963822841644, -0.042386554181575775, 0.030761389061808586, -0.02023080363869667, -0.0021301789674907923, -0.002877982798963785, -0.019343817606568336, -0.005746529437601566, 0.023420173674821854, 0.0869622603058815, 0.038876358419656754, -0.017918981611728668, -0.07348763942718506, -0.016965944319963455, -0.025779176503419876, 0.016107266768813133, 0.027024729177355766, 0.023004990071058273, 0.06673145294189453, 0.0325164869427681, -0.06401388347148895, 0.015559978783130646, -0.08439566195011139, -0.022665293887257576, -0.01854175701737404, 0.0017952007474377751, -0.02532624825835228, -0.05446464568376541, -0.022986117750406265, 0.035837963223457336, 0.05118091404438019, -0.018560629338026047, -0.028175922110676765, -0.015475055202841759, 0.05220000073313713, 0.05023731291294098, -0.04472668096423149, -0.039291542023420334, -0.03848004341125488, 0.01338026113808155, -0.012389480136334896, 0.020381780341267586, 0.005387960933148861, -0.053709764033555984, 0.02979891560971737, -0.005109598860144615, 0.025080911815166473, 0.022872885689139366, -0.013767137192189693, -0.03193145617842674, -0.00811968557536602, -0.05601214990019798, 0.0039961496368050575, -0.009629447013139725, -0.041065510362386703, 0.0699019581079483, -0.052464209496974945, 0.0038475326728075743, 0.007713937200605869, -0.043216921389102936, 0.012842408381402493, 0.014304989948868752, 0.06046594679355621, -0.06567462533712387, -0.02158958837389946, 0.04329241067171097, 0.017843492329120636, -0.036781564354896545, 0.033460088074207306, 0.004453796427696943, 0.015191974118351936, -0.012899024412035942, -0.04948243126273155, -0.020834708586335182, 0.022703038528561592, 0.004592977464199066, -0.041971366852521896, -0.023740999400615692, -0.022552061825990677, 0.005430423188954592, 0.03268633410334587, 0.032742951065301895, -0.01909848302602768, -0.03238438442349434, 0.014559761621057987, 0.025458352640271187, 0.004854826722294092, -0.01812657341361046, -0.032837312668561935, 0.004102305043488741, 0.0023943872656673193, 0.00463543925434351, -0.03125206008553505, 0.012474403716623783, 0.08726420998573303, -0.04046160727739334, 0.03508308157324791, -0.01831529289484024, -0.026798265054821968, -0.0498221293091774, 0.0029133677016943693, 0.017541540786623955, -0.03174273297190666, 0.015909111127257347, 0.05601214990019798, -0.026741649955511093, -0.011474186554551125, 0.015427874401211739, 0.01990997977554798, -0.005015238653868437, -0.04366984963417053, 0.035120826214551926, -0.025911280885338783, 0.023740999400615692, 0.047368764877319336, -0.00952565111219883, -0.04480217024683952, 0.023835359141230583, 0.021759437397122383, -0.021532973274588585, -0.05118091404438019, 0.013465184718370438, 0.010813666507601738, -0.02294837310910225, 0.023288069292902946, -0.06333449482917786, 0.02677939273416996, -0.03402625024318695, 0.031157702207565308, 0.00854430627077818, 0.009115184657275677, 0.00006796875095460564, -0.10877831280231476, 0.008836822584271431, 0.05363427475094795, 0.0028614697512239218, 0.03019522875547409, 0.10583427548408508, -0.025363992899656296, -0.057861607521772385, -0.013691648840904236, 0.015852496027946472, -0.044047288596630096, 0.004911442752927542, -0.01804164983332157, -0.029647940769791603, 0.001714994665235281, 0.01692819967865944, 0.049369197338819504, -0.029817787930369377, -0.01824924163520336, 0.03902733325958252, 0.0014802739024162292, 0.0037130694836378098, -0.008242353796958923, -0.015229718759655952, -0.05597440525889397, -0.01924002170562744, -0.03815922141075134, 0.09262386709451675, -0.029100650921463966, 0.004805287811905146, 0.0011087310267612338, 0.027949457988142967, -0.0435943603515625, 0.021514100953936577, -0.009591703303158283, -0.002571312477812171, 0.007864913903176785, -0.023835359141230583, 0.015588287264108658, 0.016069523990154266, 0.04627418890595436, 0.013427441008388996, -0.0417449027299881, -0.07027939707040787, 0.059937529265880585, 0.05227549001574516, 0.007209111005067825, 0.00477462075650692, -0.053294580429792404, -0.07903601229190826, 0.007770553231239319, -0.005086008924990892, -0.029213882982730865, -0.011785575188696384, 0.033252496272325516, 0.051445122808218, 0.01068156212568283, 0.034516919404268265, 0.08416920155286789, 0.04223557561635971, -0.011002386920154095, -0.019589154049754143, 0.05646507814526558, 0.008959490805864334, 0.05654056742787361, -0.02189154177904129, -0.023816486820578575, 0.04434924200177193, -0.0027034166269004345, -0.011436442844569683, -0.013767137192189693, -0.02708134613931179, -0.031723860651254654, 0.0009813449578359723, -0.006586334202438593, 0.009195391088724136, 0.042386554181575775, 0.02447700686752796, 0.015078742057085037 ]
718,608
pluginlib._util
__init__
null
def __init__(self, func): super(abstractclassmethod, self).__init__(abstractmethod(func))
(self, func)
[ -0.019409174099564552, -0.03946772590279579, 0.012356211431324482, 0.04055001959204674, -0.08153296262025833, -0.016459917649626732, -0.0035760861355811357, 0.01734379306435585, 0.044554516673088074, -0.00021025852765887976, 0.03326256200671196, 0.06129402667284012, 0.027724813669919968, 0.031440697610378265, -0.05126475170254707, 0.007607638370245695, 0.02252979390323162, 0.05602685362100601, -0.05382618308067322, -0.025758642703294754, -0.02557826042175293, 0.007467841729521751, 0.036058492958545685, -0.005208549089729786, 0.014151019044220448, 0.10058137029409409, -0.030376438051462173, 0.02191649191081524, 0.04487920552492142, -0.0019875913858413696, -0.043977290391922, 0.010795901529490948, -0.0031657156068831682, 0.10224089026451111, 0.020184818655252457, 0.005614410154521465, -0.008617781102657318, 0.058588284999132156, -0.08376970142126083, 0.03975633531808853, 0.0014160037972033024, -0.013591833412647247, 0.020635776221752167, -0.04487920552492142, 0.004248011391609907, -0.03667179495096207, 0.03816897049546242, -0.010209658183157444, -0.004622305277734995, -0.021898454055190086, -0.03683413937687874, -0.01801120862364769, 0.04379690811038017, -0.008144277147948742, -0.0012344938004389405, 0.12330958247184753, 0.027201704680919647, 0.03147677332162857, -0.03275749087333679, 0.02096046507358551, -0.055377475917339325, 0.01525135338306427, 0.03548126667737961, -0.002644860651344061, -0.02871691808104515, -0.034200552850961685, -0.0984167754650116, -0.028843186795711517, 0.04661087691783905, 0.022241180762648582, 0.02759854681789875, 0.04661087691783905, 0.04599757492542267, 0.015296448953449726, 0.06443268060684204, 0.011309992522001266, -0.05804713815450668, -0.011120590381324291, 0.02043735422194004, -0.011210781522095203, -0.014105923473834991, -0.023684242740273476, -0.02132122963666916, 0.033154331147670746, -0.01610817015171051, -0.06677766144275665, -0.02893337793648243, -0.05191412940621376, 0.010209658183157444, 0.004446432460099459, -0.06767956912517548, -0.0010326906340196729, -0.02633586712181568, 0.016378745436668396, -0.022656060755252838, -0.008468965999782085, 0.017479078844189644, -0.02319720946252346, -0.009073247201740742, -0.007291968911886215, 0.009803797118365765, 0.02960079349577427, -0.01126489695161581, -0.056784458458423615, 0.011806044727563858, 0.005388931836932898, -0.04704379662871361, -0.028103617951273918, -0.0417766235768795, 0.008807183243334293, -0.01870568096637726, 0.032559070736169815, -0.03227045759558678, 0.059021204710006714, -0.04870331659913063, 0.006552400067448616, 0.0004433467402122915, -0.02819380909204483, 0.04628618806600571, -0.004552407190203667, -0.002534376224502921, 0.024568118155002594, -0.07240559905767441, 0.017614366486668587, -0.005208549089729786, -0.002466732868924737, 0.0013990929583087564, 0.03741136193275452, 0.023305438458919525, -0.03907088190317154, 0.03685217723250389, 0.015738386660814285, -0.02005855180323124, -0.01331224013119936, -0.004277323838323355, -0.002394579816609621, 0.037916433066129684, 0.010462193749845028, -0.05750599130988121, 0.016577165573835373, 0.011282934807240963, 0.014773339033126831, 0.05725345388054848, 0.05869651585817337, -0.033388830721378326, 0.044338054955005646, -0.05826359614729881, -0.015034894458949566, 0.02117692306637764, -0.006178105715662241, 0.06075287610292435, 0.010795901529490948, -0.017497116699814796, 0.00995712261646986, 0.008739539422094822, -0.04303929954767227, 0.013140876777470112, -0.017767691984772682, 0.013357335701584816, -0.030899548903107643, -0.004254776053130627, -0.030069788917899132, 0.005713620688766241, -0.044121596962213516, -0.014069846831262112, 0.020094627514481544, -0.050831831991672516, -0.08434692770242691, -0.011346069164574146, 0.020834196358919144, -0.050146378576755524, -0.06908655911684036, -0.038674041628837585, -0.009930064901709557, 0.018849987536668777, -0.0015298704383894801, 0.0021285153925418854, 0.036202799528837204, -0.01230209693312645, 0.07482272386550903, 0.07374043017625809, -0.05458379164338112, -0.0551970936357975, 0.017812786623835564, 0.04509566351771355, 0.03683413937687874, 0.03223438188433647, 0.03353313356637955, -0.0070890383794903755, 0.027941273525357246, -0.005722639616578817, 0.008559157140552998, -0.027544431388378143, -0.0014362968504428864, 0.016423840075731277, -0.017686519771814346, -0.005474613513797522, 0.05660407617688179, -0.03149481117725372, 0.05166159197688103, 0.008581704460084438, 0.06969985365867615, 0.023756396025419235, -0.03780820593237877, 0.02170003391802311, -0.0019650436006486416, 0.025632375851273537, 0.0028049503453075886, -0.06136617809534073, -0.05227489396929741, 0.006209672894328833, -0.03391193971037865, -0.003154441714286804, 0.029276104643940926, 0.028680842369794846, -0.0424981527030468, 0.08737735450267792, -0.016207382082939148, 0.010904131457209587, 0.04628618806600571, 0.04661087691783905, 0.03676198422908783, -0.036509450525045395, 0.013068723492324352, -0.026732709258794785, 0.026534289121627808, 0.02752639353275299, -0.06659727543592453, -0.024568118155002594, -0.005393441300839186, -0.04376083239912987, -0.019192714244127274, 0.026281753554940224, -0.01058846153318882, 0.017569269984960556, 0.00787370279431343, 0.05750599130988121, -0.0015287429559975863, -0.09134577214717865, -0.012455422431230545, -0.00017234998813364655, 0.034867968410253525, 0.013736139051616192, 0.013988674618303776, -0.0197699386626482, 0.011607623659074306, -0.021267114207148552, 0.058660440146923065, -0.023882662877440453, 0.004326928872615099, 0.011778987012803555, -0.037916433066129684, -0.0603921115398407, -0.029582755640149117, -0.012581690214574337, -0.04653872549533844, -0.06508205831050873, -0.002822988433763385, 0.017650442197918892, 0.0328296422958374, 0.01454786118119955, -0.01364594791084528, 0.007016885094344616, 0.05407872051000595, -0.014096904546022415, 0.014358459040522575, -0.018615489825606346, 0.001764367800205946, -0.040622174739837646, 0.04837862774729729, 0.1520986557006836, -0.03813289478421211, 0.037699975073337555, 0.07327143102884293, -0.03313629329204559, -0.019806016236543655, -0.06822071969509125, -0.04794570803642273, -0.03773605078458786, -0.054619867354631424, 0.020599698647856712, 0.0544394850730896, -0.009325782768428326, 0.04570896551012993, -0.034200552850961685, -0.015413697808980942, 0.022493716329336166, 0.015052932314574718, -0.014421593397855759, -0.021068694069981575, 0.014232191257178783, -0.005190510768443346, 0.027688737958669662, 0.057830680161714554, 0.07352396845817566, -0.009068737737834454, -0.005384422373026609, 0.05176982283592224, 0.011039418168365955, -0.05786675587296486, 0.004744063597172499, -0.05263565853238106, -0.08586214482784271, 0.02431558258831501, -0.00037119368789717555, -0.04033356159925461, -0.0693030133843422, 0.04837862774729729, -0.0036369652952998877, 0.011959370225667953, 0.015711329877376556, 0.053429342806339264, -0.042317770421504974, 0.021681994199752808, 0.030250171199440956, 0.050687525421381, 0.002572707599028945, -0.009195005521178246, 0.03185557574033737, 0.04722417891025543, -0.02408108487725258, 0.001730546122416854, -0.020689889788627625, 0.0020834195893257856, -0.019427211955189705, 0.018308838829398155, -0.02303486503660679, -0.030773280188441277, -0.02431558258831501, 0.02498299814760685, -0.02900553122162819, 0.034272704273462296, 0.029185913503170013, -0.04459059238433838, -0.08333678543567657, -0.002662898972630501, -0.004816216882318258, -0.008004480041563511, 0.014142000116407871, -0.0529603473842144, 0.05162551626563072, 0.002719268435612321, -0.0136098712682724, 0.011355088092386723, -0.00005288171087158844, 0.003506187815219164, -0.048811547458171844, 0.0070033567026257515, 0.030827395617961884, -0.017767691984772682, 0.06313392519950867, -0.11046633869409561, -0.017352811992168427, 0.012644823640584946, 0.03445308655500412, 0.0346515066921711, -0.044554516673088074, 0.007918798364698887, 0.019409174099564552, -0.09884969145059586, 0.017406925559043884, -0.06739095598459244, -0.04513173922896385, 0.037555668503046036, 0.045745041221380234, 0.007810568902641535, 0.005307759623974562, -0.004707987420260906, 0.012175829149782658, -0.032180264592170715, 0.010272792540490627, -0.07092645764350891, -0.016378745436668396, -0.023143094033002853, 0.01648697443306446, -0.025920987129211426, 0.01984209194779396, 0.017641423270106316, 0.007959384471178055, 0.059706658124923706, 0.01829981990158558, -0.03380370885133743, -0.007377650588750839, -0.03629298880696297, 0.014439631253480911, -0.04199308156967163, 0.027923235669732094, 0.07958482950925827, 0.035697728395462036, 0.02445988729596138, 0.0009312254260294139, 0.015558003447949886, -0.06959162652492523, -0.07341574132442474, 0.015404678881168365, -0.018335897475481033, 0.018994294106960297, -0.005718130152672529, -0.005370893515646458, 0.020383240655064583, 0.022024722769856453, -0.01458393782377243, 0.07294674217700958, 0.00454338826239109, 0.050903983414173126, 0.04069432616233826, 0.02179022505879402, -0.0072378539480268955, -0.00807663332670927, -0.014710205607116222, 0.005560295190662146, 0.005158944055438042, -0.029582755640149117, -0.038962654769420624, -0.010480232536792755, -0.02355797402560711, 0.04376083239912987, -0.013853387907147408, 0.033966053277254105, -0.016712453216314316, 0.02990744449198246, 0.03349705785512924, -0.021447498351335526, 0.04603365436196327, 0.004667401313781738, 0.04487920552492142, -0.011075494810938835, -0.0022108149714767933, 0.006295354571193457, 0.006701215635985136, -0.04116332158446312, 0.057542067021131516, -0.07446195930242538, -0.007607638370245695, 0.0029447467532008886, -0.04415767267346382, -0.04520389437675476, 0.012689920142292976, -0.027183666825294495, 0.06652512401342392, -0.005393441300839186, -0.008004480041563511, 0.009176967665553093, 0.01565721444785595, 0.0514812096953392, -0.04704379662871361, 0.011760949157178402, 0.04422982782125473, 0.020455392077565193, -0.018146494403481483, 0.01829981990158558, 0.05577431619167328, 0.014592956751585007, 0.04830647632479668, -0.025235533714294434, -0.007228835020214319, 0.005713620688766241, -0.045384276658296585, 0.02274625189602375, 0.042029157280921936, -0.0021172414999455214, 0.019643671810626984, -0.056784458458423615, -0.08405831456184387, -0.015873674303293228, 0.03892657533288002, 0.0018568139057606459, -0.01562113780528307, -0.03340686857700348, -0.01831785775721073, 0.03845757991075516, -0.020527545362710953, -0.005691072903573513, -0.08319248259067535, -0.03935949504375458, 0.01089511252939701, -0.004275069106370211, -0.028356153517961502, 0.014169057831168175, 0.011309992522001266, -0.014962741173803806, -0.0063765267841517925, 0.007530975621193647, 0.029113760218024254, -0.006137519609183073, 0.001731673488393426, -0.009740663692355156, -0.020671851933002472, 0.006890617311000824, 0.006151048466563225, -0.06212378665804863, 0.05324896052479744, 0.026065293699502945, 0.026191560551524162, 0.023810509592294693, 0.009271668270230293, -0.03290179744362831, 0.05725345388054848, -0.00924461055546999, -0.08420262485742569, -0.01915663853287697, 0.013654966838657856, -0.014169057831168175, -0.0015569278039038181, -0.026444096118211746, -0.03470562398433685, -0.04257030785083771, -0.019192714244127274, 0.011697814799845219, -0.002599765080958605, 0.052166663110256195, 0.02343170717358589, -0.057614218443632126, -0.02990744449198246, 0.022782329469919205, -0.017307715490460396, -0.06331431120634079, -0.015909750014543533, -0.02833811566233635, 0.0010822959011420608, 0.04899192973971367, -0.0026087842416018248, -0.017785729840397835, 0.010038294829428196, -0.012202886864542961, -0.034128397703170776, 0.010732768103480339, 0.002399089280515909, 0.03917911276221275, -0.020996540784835815, -0.006096933502703905, -0.003404722549021244, -0.002595255384221673, 0.03634710609912872, 0.007422746159136295, 0.05833575129508972, -0.022926636040210724, 0.006511813960969448, 0.040838632732629776, 0.017280658707022667, 0.027111513540148735, 0.03324452415108681, 0.018435107544064522, 0.004937975201755762, -0.01394357904791832, -0.02842830680310726, -0.03537303954362869, -0.02200668305158615, -0.012879321351647377, -0.007526466157287359, 0.015467812307178974, 0.002356248442083597, -0.004574954975396395, 0.03259514644742012, 0.04816216975450516, -0.03510246425867081, 0.048053938895463943, 0.01532350666821003, -0.03838542848825455, 0.04199308156967163, -0.007643715012818575, 0.03741136193275452, 0.004121743608266115, 0.002750835381448269, -0.012771091423928738, -0.0005476304795593023, 0.05382618308067322, 0.059923116117715836, -0.0019492600113153458, -0.07879114151000977, -0.004234482999891043, -0.019264867529273033, -0.016450898721814156, 0.03921518847346306, 0.00628633564338088, 0.05941804498434067, -0.0007237853715196252, -0.06876187026500702, 0.0003184881352353841, -0.10130289942026138, -0.028518497943878174, -0.02005855180323124, -0.020671851933002472, -0.029943520203232765, -0.054114796221256256, -0.028680842369794846, 0.03510246425867081, 0.02833811566233635, -0.028915340080857277, -0.06980808824300766, -0.014538842253386974, 0.02833811566233635, -0.007467841729521751, -0.029709022492170334, -0.03513853996992111, -0.04011710360646248, 0.008117219433188438, -0.03266729786992073, -0.020599698647856712, 0.0004895697929896414, -0.06515421718358994, 0.06876187026500702, 0.0006200653733685613, 0.028590651229023933, 0.005357364658266306, -0.0021848848555237055, -0.05108436569571495, 0.03454327955842018, -0.03798858821392059, 0.022908596321940422, 0.020563622936606407, -0.024586156010627747, 0.08485200256109238, -0.047548867762088776, 0.014232191257178783, -0.01182408258318901, -0.07211698591709137, 0.04505958780646324, 0.023774433881044388, 0.06760741770267487, -0.07496703416109085, -0.029185913503170013, 0.010236715897917747, 0.041199397295713425, -0.056423693895339966, 0.0331723690032959, 0.04188485071063042, -0.016505012288689613, 0.011815063655376434, -0.053212881088256836, 0.004698968026787043, 0.01653207093477249, 0.005118357948958874, -0.04744063690304756, -0.008829730562865734, -0.05191412940621376, 0.013961617834866047, 0.03907088190317154, 0.012148771435022354, 0.02267410047352314, -0.02355797402560711, 0.026822900399565697, 0.016577165573835373, -0.05645976960659027, -0.005267173517495394, -0.028536535799503326, 0.00955126155167818, -0.0018128457013517618, 0.028608689084649086, -0.004951504059135914, 0.0006082277395762503, 0.03394801542162895, -0.0380246639251709, 0.04260638356208801, -0.012166810221970081, -0.042101312428712845, -0.010011237114667892, -0.0014881568495184183, 0.05429517850279808, 0.007291968911886215, -0.015828577801585197, 0.04711594805121422, 0.004491528030484915, 0.005307759623974562, 0.009506165981292725, 0.007544504478573799, -0.021194960922002792, -0.050976138561964035, 0.010480232536792755, -0.011120590381324291, 0.025379840284585953, 0.031566962599754333, -0.01093118917196989, -0.02079812064766884, 0.017262620851397514, 0.03028624691069126, -0.02736404910683632, -0.06652512401342392, 0.04394121468067169, 0.01710929535329342, -0.019860129803419113, 0.030845433473587036, -0.06306177377700806, -0.020671851933002472, -0.0272197425365448, 0.026462135836482048, -0.02110476978123188, 0.04044179245829582, 0.025235533714294434, -0.10909543186426163, -0.018047284334897995, -0.009167948737740517, -0.011571547016501427, 0.0328296422958374, 0.036581601947546005, -0.020311087369918823, -0.074534110724926, -0.044265903532505035, 0.054259102791547775, -0.00999319925904274, 0.017695538699626923, -0.011039418168365955, -0.03871011734008789, 0.016234438866376877, 0.026498211547732353, 0.010831978172063828, -0.048595085740089417, 0.016667356714606285, 0.039864566177129745, -0.01594582572579384, 0.009010113775730133, 0.006764349527657032, 0.0020789101254194975, -0.0603921115398407, 0.020455392077565193, -0.011508413590490818, 0.10361179709434509, -0.004586229100823402, -0.016955969855189323, -0.035535383969545364, 0.0006381036364473403, -0.06298962235450745, 0.043436143547296524, -0.011147648096084595, 0.04891977459192276, -0.010570423677563667, -0.029925482347607613, 0.022024722769856453, 0.001773386960849166, 0.03885442391037941, 0.022042760625481606, -0.02326936274766922, -0.04430197924375534, 0.035679690539836884, 0.0012840990675613284, -0.02514534257352352, -0.0011178087443113327, -0.010227696038782597, -0.06147440895438194, 0.0432557612657547, -0.036942366510629654, -0.05050714313983917, -0.014268267899751663, 0.06212378665804863, 0.06385546177625656, -0.0021950313821434975, 0.04722417891025543, 0.062159862369298935, 0.054692018777132034, -0.00037260292447172105, -0.023738356307148933, 0.04686341434717178, 0.03126031532883644, 0.09084070473909378, -0.017641423270106316, -0.02685897797346115, 0.016423840075731277, -0.01691989228129387, 0.008865807205438614, -0.014421593397855759, -0.04816216975450516, -0.06580359488725662, 0.01357379462569952, -0.01532350666821003, 0.008838750422000885, 0.04718810319900513, 0.05508886277675629, 0.03391193971037865 ]
718,610
abc
abstractproperty
A decorator indicating abstract properties. Deprecated, use 'property' with 'abstractmethod' instead: class C(ABC): @property @abstractmethod def my_abstract_property(self): ...
class abstractproperty(property): """A decorator indicating abstract properties. Deprecated, use 'property' with 'abstractmethod' instead: class C(ABC): @property @abstractmethod def my_abstract_property(self): ... """ __isabstractmethod__ = True
(fget=None, fset=None, fdel=None, doc=None)
[ 0.026450486853718758, -0.02990597113966942, 0.015638738870620728, 0.02351154386997223, 0.020643848925828934, -0.03996962681412697, 0.011729054152965546, -0.031669337302446365, 0.012726513668894768, -0.013403361663222313, 0.0389721654355526, 0.03516044467687607, 0.046025630086660385, 0.06177124008536339, -0.0035155992954969406, -0.0033530667424201965, -0.006683868821710348, 0.026058629155158997, 0.011595466174185276, 0.00009399886766914278, -0.02135632000863552, -0.02718077041208744, 0.024704933166503906, -0.053292833268642426, -0.013626008294522762, 0.06472799181938171, 0.00812216941267252, 0.05564398691058159, 0.0612725093960762, -0.029353806748986244, -0.10494698584079742, -0.012708702124655247, 0.004737932235002518, 0.020198553800582886, 0.04299762845039368, 0.01952170580625534, 0.031580280512571335, 0.07509444653987885, -0.05129791423678398, 0.033503949642181396, -0.029799101874232292, 0.09376119077205658, -0.03273804485797882, -0.029353806748986244, -0.0012123140040785074, -0.04442257061600685, -0.021213825792074203, 0.024455567821860313, -0.006421145051717758, -0.041430190205574036, 0.007975222542881966, -0.015522962436079979, 0.0058110919781029224, 0.026949217543005943, -0.008914793841540813, 0.057852648198604584, 0.017883023247122765, 0.0385090596973896, -0.03929277881979942, 0.03829531744122505, -0.046381864696741104, -0.002380098681896925, 0.03476858511567116, -0.11912515759468079, 0.010526759549975395, -0.06583232432603836, -0.026931405067443848, -0.004559814464300871, 0.058850109577178955, 0.014623467810451984, -0.0024891956709325314, 0.011319383978843689, 0.045990005135536194, 0.03532075136899948, 0.013171808794140816, -0.0029144517611712217, -0.036051034927368164, 0.018114576116204262, 0.07993925362825394, -0.05054982006549835, -0.051761019974946976, -0.023921215906739235, 0.0356769859790802, 0.030956866219639778, -0.02949630096554756, 0.00016517638869117945, -0.03072531335055828, -0.008264663629233837, 0.055430248379707336, 0.024045897647738457, -0.010598006658256054, 0.06387303024530411, -0.002404589671641588, -0.00980538222938776, -0.026539545506238937, 0.015514057129621506, 0.01781177520751953, 0.005352438893169165, -0.031241854652762413, 0.0004998429794795811, 0.014008961617946625, 0.0888451412320137, 0.06747100502252579, -0.013180714100599289, -0.007008933927863836, -0.01315399631857872, -0.011016583070158958, 0.004156823270022869, 0.018613306805491447, -0.005833356641232967, 0.0077392165549099445, 0.01621762290596962, -0.03640726953744888, -0.02762606367468834, 0.017108211293816566, 0.027964487671852112, 0.0015318127116188407, -0.04645311087369919, 0.026290182024240494, -0.0042993174865841866, -0.0010893014259636402, -0.013073843903839588, -0.07245830446481705, 0.013483514077961445, -0.01588810421526432, 0.0077214050106704235, -0.002925584092736244, 0.037582848221063614, -0.013928809203207493, -0.014017867855727673, -0.02678891085088253, 0.058422625064849854, 0.009466959163546562, 0.01133719552308321, 0.03612228110432625, 0.01943264715373516, 0.0380815789103508, 0.01573670469224453, -0.030974678695201874, -0.030921243131160736, -0.017891928553581238, 0.008367082104086876, 0.03882967308163643, 0.021000083535909653, -0.011924983933568, 0.010954242199659348, -0.043923839926719666, 0.002631689887493849, -0.018898295238614082, -0.019557330757379532, 0.053862810134887695, 0.00719150435179472, -0.03516044467687607, -0.07281453907489777, 0.045598145574331284, 0.009769759140908718, -0.033112090080976486, 0.010054747574031353, -0.013928809203207493, -0.023475920781493187, 0.01633339934051037, -0.05774577707052231, 0.008233493193984032, -0.02399246208369732, -0.012842290103435516, 0.01891610585153103, -0.010695971548557281, -0.09461615234613419, -0.010010218247771263, 0.04534878209233284, -0.027857618406414986, -0.0030257755424827337, 0.03496451675891876, 0.03248867765069008, 0.015148915350437164, 0.03466171771287918, 0.0002877715160138905, 0.047521818429231644, 0.017972081899642944, 0.03829531744122505, 0.043318238109350204, -0.05589335411787033, -0.06682978570461273, 0.011524219065904617, 0.03768971934914589, -0.014222702942788601, -0.004662232473492622, -0.008211228996515274, 0.02814260683953762, 0.02197973243892193, -0.02048354223370552, -0.00980538222938776, -0.014578938484191895, -0.0227634496986866, 0.013011502102017403, -0.0442088283598423, 0.029692230746150017, 0.006879798602312803, -0.016689633950591087, 0.06907406449317932, -0.06593919545412064, 0.07929802685976028, -0.0060693626292049885, 0.022086601704359055, 0.01852424629032612, 0.014846115373075008, 0.010740500874817371, -0.07295703142881393, -0.027554817497730255, -0.04021899029612541, -0.027287641540169716, 0.005094167776405811, -0.03507138788700104, 0.042178284376859665, 0.016262151300907135, -0.014810491353273392, 0.06843284517526627, 0.0026472751051187515, -0.005984756629914045, 0.06725726276636124, 0.03248867765069008, 0.004671138245612383, 0.02246064879000187, 0.014472068287432194, 0.045669395476579666, -0.016324492171406746, 0.0032528755255043507, -0.06430051475763321, -0.008371534757316113, -0.027412323281168938, -0.03054719604551792, -0.01319852564483881, 0.029959406703710556, 0.047343701124191284, 0.043531980365514755, -0.002798675326630473, -0.034911081194877625, -0.031152796000242233, -0.09881973266601562, 0.0393996499478817, -0.06779161840677261, 0.011693431064486504, 0.010491136461496353, 0.0617356151342392, -0.058422625064849854, -0.0339314341545105, 0.0046355146914720535, 0.07865680009126663, -0.0023288896773010492, 0.011346101760864258, 0.026112062856554985, -0.08335911482572556, -0.04018336534500122, 0.010215053334832191, -0.0006401106948032975, -0.00480472669005394, -0.07623440027236938, -0.0141158327460289, 0.014489879831671715, -0.02456243894994259, 0.004488567356020212, -0.03483983501791954, -0.022335967049002647, 0.06640230119228363, 0.05838700011372566, -0.010508948005735874, 0.03744035214185715, 0.0269135944545269, -0.06668728590011597, 0.06836159527301788, 0.09889098256826401, -0.04691621661186218, 0.004221390932798386, 0.004379470366984606, 0.012575114145874977, -0.012334655039012432, -0.0415726862847805, -0.03925715386867523, -0.02696702815592289, -0.06116563826799393, 0.013189620338380337, 0.05361344665288925, -0.007485399022698402, 0.05147603154182434, -0.05510963499546051, -0.021552249789237976, -0.011034395545721054, 0.033236775547266006, 0.011417348869144917, 0.032542113214731216, 0.01687665842473507, -0.028481028974056244, -0.019628576934337616, 0.008206775411963463, 0.10302331298589706, 0.011960607953369617, 0.02573801577091217, 0.032631173729896545, -0.01900516450405121, -0.04591875895857811, 0.03200776129961014, 0.04549127444624901, -0.06711477041244507, 0.0007163673872128129, -0.054468411952257156, -0.019664200022816658, -0.05108417198061943, -0.0010854051215574145, -0.009734136052429676, -0.018613306805491447, 0.01771381124854088, 0.029888160526752472, -0.05083480849862099, 0.04456506296992302, 0.016377927735447884, -0.011648901738226414, 0.0006506864447146654, -0.028071358799934387, 0.05877885967493057, 0.06145062670111656, -0.04777118191123009, -0.020732907578349113, 0.015184539370238781, -0.0704990103840828, -0.027483569458127022, 0.018132388591766357, -0.026824533939361572, -0.0047468384727835655, 0.010589100420475006, -0.009164159186184406, -0.05282972753047943, 0.027252016589045525, 0.008888076059520245, -0.0016397966537624598, -0.0879901722073555, -0.041430190205574036, 0.03467952832579613, -0.006559186615049839, 0.022246908396482468, -0.004419547040015459, 0.009894441813230515, 0.011265948414802551, -0.018007704988121986, -0.017019152641296387, -0.024277450516819954, 0.005009561777114868, -0.012022948823869228, -0.0260408166795969, 0.04538440704345703, -0.061130017042160034, 0.015469527803361416, -0.05357782170176506, -0.04460068792104721, 0.005236661992967129, 0.02910444140434265, -0.03790345788002014, -0.02465149760246277, -0.02237159013748169, -0.005793279968202114, -0.046987466514110565, -0.035000141710042953, -0.02889070101082325, -0.015620927326381207, 0.03255992755293846, -0.03986275568604469, 0.010304111987352371, 0.01978888362646103, -0.00537470355629921, 0.034376729279756546, -0.005272285547107458, -0.06212747469544411, -0.043353863060474396, 0.02901538275182247, -0.02513241581618786, 0.02096446044743061, -0.014498786069452763, 0.04146581515669823, 0.01636902242898941, 0.022923756390810013, 0.05087043344974518, 0.0030101900920271873, -0.028730394318699837, -0.01486392691731453, 0.003974252380430698, 0.02630799263715744, -0.009431335143744946, 0.01022395957261324, 0.021605683490633965, -0.04004087299108505, 0.02123163640499115, -0.025844886898994446, 0.0236362274736166, -0.08221916109323502, -0.0849265456199646, -0.031134985387325287, -0.03133091330528259, 0.0017889701994135976, -0.013599291443824768, -0.03423423320055008, 0.025595521554350853, 0.03954214230179787, -0.055002763867378235, 0.03868717700242996, -0.019984813407063484, 0.04306887462735176, 0.01864892989397049, 0.04973047971725464, -0.10259582847356796, 0.004533097147941589, -0.042213909327983856, 0.01033082976937294, -0.00869214627891779, -0.04574064165353775, -0.004889332689344883, 0.0586719885468483, -0.01787411794066429, 0.05179664492607117, -0.08343035727739334, 0.015015327371656895, -0.03751160204410553, 0.028267288580536842, -0.016867751255631447, 0.004493020474910736, 0.03754722326993942, -0.018114576116204262, 0.02669985219836235, -0.0014861701056361198, 0.010232864879071712, 0.0002197249559685588, 0.034911081194877625, 0.054076552391052246, -0.02972785383462906, -0.0507635623216629, -0.02288813143968582, -0.007387434132397175, -0.06362366676330566, 0.01667182147502899, -0.002268774900585413, -0.04819866642355919, -0.008429422974586487, 0.005583991762250662, 0.019290152937173843, 0.005543915089219809, 0.08107920736074448, 0.0827178880572319, 0.005054091569036245, 0.044280074536800385, -0.003446578746661544, 0.05706892907619476, -0.02468712069094181, -0.017883023247122765, 0.0661173090338707, 0.06194935739040375, -0.018631117418408394, -0.020946647971868515, -0.027519194409251213, -0.023119686171412468, -0.03389580920338631, 0.031224044039845467, 0.024402132257819176, 0.06255495548248291, 0.015531868673861027, -0.056142717599868774, -0.06540483981370926, 0.026949217543005943, 0.014961891807615757, -0.027643876150250435, 0.0044173202477395535, -0.048163041472435, 0.0494811125099659, 0.05058544501662254, -0.030849996954202652, 0.017909741029143333, -0.05144041031599045, -0.06508422642946243, 0.022745637223124504, -0.004241429269313812, 0.06145062670111656, 0.02372528612613678, -0.04438694566488266, -0.0442088283598423, 0.023279991000890732, -0.02297719195485115, -0.004737932235002518, 0.03273804485797882, 0.04631061851978302, -0.037012871354818344, -0.05724704638123512, 0.038152825087308884, -0.021285071969032288, -0.03343270346522331, -0.022638767957687378, 0.005272285547107458, 0.016021693125367165, 0.035391997545957565, 0.006211856845766306, 0.05639208108186722, 0.004036593716591597, 0.02425963804125786, -0.012779949232935905, -0.021089142188429832, -0.042000167071819305, 0.0884176567196846, 0.010482230223715305, 0.04837678372859955, -0.056890811771154404, -0.010045841336250305, 0.029300371184945107, 0.02775074727833271, -0.018025517463684082, 0.05243786796927452, 0.019949188455939293, 0.04574064165353775, 0.01315399631857872, 0.04039710760116577, -0.055430248379707336, -0.03597978875041008, 0.021872861310839653, 0.014703621156513691, -0.025987381115555763, -0.010598006658256054, 0.005089715123176575, -0.054967138916254044, 0.027234205976128578, -0.02700265310704708, 0.03418079763650894, -0.0015173406573012471, 0.020109495148062706, -0.012156536802649498, -0.024313073605298996, 0.008705505169928074, -0.001979333581402898, 0.01930796541273594, 0.06864658743143082, -0.02490086294710636, 0.03929277881979942, -0.01991356536746025, 0.0009468072094023228, 0.03268460929393768, 0.023101873695850372, 0.06362366676330566, 0.02336904965341091, 0.03296959772706032, -0.02336904965341091, 0.016956809908151627, 0.024152768775820732, -0.017678188160061836, -0.046025630086660385, 0.01067816000431776, 0.005299003329128027, 0.023440297693014145, 0.05546586960554123, -0.021213825792074203, -0.06109439209103584, 0.033414892852306366, 0.022229095920920372, 0.05261598527431488, -0.01429395005106926, -0.021676931530237198, 0.01477486826479435, 0.004782462026923895, -0.004533097147941589, 0.013430079445242882, -0.017045870423316956, 0.01479267980903387, 0.05218850448727608, 0.04720120504498482, 0.0192545298486948, -0.0236362274736166, -0.08677897602319717, -0.039114661514759064, 0.007017839699983597, 0.042000167071819305, -0.0027808635495603085, 0.03339707851409912, 0.005521650426089764, 0.014650185592472553, -0.03996962681412697, 0.0020795247983187437, -0.07295703142881393, -0.010687065310776234, -0.019112035632133484, -0.0538271889090538, -0.024669310078024864, 0.01306493766605854, -0.028338534757494926, 0.023279991000890732, 0.0748807042837143, -0.027875429019331932, -0.09817850589752197, -0.06451424956321716, 0.028961947187781334, 0.05129791423678398, -0.07751684635877609, -0.02543521672487259, 0.007494304794818163, 0.01868455298244953, -0.04093145951628685, 0.02762606367468834, 0.0031549108680337667, -0.05190351605415344, 0.023849967867136, 0.017455540597438812, -0.007026745472103357, 0.005401420872658491, 0.009360088035464287, -0.0038851937279105186, 0.0260408166795969, -0.033112090080976486, 0.010544571094214916, -0.01700134016573429, 0.01912984810769558, 0.01538937445729971, -0.06672291457653046, -0.01654713973402977, -0.03460828214883804, -0.022033166140317917, 0.014703621156513691, -0.02132069505751133, 0.033593010157346725, -0.05667706951498985, 0.021481001749634743, 0.013056031428277493, 0.016716351732611656, -0.04171517863869667, 0.031224044039845467, -0.003373105078935623, 0.008375987410545349, -0.012779949232935905, -0.06558296084403992, -0.013973338529467583, 0.0031393254175782204, 0.025363968685269356, -0.009395712055265903, 0.000020316556401667185, -0.014676903374493122, -0.018239257857203484, 0.027821993455290794, 0.02228253148496151, -0.03147340938448906, -0.05065669119358063, -0.0005048525054007769, 0.027911052107810974, 0.010117088444530964, -0.045241910964250565, 0.02123163640499115, -0.009876629337668419, -0.001694345148280263, 0.0016153054311871529, -0.05927759036421776, 0.0058110919781029224, 0.034911081194877625, 0.0007286129402928054, 0.01600388064980507, 0.019272342324256897, -0.014667997136712074, -0.046025630086660385, -0.006906515918672085, 0.0018134614219889045, -0.04556252434849739, -0.0057665626518428326, -0.01204076036810875, -0.03825969621539116, -0.014276138506829739, 0.041822049766778946, 0.043496355414390564, -0.022816885262727737, -0.0007692460785619915, 0.029122253879904747, 0.008202322758734226, 0.07908428460359573, 0.04962360858917236, 0.002460251562297344, -0.06444300711154938, 0.045847512781620026, 0.03325458616018295, 0.0019158791983500123, -0.042962003499269485, 0.014489879831671715, -0.02456243894994259, -0.02372528612613678, -0.008816828951239586, -0.04360322654247284, 0.003633602289482951, -0.030190959572792053, 0.043710097670555115, 0.018595494329929352, 0.025631146505475044, 0.02832072414457798, -0.06704352796077728, 0.020287612453103065, 0.002255416242405772, -0.02726982906460762, 0.054468411952257156, 0.0971810519695282, -0.06693665683269501, -0.02048354223370552, 0.011702336370944977, 0.03535637632012367, -0.06109439209103584, 0.004933862015604973, 0.020893212407827377, -0.010304111987352371, 0.03345051407814026, -0.00012050780060235411, 0.05706892907619476, -0.0326133631169796, -0.003764964174479246, 0.03726223483681679, -0.07128272950649261, -0.025577710941433907, 0.02630799263715744, -0.060346297919750214, -0.10744063556194305, -0.017544599249958992, -0.08806142210960388, 0.08385784178972244, 0.009992406703531742, -0.0038607025053352118, -0.0011666712816804647, 0.026379240676760674, -0.014240514487028122, 0.029140066355466843, -0.012361372821033001, -0.02705608867108822, 0.0015028686029836535, -0.051974762231111526, 0.014614562503993511, 0.004546456038951874, 0.05877885967493057, 0.028659148141741753, 0.03190089017152786, -0.003542316844686866, 0.04477880522608757, 0.009164159186184406, 0.003186081536114216, -0.01212981902062893, -0.027376700192689896, -0.039898376911878586, 0.005949133075773716, 0.029995031654834747, -0.002348928013816476, -0.030048465356230736, 0.006474580615758896, 0.04118082672357559, 0.0009328917949460447, -0.007000028155744076, 0.09504363685846329, 0.00876784697175026, -0.00819787010550499, -0.026824533939361572, 0.015514057129621506, -0.026539545506238937, 0.0411452017724514, 0.01619090512394905, -0.026735475286841393, 0.026414863765239716, -0.017651470378041267, 0.0011165756732225418, -0.01987794227898121, -0.054967138916254044, -0.0011032168986275792, -0.027911052107810974, 0.0183817520737648, -0.033984869718551636, 0.03947089612483978, -0.021855048835277557, 0.02709171175956726 ]
718,611
pluginlib._util
abstractstaticmethod
A decorator for abstract static methods Used in parent classes to identify static methods required in child plugins This decorator is included to support older versions of Python and should be considered deprecated as of Python 3.3. The preferred implementation is: .. code-block:: python @staticmethod @pluginlib.abstractmethod def abstract_staticmethod(): return 'foo'
class abstractstaticmethod(staticmethod): # noqa: N801 # pylint: disable=invalid-name """ A decorator for abstract static methods Used in parent classes to identify static methods required in child plugins This decorator is included to support older versions of Python and should be considered deprecated as of Python 3.3. The preferred implementation is: .. code-block:: python @staticmethod @pluginlib.abstractmethod def abstract_staticmethod(): return 'foo' """ __isabstractmethod__ = True def __init__(self, func): super(abstractstaticmethod, self).__init__(abstractmethod(func))
null
[ -0.011718430556356907, -0.07939987629652023, -0.018075302243232727, 0.02150256745517254, -0.027399342507123947, -0.015943825244903564, 0.04060135409235954, 0.017089378088712692, -0.016563549637794495, 0.006375652272254229, 0.06321191787719727, 0.044770412147045135, 0.03785954415798187, 0.0032840713392943144, -0.04965309053659439, -0.006201941519975662, 0.0011725472286343575, 0.06982231140136719, -0.05367191135883331, -0.03160595893859863, -0.056188371032476425, -0.0002524967130739242, 0.03427265211939812, -0.03064820170402527, 0.0004357439174782485, 0.10554099082946777, -0.010572878643870354, 0.0016244298312813044, 0.04721175134181976, -0.002788760932162404, -0.08811358362436295, -0.013633943162858486, 0.013680892065167427, 0.03455434367060661, 0.017239613458514214, -0.016779515892267227, -0.01921146549284458, 0.0640382170677185, -0.0878131091594696, 0.037483952939510345, -0.014338175766170025, 0.04540891572833061, -0.004133845213800669, -0.07669562101364136, 0.03271394968032837, -0.007192562334239483, 0.028901705518364906, 0.0016279510455206037, -0.04995356500148773, -0.05186907574534416, 0.018741976469755173, -0.03224446251988411, 0.028169304132461548, -0.009385072626173496, 0.009047041647136211, 0.08743751794099808, 0.037690527737140656, 0.004812255967408419, -0.04721175134181976, 0.010075220838189125, -0.006108044181019068, 0.004741832613945007, 0.04195348173379898, 0.005028220824897289, 0.015530675649642944, -0.038573164492845535, -0.05393482744693756, -0.041991040110588074, 0.03359659016132355, 0.04011308774352074, 0.0012030639918521047, 0.01844150386750698, 0.05044183135032654, -0.0033239778131246567, 0.07312750816345215, -0.01051654014736414, -0.015314711257815361, -0.0013544739922508597, 0.04770002141594887, -0.002882658736780286, 0.008375672623515129, -0.05938089266419411, -0.010206677950918674, 0.004232437815517187, -0.003758254460990429, -0.054798685014247894, -0.043530963361263275, -0.06711806356906891, 0.05006624013185501, 0.012488391250371933, -0.0718505010008812, -0.01908939704298973, -0.032469816505908966, 0.0033967485651373863, -0.0077324737794697285, 0.02000020630657673, 0.026629380881786346, -0.022817134857177734, -0.00759632233530283, -0.015765419229865074, 0.024713868275284767, 0.018094083294272423, 0.01206585206091404, -0.05720246583223343, 0.034385330975055695, -0.01625368744134903, -0.016957920044660568, 0.03307076171040535, -0.035061392933130264, 0.008051726035773754, -0.00331928301602602, -0.006281754467636347, -0.04480797052383423, 0.009535308927297592, -0.050254035741090775, -0.007718388922512531, 0.0013626900035887957, -0.005159677471965551, 0.06336215138435364, -0.0054695396684110165, -0.014225497841835022, 0.029314855113625526, -0.10764429718255997, 0.006436686031520367, -0.00586391007527709, -0.017652763053774834, 0.018741976469755173, 0.03973749652504921, -0.008131538517773151, -0.0028685741126537323, 0.024713868275284767, 0.04867655783891678, -0.02950265072286129, -0.013126895762979984, -0.009582257829606533, 0.004274691920727491, 0.07016034424304962, 0.02257300168275833, -0.07496790587902069, 0.020864063873887062, -0.024037806317210197, -0.014741935767233372, 0.021934498101472855, 0.0599442757666111, -0.03192520886659622, 0.023756112903356552, -0.047512225806713104, 0.0038967535365372896, 0.009755969047546387, -0.010882740840315819, 0.07278948277235031, -0.0028873535338789225, -0.04405679181218147, -0.0007957828347571194, 0.040376000106334686, -0.0656156986951828, 0.01938048005104065, -0.005525878164917231, -0.00963390152901411, -0.04154033213853836, 0.00043515703873708844, -0.036601316183805466, -0.014047092758119106, -0.014065871946513653, -0.02150256745517254, -0.003892058739438653, -0.020075323060154915, -0.07609467953443527, -0.013239572755992413, 0.03192520886659622, -0.05896774306893349, 0.009009482339024544, -0.023173946887254715, 0.05404750257730484, 0.03269517049193382, 0.02619745209813118, 0.002809887984767556, 0.0511554554104805, 0.024976782500743866, 0.027192767709493637, 0.07241389155387878, -0.06478939950466156, -0.06324947625398636, -0.01542738825082779, 0.03162473812699318, 0.02614111267030239, 0.020432135090231895, 0.01690158247947693, 0.024582412093877792, 0.0020082364790141582, 0.0006414385279640555, -0.00005080011032987386, -0.010432031936943531, -0.026723278686404228, 0.002327488735318184, -0.007676135282963514, -0.0266106016933918, 0.0038897113408893347, -0.026986192911863327, 0.03297686576843262, -0.03147450089454651, 0.07192561775445938, -0.011248941533267498, -0.0015763072296977043, 0.013314690440893173, 0.019455598667263985, 0.021070638671517372, -0.010403863154351711, -0.09186948835849762, -0.0121409697458148, 0.0029835987370461226, 0.0032840713392943144, -0.03284540772438049, 0.04800049215555191, 0.007502424530684948, -0.0656532570719719, 0.06137152388691902, 0.02071382850408554, 0.007502424530684948, 0.031117690727114677, 0.053033407777547836, 0.03239469975233078, 0.021352332085371017, 0.030986234545707703, -0.0029131753835827112, 0.01953071728348732, 0.05047939345240593, -0.03545576333999634, -0.02356831729412079, -0.034798480570316315, -0.045183561742305756, -0.01655416004359722, -0.0006825187592767179, 0.02572796307504177, 0.007586932275444269, -0.010986028239130974, 0.039549700915813446, -0.01118321344256401, -0.03834781050682068, 0.002673736307770014, -0.056038133800029755, 0.04093938693404198, -0.0014448504662141204, 0.04923994094133377, -0.02129599265754223, -0.013971974141895771, -0.03166229650378227, 0.03519285097718239, 0.03301442414522171, -0.006511804182082415, 0.01560579426586628, -0.06189734861254692, -0.07609467953443527, -0.024169262498617172, -0.027624696493148804, -0.0018439156701788306, -0.03793466091156006, 0.01891099289059639, 0.00840853713452816, 0.009446106851100922, -0.008507129736244678, -0.03814123570919037, -0.018366385251283646, 0.04293001815676689, -0.002298145554959774, -0.0015317058423534036, 0.016507212072610855, 0.013887466862797737, -0.04923994094133377, 0.05806632339954376, 0.15226447582244873, -0.011014197953045368, 0.0017887507565319538, 0.02247910387814045, -0.0006719552329741418, -0.020807726308703423, -0.062348056584596634, -0.0273805633187294, 0.03879852220416069, -0.0868365690112114, 0.057277582585811615, 0.03295808658003807, -0.02407536469399929, 0.01542738825082779, -0.007521204184740782, -0.03262005373835564, 0.003957787062972784, 0.06415089219808578, -0.029070721939206123, 0.002877963939681649, -0.02460119128227234, -0.002985946135595441, 0.0105916578322649, 0.012178529053926468, 0.06546545773744583, 0.049991123378276825, -0.02557772770524025, 0.06745608896017075, 0.02923973649740219, -0.059906717389822006, -0.004929628223180771, -0.005615081172436476, -0.06651711463928223, 0.011286500841379166, -0.05870482698082924, -0.030404068529605865, -0.07842334359884262, 0.01234754454344511, -0.03243225812911987, -0.00848365481942892, -0.03879852220416069, 0.017568254843354225, -0.03121158853173256, -0.012488391250371933, 0.015004849061369896, -0.017004869878292084, 0.03064820170402527, -0.001470672432333231, 0.02666694112122059, 0.08293043076992035, -0.04728687182068825, 0.012159748934209347, 0.005084559321403503, -0.009652681648731232, -0.00957286823540926, -0.008530603721737862, 0.024450955912470818, -0.03325855731964111, 0.006502414122223854, 0.016356974840164185, -0.036244504153728485, 0.02619745209813118, 0.015493117272853851, -0.03395340219140053, -0.06550302356481552, 0.002901438158005476, 0.028845366090536118, -0.05487380176782608, -0.0036995685659348965, -0.03921167179942131, 0.005873299669474363, 0.0038498048670589924, -0.0038897113408893347, 0.021727923303842545, -0.05051695182919502, -0.015774810686707497, -0.04139009490609169, -0.03782198578119278, 0.0620100274682045, -0.0051878467202186584, 0.07230120897293091, -0.08142806589603424, -0.053146086633205414, 0.016094062477350235, 0.06985986977815628, -0.030573083087801933, -0.02092040330171585, -0.03776564449071884, 0.03814123570919037, -0.07023546099662781, -0.0005833393079228699, -0.022234970703721046, -0.024713868275284767, 0.06366262584924698, 0.012225477956235409, -0.042967576533555984, 0.04003797098994255, 0.0014436767669394612, 0.05641372501850128, -0.005154982674866915, -0.022911032661795616, -0.054948922246694565, 0.0054695396684110165, -0.06317435950040817, 0.03218812495470047, -0.03936190530657768, 0.08706192672252655, 0.010000103153288364, -0.02593453787267208, 0.025183357298374176, -0.05761561542749405, 0.00292021781206131, -0.043117813766002655, -0.048751674592494965, 0.04003797098994255, -0.01805652305483818, 0.02227252908051014, 0.0836816132068634, -0.04878923296928406, -0.03245103731751442, 0.027530798688530922, -0.014835833571851254, -0.05059206858277321, -0.07042326033115387, 0.010122169740498066, -0.046573247760534286, -0.029540209099650383, 0.0029718615114688873, -0.012366323731839657, 0.06328703463077545, 0.036451078951358795, -0.061521757394075394, 0.04150277376174927, -0.005239490419626236, 0.0413525365293026, -0.0018439156701788306, 0.03725859895348549, -0.04646057263016701, -0.002816930413246155, -0.05983160063624382, 0.03538064658641815, -0.010112780146300793, -0.04266710579395294, -0.011098705232143402, 0.023962687700986862, 0.01852601207792759, 0.05513671785593033, 0.02764347568154335, -0.03483603894710541, -0.020281897857785225, 0.030911115929484367, -0.03519285097718239, 0.019756071269512177, 0.06313680112361908, 0.0015375744551420212, 0.026948632672429085, -0.026159893721342087, 0.008572857826948166, -0.03517407178878784, 0.016479043290019035, 0.019436819478869438, 0.016300637274980545, -0.05855459347367287, -0.024826545268297195, -0.03498627617955208, -0.039286788552999496, 0.009727799333631992, 0.018629299476742744, 0.006873310077935457, 0.06704293936491013, 0.0211833156645298, 0.003051674459129572, -0.0006467202329076827, 0.04056379571557045, 0.07102420181035995, -0.006577532272785902, 0.016291247680783272, 0.029371194541454315, 0.060319866985082626, -0.03224446251988411, 0.02150256745517254, 0.08848917484283447, 0.024150483310222626, 0.009718409739434719, -0.06159687787294388, -0.05904285982251167, 0.029540209099650383, -0.05224466696381569, 0.008324028924107552, 0.004230090416967869, 0.037483952939510345, 0.04277978092432022, -0.07064861059188843, -0.09337185323238373, 0.016751345247030258, -0.001244144281372428, 0.003269986715167761, -0.03032894991338253, -0.03404729813337326, -0.03295808658003807, 0.06813215464353561, -0.014901561662554741, 0.013859297148883343, -0.06317435950040817, 0.00032629442284815013, 0.024300718680024147, -0.004654977470636368, 0.007037630770355463, -0.0011385093675926328, 0.01056348904967308, -0.008375672623515129, 0.0024155178107321262, -0.004347462672740221, 0.02247910387814045, -0.022103512659668922, -0.028601232916116714, -0.019511938095092773, -0.054235298186540604, 0.0010986027773469687, 0.001413160003721714, -0.01643209345638752, 0.019925087690353394, 0.05844191461801529, -0.013192623853683472, 0.018075302243232727, 0.03215056657791138, 0.02790638990700245, 0.04480797052383423, 0.03352146968245506, -0.047662463039159775, -0.007436695974320173, -0.04093938693404198, 0.02862001210451126, -0.00420426856726408, 0.03286418691277504, -0.03752151131629944, 0.0098123075440526, 0.018741976469755173, 0.004312250763177872, -0.009314649738371372, 0.031080130487680435, 0.022234970703721046, 0.009047041647136211, 0.0012605763040482998, 0.04469529539346695, -0.03442288935184479, -0.054648447781801224, 0.023080049082636833, -0.024300718680024147, -0.012469612061977386, 0.0008990702917799354, -0.026310129091143608, -0.017446188256144524, 0.004645587410777807, 0.0030047257896512747, -0.002383827231824398, 0.0006420253776013851, 0.014817053452134132, 0.00997193343937397, -0.009178497828543186, 0.0020950918551534414, 0.027737373486161232, 0.006892089731991291, 0.014075261540710926, 0.016920361667871475, 0.06895845383405685, -0.021615246310830116, 0.04781269654631615, 0.07556885480880737, -0.0018450893694534898, 0.013962584547698498, 0.011098705232143402, 0.004863899666815996, -0.013868686743080616, 0.019605835899710655, -0.009061126038432121, -0.04405679181218147, -0.0016854633577167988, 0.0020317109301686287, 0.0021972055546939373, 0.03427265211939812, 0.03585013374686241, -0.014563529752194881, -0.03853560611605644, 0.07613223791122437, 0.014253667555749416, 0.025127017870545387, -0.026723278686404228, -0.0348735973238945, 0.028281981125473976, -0.03481725975871086, -0.01938048005104065, -0.005309913773089647, -0.001460108906030655, -0.03346513211727142, 0.029596548527479172, 0.09832964837551117, 0.033089540898799896, -0.025821860879659653, -0.07042326033115387, -0.018929772078990936, -0.040901828557252884, 0.04623521491885185, 0.00001171887015516404, 0.00017209684301633388, 0.06527766585350037, 0.033296115696430206, -0.06888333708047867, 0.009140938520431519, -0.07985058426856995, -0.014610478654503822, -0.009582257829606533, -0.007981302216649055, 0.01467620674520731, -0.0348735973238945, -0.019023669883608818, 0.05363435298204422, 0.06542789936065674, -0.04323049262166023, -0.007488339673727751, -0.03132426366209984, 0.04300513491034508, 0.026441585272550583, -0.06422600895166397, -0.03059186413884163, -0.029333634302020073, 0.031136469915509224, -0.02262934111058712, 0.04398167133331299, -0.014751325361430645, -0.04067647457122803, 0.016300637274980545, -0.0040563796646893024, 0.01699548028409481, 0.040638916194438934, 0.027004972100257874, -0.04142765700817108, -0.006413211580365896, -0.048751674592494965, 0.005460150074213743, -0.0005909685278311372, -0.02236642688512802, 0.048751674592494965, -0.04458261653780937, 0.022178631275892258, 0.005305218975991011, -0.04646057263016701, -0.008882720023393631, 0.05637616664171219, 0.05021647736430168, -0.06452648341655731, 0.0030399372335523367, 0.04589718580245972, 0.004539952613413334, -0.03842293098568916, 0.05085498094558716, 0.02938997372984886, 0.0027394648641347885, -0.004403801169246435, -0.025502609089016914, -0.017483748495578766, 0.034385330975055695, 0.008145623840391636, -0.039662379771471024, -0.025333592668175697, 0.014788884669542313, -0.019568275660276413, 0.02779371291399002, 0.053033407777547836, -0.0012300595408305526, 0.0010809970553964376, 0.005201931577175856, 0.017896898090839386, 0.005798181518912315, -0.020601149648427963, -0.01596260443329811, 0.0038568470627069473, -0.032526154071092606, 0.008751263841986656, -0.04330560937523842, -0.021840600296854973, 0.0800759419798851, -0.05532451346516609, 0.029690446332097054, -0.006370957475155592, -0.005018830765038729, -0.04221639782190323, -0.036713991314172745, 0.02867635153234005, -0.02578430250287056, 0.016281858086586, 0.02133355289697647, -0.018807705491781235, -0.013295911252498627, 0.014995459467172623, 0.028150523081421852, 0.007511814124882221, -0.052207108587026596, 0.04878923296928406, -0.056864432990550995, 0.029521429911255836, 0.04507088661193848, -0.0026549568865448236, -0.03132426366209984, 0.029540209099650383, 0.059193097054958344, -0.008051726035773754, -0.03607548773288727, -0.013493096455931664, 0.0027770239394158125, -0.00759632233530283, 0.02097674086689949, -0.07466743141412735, 0.017145715653896332, -0.056338608264923096, 0.023850010707974434, 0.00563386082649231, -0.002328662434592843, 0.007446086034178734, -0.06783168017864227, 0.004436665214598179, 0.028450995683670044, 0.015258372761309147, 0.03800978139042854, 0.1261233538389206, -0.04954041540622711, -0.010009492747485638, -0.0006608049152418971, -0.001602129079401493, -0.01648843288421631, 0.004981271922588348, -0.036563754081726074, -0.021108198910951614, 0.01932414248585701, 0.02339930087327957, 0.04165301099419594, -0.010910910554230213, -0.03436655178666115, 0.05419773980975151, -0.024713868275284767, 0.011709040030837059, -0.026272570714354515, -0.0004756504204124212, -0.03772808611392975, -0.031023792922496796, -0.04706151783466339, 0.06276120990514755, -0.0014108126051723957, 0.008713704533874989, -0.007694914937019348, 0.03337123617529869, -0.06584104895591736, 0.019868748262524605, -0.01159636303782463, 0.007511814124882221, 0.007924963720142841, -0.04871411621570587, 0.003835720242932439, -0.0005399116198532283, 0.04706151783466339, -0.0003744169953279197, -0.044657737016677856, -0.05119301378726959, 0.042967576533555984, 0.07737168669700623, 0.011117485351860523, 0.00020408073032740504, -0.04217883571982384, -0.10103390365839005, -0.005093948915600777, 0.03292052447795868, -0.02469508908689022, -0.03569989651441574, 0.004385021515190601, 0.05198175460100174, 0.020788945257663727, 0.03461068496108055, 0.06422600895166397, 0.03121158853173256, -0.0039812615141272545, 0.003910838160663843, 0.05472356826066971, -0.0008450790774077177, 0.042854901403188705, -0.04886435344815254, -0.028169304132461548, 0.036920566111803055, 0.01384990755468607, -0.020131662487983704, -0.008939058519899845, 0.00018163332424592227, -0.0294463112950325, 0.009525919333100319, 0.003873279318213463, 0.030629422515630722, 0.04274222254753113, 0.0035657642874866724, 0.0017218486173078418 ]
718,612
pluginlib._util
__init__
null
def __init__(self, func): super(abstractstaticmethod, self).__init__(abstractmethod(func))
(self, func)
[ -0.02435172349214554, -0.05318691208958626, 0.019615160301327705, 0.046244774013757706, -0.07571271061897278, -0.01115442719310522, 0.013233453035354614, 0.03415026515722275, 0.01768980175256729, 0.009030205197632313, 0.03471069782972336, 0.06298545002937317, 0.0198140237480402, 0.01076573971658945, -0.06168380379676819, 0.019325904548168182, 0.004164831712841988, 0.07216932624578476, -0.05962285399436951, -0.052210673689842224, -0.05217451602220535, -0.007226875517517328, 0.040025774389505386, -0.005075535736978054, 0.02174842171370983, 0.09342962503433228, -0.03700666502118111, 0.014489908702671528, 0.06797511875629425, 0.0002821939124260098, -0.041797466576099396, 0.0013931734720245004, 0.004490244667977095, 0.0904647558927536, 0.02675616182386875, -0.004628092981874943, -0.023628585040569305, 0.047546423971652985, -0.08735525608062744, 0.03763941302895546, 0.023881683126091957, -0.009744305163621902, 0.031492725014686584, -0.04772720858454704, 0.021730342879891396, -0.020175592973828316, 0.03107692115008831, -0.006006577517837286, -0.003708350006490946, -0.010485523380339146, -0.022995837032794952, -0.016351992264389992, 0.04071275517344475, -0.02006712183356285, -0.01493283174932003, 0.11534075438976288, 0.03413218632340431, 0.022164227440953255, -0.032703984528779984, 0.014200652949512005, -0.03613889962434769, 0.015592696145176888, 0.019868258386850357, 0.014761085622012615, -0.01486955676227808, -0.026123415678739548, -0.10203498601913452, -0.02818436361849308, 0.054271623492240906, 0.03716937080025673, 0.03443951904773712, 0.04566626250743866, 0.03440336510539055, 0.0024179979227483273, 0.0712292417883873, 0.009346578270196915, -0.04584704712033272, -0.010865171439945698, 0.0151949692517519, -0.026340357959270477, -0.007950015366077423, -0.042918331921100616, -0.05018588528037071, 0.023773211985826492, -0.014797242358326912, -0.061141446232795715, -0.03785635530948639, -0.07629121840000153, 0.0294317789375782, 0.0020134916994720697, -0.07715898752212524, -0.01891009882092476, -0.04299064353108406, 0.02071794681251049, -0.021603792905807495, -0.017725957557559013, 0.013215375132858753, -0.0420505627989769, -0.0034981875214725733, -0.01804233156144619, 0.026358436793088913, 0.014878596179187298, -0.039555732160806656, -0.060056738555431366, 0.028238598257303238, 0.0007672058418393135, -0.03322826325893402, -0.02270658127963543, -0.04450923949480057, 0.01752709411084652, -0.021350694820284843, 0.013179218396544456, -0.03872412070631981, 0.03389716520905495, -0.06276851147413254, 0.01418257411569357, 0.008876537904143333, -0.024785608053207397, 0.04270138964056969, 0.0044111511670053005, 0.0009971415856853127, 0.03434912860393524, -0.09003087133169174, 0.012727255932986736, 0.010630151256918907, 0.00743477838113904, 0.004092517774552107, 0.038868751376867294, 0.030805744230747223, -0.03570501506328583, 0.04826956242322922, 0.027913186699151993, -0.028907502070069313, -0.014037946239113808, -0.02326701395213604, -0.003995345905423164, 0.034764934331178665, 0.026882711797952652, -0.07184391468763351, 0.02124222368001938, -0.010612072423100471, 0.006738756317645311, 0.042846016585826874, 0.06211768463253975, -0.04233982041478157, 0.0668904036283493, -0.03767557069659233, -0.02059139870107174, 0.01644238457083702, -0.003272206289693713, 0.08070237189531326, 0.007705955766141415, -0.037964824587106705, -0.0055139390751719475, 0.0034936678130179644, -0.07614659518003464, 0.026014944538474083, -0.016288718208670616, 0.011127309873700142, -0.03151080384850502, -0.015213048085570335, -0.021983440965414047, -0.0027027339674532413, -0.05944206938147545, -0.018982412293553352, 0.013052668422460556, -0.017301112413406372, -0.06443173438310623, -0.010539758950471878, 0.009265225380659103, -0.05651335418224335, -0.052499931305646896, -0.06237078458070755, 0.012808608822524548, 0.04986046999692917, -0.01743670180439949, -0.004596455488353968, 0.03782019764184952, -0.021477244794368744, 0.0693129226565361, 0.06656499207019806, -0.04996894299983978, -0.06877057254314423, 0.0037106096278876066, 0.04349684342741966, 0.03944726288318634, 0.020175592973828316, 0.02870863862335682, 0.0015750882448628545, 0.014950909651815891, -0.0081398393958807, 0.0151949692517519, -0.020537162199616432, -0.014616457745432854, 0.017319191247224808, -0.014345280826091766, -0.005197565536946058, 0.04121895506978035, -0.027298517525196075, 0.04971584305167198, 0.002698214491829276, 0.060273680835962296, 0.013848122209310532, -0.025111019611358643, 0.006887903902679682, 0.012040273286402225, 0.02162187173962593, 0.01396563183516264, -0.08749988675117493, -0.02964872121810913, 0.012112586759030819, -0.039555732160806656, 0.00014145004388410598, 0.034891482442617416, 0.018801627680659294, -0.04870344698429108, 0.05260840058326721, -0.006160244811326265, 0.020916810259222984, 0.04168899357318878, 0.061611488461494446, 0.020265985280275345, -0.019145119935274124, -0.012718216516077518, -0.027135811746120453, 0.030064526945352554, 0.04186977818608284, -0.06696271896362305, -0.04259291663765907, -0.026304200291633606, -0.04212287813425064, -0.023068150505423546, 0.023194700479507446, -0.009373696520924568, 0.004628092981874943, 0.011226741597056389, 0.05383773893117905, -0.010006443597376347, -0.05817657709121704, -0.04342452809214592, -0.01393851451575756, 0.036970507353544235, 0.01396563183516264, 0.024876000359654427, -0.011995077133178711, 0.023248935118317604, -0.01925358921289444, 0.05651335418224335, -0.025436433032155037, -0.005052937660366297, 0.022471560165286064, -0.03807329759001732, -0.08337798714637756, -0.02348395623266697, -0.01878354884684086, -0.02118798904120922, -0.023990154266357422, 0.03333673253655434, 0.011895645409822464, 0.025526825338602066, 0.001037818263284862, -0.030154919251799583, -0.011082113720476627, 0.03151080384850502, -0.01834966614842415, 0.009473128244280815, -0.014589340426027775, 0.001845135702751577, -0.048884231597185135, 0.04649787023663521, 0.16357415914535522, -0.03328249603509903, 0.01881970651447773, 0.058718930929899216, -0.027985500171780586, -0.010955563746392727, -0.07477262616157532, -0.0479079931974411, -0.00035592023050412536, -0.05304228514432907, 0.04143589362502098, 0.043099116533994675, -0.017075132578611374, 0.0403873436152935, -0.024189017713069916, -0.009961247444152832, 0.04143589362502098, 0.020482927560806274, -0.015773480758070946, -0.033083632588386536, 0.007068688981235027, 0.009662952274084091, 0.023158542811870575, 0.05322306975722313, 0.055573273450136185, 0.021169910207390785, -0.003898174036294222, 0.05105365067720413, 0.024659058079123497, -0.05325922742486, -0.005635968875139952, -0.04812493547797203, -0.08084700256586075, 0.021332615986466408, 0.002585223875939846, -0.046244774013757706, -0.07357944548130035, 0.04429229721426964, -0.009662952274084091, 0.006978296674787998, -0.015339597128331661, 0.03948341682553291, -0.032866690307855606, 0.01722879894077778, 0.03480108827352524, 0.03250512108206749, 0.0017615227261558175, 0.0028677002992480993, 0.02809397131204605, 0.07021684944629669, -0.02684655599296093, 0.012031233869493008, -0.009436970576643944, 0.008713831193745136, -0.005274399183690548, 0.018358705565333366, -0.010892288759350777, -0.035542309284210205, -0.018150802701711655, 0.03353559598326683, -0.045123908668756485, 0.03214355185627937, 0.04215903580188751, -0.030498409643769264, -0.06696271896362305, 0.002334384713321924, 0.0011135218665003777, -0.022091912105679512, 0.00017414668400306255, -0.0632023960351944, 0.026177650317549706, -0.0024880520068109035, -0.015176891349256039, 0.015176891349256039, 0.007873181253671646, -0.0032518680673092604, -0.039953459054231644, -0.0058935871347785, 0.045123908668756485, -0.010096835903823376, 0.04584704712033272, -0.11280976980924606, -0.014905713498592377, 0.012727255932986736, 0.0374586284160614, 0.045340847223997116, -0.03324633836746216, -0.006761354859918356, 0.03418642282485962, -0.09646681696176529, 0.026557300239801407, -0.043099116533994675, -0.04613630101084709, 0.037314001470804214, 0.0556817427277565, -0.017879625782370567, 0.01387523952871561, -0.006078891921788454, 0.03572309389710426, -0.023068150505423546, 0.018711235374212265, -0.09335731714963913, -0.010069717653095722, -0.023809369653463364, 0.013350963592529297, -0.03447567671537399, 0.043099116533994675, 0.004948986228555441, 0.009265225380659103, 0.04201440513134003, -0.008302546106278896, -0.014209691435098648, -0.017156485468149185, -0.03883259370923042, 0.02503870613873005, -0.03763941302895546, 0.036843959242105484, 0.09039244055747986, 0.019579002633690834, 0.014218730852007866, 0.019488610327243805, 0.01100979931652546, -0.05394620820879936, -0.06548028439283371, 0.03763941302895546, -0.03369830176234245, 0.018421979621052742, -0.001396563253365457, -0.0037196490447968245, 0.040206559002399445, 0.022326933220028877, -0.03187237307429314, 0.0527530275285244, 0.017753075808286667, 0.05235530063509941, 0.016812993213534355, 0.022543875500559807, -0.0015479705762118101, 0.008600841276347637, -0.025798002257943153, 0.00720879714936018, -0.003864276921376586, -0.05174063518643379, -0.040857382118701935, -0.006020136643201113, 0.0009705888223834336, 0.033390969038009644, 0.016496621072292328, 0.017680762335658073, -0.01816888153553009, 0.037314001470804214, 0.016044657677412033, 0.0012858324917033315, 0.06754123419523239, 0.0003276726056355983, 0.03923032060265541, -0.02503870613873005, 0.0048947506584227085, -0.0064178635366261005, 0.016415268182754517, -0.01851237192749977, 0.054018523544073105, -0.06385321915149689, -0.013721572235226631, -0.0031840738374739885, -0.02982950583100319, -0.03521689400076866, 0.0017038974910974503, -0.01925358921289444, 0.0770866721868515, 0.021784577518701553, -0.008153398521244526, -0.004682328552007675, 0.015204008668661118, 0.0303899385035038, -0.03691627457737923, 0.0058031948283314705, 0.05174063518643379, 0.031221549957990646, -0.024622900411486626, 0.01721975952386856, 0.06576953828334808, 0.011335211805999279, 0.026340357959270477, -0.04794415086507797, -0.025960709899663925, 0.014987066388130188, -0.03948341682553291, 0.016939543187618256, 0.03660893812775612, 0.004047321621328592, 0.02926907315850258, -0.06360012292861938, -0.09053707122802734, -0.0151949692517519, 0.05698339641094208, 0.006942139472812414, -0.021097596734762192, -0.025273727253079414, -0.031094999983906746, 0.040857382118701935, -0.009355617687106133, -0.026249965652823448, -0.08048543334007263, -0.005107172764837742, 0.020772183313965797, -0.006521814502775669, -0.017807310447096825, 0.008126280270516872, 0.00032682516030035913, -0.020211750641465187, -0.00009208729898091406, -0.0013988229911774397, 0.04942658543586731, -0.025562983006238937, -0.00953640230000019, -0.008270908147096634, -0.019398218020796776, 0.0004110031295567751, -0.0003047920181415975, -0.04295448958873749, 0.05278918519616127, 0.04194209352135658, 0.008971449919044971, 0.016650287434458733, 0.01480628177523613, -0.03639199584722519, 0.050258196890354156, -0.010747660882771015, -0.06858978420495987, -0.02563529647886753, 0.010693426243960857, -0.022507717832922935, 0.011064034886658192, -0.01721975952386856, -0.019488610327243805, -0.035542309284210205, -0.018503332510590553, -0.0153215192258358, -0.015655970200896263, 0.044906966388225555, 0.02939562126994133, -0.06660114973783493, -0.02149532176554203, 0.023574348539114, -0.01614408940076828, -0.06725197285413742, -0.01364021934568882, -0.046895597130060196, -0.0014993846416473389, 0.04526853561401367, -0.013974671252071857, -0.029449857771396637, -0.006761354859918356, 0.006472098641097546, -0.0481610931456089, -0.00921550951898098, 0.011606389656662941, 0.03505418822169304, -0.004858593922108412, -0.010105875320732594, 0.000510152371134609, -0.007127443794161081, 0.030679194256663322, 0.030317625030875206, 0.07028916478157043, -0.01869315654039383, 0.006639325059950352, 0.05054745450615883, 0.00008177691051969305, 0.00048840168165043, 0.021477244794368744, 0.0037196490447968245, -0.014227770268917084, 0.00017796011525206268, -0.04403919726610184, -0.04215903580188751, -0.0027501899749040604, -0.015384793281555176, -0.010865171439945698, 0.02408054657280445, 0.013043629005551338, 0.01661413162946701, 0.03948341682553291, 0.05955054238438606, -0.019271668046712875, 0.030444175004959106, -0.0006293573533184826, -0.040640443563461304, 0.04501543566584587, -0.013540787622332573, 0.024550586938858032, -0.0036473351065069437, 0.023031994700431824, -0.03633776307106018, 0.011642546392977238, 0.06609494984149933, 0.05651335418224335, 0.009382735006511211, -0.08185939490795135, -0.0022146147675812244, -0.03431297093629837, 0.01516785193234682, 0.021007202565670013, -0.00735794473439455, 0.06529950350522995, 0.012112586759030819, -0.08439038693904877, 0.015863873064517975, -0.09299574047327042, -0.019976729527115822, -0.015204008668661118, -0.019651316106319427, 0.001111262128688395, -0.04747410863637924, -0.01834062673151493, 0.05076439678668976, 0.04060428589582443, -0.03534344583749771, -0.047076381742954254, -0.028600169345736504, 0.0265030637383461, -0.02413478121161461, -0.04364147037267685, -0.03604850545525551, -0.036880116909742355, 0.022598110139369965, -0.02420709654688835, 0.0022552914451807737, -0.017635565251111984, -0.06331086903810501, 0.05105365067720413, -0.0007265292224474251, 0.015402872115373611, 0.019669394940137863, 0.029341386631131172, -0.06482946127653122, 0.0366993322968483, -0.03536152467131615, 0.027822794392704964, 0.03176390379667282, -0.01838582195341587, 0.06580569595098495, -0.05018588528037071, 0.027425067499279976, 0.0017445741686969995, -0.06775817275047302, 0.03810945153236389, 0.0527530275285244, 0.05318691208958626, -0.08851227909326553, -0.015466147102415562, 0.01301651168614626, 0.034547992050647736, -0.0551755465567112, 0.056007158011198044, 0.05636872723698616, -0.01869315654039383, 0.01614408940076828, -0.04248444736003876, -0.003699310589581728, 0.025960709899663925, 0.004266523290425539, -0.033644065260887146, -0.003925291821360588, -0.03055264614522457, 0.006887903902679682, 0.033553674817085266, 0.02585223875939846, 0.036880116909742355, 0.009265225380659103, 0.02097104676067829, 0.014200652949512005, -0.05571790039539337, -0.0015140733448788524, -0.005676645319908857, 0.00882682204246521, -0.02498447149991989, 0.02939562126994133, -0.013179218396544456, -0.01773499697446823, 0.028997894376516342, -0.04794415086507797, 0.05239145830273628, 0.0037580658681690693, -0.028762875124812126, -0.006237078458070755, -0.02451442927122116, 0.062009215354919434, 0.006219000089913607, -0.013911397196352482, 0.027786636725068092, 0.003319662529975176, 0.0021400409750640392, 0.003077862551435828, 0.011407526209950447, -0.008076564408838749, -0.05969516932964325, 0.024460194632411003, -0.025671454146504402, 0.04280985891819, 0.019795944914221764, 0.00720879714936018, -0.011027878150343895, 0.021676108241081238, 0.044183824211359024, -0.01825927384197712, -0.050692081451416016, 0.02192920632660389, 0.019362060353159904, -0.009210989810526371, 0.022995837032794952, -0.06660114973783493, -0.022037677466869354, -0.03116731345653534, 0.023990154266357422, -0.03055264614522457, 0.03279437869787216, 0.025183334946632385, -0.08952467143535614, -0.03389716520905495, -0.0198140237480402, -0.020446769893169403, 0.03592195734381676, 0.05159600451588631, -0.02961256355047226, -0.04458155110478401, -0.04092969745397568, 0.03782019764184952, 0.013477512635290623, 0.009418892674148083, -0.021260302513837814, -0.03297516331076622, 0.025364119559526443, 0.03639199584722519, 0.002028180519118905, -0.01894625648856163, -0.0012858324917033315, 0.043786097317934036, -0.03469261899590492, 0.01277245208621025, -0.01645142398774624, 0.00698281591758132, -0.03592195734381676, 0.006454020272940397, -0.017273996025323868, 0.07307325303554535, 0.013595023192465305, -0.019651316106319427, -0.030317625030875206, 0.011271937750279903, -0.08034080266952515, 0.043352216482162476, -0.020428691059350967, 0.06591416895389557, -0.015909070149064064, -0.03700666502118111, 0.024894079193472862, -0.006196402013301849, 0.04053197056055069, 0.010223384946584702, -0.026430750265717506, -0.02870863862335682, 0.026448829099535942, 0.01740054413676262, -0.025888394564390182, -0.004863113164901733, -0.002338904421776533, -0.08467964082956314, 0.032866690307855606, -0.014752046205103397, -0.04327990114688873, -0.027009261772036552, 0.03792866691946983, 0.06790280342102051, 0.014218730852007866, 0.05239145830273628, 0.029757192358374596, 0.0454854778945446, 0.0051885261200368404, -0.010160110890865326, 0.05683876574039459, 0.023972075432538986, 0.07911146432161331, -0.029250994324684143, -0.03639199584722519, 0.010792857967317104, 0.006350068841129541, -0.0024089585058391094, -0.01639718934893608, -0.03825408220291138, -0.057815004140138626, 0.02019367180764675, -0.00698281591758132, 0.028328990563750267, 0.05900818482041359, 0.037964824587106705, 0.019235512241721153 ]
718,614
autopage
AutoPager
A context manager that launches a pager for the output if appropriate. If the output stream is not to the console (i.e. it is piped or redirected), no pager will be launched.
class AutoPager: """ A context manager that launches a pager for the output if appropriate. If the output stream is not to the console (i.e. it is piped or redirected), no pager will be launched. """ def __init__(self, output_stream: Optional[TextIO] = None, *, pager_command: command.CommandType = command.DefaultPager(), allow_color: bool = True, line_buffering: Optional[bool] = None, reset_on_exit: bool = False, errors: Optional[ErrorStrategy] = None): self._use_stdout = output_stream is None or output_stream is sys.stdout self._out = sys.stdout if output_stream is None else output_stream self._tty = (not self._out.closed) and self._out.isatty() self._command = command.get_pager_command(pager_command) self._config = command.PagerConfig( color=allow_color, line_buffering_requested=bool(line_buffering), reset_terminal=reset_on_exit, ) self._set_line_buffering = line_buffering self._set_errors = (ErrorStrategy(errors) if errors is not None else None) self._pager: Optional[subprocess.Popen] = None self._exit_code = 0 def to_terminal(self) -> bool: """Return whether the output stream is a terminal.""" return self._tty def __enter__(self) -> TextIO: # Only invoke the pager if the output is going to a tty; if it is # being sent to a file or pipe then we don't want the pager involved if self.to_terminal() and self._command.command() != ['cat']: try: return self._paged_stream() except OSError: pass self._reconfigure_output_stream() return self._out def _line_buffering(self) -> bool: if self._set_line_buffering is None: return getattr(self._out, 'line_buffering', self._tty) return self._set_line_buffering def _encoding(self) -> str: return getattr(self._out, 'encoding', 'ascii') def _errors(self) -> str: if self._set_errors is None: return getattr(self._out, 'errors', ErrorStrategy.STRICT.value) return self._set_errors.value def _reconfigure_output_stream(self) -> None: if self._set_line_buffering is None and self._set_errors is None: return if not isinstance(self._out, io.TextIOWrapper): return # Python 3.7 & later if hasattr(self._out, 'reconfigure'): self._out.reconfigure(line_buffering=self._set_line_buffering, errors=(self._set_errors.value if self._set_errors is not None else None)) # Python 3.6 elif (self._out.line_buffering != self._line_buffering() or self._out.errors != self._errors()): # Pure-python I/O if (hasattr(self._out, '_line_buffering') and hasattr(self._out, '_errors')): py_out = typing.cast(Any, self._out) py_out._line_buffering = self._line_buffering() py_out._errors = self._errors() py_out.flush() # Native C I/O else: encoding = self._encoding() errors = self._errors() line_buffering = self._line_buffering() try: if self._use_stdout: sys.stdout = typing.cast(TextIO, None) newstream = io.TextIOWrapper( self._out.detach(), line_buffering=line_buffering, encoding=encoding, errors=errors) self._out = newstream finally: if self._use_stdout: sys.stdout = self._out def _pager_env(self) -> Optional[Dict[str, str]]: new_vars = self._command.environment_variables(self._config) if not new_vars: return None env = dict(os.environ) env.update(new_vars) return env def _pager_out_stream(self) -> Optional[TextIO]: if not self._use_stdout: try: # Ensure the output stream has a file descriptor self._out.fileno() except OSError: pass else: return self._out return None def _paged_stream(self) -> TextIO: buffer_size = 1 if self._line_buffering() else -1 self._pager = subprocess.Popen(self._command.command(), env=self._pager_env(), bufsize=buffer_size, universal_newlines=True, encoding=self._encoding(), errors=self._errors(), stdin=subprocess.PIPE, stdout=self._pager_out_stream()) assert self._pager.stdin is not None return typing.cast(TextIO, self._pager.stdin) def __exit__(self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException], traceback: Optional[types.TracebackType]) -> bool: if self._pager is not None: # Pager ignores Ctrl-C, so we should too with _sigint_ignore(): pager_in = self._pager.stdin assert pager_in is not None try: pager_in.close() except BrokenPipeError: # Other end of pipe already closed self._exit_code = _signal_exit_code(signal.SIGPIPE) # Wait for user to exit pager self._pager.wait() else: self._flush_output() return self._process_exception(exc) def _flush_output(self) -> None: try: if not self._out.closed: self._out.flush() except BrokenPipeError: self._exit_code = _signal_exit_code(signal.SIGPIPE) try: # Other end of pipe already closed, so close the stream now # and handle the error. If we leave the stream open with # unflushed data, then it will print an unhandleable # exception during Python's interpreter shutdown. self._out.close() except BrokenPipeError: # This will always happen pass def _process_exception(self, exc: Optional[BaseException]) -> bool: if exc is not None: if isinstance(exc, BrokenPipeError): self._exit_code = _signal_exit_code(signal.SIGPIPE) # Suppress exceptions caused by a broken pipe (indicating that # the user has exited the pager, or the following process in # the pipeline has exited) return True elif isinstance(exc, KeyboardInterrupt): self._exit_code = _signal_exit_code(signal.SIGINT) elif isinstance(exc, SystemExit) and isinstance(exc.code, int): self._exit_code = exc.code else: self._exit_code = 1 return False def exit_code(self) -> int: """ Return an appropriate exit code for the process based on any errors. If the user exits the program prematurely by closing the pager, we may want to return a different exit code for the process. This method returns an appropriate exit code on the basis of the existence and type of any uncaught exceptions. """ return self._exit_code
(output_stream: Optional[TextIO] = None, *, pager_command: Union[autopage.command.PagerCommand, Callable[[], autopage.command.PagerCommand], str, Sequence[str]] = <autopage.command.Less object at 0x7f2fc8e3abf0>, allow_color: bool = True, line_buffering: Optional[bool] = None, reset_on_exit: bool = False, errors: Optional[autopage.ErrorStrategy] = None)
[ 0.013201670721173286, -0.06399019807577133, -0.08584531396627426, 0.013319806195795536, 0.024139072746038437, 0.024080004543066025, 0.027742212638258934, -0.023627150803804398, 0.0014656216371804476, -0.0819862112402916, 0.05772900581359863, 0.010494392365217209, 0.023272743448615074, 0.035637617111206055, -0.030341198667883873, 0.043040793389081955, 0.024257207289338112, -0.0017818809719756246, 0.02472975105047226, 0.00893893837928772, -0.02181573584675789, 0.024670682847499847, 0.015081997960805893, -0.03886666148900986, -0.055366288870573044, -0.006782961077988148, -0.04402525722980499, -0.057532113045454025, 0.0033496408723294735, 0.010760198347270489, -0.01787787675857544, -0.0463092140853405, -0.020161835476756096, -0.009573918767273426, 0.004769730847328901, -0.009224433451890945, -0.035165075212717056, 0.04115062206983566, 0.011508391238749027, 0.03049871325492859, -0.015328113920986652, -0.03792157769203186, -0.02447379007935524, -0.011163828894495964, -0.016036927700042725, 0.02579297311604023, -0.030183684080839157, 0.018271662294864655, 0.011488702148199081, -0.047254301607608795, 0.022189833223819733, 0.009455782361328602, 0.0405205637216568, 0.006930630654096603, 0.04784497991204262, 0.005434244871139526, 0.010484548285603523, 0.009377025067806244, -0.02996710315346718, -0.091673344373703, -0.06430523097515106, 0.02683650515973568, -0.007536076474934816, 0.019777894020080566, 0.005513001699000597, -0.048317521810531616, -0.0004943858366459608, -0.026403341442346573, -0.021225057542324066, 0.007910173386335373, -0.02925828844308853, -0.025852041319012642, -0.04185943678021431, 0.010740509256720543, 0.0023971712216734886, 0.012876797467470169, -0.02528105117380619, 0.038591012358665466, 0.012689748778939247, 0.03209354728460312, 0.0632026270031929, 0.08119864016771317, 0.01155761443078518, 0.014540541917085648, 0.045403506606817245, -0.027427183464169502, 0.03528321161866188, 0.005739428568631411, 0.018478401005268097, 0.014924483373761177, -0.02998679131269455, 0.005611448083072901, 0.01866544969379902, 0.0557994544506073, 0.03638581186532974, -0.009509928524494171, -0.00012375027290545404, 0.025103848427534103, -0.0662347823381424, -0.05284605920314789, -0.03662208467721939, 0.060682397335767746, 0.018409488722682, -0.044891584664583206, 0.00658114580437541, 0.014117222279310226, 0.01685403473675251, 0.07395298033952713, 0.03807909041643143, -0.03258577734231949, -0.029908034950494766, -0.03475160151720047, -0.008545152842998505, -0.07214156538248062, -0.013624990358948708, 0.015229667536914349, -0.07395298033952713, 0.008604221045970917, 0.0030789130832999945, -0.02102816477417946, -0.03902417793869972, 0.024257207289338112, -0.004363639280200005, -0.0004728506610263139, -0.02181573584675789, 0.004983852151781321, 0.00811691116541624, -0.00238363491371274, 0.019610535353422165, 0.049065716564655304, -0.01210891455411911, 0.014845726080238819, 0.02766345627605915, -0.01751362532377243, 0.024591926485300064, -0.009967704303562641, -0.09190961718559265, 0.06150934845209122, -0.0442221499979496, 0.02185511402785778, 0.0239618681371212, -0.011774196289479733, -0.04532475024461746, -0.013703747652471066, -0.017119839787483215, -0.00013159522495698184, 0.08978316932916641, -0.017907410860061646, 0.029317356646060944, 0.00881095789372921, 0.013920329511165619, -0.0233908798545599, -0.044104013592004776, 0.07509496062994003, 0.06970009207725525, 0.03360962122678757, -0.04205632954835892, -0.008451628498733044, -0.026403341442346573, 0.012000623159110546, -0.0069503202103078365, -0.049105096608400345, 0.043788984417915344, 0.0024771590251475573, -0.038827285170555115, 0.04390712082386017, -0.02868729829788208, -0.0022938025649636984, 0.0557994544506073, 0.017267508432269096, 0.043277062475681305, 0.02998679131269455, 0.0070290775038301945, -0.004626983776688576, -0.03742934390902519, 0.07706388831138611, 0.04103248566389084, 0.0442221499979496, -0.05071961507201195, -0.02181573584675789, -0.01830119639635086, -0.05123153701424599, -0.014914639294147491, -0.005901865195482969, 0.00006333645433187485, -0.0036572860553860664, 0.05847719684243202, -0.017927100881934166, 0.012758661061525345, 0.00048115706886164844, -0.04894758015871048, 0.008259657770395279, 0.0430801697075367, 0.014018775895237923, -0.0033471796195954084, 0.022052006796002388, -0.042765144258737564, -0.019738515838980675, 0.0963200181722641, 0.0008417172357439995, -0.05477561056613922, 0.054578717797994614, 0.026462409645318985, -0.03465315327048302, -0.027545319870114326, 0.0252416729927063, -0.027978483587503433, 0.018675293773412704, -0.03221168369054794, 0.0331173911690712, -0.017868032678961754, -0.060643021017313004, -0.011537925340235233, 0.04682113602757454, 0.018507935106754303, 0.015377337113022804, 0.06540782749652863, 0.0008349490235559642, -0.006822339724749327, 0.02077220380306244, 0.06257256865501404, -0.01943333074450493, -0.04571853578090668, 0.02029966004192829, 0.014127067290246487, -0.009770811535418034, 0.014865415170788765, 0.00915059819817543, 0.06639229506254196, 0.02681681513786316, 0.01846855692565441, 0.019157681614160538, -0.047490574419498444, 0.05843782052397728, 0.010523926466703415, -0.04394650086760521, -0.028510095551609993, -0.023568082600831985, -0.11679688096046448, 0.0075803776271641254, -0.06032799184322357, -0.011596993543207645, 0.012788195163011551, 0.012305807322263718, -0.04016615450382233, 0.012561768293380737, -0.0014631605008617043, 0.02134319208562374, 0.004009231925010681, 0.006994620896875858, 0.04268638417124748, -0.01354623306542635, -0.016381490975618362, -0.08364011347293854, -0.02845102734863758, -0.009696976281702518, -0.042253222316503525, -0.025182604789733887, 0.026167068630456924, 0.04875068739056587, 0.008998006582260132, -0.0101301409304142, -0.047766223549842834, -0.009111220017075539, 0.06107618287205696, -0.02011261135339737, 0.00182618189137429, -0.060918670147657394, 0.023272743448615074, 0.04158378392457962, 0.026777436956763268, 0.022032318636775017, -0.06564410030841827, 0.03105001337826252, -0.06450212001800537, 0.06324200332164764, 0.00446946918964386, -0.022839579731225967, -0.00991848111152649, -0.015318268910050392, 0.050680238753557205, 0.03693711385130882, 0.004587605129927397, -0.04973515123128891, -0.0018028008053079247, -0.011626526713371277, -0.01883280836045742, 0.006718970835208893, -0.015436405315995216, -0.008756812661886215, 0.016519315540790558, 0.00797908566892147, 0.0032585777807980776, -0.022977404296398163, 0.000820182089228183, 0.02128412574529648, -0.10632217675447464, -0.059382904320955276, -0.05453933775424957, -0.08923187106847763, -0.018734361976385117, -0.057807762175798416, 0.024946333840489388, 0.059343528002500534, -0.03219199180603027, 0.0780089721083641, 0.013743125833570957, -0.0710783451795578, -0.001516075455583632, -0.046702999621629715, 0.01130165345966816, 0.06182437762618065, 0.0028574084863066673, 0.010179364122450352, -0.036208607256412506, -0.010592838749289513, 0.037212762981653214, 0.02998679131269455, -0.012935864739120007, 0.028726676478981972, -0.07123585790395737, -0.006664825603365898, 0.06399019807577133, -0.0313650406897068, 0.052806682884693146, 0.03770499303936958, 0.05320046842098236, 0.0421350859105587, 0.007757581304758787, -0.0036671306006610394, -0.044300906360149384, 0.040678076446056366, -0.04819938912987709, 0.03916200250387192, -0.014195979572832584, -0.014973706565797329, -0.0442221499979496, -0.046191077679395676, 0.005045380908995867, -0.09568995982408524, 0.02370590716600418, 0.032507020980119705, -0.004154440481215715, -0.035401348024606705, 0.029789898544549942, -0.040953729301691055, 0.03851225599646568, 0.0004620830877684057, 0.030872810631990433, 0.03053809143602848, 0.04390712082386017, 0.054618097841739655, -0.005394866224378347, -0.006773116532713175, 0.0028204910922795534, -0.05501188337802887, 0.028017863631248474, -0.03522414341568947, 0.0018089537043124437, -0.012433787807822227, 0.00375573243945837, 0.03888635337352753, -0.005119216162711382, 0.01199077907949686, -0.02762407623231411, -0.049892667680978775, 0.01996494270861149, 0.005335798021405935, 0.04922322928905487, 0.08584531396627426, -0.004732813686132431, 0.02285926789045334, 0.015013085678219795, -0.05182221531867981, -0.02628520503640175, 0.01930535025894642, -0.004951857030391693, -0.013821883127093315, -0.0023700986057519913, 0.04603356495499611, 0.05654764547944069, -0.013752970844507217, -0.0013265660963952541, -0.04075683653354645, -0.03839411959052086, -0.045442886650562286, 0.014451940543949604, -0.001917244866490364, 0.04229259863495827, -0.028529783710837364, -0.060446128249168396, 0.0342593677341938, 0.023075850680470467, 0.013260737992823124, 0.031739138066768646, -0.014048309996724129, 0.006192282307893038, 0.04969577491283417, -0.009559151716530323, 0.02583235129714012, -0.00870266743004322, 0.05103464424610138, 0.03258577734231949, 0.040363047271966934, 0.016036927700042725, -0.05642951279878616, 0.06922755390405655, -0.006541767157614231, 0.04500972107052803, 0.026423029601573944, -0.023804353550076485, -0.022800199687480927, -0.0143534941598773, -0.007157057523727417, -0.0049395509995520115, -0.024650994688272476, 0.009657598100602627, -0.0171296838670969, 0.027171222493052483, 0.004149518441408873, 0.009450860321521759, 0.04079621285200119, -0.012699593789875507, 0.024887265637516975, 0.044300906360149384, -0.013024467043578625, -0.02713184431195259, 0.0007272732327692211, 0.003910785540938377, -0.0051979729905724525, 0.04022522270679474, -0.019817272201180458, -0.013949863612651825, 0.03215261548757553, 0.012266429141163826, 0.049892667680978775, 0.017808964475989342, 0.026678990572690964, 0.035657308995723724, 0.032507020980119705, 0.060367368161678314, 0.013861261308193207, 0.028096619993448257, 0.02183542586863041, 0.08111988753080368, 0.022741133347153664, 0.04134751483798027, 0.03268422558903694, -0.05245227366685867, 0.004009231925010681, 0.0291795302182436, -0.006758349481970072, -0.021697599440813065, -0.08261626958847046, -0.04233197867870331, -0.04768746718764305, 0.024001246318221092, 0.041229378432035446, -0.04942012205719948, 0.07001512497663498, 0.01725766435265541, 0.060879290103912354, 0.019974786788225174, -0.008456550538539886, -0.01341825257986784, -0.00962806399911642, 0.018911564722657204, 0.03402309864759445, -0.04922322928905487, 0.03162100166082382, -0.005931399296969175, 0.04150502756237984, -0.03770499303936958, 0.03865008056163788, -0.03441688418388367, -0.01936441846191883, 0.017887722700834274, -0.05241289734840393, -0.04977453127503395, 0.0006995851872488856, -0.029612695798277855, -0.030616849660873413, 0.09033447504043579, 0.024001246318221092, -0.1009666919708252, -0.024670682847499847, 0.11222896724939346, -0.03370806947350502, 0.00038701764424331486, 0.021205367520451546, 0.012079380452632904, 0.005601603537797928, -0.007664056960493326, 0.011341032572090626, 0.007201358675956726, 0.009928325191140175, -0.01962037943303585, 0.006133214570581913, 0.057532113045454025, -0.10577087849378586, 0.023272743448615074, -0.01685403473675251, 0.057492733001708984, -0.054381825029850006, 0.06662856787443161, 0.028372270986437798, 0.014668522402644157, 0.027033397927880287, -0.041465647518634796, 0.010218742303550243, 0.023745287209749222, 0.02053593099117279, -0.016696520149707794, -0.038020022213459015, -0.035617928951978683, -0.01131149847060442, 0.010602683760225773, -0.025674836710095406, 0.020693445578217506, -0.027033397927880287, 0.04548226669430733, 0.03707493841648102, -0.004235658794641495, -0.08529401570558548, -0.0035809900145977736, 0.04552164301276207, 0.016952481120824814, 0.02738780528306961, 0.010455014184117317, 0.014993395656347275, 0.013644679449498653, -0.012985087931156158, 0.006773116532713175, -0.028628230094909668, 0.054618097841739655, -0.0252416729927063, -0.02628520503640175, 0.013221359811723232, 0.011331187561154366, -0.04607294499874115, -0.022800199687480927, 0.04969577491283417, -0.02476912923157215, 0.0021596692968159914, 0.04233197867870331, -0.01956131123006344, 0.009450860321521759, 0.046466730535030365, -0.008840491995215416, -0.025103848427534103, -0.04351333528757095, -0.0495382584631443, 0.023036472499370575, 0.051467809826135635, -0.06836122274398804, 0.041465647518634796, 0.02821475639939308, 0.023075850680470467, 0.04071745648980141, 0.006320262793451548, 0.036818977445364, 0.039575476199388504, -0.09096453338861465, -0.07348044216632843, 0.04737243801355362, -0.026363961398601532, 0.004720507655292749, 0.05217662453651428, -0.002261807443574071, -0.02821475639939308, 0.01685403473675251, -0.003133058547973633, -0.05005018040537834, -0.024867575615644455, 0.029100773856043816, -0.0291795302182436, 0.025714214891195297, 0.08671164512634277, 0.005439166910946369, 0.020850960165262222, -0.00270235538482666, 0.0031699759420007467, -0.03705524653196335, -0.054342444986104965, -0.030085237696766853, -0.012847263365983963, -0.008220279589295387, -0.0010835264110937715, 0.0050650704652071, -0.01804523542523384, -0.03268422558903694, 0.010976780205965042, -0.02740749530494213, -0.09301221370697021, 0.04764808714389801, 0.03349148482084274, 0.010740509256720543, -0.00540471076965332, 0.015554540790617466, -0.023253053426742554, -0.022721443325281143, 0.05005018040537834, -0.017828654497861862, 0.007102912291884422, 0.05158594623208046, -0.029671764001250267, 0.0036695918533951044, -0.0063153402879834175, -0.01303431112319231, 0.03766561672091484, -0.03164069354534149, 0.00539978826418519, 0.017848342657089233, -0.00742778554558754, -0.08301005512475967, -0.01001200545579195, -0.03294018656015396, -0.03140442073345184, 0.05123153701424599, 0.038020022213459015, 0.05237351730465889, 0.038039714097976685, -0.008806035853922367, 0.017582537606358528, -0.04552164301276207, 0.02919922024011612, -0.02602924406528473, -0.002559608081355691, -0.000636210257653147, -0.03105001337826252, 0.00954438466578722, 0.032723601907491684, 0.04020553454756737, 0.01996494270861149, 0.0004094757605344057, -0.0007654212531633675, -0.021776357665657997, -0.016371646896004677, 0.008348260074853897, 0.0026531321927905083, -0.0032487332355231047, -0.08584531396627426, -0.029415803030133247, -0.028490405529737473, 0.031758829951286316, -0.07749705761671066, 0.014678367413580418, 0.03955578804016113, 0.06032799184322357, -0.02476912923157215, 0.04709678515791893, 0.04351333528757095, 0.014264891855418682, -0.02262299694120884, -0.060643021017313004, -0.0284707173705101, 0.010878333821892738, 0.01698201522231102, 0.011488702148199081, 0.028116310015320778, -0.008697744458913803, -0.009209666401147842, 0.01037625689059496, 0.0011056768707931042, 0.0546574741601944, 0.001105061499401927, -0.04323768615722656, 0.008712511509656906, 0.018970632925629616, 0.003174898447468877, 0.01498355157673359, -0.016972169280052185, -0.045954808592796326, -0.03733089938759804, -0.02604893408715725, -0.02398155815899372, 0.03219199180603027, -0.016883568838238716, -0.03404278680682182, -0.001156745944172144, -0.019413642585277557, -0.008973394520580769, -0.03364900127053261, 0.009199821390211582, -0.01855715736746788, 0.007038922049105167, 0.0355391725897789, -0.02608831226825714, 0.011754507198929787, -0.06950320303440094, 0.014747279696166515, 0.026226136833429337, 0.013575767166912556, -0.05891036242246628, -0.10640093684196472, -0.024355653673410416, -0.029356734827160835, -0.07454366236925125, -0.018458710983395576, -0.04497034475207329, 0.05954042077064514, -0.06780992448329926, 0.036700841039419174, -0.018694983795285225, -0.020732823759317398, 0.007506542839109898, -0.022819889709353447, -0.008786346763372421, 0.04182005673646927, -0.017690829932689667, -0.01960069127380848, 0.010415636003017426, 0.03740965574979782, -0.018291352316737175, 0.006133214570581913, 0.02104785293340683, -0.016263354569673538, 0.042765144258737564, -0.020634377375245094, -0.001774497446604073, -0.01038610190153122, 0.006285806652158499, 0.021382572129368782, 0.014560231938958168, -0.025438565760850906, 0.014383028261363506, -0.07993852347135544, -0.027978483587503433, 0.04898696020245552, -0.001658822875469923, -0.014077844098210335, 0.007964318618178368, -0.037232451140880585, -0.010573149658739567, 0.0007445013616234064, -0.030872810631990433, 0.00882080290466547, -0.051428429782390594, 0.02181573584675789, -0.03504693880677223, 0.0001990464370464906, -0.08119864016771317, -0.04871130734682083, -0.057492733001708984, 0.05611448362469673, -0.027033397927880287, 0.04390712082386017, 0.03215261548757553, -0.0059363218024373055, -0.012305807322263718, 0.016548849642276764, -0.04819938912987709, -0.03581482172012329, 0.02496602199971676, 0.030951566994190216, 0.005542535800486803, -0.015692366287112236, 0.07355919480323792, -0.01000216044485569, 0.024158760905265808, -0.03683866560459137, 0.02687588334083557, -0.008431939408183098, -0.008540230803191662, 0.10679472237825394, 0.029337044805288315, -0.019502243027091026, 0.023528704419732094 ]
718,615
autopage
__enter__
null
def __enter__(self) -> TextIO: # Only invoke the pager if the output is going to a tty; if it is # being sent to a file or pipe then we don't want the pager involved if self.to_terminal() and self._command.command() != ['cat']: try: return self._paged_stream() except OSError: pass self._reconfigure_output_stream() return self._out
(self) -> <class 'TextIO'>
[ -0.004695478361099958, -0.0668538361787796, -0.026497161015868187, -0.04112471267580986, 0.05561261996626854, 0.04932870715856552, 0.022150788456201553, -0.030930809676647186, 0.02410578355193138, -0.05365762487053871, 0.03351419419050217, -0.031716298311948776, -0.006139905191957951, 0.040705785155296326, -0.02297118864953518, 0.03264142945408821, -0.01314384862780571, -0.023966141045093536, -0.01429589930921793, 0.04796719178557396, -0.008435279130935669, 0.02775394357740879, 0.04119453206658363, -0.05763743445277214, -0.06392134726047516, 0.02370431087911129, -0.036097582429647446, -0.08930137008428574, -0.007841798476874828, -0.006345005240291357, -0.0056686121970415115, -0.08015478402376175, 0.025764038786292076, -0.017586225643754005, 0.016224710270762444, 0.021609673276543617, -0.04398738220334053, 0.0139293372631073, 0.03492807596921921, 0.008203995414078236, 0.010473186150193214, -0.021888958290219307, 0.008487644605338573, 0.008876025676727295, -0.030826078727841377, 0.030808622017502785, 0.020021241158246994, -0.016015246510505676, 0.046151839196681976, -0.07380105555057526, 0.02218570001423359, 0.015893060714006424, 0.01927066221833229, 0.021784227341413498, 0.006349368952214718, -0.03447423875331879, -0.011215036734938622, -0.011363406665623188, -0.004900578409433365, -0.029516929760575294, -0.07132239639759064, 0.010359726846218109, 0.03155920282006264, 0.03133228048682213, -0.021365299820899963, -0.01892155595123768, -0.03498044237494469, 0.01295184064656496, -0.026357518509030342, 0.03808748722076416, -0.015709780156612396, -0.049119241535663605, -0.03499789535999298, 0.023843953385949135, -0.040077392011880875, -0.0027579390443861485, -0.01739421673119068, 0.028504522517323494, 0.02555457502603531, -0.018729547038674355, 0.032781071960926056, 0.0848328098654747, -0.034404415637254715, 0.03360147401690483, 0.044860146939754486, -0.05128370225429535, 0.015072660520672798, -0.02382649853825569, -0.0640609860420227, -0.021871503442525864, -0.03616740182042122, 0.05358780175447464, 0.0029848581179976463, 0.05453038960695267, 0.03958864510059357, 0.0014553364599123597, -0.02258717082440853, 0.0341949537396431, -0.029691481962800026, -0.004682386759668589, -0.04398738220334053, 0.08629905432462692, 0.026270242407917976, -0.010892113670706749, -0.01628580503165722, -0.027108097448945045, 0.023215562105178833, 0.06866919249296188, 0.0016277077374979854, 0.013187486678361893, -0.04353354498744011, 0.0018022607546299696, -0.0139904310926795, -0.03223995864391327, -0.006436645518988371, 0.006275183986872435, -0.0450696125626564, 0.010089169256389141, -0.015605047345161438, -0.04479032754898071, -0.06402608007192612, 0.018939010798931122, 0.028801262378692627, -0.03808748722076416, -0.023739222437143326, 0.04674532264471054, -0.028469610959291458, -0.06043028458952904, 0.039518821984529495, 0.014112618751823902, -0.018572449684143066, 0.0006736658979207277, 0.02651461586356163, 0.0028233963530510664, 0.031192639842629433, 0.02489127218723297, -0.061477601528167725, 0.013248580507934093, -0.03264142945408821, 0.09048832952976227, -0.005747160874307156, -0.028609253466129303, -0.08064353466033936, -0.02347739227116108, -0.026601893827319145, -0.01033354364335537, 0.04388264939188957, 0.006960304919630289, 0.035015352070331573, -0.00986225064843893, 0.019200840964913368, -0.023809043690562248, 0.00045520177809521556, 0.08594994992017746, 0.05938296392560005, 0.0704147219657898, -0.05194700509309769, 0.014967928640544415, -0.000728759216144681, -0.0015087933279573917, -0.010831019841134548, -0.0184851735830307, 0.026532072573900223, 0.024227971211075783, -0.024367613717913628, 0.020457623526453972, 0.0004131999157834798, -0.008644742891192436, 0.033339641988277435, -0.013711146079003811, -0.00012075529230060056, -0.00958296563476324, -0.014601367525756359, 0.020806729793548584, -0.037214722484350204, 0.028155416250228882, 0.033007990568876266, 0.07017035037279129, -0.013623869977891445, -0.017210936173796654, -0.057323239743709564, -0.03836677223443985, -0.04217202961444855, 0.02932492084801197, -0.007217770908027887, -0.003462697146460414, 0.06744731962680817, -0.0377383790910244, 0.01317003183066845, 0.008260725997388363, 0.014025341719388962, 0.022115878760814667, -0.016730915755033493, -0.03819222003221512, 0.0014607913326472044, -0.007226498331874609, -0.05320378765463829, -0.0065021030604839325, 0.039344269782304764, 0.026374973356723785, -0.035748474299907684, 0.009757518768310547, 0.002989221829921007, 0.0030786802526563406, 0.024803996086120605, 0.038680966943502426, -0.04360336437821388, 0.049014512449502945, -0.028155416250228882, 0.034247320145368576, -0.06901829689741135, -0.04021703451871872, -0.0007233044016174972, 0.024629442021250725, 0.019794322550296783, 0.007785068359225988, 0.019864143803715706, 0.0012535094283521175, -0.030634069815278053, 0.03196067363023758, 0.06350241601467133, -0.02195877954363823, -0.027282649651169777, -0.01042082067579031, -0.03836677223443985, -0.048386119306087494, 0.017437854781746864, -0.029621660709381104, 0.019811777397990227, -0.008286908268928528, 0.04189274460077286, -0.010639011859893799, -0.04224185273051262, 0.07366140931844711, -0.02719537355005741, -0.009565509855747223, -0.04175310209393501, -0.0027252102736383677, -0.08217959851026535, 0.02061472088098526, -0.046815142035484314, -0.00589989498257637, 0.013772239908576012, 0.0034386960323899984, -0.04576782509684563, 0.003879442811012268, -0.038960251957178116, -0.004019085317850113, 0.016207255423069, 0.020021241158246994, 0.020143428817391396, -0.015936698764562607, -0.020859096199274063, -0.0478624626994133, -0.03225741162896156, -0.015709780156612396, -0.0633278638124466, -0.03847150504589081, -0.005720978137105703, -0.002066272310912609, 0.007898528128862381, 0.010525552555918694, -0.037947844713926315, 0.0067421137355268, 0.049398526549339294, -0.024629442021250725, -0.030808622017502785, -0.05826582759618759, 0.005790799390524626, 0.03456151485443115, 0.002520110458135605, 0.07680336385965347, -0.003124500624835491, 0.0027317560743540525, -0.028399789705872536, 0.003200867446139455, 0.020579811185598373, 0.016189800575375557, -0.028469610959291458, -0.01339695043861866, 0.010447002947330475, 0.0314021036028862, -0.04590746760368347, -0.09712134301662445, 0.01909611001610756, -0.06633017957210541, 0.005638065282255411, 0.006493375636637211, 0.003676524618640542, -0.06688874959945679, 0.023180652409791946, 0.0011793243465945125, -0.02180168218910694, -0.006035173311829567, 0.010996845550835133, -0.00758433248847723, -0.12875036895275116, -0.029063092544674873, -0.029464563354849815, -0.04479032754898071, -0.04185783490538597, -0.12777286767959595, -0.022203154861927032, 0.07589568942785263, -0.038680966943502426, 0.06744731962680817, 0.003973265178501606, 0.02073690854012966, -0.002267008414492011, -0.052331019192934036, -0.023023555055260658, 0.028399789705872536, 0.006829390302300453, 0.030965721234679222, -0.08553101867437363, 0.01261146180331707, 0.009277497418224812, 0.07044963538646698, -0.007392324041575193, 0.06573669612407684, -0.07132239639759064, 0.030965721234679222, 0.016931651160120964, -0.04307970404624939, 0.05634574219584465, 0.035748474299907684, 0.05686940252780914, 0.04147381708025932, 0.02510073594748974, 0.05882439389824867, -0.03972828760743141, 0.03304290398955345, -0.008522555232048035, 0.03447423875331879, -0.056206099689006805, 0.010447002947330475, -0.02352975867688656, -0.04335898905992508, -0.016748370602726936, -0.08588012307882309, 0.01592797040939331, 0.017254574224352837, 0.0139293372631073, -0.07526730000972748, 0.02281409129500389, -0.037389274686574936, 0.04231167212128639, -0.029255099594593048, 0.041822925209999084, 0.011258674785494804, 0.005960988346487284, 0.10494132339954376, 0.01927066221833229, -0.015683596953749657, -0.014191167429089546, -0.02152239717543125, -0.006131177768111229, -0.001531703514046967, -0.023669401183724403, -0.01039463747292757, -0.028801262378692627, 0.07456908375024796, -0.018345531076192856, 0.012628916651010513, -0.03011040948331356, -0.03438696265220642, 0.020091062411665916, 0.018467718735337257, 0.0460820198059082, 0.05121387913823128, -0.01224489975720644, -0.002487381687387824, 0.034858252853155136, 0.020352892577648163, -0.03847150504589081, -0.006886119954288006, -0.04039158672094345, -0.03529463708400726, 0.002980494173243642, 0.060360461473464966, 0.042940061539411545, 0.05718359723687172, 0.03927444666624069, 0.004883123096078634, -0.0179789699614048, -0.04534889757633209, -0.017437854781746864, -0.0034932440612465143, 0.03958864510059357, -0.007291955873370171, -0.030913354828953743, 0.011005572974681854, 0.03150683641433716, 0.029866036027669907, -0.008391640149056911, -0.028242692351341248, 0.01640799082815647, -0.012960568070411682, -0.026671715080738068, 0.040985070168972015, 0.04213711991906166, 0.036376867443323135, 0.008195267990231514, 0.02421051450073719, -0.010525552555918694, -0.04402229189872742, 0.054635122418403625, -0.011415773071348667, 0.03180357441306114, -0.008627287112176418, -0.026148054748773575, -0.0377383790910244, -0.01567486859858036, 0.0224126186221838, 0.043498631566762924, -0.062210727483034134, 0.0668538361787796, -0.004826393444091082, -0.016198527067899704, 0.04314952716231346, -0.01311766542494297, 0.04129926487803459, -0.002432833891361952, 0.00019705409067682922, 0.06245509907603264, -0.050306204706430435, -0.026078233495354652, -0.03763365000486374, 0.016469085589051247, -0.01927066221833229, -0.02028307132422924, -0.0020837276242673397, 0.01429589930921793, 0.03461388126015663, 0.05156298726797104, 0.02281409129500389, 0.0009038578136824071, -0.019899053499102592, 0.041718192398548126, 0.051877181977033615, 0.08867297321557999, -0.023739222437143326, 0.05707886442542076, 0.03145447000861168, 0.03335709869861603, 0.03169884532690048, -0.00561624625697732, 0.0597669817507267, -0.02044016867876053, -0.015221030451357365, 0.08036424964666367, -0.027771398425102234, -0.003656887449324131, -0.014103890396654606, -0.054565299302339554, -0.035591378808021545, 0.07973586022853851, -0.0004472923174034804, -0.010935751721262932, 0.07512765377759933, -0.0032466878183186054, 0.041718192398548126, 0.01937539502978325, 0.012113985605537891, -0.0073006837628781796, -0.055019136518239975, -0.00048520308337174356, 0.03854132443666458, -0.05051566660404205, -0.006183543708175421, 0.003329600440338254, 0.041822925209999084, -0.08148138970136642, -0.025537118315696716, 0.0030241324566304684, -0.009172765538096428, 0.007444689981639385, -0.04370809718966484, -0.024332702159881592, -0.009364773519337177, -0.08322691917419434, -0.057497791945934296, 0.05069022253155708, 0.01914847455918789, -0.07373122870922089, 0.029115457087755203, 0.10696613788604736, 0.004252550192177296, 0.03134973719716072, 0.03456151485443115, 0.009286224842071533, 0.052889589220285416, -0.030808622017502785, -0.019113564863801003, -0.029691481962800026, 0.048839956521987915, -0.009225131943821907, 0.002672844333574176, 0.004992218688130379, -0.036935437470674515, 0.00009886796760838479, 0.03538191318511963, 0.05700904503464699, -0.018013879656791687, 0.035469189286231995, 0.03651650995016098, -0.007147949654608965, -0.009172765538096428, -0.007466509006917477, 0.01643417403101921, 0.05128370225429535, 0.008605468086898327, -0.03833186253905296, 0.010158990509808064, -0.024751629680395126, -0.010543007403612137, -0.03351419419050217, -0.0011596871772781014, 0.013222397305071354, -0.055298421531915665, 0.04538380727171898, 0.05069022253155708, -0.029359832406044006, -0.08301745355129242, 0.00012996024452149868, 0.029726393520832062, 0.0219064150005579, 0.038401681929826736, -0.032554153352975845, 0.007684700191020966, 0.003676524618640542, -0.005402418319135904, -0.013964247889816761, -0.023110831156373024, 0.011843428015708923, -0.009932071901857853, -0.03405531123280525, 0.015002839267253876, -0.0229188222438097, -0.021749315783381462, -0.01280346978455782, -0.027788853272795677, 0.001210962189361453, -0.035696107894182205, 0.04039158672094345, 0.00026046595303341746, 0.013920609839260578, 0.029848581179976463, 0.02016088366508484, -0.002574658254161477, -0.06374679505825043, -0.09390956908464432, -0.015020294114947319, 0.0407756045460701, -0.019026288762688637, 0.0719158798456192, -0.014226078055799007, 0.014933018013834953, 0.003789984155446291, 0.011354679241776466, 0.06804080307483673, 0.044580861926078796, -0.07184606045484543, 0.017586225643754005, 0.0823192447423935, -0.026654258370399475, 0.029359832406044006, 0.04122944176197052, 0.007191587705165148, 0.0036939799319952726, 0.02869652956724167, -0.023617034777998924, -0.017848053947091103, -0.000026387519028503448, 0.04695478454232216, 0.016905467957258224, 0.017760777845978737, 0.10089169442653656, -0.01039463747292757, -0.009094216860830784, -0.013903154991567135, -0.0060526286251842976, 0.02173186093568802, -0.037773292511701584, -0.005459148436784744, -0.0321526825428009, -0.03386330232024193, -0.005118769593536854, -0.002980494173243642, -0.010577918030321598, -0.000641482649371028, -0.024594532325863838, -0.019410304725170135, -0.03532954677939415, 0.04444121941924095, -0.032606519758701324, 0.010822292417287827, -0.005699158646166325, 0.007322502788156271, 0.0053587802685797215, -0.044964879751205444, 0.056310832500457764, -0.05107423663139343, 0.041369084268808365, 0.039518821984529495, -0.010656466707587242, 0.011145215481519699, -0.04095015674829483, -0.028958359733223915, -0.009478233754634857, -0.01679200865328312, 0.0005612973473034799, -0.0037594374734908342, 0.01542176678776741, -0.03330473229289055, -0.0046125659719109535, 0.01008044183254242, -0.05302923172712326, 0.031594112515449524, 0.05718359723687172, 0.06908811628818512, 0.0017400762299075723, -0.0354517363011837, 0.015456677414476871, -0.014662460424005985, 0.02332029491662979, 0.02426288090646267, -0.0071654049679636955, 0.028801262378692627, 0.01083974726498127, 0.012035435996949673, 0.010595373809337616, 0.03651650995016098, 0.02263953723013401, -0.03972828760743141, 0.004961671773344278, 0.008980757556855679, 0.011834700591862202, -0.022290430963039398, 0.0008564011659473181, -0.058230914175510406, -0.06043028458952904, -0.001230599358677864, -0.061652157455682755, 0.020422713831067085, -0.10242775827646255, 0.005690431222319603, 0.022761724889278412, 0.018467718735337257, -0.023163197562098503, 0.03909989446401596, 0.043673187494277954, 0.036376867443323135, -0.01843280717730522, -0.041822925209999084, -0.033741116523742676, 0.056136276572942734, 0.016320714727044106, -0.0012175078736618161, 0.040915247052907944, -0.026043323799967766, 0.036830704659223557, 0.022150788456201553, -0.0023717402946203947, 0.08364585041999817, 0.003689616220071912, -0.06266456097364426, 0.006270820274949074, -0.021365299820899963, 0.002760120900347829, -0.00102386309299618, 0.02651461586356163, -0.05983680486679077, -0.013030389323830605, -0.03201304003596306, -0.025188012048602104, 0.07701282948255539, -0.027928495779633522, 0.013746056705713272, -0.0057515245862305164, -0.0617917999625206, 0.007108675315976143, -0.005384963005781174, 0.006907938979566097, -0.052784860134124756, 0.007017034571617842, -0.006270820274949074, -0.03714489936828613, 0.010516824200749397, -0.059976447373628616, 0.010735015384852886, -0.004058359656482935, -0.004403102211654186, -0.02651461586356163, -0.061931442469358444, 0.011101577430963516, -0.012777287513017654, -0.09949526935815811, 0.003853259840980172, -0.0017171661602333188, 0.06835499405860901, -0.00419800216332078, 0.07366140931844711, -0.05903385952115059, -0.005476603750139475, -0.04719915986061096, 0.014007886871695518, 0.007060673087835312, 0.03192576393485069, -0.009914616122841835, 0.016547633334994316, 0.024926183745265007, 0.03269379585981369, 0.054355837404727936, 0.05924332141876221, 0.006938485894352198, -0.02560693956911564, 0.05201682448387146, 0.000889129878487438, 0.0009845886379480362, -0.007099947426468134, -0.021923869848251343, 0.033392008394002914, 0.018729547038674355, 0.030983176082372665, 0.03438696265220642, -0.0944681391119957, 0.0005803890526294708, 0.035696107894182205, 0.004403102211654186, -0.023442482575774193, -0.005144952796399593, -0.02387886494398117, -0.015238486230373383, 0.0019364485051482916, -0.008849842473864555, -0.016652366146445274, -0.011162671260535717, 0.029796214774250984, -0.0438128300011158, -0.009600420482456684, -0.03426477313041687, -0.011616509407758713, -0.019340483471751213, 0.04426666721701622, -0.06133795902132988, 0.06095394492149353, 0.023128286004066467, -0.036830704659223557, 0.04196256771683693, 0.045244164764881134, -0.017437854781746864, 0.016207255423069, 0.042276762425899506, 0.05543806403875351, 0.012925657443702221, 0.025868769735097885, 0.02251734957098961, 0.015116298571228981, 0.017909148707985878, -0.008788748644292355, 0.014714826829731464, 0.008657833561301231, 0.029202735051512718, 0.04545362666249275, 0.03426477313041687, 0.00044320125016383827, 0.024402523413300514 ]
718,616
autopage
__exit__
null
def __exit__(self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException], traceback: Optional[types.TracebackType]) -> bool: if self._pager is not None: # Pager ignores Ctrl-C, so we should too with _sigint_ignore(): pager_in = self._pager.stdin assert pager_in is not None try: pager_in.close() except BrokenPipeError: # Other end of pipe already closed self._exit_code = _signal_exit_code(signal.SIGPIPE) # Wait for user to exit pager self._pager.wait() else: self._flush_output() return self._process_exception(exc)
(self, exc_type: Optional[Type[BaseException]], exc: Optional[BaseException], traceback: Optional[traceback]) -> bool
[ -0.0033364708069711924, -0.023648301139473915, -0.02315680868923664, 0.04593554884195328, 0.0010379212908446789, -0.05606783181428909, 0.0035420465283095837, -0.01872393488883972, -0.005529278889298439, -0.03190913796424866, 0.05992415174841881, -0.009002800099551678, 0.03283540904521942, 0.0025425232015550137, -0.036616113036870956, 0.013393142260611057, -0.021606720983982086, 0.009158754721283913, 0.04408300295472145, -0.04646484553813934, -0.038147300481796265, 0.004399793688207865, 0.044687915593385696, -0.06041564419865608, -0.01939500868320465, 0.030472470447421074, -0.0067202006466686726, -0.023950757458806038, -0.006502809934318066, 0.05077484995126724, -0.039168089628219604, -0.03890344128012657, -0.024555670097470284, 0.015444174408912659, 0.035954490303993225, 0.018799548968672752, -0.07357249408960342, 0.041436512023210526, 0.05255177989602089, 0.054366517812013626, -0.005723040085285902, -0.02355378307402134, -0.014820357784628868, 0.0006344493012875319, 0.007854411378502846, 0.002227070741355419, -0.021266456693410873, -0.010198447853326797, 0.006843073293566704, -0.07035889476537704, -0.013241914100944996, 0.041323088109493256, 0.07024547457695007, 0.01591676101088524, 0.05716423690319061, -0.004109152127057314, 0.04003765061497688, 0.04699414595961571, -0.0011897401418536901, -0.06873319298028946, -0.060718100517988205, 0.03981080651283264, -0.034309886395931244, 0.0037239929661154747, 0.042306073009967804, 0.009111495688557625, -0.0061011104844510555, -0.023326940834522247, -0.022892160341143608, 0.0184214785695076, -0.05667274445295334, 0.0037925182841718197, -0.09459320455789566, 0.06480126082897186, 0.027561329305171967, -0.03578436002135277, -0.009215464815497398, 0.01908310130238533, -0.005070868413895369, 0.010122833773493767, 0.06128520518541336, 0.045633092522621155, -0.011568953283131123, 0.013147396966814995, 0.056332483887672424, -0.009612439200282097, 0.025954529643058777, -0.033213481307029724, -0.022778738290071487, 0.06015099212527275, -0.03572764992713928, -0.006833621766418219, 0.006342130247503519, -0.008634181693196297, 0.054215289652347565, -0.005694684572517872, 0.015897858887910843, 0.004827485885471106, -0.03795826435089111, -0.05769353732466698, 0.02826075814664364, 0.044574495404958725, 0.09164425730705261, -0.021134132519364357, 0.03640817478299141, 0.04105843976140022, 0.029924267902970314, 0.05073704198002815, -0.04181458055973053, -0.05119072645902634, -0.03111519105732441, -0.06499029695987701, -0.003142709843814373, -0.0615120455622673, -0.022268343716859818, -0.0015240961220115423, -0.06158766150474548, 0.04638923332095146, -0.0009197742911055684, -0.024877028539776802, 0.0036554676480591297, 0.0313420332968235, -0.022892160341143608, 0.006190902087837458, -0.009697504341602325, 0.03206036612391472, -0.0061011104844510555, 0.01254248432815075, -0.04359151050448418, 0.11122829467058182, -0.05595441162586212, 0.030850540846586227, -0.04733440652489662, -0.00738654937595129, 0.03013220801949501, 0.036030106246471405, -0.025406327098608017, 0.06015099212527275, -0.040151070803403854, -0.04279756546020508, -0.00879486184567213, 0.015472529456019402, -0.008331725373864174, -0.01935720257461071, -0.004872381687164307, 0.022287247702479362, 0.049754057079553604, -0.014092572033405304, 0.02453676611185074, -0.030699312686920166, 0.003943746443837881, -0.02695641666650772, -0.03680514916777611, 0.03973519429564476, 0.012920554727315903, 0.05258958786725998, -0.05051019787788391, 0.030188918113708496, 0.01782601699233055, 0.008922460488975048, -0.0256709773093462, 0.014839261770248413, 0.0341019444167614, -0.02640821412205696, -0.04903572425246239, 0.0011141260620206594, 0.003960286732763052, 0.03459343686699867, 0.03436659649014473, 0.03856317698955536, -0.010973491705954075, 0.03381839394569397, -0.004274557810276747, -0.02589781954884529, -0.0650281012058258, 0.0568239726126194, 0.053307920694351196, 0.04291098564863205, -0.052967656403779984, -0.024366633966565132, 0.026483828201889992, -0.0964079424738884, -0.02151220291852951, 0.04824177548289299, 0.024952642619609833, -0.01787327602505684, 0.011361014097929, -0.005968785844743252, -0.012032088823616505, 0.015510336495935917, -0.044687915593385696, -0.0288089606910944, -0.006932864896953106, -0.04094501957297325, 0.028582118451595306, 0.01939500868320465, -0.03950835019350052, 0.006890332326292992, 0.0237050112336874, -0.016994262114167213, -0.015557595528662205, 0.012381804175674915, -0.006635134574025869, -0.045444056391716, -0.009489566087722778, 0.023421458899974823, 0.02731558308005333, 0.029205935075879097, -0.02107742242515087, -0.008596374653279781, -0.006578424014151096, -0.07697512209415436, -0.015236235223710537, 0.06090713292360306, 0.037239931523799896, -0.0022058042231947184, 0.025803301483392715, -0.03693747520446777, -0.0029324081260710955, 0.06404511630535126, 0.034272078424692154, -0.016861937940120697, -0.011001847684383392, 0.022173825651407242, 0.02077496610581875, 0.0011477979132905602, -0.03943273797631264, 0.04638923332095146, 0.06487686932086945, -0.027636943385004997, -0.020756062120199203, 0.009111495688557625, -0.01778821088373661, -0.001091678161174059, -0.03300554305315018, 0.02022676356136799, 0.027674749493598938, 0.0231190025806427, -0.08068021386861801, 0.047863706946372986, 0.012882747687399387, 0.0017899267841130495, -0.028204048052430153, -0.06215476617217064, -0.019621850922703743, -0.026313696056604385, 0.04941379651427269, 0.04650265350937843, -0.0022058042231947184, -0.0029654894024133682, 0.05028335750102997, -0.03013220801949501, -0.01696590706706047, -0.06211695820093155, -0.001249995082616806, -0.01015118882060051, -0.025992337614297867, -0.03741006180644035, 0.051946867257356644, -0.0013941344805061817, 0.025255098938941956, -0.023686107248067856, 0.009999960660934448, 0.04181458055973053, 0.022589704021811485, -0.03196584805846214, 0.048771075904369354, -0.0368429571390152, 0.07292976975440979, 0.01728726737201214, 0.03625694662332535, 0.004371438641101122, -0.04495256394147873, -0.0012417248217388988, -0.044461075216531754, 0.04911134019494057, 0.01334588322788477, -0.06302432715892792, -0.0654439777135849, -0.012154961936175823, 0.06419634819030762, 0.059508275240659714, 0.03890344128012657, -0.057277657091617584, -0.002689025364816189, -0.0008258474408648908, 0.006294871214777231, -0.007325113285332918, -0.026824092492461205, 0.010255157947540283, -0.0010361491004005075, 0.011096364818513393, -0.019272135570645332, -0.007381823845207691, -0.0006415381212718785, -0.0107750054448843, -0.036502692848443985, -0.09005635976791382, -0.04483914375305176, -0.03727773576974869, -0.019309943541884422, -0.06733433157205582, 0.0077551682479679585, 0.013960247859358788, -0.04056694731116295, 0.0650281012058258, 0.07047231495380402, -0.031568873673677444, 0.018525447696447372, 0.026672864332795143, 0.019810887053608894, 0.07708854228258133, -0.043402478098869324, -0.0036223866045475006, -0.019376106560230255, 0.008317547850310802, 0.055160462856292725, 0.006828895770013332, -0.08332670480012894, 0.030188918113708496, -0.07149310410022736, -0.02637040801346302, 0.03965957835316658, -0.06412073224782944, 0.04415861889719963, 0.0067202006466686726, -0.009555728174746037, 0.009924346581101418, 0.01101129874587059, -0.04370493441820145, -0.04041571915149689, -0.02319461666047573, 0.022173825651407242, -0.0029914816841483116, 0.020472509786486626, -0.03298663720488548, -0.029754137620329857, -0.03746677190065384, -0.00022034412540961057, -0.08279740810394287, -0.058336254209280014, -0.017022617161273956, 0.04189019650220871, -0.06877099722623825, 0.04756125062704086, -0.031247515231370926, 0.017901631072163582, -0.011625663377344608, 0.07508477568626404, 0.09965934604406357, -0.01916816644370556, 0.055387306958436966, 0.011918667703866959, 0.0030032964423298836, -0.04846861958503723, -0.07999968528747559, 0.018563253805041313, -0.009083140641450882, 0.03480137512087822, 0.014102024026215076, 0.08120951056480408, 0.044461075216531754, -0.014565160498023033, 0.022268343716859818, -0.05482020229101181, -0.054366517812013626, -0.0205670278519392, 0.03729664161801338, 0.018752289935946465, 0.05470677837729454, -0.02245737984776497, 0.01641770452260971, -0.024631284177303314, -0.039281509816646576, 0.01759917475283146, -0.01979198306798935, 0.006535891443490982, -0.005661603529006243, 0.011843053624033928, 0.046653881669044495, 0.031020672991871834, 0.022532993927598, -0.021682335063815117, -0.05595441162586212, -0.021209746599197388, -0.027618039399385452, 0.027013126760721207, 0.017977245151996613, -0.01187140867114067, -0.023761721327900887, -0.032703086733818054, -0.013430949300527573, 0.024461152032017708, -0.031682293862104416, 0.007972558960318565, 0.013270269148051739, -0.028071723878383636, -0.011474435217678547, -0.015226783230900764, 0.05240055173635483, -0.03111519105732441, 0.08884653449058533, -0.011767439544200897, -0.003794881282374263, 0.0689600333571434, -0.06563301384449005, 0.030963962897658348, -0.1046498715877533, 0.05512265861034393, -0.024895932525396347, 0.0006675304612144828, -0.021153036504983902, -0.018525447696447372, 0.003201783401891589, 0.021209746599197388, -0.027655845507979393, 0.041323088109493256, -0.005723040085285902, 0.023723915219306946, 0.0317390076816082, 0.00738654937595129, 0.06873319298028946, 0.025614267215132713, -0.023137906566262245, 0.0016646910225972533, -0.016824129968881607, -0.04177677258849144, -0.022268343716859818, -0.01775985397398472, -0.027296679094433784, -0.028317470103502274, -0.001061550690792501, 0.030850540846586227, 0.04960282891988754, 0.03327019140124321, 0.043402478098869324, -0.015585950575768948, 0.0015181887429207563, 0.022873256355524063, 0.053270112723112106, 0.031171901151537895, 0.020548123866319656, -0.022476281970739365, 0.002066390821710229, 0.07224924117326736, -0.03238172456622124, 0.060831520706415176, 0.023799529299139977, -0.03457453474402428, -0.010491452179849148, -0.014593515545129776, 0.026389310136437416, -0.03695637732744217, -0.05349695682525635, -0.01574663072824478, -0.004295824561268091, -0.03185242787003517, 0.03347812965512276, 0.014366673305630684, 0.03514163941144943, -0.030245628207921982, 0.05905459076166153, 0.004756597802042961, -0.018856259062886238, 0.016550030559301376, -0.004723516292870045, -0.015378011390566826, -0.014933778904378414, 0.025444135069847107, 0.05822283402085304, -0.06370485574007034, 0.014631322585046291, -0.03805278241634369, 0.07633240520954132, -0.035803262144327164, -0.007400727365165949, 0.03111519105732441, 0.026653960347175598, -0.01622867025434971, 0.005165386013686657, 0.04695633798837662, 0.008303370326757431, 0.05066142603754997, 0.0061625465750694275, -0.05508485063910484, -0.04381835460662842, 0.05398844555020332, -0.016058538109064102, 0.0064933584071695805, 0.044650107622146606, -0.003208872163668275, -0.035954490303993225, 0.01986759714782238, 0.0517200231552124, 0.03695637732744217, -0.029962075874209404, -0.006965946406126022, -0.005241000093519688, 0.07576529681682587, -0.06457441300153732, 0.03735335171222687, 0.02672957442700863, 0.040377914905548096, -0.052022479474544525, 0.043364670127630234, -0.00964079424738884, 0.05183344706892967, 0.018478188663721085, -0.021682335063815117, -0.0005378641653805971, -0.014366673305630684, 0.043440282344818115, 0.03623804450035095, -0.0017662973841652274, -0.01567101664841175, -0.013818471692502499, 0.008913008496165276, -0.03894124552607536, 0.029300453141331673, 0.01676741987466812, 0.0525139719247818, 0.012183316983282566, 0.01291110273450613, -0.034820280969142914, -0.0016824130434542894, 0.038109492510557175, 0.03973519429564476, 0.03999984264373779, -0.0005455437349155545, 0.02275983616709709, 0.0076748281717300415, 0.024007467553019524, -0.014357221312820911, -0.08362916111946106, 0.004262743052095175, -0.020188957452774048, -0.060831520706415176, 0.041436512023210526, -0.003163976361975074, -0.058525290340185165, -0.014489546418190002, 0.01649331860244274, -0.013090685941278934, -0.01716439425945282, 0.027561329305171967, -0.02001882530748844, 0.03508492931723595, 0.04843081161379814, -0.03502821922302246, 0.016011279076337814, -0.009688053280115128, -0.029527295380830765, 0.07610556483268738, 0.026105757802724838, 0.016606740653514862, 0.08241933584213257, 0.01782601699233055, 0.06332678347826004, 0.04109624773263931, 0.05232493579387665, -0.001480381703004241, 0.028468698263168335, 0.006020770408213139, -0.030945058912038803, -0.016001828014850616, -0.028071723878383636, -0.009267449378967285, -0.007017930969595909, 0.01446119137108326, -0.0028898753225803375, -0.021682335063815117, -0.04094501957297325, -0.028033915907144547, -0.00017707279766909778, 0.0544799380004406, 0.010623777285218239, -0.01000941265374422, 0.04487695172429085, -0.06654038280248642, -0.003017473965883255, -0.017958341166377068, -0.03342141956090927, 0.02844979427754879, -0.08120951056480408, -0.02589781954884529, -0.04374273866415024, -0.028166241943836212, -0.011323207058012486, -0.022343957796692848, 0.049867480993270874, -0.019527332857251167, 0.08173880726099014, -0.010349676012992859, -0.0724760890007019, 0.09701285511255264, 0.015973472967743874, 0.03459343686699867, -0.010860070586204529, -0.00838370993733406, 0.002974941162392497, -0.01477309875190258, 0.01567101664841175, -0.004881833214312792, -0.022230537608265877, 0.025689881294965744, -0.04816616326570511, -0.02147439680993557, 0.022778738290071487, 0.006124739535152912, -0.010198447853326797, 0.0057939281687140465, 0.0005913256900385022, 0.020396895706653595, 0.017192749306559563, -0.043515898287296295, -0.0036554676480591297, -0.03249514847993851, -0.009196561761200428, 0.03629475459456444, 0.04612458497285843, 0.0008098976104520261, 0.039130281656980515, 0.013591629453003407, 0.007145529612898827, -0.03162558376789093, -0.0002964012383017689, 0.019130360335111618, 0.018071763217449188, 0.01873338595032692, -0.027561329305171967, -0.008085980080068111, 0.013875181786715984, 0.01594511792063713, -0.02461238019168377, -0.0038775841239839792, 0.0036909119226038456, 0.020869484171271324, 0.03079383075237274, -0.026937512680888176, -0.0205670278519392, -0.01614360325038433, -0.05512265861034393, -0.009669149294495583, -0.003175790887326002, 0.0009611257119104266, -0.0372210256755352, 0.04041571915149689, 0.007835508324205875, 0.05550072714686394, -0.07345906645059586, 0.0395839661359787, 0.04846861958503723, -0.02848760038614273, -0.07300538569688797, -0.05376160517334938, -0.042381685227155685, 0.02151220291852951, 0.03875221312046051, -0.05674836039543152, 0.0241019856184721, 0.0006427196203731, 0.004068982321768999, -0.0010568248108029366, -0.017268363386392593, 0.07421521097421646, 0.0102835139259696, -0.026578346267342567, -0.0258600115776062, -0.013194655068218708, -0.029640715569257736, -0.005491471849381924, -0.04060475528240204, -0.04691853001713753, -0.0029820299241691828, -0.03672953322529793, -0.007433808408677578, -0.026824092492461205, -0.03378058597445488, -0.07610556483268738, -0.030850540846586227, -0.01261809840798378, -0.017372332513332367, -0.02735338918864727, 0.040340106934309006, 0.05701300874352455, 0.02523619681596756, -0.025009354576468468, -0.01880900003015995, 0.009801473468542099, -0.03788264840841293, 0.015727726742625237, -0.0068383472971618176, -0.031795717775821686, -0.05829844996333122, -0.07024547457695007, -0.0012299100635573268, -0.0380149744451046, -0.05277862027287483, -0.045065987855196, -0.02856321446597576, 0.02958400547504425, -0.028355276212096214, 0.040377914905548096, 0.029640715569257736, -0.02347816899418831, -0.012296738103032112, -0.02319461666047573, 0.02037799172103405, 0.06419634819030762, -0.009116221219301224, -0.021096326410770416, -0.009536825120449066, 0.03559532389044762, -0.0005874859052710235, -0.0046006436459720135, -0.008577471598982811, -0.004335994366556406, 0.03323238343000412, 0.03585997223854065, -0.03984861448407173, -0.03860098496079445, 0.013251366093754768, -0.02100180834531784, -0.024385537952184677, -0.019309943541884422, -0.056370288133621216, -0.05035896971821785, -0.01510391104966402, 0.04638923332095146, 0.004676257725805044, -0.04253291338682175, -0.061776697635650635, -0.007840233854949474, 0.03512273728847504, -0.007670102175325155, -0.009895991533994675, -0.018856259062886238, 0.019054746255278587, 0.010188995860517025, -0.03353483974933624, 0.012892198748886585, -0.04612458497285843, -0.007452711928635836, -0.06888441741466522, 0.07826056331396103, -0.0009215464815497398, -0.027485715225338936, 0.05497143045067787, 0.0036247496027499437, -0.04151212424039841, 0.018865710124373436, -0.01950843073427677, 0.04321344196796417, -0.010831715539097786, 0.04627581313252449, 0.04166335240006447, -0.03020782209932804, 0.05765572935342789, 0.00005940578193985857, 0.06884661316871643, 0.019621850922703743, 0.0190074872225523, -0.008964993059635162, -0.03502821922302246, 0.10366689413785934, 0.017485754564404488, -0.01971636898815632, 0.02805281989276409 ]
718,617
autopage
__init__
null
def __init__(self, output_stream: Optional[TextIO] = None, *, pager_command: command.CommandType = command.DefaultPager(), allow_color: bool = True, line_buffering: Optional[bool] = None, reset_on_exit: bool = False, errors: Optional[ErrorStrategy] = None): self._use_stdout = output_stream is None or output_stream is sys.stdout self._out = sys.stdout if output_stream is None else output_stream self._tty = (not self._out.closed) and self._out.isatty() self._command = command.get_pager_command(pager_command) self._config = command.PagerConfig( color=allow_color, line_buffering_requested=bool(line_buffering), reset_terminal=reset_on_exit, ) self._set_line_buffering = line_buffering self._set_errors = (ErrorStrategy(errors) if errors is not None else None) self._pager: Optional[subprocess.Popen] = None self._exit_code = 0
(self, output_stream: Optional[TextIO] = None, *, pager_command: Union[autopage.command.PagerCommand, Callable[[], autopage.command.PagerCommand], str, Sequence[str]] = <autopage.command.Less object at 0x7f2fc8e3abf0>, allow_color: bool = True, line_buffering: Optional[bool] = None, reset_on_exit: bool = False, errors: Optional[autopage.ErrorStrategy] = None)
[ -0.010929021053016186, -0.06261437386274338, -0.04191449284553528, -0.04787076637148857, -0.011213965713977814, 0.037226688116788864, 0.009632980450987816, 0.012693841010332108, -0.039598166942596436, -0.007858967408537865, 0.03518611565232277, 0.0328146368265152, -0.0036881996784359217, 0.05283432453870773, -0.018879905343055725, 0.013089087791740894, 0.04632654786109924, -0.016471661627292633, -0.015800662338733673, 0.005377188324928284, -0.012638690881431103, 0.03912019357085228, -0.005294462665915489, 0.010607308708131313, -0.05081213265657425, 0.02748340740799904, -0.04684128612279892, -0.03809071704745293, -0.01963363215327263, 0.017648208886384964, 0.00968813057988882, -0.04669421911239624, -0.026306860148906708, 0.04037027806043625, 0.008304769173264503, 0.015313497744500637, -0.010129336267709732, 0.05040769651532173, -0.04522353410720825, 0.044745560735464096, 0.021821273490786552, -0.02746502496302128, -0.016453277319669724, 0.01866849511861801, -0.022832369431853294, 0.02604949101805687, 0.009030918590724468, 0.008263405412435532, -0.03775981068611145, -0.04143652319908142, -0.0003021796001121402, 0.03605014085769653, 0.027795927599072456, 0.024045683443546295, 0.0041340007446706295, 0.005542640574276447, 0.033347759395837784, 0.038458388298749924, -0.03546186909079552, -0.04327487573027611, -0.10015358030796051, 0.051473941653966904, 0.023714778944849968, -0.017979111522436142, 0.023898614570498466, -0.02474425919353962, -0.03678548336029053, -0.029579132795333862, 0.0010771611705422401, 0.038201019167900085, 0.008396686986088753, 0.018512235954403877, -0.031840309500694275, -0.001925676828250289, 0.022869136184453964, 0.02733633853495121, -0.07221058756113052, 0.050113558769226074, -0.02457880601286888, 0.006310153752565384, 0.04242923483252525, 0.09868289530277252, 0.0103499386459589, 0.02329195849597454, 0.018530618399381638, -0.07000456005334854, 0.03480006009340286, -0.00027302445960231125, 0.010028226301074028, 0.020203521475195885, -0.0600406751036644, -0.05603305995464325, 0.006907619070261717, 0.021802891045808792, 0.01943141222000122, 0.01957848109304905, -0.017087509855628014, 0.014100182801485062, -0.06618078052997589, -0.023953765630722046, -0.051290106028318405, 0.024358203634619713, 0.013980690389871597, -0.04463525861501694, -0.03163808956742287, -0.0008421964012086391, 0.015901770442724228, 0.04393668472766876, 0.01974393241107464, 0.00036508581251837313, -0.018521426245570183, 0.026950284838676453, -0.022630149498581886, -0.0059884414076805115, 0.007679728325456381, 0.008732186630368233, -0.038274552673101425, -0.044966164976358414, -0.017666591331362724, -0.01767578348517418, -0.05059152841567993, -0.003993826452642679, 0.010368322022259235, 0.02356771193444729, 0.005698900669813156, 0.010515390895307064, 0.020240288227796555, -0.046142712235450745, 0.051216572523117065, 0.04397345334291458, 0.02079179510474205, -0.012234252877533436, -0.0006451476947404444, -0.0286231879144907, 0.018337590619921684, -0.030204173177480698, -0.052540186792612076, 0.03399118408560753, -0.046069178730249405, 0.05720960721373558, 0.03864222392439842, -0.010671650990843773, -0.03389926627278328, -0.03470814228057861, -0.026931900531053543, 0.005262291058897972, 0.0702986940741539, -0.029046010226011276, 0.017611440271139145, 0.037042852491140366, 0.015083703212440014, -0.05750374495983124, 0.02744664065539837, 0.06478363275527954, 0.05834938958287239, 0.04518676549196243, -0.005859756842255592, -0.022722067311406136, -0.004444223362952471, 0.03366028144955635, 0.01834678277373314, -0.02625170908868313, 0.017942344769835472, 0.0001337115973001346, -0.05713607370853424, 0.030314473435282707, -0.035811156034469604, -0.04801783338189125, 0.04323811084032059, -0.008217446506023407, 0.044966164976358414, -0.004071956500411034, -0.005767839029431343, 0.0386054553091526, 0.0055334484204649925, 0.05632719770073891, 0.055481553077697754, 0.056363966315984726, -0.02194995805621147, -0.007574022747576237, -0.01874202862381935, -0.006622673943638802, -0.007762453984469175, 0.002964347368106246, 0.008805720135569572, 0.009458336979150772, 0.055297717452049255, 0.010598116554319859, -0.0017372454749420285, -0.004407456144690514, -0.006880043540149927, 0.03871575742959976, 0.044782329350709915, -0.014670073054730892, -0.004019103478640318, -0.004747551865875721, -0.02752017416059971, -0.03912019357085228, 0.05959947034716606, 0.010827911086380482, -0.044782329350709915, 0.07037223130464554, -0.0056023867800831795, -0.019946152344346046, -0.000594018492847681, 0.04948851838707924, -0.04202479496598244, 0.03739213943481445, -0.01370493695139885, 0.021674206480383873, -0.013852004893124104, -0.04014967381954193, 0.005243907682597637, 0.029248228296637535, -0.012794950976967812, -0.003407850628718734, 0.048826709389686584, 0.01107608899474144, -0.0417674258351326, -0.004680911544710398, 0.10765407234430313, -0.02581050433218479, -0.02865995466709137, 0.0032768677920103073, -0.022372780367732048, 0.03801718354225159, 0.0326308012008667, -0.026821600273251534, 0.01101174671202898, -0.008911426179111004, 0.004857853055000305, 0.01364978589117527, -0.03147263824939728, 0.07640203833580017, -0.012712225317955017, -0.05864352360367775, -0.044782329350709915, 0.007785433437675238, -0.13920024037361145, -0.008768953382968903, -0.03009387105703354, -0.0030631590634584427, 0.03391765058040619, -0.0031068199314177036, -0.04555443674325943, -0.005377188324928284, -0.045002929866313934, 0.01307989563792944, -0.035700853914022446, -0.01371412817388773, 0.02073664404451847, -0.009003343991935253, 0.006314749363809824, -0.06651168316602707, -0.03171162307262421, -0.008994151838123798, -0.05452561005949974, -0.015442182309925556, 0.0208837129175663, 0.00887465849518776, 0.02718927152454853, -0.04305427521467209, -0.0233103409409523, -0.013603826984763145, 0.06790883094072342, 0.011002554558217525, -0.02595757320523262, -0.04724572226405144, 0.022372780367732048, 0.05154747515916824, 0.06871771067380905, 0.024284670129418373, -0.03480006009340286, 0.00356870680116117, -0.0393407978117466, 0.017537906765937805, 0.0043270280584692955, -0.05474621430039406, 0.0033136350102722645, -0.02316327393054962, 0.06640138477087021, -0.020129987969994545, 0.020074836909770966, -0.023126505315303802, 0.04937821626663208, -0.03737375885248184, 0.003711179131641984, 0.0814758911728859, -0.0028471522964537144, -0.026490695774555206, 0.013475142419338226, 0.029211461544036865, -0.03377058357000351, -0.013272923417389393, 0.005827585235238075, 0.027685627341270447, -0.07838746160268784, -0.01607641391456127, -0.0699310228228569, -0.06743086129426956, -0.03514934703707695, -0.10008005052804947, 0.03156455606222153, 0.055481553077697754, -0.02860480360686779, 0.07419601082801819, 0.022685300558805466, -0.024045683443546295, 0.03772304579615593, -0.0315094068646431, 0.0775785818696022, 0.08177003264427185, 0.0007508531562052667, 0.023769930005073547, -0.029174694791436195, 0.011388609185814857, 0.015432990156114101, 0.020313823595643044, -0.0005563896265812218, 0.027887845411896706, -0.06070248410105705, -0.029450448229908943, 0.060555413365364075, -0.042355701327323914, 0.01682094857096672, 0.02612302452325821, 0.016738222911953926, 0.031840309500694275, -0.011471335776150227, 0.06423212587833405, -0.056768402457237244, 0.034634608775377274, -0.01691286638379097, 0.04669421911239624, -0.023052971810102463, -0.03553540259599686, -0.047503095120191574, -0.020571192726492882, -0.01548814121633768, -0.07743151485919952, 0.021747739985585213, 0.008143913000822067, -0.02987326867878437, -0.028310667723417282, 0.023843465372920036, -0.05048123002052307, -0.020074836909770966, -0.0387892909348011, 0.03632589429616928, -0.01504693552851677, 0.051437173038721085, 0.0624673031270504, -0.012565156444907188, -0.008998747915029526, 0.04934144765138626, -0.04287043958902359, -0.013502717949450016, -0.02606787346303463, -0.010248829610645771, -0.016398126259446144, -0.0017510331235826015, 0.03395441547036171, -0.022464698180556297, 0.010809527710080147, -0.0298365019261837, -0.026821600273251534, 0.0322631299495697, -0.034469157457351685, 0.07471074908971786, 0.09500619024038315, 0.021563904359936714, 0.0035756004508584738, -0.0022336014080792665, -0.03424855321645737, -0.021416835486888885, 0.04860610514879227, -0.02217056229710579, -0.01437593623995781, 0.002918388694524765, -0.01304312888532877, 0.019045358523726463, 0.002231303369626403, 0.00110933231189847, -0.011701129376888275, -0.0415835902094841, -0.030498309060931206, -0.025387682020664215, 0.04787076637148857, 0.04051734507083893, -0.01709670200943947, -0.026784833520650864, -0.010258020833134651, 0.037098005414009094, -0.02735472284257412, 0.0412159189581871, 0.00436839135363698, 0.029046010226011276, 0.0824318379163742, -0.017942344769835472, 0.006893831305205822, 0.04073794558644295, 0.008318556472659111, -0.0017521821428090334, 0.03867898881435394, -0.00483946967869997, -0.07537255436182022, 0.04459849372506142, 0.016232674941420555, 0.03540671616792679, 0.003263080259785056, 0.0671367272734642, -0.05698900669813156, -0.022685300558805466, -0.0068065095692873, -0.022997820749878883, -0.005418551620095968, -0.02851288579404354, -0.009816816076636314, 0.021361686289310455, -0.028126832097768784, 0.008929809555411339, 0.06522483378648758, -0.015442182309925556, -0.022648533806204796, 0.055077116936445236, 0.018153754994273186, 0.014127758331596851, -0.006595098413527012, 0.039561398327350616, -0.025056779384613037, 0.011986074969172478, 0.0001678935223026201, -0.02231762930750847, 0.03546186909079552, 0.04713542386889458, 0.014550579711794853, 0.0026334435679018497, 0.022336013615131378, -0.008258810266852379, 0.04018644243478775, 0.061989329755306244, -0.023751547560095787, 0.035829540342092514, 0.05162100866436958, 0.025277381762862206, 0.02351256087422371, 0.02472587488591671, 0.009862774983048439, -0.013870388269424438, -0.005165777634829283, 0.03809071704745293, -0.005882736295461655, 0.00781300850212574, -0.09507972002029419, -0.014651689678430557, -0.0650777667760849, 0.014734415337443352, 0.03737375885248184, -0.014780374243855476, 0.03373381495475769, 0.02320004068315029, 0.02487294375896454, -0.02865995466709137, -0.019688783213496208, -0.06390122324228287, 0.01111285574734211, 0.03494713082909584, 0.05342259630560875, -0.03353159502148628, -0.0029597515240311623, -0.009513487108051777, 0.019210809841752052, -0.03415663540363312, 0.03347644582390785, -0.03930402919650078, 0.001410937518812716, 0.02994680404663086, -0.06408505886793137, -0.024027300998568535, 0.009403185918927193, -0.07070313394069672, -0.014523005113005638, 0.06474686414003372, 0.00010642351844580844, -0.08846164494752884, 0.0027506386395543814, 0.08096115291118622, -0.039634935557842255, 0.044855862855911255, 0.012693841010332108, 0.018650110810995102, 0.016922058537602425, -0.05496681481599808, -0.025479599833488464, -0.010846294462680817, 0.013879580423235893, 0.012197485193610191, 0.02332872524857521, 0.01954171434044838, -0.04592210799455643, 0.022740451619029045, 0.008516179397702217, 0.0671367272734642, -0.07107080519199371, 0.046179477125406265, 0.0272260382771492, 0.023861847817897797, -0.023052971810102463, -0.06195256486535072, 0.02604949101805687, 0.038458388298749924, 0.04312780871987343, -0.08007874339818954, -0.012050417251884937, -0.05070183053612709, 0.018392741680145264, -0.005772434640675783, 0.010671650990843773, 0.02711573615670204, 0.00034584052627906203, 0.05834938958287239, 0.07511518895626068, -0.02606787346303463, -0.05489328131079674, -0.02606787346303463, 0.017556291073560715, 0.005299058277159929, 0.03551701828837395, 0.013429183512926102, -0.031748391687870026, 0.017804468050599098, -0.06018774211406708, -0.043642546981573105, 0.0007870457484386861, 0.026931900531053543, 0.0015568569069728255, -0.019872616976499557, 0.06346001476049423, 0.010873869992792606, -0.03812748193740845, -0.0076245772652328014, 0.035903073847293854, -0.06937951594591141, -0.019817467778921127, 0.04371608421206474, -0.007312057074159384, 0.004014507867395878, 0.057724349200725555, 0.012758184224367142, 0.005280674900859594, -0.04022320732474327, -0.06923244893550873, -0.014578155241906643, 0.0326308012008667, -0.03926726430654526, 0.035682469606399536, 0.019229194149374962, 0.02992841973900795, 0.033163923770189285, -0.0003432553494349122, 0.03882605955004692, 0.01034074742347002, -0.09066767245531082, -0.014633306302130222, 0.04592210799455643, -0.03331099450588226, 0.014872292056679726, 0.03603176027536392, -0.013870388269424438, -0.002130193868651986, 0.014807949773967266, -0.0008548350888304412, -0.05040769651532173, 0.02342064306139946, 0.04544413462281227, -0.03612367436289787, 0.042208630591630936, 0.11397801339626312, 0.0286231879144907, 0.023935383185744286, 0.00523931160569191, 0.00260127242654562, -0.05856999009847641, -0.08302011340856552, -0.042245399206876755, -0.014366744086146355, -0.032998472452163696, -0.026398777961730957, 0.01774931699037552, -0.04838550463318825, 0.004591291770339012, 0.0009122836636379361, -0.04713542386889458, -0.03948786482214928, -0.012647882103919983, 0.0130063621327281, 0.021784506738185883, -0.02217056229710579, 0.007266098167747259, 0.021802891045808792, -0.03627074509859085, 0.0848584696650505, -0.01961524784564972, -0.0017671188106760383, 0.06312911212444305, -0.025167079642415047, -0.014357552863657475, 0.017069125548005104, -0.048569340258836746, 0.03161970525979996, 0.0016361359739676118, -0.010147719644010067, 0.015745511278510094, 0.002688594162464142, -0.08250537514686584, -0.00864486489444971, 0.009789240546524525, -0.009159604087471962, 0.003793905256316066, 0.029726199805736542, 0.04272337257862091, 0.05048123002052307, 0.00720635149627924, 0.038164250552654266, -0.056694868952035904, 0.005230119917541742, 0.0021887915208935738, -0.023089738562703133, 0.055187419056892395, 0.0038582475390285254, 0.02207864448428154, 0.01834678277373314, 0.01432078517973423, 0.01491825096309185, -0.03125203400850296, -0.02336549200117588, -0.030388008803129196, 0.020056452602148056, 0.06743086129426956, -0.02204187586903572, -0.008470220491290092, -0.06386445462703705, 0.009058494120836258, -0.025534750893712044, 0.03472652658820152, -0.07504165172576904, 0.00907228235155344, 0.04522353410720825, 0.04720895737409592, 0.00041707680793479085, 0.04669421911239624, 0.03871575742959976, 0.013125854544341564, 0.00007597576768603176, -0.07926987111568451, -0.026895133778452873, -0.014697648584842682, 0.018916673958301544, 0.04831197112798691, 0.011756280437111855, -0.014716031961143017, -0.012169910594820976, 0.01776770129799843, 0.01946817897260189, 0.051437173038721085, 0.0233103409409523, -0.030332857742905617, 0.020221905782818794, -0.048973776400089264, 0.022685300558805466, -0.010965787805616856, 0.0022244094870984554, -0.025608286261558533, -0.011002554558217525, -0.013153430074453354, -0.0049313874915242195, 0.011379417963325977, -0.02617817558348179, -0.018135372549295425, 0.014173717238008976, -0.06235700100660324, -0.01696801744401455, -0.03264918550848961, -0.02066311053931713, -0.039634935557842255, 0.022372780367732048, -0.005850564688444138, -0.01292363554239273, 0.009596212767064571, -0.06504099816083908, -0.017822852358222008, 0.022905902937054634, 0.0008364515379071236, -0.048642873764038086, -0.05595952644944191, -0.00811174139380455, -0.03290655463933945, -0.0911824107170105, 0.009430761449038982, -0.01168274600058794, 0.035480253398418427, -0.05048123002052307, -0.006319345440715551, -0.003945569507777691, -0.05838615447282791, -0.034285321831703186, -0.012271019630134106, 0.0193027276545763, 0.07173261046409607, -0.017868811264634132, -0.003816884709522128, 0.011480526998639107, 0.04570150747895241, -0.025626668706536293, -0.012068800628185272, 0.00853915885090828, 0.009568638168275356, 0.04632654786109924, -0.03728184103965759, -0.02487294375896454, 0.005519661121070385, -0.013953114859759808, 0.012188293971121311, 0.03790688142180443, 0.030571844428777695, -0.011241541244089603, -0.06662198901176453, 0.003943271469324827, 0.05680517107248306, -0.033237457275390625, -0.010910636745393276, 0.05470944568514824, -0.07544609159231186, -0.04893701151013374, -0.0039662509225308895, -0.030994664877653122, 0.0036904977168887854, -0.029027625918388367, 0.0729091614484787, 0.0013810641830787063, -0.029505597427487373, -0.07301945984363556, -0.029560748487710953, -0.06577634066343307, 0.02456042356789112, -0.0028586420230567455, 0.04378961771726608, -0.019210809841752052, 0.008819508366286755, -0.0032768677920103073, -0.028954092413187027, -0.039671700447797775, -0.002796597545966506, 0.06540866941213608, 0.04128945246338844, -0.04562797024846077, 0.012022841721773148, 0.07544609159231186, -0.008369111455976963, -0.04389991611242294, -0.05816555395722389, 0.019725549966096878, -0.0020543616265058517, -0.026435544714331627, 0.06496746838092804, 0.060518648475408554, -0.022869136184453964, 0.006264194846153259 ]
718,618
autopage
_encoding
null
def _encoding(self) -> str: return getattr(self._out, 'encoding', 'ascii')
(self) -> str
[ -0.01216147094964981, -0.01040612068027258, 0.04441288486123085, 0.007029800210148096, 0.012018690817058086, -0.027968022972345352, -0.006756839342415333, -0.008306418545544147, 0.08741477131843567, -0.04407693073153496, 0.015000266954302788, -0.010263340547680855, -0.02435653656721115, 0.023970192298293114, 0.04743645340204239, 0.0210306104272604, -0.04978812113404274, -0.0007222972926683724, 0.0654434934258461, 0.048545096069574356, -0.042229194194078445, 0.00392224220559001, -0.016285283491015434, -0.07021401822566986, -0.014924678020179272, 0.08197234570980072, -0.010616090148687363, -0.06907177716493607, -0.012472226284444332, -0.025196416303515434, -0.03668598458170891, -0.0701468288898468, 0.034435104578733444, 0.007819288410246372, 0.0362156517803669, 0.009809805080294609, -0.03268815204501152, -0.014345159754157066, -0.032016247510910034, -0.039776742458343506, -0.03372960537672043, -0.01224545855075121, -0.058858830481767654, -0.021836895495653152, -0.010851257480680943, -0.017402324825525284, -0.053886737674474716, 0.026137083768844604, 0.025347596034407616, -0.004384176805615425, 0.037895411252975464, 0.025314001366496086, 0.01883012242615223, -0.012010292150080204, -0.017805468291044235, -0.007537927944213152, -0.002378961769863963, -0.042195599526166916, -0.009658626280725002, 0.05116552487015724, -0.06053858995437622, 0.03023570030927658, 0.03330966457724571, -0.0414901003241539, -0.02596910670399666, 0.01951882429420948, -0.01876293122768402, -0.0021899885032325983, 0.01983797922730446, 0.04545433819293976, 0.07189377397298813, -0.020577074959874153, -0.07061716169118881, -0.00466133700683713, 0.019350849092006683, -0.007714303210377693, -0.08835543692111969, -0.01035572774708271, -0.017368730157613754, -0.024339739233255386, 0.020039550960063934, 0.020476289093494415, -0.027464095503091812, 0.004535355139523745, 0.05240854620933533, -0.05116552487015724, -0.020795442163944244, 0.010364126414060593, -0.016545647755265236, 0.010179352946579456, 0.04992249980568886, -0.012782982550561428, 0.005001488607376814, 0.11818799376487732, -0.040314268320798874, -0.032553769648075104, 0.017738277092576027, -0.008860739879310131, 0.0389704592525959, -0.0434386245906353, -0.04925059527158737, 0.06312542408704758, 0.0025301403366029263, -0.010590894147753716, -0.016495253890752792, -0.012144672684371471, 0.010422918014228344, 0.0010152056347578764, 0.02124897763133049, -0.015126248821616173, 0.0052576526068151, 0.0009086458012461662, 0.019938765093684196, -0.027699261903762817, 0.05956432968378067, -0.033124890178442, -0.02218964509665966, 0.004447167739272118, 0.013807636685669422, 0.0054298280738294125, -0.006101732142269611, 0.046193432062864304, -0.017335135489702225, -0.05795175954699516, 0.02958059310913086, 0.03712272271513939, 0.021954478695988655, 0.030437272042036057, 0.019065288826823235, 0.0015989226521924138, 0.013984011486172676, 0.05116552487015724, 0.017839062958955765, -0.0055054170079529285, 0.059295568615198135, -0.021484145894646645, -0.02788403443992138, 0.02778324857354164, -0.01304334495216608, 0.08909453451633453, 0.010994036681950092, -0.01775507442653179, 0.05748142674565315, -0.0609753280878067, -0.010666483081877232, 0.007575722876936197, 0.05365157127380371, -0.041221339255571365, -0.032704949378967285, -0.05677592754364014, 0.05670873820781708, 0.02020752616226673, -0.10515304654836655, -0.016100510954856873, 0.0048881047405302525, 0.03604767471551895, -0.019653204828500748, 0.03309129551053047, 0.019250063225626945, -0.02193768136203289, -0.035879697650671005, -0.02763207070529461, -0.002131196903064847, -0.05365157127380371, 0.05334921553730965, 0.044244907796382904, 0.0012115277349948883, -0.05217337980866432, 0.04380816966295242, -0.06870222836732864, -0.06540989875793457, -0.05482740327715874, -0.07747058570384979, 0.0484779067337513, 0.060303423553705215, 0.05207259580492973, 0.010011376813054085, 0.08452557772397995, -0.022676775231957436, 0.02511242963373661, -0.0007023501093499362, -0.04232998192310333, -0.050023287534713745, 0.015848547220230103, 0.048074763268232346, -0.07337196916341782, 0.06322620809078217, 0.014143588952720165, 0.014219177886843681, -0.04827633500099182, 0.046562980860471725, 0.004214101005345583, -0.07175939530134201, -0.024020584300160408, -0.006446083541959524, -0.07155782729387283, 0.06087454408407211, -0.013547273352742195, 0.003265035804361105, -0.026926571503281593, 0.0029248842038214207, 0.0200563482940197, 0.010859656147658825, 0.04555512219667435, -0.008709562011063099, 0.012774583883583546, 0.026288261637091637, -0.03070603311061859, -0.00795366894453764, -0.016024921089410782, 0.009709019213914871, -0.08734758198261261, -0.0005005163257010281, -0.03253697231411934, -0.009230287745594978, -0.0008068102761171758, -0.05529773607850075, -0.008134243078529835, 0.018746133893728256, 0.06661932915449142, 0.002887089503929019, -0.017805468291044235, -0.028236784040927887, -0.05281168967485428, 0.020677858963608742, -0.0035547944717109203, -0.006315901875495911, -0.022827953100204468, -0.016386069357395172, -0.020627466961741447, -0.02146734669804573, 0.02470928616821766, -0.016612837091088295, 0.07001244276762009, -0.006992005743086338, 0.0829802006483078, -0.011716334149241447, -0.021954478695988655, -0.08009101450443268, -0.02680898830294609, 0.006009345408529043, -0.00923868641257286, 0.03527498245239258, 0.018678944557905197, 0.00663925614207983, -0.017200754955410957, 0.0032713348045945168, 0.10535462200641632, 0.01864534802734852, 0.03008452244102955, 0.001102343201637268, -0.02800161764025688, -0.040784601122140884, -0.03001733124256134, 0.013102136552333832, -0.0032272411044687033, -0.060807354748249054, -0.016654832288622856, 0.01709996908903122, 0.02262638323009014, -0.02564995363354683, 0.06460361182689667, -0.0028345969039946795, 0.0004726952756755054, 0.031512320041656494, -0.014059600420296192, -0.030151711776852608, 0.01473990362137556, 0.03319207951426506, 0.013471684418618679, -0.005228256806731224, 0.019569218158721924, -0.0720953494310379, 0.013429690152406693, -0.03813057765364647, -0.018628550693392754, -0.014361958019435406, -0.014345159754157066, -0.04851150140166283, 0.011296393349766731, 0.04730207473039627, 0.00975941214710474, 0.006605660542845726, -0.015856945887207985, 0.014193981885910034, -0.02417176216840744, -0.002591031603515148, -0.055868856608867645, -0.010338929481804371, -0.022643180564045906, -0.0002797852212097496, 0.03304090350866318, -0.03574531897902489, -0.025700345635414124, 0.06302464008331299, -0.05465942621231079, 0.05909399688243866, -0.03557734191417694, 0.06540989875793457, -0.012740988284349442, -0.021820098161697388, -0.002406257903203368, 0.011590352281928062, -0.0006677050841972232, -0.058321308344602585, 0.07915034890174866, -0.042229194194078445, 0.019602812826633453, -0.004636140540242195, 0.03233540058135986, -0.008482793346047401, 0.0518038347363472, 0.025817928835749626, 0.01785586029291153, -0.012858571484684944, 0.032167427241802216, 0.032704949378967285, 0.018561361357569695, 0.05516335740685463, 0.06635056436061859, -0.0012787181185558438, -0.03406555578112602, 0.02470928616821766, -0.03950798138976097, 0.028270380571484566, -0.0129509586840868, 0.01680601015686989, -0.0035610937047749758, 0.07464858889579773, -0.03020210564136505, -0.04605904966592789, -0.026540225371718407, -0.012531017884612083, -0.030638843774795532, -0.026540225371718407, 0.0017144061857834458, 0.022172847762703896, -0.05113193020224571, -0.017872659489512444, -0.010448114015161991, 0.0066476548090577126, 0.009566240012645721, 0.034871842712163925, 0.012405036017298698, -0.0023495659697800875, -0.01904849149286747, -0.04935138300061226, -0.011598750948905945, -0.027968022972345352, -0.010070168413221836, -0.05516335740685463, -0.021668918430805206, 0.04058302938938141, 0.02517961896955967, -0.018443778157234192, -0.0052240570075809956, -0.028488749638199806, 0.008470195345580578, -0.0005005163257010281, 0.07720182090997696, 0.005072878673672676, -0.02439013123512268, 0.01677241548895836, -0.011489566415548325, 0.006601461209356785, -0.02074505016207695, 0.010800864547491074, 0.016495253890752792, 0.02885829657316208, 0.009700620546936989, -0.022592786699533463, 0.026422642171382904, -0.03910483792424202, -0.07182658463716507, -0.08089729398488998, 0.028925487771630287, -0.03708912432193756, -0.006282306741923094, -0.06312542408704758, -0.060773760080337524, 0.052878882735967636, 0.03514060378074646, -0.07511892169713974, 0.02435653656721115, -0.0039453390054404736, -0.017402324825525284, 0.005299646407365799, -0.0009816103847697377, 0.001050375634804368, 0.033964771777391434, -0.025565965101122856, 0.019854776561260223, 0.025263607501983643, 0.02250880002975464, 0.0014781898353248835, -0.015311023220419884, -0.00017060074605979025, -0.015420207753777504, 0.031159568578004837, 0.01998915709555149, -0.012203464284539223, -0.005282848607748747, 0.05576806887984276, 0.02872391603887081, -0.005492819007486105, 0.018947705626487732, -0.004657137673348188, 0.01876293122768402, -0.021836895495653152, -0.015000266954302788, -0.045185573399066925, 0.008256025612354279, -0.010422918014228344, -0.05990028381347656, -0.007059196010231972, -0.009566240012645721, 0.004686533473432064, -0.057380639016628265, 0.032553769648075104, 0.0072985622100532055, -0.06352856755256653, 0.06356216222047806, -0.009860198013484478, 0.028488749638199806, 0.04202762246131897, -0.027514487504959106, 0.0019023295026272535, 0.021097799763083458, 0.0095410430803895, 0.00912950187921524, 0.013589267618954182, -0.028438355773687363, -0.008684365078806877, -0.014933076687157154, 0.025633154436945915, 0.035846102982759476, -0.014193981885910034, -0.02785043977200985, -0.01760389655828476, 0.04249795526266098, 0.024121370166540146, 0.024087775498628616, -0.0008755755261518061, 0.02008994296193123, 0.03156271204352379, 0.037828221917152405, -0.04918340593576431, 0.044681645929813385, -0.022340822964906693, -0.008373609744012356, 0.01926686055958271, 0.022172847762703896, -0.027615273371338844, -0.05486099794507027, 0.02049308642745018, -0.014370356686413288, 0.03388078138232231, -0.05079597607254982, -0.05069519206881523, -0.020845836028456688, -0.05415549874305725, 0.043740980327129364, 0.044244907796382904, -0.009448656812310219, -0.0038718495052307844, 0.0025931312702596188, -0.019854776561260223, 0.04851150140166283, -0.0062235151417553425, 0.016688426956534386, -0.011413976550102234, 0.04249795526266098, -0.040717411786317825, -0.024944452568888664, 0.0246420968323946, -0.013950415886938572, -0.05603683367371559, -0.013354101218283176, -0.03430072218179703, -0.01383283268660307, -0.08291301131248474, -0.0005474971258081496, 0.03372960537672043, -0.0029857754707336426, 0.0015852745855227113, 0.008608776144683361, 0.06265509128570557, -0.008327416144311428, -0.002273976569995284, 0.05617121234536171, 0.027396904304623604, 0.11429094523191452, -0.05079597607254982, 0.013127333484590054, 0.07693306356668472, 0.05529773607850075, 0.030571652576327324, -0.011632345616817474, -0.08660848438739777, 0.016428064554929733, 0.01123760174959898, -0.026422642171382904, -0.011162012815475464, -0.03611486405134201, -0.013555672019720078, -0.06278946995735168, -0.03235219791531563, -0.01926686055958271, 0.04740285873413086, 0.010851257480680943, 0.02546517923474312, 0.010918447747826576, -0.012279054149985313, -0.061848804354667664, 0.010750471614301205, 0.002754808170720935, -0.01731833815574646, -0.013975612819194794, 0.03132754564285278, 0.04296829178929329, -0.02521321550011635, -0.015924135223031044, -0.010674881748855114, -0.04340502992272377, -0.017234349623322487, 0.0701468288898468, -0.000894472817890346, 0.020862633362412453, -0.056843116879463196, 0.03055485524237156, -0.06409968435764313, -0.03033648617565632, 0.013622863218188286, 0.02168571576476097, -0.00876835361123085, 0.06470439583063126, -0.039810340851545334, 0.06981087476015091, -0.037828221917152405, 0.027581678703427315, -0.009566240012645721, -0.013513678684830666, -0.042766720056533813, -0.06137847155332565, 0.048041168600320816, -0.015823349356651306, -0.0082812225446105, 0.003199944971129298, -0.015420207753777504, -0.010347329080104828, -0.04209481552243233, -0.021232180297374725, -0.03164669871330261, 0.015562986955046654, 0.024726083502173424, -0.0012272754684090614, 0.03322567418217659, 0.05284528434276581, 0.028707118704915047, 0.033460840582847595, 0.03215062990784645, 0.04592467099428177, -0.11019232869148254, -0.026960166171193123, -0.02193768136203289, 0.068534255027771, 0.0012388238683342934, 0.007138984743505716, -0.05378595367074013, -0.01327851228415966, 0.007084392476826906, 0.05267731100320816, 0.027430498972535133, -0.02081224136054516, -0.02596910670399666, 0.035375770181417465, 0.03362881764769554, 0.053953927010297775, -0.0007348955259658396, -0.005387833807617426, 0.00943185854703188, -0.013085339218378067, 0.0019180772360414267, 0.009566240012645721, 0.015403409488499165, -0.05177024006843567, -0.0035128004383295774, 0.010784066282212734, 0.010952042415738106, -0.04851150140166283, -0.060236234217882156, -0.07652992010116577, 0.02096341922879219, -0.03752586245536804, 0.03668598458170891, 0.009028716012835503, -0.010960441082715988, -0.034838248044252396, -0.007147383876144886, -0.043270647525787354, 0.07041558623313904, 0.026002703234553337, 0.0027149140369147062, 0.06893739849328995, 0.08808667212724686, 0.024726083502173424, -0.021131394430994987, 0.03745867311954498, 0.009935786947607994, 0.06577944755554199, -0.03178108111023903, -0.02954699844121933, -0.011220804415643215, -0.08264424651861191, 0.018410181626677513, -0.01825900375843048, 0.03668598458170891, -0.07888158410787582, -0.02225683443248272, 0.028774308040738106, 0.06265509128570557, 0.06063937768340111, -0.04548793286085129, -0.004841911606490612, 0.01662963628768921, 0.03601408004760742, 0.015235433354973793, 0.0008860740344971418, 0.02580113150179386, -0.07054996490478516, 0.010439715348184109, 0.017192354425787926, 0.023180704563856125, -0.02410457283258438, 0.003006772371008992, -0.022676775231957436, -0.026506630703806877, 0.01568896882236004, -0.01035572774708271, -0.024406928569078445, 0.0029248842038214207, 0.023802215233445168, 0.017939848825335503, -0.007756297010928392, -0.024877263233065605, 0.008486993610858917, -0.03141153231263161, -0.03917203098535538, -0.02140015736222267, -0.08230829983949661, -0.028404761105775833, 0.007084392476826906, 0.017402324825525284, 0.022340822964906693, 0.019569218158721924, -0.0002482896961737424, 0.02640584483742714, 0.05664154514670372, 0.05600323528051376, -0.024507714435458183, -0.044715240597724915, -0.004037725739181042, -0.009423459880053997, -0.0531812384724617, 0.06850066035985947, -0.041288528591394424, -0.04330424219369888, -0.031159568578004837, -0.02313031069934368, -0.05848928168416023, 0.027699261903762817, 0.06839987635612488, -0.013337303884327412, -0.053483594208955765, -0.04138931632041931, 0.02665780857205391, 0.03161310404539108, -0.026103489100933075, 0.12074123322963715, -0.02571714296936989, 0.025599559769034386, 0.01290056575089693, -0.019132480025291443, -0.00620671734213829, -0.00839040707796812, 0.0056985896080732346, 0.00023083592532202601, 0.010263340547680855, 0.042195599526166916, -0.047100502997636795, -0.0246420968323946, -0.05502897500991821, -0.04817555099725723, 0.005589405074715614, 0.046630170196294785, 0.011388780549168587, 0.0345022939145565, -0.06409968435764313, 0.03514060378074646, -0.002725412370637059, 0.05190461874008179, -0.021114597097039223, 0.03164669871330261, 0.004417771939188242, 0.03910483792424202, -0.0105153052136302, 0.05560009554028511, -0.0434386245906353, -0.00997778121381998, 0.0615464486181736, 0.0089111328125, 0.03557734191417694, -0.01692359335720539, -0.022643180564045906, 0.022240037098526955, -0.002887089503929019, -0.05133350193500519, 0.07182658463716507, -0.01136358454823494, 0.026926571503281593, -0.0070675951428711414, 0.007550526410341263, 0.0035715920384973288, 0.06833268702030182, 0.04394255205988884, 0.05502897500991821, -0.07041558623313904, 0.011791923083364964, 0.0012325247516855597, 0.0334104485809803, -0.009809805080294609, 0.020325109362602234, 0.00023175454407464713, 0.017402324825525284, -0.029647784307599068, -0.022374417632818222, -0.017486313357949257, -0.00530384574085474, 0.005014087073504925, 0.0465293824672699, -0.010968840681016445, 0.05761580914258957, -0.010742072947323322, 0.04189324378967285, 0.06725763529539108, 0.01060769148170948, 0.04535355046391487, 0.006962609943002462, 0.003993632271885872, 0.015924135223031044, 0.0082812225446105, 0.024121370166540146, -0.012447030283510685, -0.003063464304432273, 0.011682738550007343, 0.019098883494734764, 0.014395552687346935, 0.02749769017100334, 0.006937413476407528, 0.04777240753173828, -0.05795175954699516, 0.0005427728174254298, -0.02020752616226673, 0.039340004324913025, -0.045622311532497406, 0.01568896882236004, 0.05657435581088066, -0.017620693892240524 ]
718,619
autopage
_errors
null
def _errors(self) -> str: if self._set_errors is None: return getattr(self._out, 'errors', ErrorStrategy.STRICT.value) return self._set_errors.value
(self) -> str
[ -0.0011956447269767523, -0.005968554876744747, 0.0792713463306427, 0.034427691251039505, 0.026589933782815933, -0.002831733552739024, 0.01759198307991028, -0.04850471392273903, 0.073771171271801, -0.03544178605079651, 0.019972529262304306, -0.012409782037138939, 0.036576200276613235, -0.008211597800254822, 0.04492959752678871, 0.016672421246767044, -0.021450703963637352, -0.02707120031118393, 0.050326649099588394, 0.04396706819534302, 0.008817476220428944, -0.007799083832651377, -0.01705915294587612, -0.038123127073049545, -0.043004535138607025, 0.04327954351902008, 0.06259892880916595, -0.05304236337542534, 0.04427645355463028, -0.00965109746903181, -0.09590939432382584, -0.013123086653649807, 0.012779325246810913, -0.005259547382593155, -0.024492990225553513, -0.0286696907132864, -0.00029998543323017657, -0.002670595422387123, -0.03100726753473282, -0.010364402085542679, -0.057167500257492065, 0.051873575896024704, -0.014437973499298096, -0.002904782770201564, -0.02646961808204651, -0.02188040502369404, -0.01619975082576275, 0.049089111387729645, -0.0358886756002903, -0.018717801198363304, 0.03511521592736244, 0.0508422926068306, -0.035579290241003036, -0.025868035852909088, 0.035373035818338394, -0.016431787982583046, 0.005014617461711168, -0.016491947695612907, -0.01656069979071617, -0.046442147344350815, -0.02617742121219635, 0.04630464315414429, 0.019267819821834564, -0.0393950417637825, 0.03465113788843155, 0.001803672406822443, 0.013965302146971226, 0.01580442488193512, 0.0538673922419548, 0.06349270790815353, -0.0043851048685610294, -0.05194232985377312, -0.062255166471004486, -0.011017548851668835, 0.04613276198506355, -0.04214513301849365, -0.048092201352119446, 0.0033581180032342672, -0.014197340235114098, -0.03121352382004261, -0.0109659843146801, 0.09398433566093445, 0.00890341680496931, 0.04362330585718155, 0.06163639575242996, -0.04578900337219238, -0.038810648024082184, 0.018219348043203354, -0.00679358234629035, 0.011524596251547337, -0.006376771721988916, 0.014395003207027912, -0.018872493878006935, 0.029632221907377243, -0.06026135012507439, 0.05599871277809143, -0.05060166120529175, -0.02363358810544014, 0.012066020630300045, -0.03329328075051308, -0.011283963918685913, 0.063836470246315, 0.04104509577155113, 0.03922316059470177, 0.03501208499073982, 0.0209350623190403, 0.00643263291567564, -0.027638405561447144, 0.0508422926068306, 0.0038007106631994247, 0.0065615433268249035, -0.015890365466475487, -0.01450672559440136, 0.010183927603065968, 0.04272952675819397, -0.048435963690280914, -0.04252326861023903, -0.0408732146024704, -0.026538370177149773, -0.012934017926454544, -0.003070217790082097, -0.008198706433176994, -0.02318669855594635, -0.0071717193350195885, 0.057717517018318176, 0.04080446437001228, -0.01495361514389515, 0.021846028044819832, 0.0892404243350029, -0.04991413652896881, 0.04541086405515671, 0.006183405872434378, 0.03284639120101929, -0.03633556514978409, -0.0007449951372109354, 0.007579936180263758, -0.00289189163595438, 0.021502267569303513, 0.017488854005932808, 0.0299072302877903, -0.0028038029558956623, 0.03585430234670639, -0.011791011318564415, -0.017179470509290695, 0.009659691713750362, 0.01690446026623249, 0.040116939693689346, 0.04558274522423744, -0.012100396677851677, 0.014652824029326439, 0.030990079045295715, -0.035373035818338394, -0.02882438339293003, -0.056273721158504486, -0.047989074140787125, 0.0269336961209774, -0.006355286575853825, 0.007356491405516863, 0.02887594699859619, -0.03446206822991371, -0.035819925367832184, -0.09742194414138794, -0.0040112645365297794, -0.013062928803265095, 0.06672406196594238, 0.03784811496734619, 0.02995879575610161, -0.03661057725548744, 0.02772434614598751, 0.034633949398994446, -0.008091281168162823, 0.027139952406287193, -0.0020657903514802456, 0.04867659509181976, 0.007687361445277929, 0.0687866285443306, 0.01505674421787262, 0.10312838107347488, -0.049879759550094604, 0.05290485918521881, 0.00502321170642972, 0.011455844156444073, -0.052423592656850815, 0.0628395602107048, 0.04097634553909302, 0.0038866507820785046, -0.014893457293510437, -0.017024777829647064, -0.0100979870185256, 0.00977141410112381, 0.041663866490125656, 0.038673143833875656, 0.033087022602558136, 0.015984898433089256, -0.020058469846844673, -0.018425604328513145, 0.01904437504708767, -0.06294269114732742, 0.07844632118940353, -0.0433826744556427, -0.08298397064208984, 0.010923014022409916, -0.034633949398994446, 0.035269904881715775, -0.022310106083750725, 0.033619850873947144, -0.009556563571095467, -0.03798561915755272, -0.03599180653691292, 0.0018734988989308476, -0.03050881251692772, -0.002868258161470294, -0.03654182329773903, 0.016285689547657967, 0.043554551899433136, -0.05998634174466133, 0.06301144510507584, -0.00015509541844949126, -0.06352708488702774, 0.06541777402162552, 0.05737375468015671, -0.0518391989171505, 0.0712960883975029, -0.02638367749750614, -0.04520460590720177, 0.04431082680821419, -0.015116902068257332, -0.028738442808389664, -0.02811967208981514, 0.03743560239672661, 0.006355286575853825, 0.047989074140787125, -0.035373035818338394, 0.037469979375600815, -0.044792093336582184, 0.05211420729756355, -0.005994337145239115, -0.029975982382893562, 0.062152039259672165, -0.017188062891364098, -0.05565495043992996, -0.03963567316532135, 0.015391911379992962, 0.08504653722047806, 0.03850126266479492, -0.00466226227581501, 0.00696546258404851, 0.035373035818338394, -0.031196335330605507, 0.03722934424877167, 0.04492959752678871, -0.035373035818338394, -0.012332435697317123, -0.0055388533510267735, 0.028927510604262352, -0.03336203098297119, -0.0334135964512825, 0.029357213526964188, 0.0364043191075325, -0.018786553293466568, 0.050189144909381866, 0.050326649099588394, -0.03425581008195877, 0.02203509770333767, -0.010106581263244152, 0.012108990922570229, 0.002700674580410123, -0.00756704481318593, -0.026899319142103195, 0.0892404243350029, 0.03853563964366913, 0.028858758509159088, -0.10800979286432266, -0.03169478848576546, -0.039463795721530914, -0.0017649992369115353, -0.01694743148982525, 0.02463049441576004, -0.012040238827466965, -0.002735050627961755, 0.01820215955376625, -0.03171197697520256, 0.01705055870115757, 0.03623243793845177, 0.000504093652125448, -0.00874872412532568, 0.008112765848636627, -0.08009637892246246, -0.0024514475371688604, -0.019061563536524773, -0.004859924782067537, -0.04376081004738808, 0.012341029942035675, -0.03750435635447502, 0.024114852771162987, -0.053626757115125656, 0.03281201422214508, -0.0777587965130806, 0.01890687085688114, 0.002883297624066472, -0.030388496816158295, -0.012306653894484043, 0.010888637974858284, 0.04266077280044556, -0.04396706819534302, -0.026349302381277084, 0.003366712015122175, -0.0349089577794075, 0.03654182329773903, -0.015048149973154068, -0.06101762503385544, 0.028102483600378036, -0.032382313162088394, 0.010544877499341965, 0.03826063126325607, -0.0007605717983096838, 0.01468720007687807, 0.005805268418043852, -0.008306131698191166, 0.09542813152074814, -0.008280349895358086, -0.031093206256628036, 0.03705746680498123, -0.052836108952760696, 0.001256877207197249, -0.018975622951984406, 0.024149229750037193, -0.044792093336582184, 0.04871097207069397, -0.009376089088618755, -0.07198361307382584, -0.09927825629711151, -0.020866310223937035, -0.005238062236458063, 0.02696807123720646, -0.033774543553590775, 0.037710610777139664, -0.0832589790225029, 0.004713826347142458, -0.004516163840889931, 0.00539705203846097, -0.012581662274897099, -0.008662784472107887, 0.0117136649787426, 0.004408738110214472, 0.013655916787683964, -0.04678590968251228, -0.007102967239916325, 0.0028123969677835703, -0.008387775160372257, -0.013724668882787228, 0.03401517868041992, -0.040254443883895874, 0.01271057315170765, 0.013002770021557808, -0.030526001006364822, -0.030680693686008453, 0.05747688561677933, 0.026349302381277084, 0.05637684836983681, 0.02074599266052246, -0.015022367238998413, 0.007455322425812483, 0.01935376040637493, 0.008181517943739891, 0.0100979870185256, 0.010183927603065968, -0.05091104283928871, 0.04891723021864891, -0.025644591078162193, -0.0011043330887332559, -0.0006048050126992166, -0.011180835776031017, -0.05723625048995018, -0.04730154946446419, 0.08903416991233826, 0.03306983411312103, 0.022516364231705666, -0.025661779567599297, -0.04578900337219238, 0.01423171628266573, -0.02098662592470646, -0.06287393718957901, 0.020470984280109406, -0.018030278384685516, -0.003409682074561715, -0.05654872953891754, -0.022997628897428513, -0.011473032645881176, 0.054726794362068176, 0.027913415804505348, -0.013621540740132332, -0.0057966746389865875, 0.015615356154739857, -0.0388793982565403, 0.02628054842352867, 0.004627886228263378, 0.002365507185459137, 0.008679972030222416, 0.00804831087589264, -0.011017548851668835, -0.0343933142721653, -0.016122404485940933, 0.04352017864584923, -0.008469418622553349, -0.01725681684911251, 0.015477851033210754, 0.04761093482375145, -0.034582383930683136, 0.024819564074277878, -0.008606922812759876, -0.00025338964769616723, -0.008594031445682049, -0.03829500451683998, -0.02557583898305893, -0.006570137105882168, -0.045342110097408295, -0.0037233643233776093, 0.03465113788843155, -0.01864904910326004, -0.031677599996328354, 0.018236534669995308, 0.039566922932863235, 0.056961242109537125, 0.021949157118797302, 0.004971647635102272, -0.0319010466337204, 0.04183574765920639, 0.01980064995586872, 0.050326649099588394, 0.006054495461285114, 0.02976972609758377, -0.05458929017186165, -0.04517023265361786, -0.010029234923422337, -0.03286357596516609, -0.020058469846844673, 0.029236895963549614, -0.012298059649765491, 0.041216976940631866, 0.04541086405515671, 0.05720187723636627, 0.034977708011865616, 0.07817131280899048, 0.08312147855758667, -0.019886590540409088, -0.018683426082134247, -0.005564635619521141, -0.06562402844429016, -0.008215893991291523, -0.026607122272253036, -0.005195092409849167, -0.04052945598959923, -0.046098385006189346, 0.026400865986943245, 0.04757656157016754, -0.04616713896393776, -0.04080446437001228, -0.07796505838632584, -0.03970442712306976, 0.021777275949716568, 0.033224526792764664, -0.06803035736083984, 0.05541431903839111, -0.04307328909635544, -0.013965302146971226, 0.015323158353567123, 0.051186054944992065, -0.03116196021437645, 0.019525639712810516, -0.02064286358654499, -0.0016532768495380878, -0.02583365887403488, -0.004606401082128286, -0.046992167830467224, 0.02591959945857525, -0.03026817925274372, 0.0071674226783216, -0.01785839907824993, -0.0234273299574852, -0.056961242109537125, -0.026349302381277084, 0.015202842652797699, -0.025111760944128036, 0.016913054510951042, -0.010991767048835754, -0.038913775235414505, -0.014309062622487545, -0.03349953517317772, -0.0004761630843859166, 0.007867836393415928, -0.02088349685072899, -0.02921970747411251, -0.0777587965130806, -0.03832938149571419, 0.023255450651049614, 0.01859748549759388, -0.011576160788536072, -0.03121352382004261, 0.040563829243183136, 0.03411830589175224, -0.02573053166270256, -0.02652118168771267, -0.015323158353567123, 0.0251805130392313, -0.07989011704921722, 0.02038504369556904, -0.015615356154739857, 0.01880374178290367, -0.03257137909531593, 0.0030229506082832813, 0.024802375584840775, -0.010390184819698334, 0.034324564039707184, -0.008753021247684956, -0.04307328909635544, 0.009126861579716206, 0.020917873829603195, -0.0043657682836055756, 0.03784811496734619, -0.06517713516950607, 0.013673104345798492, -0.05620496720075607, -0.019680332392454147, -0.030302556231617928, 0.037710610777139664, -0.02956346981227398, -0.009977671317756176, -0.0319010466337204, 0.00974563229829073, 0.031832292675971985, -0.0239429734647274, 0.034668322652578354, 0.0518391989171505, -0.02583365887403488, 0.0368855856359005, 0.002653407398611307, 0.005328299943357706, -0.08037138730287552, 0.02528364211320877, -0.022774184122681618, 0.009608127176761627, 0.0031045940704643726, -0.014429379254579544, 0.036369942128658295, -0.034083928912878036, -0.0075842333026230335, 0.010579253546893597, -0.007322114892303944, -0.025249265134334564, -0.005465804133564234, -0.0005309500265866518, 0.007631500251591206, -0.025043008849024773, 0.007738925516605377, 0.00533689372241497, 0.03970442712306976, 0.079752616584301, 0.012005862779915333, -0.026693062856793404, 0.0016060096677392721, -0.06514275819063187, -0.007339303381741047, 0.004915786441415548, -0.03719497099518776, -0.017789645120501518, -0.0065271672792732716, 0.006784988101571798, -0.06486774981021881, 0.01789277419447899, -0.0166982039809227, 0.04675153270363808, 0.005345487967133522, -0.005195092409849167, -0.006243564188480377, 0.0013524857349693775, 0.0187006127089262, 0.055964335799217224, 0.010106581263244152, 0.04891723021864891, 0.029150955379009247, 0.016182562336325645, 0.0334135964512825, 0.00887763500213623, 0.01789277419447899, 0.013269185088574886, 0.015099713578820229, 0.0024772295728325844, -0.0032979596871882677, -0.024544555693864822, -0.03967005014419556, -0.0483672097325325, -0.03922316059470177, -0.010304244235157967, 0.02573053166270256, 0.030594753101468086, 0.00679358234629035, -0.032880764454603195, 0.013002770021557808, 0.028858758509159088, 0.006974056828767061, 0.04781719297170639, 0.03416987136006355, -0.009135455824434757, 0.016474759206175804, -0.011137865483760834, 0.04176699370145798, 0.06957728415727615, 0.007442431524395943, 0.056617483496665955, -0.033826109021902084, -0.06342395395040512, -0.0056763580068945885, -0.06902726739645004, -0.03870752081274986, -0.010897232219576836, 0.06022697687149048, 0.02353045903146267, -0.01375904493033886, 0.011103489436209202, 0.038466885685920715, 0.03181510418653488, -0.04193887487053871, -0.0015211435966193676, 0.025369582697749138, 0.05489867553114891, -0.040460702031850815, 0.0016769104404374957, -0.05101417377591133, -0.06761784106492996, -0.012504315935075283, 0.05737375468015671, 0.07851507514715195, -0.08099015802145004, -0.03997943550348282, 0.05840504169464111, 0.01719665713608265, -0.007532668765634298, 0.03908565640449524, -0.0058568324893713, -0.03551054000854492, 0.02308356948196888, -0.021399138495326042, 0.019233442842960358, -0.044895220547914505, 0.07122733443975449, -0.06751471757888794, -0.012134772725403309, 0.044104572385549545, -0.029443152248859406, -0.014601260423660278, 0.06624279916286469, 0.006913898512721062, -0.009737038053572178, 0.03729809820652008, 0.05269860476255417, 0.005925585050135851, -0.019560016691684723, -0.011833981610834599, -0.02552427537739277, -0.09089048206806183, -0.03494333475828171, -0.020316291600465775, -0.048092201352119446, 0.06308019161224365, 0.03105883114039898, -0.008946387097239494, -0.02143351547420025, 0.01785839907824993, -0.03520115464925766, -0.033430784940719604, -0.019285008311271667, 0.01076832227408886, 0.0042282636277377605, -0.0702991783618927, 0.058061279356479645, 0.03695433586835861, 0.005672060884535313, 0.018666237592697144, -0.06919914484024048, -0.013621540740132332, 0.0708148255944252, -0.03650744631886482, -0.02253355085849762, -0.0004906654939986765, 0.02727745659649372, -0.04877972602844238, 0.06765221804380417, 0.029236895963549614, -0.005169310141354799, -0.03764186054468155, -0.025214890018105507, 0.0076014213263988495, 0.04513585567474365, -0.0057966746389865875, -0.002515902742743492, 0.03843250870704651, 0.017188062891364098, 0.01167069561779499, -0.003190534422174096, 0.013200432993471622, 0.0033258902840316296, -0.020213162526488304, -0.04482647031545639, 0.02213822677731514, -0.022499175742268562, 0.03394642472267151, -0.04252326861023903, -0.06411147862672806, -0.016045058146119118, 0.04424207657575607, 0.038810648024082184, 0.015271594747900963, -0.027552466839551926, -0.05788939818739891, -0.10725351423025131, 0.07225862145423889, 0.011928516440093517, -0.0005945995799265802, 0.009367494843900204, -0.03236512467265129, 0.011679288931190968, -0.0021313198376446962, 0.04097634553909302, 0.03301826864480972, 0.09185301512479782, -0.008319023065268993, -0.0343933142721653, 0.059401948004961014, -0.017110716551542282, -0.0017359944758936763, 0.014738764613866806, -0.027844663709402084, 0.03729809820652008, -0.013019958510994911, 0.017316974699497223, -0.013604352250695229, -0.023719528689980507, 0.010579253546893597, 0.023203885182738304, 0.0803026333451271, 0.004236857872456312, -0.00402415543794632, -0.03301826864480972, -0.03410111740231514, -0.006836552172899246, 0.015641137957572937, 0.06211766228079796, -0.03630119189620018, -0.011060519143939018, 0.005762298125773668, -0.031076019629836082, 0.020814744755625725, -0.012452752329409122, 0.0189412459731102, -0.030801009386777878, -0.0007406981312669814, -0.007545560132712126, 0.033327654004096985, 0.0398763082921505, -0.05747688561677933, -0.005345487967133522, -0.017127905040979385, 0.07102108001708984, 0.018511544913053513, 0.07404617965221405, -0.04939849674701691, 0.009307336062192917 ]
718,620
autopage
_flush_output
null
def _flush_output(self) -> None: try: if not self._out.closed: self._out.flush() except BrokenPipeError: self._exit_code = _signal_exit_code(signal.SIGPIPE) try: # Other end of pipe already closed, so close the stream now # and handle the error. If we leave the stream open with # unflushed data, then it will print an unhandleable # exception during Python's interpreter shutdown. self._out.close() except BrokenPipeError: # This will always happen pass
(self) -> NoneType
[ -0.03688724339008331, -0.011105452664196491, -0.045385949313640594, 0.03935115411877632, 0.019443469122052193, 0.0024817651137709618, -0.028549226000905037, 0.045064568519592285, 0.04160081222653389, -0.0532061867415905, 0.01372112613171339, -0.0368158258497715, 0.018693583086133003, -0.036030229181051254, -0.009819934144616127, 0.038565557450056076, -0.030245397239923477, 0.0047091045416891575, 0.01782764308154583, 0.015506568364799023, -0.024174891412258148, 0.03629804775118828, -0.02542470209300518, -0.06009799614548683, -0.010310930199921131, -0.015667257830500603, -0.03149520605802536, -0.04127943143248558, 0.019979102537035942, 0.012292771600186825, -0.04210073500871658, -0.010168095119297504, 0.0033119958825409412, -0.016631396487355232, 0.020157646387815475, -0.007378341164439917, -0.020264772698283195, -0.060597918927669525, 0.07705970108509064, 0.0892007052898407, 0.01261415146291256, -0.0011365457903593779, -0.026995891705155373, -0.02192523516714573, -0.023496422916650772, 0.02872776985168457, -0.06413309276103973, 0.0956282988190651, 0.04145797714591026, -0.009650317020714283, -0.03206654638051987, 0.03949398919939995, 0.00882901344448328, 0.004642150364816189, 0.06224052608013153, 0.026674510911107063, 0.054634541273117065, -0.03636946529150009, -0.004802840296179056, -0.06309753656387329, -0.05620573088526726, 0.028888460248708725, -0.05827684327960014, -0.0235142782330513, 0.04799269512295723, -0.005847324151545763, 0.0018747146241366863, 0.030156124383211136, -0.0378870889544487, 0.03874410316348076, -0.03319137543439865, 0.009668171405792236, -0.06906091421842575, 0.053670402616262436, -0.009569971822202206, 0.015551204793155193, -0.022175196558237076, 0.0029370528645813465, 0.011248287744820118, -0.014899518340826035, 0.0682753250002861, 0.05434887111186981, 0.0066507733426988125, 0.03390555456280708, 0.01830078661441803, -0.035923104733228683, 0.03235222026705742, -0.0009858990088105202, -0.03710149601101875, -0.014453156851232052, -0.0022306872997432947, 0.07391732186079025, -0.01755090057849884, 0.005851787980645895, 0.05902672931551933, 0.009444991126656532, -0.04777844250202179, -0.002390261273831129, -0.019282778725028038, -0.04531453177332878, 0.013703271746635437, 0.05067085847258568, 0.030066851526498795, -0.02660309337079525, 0.043886177241802216, -0.024067765101790428, 0.049421049654483795, -0.0065704286098480225, -0.04035099968314171, -0.008717423304915428, 0.02563895471394062, -0.031030992045998573, -0.01059660129249096, -0.04435039311647415, 0.007882729172706604, -0.03724433109164238, -0.0540274903178215, 0.05052802339196205, 0.05524159222841263, 0.014221049845218658, 0.004293989390134811, 0.03508394584059715, 0.008953994140028954, 0.006972153205424547, -0.010257367044687271, 0.025781789794564247, -0.019622012972831726, 0.013006948865950108, 0.034941110759973526, 0.0623476542532444, -0.02138960175216198, 0.07191762328147888, -0.0013067207764834166, -0.01956845074892044, -0.03386984393000603, 0.008936139754951, -0.028763478621840477, -0.023478569462895393, 0.010087749920785427, -0.03753000125288963, -0.016747450456023216, -0.05309906229376793, -0.00603479566052556, -0.0064543746411800385, 0.053884655237197876, 0.07116773724555969, 0.06456160545349121, 0.004418970085680485, 0.007762211374938488, -0.04045812785625458, 0.02467481605708599, 0.008753132075071335, -0.07491716742515564, 0.03820846974849701, 0.013747907243669033, 0.006436520256102085, -0.06923945993185043, 0.007445295341312885, -0.05788404867053032, -0.01692599430680275, -0.056134313344955444, -0.050170935690402985, 0.05077798664569855, -0.005606289487332106, -0.03449475020170212, 0.007481004111468792, -0.01671174168586731, 0.022746538743376732, 0.04338625445961952, -0.012935531325638294, -0.00025637837825343013, 0.046028707176446915, -0.017470555379986763, -0.010730509646236897, -0.012328480370342731, 0.07591701298952103, 0.03286999836564064, 0.014926299452781677, -0.05809830129146576, 0.0047091045416891575, -0.00882901344448328, -0.05520588159561157, -0.03340562805533409, -0.004950139205902815, -0.0007699721027165651, -0.01752411760389805, 0.009257519617676735, -0.02501405030488968, -0.026353131979703903, -0.010185949504375458, -0.02744225226342678, -0.009641389362514019, -0.0007906162645667791, 0.014256758615374565, 0.02906700409948826, -0.014622773975133896, -0.01741699129343033, -0.006262439768761396, 0.0854869857430458, -0.025585390627384186, -0.024317726492881775, 0.021246766671538353, 0.013381891883909702, -0.04460035264492035, -0.008458534255623817, 0.02596033364534378, 0.015560131520032883, -0.002597818849608302, -0.01978270336985588, -0.007896119728684425, 0.01767588034272194, -0.031030992045998573, -0.016193963587284088, -0.02587106265127659, -0.010578746907413006, -0.012703423388302326, 0.036030229181051254, -0.0513136200606823, -0.032387927174568176, 0.02649596706032753, -0.03820846974849701, -0.04788556694984436, -0.005619680508971214, 0.006436520256102085, -0.04938533902168274, 0.02724585309624672, -0.0005506974412128329, 0.002718336181715131, 0.017774080857634544, -0.009650317020714283, -0.01684565097093582, 0.05777692049741745, -0.05438457801938057, 0.002667004708200693, -0.04310058429837227, 0.0019093075534328818, -0.022692974656820297, -0.014149632304906845, -0.11398264765739441, 0.0006740045500919223, -0.05142074450850487, -0.11105452477931976, -0.013944306410849094, -0.011792847886681557, -0.01714024879038334, 0.02767436020076275, 0.04185077175498009, 0.0050170933827757835, 0.058883894234895706, 0.03279858082532883, 0.04967101290822029, -0.021978797391057014, 0.007400659378618002, -0.048564035445451736, 0.044528935104608536, -0.08484423160552979, -0.060062285512685776, -0.05663423612713814, 0.03731574863195419, 0.027585087344050407, -0.021246766671538353, 0.04585016518831253, -0.0005328429979272187, -0.026424549520015717, 0.03508394584059715, -0.012444534339010715, -0.012649860233068466, -0.025139030069112778, 0.029852598905563354, 0.04149368405342102, 0.06095500662922859, -0.02246086671948433, -0.07266750931739807, 0.0029370528645813465, -0.04610012471675873, 0.08805802464485168, 0.021443163976073265, -0.01705990359187126, 0.011310778558254242, 0.008717423304915428, 0.10119888186454773, 0.02562110126018524, 0.054848793894052505, -0.008860258385539055, 0.0015845802845433354, 0.06499011069536209, 0.005280446261167526, -0.0005649251979775727, -0.0020164342131465673, -0.0421721525490284, 0.002584428060799837, 0.0029125032015144825, 0.005061729811131954, 0.0049947756342589855, -0.028995586559176445, 0.009248591959476471, -0.03588739410042763, -0.07541709393262863, 0.010605528950691223, 0.007039107382297516, -0.008123763836920261, -0.06481156498193741, 0.03842272236943245, 0.05459883436560631, -0.03660157322883606, 0.012587369419634342, -0.0035396397579461336, -0.030191833153367043, -0.005691098049283028, -0.0011940146796405315, -0.03231650963425636, 0.03649444505572319, -0.020711133256554604, -0.03274501487612724, 0.02404991164803505, 0.009007557295262814, 0.008454070426523685, 0.038779810070991516, -0.016568906605243683, 0.025603245943784714, -0.05234917625784874, -0.004182399250566959, 0.09477128833532333, 0.033762719482183456, 0.017640171572566032, 0.030709611251950264, 0.0416722297668457, 0.030459649860858917, 0.003945827949792147, -0.0956282988190651, -0.022175196558237076, -0.026263859122991562, -0.019943393766880035, -0.012837331742048264, 0.017193811014294624, -0.024835506454110146, 0.010016332380473614, -0.057526957243680954, 0.01750626415014267, -0.05934811010956764, -0.04035099968314171, 0.07827380299568176, 0.049313921481370926, -0.015720821917057037, 0.013471163809299469, 0.040065329521894455, -0.034637585282325745, -0.03554816171526909, -0.01058767456561327, 0.060383666306734085, 0.04349337890744209, 0.004552878439426422, 0.005124220158904791, -0.00878437701612711, 0.04902825132012367, -0.008887040428817272, 0.013685417361557484, 0.04477889835834503, 0.016640324145555496, 0.036333754658699036, 0.05859822407364845, -0.016515342518687248, 0.009668171405792236, 0.01643499918282032, 0.0005417701904661953, -0.06041937693953514, -0.011998173780739307, 0.05424174293875694, -0.005338473245501518, 0.0763455256819725, -0.054527416825294495, -0.01084656361490488, -0.012408825568854809, -0.07920222729444504, 0.0014495562063530087, 0.04035099968314171, -0.002526401076465845, 0.044207558035850525, 0.039958205074071884, -0.005869642365723848, 0.011837484315037727, -0.027906466275453568, -0.02330002561211586, -0.06698980182409286, -0.025281867012381554, -0.013212274760007858, -0.002974993549287319, -0.015354805625975132, 0.03483398258686066, -0.018747147172689438, -0.00989135168492794, -0.008521024137735367, 0.03685153275728226, -0.040922343730926514, 0.02001481130719185, 0.03874410316348076, -0.002890184987336397, 0.0037762110587209463, -0.0015577985905110836, 0.03286999836564064, -0.05981232598423958, 0.005454526748508215, -0.044314682483673096, 0.05195637792348862, 0.05288480967283249, -0.07506000250577927, 0.0389583557844162, -0.05670565366744995, 0.08098767697811127, -0.00798092782497406, -0.03753000125288963, 0.0034860766027122736, -0.008587978780269623, 0.012033882550895214, 0.01538158766925335, 0.009855642914772034, 0.04670717567205429, -0.05099223926663399, 0.051884960383176804, 0.025031903758645058, -0.003057570429518819, 0.06491868942975998, 0.04874258115887642, 0.03340562805533409, 0.030388232320547104, -0.035923104733228683, -0.03333421051502228, -0.02435343526303768, -0.015015571378171444, 0.030477503314614296, 0.0336020290851593, -0.01935419626533985, -0.07991641014814377, 0.10005620121955872, 0.033459194004535675, 0.08155901730060577, 0.018336495384573936, -0.002403652062639594, 0.01548871397972107, 0.03054892085492611, 0.03461972996592522, 0.0502423532307148, 0.0011705807410180569, 0.0030084706377238035, 0.07784529775381088, 0.0006572660058736801, 0.06434734910726547, 0.01967557705938816, -0.017907988280057907, 0.04510027915239334, 0.005753588397055864, -0.015970783308148384, -0.02031833678483963, -0.07748820632696152, -0.04160081222653389, -0.006271366961300373, 0.017756225541234016, 0.04992097243666649, -0.05370611324906349, -0.009489626623690128, -0.01090012677013874, 0.05145645514130592, -0.014988790266215801, 0.02797788381576538, -0.005945523735135794, 0.019300634041428566, -0.015149479731917381, 0.016720669344067574, -0.03212011232972145, 0.0307631753385067, 0.033673446625471115, 0.022746538743376732, -0.006244585383683443, -0.004202485550194979, -0.023496422916650772, -0.026978036388754845, -0.015390514396131039, 0.006641846150159836, -0.0480998232960701, -0.003490540198981762, -0.07698827981948853, 0.03924402594566345, 0.019532741978764534, 0.016185035929083824, -0.03513750806450844, -0.017104540020227432, 0.05674136430025101, -0.049849554896354675, -0.01756875403225422, 0.039315443485975266, 0.02094324119389057, -0.021782398223876953, -0.030370377004146576, -0.04531453177332878, 0.02063971571624279, -0.006048186682164669, -0.07555992901325226, -0.00791843794286251, 0.04235069826245308, -0.09234308451414108, 0.004079736303538084, -0.033369921147823334, -0.044850315898656845, -0.01733664609491825, 0.0513136200606823, -0.06013370305299759, 0.027638649567961693, -0.014917372725903988, -0.011926756240427494, 0.008628151379525661, -0.016095764935016632, 0.011783921159803867, -0.012551660649478436, 0.01637250743806362, 0.011346487328410149, 0.009552117437124252, 0.03328064829111099, -0.02894202433526516, -0.0005247527151368558, 0.04492173343896866, 0.0070748161524534225, 0.03053106740117073, -0.01881856471300125, -0.03435191512107849, -0.041136596351861954, 0.013221202418208122, 0.020193355157971382, 0.035744559019804, -0.0038744104094803333, -0.023585695773363113, -0.01170357596129179, -0.007623839657753706, -0.012390971183776855, -0.00898970291018486, 0.03320923075079918, -0.009935988113284111, 0.003896728390827775, -0.04652863368391991, -0.053884655237197876, -0.04531453177332878, -0.04967101290822029, 0.03542317822575569, 0.004046258982270956, -0.0287456251680851, 0.016363581642508507, -0.020050520077347755, 0.003896728390827775, 0.054848793894052505, 0.015247679315507412, 0.000669540953822434, -0.038994066417217255, -0.017738372087478638, 0.059098146855831146, 0.028370682150125504, -0.05288480967283249, 0.023657113313674927, -0.012640933506190777, 0.07238183915615082, 0.011525031179189682, 0.00791843794286251, 0.047742731869220734, 0.06577569991350174, 0.01804189756512642, -0.02044331654906273, 0.045278821140527725, -0.036565862596035004, -0.006918590050190687, 0.0427434928715229, 0.007788992952555418, -0.004869794473052025, -0.023442860692739487, 0.028156429529190063, -0.05520588159561157, -0.059098146855831146, 0.06331179291009903, -0.02212163247168064, 0.03486969321966171, 0.09127182513475418, -0.03924402594566345, -0.032209381461143494, -0.049313921481370926, -0.02712087146937847, -0.03663728013634682, -0.04970671981573105, -0.025513973087072372, -0.026121024042367935, 0.030173979699611664, -0.01821151375770569, -0.014283540658652782, 0.038029927760362625, -0.0311738271266222, 0.016086837276816368, -0.010373421013355255, -0.09905634820461273, 0.019854120910167694, 0.021621709689497948, 0.02756723202764988, -0.021675271913409233, -0.01159644965082407, -0.0036065939348191023, 0.004860867280513048, 0.08413004875183105, 0.025067612528800964, 0.023657113313674927, 0.025246158242225647, -0.019425615668296814, 0.013649708591401577, 0.05374182015657425, 0.013096220791339874, 0.0301025602966547, -0.05841967836022377, 0.05988374352455139, 0.06888237595558167, -0.010007405653595924, -0.03370915353298187, -0.019961247220635414, 0.010293075814843178, -0.0044859242625534534, -0.008284453302621841, 0.08470139652490616, 0.06795394420623779, -0.008534415625035763, -0.028567081317305565, -0.007869337685406208, -0.02244301326572895, 0.029638346284627914, 0.004829621873795986, 0.007231042254716158, -0.03256647288799286, -0.03160233423113823, -0.0012542733456939459, 0.030673902481794357, -0.021318184211850166, 0.01765802688896656, 0.006775754503905773, 0.02851351723074913, -0.061347804963588715, -0.002693786518648267, -0.006329393945634365, -0.011221506632864475, 0.02767436020076275, -0.036780115216970444, 0.008244280703365803, -0.03444118797779083, 0.020496880635619164, -0.043243419378995895, -0.027942175045609474, 0.01680101454257965, -0.01755090057849884, -0.06656129658222198, 0.03449475020170212, 0.047742731869220734, 0.015970783308148384, -0.0032718235161155462, 0.000551813340280205, -0.048135530203580856, 0.08034491539001465, 0.007155160885304213, -0.0005677149165421724, 0.004704641178250313, -0.0071328431367874146, -0.018657874315977097, 0.03827988728880882, -0.030495358631014824, 0.041993606835603714, 0.012257062830030918, -0.03235222026705742, 0.05109936371445656, -0.055063046514987946, -0.03565528616309166, -0.044743191450834274, -0.0311738271266222, -0.08948638290166855, -0.05159929022192955, -0.06798965483903885, -0.014301395043730736, 0.04413614049553871, -0.018889982253313065, -0.00245944713242352, 0.013649708591401577, -0.00989135168492794, -0.036744408309459686, -0.009953842498362064, -0.01171250268816948, -0.002707177307456732, 0.026567384600639343, -0.010980471968650818, -0.044743191450834274, -0.015756530687212944, -0.039743952453136444, 0.04210073500871658, -0.010087749920785427, -0.010114531964063644, -0.05695561692118645, -0.06823961436748505, -0.016211818903684616, 0.0067400457337498665, -0.05142074450850487, -0.004224803298711777, 0.00018802941485773772, 0.05149216204881668, -0.005226883105933666, 0.022300176322460175, 0.013239056803286076, 0.006262439768761396, 0.044421810656785965, 0.013310474343597889, 0.012828405015170574, -0.01924706995487213, 0.017586609348654747, -0.008030028082430363, 0.008708495646715164, -0.04445751756429672, 0.034316204488277435, -0.014917372725903988, -0.00024898553965613246, -0.016077909618616104, -0.00243266555480659, 0.010364494286477566, 0.019729139283299446, -0.04281491041183472, -0.020479025319218636, -0.031013136729598045, -0.005610753316432238, -0.01797940582036972, -0.025031903758645058, -0.04492173343896866, 0.0008140502031892538, 0.021228911355137825, 0.023978494107723236, -0.011525031179189682, -0.003974841441959143, 0.04363621398806572, 0.029656199738383293, 0.02171098068356514, 0.012141008861362934, 0.005356327630579472, 0.0066775549203157425, 0.05434887111186981, -0.0021190971601754427, 0.04020816460251808, -0.0876295194029808, 0.017452700063586235, -0.0827731192111969, 0.06666842103004456, -0.004372102208435535, -0.000776109576690942, 0.04745706170797348, -0.041350848972797394, 0.007597058080136776, -0.004633223172277212, -0.00365792540833354, -0.040708091109991074, 0.037387166172266006, 0.039315443485975266, 0.006164240185171366, -0.06545432657003403, 0.049849554896354675, -0.011899974197149277, 0.054527416825294495, 0.029852598905563354, 0.030781028792262077, 0.008338016457855701, 0.009534263052046299, 0.07463149726390839, 0.0359945222735405, -0.0032562008127570152, -0.008248744532465935 ]