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
|
|---|---|---|---|---|---|---|
9,945
|
transformers.utils.hub
|
_get_files_timestamps
|
Returns the list of files with their last modification timestamp.
|
def _get_files_timestamps(self, working_dir: Union[str, os.PathLike]):
"""
Returns the list of files with their last modification timestamp.
"""
return {f: os.path.getmtime(os.path.join(working_dir, f)) for f in os.listdir(working_dir)}
|
(self, working_dir: Union[str, os.PathLike])
|
[
0.03021559864282608,
0.013753244653344154,
-0.028752679005265236,
0.05082288756966591,
0.009066485799849033,
-0.007161078508943319,
-0.04305677488446236,
0.052917931228876114,
0.032310642302036285,
0.011721412651240826,
0.02091432362794876,
-0.05237611010670662,
0.02228693850338459,
-0.01957782916724682,
0.012967602349817753,
0.03911953791975975,
-0.03418895974755287,
0.02728975936770439,
-0.06624674797058105,
-0.0376746766269207,
0.008601421490311623,
-0.038975052535533905,
-0.01136922836303711,
0.023876281455159187,
0.01683259755373001,
0.020083529874682426,
0.0002615983539726585,
-0.042695559561252594,
0.03422508016228676,
-0.016868719831109047,
-0.02400270663201809,
-0.0012213566806167364,
-0.006664408836513758,
-0.027307821437716484,
-0.04811377823352814,
0.009508972987532616,
-0.01677841693162918,
0.026513148099184036,
-0.026151934638619423,
-0.02136584185063839,
0.03169657662510872,
-0.00040834175888448954,
-0.02813861332833767,
0.019902922213077545,
0.02458065003156662,
-0.0006699401419609785,
0.00456710672006011,
0.008578846231102943,
0.026332540437579155,
0.0035195844247937202,
0.03084772266447544,
0.0019054068252444267,
-0.0175189059227705,
-0.02086014114320278,
0.0038221015129238367,
0.022088270634412766,
-0.005242126062512398,
0.03182300180196762,
0.0013353651156648993,
0.0006135003641247749,
0.015487073920667171,
-0.03444180637598038,
0.040239300578832626,
0.00720623042434454,
0.031443726271390915,
0.003977875225245953,
-0.015143920667469501,
-0.040925610810518265,
-0.029619593173265457,
0.04572976380586624,
-0.02188960276544094,
-0.03308725357055664,
0.009116152301430702,
0.019541706889867783,
-0.03355683386325836,
-0.03821650147438049,
-0.023767918348312378,
0.0057523418217897415,
-0.02739812433719635,
-0.0019200810929760337,
-0.07253188639879227,
-0.02210633084177971,
-0.02365955337882042,
0.0637543722987175,
0.05168980360031128,
-0.0034834628459066153,
0.04836662858724594,
-0.0330691933631897,
-0.04963088035583496,
0.02987244352698326,
-0.04377920553088188,
0.024725137278437614,
-0.0011485493741929531,
0.024996047839522362,
-0.005734281148761511,
-0.021221354603767395,
-0.039552994072437286,
-0.006325770169496536,
-0.0058065238408744335,
0.023352520540356636,
0.02916807495057583,
-0.004569364245980978,
0.0026504117995500565,
0.011576926335692406,
0.09832260012626648,
-0.0025104412343353033,
-0.04284004494547844,
-0.07881701737642288,
-0.03418895974755287,
0.0019110507564619184,
-0.03814425691962242,
0.030865784734487534,
0.04526018351316452,
-0.004889942239969969,
0.026151934638619423,
-0.014665311202406883,
0.009256122633814812,
-0.03556157276034355,
0.03366519510746002,
-0.02078789845108986,
0.06180381029844284,
0.009472851641476154,
0.011730442754924297,
0.00978891458362341,
-0.014565977267920971,
-0.032419007271528244,
0.02734394185245037,
0.001162659376859665,
0.02503216825425625,
0.04749971628189087,
-0.020228015258908272,
0.009170334786176682,
0.02848176844418049,
0.070075623691082,
0.048222143203020096,
-0.005300823599100113,
-0.01341009046882391,
0.062345631420612335,
0.04038378596305847,
0.048041537404060364,
0.02073371596634388,
-0.02573653683066368,
0.054254427552223206,
0.029204197227954865,
0.004183316137641668,
-0.017825938761234283,
-0.00987921841442585,
0.041106216609478,
-0.015875380486249924,
0.010123037733137608,
0.03308725357055664,
-0.013798396103084087,
-0.013419120572507381,
0.029420925304293633,
-0.017961394041776657,
-0.0033005981240421534,
0.007662263698875904,
-0.020264137536287308,
-0.019054068252444267,
-0.032996948808431625,
-0.04078112542629242,
-0.04237046837806702,
0.028066370636224747,
-0.057758208364248276,
0.03213003650307655,
0.027073031291365623,
-0.029547350481152534,
0.06386273354291916,
-0.0450434572994709,
0.024707075208425522,
0.04703013598918915,
0.00858336128294468,
0.05692741274833679,
-0.03187718614935875,
-0.004589682444930077,
-0.0019178235670551658,
0.03875832259654999,
0.003655039705336094,
0.05038943141698837,
0.0384693518280983,
0.0013929336564615369,
-0.03825262188911438,
-0.018512245267629623,
0.0424065887928009,
0.015432892367243767,
0.0432012602686882,
-0.030865784734487534,
-0.0001576080685481429,
-0.0057523418217897415,
-0.017076417803764343,
-0.002245174255222082,
0.015125859528779984,
-0.02515859343111515,
-0.012163899838924408,
-0.04536854848265648,
0.047933172434568405,
-0.0068495310842990875,
-0.021438084542751312,
0.010890618897974491,
0.014484703540802002,
-0.012236143462359905,
-0.006705045234411955,
0.01820521429181099,
-0.02958347275853157,
0.0183135773986578,
-0.0021401962731033564,
-0.04518794268369675,
-0.016155321151018143,
-0.015062646940350533,
0.014286035671830177,
0.03911953791975975,
-0.04800541326403618,
-0.04916130006313324,
-0.04674116522073746,
-0.009536064229905605,
-0.006384467240422964,
0.002618805505335331,
0.029709897935390472,
-0.03785528615117073,
-0.03364713490009308,
0.002505925949662924,
-0.000867479364387691,
-0.10764193534851074,
-0.016931932419538498,
0.053279146552085876,
0.009680550545454025,
0.04544079303741455,
0.02257590927183628,
-0.0013432666892185807,
-0.0698227733373642,
0.030576812103390694,
-0.014638219960033894,
0.00858336128294468,
-0.017365390434861183,
-0.009653459303081036,
-0.05790269374847412,
0.053279146552085876,
-0.03559769317507744,
0.006425104103982449,
-0.03686194494366646,
-0.028048310428857803,
0.024201374500989914,
0.04641607031226158,
0.012452871538698673,
-0.018160061910748482,
-0.07679421454668045,
0.029113894328475,
0.037710800766944885,
0.024779317900538445,
-0.004998306278139353,
0.05392933264374733,
0.07076193392276764,
-0.021293597295880318,
0.00892651453614235,
0.023189974948763847,
-0.00650637736544013,
-0.03980584442615509,
0.002794897649437189,
0.04518794268369675,
-0.001175076118670404,
0.08965345472097397,
0.026350602507591248,
-0.06418782472610474,
-0.06711366772651672,
-0.0072197760455310345,
-0.030685177072882652,
0.042081497609615326,
0.009653459303081036,
-0.10735296458005905,
0.035922788083553314,
0.10020092129707336,
-0.06462128460407257,
-0.0703284740447998,
-0.02315385267138481,
-0.07256800681352615,
0.01970425434410572,
0.01854836754500866,
-0.025465626269578934,
-0.002131165936589241,
0.015198102220892906,
-0.039661359041929245,
-0.011071226559579372,
-0.0026955637149512768,
0.01694096252322197,
-0.04518794268369675,
0.031389545649290085,
-0.04439326748251915,
0.008867816999554634,
-0.025194715708494186,
0.029998868703842163,
0.026097752153873444,
0.044032055884599686,
0.008745907805860043,
-0.06357376277446747,
0.006664408836513758,
-0.014602098613977432,
0.0007269443012773991,
-0.07874477654695511,
0.07571057230234146,
0.0013635850045830011,
-0.057685963809490204,
0.05634947121143341,
0.03760243579745293,
-0.016624899581074715,
-0.05988937243819237,
-0.0024743196554481983,
0.005639462266117334,
-0.05165368318557739,
-0.01653459668159485,
-0.018449032679200172,
0.054254427552223206,
-0.041106216609478,
0.03664521872997284,
0.025862962007522583,
-0.009170334786176682,
-0.02039056271314621,
-0.02320803515613079,
0.011531774885952473,
-0.023244157433509827,
0.04760807752609253,
-0.01854836754500866,
0.05078676715493202,
0.02877073921263218,
-0.0011197651037946343,
0.09673325717449188,
-0.059636522084474564,
0.04078112542629242,
0.025935204699635506,
0.01912631094455719,
0.06509086489677429,
0.03498363122344017,
-0.049305785447359085,
0.011233773082494736,
0.010321705602109432,
0.005038943141698837,
0.06971441209316254,
0.010511343367397785,
-0.022160513326525688,
0.06147871911525726,
-0.010953831486403942,
0.022160513326525688,
-0.033737439662218094,
-0.046668920665979385,
0.02918613702058792,
-0.0012540917377918959,
0.01832260936498642,
0.05667456239461899,
0.020553108304739,
0.027994127944111824,
-0.037530191242694855,
0.055627040565013885,
0.02940286509692669,
-0.07556608319282532,
0.06064792349934578,
-0.0068495310842990875,
0.01780787855386734,
-0.016272716224193573,
0.002961959457024932,
-0.012750874273478985,
0.04883620887994766,
-0.0476803220808506,
0.032996948808431625,
0.05609662085771561,
-0.04562139883637428,
0.027470367029309273,
0.011929110623896122,
0.06133423373103142,
-0.00936448760330677,
0.002155999420210719,
-0.02855401113629341,
-0.008267298340797424,
0.028626253828406334,
0.03940850868821144,
-0.018006546422839165,
0.014159610494971275,
-0.023984646424651146,
-0.0005223501357249916,
0.03142566606402397,
-0.08488541841506958,
0.06418782472610474,
-0.01808781921863556,
-0.010529404506087303,
0.04656055569648743,
0.027994127944111824,
-0.01936110109090805,
0.044429391622543335,
0.05118410289287567,
-0.09153176844120026,
0.036681339144706726,
-0.007174624130129814,
-0.015035555697977543,
-0.06198441982269287,
-0.0037995255552232265,
0.0324009470641613,
0.011938140727579594,
-0.038686078041791916,
0.07079805433750153,
0.016516536474227905,
-0.016688112169504166,
-0.05559092015028,
0.059130821377038956,
-0.0025984873063862324,
-0.04168416187167168,
0.010664859786629677,
-0.008059599436819553,
-0.03249124810099602,
-0.002819731133058667,
0.009346426464617252,
-0.049089059233665466,
0.03498363122344017,
-0.02234112098813057,
-0.015171011909842491,
0.029890505596995354,
0.0035444179084151983,
0.004641606938093901,
0.07881701737642288,
-0.08365729451179504,
-0.018403882160782814,
0.04934190958738327,
0.023912403732538223,
-0.031732700765132904,
-0.0798284187912941,
0.01554125640541315,
0.01550513505935669,
0.010926740244030952,
0.021329719573259354,
-0.003208036767318845,
0.03727734088897705,
-0.06855852156877518,
0.023478945717215538,
0.04179252311587334,
0.05165368318557739,
-0.02234112098813057,
0.005797493737190962,
0.0858968198299408,
-0.03561575710773468,
-0.008470481261610985,
-0.05486849322915077,
-0.04251495376229286,
0.029908565804362297,
-0.019776497036218643,
0.04164803773164749,
0.08264589309692383,
0.0034157352056354284,
0.020805958658456802,
-0.03807201609015465,
-0.05288181081414223,
0.00360311521217227,
0.02866237610578537,
0.02199796587228775,
-0.01447567343711853,
-0.0036821309477090836,
0.05089513212442398,
-0.03671745955944061,
0.02434586174786091,
-0.004113330971449614,
-0.07563833147287369,
-0.016959022730588913,
-0.049486394971609116,
-0.05342363193631172,
-0.045910369604825974,
0.02831922098994255,
0.07925047725439072,
-0.06649959832429886,
0.035525452345609665,
-0.11999547481536865,
-0.0476803220808506,
-0.04381532594561577,
-0.032419007271528244,
0.02521277591586113,
0.08394626528024673,
-0.0026910484302788973,
-0.0711231455206871,
-0.010141098871827126,
-0.021239416673779488,
-0.03077547997236252,
-0.037819165736436844,
0.019632011651992798,
-0.00890393927693367,
-0.04515181854367256,
-0.0038221015129238367,
-0.03232870250940323,
-0.009418669156730175,
0.026206117123365402,
0.0023795010056346655,
-0.045513033866882324,
0.029818261042237282,
-0.01872897520661354,
-0.04352635517716408,
-0.07997290045022964,
0.01085449755191803,
0.007373291999101639,
-0.01134213712066412,
0.021004626527428627,
-0.015649620443582535,
0.022828759625554085,
0.010077886283397675,
0.051039617508649826,
-0.006280618254095316,
0.030414266511797905,
0.04703013598918915,
-0.005955525208264589,
-0.008980697020888329,
0.06155095994472504,
-0.0004850998520851135,
0.033863864839076996,
-0.011676260270178318,
-0.04789705201983452,
-0.0466328002512455,
-0.020535048097372055,
0.010412009432911873,
0.007982841692864895,
-0.02441810443997383,
0.007088835816830397,
-0.0014121232088655233,
-0.05421830341219902,
-0.022937124595046043,
0.01706738770008087,
0.021961845457553864,
0.015234223566949368,
-0.06288745254278183,
-0.01986679993569851,
0.03825262188911438,
-0.03440568596124649,
0.006682469509541988,
0.04265943914651871,
-0.00890393927693367,
0.009554125368595123,
0.021149111911654472,
0.04128682240843773,
-0.010005643591284752,
-0.025068290531635284,
0.015803137794137,
-0.01602889597415924,
-0.011089286766946316,
-0.009102607145905495,
0.020805958658456802,
-0.029475107789039612,
-0.04146743193268776,
-0.02562817372381687,
0.02952929027378559,
-0.002901004394516349,
0.06339315325021744,
0.009111637249588966,
0.021582569926977158,
0.022485606372356415,
-0.058155544102191925,
-0.03279828280210495,
0.03157015144824982,
-0.0002562365843914449,
0.012651540338993073,
-0.060395073145627975,
-0.019902922213077545,
0.03789140656590462,
-0.03021559864282608,
-0.023912403732538223,
0.0387222021818161,
-0.05306242033839226,
-0.02539338357746601,
0.004948639310896397,
-0.011296985670924187,
0.009102607145905495,
-0.006285133305937052,
0.016164351254701614,
-0.064296193420887,
0.010231402702629566,
0.03482108190655708,
0.05598825588822365,
-0.04085336625576019,
0.01936110109090805,
0.017049327492713928,
0.07831131666898727,
-0.014520824886858463,
-0.08344056457281113,
0.03205779194831848,
-0.01022237166762352,
-0.010818376205861568,
0.0033299466595053673,
0.000055346252338495106,
-0.04388757050037384,
0.004637091886252165,
-0.00858336128294468,
0.07256800681352615,
-0.0023907888680696487,
-0.004659667611122131,
-0.039950329810380936,
-0.022016027942299843,
0.00890393927693367,
-0.01965007185935974,
0.04222598299384117,
-0.031786881387233734,
0.018873460590839386,
0.015152950771152973,
-0.0074545652605593204,
0.03324979916214943,
-0.01091771014034748,
-0.03716897964477539,
-0.009454791434109211,
0.012606387957930565,
0.0007799976738169789,
0.018232304602861404,
-0.010077886283397675,
-0.014331188052892685,
0.03453211113810539,
-0.029619593173265457,
-0.08026187121868134,
0.034152835607528687,
-0.0007297662668861449,
-0.02826503850519657,
0.06747487932443619,
-0.023533128201961517,
0.019722314551472664,
0.08575233817100525,
-0.03613951802253723,
0.10034540295600891,
0.05371260643005371,
0.010520374402403831,
0.07003950327634811,
0.03521841764450073,
-0.020571168512105942,
-0.06888361275196075,
0.021040748804807663,
-0.004029799718409777,
0.04771644249558449,
-0.002119877841323614,
-0.04818602278828621,
-0.006831470411270857,
0.010150128975510597,
-0.0004441810306161642,
-0.004813184030354023,
-0.00003947256846004166,
-0.03680776432156563,
0.06252624094486237,
-0.02756066992878914,
0.03422508016228676,
-0.014520824886858463,
-0.007955750450491905,
-0.08401850610971451,
-0.01854836754500866,
0.029890505596995354,
0.006316739600151777,
-0.063212551176548,
0.012696691788733006,
-0.019487526267766953,
-0.055807650089263916,
-0.018765095621347427,
0.01860255002975464,
-0.0038401621859520674,
0.04692177101969719,
-0.02120329439640045,
0.016272716224193573,
-0.025122473016381264,
-0.03577830269932747,
-0.030305901542305946,
-0.06946156173944473,
-0.012741843238472939,
-0.01438536960631609,
-0.004479060415178537,
0.025483686476945877,
-0.019884862005710602,
0.028626253828406334,
-0.012570266611874104,
-0.010682920925319195,
-0.007364261895418167,
-0.0037250251043587923,
-0.08806411176919937,
-0.04912517964839935,
0.04280392453074455,
0.055229704827070236,
0.010511343367397785,
0.07679421454668045,
-0.006118071731179953,
0.009545094333589077,
0.0071023814380168915,
-0.01889152079820633,
-0.022485606372356415,
0.028499828651547432,
0.05974488705396652,
0.03901117295026779,
-0.06516310572624207,
0.0007517777848988771,
0.05038943141698837,
-0.020950444042682648,
-0.0009600405464880168,
0.004147194791585207,
0.049414150416851044,
0.02349700778722763,
0.026747938245534897,
0.03825262188911438,
0.005038943141698837,
-0.050750646740198135,
-0.015225193463265896,
-0.0006332542980089784,
-0.0006287390715442598,
-0.018566427752375603,
0.022846821695566177,
0.008289874531328678,
0.057758208364248276,
0.035128116607666016,
-0.0260796919465065,
-0.008777514100074768,
0.03037814423441887,
0.025285018607974052,
-0.006682469509541988,
0.008077660575509071,
-0.052412234246730804,
-0.026964666321873665,
-0.018024606630206108,
-0.05140083283185959,
-0.029709897935390472,
0.00204537739045918,
-0.0031245059799402952,
0.013798396103084087,
-0.012588327750563622,
0.025700416415929794,
-0.04117846116423607,
0.03659103438258171,
-0.045693643391132355,
0.11385482549667358,
-0.020697593688964844,
-0.00939157884567976,
0.013455241918563843,
0.0026775028090924025,
0.08705271035432816,
-0.021167173981666565,
-0.011188620701432228,
0.014060276560485363,
-0.06046731770038605,
-0.039083413779735565,
0.0009792300406843424,
-0.001977649750187993,
-0.02089626155793667,
0.0026120326947420835,
-0.03525454178452492,
-0.00936448760330677,
-0.0004582909750752151,
0.017247995361685753,
-0.0067772879265248775,
-0.044646117836236954,
0.07119538635015488,
-0.005648492835462093,
0.009080030955374241,
-0.05537419021129608,
0.0484749935567379,
-0.02682018093764782,
-0.04670504108071327,
-0.007793203927576542,
0.01545095257461071,
-0.03263573721051216,
-0.007662263698875904,
0.03101027011871338,
-0.06577716767787933,
-0.07253188639879227,
-0.05790269374847412,
0.0007816908764652908,
0.030685177072882652,
0.008858786895871162,
-0.017717573791742325,
0.026910483837127686,
0.03864995762705803,
0.01607404835522175,
-0.04760807752609253,
0.009400608949363232,
-0.00375437387265265,
0.048511113971471786,
0.01131504587829113,
-0.04265943914651871,
0.027018848806619644
] |
9,946
|
transformers.utils.hub
|
_upload_modified_files
|
Uploads all modified files in `working_dir` to `repo_id`, based on `files_timestamps`.
|
def _upload_modified_files(
self,
working_dir: Union[str, os.PathLike],
repo_id: str,
files_timestamps: Dict[str, float],
commit_message: Optional[str] = None,
token: Optional[Union[bool, str]] = None,
create_pr: bool = False,
revision: str = None,
commit_description: str = None,
):
"""
Uploads all modified files in `working_dir` to `repo_id`, based on `files_timestamps`.
"""
if commit_message is None:
if "Model" in self.__class__.__name__:
commit_message = "Upload model"
elif "Config" in self.__class__.__name__:
commit_message = "Upload config"
elif "Tokenizer" in self.__class__.__name__:
commit_message = "Upload tokenizer"
elif "FeatureExtractor" in self.__class__.__name__:
commit_message = "Upload feature extractor"
elif "Processor" in self.__class__.__name__:
commit_message = "Upload processor"
else:
commit_message = f"Upload {self.__class__.__name__}"
modified_files = [
f
for f in os.listdir(working_dir)
if f not in files_timestamps or os.path.getmtime(os.path.join(working_dir, f)) > files_timestamps[f]
]
# filter for actual files + folders at the root level
modified_files = [
f
for f in modified_files
if os.path.isfile(os.path.join(working_dir, f)) or os.path.isdir(os.path.join(working_dir, f))
]
operations = []
# upload standalone files
for file in modified_files:
if os.path.isdir(os.path.join(working_dir, file)):
# go over individual files of folder
for f in os.listdir(os.path.join(working_dir, file)):
operations.append(
CommitOperationAdd(
path_or_fileobj=os.path.join(working_dir, file, f), path_in_repo=os.path.join(file, f)
)
)
else:
operations.append(
CommitOperationAdd(path_or_fileobj=os.path.join(working_dir, file), path_in_repo=file)
)
if revision is not None:
create_branch(repo_id=repo_id, branch=revision, token=token, exist_ok=True)
logger.info(f"Uploading the following files to {repo_id}: {','.join(modified_files)}")
return create_commit(
repo_id=repo_id,
operations=operations,
commit_message=commit_message,
commit_description=commit_description,
token=token,
create_pr=create_pr,
revision=revision,
)
|
(self, working_dir: Union[str, os.PathLike], repo_id: str, files_timestamps: Dict[str, float], commit_message: Optional[str] = None, token: Union[bool, str, NoneType] = None, create_pr: bool = False, revision: Optional[str] = None, commit_description: Optional[str] = None)
|
[
-0.010006309486925602,
-0.038204167038202286,
-0.09998641908168793,
0.08158400654792786,
-0.027565274387598038,
-0.06525187194347382,
-0.022657964378595352,
0.056702420115470886,
-0.030440649017691612,
0.006800265051424503,
0.02564835548400879,
-0.026472629979252815,
0.02164199948310852,
-0.022983841598033905,
-0.047041155397892,
-0.00548717612400651,
-0.0012316195061430335,
-0.03960351645946503,
-0.014645249582827091,
-0.014999879524111748,
-0.00811335351318121,
0.001960048219189048,
0.018335316330194473,
0.06854896992444992,
0.06072794646024704,
-0.006843395531177521,
0.04876638203859329,
-0.0008332600700668991,
0.016495075076818466,
-0.03504125028848648,
0.010648476891219616,
0.0019696326926350594,
-0.011443997733294964,
0.010207585990428925,
0.009977555833756924,
-0.007116556167602539,
0.002575857797637582,
0.03772493824362755,
-0.05812093988060951,
-0.015277832746505737,
-0.03168664500117302,
0.008650090545415878,
0.018172377720475197,
-0.04370572045445442,
-0.008199614472687244,
0.013562191277742386,
-0.05321362987160683,
0.06072794646024704,
0.011750704608857632,
0.07314956933259964,
-0.024210667237639427,
0.014405635185539722,
-0.022427935153245926,
-0.008803443983197212,
0.032338399440050125,
0.04313064366579056,
0.02491992712020874,
0.02491992712020874,
0.014951956458389759,
-0.018622852861881256,
0.011252305470407009,
0.03651727735996246,
0.08196739107370377,
-0.00685777235776186,
-0.00020292369299568236,
0.01152067445218563,
0.026587646454572678,
-0.030804865062236786,
-0.010456784628331661,
0.07050422579050064,
-0.043015629053115845,
-0.011175628751516342,
0.021910367533564568,
0.013916821219027042,
-0.01926502026617527,
0.04362904280424118,
0.02202538214623928,
0.01999344862997532,
0.018450330942869186,
0.004583829082548618,
0.021929536014795303,
-0.06437008827924728,
0.0074040936306118965,
0.03168664500117302,
0.08426769077777863,
0.004059072583913803,
0.028523731976747513,
-0.043782394379377365,
-0.06590362638235092,
-0.013705960474908352,
-0.04048529639840126,
0.00856862124055624,
0.022849656641483307,
-0.03849170356988907,
-0.020050957798957825,
-0.023884791880846024,
-0.041137050837278366,
-0.03415947034955025,
-0.051565080881118774,
0.037782445549964905,
-0.009709186851978302,
-0.0054584224708378315,
-0.015469524078071117,
-0.022562118247151375,
0.04332233592867851,
-0.040293604135513306,
-0.04596768319606781,
-0.06460011750459671,
-0.04608269780874252,
-0.028255363926291466,
-0.015019048936665058,
-0.016811367124319077,
0.03743739798665047,
-0.007811438757926226,
0.0012603732757270336,
-0.017894424498081207,
-0.009862540289759636,
0.0021134016569703817,
-0.013782637193799019,
-0.03469620645046234,
0.06755217164754868,
-0.01609252206981182,
0.04236387833952904,
0.023865623399615288,
0.03201252222061157,
-0.0045982059091329575,
0.04370572045445442,
-0.005698037333786488,
-0.0012250300496816635,
-0.029750559478998184,
-0.03716903179883957,
0.0120574114844203,
0.02348223887383938,
0.03291347250342369,
0.04328399896621704,
-0.008836989291012287,
-0.0036157856229692698,
0.01891997642815113,
0.02198704332113266,
-0.0036685008089989424,
0.056702420115470886,
-0.05321362987160683,
0.03513709828257561,
-0.010955183766782284,
-0.04746287688612938,
0.031073233112692833,
-0.016782613471150398,
-0.02568669430911541,
0.0048929317854344845,
0.04351402819156647,
0.010217170231044292,
-0.042555566877126694,
-0.022657964378595352,
0.0656735971570015,
0.0026884768158197403,
-0.025705862790346146,
0.010475954040884972,
-0.038376688957214355,
-0.03655561804771423,
0.03274095058441162,
0.015594123862683773,
-0.024421529844403267,
0.06874065846204758,
0.011146875098347664,
0.036804817616939545,
0.008784274570643902,
-0.021450307220220566,
0.024824080988764763,
-0.051181696355342865,
0.012881685979664326,
0.08725808560848236,
0.07150102406740189,
0.04638940468430519,
-0.00529548479244113,
-0.012191595509648323,
0.019466297701001167,
0.01588166132569313,
-0.03053649514913559,
-0.011137290857732296,
-0.0025015773717314005,
-0.04907308891415596,
0.00602870574221015,
0.05214015766978264,
0.0318400003015995,
0.015431186184287071,
0.044510822743177414,
-0.016255460679531097,
0.02398063801229,
0.005027116276323795,
-0.028600409626960754,
-0.013878482393920422,
-0.031360771507024765,
-0.00833859108388424,
0.03145661577582359,
-0.016840120777487755,
0.042670585215091705,
-0.0033689825795590878,
-0.024440698325634003,
0.0683189406991005,
0.053136952221393585,
-0.011233136989176273,
0.0035007705446332693,
0.0701591819524765,
-0.04159710928797722,
-0.021929536014795303,
0.005904105957597494,
0.011328982189297676,
-0.010399277321994305,
-0.03141827881336212,
-0.0180381927639246,
0.015134063549339771,
0.004023130517452955,
-0.04876638203859329,
0.01706056483089924,
-0.011348151601850986,
0.01836406998336315,
0.04428079351782799,
0.005678867921233177,
-0.02641512267291546,
0.016974303871393204,
0.04098369553685188,
0.05091333016753197,
-0.09783946722745895,
-0.04362904280424118,
0.08863826841115952,
-0.006551065482199192,
0.05762254074215889,
0.031034894287586212,
0.0031030101235955954,
-0.03772493824362755,
-0.01222993340343237,
-0.025840047746896744,
0.01245996356010437,
-0.016974303871393204,
-0.03789746016263962,
-0.03971853107213974,
0.04393574967980385,
-0.06022954732179642,
-0.00131548463832587,
-0.02815951779484749,
0.0050606620498001575,
-0.051603417843580246,
0.0010369325755164027,
0.03929680958390236,
-0.04359070211648941,
-0.09461905062198639,
-0.007734762039035559,
0.017894424498081207,
0.007768308278173208,
0.00560219120234251,
0.041827138513326645,
0.060881298035383224,
-0.0911685973405838,
0.013590944930911064,
0.022351257503032684,
0.01738644205033779,
0.024479037150740623,
-0.021335292607545853,
0.05884936824440956,
-0.013332161121070385,
0.012517470866441727,
-0.03743739798665047,
-0.019389620050787926,
0.0036133895628154278,
-0.0037092354614287615,
-0.058926042169332504,
0.06636368483304977,
-0.023712269961833954,
-0.02028098702430725,
0.05321362987160683,
0.03277928754687309,
0.028907116502523422,
-0.014252281747758389,
0.006412088871002197,
-0.029712220653891563,
-0.01752062514424324,
0.015057386830449104,
-0.02164199948310852,
0.009292257949709892,
0.035367127507925034,
0.02896462380886078,
-0.05348199978470802,
0.03826167434453964,
0.030594002455472946,
0.01978258788585663,
0.04405076429247856,
-0.01852700673043728,
0.01130981370806694,
-0.015517447143793106,
-0.013303407467901707,
-0.00951270293444395,
0.08610793203115463,
0.020913569256663322,
-0.033488549292087555,
-0.02348223887383938,
-0.012766670435667038,
-0.034983742982149124,
-0.024613220244646072,
0.0772901102900505,
-0.041405417025089264,
-0.06996748596429825,
0.07038921117782593,
0.03492623567581177,
-0.08296418935060501,
-0.004130957182496786,
-0.04405076429247856,
0.04155877232551575,
-0.035194605588912964,
-0.0024728234857320786,
0.005952029023319483,
0.011252305470407009,
-0.0014197169803082943,
-0.004344214219599962,
0.016111692413687706,
0.049226440489292145,
-0.005156508181244135,
0.034638699144124985,
0.009062227793037891,
-0.019082913175225258,
0.023673931136727333,
0.018019024282693863,
0.04477919265627861,
-0.018239470198750496,
0.012095749378204346,
0.04635106399655342,
-0.047347862273454666,
-0.0001454910379834473,
0.030383141711354256,
-0.008084599860012531,
-0.005966405849903822,
0.013830559328198433,
0.00907660461962223,
0.033488549292087555,
-0.02296467125415802,
-0.022178735584020615,
-0.012680409476161003,
-0.0006553461425937712,
-0.014175605028867722,
0.08380763232707977,
0.018996652215719223,
-0.018594099208712578,
-0.009253919124603271,
-0.003014352871105075,
0.06536688655614853,
-0.016667596995830536,
0.025111619383096695,
0.06785888224840164,
0.0191595908254385,
0.012325779534876347,
-0.019629234448075294,
0.024843251332640648,
-0.010648476891219616,
-0.019916772842407227,
0.013150054030120373,
-0.02390396036207676,
-0.040255267173051834,
0.015402432531118393,
0.012565393932163715,
0.007030294742435217,
-0.032300058752298355,
-0.037015676498413086,
0.0070638409815728664,
0.03983354568481445,
0.0020115652587264776,
0.0013286634348332882,
0.015574954450130463,
0.00975710991770029,
0.0040830341167747974,
-0.07587159425020218,
-0.04642774164676666,
0.06252984702587128,
0.008070223033428192,
-0.019629234448075294,
-0.03477288410067558,
-0.048114627599716187,
0.06548190116882324,
-0.04527759179472923,
-0.005343407392501831,
-0.07786519080400467,
-0.0036373508628457785,
-0.02674099989235401,
-0.0013825767673552036,
0.01926502026617527,
0.011750704608857632,
0.00035462973755784333,
0.030632341280579567,
0.05842764675617218,
-0.06153305247426033,
0.03636392578482628,
0.038338348269462585,
-0.014578158035874367,
-0.05716247856616974,
-0.03130326420068741,
-0.0036493316292762756,
-0.018019024282693863,
-0.058159276843070984,
0.06927739828824997,
0.0038985309656709433,
-0.025705862790346146,
-0.025533340871334076,
0.02576337195932865,
-0.012076579965651035,
0.005094208288937807,
0.04121372476220131,
0.01894873008131981,
-0.02097107656300068,
0.0029041299130767584,
0.033277686685323715,
-0.01982092671096325,
0.09492575377225876,
-0.005501553416252136,
0.04474085569381714,
0.0029472606256604195,
-0.007921661250293255,
-0.03444700688123703,
0.029309669509530067,
-0.11156459897756577,
-0.023712269961833954,
-0.030057266354560852,
-0.014511065557599068,
-0.02509245090186596,
0.026223432272672653,
0.03979520872235298,
0.03877924010157585,
-0.016073353588581085,
0.01364845223724842,
0.01881454512476921,
-0.021872028708457947,
-0.04562263563275337,
0.015594123862683773,
0.022082889452576637,
0.07142434269189835,
-0.051220037043094635,
0.04274725914001465,
0.07613996416330338,
-0.0086213368922472,
-0.02610841579735279,
-0.02771862782537937,
-0.0092491265386343,
0.06854896992444992,
-0.033565226942300797,
0.012766670435667038,
0.03201252222061157,
-0.06973745673894882,
0.0380508117377758,
-0.03881758078932762,
-0.054287102073431015,
-0.029539698734879494,
-0.007758723571896553,
0.023961469531059265,
-0.010265093296766281,
0.06690041720867157,
0.018977483734488487,
-0.020357664674520493,
0.006527103949338198,
-0.021718675270676613,
-0.034006115049123764,
0.01843116246163845,
-0.05367368832230568,
-0.06801223009824753,
-0.009675641544163227,
0.00959896482527256,
0.06598030030727386,
0.008693221025168896,
0.040676988661289215,
-0.04470251500606537,
0.009392895735800266,
-0.04079200327396393,
-0.03887508809566498,
-0.0028082842472940683,
0.09339222311973572,
-0.024977434426546097,
-0.02789114974439144,
0.052331846207380295,
-0.00294007221236825,
-0.011626104824244976,
-0.022082889452576637,
-0.006062251515686512,
-0.04079200327396393,
-0.04865136742591858,
0.0007511920412071049,
-0.007389716804027557,
-0.02244710363447666,
0.04270892217755318,
0.011923226527869701,
-0.024210667237639427,
0.0854945182800293,
0.00830504484474659,
0.04991653189063072,
-0.07272785156965256,
-0.007691631559282541,
-0.05520722270011902,
0.019523805007338524,
0.05029991641640663,
-0.056204020977020264,
-0.015594123862683773,
-0.05022323876619339,
0.03283679857850075,
-0.03559715673327446,
-0.04155877232551575,
0.0556289441883564,
0.011261890642344952,
-0.010236339643597603,
0.0045167370699346066,
0.021105261519551277,
-0.008650090545415878,
-0.0069104875437915325,
-0.04776958376169205,
-0.05524556338787079,
-0.05248520150780678,
-0.03866422548890114,
-0.04428079351782799,
-0.030804865062236786,
-0.037399061024188995,
0.025284141302108765,
0.000917724275495857,
0.021757014095783234,
0.024383191019296646,
-0.014999879524111748,
0.0037092354614287615,
0.0073034558445215225,
-0.0668620839715004,
0.016341721639037132,
0.0070638409815728664,
0.003110198536887765,
-0.0007679651025682688,
-0.0008871734025888145,
-0.009958386421203613,
0.03920096158981323,
-0.00007390615792246535,
-0.07322625070810318,
-0.0010704785818234086,
-0.013686791062355042,
-0.04006357491016388,
-0.014635665342211723,
0.037954967468976974,
0.00021700105571653694,
-0.052446864545345306,
-0.04171212390065193,
-0.019571727141737938,
-0.009239542298018932,
0.015344924293458462,
0.022734642028808594,
-0.02896462380886078,
-0.051181696355342865,
0.026338446885347366,
-0.009488741867244244,
-0.04481752961874008,
0.026587646454572678,
-0.05110502243041992,
-0.005549476016312838,
0.01804777793586254,
-0.0028586031403392553,
0.10167330503463745,
0.03141827881336212,
-0.00010288455814588815,
0.0006858970155008137,
-0.049609825015068054,
0.011980734765529633,
0.02994225174188614,
0.0008937628008425236,
0.046121034771203995,
0.001376586384139955,
0.01097435224801302,
-0.03011477366089821,
0.05014656111598015,
0.0544404573738575,
0.02768028900027275,
-0.0016317759873345494,
0.01800943911075592,
0.001104623661376536,
0.08219742029905319,
-0.03707318380475044,
-0.0734562799334526,
0.02516912668943405,
-0.046849463135004044,
-0.06590362638235092,
-0.010466369800269604,
-0.0393734872341156,
-0.025456665083765984,
0.006948825903236866,
-0.02279214933514595,
0.03891342505812645,
-0.03695816919207573,
-0.029117977246642113,
-0.01345676090568304,
-0.031188247725367546,
0.03295181319117546,
0.03507959097623825,
0.07613996416330338,
-0.0214694757014513,
0.0192266833037138,
0.023673931136727333,
-0.01637047529220581,
-0.020990246906876564,
0.031322430819272995,
-0.010178832337260246,
-0.03613389655947685,
-0.009043058380484581,
-0.02436402067542076,
-0.019360866397619247,
-0.03492623567581177,
-0.03534795716404915,
0.04600602015852928,
-0.011376905255019665,
-0.0520634800195694,
0.0005361378425732255,
0.02551417239010334,
-0.00759099330753088,
0.05720081925392151,
0.014309789054095745,
0.018996652215719223,
0.0854945182800293,
-0.013370499946177006,
0.041443757712841034,
0.014261865988373756,
0.004269933793693781,
0.06755217164754868,
0.06927739828824997,
-0.061839759349823,
-0.04297729209065437,
-0.02858123928308487,
-0.07157769799232483,
0.01592000015079975,
-0.05543725565075874,
-0.0417504645884037,
-0.002496785018593073,
-0.05145006626844406,
-0.0066660805605351925,
0.018622852861881256,
-0.00882740505039692,
-0.038376688957214355,
0.0384533666074276,
-0.0180381927639246,
0.07410802692174911,
-0.008884912356734276,
-0.018910391256213188,
-0.025801708921790123,
-0.01978258788585663,
0.019102083519101143,
0.07602494955062866,
-0.08779481798410416,
-0.033871933817863464,
-0.034216977655887604,
-0.004777916707098484,
-0.00746160140261054,
-0.009392895735800266,
-0.05846598371863365,
0.046504419296979904,
0.023827284574508667,
-0.00541049987077713,
0.006977579556405544,
-0.006781095638871193,
-0.02348223887383938,
-0.04861302673816681,
0.02304134890437126,
0.008755520917475224,
0.004346610512584448,
0.03908594697713852,
-0.009761902503669262,
-0.011108537204563618,
-0.05965447425842285,
0.06601864099502563,
0.049686502665281296,
-0.07192274183034897,
-0.02530331164598465,
0.02516912668943405,
-0.03465786948800087,
0.02674099989235401,
0.017328934744000435,
0.0689706951379776,
-0.019351283088326454,
0.04037028178572655,
-0.0043945335783064365,
0.02904129959642887,
-0.030076434835791588,
0.07521983981132507,
0.044549163430929184,
0.03745656833052635,
-0.0006523510091938078,
-0.029501359909772873,
0.015546200796961784,
-0.030076434835791588,
-0.016495075076818466,
0.045315928757190704,
-0.01713724248111248,
0.015958338975906372,
0.02785281091928482,
0.05010822415351868,
0.012143672443926334,
-0.003366586286574602,
-0.00043579921475611627,
-0.013332161121070385,
-0.032721780240535736,
-0.08173736184835434,
0.023233039304614067,
-0.005319445859640837,
-0.023999806493520737,
0.016006261110305786,
-0.0038937386125326157,
0.05141172558069229,
0.015028633177280426,
0.007384924683719873,
0.03113074041903019,
0.01050470769405365,
-0.02104775421321392,
-0.05635737627744675,
-0.0030526912305504084,
0.011789042502641678,
-0.06966078281402588,
-0.01273791678249836,
0.0061724744737148285,
0.016456736251711845,
-0.01078266091644764,
0.023328885436058044,
0.013303407467901707,
0.02037683315575123,
0.013475930318236351,
0.08434437215328217,
-0.041482094675302505,
-0.039526838809251785,
-0.028983792290091515,
0.0024800121318548918,
0.06195477396249771,
0.009517495520412922,
-0.08894497156143188,
0.020396001636981964,
-0.026204261928796768,
0.009105358272790909,
0.007897700183093548,
0.03410196304321289,
0.03849170356988907,
-0.0005990366917103529,
-0.05712414160370827,
0.009862540289759636,
-0.06471513211727142,
0.028178688138723373,
0.012028656899929047,
-0.01218201033771038,
0.0369965061545372,
0.013197977095842361,
-0.0520634800195694,
-0.03277928754687309,
-0.028389548882842064,
0.006460011936724186,
0.00882740505039692,
0.04359070211648941,
0.020165972411632538,
-0.07794186472892761,
0.0008404485415667295,
0.03339270129799843,
-0.04389740899205208,
-0.048498012125492096,
-0.021833689883351326,
0.004940854851156473,
0.022255411371588707,
0.003318663453683257,
0.00749514764174819,
-0.022082889452576637,
0.011980734765529633,
0.029578037559986115,
-0.06755217164754868,
0.014894449152052402,
0.008429644629359245,
0.07798020541667938,
0.060536254197359085,
-0.024996604770421982,
0.03381442651152611
] |
9,947
|
sentence_transformers.cross_encoder.CrossEncoder
|
fit
|
Train the model with the given training objective
Each training objective is sampled in turn for one batch.
We sample only as many batches from each objective as there are in the smallest one
to make sure of equal training with each dataset.
:param train_dataloader: DataLoader with training InputExamples
:param evaluator: An evaluator (sentence_transformers.evaluation) evaluates the model performance during training on held-out dev data. It is used to determine the best model that is saved to disc.
:param epochs: Number of epochs for training
:param loss_fct: Which loss function to use for training. If None, will use nn.BCEWithLogitsLoss() if self.config.num_labels == 1 else nn.CrossEntropyLoss()
:param activation_fct: Activation function applied on top of logits output of model.
:param scheduler: Learning rate scheduler. Available schedulers: constantlr, warmupconstant, warmuplinear, warmupcosine, warmupcosinewithhardrestarts
:param warmup_steps: Behavior depends on the scheduler. For WarmupLinear (default), the learning rate is increased from o up to the maximal learning rate. After these many training steps, the learning rate is decreased linearly back to zero.
:param optimizer_class: Optimizer
:param optimizer_params: Optimizer parameters
:param weight_decay: Weight decay for model parameters
:param evaluation_steps: If > 0, evaluate the model using evaluator after each number of training steps
:param output_path: Storage path for the model and evaluation files
:param save_best_model: If true, the best model (according to evaluator) is stored at output_path
:param max_grad_norm: Used for gradient normalization.
:param use_amp: Use Automatic Mixed Precision (AMP). Only for Pytorch >= 1.6.0
:param callback: Callback function that is invoked after each evaluation.
It must accept the following three parameters in this order:
`score`, `epoch`, `steps`
:param show_progress_bar: If True, output a tqdm progress bar
|
def fit(
self,
train_dataloader: DataLoader,
evaluator: SentenceEvaluator = None,
epochs: int = 1,
loss_fct=None,
activation_fct=nn.Identity(),
scheduler: str = "WarmupLinear",
warmup_steps: int = 10000,
optimizer_class: Type[Optimizer] = torch.optim.AdamW,
optimizer_params: Dict[str, object] = {"lr": 2e-5},
weight_decay: float = 0.01,
evaluation_steps: int = 0,
output_path: str = None,
save_best_model: bool = True,
max_grad_norm: float = 1,
use_amp: bool = False,
callback: Callable[[float, int, int], None] = None,
show_progress_bar: bool = True,
):
"""
Train the model with the given training objective
Each training objective is sampled in turn for one batch.
We sample only as many batches from each objective as there are in the smallest one
to make sure of equal training with each dataset.
:param train_dataloader: DataLoader with training InputExamples
:param evaluator: An evaluator (sentence_transformers.evaluation) evaluates the model performance during training on held-out dev data. It is used to determine the best model that is saved to disc.
:param epochs: Number of epochs for training
:param loss_fct: Which loss function to use for training. If None, will use nn.BCEWithLogitsLoss() if self.config.num_labels == 1 else nn.CrossEntropyLoss()
:param activation_fct: Activation function applied on top of logits output of model.
:param scheduler: Learning rate scheduler. Available schedulers: constantlr, warmupconstant, warmuplinear, warmupcosine, warmupcosinewithhardrestarts
:param warmup_steps: Behavior depends on the scheduler. For WarmupLinear (default), the learning rate is increased from o up to the maximal learning rate. After these many training steps, the learning rate is decreased linearly back to zero.
:param optimizer_class: Optimizer
:param optimizer_params: Optimizer parameters
:param weight_decay: Weight decay for model parameters
:param evaluation_steps: If > 0, evaluate the model using evaluator after each number of training steps
:param output_path: Storage path for the model and evaluation files
:param save_best_model: If true, the best model (according to evaluator) is stored at output_path
:param max_grad_norm: Used for gradient normalization.
:param use_amp: Use Automatic Mixed Precision (AMP). Only for Pytorch >= 1.6.0
:param callback: Callback function that is invoked after each evaluation.
It must accept the following three parameters in this order:
`score`, `epoch`, `steps`
:param show_progress_bar: If True, output a tqdm progress bar
"""
train_dataloader.collate_fn = self.smart_batching_collate
if use_amp:
if is_torch_npu_available():
scaler = torch.npu.amp.GradScaler()
else:
scaler = torch.cuda.amp.GradScaler()
self.model.to(self._target_device)
if output_path is not None:
os.makedirs(output_path, exist_ok=True)
self.best_score = -9999999
num_train_steps = int(len(train_dataloader) * epochs)
# Prepare optimizers
param_optimizer = list(self.model.named_parameters())
no_decay = ["bias", "LayerNorm.bias", "LayerNorm.weight"]
optimizer_grouped_parameters = [
{
"params": [p for n, p in param_optimizer if not any(nd in n for nd in no_decay)],
"weight_decay": weight_decay,
},
{"params": [p for n, p in param_optimizer if any(nd in n for nd in no_decay)], "weight_decay": 0.0},
]
optimizer = optimizer_class(optimizer_grouped_parameters, **optimizer_params)
if isinstance(scheduler, str):
scheduler = SentenceTransformer._get_scheduler(
optimizer, scheduler=scheduler, warmup_steps=warmup_steps, t_total=num_train_steps
)
if loss_fct is None:
loss_fct = nn.BCEWithLogitsLoss() if self.config.num_labels == 1 else nn.CrossEntropyLoss()
skip_scheduler = False
for epoch in trange(epochs, desc="Epoch", disable=not show_progress_bar):
training_steps = 0
self.model.zero_grad()
self.model.train()
for features, labels in tqdm(
train_dataloader, desc="Iteration", smoothing=0.05, disable=not show_progress_bar
):
if use_amp:
with torch.autocast(device_type=self._target_device.type):
model_predictions = self.model(**features, return_dict=True)
logits = activation_fct(model_predictions.logits)
if self.config.num_labels == 1:
logits = logits.view(-1)
loss_value = loss_fct(logits, labels)
scale_before_step = scaler.get_scale()
scaler.scale(loss_value).backward()
scaler.unscale_(optimizer)
torch.nn.utils.clip_grad_norm_(self.model.parameters(), max_grad_norm)
scaler.step(optimizer)
scaler.update()
skip_scheduler = scaler.get_scale() != scale_before_step
else:
model_predictions = self.model(**features, return_dict=True)
logits = activation_fct(model_predictions.logits)
if self.config.num_labels == 1:
logits = logits.view(-1)
loss_value = loss_fct(logits, labels)
loss_value.backward()
torch.nn.utils.clip_grad_norm_(self.model.parameters(), max_grad_norm)
optimizer.step()
optimizer.zero_grad()
if not skip_scheduler:
scheduler.step()
training_steps += 1
if evaluator is not None and evaluation_steps > 0 and training_steps % evaluation_steps == 0:
self._eval_during_training(
evaluator, output_path, save_best_model, epoch, training_steps, callback
)
self.model.zero_grad()
self.model.train()
if evaluator is not None:
self._eval_during_training(evaluator, output_path, save_best_model, epoch, -1, callback)
|
(self, train_dataloader: torch.utils.data.dataloader.DataLoader, evaluator: Optional[sentence_transformers.evaluation.SentenceEvaluator.SentenceEvaluator] = None, epochs: int = 1, loss_fct=None, activation_fct=Identity(), scheduler: str = 'WarmupLinear', warmup_steps: int = 10000, optimizer_class: Type[torch.optim.optimizer.Optimizer] = <class 'torch.optim.adamw.AdamW'>, optimizer_params: Dict[str, object] = {'lr': 2e-05}, weight_decay: float = 0.01, evaluation_steps: int = 0, output_path: Optional[str] = None, save_best_model: bool = True, max_grad_norm: float = 1, use_amp: bool = False, callback: Optional[Callable[[float, int, int], NoneType]] = None, show_progress_bar: bool = True)
|
[
-0.013653398491442204,
-0.012942926958203316,
-0.019100341945886612,
-0.022529136389493942,
0.022590916603803635,
0.015125823207199574,
-0.037624068558216095,
-0.03610016033053398,
-0.0036862115375697613,
-0.011233678087592125,
-0.00804685615003109,
-0.033855486661195755,
0.017421983182430267,
0.030189866200089455,
-0.005349125247448683,
0.06993505358695984,
0.010698250494897366,
-0.01290174014866352,
0.008067448623478413,
0.022693883627653122,
-0.0010856562294065952,
-0.05654937028884888,
-0.05131865665316582,
0.020243274047970772,
-0.033690739423036575,
-0.013643101789057255,
0.01797800324857235,
-0.01699981838464737,
-0.018606102094054222,
0.03879789263010025,
0.0015728179132565856,
-0.014765439555048943,
0.02598882094025612,
-0.004257677122950554,
0.007861515507102013,
-0.03202267736196518,
0.01960487850010395,
-0.009828181006014347,
-0.022076083347201347,
-0.019790219143033028,
-0.03708864375948906,
-0.07207676023244858,
0.03023105300962925,
0.02802756428718567,
-0.045387767255306244,
0.021684808656573296,
-0.05539613962173462,
0.05160696059465408,
0.0076864720322191715,
-0.0547371543943882,
-0.04299893602728844,
-0.08706872910261154,
0.005287345498800278,
0.03251691535115242,
-0.04806490242481232,
0.02646246924996376,
0.014755142852663994,
0.009457500651478767,
0.014683065935969353,
-0.039003826677799225,
0.0531308688223362,
-0.06569281965494156,
0.04052773490548134,
0.02810993790626526,
0.025206273421645164,
0.0015007411129772663,
-0.03086944855749607,
0.007480538450181484,
-0.018338387832045555,
0.03399963676929474,
0.009004446677863598,
-0.030189866200089455,
0.008391794748604298,
0.025268053635954857,
-0.018194233998656273,
-0.027245016768574715,
-0.06503383070230484,
-0.02819231152534485,
0.0079644825309515,
0.012026522308588028,
0.037459321320056915,
0.047653038054704666,
-0.011141007766127586,
-0.03356717899441719,
-0.014796329662203789,
-0.05140102654695511,
0.037459321320056915,
-0.012304533272981644,
-0.014827219769358635,
0.009740659967064857,
0.00465667387470603,
0.05292493849992752,
0.06313924491405487,
-0.0021520061418414116,
0.026174161583185196,
0.03023105300962925,
-0.044481657445430756,
-0.019738735631108284,
0.0034339427947998047,
-0.04868270456790924,
-0.004170155618339777,
0.11211025714874268,
0.049629997462034225,
0.044893525540828705,
0.013200344517827034,
-0.0735182985663414,
-0.05930887907743454,
-0.02107730507850647,
0.009303051047027111,
-0.03955984488129616,
-0.07586593925952911,
-0.0009505123016424477,
-0.021623028442263603,
0.0018405315931886435,
-0.007495983503758907,
-0.03521464765071869,
-0.042587071657180786,
0.004005408845841885,
-0.048559144139289856,
0.02563873492181301,
0.02621534839272499,
0.05276019126176834,
-0.09687116742134094,
-0.06194482743740082,
-0.033773113042116165,
-0.007907850667834282,
0.04110434651374817,
0.041783928871154785,
0.04419335350394249,
-0.08649211376905441,
-0.008793365210294724,
-0.015455316752195358,
0.002955147298052907,
0.009303051047027111,
0.03047817386686802,
-0.024732626974582672,
0.00027382734697312117,
0.046211499720811844,
-0.05601394176483154,
0.044069793075323105,
0.026915522292256355,
0.03406141698360443,
0.04184570908546448,
-0.01029668003320694,
0.0645395889878273,
0.0033129570074379444,
-0.014065265655517578,
-0.0058897011913359165,
0.0057764374651014805,
-0.001794196548871696,
0.04320487007498741,
0.008196157403290272,
0.010842404328286648,
-0.012150082737207413,
-0.017926519736647606,
-0.01912093535065651,
-0.054531220346689224,
-0.03212564438581467,
0.025144493207335472,
0.019378352910280228,
-0.020480096340179443,
-0.04687048867344856,
-0.022323202341794968,
-0.0070532262325286865,
-0.0010779337026178837,
0.022487949579954147,
-0.03375251963734627,
0.06750503927469254,
-0.02695670910179615,
0.05523139238357544,
0.025597548112273216,
-0.03334065154194832,
-0.03986874595284462,
0.02557695470750332,
-0.05317205563187599,
0.0596383735537529,
0.034843966364860535,
0.02294100448489189,
-0.006002964451909065,
0.03832424432039261,
-0.012417796067893505,
-0.005951481405645609,
-0.03095182031393051,
-0.041619181632995605,
-0.05160696059465408,
0.029036639258265495,
-0.006759770680218935,
0.017844146117568016,
-0.03455565869808197,
0.015475910156965256,
-0.02059336006641388,
-0.04814727604389191,
-0.020243274047970772,
-0.01969754882156849,
-0.039909932762384415,
0.0523071363568306,
0.0012774319620802999,
0.022611510008573532,
0.036470841616392136,
-0.026359502226114273,
-0.006656803656369448,
0.004283418878912926,
0.06000905483961105,
-0.053460363298654556,
-0.07121184468269348,
-0.007949037477374077,
-0.04345199093222618,
0.07586593925952911,
-0.017947113141417503,
-0.020850777626037598,
-0.029448505491018295,
-0.02417660504579544,
-0.02475322037935257,
0.09514132887125015,
0.08183801174163818,
-0.05247188359498978,
-0.01822512410581112,
0.02384711243212223,
0.0079644825309515,
-0.0005795100587420166,
0.030272239819169044,
-0.030169272795319557,
-0.016886556521058083,
-0.003629579907283187,
0.02990156039595604,
0.0064663151279091835,
0.046211499720811844,
-0.029427912086248398,
0.018667882308363914,
-0.02172599546611309,
0.0021648770198225975,
-0.04159858822822571,
-0.0016822201432660222,
0.026750775054097176,
0.0661458745598793,
0.01837957464158535,
-0.016114303842186928,
0.0498359315097332,
-0.0116455452516675,
-0.024053044617176056,
0.00555505882948637,
-0.01380784809589386,
-0.017864739522337914,
-0.04316368326544762,
-0.0015689566498622298,
0.03278462961316109,
0.06054447963833809,
0.019059155136346817,
-0.05700242146849632,
-0.0249179657548666,
-0.01551709696650505,
0.02108760178089142,
-0.02353821136057377,
0.015949558466672897,
-0.043740298599004745,
-0.05206001549959183,
0.040548328310251236,
-0.011779402382671833,
0.04312249645590782,
-0.009292754344642162,
-0.03830365091562271,
0.0025175383780151606,
-0.04777659848332405,
0.08241462707519531,
-0.03095182031393051,
-0.02376473881304264,
0.001329558901488781,
0.009575912728905678,
0.026421282440423965,
0.03179614990949631,
0.05584919452667236,
0.08064360171556473,
-0.07879019528627396,
0.03146665543317795,
-0.010420240461826324,
0.04215461015701294,
-0.045470140874385834,
-0.035420581698417664,
0.02026386745274067,
0.02607119455933571,
0.05333680287003517,
-0.010214307345449924,
-0.031651996076107025,
-0.04967118427157402,
0.03447328507900238,
-0.013622508384287357,
-0.036717962473630905,
-0.027718663215637207,
0.01568184420466423,
0.006095634773373604,
0.004038872662931681,
0.010240048170089722,
0.07524813711643219,
-0.015578877180814743,
0.01994466967880726,
-0.03488515317440033,
0.03031342662870884,
0.011460205540060997,
0.0013797552092000842,
-0.03130190819501877,
0.029098419472575188,
-0.006039002910256386,
0.032310981303453445,
-0.0030555399134755135,
-0.005951481405645609,
-0.016134897246956825,
-0.05700242146849632,
0.020459502935409546,
0.04233995079994202,
-0.0294073186814785,
0.022158456966280937,
-0.030828261747956276,
0.06705198436975479,
0.00023070999304763973,
0.006219194736331701,
-0.005869107786566019,
0.018812034279108047,
0.0017684547929093242,
0.047653038054704666,
0.03980696573853493,
-0.04386385902762413,
0.07566000521183014,
0.053542736917734146,
0.026503656059503555,
-0.017586730420589447,
-0.06915250420570374,
0.05630224943161011,
0.04291656240820885,
-0.05906175822019577,
-0.04860033094882965,
0.04386385902762413,
-0.06256262958049774,
0.03912738710641861,
0.01217067614197731,
-0.04794134199619293,
0.035399988293647766,
0.017216049134731293,
0.02483559213578701,
0.06243906915187836,
0.019172418862581253,
0.0718708261847496,
0.04312249645590782,
-0.0228586308658123,
0.06437484920024872,
0.0016783588798716664,
-0.012942926958203316,
0.03251691535115242,
0.03741813451051712,
0.0175764337182045,
0.011758808977901936,
-0.053048498928546906,
-0.008443278260529041,
0.003276918549090624,
0.0735182985663414,
0.0473647303879261,
-0.021849555894732475,
-0.01643350161612034,
-0.05160696059465408,
0.024300165474414825,
-0.0760306864976883,
-0.030107492581009865,
-0.021931929513812065,
-0.0857507511973381,
0.05572563409805298,
0.017535246908664703,
0.00031050926190800965,
0.007825477048754692,
-0.05243069678544998,
0.04304012283682823,
-0.02296159788966179,
-0.013004707172513008,
-0.038035936653614044,
0.027245016768574715,
0.005709509365260601,
0.0007593801710754633,
-0.013045893982052803,
-0.032393354922533035,
0.03482337296009064,
0.010487169027328491,
0.01993437297642231,
0.04091900587081909,
0.006873033940792084,
0.011975038796663284,
0.017051301896572113,
0.06005023792386055,
-0.05617868900299072,
-0.012860553339123726,
-0.001377181033603847,
0.024712033569812775,
-0.0571671687066555,
0.06264500319957733,
0.005441795568913221,
-0.0008012104663066566,
-0.016968928277492523,
-0.045058272778987885,
0.039333317428827286,
0.012685510329902172,
0.04670574143528938,
-0.05683767423033714,
-0.05823802575469017,
-0.034432098269462585,
-0.026730181649327278,
0.020603656768798828,
0.0530896820127964,
-0.0040182797238230705,
0.049382880330085754,
0.0702645480632782,
0.005243584513664246,
-0.01397259533405304,
0.07063522934913635,
-0.013406277634203434,
0.004728750325739384,
-0.02092285454273224,
0.024794407188892365,
-0.06664011627435684,
0.0034725554287433624,
-0.02353821136057377,
0.03286700323224068,
0.01806037686765194,
0.03496752679347992,
0.02817171812057495,
0.04295774921774864,
0.0563434362411499,
0.020624250173568726,
-0.004620635416358709,
0.021108195185661316,
-0.05836158245801926,
-0.009467797353863716,
-0.04295774921774864,
-0.04221639037132263,
-0.05267781764268875,
-0.05033017322421074,
-0.027492135763168335,
-0.03945687785744667,
-0.0343085378408432,
0.020727217197418213,
0.002929405542090535,
0.011964742094278336,
-0.007501131854951382,
-0.008278531022369862,
0.012180972844362259,
-0.05325442925095558,
0.025103306397795677,
0.02662721462547779,
-0.002328336937353015,
-0.010760030709207058,
-0.00747539009898901,
0.011913259513676167,
-0.07800765335559845,
0.02563873492181301,
-0.002099235774949193,
0.032722849398851395,
0.031734369695186615,
0.05341917648911476,
-0.0007812606054358184,
0.010605581104755402,
0.03626490756869316,
-0.002669414272531867,
-0.006337606813758612,
0.016155490651726723,
-0.010240048170089722,
0.05972074717283249,
0.0033155311830341816,
0.023785332217812538,
-0.004023428075015545,
0.04991830512881279,
0.05704360827803612,
0.012891443446278572,
-0.02500033937394619,
-0.00043921777978539467,
0.005642580799758434,
-0.03251691535115242,
0.058196838945150375,
-0.02907782606780529,
-0.053872231394052505,
0.012376610189676285,
0.004437869414687157,
0.019244495779275894,
0.0208301842212677,
-0.009292754344642162,
0.06248025596141815,
-0.07051166892051697,
0.014384462498128414,
0.04658218100667,
-0.014713956043124199,
-0.012129489332437515,
-0.046376246958971024,
-0.012942926958203316,
-0.020706623792648315,
0.05086560174822807,
-0.045305393636226654,
0.0058897011913359165,
0.06173889711499214,
-0.026421282440423965,
-0.0392303504049778,
-0.009323644451797009,
0.02114938199520111,
0.022982191294431686,
0.003037520684301853,
-0.04892982542514801,
0.05234832316637039,
-0.00890662893652916,
-0.02670958824455738,
0.004165007267147303,
0.045058272778987885,
0.04678811505436897,
-0.043410804122686386,
0.021623028442263603,
-0.10683835297822952,
-0.0035317614674568176,
-0.04052773490548134,
-0.06190364062786102,
-0.011048338375985622,
-0.024444319307804108,
-0.01142931543290615,
-0.06577519327402115,
0.037212204188108444,
0.010034115053713322,
0.03023105300962925,
-0.015269977040588856,
0.013416574336588383,
0.039827559143304825,
-0.016783589497208595,
-0.024217791855335236,
0.015167010016739368,
0.04149562120437622,
0.02279685065150261,
0.009565616026520729,
0.05358392372727394,
0.011460205540060997,
0.013509244658052921,
0.004569151904433966,
0.05300731211900711,
0.06511620432138443,
0.040404174476861954,
-0.002262695459648967,
-0.009936296381056309,
-0.03667677566409111,
0.0021648770198225975,
-0.016618842259049416,
-0.028048157691955566,
-0.006280974950641394,
0.010883591137826443,
-0.051359839737415314,
0.029757406562566757,
-0.011985335499048233,
0.003184248460456729,
0.08014936000108719,
-0.03212564438581467,
0.02099493145942688,
-0.07034692168235779,
-0.0027363428380340338,
0.0343291312456131,
0.01299441047012806,
0.013488651253283024,
0.0012703529791906476,
-0.02483559213578701,
0.039003826677799225,
0.040157053619623184,
0.020057933405041695,
-0.042504698038101196,
-0.0069399625062942505,
-0.015486206859350204,
-0.05160696059465408,
0.02858358435332775,
0.030663514509797096,
-0.01602163538336754,
-0.01433297898620367,
-0.043575551360845566,
0.00194092420861125,
0.0018225123640149832,
0.03325827792286873,
-0.03766525536775589,
0.01552739366889,
-0.07710154354572296,
0.01945042982697487,
-0.02149946801364422,
-0.05449003353714943,
-0.010554097592830658,
0.00449192663654685,
0.06762859970331192,
-0.01617608405649662,
-0.005282197147607803,
0.012685510329902172,
0.023249903693795204,
0.0005428281147032976,
-0.032805223017930984,
0.027492135763168335,
-0.030272239819169044,
-0.014755142852663994,
-0.0008887322037480772,
0.05317205563187599,
-0.039168570190668106,
-0.01335479412227869,
0.05687886103987694,
0.0021043841261416674,
-0.032640475779771805,
0.0009292754111811519,
0.04435810074210167,
-0.00622949143871665,
-0.04645862057805061,
0.02605060115456581,
0.0019833981059491634,
0.012572246603667736,
0.03980696573853493,
-0.06157414987683296,
-0.032310981303453445,
0.0645395889878273,
0.02794519066810608,
0.0009833329822868109,
-0.028048157691955566,
0.01993437297642231,
0.025721106678247452,
-0.060338545590639114,
-0.018667882308363914,
-0.045305393636226654,
-0.011388128623366356,
-0.04353436455130577,
0.10815633088350296,
-0.02343524433672428,
0.047570664435625076,
-0.005642580799758434,
-0.012531059794127941,
0.01323123462498188,
-0.05749666318297386,
-0.038180090487003326,
0.022838037461042404,
-0.07014098763465881,
0.020459502935409546,
-0.08369141817092896,
0.006605320610105991,
-0.0005730746197514236,
0.03070470131933689,
-0.004831717349588871,
0.045140646398067474,
0.016382018104195595,
0.039992306381464005,
0.044728778302669525,
-0.004901219625025988,
-0.09621217846870422,
0.018760550767183304,
0.03056054748594761,
0.015136119909584522,
-0.0179882999509573,
-0.011151304468512535,
-0.012067709118127823,
-0.019913779571652412,
0.048806264996528625,
0.059844307601451874,
0.03146665543317795,
-0.01152198575437069,
0.04777659848332405,
-0.001130704185925424,
-0.0028650513850152493,
0.0003767941379919648,
0.021046414971351624,
0.0327022559940815,
-0.025515174493193626,
0.03929213061928749,
-0.01773088425397873,
-0.016279051080346107,
0.015784811228513718,
0.029510285705327988,
-0.007974779233336449,
0.0006673535681329668,
-0.008118932135403156,
-0.03023105300962925,
0.04843558371067047,
-0.027801036834716797,
-0.0043503474444150925,
-0.11046278476715088,
0.029839780181646347,
-0.059679560363292694,
-0.011285161599516869,
0.049877118319272995,
0.002924257190898061,
-0.0002014288038481027,
-0.08183801174163818,
-0.027245016768574715,
-0.01960487850010395,
0.0294073186814785,
0.030334020033478737,
-0.037788815796375275,
0.012397203594446182,
-0.0009170480770990252,
0.032310981303453445,
-0.03342302516102791,
-0.029675032943487167,
-0.0006309934542514384,
-0.033361244946718216,
-0.035482361912727356,
0.022446762770414352,
-0.01061587780714035,
-0.05906175822019577,
0.04091900587081909,
-0.09011654555797577,
-0.06215076148509979,
-0.024073638021945953,
-0.04695286229252815,
-0.022446762770414352,
-0.006440573371946812,
0.00016434467397630215,
-0.058526329696178436,
-0.04967118427157402,
0.010440833866596222,
0.03642965480685234,
-0.05576682090759277,
0.010507762432098389,
-0.05457240715622902,
-0.026174161583185196,
0.08064360171556473,
0.013797551393508911,
-0.022014303132891655,
0.031816743314266205,
0.0025497155729681253,
-0.025597548112273216,
0.006198601797223091,
0.015640657395124435,
0.002466054866090417,
0.024238385260105133,
0.03601778671145439,
-0.00894781481474638,
0.027739256620407104,
-0.01531116385012865,
-0.026771368458867073,
-0.023723552003502846,
-0.01009074691683054,
-0.004005408845841885,
0.06964674592018127,
-0.013746067881584167,
0.06145058944821358,
-0.01298411376774311,
-0.029427912086248398,
-0.004412127658724785,
0.013025300577282906,
-0.02084048092365265,
0.06561044603586197,
-0.017669104039669037,
-0.0032897894270718098,
-0.014888999983668327,
0.0066671003587543964,
-0.0023772460408508778,
-0.03294937685132027,
0.02156124822795391,
-0.007583505008369684,
0.03474099934101105,
0.013004707172513008,
-0.03587363287806511,
0.03579125925898552,
-0.001861124997958541,
0.03710923716425896,
-0.012108895927667618,
0.009689176455140114,
0.02695670910179615,
0.07932562381029129,
-0.013385684229433537,
0.0016217271331697702,
-0.01119249127805233,
-0.0752069503068924,
-0.06820520758628845,
0.05350155010819435,
-0.05523139238357544,
0.041619181632995605,
-0.004576874431222677,
0.007290049456059933,
0.01098655816167593,
0.05407816544175148,
0.038591958582401276
] |
9,948
|
sentence_transformers.cross_encoder.CrossEncoder
|
predict
|
Performs predicts with the CrossEncoder on the given sentence pairs.
:param sentences: A list of sentence pairs [[Sent1, Sent2], [Sent3, Sent4]]
:param batch_size: Batch size for encoding
:param show_progress_bar: Output progress bar
:param num_workers: Number of workers for tokenization
:param activation_fct: Activation function applied on the logits output of the CrossEncoder. If None, nn.Sigmoid() will be used if num_labels=1, else nn.Identity
:param convert_to_numpy: Convert the output to a numpy matrix.
:param apply_softmax: If there are more than 2 dimensions and apply_softmax=True, applies softmax on the logits output
:param convert_to_tensor: Convert the output to a tensor.
:return: Predictions for the passed sentence pairs
|
def predict(
self,
sentences: List[List[str]],
batch_size: int = 32,
show_progress_bar: bool = None,
num_workers: int = 0,
activation_fct=None,
apply_softmax=False,
convert_to_numpy: bool = True,
convert_to_tensor: bool = False,
):
"""
Performs predicts with the CrossEncoder on the given sentence pairs.
:param sentences: A list of sentence pairs [[Sent1, Sent2], [Sent3, Sent4]]
:param batch_size: Batch size for encoding
:param show_progress_bar: Output progress bar
:param num_workers: Number of workers for tokenization
:param activation_fct: Activation function applied on the logits output of the CrossEncoder. If None, nn.Sigmoid() will be used if num_labels=1, else nn.Identity
:param convert_to_numpy: Convert the output to a numpy matrix.
:param apply_softmax: If there are more than 2 dimensions and apply_softmax=True, applies softmax on the logits output
:param convert_to_tensor: Convert the output to a tensor.
:return: Predictions for the passed sentence pairs
"""
input_was_string = False
if isinstance(sentences[0], str): # Cast an individual sentence to a list with length 1
sentences = [sentences]
input_was_string = True
inp_dataloader = DataLoader(
sentences,
batch_size=batch_size,
collate_fn=self.smart_batching_collate_text_only,
num_workers=num_workers,
shuffle=False,
)
if show_progress_bar is None:
show_progress_bar = (
logger.getEffectiveLevel() == logging.INFO or logger.getEffectiveLevel() == logging.DEBUG
)
iterator = inp_dataloader
if show_progress_bar:
iterator = tqdm(inp_dataloader, desc="Batches")
if activation_fct is None:
activation_fct = self.default_activation_function
pred_scores = []
self.model.eval()
self.model.to(self._target_device)
with torch.no_grad():
for features in iterator:
model_predictions = self.model(**features, return_dict=True)
logits = activation_fct(model_predictions.logits)
if apply_softmax and len(logits[0]) > 1:
logits = torch.nn.functional.softmax(logits, dim=1)
pred_scores.extend(logits)
if self.config.num_labels == 1:
pred_scores = [score[0] for score in pred_scores]
if convert_to_tensor:
pred_scores = torch.stack(pred_scores)
elif convert_to_numpy:
pred_scores = np.asarray([score.cpu().detach().numpy() for score in pred_scores])
if input_was_string:
pred_scores = pred_scores[0]
return pred_scores
|
(self, sentences: List[List[str]], batch_size: int = 32, show_progress_bar: Optional[bool] = None, num_workers: int = 0, activation_fct=None, apply_softmax=False, convert_to_numpy: bool = True, convert_to_tensor: bool = False)
|
[
-0.03034745529294014,
-0.014659028500318527,
-0.06299126148223877,
-0.0019845610950142145,
0.040977973490953445,
0.02692272514104843,
-0.04283880814909935,
-0.037394873797893524,
0.07098889350891113,
-0.0026625783648341894,
0.02304268628358841,
-0.016717825084924698,
-0.008299523964524269,
-0.022132063284516335,
0.028268862515687943,
0.022013287991285324,
0.05368708074092865,
-0.03377218171954155,
0.022231044247746468,
0.014213615097105503,
0.027477016672492027,
-0.007859060540795326,
-0.05178665369749069,
0.050084188580513,
-0.006988030858337879,
-0.03660302981734276,
0.007923397235572338,
-0.03729589283466339,
-0.02900131791830063,
0.04660006985068321,
-0.011956857517361641,
0.0054686786606907845,
0.01926162652671337,
-0.004545684438198805,
-0.019924797117710114,
0.006666344124823809,
0.004159660078585148,
0.0007417359156534076,
-0.023300034925341606,
-0.056894052773714066,
-0.029535813257098198,
-0.10761171579360962,
0.013936469331383705,
0.017955081537365913,
-0.03802834823727608,
0.021122461184859276,
-0.054597701877355576,
0.03294074535369873,
0.0028531160205602646,
-0.056418947875499725,
-0.013362382538616657,
-0.09700099378824234,
0.01628231070935726,
-0.01158073078840971,
-0.017272116616368294,
0.03749385476112366,
0.03535587340593338,
-0.005003469530493021,
-0.03311891108751297,
-0.028447026386857033,
0.046758439391851425,
-0.03630608692765236,
0.043868206441402435,
0.061843082308769226,
0.009269533678889275,
0.04105715453624725,
0.010041582398116589,
0.009497188962996006,
-0.050005003809928894,
0.011353075504302979,
0.00011289975373074412,
-0.08939928561449051,
-0.0008574195089749992,
0.016222922131419182,
-0.013520751148462296,
-0.0036325883120298386,
0.0008462842088192701,
-0.01369891595095396,
0.0344056598842144,
0.0325448252260685,
-0.01935070939362049,
0.0031451089307665825,
-0.029535813257098198,
-0.058952849358320236,
0.0014525403967127204,
-0.04798579961061478,
0.001245299819856882,
-0.010264288634061813,
-0.04165104031562805,
0.034920357167720795,
-0.060853276401758194,
0.07027623057365417,
0.057844266295433044,
0.038444068282842636,
0.010452352464199066,
0.016826704144477844,
-0.005656741559505463,
-0.0002820947265718132,
0.01663864031434059,
-0.004629817791283131,
0.010333575308322906,
0.12764538824558258,
0.008200543001294136,
0.0028011512476950884,
-0.005384545307606459,
-0.07498770952224731,
-0.0892409160733223,
0.020528577268123627,
-0.01678711175918579,
-0.035217300057411194,
-0.055468734353780746,
-0.0027640333864837885,
0.03565281629562378,
-0.015906183049082756,
0.012332983314990997,
-0.0512719564139843,
-0.03973081707954407,
0.025556793436408043,
-0.06738600134849548,
0.004916861653327942,
0.036563437432050705,
0.0446600504219532,
-0.030327659100294113,
-0.08140165358781815,
-0.07807590067386627,
0.01806396059691906,
0.07233502715826035,
0.030901744961738586,
0.0199148990213871,
-0.05958632752299309,
-0.024487802758812904,
-0.0286449883133173,
0.0011327093234285712,
0.03212910518050194,
0.04897560551762581,
-0.040740419179201126,
-0.003402458503842354,
0.04208655282855034,
-0.03387116268277168,
-0.0035806235391646624,
0.034148309379816055,
0.020261330530047417,
0.033376261591911316,
0.027952123433351517,
0.023715753108263016,
-0.026902928948402405,
0.050123780965805054,
-0.05075725540518761,
0.02563597820699215,
0.001730923424474895,
0.035039134323596954,
0.0074928319081664085,
-0.025853734463453293,
-0.07110767066478729,
-0.040047552436590195,
0.04117593169212341,
0.014480862766504288,
-0.08029306679964066,
0.030070308595895767,
0.013857285492122173,
-0.02581414207816124,
-0.02328023873269558,
-0.04394739121198654,
0.017935285344719887,
0.020647354423999786,
0.0182421263307333,
0.03725630044937134,
0.062436968088150024,
-0.021142257377505302,
0.0313570573925972,
0.03636547550559044,
-0.0077402833849191666,
0.017984775826334953,
0.01964765042066574,
-0.04620414599776268,
0.030070308595895767,
0.0020785927772521973,
0.003481642808765173,
-0.01175889652222395,
0.054835256189107895,
-0.006552516017109156,
-0.027536405250430107,
-0.046639662235975266,
-0.059309180825948715,
-0.015005460008978844,
0.0027269157581031322,
0.018875602632761,
0.05337034538388252,
-0.00869049783796072,
0.000526453135535121,
-0.019806019961833954,
-0.0591508112847805,
0.019004276022315025,
0.02805110439658165,
0.0009557814919389784,
0.0062407273799180984,
-0.013302993960678577,
0.013946367427706718,
0.05075725540518761,
-0.04319513589143753,
0.023121869191527367,
-0.00855687353760004,
0.07360198348760605,
-0.01435218844562769,
-0.08009510487318039,
0.005151940509676933,
-0.04513515904545784,
0.06738600134849548,
-0.028031308203935623,
-0.08765722811222076,
-0.004075526725500822,
-0.054241374135017395,
0.016826704144477844,
0.06223900616168976,
0.07284972816705704,
-0.005661690607666969,
0.01128378976136446,
-0.001461201230995357,
0.00009240767394658178,
-0.035494446754455566,
0.06275370717048645,
-0.001154361292719841,
-0.031673792749643326,
0.027001909911632538,
0.039572447538375854,
-0.023775141686201096,
0.03218849375844002,
-0.010600822977721691,
0.02510148286819458,
0.010838376358151436,
-0.013184216804802418,
-0.012174614705145359,
-0.01761854812502861,
0.011263993568718433,
0.08433147519826889,
0.021360015496611595,
-0.004924285225570202,
0.008928051218390465,
-0.012313188053667545,
-0.01624271832406521,
0.028565803542733192,
0.028328249230980873,
-0.022844724357128143,
-0.02816988155245781,
0.0433930978178978,
0.02163716033101082,
0.050005003809928894,
0.028842948377132416,
-0.03222808614373207,
0.010363269597291946,
-0.009472443722188473,
-0.013738508336246014,
-0.018400495871901512,
-0.02545781247317791,
-0.01046225056052208,
-0.05392463505268097,
0.041690632700920105,
-0.021241238340735435,
0.05131154879927635,
0.023834530264139175,
-0.040977973490953445,
0.02262696623802185,
-0.0045432099141180515,
0.07182032614946365,
-0.01964765042066574,
-0.04176981747150421,
-0.030090104788541794,
0.01606455259025097,
0.02951601706445217,
0.03169358894228935,
-0.025121279060840607,
0.06528761237859726,
-0.04588741064071655,
-0.0027293902821838856,
0.007477984763681889,
-0.0094378013163805,
-0.024468006566166878,
-0.05344953015446663,
-0.007185992319136858,
0.05139072984457016,
-0.0038800397887825966,
-0.06223900616168976,
-0.046520885080099106,
-0.06980112195014954,
0.06841539591550827,
0.008928051218390465,
-0.009012184105813503,
-0.07716528326272964,
0.03786998242139816,
-0.031792569905519485,
0.02423045225441456,
0.04945071041584015,
0.06350595504045486,
-0.03866182640194893,
-0.02516087144613266,
-0.06053654104471207,
0.029377443715929985,
-0.014312596060335636,
0.007859060540795326,
-0.023201053962111473,
0.0012830360792577267,
0.00995744951069355,
0.02462637610733509,
-0.05325156822800636,
-0.010452352464199066,
-0.014025552198290825,
0.01917254365980625,
0.03159461170434952,
-0.026210064068436623,
-0.02757599763572216,
0.01687619276344776,
0.04335350543260574,
0.022171655669808388,
0.01806396059691906,
-0.055547915399074554,
0.012659619562327862,
0.074750155210495,
0.0169058870524168,
0.048223353922367096,
0.03294074535369873,
-0.001427795272320509,
0.04248247668147087,
0.026368433609604836,
0.04066123440861702,
0.021478792652487755,
-0.045174747705459595,
0.06489168852567673,
-0.02015245147049427,
0.0018200059421360493,
-0.03111950308084488,
0.08306452631950378,
-0.04093838110566139,
0.0023742972407490015,
0.016886090859770775,
-0.041453078389167786,
0.009630813263356686,
-0.004877269268035889,
0.04426412656903267,
0.0566960908472538,
0.020845316350460052,
0.010650313459336758,
-0.041690632700920105,
-0.027021706104278564,
0.06057613343000412,
-0.01732160709798336,
0.0006489416118711233,
0.0030782970134168863,
0.06540638208389282,
-0.010630517266690731,
0.04850049689412117,
-0.04232410714030266,
0.016826704144477844,
0.0433930978178978,
0.0893201008439064,
0.01417402271181345,
-0.00903198029845953,
-0.007903601974248886,
0.00022007719962857664,
0.03389095887541771,
-0.062080636620521545,
-0.028367841616272926,
-0.052776459604501724,
-0.013867183588445187,
0.0364842526614666,
0.0007516340119764209,
0.01081858016550541,
0.0067207831889390945,
-0.024072084575891495,
0.014500658959150314,
0.00730476900935173,
0.008061970584094524,
0.003855294780805707,
-0.01417402271181345,
0.030782969668507576,
0.0076462519355118275,
0.01110562402755022,
-0.06928642839193344,
0.014371984638273716,
0.022646762430667877,
0.02963479422032833,
-0.02357718162238598,
-0.01122440118342638,
0.013352484442293644,
0.005102450493723154,
0.04774824529886246,
-0.007977836765348911,
0.04224492236971855,
-0.03640506789088249,
0.026190269738435745,
-0.027061298489570618,
-0.022785335779190063,
-0.00991290807723999,
-0.04620414599776268,
-0.03907754272222519,
-0.05717119947075844,
-0.03711772710084915,
0.0009007235057651997,
0.05938836559653282,
-0.010778987780213356,
-0.054241374135017395,
-0.05558750778436661,
-0.015777509659528732,
0.048421312123537064,
0.02852621115744114,
-0.029595201835036278,
0.08290615677833557,
0.009279431775212288,
0.02634863741695881,
-0.032505232840776443,
0.05863611400127411,
-0.025616182014346123,
0.026447618380188942,
0.028249066323041916,
0.0010021786438301206,
-0.06718803942203522,
0.026071492582559586,
-0.03858264163136482,
-0.0008469028398394585,
0.001077032764442265,
0.012867478653788567,
0.038562845438718796,
0.049648672342300415,
0.04980704188346863,
0.0074928319081664085,
-0.02721966803073883,
0.025536997243762016,
-0.03383157029747963,
0.024665966629981995,
0.01119470689445734,
-0.066277414560318,
-0.05831937491893768,
-0.08266860246658325,
-0.023596977815032005,
-0.061724308878183365,
-0.021181849762797356,
0.03541526198387146,
-0.006082358304411173,
0.0216965489089489,
-0.02727905474603176,
0.01785610243678093,
-0.008428199216723442,
-0.03501933813095093,
0.03046623058617115,
0.02310207299888134,
0.014728314243257046,
-0.00684945797547698,
-0.04937152564525604,
0.019330913200974464,
-0.07047419250011444,
-0.018172839656472206,
-0.003768686670809984,
0.04052266106009483,
0.004132440313696861,
0.037454262375831604,
0.0621202290058136,
0.02599230781197548,
0.006730681285262108,
-0.013520751148462296,
-0.004030985292047262,
0.041690632700920105,
-0.006552516017109156,
0.021122461184859276,
0.018697436898946762,
0.03201032802462578,
0.007572016678750515,
-0.0017098899697884917,
-0.019390301778912544,
-0.001697517465800047,
-0.027061298489570618,
-0.009784232825040817,
0.04727313667535782,
-0.00855687353760004,
0.06774232536554337,
-0.008373759686946869,
-0.04513515904545784,
0.02510148286819458,
0.0370781347155571,
-0.02280513197183609,
0.031673792749643326,
0.0024225504603236914,
0.027793753892183304,
-0.03624669834971428,
0.004464025609195232,
0.019004276022315025,
-0.020370209589600563,
0.004934183321893215,
-0.0023396541364490986,
-0.019162645563483238,
0.025200461968779564,
0.02763538621366024,
-0.01982581615447998,
0.016658436506986618,
0.09478382766246796,
0.002384195337072015,
-0.05044051632285118,
-0.019756529480218887,
0.002682374557480216,
0.008769681677222252,
-0.03866182640194893,
-0.018558863550424576,
0.03967142850160599,
-0.005379596259444952,
-0.025358831509947777,
-0.041453078389167786,
0.0250420942902565,
0.03307931870222092,
-0.03723650425672531,
0.022785335779190063,
-0.07589832693338394,
-0.03141644597053528,
-0.07637343555688858,
-0.060021840035915375,
0.002768982434645295,
-0.012659619562327862,
-0.002232012804597616,
-0.0197664275765419,
0.04632292315363884,
0.036622826009988785,
0.023300034925341606,
-0.011620323173701763,
0.03406912460923195,
0.02024153433740139,
-0.025853734463453293,
-0.03478178381919861,
-0.02611108496785164,
0.06287248432636261,
0.015391484834253788,
-0.019954491406679153,
0.03323768824338913,
0.05091562494635582,
-0.036504048854112625,
0.004347722977399826,
0.01615363545715809,
0.04537270963191986,
0.008626160211861134,
0.009328922256827354,
-0.004800559487193823,
0.0009378412505611777,
0.051588691771030426,
0.004879743792116642,
-0.028268862515687943,
-0.010571128688752651,
-0.020013878121972084,
-0.01678711175918579,
0.029080502688884735,
-0.024547191336750984,
-0.03375238552689552,
0.0820351243019104,
-0.02605169638991356,
0.03484117239713669,
-0.08607354015111923,
0.005988326855003834,
0.012234003283083439,
-0.011333279311656952,
0.05558750778436661,
0.03812732920050621,
0.00130406953394413,
0.02462637610733509,
0.009185400791466236,
0.03484117239713669,
-0.0014414051547646523,
0.006725732237100601,
0.01868753880262375,
-0.07395830750465393,
0.007171145174652338,
0.04081960394978523,
-0.05115317925810814,
-0.00817084964364767,
-0.03365340828895569,
-0.05115317925810814,
0.020904704928398132,
0.01785610243678093,
-0.042165737599134445,
0.018944887444376945,
-0.030010920017957687,
0.041215524077415466,
0.004592700395733118,
-0.07209747284650803,
-0.003847871208563447,
0.027556201443076134,
0.013609834015369415,
0.003315850393846631,
0.009358616545796394,
0.015836896374821663,
0.016252616420388222,
0.008185695856809616,
-0.02816988155245781,
0.0169058870524168,
-0.019162645563483238,
-0.035553835332393646,
-0.02716027945280075,
0.03592995926737785,
-0.013629629276692867,
0.03840447589755058,
0.08072858303785324,
-0.01764824241399765,
-0.038444068282842636,
0.022824928164482117,
0.007195890415459871,
-0.06081368401646614,
-0.03484117239713669,
0.019033970311284065,
-0.0063644531182944775,
0.013263401575386524,
0.04450168088078499,
-0.07451260089874268,
-0.04956948757171631,
0.05883407220244408,
0.03591016307473183,
-0.01606455259025097,
-0.015668630599975586,
0.00651292409747839,
-0.0036919766571372747,
-0.059903062880039215,
0.009155706502497196,
-0.0021194221917539835,
-0.027773957699537277,
0.006730681285262108,
0.056062616407871246,
-0.003323273966088891,
0.11046236008405685,
-0.027734367176890373,
-0.009992091916501522,
0.014589741826057434,
-0.04307636246085167,
0.007710589561611414,
-0.007002878002822399,
-0.065089650452137,
0.033495038747787476,
-0.033316873013973236,
0.039513058960437775,
0.03460362181067467,
0.06473331898450851,
0.010531536303460598,
0.053885042667388916,
0.010422658175230026,
0.03735528141260147,
0.03604873642325401,
0.008744936436414719,
-0.11014562100172043,
-0.03794916346669197,
0.025893326848745346,
-0.023676160722970963,
-0.017361199483275414,
0.021993491798639297,
-0.03806794062256813,
-0.0283480454236269,
0.021003685891628265,
0.08710293471813202,
0.005864601116627455,
-0.0024039915297180414,
0.00843809638172388,
0.022943705320358276,
-0.005072756204754114,
0.011917265132069588,
0.013075338676571846,
0.0034989644773304462,
0.0025536997709423304,
0.009917857125401497,
0.001241588033735752,
-0.03371279686689377,
0.00989806093275547,
0.03458382561802864,
0.0050529600121080875,
0.002360687591135502,
0.014896581880748272,
-0.020291024819016457,
-0.002766507910564542,
-0.01833120919764042,
-0.050005003809928894,
-0.04925275221467018,
0.02858559973537922,
-0.021557975560426712,
-0.012283493764698505,
0.07360198348760605,
-0.007250329479575157,
0.01758885383605957,
-0.035870570689439774,
0.01672772318124771,
-0.04196777939796448,
0.04335350543260574,
0.018786519765853882,
0.025972511619329453,
0.017014766111969948,
-0.013807795010507107,
-0.06461454182863235,
-0.02551720105111599,
-0.01028408482670784,
-0.032920949161052704,
-0.028842948377132416,
-0.014401678927242756,
0.03919631987810135,
0.01994459331035614,
-0.08156002312898636,
-0.006988030858337879,
0.024428414180874825,
-0.06564393639564514,
-0.045174747705459595,
-0.029377443715929985,
-0.01717313565313816,
-0.022132063284516335,
-0.00942295417189598,
-0.07130563259124756,
-0.017539363354444504,
-0.006795018911361694,
0.04945071041584015,
-0.05831937491893768,
-0.020884908735752106,
-0.05028215050697327,
-0.02139960788190365,
0.036622826009988785,
-0.012184512801468372,
0.009754538536071777,
0.01917254365980625,
-0.008443045429885387,
0.0020031200256198645,
0.02763538621366024,
0.059309180825948715,
0.022349821403622627,
0.035098522901535034,
0.011847978457808495,
-0.001165496651083231,
0.03777100145816803,
0.020409801974892616,
-0.06413943320512772,
-0.03840447589755058,
0.024784743785858154,
-0.01653965935111046,
0.06223900616168976,
-0.0058398558758199215,
0.046639662235975266,
-0.009739691391587257,
-0.026368433609604836,
0.011887570843100548,
-0.023141665384173393,
-0.04509556666016579,
0.08179757744073868,
-0.06053654104471207,
-0.0002219330781372264,
-0.04208655282855034,
0.010600822977721691,
-0.04343269020318985,
0.004154711030423641,
0.052538905292749405,
0.009739691391587257,
0.0165693536400795,
0.017727427184581757,
-0.009917857125401497,
0.021241238340735435,
-0.020291024819016457,
0.04081960394978523,
-0.00009016515105031431,
-0.020647354423999786,
-0.043868206441402435,
0.08005551248788834,
0.016747519373893738,
0.007517577148973942,
-0.054003819823265076,
-0.06944479793310165,
-0.06053654104471207,
0.005241023376584053,
-0.028902336955070496,
-0.00689399940893054,
-0.030961133539676666,
0.009645660407841206,
0.0169058870524168,
0.05887366458773613,
0.06845498830080032
] |
9,949
|
transformers.utils.hub
|
push_to_hub
|
Upload the {object_files} to the 🤗 Model Hub.
Parameters:
repo_id (`str`):
The name of the repository you want to push your {object} to. It should contain your organization name
when pushing to a given organization.
use_temp_dir (`bool`, *optional*):
Whether or not to use a temporary directory to store the files saved before they are pushed to the Hub.
Will default to `True` if there is no directory named like `repo_id`, `False` otherwise.
commit_message (`str`, *optional*):
Message to commit while pushing. Will default to `"Upload {object}"`.
private (`bool`, *optional*):
Whether or not the repository created should be private.
token (`bool` or `str`, *optional*):
The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated
when running `huggingface-cli login` (stored in `~/.huggingface`). Will default to `True` if `repo_url`
is not specified.
max_shard_size (`int` or `str`, *optional*, defaults to `"5GB"`):
Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard
will then be each of size lower than this size. If expressed as a string, needs to be digits followed
by a unit (like `"5MB"`). We default it to `"5GB"` so that users can easily load models on free-tier
Google Colab instances without any CPU OOM issues.
create_pr (`bool`, *optional*, defaults to `False`):
Whether or not to create a PR with the uploaded files or directly commit.
safe_serialization (`bool`, *optional*, defaults to `True`):
Whether or not to convert the model weights in safetensors format for safer serialization.
revision (`str`, *optional*):
Branch to push the uploaded files to.
commit_description (`str`, *optional*):
The description of the commit that will be created
tags (`List[str]`, *optional*):
List of tags to push on the Hub.
Examples:
```python
from transformers import {object_class}
{object} = {object_class}.from_pretrained("google-bert/bert-base-cased")
# Push the {object} to your namespace with the name "my-finetuned-bert".
{object}.push_to_hub("my-finetuned-bert")
# Push the {object} to an organization with the name "my-finetuned-bert".
{object}.push_to_hub("huggingface/my-finetuned-bert")
```
|
def get_file_from_repo(
path_or_repo: Union[str, os.PathLike],
filename: str,
cache_dir: Optional[Union[str, os.PathLike]] = None,
force_download: bool = False,
resume_download: bool = False,
proxies: Optional[Dict[str, str]] = None,
token: Optional[Union[bool, str]] = None,
revision: Optional[str] = None,
local_files_only: bool = False,
subfolder: str = "",
**deprecated_kwargs,
):
"""
Tries to locate a file in a local folder and repo, downloads and cache it if necessary.
Args:
path_or_repo (`str` or `os.PathLike`):
This can be either:
- a string, the *model id* of a model repo on huggingface.co.
- a path to a *directory* potentially containing the file.
filename (`str`):
The name of the file to locate in `path_or_repo`.
cache_dir (`str` or `os.PathLike`, *optional*):
Path to a directory in which a downloaded pretrained model configuration should be cached if the standard
cache should not be used.
force_download (`bool`, *optional*, defaults to `False`):
Whether or not to force to (re-)download the configuration files and override the cached versions if they
exist.
resume_download (`bool`, *optional*, defaults to `False`):
Whether or not to delete incompletely received file. Attempts to resume the download if such a file exists.
proxies (`Dict[str, str]`, *optional*):
A dictionary of proxy servers to use by protocol or endpoint, e.g., `{'http': 'foo.bar:3128',
'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request.
token (`str` or *bool*, *optional*):
The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated
when running `huggingface-cli login` (stored in `~/.huggingface`).
revision (`str`, *optional*, defaults to `"main"`):
The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any
identifier allowed by git.
local_files_only (`bool`, *optional*, defaults to `False`):
If `True`, will only try to load the tokenizer configuration from local files.
subfolder (`str`, *optional*, defaults to `""`):
In case the relevant files are located inside a subfolder of the model repo on huggingface.co, you can
specify the folder name here.
<Tip>
Passing `token=True` is required when you want to use a private model.
</Tip>
Returns:
`Optional[str]`: Returns the resolved file (to the cache folder if downloaded from a repo) or `None` if the
file does not exist.
Examples:
```python
# Download a tokenizer configuration from huggingface.co and cache.
tokenizer_config = get_file_from_repo("google-bert/bert-base-uncased", "tokenizer_config.json")
# This model does not have a tokenizer config so the result will be None.
tokenizer_config = get_file_from_repo("FacebookAI/xlm-roberta-base", "tokenizer_config.json")
```
"""
use_auth_token = deprecated_kwargs.pop("use_auth_token", None)
if use_auth_token is not None:
warnings.warn(
"The `use_auth_token` argument is deprecated and will be removed in v5 of Transformers. Please use `token` instead.",
FutureWarning,
)
if token is not None:
raise ValueError("`token` and `use_auth_token` are both specified. Please set only the argument `token`.")
token = use_auth_token
return cached_file(
path_or_repo_id=path_or_repo,
filename=filename,
cache_dir=cache_dir,
force_download=force_download,
resume_download=resume_download,
proxies=proxies,
token=token,
revision=revision,
local_files_only=local_files_only,
subfolder=subfolder,
_raise_exceptions_for_gated_repo=False,
_raise_exceptions_for_missing_entries=False,
_raise_exceptions_for_connection_errors=False,
)
|
(self, repo_id: str, use_temp_dir: Optional[bool] = None, commit_message: Optional[str] = None, private: Optional[bool] = None, token: Union[bool, str, NoneType] = None, max_shard_size: Union[int, str, NoneType] = '5GB', create_pr: bool = False, safe_serialization: bool = True, revision: str = None, commit_description: str = None, tags: Optional[List[str]] = None, **deprecated_kwargs) -> str
|
[
0.02376263588666916,
-0.03604238107800484,
-0.07997158914804459,
0.010829060338437557,
0.033692680299282074,
-0.04303019121289253,
-0.0032538259401917458,
0.0322011299431324,
0.054921723902225494,
-0.03295712172985077,
0.06840696930885315,
-0.0005832751630805433,
-0.07257513701915741,
-0.0006710697198286653,
-0.005123371258378029,
0.04777045547962189,
0.044051799923181534,
0.020074624568223953,
-0.00419115275144577,
0.03520466014742851,
-0.004742821678519249,
-0.022271085530519485,
-0.018879342824220657,
0.00634930282831192,
0.02929975837469101,
-0.022863619029521942,
0.03195594251155853,
-0.04392920434474945,
0.010354011319577694,
0.00878073275089264,
0.025478938594460487,
0.025581100955605507,
-0.03340663015842438,
0.08050282299518585,
0.00025412533432245255,
-0.005629067774862051,
0.05124393105506897,
0.020452620461583138,
-0.0674670860171318,
-0.07425057142972946,
-0.09889179468154907,
-0.007595666218549013,
0.08172875642776489,
0.0008077099337242544,
-0.02310880459845066,
-0.02960624173283577,
-0.04274413734674454,
-0.04061919078230858,
-0.03667577728629112,
-0.010808628052473068,
0.029749266803264618,
-0.00764163862913847,
0.02041175588965416,
-0.007421992719173431,
0.023946525529026985,
-0.01955360546708107,
-0.01945144310593605,
0.05671975761651993,
-0.007278967183083296,
0.06452485173940659,
0.025213321670889854,
-0.0360628142952919,
0.03589935600757599,
0.03937282785773277,
-0.023783067241311073,
-0.0005392182501964271,
0.020289164036512375,
-0.028094260022044182,
0.008285252377390862,
-0.006144980899989605,
-0.023333558812737465,
0.046503663063049316,
0.04519600048661232,
0.016631800681352615,
0.044419579207897186,
0.005904902704060078,
0.05120306462049484,
-0.0649743601679802,
0.018869126215577126,
0.0422537662088871,
0.04006752371788025,
-0.07077710330486298,
0.02194417081773281,
-0.04887379705905914,
0.004934373777359724,
-0.031506434082984924,
0.11155974864959717,
-0.0256423968821764,
0.0011946444865316153,
0.0018350658938288689,
0.008576410822570324,
0.04597242549061775,
-0.014455773867666721,
-0.050140589475631714,
0.006007063668221235,
-0.04846515133976936,
0.02656184509396553,
0.029218029230833054,
-0.045727238059043884,
-0.028400741517543793,
-0.02157639153301716,
0.052388131618499756,
-0.03718658164143562,
0.07098142057657242,
-0.02392609231173992,
-0.0013280923012644053,
-0.00924045778810978,
-0.03073001094162464,
0.03428521379828453,
-0.046748846769332886,
-0.03614454343914986,
-0.00015220383647829294,
0.017142606899142265,
0.01797010935842991,
0.04826083034276962,
0.005363449454307556,
-0.06146002188324928,
-0.02889111451804638,
-0.028421174734830856,
0.031976375728845596,
0.0018414510414004326,
-0.0186852365732193,
-0.020125705748796463,
-0.04061919078230858,
0.01497679390013218,
-0.020176786929368973,
0.026684438809752464,
-0.0375952273607254,
0.04315278306603432,
-0.008208631537854671,
0.03569503501057625,
-0.00010926432150881737,
0.020942993462085724,
0.02402825467288494,
0.01269860565662384,
0.02208719588816166,
0.034918610006570816,
0.003409621538594365,
0.00008292595157399774,
0.03757479414343834,
0.024763813242316246,
-0.002021509688347578,
-0.008699004538357258,
-0.003169543342664838,
0.015559111721813679,
0.008903326466679573,
0.022005466744303703,
-0.07000067830085754,
0.020942993462085724,
0.0032538259401917458,
0.08728630840778351,
-0.07306550443172455,
-0.0139143206179142,
0.053001098334789276,
0.01660115271806717,
-0.02492726966738701,
-0.02701135352253914,
0.022066764533519745,
-0.049445897340774536,
0.08597864955663681,
0.0033074605744332075,
0.003404513467103243,
0.03414218872785568,
0.03193550929427147,
0.047402676194906235,
0.009909611195325851,
-0.017806652933359146,
0.02406911738216877,
-0.0026919408701360226,
0.04409266263246536,
0.021801145747303963,
0.027052218094468117,
-0.033243171870708466,
-0.019441228359937668,
0.0035194444935768843,
-0.010737115517258644,
0.026234930381178856,
-0.0013217071536928415,
-0.03385613486170769,
-0.014997226186096668,
0.0052050999365746975,
-0.02956537716090679,
0.009092324413359165,
-0.004155396483838558,
-0.01975792646408081,
0.07792836427688599,
0.011472674086689949,
0.0033074605744332075,
0.05774136632680893,
0.020238082855939865,
-0.035838060081005096,
-0.006104116328060627,
0.009373266249895096,
-0.051570843905210495,
-0.037452202290296555,
-0.08646902441978455,
-0.013127680867910385,
-0.01757168211042881,
0.009255781769752502,
0.0029805456288158894,
-0.039434123784303665,
0.033284034579992294,
0.02188287489116192,
0.01949230767786503,
-0.08704112470149994,
0.011421593837440014,
-0.02314966917037964,
0.005141249392181635,
-0.00911275576800108,
0.09259867668151855,
-0.012514716014266014,
0.009863639250397682,
-0.04180425778031349,
0.015477382577955723,
0.022332381457090378,
0.01579408161342144,
-0.06558732688426971,
0.10641083866357803,
-0.0373704731464386,
0.053001098334789276,
0.06415706872940063,
-0.03158816322684288,
-0.02919759787619114,
0.012341042049229145,
0.04388834163546562,
-0.046135883778333664,
0.014956362545490265,
-0.005368557758629322,
-0.015334357507526875,
-0.04666711762547493,
0.03162902966141701,
0.011288784444332123,
0.05320541933178902,
-0.012320609763264656,
0.02052413299679756,
-0.004724943544715643,
0.023272262886166573,
0.0128211984410882,
-0.005368557758629322,
0.020963424816727638,
0.005955982953310013,
-0.031669892370700836,
0.005291936919093132,
0.06178693845868111,
-0.011585051193833351,
-0.010226310230791569,
0.03281409665942192,
0.013863240368664265,
-0.008995271287858486,
-0.03667577728629112,
-0.00858151912689209,
0.07441402971744537,
-0.049895405769348145,
0.03062785044312477,
0.03692096471786499,
-0.05692407861351967,
0.009638885036110878,
-0.045522917062044144,
0.03675750643014908,
0.03414218872785568,
-0.013086817227303982,
-0.07188043743371964,
0.007978769950568676,
-0.05173430219292641,
-0.02590801566839218,
-0.06358496844768524,
-0.0239669568836689,
0.0014251451939344406,
-0.02229151874780655,
0.01078819576650858,
0.0015707245329394937,
0.0256423968821764,
-0.003971506841480732,
-0.034612126648426056,
0.0425398163497448,
-0.02752215787768364,
-0.014312747865915298,
0.022965779528021812,
0.029892291873693466,
0.0811566561460495,
-0.05459480732679367,
-0.012555579654872417,
-0.006001955363899469,
0.009848315268754959,
-0.035674601793289185,
0.015732785686850548,
-0.07457748800516129,
0.013025520369410515,
0.01818464882671833,
0.027869505807757378,
0.02549937181174755,
0.024457329884171486,
-0.014098210260272026,
-0.023088373243808746,
0.008862461894750595,
-0.034060459583997726,
0.0025310374330729246,
0.015753217041492462,
0.08671420812606812,
-0.02748129330575466,
-0.06284940987825394,
0.05704667046666145,
0.009056567214429379,
-0.011094678193330765,
0.036185406148433685,
-0.03132254630327225,
-0.008433385752141476,
-0.07625292986631393,
0.02076932042837143,
0.032323721796274185,
0.06272681802511215,
-0.06967376172542572,
0.032221563160419464,
0.02249583974480629,
0.016161860898137093,
0.023905660957098007,
0.020840832963585854,
0.028298581019043922,
0.036696210503578186,
-0.014394477009773254,
0.002363748848438263,
0.04846515133976936,
-0.012535147368907928,
0.005613743793219328,
0.001858052215538919,
-0.036287568509578705,
-0.006231817416846752,
0.025152023881673813,
-0.008647924289107323,
0.04911898076534271,
-0.010900572873651981,
0.0273178368806839,
0.03138384222984314,
0.004855198785662651,
-0.04805650934576988,
0.040251411497592926,
0.01629467122256756,
-0.01656028814613819,
0.10109847038984299,
0.024763813242316246,
0.0798489898443222,
-0.07470007985830307,
-0.013015303760766983,
0.026112336665391922,
0.003565416904166341,
0.021903306245803833,
0.043847475200891495,
0.018102919682860374,
0.0566788911819458,
-0.03187421336770058,
-0.007054212968796492,
-0.006865215487778187,
0.033488355576992035,
-0.00449508149176836,
-0.03589935600757599,
-0.015712352469563484,
-0.0133320027962327,
0.022965779528021812,
0.0053583416156470776,
-0.057210128754377365,
-0.10771849751472473,
0.00466109300032258,
-0.0566788911819458,
0.02051391825079918,
-0.032017238438129425,
-0.01767384260892868,
0.010992517694830894,
0.026541413739323616,
-0.008300576359033585,
-0.04241722449660301,
-0.001792924595065415,
0.02529504895210266,
-0.015824729576706886,
-0.010037312284111977,
0.015610191971063614,
-0.04748440533876419,
-0.06293114274740219,
-0.059539396315813065,
0.007084861397743225,
0.02803296223282814,
0.015170900151133537,
0.016212942078709602,
-0.01254536397755146,
0.041926849633455276,
0.026480115950107574,
0.019124528393149376,
0.01716303825378418,
-0.01086992397904396,
0.07302464544773102,
-0.017602330073714256,
0.011595266871154308,
-0.04392920434474945,
0.08875742554664612,
0.008387413807213306,
-0.006068360060453415,
-0.01429231557995081,
0.013444379903376102,
0.033692680299282074,
-0.019543388858437538,
-0.015589759685099125,
0.013250274583697319,
0.029013708233833313,
0.061827801167964935,
0.03203767165541649,
-0.033038850873708725,
0.02198503538966179,
0.07490440458059311,
-0.010972085408866405,
-0.00619606114923954,
0.019461659714579582,
-0.05925334617495537,
0.012637308798730373,
0.005067182704806328,
-0.015610191971063614,
-0.016386615112423897,
0.09545918554067612,
-0.0368596687912941,
-0.015273060649633408,
0.032834526151418686,
-0.018041621893644333,
-0.03620583936572075,
-0.03128167986869812,
0.0015911567024886608,
-0.016325319185853004,
-0.057618770748376846,
0.05937594175338745,
0.0027047109324485064,
-0.02270016074180603,
-0.04245808720588684,
0.015732785686850548,
0.023905660957098007,
-0.04401093348860741,
0.03518423065543175,
-0.036634914577007294,
0.029279327020049095,
0.02584671787917614,
-0.05398184433579445,
-0.012872278690338135,
-0.03442823886871338,
0.0014711176045238972,
-0.021658120676875114,
-0.010052637197077274,
0.009403915144503117,
0.014333180151879787,
-0.020902128890156746,
0.007217670790851116,
-0.04625847563147545,
0.025376778095960617,
-0.037554364651441574,
-0.029544943943619728,
0.05340974032878876,
0.06987808644771576,
-0.0038846698589622974,
0.026337090879678726,
-0.03980190306901932,
-0.009291538037359715,
-0.06914252787828445,
0.05643370375037193,
-0.03209896758198738,
-0.007932797074317932,
0.024559490382671356,
0.047157492488622665,
0.07841873914003372,
-0.04535945877432823,
0.02711351402103901,
-0.05941680446267128,
0.015303709544241428,
-0.030607419088482857,
-0.05982545018196106,
-0.048669472336769104,
0.026480115950107574,
-0.09055545926094055,
-0.026132769882678986,
0.0053174770437181,
-0.03865770250558853,
0.007799988146871328,
0.021310772746801376,
-0.000581359607167542,
-0.04834255948662758,
-0.04777045547962189,
0.006104116328060627,
-0.031915079802274704,
-0.05941680446267128,
-0.008530438877642155,
0.041722528636455536,
-0.03326360136270523,
0.0021504878532141447,
0.06019322946667671,
-0.00042971447692252696,
0.027133947238326073,
-0.05034491419792175,
0.06329891830682755,
-0.06293114274740219,
0.016212942078709602,
-0.00495225191116333,
0.03469385579228401,
-0.008515114895999432,
0.04437871277332306,
-0.02584671787917614,
-0.06562819331884384,
0.01543651893734932,
-0.09464190155267715,
0.04164079949259758,
0.031056927517056465,
-0.01170764397829771,
-0.021596822887659073,
-0.022986212745308876,
-0.018215296790003777,
-0.003031626110896468,
0.0008275036234408617,
0.022741025313735008,
0.015763433650135994,
0.021494662389159203,
-0.014956362545490265,
0.009592912159860134,
0.01802119053900242,
-0.006952052004635334,
-0.013587405905127525,
-0.028421174734830856,
0.02523375302553177,
-0.00551158282905817,
-0.012514716014266014,
0.06758967787027359,
-0.006236925721168518,
-0.02554023638367653,
0.02793080173432827,
0.0543496236205101,
-0.0016179739031940699,
0.01348524447530508,
-0.014047130011022091,
-0.04454217106103897,
-0.02214849181473255,
-0.04638106748461723,
0.028257716447114944,
0.04437871277332306,
-0.026337090879678726,
-0.01990095153450966,
-0.0234561525285244,
-0.07470007985830307,
-0.05524863675236702,
-0.011370512656867504,
0.006099008489400148,
-0.06734449416399002,
-0.01266795676201582,
0.0017673843540251255,
-0.024722948670387268,
0.0035756330471485853,
0.03087303787469864,
0.015661273151636124,
-0.015354789793491364,
-0.0378812775015831,
-0.0022973441518843174,
0.0728611871600151,
-0.019359499216079712,
0.007043996825814247,
0.0489555224776268,
-0.03209896758198738,
-0.04854688048362732,
-0.003583295037969947,
-0.032528042793273926,
0.009174052625894547,
0.04474649205803871,
-0.035061635076999664,
0.00648722006008029,
0.008821597322821617,
0.03773825243115425,
0.06812091916799545,
-0.020289164036512375,
0.0042984215542674065,
-0.04168166592717171,
0.03428521379828453,
0.05059009790420532,
-0.03824905678629875,
0.001605203840881586,
0.017275415360927582,
0.012402338907122612,
0.023885227739810944,
-0.04047616571187973,
0.04495081678032875,
0.04470562934875488,
0.012943791225552559,
-0.06370756775140762,
0.03187421336770058,
0.0327119342982769,
-0.019461659714579582,
0.03696183115243912,
0.014404692687094212,
0.028073826804757118,
0.004655985161662102,
0.0035194444935768843,
-0.018153999000787735,
-0.015456950291991234,
0.02076932042837143,
-0.013730430975556374,
0.048424288630485535,
0.003297244431450963,
-0.022107627242803574,
0.0090872161090374,
0.022924914956092834,
-0.004707065410912037,
0.0036854560021311045,
-0.04850601777434349,
-0.013270706869661808,
-0.011687211692333221,
-0.038269490003585815,
-0.003483688225969672,
-0.0456046462059021,
0.041211724281311035,
0.02088169753551483,
0.009991340339183807,
-0.06276768445968628,
-0.03753393143415451,
0.023374423384666443,
-0.0005804018583148718,
-0.0012968054506927729,
0.004198814742267132,
0.016539856791496277,
-0.0062471418641507626,
-0.04331624135375023,
-0.033999163657426834,
-0.021821577101945877,
-0.0171221736818552,
0.011493106372654438,
0.028421174734830856,
0.01863415539264679,
-0.019696630537509918,
0.020146138966083527,
-0.039781469851732254,
-0.022475408390164375,
0.07224822044372559,
-0.01681569218635559,
0.01702001318335533,
0.06677239388227463,
0.014220803044736385,
0.024416465312242508,
-0.014261667616665363,
0.04605415463447571,
0.035981085151433945,
-0.007575233932584524,
-0.018102919682860374,
-0.020146138966083527,
-0.00840273778885603,
-0.028972843661904335,
0.05892643332481384,
-0.07143092900514603,
-0.042376358062028885,
0.007621206343173981,
0.03352922201156616,
0.13117465376853943,
-0.005966199096292257,
0.012024343013763428,
0.010716683231294155,
0.03843294829130173,
-0.004597242455929518,
-0.008974839001893997,
-0.021290341392159462,
0.06362583488225937,
-0.03487774729728699,
0.03236458823084831,
-0.012902927584946156,
0.05729185789823532,
-0.02082039974629879,
0.0015860486309975386,
0.014670311473309994,
-0.09333423525094986,
-0.03363138437271118,
0.001712472760118544,
-0.04129345342516899,
0.010154797695577145,
-0.0077948798425495625,
-0.02157639153301716,
0.006952052004635334,
-0.03226242586970329,
-0.06358496844768524,
0.03508206829428673,
-0.03469385579228401,
0.060806192457675934,
0.0022488178219646215,
-0.007692718878388405,
0.05079442262649536,
0.020687591284513474,
0.04176339507102966,
-0.025417642667889595,
0.0778057724237442,
-0.02645968459546566,
0.061378296464681625,
0.013199194334447384,
0.03238501772284508,
0.01624359004199505,
-0.03812646493315697,
0.012198016978800297,
0.019410578534007072,
0.01644791103899479,
-0.06178693845868111,
-0.015048307366669178,
-0.026091905310750008,
0.005059520713984966,
-0.003590957261621952,
0.0031056925654411316,
-0.01619250886142254,
0.0198498722165823,
-0.01307660061866045,
0.025049863383173943,
-0.007554801646620035,
-0.04683057591319084,
-0.005033980589359999,
-0.0613374300301075,
-0.00265873852185905,
-0.0641162097454071,
-0.0603158213198185,
-0.0031414490658789873,
-0.055943332612514496,
0.055166907608509064,
-0.009991340339183807,
0.024314304813742638,
-0.001082267495803535,
-0.05635197460651398,
-0.024743380025029182,
0.013526109047234058,
-0.023783067241311073,
-0.004972683731466532,
-0.03845337778329849,
-0.024661650881171227,
0.05210208147764206,
-0.008443602360785007,
-0.03589935600757599,
-0.011237704195082188,
-0.04245808720588684,
0.004308637697249651,
0.04368402063846588,
0.05173430219292641,
0.04503254219889641,
0.04576810449361801,
-0.030893469229340553,
-0.015395654365420341,
-0.07163525372743607,
0.03630799800157547,
0.025376778095960617,
-0.025008998811244965,
0.05271504819393158,
-0.019982680678367615,
-0.0181744322180748,
-0.06881561130285263,
-0.026214497163891792,
0.04401093348860741,
0.0020138476975262165,
0.04490995034575462,
-0.005654608365148306,
-0.04965021833777428,
-0.017857732251286507,
-0.023497017100453377,
-0.021903306245803833,
0.028768520802259445,
0.05627024918794632,
0.013904104009270668,
-0.012606660835444927,
-0.04421525448560715,
0.01160548347979784,
-0.0014889957383275032,
-0.020023545250296593,
-0.050549235194921494,
-0.056801483035087585,
-0.019992897287011147,
-0.06738536059856415,
0.015078955329954624,
-0.006579164881259203,
-0.028319014236330986,
0.00020065048011019826
] |
9,950
|
sentence_transformers.cross_encoder.CrossEncoder
|
rank
|
Performs ranking with the CrossEncoder on the given query and documents. Returns a sorted list with the document indices and scores.
Example:
::
from sentence_transformers import CrossEncoder
model = CrossEncoder("cross-encoder/ms-marco-MiniLM-L-6-v2")
query = "Who wrote 'To Kill a Mockingbird'?"
documents = [
"'To Kill a Mockingbird' is a novel by Harper Lee published in 1960. It was immediately successful, winning the Pulitzer Prize, and has become a classic of modern American literature.",
"The novel 'Moby-Dick' was written by Herman Melville and first published in 1851. It is considered a masterpiece of American literature and deals with complex themes of obsession, revenge, and the conflict between good and evil.",
"Harper Lee, an American novelist widely known for her novel 'To Kill a Mockingbird', was born in 1926 in Monroeville, Alabama. She received the Pulitzer Prize for Fiction in 1961.",
"Jane Austen was an English novelist known primarily for her six major novels, which interpret, critique and comment upon the British landed gentry at the end of the 18th century.",
"The 'Harry Potter' series, which consists of seven fantasy novels written by British author J.K. Rowling, is among the most popular and critically acclaimed books of the modern era.",
"'The Great Gatsby', a novel written by American author F. Scott Fitzgerald, was published in 1925. The story is set in the Jazz Age and follows the life of millionaire Jay Gatsby and his pursuit of Daisy Buchanan."
]
model.rank(query, documents, return_documents=True)
::
[{'corpus_id': 0,
'score': 10.67858,
'text': "'To Kill a Mockingbird' is a novel by Harper Lee published in 1960. It was immediately successful, winning the Pulitzer Prize, and has become a classic of modern American literature."},
{'corpus_id': 2,
'score': 9.761677,
'text': "Harper Lee, an American novelist widely known for her novel 'To Kill a Mockingbird', was born in 1926 in Monroeville, Alabama. She received the Pulitzer Prize for Fiction in 1961."},
{'corpus_id': 1,
'score': -3.3099542,
'text': "The novel 'Moby-Dick' was written by Herman Melville and first published in 1851. It is considered a masterpiece of American literature and deals with complex themes of obsession, revenge, and the conflict between good and evil."},
{'corpus_id': 5,
'score': -4.8989105,
'text': "'The Great Gatsby', a novel written by American author F. Scott Fitzgerald, was published in 1925. The story is set in the Jazz Age and follows the life of millionaire Jay Gatsby and his pursuit of Daisy Buchanan."},
{'corpus_id': 4,
'score': -5.082967,
'text': "The 'Harry Potter' series, which consists of seven fantasy novels written by British author J.K. Rowling, is among the most popular and critically acclaimed books of the modern era."}]
:param query: A single query
:param documents: A list of documents
:param top_k: Return the top-k documents. If None, all documents are returned.
:param return_documents: If True, also returns the documents. If False, only returns the indices and scores.
:param batch_size: Batch size for encoding
:param show_progress_bar: Output progress bar
:param num_workers: Number of workers for tokenization
:param activation_fct: Activation function applied on the logits output of the CrossEncoder. If None, nn.Sigmoid() will be used if num_labels=1, else nn.Identity
:param convert_to_numpy: Convert the output to a numpy matrix.
:param apply_softmax: If there are more than 2 dimensions and apply_softmax=True, applies softmax on the logits output
:param convert_to_tensor: Convert the output to a tensor.
:return: A sorted list with the document indices and scores, and optionally also documents.
|
def rank(
self,
query: str,
documents: List[str],
top_k: Optional[int] = None,
return_documents: bool = False,
batch_size: int = 32,
show_progress_bar: bool = None,
num_workers: int = 0,
activation_fct=None,
apply_softmax=False,
convert_to_numpy: bool = True,
convert_to_tensor: bool = False,
) -> List[Dict]:
"""
Performs ranking with the CrossEncoder on the given query and documents. Returns a sorted list with the document indices and scores.
Example:
::
from sentence_transformers import CrossEncoder
model = CrossEncoder("cross-encoder/ms-marco-MiniLM-L-6-v2")
query = "Who wrote 'To Kill a Mockingbird'?"
documents = [
"'To Kill a Mockingbird' is a novel by Harper Lee published in 1960. It was immediately successful, winning the Pulitzer Prize, and has become a classic of modern American literature.",
"The novel 'Moby-Dick' was written by Herman Melville and first published in 1851. It is considered a masterpiece of American literature and deals with complex themes of obsession, revenge, and the conflict between good and evil.",
"Harper Lee, an American novelist widely known for her novel 'To Kill a Mockingbird', was born in 1926 in Monroeville, Alabama. She received the Pulitzer Prize for Fiction in 1961.",
"Jane Austen was an English novelist known primarily for her six major novels, which interpret, critique and comment upon the British landed gentry at the end of the 18th century.",
"The 'Harry Potter' series, which consists of seven fantasy novels written by British author J.K. Rowling, is among the most popular and critically acclaimed books of the modern era.",
"'The Great Gatsby', a novel written by American author F. Scott Fitzgerald, was published in 1925. The story is set in the Jazz Age and follows the life of millionaire Jay Gatsby and his pursuit of Daisy Buchanan."
]
model.rank(query, documents, return_documents=True)
::
[{'corpus_id': 0,
'score': 10.67858,
'text': "'To Kill a Mockingbird' is a novel by Harper Lee published in 1960. It was immediately successful, winning the Pulitzer Prize, and has become a classic of modern American literature."},
{'corpus_id': 2,
'score': 9.761677,
'text': "Harper Lee, an American novelist widely known for her novel 'To Kill a Mockingbird', was born in 1926 in Monroeville, Alabama. She received the Pulitzer Prize for Fiction in 1961."},
{'corpus_id': 1,
'score': -3.3099542,
'text': "The novel 'Moby-Dick' was written by Herman Melville and first published in 1851. It is considered a masterpiece of American literature and deals with complex themes of obsession, revenge, and the conflict between good and evil."},
{'corpus_id': 5,
'score': -4.8989105,
'text': "'The Great Gatsby', a novel written by American author F. Scott Fitzgerald, was published in 1925. The story is set in the Jazz Age and follows the life of millionaire Jay Gatsby and his pursuit of Daisy Buchanan."},
{'corpus_id': 4,
'score': -5.082967,
'text': "The 'Harry Potter' series, which consists of seven fantasy novels written by British author J.K. Rowling, is among the most popular and critically acclaimed books of the modern era."}]
:param query: A single query
:param documents: A list of documents
:param top_k: Return the top-k documents. If None, all documents are returned.
:param return_documents: If True, also returns the documents. If False, only returns the indices and scores.
:param batch_size: Batch size for encoding
:param show_progress_bar: Output progress bar
:param num_workers: Number of workers for tokenization
:param activation_fct: Activation function applied on the logits output of the CrossEncoder. If None, nn.Sigmoid() will be used if num_labels=1, else nn.Identity
:param convert_to_numpy: Convert the output to a numpy matrix.
:param apply_softmax: If there are more than 2 dimensions and apply_softmax=True, applies softmax on the logits output
:param convert_to_tensor: Convert the output to a tensor.
:return: A sorted list with the document indices and scores, and optionally also documents.
"""
query_doc_pairs = [[query, doc] for doc in documents]
scores = self.predict(
query_doc_pairs,
batch_size=batch_size,
show_progress_bar=show_progress_bar,
num_workers=num_workers,
activation_fct=activation_fct,
apply_softmax=apply_softmax,
convert_to_numpy=convert_to_numpy,
convert_to_tensor=convert_to_tensor,
)
results = []
for i in range(len(scores)):
if return_documents:
results.append({"corpus_id": i, "score": scores[i], "text": documents[i]})
else:
results.append({"corpus_id": i, "score": scores[i]})
results = sorted(results, key=lambda x: x["score"], reverse=True)
return results[:top_k]
|
(self, query: str, documents: List[str], top_k: Optional[int] = None, return_documents: bool = False, batch_size: int = 32, show_progress_bar: Optional[bool] = None, num_workers: int = 0, activation_fct=None, apply_softmax=False, convert_to_numpy: bool = True, convert_to_tensor: bool = False) -> List[Dict]
|
[
-0.01789790764451027,
-0.012503623962402344,
-0.10048889368772507,
0.019172223284840584,
0.052543964236974716,
0.05744960159063339,
-0.04054814949631691,
-0.05672141909599304,
0.08393236994743347,
-0.011641304939985275,
0.017591305077075958,
-0.01635531522333622,
-0.017275121062994003,
-0.02740257792174816,
0.00693208584561944,
0.041659582406282425,
0.05683639645576477,
-0.012340741232037544,
0.022420290857553482,
0.03757794201374054,
-0.014851047657430172,
-0.0631217435002327,
-0.01095145009458065,
0.08776489645242691,
0.007401570677757263,
-0.0457603894174099,
0.021557971835136414,
-0.03867021203041077,
-0.03978164494037628,
0.009600483812391758,
-0.00846030656248331,
-0.00690813222900033,
0.04495555907487869,
0.011411353014409542,
-0.05304219201207161,
-0.031158456578850746,
0.026233656331896782,
0.0015114534180611372,
0.018568599596619606,
-0.06427150219678879,
-0.059749118983745575,
-0.0257162656635046,
0.030641064047813416,
-0.03591079264879227,
-0.002663607243448496,
0.046220291405916214,
-0.007185990922152996,
0.002256401116028428,
-0.00300374417565763,
0.02868647500872612,
-0.024604832753539085,
-0.08722834289073944,
-0.03355378657579422,
-0.027881644666194916,
-0.061013851314783096,
-0.035814978182315826,
-0.00924118421971798,
-0.0126569252461195,
-0.029050564393401146,
-0.05258229002356529,
0.06055394932627678,
0.021941224113106728,
0.008350120857357979,
0.10754074901342392,
-0.020983092486858368,
0.034032851457595825,
0.03970499336719513,
0.004000201355665922,
-0.05315716937184334,
-0.0006015272811055183,
-0.022171176970005035,
-0.014793559908866882,
0.06032399833202362,
-0.0008826791890896857,
-0.02274605631828308,
0.005892512388527393,
-0.008810024708509445,
-0.013375524431467056,
-0.02529468759894371,
-0.00944239180535078,
0.0430009700357914,
-0.0008401621016673744,
0.03792286664247513,
-0.04744670167565346,
0.03608325496315956,
-0.03788454458117485,
0.05940419062972069,
0.04572206363081932,
-0.0007910578278824687,
-0.022631080821156502,
-0.04587536305189133,
0.03547004982829094,
0.04740837588906288,
0.01280064508318901,
-0.004512802232056856,
-0.002759420545771718,
-0.009657971560955048,
-0.05227568745613098,
-0.0019497987814247608,
-0.030985992401838303,
-0.01864525116980076,
0.09558326005935669,
0.027019325643777847,
-0.003494786797091365,
-0.0024360509123653173,
-0.012743157334625721,
-0.06469307839870453,
-0.010798148810863495,
0.005293679889291525,
0.01911473460495472,
-0.0673375204205513,
0.034358616918325424,
0.04974621906876564,
0.005940419156104326,
0.01787874475121498,
-0.07377617061138153,
-0.016115782782435417,
0.04564541205763817,
-0.0008862721733748913,
0.047255076467990875,
0.027134301140904427,
0.0032360912300646305,
-0.00001537315438326914,
-0.039973270148038864,
-0.08163285255432129,
-0.009974155575037003,
0.07392947375774384,
0.04139130562543869,
0.03299807012081146,
-0.07400612533092499,
-0.0034085549414157867,
-0.023972464725375175,
0.04215781390666962,
0.023627538233995438,
0.06848727911710739,
-0.01562713459134102,
0.01651819795370102,
-0.009111836552619934,
-0.05813945457339287,
-0.000018348604498896748,
0.025888729840517044,
-0.010865218006074429,
0.029663769528269768,
-0.007296175695955753,
-0.016978099942207336,
0.003492391435429454,
0.03161836043000221,
-0.047063447535037994,
0.017648793756961823,
-0.01591457426548004,
0.03706055134534836,
-0.0175242368131876,
0.03173333406448364,
-0.06561288237571716,
-0.022592755034565926,
-0.005581119563430548,
0.07948663830757141,
-0.10516458004713058,
0.0018719505751505494,
-0.0027354671619832516,
0.029587119817733765,
-0.054153624922037125,
0.0023198772687464952,
0.005571538116782904,
-0.012541948817670345,
0.0033846015576273203,
0.017418840900063515,
-0.008790861815214157,
-0.06170370802283287,
0.014966023154556751,
0.05522673577070236,
0.039436716586351395,
-0.028226571157574654,
-0.016958938911557198,
-0.07113172858953476,
0.006606320850551128,
-0.010232850909233093,
0.031100967898964882,
-0.0681423544883728,
0.041697908192873,
-0.01666191779077053,
-0.03736715018749237,
-0.033400483429431915,
-0.045377135276794434,
-0.030564414337277412,
0.02857149951159954,
0.010290338657796383,
0.02201787568628788,
0.006443438585847616,
0.0050972625613212585,
-0.007162037305533886,
-0.06526795774698257,
0.023800000548362732,
-0.005547584965825081,
-0.01440072525292635,
-0.009336997754871845,
-0.027900807559490204,
0.01698768138885498,
0.033093880861997604,
0.039743319153785706,
0.007104549556970596,
0.027766667306423187,
0.036562319844961166,
-0.02594621665775776,
-0.06553623825311661,
0.0007479418418370187,
-0.06825733184814453,
0.056146539747714996,
-0.00556195667013526,
-0.032116588205099106,
0.0005943413125351071,
-0.06105217710137367,
0.009356159716844559,
0.03144589439034462,
0.056146539747714996,
0.018242835998535156,
0.019229711964726448,
-0.0004503220843616873,
0.00913578923791647,
-0.06296844035387039,
0.05909758806228638,
0.02063816599547863,
-0.005221819970756769,
-0.03978164494037628,
0.0018456019461154938,
-0.009198067709803581,
0.06427150219678879,
-0.03257649019360542,
0.051394205540418625,
-0.013011434115469456,
0.040279872715473175,
-0.050857651978731155,
-0.0402415469288826,
-0.005648188758641481,
-0.024719808250665665,
-0.021462159231305122,
0.004754730500280857,
0.04625861719250679,
0.01624033972620964,
-0.026176169514656067,
0.030641064047813416,
0.004287641029804945,
0.022152014076709747,
0.011516747996211052,
-0.05292721837759018,
0.013193478807806969,
0.05702802166342735,
-0.025428825989365578,
-0.024106603115797043,
0.007962077856063843,
-0.009284299798309803,
-0.07887343317270279,
-0.003624134697020054,
-0.022171176970005035,
0.05407697707414627,
-0.0009317834628745914,
-0.047906603664159775,
-0.015799598768353462,
-0.00666859932243824,
0.006601530127227306,
-0.0637732744216919,
0.014007891528308392,
-0.021328020840883255,
0.024183254688978195,
-0.011181402020156384,
-0.02698099985718727,
-0.011363446712493896,
0.020657328888773918,
0.00032366899540647864,
0.027038488537073135,
-0.07438937574625015,
0.057947829365730286,
-0.015397182665765285,
-0.00173302146140486,
-0.020619003102183342,
-0.005140378605574369,
-0.054881807416677475,
0.01977584697306156,
-0.04752335324883461,
0.048864737153053284,
0.02243945375084877,
-0.04192785918712616,
-0.04522383585572243,
-0.05909758806228638,
0.09972238540649414,
0.026233656331896782,
-0.03568083792924881,
-0.040586475282907486,
0.019402174279093742,
-0.06319839507341385,
0.01075024250894785,
-0.0008904639980755746,
0.04541546106338501,
-0.022362804040312767,
-0.04702512174844742,
-0.006405113264918327,
0.019718358293175697,
-0.024738971143960953,
0.0024061091244220734,
0.017064332962036133,
0.002874396275728941,
0.014007891528308392,
0.09190402925014496,
-0.028609825298190117,
0.04307761788368225,
0.045453786849975586,
0.04231111332774162,
0.006084138993173838,
-0.0031115340534597635,
-0.024949759244918823,
-0.04691014811396599,
0.017332609742879868,
0.003736715065315366,
0.018137440085411072,
-0.08592528849840164,
-0.02105974406003952,
0.048634786158800125,
-0.013749195262789726,
0.018022464588284492,
0.035527538508176804,
-0.021653786301612854,
-0.017562560737133026,
0.042694367468357086,
-0.0018647646065801382,
0.024374879896640778,
-0.08416232466697693,
-0.03292141854763031,
-0.025390500202775,
0.012158696539700031,
-0.04043317586183548,
0.04369082301855087,
-0.020044123753905296,
0.03380290046334267,
0.0032768116798251867,
-0.044840581715106964,
-0.045990340411663055,
0.026751048862934113,
0.01658526621758938,
0.029165541753172874,
0.03188663721084595,
-0.00024911435320973396,
-0.08462222665548325,
-0.001072509097866714,
0.048941388726234436,
-0.020235750824213028,
-0.002546236151829362,
-0.016087038442492485,
-0.02740257792174816,
0.007554871495813131,
-0.04096972942352295,
0.029050564393401146,
0.012982689775526524,
0.010798148810863495,
0.0548434816300869,
0.046105317771434784,
0.023340098559856415,
-0.013413849286735058,
-0.004412198439240456,
0.028667312115430832,
-0.05131755396723747,
-0.04648856818675995,
-0.04698679968714714,
0.003037278773263097,
0.046833496540784836,
0.011353865265846252,
0.016269082203507423,
0.005724839400500059,
-0.0024935388937592506,
0.017811676487326622,
-0.024470694363117218,
0.012992271222174168,
-0.07711046934127808,
-0.03495265915989876,
0.07404445111751556,
-0.009796900674700737,
0.029357166960835457,
-0.09397359937429428,
0.0002742653014138341,
-0.00556195667013526,
-0.0063715786673128605,
0.011717955581843853,
0.025543801486492157,
0.03251900523900986,
-0.025677939876914024,
-0.019076410681009293,
-0.0019402174511924386,
-0.023550886660814285,
-0.029452981427311897,
0.014142029918730259,
-0.0205231886357069,
-0.00017860181105788797,
0.025773754343390465,
0.015972062945365906,
-0.040586475282907486,
-0.023742513731122017,
0.04687182232737541,
-0.0028193036559969187,
-0.006841063033789396,
-0.0402415469288826,
-0.06622608751058578,
-0.018079953268170357,
-0.04096972942352295,
0.0000841359724290669,
0.02220950275659561,
-0.011076007038354874,
0.0058541870675981045,
0.024911435320973396,
0.028130758553743362,
-0.01565587893128395,
0.10033559054136276,
-0.04679517075419426,
-0.0692921131849289,
0.018137440085411072,
0.031273432075977325,
-0.09474010020494461,
0.0028097224421799183,
0.0009287893190048635,
0.06331337243318558,
0.009207649156451225,
0.02265024371445179,
0.04139130562543869,
0.05894428491592407,
0.06710757315158844,
0.057411275804042816,
0.014554026536643505,
-0.004086433444172144,
-0.006639855448156595,
-0.029050564393401146,
-0.0042038047686219215,
0.005748792551457882,
-0.02159629762172699,
-0.07473430037498474,
-0.005935628432780504,
-0.008766909129917622,
-0.02602286823093891,
0.03240402787923813,
-0.037750404328107834,
0.03723301365971565,
-0.03230821341276169,
-0.006414694245904684,
0.07680387049913406,
-0.016834380105137825,
0.04177455976605415,
-0.01434323750436306,
0.0765739157795906,
0.012292834930121899,
-0.010146618820726871,
0.014975604601204395,
-0.06979034096002579,
-0.01100893784314394,
0.0436524972319603,
0.016978099942207336,
0.0130210155621171,
0.05534170940518379,
0.07055684924125671,
0.015205556526780128,
-0.012886877171695232,
0.03671562299132347,
0.006155998911708593,
0.004769102670252323,
0.007032689638435841,
0.019967472180724144,
-0.0023641909938305616,
0.020408213138580322,
0.006270974408835173,
0.0738144963979721,
-0.047485027462244034,
-0.02297600731253624,
-0.041238006204366684,
-0.02634863182902336,
0.03939839079976082,
-0.009782528504729271,
-0.015857085585594177,
-0.02560129016637802,
-0.020235750824213028,
0.008723792620003223,
0.00035151472548022866,
-0.04119968041777611,
0.03067938983440399,
0.025275524705648422,
0.005720048677176237,
-0.007554871495813131,
0.001875543617643416,
0.01445821300148964,
-0.0010491546709090471,
0.002594142686575651,
0.0019617753569036722,
-0.026942674070596695,
0.049707893282175064,
-0.018396135419607162,
0.01715056411921978,
0.04687182232737541,
0.0820927545428276,
-0.03661980852484703,
-0.032768119126558304,
0.015263044275343418,
-0.00027381620020605624,
0.05304219201207161,
-0.04311594367027283,
0.011689211241900921,
0.014324074611067772,
-0.012168277986347675,
-0.04702512174844742,
-0.011995813809335232,
0.039436716586351395,
-0.008551329374313354,
0.0012108394876122475,
0.012522786855697632,
-0.004009782802313566,
-0.024796457961201668,
-0.083395816385746,
-0.052352339029312134,
0.029893720522522926,
-0.005102053284645081,
-0.0038924117106944323,
0.016805637627840042,
-0.0292038656771183,
0.040279872715473175,
0.025122223421931267,
0.019507570192217827,
0.023129308596253395,
0.0031091386917978525,
-0.06484638154506683,
-0.033093880861997604,
0.02171127311885357,
0.010980193503201008,
0.002589351963251829,
0.0077752419747412205,
0.032653141766786575,
0.02381916344165802,
-0.021845411509275436,
0.006596739403903484,
0.015895411372184753,
0.016863124445080757,
0.028015783056616783,
-0.0013066526735201478,
0.014966023154556751,
-0.005020612385123968,
0.1111433207988739,
0.03872770071029663,
-0.027153464034199715,
0.08278261125087738,
-0.011047262698411942,
-0.05664477124810219,
0.0791800394654274,
0.03460773080587387,
-0.0025510266423225403,
-0.0024001209530979395,
-0.02253526635468006,
0.029606282711029053,
-0.02276521921157837,
-0.007104549556970596,
0.05978744104504585,
0.026751048862934113,
0.05269726365804672,
0.07002029567956924,
0.006467391736805439,
-0.017907489091157913,
0.03872770071029663,
-0.019200967624783516,
0.04173623397946358,
-0.017533818259835243,
0.029395492747426033,
-0.03230821341276169,
0.023627538233995438,
0.016690660268068314,
-0.03706055134534836,
-0.038900163024663925,
-0.02634863182902336,
-0.0402415469288826,
0.008704629726707935,
-0.007631522137671709,
0.002713909139856696,
0.023627538233995438,
0.008302214555442333,
0.023148471489548683,
-0.0030995572451502085,
-0.06898551434278488,
0.0031570452265441418,
0.004987077787518501,
0.03740547597408295,
0.03357294946908951,
0.0874582976102829,
-0.01137302815914154,
0.03269146755337715,
0.015320532023906708,
0.011047262698411942,
-0.012101208791136742,
0.001895903842523694,
-0.043997425585985184,
-0.0017569747287780046,
-0.0005368533893488348,
-0.026846861466765404,
0.026176169514656067,
0.043345894664525986,
0.008838769048452377,
-0.021040581166744232,
-0.027440903708338737,
0.0009066325146704912,
-0.0756157860159874,
-0.043039292097091675,
0.0368305966258049,
-0.03729050233960152,
0.014439051039516926,
-0.008776489645242691,
-0.02000579796731472,
0.0029438608326017857,
0.05867600813508034,
0.04687182232737541,
0.018194928765296936,
-0.01989082247018814,
-0.016374478116631508,
-0.05430692806839943,
-0.04733172431588173,
0.039436716586351395,
-0.008905838243663311,
0.007444686256349087,
0.05300386622548103,
0.03895765170454979,
-0.029702095314860344,
0.07599903643131256,
0.027076812461018562,
0.021557971835136414,
0.007061433512717485,
-0.029050564393401146,
0.06503801047801971,
-0.005734420381486416,
-0.04043317586183548,
0.03851690888404846,
-0.005619444884359837,
0.028015783056616783,
0.014851047657430172,
0.07469598203897476,
0.014094123616814613,
-0.015713365748524666,
-0.007962077856063843,
0.03081352822482586,
0.0242599043995142,
-0.024489857256412506,
-0.046105317771434784,
-0.012733575887978077,
0.042196135967969894,
0.0004856532032135874,
-0.00634762505069375,
-0.00946634542196989,
-0.00449843006208539,
0.010271175764501095,
0.0015797202941030264,
0.09090757369995117,
0.06599614024162292,
-0.02159629762172699,
0.005533212795853615,
0.017610467970371246,
-0.020580677315592766,
-0.03673478588461876,
0.01801288314163685,
0.0038924117106944323,
0.005375121254473925,
0.04181288555264473,
-0.008896256797015667,
0.0038157610688358545,
-0.018597343936562538,
0.015521739609539509,
-0.02330177277326584,
-0.04108470305800438,
0.013998310081660748,
0.05430692806839943,
-0.015521739609539509,
0.0012395833618938923,
0.0031929751858115196,
-0.013950403779745102,
0.011564654298126698,
0.020369889214634895,
-0.024068279191851616,
0.03205909952521324,
0.05342544615268707,
0.02519887499511242,
-0.01804162748157978,
-0.017466748133301735,
-0.06676264107227325,
-0.013059340417385101,
0.03734799101948738,
-0.02983623370528221,
0.04173623397946358,
-0.055954914540052414,
-0.04311594367027283,
-0.03177165985107422,
0.0010761021403595805,
0.001664754468947649,
-0.030468599870800972,
-0.00006444935570470989,
0.011219726875424385,
0.014419888146221638,
-0.06331337243318558,
-0.03303639590740204,
0.06530628353357315,
-0.04878808557987213,
-0.0410463772714138,
0.024221578612923622,
-0.014611514285206795,
0.027460066601634026,
0.025658776983618736,
-0.007190781179815531,
-0.035105958580970764,
-0.04426570236682892,
0.034032851457595825,
-0.07032689452171326,
-0.0054086558520793915,
-0.002972604939714074,
-0.030219485983252525,
0.013854590244591236,
-0.027076812461018562,
-0.0012791063636541367,
0.030123673379421234,
-0.01084605511277914,
0.0009120219619944692,
0.07358454167842865,
0.0988025814294815,
0.008877093903720379,
-0.01666191779077053,
0.023340098559856415,
-0.005494887474924326,
0.026176169514656067,
0.03610241785645485,
0.009820854291319847,
-0.022075364366173744,
0.03092850372195244,
-0.005375121254473925,
0.014688164927065372,
-0.03608325496315956,
0.01560797169804573,
0.0016096619656309485,
0.0085177943110466,
-0.050627700984478,
-0.024911435320973396,
-0.03665813431143761,
0.04871143400669098,
-0.09075427055358887,
0.026329470798373222,
-0.011363446712493896,
-0.0034372988156974316,
-0.0036456927191466093,
-0.07971659302711487,
-0.006903341971337795,
-0.009222021326422691,
-0.0035091587342321873,
0.05292721837759018,
-0.02381916344165802,
0.027785830199718475,
0.01078856736421585,
0.059749118983745575,
-0.011641304939985275,
-0.0058589777909219265,
-0.024202417582273483,
-0.04733172431588173,
0.09497005492448807,
0.027709180489182472,
-0.020887279883027077,
0.0029869768768548965,
-0.043767474591732025,
0.027019325643777847,
-0.07128503173589706,
-0.06469307839870453,
-0.020235750824213028,
0.0053559583611786366,
-0.009811272844672203,
0.024643156677484512,
0.0008784873643890023
] |
9,951
|
sentence_transformers.cross_encoder.CrossEncoder
|
save
|
Saves the model and tokenizer to path; identical to `save_pretrained`
|
def save(self, path: str, *, safe_serialization: bool = True, **kwargs) -> None:
"""
Saves the model and tokenizer to path; identical to `save_pretrained`
"""
if path is None:
return
logger.info("Save model to {}".format(path))
self.model.save_pretrained(path, safe_serialization=safe_serialization, **kwargs)
self.tokenizer.save_pretrained(path, **kwargs)
|
(self, path: str, *, safe_serialization: bool = True, **kwargs) -> NoneType
|
[
-0.006484341807663441,
0.003089049831032753,
-0.05208777263760567,
0.04846612736582756,
0.033038631081581116,
-0.03760119155049324,
-0.06256213784217834,
0.029132936149835587,
0.036891065537929535,
0.022386735305190086,
0.05805283412337303,
-0.0042296904139220715,
-0.017300454899668694,
-0.02014983631670475,
-0.0027583972550928593,
-0.022511007264256477,
0.013874094933271408,
-0.039518535137176514,
-0.0380982831120491,
0.006990306545048952,
0.011202244088053703,
-0.012169791385531425,
-0.01793956756591797,
-0.012054395861923695,
0.04999290034174919,
-0.008703486993908882,
0.008814443834125996,
0.03371325135231018,
0.030056100338697433,
0.017548998817801476,
0.034387871623039246,
-0.005064088851213455,
-0.02013208344578743,
0.00638669915497303,
0.025031955912709236,
0.005862981081008911,
-0.0006884897593408823,
0.07087061554193497,
-0.06210055574774742,
-0.04846612736582756,
-0.03760119155049324,
0.010802797973155975,
-0.03188467398285866,
-0.011814728379249573,
-0.03784973546862602,
-0.02157009020447731,
-0.010998082347214222,
0.046335749328136444,
0.026576479896903038,
-0.0005486836307682097,
-0.04424087330698967,
-0.019439710304141045,
0.0038657505065202713,
0.02400227263569832,
-0.055602896958589554,
-0.02806774526834488,
0.02144581824541092,
0.03092600405216217,
-0.0018252467270940542,
0.012427211739122868,
0.04665530472993851,
-0.008650227449834347,
0.05148416385054588,
0.028937650844454765,
0.0294524934142828,
0.038417838513851166,
-0.018498793244361877,
-0.028529327362775803,
0.0066396817564964294,
0.03271907567977905,
-0.02157009020447731,
-0.1178099736571312,
0.02833404392004013,
0.06284618377685547,
-0.0002624139015097171,
0.02400227263569832,
-0.057023148983716965,
0.02417980320751667,
-0.01755787618458271,
0.04132935777306557,
-0.01014593057334423,
-0.059544097632169724,
-0.01862306520342827,
-0.054466694593429565,
-0.08848174661397934,
-0.026505468413233757,
0.07271694391965866,
0.0059961299411952496,
-0.010554254055023193,
0.011814728379249573,
0.01414926815778017,
0.08855276554822922,
0.021001989021897316,
0.027393126860260963,
-0.003916790708899498,
-0.04516403749585152,
0.014646356925368309,
-0.00774925434961915,
-0.058478910475969315,
-0.010438858531415462,
-0.047684986144304276,
0.08457605540752411,
-0.051803719252347946,
-0.04019315540790558,
-0.030712967738509178,
-0.0049087489023804665,
-0.034228093922138214,
-0.025138475000858307,
-0.021019741892814636,
-0.03097926452755928,
0.003408606629818678,
-0.011992259882390499,
0.035470813512802124,
0.00898753758519888,
-0.0024299637880176306,
-0.05727169290184975,
-0.02283056452870369,
-0.007931224070489407,
-0.04477347061038017,
0.007438573986291885,
-0.028706859797239304,
0.06050277128815651,
-0.04072574898600578,
0.005223867483437061,
-0.0399446114897728,
0.010465487837791443,
0.10190314054489136,
0.06820764392614365,
0.012276310473680496,
-0.028902145102620125,
-0.008721239864826202,
-0.004846612922847271,
0.01135314628481865,
0.029097428545355797,
0.015534015372395515,
-0.03252378851175308,
-0.020469393581151962,
0.015782559290528297,
-0.053117454051971436,
0.043495241552591324,
0.04406334459781647,
-0.04026416689157486,
-0.002303472487255931,
-0.039731573313474655,
0.042359039187431335,
0.06039625033736229,
-0.03848884999752045,
-0.03452989459037781,
-0.02275955118238926,
-0.020788950845599174,
0.06955688446760178,
0.0005070746410638094,
-0.024517113342881203,
0.0024388404563069344,
0.005086280405521393,
-0.05879846587777138,
-0.03724613040685654,
0.004788914695382118,
0.016386166214942932,
0.07243289053440094,
0.0011095724767073989,
0.018196988850831985,
0.04282062128186226,
-0.004575876984745264,
-0.006817213259637356,
0.022102683782577515,
-0.0406547375023365,
0.05336599797010422,
0.007505148649215698,
0.018427779898047447,
0.03603891655802727,
0.013891847804188728,
-0.1053827553987503,
0.019084647297859192,
-0.010829427279531956,
0.013119584880769253,
0.04456043243408203,
-0.00021692142763640732,
0.006462150253355503,
0.04314018040895462,
0.02130379155278206,
-0.03220423310995102,
0.005818598438054323,
0.0031223369296640158,
-0.013332623057067394,
0.012542607262730598,
-0.02034512162208557,
0.02947024628520012,
0.011939000338315964,
0.031707145273685455,
0.08230365067720413,
0.02544027753174305,
0.01202776562422514,
-0.05812384560704231,
-0.011140108108520508,
-0.0127645218744874,
0.009178384207189083,
-0.08343984931707382,
-0.03877290338277817,
0.0059961299411952496,
0.05467973276972771,
-0.0016443864442408085,
0.011876864358782768,
-0.03998011723160744,
-0.021783126518130302,
0.010971453040838242,
-0.007687118370085955,
0.014309046790003777,
-0.05024144425988197,
0.0007001402555033565,
0.0034973726142197847,
-0.01635066047310829,
-0.014078255742788315,
0.022546513006091118,
0.07981820404529572,
-0.02137480489909649,
-0.026345688849687576,
0.03199119493365288,
0.003455208847299218,
0.030446669086813927,
0.0882687121629715,
0.07065757364034653,
-0.04963783547282219,
0.002694041933864355,
0.017034156247973442,
-0.0461227111518383,
-0.0008854388725012541,
-0.03635847195982933,
-0.038062773644924164,
-0.0930265560746193,
0.0033176217693835497,
0.00840168260037899,
-0.06629029661417007,
-0.0028516012243926525,
-0.053081948310136795,
0.031636130064725876,
-0.00318669225089252,
-0.03076622635126114,
-0.0014324580552056432,
-0.04935378581285477,
0.007416382431983948,
-0.057307202368974686,
-0.08848174661397934,
-0.041116319596767426,
0.0007916800095699728,
0.04828859493136406,
0.01010154839605093,
-0.04693935438990593,
0.02565331570804119,
-0.014601973816752434,
0.041151825338602066,
0.05098707601428032,
-0.03926999121904373,
0.04860815405845642,
0.028635846450924873,
-0.01678561232984066,
0.023150119930505753,
-0.01486827153712511,
0.026984803378582,
0.030464421957731247,
-0.05521232634782791,
-0.054289162158966064,
-0.014459948986768723,
0.01212540827691555,
0.006329001393169165,
-0.024925436824560165,
0.013590044341981411,
0.023274393752217293,
0.04448942095041275,
-0.02290157601237297,
0.02419755794107914,
0.019901292398571968,
-0.07161624729633331,
0.005445781629532576,
0.03909245878458023,
-0.05744922533631325,
-0.03987359628081322,
-0.005698764231055975,
0.005587806925177574,
0.05102258175611496,
0.05759125202894211,
-0.030606448650360107,
0.09927567094564438,
-0.0373881533741951,
0.028742365539073944,
-0.016989775002002716,
-0.01484164223074913,
-0.00036893284413963556,
0.00600944459438324,
-0.031334325671195984,
-0.006173661444336176,
0.04949580878019333,
0.019386451691389084,
0.017806420102715492,
0.047720495611429214,
-0.049318280071020126,
-0.02687828429043293,
-0.019794773310422897,
0.05098707601428032,
-0.06891776621341705,
-0.0100305350497365,
0.04729441925883293,
0.06273967027664185,
-0.01698089763522148,
0.06689390540122986,
-0.027907967567443848,
-0.046335749328136444,
0.028919897973537445,
-0.008419436402618885,
0.015214458107948303,
-0.03387302905321121,
-0.015170074999332428,
0.02840505540370941,
0.04736543074250221,
0.029878567904233932,
0.00007357852882705629,
0.020877717062830925,
-0.01151292398571968,
0.016989775002002716,
-0.024499360471963882,
-0.0030513242818415165,
0.04580315202474594,
-0.008135385811328888,
-0.022297969087958336,
-0.00935591571033001,
-0.04399232938885689,
-0.0007533997413702309,
0.0066396817564964294,
-0.00675951549783349,
-0.023576196283102036,
0.021161766722798347,
0.03105027787387371,
0.0508805550634861,
0.06614827364683151,
-0.03898593783378601,
0.016829995438456535,
0.012604743242263794,
0.0028116567991673946,
0.015249964781105518,
0.03371325135231018,
0.0107584148645401,
0.003912352491170168,
-0.006506533361971378,
0.022297969087958336,
0.0034507703967392445,
0.05950859189033508,
-0.05613549053668976,
0.03948302939534187,
0.02029186114668846,
0.04278511554002762,
-0.09622212499380112,
0.025244994089007378,
0.019191166386008263,
0.04257207736372948,
-0.05602897331118584,
-0.06369833648204803,
0.02029186114668846,
0.015871325507760048,
-0.027606163173913956,
-0.0732850432395935,
-0.02284831739962101,
0.045199546962976456,
-0.04448942095041275,
0.021978411823511124,
0.0769776999950409,
-0.01284441165626049,
-0.028742365539073944,
0.00936479214578867,
0.0016488247783854604,
-0.009861879982054234,
0.040122140198946,
-0.01410488598048687,
0.023771481588482857,
0.03763670101761818,
0.008681295439600945,
0.06281068176031113,
0.027268853038549423,
0.027606163173913956,
-0.008956469595432281,
-0.009231642819941044,
0.0071989065036177635,
0.009418051689863205,
0.06927283108234406,
0.0041586775332689285,
0.10992756485939026,
-0.0069237323477864265,
0.05471523851156235,
0.009639966301620007,
0.019297685474157333,
0.006404452491551638,
-0.0029559012036770582,
-0.0284405630081892,
-0.0594375804066658,
-0.028724612668156624,
-0.01139752846211195,
0.040903281420469284,
-0.023469677194952965,
0.05542536452412605,
-0.008410559967160225,
0.042394544929265976,
-0.016616957262158394,
-0.018037211149930954,
0.014042750000953674,
0.035328786820173264,
-0.01339475903660059,
0.051519669592380524,
-0.018072716891765594,
0.007909032516181469,
0.03788524493575096,
0.0154985086992383,
-0.034121572971343994,
0.02947024628520012,
0.006284618750214577,
-0.010216943919658661,
-0.0002585304027888924,
0.08365289121866226,
0.062384605407714844,
0.01465523336082697,
0.0016699066618457437,
0.0016854406567290425,
-0.0399446114897728,
0.08493112027645111,
-0.023878000676631927,
0.022546513006091118,
-0.0120366420596838,
0.007278795819729567,
-0.0309970173984766,
0.024783411994576454,
0.045093026012182236,
0.009196137078106403,
0.024517113342881203,
-0.07981820404529572,
-0.028724612668156624,
0.009178384207189083,
-0.03396179527044296,
0.02973654307425022,
0.015747053548693657,
-0.027694929391145706,
-0.04569663479924202,
0.036926571279764175,
0.012249680235981941,
-0.031210055574774742,
0.005609998479485512,
0.01864081807434559,
0.06046726182103157,
-0.028706859797239304,
-0.0402996726334095,
0.05631302297115326,
0.027783695608377457,
-0.010216943919658661,
-0.00020319045870564878,
0.03763670101761818,
0.029878567904233932,
0.011122355237603188,
0.01550738513469696,
0.0015822503482922912,
0.06025422364473343,
-0.016057733446359634,
0.05084504932165146,
-0.018108222633600235,
0.027339866384863853,
0.04750745743513107,
0.06053827702999115,
0.017185058444738388,
0.05347251892089844,
-0.02803223952651024,
-0.02403777837753296,
0.005942870397120714,
-0.01336812973022461,
-0.06877574324607849,
0.03923448547720909,
-0.029115183278918266,
-0.029825309291481972,
-0.043708279728889465,
-0.0320977121591568,
0.04005112871527672,
0.01752236858010292,
-0.04402783513069153,
-0.03745916858315468,
-0.011157860979437828,
0.05265587195754051,
-0.05063201114535332,
-0.06845618784427643,
0.0720423236489296,
0.015764806419610977,
0.0120366420596838,
-0.020469393581151962,
0.0036194254644215107,
0.016989775002002716,
0.024676892906427383,
0.023629456758499146,
-0.004598068539053202,
-0.011717085726559162,
-0.007558407727628946,
-0.035754863172769547,
0.0006607504328712821,
-0.023150119930505753,
-0.006479903589934111,
-0.03492046520113945,
-0.047649480402469635,
0.014557591639459133,
-0.02439284138381481,
0.03271907567977905,
-0.0057609002105891705,
0.0059961299411952496,
0.04207498952746391,
-0.004819983150810003,
-0.013137338683009148,
-0.0402996726334095,
-0.00637338450178504,
-0.06717795878648758,
-0.04697486013174057,
-0.01617312803864479,
-0.006169223226606846,
-0.009835250675678253,
0.030446669086813927,
-0.00268294638954103,
-0.023238886147737503,
-0.0426785983145237,
0.016901008784770966,
-0.05102258175611496,
-0.002403334015980363,
0.06273967027664185,
-0.03353571891784668,
-0.027872461825609207,
0.020629171282052994,
-0.01865857094526291,
-0.0031378711573779583,
0.08045732229948044,
0.030428916215896606,
0.06178099662065506,
0.0013581167440861464,
0.0017509054159745574,
0.017602257430553436,
0.039767079055309296,
0.02817426435649395,
0.04669081047177315,
-0.01888936199247837,
0.040761254727840424,
-0.03337594121694565,
0.004984199535101652,
-0.06607726216316223,
-0.09487288445234299,
0.011033589020371437,
0.017495738342404366,
-0.03353571891784668,
-0.003670465899631381,
-0.016590328887104988,
-0.02405553124845028,
0.02551129087805748,
-0.03912796452641487,
-0.025333760306239128,
0.005871857516467571,
-0.011548430658876896,
0.023842493072152138,
-0.019706007093191147,
-0.011193367652595043,
0.007975607179105282,
0.03326942026615143,
0.030659707263112068,
-0.021765373647212982,
-0.026558727025985718,
0.00799779873341322,
0.004351743496954441,
0.0006441068253479898,
0.04789802432060242,
-0.03895043209195137,
-0.017424726858735085,
-0.014894900843501091,
-0.010935946367681026,
0.07250390201807022,
-0.009338161908090115,
0.017548998817801476,
-0.015232210978865623,
-0.02961227111518383,
0.0377432182431221,
-0.02677176520228386,
0.019901292398571968,
-0.053152959793806076,
0.03664252161979675,
0.03445888310670853,
0.061106376349925995,
-0.03777872398495674,
0.012258556671440601,
0.04196846857666969,
-0.045057520270347595,
0.0709061250090599,
0.024960942566394806,
-0.0508805550634861,
0.046442266553640366,
-0.0563485287129879,
0.07083510607481003,
0.0375656858086586,
-0.04168441891670227,
0.038062773644924164,
-0.023718221113085747,
0.031600624322891235,
-0.045199546962976456,
-0.019546229392290115,
-0.038169294595718384,
0.019830279052257538,
-0.034281350672245026,
-0.0065952991135418415,
0.007158961612731218,
-0.029239455237984657,
-0.0020116548985242844,
-0.04672631621360779,
0.10453061014413834,
0.010287956334650517,
0.04168441891670227,
-0.0483241006731987,
0.008929839357733727,
-0.028902145102620125,
-0.03618093952536583,
-0.00537920743227005,
0.03106803074479103,
0.011202244088053703,
-0.01797507517039776,
0.0012160914484411478,
0.03998011723160744,
0.011113477870821953,
-0.054395683109760284,
0.005729832220822573,
-0.02139255777001381,
-0.05737821385264397,
0.0154985086992383,
-0.004797791596502066,
-0.026505468413233757,
0.03090825118124485,
-0.030233630910515785,
0.01615537516772747,
-0.02162334881722927,
0.02964777685701847,
-0.024588126689195633,
0.03394404053688049,
-0.016616957262158394,
-0.017620012164115906,
-0.00022482713393401355,
-0.011308763176202774,
-0.05933105945587158,
-0.06224257871508598,
0.00898753758519888,
-0.010802797973155975,
-0.023167874664068222,
-0.05798181891441345,
0.0013969517312943935,
-0.03128106892108917,
0.0004832188133150339,
0.05084504932165146,
-0.0065908608958125114,
0.0015101281460374594,
-0.026043886318802834,
0.01657257415354252,
-0.045057520270347595,
0.03394404053688049,
-0.01887160912156105,
0.061177387833595276,
-0.033056385815143585,
-0.004476015456020832,
-0.018179235979914665,
0.006657435093075037,
-0.025884106755256653,
0.014264663681387901,
0.02831629104912281,
-0.004123171325773001,
0.0011539553524926305,
-0.07527340203523636,
0.07119017094373703,
-0.000032611027563689277,
-0.02414429746568203,
-0.037033092230558395,
-0.007145646959543228,
-0.013678809627890587,
-0.03612767904996872,
-0.008028866723179817,
-0.01685662567615509,
0.030304644256830215,
-0.08017326891422272,
0.028511574491858482,
0.029860815033316612,
-0.06089333817362785,
0.026434455066919327,
0.0159600917249918,
-0.013448018580675125,
0.02258201874792576,
0.050454482436180115,
-0.01212540827691555,
0.054360177367925644,
0.04274960979819298,
-0.013882971368730068,
-0.03250603750348091,
-0.029008664190769196,
0.005272688344120979,
-0.0669294148683548,
0.039696067571640015,
-0.013953983783721924,
0.06032523885369301,
0.00020194219541735947,
-0.041151825338602066,
-0.03664252161979675,
-0.023611702024936676,
-0.0003006941406056285,
0.005117348395287991,
-0.034281350672245026,
-0.025813095271587372,
-0.027765942737460136,
-0.040903281420469284,
-0.0037392594385892153,
-0.05606447905302048,
-0.09828149527311325,
0.03204445540904999,
-0.0709061250090599,
0.023345405235886574,
0.015542891807854176,
0.030535435304045677,
0.017833048477768898,
-0.005689887795597315,
0.042252521961927414,
0.0007034689770080149,
-0.03657151013612747,
-0.016128746792674065,
0.013723192736506462,
-0.01867632381618023,
-0.04448942095041275,
-0.0070435660891234875,
-0.03937650844454765,
-0.05006391182541847,
-0.01599559746682644,
0.09394972026348114,
0.0007500710198655725,
0.01692763902246952,
0.0007933443412184715,
-0.04118733108043671,
-0.03891492635011673,
-0.04335321858525276,
-0.032861098647117615,
0.017158430069684982,
0.0022191449534147978,
0.002669631503522396,
-0.004975323099642992,
0.0649055540561676,
0.006448835600167513,
-0.028990909457206726,
-0.02803223952651024,
0.019706007093191147,
0.031511858105659485,
0.027606163173913956,
0.008246342651546001,
-0.07083510607481003,
0.02554679661989212,
0.0176821481436491,
0.03195568919181824,
0.040477205067873,
0.027251100167632103,
0.04136486351490021,
0.006817213259637356,
0.04399232938885689,
-0.04136486351490021,
-0.030535435304045677,
-0.03525777533650398,
0.017824172973632812,
-0.04530606418848038,
-0.01002165861427784,
-0.055957961827516556,
0.09835250675678253,
0.010243573226034641,
-0.02275955118238926,
0.007771445903927088
] |
9,952
|
sentence_transformers.cross_encoder.CrossEncoder
|
save_pretrained
|
Saves the model and tokenizer to path; identical to `save`
|
def save_pretrained(self, path: str, *, safe_serialization: bool = True, **kwargs) -> None:
"""
Saves the model and tokenizer to path; identical to `save`
"""
return self.save(path, safe_serialization=safe_serialization, **kwargs)
|
(self, path: str, *, safe_serialization: bool = True, **kwargs) -> NoneType
|
[
-0.015595429576933384,
-0.00839430745691061,
-0.05770980939269066,
0.05199597030878067,
0.027308806777000427,
-0.030888361856341362,
-0.03310667723417282,
0.02394772320985794,
0.05912146717309952,
0.015402167104184628,
0.06184394285082817,
-0.023914111778140068,
-0.04497130215167999,
-0.013116629794239998,
-0.013788847252726555,
-0.034098196774721146,
0.015343348495662212,
-0.020586639642715454,
-0.05162625014781952,
-0.016864238306879997,
0.01900693029165268,
-0.0053861369378864765,
-0.020687472075223923,
-0.003875749884173274,
0.06342365592718124,
-0.015679456293582916,
0.014528285712003708,
0.021763019263744354,
0.00780611764639616,
0.00123309763148427,
0.05219763517379761,
0.01655333861708641,
-0.0015481993323192,
0.003556446870788932,
0.013057811185717583,
0.00671376520767808,
0.0046466984786093235,
0.05653343349695206,
-0.05337401479482651,
-0.07427995651960373,
-0.04423186555504799,
0.006810396444052458,
-0.024687161669135094,
-0.0016469311667606235,
-0.029980868101119995,
-0.012814132496714592,
-0.0028548205737024546,
0.04658462479710579,
0.04597962647676468,
0.015301334671676159,
-0.017696106806397438,
-0.007675875443965197,
0.017561662942171097,
0.030367393046617508,
-0.06117172911763191,
-0.05596204847097397,
0.020284142345190048,
0.023846890777349472,
0.00014862293028272688,
0.020973164588212967,
0.049912095069885254,
-0.0093354107812047,
0.058045919984579086,
0.022199958562850952,
0.036098040640354156,
0.028434770181775093,
-0.016116397455334663,
-0.03218238055706024,
-0.00037996002356521785,
0.010705051943659782,
-0.02712394669651985,
-0.11091577261686325,
0.041005223989486694,
0.06113811582326889,
0.007402787450700998,
0.013041005469858646,
-0.06160866841673851,
0.010419360361993313,
-0.010957133956253529,
0.05478566884994507,
-0.006923832930624485,
-0.06375975906848907,
-0.023090647533535957,
-0.04050106182694435,
-0.06638140976428986,
-0.029308652505278587,
0.08295155316591263,
-0.02169579640030861,
-0.0018527975771576166,
0.02698950469493866,
0.009545478038489819,
0.10197528451681137,
-0.0018601499032229185,
0.024737577885389328,
0.0265357568860054,
-0.04187910631299019,
0.03603082150220871,
0.00014849164290353656,
-0.03297223523259163,
-0.016755003482103348,
-0.028233105316758156,
0.09222814440727234,
-0.05986090376973152,
-0.04026578739285469,
-0.025544237345457077,
0.0040185959078371525,
-0.015704665333032608,
-0.02724158577620983,
-0.0010345836635679007,
-0.037005532532930374,
-0.009906794875860214,
-0.04144216328859329,
0.028703656047582626,
0.01959512010216713,
0.021746212616562843,
-0.08106934279203415,
-0.0235948096960783,
0.0011049563763663173,
-0.013200657442212105,
0.014461063779890537,
-0.019074151292443275,
0.045946016907691956,
-0.07185997813940048,
0.011158798821270466,
-0.05118930712342262,
0.02688867226243019,
0.1346450299024582,
0.05959201976656914,
0.02196468412876129,
-0.05377734452486038,
0.023040231317281723,
-0.0019735863897949457,
0.0006632889271713793,
-0.0061087701469659805,
0.00006295467755990103,
-0.03369486704468727,
0.012654481455683708,
0.011646156199276447,
-0.028098661452531815,
0.055693160742521286,
0.038316357880830765,
-0.03929107263684273,
0.007419592700898647,
-0.01361238956451416,
0.03650137037038803,
0.044164642691612244,
-0.032905012369155884,
-0.04345881566405296,
-0.02196468412876129,
-0.008890067227184772,
0.0905475988984108,
-0.019292620941996574,
-0.028249910101294518,
0.001926321187056601,
-0.001133315498009324,
-0.04463519528508186,
-0.04796266928315163,
-0.01443585567176342,
0.0170154869556427,
0.054516781121492386,
0.0027854982763528824,
0.000677993637509644,
0.048164334148168564,
-0.0010020231129601598,
-0.012830938212573528,
0.012948575429618359,
-0.04285382106900215,
0.02816588431596756,
-0.014536688104271889,
0.02288898080587387,
0.06352448463439941,
0.021292466670274734,
-0.09619422256946564,
0.02298981323838234,
0.0002413153270026669,
0.00680619478225708,
0.028115466237068176,
0.0021805032156407833,
-0.010368944145739079,
0.047357670962810516,
0.01530973706394434,
-0.008448924869298935,
0.008016184903681278,
0.00932700838893652,
0.0050584315322339535,
0.010520192794501781,
-0.013822457753121853,
0.013511557132005692,
0.03181266039609909,
0.029140597209334373,
0.07374218106269836,
0.02428383193910122,
0.023409949615597725,
-0.03438388928771019,
-0.01068824715912342,
-0.021981488913297653,
0.019309427589178085,
-0.07239774614572525,
-0.056029267609119415,
0.0026993704959750175,
0.0302833653986454,
-0.0005172918317839503,
0.037845805287361145,
-0.05031542479991913,
-0.043828535825014114,
0.03438388928771019,
-0.013419128023087978,
0.01309142168611288,
-0.0310900267213583,
0.013881276361644268,
-0.00000967460437095724,
-0.034921661019325256,
-0.01361238956451416,
0.011268033646047115,
0.06359171122312546,
-0.040064118802547455,
-0.004596282262355089,
0.04567712917923927,
0.02665339596569538,
0.030081700533628464,
0.0936397984623909,
0.05797869712114334,
-0.0527690164744854,
-0.013721625320613384,
0.016755003482103348,
-0.05021459236741066,
-0.014973629266023636,
-0.04063550382852554,
-0.05448317155241966,
-0.0636589303612709,
0.003316969610750675,
0.002144791651517153,
-0.056970372796058655,
-0.017998604103922844,
-0.0226368997246027,
0.04460158571600914,
0.009637908078730106,
-0.032669734209775925,
0.009469853714108467,
-0.04510574787855148,
0.024014944210648537,
-0.03966078907251358,
-0.06181033328175545,
-0.032686542719602585,
-0.010301722213625908,
0.060835618525743484,
0.029275041073560715,
-0.042080771178007126,
0.012788924388587475,
-0.009881586767733097,
0.059323132038116455,
0.05690314993262291,
-0.04033300653100014,
0.0598272942006588,
0.031745437532663345,
0.017065903171896935,
0.027863385155797005,
-0.01949428766965866,
0.01996483840048313,
0.036770258098840714,
-0.06856611371040344,
-0.046080462634563446,
-0.0012110405368730426,
0.01712472178041935,
0.008696804754436016,
-0.019511092454195023,
0.003293862333521247,
0.0389549620449543,
0.03134210780262947,
-0.030585864558815956,
-0.021897461265325546,
0.031980711966753006,
-0.06043228879570961,
-0.004228663630783558,
0.04413103312253952,
-0.06392781436443329,
-0.034215833991765976,
-0.009730338118970394,
0.011099979281425476,
0.07179275155067444,
0.031005999073386192,
-0.04329076036810875,
0.08449765294790268,
-0.02724158577620983,
0.020838720723986626,
-0.005936514586210251,
-0.018385129049420357,
-0.018620405346155167,
-0.002506108256056905,
-0.05717203766107559,
0.0012288963189348578,
0.058852579444646835,
0.03717358782887459,
-0.00413203239440918,
0.03393014147877693,
-0.061440613120794296,
-0.03599720820784569,
-0.02720797434449196,
0.04221521317958832,
-0.05444955825805664,
0.007692680694162846,
0.030249755829572678,
0.058146752417087555,
-0.010629427619278431,
0.06702001392841339,
-0.01890609785914421,
-0.05636537820100784,
0.032316822558641434,
-0.02853560261428356,
0.004571074154227972,
-0.05206318944692612,
-0.00343460775911808,
0.018872486427426338,
0.03379569947719574,
0.03187987953424454,
-0.01215031836181879,
0.032585710287094116,
0.0005165040493011475,
0.03273695707321167,
-0.018620405346155167,
-0.00019142423116136342,
0.03979523479938507,
-0.019779978320002556,
-0.0069994572550058365,
-0.02018330991268158,
-0.06473447382450104,
0.028888516128063202,
-0.01630125753581524,
-0.009360618889331818,
-0.02500646375119686,
0.019410260021686554,
0.015452583320438862,
0.029174208641052246,
0.05549149587750435,
-0.0495423786342144,
0.01045297086238861,
0.006117172539234161,
0.0031048012897372246,
0.014553493820130825,
0.02040177956223488,
0.022384818643331528,
-0.015931537374854088,
-0.002083871979266405,
0.028686851263046265,
0.007104491349309683,
0.05327317863702774,
-0.042316045612096786,
0.029846426099538803,
0.019393455237150192,
0.056398987770080566,
-0.08456487208604813,
0.0060541522689163685,
0.025611460208892822,
0.05209680274128914,
-0.03265292942523956,
-0.07004498690366745,
0.014923213049769402,
0.023258700966835022,
-0.02031775191426277,
-0.07602772116661072,
-0.0013549369759857655,
0.0318966880440712,
-0.04671906679868698,
0.031375717371702194,
0.07972490787506104,
-0.015410569496452808,
-0.01925901137292385,
-0.0019273716025054455,
-0.011368866078555584,
0.017410414293408394,
0.012704897671937943,
-0.017544858157634735,
-0.004550067242234945,
0.029375873506069183,
0.025745902210474014,
0.04460158571600914,
0.007717888802289963,
0.02861963026225567,
0.0013990511652082205,
0.02216634899377823,
-0.0005519529804587364,
0.03559387847781181,
0.051693469285964966,
0.008780831471085548,
0.09639588743448257,
0.007453203666955233,
0.0483659990131855,
0.01173858530819416,
0.03986245393753052,
-0.022368013858795166,
0.003006069455295801,
-0.03166140988469124,
-0.046887122094631195,
-0.017175139859318733,
-0.009133745916187763,
0.0432235412299633,
-0.025863541290163994,
0.03213196247816086,
0.020855525508522987,
0.04033300653100014,
0.0008649539668112993,
-0.03166140988469124,
0.01794818788766861,
0.03697192296385765,
-0.016948265954852104,
0.04080355912446976,
-0.01724236086010933,
0.025846734642982483,
0.02944309450685978,
0.026216454803943634,
-0.028249910101294518,
0.040198564529418945,
0.014166968874633312,
-0.01820026896893978,
-0.008906872011721134,
0.08691763132810593,
0.04167744144797325,
-0.009192564524710178,
-0.015998760238289833,
-0.005222284235060215,
-0.02709033712744713,
0.07064998149871826,
-0.020250530913472176,
0.028703656047582626,
-0.005352525971829891,
0.023023424670100212,
-0.02312425710260868,
0.007591848261654377,
0.04097161442041397,
0.01573827490210533,
0.04070272669196129,
-0.08913594484329224,
-0.004743329714983702,
0.004398818593472242,
-0.03929107263684273,
0.043593257665634155,
0.013385516591370106,
-0.01830110140144825,
-0.04587879404425621,
0.04339159280061722,
-0.00017330588889308274,
-0.013570376671850681,
0.017528053373098373,
0.0021615971345454454,
0.07118775695562363,
-0.0044240267015993595,
-0.06779306381940842,
0.0746832862496376,
0.027779359370470047,
0.0008371199946850538,
0.00798677559942007,
0.02897254377603531,
0.030199339613318443,
0.016864238306879997,
0.022115932777523994,
-0.0029703578911721706,
0.04466880485415459,
-0.010663039050996304,
0.031157247722148895,
0.017158333212137222,
0.01925901137292385,
0.06241532787680626,
0.06113811582326889,
0.024939242750406265,
0.07441439479589462,
-0.02510729618370533,
-0.06110450625419617,
0.021090801805257797,
-0.013805652037262917,
-0.0762966051697731,
0.034350279718637466,
-0.034988883882761,
-0.023090647533535957,
-0.034098196774721146,
-0.034988883882761,
0.05206318944692612,
0.027292001992464066,
-0.02887171134352684,
-0.022737732157111168,
-0.009360618889331818,
0.041475776582956314,
-0.048063501715660095,
-0.07280107587575912,
0.06231449544429779,
0.024905631318688393,
0.008440522477030754,
-0.03298904001712799,
0.024031750857830048,
0.011158798821270466,
0.0263845082372427,
0.022586483508348465,
0.015477791428565979,
-0.01242760755121708,
0.0011112584033980966,
-0.03798024728894234,
0.0005845135310664773,
-0.027745747938752174,
-0.014536688104271889,
-0.015284528955817223,
-0.053205959498882294,
0.013830860145390034,
-0.030434615910053253,
0.018133047968149185,
-0.00048158029676415026,
0.00017081134137697518,
0.04819794371724129,
-0.011746988631784916,
0.005243291147053242,
-0.04362687095999718,
-0.00974714383482933,
-0.06234810873866081,
-0.061911165714263916,
-0.0007494167075492442,
-0.007104491349309683,
-0.006398663390427828,
0.033022649586200714,
-0.007869137451052666,
-0.006831402890384197,
-0.04093800112605095,
0.01900693029165268,
-0.04234965890645981,
0.01096553634852171,
0.0471896193921566,
-0.046786289662122726,
-0.021292466670274734,
0.007491015829145908,
-0.023544393479824066,
-0.020015254616737366,
0.07401106506586075,
0.03841719031333923,
0.06654946506023407,
-0.01572147011756897,
0.02063705585896969,
0.022905787453055382,
0.03986245393753052,
0.019090956076979637,
0.043962977826595306,
-0.01208309642970562,
0.052164021879434586,
-0.040433838963508606,
0.009024510160088539,
-0.058516472578048706,
-0.07118775695562363,
0.023090647533535957,
0.027376027777791023,
-0.012772118672728539,
-0.006785188335925341,
0.004386214539408684,
-0.053004294633865356,
0.01619202271103859,
-0.06537308543920517,
-0.03471999615430832,
-0.0036257694009691477,
-0.018704432994127274,
0.04026578739285469,
-0.03845079988241196,
-0.006083562038838863,
0.005823078099638224,
0.01699868217110634,
0.02853560261428356,
-0.0057264468632638454,
-0.020956357941031456,
0.006923832930624485,
-0.0017750724218785763,
-0.011452893726527691,
0.03754330798983574,
-0.060264233499765396,
-0.004094220232218504,
-0.018922902643680573,
-0.026098817586898804,
0.08651430159807205,
0.0033694866579025984,
0.034316666424274445,
0.01981358975172043,
-0.03875329717993736,
0.0396944023668766,
-0.017410414293408394,
0.012646078132092953,
-0.040568284690380096,
0.020334558561444283,
0.042181603610515594,
0.03834996744990349,
-0.044769637286663055,
0.020250530913472176,
0.014645922929048538,
-0.04513935744762421,
0.05898702144622803,
0.04140855371952057,
-0.04463519528508186,
0.03646776080131531,
-0.05505455657839775,
0.05774342268705368,
0.02465355023741722,
-0.014687936753034592,
0.05888618901371956,
-0.04587879404425621,
0.0504162572324276,
-0.028115466237068176,
-0.03157738223671913,
-0.04345881566405296,
-0.006621335167437792,
-0.030821138992905617,
-0.008053997531533241,
0.020973164588212967,
-0.010595817118883133,
-0.030199339613318443,
-0.05290346220135689,
0.0920264795422554,
0.01699868217110634,
0.03357722982764244,
-0.03905579447746277,
0.017225556075572968,
-0.052869848906993866,
-0.02688867226243019,
-0.0009684123215265572,
0.033728476613759995,
0.004003891255706549,
-0.041005223989486694,
0.012520037591457367,
0.042484100908041,
0.016334867104887962,
-0.05407984182238579,
-0.010545400902628899,
0.0005419747903943062,
-0.0515926368534565,
-0.0024472891818732023,
0.01097393874078989,
-0.017780134454369545,
0.0174944419413805,
-0.056499820202589035,
0.01899012364447117,
-0.013763639144599438,
0.03253529220819473,
-0.008906872011721134,
0.033022649586200714,
-0.01436863373965025,
-0.009284994564950466,
0.004768537823110819,
-0.006142381113022566,
-0.06117172911763191,
-0.058516472578048706,
-0.007923755794763565,
-0.030333783477544785,
-0.018922902643680573,
-0.05455039069056511,
-0.011469698511064053,
-0.04154299572110176,
-0.009595894254744053,
0.05976007133722305,
0.0028989349957555532,
-0.0023821683134883642,
-0.024250220507383347,
0.02031775191426277,
-0.03623248636722565,
0.021662186831235886,
0.00808760803192854,
0.05828119441866875,
-0.0373416431248188,
0.015578623861074448,
-0.03771136328577995,
-0.004453436005860567,
-0.019796784967184067,
0.012830938212573528,
0.015931537374854088,
0.009024510160088539,
0.013990512117743492,
-0.06419670581817627,
0.0440974198281765,
0.004466040059924126,
-0.030669890344142914,
-0.07152386754751205,
-0.0065373084507882595,
-0.03673664852976799,
-0.06110450625419617,
-0.023393144831061363,
-0.01784735545516014,
0.030921971425414085,
-0.06863333284854889,
0.024972854182124138,
0.036568593233823776,
-0.05717203766107559,
0.02744325064122677,
0.029846426099538803,
0.003426204901188612,
-0.005171868018805981,
0.05058431252837181,
-0.016586950048804283,
0.03051864169538021,
0.04295465350151062,
-0.017292777076363564,
-0.034921661019325256,
-0.022838564589619637,
0.005566795356571674,
-0.04742489382624626,
0.027981024235486984,
-0.034451112151145935,
0.05868452414870262,
-0.011015952564775944,
-0.05841564014554024,
-0.02310745231807232,
-0.004192952066659927,
0.0009547579102218151,
-0.008448924869298935,
-0.05465122312307358,
-0.034787219017744064,
-0.018754849210381508,
-0.020704276859760284,
-0.017528053373098373,
-0.07374218106269836,
-0.06470086425542831,
0.030569057911634445,
-0.07602772116661072,
0.023981334641575813,
0.012234345078468323,
0.025527432560920715,
0.02641811966896057,
-0.009974016807973385,
0.014654326252639294,
0.00015453108062501997,
-0.03562748804688454,
-0.0067767854779958725,
-0.008621180430054665,
-0.035392213612794876,
-0.014561896212399006,
-0.01843554526567459,
-0.04389575496315956,
-0.04658462479710579,
-0.04238326847553253,
0.07259941101074219,
-0.004310590215027332,
0.03519054874777794,
-0.003606863087043166,
-0.05713842809200287,
-0.0366022028028965,
-0.02640131488442421,
-0.047357670962810516,
0.0088564557954669,
0.015066058374941349,
0.00920096691697836,
-0.0047349268570542336,
0.05055070295929909,
0.0025460210163146257,
-0.03535860404372215,
-0.01196545921266079,
0.0261660385876894,
0.016738198697566986,
0.06362532079219818,
-0.023964527994394302,
-0.061070896685123444,
0.039257459342479706,
0.022334402427077293,
0.03811469301581383,
0.031997520476579666,
0.03135891258716583,
0.039257459342479706,
0.011780599132180214,
0.024905631318688393,
-0.013469544239342213,
-0.032669734209775925,
-0.04282020777463913,
0.01342753041535616,
-0.0680619478225708,
-0.011831015348434448,
-0.05764259025454521,
0.09868142753839493,
-0.009133745916187763,
0.004327395465224981,
-0.004487046971917152
] |
9,953
|
sentence_transformers.cross_encoder.CrossEncoder
|
smart_batching_collate
| null |
def smart_batching_collate(self, batch):
texts = [[] for _ in range(len(batch[0].texts))]
labels = []
for example in batch:
for idx, text in enumerate(example.texts):
texts[idx].append(text.strip())
labels.append(example.label)
tokenized = self.tokenizer(
*texts, padding=True, truncation="longest_first", return_tensors="pt", max_length=self.max_length
)
labels = torch.tensor(labels, dtype=torch.float if self.config.num_labels == 1 else torch.long).to(
self._target_device
)
for name in tokenized:
tokenized[name] = tokenized[name].to(self._target_device)
return tokenized, labels
|
(self, batch)
|
[
0.007502419408410788,
-0.018325287848711014,
-0.04616321250796318,
-0.03149939328432083,
-0.024481579661369324,
0.02311750315129757,
0.001735383179038763,
-0.015085606835782528,
0.07782413810491562,
-0.02076626569032669,
-0.03919924423098564,
-0.050614409148693085,
-0.037512097507715225,
-0.0368659570813179,
0.045194000005722046,
-0.03447882458567619,
0.00303551834076643,
-0.006699230056256056,
0.009988268837332726,
-0.010652358643710613,
0.039486419409513474,
0.00587360467761755,
-0.044476065784692764,
0.012411299161612988,
0.0023243140894919634,
-0.01709582470357418,
0.02304570935666561,
-0.02150215022265911,
-0.03153529018163681,
0.0019384241895750165,
0.04576835036277771,
-0.00826522521674633,
0.029955832287669182,
-0.044835034757852554,
-0.07121913880109787,
-0.06109625846147537,
-0.002030409639701247,
0.014583052136003971,
0.018558615818619728,
-0.0493939183652401,
0.0038072983734309673,
-0.06834740191698074,
-0.005626814439892769,
0.0026630896609276533,
-0.013559995219111443,
0.013201028108596802,
-0.0070043522864580154,
-0.008319070562720299,
-0.04623500630259514,
0.016593270003795624,
-0.041388947516679764,
-0.059121936559677124,
0.01329974364489317,
0.03733261302113533,
-0.036740317940711975,
-0.023243142291903496,
0.0072511425241827965,
0.03081735409796238,
-0.029309691861271858,
0.015283038839697838,
-0.02387133426964283,
-0.0050031086429953575,
0.034083958715200424,
0.06949609518051147,
-0.043650440871715546,
-0.0337788350880146,
0.02767639048397541,
-0.0038476821500808,
-0.03876848518848419,
-0.018720151856541634,
-0.022220084443688393,
-0.022130342200398445,
0.008588296361267567,
0.015139452181756496,
-0.038624897599220276,
-0.024391837418079376,
-0.03146349638700485,
0.055927127599716187,
0.038624897599220276,
0.00044478310155682266,
-0.03462240844964981,
0.05319897457957268,
0.002148195868358016,
-0.008072280324995518,
0.05280411243438721,
-0.08284968882799149,
0.021663684397935867,
0.058655280619859695,
-0.053306665271520615,
-0.004417543299496174,
-0.02699435129761696,
0.011397216469049454,
0.060198839753866196,
-0.007883822545409203,
-0.034514717757701874,
0.05966039001941681,
-0.01575867086648941,
0.0423581562936306,
-0.044117096811532974,
-0.005406946875154972,
0.02575591392815113,
0.004098959267139435,
0.021825220435857773,
-0.015686877071857452,
0.005182592663913965,
-0.0076953643001616,
-0.004435491282492876,
-0.0211790781468153,
-0.007152426056563854,
0.008238302543759346,
-0.019815003499388695,
-0.06407568603754044,
0.04203508794307709,
0.017248384654521942,
0.05086568742990494,
-0.06820381432771683,
-0.015247141942381859,
0.030619923025369644,
-0.07068069279193878,
-0.035573672503232956,
0.02351236715912819,
-0.02541489526629448,
-0.037547994405031204,
-0.04662987217307091,
-0.07732158899307251,
0.017445817589759827,
0.08586501330137253,
0.02724562957882881,
0.05632198974490166,
-0.02153804711997509,
-0.04957340285181999,
0.01445741392672062,
-0.01756248250603676,
0.01634199358522892,
0.05876297131180763,
-0.10948506742715836,
-0.0040024868212640285,
0.003381024580448866,
0.01137029379606247,
-0.0032464119140058756,
0.019545776769518852,
0.020856007933616638,
0.04666576907038689,
-0.008449195884168148,
-0.0003757940430659801,
-0.019456034526228905,
-0.0019608596339821815,
0.005115285981446505,
0.029955832287669182,
-0.030978890135884285,
0.02313545159995556,
-0.001086437376216054,
0.05154772475361824,
0.005182592663913965,
0.02843022160232067,
0.026868712157011032,
-0.04874777793884277,
-0.017024030908942223,
0.04472734406590462,
0.03157118707895279,
0.03194810077548027,
-0.004204405937343836,
-0.09182386845350266,
0.05345025286078453,
-0.042070984840393066,
0.016476605087518692,
-0.008574835024774075,
-0.028394324705004692,
-0.04540938138961792,
0.023799540475010872,
0.036794163286685944,
-0.030135316774249077,
0.030691716820001602,
0.020514989271759987,
-0.03474804759025574,
0.03144554793834686,
-0.011298500001430511,
0.013111285865306854,
-0.0038431952707469463,
0.048999056220054626,
-0.03613007441163063,
0.03551982715725899,
0.029381485655903816,
-0.031086580827832222,
-0.01925860345363617,
0.01816375181078911,
0.014529206790030003,
-0.006133856251835823,
-0.010715178214013577,
-0.025486689060926437,
0.029507122933864594,
-0.006775510497391224,
-0.012079254724085331,
0.06960378587245941,
-0.022955967113375664,
0.028555860742926598,
-0.03952231630682945,
-0.008740857243537903,
0.0054473308846354485,
-0.03794286027550697,
-0.045588865876197815,
0.03873258829116821,
0.03467625379562378,
-0.009961346164345741,
-0.022040601819753647,
0.03776337578892708,
-0.0341198556125164,
0.08665473759174347,
-0.10596718639135361,
-0.04616321250796318,
0.014098445884883404,
-0.005353101994842291,
-0.04074280336499214,
0.08636756986379623,
0.0017903500702232122,
-0.04487093165516853,
-0.021286768838763237,
0.037512097507715225,
-0.019132964313030243,
-0.028232788667082787,
0.04343505948781967,
-0.03923514112830162,
-0.0011369171552360058,
-0.05108106508851051,
-0.019922692328691483,
-0.0014526963932439685,
0.05872707441449165,
-0.004585809074342251,
0.02810715138912201,
0.00712101673707366,
0.027119990438222885,
-0.05919373035430908,
-0.01443946547806263,
0.05043492466211319,
0.02803535759449005,
0.00014260542229749262,
0.0057569402270019054,
-0.02738921530544758,
0.004184214398264885,
0.001585065620020032,
0.03194810077548027,
-0.07032172381877899,
-0.016234302893280983,
-0.06870637089014053,
0.0023243140894919634,
0.06109625846147537,
0.020694473758339882,
-0.02462516725063324,
0.012913853861391544,
-0.014843303710222244,
-0.06561924517154694,
0.04164022207260132,
0.06411158293485641,
-0.02810715138912201,
-0.01575867086648941,
-0.08148560672998428,
-0.00624603359028697,
-0.0008317948668263853,
0.032486554235219955,
-0.016368914395570755,
-0.04551707208156586,
0.048711881041526794,
-0.03462240844964981,
0.052552834153175354,
-0.004128125496208668,
0.04806574061512947,
0.0051018246449530125,
0.034801892936229706,
-0.00607103668153286,
-0.0035492905881255865,
0.02620462328195572,
0.05732709914445877,
-0.061311639845371246,
-0.007619083859026432,
0.014565103687345982,
0.04494272544980049,
0.009521611034870148,
0.024858495220541954,
-0.0008536694222129881,
0.008628679439425468,
0.05187079682946205,
-0.04849649965763092,
0.01272539608180523,
-0.09562892466783524,
0.031319908797740936,
-0.034873686730861664,
-0.04706063121557236,
-0.03779927268624306,
-0.04203508794307709,
-0.06590642035007477,
0.017759913578629494,
0.0029098798986524343,
0.0745934322476387,
0.009395972825586796,
-0.03528650104999542,
-0.01816375181078911,
0.0010297878179699183,
-0.022794432938098907,
-0.0047293961979448795,
-0.07366012036800385,
-0.07839848846197128,
-0.02658153884112835,
0.027837924659252167,
0.001134673599153757,
-0.009934423491358757,
-0.009521611034870148,
-0.025486689060926437,
0.019689364358782768,
0.02577386237680912,
-0.04375813156366348,
0.028681498020887375,
-0.011119016446173191,
0.054060496389865875,
-0.024894392117857933,
-0.05463484302163124,
0.03609417751431465,
0.03499932587146759,
0.01882784254848957,
0.039809487760066986,
0.006438978482037783,
0.005608866456896067,
-0.014017678797245026,
-0.014888174831867218,
0.061347536742687225,
-0.006326801143586636,
-0.021053440868854523,
0.09778273105621338,
-0.023350832983851433,
-0.022148290649056435,
0.006008217576891184,
0.047922153025865555,
-0.04494272544980049,
-0.0007549534202553332,
-0.0049402895383536816,
-0.0200662799179554,
0.012554885819554329,
0.002512772101908922,
0.012088228948414326,
0.012536938302218914,
-0.09713658690452576,
-0.0038499257061630487,
-0.015148426406085491,
-0.03234296664595604,
0.05743478983640671,
0.03844541311264038,
0.04580424726009369,
-0.021861117333173752,
0.006084498018026352,
0.013236924074590206,
0.044476065784692764,
0.020981647074222565,
-0.028950724750757217,
-0.0003362515417393297,
0.030476335436105728,
0.05502970889210701,
-0.040168456733226776,
-0.020084228366613388,
-0.011190810240805149,
-0.0044467090629041195,
0.0049402895383536816,
0.0051018246449530125,
-0.024050818756222725,
0.03036864474415779,
0.03973769396543503,
0.049465712159872055,
0.016620192676782608,
-0.02458927035331726,
-0.00003058584843529388,
-0.014098445884883404,
0.012357453815639019,
0.0014426003908738494,
0.032414760440588,
0.06228085234761238,
0.06795253604650497,
-0.021699581295251846,
-0.003042249009013176,
-0.06999865174293518,
0.004139343276619911,
-0.02428414672613144,
0.05384511500597,
-0.025163616985082626,
0.01540867704898119,
0.08478810638189316,
0.04164022207260132,
0.00006106653017923236,
0.012779240496456623,
-0.02963276207447052,
-0.03697364777326584,
-0.02469695918262005,
0.005864630453288555,
0.022543154656887054,
0.00041589743341319263,
-0.033258333802223206,
-0.028789188712835312,
-0.03045838698744774,
0.017804784700274467,
-0.03399421647191048,
0.0017443574033677578,
0.03808644413948059,
-0.03036864474415779,
-0.011316448450088501,
-0.02275853604078293,
-0.017248384654521942,
0.043327368795871735,
-0.05323487147688866,
0.06518848985433578,
0.019456034526228905,
-0.013048466295003891,
-0.04077870026230812,
0.0637885108590126,
-0.023673903197050095,
0.04181970655918121,
0.09045979380607605,
-0.04110177233815193,
-0.018082985654473305,
-0.008556886576116085,
0.0013663198333233595,
0.05822451785206795,
0.006703717168420553,
0.002128003863617778,
0.004327801056206226,
0.07588572055101395,
0.012806163169443607,
-0.04146074131131172,
-0.018217597156763077,
0.009754939936101437,
-0.026473848149180412,
-0.03268398717045784,
-0.020209867507219315,
-0.0878034383058548,
-0.04856829345226288,
-0.058619383722543716,
-0.02082011103630066,
-0.04429658129811287,
-0.0303506962954998,
0.00014442831161431968,
0.005308230873197317,
0.038265928626060486,
0.020120125263929367,
-0.005263360217213631,
-0.02153804711997509,
-0.017984269186854362,
0.06199367716908455,
0.06403978914022446,
0.04856829345226288,
-0.0073633198626339436,
-0.06795253604650497,
0.026868712157011032,
-0.043650440871715546,
0.0001041145806084387,
0.048640087246894836,
-0.02767639048397541,
0.038265928626060486,
0.007053710054606199,
0.07143452018499374,
-0.0318942554295063,
0.050973378121852875,
0.008673550561070442,
0.04070690646767616,
0.06547565758228302,
-0.0032464119140058756,
0.01888168789446354,
0.04120946303009987,
0.05808093026280403,
-0.005689634010195732,
-0.025540532544255257,
-0.029489174485206604,
0.015633031725883484,
0.01764325052499771,
0.034030113369226456,
-0.00022491553681902587,
-0.02620462328195572,
0.04925033450126648,
0.02658153884112835,
-0.046019624918699265,
-0.015821490436792374,
0.04465555027127266,
0.0052857957780361176,
-0.02618667483329773,
0.013524098321795464,
-0.006160778924822807,
-0.06123984605073929,
-0.013918962329626083,
-0.020299607887864113,
-0.05280411243438721,
0.04652218148112297,
0.03042249009013176,
-0.023009812459349632,
0.04077870026230812,
0.055675849318504333,
-0.05775786191225052,
0.05341435596346855,
0.013954859226942062,
-0.014538181014358997,
-0.009772888384759426,
-0.02469695918262005,
-0.019904743880033493,
0.03334807604551315,
0.003004108788445592,
0.0025845656637102365,
0.016853520646691322,
-0.0272635780274868,
0.013192053884267807,
-0.07366012036800385,
0.04142484441399574,
0.022220084443688393,
0.01021262351423502,
0.01591123268008232,
-0.034083958715200424,
-0.03656083345413208,
-0.07588572055101395,
-0.06041422113776207,
-0.04181970655918121,
0.00198890408501029,
-0.007619083859026432,
-0.0037310179322957993,
-0.001077463268302381,
0.0026316801086068153,
0.013452304527163506,
0.04648628458380699,
-0.0014560617273673415,
0.060952670872211456,
-0.02577386237680912,
-0.04318378493189812,
-0.01592918112874031,
0.017409920692443848,
0.04436837509274483,
0.007296013180166483,
-0.006483849603682756,
-0.023727748543024063,
-0.029722504317760468,
-0.025109771639108658,
0.05108106508851051,
-0.004473631735891104,
-0.01041005551815033,
-0.0016613461775705218,
-0.006465901155024767,
-0.0074620358645915985,
0.09103414416313171,
0.02040729857981205,
-0.03124811500310898,
-0.0028335992246866226,
0.0074620358645915985,
-0.0136317890137434,
-0.004155048169195652,
0.016799677163362503,
-0.01425998192280531,
0.059121936559677124,
-0.04038383811712265,
0.06475772708654404,
-0.06066549941897392,
-0.019922692328691483,
-0.054060496389865875,
-0.012465144507586956,
-0.05686044320464134,
0.0035201243590563536,
-0.008395351469516754,
0.028681498020887375,
0.034030113369226456,
0.02464311569929123,
0.03221732750535011,
0.022094445303082466,
0.03456856310367584,
0.01133439689874649,
0.07947538793087006,
0.031391702592372894,
-0.05413229018449783,
0.019940640777349472,
-0.06109625846147537,
0.004110177047550678,
-0.002027044305577874,
-0.06436286121606827,
-0.057111721485853195,
-0.02155599556863308,
0.03166092932224274,
0.013434356078505516,
-0.017786836251616478,
0.0064255171455442905,
-0.01572277396917343,
0.013981781899929047,
-0.01961757056415081,
0.09168028086423874,
0.024840546771883965,
-0.047132425010204315,
0.07416267693042755,
0.017804784700274467,
0.005474253557622433,
0.01997653767466545,
0.00780305452644825,
-0.02076626569032669,
-0.007704338524490595,
0.057075824588537216,
0.01637788861989975,
0.013515124097466469,
0.04307609423995018,
-0.030296852812170982,
-0.03198399767279625,
0.005514637101441622,
-0.03916334733366966,
-0.00999724306166172,
0.0134612787514925,
0.0038274903781712055,
-0.023727748543024063,
0.09663403779268265,
0.03334807604551315,
-0.07075247913599014,
-0.0031970536801964045,
-0.009880579076707363,
0.009351101703941822,
-0.0032980134710669518,
-0.00780305452644825,
0.025971295312047005,
-0.0005179787985980511,
-0.016270199790596962,
-0.030099419876933098,
-0.03354550898075104,
0.021430356428027153,
-0.03955821320414543,
0.06508079916238785,
-0.05240924656391144,
0.06565514206886292,
-0.014008704572916031,
-0.011558751575648785,
-0.016431733965873718,
0.005124260205775499,
0.034873686730861664,
-0.034442927688360214,
-0.0017264090711250901,
0.03144554793834686,
0.028358427807688713,
-0.022381620481610298,
0.009176105260848999,
0.051727209240198135,
0.001233950606547296,
-0.004260494839400053,
0.03604033216834068,
-0.004213380161672831,
-0.002885200781747699,
0.012160021811723709,
-0.04838881269097328,
-0.04357864707708359,
-0.01660224422812462,
0.03119427151978016,
0.01516637485474348,
-0.0318942554295063,
-0.06547565758228302,
-0.006304365582764149,
-0.023763645440340042,
0.03194810077548027,
0.05348614975810051,
0.01058056578040123,
0.06924481689929962,
0.02803535759449005,
-0.013174105435609818,
-0.0007465400849469006,
0.04666576907038689,
-0.019761158153414726,
0.02073037065565586,
-0.002373672090470791,
-0.04325557500123978,
0.015444573946297169,
-0.005918475799262524,
0.012824111618101597,
0.010149803943932056,
-0.0031791054643690586,
0.025684120133519173,
-0.03085325099527836,
0.00451401574537158,
0.00440632551908493,
-0.01579456776380539,
-0.0368659570813179,
0.02577386237680912,
-0.013892039656639099,
-0.02381748892366886,
0.03534034639596939,
-0.001614231732673943,
0.027891770005226135,
0.010751075111329556,
0.018971430137753487,
-0.016467630863189697,
0.00626398203894496,
-0.027030248194932938,
0.005550533998757601,
-0.02198675647377968,
-0.0737319141626358,
-0.026402056217193604,
-0.0272635780274868,
0.0019171105232089758,
0.03580700233578682,
-0.03665057569742203,
0.0463068000972271,
0.03553777560591698,
0.05284000560641289,
-0.009808785282075405,
-0.05966039001941681,
0.07983435690402985,
0.029004570096731186,
-0.0644705519080162,
-0.03279167413711548,
0.015704825520515442,
-0.010652358643710613,
-0.05111696198582649,
-0.07538316398859024,
-0.07480881363153458,
0.009701095521450043,
0.01060748752206564,
0.0004784362972714007,
0.01783170737326145,
-0.04494272544980049,
0.043722234666347504,
0.08615218847990036,
0.04684524983167648,
0.005528098437935114,
0.015022787265479565,
0.02963276207447052,
-0.0258097592741251,
-0.005308230873197317,
-0.010095959529280663,
-0.0019485201919451356,
0.025504637509584427,
0.014879200607538223,
0.065511554479599,
0.018666306510567665,
0.01812785491347313,
-0.028322530910372734,
0.04968109354376793,
0.02886098250746727,
0.02266879379749298,
-0.03970180079340935,
-0.032935261726379395,
0.01959962211549282,
0.05319897457957268,
-0.05951680243015289,
0.020586783066391945,
-0.009270334616303444,
0.0008822746458463371,
0.054383568465709686,
-0.028232788667082787,
0.007107555400580168,
0.007650493644177914,
-0.045983728021383286,
-0.047168321907520294,
-0.0055595082230865955,
0.09591609984636307,
-0.048711881041526794,
0.0026630896609276533,
0.06281930208206177,
-0.008848547004163265,
-0.011774132028222084,
0.003883579047396779,
0.0019866605289280415,
0.04027614742517471,
-0.015247141942381859,
-0.018917584791779518,
0.0824907198548317,
0.0013315448304638267,
0.039055656641721725,
-0.04433247819542885,
-0.08600860089063644,
-0.034030113369226456,
0.012249764055013657,
-0.0516195185482502,
-0.020622679963707924,
-0.01671890914440155,
-0.005747966002672911,
-0.020945750176906586,
0.04196329414844513,
0.04487093165516853
] |
9,954
|
sentence_transformers.cross_encoder.CrossEncoder
|
smart_batching_collate_text_only
| null |
def smart_batching_collate_text_only(self, batch):
texts = [[] for _ in range(len(batch[0]))]
for example in batch:
for idx, text in enumerate(example):
texts[idx].append(text.strip())
tokenized = self.tokenizer(
*texts, padding=True, truncation="longest_first", return_tensors="pt", max_length=self.max_length
)
for name in tokenized:
tokenized[name] = tokenized[name].to(self._target_device)
return tokenized
|
(self, batch)
|
[
0.02752453088760376,
-0.019066287204623222,
-0.03226466849446297,
-0.02555094100534916,
-0.024211719632148743,
0.010290861129760742,
-0.002219187328591943,
-0.021163227036595345,
0.08662649989128113,
-0.00517186289653182,
-0.021057499572634697,
-0.03536602482199669,
-0.06921661645174026,
-0.026467250660061836,
0.024405553936958313,
-0.039648011326789856,
-0.005198294762521982,
-0.010396589525043964,
0.004006651695817709,
-0.011674136854708195,
0.05307547003030777,
-0.007013292517513037,
-0.058855269104242325,
-0.005409750621765852,
0.0021299791987985373,
-0.01008821651339531,
0.012837144546210766,
-0.016643354669213295,
-0.00984151754528284,
-0.0200178399682045,
0.06008876487612724,
-0.017092697322368622,
0.028423218056559563,
-0.026238173246383667,
-0.050819940865039825,
-0.06033546105027199,
-0.011506733484566212,
0.006000065710395575,
0.03873170167207718,
-0.07129593193531036,
-0.001603541779331863,
-0.027048753574490547,
-0.0029537768568843603,
0.00935693085193634,
-0.016211630776524544,
0.013577241450548172,
0.009938434697687626,
-0.0006745668360963464,
-0.059665851294994354,
0.03778015077114105,
-0.030097246170043945,
-0.05695216357707977,
0.01612352393567562,
0.04821198061108589,
-0.03381534665822983,
-0.05857332795858383,
-0.004744545090943575,
0.011127875186502934,
-0.01793852262198925,
-0.013709400780498981,
-0.024793222546577454,
-0.023647835478186607,
0.06889943033456802,
0.07337525486946106,
-0.04916353523731232,
-0.05191246420145035,
0.04348946362733841,
0.004537494387477636,
-0.006656460464000702,
0.0064229778945446014,
-0.019700655713677406,
-0.017533231526613235,
0.002808400895446539,
-0.009912002831697464,
-0.03383297100663185,
-0.00662121782079339,
-0.03675810992717743,
0.06075837463140488,
0.02246720716357231,
-0.008841506205499172,
-0.022749148309230804,
0.05578915774822235,
0.0056520444341003895,
0.001385477720759809,
0.052899256348609924,
-0.07323428243398666,
0.019894490018486977,
0.04179781302809715,
-0.03672286868095398,
-0.02558618225157261,
-0.003993435762822628,
0.023013466969132423,
0.043313249945640564,
-0.0060264975763857365,
-0.018379054963588715,
0.04817673936486244,
-0.003524267580360174,
0.038062091916799545,
-0.05096090957522392,
0.008436216041445732,
0.011110253632068634,
0.038132574409246445,
0.056811194866895676,
-0.04056432098150253,
0.020740315318107605,
-0.018837209790945053,
0.0005638828151859343,
-0.02578001841902733,
0.014484739862382412,
0.023207303136587143,
-0.02273152582347393,
-0.057269349694252014,
0.05268780142068863,
-0.006801836658269167,
0.047648098319768906,
-0.04067004844546318,
-0.028247004374861717,
0.025797639042139053,
-0.05462614819407463,
-0.027894578874111176,
0.03517219051718712,
-0.03161267936229706,
-0.020053083077073097,
-0.037286750972270966,
-0.06872321665287018,
0.022854875773191452,
0.06181565299630165,
0.0378153920173645,
0.08867057412862778,
-0.01936585083603859,
-0.04754237085580826,
0.018238084390759468,
0.00759479682892561,
-0.001401997753418982,
0.04461722820997238,
-0.07901407778263092,
-0.009348119609057903,
0.003641009097918868,
0.023753564804792404,
0.0009322789264842868,
0.025920988991856575,
0.009445037692785263,
0.04112820327281952,
-0.0032269074581563473,
-0.03184175863862038,
-0.027277830988168716,
-0.026608221232891083,
0.021251333877444267,
0.018238084390759468,
-0.025991473346948624,
0.024141233414411545,
0.021039877086877823,
0.04077577590942383,
0.004332646727561951,
0.03668762743473053,
0.03342767804861069,
-0.057657018303871155,
-0.021233713254332542,
0.04461722820997238,
0.03908412903547287,
0.03700480982661247,
-0.012185155414044857,
-0.07393913716077805,
0.06230905279517174,
-0.030167730525135994,
0.007784225977957249,
-0.0071013993583619595,
-0.045216355472803116,
-0.040846262127161026,
0.024652251973748207,
0.05829138681292534,
-0.0030749235302209854,
0.028317490592598915,
0.023718321695923805,
-0.006066145841032267,
0.057198863476514816,
-0.008546348661184311,
0.0031872596591711044,
0.003579334355890751,
0.03940131142735481,
-0.05096090957522392,
0.03420301899313927,
0.03746296465396881,
0.007757794111967087,
-0.014238040894269943,
-0.0016398858278989792,
0.012326125986874104,
-0.026238173246383667,
0.002506635384634137,
-0.031136903911828995,
0.015727045014500618,
0.004837057553231716,
-0.004854678642004728,
0.0479300394654274,
-0.021621381863951683,
0.0309606920927763,
-0.04000043869018555,
-0.01723366789519787,
-0.003859073156490922,
-0.04348946362733841,
-0.0637892410159111,
0.0417625717818737,
0.02911045029759407,
0.00564323365688324,
-0.018854832276701927,
0.029586227610707283,
-0.029586227610707283,
0.065586619079113,
-0.1077721044421196,
-0.013797507621347904,
0.004158635623753071,
-0.00209253397770226,
-0.009630061686038971,
0.09670590609312057,
0.008171895518898964,
-0.056035853922367096,
0.0029405609238892794,
0.04225596785545349,
0.005044108256697655,
-0.009832706302404404,
0.03397393971681595,
-0.03513694927096367,
0.006255574990063906,
-0.054908089339733124,
-0.004312822595238686,
-0.008903181180357933,
0.051313336938619614,
-0.01620282046496868,
0.019806385040283203,
0.00023775039881002158,
0.039683252573013306,
-0.04225596785545349,
-0.01797376573085785,
0.048916835337877274,
0.01978876255452633,
-0.026185309514403343,
-0.011515544727444649,
-0.055648185312747955,
0.01057280320674181,
-0.03633520007133484,
0.0319298654794693,
-0.08296126127243042,
-0.010590423829853535,
-0.040106166154146194,
-0.019471578299999237,
0.0716836005449295,
-0.003922950476408005,
-0.006259980611503124,
0.027048753574490547,
-0.018449541181325912,
-0.048916835337877274,
0.053216442465782166,
0.03170078620314598,
-0.014660953544080257,
-0.01732177473604679,
-0.03381534665822983,
0.005167457275092602,
0.022608177736401558,
0.014158745296299458,
-0.010167512111365795,
-0.03901364281773567,
0.03390345349907875,
-0.04990363121032715,
0.03904888406395912,
0.01206180639564991,
0.02474035881459713,
-0.010801880620419979,
0.04895207658410072,
-0.04620314761996269,
0.001038557616993785,
-0.0028612648602575064,
0.05099615454673767,
-0.05578915774822235,
-0.02207953669130802,
-0.0007566162385046482,
0.04740139842033386,
0.01662573218345642,
0.0557539127767086,
-0.014290905557572842,
-0.005700503010302782,
0.04514586925506592,
-0.020387887954711914,
0.009013314731419086,
-0.075630784034729,
0.03312811627984047,
-0.05106663703918457,
-0.043700918555259705,
-0.04718994349241257,
-0.034696415066719055,
-0.07136642187833786,
0.02671394869685173,
0.00043557744356803596,
0.08056475967168808,
-0.0011641096789389849,
-0.029128072783350945,
-0.02169186808168888,
0.009903192520141602,
-0.03111928328871727,
-0.009973677806556225,
-0.09304066747426987,
-0.037639178335666656,
0.017409881576895714,
0.022009052336215973,
-0.004585953429341316,
-0.01105738990008831,
0.012890009209513664,
-0.04838819429278374,
0.016229253262281418,
0.017568474635481834,
-0.041269175708293915,
0.010378967970609665,
-0.04630887508392334,
0.02218526415526867,
-0.01084593404084444,
-0.05656449496746063,
0.04116344451904297,
0.045674510300159454,
0.014925273135304451,
0.03820306062698364,
0.0037114943843334913,
0.014282094314694405,
-0.02817652001976967,
-0.0009752309415489435,
0.013806318864226341,
-0.019224880263209343,
-0.05741031840443611,
0.09367503225803375,
-0.04031762108206749,
-0.03820306062698364,
0.030009139329195023,
0.03358627110719681,
-0.022837255150079727,
-0.0072908285073935986,
0.015242457389831543,
-0.022026672959327698,
0.02606195956468582,
-0.010387779213488102,
-0.0006784215220250189,
0.00906617846339941,
-0.10079405456781387,
0.00153636047616601,
0.010669720359146595,
-0.002200464718043804,
0.05987730622291565,
0.017806362360715866,
0.0479300394654274,
-0.02648487128317356,
0.008440621197223663,
0.022484827786684036,
0.005528694950044155,
0.030396807938814163,
-0.032299913465976715,
0.013982531614601612,
0.01978876255452633,
0.04905780404806137,
-0.043207522481679916,
-0.029392391443252563,
-0.0033810941968113184,
-0.030185353010892868,
-0.00757717527449131,
-0.0065022739581763744,
-0.005136620253324509,
0.028846129775047302,
0.04874062165617943,
0.057621777057647705,
0.010652098804712296,
-0.015832772478461266,
-0.002682848833501339,
-0.010511128231883049,
0.005801825784146786,
0.00022302006254903972,
0.015330564230680466,
0.05593012645840645,
0.06512846797704697,
-0.024617008864879608,
-0.01878434605896473,
-0.05945439636707306,
0.005004459992051125,
-0.032881416380405426,
0.08232688903808594,
-0.01971827819943428,
0.02033502422273159,
0.09487328678369522,
0.039718497544527054,
-0.004652033094316721,
0.010907608084380627,
-0.04905780404806137,
-0.04299606382846832,
-0.0033854995854198933,
-0.007709335535764694,
0.027735985815525055,
-0.028634674847126007,
-0.03834403306245804,
0.008445026353001595,
-0.022026672959327698,
0.03348054364323616,
-0.0459916926920414,
0.006978049874305725,
0.004744545090943575,
-0.006374519318342209,
-0.012070616707205772,
-0.01681956648826599,
-0.01318076066672802,
0.024405553936958313,
-0.06269672513008118,
0.03985946625471115,
0.013718212023377419,
-0.008638860657811165,
-0.029797682538628578,
0.07950747758150101,
-0.027383560314774513,
0.025145649909973145,
0.0835956260561943,
-0.03668762743473053,
-0.00492075877264142,
0.006731351371854544,
0.015823962166905403,
0.06304914504289627,
-0.00958600826561451,
0.015365807339549065,
0.02311919629573822,
0.07788631319999695,
-0.006775404326617718,
-0.03332195058465004,
-0.001783059211447835,
0.018766725435853004,
-0.023753564804792404,
-0.04468771442770958,
-0.013630105182528496,
-0.08704940974712372,
-0.030026759952306747,
-0.06523419171571732,
-0.03182413801550865,
-0.03409728780388832,
-0.02474035881459713,
0.019647791981697083,
0.004251147620379925,
0.026449628174304962,
0.016379034146666527,
-0.003916342277079821,
-0.02726021036505699,
-0.028546568006277084,
0.047718584537506104,
0.08148106932640076,
0.05624731257557869,
0.00011323086800985038,
-0.0657980740070343,
0.04296082258224487,
-0.028017926961183548,
0.0032797716557979584,
0.08613310009241104,
-0.009392173029482365,
-0.008867938071489334,
0.01701340265572071,
0.07457350194454193,
-0.035471752285957336,
0.07450301945209503,
0.011127875186502934,
0.05515478923916817,
0.07478495687246323,
-0.0027533341199159622,
0.03540126979351044,
0.04637936130166054,
0.007960439659655094,
0.005004459992051125,
-0.03742772340774536,
-0.05571867153048515,
0.01770063489675522,
0.033110495656728745,
0.03154219686985016,
0.01720723696053028,
-0.025568561628460884,
0.0239297766238451,
0.013638915494084358,
-0.03584180027246475,
-0.02052885852754116,
0.01763014867901802,
-0.001817200449295342,
-0.013735833577811718,
0.026114823296666145,
-0.0011018842924386263,
-0.07513738423585892,
-0.02215002290904522,
-0.022273370996117592,
-0.054872848093509674,
0.04144538566470146,
0.03633520007133484,
-0.03668762743473053,
0.04912829026579857,
0.06283769011497498,
-0.04257315397262573,
0.06248526647686958,
0.019700655713677406,
0.0008529829210601747,
-0.01913677342236042,
-0.01917201653122902,
-0.011577218770980835,
0.023365894332528114,
0.004933974705636501,
0.01871386170387268,
0.015630127862095833,
-0.0010115749901160598,
0.00438771303743124,
-0.06999195367097855,
0.030167730525135994,
0.024617008864879608,
-0.016176387667655945,
0.019612548872828484,
-0.03217656537890434,
-0.027630258351564407,
-0.06347206234931946,
-0.053639352321624756,
-0.038555487990379333,
-0.016484761610627174,
-0.009163095615804195,
-0.02548045478761196,
0.004433969035744667,
-0.01600017584860325,
-0.01099571492522955,
0.031172147020697594,
-0.011815107427537441,
0.07013292610645294,
-0.05691692233085632,
-0.04412383213639259,
-0.0016839391319081187,
-0.00900450348854065,
0.04743664339184761,
-0.0005793015006929636,
0.016872432082891464,
-0.040035679936409,
-0.02470511570572853,
-0.002339232712984085,
0.054414693266153336,
-0.0050308918580412865,
0.0037070889957249165,
-0.02146279066801071,
0.011119064874947071,
-0.01424685213714838,
0.08972785621881485,
0.027665501460433006,
-0.031031176447868347,
0.011312899179756641,
0.007348097860813141,
-0.029286663979291916,
-0.02021167427301407,
0.016017796471714973,
-0.015594884753227234,
0.04511062428355217,
-0.06484652310609818,
0.06227380782365799,
-0.05265256017446518,
-0.02458176761865616,
-0.04518111050128937,
-0.012502339668571949,
-0.047295670956373215,
-0.031066419556736946,
0.01097809337079525,
0.015533209778368473,
0.013797507621347904,
0.0249694362282753,
0.03460830822587013,
0.007599201984703541,
0.008969261310994625,
0.028599431738257408,
0.08465290814638138,
0.03816781938076019,
-0.05434420704841614,
0.03242326155304909,
-0.07429156452417374,
0.004110177047550678,
0.010405399836599827,
-0.05628255382180214,
-0.04341897740960121,
-0.006088172551244497,
0.007215938065201044,
0.013638915494084358,
-0.017445124685764313,
0.01267855241894722,
-0.017295343801379204,
0.009956056252121925,
0.011383384466171265,
0.08021233230829239,
0.023401137441396713,
-0.049339745193719864,
0.0835251435637474,
0.011312899179756641,
0.012942872941493988,
0.006823863368481398,
0.0072467755526304245,
-0.04341897740960121,
0.015471534803509712,
0.05184197798371315,
0.025445211678743362,
-0.0015727044083178043,
0.030643507838249207,
0.00466965464875102,
-0.021321820095181465,
0.015180783346295357,
-0.03827354684472084,
-0.0024207313545048237,
-0.007185100577771664,
0.010801880620419979,
-0.00985913909971714,
0.08648552745580673,
0.043736159801483154,
-0.05621206760406494,
-0.02389453537762165,
-0.001339221722446382,
0.021973809227347374,
0.004114582668989897,
-0.02014118991792202,
0.01763014867901802,
-0.030520157888531685,
-0.016132334247231483,
-0.01874910295009613,
-0.010969283059239388,
0.01770063489675522,
-0.027471667155623436,
0.07400961965322495,
-0.06340157240629196,
0.06111080199480057,
0.002709280699491501,
-0.033691998571157455,
-0.025727154687047005,
0.014061828143894672,
0.018149977549910545,
-0.028898995369672775,
-0.003907531965523958,
0.014845977537333965,
0.018379054963588715,
-0.023647835478186607,
0.017533231526613235,
0.0678069069981575,
0.011621272191405296,
0.0020969391334801912,
0.03208845853805542,
-0.024211719632148743,
-0.00708377780392766,
-0.004392118658870459,
-0.05695216357707977,
-0.03735723719000816,
0.011515544727444649,
0.029216179624199867,
-0.006365708541125059,
-0.07157787680625916,
-0.06544564664363861,
0.005991254933178425,
-0.02578001841902733,
0.04243218153715134,
0.05134857818484306,
-0.009436226449906826,
0.0658685639500618,
0.04430004581809044,
-0.01366534736007452,
0.007489068899303675,
0.03363913297653198,
-0.04387713223695755,
-0.004806220065802336,
0.008251192048192024,
-0.04338373616337776,
0.033145736902952194,
0.0016167578287422657,
-0.01026442926377058,
0.018431920558214188,
-0.005872311070561409,
-0.013295299373567104,
-0.038097333163022995,
-0.009920813143253326,
0.01809711381793022,
0.006299628410488367,
-0.031101662665605545,
0.039612770080566406,
-0.0063304658979177475,
-0.0348726287484169,
0.04863489419221878,
0.0042929984629154205,
0.060793615877628326,
0.01120717078447342,
0.01878434605896473,
-0.015594884753227234,
-0.0070881834253668785,
-0.0200178399682045,
0.026802055537700653,
-0.029198557138442993,
-0.09367503225803375,
-0.013136707246303558,
-0.053286924958229065,
0.013753454200923443,
0.05346313863992691,
-0.0379563607275486,
0.038485001772642136,
-0.004334849305450916,
0.05385081097483635,
0.002348043257370591,
-0.040035679936409,
0.06946331262588501,
0.0419035404920578,
-0.05550721660256386,
-0.028634674847126007,
0.03830878809094429,
-0.014211609028279781,
-0.03335719183087349,
-0.07245894521474838,
-0.09064416587352753,
-0.005674070678651333,
-0.0054141562432050705,
-0.011215982027351856,
0.00900450348854065,
-0.0308549627661705,
0.010810690931975842,
0.09120804816484451,
0.013727022334933281,
0.005828257650136948,
0.04116344451904297,
0.04831770807504654,
-0.007061751093715429,
-0.005484641529619694,
-0.015621316619217396,
0.014511171728372574,
0.008682914078235626,
0.01418517716228962,
0.06822982430458069,
-0.00950671173632145,
0.025339484214782715,
-0.040493834763765335,
0.06248526647686958,
-0.001552880392409861,
-0.00018557472503744066,
-0.007581580895930529,
-0.032722823321819305,
0.012423043139278889,
0.03711053729057312,
-0.04077577590942383,
0.005004459992051125,
0.005304022692143917,
-0.00033095074468292296,
0.04380664601922035,
-0.043242763727903366,
-0.024053126573562622,
0.00021076772827655077,
-0.0879657194018364,
-0.03429112583398819,
-0.034343987703323364,
0.09452085942029953,
-0.048846349120140076,
0.0025925394147634506,
0.06072313338518143,
-0.008374541066586971,
-0.007233559153974056,
0.01198250986635685,
-0.014546414837241173,
0.04588596522808075,
-0.014334958977997303,
0.007876737974584103,
0.08317271620035172,
0.02914569340646267,
0.03876694291830063,
-0.04363043233752251,
-0.07795680314302444,
-0.019083909690380096,
-0.0011916429502889514,
-0.028969479724764824,
-0.01782398298382759,
-0.03261709585785866,
-0.007445015478879213,
-0.04602693393826485,
0.05184197798371315,
0.03496073558926582
] |
9,955
|
sentence_transformers.readers.InputExample
|
InputExample
|
Structure for one input example with texts, the label and a unique id
|
class InputExample:
"""
Structure for one input example with texts, the label and a unique id
"""
def __init__(self, guid: str = "", texts: List[str] = None, label: Union[int, float] = 0):
"""
Creates one InputExample with the given texts, guid and label
:param guid
id for the example
:param texts
the texts for the example.
:param label
the label for the example
"""
self.guid = guid
self.texts = texts
self.label = label
def __str__(self):
return "<InputExample> label: {}, texts: {}".format(str(self.label), "; ".join(self.texts))
|
(guid: str = '', texts: List[str] = None, label: Union[int, float] = 0)
|
[
0.030362620949745178,
-0.016552947461605072,
0.003993608523160219,
-0.06736881285905838,
0.00037498396704904735,
-0.026462320238351822,
-0.029074961319565773,
0.02183421328663826,
0.0456092469394207,
-0.011672906577587128,
-0.006167699117213488,
0.04198887199163437,
-0.016142388805747032,
0.030399944633245468,
-0.011355657130479813,
0.04012269899249077,
0.005589185748249292,
-0.020247967913746834,
-0.025062691420316696,
-0.002820252673700452,
0.003489741822704673,
0.04915497452020645,
0.014285547658801079,
0.0818876326084137,
0.04415363445878029,
0.018223170191049576,
0.014649450778961182,
-0.04307125136256218,
-0.020994435995817184,
-0.034785449504852295,
-0.0036856899969279766,
-0.056321073323488235,
-0.027003509923815727,
0.01742071658372879,
-0.026480982080101967,
-0.04467616230249405,
-0.052999287843704224,
0.07057862728834152,
-0.0859932154417038,
0.021740905940532684,
0.04553459957242012,
-0.015218634158372879,
-0.0018999965395778418,
-0.017616664990782738,
-0.02698484994471073,
0.04810991883277893,
0.003925959579646587,
0.014033614657819271,
-0.08255945146083832,
-0.05128240957856178,
0.04736344888806343,
0.0336470827460289,
-0.03974946588277817,
0.02228209562599659,
-0.07606517523527145,
-0.0076139820739626884,
0.026630276814103127,
0.04333251714706421,
0.02254335954785347,
0.055276017636060715,
-0.034113626927137375,
0.07237015664577484,
0.04620642215013504,
0.007842588238418102,
-0.03383370116353035,
0.014061607420444489,
-0.025249309837818146,
0.017327407374978065,
-0.012428706511855125,
0.015554544515907764,
0.01865239068865776,
-0.02556655742228031,
-0.019277557730674744,
0.058933716267347336,
0.060277361422777176,
-0.030269311740994453,
-0.03137035295367241,
0.02194618433713913,
0.023756371811032295,
-0.015181310474872589,
0.008239150047302246,
0.026555629447102547,
-0.058933716267347336,
-0.034972064197063446,
0.012615323998034,
-0.017299415543675423,
0.0006257508648559451,
-0.023607077077031136,
0.011038408614695072,
0.02116239257156849,
-0.057403456419706345,
0.019837409257888794,
-0.03304990753531456,
0.07516941428184509,
-0.031650278717279434,
-0.028048567473888397,
0.013156513683497906,
-0.07905105501413345,
-0.005911100190132856,
0.06274070590734482,
0.005136638879776001,
0.006727550644427538,
-0.010627849958837032,
0.010366586036980152,
-0.04210084304213524,
-0.04605712741613388,
-0.016944842413067818,
-0.0009441664442420006,
0.053447168320417404,
0.021628934890031815,
0.0036297047045081854,
-0.0043855044059455395,
-0.030866486951708794,
0.05217817425727844,
0.011747553944587708,
-0.02194618433713913,
0.006559594999998808,
0.02556655742228031,
-0.00027890526689589024,
-0.06561461091041565,
0.03025064989924431,
0.0037533387076109648,
-0.09539871662855148,
0.027861949056386948,
0.03368440642952919,
0.017709974199533463,
0.005939092952758074,
-0.029858754947781563,
0.016655586659908295,
-0.0493415929377079,
0.027656670659780502,
-0.02153562568128109,
-0.0031561637297272682,
0.029373548924922943,
0.04142902046442032,
0.009741418063640594,
0.031612955033779144,
0.013035212643444538,
-0.011439635418355465,
0.09301001578569412,
0.04803527146577835,
0.013277814723551273,
0.05027467757463455,
0.0096294479444623,
-0.06609981507062912,
-0.034748125821352005,
-0.009741418063640594,
-0.008612384088337421,
-0.02179688960313797,
-0.005859780590981245,
-0.033105894923210144,
-0.0060417321510612965,
-0.019146926701068878,
0.026816893368959427,
0.003160828957334161,
-0.006298331078141928,
-0.008976288139820099,
-0.07972287386655807,
0.0452360138297081,
-0.014724098145961761,
0.02414826676249504,
-0.0400107316672802,
0.11122386157512665,
0.04333251714706421,
0.0067648738622665405,
0.08614250272512436,
0.013651048764586449,
-0.013567071408033371,
-0.0037440077867358923,
0.027395406737923622,
-0.016571609303355217,
-0.056656986474990845,
-0.03736076503992081,
0.014145584776997566,
0.002586981048807502,
0.002472677966579795,
0.013856328092515469,
0.06367379426956177,
0.025659866631031036,
-0.04870709404349327,
-0.008010543882846832,
0.016870196908712387,
-0.0336470827460289,
-0.008831659331917763,
0.053447168320417404,
-0.01978142373263836,
0.0023548759054392576,
0.06486814469099045,
0.04157831519842148,
-0.04090649262070656,
0.007077457848936319,
-0.026294365525245667,
-0.03170626610517502,
0.030866486951708794,
-0.020919790491461754,
0.009097589179873466,
-0.03338582068681717,
-0.05146902799606323,
0.0019629797898232937,
0.017514025792479515,
0.01562919095158577,
0.035046711564064026,
0.031463660299777985,
-0.02291659452021122,
0.01263398490846157,
0.02552923560142517,
0.010077329352498055,
-0.0021857540123164654,
-0.07793134450912476,
-0.06889907270669937,
0.020733172073960304,
-0.029373548924922943,
0.00899028405547142,
0.020994435995817184,
0.05452955141663551,
-0.03267667442560196,
0.012307405471801758,
-0.01805521547794342,
-0.04355645924806595,
-0.012260750867426395,
0.11913643032312393,
0.011262348853051662,
0.007259409409016371,
-0.017028819769620895,
0.03874173387885094,
-0.014677443541586399,
0.02358841523528099,
-0.008710358291864395,
-0.0437430739402771,
-0.029037637636065483,
0.053633786737918854,
-0.054604195058345795,
0.006018405314534903,
0.017103467136621475,
-0.05117043852806091,
0.014602797105908394,
-0.0016783885657787323,
-0.04949088394641876,
-0.025323955342173576,
-0.01108506228774786,
0.001035725581459701,
0.04400433972477913,
0.01742071658372879,
-0.04583318904042244,
0.015227964147925377,
0.009531473740935326,
0.005939092952758074,
0.00600907439365983,
-0.04404166340827942,
-0.055649254471063614,
-0.001309819519519806,
0.01929621957242489,
-0.013212498277425766,
0.01906294748187065,
0.04949088394641876,
0.012232758104801178,
-0.001968811498954892,
-0.03808857500553131,
0.027526039630174637,
-0.010422571562230587,
-0.03450552374124527,
-0.035233329981565475,
0.009984021075069904,
0.10249017179012299,
0.023271165788173676,
-0.014108261093497276,
-0.017327407374978065,
0.028627080842852592,
0.0026872879825532436,
-0.054566871374845505,
0.11682237684726715,
0.07584123313426971,
-0.00024887153995223343,
-0.017252761870622635,
-0.02291659452021122,
-0.038219206035137177,
0.02287927083671093,
-0.0010409741662442684,
-0.028328493237495422,
-0.007474019192159176,
0.017859267070889473,
-0.033105894923210144,
0.027544701471924782,
-0.004054259043186903,
0.06438294053077698,
-0.01112238597124815,
0.02228209562599659,
0.02358841523528099,
-0.010441233403980732,
-0.03110908903181553,
0.026742246001958847,
0.04094381630420685,
0.0019816416315734386,
-0.028701728209853172,
-0.01937086693942547,
0.01198082510381937,
-0.029933400452136993,
0.009274875745177269,
-0.017075475305318832,
-0.04292196035385132,
-0.013697703368961811,
-0.009881381876766682,
0.056619662791490555,
-0.026406336575746536,
-0.09054667502641678,
-0.03189288079738617,
-0.015899786725640297,
-0.04120508208870888,
0.0162636898458004,
-0.03840582072734833,
0.013986960053443909,
0.07882711291313171,
0.02623837999999523,
0.05023735389113426,
-0.057776689529418945,
0.059680186212062836,
0.03937623277306557,
-0.010963761247694492,
0.026294365525245667,
0.04094381630420685,
-0.014518818818032742,
-0.032471396028995514,
-0.003149165539070964,
-0.01048788707703352,
-0.01869904436171055,
-0.02343912236392498,
0.012559338472783566,
-0.010021344758570194,
0.017439378425478935,
-0.0049593523144721985,
-0.011607591062784195,
-0.02276729978621006,
0.013277814723551273,
-0.013865659013390541,
-0.027656670659780502,
-0.003412762191146612,
0.004338850267231464,
-0.017933914437890053,
-0.006480282638221979,
-0.04180225729942322,
0.04165296256542206,
-0.04325786978006363,
-0.03870441019535065,
0.04743809625506401,
0.018773691728711128,
-0.017737966030836105,
0.03088514879345894,
-0.0008281138725578785,
0.07278071343898773,
0.02299124002456665,
0.003331117331981659,
0.017178114503622055,
0.04086916893720627,
-0.007940562441945076,
0.08957625925540924,
-0.021367670968174934,
-0.010758481919765472,
-0.011075731366872787,
-0.0013051541754975915,
-0.002918226644396782,
0.04340716451406479,
-0.07404971122741699,
0.023196520283818245,
-0.01903495565056801,
-0.07957357913255692,
-0.03319920226931572,
0.04135437309741974,
0.0024516836274415255,
0.04004805535078049,
0.06300196796655655,
-0.02961615100502968,
-0.013455101288855076,
-0.055947840213775635,
-0.04650500789284706,
0.0038933015894144773,
0.012792609632015228,
-0.026294365525245667,
0.0224313884973526,
-0.06822725385427475,
-0.055276017636060715,
-0.018484434112906456,
0.00016197790682781488,
0.01175688486546278,
0.04344448819756508,
-0.03304990753531456,
-0.008854987099766731,
0.02056521736085415,
0.06341253221035004,
0.009918704628944397,
0.05243943631649017,
0.019314881414175034,
0.0011716062435880303,
-0.0030208660755306482,
-0.06177029758691788,
-0.029410872608423233,
-0.057142190635204315,
0.005654501728713512,
0.005197289399802685,
-0.04919229820370674,
-0.019240234047174454,
0.00038314846460707486,
-0.03945088014006615,
-0.054268285632133484,
0.018773691728711128,
-0.013912313617765903,
0.02590246871113777,
0.009396176785230637,
-0.027675332501530647,
-0.015227964147925377,
-0.0025473248679190874,
0.011430304497480392,
-0.014108261093497276,
-0.0026383008807897568,
-0.028104552999138832,
0.027227452024817467,
0.004525467287749052,
-0.03696886822581291,
-0.005519204307347536,
-0.08091722428798676,
0.0022557354532182217,
-0.035755857825279236,
0.054156314581632614,
0.04404166340827942,
0.054118990898132324,
0.02582782320678234,
0.03207949921488762,
-0.028421802446246147,
0.01790592074394226,
0.06912301480770111,
0.01955748349428177,
-0.04852047562599182,
0.04109311103820801,
-0.06352449953556061,
-0.037696678191423416,
0.013940305449068546,
-0.04609445109963417,
-0.023121872916817665,
-0.07546800374984741,
0.03450552374124527,
0.02515600062906742,
0.0085983881726861,
-0.029186932370066643,
0.0785285234451294,
0.05146902799606323,
-0.034785449504852295,
-0.008556399494409561,
-0.059306949377059937,
0.04053325951099396,
0.020061349496245384,
-0.02485741302371025,
0.057440776377916336,
0.03446820005774498,
0.05396969988942146,
-0.0015279283979907632,
0.02698484994471073,
-0.11644914001226425,
-0.01291391160339117,
-0.03862976282835007,
-0.01241004467010498,
-0.028459124267101288,
-0.013165844604372978,
0.0036483665462583303,
0.031650278717279434,
0.02161027304828167,
-0.012139449827373028,
0.006797532085329294,
0.055910516530275345,
-0.016702240332961082,
-0.04366842657327652,
0.028589757159352303,
-0.007973220199346542,
0.009620117023587227,
-0.0010526377009227872,
0.014425510540604591,
0.017467370256781578,
0.0028669070452451706,
0.01155160553753376,
-0.04616909846663475,
-0.08517209440469742,
-0.05005073547363281,
0.04631839320063591,
-0.04919229820370674,
0.012354059144854546,
0.05214085057377815,
-0.035867828875780106,
0.0052766017615795135,
0.027115480974316597,
-0.032284777611494064,
0.011271679773926735,
-0.018027223646640778,
-0.059530891478061676,
0.04504939541220665,
0.021367670968174934,
-0.06292732059955597,
0.00029260996961966157,
-0.02067718654870987,
0.02586514502763748,
0.04441489651799202,
-0.030120018869638443,
-0.02213280089199543,
0.02149830386042595,
0.0028645743150264025,
-0.008780339732766151,
-0.06311394274234772,
0.06763007491827011,
-0.002950884634628892,
-0.000770962389651686,
0.002398031298071146,
-0.019352205097675323,
0.008374447003006935,
-0.05146902799606323,
-0.04120508208870888,
0.06628643721342087,
0.008411770686507225,
0.02526796981692314,
-0.02489473670721054,
-0.026424996554851532,
0.03204217553138733,
-0.013753688894212246,
0.006792866624891758,
0.02493206039071083,
0.04945356026291847,
-0.04355645924806595,
-0.056880924850702286,
0.010347924195230007,
0.034710802137851715,
-0.04068255424499512,
-0.04120508208870888,
0.028944330289959908,
0.06833922117948532,
0.0036017121747136116,
-0.05131973326206207,
0.0012363389832898974,
0.015069340355694294,
-0.04094381630420685,
0.03782730922102928,
0.017299415543675423,
0.026518305763602257,
-0.010291939601302147,
0.030455928295850754,
0.01031993143260479,
0.04202619567513466,
-0.02664893865585327,
-0.036950208246707916,
0.06927230954170227,
0.014332202263176441,
0.014313540421426296,
0.033255185931921005,
-0.027973920106887817,
-0.007856585085391998,
-0.014780083671212196,
-0.059680186212062836,
-0.03797660395503044,
0.01347376313060522,
-0.018773691728711128,
0.0211250688880682,
-0.032471396028995514,
0.016907518729567528,
0.06763007491827011,
0.04045861214399338,
-0.00863571185618639,
0.015386588871479034,
-0.024689456447958946,
-0.01966945454478264,
0.022748637944459915,
0.04956553131341934,
-0.011803538538515568,
-0.06658501923084259,
-0.03282596915960312,
-0.00025382856256328523,
0.029205594211816788,
-0.0029578828252851963,
0.07613982260227203,
0.03357243537902832,
-0.03989876061677933,
0.02384967915713787,
-0.0048100585117936134,
0.05049861967563629,
0.005799130070954561,
-0.021852875128388405,
-0.04094381630420685,
0.06609981507062912,
-0.017877928912639618,
-0.0818876326084137,
0.06621178984642029,
-0.014658781699836254,
-0.00029450529837049544,
-0.03062388487160206,
-0.03874173387885094,
0.013632387854158878,
-0.017728636041283607,
-0.005304594058543444,
-0.016944842413067818,
0.06792866438627243,
0.026630276814103127,
-0.010338593274354935,
0.024614810943603516,
-0.06998145580291748,
0.0020119668915867805,
-0.029448196291923523,
-0.04180225729942322,
0.055425312370061874,
-0.04572121798992157,
0.027600685134530067,
0.06998145580291748,
-0.01693551242351532,
-0.013035212643444538,
-0.058859068900346756,
-0.010077329352498055,
0.019650792703032494,
0.054454904049634933,
0.011336995288729668,
-0.015797147527337074,
-0.009130246937274933,
-0.016944842413067818,
-0.030306635424494743,
0.0036856899969279766,
0.010543872602283955,
0.04769935831427574,
-0.028253845870494843,
0.04527333751320839,
0.005663832649588585,
-0.03465481474995613,
0.005892438348382711,
-0.06658501923084259,
-0.017280753701925278,
-0.0411304347217083,
-0.03368440642952919,
0.003331117331981659,
-0.04792330041527748,
0.06744346022605896,
-0.020957112312316895,
0.017877928912639618,
-0.054566871374845505,
0.016282351687550545,
0.010375916957855225,
0.010114653035998344,
-0.01966945454478264,
-0.015871794894337654,
0.033292509615421295,
-0.07274338603019714,
-0.02347644604742527,
-0.027768641710281372,
0.029205594211816788,
0.0037183479871600866,
-0.0023700385354459286,
-0.02586514502763748,
-0.06942160427570343,
0.0075253392569720745,
-0.011486289091408253,
-0.035942476242780685,
0.06942160427570343,
-0.0052299476228654385,
0.013464432209730148,
0.02504402957856655,
-0.005131973419338465,
-0.04195154830813408,
0.02228209562599659,
-0.004005271941423416,
0.0016807212959975004,
-0.031762249767780304,
0.02086380496621132,
0.06628643721342087,
-0.02459614910185337,
-0.032322101294994354,
0.015209303237497807,
0.0076979598961770535,
-0.00557985482737422,
-0.012027479708194733,
-0.001081213471479714,
-0.04967750236392021,
0.032769981771707535,
0.05184226110577583,
-0.030381282791495323,
-0.005136638879776001,
-0.036390356719493866,
0.028645742684602737,
-0.00011707314115483314,
0.013902982696890831,
-0.03993608430027962,
0.04329519346356392,
-0.018344471231102943,
0.0006344985449686646,
-0.0818876326084137,
-0.00515063526108861,
-0.006881509907543659,
0.009657440707087517,
-0.017691312357783318,
0.029448196291923523,
-0.06815260648727417,
-0.04269801825284958,
-0.006778870243579149,
0.012363390065729618,
-0.05001341179013252,
0.005206620320677757,
-0.0366329587996006,
-0.0030255315359681845,
-0.027470054104924202,
0.0016294015804305673,
-0.0073760454542934895,
0.04023467004299164,
0.00833712425082922,
-0.001868504798039794,
0.03066120855510235,
-0.013585733249783516,
0.04127972573041916,
-0.05240211263298988,
0.018848339095711708,
0.03862976282835007,
-0.02030395343899727,
0.059306949377059937,
0.08032004535198212,
-0.013455101288855076,
-0.036576975136995316,
0.025809161365032196,
-0.0017378728371113539,
0.04258604720234871,
0.09517478197813034,
-0.008868983015418053,
-0.008453759364783764,
0.031090427190065384,
0.02321518212556839,
0.029690798372030258,
-0.022300757467746735,
-0.03528931364417076,
0.019949380308389664,
-0.06830190122127533,
-0.054118990898132324,
-0.007977886125445366,
-0.013660379685461521,
0.017737966030836105,
0.053447168320417404,
-0.09129314124584198,
0.006741547025740147,
0.0067648738622665405,
-0.024092283099889755,
0.02250603586435318,
-0.018456442281603813,
0.04325786978006363,
0.008663703687489033,
0.0014987695030868053,
0.028048567473888397,
0.030567899346351624,
0.023756371811032295,
-0.04127972573041916,
0.0038139892276376486,
0.0628153532743454,
-0.00498267961665988,
-0.014761421829462051,
0.007049465086311102,
0.03778998553752899,
-0.0025986446999013424,
-0.06695825606584549,
0.011448966339230537,
0.07755811512470245,
-0.02269265241920948,
0.032322101294994354,
0.016086403280496597,
-0.008612384088337421,
-0.018101869150996208,
-0.02187153697013855,
-0.014313540421426296,
0.09129314124584198,
-0.006433628499507904,
0.018969640135765076,
0.03118373639881611,
-0.04116775840520859,
0.031762249767780304
] |
9,956
|
sentence_transformers.readers.InputExample
|
__init__
|
Creates one InputExample with the given texts, guid and label
:param guid
id for the example
:param texts
the texts for the example.
:param label
the label for the example
|
def __init__(self, guid: str = "", texts: List[str] = None, label: Union[int, float] = 0):
"""
Creates one InputExample with the given texts, guid and label
:param guid
id for the example
:param texts
the texts for the example.
:param label
the label for the example
"""
self.guid = guid
self.texts = texts
self.label = label
|
(self, guid: str = '', texts: Optional[List[str]] = None, label: Union[int, float] = 0)
|
[
0.019510876387357712,
-0.02572133019566536,
-0.0011336096795275807,
-0.05603767931461334,
-0.023926401510834694,
0.012492704205214977,
-0.025218749418854713,
0.035790879279375076,
0.053022198379039764,
0.0047700232826173306,
-0.011191381141543388,
0.060668595135211945,
-0.023423820734024048,
0.004117118194699287,
-0.010554181411862373,
0.041103869676589966,
-0.004653352778404951,
0.015059452503919601,
-0.011002914048731327,
-0.016001790761947632,
-0.008063717745244503,
0.03489341586828232,
-0.00668611004948616,
0.10927526652812958,
0.05485302582383156,
0.020336544141173363,
0.013874799944460392,
-0.03552164137363434,
-0.003060353687033057,
-0.024787966161966324,
0.018810853362083435,
-0.04017050564289093,
-0.04415524750947952,
0.053452979773283005,
-0.03379850834608078,
-0.03586267679929733,
-0.049216948449611664,
0.0556068941950798,
-0.09276191890239716,
0.023028936237096786,
0.04928874596953392,
-0.011550366878509521,
0.013515814207494259,
0.0030648410320281982,
-0.015571007505059242,
0.04530400410294533,
0.009620818309485912,
-0.034929316490888596,
-0.06494052708148956,
-0.024805916473269463,
0.023100733757019043,
0.024608474224805832,
-0.01041956152766943,
0.012878614477813244,
-0.09398247301578522,
0.04275520518422127,
0.023495618253946304,
0.07438185065984726,
0.002169620245695114,
0.056396663188934326,
-0.026062365621328354,
0.06063269451260567,
0.04164234921336174,
0.00717971520498395,
-0.022867392748594284,
0.03934483975172043,
-0.02340587228536606,
0.0057482593692839146,
-0.0052142683416605,
0.01689925417304039,
0.032793350517749786,
-0.014000444673001766,
-0.005941214505583048,
0.04605787247419357,
0.06167375296354294,
-0.012411932460963726,
-0.044909119606018066,
0.041714146733284,
0.020103203132748604,
0.012420907616615295,
-0.005757234059274197,
0.0425398126244545,
-0.044909119606018066,
-0.007040608208626509,
0.011083685792982578,
-0.02634955570101738,
0.0007544310064986348,
-0.01696207746863365,
0.03299079090356827,
0.005479020066559315,
-0.06461744010448456,
0.011173431761562824,
-0.04063718765974045,
0.04185774177312851,
0.0015032528899610043,
-0.041534651070833206,
0.03383440896868706,
-0.08034101128578186,
0.004608479794114828,
0.05485302582383156,
0.007031633518636227,
-0.03711912781000137,
0.020892972126603127,
-0.0015492478851228952,
-0.016163334250450134,
-0.05618127062916756,
-0.021180160343647003,
-0.019708318635821342,
0.031321506947278976,
0.008934258483350277,
0.009423376061022282,
0.016208207234740257,
-0.002072020899504423,
0.0569351427257061,
-0.01974421739578247,
-0.018595462664961815,
0.01997755840420723,
0.0093515794724226,
0.005281578283756971,
-0.0650482177734375,
0.018810853362083435,
0.02744446136057377,
-0.10618799179792404,
0.03168049454689026,
0.07452544569969177,
0.009908007457852364,
-0.002273950492963195,
-0.028108585625886917,
-0.001396678970195353,
-0.05370426923036575,
0.061709653586149216,
-0.030226601287722588,
-0.01676463522017002,
0.01390172354876995,
0.007202151697129011,
-0.009486198425292969,
0.027480360120534897,
0.01531971711665392,
-0.011056761257350445,
0.05050929635763168,
0.023459719493985176,
0.03168049454689026,
0.05226832628250122,
0.016280004754662514,
-0.041714146733284,
0.004801434464752674,
-0.02658289670944214,
-0.03017275407910347,
-0.015624855645000935,
0.014844061806797981,
-0.01103881187736988,
-0.006340586114674807,
-0.03476777300238609,
0.022436609491705894,
-0.009149650111794472,
-0.03801659122109413,
0.011918327771127224,
-0.08120258152484894,
0.051334965974092484,
0.01509535126388073,
0.04307829216122627,
-0.012591425329446793,
0.09778772294521332,
0.03765760734677315,
-0.02701367810368538,
0.06095578148961067,
-0.016845406964421272,
-0.01424275990575552,
-0.013426067307591438,
0.03584472835063934,
-0.020121151581406593,
-0.06892526894807816,
-0.024518728256225586,
-0.0025084130465984344,
0.0021157723385840654,
-0.007031633518636227,
0.021951979026198387,
0.05883776769042015,
0.017006950452923775,
-0.03460622951388359,
-0.0021101632155478,
0.030118905007839203,
-0.02552388794720173,
-0.004036345984786749,
0.049647729843854904,
0.004052051808685064,
-0.015615880489349365,
0.07833069562911987,
0.012241414748132229,
-0.03546779230237007,
0.02529054693877697,
-0.007471390999853611,
-0.01742875948548317,
0.04250391572713852,
-0.017383886501193047,
0.006937399972230196,
-0.0043190475553274155,
-0.05043749883770943,
-0.03887815773487091,
0.03478572145104408,
0.03869866579771042,
0.01760825142264366,
0.035629335790872574,
-0.02679828740656376,
0.008315008133649826,
0.03670629486441612,
-0.0047520739026367664,
0.033439524471759796,
-0.07294590771198273,
-0.07897686958312988,
0.016845406964421272,
-0.0412115640938282,
-0.0057482593692839146,
0.045375801622867584,
0.03966792672872543,
-0.02184428460896015,
-0.019654471427202225,
-0.028808606788516045,
-0.016656938940286636,
-0.012061921879649162,
0.08170516043901443,
0.01486201025545597,
-0.007157278712838888,
-0.022993037477135658,
0.053022198379039764,
0.005456583574414253,
0.03291899338364601,
-0.0004742538440041244,
-0.03080097772181034,
-0.011056761257350445,
0.02654699794948101,
-0.047098930925130844,
0.008256672881543636,
0.0006994613213464618,
-0.0493246428668499,
0.004796947352588177,
0.010266993194818497,
-0.03478572145104408,
-0.03844737634062767,
-0.03851917386054993,
0.02184428460896015,
0.037944793701171875,
0.0159748662263155,
-0.02213147282600403,
0.036437053233385086,
0.04106797277927399,
-0.013219650834798813,
0.004018397070467472,
-0.040924377739429474,
-0.07294590771198273,
0.001337221940048039,
0.023208430036902428,
0.007875250652432442,
0.014161988161504269,
0.028934253379702568,
0.016890279948711395,
0.024141792207956314,
-0.06178145110607147,
0.026708541437983513,
-0.017715947702527046,
-0.06264301389455795,
-0.02654699794948101,
0.0022918996401131153,
0.11114199459552765,
-0.0018757006619125605,
0.002418666612356901,
-0.005909803323447704,
0.043006494641304016,
-0.012223465368151665,
-0.04541169852018356,
0.07739733159542084,
0.07093558460474014,
0.027731649577617645,
-0.038375578820705414,
0.0013495620805770159,
-0.02717522159218788,
0.022041724994778633,
-0.040098708122968674,
-0.027121374383568764,
0.02378280647099018,
0.05671975016593933,
-0.02782139740884304,
0.03352927044034004,
0.00488669378682971,
0.07247922569513321,
-0.014826112426817417,
0.014269684441387653,
0.02658289670944214,
-0.04544759914278984,
-0.045124512165784836,
0.0013002015184611082,
0.06569439172744751,
0.030459942296147346,
-0.02123400755226612,
-0.015194072388112545,
0.02527259849011898,
-0.019062144681811333,
0.014368405565619469,
-0.02292124181985855,
-0.02801883965730667,
-0.014942781999707222,
-0.03586267679929733,
0.05391966179013252,
-0.01777876913547516,
-0.08795151114463806,
-0.03501906245946884,
-0.013785053044557571,
-0.02189813181757927,
0.013363244943320751,
-0.029706072062253952,
0.027516258880496025,
0.09247473627328873,
0.03464212641119957,
0.051119573414325714,
-0.06558670103549957,
0.060848087072372437,
0.05295040085911751,
-0.020498087629675865,
0.012932462617754936,
0.018263401463627815,
-0.009916981682181358,
-0.037514012306928635,
0.00658290134742856,
-0.032416414469480515,
-0.0019015027210116386,
-0.0163877010345459,
0.014368405565619469,
-0.03185998648405075,
0.009167598560452461,
0.013408117927610874,
0.0007516264449805021,
-0.021395551040768623,
0.028395773842930794,
-0.03966792672872543,
-0.038555070757865906,
-0.0039757671765983105,
-0.008736816234886646,
-0.015346641652286053,
-0.0017915633507072926,
-0.041103869676589966,
0.013946596533060074,
-0.06450974196195602,
-0.054960720241069794,
0.05636076629161835,
0.03801659122109413,
-0.01934933289885521,
0.04447833448648453,
-0.040098708122968674,
0.05862237513065338,
-0.007637422066181898,
0.017123620957136154,
0.027785498648881912,
0.03352927044034004,
0.007623960264027119,
0.10073140263557434,
-0.0011768002295866609,
-0.018433919176459312,
0.003190485993400216,
-0.0044738599099218845,
-0.019869862124323845,
0.018317248672246933,
-0.07545880973339081,
0.027139324694871902,
-0.015283819288015366,
-0.06127886846661568,
-0.016612065955996513,
0.05054519698023796,
0.006053397431969643,
0.002333407523110509,
0.049647729843854904,
-0.02595467120409012,
-0.029275288805365562,
-0.06652006506919861,
0.010787522420287132,
0.02489566244184971,
-0.03403184935450554,
-0.05072468891739845,
0.0004279783461242914,
-0.05718643218278885,
-0.01852366514503956,
-0.05625306814908981,
-0.01170293614268303,
0.01974421739578247,
0.03701143339276314,
-0.045986074954271317,
-0.007785503752529621,
0.02037244290113449,
0.05564279481768608,
0.025111055001616478,
0.026888033375144005,
0.028772709891200066,
-0.007614985574036837,
0.014790213666856289,
-0.05391966179013252,
-0.019618572667241096,
-0.03597037494182587,
0.011532417498528957,
0.019241636618971825,
-0.023262277245521545,
-0.021395551040768623,
-0.0042337882332503796,
-0.04688354209065437,
-0.021790435537695885,
0.028000889346003532,
-0.01243885699659586,
0.042396217584609985,
0.009270807728171349,
-0.015651779249310493,
-0.0011756783351302147,
-0.0005508188041858375,
-0.0041709658689796925,
-0.023531517013907433,
-0.001463988795876503,
-0.02762395516037941,
-0.015131250023841858,
0.023244328796863556,
-0.03146510198712349,
-0.011227279901504517,
-0.07402286678552628,
-0.020731428638100624,
-0.005061699077486992,
0.030926624312996864,
0.03614986687898636,
0.057294126600027084,
0.05625306814908981,
0.026205960661172867,
-0.009199010208249092,
0.0004742538440041244,
0.06691494584083557,
-0.015588956885039806,
-0.0921875461935997,
0.04289880022406578,
-0.054063256829977036,
-0.027498310431838036,
0.01062597893178463,
-0.013946596533060074,
-0.03467802330851555,
-0.05926854908466339,
0.011011888273060322,
0.010491359047591686,
0.009504147805273533,
-0.047063034027814865,
0.07653576135635376,
0.03083687648177147,
-0.05144266039133072,
-0.01974421739578247,
-0.04735022410750389,
0.04056539013981819,
0.020982718095183372,
-0.046668149530887604,
0.04943234100937843,
0.03826788067817688,
0.06831499189138412,
0.007731656078249216,
0.04192953556776047,
-0.11142918467521667,
-0.019008295610547066,
-0.020013457164168358,
0.0028831043746322393,
-0.03146510198712349,
-0.022382762283086777,
0.0019474977161735296,
0.010949065908789635,
-0.019923709332942963,
-0.007525239139795303,
0.0278034470975399,
0.05212473124265671,
-0.02678033709526062,
-0.025326445698738098,
0.021126313135027885,
-0.006681622471660376,
0.03230872005224228,
0.025757228955626488,
0.0034754308871924877,
0.022005828097462654,
-0.027085475623607635,
0.025757228955626488,
-0.038985852152109146,
-0.07158175855875015,
-0.022005828097462654,
0.05901725962758064,
-0.04853487387299538,
0.033457472920417786,
0.0731612965464592,
-0.04192953556776047,
-0.0042337882332503796,
-0.018164679408073425,
-0.04975542798638344,
0.008534886874258518,
-0.015849221497774124,
-0.05481712520122528,
0.03254206106066704,
0.01837109588086605,
-0.05187344178557396,
-0.0047700232826173306,
-0.01741080917418003,
0.025577735155820847,
0.026439301669597626,
-0.015023554675281048,
-0.008961182087659836,
0.02468027174472809,
0.01444020215421915,
-0.02249045856297016,
-0.06476103514432907,
0.06479693204164505,
-0.02487771399319172,
-0.018299300223588943,
-0.009638767689466476,
-0.02828807756304741,
0.00018412043573334813,
-0.0390576496720314,
-0.008521424606442451,
0.029867615550756454,
0.0244110319763422,
0.04178594425320625,
0.004743099212646484,
-0.04677584394812584,
0.023728959262371063,
-0.014574822038412094,
0.021341703832149506,
0.014745340682566166,
0.06551489979028702,
-0.018164679408073425,
-0.07373567670583725,
0.013560687191784382,
0.005873904563486576,
-0.04056539013981819,
-0.0561094731092453,
0.04997081682085991,
0.07107917964458466,
-0.00595018919557333,
-0.056827448308467865,
-0.012250388972461224,
0.02846757136285305,
-0.052196528762578964,
0.022831493988633156,
0.024967459961771965,
0.014278658665716648,
0.001164460089057684,
0.023495618253946304,
-0.0056944116950035095,
0.03589857742190361,
0.0051963189616799355,
-0.03403184935450554,
0.08091539144515991,
0.006398921366780996,
-0.0020024674013257027,
0.03632935881614685,
-0.005146958399564028,
0.011711910367012024,
0.0018252182053402066,
-0.07409466058015823,
-0.058945462107658386,
-0.00023628554481547326,
-0.01158626563847065,
0.03354721888899803,
-0.023064834997057915,
-0.014628670178353786,
0.038985852152109146,
0.037944793701171875,
-0.0033183747436851263,
0.007664346136152744,
-0.0047520739026367664,
-0.015929993242025375,
0.008252184838056564,
0.0314471535384655,
-0.00530850188806653,
-0.0655508041381836,
-0.022849444299936295,
-0.014808163046836853,
0.00530850188806653,
-0.019923709332942963,
0.06052500009536743,
0.0536324717104435,
-0.04781690239906311,
0.007211126387119293,
-0.0003629121638368815,
0.014601745642721653,
-0.013695307075977325,
-0.05036570131778717,
-0.04056539013981819,
0.05571459233760834,
-0.03168049454689026,
-0.06415075808763504,
0.07111507654190063,
0.0007404081407003105,
0.0076912702061235905,
-0.017374910414218903,
-0.03448058292269707,
0.008297058753669262,
0.01297733560204506,
0.018828803673386574,
-0.023872552439570427,
0.08306930214166641,
0.025021307170391083,
-0.006425844971090555,
0.011792682111263275,
-0.08213594555854797,
0.009531072340905666,
-0.025595685467123985,
-0.04160644859075546,
0.07926405966281891,
-0.06267891079187393,
0.03683193773031235,
0.057258229702711105,
-0.006179042626172304,
-0.02525464817881584,
-0.061925046145915985,
-0.015615880489349365,
-0.01082342118024826,
0.05564279481768608,
0.011002914048731327,
-0.01752747967839241,
-0.02697777934372425,
0.014853036031126976,
-0.03711912781000137,
-0.010374688543379307,
0.027785498648881912,
0.07438185065984726,
-0.020551934838294983,
0.031536899507045746,
-0.013067081570625305,
-0.012358085252344608,
0.01329144835472107,
-0.05837108567357063,
-0.030352246016263962,
-0.027103425934910774,
-0.048139989376068115,
-0.01664796471595764,
-0.01572357676923275,
0.07545880973339081,
-0.03546779230237007,
0.012941436842083931,
-0.03329592943191528,
0.045375801622867584,
0.010222119279205799,
0.023334074765443802,
-0.042180828750133514,
0.026044417172670364,
0.04943234100937843,
-0.09549020975828171,
-0.006564951967447996,
-0.0098900580778718,
0.027282917872071266,
-0.0003034551627933979,
-0.025667482987046242,
-0.04950413852930069,
-0.05819159373641014,
0.010293916799128056,
-0.009190035983920097,
-0.020318593829870224,
0.07983843237161636,
-0.006210453808307648,
0.01339016854763031,
0.013102980330586433,
0.009872108697891235,
-0.052591413259506226,
0.018344173207879066,
0.009836209937930107,
-0.014772264286875725,
-0.04476552456617355,
0.03256000950932503,
0.0734843835234642,
0.015382540412247181,
-0.021610943600535393,
-0.000419845076976344,
0.007251512259244919,
-0.04659635201096535,
-0.0009243883541785181,
0.0345882773399353,
-0.051765747368335724,
0.027318816632032394,
0.023262277245521545,
0.005851468071341515,
0.013336321339011192,
-0.010464435443282127,
0.02654699794948101,
-0.0014348211698234081,
0.03577293083071709,
-0.021754536777734756,
0.01741080917418003,
-0.014503024518489838,
0.002148305531591177,
-0.06856627762317657,
-0.03214717656373978,
0.0027754087932407856,
-0.017006950452923775,
0.014099165797233582,
0.039416637271642685,
-0.04695533961057663,
-0.047457918524742126,
0.00840924121439457,
0.016262054443359375,
-0.028808606788516045,
-0.0006315906066447496,
-0.040493592619895935,
-0.0337626114487648,
-0.055750489234924316,
-0.00712137995287776,
0.004913617856800556,
0.022005828097462654,
0.01475431490689516,
-0.04376036301255226,
0.030100956559181213,
-0.02503925748169422,
0.018577514216303825,
-0.06185324862599373,
0.017895439639687538,
0.007776529062539339,
-0.03604217246174812,
0.044514235109090805,
0.06336098909378052,
-0.007888711988925934,
-0.02954452857375145,
0.024913612753152847,
0.014691492542624474,
0.06443794816732407,
0.0718330517411232,
-0.03528830036520958,
-0.04318598657846451,
0.04246801510453224,
0.009216959588229656,
0.03062148578464985,
-0.012950411066412926,
-0.003838903969153762,
-0.01890060119330883,
-0.06903295964002609,
-0.04031410068273544,
-0.0009771144250407815,
-0.021772487089037895,
0.03139330446720123,
0.0395602323114872,
-0.07574599981307983,
-0.018954448401927948,
-0.016854381188750267,
-0.031142015010118484,
0.05295040085911751,
-0.007942560128867626,
0.03476777300238609,
0.00005051743210060522,
-0.010563156567513943,
0.007767554372549057,
0.028557317331433296,
0.030352246016263962,
-0.04968363046646118,
0.010949065908789635,
0.05104777589440346,
-0.02886245585978031,
0.00473412498831749,
-0.001231769914738834,
0.029580427333712578,
0.009243883192539215,
-0.051765747368335724,
0.03948843479156494,
0.06221223250031471,
-0.03991921618580818,
0.03062148578464985,
0.01827237568795681,
-0.006771368905901909,
-0.005873904563486576,
-0.04149875417351723,
-0.014503024518489838,
0.09986983984708786,
-0.017967237159609795,
0.01074264943599701,
0.026672642678022385,
-0.021503247320652008,
0.029795818030834198
] |
9,957
|
sentence_transformers.readers.InputExample
|
__str__
| null |
def __str__(self):
return "<InputExample> label: {}, texts: {}".format(str(self.label), "; ".join(self.texts))
|
(self)
|
[
0.011490554548799992,
-0.034364938735961914,
0.051298387348651886,
-0.027819236740469933,
-0.01707574725151062,
-0.028441790491342545,
-0.0018009576015174389,
-0.010939150117337704,
0.10515813529491425,
-0.021202385425567627,
-0.012193149887025356,
-0.002345691667869687,
-0.00466470280662179,
0.03317319601774216,
0.014043022878468037,
0.01639983057975769,
-0.009907490573823452,
-0.09128409624099731,
0.005923149641603231,
0.010147618129849434,
-0.02241191640496254,
0.02950902469456196,
0.024048343300819397,
0.006118809338659048,
0.03464953601360321,
0.02426178939640522,
-0.02056204527616501,
-0.06303796172142029,
-0.020828852429986,
-0.0028237237129360437,
-0.03520093858242035,
-0.06944137066602707,
-0.012735661119222641,
-0.0220028106123209,
-0.02123796008527279,
-0.009925277903676033,
-0.06357157975435257,
0.031198812648653984,
-0.004442362114787102,
-0.014692257158458233,
0.037210896611213684,
-0.03870502486824989,
-0.024973278865218163,
-0.023657023906707764,
-0.02467089705169201,
0.011855192482471466,
0.015608299523591995,
0.039060771465301514,
-0.02308783307671547,
-0.07399490475654602,
0.04581991955637932,
0.05407319590449333,
-0.05158298462629318,
0.017057958990335464,
-0.09057260304689407,
-0.021842725574970245,
0.0390251949429512,
0.028530726209282875,
0.036214813590049744,
0.049412939697504044,
-0.022696513682603836,
0.04802553728222847,
0.04646025970578194,
0.007350575178861618,
-0.012842384167015553,
0.00896476674824953,
-0.013162554241716862,
0.029669109731912613,
0.029704684391617775,
0.009960852563381195,
0.03799353539943695,
-0.0560297928750515,
-0.03126996010541916,
0.020117362961173058,
-0.00272144703194499,
-0.03614366427063942,
-0.04503728076815605,
0.009889703243970871,
0.017280299216508865,
-0.0548558346927166,
0.0034529471304267645,
0.024155065417289734,
-0.018605448305606842,
-0.03713974729180336,
0.022376343607902527,
-0.07470639050006866,
-0.030878640711307526,
-0.0183386392891407,
-0.009320511482656002,
0.023728173226118088,
-0.018818896263837814,
0.01009425614029169,
-0.028317280113697052,
0.0674847736954689,
-0.06563489884138107,
-0.024546384811401367,
0.01020987331867218,
-0.09391660243272781,
0.017467064782977104,
0.047100599855184555,
0.02041974663734436,
0.0008838032954372466,
-0.03089642897248268,
0.011312682181596756,
-0.03279966115951538,
-0.05136953666806221,
-0.02968689613044262,
0.00862680934369564,
0.03166127949953079,
0.019726045429706573,
0.010307703167200089,
-0.002879308769479394,
0.03223047032952309,
-0.008560107089579105,
0.02511557750403881,
-0.03162570670247078,
-0.02502664178609848,
0.020793279632925987,
0.032817449420690536,
-0.06172170862555504,
0.030558470636606216,
0.00466470280662179,
-0.08701515942811966,
-0.006861426401883364,
-0.007919766940176487,
0.0683741346001625,
-0.009044809266924858,
-0.01201527751982212,
0.027481280267238617,
-0.11241532862186432,
0.035574473440647125,
-0.016835618764162064,
-0.02593378908932209,
0.014532172121107578,
0.07876188308000565,
0.007777468767017126,
0.05183200538158417,
0.014123065397143364,
0.023141194134950638,
0.12209158390760422,
0.03962996229529381,
-0.007586256135255098,
0.040910642594099045,
0.038562726229429245,
-0.024315152317285538,
-0.038384854793548584,
0.010396639816462994,
0.062184177339076996,
0.01237991638481617,
-0.044290218502283096,
0.00035657850094139576,
0.031092088669538498,
-0.025506896898150444,
-0.019316937774419785,
0.012673405930399895,
0.032692939043045044,
0.0048781493678689,
-0.05439336597919464,
0.059338219463825226,
-0.013046937063336372,
0.01563498005270958,
-0.04706502705812454,
0.037424344569444656,
0.05524715408682823,
0.01572391577064991,
0.08858043700456619,
-0.00449350057169795,
0.008182128891348839,
0.000942167651373893,
0.030433960258960724,
-0.0016853406559675932,
-0.07741004973649979,
-0.033866897225379944,
0.02845957688987255,
-0.005687468685209751,
0.02411949262022972,
-0.002427957719191909,
0.112059585750103,
-0.0021878299303352833,
-0.030238300561904907,
-0.01531480997800827,
0.022073959931731224,
-0.042084600776433945,
-0.025684768334031105,
0.08210588246583939,
-0.04823898524045944,
0.010396639816462994,
0.042582642287015915,
0.011010299436748028,
-0.04991098493337631,
0.033493366092443466,
-0.021202385425567627,
-0.0359480045735836,
0.032692939043045044,
-0.049946557730436325,
-0.018107406795024872,
0.001153946970589459,
-0.0809675008058548,
0.00932940561324358,
0.0059187025763094425,
-0.012424384243786335,
0.03827813267707825,
0.012557788752019405,
0.0027503513265401125,
0.009471703320741653,
0.023657023906707764,
0.01883668266236782,
0.0000447807542514056,
-0.061970729380846024,
-0.060476601123809814,
0.04030587524175644,
0.007532894611358643,
-0.000911039998754859,
-0.005362851545214653,
0.06616851687431335,
-0.01865881122648716,
-0.009067043662071228,
-0.0028370642103254795,
-0.08409804850816727,
0.009516171179711819,
0.05051574856042862,
0.004798106849193573,
0.03379574790596962,
-0.042084600776433945,
0.007292766589671373,
-0.005736383609473705,
0.03731762245297432,
-0.01100140530616045,
-0.02625396102666855,
-0.011463873088359833,
0.04653140902519226,
-0.05240119621157646,
-0.00862680934369564,
0.03217710927128792,
-0.049092769622802734,
0.06282451748847961,
-0.014647788368165493,
-0.05777294188737869,
-0.021700426936149597,
-0.0009910825174301863,
-0.0007837500888854265,
0.0357879176735878,
-0.011277107521891594,
-0.07139796763658524,
0.04528630152344704,
-0.013126980513334274,
0.028246130794286728,
0.02241191640496254,
-0.03468510881066322,
-0.03948766365647316,
0.05033787712454796,
0.010441107675433159,
-0.029082130640745163,
0.003419596003368497,
0.020135151222348213,
-0.02511557750403881,
0.040554895997047424,
-0.02842400223016739,
0.03582349419593811,
-0.009053703397512436,
-0.040056854486465454,
0.013776213862001896,
-0.03649940714240074,
0.06179285794496536,
0.02995370514690876,
0.02235855534672737,
-0.033457789570093155,
0.025987152010202408,
0.009836341254413128,
-0.038384854793548584,
0.11504784226417542,
0.06076119840145111,
-0.05610094219446182,
-0.005914255976676941,
-0.002934893826022744,
-0.019405873492360115,
0.01942366175353527,
0.005674128420650959,
-0.050302304327487946,
-0.035485535860061646,
0.017057958990335464,
-0.04169328138232231,
-0.008555660024285316,
-0.009818553924560547,
0.03962996229529381,
-0.037388768047094345,
0.04571319743990898,
0.019210215657949448,
0.01901455596089363,
-0.005318383686244488,
0.05265021696686745,
0.056776855140924454,
0.007901979610323906,
-0.01612412929534912,
-0.008942533284425735,
-0.0261116623878479,
0.05432221665978432,
0.007292766589671373,
-0.043436430394649506,
-0.01901455596089363,
-0.023692598566412926,
-0.01009425614029169,
0.016888979822397232,
-0.019939491525292397,
-0.06527915596961975,
-0.05183200538158417,
-0.005816426128149033,
-0.006052107084542513,
0.032639577984809875,
-0.049092769622802734,
0.005042681470513344,
0.04361430183053017,
0.03493412956595421,
0.020348597317934036,
-0.04251149296760559,
0.05844885855913162,
0.02267872542142868,
0.0028859791345894337,
0.03279966115951538,
0.03537881374359131,
-0.013518298976123333,
-0.03402698412537575,
-0.05706145241856575,
-0.00391986221075058,
-0.003430713200941682,
-0.03635710850358009,
0.0077730221673846245,
0.01450549066066742,
0.015537150204181671,
-0.0016419842140749097,
0.033048685640096664,
-0.05168970674276352,
0.021629279479384422,
-0.016364257782697678,
-0.004847021773457527,
0.008306639268994331,
0.0206865556538105,
0.0019855001010000706,
-0.04549974948167801,
-0.02854851447045803,
0.035218726843595505,
-0.021380256861448288,
-0.05126281455159187,
0.03532544896006584,
-0.008862489834427834,
0.025987152010202408,
-0.011428299359977245,
0.022838810458779335,
0.058840177953243256,
0.02579149231314659,
0.002534680999815464,
0.013909618370234966,
0.04919949546456337,
-0.001405191607773304,
0.06001413241028786,
0.0012084203772246838,
-0.005180532578378916,
0.029829194769263268,
-0.008484511636197567,
-0.0014630001969635487,
0.03646383434534073,
-0.056776855140924454,
0.027730301022529602,
0.03795796260237694,
-0.04720732569694519,
-0.0037041918840259314,
0.030291663482785225,
0.023016683757305145,
0.0460689403116703,
0.04930621758103371,
-0.02511557750403881,
0.0018543193582445383,
-0.032692939043045044,
-0.025008853524923325,
-0.012797916308045387,
0.0645320937037468,
-0.023194555193185806,
-0.004366766195744276,
-0.026947662234306335,
-0.08922077715396881,
-0.005865341052412987,
0.010965830646455288,
-0.007666298653930426,
0.050124429166316986,
-0.006599064450711012,
0.014674469828605652,
0.018641022965312004,
0.025400172919034958,
0.03244391828775406,
0.014630001969635487,
0.02435072511434555,
0.006456766743212938,
-0.005887574981898069,
-0.06097464635968208,
-0.044788260012865067,
-0.06759149581193924,
0.006447873078286648,
-0.003908745013177395,
-0.02543574757874012,
-0.013002469204366207,
-0.006567936856299639,
-0.01753821410238743,
-0.05243677273392677,
0.013224809430539608,
-0.018907831981778145,
0.04180000349879265,
0.006012085825204849,
-0.017947321757674217,
-0.020579831674695015,
0.002359032165259123,
-0.02056204527616501,
-0.018054043874144554,
-0.010805745609104633,
-0.03180357813835144,
0.02660970576107502,
0.022518640384078026,
-0.08075404912233353,
0.0004646915476769209,
-0.05891132354736328,
0.01384736318141222,
-0.08224818110466003,
0.05421549454331398,
0.04332970827817917,
0.057666219770908356,
0.015119150280952454,
0.028032684698700905,
-0.039416514337062836,
0.02872638590633869,
0.09747405350208282,
0.008315532468259335,
-0.05332613363862038,
0.003079415298998356,
-0.035574473440647125,
-0.008800234645605087,
-0.004718064330518246,
-0.06286009401082993,
-0.008306639268994331,
-0.05777294188737869,
0.010254341177642345,
0.01974383182823658,
0.0369618758559227,
-0.05240119621157646,
0.05702587962150574,
0.0618995800614357,
-0.023692598566412926,
-0.005602979101240635,
-0.06460323929786682,
-0.004280053544789553,
0.0068214051425457,
0.0028948725666850805,
0.0381358340382576,
0.0404837504029274,
0.019619321450591087,
-0.010645660571753979,
0.05336170643568039,
-0.05435779318213463,
0.02250085398554802,
-0.08616136759519577,
-0.009925277903676033,
-0.014283150434494019,
-0.02886868454515934,
0.04653140902519226,
-0.0028170535806566477,
0.04379217326641083,
0.017831703647971153,
-0.05585192143917084,
0.04514400288462639,
0.01599072478711605,
-0.06531473249197006,
0.010983617976307869,
0.02484876848757267,
-0.018854470923542976,
-0.023123405873775482,
0.009142639115452766,
0.005852000787854195,
0.03585906699299812,
-0.0021622609347105026,
-0.0035596706438809633,
-0.04133753478527069,
-0.034222640097141266,
-0.011837405152618885,
-0.0859479233622551,
-0.03054068423807621,
0.04069719463586807,
-0.03593021631240845,
0.023745959624648094,
0.004457925911992788,
0.0007403937052004039,
-0.004589106887578964,
-0.0029815854504704475,
-0.001367393764667213,
0.04368545114994049,
-0.01784949190914631,
-0.044610388576984406,
-0.025969363749027252,
-0.009925277903676033,
0.01213089469820261,
-0.003459617495536804,
-0.0680539682507515,
0.03834928199648857,
0.007915319874882698,
0.015048001892864704,
-0.00792866013944149,
-0.0278725977987051,
0.057630643248558044,
0.010939150117337704,
0.044432513415813446,
0.011517235077917576,
-0.018267491832375526,
-0.000589202216360718,
-0.01770719327032566,
-0.0739237517118454,
0.05371745303273201,
0.007848617620766163,
0.01897898130118847,
-0.062184177339076996,
-0.006883660331368446,
0.07911762595176697,
-0.01663106493651867,
0.032817449420690536,
-0.005696362350136042,
0.014380980283021927,
-0.08936307579278946,
-0.047456346452236176,
-0.004451255779713392,
0.05503370612859726,
-0.029348939657211304,
-0.009027021937072277,
-0.04098179191350937,
0.09199558198451996,
0.005251681432127953,
-0.035538896918296814,
0.02764136530458927,
0.009347192011773586,
-0.04969753697514534,
0.05969396233558655,
-0.028939832001924515,
0.02326570451259613,
0.005411766469478607,
0.0501600056886673,
0.014807874336838722,
-0.026360683143138885,
-0.009471703320741653,
-0.060476601123809814,
0.0657060518860817,
0.014363192953169346,
0.03317319601774216,
0.001987723633646965,
0.03180357813835144,
0.0069503625854849815,
-0.013313746079802513,
-0.046424686908721924,
-0.04080392047762871,
-0.018534298986196518,
0.0009193777805194259,
0.026485193520784378,
-0.03071855567395687,
0.03799353539943695,
0.04418349266052246,
0.050302304327487946,
-0.017467064782977104,
-0.0048425751738250256,
0.03148340806365013,
-0.012700086459517479,
0.026823151856660843,
0.07719660550355911,
-0.03370681032538414,
-0.02637847140431404,
-0.040056854486465454,
-0.031092088669538498,
0.037566643208265305,
-0.043116260319948196,
0.05293481424450874,
0.014345405623316765,
-0.05521158128976822,
0.0393097922205925,
0.04051932319998741,
0.03916749358177185,
-0.019032342359423637,
0.0183386392891407,
-0.06730689853429794,
0.06257549673318863,
0.0074617452919483185,
-0.03342221677303314,
0.04204902425408363,
-0.0015919576399028301,
-0.011668426916003227,
-0.019726045429706573,
-0.038740601390600204,
-0.004557979293167591,
-0.06008528172969818,
-0.002628064015880227,
-0.012682299129664898,
0.03642825782299042,
0.06887217611074448,
-0.04115966334939003,
0.014478810131549835,
-0.03710417449474335,
0.01729808747768402,
0.00847561750560999,
0.0033284365199506283,
0.014941277913749218,
-0.010289915837347507,
0.04421906918287277,
0.04756306856870651,
0.001784282154403627,
0.021522555500268936,
-0.02417285367846489,
-0.035254303365945816,
0.04354315251111984,
0.024991067126393318,
0.007968681864440441,
-0.03735319525003433,
-0.029882555827498436,
-0.05688358098268509,
-0.0202418752014637,
0.02173600159585476,
0.005754170939326286,
0.022251831367611885,
-0.013776213862001896,
0.054642390459775925,
0.029437875375151634,
-0.09626451879739761,
0.01753821410238743,
-0.05318383499979973,
-0.003744213143363595,
-0.025969363749027252,
-0.024688683450222015,
0.021789364516735077,
-0.0395943857729435,
0.04286723956465721,
-0.00921378843486309,
0.01979719288647175,
-0.04147983342409134,
-0.022660939022898674,
0.02091779001057148,
0.01721804402768612,
0.0017442607786506414,
-0.033368855714797974,
-0.0042133512906730175,
-0.04567762091755867,
-0.01960153318941593,
-0.050124429166316986,
0.024919917806982994,
-0.012842384167015553,
-0.00020691557438112795,
-0.05560290068387985,
-0.07349685579538345,
-0.02660970576107502,
-0.033457789570093155,
-0.040234725922346115,
0.017644938081502914,
-0.021896086633205414,
0.023977193981409073,
0.029028769582509995,
0.0049448516219854355,
-0.02282102406024933,
0.042618218809366226,
-0.036214813590049744,
-0.01305583119392395,
-0.033137619495391846,
0.005038234405219555,
0.04421906918287277,
-0.04126638546586037,
0.010832427069544792,
0.005967617500573397,
0.016097448766231537,
0.01120595820248127,
0.019939491525292397,
-0.022625364363193512,
-0.027214471250772476,
0.009685150347650051,
-0.009525064378976822,
-0.02588042803108692,
0.005887574981898069,
-0.018872257322072983,
0.039914555847644806,
-0.013153661042451859,
0.01201527751982212,
-0.05336170643568039,
0.014781192876398563,
-0.02294553443789482,
-0.009338298812508583,
-0.05151183530688286,
0.032319407910108566,
0.015288129448890686,
0.0001814853894757107,
0.009978638961911201,
0.033777959644794464,
-0.03646383434534073,
-0.08893617987632751,
-0.0027881492860615253,
0.006479000672698021,
-0.03635710850358009,
0.06862315535545349,
-0.030843067914247513,
0.02678757719695568,
-0.07456409186124802,
-0.004013244993984699,
-0.029295576736330986,
0.018872257322072983,
0.035538896918296814,
-0.013536086305975914,
-0.010352171026170254,
0.01956596039235592,
0.015652768313884735,
0.0032906385604292154,
-0.006723575294017792,
0.00579419219866395,
-0.017991788685321808,
0.057310473173856735,
0.10565618425607681,
-0.050800345838069916,
-0.012744554318487644,
-0.011855192482471466,
-0.037246473133563995,
0.04539302736520767,
0.03753106668591499,
0.005807532463222742,
0.010254341177642345,
0.012068639509379864,
0.035254303365945816,
0.008800234645605087,
-0.02376374788582325,
-0.008191022090613842,
0.06961923837661743,
-0.06552817672491074,
-0.05610094219446182,
-0.02845957688987255,
-0.02173600159585476,
0.01167732011526823,
0.04717174917459488,
-0.06563489884138107,
0.013696171343326569,
0.01007646881043911,
0.01956596039235592,
0.0440056212246418,
0.007942000404000282,
0.035983577370643616,
-0.006043213419616222,
0.020704342052340508,
0.027214471250772476,
0.04133753478527069,
0.0049626389518380165,
0.002696989569813013,
0.016915662214159966,
0.06012085825204849,
0.010725703090429306,
-0.036712855100631714,
0.01522587426006794,
0.037068597972393036,
0.04297396168112755,
-0.03934536501765251,
0.014203107915818691,
0.05332613363862038,
-0.013794001191854477,
0.03208817169070244,
0.020277447998523712,
-0.027943747118115425,
0.007977575063705444,
-0.013313746079802513,
-0.029758045449852943,
0.08146554231643677,
0.022625364363193512,
0.0009655134053900838,
0.052792515605688095,
-0.047456346452236176,
0.008466724306344986
] |
9,958
|
sentence_transformers.LoggingHandler
|
LoggingHandler
| null |
class LoggingHandler(logging.Handler):
def __init__(self, level=logging.NOTSET):
super().__init__(level)
def emit(self, record):
try:
msg = self.format(record)
tqdm.tqdm.write(msg)
self.flush()
except (KeyboardInterrupt, SystemExit):
raise
except Exception:
self.handleError(record)
|
(level=0)
|
[
-0.05084487795829773,
0.002620730549097061,
-0.07206332683563232,
0.038287024945020676,
0.052829597145318985,
0.016283713281154633,
-0.035400159657001495,
0.022950563579797745,
-0.015670254826545715,
-0.03973045572638512,
0.018421797081828117,
-0.04016348719596863,
0.05618557706475258,
-0.05026750639081001,
-0.002970311790704727,
0.01622958481311798,
-0.008191474713385105,
0.004930221009999514,
0.021922118961811066,
0.05770118162035942,
-0.00155732745770365,
0.021489089354872704,
0.02168755978345871,
-0.0011592560913413763,
-0.05365957319736481,
0.018710482865571976,
-0.03799833729863167,
-0.0321524403989315,
0.007036729250103235,
-0.01917959749698639,
-0.004479148890823126,
-0.0463341549038887,
-0.01923372596502304,
0.057809438556432724,
-0.02206646092236042,
-0.026486970484256744,
-0.016031112521886826,
-0.016391970217227936,
-0.06791345775127411,
0.03060075081884861,
-0.03803442418575287,
0.009761206805706024,
-0.0025305161252617836,
0.003211635397747159,
0.008768847212195396,
0.03944176807999611,
-0.012052654288709164,
0.07570798695087433,
0.0017445224802941084,
-0.005881983786821365,
-0.03419128805398941,
0.08234777301549911,
-0.04774150252342224,
-0.009707077406346798,
0.00773589126765728,
0.04803018644452095,
0.043591637164354324,
-0.0710168406367302,
-0.03947785496711731,
-0.05730423703789711,
-0.027136515825986862,
0.031015736982226372,
0.02991512045264244,
0.03350565582513809,
0.012115804478526115,
-0.029012976214289665,
0.01118659507483244,
0.041498661041259766,
-0.024051180109381676,
0.012566876597702503,
0.012855563312768936,
-0.05264917016029358,
0.0023015968035906553,
-0.0020286981016397476,
-0.026486970484256744,
-0.020550858229398727,
-0.06982600688934326,
0.003626622026786208,
0.007163029629737139,
0.06502659618854523,
-0.00043021028977818787,
-0.03742096573114395,
0.04510723799467087,
0.018060939386487007,
0.013983244076371193,
-0.045432012528181076,
-0.027858231216669083,
0.02771388739347458,
-0.056762948632240295,
0.019648713991045952,
-0.05629383400082588,
-0.008471139706671238,
-0.011854181997478008,
0.006197734735906124,
-0.0033695106394588947,
-0.009156769141554832,
-0.021561259403824806,
0.017691059038043022,
-0.07080031931400299,
0.0043438272550702095,
-0.03413715958595276,
0.024790938943624496,
0.10933994501829147,
-0.052540913224220276,
0.005543679464608431,
-0.07390370219945908,
0.001335174310952425,
0.027912359684705734,
0.03159311041235924,
0.03202613815665245,
0.011240723542869091,
-0.027894316241145134,
-0.0355805903673172,
-0.03563471883535385,
-0.014253887347877026,
0.020857587456703186,
-0.016626527532935143,
0.031015736982226372,
-0.01319837849587202,
-0.01763693057000637,
0.015417654067277908,
-0.022932520136237144,
-0.020442601293325424,
-0.06654220074415207,
-0.023293377831578255,
0.002880097134038806,
-0.018674397841095924,
0.0005517179379239678,
0.06517093628644943,
0.04092128574848175,
-0.034389760345220566,
0.049329277127981186,
0.03209831193089485,
-0.01117757335305214,
0.06145410239696503,
0.009824356995522976,
-0.03426345810294151,
0.016509249806404114,
0.0062293098308146,
0.04727238789200783,
-0.0025575803592801094,
-0.06192321702837944,
0.0008705697255209088,
-0.054561715573072433,
0.09108053892850876,
0.01919764094054699,
0.0050204358994960785,
0.028760375455021858,
-0.00649093184620142,
-0.01731215789914131,
0.02242731861770153,
0.0009348475141450763,
0.013514128513634205,
0.11280418187379837,
-0.01923372596502304,
0.024430081248283386,
-0.010338579304516315,
0.04369989410042763,
-0.006184202618896961,
-0.02318512089550495,
-0.0009788271272554994,
-0.0782339945435524,
0.053406972438097,
-0.010419772006571293,
-0.035400159657001495,
0.0890597328543663,
-0.028904719278216362,
0.04478246718645096,
0.008110282011330128,
0.029662519693374634,
-0.010627265088260174,
0.005530147347599268,
0.003637898713350296,
0.036500778049230576,
0.009725120849907398,
0.055644288659095764,
0.026541098952293396,
0.028634075075387955,
-0.004253612831234932,
-0.04341120645403862,
-0.0014287717640399933,
-0.03350565582513809,
-0.006035348400473595,
-0.004431786015629768,
0.005173800513148308,
-0.023618150502443314,
0.017663994804024696,
-0.00496630696579814,
-0.029067104682326317,
-0.0106813944876194,
0.0007307372870855033,
-0.05557211861014366,
0.028273217380046844,
-0.04059651494026184,
0.07386761158704758,
0.047452814877033234,
0.0015370291657745838,
-0.057159893214702606,
0.06477399170398712,
-0.030041420832276344,
0.01192635390907526,
0.031827669590711594,
-0.011529410257935524,
-0.024087265133857727,
0.008913190104067326,
0.00014117156388238072,
0.020045656710863113,
0.06654220074415207,
-0.1031331941485405,
-0.011213659308850765,
-0.009716099128127098,
-0.005417379550635815,
-0.027479330077767372,
0.09721512347459793,
0.03807051107287407,
-0.0017783528892323375,
-0.020496729761362076,
0.03164723888039589,
-0.009824356995522976,
-0.00809674896299839,
0.054309114813804626,
-0.027659758925437927,
-0.04449377954006195,
0.04009131342172623,
0.015047774650156498,
0.014317037537693977,
0.054273031651973724,
-0.01990131288766861,
0.045395925641059875,
-0.016031112521886826,
0.003441682318225503,
0.04297817870974541,
-0.03853962570428848,
0.07051163911819458,
0.04009131342172623,
-0.052829597145318985,
-0.033974774181842804,
-0.012052654288709164,
-0.0071900938637554646,
0.03191788122057915,
-0.005318143405020237,
-0.020767372101545334,
0.009860442019999027,
0.009292091242969036,
0.020767372101545334,
-0.03415520116686821,
0.025097668170928955,
0.08299732208251953,
0.005489550996571779,
0.024393994361162186,
-0.01585068367421627,
0.01885482668876648,
-0.008547822013497353,
-0.041787344962358475,
-0.008177942596375942,
-0.04052434489130974,
0.007284819148480892,
0.03603166341781616,
-0.0029545242432504892,
-0.014380187727510929,
-0.016031112521886826,
0.02957230620086193,
-0.011240723542869091,
0.018656354397535324,
0.004535533022135496,
-0.015074838884174824,
0.006441313773393631,
-0.06192321702837944,
0.064016193151474,
0.06491833925247192,
0.020767372101545334,
0.057448580861091614,
-0.01105127390474081,
-0.005521126091480255,
-0.05914461240172386,
0.013460000045597553,
-0.01917959749698639,
0.02453833818435669,
-0.04023565724492073,
0.018160173669457436,
0.018250389024615288,
0.011908311396837234,
0.039297427982091904,
-0.002320767380297184,
-0.008110282011330128,
-0.004136333707720041,
0.03724053502082825,
0.027208685874938965,
0.04016348719596863,
-0.0001382818736601621,
-0.016698699444532394,
0.037853993475437164,
-0.028543861582875252,
0.01885482668876648,
-0.026468927040696144,
-0.01333369966596365,
-0.06130975857377052,
-0.013478042557835579,
0.0054489546455442905,
0.00219559483230114,
-0.04904058948159218,
-0.047813672572374344,
0.002263255650177598,
-0.008069684728980064,
-0.0497623048722744,
-0.015823619440197945,
0.052829597145318985,
-0.032892197370529175,
0.028579946607351303,
-0.058134209364652634,
0.007366012316197157,
0.05954155698418617,
0.01851201057434082,
0.01350510772317648,
0.009301112964749336,
0.06794954836368561,
-0.028381474316120148,
0.03621209040284157,
0.016301756724715233,
0.056402090936899185,
-0.0745532438158989,
0.05405651405453682,
0.027822144329547882,
0.009878485463559628,
-0.008656078949570656,
-0.026775656268000603,
0.03518364578485489,
0.05124182254076004,
-0.019053297117352486,
0.0028620543889701366,
-0.01668967865407467,
-0.017095644026994705,
0.017357265576720238,
-0.05402043089270592,
-0.06253667920827866,
-0.018060939386487007,
0.0004936423501931131,
0.004296464379876852,
0.04604547098278999,
0.00659016752615571,
0.0029906099662184715,
0.021795818582177162,
0.02634262666106224,
0.03890048339962959,
-0.012909691780805588,
-0.005791769362986088,
0.0029049061704427004,
-0.008421521633863449,
0.07242418080568314,
0.03853962570428848,
0.05658252164721489,
-0.025043539702892303,
-0.05376783013343811,
-0.004043864086270332,
0.04420509561896324,
-0.08451291918754578,
0.004803921096026897,
-0.028471689671278,
-0.04308643564581871,
-0.005503083113580942,
-0.0569072924554348,
0.0056744907051324844,
-0.014163672924041748,
-0.007961427792906761,
-0.0043618702329695225,
0.04756107181310654,
0.022860348224639893,
-0.0030221850611269474,
0.03886439651250839,
0.07996611297130585,
-0.021471045911312103,
-0.01928785629570484,
0.040380001068115234,
0.07094466686248779,
-0.036067746579647064,
0.071377694606781,
-0.019323941320180893,
0.006581146270036697,
-0.05315437167882919,
-0.01117757335305214,
0.08711110055446625,
-0.03632034733891487,
-0.022174717858433723,
-0.020911715924739838,
-0.03316284343600273,
-0.028634075075387955,
-0.02343772165477276,
0.027587587013840675,
-0.04803018644452095,
0.041859518736600876,
0.02738911472260952,
-0.030131636187434196,
-0.01438920944929123,
-0.026468927040696144,
-0.010600200854241848,
-0.027984531596302986,
-0.015543954446911812,
0.059577640146017075,
-0.024105308577418327,
-0.007771977223455906,
-0.05203571170568466,
-0.01921568438410759,
-0.04564852640032768,
0.01653631404042244,
0.010383686050772667,
-0.012260147370398045,
0.011376045644283295,
-0.03698793426156044,
0.0461898110806942,
-0.024484209716320038,
0.05441737174987793,
-0.010924973525106907,
0.00135885551571846,
0.03583319112658501,
-0.00046065766946412623,
-0.03419128805398941,
-0.015300375409424305,
-0.09555517137050629,
-0.05023141950368881,
0.02381662279367447,
-0.05614949017763138,
0.04510723799467087,
0.04117388650774956,
0.019305897876620293,
0.04402466490864754,
-0.025133753195405006,
-0.037853993475437164,
0.031520940363407135,
0.04564852640032768,
0.004348337650299072,
-0.004589661490172148,
0.023311421275138855,
-0.04561243951320648,
-0.006409738678485155,
0.0018674397142603993,
0.03940568491816521,
-0.00454680947586894,
0.014677895233035088,
0.02744324505329132,
0.005011414177715778,
-0.014984624460339546,
-0.007943384349346161,
0.022282976657152176,
-0.020117828622460365,
0.04597329720854759,
-0.0072442227974534035,
0.033974774181842804,
0.0018561629112809896,
-0.05402043089270592,
-0.0036176005378365517,
-0.051783110946416855,
-0.017194880172610283,
-0.003989735152572393,
-0.038250938057899475,
0.04377206414937973,
-0.06917646527290344,
-0.03487691655755043,
-0.03240504115819931,
0.024754852056503296,
-0.011475281789898872,
0.004655066877603531,
0.02385270781815052,
-0.031466808170080185,
-0.01564319059252739,
-0.028670161962509155,
-0.029788820073008537,
0.10933994501829147,
-0.008128324523568153,
-0.04554026946425438,
0.0022046163212507963,
0.04904058948159218,
0.0534430555999279,
-0.02879646047949791,
-0.009310133755207062,
-0.041787344962358475,
-0.007821595296263695,
0.014876367524266243,
-0.03453410044312477,
0.006923960987478495,
0.021813860163092613,
-0.026883915066719055,
0.015760470181703568,
0.048571474850177765,
0.014271930791437626,
-0.007239711936563253,
0.013802815228700638,
0.08812150359153748,
-0.04402466490864754,
0.07231592386960983,
-0.020731287077069283,
-0.019775014370679855,
0.007961427792906761,
0.025512654334306717,
-0.05521126091480255,
0.030131636187434196,
-0.03727662190794945,
-0.033325228840112686,
0.031502895057201385,
0.02524201013147831,
-0.011854181997478008,
0.03799833729863167,
-0.05116965249180794,
-0.02166951820254326,
0.010104021057486534,
0.037168364971876144,
-0.03556254878640175,
0.04135431721806526,
0.0819147452712059,
-0.044277265667915344,
-0.0024470677599310875,
0.018981127068400383,
0.09043098986148834,
-0.04911276325583458,
0.01710466481745243,
-0.01296382024884224,
-0.07693490386009216,
-0.0568351224064827,
-0.042220376431941986,
0.04247297719120979,
-0.04135431721806526,
0.02172364667057991,
0.05517517402768135,
0.022860348224639893,
-0.042581234127283096,
-0.023329464718699455,
0.02381662279367447,
0.026216328144073486,
0.048210617154836655,
-0.036446649581193924,
0.029031019657850266,
-0.00811479240655899,
-0.002916183089837432,
0.02343772165477276,
-0.010979101993143559,
-0.027172600850462914,
0.04297817870974541,
-0.017185857519507408,
-0.05654643476009369,
-0.048535387963056564,
-0.04521549493074417,
-0.031087908893823624,
0.0017862466629594564,
-0.037890080362558365,
-0.07787314057350159,
0.006391695700585842,
-0.005282057449221611,
-0.033649999648332596,
0.00773589126765728,
0.030835308134555817,
-0.00825913529843092,
-0.017267050221562386,
-0.024375952780246735,
0.06877952069044113,
0.01087986584752798,
-0.06791345775127411,
0.011664732359349728,
0.012783391401171684,
0.005480529740452766,
0.06852691620588303,
-0.019432198256254196,
0.010717479512095451,
-0.00799300242215395,
-0.007316394243389368,
0.017077600583434105,
0.021958203986287117,
-0.03357782959938049,
0.030438365414738655,
0.06538745015859604,
-0.04153474420309067,
-0.01154745277017355,
-0.05120573937892914,
0.08617287129163742,
-0.04777758568525314,
-0.06318622082471848,
-0.032585468143224716,
0.02277013473212719,
0.06257276237010956,
-0.028543861582875252,
0.018403753638267517,
0.005769215989857912,
-0.05084487795829773,
0.019829142838716507,
-0.04384423792362213,
-0.03940568491816521,
-0.014668874442577362,
-0.015787534415721893,
-0.0031078888569027185,
-0.005029457155615091,
-0.005061032250523567,
0.06213973090052605,
-0.01641903445124626,
-0.00033210203400813043,
-0.014551594853401184,
-0.05405651405453682,
0.03853962570428848,
0.05257699638605118,
-0.018620267510414124,
-0.01667163521051407,
0.05755683779716492,
0.004434041678905487,
-0.06520702689886093,
0.06307796388864517,
-0.07585233449935913,
0.005471508018672466,
0.03278394043445587,
-0.03626621887087822,
0.04117388650774956,
0.02379857935011387,
-0.047849759459495544,
-0.007884745486080647,
-0.07191897928714752,
-0.0041882069781422615,
0.04940144717693329,
0.026270456612110138,
-0.014019330032169819,
-0.004794899374246597,
0.0027132004033774137,
-0.029824906960129738,
0.010807694867253304,
0.05441737174987793,
0.010446836240589619,
0.022156676277518272,
-0.026901956647634506,
-0.004637024365365505,
-0.021615389734506607,
0.007853169925510883,
-0.0031529960688203573,
-0.0356527604162693,
-0.0463341549038887,
-0.03352370113134384,
-0.05867549777030945,
0.04009131342172623,
-0.016049155965447426,
0.0033920644782483578,
0.014948539435863495,
0.0060849664732813835,
-0.032946325838565826,
0.012693176977336407,
-0.005480529740452766,
-0.07974959909915924,
0.06470182538032532,
-0.007018686272203922,
-0.03139463812112808,
-0.06549571454524994,
0.064304880797863,
0.010239343158900738,
-0.0355805903673172,
0.020153913646936417,
-0.013487064279615879,
-0.0339026004076004,
-0.0021031249780207872,
0.020424557849764824,
-0.032188527286052704,
0.08357468992471695,
0.007988492026925087,
0.03458823263645172,
0.02105605974793434,
-0.04009131342172623,
0.059216782450675964,
0.055283430963754654,
-0.007397587411105633,
0.0069961328990757465,
-0.013144249096512794,
0.030005335807800293,
0.026270456612110138,
-0.021182360127568245,
-0.032946325838565826,
0.0038160723634064198,
-0.006251863203942776,
-0.03973045572638512,
0.04164300113916397,
0.006112030707299709,
0.0010927228722721338,
-0.004589661490172148,
0.03628426417708397,
0.018710482865571976,
0.0462258979678154,
0.0020974865183234215,
0.017916595563292503,
-0.022643834352493286,
0.02733498625457287,
-0.0029252043459564447,
0.018223324790596962,
-0.021958203986287117,
0.010636286810040474,
0.04813844710588455,
0.021525174379348755,
-0.044277265667915344,
-0.005453465040773153,
-0.03983871266245842,
0.0000936680007725954,
-0.01670772209763527,
-0.043916407972574234,
-0.012494705617427826,
-0.0709085762500763,
-0.053948257118463516,
-0.014398230239748955,
-0.0819869190454483,
0.015543954446911812,
-0.050664450973272324,
0.057159893214702606,
-0.02493528090417385,
0.024718767032027245,
-0.06455747783184052,
0.005083585623651743,
-0.013893029652535915,
-0.02987903542816639,
0.002537282183766365,
0.03778182342648506,
0.003141719149425626,
0.041426487267017365,
0.025693083181977272,
0.002634262666106224,
0.020153913646936417,
-0.011782011017203331,
0.010221300646662712,
-0.0426894910633564,
-0.037168364971876144,
0.02565699815750122,
0.034750618040561676,
-0.05788160860538483,
-0.038683969527482986,
-0.007645676843822002,
-0.0011248617665842175,
-0.01350510772317648,
0.016473162919282913,
-0.04730847105383873,
0.042869918048381805,
0.01604013331234455,
-0.008146367035806179,
0.003743900917470455,
-0.016238605603575706,
-0.08812150359153748,
0.015300375409424305,
0.017952680587768555,
-0.003705559764057398,
-0.011592560447752476,
-0.001614839187823236,
0.07541930675506592,
-0.004517490044236183,
-0.038287024945020676,
-0.07527495920658112,
0.03853962570428848,
-0.0005274727591313422,
0.06278927624225616,
-0.017853444442152977,
0.006355609744787216,
0.04734455794095993,
-0.0462258979678154,
0.024393994361162186,
0.042581234127283096,
0.004993371199816465,
-0.04741672798991203,
0.04828278720378876,
0.042906004935503006,
-0.033271100372076035,
-0.01317131333053112,
-0.008583907969295979,
-0.024267693981528282,
0.010699436999857426,
0.007158518768846989,
-0.01566123403608799,
0.010085978545248508,
0.046117641031742096,
0.0007064921082928777,
0.05243265628814697,
0.02814691700041294,
0.043230779469013214
] |
9,959
|
sentence_transformers.LoggingHandler
|
__init__
| null |
def __init__(self, level=logging.NOTSET):
super().__init__(level)
|
(self, level=0)
|
[
-0.03584306687116623,
-0.001119012595154345,
0.00828914251178503,
0.06631314009428024,
-0.0013334990944713354,
-0.014914390631020069,
-0.02785290591418743,
0.04083475470542908,
0.009246748872101307,
-0.01091931015253067,
-0.02599835768342018,
0.029048830270767212,
0.018112188205122948,
-0.0124012166634202,
0.024611778557300568,
-0.01975875161588192,
0.011707927100360394,
-0.010789318010210991,
0.03608572110533714,
0.013718466274440289,
0.021682629361748695,
0.017921533435583115,
0.016118980944156647,
0.047940969467163086,
-0.011569269001483917,
0.06478790938854218,
-0.05688440427184105,
-0.005598312709480524,
0.027748912572860718,
-0.03001943603157997,
-0.06447592377662659,
-0.022687898948788643,
-0.015217704698443413,
0.06880898773670197,
0.0011076383525505662,
-0.045063819736242294,
-0.07785641402006149,
0.014065111055970192,
-0.09969503432512283,
0.06319334357976913,
0.03771495074033737,
0.027350271120667458,
-0.06964093446731567,
-0.04034944996237755,
0.014420421794056892,
0.022219929844141006,
0.07231009751558304,
0.04582643881440163,
-0.02868485450744629,
-0.014255765825510025,
0.010823982767760754,
0.08645320683717728,
0.024611778557300568,
-0.019377442076802254,
-0.03674434497952461,
0.02246258035302162,
0.06977958977222443,
-0.03287925571203232,
-0.03729897737503052,
0.01949876733124256,
-0.033069908618927,
0.03618971258401871,
-0.024143807590007782,
0.0031804656609892845,
-0.03062606416642666,
-0.04624241217970848,
-0.03806159645318985,
0.023589175194501877,
0.03691766783595085,
0.06166810169816017,
0.0058062998577952385,
-0.06298535317182541,
-0.00974938366562128,
0.006230939645320177,
-0.024941090494394302,
0.007483193650841713,
-0.07480593770742416,
0.047455668449401855,
0.019377442076802254,
0.01785220578312874,
-0.02386649139225483,
0.00033879108377732337,
0.00597962224856019,
0.07293406128883362,
0.027748912572860718,
-0.068427674472332,
-0.032463282346725464,
-0.010598663240671158,
0.040384113788604736,
0.014004448428750038,
-0.1120355874300003,
0.04662372171878815,
0.0020939509849995375,
-0.00016817687719594687,
0.008445133455097675,
-0.018008194863796234,
-0.007418198045343161,
0.015798335894942284,
-0.0008091988856904209,
0.019342778250575066,
-0.03709099069237709,
0.012028573080897331,
0.029100827872753143,
-0.04839161038398743,
-0.010910644195973873,
-0.057889673858881,
-0.035912398248910904,
-0.005429323762655258,
0.04239465296268463,
0.027020959183573723,
0.025045083835721016,
-0.00222719251178205,
-0.018857475370168686,
-0.0004092033195775002,
-0.03196064755320549,
-0.002428679959848523,
-0.020798685029149055,
-0.027194282039999962,
0.001941210706718266,
-0.00777784176170826,
0.001124428934417665,
0.02475043572485447,
-0.029499469324946404,
0.031180696561932564,
0.020226722583174706,
0.015980323776602745,
-0.04173602908849716,
-0.007374867331236601,
0.08686918020248413,
-0.03076472319662571,
0.04606908932328224,
0.008150485344231129,
-0.019152123481035233,
-0.025911696255207062,
0.017739545553922653,
-0.03159667178988457,
0.013449816964566708,
0.04107740521430969,
-0.0020592864602804184,
0.05556715652346611,
-0.024611778557300568,
-0.06392129510641098,
0.03501112014055252,
-0.039274852722883224,
0.03726431354880333,
0.05768168717622757,
-0.011621265672147274,
0.03107670322060585,
-0.0052733332850039005,
0.00045497124665416777,
0.06090548634529114,
-0.012921183370053768,
-0.007366201374679804,
0.012349219992756844,
0.00041136983782052994,
-0.02767958492040634,
0.012903851456940174,
-0.002183862030506134,
0.0621534064412117,
-0.0441972054541111,
-0.017054922878742218,
-0.023571843281388283,
0.0496048666536808,
-0.05667641758918762,
-0.012539874762296677,
0.0456184521317482,
-0.00939407292753458,
-0.03823491558432579,
0.011057968251407146,
0.023849159479141235,
-0.033069908618927,
-0.019914742559194565,
0.011326617561280727,
0.027350271120667458,
-0.0023528514429926872,
0.047490332275629044,
0.01989740878343582,
0.08021359890699387,
-0.04495982453227043,
0.025807702913880348,
0.03795760124921799,
-0.01816418580710888,
-0.026223676279187202,
0.033225901424884796,
0.060801491141319275,
0.01220189593732357,
0.01901346445083618,
-0.007613185793161392,
-0.06752640008926392,
0.012028573080897331,
0.05449255555868149,
-0.013865790329873562,
0.013666469603776932,
-0.04544512927532196,
0.07536057382822037,
0.06076682731509209,
-0.03443915769457817,
-0.06974492967128754,
0.035340432077646255,
0.01608431711792946,
-0.004068742971867323,
0.047802314162254333,
-0.03312190622091293,
-0.028580861166119576,
0.004640706814825535,
0.02457711286842823,
0.05026349052786827,
0.0419093519449234,
-0.044231873005628586,
-0.018510829657316208,
-0.008735448122024536,
-0.005333996377885342,
0.014333761297166348,
0.026778308674693108,
-0.014004448428750038,
-0.05858296528458595,
-0.028442202135920525,
-0.006490922998636961,
-0.007171213626861572,
0.050679463893175125,
0.10031899809837341,
0.002205527387559414,
-0.008475464768707752,
0.004848693497478962,
-0.02705562300980091,
0.05015949904918671,
0.0806988999247551,
-0.06402529031038284,
-0.009099424816668034,
-0.0013226664159446955,
-0.0309380441904068,
0.01852816343307495,
-0.02939547598361969,
0.02483709715306759,
-0.0556018203496933,
0.03194331377744675,
0.005100010894238949,
0.017583556473255157,
-0.03537509962916374,
-0.03537509962916374,
0.011751257814466953,
0.01235788594931364,
0.0208160188049078,
0.055151183158159256,
0.03461248055100441,
-0.02816488780081272,
0.0008216564310714602,
0.0758458748459816,
0.012323221191763878,
0.027783578261733055,
-0.008696450851857662,
-0.04541046544909477,
-0.03664034977555275,
0.015330364927649498,
0.019689422100782394,
-0.033832527697086334,
-0.02126665599644184,
0.022947883233428,
-0.019810747355222702,
-0.04700503125786781,
-0.04516781121492386,
-0.018233515322208405,
-0.00848413072526455,
0.019828081130981445,
0.0069068968296051025,
-0.014290430583059788,
0.014888392761349678,
-0.06655579805374146,
0.008960766717791557,
0.058236319571733475,
0.10115094482898712,
0.010624662041664124,
0.011751257814466953,
0.034768469631671906,
-0.027350271120667458,
-0.06856633722782135,
-0.03027942031621933,
-0.017938867211341858,
-0.023987818509340286,
0.09394072741270065,
0.0809762179851532,
0.021370649337768555,
0.026414331048727036,
0.0346471443772316,
-0.004226899705827236,
-0.027662253007292747,
-0.007184212561696768,
0.004376390017569065,
-0.030158095061779022,
-0.04052277281880379,
-0.006776905152946711,
0.06468391418457031,
0.02939547598361969,
0.049708858132362366,
0.03400585055351257,
-0.03495912253856659,
0.033069908618927,
0.04454385116696358,
0.004900690168142319,
0.0038845879025757313,
0.008180816657841206,
-0.07854970544576645,
0.01689026691019535,
0.01878814585506916,
0.01087597943842411,
-0.02267056703567505,
-0.01047733798623085,
0.0195334330201149,
0.024993088096380234,
-0.0038455903995782137,
0.00987937580794096,
0.08846374601125717,
0.013735799118876457,
0.016422295942902565,
-0.020920012146234512,
0.03625904396176338,
0.007795174140483141,
-0.012028573080897331,
-0.015443024225533009,
0.08790910989046097,
-0.05948423966765404,
0.008211147971451283,
-0.02386649139225483,
0.028459535911679268,
-0.038477569818496704,
-0.05778568238019943,
0.047143686562776566,
0.035912398248910904,
-0.01555568352341652,
0.02922215312719345,
-0.06492656469345093,
-0.018753482028841972,
0.025270402431488037,
-0.03372853621840477,
-0.06312400847673416,
-0.01087597943842411,
-0.011707927100360394,
-0.022375918924808502,
0.02514907717704773,
-0.015564349479973316,
-0.04239465296268463,
-0.003973415587097406,
-0.03218596801161766,
0.03216863423585892,
-0.0055853137746453285,
0.005009016953408718,
0.0006997890886850655,
-0.010044031776487827,
0.03182198852300644,
0.01652628928422928,
0.038304246962070465,
-0.044578514993190765,
-0.0863838717341423,
0.0015956491697579622,
0.02674364298582077,
-0.06281203031539917,
-0.017869537696242332,
-0.05078345909714699,
0.005645976401865482,
0.00928141362965107,
0.0008563208975829184,
0.024698439985513687,
-0.011872583068907261,
-0.027558257803320885,
0.04398921877145767,
0.010269351303577423,
0.031492676585912704,
-0.021370649337768555,
0.029828781262040138,
0.004339559003710747,
-0.00025957735488191247,
-0.0815308466553688,
0.02050403691828251,
0.03201264515519142,
-0.02877151593565941,
0.03660568594932556,
-0.03955216705799103,
0.008718116208910942,
0.0072275432758033276,
-0.019221452996134758,
0.0453411340713501,
0.014533082023262978,
-0.03270593285560608,
0.019793415442109108,
-0.05015949904918671,
-0.016690945252776146,
0.025894364342093468,
0.03972548991441727,
0.047282345592975616,
0.04575710743665695,
0.013787795789539814,
-0.007725845091044903,
-0.02771424874663353,
-0.05605245754122734,
-0.03608572110533714,
-0.00553765008226037,
-0.006382596679031849,
0.038789547979831696,
0.004068742971867323,
-0.020226722583174706,
-0.012340553104877472,
-0.016508957371115685,
0.005368660669773817,
-0.01107530016452074,
0.004978685639798641,
0.015746338292956352,
0.022306591272354126,
-0.0013010011753067374,
0.03757629171013832,
-0.04669304937124252,
0.021231992170214653,
-0.026500992476940155,
-0.0073488689959049225,
-0.019810747355222702,
0.03482046723365784,
-0.059692226350307465,
0.0883944109082222,
-0.00974938366562128,
-0.008276144042611122,
-0.055983129888772964,
-0.043295931071043015,
0.0196720901876688,
0.04225599765777588,
0.0402107909321785,
0.05667641758918762,
0.0064865900203585625,
-0.06232672929763794,
0.04045344516634941,
0.02899683453142643,
0.008978099562227726,
-0.05414591357111931,
0.0195334330201149,
-0.014013114385306835,
-0.012921183370053768,
0.045895766466856,
-0.00022965215612202883,
-0.019949406385421753,
0.030123429372906685,
-0.03027942031621933,
0.062084078788757324,
0.016248973086476326,
-0.04516781121492386,
0.057577695697546005,
-0.006187608931213617,
0.058097660541534424,
0.00562431151047349,
-0.02793956734240055,
0.05269000306725502,
-0.000052199826313881204,
-0.040072135627269745,
0.012626535259187222,
0.00487469183281064,
-0.00518233934417367,
-0.01776554435491562,
-0.01856282725930214,
-0.04662372171878815,
-0.09234616160392761,
-0.0017538059037178755,
0.04963953047990799,
-0.03566974774003029,
-0.007873169146478176,
0.032775260508060455,
-0.03527110442519188,
-0.016283636912703514,
-0.03920552134513855,
0.023814495652914047,
0.09872442483901978,
-0.027159616351127625,
-0.05990021675825119,
-0.044405195862054825,
0.0738353356719017,
0.04551445692777634,
-0.055983129888772964,
-0.04509848356246948,
-0.07231009751558304,
-0.004285396076738834,
0.007236209232360125,
-0.052274029701948166,
-0.006867899559438229,
0.017358236014842987,
-0.055151183158159256,
-0.00013879331527277827,
0.005290665663778782,
0.0352017767727375,
-0.027020959183573723,
-0.05449255555868149,
-0.011309285648167133,
-0.011725259013473988,
0.037194982171058655,
-0.0023441852536052465,
-0.037194982171058655,
0.01622297428548336,
0.0013486647512763739,
-0.020174724981188774,
-0.004365557339042425,
0.006521254777908325,
-0.011655930429697037,
-0.005446655675768852,
0.016630282625555992,
0.035565752536058426,
0.0036527691408991814,
-0.007474527694284916,
-0.046034425497055054,
0.03222063183784485,
0.016742942854762077,
-0.04662372171878815,
0.006694577168673277,
0.01706358790397644,
-0.013311158865690231,
-0.006724908482283354,
0.03899753466248512,
0.08631454408168793,
-0.07054220885038376,
0.015382361598312855,
-0.012071903795003891,
-0.0034317830577492714,
-0.0786883607506752,
-0.010182689875364304,
0.02072935737669468,
-0.0051736729219555855,
0.014637075364589691,
0.07473661005496979,
0.016058318316936493,
-0.03802692890167236,
0.003199964528903365,
-0.00248067663051188,
0.017938867211341858,
0.02537439577281475,
-0.009064760990440845,
0.0621534064412117,
-0.01936011016368866,
-0.06035085394978523,
-0.057716354727745056,
0.021335985511541367,
-0.009775382466614246,
0.08478930592536926,
-0.03740296885371208,
0.015581682324409485,
-0.04080008715391159,
-0.016300970688462257,
0.00265833199955523,
0.014862393960356712,
0.07764842361211777,
-0.04461318254470825,
-0.036675017327070236,
-0.04034944996237755,
-0.07848037779331207,
0.056468430906534195,
-0.009671389125287533,
0.019568096846342087,
0.04468251019716263,
-0.03067806176841259,
-0.007210210897028446,
-0.01680360548198223,
-0.014004448428750038,
0.00028869009111076593,
-0.014273097738623619,
0.0011179293505847454,
0.050991445779800415,
0.018181517720222473,
0.02639699913561344,
-0.001768971560522914,
-0.015807000920176506,
0.019290780648589134,
-0.05688440427184105,
-0.03788827359676361,
0.008583790622651577,
0.05300198495388031,
-0.03173532709479332,
-0.0011276787845417857,
-0.024074478074908257,
-0.017713546752929688,
-0.0604548454284668,
0.021803956478834152,
-0.045549120754003525,
0.06714509427547455,
0.029066164046525955,
0.042463984340429306,
0.014966387301683426,
0.03168332949280739,
-0.008401802740991116,
0.014749734662473202,
-0.018753482028841972,
-0.0618760883808136,
-0.03716031834483147,
-0.024057146161794662,
0.009402738884091377,
0.015755005180835724,
0.012817190028727055,
0.01932544633746147,
-0.014498417265713215,
0.008601123467087746,
0.03955216705799103,
-0.042498648166656494,
-0.03743763267993927,
-0.022913219407200813,
0.02483709715306759,
-0.05376460403203964,
0.05061013624072075,
0.011681928299367428,
-0.05657242611050606,
0.04523714259266853,
-0.04839161038398743,
-0.023225199431180954,
-0.005689307115972042,
-0.055151183158159256,
0.06433726847171783,
0.015148376114666462,
-0.020885346457362175,
0.02355451136827469,
-0.04229066148400307,
-0.009420071728527546,
-0.037680286914110184,
-0.01918678730726242,
0.01763555221259594,
-0.03466447815299034,
-0.012626535259187222,
0.04017612710595131,
0.027783578261733055,
-0.013250496238470078,
-0.022566573694348335,
0.025565050542354584,
-0.02267056703567505,
0.03972548991441727,
-0.0479063056409359,
0.02802622877061367,
-0.0013865790097042918,
-0.11161961406469345,
-0.012513875961303711,
-0.031665999442338943,
0.005793300457298756,
0.024334462359547615,
-0.03360721096396446,
-0.05522051081061363,
-0.018580159172415733,
-0.027124952524900436,
-0.019620094448328018,
-0.022202597931027412,
0.05882561579346657,
0.01344115100800991,
0.03201264515519142,
-0.056919071823358536,
0.019966738298535347,
-0.022947883233428,
-0.005689307115972042,
-0.03438716009259224,
-0.023415854200720787,
0.0013876623706892133,
0.008679118007421494,
-0.059206925332546234,
-0.021474642679095268,
0.037506964057683945,
-0.008670452050864697,
0.06010820344090462,
-0.041354719549417496,
0.004250731319189072,
-0.013094506226480007,
0.04530647024512291,
0.05314064398407936,
0.0006505005876533687,
-0.015884995460510254,
0.02078135311603546,
0.00582363223657012,
0.06544653326272964,
0.048287615180015564,
-0.013345823623239994,
0.012279890477657318,
-0.07265674322843552,
0.016023654490709305,
0.010893311351537704,
-0.00637826370075345,
-0.009073426946997643,
0.001941210706718266,
0.00915142148733139,
0.0267956405878067,
0.014784399420022964,
0.04204801097512245,
0.02112799882888794,
0.029724787920713425,
-0.019290780648589134,
-0.013371821492910385,
0.051615405827760696,
-0.02913549169898033,
-0.005632977467030287,
0.036675017327070236,
0.09900174289941788,
-0.059033602476119995,
0.008107154630124569,
0.02435179427266121,
-0.04256797581911087,
-0.011751257814466953,
-0.025166409090161324,
-0.037992265075445175,
0.02939547598361969,
-0.018094856292009354,
0.01067665871232748,
-0.06409461796283722,
-0.0595882348716259,
0.002205527387559414,
-0.0393441803753376,
0.024109143763780594,
-0.007318537682294846,
-0.045375797897577286,
0.013302492909133434,
0.005819298792630434,
-0.03005410172045231,
0.00061475281836465,
-0.006638247054070234,
0.04028012230992317,
-0.02041737735271454,
-0.001350831356830895,
0.07924298942089081,
0.019654758274555206,
-0.07702446728944778,
-0.017167581245303154,
0.03168332949280739,
0.03722964599728584,
-0.02785290591418743,
-0.09248482435941696,
0.008848107419908047,
-0.02974211983382702,
-0.020850682631134987,
-0.03190864995121956,
0.00022762102889828384,
0.060801491141319275,
0.025253070518374443,
-0.029516801238059998,
-0.030712725594639778,
0.0003569357795640826,
-0.03549642488360405,
0.028355540707707405,
-0.00950673222541809,
-0.06270803511142731,
0.001407161122187972,
0.03312190622091293,
-0.0006304601556621492,
-0.04100807383656502,
0.020486705005168915,
0.02868485450744629,
-0.015278368256986141,
0.004018912557512522,
-0.05990021675825119,
-0.0510261096060276,
0.03182198852300644,
0.011976576410233974,
0.015633678063750267,
0.038130924105644226,
0.031180696561932564,
-0.030002104118466377,
0.014394423924386501,
-0.005225669592618942,
-0.03099004179239273,
-0.020452041178941727,
0.026050353422760963,
-0.013501813635230064,
-0.03594706207513809,
-0.0011905081337317824,
0.0006521254545077682,
-0.01032134797424078,
-0.009298745542764664,
-0.03371120244264603,
-0.01856282725930214,
0.00895210076123476,
0.031215360388159752,
0.030210090801119804,
0.08943434804677963,
0.04579177498817444,
0.004068742971867323
] |
9,966
|
sentence_transformers.LoggingHandler
|
emit
| null |
def emit(self, record):
try:
msg = self.format(record)
tqdm.tqdm.write(msg)
self.flush()
except (KeyboardInterrupt, SystemExit):
raise
except Exception:
self.handleError(record)
|
(self, record)
|
[
-0.02200579084455967,
0.052444521337747574,
-0.0422343909740448,
0.08495663851499557,
0.03746037185192108,
-0.0036872331984341145,
-0.04662509635090828,
0.05387324094772339,
-0.023469358682632446,
-0.04854167252779007,
0.01772833801805973,
-0.036275580525398254,
0.06958917528390884,
-0.049587078392505646,
-0.018468834459781647,
0.03017737902700901,
-0.035334713757038116,
-0.009173435159027576,
-0.004656411241739988,
0.058786649256944656,
-0.014496292918920517,
0.00009868739289231598,
0.010567309334874153,
0.0006359551334753633,
-0.04195561632514,
0.012205111794173717,
-0.04157230257987976,
-0.029271360486745834,
-0.032215919345617294,
-0.016761338338255882,
0.002146348590031266,
-0.0819598063826561,
0.0020113170612603426,
0.018242329359054565,
0.0011080211261287332,
0.0013437819434329867,
-0.027581287547945976,
-0.019723322242498398,
-0.03493397310376167,
0.03962087631225586,
-0.008633309043943882,
0.016621951013803482,
0.035247597843408585,
0.01196118351072073,
-0.015411023050546646,
0.025142008438706398,
0.004260028246790171,
0.09868630021810532,
0.0050615062937140465,
-0.042443472892045975,
-0.0078492546454072,
0.062341026961803436,
-0.05882149562239647,
-0.027110856026411057,
0.02270272746682167,
0.003604471916332841,
0.048750754445791245,
-0.021465664729475975,
-0.0219535194337368,
-0.046973563730716705,
-0.005514515098184347,
0.022406529635190964,
0.006930168718099594,
0.035334713757038116,
0.05470956489443779,
-0.010706696659326553,
0.05652160197496414,
-0.0006713464972563088,
-0.031222784891724586,
0.007522565312683582,
0.047252338379621506,
-0.03348783031105995,
-0.010567309334874153,
-0.021848980337381363,
0.01039307564496994,
-0.01602955535054207,
-0.08077501505613327,
0.0036502082366496325,
0.008271772414445877,
0.004229537211358547,
0.04523121938109398,
-0.013398616574704647,
0.04895983636379242,
0.012753949500620365,
-0.03031676635146141,
-0.015236788429319859,
-0.010471480898559093,
0.0008118228870444,
-0.10001048445701599,
0.0027136991266161203,
-0.004547514952719212,
-0.01691814884543419,
0.009513191878795624,
0.004495244473218918,
0.02831307239830494,
-0.029515288770198822,
-0.007012930233031511,
-0.0054535330273211,
-0.07331778854131699,
0.022214870899915695,
-0.0047609517350792885,
0.00825434923171997,
0.05293237790465355,
-0.06749836355447769,
-0.013790643773972988,
-0.04923861101269722,
0.04157230257987976,
0.03693766891956329,
0.015245500020682812,
0.06338643282651901,
-0.0109767597168684,
-0.007688087876886129,
-0.04892498627305031,
-0.04808866232633591,
-0.030003143474459648,
0.008354534395039082,
0.009818102233111858,
0.042338933795690536,
0.01207443606108427,
-0.011386211030185223,
0.03906332701444626,
-0.024323105812072754,
-0.030752351507544518,
-0.051782429218292236,
-0.05979720875620842,
-0.020019520074129105,
-0.005039726849645376,
0.02284211479127407,
0.06847407668828964,
0.027529017999768257,
-0.033383291214704514,
0.033940840512514114,
0.03148413449525833,
-0.01761508733034134,
0.03409764915704727,
0.035718027502298355,
0.01186535507440567,
-0.06073807179927826,
-0.009121164679527283,
0.007692443672567606,
0.009260552003979683,
-0.03153640776872635,
0.01906123198568821,
-0.034690048545598984,
0.10342547297477722,
0.006660105660557747,
-0.02503746747970581,
0.02981148660182953,
-0.03756491094827652,
-0.02481096237897873,
0.008698646910488605,
0.004185978788882494,
0.006498938892036676,
0.08293551951646805,
-0.010645714588463306,
0.0686134621500969,
-0.024514764547348022,
0.017710914835333824,
-0.041641995310783386,
-0.020385412499308586,
-0.019026383757591248,
-0.059309352189302444,
0.04568422958254814,
0.0705648884177208,
-0.022162601351737976,
0.09687426686286926,
-0.057532161474227905,
0.0883716344833374,
-0.0056669702753424644,
0.02200579084455967,
-0.0016987842973321676,
-0.01606440171599388,
0.01464439183473587,
0.01572464406490326,
-0.006455380469560623,
0.06735897809267044,
0.014060706831514835,
0.022441376000642776,
-0.028748657554388046,
-0.04578877240419388,
-0.015010284259915352,
-0.008572326973080635,
0.02719797194004059,
0.012475174851715565,
-0.023661015555262566,
-0.05321115255355835,
0.009007913060486317,
-0.014862184412777424,
-0.0035935821942985058,
-0.03563091158866882,
0.0307000819593668,
-0.022964078933000565,
0.004207758232951164,
-0.03059554100036621,
0.05969266593456268,
-0.00029837622423656285,
0.022406529635190964,
-0.03592710942029953,
0.029463017359375954,
-0.017606373876333237,
0.007322195917367935,
0.0049874563701450825,
-0.019601358100771904,
-0.04366311430931091,
0.010088165290653706,
0.01447886973619461,
0.018015826120972633,
0.06631357222795486,
-0.060528989881277084,
-0.00804526824504137,
0.031135667115449905,
-0.010802526026964188,
0.015184517949819565,
0.04484790563583374,
0.04791443049907684,
-0.023539051413536072,
-0.01717078872025013,
0.026291953399777412,
-0.007217655424028635,
-0.008633309043943882,
0.04439489543437958,
-0.010593445040285587,
-0.04679932817816734,
0.0034868638031184673,
0.041084446012973785,
-0.010541174560785294,
0.03245984762907028,
-0.03498624637722969,
0.015776915475726128,
-0.007600971031934023,
0.0011401455849409103,
0.02312088944017887,
-0.055476196110248566,
0.04143291339278221,
0.04676448181271553,
-0.03411507233977318,
-0.05457017943263054,
0.03130990266799927,
-0.04878560081124306,
0.03854062408208847,
-0.0020777438767254353,
0.01906123198568821,
-0.007718578912317753,
-0.0215353574603796,
0.004268739838153124,
-0.025629863142967224,
0.05634737014770508,
0.06119108200073242,
-0.013755797408521175,
0.027110856026411057,
0.012013453990221024,
0.0102798230946064,
-0.006934524513781071,
-0.04031781479716301,
-0.0008717159507796168,
-0.040248122066259384,
0.03460292890667915,
-0.0028966451063752174,
0.03948149085044861,
0.02573440410196781,
-0.031135667115449905,
0.08941703289747238,
-0.007208943832665682,
0.009931354783475399,
0.03298255056142807,
0.0019601357635110617,
-0.04003904014825821,
-0.038610316812992096,
0.03948149085044861,
0.09791967272758484,
-0.03479458764195442,
0.05004008859395981,
-0.023887520655989647,
-0.00519653782248497,
-0.04070112854242325,
0.024044331163167953,
0.010523751378059387,
0.02812141366302967,
-0.028347918763756752,
0.007866677828133106,
-0.021099772304296494,
-0.002985940081998706,
0.04801896959543228,
-0.0017314532306045294,
-0.035752877593040466,
-0.021430816501379013,
0.07749941200017929,
0.08244766294956207,
-0.0100707421079278,
-0.02214517816901207,
0.004427728708833456,
0.038192156702280045,
0.003223334439098835,
-0.0013307143235579133,
-0.04219954460859299,
-0.012335787527263165,
-0.03850577771663666,
0.02503746747970581,
-0.007805696222931147,
0.04247831925749779,
-0.03125763311982155,
-0.045440301299095154,
0.014383040368556976,
-0.0034280596300959587,
-0.03521274775266647,
0.025020044296979904,
0.05484895408153534,
-0.043523725122213364,
0.01197860762476921,
-0.05146880820393562,
-0.009103741496801376,
0.07596614956855774,
0.016134094446897507,
0.03205911070108414,
0.04254801198840141,
0.0883716344833374,
-0.007953795604407787,
0.06843923032283783,
0.027180548757314682,
0.025960909202694893,
-0.05749731510877609,
-0.001510393456555903,
0.06342127919197083,
0.016517410054802895,
0.007879745215177536,
-0.01415653619915247,
-0.03092658519744873,
0.04749626666307449,
-0.012553580105304718,
-0.0105585977435112,
-0.006276790052652359,
-0.01694428361952305,
0.006869186647236347,
-0.03517790138721466,
-0.04763565585017204,
-0.013851625844836235,
-0.014539850875735283,
0.01609053649008274,
0.018712762743234634,
0.05582466721534729,
-0.005518870893865824,
0.02970694564282894,
0.04732203111052513,
0.024305682629346848,
-0.015959860756993294,
-0.0035064651165157557,
-0.03909817337989807,
-0.021291429176926613,
0.029724368825554848,
0.05979720875620842,
0.02308604307472706,
0.02395721524953842,
-0.0006789692561142147,
0.022441376000642776,
0.04547514766454697,
-0.04031781479716301,
0.012719103135168552,
-0.011874066665768623,
-0.05631252005696297,
-0.017998401075601578,
-0.08412031084299088,
0.0010007581440731883,
0.010288534685969353,
0.010227552615106106,
-0.020350564271211624,
0.03986480459570885,
-0.012057012878358364,
0.022319411858916283,
0.029881181195378304,
0.081123486161232,
-0.04906437546014786,
0.012928184121847153,
0.023887520655989647,
0.025943486019968987,
-0.01137749943882227,
0.06620903313159943,
-0.004817578010261059,
0.014687950722873211,
-0.037216443568468094,
-0.08258705586194992,
0.037111904472112656,
-0.03909817337989807,
0.0037547489628195763,
-0.00525751942768693,
-0.028661539778113365,
-0.02592606283724308,
-0.034881703555583954,
0.019096078351140022,
-0.04321010410785675,
0.03317420929670334,
0.02350420504808426,
-0.0011826151749119163,
-0.00894693098962307,
-0.05606859549880028,
-0.014661815017461777,
-0.012152841314673424,
-0.0018131255637854338,
0.0023565187584608793,
-0.06464092433452606,
-0.023295124992728233,
-0.060528989881277084,
-0.019862709566950798,
-0.08237797021865845,
0.036693740636110306,
0.025525324046611786,
-0.024985196068882942,
-0.02303377352654934,
-0.05554589256644249,
0.022389106452465057,
-0.03542182967066765,
0.03881939873099327,
-0.012719103135168552,
0.0018381717381998897,
0.02089069038629532,
-0.012492598034441471,
-0.01471408549696207,
-0.051224879920482635,
-0.09548038989305496,
-0.05181727558374405,
0.048890139907598495,
-0.05951843410730362,
0.07206330448389053,
0.07199360430240631,
0.05143396183848381,
0.07042549550533295,
-0.04756595939397812,
-0.0019470681436359882,
0.011220688000321388,
0.04690387099981308,
-0.005741019733250141,
-0.008271772414445877,
0.028086567297577858,
-0.03517790138721466,
0.029881181195378304,
0.019653627648949623,
-0.0064945830963552,
0.009974912740290165,
-0.021274005994200706,
0.027250243350863457,
0.004218647722154856,
0.04749626666307449,
0.0039899651892483234,
0.019914979115128517,
-0.06018052250146866,
0.014330769889056683,
0.021570205688476562,
0.02606545016169548,
-0.036693740636110306,
-0.07394503057003021,
0.01447886973619461,
0.012614562176167965,
-0.020019520074129105,
0.0027224107179790735,
-0.050806719809770584,
0.07519952207803726,
-0.06031991168856621,
0.008289196528494358,
-0.054256558418273926,
0.015681086108088493,
-0.03631042689085007,
-0.016325753182172775,
0.04153745248913765,
-0.05638221651315689,
-0.03493397310376167,
-0.003395390696823597,
-0.011734679341316223,
0.04509183391928673,
0.022023214027285576,
-0.04554484412074089,
-0.005771510768681765,
0.03491654992103577,
0.00644666887819767,
-0.030717505142092705,
-0.0009147300152108073,
-0.03843608498573303,
-0.001501681748777628,
0.006167893763631582,
0.005288010463118553,
0.0032560033723711967,
0.009992336854338646,
-0.04780988767743111,
-0.010009760037064552,
0.040387507528066635,
0.03578772395849228,
0.014679239131510258,
0.06488484889268875,
0.07701155543327332,
-0.05509288236498833,
0.062201641499996185,
-0.021326277405023575,
-0.02078615128993988,
0.028888044878840446,
0.00658605620265007,
-0.040004193782806396,
-0.006721087731420994,
-0.030560694634914398,
-0.03881939873099327,
0.012013453990221024,
-0.022249719128012657,
-0.03603165224194527,
0.03261665999889374,
-0.031832605600357056,
-0.009774543344974518,
0.0037482150364667177,
0.009373804554343224,
0.000053257161198416725,
0.0686134621500969,
0.07596614956855774,
-0.016020841896533966,
-0.0051050647161901,
0.0007600970566272736,
0.0875353068113327,
-0.02853957563638687,
0.04070112854242325,
-0.013259229250252247,
-0.07645400613546371,
-0.0413980670273304,
-0.02517685480415821,
-0.00801913347095251,
-0.018433988094329834,
0.00943478662520647,
0.016926860436797142,
-0.012902049347758293,
-0.03815731033682823,
0.015454581007361412,
-0.008794475346803665,
-0.008202078752219677,
0.03181518241763115,
-0.048750754445791245,
0.017859013751149178,
-0.019218042492866516,
0.002118035452440381,
0.05582466721534729,
-0.043697960674762726,
0.0053838393650949,
0.023939792066812515,
0.006089488510042429,
-0.052305132150650024,
-0.07276023924350739,
-0.030682658776640892,
-0.03979511186480522,
-0.019183194264769554,
-0.026396494358778,
-0.09659548848867416,
0.04760080575942993,
0.006742867175489664,
-0.0006653571617789567,
-0.0416768416762352,
0.016935572028160095,
0.011743390932679176,
-0.04456913098692894,
-0.027302512899041176,
0.031745485961437225,
0.03404537960886955,
-0.0702861100435257,
0.08119317889213562,
-0.005078929476439953,
0.01742342859506607,
0.08662928640842438,
-0.01691814884543419,
0.026744963601231575,
0.020158907398581505,
0.0307000819593668,
0.008093182928860188,
0.04990069940686226,
-0.017484411597251892,
0.011159705929458141,
0.0136164091527462,
-0.005353348329663277,
-0.03359236940741539,
-0.009913930669426918,
0.04526606947183609,
-0.01221382338553667,
-0.025281395763158798,
-0.023695863783359528,
0.031606100499629974,
0.04882044717669487,
-0.0013263585278764367,
0.002127836225554347,
-0.016682932153344154,
-0.06077291816473007,
0.0416768416762352,
-0.02578667551279068,
-0.0439070388674736,
-0.016543544828891754,
-0.02120431326329708,
0.0024196787271648645,
-0.03439384698867798,
0.010863508097827435,
0.011560444720089436,
-0.024828385561704636,
-0.03190229833126068,
-0.044360049068927765,
-0.009783254936337471,
0.04652055352926254,
0.03714675083756447,
0.0075661237351596355,
0.0028596201445907354,
0.005941389128565788,
-0.02278984524309635,
-0.03735583275556564,
0.06011082977056503,
-0.007583547383546829,
-0.009260552003979683,
0.019932402297854424,
-0.010819949209690094,
-0.004900339525192976,
0.04003904014825821,
-0.03134474903345108,
0.02489808015525341,
-0.04885529354214668,
0.006202740594744682,
0.034550659358501434,
0.0212565828114748,
-0.02278984524309635,
-0.03993449732661247,
-0.014104265719652176,
-0.030020568519830704,
-0.010863508097827435,
0.07457227259874344,
0.03958602994680405,
0.015010284259915352,
-0.03714675083756447,
-0.013607697561383247,
-0.028330495581030846,
0.02214517816901207,
0.013093707151710987,
-0.019427122548222542,
-0.004922118503600359,
-0.033940840512514114,
-0.07018157094717026,
0.04564938321709633,
-0.0038854246959090233,
-0.001268643420189619,
0.002450169762596488,
-0.024462493136525154,
-0.06153954938054085,
0.026135142892599106,
-0.008263060823082924,
-0.07791757583618164,
0.05927450582385063,
0.02392236702144146,
-0.022720150649547577,
-0.07945083826780319,
0.06272434443235397,
0.0072481464594602585,
-0.045893311500549316,
0.002146348590031266,
-0.03322647884488106,
-0.005518870893865824,
0.03638011962175369,
0.012135418131947517,
-0.03550894930958748,
0.05509288236498833,
0.05467471852898598,
0.046032700687646866,
0.042164698243141174,
-0.03665889427065849,
0.026135142892599106,
0.057532161474227905,
-0.010062030516564846,
-0.0008662710897624493,
-0.02270272746682167,
-0.04265255481004715,
0.03442869707942009,
-0.0011357897892594337,
-0.03690282255411148,
0.027407053858041763,
-0.049970392137765884,
-0.06436214596033096,
0.03784368559718132,
-0.002759435446932912,
-0.0004747884231619537,
0.0033409425523132086,
0.043941888958215714,
-0.010549886152148247,
0.03179775923490524,
-0.010715408250689507,
-0.016151517629623413,
-0.017240483313798904,
0.030072838068008423,
-0.029689522460103035,
0.040108732879161835,
-0.03233788534998894,
-0.02036798745393753,
0.028208531439304352,
0.017292752861976624,
-0.03420219197869301,
0.0031841315794736147,
-0.04756595939397812,
0.03465519845485687,
-0.006956303957849741,
-0.07087850570678711,
-0.011952471919357777,
-0.07499043643474579,
-0.04481305927038193,
-0.004713037516921759,
-0.11666727811098099,
0.012745237909257412,
-0.023887520655989647,
0.06126077473163605,
-0.0132679408416152,
0.047112952917814255,
-0.015872742980718613,
-0.004442974459379911,
0.008306619711220264,
-0.03219849616289139,
-0.022458799183368683,
0.02536851167678833,
-0.011168417520821095,
0.039725419133901596,
0.02942817099392414,
-0.02975921705365181,
0.06310766190290451,
-0.027738098055124283,
-0.02359132282435894,
-0.02186640352010727,
0.014914454892277718,
0.04303586855530739,
0.015201942063868046,
-0.05418686196208,
-0.03129247948527336,
-0.018608221784234047,
-0.0006283323746174574,
0.010863508097827435,
0.005967524368315935,
-0.023155737668275833,
0.03735583275556564,
0.007104402873665094,
0.006978083401918411,
0.003110082121565938,
-0.04676448181271553,
-0.03343556076288223,
-0.0026418273337185383,
0.016317041590809822,
0.020908115431666374,
-0.026448765769600868,
-0.009791966527700424,
0.07756910473108292,
-0.011743390932679176,
-0.05345508083701134,
-0.06742867082357407,
0.040387507528066635,
-0.031745485961437225,
0.012318364344537258,
-0.0018741075182333589,
0.030525846406817436,
0.045440301299095154,
-0.013006589375436306,
0.031832605600357056,
0.047670502215623856,
0.008742205798625946,
-0.05457017943263054,
0.08523541688919067,
0.07784788310527802,
0.009495768696069717,
-0.035299867391586304,
0.03948149085044861,
-0.021552780643105507,
0.01182179618626833,
0.029375901445746422,
-0.009330245666205883,
-0.011029030196368694,
0.027389630675315857,
-0.016299618408083916,
0.02364359237253666,
-0.009678714908659458,
0.05345508083701134
] |
9,978
|
sentence_transformers.datasets.ParallelSentencesDataset
|
ParallelSentencesDataset
|
This dataset reader can be used to read-in parallel sentences, i.e., it reads in a file with tab-seperated sentences with the same
sentence in different languages. For example, the file can look like this (EN DE ES):
hello world hallo welt hola mundo
second sentence zweiter satz segunda oración
The sentence in the first column will be mapped to a sentence embedding using the given the embedder. For example,
embedder is a mono-lingual sentence embedding method for English. The sentences in the other languages will also be
mapped to this English sentence embedding.
When getting a sample from the dataset, we get one sentence with the according sentence embedding for this sentence.
teacher_model can be any class that implement an encode function. The encode function gets a list of sentences and
returns a list of sentence embeddings
|
class ParallelSentencesDataset(Dataset):
"""
This dataset reader can be used to read-in parallel sentences, i.e., it reads in a file with tab-seperated sentences with the same
sentence in different languages. For example, the file can look like this (EN\tDE\tES):
hello world hallo welt hola mundo
second sentence zweiter satz segunda oración
The sentence in the first column will be mapped to a sentence embedding using the given the embedder. For example,
embedder is a mono-lingual sentence embedding method for English. The sentences in the other languages will also be
mapped to this English sentence embedding.
When getting a sample from the dataset, we get one sentence with the according sentence embedding for this sentence.
teacher_model can be any class that implement an encode function. The encode function gets a list of sentences and
returns a list of sentence embeddings
"""
def __init__(
self,
student_model: SentenceTransformer,
teacher_model: SentenceTransformer,
batch_size: int = 8,
use_embedding_cache: bool = True,
):
"""
Parallel sentences dataset reader to train student model given a teacher model
:param student_model: Student sentence embedding model that should be trained
:param teacher_model: Teacher model, that provides the sentence embeddings for the first column in the dataset file
"""
self.student_model = student_model
self.teacher_model = teacher_model
self.datasets = []
self.datasets_iterator = []
self.datasets_tokenized = []
self.dataset_indices = []
self.copy_dataset_indices = []
self.cache = []
self.batch_size = batch_size
self.use_embedding_cache = use_embedding_cache
self.embedding_cache = {}
self.num_sentences = 0
def load_data(self, filepath: str, weight: int = 100, max_sentences: int = None, max_sentence_length: int = 128):
"""
Reads in a tab-seperated .txt/.csv/.tsv or .gz file. The different columns contain the different translations of the sentence in the first column
:param filepath: Filepath to the file
:param weight: If more than one dataset is loaded with load_data: With which frequency should data be sampled from this dataset?
:param max_sentences: Max number of lines to be read from filepath
:param max_sentence_length: Skip the example if one of the sentences is has more characters than max_sentence_length
:param batch_size: Size for encoding parallel sentences
:return:
"""
logger.info("Load " + filepath)
parallel_sentences = []
with gzip.open(filepath, "rt", encoding="utf8") if filepath.endswith(".gz") else open(
filepath, encoding="utf8"
) as fIn:
count = 0
for line in fIn:
sentences = line.strip().split("\t")
if (
max_sentence_length is not None
and max_sentence_length > 0
and max([len(sent) for sent in sentences]) > max_sentence_length
):
continue
parallel_sentences.append(sentences)
count += 1
if max_sentences is not None and max_sentences > 0 and count >= max_sentences:
break
self.add_dataset(
parallel_sentences, weight=weight, max_sentences=max_sentences, max_sentence_length=max_sentence_length
)
def add_dataset(
self,
parallel_sentences: List[List[str]],
weight: int = 100,
max_sentences: int = None,
max_sentence_length: int = 128,
):
sentences_map = {}
for sentences in parallel_sentences:
if (
max_sentence_length is not None
and max_sentence_length > 0
and max([len(sent) for sent in sentences]) > max_sentence_length
):
continue
source_sentence = sentences[0]
if source_sentence not in sentences_map:
sentences_map[source_sentence] = set()
for sent in sentences:
sentences_map[source_sentence].add(sent)
if max_sentences is not None and max_sentences > 0 and len(sentences_map) >= max_sentences:
break
if len(sentences_map) == 0:
return
self.num_sentences += sum([len(sentences_map[sent]) for sent in sentences_map])
dataset_id = len(self.datasets)
self.datasets.append(list(sentences_map.items()))
self.datasets_iterator.append(0)
self.dataset_indices.extend([dataset_id] * weight)
def generate_data(self):
source_sentences_list = []
target_sentences_list = []
for data_idx in self.dataset_indices:
src_sentence, trg_sentences = self.next_entry(data_idx)
source_sentences_list.append(src_sentence)
target_sentences_list.append(trg_sentences)
# Generate embeddings
src_embeddings = self.get_embeddings(source_sentences_list)
for src_embedding, trg_sentences in zip(src_embeddings, target_sentences_list):
for trg_sentence in trg_sentences:
self.cache.append(InputExample(texts=[trg_sentence], label=src_embedding))
random.shuffle(self.cache)
def next_entry(self, data_idx):
source, target_sentences = self.datasets[data_idx][self.datasets_iterator[data_idx]]
self.datasets_iterator[data_idx] += 1
if self.datasets_iterator[data_idx] >= len(self.datasets[data_idx]): # Restart iterator
self.datasets_iterator[data_idx] = 0
random.shuffle(self.datasets[data_idx])
return source, target_sentences
def get_embeddings(self, sentences):
if not self.use_embedding_cache:
return self.teacher_model.encode(
sentences, batch_size=self.batch_size, show_progress_bar=False, convert_to_numpy=True
)
# Use caching
new_sentences = []
for sent in sentences:
if sent not in self.embedding_cache:
new_sentences.append(sent)
if len(new_sentences) > 0:
new_embeddings = self.teacher_model.encode(
new_sentences, batch_size=self.batch_size, show_progress_bar=False, convert_to_numpy=True
)
for sent, embedding in zip(new_sentences, new_embeddings):
self.embedding_cache[sent] = embedding
return [self.embedding_cache[sent] for sent in sentences]
def __len__(self):
return self.num_sentences
def __getitem__(self, idx):
if len(self.cache) == 0:
self.generate_data()
return self.cache.pop()
|
(student_model: <module 'sentence_transformers.SentenceTransformer' from '/usr/local/lib/python3.10/site-packages/sentence_transformers/SentenceTransformer.py'>, teacher_model: <module 'sentence_transformers.SentenceTransformer' from '/usr/local/lib/python3.10/site-packages/sentence_transformers/SentenceTransformer.py'>, batch_size: int = 8, use_embedding_cache: bool = True)
|
[
0.029696060344576836,
-0.03458121418952942,
-0.05647318810224533,
0.020594673231244087,
-0.019449397921562195,
-0.00236022868193686,
-0.037844739854335785,
-0.023675765842199326,
0.0832705870270729,
-0.006258470006287098,
-0.010581121779978275,
-0.018922369927167892,
-0.05339209735393524,
0.012922346591949463,
-0.005027046427130699,
0.03482445701956749,
0.008766925893723965,
0.0023095528595149517,
-0.00045671628322452307,
-0.02282441221177578,
-0.025094689801335335,
-0.010652068071067333,
-0.054202910512685776,
-0.0008342515211552382,
-0.01203045155853033,
0.02136494591832161,
-0.0065017142333090305,
-0.04011501744389534,
0.017483174800872803,
0.015780465677380562,
0.007880098186433315,
-0.01589195244014263,
-0.019520344212651253,
-0.025560908019542694,
-0.029898762702941895,
-0.06324348598718643,
-0.02450685016810894,
0.009288886561989784,
0.001346711185760796,
-0.012182478792965412,
0.0030760252848267555,
-0.05517588555812836,
0.033750128000974655,
-0.009435846470296383,
-0.02093927003443241,
0.03405418619513512,
-0.026777129620313644,
0.020665619522333145,
-0.03504743054509163,
-0.0567164346575737,
0.009253413416445255,
-0.04921640455722809,
0.030425792559981346,
0.038756903260946274,
-0.04568936303257942,
-0.004152887500822544,
-0.03701365366578102,
0.046702880412340164,
-0.007611515466123819,
-0.013875053264200687,
0.04682450369000435,
-0.04163529351353645,
0.05351371690630913,
0.08140571415424347,
-0.035006891936063766,
0.028196053579449654,
-0.022256841883063316,
0.016418982297182083,
-0.008057462982833385,
0.018223043531179428,
-0.0032077825162559748,
-0.02191224694252014,
-0.007748340256512165,
0.038756903260946274,
-0.03725690022110939,
0.03804744407534599,
-0.03754068538546562,
-0.022175760939717293,
0.021750083193182945,
0.006785498932003975,
0.024162255227565765,
-0.0006020926521159708,
0.01835479959845543,
-0.07082459330558777,
0.043865032494068146,
-0.014118297025561333,
0.045040711760520935,
0.019145343452692032,
-0.02545955777168274,
-0.04617585241794586,
-0.05452723428606987,
0.08570303022861481,
0.0908922404050827,
0.00004153046029387042,
0.04978397488594055,
-0.013773701153695583,
-0.02547982707619667,
-0.06385159492492676,
-0.008508478291332722,
-0.02908794954419136,
0.03849339112639427,
0.03794609010219574,
0.061175908893346786,
0.013743296265602112,
-0.01859804429113865,
-0.045527201145887375,
-0.0344393216073513,
-0.0033826143480837345,
-0.010013551451265812,
-0.011391935870051384,
-0.07848678529262543,
0.014239919371902943,
0.03103390336036682,
0.03026362881064415,
-0.0026883548125624657,
-0.04512179270386696,
-0.004368260037153959,
0.05331101641058922,
-0.03705419600009918,
0.028905516490340233,
0.04129069671034813,
0.06364889442920685,
-0.09356792271137238,
-0.022479815408587456,
-0.02007777988910675,
-0.02550009824335575,
0.03843257948756218,
0.021020350977778435,
0.048689376562833786,
-0.09778416156768799,
0.004439206328243017,
-0.017371688038110733,
0.029696060344576836,
0.0643380805850029,
0.04662179946899414,
-0.03891906887292862,
0.020462915301322937,
0.03731771185994148,
-0.04731099307537079,
0.02091899886727333,
0.01512167975306511,
-0.024425769224762917,
0.04824342951178551,
0.007185838185250759,
0.02477036416530609,
-0.0417974554002285,
-0.005635156761854887,
-0.07244621962308884,
-0.02353387326002121,
-0.04043934494256973,
0.03261499106884003,
-0.0333852618932724,
-0.05120289698243141,
-0.03814879432320595,
0.0029366665985435247,
0.014746678061783314,
-0.0371960885822773,
-0.041432589292526245,
0.023432523012161255,
-0.003775352379307151,
-0.05091911554336548,
-0.037337981164455414,
-0.04350016638636589,
0.06393267959356308,
-0.02136494591832161,
0.052013713866472244,
0.00791557040065527,
0.0005729540716856718,
-0.0466623418033123,
0.02718253619968891,
0.03646635636687279,
0.010353079997003078,
0.006861512549221516,
-0.0052500199526548386,
0.010662202723324299,
0.04844613000750542,
0.03322310000658035,
0.005483129061758518,
0.027486592531204224,
0.040236640721559525,
-0.04572990536689758,
0.0031469715759158134,
-0.024162255227565765,
-0.00417315773665905,
-0.002777037676423788,
0.011949369683861732,
0.04151367396116257,
0.012395317666232586,
0.03456094488501549,
-0.0016444319626316428,
-0.03514878451824188,
-0.06672998517751694,
-0.01702709309756756,
0.03766230493783951,
-0.0019231492187827826,
0.03841231018304825,
-0.015141949988901615,
-0.015162220224738121,
-0.012851400300860405,
0.008255098946392536,
-0.021020350977778435,
-0.0008659239392727613,
0.08023003488779068,
-0.05039208382368088,
-0.060202933847904205,
0.024648742750287056,
-0.07045973092317581,
0.04204070195555687,
-0.09113548696041107,
0.002728895517066121,
-0.027263617143034935,
-0.06928405165672302,
0.06547322124242783,
0.02738524042069912,
0.10281120240688324,
-0.055824536830186844,
-0.02424333617091179,
0.03790555149316788,
-0.01562843844294548,
-0.020594673231244087,
0.056351568549871445,
-0.01912507228553295,
-0.03754068538546562,
0.00877706054598093,
0.03981096297502518,
-0.04301367700099945,
0.0529056079685688,
0.016662225127220154,
-0.009263549000024796,
0.005726373288780451,
0.03981096297502518,
0.02306765504181385,
-0.006861512549221516,
-0.013631808571517467,
0.02355414442718029,
-0.01406762097030878,
-0.010459499433636665,
0.021182512864470482,
0.04062177613377571,
-0.016196008771657944,
-0.002789706690236926,
0.0064257001504302025,
0.011493287049233913,
-0.0553380511701107,
-0.009856456890702248,
0.03075011819601059,
0.06948675215244293,
0.007408812176436186,
-0.007687529549002647,
-0.017827771604061127,
-0.0005039082025177777,
0.01693587563931942,
-0.047675859183073044,
-0.016571009531617165,
0.034946080297231674,
-0.1012706607580185,
0.03954744711518288,
-0.00008155647810781375,
0.02260143868625164,
-0.0021397885866463184,
-0.024689283221960068,
0.0016900402260944247,
-0.039283934980630875,
0.06904080510139465,
-0.028256865218281746,
0.028175784274935722,
-0.0010078164050355554,
-0.0018027940532192588,
-0.013125049881637096,
-0.003136836225166917,
0.041006915271282196,
0.11951397359371185,
-0.00595441460609436,
-0.010054092854261398,
0.014736542478203773,
0.008868277072906494,
-0.0008158814744092524,
0.0010052825091406703,
-0.012476399540901184,
0.035635270178318024,
0.01746290549635887,
-0.003060822607949376,
-0.007940908893942833,
-0.06227050721645355,
0.05570291727781296,
-0.042365025728940964,
-0.06332456320524216,
-0.04593260958790779,
0.030344711616635323,
-0.01116896141320467,
-0.015081138350069523,
0.011604773811995983,
0.05217587575316429,
-0.005204411689192057,
-0.01934804767370224,
-0.0529056079685688,
0.019864941015839577,
-0.000049013066018233076,
0.011239907704293728,
-0.01788858138024807,
-0.04080421105027199,
-0.004089542664587498,
0.09243278950452805,
0.02521631307899952,
-0.05477048084139824,
-0.027344699949026108,
0.0064003621228039265,
-0.013875053264200687,
0.034459590911865234,
-0.03802717104554176,
0.02306765504181385,
0.01129058375954628,
0.020706159994006157,
0.004712855909019709,
-0.025905504822731018,
0.018253447487950325,
0.033060938119888306,
0.05797319486737251,
0.024689283221960068,
0.0447569265961647,
-0.022885221987962723,
0.01895277574658394,
0.05497318506240845,
0.007261852268129587,
0.02904740907251835,
-0.03812852501869202,
0.13094644248485565,
-0.024385228753089905,
-0.0070135402493178844,
-0.026817670091986656,
0.03991231322288513,
-0.043378543108701706,
0.00405660318210721,
0.028905516490340233,
-0.03802717104554176,
0.02499333955347538,
-0.0076317861676216125,
-0.02813524194061756,
0.06989216059446335,
-0.033770401030778885,
0.05014884099364281,
-0.0542839914560318,
-0.02237846329808235,
0.02693929150700569,
0.021587921306490898,
-0.036871761083602905,
0.04621639475226402,
-0.007733137812465429,
0.0005051750922575593,
0.09259495139122009,
0.035169053822755814,
0.040013667196035385,
0.03072984702885151,
0.06774350255727768,
0.013135185465216637,
-0.03922312334179878,
-0.005964549724012613,
-0.06291916221380234,
-0.02616901881992817,
-0.005244952626526356,
-0.02787172794342041,
0.006815904285758734,
-0.009704428724944592,
0.03602040931582451,
-0.03225012496113777,
-0.005059985443949699,
-0.004413868300616741,
-0.028277134522795677,
0.022479815408587456,
0.010160512290894985,
0.0024400430265814066,
-0.010023687034845352,
0.023939281702041626,
0.06056779995560646,
0.03176363557577133,
-0.06377051770687103,
-0.06754080206155777,
0.04427044093608856,
-0.010804095305502415,
0.030000114813447,
-0.03318255767226219,
-0.009689225815236568,
0.03145958110690117,
0.03411499410867691,
0.018932504579424858,
-0.03571635112166405,
0.07860840857028961,
-0.032067690044641495,
0.04950018972158432,
0.002548996126279235,
0.006679079495370388,
-0.009405441582202911,
0.017108174040913582,
-0.04078393802046776,
-0.01379397138953209,
-0.0018103953916579485,
-0.058500222861766815,
0.013550727628171444,
-0.0015329450834542513,
-0.01882101781666279,
-0.04970289394259453,
-0.005893603432923555,
-0.008290572091937065,
0.08562195301055908,
-0.02718253619968891,
0.049419108778238297,
0.06664890050888062,
0.007469623349606991,
-0.01152369286864996,
0.049824513494968414,
-0.05456777662038803,
0.0480407252907753,
0.038310956209897995,
0.01841561123728752,
-0.04471638798713684,
-0.017564255744218826,
-0.034256886690855026,
-0.004864883609116077,
0.02351360395550728,
0.06916242837905884,
0.008072665892541409,
0.08416248112916946,
0.049419108778238297,
-0.027709566056728363,
-0.02302711457014084,
-0.006734822876751423,
-0.07585164159536362,
-0.004763531964272261,
-0.042851515114307404,
-0.03261499106884003,
-0.04921640455722809,
-0.028500109910964966,
-0.01163517963141203,
-0.04520287737250328,
-0.02570280060172081,
0.03143930807709694,
-0.016459522768855095,
0.005751711316406727,
-0.003159640356898308,
-0.012881806120276451,
0.05168938636779785,
-0.03218931332230568,
0.03729743883013725,
-0.019094668328762054,
-0.0011782139772549272,
-0.009141926653683186,
-0.06944621354341507,
0.06883810460567474,
-0.0076064481399953365,
-0.011108150705695152,
0.038797445595264435,
0.04654071852564812,
0.016327764838933945,
0.018121691420674324,
-0.005680765025317669,
0.01717912033200264,
0.07613542675971985,
-0.02306765504181385,
-0.030324440449476242,
0.01970277726650238,
0.014219649136066437,
0.02880416437983513,
0.038615014404058456,
0.03741906210780144,
0.028054160997271538,
-0.003894440596923232,
-0.0064409030601382256,
-0.009324359707534313,
-0.02736496925354004,
-0.0158716831356287,
0.029473084956407547,
0.01260815653949976,
0.03452040255069733,
-0.049581270664930344,
-0.01950007490813732,
-0.005594615824520588,
-0.00206757546402514,
-0.01631763018667698,
0.0032508571166545153,
0.005447655916213989,
0.056108321994543076,
-0.03561500087380409,
0.03729743883013725,
0.0044442736543715,
-0.011918964795768261,
-0.04175691679120064,
-0.0011351394932717085,
-0.015081138350069523,
-0.0011351394932717085,
0.019023722037672997,
-0.041675835847854614,
0.010388553142547607,
0.06964891403913498,
0.003400350920855999,
0.007175703067332506,
0.010540581308305264,
0.02525685355067253,
0.050797492265701294,
0.03510824218392372,
-0.01877034269273281,
0.026047397404909134,
-0.014614921063184738,
-0.004690051544457674,
-0.05063533037900925,
0.039750151336193085,
0.06794620305299759,
-0.018760206177830696,
0.013854783028364182,
-0.04686504602432251,
-0.025114960968494415,
-0.034013643860816956,
-0.07029756903648376,
0.017858175560832024,
-0.0026883548125624657,
0.03630419448018074,
-0.005019444972276688,
-0.01742236316204071,
0.036365002393722534,
-0.006253402214497328,
0.03796636313199997,
0.011554098688066006,
0.051527224481105804,
-0.0034712969791144133,
-0.03052714467048645,
-0.024608202278614044,
0.016013575717806816,
0.0025451956316828728,
-0.05140560120344162,
0.023006845265626907,
0.03602040931582451,
-0.030871739611029625,
-0.0358177050948143,
0.04402719438076019,
0.03026362881064415,
0.04129069671034813,
0.0011604774044826627,
0.015081138350069523,
-0.0437028706073761,
0.0702570229768753,
0.006922323722392321,
-0.04321638122200966,
0.0006638538907282054,
-0.00955240149050951,
-0.04366232827305794,
0.03790555149316788,
-0.017584526911377907,
-0.010864906013011932,
0.07289217412471771,
-0.002574334153905511,
0.025804152712225914,
-0.030587954446673393,
0.017675742506980896,
0.019165614619851112,
-0.04151367396116257,
0.05554075166583061,
-0.03677041083574295,
-0.024891987442970276,
0.003894440596923232,
0.029006868600845337,
0.05331101641058922,
0.015841277316212654,
-0.008559154346585274,
-0.015729790553450584,
-0.053959667682647705,
0.0629597008228302,
0.014685867354273796,
-0.049621812999248505,
0.0066132009960711,
-0.045527201145887375,
-0.03725690022110939,
0.014503434300422668,
0.013439240865409374,
-0.00930915679782629,
0.025297394022345543,
-0.05339209735393524,
0.027202807366847992,
-0.07350028306245804,
-0.04029745236039162,
-0.0027719701174646616,
-0.021243324503302574,
0.011989911086857319,
0.03794609010219574,
0.026087937876582146,
0.021202784031629562,
0.04763531684875488,
-0.00467738276347518,
0.01163517963141203,
0.03561500087380409,
-0.008204422891139984,
0.01870953105390072,
-0.041006915271282196,
0.02785145863890648,
-0.013723025098443031,
0.028500109910964966,
0.06470295041799545,
0.02807443216443062,
0.017503445968031883,
-0.0070895543321967125,
-0.02594604529440403,
-0.048162344843149185,
-0.04970289394259453,
0.0007290990906767547,
-0.05387858301401138,
0.06145969405770302,
0.018831152468919754,
-0.05168938636779785,
-0.06364889442920685,
-0.000030880608392180875,
0.01854736916720867,
0.014391946606338024,
-0.03940555453300476,
0.031175794079899788,
0.024608202278614044,
-0.08391924202442169,
-0.021283864974975586,
-0.06364889442920685,
-0.047716397792100906,
-0.005194276571273804,
0.052702903747558594,
-0.05408128723502159,
0.060648880898952484,
-0.01682438887655735,
0.003387681907042861,
-0.01589195244014263,
-0.07552731782197952,
0.00846793781965971,
0.002241140231490135,
-0.04694612696766853,
-0.011868288740515709,
-0.022702788934111595,
0.009273684583604336,
-0.017229795455932617,
0.05574345588684082,
0.028459567576646805,
0.06312186270952225,
0.03366904705762863,
0.015466275624930859,
-0.0043023815378546715,
0.013591268099844456,
0.004084474872797728,
-0.03551365062594414,
-0.00040097281453199685,
-0.0029341329354792833,
0.007348001003265381,
-0.0347636453807354,
-0.005503399297595024,
0.015932492911815643,
-0.009040575474500656,
0.015861546620726585,
0.03127714619040489,
-0.02014872618019581,
0.010150376707315445,
0.02333117090165615,
-0.05022992193698883,
0.01357099786400795,
0.017452768981456757,
-0.003184978384524584,
-0.02764875441789627,
0.029250111430883408,
-0.03587851673364639,
0.006775363814085722,
0.019418993964791298,
0.014452758245170116,
-0.056594811379909515,
0.024689283221960068,
-0.03168255463242531,
0.009562536142766476,
0.007905435748398304,
0.049621812999248505,
0.018405476585030556,
-0.0765002891421318,
0.01017064694315195,
-0.018628450110554695,
-0.007869962602853775,
0.03054741397500038,
-0.007657123729586601,
0.011027068831026554,
-0.06389213353395462,
-0.014098026789724827,
-0.0007069283747114241,
0.017918987199664116,
0.06336510926485062,
0.027466321364045143,
0.006603065878152847,
-0.05598670244216919,
0.028175784274935722,
-0.0020587071776390076,
-0.055378589779138565,
0.019956156611442566,
-0.04345962405204773,
0.02020953595638275,
0.03818933665752411,
0.02302711457014084,
-0.06510835886001587,
-0.009937537834048271,
-0.03814879432320595,
0.012922346591949463,
-0.07487866282463074,
-0.06827053427696228,
0.013074374757707119,
-0.028662271797657013,
-0.00260980729945004,
-0.02665550820529461,
-0.02570280060172081,
-0.03344607353210449,
0.030466333031654358,
-0.08943277597427368,
0.041675835847854614,
-0.0377231165766716,
0.003762683365494013,
0.07520299404859543,
0.0019624230917543173,
0.028459567576646805,
0.012739913538098335,
-0.0018192636780440807,
0.008412194438278675,
-0.01215207390487194,
0.0447569265961647,
0.0059341443702578545,
0.019712913781404495,
0.04686504602432251,
0.024871716275811195,
0.0195507500320673,
0.015841277316212654,
-0.10516256093978882,
-0.014614921063184738,
-0.03249336779117584,
-0.02091899886727333,
0.04443260282278061,
-0.03561500087380409,
-0.01357099786400795,
0.040925830602645874,
-0.026959562674164772,
-0.008341248147189617,
-0.03216904029250145,
-0.06904080510139465,
-0.01056085154414177,
-0.04329746216535568,
-0.02598658576607704,
-0.0024907190818339586,
-0.04305421933531761,
-0.03123660571873188,
-0.04512179270386696,
0.06008131057024002,
-0.010672338306903839,
0.0007195973303169012,
0.055378589779138565,
0.012881806120276451,
0.011108150705695152,
-0.042405568063259125,
0.049621812999248505,
0.00429478008300066,
-0.057081300765275955,
0.014979787170886993,
0.037358250468969345,
-0.013327754102647305,
0.038756903260946274,
-0.03431769832968712,
-0.018932504579424858,
-0.05691913515329361,
-0.01512167975306511,
-0.05647318810224533,
0.02933119423687458,
0.004852214362472296,
-0.00920780561864376,
0.03024335950613022,
0.039790693670511246,
0.06498673558235168
] |
9,979
|
torch.utils.data.dataset
|
__add__
| null |
def __add__(self, other: "Dataset[T_co]") -> "ConcatDataset[T_co]":
return ConcatDataset([self, other])
|
(self, other: torch.utils.data.dataset.Dataset[+T_co]) -> torch.utils.data.dataset.ConcatDataset[+T_co]
|
[
-0.0863165631890297,
-0.020627619698643684,
0.010254339314997196,
0.04390590265393257,
-0.02759411372244358,
0.004698135424405336,
-0.03904635086655617,
-0.007089681923389435,
0.08149098604917526,
-0.04115328937768936,
0.02902139537036419,
0.013015449978411198,
0.019132371991872787,
0.035987887531518936,
0.03255561739206314,
0.0003377050452399999,
-0.017433226108551025,
0.006354801822453737,
-0.003430148819461465,
-0.007251100614666939,
-0.02927626669406891,
0.012658629566431046,
-0.015827534720301628,
0.01700844056904316,
0.0011267454829066992,
0.06565495580434799,
-0.029293257743120193,
-0.013958475552499294,
-0.04710029810667038,
-0.004855306353420019,
-0.027526147663593292,
-0.06198480725288391,
-0.0425465889275074,
-0.0508384145796299,
0.011562680825591087,
0.0007316942792385817,
-0.030686557292938232,
0.03413582220673561,
-0.021884987130761147,
0.0508384145796299,
0.036395683884620667,
-0.0750342383980751,
0.005551956128329039,
-0.007370040751993656,
0.05114426091313362,
0.014060423709452152,
-0.03534221276640892,
-0.009166887030005455,
-0.04944511502981186,
-0.042410656809806824,
0.017467210069298744,
0.0032453667372465134,
-0.0008246162324212492,
0.023720063269138336,
-0.03670153021812439,
0.045061323791742325,
0.031026385724544525,
0.057702962309122086,
-0.03500238433480263,
0.08339402824640274,
0.005088938865810633,
-0.025759035721421242,
-0.0011671001557260752,
-0.012352783232927322,
-0.00212180707603693,
0.00297987530939281,
-0.10024955123662949,
-0.02696543000638485,
0.022870490327477455,
0.029412198811769485,
-0.019370252266526222,
0.0245356522500515,
0.01016088668256998,
0.03575000911951065,
-0.006367545574903488,
-0.04173099994659424,
0.02835872769355774,
0.005670896265655756,
0.032929427921772,
-0.03751711919903755,
0.008801570162177086,
0.0028120847418904305,
-0.03809482976794243,
0.00007440396439051256,
0.004366802517324686,
-0.01335527841001749,
-0.0583486370742321,
-0.0031073112040758133,
-0.09277331084012985,
-0.04859554395079613,
-0.019523175433278084,
-0.006078690756112337,
-0.023855993524193764,
0.013363774865865707,
0.061441078782081604,
-0.007731109391897917,
-0.07041256129741669,
-0.02326129376888275,
-0.010194869711995125,
0.017875004559755325,
0.011452236212790012,
-0.001170286093838513,
0.02620081417262554,
-0.016447722911834717,
0.020270798355340958,
-0.053591031581163406,
-0.022462695837020874,
-0.014578662812709808,
-0.04546911641955376,
-0.007756596431136131,
-0.013423244468867779,
0.06483937054872513,
0.0372452549636364,
-0.032385703176259995,
0.002506238641217351,
-0.034186795353889465,
0.0005585938924923539,
0.0008856792701408267,
-0.04125523939728737,
0.04703233018517494,
0.025962933897972107,
0.07843253016471863,
0.0038082085084170103,
0.051484089344739914,
-0.026574626564979553,
0.009064937941730022,
0.05206179991364479,
-0.027016403153538704,
-0.02380502037703991,
-0.10969679057598114,
0.02465459145605564,
-0.0251983180642128,
-0.0131513811647892,
0.06038760766386986,
0.03551212698221207,
-0.014340782538056374,
0.07088832557201385,
0.02541920728981495,
-0.025945942848920822,
0.013380765914916992,
0.013066424056887627,
0.02671055682003498,
0.03666754812002182,
0.044653527438640594,
-0.03413582220673561,
0.0069070239551365376,
-0.032895445823669434,
-0.007217118050903082,
-0.038298726081848145,
-0.04020176827907562,
-0.04934316873550415,
0.008801570162177086,
0.016914987936615944,
0.0059555028565227985,
-0.019404234364628792,
0.01848669722676277,
-0.040949393063783646,
-0.006656399928033352,
0.017841020599007607,
-0.06103328615427017,
-0.034186795353889465,
0.028443684801459312,
-0.0230404045432806,
0.03975998982787132,
-0.044211748987436295,
-0.021069396287202835,
0.006061699241399765,
-0.03887643665075302,
-0.06507725268602371,
-0.0008644399349577725,
0.05671745538711548,
-0.08889926224946976,
0.08577283471822739,
0.015530183911323547,
-0.06524716317653656,
-0.01682153530418873,
-0.006715869996696711,
0.045061323791742325,
-0.01016088668256998,
0.014646628871560097,
0.06378589570522308,
0.023720063269138336,
-0.027135344222187996,
-0.013125894591212273,
0.02045770362019539,
-0.06912121176719666,
-0.002903413726016879,
-0.006155152339488268,
0.08855943381786346,
-0.00692401546984911,
0.04744012653827667,
-0.0022577387280762196,
-0.02718631736934185,
0.00019991501176264137,
0.014000954106450081,
-0.03697339445352554,
-0.02383900247514248,
0.022581635043025017,
0.016082406044006348,
0.07632558792829514,
-0.051382143050432205,
0.019370252266526222,
0.039692025631666183,
0.00494026392698288,
0.006316571030765772,
-0.01708490215241909,
-0.04591089487075806,
0.0565815232694149,
-0.08407369256019592,
-0.02295544743537903,
0.07584983110427856,
-0.010526202619075775,
-0.005203631240874529,
0.023703070357441902,
0.033592093735933304,
-0.025996915996074677,
-0.05763499438762665,
-0.04084744304418564,
0.018384747207164764,
-0.027526147663593292,
0.09107416868209839,
-0.036837462335824966,
0.020950457081198692,
0.0313832052052021,
0.02905537746846676,
-0.05287738889455795,
0.00011230285599594936,
-0.037381187081336975,
0.025555139407515526,
0.00009869642235571519,
0.03748313710093498,
0.006201878655701876,
-0.027169326320290565,
-0.08053946495056152,
0.02332925982773304,
0.054168738424777985,
0.005156904924660921,
0.006257100962102413,
0.011180373840034008,
-0.014060423709452152,
-0.07605372369289398,
0.015105398371815681,
0.0025572129525244236,
-0.013389261439442635,
-0.03571602702140808,
0.012641637586057186,
0.030482659116387367,
0.06483937054872513,
-0.03755110129714012,
0.030516643077135086,
0.021409224718809128,
0.012921997345983982,
-0.00161206373013556,
-0.013423244468867779,
-0.016269313171505928,
-0.0034046615473926067,
-0.002457388211041689,
-0.06912121176719666,
0.009226356633007526,
-0.030244778841733932,
0.016073910519480705,
0.012862526811659336,
0.0010789569932967424,
0.04288641735911369,
-0.12097911536693573,
0.00043062702752649784,
0.004447511862963438,
0.02557213045656681,
-0.038706522434949875,
0.011622151359915733,
0.04074549302458763,
0.03534221276640892,
0.035206280648708344,
-0.03996388614177704,
0.0038485631812363863,
0.022649601101875305,
0.004910528659820557,
0.01219986006617546,
-0.01921732909977436,
-0.049581047147512436,
0.00672436598688364,
-0.016413738951086998,
-0.0260818749666214,
-0.0850931778550148,
-0.027560129761695862,
-0.017356764525175095,
0.004613178316503763,
-0.008444749750196934,
-0.050974346697330475,
-0.03802686184644699,
-0.0001302899036090821,
0.012718099169433117,
0.034730520099401474,
0.023125361651182175,
0.029548129066824913,
0.0035639563575387,
-0.024331754073500633,
0.019676098600029945,
0.00905644241720438,
0.027831993997097015,
-0.013983962126076221,
-0.008542451076209545,
0.03133223205804825,
0.021579140797257423,
-0.08740401268005371,
-0.06844155490398407,
0.06378589570522308,
0.0061976308934390545,
-0.010781073942780495,
0.01716136373579502,
-0.008368288166821003,
0.07951997965574265,
-0.02531725913286209,
0.04526522010564804,
-0.017586149275302887,
0.005687887314707041,
0.010976475663483143,
0.04013380408287048,
0.009209365583956242,
0.04186692833900452,
-0.015258321538567543,
-0.05749906226992607,
-0.0064057763665914536,
-0.028460677713155746,
0.026098866015672684,
0.04071151092648506,
0.021918969228863716,
-0.0727234035730362,
0.006269844714552164,
0.025266284123063087,
0.021511174738407135,
0.002880050567910075,
0.015402748249471188,
0.07068442553281784,
-0.01084054447710514,
0.009447245858609676,
0.04309031367301941,
-0.020593635737895966,
0.013890509493649006,
-0.017603140324354172,
-0.014034937135875225,
-0.008869536221027374,
-0.005611426196992397,
0.00948122888803482,
0.019183345139026642,
-0.050566550344228745,
-0.012250835075974464,
-0.020729567855596542,
0.03467954695224762,
0.06463547050952911,
0.004131046123802662,
0.027424197643995285,
-0.019455209374427795,
-0.014833535067737103,
0.06864545494318008,
0.0727234035730362,
-0.038706522434949875,
0.09386076033115387,
-0.013652629218995571,
-0.01191950123757124,
0.07054849714040756,
-0.0033112086821347475,
0.04944511502981186,
0.029701052233576775,
-0.009753091260790825,
0.05807677283883095,
-0.008049698546528816,
-0.00345775973983109,
-0.0499548614025116,
-0.03413582220673561,
-0.010653638280928135,
0.005173895973712206,
0.04744012653827667,
0.02759411372244358,
0.004228746984153986,
-0.02108638733625412,
-0.009523707441985607,
-0.008194126188755035,
-0.021358251571655273,
-0.013508201576769352,
-0.025470182299613953,
0.004859554581344128,
-0.00732756219804287,
0.0012902881717309356,
0.010135399177670479,
0.03281048685312271,
-0.00028221734100952744,
-0.05478043109178543,
0.009625655598938465,
0.014323791489005089,
0.047372158616781235,
-0.046828433871269226,
-0.002353315707296133,
-0.006613921374082565,
-0.10792968422174454,
-0.06463547050952911,
-0.013491210527718067,
-0.03413582220673561,
-0.0313832052052021,
-0.016141876578330994,
-0.013805552385747433,
-0.05331916734576225,
0.06069345399737358,
0.04115328937768936,
-0.023210318759083748,
-0.02152816578745842,
0.004190516192466021,
-0.03911431506276131,
-0.017942970618605614,
0.015351774170994759,
-0.02152816578745842,
-0.0011628522770479321,
0.0015249825082719326,
0.06844155490398407,
0.0030435933731496334,
-0.006571442820131779,
-0.002880050567910075,
-0.038740504533052444,
0.04968299716711044,
0.08339402824640274,
0.04115328937768936,
0.05012477561831474,
-0.0416630320250988,
0.011809056624770164,
-0.008330057375133038,
0.0010582486866042018,
-0.006775340065360069,
0.050974346697330475,
-0.03379599004983902,
-0.028001908212900162,
-0.0012276321649551392,
-0.01829979009926319,
-0.00815589539706707,
-0.028783515095710754,
-0.030482659116387367,
-0.00624435767531395,
0.005411776714026928,
-0.0372452549636364,
0.06123718246817589,
0.05423670634627342,
0.02399192564189434,
-0.0359199233353138,
-0.013338287360966206,
-0.03931821137666702,
-0.10052141547203064,
-0.08339402824640274,
-0.02468857541680336,
0.03332022950053215,
-0.04744012653827667,
-0.035206280648708344,
0.10792968422174454,
0.05243561044335365,
0.028409702703356743,
0.018911482766270638,
0.03707534074783325,
0.009141399525105953,
0.04292039945721626,
-0.10276428610086441,
-0.033677052706480026,
0.020780542865395546,
-0.041017357259988785,
0.037856947630643845,
0.04183294624090195,
-0.01372059527784586,
0.010109911672770977,
-0.0003260234370827675,
0.03483247011899948,
-0.06772791594266891,
-0.014714594930410385,
0.025810010731220245,
0.007701374124735594,
-0.04407581686973572,
-0.004400785081088543,
-0.06076142191886902,
-0.0004385917854961008,
0.019013430923223495,
0.0056666480377316475,
0.005033716559410095,
0.0005761163192801178,
-0.012369775213301182,
0.016447722911834717,
0.0032751017715781927,
-0.0036382940597832203,
0.00418839231133461,
-0.003103063441812992,
0.0632081925868988,
0.006974990013986826,
-0.001644984702579677,
0.04353209212422371,
0.07598575949668884,
-0.002308713039383292,
0.06483937054872513,
-0.036871444433927536,
-0.0115202022716403,
-0.013134390115737915,
0.05338713154196739,
0.030703548341989517,
0.0028078369796276093,
0.024110866710543633,
0.028001908212900162,
-0.00017442784155718982,
-0.02292146533727646,
-0.06789782643318176,
-0.023889977484941483,
0.026982421055436134,
-0.0049742464907467365,
-0.0131513811647892,
0.014799552038311958,
-0.061814889311790466,
-0.026098866015672684,
-0.03416980430483818,
-0.05498432740569115,
-0.004982742480933666,
0.04879944026470184,
0.050022825598716736,
-0.02806987427175045,
-0.033235274255275726,
0.04798385128378868,
-0.02307438850402832,
-0.011944988742470741,
0.009200869128108025,
0.046896398067474365,
-0.030924437567591667,
-0.028171822428703308,
-0.04587691277265549,
0.01675356924533844,
-0.03281048685312271,
-0.048731476068496704,
-0.0016290551284328103,
0.016736576333642006,
-0.049105286598205566,
-0.010092920623719692,
0.007234109565615654,
0.0212732944637537,
-0.03231773525476456,
0.025011412799358368,
0.0007853235583752394,
0.029106352478265762,
0.020763549953699112,
-0.01564912497997284,
-0.0005808951682411134,
0.020916473120450974,
0.08434554934501648,
-0.025487173348665237,
-0.018724577501416206,
0.026506660506129265,
-0.009931501932442188,
0.060897354036569595,
0.026829497888684273,
0.01212339848279953,
-0.07517016679048538,
-0.03350713849067688,
-0.03177401050925255,
0.03038071095943451,
0.040949393063783646,
-0.018316781148314476,
-0.03588594123721123,
-0.005632665473967791,
-0.018350765109062195,
0.04043964669108391,
0.01965910568833351,
-0.009073433466255665,
0.056819405406713486,
0.030499650165438652,
-0.008895023725926876,
0.006771092303097248,
-0.019489191472530365,
0.016507193446159363,
-0.04064354673027992,
-0.05158603936433792,
-0.013202356174588203,
-0.04546911641955376,
-0.040541596710681915,
-0.01716136373579502,
-0.02285349927842617,
0.041459135711193085,
-0.046896398067474365,
0.010959484614431858,
-0.0526055246591568,
0.0034450162202119827,
-0.08305419981479645,
0.07992777228355408,
0.018826525658369064,
0.002931024879217148,
0.03343917056918144,
0.0012616150779649615,
-0.03707534074783325,
0.012114902958273888,
0.010381774976849556,
0.0013635638169944286,
0.009090425446629524,
0.02924228273332119,
-0.023125361651182175,
0.008869536221027374,
0.04393988847732544,
-0.022564643993973732,
-0.020508678629994392,
0.0037890931125730276,
-0.016464713960886,
-0.010364783927798271,
0.04207082837820053,
-0.015887005254626274,
0.0033749265130609274,
0.0040928153321146965,
-0.00766739109531045,
-0.01675356924533844,
-0.06259649991989136,
-0.004485742654651403,
-0.02633674629032612,
-0.028392711654305458,
0.025504164397716522,
0.06059150770306587,
0.002580576343461871,
-0.026846488937735558,
0.0014878137735649943,
-0.07421864569187164,
-0.11798862367868423,
0.004400785081088543,
0.018639620393514633,
-0.0023575634695589542,
0.020627619698643684,
0.016736576333642006,
0.0032050120644271374,
0.02939520590007305,
-0.05267349258065224,
0.0041034347377717495,
-0.007234109565615654,
-0.05029468983411789,
0.03085647150874138,
0.023448199033737183,
0.015147876925766468,
-0.012650134041905403,
0.0447554774582386,
-0.0039313966408371925,
0.02130727656185627,
-0.046828433871269226,
0.0028460677713155746,
0.0627664104104042,
0.04591089487075806,
-0.022972438484430313,
0.01332129631191492,
0.012403757311403751,
-0.05532415583729744,
-0.006991981063038111,
-0.01118886936455965,
-0.04173099994659424,
-0.03258959949016571,
-0.0587904118001461,
0.011069929227232933,
-0.04292039945721626,
-0.021630113944411278,
0.02171507105231285,
0.03629373386502266,
0.016524184495210648,
0.027899960055947304,
0.020185841247439384,
0.0007662081625312567,
-0.0010470980778336525,
0.020253807306289673,
0.00865289568901062,
0.056411609053611755,
-0.013983962126076221,
0.05559602007269859,
0.005241862032562494,
0.015708593651652336,
0.000702490215189755,
0.017875004559755325,
-0.04064354673027992,
0.04903732240200043,
0.029225291684269905,
-0.03258959949016571,
0.018894491717219353,
-0.056343644857406616,
0.010347791947424412,
0.020151859149336815,
-0.016447722911834717,
0.002540221670642495,
-0.014238834381103516,
0.005526468623429537,
-0.017297295853495598,
0.01991397887468338,
0.017654115334153175,
0.022428711876273155,
-0.013966971077024937,
-0.033524129539728165,
0.007454998325556517,
0.01043274998664856,
-0.013032441027462482,
0.009175382554531097,
-0.06385386735200882,
0.05630966275930405,
0.02399192564189434,
0.036395683884620667,
0.007892527617514133,
0.033014386892318726,
0.039658043533563614,
-0.032827477902173996,
-0.08618062734603882,
-0.07136408239603043,
0.03758508339524269,
-0.017603140324354172,
0.028392711654305458,
-0.017280302941799164,
-0.002506238641217351,
0.027509156614542007,
0.00865289568901062,
-0.0031604093965142965,
0.0065671950578689575,
0.040473632514476776,
-0.009328305721282959,
0.017535176128149033,
0.08618062734603882,
-0.009931501932442188,
0.02288748137652874,
0.01191950123757124,
-0.00913290400058031,
0.03758508339524269,
0.035138316452503204,
-0.037347204983234406,
0.03281048685312271,
-0.025232302024960518,
0.0006366483285091817,
0.09467635303735733,
0.02259862795472145,
-0.02108638733625412,
0.061814889311790466,
0.06986884027719498,
-0.06110125035047531,
-0.019081396982073784,
-0.03816279396414757,
0.03187595680356026,
0.055018313229084015,
0.055086277425289154,
0.013057928532361984,
0.025300268083810806,
-0.0052758450619876385,
-0.020967448130249977,
0.006664895918220282,
0.023244302719831467,
0.03063558228313923,
-0.027933942154049873,
-0.007331810425966978,
0.04981892928481102,
0.017203841358423233,
-0.023312268778681755,
-0.07748100906610489,
0.033235274255275726,
0.06368394941091537,
-0.010755587369203568,
0.022496677935123444,
0.030992403626441956,
0.03262358158826828,
-0.027509156614542007,
0.0075017246417701244,
0.04444963112473488,
0.02421281486749649,
0.02383900247514248,
-0.014977961778640747,
-0.007195878773927689,
-0.08801570534706116,
-0.007892527617514133,
0.018418731167912483,
0.061407096683979034,
-0.014332287013530731,
0.014332287013530731,
0.010645142756402493,
0.010772578418254852,
0.033048368990421295
] |
9,980
|
sentence_transformers.datasets.ParallelSentencesDataset
|
__getitem__
| null |
def __getitem__(self, idx):
if len(self.cache) == 0:
self.generate_data()
return self.cache.pop()
|
(self, idx)
|
[
0.022262100130319595,
-0.02820315957069397,
-0.09188390523195267,
-0.005460037384182215,
0.02232961170375347,
0.02346043847501278,
-0.051376670598983765,
0.022397123277187347,
0.06521664559841156,
-0.04658331722021103,
0.003398809814825654,
0.06710697710514069,
-0.02776433154940605,
0.009206956252455711,
-0.014717627316713333,
0.019004642963409424,
0.02729174681007862,
0.02729174681007862,
-0.013856848701834679,
-0.008683737367391586,
-0.013772458769381046,
-0.00791578833013773,
0.043410249054431915,
0.049081262201070786,
-0.03466743975877762,
0.014599481597542763,
0.06953741610050201,
-0.03676031157374382,
0.09134380519390106,
-0.015156456269323826,
-0.027190478518605232,
-0.017181817442178726,
-0.014987675473093987,
0.06325879693031311,
-0.00650647422298789,
-0.005898865405470133,
-0.028371939435601234,
-0.017890693619847298,
0.01719025708734989,
0.02830442786216736,
0.05927558243274689,
-0.05731773376464844,
0.011856804601848125,
-0.043511517345905304,
-0.009991783648729324,
0.020287372171878815,
0.002658287063241005,
0.047562241554260254,
0.004586600232869387,
-0.05120789259672165,
-0.008709054440259933,
0.041317377239465714,
0.01692020893096924,
0.03286149352788925,
-0.024203071370720863,
0.019510982558131218,
0.015012992545962334,
0.04749472811818123,
0.03800928592681885,
0.06876102834939957,
0.0032827735412865877,
-0.04067601263523102,
-0.01668391562998295,
0.012050901539623737,
0.03456617146730423,
-0.028760135173797607,
-0.025384532287716866,
0.009206956252455711,
0.023544829338788986,
0.001965233590453863,
0.03939328342676163,
0.0414186455309391,
-0.00013126610429026186,
0.003654089756309986,
-0.0010833574924618006,
-0.009789247997105122,
0.025519555434584618,
-0.010979147627949715,
0.06973995268344879,
-0.013747141696512699,
0.016110064461827278,
0.00208759936504066,
-0.0150214321911335,
-0.009257590398192406,
-0.027814965695142746,
-0.007502276916056871,
0.06548669189214706,
-0.03409358859062195,
-0.05951187387108803,
0.027207357808947563,
-0.0036097851116210222,
0.03699660673737526,
-0.009662662632763386,
-0.019240934401750565,
0.051174137741327286,
-0.0628199651837349,
-0.000029042050300631672,
-0.04685336351394653,
0.012219681404531002,
-0.008995980955660343,
0.0354100726544857,
0.03524129092693329,
-0.019105911254882812,
0.012464412488043308,
0.00771325221285224,
-0.013654313050210476,
0.023325413465499878,
0.0025063848588615656,
-0.030346667394042015,
0.017941327765583992,
0.0013882166240364313,
0.06410269439220428,
-0.05620378255844116,
-0.012793534435331821,
-0.021232539787888527,
0.0080339340493083,
-0.04786604642868042,
-0.004291235003620386,
-0.02658287063241005,
0.028186282142996788,
-0.000028415717679308727,
-0.008215373381972313,
-0.08736059814691544,
0.007476959843188524,
0.0023882389068603516,
0.017721913754940033,
-0.01514801662415266,
0.016354795545339584,
0.05006018653512001,
-0.010835684835910797,
0.01335050817579031,
-0.008219592273235321,
0.009544516913592815,
0.03228763863444328,
-0.008219592273235321,
-0.002843945287168026,
0.08864332735538483,
-0.04499678313732147,
-0.06960492581129074,
0.04361278563737869,
0.006730107590556145,
0.0037194921169430017,
0.05130916088819504,
0.05424593389034271,
0.07169780135154724,
-0.018076352775096893,
-0.00036709679989144206,
0.0444229319691658,
0.011342024430632591,
-0.037502944469451904,
0.018987765535712242,
0.02960403449833393,
0.005278598517179489,
-0.01839703507721424,
-0.012953875586390495,
-0.007747007999569178,
-0.04708965867757797,
0.02452375367283821,
-0.022937219589948654,
-0.03838060051202774,
-0.017620645463466644,
0.011924316175282001,
-0.013873727060854435,
-0.05039774626493454,
-0.01758689060807228,
0.03827933222055435,
-0.02622843347489834,
-0.005957938730716705,
-0.0444229319691658,
0.06011948361992836,
-0.03421173244714737,
-0.0250807274132967,
-0.04104732722043991,
-0.002124520018696785,
0.008768128231167793,
0.03503875434398651,
-0.06089587137103081,
0.04486175999045372,
0.054144665598869324,
-0.02310599945485592,
-0.04209376499056816,
-0.03367163613438606,
-0.0540771558880806,
-0.04759599640965462,
-0.02010171301662922,
0.02416931465268135,
0.023376047611236572,
-0.005147794261574745,
0.04425415024161339,
0.08472763001918793,
-0.030431058257818222,
-0.006797619629651308,
-0.008274446241557598,
-0.054380957037210464,
0.013046704232692719,
0.009367297403514385,
-0.04182371497154236,
0.02405116893351078,
-0.008523397147655487,
0.054617252200841904,
-0.04432166367769241,
-0.032878369092941284,
0.04968887194991112,
-0.024068046361207962,
-0.07271048426628113,
0.0039009307511150837,
-0.007869374006986618,
0.011637390591204166,
-0.07912412285804749,
0.07750383764505386,
-0.04172245040535927,
0.005957938730716705,
0.03448178246617317,
0.017553133890032768,
0.05228808522224426,
-0.011139488779008389,
-0.0564400777220726,
-0.005974816624075174,
0.018633326515555382,
-0.0015591065166518092,
0.04381532222032547,
-0.06994248926639557,
-0.02602589689195156,
0.013856848701834679,
0.027443649247288704,
-0.03247329592704773,
0.0019863310735672712,
-0.030566081404685974,
-0.048271119594573975,
-0.008228030987083912,
0.03952830657362938,
0.0023038487415760756,
0.09519199281930923,
-0.04648204892873764,
0.06751205027103424,
-0.01683581806719303,
-0.004806014243513346,
0.037401676177978516,
0.034059830009937286,
0.05168047547340393,
-0.001369228819385171,
0.04290391132235527,
0.04391659051179886,
0.023966778069734573,
-0.018683960661292076,
0.0799342691898346,
0.008759688585996628,
0.06973995268344879,
-0.029317108914256096,
-0.02023673802614212,
0.014185969717800617,
0.042465079575777054,
-0.030481692403554916,
-0.012354705482721329,
0.04843989759683609,
-0.0739256963133812,
-0.018582692369818687,
-0.021198784932494164,
0.015055187977850437,
-0.015755625441670418,
-0.040169671177864075,
-0.025587068870663643,
-0.008557152934372425,
-0.0030549203511327505,
-0.05066779628396034,
0.020321127027273178,
0.04148615524172783,
0.06994248926639557,
-0.0039726621471345425,
0.09093873202800751,
0.022920342162251472,
0.03228763863444328,
0.029553400352597237,
-0.01814386434853077,
0.03527504950761795,
0.022447757422924042,
0.04415288195014,
0.007936885580420494,
-0.03713162988424301,
0.03328344225883484,
0.035207536071538925,
0.02995847351849079,
-0.02614404261112213,
-0.006253303959965706,
-0.04209376499056816,
-0.0474272184073925,
0.016911769285798073,
0.014076262712478638,
0.028186282142996788,
0.01883586309850216,
0.01614381931722164,
0.025013215839862823,
-0.03551134094595909,
-0.02383175492286682,
0.022245220839977264,
-0.03432988002896309,
-0.056473832577466965,
0.034144219011068344,
0.029317108914256096,
0.07824646681547165,
-0.04452420026063919,
-0.06126718968153,
-0.056946415454149246,
0.008055032230913639,
0.029198963195085526,
0.014911724254488945,
-0.004223722964525223,
0.01897088624536991,
0.0033903708681464195,
0.013806214556097984,
0.03132559359073639,
-0.0008133092778734863,
0.005291257053613663,
0.05039774626493454,
0.015223967842757702,
-0.039258260279893875,
-0.04793355613946915,
0.044456686824560165,
0.022262100130319595,
0.07507340610027313,
-0.05245686694979668,
0.009991783648729324,
-0.014287238009274006,
0.0012605766532942653,
0.01687801256775856,
-0.028861403465270996,
-0.030110375955700874,
-0.025131361559033394,
-0.0363214835524559,
0.010768172331154346,
0.015662796795368195,
-0.043747808784246445,
0.004194186069071293,
-0.003052810672670603,
-0.010185880586504936,
0.03780674934387207,
0.005679451394826174,
0.011080415919423103,
0.014346310868859291,
0.004012747667729855,
0.015721868723630905,
-0.05897177755832672,
-0.013603678904473782,
0.029198963195085526,
0.053098227828741074,
-0.000734721019398421,
0.08958849310874939,
-0.013375825248658657,
0.011569878086447716,
-0.017553133890032768,
0.009958027862012386,
-0.02371360920369625,
0.06828843802213669,
0.056946415454149246,
0.07932665944099426,
-0.024000534787774086,
0.028625110164284706,
-0.02705545537173748,
-0.03198383376002312,
-0.03551134094595909,
-0.00046520025352947414,
-0.016742989420890808,
-0.041452400386333466,
0.0033439563121646643,
-0.02970530278980732,
-0.03709787130355835,
-0.04590819776058197,
0.01701303757727146,
-0.010025539435446262,
-0.05836417153477669,
-0.04762975499033928,
-0.013569922186434269,
-0.041452400386333466,
0.04175620526075363,
0.04104732722043991,
-0.10282085835933685,
-0.0029156766831874847,
0.04472673684358597,
-0.017401231452822685,
-0.018987765535712242,
0.020405517891049385,
-0.005489573813974857,
-0.018683960661292076,
0.055899981409311295,
0.011797730810940266,
0.03574763238430023,
-0.017772547900676727,
-0.018076352775096893,
0.03147749602794647,
-0.012354705482721329,
-0.00516889151185751,
-0.02310599945485592,
-0.04091230407357216,
-0.015409626066684723,
-0.0603557750582695,
0.011181684210896492,
0.07763886451721191,
-0.021300053223967552,
-0.07345311343669891,
-0.0363214835524559,
0.009637345559895039,
0.016371672973036766,
-0.012582559138536453,
0.04921628534793854,
0.013738702982664108,
-0.03561260923743248,
0.026059651747345924,
-0.01110573299229145,
-0.010768172331154346,
0.007755447179079056,
-0.03480246290564537,
-0.011780853383243084,
0.001996879931539297,
-0.03294588252902031,
0.05019520968198776,
-0.012059340253472328,
0.0032342493068426847,
0.022110197693109512,
-0.011401098221540451,
0.10984210669994354,
-0.002919896272942424,
0.006261743139475584,
-0.0017700815806165338,
0.001033250824548304,
-0.049655113369226456,
-0.016295721754431725,
-0.003605565521866083,
-0.0013871616683900356,
-0.06373137980699539,
0.03448178246617317,
-0.03503875434398651,
-0.09809501469135284,
-0.011696463450789452,
-0.007101424038410187,
0.006206889171153307,
-0.026397213339805603,
-0.02879389002919197,
-0.049756381660699844,
-0.06649937480688095,
0.045469366014003754,
0.06464278697967529,
0.03179817646741867,
0.0402371846139431,
0.02695418708026409,
-0.0028270671609789133,
0.001879788702353835,
-0.028270673006772995,
0.025046972557902336,
0.016034113243222237,
-0.05053277313709259,
0.037401676177978516,
0.03719913959503174,
0.01940971612930298,
0.04290391132235527,
0.029620913788676262,
-0.05157920718193054,
-0.0943143367767334,
-0.022616537287831306,
0.007582447491586208,
0.005928402300924063,
-0.04270137473940849,
0.06011948361992836,
-0.005671012215316296,
-0.07716627418994904,
0.015198650769889355,
0.004320771433413029,
-0.019797910004854202,
0.01687801256775856,
-0.05262564495205879,
-0.014017189852893353,
-0.047123413532972336,
-0.05873548611998558,
-0.05556241795420647,
-0.12651759386062622,
-0.03500499948859215,
-0.01392436120659113,
-0.022008929401636124,
0.02729174681007862,
0.020422395318746567,
-0.02602589689195156,
0.008666859939694405,
-0.02577272616326809,
0.022700928151607513,
0.02946901135146618,
-0.04823736101388931,
-0.019595373421907425,
0.02659974806010723,
0.026616627350449562,
-0.010565636679530144,
-0.004099247511476278,
-0.02464189939200878,
-0.01680206134915352,
-0.004460014868527651,
0.021249419078230858,
0.024422485381364822,
0.024422485381364822,
0.029452133923768997,
0.02761242911219597,
0.01155299972742796,
-0.03421173244714737,
0.005181550048291683,
-0.0246250219643116,
0.0190721545368433,
0.009839882142841816,
-0.017072109505534172,
-0.016489818692207336,
0.010877879336476326,
0.03662528842687607,
-0.011679585091769695,
-0.07412823289632797,
0.0010258667171001434,
0.022481514140963554,
-0.010616269893944263,
0.0020633370149880648,
0.0471571683883667,
0.028979549184441566,
-0.04570566117763519,
-0.03851562738418579,
-0.046178244054317474,
0.04347776249051094,
0.07460081577301025,
0.03804304078221321,
0.020658688619732857,
-0.005012769717723131,
-0.006240645423531532,
0.01689489185810089,
-0.01664172112941742,
-0.020202981308102608,
0.013207045383751392,
0.030042864382267,
-0.05330076441168785,
-0.01543494313955307,
0.008198495022952557,
0.06295499205589294,
0.03402607515454292,
-0.019713519141077995,
0.011578316800296307,
-0.06342757493257523,
-0.009772369638085365,
0.00557396374642849,
-0.0016308380290865898,
-0.020371761173009872,
0.055764954537153244,
-0.11659331619739532,
-0.013569922186434269,
-0.0222114659845829,
-0.015586845576763153,
0.01618601381778717,
0.034836217761039734,
-0.02151946723461151,
-0.06082835793495178,
-0.026059651747345924,
0.09046614915132523,
-0.05711519718170166,
0.05849919468164444,
0.030937397852540016,
-0.035106267780065536,
-0.02450687438249588,
0.027376137673854828,
0.022684048861265182,
0.043747808784246445,
0.012185925617814064,
0.03672655671834946,
0.024793801829218864,
-0.013721824623644352,
0.031123057007789612,
-0.03294588252902031,
-0.02023673802614212,
0.04577317088842392,
-0.045030537992715836,
-0.022464634850621223,
-0.04357903078198433,
-0.011080415919423103,
0.02116502821445465,
0.00375957740470767,
0.017181817442178726,
-0.011949633248150349,
-0.0708201453089714,
0.014886408112943172,
-0.05711519718170166,
0.010903196409344673,
0.004143552388995886,
0.04725843667984009,
-0.023291658610105515,
0.036355242133140564,
0.0036140044685453176,
-0.020641809329390526,
0.03662528842687607,
0.021013125777244568,
-0.010472807101905346,
0.0360514372587204,
0.005970597267150879,
-0.014692310243844986,
-0.0034747610334306955,
0.0594443641602993,
0.04310644418001175,
-0.02776433154940605,
0.002487397287040949,
-0.08013680577278137,
-0.015527771785855293,
-0.014093141071498394,
0.04415288195014,
-0.00375957740470767,
-0.0025063848588615656,
0.009350419044494629,
0.026397213339805603,
-0.06258367002010345,
0.03557885065674782,
0.040540989488363266,
-0.02727486938238144,
-0.02450687438249588,
0.017384354025125504,
0.017890693619847298,
0.00516889151185751,
0.018565814942121506,
-0.06092962622642517,
-0.01121543999761343,
0.011721780523657799,
-0.008282884955406189,
-0.015738748013973236,
-0.024878190830349922,
0.0282200388610363,
-0.04371405392885208,
0.0310893002897501,
-0.027224235236644745,
-0.06960492581129074,
0.09687979519367218,
-0.02070932276546955,
0.02391614392399788,
0.045469366014003754,
0.006633059121668339,
-0.031139934435486794,
0.020861225202679634,
0.015358991920948029,
0.00627440121024847,
0.0006650991854257882,
0.00879344530403614,
0.052186816930770874,
-0.0010886318050324917,
0.009502321481704712,
0.015915965661406517,
0.0002916731755249202,
0.00832086056470871,
-0.02855759859085083,
-0.040540989488363266,
-0.025063849985599518,
0.016548892483115196,
0.013434898108243942,
0.0747358426451683,
-0.005181550048291683,
-0.04101357236504555,
-0.027882477268576622,
0.02347731590270996,
0.007460081949830055,
0.00491150189191103,
0.006666815374046564,
0.04037220776081085,
-0.02692043036222458,
-0.022397123277187347,
-0.036591533571481705,
-0.04766350984573364,
-0.004409381188452244,
-0.06548669189214706,
-0.0474272184073925,
0.04270137473940849,
-0.042363815009593964,
-0.026549113914370537,
0.020489908754825592,
-0.005768061149865389,
0.03216949477791786,
-0.046076975762844086,
-0.00983144249767065,
-0.03922450169920921,
0.01422816514968872,
0.01351928897202015,
-0.046515803784132004,
0.007485399022698402,
-0.013688068836927414,
-0.03429612144827843,
0.05367208272218704,
0.028861403465270996,
0.015198650769889355,
-0.011131050065159798,
0.07568100839853287,
-0.053469546139240265,
0.06714073568582535,
-0.004147771745920181,
-0.08189211785793304,
0.0169539637863636,
-0.05593373626470566,
-0.002940993756055832,
-0.06325879693031311,
0.044456686824560165,
-0.006633059121668339,
-0.05400964245200157,
-0.019747275859117508,
-0.020152347162365913,
-0.010894757695496082,
-0.0052490620873868465,
-0.0007574008195661008,
-0.005928402300924063,
0.03973084315657616,
0.017283085733652115,
-0.009384175762534142,
-0.009552955627441406,
0.00919851753860712,
-0.07041507214307785,
0.028473207727074623,
-0.05674387887120247,
-0.035882655531167984,
0.03881943225860596,
0.06305626034736633,
0.0003169901901856065,
0.025857117027044296,
-0.00480179488658905,
-0.00531657412648201,
-0.021671369671821594,
0.05306447297334671,
-0.017148060724139214,
0.05222057178616524,
0.00748117920011282,
0.0093082245439291,
0.01705523207783699,
0.042127519845962524,
-0.010430612601339817,
0.006603522691875696,
-0.01594972237944603,
-0.06926736980676651,
-0.03800928592681885,
0.04955384507775307,
0.009552955627441406,
-0.05934309586882591,
0.06744454056024551,
-0.0474272184073925,
0.018903374671936035,
-0.07190033793449402,
0.0005701603950001299,
-0.007848275825381279,
0.02843945287168026,
0.01599191688001156,
-0.04870994761586189,
-0.0018386485753580928,
-0.02519887313246727,
0.05974816530942917,
-0.011477049440145493,
-0.010430612601339817,
0.014565725810825825,
0.028051257133483887,
-0.01681894063949585,
-0.003356614848598838,
0.05657510086894035,
0.04300517588853836,
-0.010143686085939407,
0.0765586644411087,
0.03851562738418579,
-0.021468833088874817,
-0.019257813692092896,
0.0008143641171045601,
0.025603946298360825,
0.007611983921378851,
-0.029519645497202873,
-0.011595195159316063,
-0.07048258185386658,
0.030717983841896057,
-0.062246114015579224,
-0.008742811158299446,
0.03733416646718979,
0.027359260246157646
] |
9,981
|
sentence_transformers.datasets.ParallelSentencesDataset
|
__init__
|
Parallel sentences dataset reader to train student model given a teacher model
:param student_model: Student sentence embedding model that should be trained
:param teacher_model: Teacher model, that provides the sentence embeddings for the first column in the dataset file
|
def __init__(
self,
student_model: SentenceTransformer,
teacher_model: SentenceTransformer,
batch_size: int = 8,
use_embedding_cache: bool = True,
):
"""
Parallel sentences dataset reader to train student model given a teacher model
:param student_model: Student sentence embedding model that should be trained
:param teacher_model: Teacher model, that provides the sentence embeddings for the first column in the dataset file
"""
self.student_model = student_model
self.teacher_model = teacher_model
self.datasets = []
self.datasets_iterator = []
self.datasets_tokenized = []
self.dataset_indices = []
self.copy_dataset_indices = []
self.cache = []
self.batch_size = batch_size
self.use_embedding_cache = use_embedding_cache
self.embedding_cache = {}
self.num_sentences = 0
|
(self, student_model: <module 'sentence_transformers.SentenceTransformer' from '/usr/local/lib/python3.10/site-packages/sentence_transformers/SentenceTransformer.py'>, teacher_model: <module 'sentence_transformers.SentenceTransformer' from '/usr/local/lib/python3.10/site-packages/sentence_transformers/SentenceTransformer.py'>, batch_size: int = 8, use_embedding_cache: bool = True)
|
[
-0.007666979916393757,
0.003489428898319602,
-0.05910409241914749,
0.004077587276697159,
-0.03632167726755142,
0.0033336717169731855,
-0.021220192313194275,
-0.005374790169298649,
0.059290070086717606,
0.008201668970286846,
0.002322411397472024,
-0.00907112006098032,
-0.06795668601989746,
0.0332530252635479,
-0.006035014986991882,
0.022057097405195236,
0.0025641839019954205,
0.005379439331591129,
-0.017537809908390045,
-0.021592149510979652,
-0.02934746816754341,
0.00488194590434432,
-0.042775146663188934,
0.010284632444381714,
-0.027896834537386894,
0.027915431186556816,
-0.00015895382966846228,
-0.05772784724831581,
0.04790816083550453,
0.02713431976735592,
0.014571445994079113,
0.02428884245455265,
-0.047424618154764175,
0.01465513650327921,
-0.0021724659018218517,
-0.026929743587970734,
-0.026911145076155663,
0.037195779383182526,
-0.05843456834554672,
0.014078602194786072,
0.001273955451324582,
-0.061038270592689514,
0.05884372070431709,
0.0007613510824739933,
-0.04348186403512955,
0.02250344678759575,
0.014431961812078953,
-0.011223826557397842,
-0.004261241294443607,
-0.07160187512636185,
-0.039241544902324677,
-0.008406246080994606,
0.03230453282594681,
0.016812492161989212,
-0.052036892622709274,
-0.022726619616150856,
-0.0204576775431633,
0.06126144528388977,
-0.031021278351545334,
0.01911862939596176,
0.01582680456340313,
-0.04764779284596443,
0.07502388209104538,
0.1012469083070755,
-0.01761220023036003,
0.0045448592863976955,
-0.018774569034576416,
0.023228762671351433,
-0.00790875218808651,
0.028901120647788048,
0.0009397745598107576,
-0.032434720546007156,
-0.034034136682748795,
0.056835148483514786,
0.008136576041579247,
0.022280272096395493,
-0.07015123963356018,
-0.023284556344151497,
0.006964909378439188,
0.021461963653564453,
0.04322149604558945,
0.003463856875896454,
-0.04470932483673096,
-0.03329022228717804,
-0.01008935458958149,
-0.028324585407972336,
0.05185091495513916,
-0.02893831580877304,
0.0037823456805199385,
0.014301776885986328,
-0.06687800586223602,
0.08495515584945679,
0.04452334716916084,
-0.026669373735785484,
0.040059853345155716,
0.005746747832745314,
-0.010033560916781425,
-0.023656515404582024,
-0.02713431976735592,
-0.025702282786369324,
0.007899453863501549,
0.00907112006098032,
0.040320225059986115,
-0.0004254267259966582,
-0.051776524633169174,
-0.04366784542798996,
-0.037195779383182526,
-0.024456223472952843,
0.0013936792965978384,
0.01036832295358181,
-0.042514774948358536,
0.03591252490878105,
0.008266761898994446,
0.09388214349746704,
-0.046866681426763535,
-0.027115723118185997,
0.0006666181143373251,
0.006504611577838659,
-0.02471659518778324,
0.005951324477791786,
0.03154202178120613,
0.07011403888463974,
-0.08450880646705627,
0.0015552485128864646,
-0.028491966426372528,
-0.020122915506362915,
0.013018522411584854,
0.01344627421349287,
0.03673082962632179,
-0.09656023979187012,
0.03189538046717644,
-0.027748050168156624,
0.0316908024251461,
0.03806987777352333,
0.05512414500117302,
-0.042477577924728394,
0.013743840157985687,
0.04158487915992737,
-0.04377943277359009,
0.02932887151837349,
0.010861167684197426,
-0.012125823646783829,
0.03572654351592064,
0.008768904954195023,
0.019564978778362274,
-0.014980599284172058,
-0.019843947142362595,
-0.0575418695807457,
-0.02672516740858555,
-0.0113168153911829,
0.040989749133586884,
-0.012051432393491268,
-0.02073664590716362,
-0.031021278351545334,
-0.017984159290790558,
0.019471989944577217,
-0.018765270709991455,
-0.07677208632230759,
0.0434446707367897,
-0.014506353996694088,
-0.05118139088153839,
-0.032137151807546616,
-0.022001303732395172,
0.04761059582233429,
-0.01829102449119091,
0.04270075261592865,
-0.00596992252394557,
-0.01857929117977619,
-0.048763666301965714,
0.029087098315358162,
0.020773842930793762,
0.024177255108952522,
-0.008248163387179375,
-0.0006939337472431362,
0.010591497644782066,
0.013818231411278248,
0.05010271444916725,
0.022075694054365158,
0.02577667497098446,
0.025832468643784523,
-0.02958924137055874,
0.026687970384955406,
-0.00860152393579483,
-0.01173526793718338,
-0.001190264942124486,
0.027264505624771118,
0.01790046878159046,
0.022875403985381126,
0.0219827052205801,
0.0010786775965243578,
-0.015371154993772507,
-0.019602175801992416,
-0.03453627973794937,
0.015389753505587578,
-0.02495836652815342,
0.0355219691991806,
-0.009215254336595535,
-0.01598488539457321,
-0.032397523522377014,
0.030928289517760277,
0.0020957496017217636,
0.03665643930435181,
0.05021430179476738,
-0.020625058561563492,
-0.06330721825361252,
0.03939032927155495,
-0.07480070739984512,
0.08555029332637787,
-0.09842003136873245,
0.0012879038695245981,
-0.007388011552393436,
-0.06817986071109772,
0.07569340616464615,
0.058322980999946594,
0.09916394203901291,
-0.05185091495513916,
0.00858292542397976,
0.03440609574317932,
-0.013790334574878216,
-0.013874025084078312,
0.08316975831985474,
0.0008677077712491155,
-0.03475945442914963,
-0.010619394481182098,
0.013111512176692486,
-0.04586239531636238,
0.03994826599955559,
-0.02538611926138401,
-0.03531739115715027,
0.0010379946324974298,
0.029979797080159187,
-0.001971376361325383,
-0.022150086238980293,
0.009085068479180336,
0.023247361183166504,
-0.020922625437378883,
-0.02594405598938465,
0.005235305987298489,
-0.029924003407359123,
-0.03741895407438278,
0.02440042980015278,
0.02060646191239357,
-0.0012925532646477222,
-0.05222287401556969,
0.030537733808159828,
0.03927874192595482,
0.05772784724831581,
0.017649397253990173,
-0.012293204665184021,
-0.025274531915783882,
0.007732072379440069,
0.02635320834815502,
-0.06207975372672081,
0.011558587662875652,
0.006444168742746115,
-0.07372203469276428,
0.026557786390185356,
-0.026037044823169708,
-0.0003670177247840911,
0.0006985832005739212,
-0.037753716111183167,
-0.03343900293111801,
-0.011846855282783508,
0.05891811102628708,
-0.030109982937574387,
0.012256008572876453,
-0.006486013997346163,
-0.005416635423898697,
0.019453391432762146,
-0.019992731511592865,
0.0996846854686737,
0.08227705955505371,
0.005997819360345602,
0.003505702130496502,
0.003587067825719714,
-0.02826879173517227,
-0.04225440323352814,
0.006448817905038595,
0.005556119605898857,
0.039501916617155075,
0.03167220577597618,
-0.01432967372238636,
-0.00443094689399004,
-0.019620772451162338,
0.03994826599955559,
-0.054082661867141724,
-0.03860921785235405,
-0.046457525342702866,
0.0221128910779953,
-0.02183392271399498,
-0.014348271302878857,
0.021499160677194595,
0.04735022410750389,
-0.02144336700439453,
-0.0008694513235241175,
-0.0848807692527771,
-0.018858259543776512,
0.012032833881676197,
0.03972509130835533,
-0.009457026608288288,
-0.03070511482656002,
-0.007192733697593212,
0.03156061843037605,
0.014571445994079113,
-0.029384665191173553,
-0.03156061843037605,
0.02101561427116394,
-0.000623029307462275,
0.013892623595893383,
-0.0302959606051445,
0.06315843015909195,
0.03163500875234604,
0.017779581248760223,
0.016896182671189308,
-0.028584955260157585,
0.02347053587436676,
0.024586409330368042,
0.033885352313518524,
0.014627239666879177,
0.03838604316115379,
-0.037995487451553345,
0.013502067886292934,
0.06379076093435287,
-0.0240284726023674,
0.017100758850574493,
-0.026111437007784843,
0.07982213795185089,
-0.025218738242983818,
-0.027599267661571503,
0.024735191836953163,
0.0006567379459738731,
-0.01843980699777603,
-0.0037776962853968143,
0.020011328160762787,
-0.03741895407438278,
0.009089718572795391,
-0.01898844540119171,
0.012972027994692326,
0.04980514571070671,
-0.025981251150369644,
0.04206842556595802,
-0.08220267295837402,
-0.005983870942145586,
0.03202556446194649,
0.018997743725776672,
-0.05999679118394852,
0.026818156242370605,
0.002880348125472665,
0.03983667865395546,
0.06806827336549759,
0.013464871793985367,
0.07654891163110733,
0.03167220577597618,
0.05062345415353775,
0.00032488186843693256,
-0.021908313035964966,
-0.03723297268152237,
-0.02196410670876503,
-0.0009380310075357556,
-0.033643580973148346,
-0.030072785913944244,
-0.0004652378265745938,
-0.03462927043437958,
0.0434446707367897,
-0.03414572402834892,
0.003524299943819642,
-0.0037962940987199545,
-0.04489530622959137,
0.04898684099316597,
0.02361931838095188,
-0.01731463521718979,
0.0012751177418977022,
-0.007346166297793388,
0.05490097030997276,
0.013781036250293255,
-0.0363030806183815,
-0.0731268972158432,
0.041138529777526855,
-0.013604355975985527,
0.01465513650327921,
-0.051627740263938904,
-0.023358948528766632,
0.07375922799110413,
0.006723137106746435,
-0.0027315649203956127,
-0.03721437603235245,
0.027896834537386894,
-0.004014819394797087,
0.0869637280702591,
0.020550668239593506,
0.0004791862447746098,
-0.02931027300655842,
-0.01310221292078495,
-0.06341880559921265,
0.012107226066291332,
-0.011186630465090275,
-0.04314710199832916,
0.01883966103196144,
-0.004433271940797567,
-0.0282501932233572,
-0.03669363632798195,
0.01584540121257305,
0.01608717441558838,
0.06509260833263397,
-0.04255197197198868,
0.06639446318149567,
0.060368746519088745,
-0.007364763878285885,
0.008029638789594173,
0.03070511482656002,
0.02880812995135784,
0.03808847814798355,
0.03628448024392128,
0.02904990315437317,
-0.022986991330981255,
-0.006895167287439108,
0.013529964722692966,
0.0039032320491969585,
0.03355059027671814,
0.058322980999946594,
-0.0043588802218437195,
0.08956743776798248,
0.017110057175159454,
-0.034722257405519485,
-0.005876932758837938,
0.02427024580538273,
-0.07197383046150208,
-0.002436323557049036,
-0.0014506353763863444,
-0.058732133358716965,
-0.08138436079025269,
0.016812492161989212,
-0.02771085500717163,
-0.016449833288788795,
-0.008336503989994526,
0.03557776287198067,
-0.03916715458035469,
0.019825350493192673,
-0.016012782230973244,
-0.015882598236203194,
0.02646479569375515,
-0.0518881119787693,
0.03576374053955078,
-0.019193021580576897,
-0.01718444935977459,
-0.025348922237753868,
-0.06695239990949631,
0.08093801140785217,
-0.019750958308577538,
-0.020904026925563812,
0.04813133552670479,
0.04299832135438919,
0.007253176998347044,
0.025144346058368683,
-0.004909842740744352,
0.002943116007372737,
0.07569340616464615,
-0.0302959606051445,
0.010684487409889698,
0.009856881573796272,
0.005328295286744833,
-0.006667343433946371,
0.03715858235955238,
0.017091460525989532,
-0.000045332355512073264,
0.003940427675843239,
0.007936649024486542,
-0.003584743244573474,
-0.019034938886761665,
-0.02919868566095829,
0.04314710199832916,
0.0055328719317913055,
0.04377943277359009,
-0.051776524633169174,
-0.03916715458035469,
0.015268866904079914,
0.014487755484879017,
-0.06539017707109451,
0.016328945755958557,
0.004403050057590008,
0.01923021674156189,
-0.03475945442914963,
0.05140456557273865,
0.04887525364756584,
-0.012060730718076229,
-0.042663559317588806,
-0.04102694243192673,
-0.018225930631160736,
0.017435520887374878,
0.029533447697758675,
-0.02934746816754341,
0.059848006814718246,
0.055347319692373276,
-0.0027199413161724806,
0.045081283897161484,
0.02361931838095188,
0.007546093314886093,
0.06501822173595428,
0.01583610288798809,
0.027208711951971054,
0.02646479569375515,
-0.02508855238556862,
0.01662651263177395,
-0.06974208354949951,
0.04310990869998932,
0.05761625990271568,
-0.04173366352915764,
-0.03550336882472038,
-0.04597398266196251,
-0.0048354510217905045,
0.00927569717168808,
-0.04872646927833557,
0.0037544488441199064,
0.011400505900382996,
0.024381833150982857,
-0.012879038229584694,
-0.01759360358119011,
0.055607687681913376,
-0.005388738587498665,
0.03916715458035469,
0.059141285717487335,
0.0302959606051445,
0.0038172167260199785,
-0.04322149604558945,
-0.035112813115119934,
-0.002447947161272168,
0.010359024628996849,
-0.013939118012785912,
0.05062345415353775,
0.048242922872304916,
-0.034313105046749115,
-0.0526692233979702,
-0.009587211534380913,
0.030593527480959892,
0.019713763147592545,
0.005430583842098713,
0.011967741884291172,
-0.03319723159074783,
0.08874912559986115,
-0.0016598616493865848,
-0.02181532420217991,
-0.007573990151286125,
0.012386194430291653,
-0.02702273242175579,
0.021052811294794083,
-0.022298868745565414,
-0.03565215319395065,
0.0792270079255104,
-0.03275088220834732,
0.011623680591583252,
0.013018522411584854,
-0.021517757326364517,
-0.026427600532770157,
-0.04690387472510338,
0.06635726988315582,
-0.008434142917394638,
-0.033346015959978104,
-0.01762150041759014,
0.021499160677194595,
0.05579366907477379,
0.0025781323201954365,
-0.010275334119796753,
-0.001172829419374466,
-0.025348922237753868,
0.05891811102628708,
-0.018914053216576576,
-0.01717515103518963,
-0.027859637513756752,
-0.0636419802904129,
-0.03174659609794617,
0.027803843840956688,
-0.01853279583156109,
-0.02006712183356285,
0.05337594076991081,
-0.053152766078710556,
0.03122585639357567,
-0.04820572957396507,
-0.02172233536839485,
-0.04028302803635597,
0.002394478302448988,
0.030072785913944244,
0.022949794307351112,
0.011400505900382996,
0.004119432531297207,
0.008359750732779503,
-0.02140616998076439,
0.0007392661063931882,
-0.017100758850574493,
-0.003587067825719714,
-0.0037009799852967262,
-0.014208787120878696,
0.015399051830172539,
-0.02945905551314354,
0.008341153152287006,
0.051107000559568405,
0.00893163587898016,
-0.0037219026125967503,
-0.025813870131969452,
0.011502793990075588,
-0.034182921051979065,
-0.053152766078710556,
0.029384665191173553,
-0.028157204389572144,
0.05337594076991081,
0.012516379356384277,
-0.0864429920911789,
-0.08584785461425781,
0.021796725690364838,
-0.009921973571181297,
0.02986820973455906,
-0.02099701762199402,
0.0037823456805199385,
0.046048372983932495,
-0.061744991689920425,
0.0007933162269182503,
-0.04567641392350197,
-0.0403946153819561,
-0.02196410670876503,
0.04894964396953583,
-0.05809980630874634,
0.05021430179476738,
-0.006551106460392475,
0.007467052433639765,
0.01758430339396,
-0.0695561021566391,
-0.026836754754185677,
0.012637265957891941,
-0.08733569085597992,
0.02006712183356285,
-0.023563524708151817,
0.024623604491353035,
-0.02032749354839325,
0.08056605607271194,
0.00955931469798088,
0.06512980908155441,
0.02495836652815342,
0.027859637513756752,
0.017946962267160416,
0.045527633279561996,
-0.017984159290790558,
-0.04515567421913147,
0.00010323281458113343,
0.002394478302448988,
-0.010247437283396721,
-0.03561495617032051,
-0.033755168318748474,
0.016542822122573853,
0.004161277785897255,
0.06821705400943756,
0.05557049438357353,
-0.02019730769097805,
0.0062628393061459064,
0.012441988103091717,
-0.01843050867319107,
-0.019750958308577538,
-0.002375880256295204,
0.01625455543398857,
-0.03284387290477753,
0.03849763050675392,
-0.03968789428472519,
-0.0403946153819561,
0.011093640699982643,
0.0398738756775856,
-0.011902648955583572,
0.029663633555173874,
-0.03209995850920677,
-0.030221570283174515,
0.026948342099785805,
0.0403946153819561,
0.013120810501277447,
-0.07256896048784256,
0.038795195519924164,
-0.007206682115793228,
-0.008564327843487263,
0.020699450746178627,
-0.019602175801992416,
0.016347544267773628,
-0.09842003136873245,
0.0038637113757431507,
0.0002751906285993755,
-0.00117689766921103,
0.04775938019156456,
0.018477002158761024,
-0.007871557027101517,
-0.06687800586223602,
0.039911068975925446,
-0.002964038634672761,
-0.006467415951192379,
0.001981837674975395,
-0.05173932760953903,
-0.001266981242224574,
0.049581971019506454,
0.039092764258384705,
-0.07353605329990387,
-0.024921171367168427,
-0.04191964119672775,
-0.0056630573235452175,
-0.09529558569192886,
-0.050549063831567764,
0.023265959694981575,
-0.03156061843037605,
0.011688773520290852,
-0.04697826877236366,
-0.008615472353994846,
-0.04723863676190376,
0.017937663942575455,
-0.07848308980464935,
0.04969355836510658,
-0.016831088811159134,
-0.03994826599955559,
0.09618828445672989,
-0.013604355975985527,
0.05690954253077507,
0.00888049229979515,
0.01167017500847578,
0.011354011483490467,
0.0016633487539365888,
0.03693540766835213,
0.006341880187392235,
-0.011921246536076069,
0.05795102193951607,
-0.02142476849257946,
0.023935483768582344,
0.016607914119958878,
-0.04969355836510658,
-0.04310990869998932,
-0.03163500875234604,
-0.016682306304574013,
0.07599097490310669,
-0.03230453282594681,
0.022875403985381126,
0.020680852234363556,
-0.030333157628774643,
-0.020625058561563492,
-0.01274885330349207,
-0.0889723002910614,
0.02347053587436676,
-0.02443762682378292,
0.006551106460392475,
0.005146965850144625,
-0.0021957133430987597,
-0.01008935458958149,
-0.006383725441992283,
0.04322149604558945,
-0.023228762671351433,
-0.0023177620023489,
0.03797689080238342,
0.0031500174663960934,
0.030333157628774643,
-0.06483224034309387,
0.035670749843120575,
0.01638473942875862,
-0.023098578676581383,
0.013390480540692806,
0.03611709922552109,
-0.05010271444916725,
0.04679228737950325,
-0.039501916617155075,
-0.016589317470788956,
-0.07532145082950592,
-0.033922549337148666,
-0.07323848456144333,
0.03602411225438118,
-0.004526261240243912,
0.0009432616643607616,
0.046866681426763535,
0.04708985611796379,
0.04288673400878906
] |
9,982
|
sentence_transformers.datasets.ParallelSentencesDataset
|
__len__
| null |
def __len__(self):
return self.num_sentences
|
(self)
|
[
-0.00824221596121788,
-0.0008933870703913271,
-0.003715584287419915,
0.04156514257192612,
0.01526580285280943,
0.03013637475669384,
0.0027316235937178135,
-0.0411040373146534,
0.08187871426343918,
-0.0009443347807973623,
-0.013157903216779232,
-0.04792177677154541,
-0.025080708786845207,
-0.023697400465607643,
-0.0022025902289897203,
0.03616365045309067,
0.03573548048734665,
-0.05088600888848305,
0.0072294361889362335,
0.025986447930336,
-0.010127797722816467,
0.04611029848456383,
0.025937043130397797,
-0.041071102023124695,
-0.0281931534409523,
0.012696799822151661,
0.04133458808064461,
-0.04597855359315872,
0.05187408626079559,
0.026925120502710342,
-0.06007513403892517,
-0.012532120570540428,
0.03120679222047329,
0.015685735270380974,
0.02951059117913246,
-0.014854103326797485,
-0.021540096029639244,
-0.006093146745115519,
0.00801578164100647,
0.01801595278084278,
-0.04960150644183159,
-0.019810961559414864,
0.0061137317679822445,
0.013693111948668957,
-0.014360064640641212,
-0.024883093312382698,
0.017406638711690903,
0.031338535249233246,
-0.030004629865288734,
-0.07239317148923874,
0.0072829569689929485,
0.03267243877053261,
0.007962260395288467,
-0.014475340023636818,
-0.05230225250124931,
0.028868339955806732,
0.011165279895067215,
0.04051119089126587,
-0.03321588411927223,
0.040412385016679764,
-0.002999227959662676,
0.006467792671173811,
0.056913282722234726,
-0.04308019205927849,
0.020848441869020462,
0.010638304986059666,
0.01883934997022152,
0.08629213273525238,
0.06534487754106522,
0.009040912613272667,
0.0070112356916069984,
0.006838322151452303,
-0.06580598652362823,
0.06962655484676361,
-0.016295051202178,
0.001593275461345911,
-0.039127882570028305,
0.05088600888848305,
0.051281239837408066,
-0.018345311284065247,
0.023499784991145134,
0.013923663645982742,
0.019185177981853485,
0.017324298620224,
0.06797975301742554,
-0.023549187928438187,
0.02076610177755356,
-0.0063525172881782055,
-0.03298533335328102,
0.054047856479883194,
-0.046900760382413864,
0.134444460272789,
0.04406827315688133,
-0.005809074267745018,
-0.030877431854605675,
-0.0045739770866930485,
-0.012235697358846664,
-0.051248304545879364,
0.016352688893675804,
-0.044759925454854965,
-0.034121621400117874,
0.11349720507860184,
0.027781454846262932,
0.01867467164993286,
-0.029395315796136856,
-0.003071275306865573,
-0.02839077077805996,
-0.04795471206307411,
0.016295051202178,
0.034352172166109085,
0.015463418327271938,
-0.011091173626482487,
0.029955226927995682,
0.026068786159157753,
0.007254138123244047,
-0.033479370176792145,
-0.004528690129518509,
0.002832489786669612,
0.018954627215862274,
0.010465390980243683,
0.03530731424689293,
0.008826828561723232,
-0.06178779900074005,
-0.04867929965257645,
-0.004565742798149586,
0.05750612914562225,
-0.020535551011562347,
-0.010177201591432095,
0.04466111958026886,
-0.06817737221717834,
0.06053623557090759,
-0.008262800984084606,
0.046966634690761566,
0.03311707451939583,
0.0781898945569992,
-0.04011595994234085,
0.02409263141453266,
-0.0023775622248649597,
-0.016352688893675804,
0.047131311148405075,
-0.01842765137553215,
0.03097623959183693,
0.045649196952581406,
-0.008612745441496372,
-0.04620910808444023,
0.03270537778735161,
-0.0065666004084050655,
-0.012820309959352016,
-0.02835783362388611,
-0.008118705824017525,
0.010572432540357113,
-0.026134658604860306,
0.01819710060954094,
-0.057967234402894974,
-0.03530731424689293,
0.04271790012717247,
-0.028522513806819916,
-0.077926404774189,
0.03484621271491051,
-0.08042953908443451,
-0.036756496876478195,
-0.02641461417078972,
-0.055562909692525864,
-0.004858049564063549,
-0.015405780635774136,
0.02430671453475952,
0.03593309596180916,
-0.028259025886654854,
-0.05549703910946846,
0.06215009465813637,
0.009172655642032623,
0.024323182180523872,
-0.0006895959959365427,
0.00174869189504534,
0.014565913937985897,
0.05141298472881317,
0.004841581452637911,
0.05875769630074501,
0.003939960151910782,
-0.01484586950391531,
-0.029872886836528778,
-0.04252028465270996,
-0.043673042207956314,
-0.036493007093667984,
0.053191523998975754,
0.025245388969779015,
0.009172655642032623,
0.043705977499485016,
-0.010325413197278976,
-0.0017023758264258504,
-0.03787631541490555,
-0.08780718594789505,
-0.006895959842950106,
-0.0015685735270380974,
-0.023927951231598854,
0.0062948791310191154,
0.0008578780107200146,
-0.002381679369136691,
-0.03580135479569435,
-0.037843380123376846,
-0.05444308742880821,
-0.03438510745763779,
-0.036558881402015686,
-0.04838287830352783,
-0.004110815469175577,
0.04571506753563881,
-0.05032609775662422,
0.030893899500370026,
-0.04508928582072258,
-0.0628417506814003,
-0.04061000049114227,
-0.06685993075370789,
0.06593772768974304,
0.012515652924776077,
0.08128587156534195,
-0.10440689325332642,
0.02343391254544258,
-0.015990393236279488,
-0.03659181669354439,
0.0021840636618435383,
0.10994012653827667,
-0.021556565538048744,
0.0023446264676749706,
-0.04298138618469238,
-0.027270948514342308,
-0.027254480868577957,
0.0041066985577344894,
0.026941588148474693,
0.007954026572406292,
-0.017637189477682114,
-0.003361523151397705,
0.056913282722234726,
0.02532772906124592,
0.05375143513083458,
0.012886181473731995,
0.006356634199619293,
0.0055044167675077915,
0.024833690375089645,
-0.02685924991965294,
-0.01799948513507843,
-0.038436226546764374,
0.014145980589091778,
0.002904537133872509,
0.038502100855112076,
-0.037415213882923126,
0.017884209752082825,
0.047822967171669006,
0.031140919774770737,
0.015899818390607834,
0.012087485752999783,
-0.02669456973671913,
-0.06784801185131073,
-0.0759502500295639,
-0.031322065740823746,
0.07061462849378586,
-0.03031752072274685,
-0.025245388969779015,
0.007657603360712528,
-0.012120421044528484,
-0.009411441162228584,
0.03659181669354439,
0.012729736045002937,
-0.038897331804037094,
0.05444308742880821,
-0.005751436576247215,
0.05490419268608093,
0.01795008033514023,
0.008620979264378548,
-0.04594561830163002,
0.024603137746453285,
0.002147010760381818,
0.015381078235805035,
-0.005347971338778734,
-0.053652625530958176,
-0.028917744755744934,
-0.028308430686593056,
-0.013437858782708645,
0.018279440701007843,
-0.034549787640571594,
0.05098481476306915,
0.01882288232445717,
0.008612745441496372,
-0.016822025179862976,
-0.014376532286405563,
0.020305000245571136,
0.0292471032589674,
-0.013890727423131466,
-0.007328243926167488,
-0.030630413442850113,
-0.039984215050935745,
0.01506818737834692,
0.0140801090747118,
0.06830911338329315,
0.02424084208905697,
0.05111655965447426,
-0.048020582646131516,
0.003384166629984975,
0.04439762979745865,
0.03771163895726204,
0.015422248281538486,
-0.044759925454854965,
-0.01311673317104578,
-0.04103816673159599,
-0.006233124528080225,
-0.05533235892653465,
-0.022412898018956184,
0.05576052516698837,
0.008653915487229824,
0.061227891594171524,
-0.03382519632577896,
-0.04070880636572838,
0.06419212371110916,
-0.010325413197278976,
0.052170511335134506,
0.04624204337596893,
0.06765039265155792,
0.001967921620234847,
0.0002863881818484515,
-0.015957457944750786,
0.0845135897397995,
-0.0146235516294837,
-0.011017068289220333,
0.05002967268228531,
-0.022890469059348106,
0.023779740557074547,
-0.03487914800643921,
0.045418646186590195,
-0.0028674842324107885,
0.0036888238973915577,
-0.0238291434943676,
-0.013833089731633663,
-0.0716685801744461,
0.023960888385772705,
0.006105497479438782,
-0.10322120040655136,
-0.006677759345620871,
0.04479286074638367,
0.0033985760528594255,
-0.013742515817284584,
-0.04028064012527466,
0.0162703488022089,
-0.0520717017352581,
-0.022050604224205017,
0.017209023237228394,
0.06567423790693283,
-0.026941588148474693,
0.01366841048002243,
-0.05483831837773323,
0.05684741213917732,
0.002904537133872509,
-0.012976755388081074,
0.027633244171738625,
0.0628417506814003,
0.022676385939121246,
0.013042627833783627,
-0.02648048661649227,
0.03514263406395912,
0.018559396266937256,
-0.0036517709959298372,
0.04008302465081215,
-0.010959429666399956,
0.030251650139689445,
-0.012853246182203293,
0.005648511461913586,
-0.01887228712439537,
0.028044942766427994,
-0.02341744489967823,
-0.021095462143421173,
-0.006414271891117096,
0.009460845030844212,
-0.027435628697276115,
-0.030646881088614464,
-0.021391885355114937,
-0.0052862162701785564,
0.03886439651250839,
-0.017472509294748306,
-0.08089064061641693,
0.03705291822552681,
-0.03632832691073418,
-0.015306972898542881,
-0.04597855359315872,
0.012622694484889507,
-0.0013472853461280465,
-0.0011702546617016196,
-0.04228973016142845,
0.02017325535416603,
-0.06570717692375183,
-0.024438459426164627,
0.018345311284065247,
0.0585930161178112,
-0.007192383054643869,
0.00645132502540946,
-0.06735397130250931,
-0.027896730229258537,
-0.05944934859871864,
0.006793035194277763,
-0.014565913937985897,
-0.033676985651254654,
0.04186156392097473,
-0.011782827787101269,
0.05398198589682579,
0.015224632807075977,
0.00043948879465460777,
0.06811150163412094,
-0.05464070290327072,
0.020980186760425568,
0.026299338787794113,
0.026743972674012184,
-0.03291945904493332,
0.001727077760733664,
-0.0021737711504101753,
0.02275872603058815,
-0.0205520186573267,
-0.043903592973947525,
-0.017505446448922157,
-0.07423758506774902,
0.03099270723760128,
-0.015661032870411873,
0.0607338510453701,
0.034813277423381805,
0.007105926517397165,
0.04535277187824249,
0.0542784109711647,
0.08405248820781708,
-0.011428766883909702,
0.03319941461086273,
-0.06261119991540909,
-0.00878565851598978,
0.022495238110423088,
-0.04449643939733505,
-0.043014321476221085,
0.0092055918648839,
0.026546357199549675,
-0.004215798806399107,
-0.0173572339117527,
-0.00645132502540946,
-0.02147422544658184,
-0.05375143513083458,
-0.025410069152712822,
0.03487914800643921,
0.0672881007194519,
0.021358950063586235,
0.03491208329796791,
0.06863847374916077,
0.09222059696912766,
-0.06870434433221817,
-0.030432797968387604,
-0.03054807335138321,
0.027254480868577957,
-0.03583429008722305,
-0.021721243858337402,
0.009263229556381702,
0.03484621271491051,
-0.005755553487688303,
-0.017241958528757095,
0.012696799822151661,
-0.008056951686739922,
-0.013133200816810131,
-0.0520058311522007,
-0.034977953881025314,
-0.03395694121718407,
0.07733356207609177,
-0.01650913432240486,
0.035471994429826736,
-0.011626382358372211,
-0.00998781993985176,
-0.03273831307888031,
-0.003727935254573822,
-0.03853503614664078,
0.0077070072293281555,
0.048218198120594025,
-0.0018557336879894137,
-0.02489956095814705,
-0.08069302141666412,
0.0281602181494236,
0.01547988597303629,
-0.005545586813241243,
-0.008612745441496372,
-0.011618148535490036,
0.003919375594705343,
0.000656145450193435,
-0.003030105261132121,
-0.04103816673159599,
0.0022766960319131613,
-0.004652199801057577,
-0.024570202454924583,
-0.08477707952260971,
-0.02708980068564415,
0.010893558152019978,
-0.000250107201281935,
-0.004833347629755735,
-0.004331074655056,
0.03573548048734665,
-0.04133458808064461,
0.04917334020137787,
0.037579894065856934,
0.06247945502400398,
0.003458272432908416,
-0.020897846668958664,
-0.00023003686510492116,
-0.065180204808712,
0.03751402348279953,
0.018789947032928467,
-0.050161417573690414,
-0.021293077617883682,
0.011889870278537273,
-0.008147525601089,
-0.013874259777367115,
-0.007332360837608576,
-0.025640619918704033,
-0.005294450558722019,
-0.03206312656402588,
0.024619605392217636,
0.012556822970509529,
0.04867929965257645,
-0.007274723146110773,
0.012112187221646309,
0.00811047200113535,
0.0020533492788672447,
0.047822967171669006,
0.011082939803600311,
0.010704176500439644,
-0.04574800282716751,
-0.03751402348279953,
-0.011346426792442799,
0.021078994497656822,
-0.02532772906124592,
-0.0434095524251461,
0.03599897027015686,
0.059910453855991364,
0.042355604469776154,
-0.016155073419213295,
0.017670124769210815,
0.05009554699063301,
0.0004250793135724962,
0.045451581478118896,
-0.04686782509088516,
-0.045155156403779984,
0.04808645322918892,
0.09162775427103043,
-0.011412299238145351,
-0.0714050903916359,
0.009716099128127098,
-0.006735397037118673,
-0.02735328860580921,
0.046044427901506424,
0.00015979071031324565,
-0.01930045336484909,
0.008056951686739922,
0.010671240277588367,
-0.06234771013259888,
0.0025566513650119305,
0.010325413197278976,
-0.05240106210112572,
0.07865099608898163,
0.0004456642782315612,
0.008489235304296017,
-0.02713920548558235,
0.06359927356243134,
0.03603190556168556,
0.016146838665008545,
-0.047328926622867584,
0.01388249360024929,
-0.013619006611406803,
0.012812076136469841,
0.049535635858774185,
-0.012713268399238586,
0.014030705206096172,
-0.033924005925655365,
0.013092031702399254,
-0.003810275113210082,
0.020650826394557953,
-0.05029316246509552,
0.04729599133133888,
0.007904622703790665,
0.02361506037414074,
-0.040873486548662186,
0.0024701945949345827,
-0.010193669237196445,
-0.025245388969779015,
-0.0070441714487969875,
0.03074568882584572,
0.02430671453475952,
0.01643502712249756,
-0.01903696544468403,
0.005644394550472498,
-0.04028064012527466,
-0.01599862612783909,
-0.05006261169910431,
0.032211337238550186,
-0.05744025856256485,
0.00443811621516943,
-0.010580667294561863,
-0.0009041941375471652,
0.03929256275296211,
0.018048888072371483,
0.022890469059348106,
-0.02840723842382431,
-0.02751796692609787,
-0.01486233714967966,
0.010267775505781174,
0.004676901735365391,
-0.045649196952581406,
0.10012522339820862,
0.039984215050935745,
-0.03298533335328102,
-0.001948365941643715,
0.08352551609277725,
0.017077278345823288,
0.024372586980462074,
-0.03767869994044304,
-0.017735997214913368,
0.011980444192886353,
-0.06877021491527557,
-0.06574010848999023,
-0.015743372961878777,
0.01623741164803505,
0.022643450647592545,
0.054047856479883194,
0.033248819410800934,
0.02144128829240799,
0.020206192508339882,
-0.016113903373479843,
0.03580135479569435,
-0.0671234205365181,
0.008695084601640701,
-0.020436743274331093,
-0.026743972674012184,
-0.02167184092104435,
-0.08115412294864655,
0.0021717126946896315,
-0.006508962716907263,
0.05658392235636711,
-0.04288257658481598,
0.02101312205195427,
-0.002583411755040288,
-0.03268890827894211,
-0.0034500383771955967,
0.010852388106286526,
0.03275477886199951,
-0.008711553178727627,
0.0002535809180699289,
-0.03268890827894211,
-0.01290265005081892,
-0.0541796013712883,
0.03790925443172455,
-0.019909769296646118,
0.020041512325406075,
0.0022499356418848038,
-0.01430242694914341,
-0.003738227766007185,
0.009139720350503922,
0.04074174165725708,
-0.026990992948412895,
-0.028456641361117363,
-0.04729599133133888,
0.032606568187475204,
-0.019893299788236618,
-0.02252817526459694,
-0.06175486370921135,
-0.014228320680558681,
-0.02904948778450489,
0.009707864373922348,
-0.077926404774189,
0.07331537455320358,
-0.013355518691241741,
-0.003042456228286028,
0.010415987111628056,
0.02751796692609787,
-0.022067071869969368,
0.000916545104701072,
0.08919049054384232,
0.014228320680558681,
-0.01051479484885931,
-0.0097737368196249,
0.004154043737798929,
0.004582210909575224,
-0.02193532884120941,
0.060602106153964996,
-0.0006165194208733737,
-0.000343768741004169,
0.0541466660797596,
-0.02381267584860325,
-0.06465322524309158,
0.004110815469175577,
0.03336409479379654,
-0.03879852220416069,
0.0036620635073632,
0.04680195450782776,
-0.05263161286711693,
-0.03296886384487152,
-0.05813191458582878,
-0.023582125082612038,
-0.0069906506687402725,
0.016171541064977646,
0.016212711110711098,
-0.01180753018707037,
-0.023088086396455765,
0.009139720350503922,
-0.015298738144338131,
0.031750235706567764,
0.04594561830163002,
-0.0036497125402092934,
-0.03767869994044304,
-0.03833742067217827,
-0.005347971338778734,
-0.0476253516972065,
-0.0011980443960055709,
-0.036064840853214264,
0.022182347252964973,
0.015693970024585724,
0.06185367330908775,
0.01645149663090706,
-0.04673608019948006,
-0.004364010412245989,
0.024010291323065758,
0.033693455159664154,
0.09597529470920563,
0.019646281376481056,
0.032639503479003906,
0.023763272911310196,
0.013256710954010487,
0.029559995979070663,
0.027814392000436783,
-0.0627758800983429,
-0.01398953516036272,
-0.00524916360154748,
0.010127797722816467,
0.0024928380735218525,
-0.049305085092782974,
-0.021161334589123726,
-0.06053623557090759,
-0.02644754946231842,
-0.014681190252304077,
-0.032425422221422195,
0.014178916811943054,
-0.003674414474517107,
-0.02409263141453266,
0.011115876026451588,
-0.02252817526459694,
0.047164250165224075,
-0.00006561454210896045,
0.027254480868577957,
0.011222917586565018,
0.026398146525025368,
-0.03333115950226784,
0.01842765137553215,
0.04703250527381897,
-0.00011103010183433071,
-0.040214769542217255,
0.046966634690761566,
0.036723557859659195,
0.017703061923384666,
-0.05908705294132233,
-0.0028654257766902447,
0.04423294961452484,
0.017620721831917763,
-0.03179963678121567,
-0.044134143739938736,
0.023137489333748817,
-0.0004497812769841403,
-0.050391968339681625,
0.02256111055612564,
0.062117159366607666,
-0.025212453678250313,
0.058823566883802414,
0.013050861656665802,
0.021951796486973763
] |
9,983
|
sentence_transformers.datasets.ParallelSentencesDataset
|
add_dataset
| null |
def add_dataset(
self,
parallel_sentences: List[List[str]],
weight: int = 100,
max_sentences: int = None,
max_sentence_length: int = 128,
):
sentences_map = {}
for sentences in parallel_sentences:
if (
max_sentence_length is not None
and max_sentence_length > 0
and max([len(sent) for sent in sentences]) > max_sentence_length
):
continue
source_sentence = sentences[0]
if source_sentence not in sentences_map:
sentences_map[source_sentence] = set()
for sent in sentences:
sentences_map[source_sentence].add(sent)
if max_sentences is not None and max_sentences > 0 and len(sentences_map) >= max_sentences:
break
if len(sentences_map) == 0:
return
self.num_sentences += sum([len(sentences_map[sent]) for sent in sentences_map])
dataset_id = len(self.datasets)
self.datasets.append(list(sentences_map.items()))
self.datasets_iterator.append(0)
self.dataset_indices.extend([dataset_id] * weight)
|
(self, parallel_sentences: List[List[str]], weight: int = 100, max_sentences: Optional[int] = None, max_sentence_length: int = 128)
|
[
0.002823660848662257,
0.013664902187883854,
-0.03620031848549843,
0.008780731819570065,
-0.044244833290576935,
0.026503805071115494,
-0.012111663818359375,
-0.014212575741112232,
0.058574128895998,
0.033686406910419464,
-0.0030256714671850204,
-0.0037102634087204933,
-0.020901374518871307,
-0.04230553284287453,
0.0372777096927166,
0.012219402939081192,
-0.008242037147283554,
-0.04769248515367508,
-0.011097121983766556,
-0.0005667522782459855,
0.0005041850381530821,
0.005804440937936306,
-0.04525039717555046,
-0.010181339457631111,
0.016968900337815285,
0.04230553284287453,
0.003999812062829733,
0.003431937424466014,
0.025282762944698334,
0.04122814163565636,
-0.03553592786192894,
-0.005871777888387442,
-0.05965151637792587,
-0.008506895042955875,
0.019141636788845062,
0.01625961810350418,
-0.004118774086236954,
0.04187457635998726,
-0.019644418731331825,
0.004691137466579676,
0.025372544303536415,
-0.020973199978470802,
-0.014867988415062428,
0.038606490939855576,
-0.033165670931339264,
0.03332727774977684,
0.0033825570717453957,
0.02722206525504589,
-0.016331443563103676,
-0.05990291014313698,
-0.0036249698605388403,
-0.021475981920957565,
0.0140599450096488,
0.049595873802900314,
-0.05699395388364792,
0.02413354627788067,
-0.008619123138487339,
0.04927265644073486,
-0.01030703540891409,
-0.024851806461811066,
0.022786807268857956,
-0.027706891298294067,
0.05591656267642975,
0.02469019778072834,
-0.04751291871070862,
0.06536168605089188,
-0.05088874325156212,
0.021009113639593124,
-0.006832451093941927,
0.007420526817440987,
-0.010755947791039944,
0.022032635286450386,
-0.040581706911325455,
0.03406349569559097,
-0.029448671266436577,
0.07958324253559113,
0.0007878417382016778,
-0.005386952310800552,
-0.04079718515276909,
0.043023791164159775,
0.005063734948635101,
-0.018908202648162842,
0.0011649284278973937,
-0.04683057218790054,
0.02280476503074169,
0.006248864345252514,
-0.0067336903885006905,
0.021655548363924026,
-0.013045402243733406,
-0.0625963881611824,
-0.017202334478497505,
0.11851295083761215,
0.06511029601097107,
0.017058681696653366,
0.028083978220820427,
-0.06004656106233597,
-0.039827533066272736,
-0.026360152289271355,
0.009175775572657585,
0.013458401896059513,
-0.0045250398106873035,
-0.006616972852498293,
0.08137889206409454,
-0.03268084302544594,
-0.0158466175198555,
-0.08231262862682343,
0.00023441659868694842,
-0.015801725909113884,
-0.031711190938949585,
0.006374560296535492,
-0.04446031153202057,
0.015550334937870502,
0.05702986568212509,
0.0186388548463583,
-0.02497750148177147,
0.04079718515276909,
0.0192852895706892,
0.012425903230905533,
0.019877852872014046,
0.01525405328720808,
-0.0040043010376393795,
0.043957531452178955,
-0.06590038537979126,
-0.031477756798267365,
-0.020632026717066765,
-0.021422114223241806,
0.012677294202148914,
-0.006697777193039656,
0.040904924273490906,
-0.06457160413265228,
0.03778048977255821,
-0.030310584232211113,
0.020201070234179497,
0.030202845111489296,
0.011070187203586102,
-0.057712215930223465,
0.021709417924284935,
0.049595873802900314,
-0.03196258470416069,
-0.0340275801718235,
-0.039217013865709305,
-0.009974840097129345,
0.00623090798035264,
0.07189785689115524,
0.023343458771705627,
-0.013126206584274769,
-0.019357115030288696,
-0.08030150085687637,
-0.03009510599076748,
-0.004619311541318893,
0.014751270413398743,
-0.04259283468127251,
-0.0914345383644104,
-0.019464854151010513,
-0.02248154766857624,
0.021745329722762108,
-0.041982315480709076,
0.0042646704241633415,
0.049021266400814056,
-0.04313153028488159,
-0.02047041803598404,
-0.015272009186446667,
-0.015209161676466465,
0.07028176635503769,
-0.03853466361761093,
0.002675519557669759,
-0.012398968450725079,
0.011698664166033268,
-0.06895298510789871,
0.03763683885335922,
0.04384979233145714,
-0.010190318338572979,
0.012973576784133911,
-0.009009677916765213,
-0.016124943271279335,
-0.05641934648156166,
0.06773194670677185,
-0.020542245358228683,
0.03479970991611481,
0.014993683435022831,
-0.036685146391391754,
0.017848769202828407,
0.020452462136745453,
0.004585643298923969,
-0.0012928685173392296,
-0.0035688558127731085,
0.013467380777001381,
0.026396065950393677,
0.023487111553549767,
-0.009938926436007023,
-0.011716620996594429,
-0.05929238721728325,
-0.027473457157611847,
0.009463079273700714,
0.0005732054123654962,
0.021475981920957565,
-0.0028977312613278627,
-0.0040491921827197075,
-0.061052124947309494,
-0.011815382167696953,
-0.01467046607285738,
-0.0020885663107037544,
0.04582500830292702,
-0.08669401705265045,
0.004803365562111139,
0.021511895582079887,
-0.09991000592708588,
0.04474761709570885,
-0.062129516154527664,
0.007878417149186134,
0.012560577131807804,
-0.019375070929527283,
0.025893284007906914,
0.04657917842268944,
0.05365404486656189,
-0.021906938403844833,
-0.033452972769737244,
0.01605311781167984,
0.00672471197322011,
-0.010217253118753433,
0.025318674743175507,
-0.016789333894848824,
0.01695094257593155,
0.01750759407877922,
0.020901374518871307,
-0.08252810686826706,
0.05070917680859566,
0.009750383906066418,
0.017426790669560432,
-0.01413177140057087,
0.015604204498231411,
0.039073359221220016,
-0.0005131633370183408,
-0.0501345694065094,
-0.0230561550706625,
-0.016906050965189934,
-0.008785220794379711,
0.003905540332198143,
0.05943603813648224,
-0.01091755647212267,
0.003196258330717683,
0.019410984590649605,
-0.033542755991220474,
-0.024995457381010056,
-0.02192489616572857,
0.06568490713834763,
0.0021985499188303947,
0.002540845889598131,
0.021134808659553528,
0.0037484208587557077,
0.03126227855682373,
0.012237359769642353,
-0.05103239417076111,
-0.04122814163565636,
0.037816405296325684,
-0.0005207387148402631,
-0.008996210061013699,
0.0019033898133784533,
-0.003831469686701894,
-0.029646193608641624,
0.0009500114829279482,
0.014993683435022831,
-0.032034408301115036,
0.08899245411157608,
-0.02829945646226406,
0.007918819785118103,
-0.0033578667789697647,
0.00916230771690607,
-0.024043763056397438,
0.002536356681957841,
0.03009510599076748,
0.09430757910013199,
0.10055644065141678,
-0.07082046568393707,
0.010513534769415855,
0.006895298603922129,
-0.004242225084453821,
-0.005669767037034035,
-0.01588253118097782,
0.03176506236195564,
0.06414064764976501,
0.000773252104409039,
-0.0018921669106930494,
-0.03864240273833275,
0.05620386824011803,
0.002278231782838702,
-0.021134808659553528,
0.002998736687004566,
-0.024905676022171974,
-0.03336318954825401,
-0.04539405182003975,
0.014616597443819046,
0.035374321043491364,
0.024582458660006523,
-0.051463350653648376,
-0.034189190715551376,
0.04938039556145668,
0.006899788044393063,
0.0038561599794775248,
0.00931942742317915,
-0.03594892844557762,
-0.017049703747034073,
0.08992619067430496,
0.01966237649321556,
-0.07936776429414749,
-0.07232881337404251,
-0.0011492164339870214,
-0.02619854360818863,
0.011994946748018265,
-0.03892970830202103,
0.005719147622585297,
0.05106830596923828,
0.01713050715625286,
0.008924384601414204,
-0.019518723711371422,
0.09200914204120636,
0.043023791164159775,
0.006711244583129883,
-0.009786296635866165,
0.001818096381612122,
-0.01910572312772274,
-0.0340275801718235,
0.0007322888122871518,
-0.05839456245303154,
0.0301310196518898,
0.004581153858453035,
0.0981861799955368,
-0.03939657658338547,
0.005436332430690527,
0.00872237328439951,
0.048841699957847595,
-0.017256204038858414,
0.016304507851600647,
0.013682859018445015,
-0.04209005460143089,
0.03009510599076748,
0.024869762361049652,
-0.061052124947309494,
0.04449622705578804,
-0.04122814163565636,
-0.018567029386758804,
-0.04068944603204727,
-0.011985968798398972,
0.019967636093497276,
-0.01177946850657463,
-0.03709814324975014,
0.027024542912840843,
-0.016564877703785896,
-0.005557538941502571,
0.013171098195016384,
-0.0004312367527745664,
0.016555899754166603,
-0.030544018372893333,
0.026360152289271355,
-0.003633948275819421,
0.0086370799690485,
0.008731352165341377,
0.0010633618803694844,
-0.025192979723215103,
-0.001504979794844985,
-0.04345474764704704,
0.02018311433494091,
0.02553415298461914,
0.05505465343594551,
-0.022822720929980278,
0.025893284007906914,
0.02689884789288044,
-0.007487863767892122,
0.03657740727066994,
-0.030669715255498886,
0.013458401896059513,
-0.011043252423405647,
0.06812699139118195,
0.10263939946889877,
0.03135206177830696,
-0.03262697532773018,
-0.0752018541097641,
0.012991532683372498,
-0.01977011375129223,
0.025426413863897324,
-0.0962468758225441,
-0.05200204625725746,
0.0539054349064827,
-0.02003946155309677,
0.038606490939855576,
-0.008744819089770317,
0.056634824723005295,
-0.05368995666503906,
0.008955808356404305,
0.04341883584856987,
0.06378151476383209,
-0.015325878746807575,
0.009983818046748638,
0.003268084255978465,
-0.010953469201922417,
-0.037672750651836395,
-0.05444413051009178,
-0.03770866617560387,
-0.017705116420984268,
0.04413709416985512,
-0.041802749037742615,
0.028281498700380325,
-0.02774280309677124,
0.0429878793656826,
-0.044101182371377945,
0.03093906305730343,
0.03336318954825401,
-0.007416037376970053,
-0.0018001399002969265,
0.012740141712129116,
-0.03332727774977684,
0.049739524722099304,
0.024438805878162384,
0.005898712668567896,
-0.023361416533589363,
0.04833891615271568,
-0.0023994382936507463,
-0.024097632616758347,
0.05412091314792633,
-0.006868364289402962,
0.0406535342335701,
0.055736999958753586,
0.0177948996424675,
-0.033452972769737244,
-0.020398592576384544,
-0.012883794493973255,
-0.04704605042934418,
-0.045645441859960556,
0.005005376413464546,
-0.10357313603162766,
-0.05667073652148247,
0.026216501370072365,
0.009175775572657585,
-0.0362362302839756,
-0.016762400045990944,
0.026862934231758118,
-0.02309206873178482,
0.006917744409292936,
0.0013736728578805923,
-0.04050987958908081,
0.04036622866988182,
-0.05821499601006508,
-0.02722206525504589,
-0.015927422791719437,
-0.02294841594994068,
-0.035751406103372574,
-0.04905717819929123,
0.037995968014001846,
-0.026018979027867317,
-0.014903901144862175,
0.061518993228673935,
0.01634042151272297,
0.07150281220674515,
0.04995500296354294,
0.015514422208070755,
0.005180452484637499,
0.07290341705083847,
-0.03374027833342552,
0.0076674288138747215,
0.02666541375219822,
0.03427897393703461,
0.003950431477278471,
0.0819535031914711,
0.019464854151010513,
-0.012829924933612347,
0.020165158435702324,
-0.02328958921134472,
-0.03093906305730343,
0.02379237301647663,
-0.013602054677903652,
0.027114326134324074,
0.026880891993641853,
0.0396120548248291,
-0.058574128895998,
0.02567780576646328,
-0.0154874874278903,
0.02741958759725094,
-0.019446898251771927,
0.023540981113910675,
0.00875379703938961,
0.06880933791399002,
0.0406535342335701,
0.020362678915262222,
-0.007972689345479012,
-0.0228586345911026,
-0.003993078134953976,
-0.028461063280701637,
-0.034476492553949356,
-0.0150655098259449,
0.06270412355661392,
0.00041636652895249426,
0.008372221142053604,
0.048374831676483154,
0.028514932841062546,
0.064427949488163,
0.016151878982782364,
0.0833900198340416,
0.025731675326824188,
0.06281186640262604,
0.014778205193579197,
-0.0006946923676878214,
-0.03878605738282204,
-0.0016677106032148004,
-0.05627569556236267,
0.016771377995610237,
0.051283784210681915,
-0.015137335285544395,
0.020362678915262222,
-0.06557716429233551,
-0.0027046988252550364,
-0.03422510251402855,
-0.03259105980396271,
-0.01628655195236206,
0.027635063976049423,
0.07337029278278351,
0.0003176057361997664,
0.0019303245935589075,
0.009355340152978897,
0.01736394315958023,
0.03160345181822777,
0.01695094257593155,
0.09050079435110092,
-0.04108449071645737,
-0.012973576784133911,
-0.02352302521467209,
-0.014903901144862175,
-0.01962646283209324,
-0.064427949488163,
0.010998360812664032,
0.07150281220674515,
-0.013224967755377293,
0.01971624419093132,
0.04657917842268944,
0.010549448430538177,
0.01939302869141102,
0.016708530485630035,
0.008385688997805119,
-0.004938039463013411,
0.07082046568393707,
-0.03435079753398895,
-0.06115986406803131,
-0.012165533378720284,
-0.018243812024593353,
-0.04126405343413353,
0.02172737382352352,
0.02337937243282795,
-0.000303577195154503,
0.06266821175813675,
0.044855356216430664,
-0.007968200370669365,
-0.005512647796422243,
0.043634314090013504,
-0.030633801594376564,
-0.0158466175198555,
0.057388998568058014,
-0.07347802817821503,
-0.013368619605898857,
-0.046866483986377716,
-0.03670310229063034,
0.04094083607196808,
0.023487111553549767,
-0.02905362844467163,
-0.010953469201922417,
-0.005781995598226786,
0.056455258280038834,
-0.019213462248444557,
-0.017076637595891953,
-0.027778716757893562,
-0.02515706606209278,
-0.06525395065546036,
-0.02061407081782818,
0.00885704718530178,
-0.022930460050702095,
-0.010755947791039944,
-0.025605980306863785,
0.021619634702801704,
-0.07735663652420044,
-0.03882196918129921,
-0.028425151482224464,
-0.005575495772063732,
-0.06518211960792542,
0.06040569022297859,
0.013431467115879059,
0.03709814324975014,
0.06485890597105026,
0.02332550287246704,
-0.012111663818359375,
-0.0026642968878149986,
-0.03550001606345177,
0.06837838143110275,
-0.03591301292181015,
0.05124787241220474,
0.02056020125746727,
0.05609612911939621,
0.0004118773795198649,
0.0032635952811688185,
0.0033668451942503452,
0.0041816215962171555,
-0.018423376604914665,
-0.03140593320131302,
-0.058179084211587906,
0.02995145507156849,
-0.06722916662693024,
0.07742846012115479,
0.010100535117089748,
-0.029179325327277184,
-0.09006983786821365,
-0.0230561550706625,
-0.02535458840429783,
0.020991157740354538,
-0.0406535342335701,
0.044999007135629654,
0.011770490556955338,
-0.04112040251493454,
-0.04122814163565636,
-0.04359839856624603,
-0.06133943051099777,
-0.007703341543674469,
0.06133943051099777,
-0.03393780067563057,
0.044999007135629654,
-0.01025316584855318,
0.04137179255485535,
0.009175775572657585,
-0.05002683028578758,
0.009750383906066418,
-0.039827533066272736,
-0.04528631269931793,
-0.026916803792119026,
0.030723584815859795,
-0.009723449125885963,
0.0016228193417191505,
0.03426101431250572,
0.038462840020656586,
0.049021266400814056,
0.008179188705980778,
0.0440293550491333,
0.02061407081782818,
0.06485890597105026,
-0.041659098118543625,
-0.031244322657585144,
0.01426644530147314,
0.0008102873689495027,
-0.03681084141135216,
0.05307943746447563,
0.0023051665630191565,
-0.005835864692926407,
-0.009534905664622784,
-0.003351133083924651,
0.012964597903192043,
-0.024726111441850662,
-0.05426456406712532,
0.0055979411117732525,
-0.04068944603204727,
0.047477006912231445,
0.027240021154284477,
-0.017732050269842148,
-0.04295196384191513,
0.006549635902047157,
-0.06457160413265228,
-0.012012903578579426,
-0.005746082402765751,
0.0357154943048954,
-0.05257665365934372,
-0.002630628412589431,
-0.03307588770985603,
-0.009355340152978897,
-0.04209005460143089,
-0.003362355986610055,
-0.010648208670318127,
-0.06970716267824173,
-0.004551974590867758,
0.011599903926253319,
0.009121906012296677,
0.02910749800503254,
0.00691325543448329,
-0.04690239578485489,
-0.013916293159127235,
0.001635164488106966,
0.00772129837423563,
0.017283137887716293,
0.011097121983766556,
0.041048575192689896,
-0.01828870363533497,
-0.04086901247501373,
0.011869251728057861,
-0.027347760275006294,
-0.02722206525504589,
0.0223378948867321,
0.002168248174712062,
0.04097675159573555,
0.030526062473654747,
-0.0020447971764951944,
-0.01977011375129223,
-0.013691836968064308,
-0.01715744286775589,
0.015263031236827374,
-0.08303088694810867,
-0.05088874325156212,
0.050996482372283936,
-0.008475471287965775,
0.05106830596923828,
-0.020452462136745453,
-0.028766324743628502,
-0.01905185356736183,
-0.008475471287965775,
-0.07900863140821457,
0.05293578281998634,
-0.006940190214663744,
-0.014194618910551071,
0.04460396617650986,
0.009153329767286777,
-0.00795473251491785,
0.04553770273923874,
-0.02596510946750641,
0.0028505956288427114,
0.021529851481318474,
0.03219601884484291,
-0.03411736339330673,
0.0064284298568964005,
0.05778403952717781,
0.036074623465538025,
0.053402651101350784,
-0.020398592576384544,
-0.08439558744430542,
-0.031244322657585144,
0.042125966399908066,
0.008529340848326683,
0.08461106568574905,
-0.033255450427532196,
-0.02393602393567562,
0.044280748814344406,
-0.01820789836347103,
-0.008960297331213951,
-0.015361792407929897,
-0.007425015792250633,
-0.03492540866136551,
-0.026827022433280945,
-0.05272030457854271,
-0.03300406038761139,
-0.023540981113910675,
-0.02878428064286709,
0.0013512271689251065,
0.021422114223241806,
-0.03749318793416023,
-0.05056552588939667,
0.03242945298552513,
0.028048064559698105,
0.000607154390309006,
-0.020219027996063232,
0.010324991308152676,
0.026324240490794182,
-0.032788582146167755,
0.05275622010231018,
0.006661864463239908,
-0.004866213537752628,
0.07757211476564407,
-0.04575318098068237,
0.013099271804094315,
-0.06812699139118195,
0.014957770705223083,
-0.00892887357622385,
0.05336673930287361,
-0.02765302173793316,
-0.009516948834061623,
0.01599924825131893,
0.04284422844648361,
0.046866483986377716
] |
9,984
|
sentence_transformers.datasets.ParallelSentencesDataset
|
generate_data
| null |
def generate_data(self):
source_sentences_list = []
target_sentences_list = []
for data_idx in self.dataset_indices:
src_sentence, trg_sentences = self.next_entry(data_idx)
source_sentences_list.append(src_sentence)
target_sentences_list.append(trg_sentences)
# Generate embeddings
src_embeddings = self.get_embeddings(source_sentences_list)
for src_embedding, trg_sentences in zip(src_embeddings, target_sentences_list):
for trg_sentence in trg_sentences:
self.cache.append(InputExample(texts=[trg_sentence], label=src_embedding))
random.shuffle(self.cache)
|
(self)
|
[
-0.004239073488861322,
-0.045898132026195526,
-0.05347968265414238,
-0.05827390030026436,
-0.033708181232213974,
0.035919468849897385,
-0.04563798010349274,
-0.011177216656506062,
0.0855526253581047,
0.030604947358369827,
-0.01947418600320816,
0.02016172930598259,
-0.04151272028684616,
0.03536200150847435,
0.020273223519325256,
0.004104352090507746,
0.017634544521570206,
-0.014670677483081818,
-0.030270466580986977,
-0.0401376374065876,
-0.019957324489951134,
0.01688196323812008,
-0.060949742794036865,
0.008190121501684189,
-0.0075304522179067135,
0.03099517524242401,
-0.04534066468477249,
-0.03939434513449669,
0.013342048041522503,
0.01857294701039791,
0.02971300110220909,
-0.07878869026899338,
0.010350307449698448,
-0.0028872154653072357,
-0.03331795334815979,
-0.05559805780649185,
-0.024379897862672806,
0.014958702027797699,
0.0195670984685421,
0.018275631591677666,
0.07618717849254608,
-0.0687171220779419,
0.0143919438123703,
0.02683275379240513,
-0.030530618503689766,
0.039840321987867355,
-0.016919128596782684,
-0.02324638143181801,
-0.0363282784819603,
-0.0719875916838646,
0.003974276594817638,
0.00468969251960516,
0.007233136333525181,
0.0450805127620697,
0.013054022565484047,
-0.018470745533704758,
-0.04920576885342598,
0.049577414989471436,
0.000439876428572461,
0.02315346896648407,
0.012923947535455227,
-0.016296623274683952,
0.03500893712043762,
0.0450805127620697,
0.017959734424948692,
0.010982103645801544,
-0.045563649386167526,
-0.0066710240207612514,
0.015878522768616676,
0.018015481531620026,
-0.0029824492521584034,
-0.0019999134819954634,
-0.007386439945548773,
0.017318647354841232,
-0.02954575978219509,
0.044634539633989334,
0.014735715463757515,
0.0013355984119698405,
0.016844799742102623,
-0.020477628335356712,
-0.011158634908497334,
-0.0077302115969359875,
-0.03315071389079094,
-0.061209894716739655,
0.023302128538489342,
-0.011390912346541882,
-0.004901065491139889,
0.015952851623296738,
-0.0075815534219145775,
-0.06834547221660614,
-0.03642118722200394,
0.04303646460175514,
0.006968339439481497,
-0.015999307855963707,
0.05072951316833496,
-0.005616481881588697,
-0.044374387711286545,
-0.05842255800962448,
-0.0017432463355362415,
0.04909427464008331,
0.05559805780649185,
0.02084927260875702,
0.048982780426740646,
0.04998622462153435,
-0.019492769613862038,
-0.019455604255199432,
-0.021982789039611816,
-0.003249569097533822,
-0.01456847507506609,
0.011372330598533154,
-0.046752914786338806,
0.04987473040819168,
0.049242932349443436,
0.014624222181737423,
-0.006392290350049734,
-0.07310252636671066,
0.020403297618031502,
0.06195318326354027,
-0.05136130750179291,
0.01947418600320816,
0.05619269236922264,
0.044708866626024246,
-0.07124430686235428,
-0.00003640231443569064,
-0.004469028674066067,
-0.01588781364262104,
0.020477628335356712,
-0.01460563950240612,
0.01192050613462925,
-0.10785131901502609,
0.003435391467064619,
-0.018257049843668938,
0.01574844680726528,
0.07968064397573471,
0.036588430404663086,
-0.0032193728256970644,
0.08629591763019562,
0.01821059361100197,
0.023618025705218315,
0.01277528889477253,
0.014512728899717331,
0.007776666898280382,
0.05541223660111427,
0.030084645375609398,
0.014168957248330116,
-0.032500337809324265,
-0.004336629994213581,
-0.007925325073301792,
-0.004320370499044657,
-0.042070187628269196,
0.04203302413225174,
-0.0026828106492757797,
-0.01614796556532383,
-0.021852713078260422,
-0.03132965415716171,
0.004701306577771902,
-0.05712180212140083,
0.0032356323208659887,
0.019938742741942406,
0.018173430114984512,
-0.03342944756150246,
-0.03067927621304989,
-0.010415345430374146,
0.02510460466146469,
0.012905364856123924,
0.06054093316197395,
0.007976425811648369,
0.010480382479727268,
0.011781139299273491,
-0.018730897456407547,
-0.008190121501684189,
-0.031385403126478195,
0.017448723316192627,
-0.02716723270714283,
0.02911836840212345,
-0.02707432210445404,
-0.018015481531620026,
-0.01179043110460043,
0.06789950281381607,
0.030772188678383827,
-0.04192152991890907,
0.0065688216127455235,
-0.03179421275854111,
-0.026869917288422585,
0.0032565374858677387,
-0.012543011456727982,
0.008724361658096313,
0.0074793510138988495,
0.026869917288422585,
0.007446832489222288,
-0.01741155795753002,
-0.008766171522438526,
-0.06827114522457123,
0.03513901308178902,
-0.004794217646121979,
0.046269774436950684,
-0.056415677070617676,
-0.01576703041791916,
-0.05355401337146759,
0.03487886115908623,
-0.010136611759662628,
-0.019938742741942406,
0.05303370952606201,
-0.04262765496969223,
-0.03212869167327881,
0.01938127540051937,
-0.04151272028684616,
-0.0012066841591149569,
-0.07559254765510559,
-0.0025713173672556877,
0.022205775603652,
-0.014029590412974358,
0.03264899551868439,
-0.015321056358516216,
0.0737343281507492,
0.011985544115304947,
-0.0677880048751831,
0.023376457393169403,
-0.03939434513449669,
-0.026962829753756523,
0.021295245736837387,
-0.04195869714021683,
-0.06158154085278511,
0.01170681044459343,
0.04459737241268158,
-0.015339638106524944,
0.04593529552221298,
0.00254112109541893,
-0.08584994077682495,
-0.033280789852142334,
0.04597245901823044,
0.017541633918881416,
0.015321056358516216,
-0.02179696597158909,
0.04247899726033211,
-0.0018373188795521855,
0.00198597670532763,
0.00745147792622447,
0.05745628476142883,
0.030177555978298187,
-0.019251199439167976,
0.0121713662520051,
0.02289331890642643,
-0.08079557865858078,
0.0018663536757230759,
0.046864405274391174,
0.01149311475455761,
-0.011994834989309311,
-0.005040432326495647,
-0.04244183376431465,
0.01859153062105179,
0.04244183376431465,
-0.029285607859492302,
-0.021722637116909027,
0.029620088636875153,
-0.07243356853723526,
0.05652717128396034,
-0.02426840364933014,
0.047533366829156876,
-0.025086022913455963,
-0.0195670984685421,
0.013379212468862534,
-0.06540948152542114,
0.07436612248420715,
-0.020198894664645195,
0.021425321698188782,
-0.03218443691730499,
0.03774052858352661,
-0.02213144674897194,
-0.04519200697541237,
0.06737919896841049,
0.11201373487710953,
-0.017532343044877052,
-0.02835649624466896,
0.040806595236063004,
0.005026495549827814,
0.03257466480135918,
0.03365243598818779,
-0.026869917288422585,
0.013945970684289932,
0.021499650552868843,
-0.0022472895216196775,
0.03820508345961571,
-0.045489322394132614,
0.047198887914419174,
-0.053516849875450134,
-0.04615828022360802,
-0.04032345861196518,
0.05269923061132431,
-0.04987473040819168,
0.015460423193871975,
0.05704747512936592,
0.012412935495376587,
-0.02222435735166073,
-0.022447343915700912,
-0.011390912346541882,
0.023859594017267227,
0.01835925132036209,
0.00587198743596673,
0.044708866626024246,
-0.01793185994029045,
0.01823846809566021,
0.04928009957075119,
0.052401915192604065,
-0.07737644016742706,
-0.016854090616106987,
0.016807634383440018,
-0.024658631533384323,
0.00655488483607769,
-0.06618993729352951,
0.01823846809566021,
0.0010365404887124896,
0.032240185886621475,
0.02809634618461132,
-0.028598066419363022,
-0.01892600953578949,
0.010656913742423058,
0.06054093316197395,
0.022150028496980667,
0.021425321698188782,
-0.023989669978618622,
0.05894286185503006,
0.03738746419548988,
-0.004118288867175579,
0.022911900654435158,
-0.02997315116226673,
0.07588986307382584,
-0.013555743731558323,
-0.018870264291763306,
-0.022428762167692184,
0.035324838012456894,
-0.07559254765510559,
0.0016259459080174565,
0.05637851357460022,
-0.033448029309511185,
0.07481209188699722,
-0.025773566216230392,
-0.035324838012456894,
0.047719188034534454,
-0.019585680216550827,
0.04199586063623428,
-0.03850239887833595,
-0.04415139928460121,
0.049837566912174225,
0.037443213164806366,
-0.012961111962795258,
0.035919468849897385,
-0.022242940962314606,
0.0033099614083766937,
0.01264521386474371,
0.011809012852609158,
0.05511492118239403,
0.06737919896841049,
0.05177011713385582,
0.07157878577709198,
-0.0021938655991107225,
-0.0061414302326738834,
-0.02426840364933014,
-0.037127312272787094,
0.020607702434062958,
0.01034101564437151,
0.003463264787569642,
0.008032172918319702,
0.016947001218795776,
-0.07804540544748306,
0.02588505856692791,
0.012152784503996372,
-0.023209216073155403,
0.023172052577137947,
0.0457494743168354,
-0.01741155795753002,
0.0013704401208087802,
0.00020425945695023984,
0.09417478740215302,
0.023041976615786552,
-0.09514106065034866,
-0.050952497869729996,
-0.006387644447386265,
-0.009170334786176682,
0.03067927621304989,
-0.046009622514247894,
0.018303506076335907,
0.008032172918319702,
0.04021196439862251,
0.03987748548388481,
-0.015516169369220734,
0.06500067561864853,
0.010331724770367146,
0.020013071596622467,
0.0015249049756675959,
0.008733652532100677,
-0.036253947764635086,
0.010331724770367146,
-0.01724431850016117,
-0.003597985953092575,
-0.04333378002047539,
-0.04091808944940567,
0.037870604544878006,
-0.05998346582055092,
0.0074189589358866215,
-0.017253609374165535,
0.029861658811569214,
-0.05652717128396034,
0.03972882777452469,
-0.02818925678730011,
-0.002179928822442889,
0.016705432906746864,
-0.02426840364933014,
0.011251545511186123,
0.00982071366161108,
-0.07722778618335724,
0.04359393194317818,
0.060094960033893585,
0.020793525502085686,
-0.008947348222136497,
-0.02512318640947342,
-0.04426289349794388,
-0.0014854177134111524,
0.011567443609237671,
0.107256680727005,
0.01773674786090851,
0.06563246995210648,
0.04820232838392258,
-0.048127997666597366,
-0.001020281109958887,
0.030772188678383827,
-0.06503783911466599,
0.025680653750896454,
-0.0063133155927062035,
0.0036583782639354467,
-0.06087541580200195,
-0.02144390344619751,
-0.00017159536946564913,
-0.035231925547122955,
0.009314347058534622,
-0.0008565250900574028,
-0.00015214207815006375,
-0.011455950327217579,
-0.0037884539924561977,
-0.01243151817470789,
0.027464549988508224,
-0.06552097201347351,
0.058645546436309814,
0.028672395274043083,
-0.044114235788583755,
0.004297142848372459,
-0.0730653628706932,
0.04143839329481125,
0.054297301918268204,
-0.01161389984190464,
0.050172045826911926,
0.04192152991890907,
0.04939159005880356,
0.023803848773241043,
0.025346174836158752,
0.006596694700419903,
0.029582925140857697,
-0.04679007828235626,
-0.055486567318439484,
0.02350653149187565,
-0.007799895014613867,
-0.011325874365866184,
0.024379897862672806,
0.008306261152029037,
0.050172045826911926,
-0.020366134122014046,
0.009672055020928383,
0.004301788285374641,
-0.02854231931269169,
0.004327339120209217,
0.023172052577137947,
-0.0006788324099034071,
0.03474878519773483,
-0.03025188483297825,
-0.02835649624466896,
-0.045489322394132614,
0.0021346346475183964,
0.0080972108989954,
-0.019176870584487915,
0.011019268073141575,
0.07347417622804642,
-0.04708739370107651,
0.0068893651477992535,
0.014066754840314388,
-0.04980039969086647,
-0.01750446856021881,
0.0004021312633994967,
-0.009867168962955475,
0.0012484941398724914,
-0.014066754840314388,
-0.01712353341281414,
-0.03396833315491676,
0.017848240211606026,
-0.04337094724178314,
-0.013843768276274204,
0.007651236839592457,
0.06288229674100876,
0.04560081288218498,
0.009035613387823105,
0.011298001743853092,
0.016705432906746864,
-0.019771501421928406,
-0.03196145221590996,
-0.03040054254233837,
0.02237301506102085,
0.06436887383460999,
0.010155193507671356,
-0.009179625660181046,
-0.04084376245737076,
0.015386094339191914,
0.004770989995449781,
-0.034470055252313614,
0.021053677424788475,
-0.0034679104574024677,
0.03972882777452469,
-0.028598066419363022,
-0.00766517361626029,
-0.0072517190128564835,
-0.07678180932998657,
0.0363282784819603,
0.018303506076335907,
0.07098415493965149,
-0.02469579502940178,
-0.014986575581133366,
-0.019344110041856766,
0.004717566072940826,
-0.028226420283317566,
-0.031199580058455467,
0.005542152561247349,
0.03513901308178902,
-0.007702338043600321,
-0.04195869714021683,
0.059054356068372726,
0.037015821784734726,
-0.0077441479079425335,
-0.0028384369798004627,
0.05961182340979576,
-0.05994630232453346,
0.0315898060798645,
-0.01264521386474371,
-0.02265174873173237,
-0.029006876051425934,
-0.019864413887262344,
-0.03785201907157898,
0.039097029715776443,
-0.015618371777236462,
0.004160098731517792,
0.039097029715776443,
-0.0036328276619315147,
-0.004766344092786312,
-0.029527178034186363,
-0.03363385424017906,
0.02579214796423912,
-0.03162696957588196,
0.004104352090507746,
-0.020979348570108414,
-0.007511870004236698,
0.026293868198990822,
0.026777006685733795,
0.06433171033859253,
0.014800753444433212,
-0.05024637281894684,
0.004081124439835548,
0.01755092479288578,
0.03868822008371353,
0.03179421275854111,
-0.06968339532613754,
0.029248444363474846,
-0.061470046639442444,
-0.04500618204474449,
0.00042332662269473076,
-0.004278560634702444,
0.04314795881509781,
0.028598066419363022,
-0.005714038386940956,
-0.007284237537533045,
-0.06801099330186844,
-0.045229170471429825,
0.040620774030685425,
-0.04311079531908035,
-0.008329488337039948,
0.04099242016673088,
0.026442525908350945,
0.03006606362760067,
0.08042392879724503,
-0.014131792820990086,
-0.010526838712394238,
0.017913278192281723,
0.004989331122487783,
0.005059014540165663,
-0.020050235092639923,
0.05537507310509682,
-0.02144390344619751,
0.058980025351047516,
0.04277631267905235,
0.0013042408972978592,
0.014076045714318752,
-0.02265174873173237,
-0.044634539633989334,
-0.04032345861196518,
-0.011093596927821636,
0.06065242737531662,
-0.022150028496980667,
0.04028629511594772,
0.01982724852859974,
-0.045414991676807404,
-0.053776998072862625,
-0.05559805780649185,
-0.0015318733640015125,
0.03928285464644432,
0.006601340603083372,
0.01707707718014717,
-0.005769785027951002,
-0.076930470764637,
-0.013899514451622963,
-0.05381416529417038,
-0.02426840364933014,
0.009030967950820923,
0.021165169775485992,
-0.031385403126478195,
0.0848836675286293,
-0.03025188483297825,
0.007005504332482815,
0.009267891757190228,
-0.05032070353627205,
-0.0077952491119503975,
-0.00512405252084136,
-0.009235372766852379,
-0.010861318558454514,
0.03263041004538536,
0.022503091022372246,
-0.062064677476882935,
0.016547484323382378,
0.028672395274043083,
0.04909427464008331,
0.056675828993320465,
0.019957324489951134,
0.013667237013578415,
0.012227113358676434,
0.0034702331759035587,
-0.03578939288854599,
0.03467445820569992,
0.013518579304218292,
-0.000564725836738944,
-0.04998622462153435,
-0.039951812475919724,
0.00023039072402752936,
-0.04879695922136307,
-0.031069504097104073,
0.02203853614628315,
-0.022057117894291878,
-0.0018210593843832612,
0.03757328912615776,
-0.003017290960997343,
0.0240082535892725,
0.02161114476621151,
-0.044969018548727036,
-0.024286987259984016,
0.02315346896648407,
-0.052401915192604065,
-0.01835925132036209,
0.0684569701552391,
0.036161039024591446,
-0.054966263473033905,
-0.022261522710323334,
0.014280450530350208,
-0.01349999662488699,
0.008798690512776375,
0.0069497572258114815,
0.05801375210285187,
-0.07161594927310944,
-0.0027966268826276064,
-0.01655677519738674,
-0.012988985516130924,
0.03824224695563316,
-0.04731038212776184,
0.024194074794650078,
-0.03084651753306389,
-0.020198894664645195,
-0.012691669166088104,
-0.004740793723613024,
0.03861389309167862,
0.06265930831432343,
-0.03534341976046562,
-0.033187877386808395,
0.0023494919296354055,
0.015395385213196278,
-0.050172045826911926,
0.00939332228153944,
-0.008682550862431526,
-0.011455950327217579,
0.029750164598226547,
0.03718306124210358,
-0.07737644016742706,
-0.00808791909366846,
-0.016919128596782684,
0.03954300284385681,
-0.08205916732549667,
-0.07707912474870682,
0.009035613387823105,
-0.02588505856692791,
0.016854090616106987,
-0.015339638106524944,
-0.006220404524356127,
-0.041735708713531494,
0.02092360146343708,
-0.06325393915176392,
0.03580797463655472,
-0.06674740463495255,
-0.012728833593428135,
0.10056708008050919,
0.0062018223106861115,
-0.00815760251134634,
0.04418856278061867,
0.0013774085091426969,
-0.04221884533762932,
-0.020310387015342712,
0.07369715720415115,
-0.007860287092626095,
0.008608222007751465,
0.0261452104896307,
0.030196137726306915,
0.014893664978444576,
-0.00941654946655035,
-0.08072124421596527,
0.00802752748131752,
-0.0710584819316864,
-0.04482036083936691,
0.029192697256803513,
-0.05336819216609001,
-0.016937710344791412,
0.01980866678059101,
-0.016947001218795776,
-0.03528767079114914,
-0.03407982736825943,
-0.03725738823413849,
-0.020440462976694107,
-0.04073226824402809,
-0.021128006279468536,
-0.008673259988427162,
-0.08131587505340576,
0.010192357935011387,
-0.00587198743596673,
0.08800548315048218,
-0.015423258766531944,
0.03067927621304989,
0.05533790960907936,
-0.029601506888866425,
0.0036583782639354467,
-0.007065896410495043,
0.038911208510398865,
0.01982724852859974,
-0.03184995800256729,
0.0011538409162312746,
0.04757053032517433,
0.0058301775716245174,
0.033020637929439545,
-0.04151272028684616,
-0.015042322687804699,
-0.060949742794036865,
-0.007121643051505089,
-0.044969018548727036,
0.024212656542658806,
-0.005402786191552877,
-0.011140052229166031,
-0.0012647536350414157,
0.05775360018014908,
0.03876255080103874
] |
9,985
|
sentence_transformers.datasets.ParallelSentencesDataset
|
get_embeddings
| null |
def get_embeddings(self, sentences):
if not self.use_embedding_cache:
return self.teacher_model.encode(
sentences, batch_size=self.batch_size, show_progress_bar=False, convert_to_numpy=True
)
# Use caching
new_sentences = []
for sent in sentences:
if sent not in self.embedding_cache:
new_sentences.append(sent)
if len(new_sentences) > 0:
new_embeddings = self.teacher_model.encode(
new_sentences, batch_size=self.batch_size, show_progress_bar=False, convert_to_numpy=True
)
for sent, embedding in zip(new_sentences, new_embeddings):
self.embedding_cache[sent] = embedding
return [self.embedding_cache[sent] for sent in sentences]
|
(self, sentences)
|
[
0.020393360406160355,
-0.03700276091694832,
-0.052211370319128036,
0.0017964713042601943,
-0.021721385419368744,
0.018046578392386436,
-0.01592719554901123,
-0.04420683905482292,
0.12028626352548599,
0.08681277185678482,
0.014662844128906727,
-0.06138019636273384,
-0.09030565619468689,
-0.029343880712985992,
0.03023529425263405,
-0.004866390489041805,
0.009614532813429832,
-0.055522333830595016,
-0.02939845621585846,
-0.06862065941095352,
0.03316422551870346,
-0.009841933846473694,
-0.07098563015460968,
-0.03445586562156677,
-0.014580979943275452,
0.00036355803604237735,
0.002030694857239723,
-0.06287194788455963,
-0.005648651625961065,
0.06862065941095352,
0.05181114375591278,
-0.008172807283699512,
0.005157464649528265,
-0.021885113790631294,
-0.0031017556320875883,
-0.025014158338308334,
-0.03643880411982536,
0.01751900650560856,
0.042023785412311554,
-0.04045926406979561,
0.02857981249690056,
-0.060834430158138275,
0.05333928018808365,
-0.002474127570167184,
-0.03352806717157364,
0.006803850643336773,
-0.012343349866569042,
0.054212503135204315,
0.039222199469804764,
-0.08099129050970078,
-0.004393395502120256,
-0.02115742862224579,
0.029434841126203537,
0.003411021549254656,
0.006758370436728001,
-0.021848728880286217,
-0.029307495802640915,
0.05643193796277046,
-0.019738445058465004,
0.01566341146826744,
0.019847596064209938,
-0.05352120101451874,
0.09474453330039978,
0.06665590405464172,
0.011588376946747303,
0.046608198434114456,
0.00862761028110981,
0.02539619244635105,
-0.023322291672229767,
-0.0016441124025732279,
-0.057341545820236206,
-0.03263665363192558,
-0.08812260627746582,
0.004598056897521019,
-0.05639555677771568,
0.05912437289953232,
0.02674240805208683,
0.004843650385737419,
0.035219933837652206,
0.04890040308237076,
-0.005989753641188145,
-0.004770881962031126,
-0.029289305210113525,
0.0052484250627458096,
0.045625824481248856,
-0.01022396795451641,
0.0003234785399399698,
-0.0020250098314136267,
-0.02787031978368759,
0.001206364599056542,
-0.06545522809028625,
0.02807043306529522,
0.07262291759252548,
-0.022339915856719017,
-0.0049618990160524845,
-0.002458209404721856,
-0.054539959877729416,
-0.047299496829509735,
0.057232391089200974,
-0.008304700255393982,
0.032964110374450684,
0.06312663853168488,
0.012188716791570187,
0.0015815770020708442,
-0.00039539425051771104,
0.008654898963868618,
-0.0403137244284153,
-0.06956664472818375,
-0.005384865682572126,
0.029671339318156242,
-0.01717335544526577,
0.029307495802640915,
0.05792369320988655,
0.03261846303939819,
-0.008886847645044327,
-0.06727443635463715,
0.004197830334305763,
0.05297543853521347,
0.001808978384360671,
0.019247258082032204,
0.00020892506290692836,
0.052757132798433304,
-0.032600268721580505,
-0.0303990226238966,
-0.03947689011693001,
0.0755336582660675,
0.01670036092400551,
0.0023263166658580303,
0.00018504791660234332,
-0.040677569806575775,
0.033582642674446106,
-0.0071313087828457355,
0.037402987480163574,
0.06905726343393326,
0.017109684646129608,
-0.04577136039733887,
0.026305798441171646,
-0.029962413012981415,
0.05475826561450958,
0.01098803710192442,
-0.09474453330039978,
-0.01469922810792923,
0.041659943759441376,
0.03616592288017273,
-0.011815777979791164,
-0.029780492186546326,
0.007645236328244209,
-0.028161393478512764,
-0.014117080718278885,
-0.02144850231707096,
0.033437106758356094,
-0.008977808989584446,
-0.03849451616406441,
-0.034237559884786606,
-0.03765767812728882,
0.03101755492389202,
-0.01197041105479002,
0.009696396999061108,
0.03562016040086746,
0.02839789167046547,
-0.06501861661672592,
0.00019755499670282006,
-0.06665590405464172,
-0.0037339315749704838,
0.05137453228235245,
0.009878317825496197,
0.03944050520658493,
0.0494825504720211,
-0.018737878650426865,
0.046790119260549545,
0.016673073172569275,
0.04984639212489128,
0.008563937619328499,
-0.035219933837652206,
0.04056841507554054,
-0.04322446510195732,
0.01650024764239788,
0.006658313795924187,
0.0702943280339241,
0.04104141145944595,
-0.07713456451892853,
-0.029416648671030998,
-0.04387937858700752,
-0.018355842679739,
0.03416479006409645,
0.03085382655262947,
0.06279917806386948,
0.03860366716980934,
-0.0209755077958107,
-0.04726311191916466,
0.006649218033999205,
-0.0448981374502182,
-0.011924930848181248,
0.03431032970547676,
-0.04442514479160309,
0.05974290519952774,
-0.052102215588092804,
-0.02292206510901451,
-0.09576328843832016,
0.03300049528479576,
-0.02856162004172802,
-0.02772478200495243,
0.0226127989590168,
-0.04591689631342888,
-0.0028720800764858723,
0.03682084009051323,
-0.04526198282837868,
-0.02819777838885784,
-0.026778792962431908,
-0.0604705885052681,
0.005089243873953819,
-0.03471055626869202,
0.05777815729379654,
-0.03187258541584015,
0.032945919781923294,
-0.026451334357261658,
0.006076166406273842,
0.04187824949622154,
-0.008509361185133457,
-0.009605436585843563,
-0.007804417051374912,
-0.027033481746912003,
-0.05755985155701637,
0.01966567523777485,
-0.010515042580664158,
-0.009196113795042038,
0.013744142837822437,
0.01024216040968895,
-0.0640726238489151,
-0.0181102491915226,
0.01023306418210268,
0.07735287398099899,
-0.025377999991178513,
-0.02639675885438919,
0.004641263280063868,
0.014972110278904438,
0.007331422064453363,
0.017064202576875687,
0.06942111253738403,
0.003422391600906849,
0.04602605104446411,
0.02177596092224121,
0.009832837618887424,
0.007654332090169191,
0.004552576690912247,
0.018756069242954254,
0.021175621077418327,
0.00010410721733933315,
0.021357541903853416,
0.01748262159526348,
0.0009454214596189559,
0.0035292701795697212,
0.008313796482980251,
-0.010142103768885136,
0.06760189682245255,
-0.06425455212593079,
-0.005976109765470028,
0.03147235885262489,
0.022085227072238922,
0.0016759485006332397,
0.0007788498769514263,
0.057232391089200974,
-0.012134140357375145,
0.030981171876192093,
-0.018937991932034492,
-0.027688398957252502,
-0.01792832836508751,
0.01948375441133976,
-0.0209755077958107,
0.033582642674446106,
-0.0005412154132500291,
0.060506973415613174,
-0.0011915834620594978,
-0.01320747472345829,
0.038385361433029175,
0.0020648050121963024,
0.0229402557015419,
0.05293905362486839,
-0.04111417755484581,
0.03947689011693001,
-0.025468960404396057,
0.021412119269371033,
0.040350109338760376,
-0.04933701455593109,
0.07273207604885101,
-0.011242726817727089,
-0.039222199469804764,
-0.03101755492389202,
0.03874920308589935,
-0.023395059630274773,
0.037239257246255875,
0.03381914272904396,
0.04104141145944595,
-0.050574079155921936,
-0.04042287915945053,
-0.05832391977310181,
-0.010014759376645088,
-0.02093912474811077,
0.052720747888088226,
0.02193968929350376,
-0.03323699161410332,
0.03765767812728882,
0.0399862676858902,
0.06854788959026337,
0.0031472358386963606,
-0.0019340491853654385,
0.007768033072352409,
0.020702626556158066,
0.01713697239756584,
-0.030107948929071426,
-0.0019920365884900093,
-0.044679831713438034,
-0.03220004215836525,
-0.012070467695593834,
-0.033582642674446106,
0.018537765368819237,
0.01599086821079254,
0.021721385419368744,
-0.03363721817731857,
0.043697457760572433,
0.030107948929071426,
0.0007993160397745669,
0.032763998955488205,
0.029125574976205826,
0.0014110258780419827,
-0.06534607708454132,
0.08754045516252518,
-0.009273430332541466,
-0.011661145836114883,
-0.023067601025104523,
0.040350109338760376,
-0.0755336582660675,
-0.006590093486011028,
0.022230764850974083,
-0.009086960926651955,
0.03893112391233444,
-0.00400226516649127,
0.0009272293536923826,
0.035893041640520096,
-0.05264797806739807,
0.012361541390419006,
-0.06687421351671219,
-0.036420613527297974,
0.01617278903722763,
-0.014890246093273163,
0.020175054669380188,
0.005434894002974033,
0.039040278643369675,
-0.004279694985598326,
0.027470093220472336,
0.00549401855096221,
-0.009227950125932693,
0.02144850231707096,
0.07164054363965988,
-0.016727648675441742,
0.01840132474899292,
0.005675939843058586,
-0.022667374461889267,
-0.0362204983830452,
-0.010151199996471405,
0.005589527077972889,
0.04104141145944595,
0.019083527848124504,
0.02077539451420307,
-0.0113063994795084,
0.03380094841122627,
0.012270580977201462,
-0.022849295288324356,
0.01792832836508751,
-0.019611099734902382,
-0.010769731365144253,
0.050283003598451614,
-0.02445020154118538,
0.0845569521188736,
0.01911991275846958,
-0.05977929010987282,
-0.06414539366960526,
0.03958604112267494,
0.004459341987967491,
0.03152693435549736,
-0.04042287915945053,
-0.03454682603478432,
0.013844199478626251,
-0.007217721547931433,
0.08433864265680313,
0.014972110278904438,
0.062326185405254364,
-0.04075033590197563,
0.0819372832775116,
0.03270942345261574,
-0.06261725723743439,
-0.046499043703079224,
-0.027360940352082253,
0.02692432887852192,
-0.012434310279786587,
-0.007463315036147833,
-0.01717335544526577,
0.0108152125030756,
0.0036316008772701025,
-0.022485453635454178,
0.020593473687767982,
0.006594641599804163,
-0.005612267181277275,
0.06338132917881012,
-0.07720733433961868,
0.03813067078590393,
0.024177320301532745,
0.033273376524448395,
-0.004779978189617395,
-0.01172481756657362,
-0.06872981041669846,
0.04213293641805649,
0.04675373435020447,
-0.03580208122730255,
-0.013689566403627396,
-0.005462182220071554,
-0.007640688214451075,
-0.023322291672229767,
-0.01247069425880909,
0.08113683015108109,
0.010869788005948067,
0.014890246093273163,
0.01501759048551321,
-0.01582713983952999,
-0.007372354622930288,
0.022485453635454178,
-0.05330289527773857,
0.01631832681596279,
-0.03698457032442093,
-0.05315735936164856,
0.002330864779651165,
-0.025232462212443352,
0.018701493740081787,
-0.04591689631342888,
-0.001171117415651679,
0.03223642706871033,
0.014080696739256382,
-0.03454682603478432,
-0.04435237497091293,
0.00046674144687131047,
0.03432852029800415,
-0.009214306250214577,
0.014080696739256382,
-0.010142103768885136,
0.052065830677747726,
-0.003686177311465144,
-0.08885028958320618,
0.06916642189025879,
0.07939038425683975,
-0.015645219013094902,
0.022485453635454178,
0.004648085217922926,
0.057523466646671295,
0.027106251567602158,
0.030762866139411926,
0.08535739779472351,
0.029944220557808876,
-0.01882883906364441,
-0.07655242085456848,
0.031290438026189804,
0.013362107798457146,
-0.006430912297219038,
0.05021023750305176,
0.04573497548699379,
0.014426346868276596,
-0.012270580977201462,
-0.048936787992715836,
-0.03340072184801102,
0.005462182220071554,
0.002781119430437684,
0.07069455832242966,
0.011360975913703442,
0.05715962499380112,
-0.05301182344555855,
-0.014644652605056763,
-0.01594538800418377,
-0.011615664698183537,
-0.04115056246519089,
-0.005853313021361828,
-0.016472959890961647,
0.015426913276314735,
-0.02079358696937561,
-0.0412960983812809,
-0.029598569497466087,
-0.019392793998122215,
-0.030289871618151665,
-0.013935159891843796,
-0.005725968163460493,
0.023304099217057228,
0.030126141384243965,
0.00019570735457818955,
0.038567282259464264,
0.05759623646736145,
-0.013607701286673546,
0.02390443906188011,
0.030144333839416504,
-0.0006816358072683215,
0.04125971719622612,
0.004948255140334368,
0.04726311191916466,
-0.005121080204844475,
-0.027961280196905136,
0.03532908484339714,
-0.006990320049226284,
0.004482082091271877,
0.011952219530940056,
0.011824874207377434,
-0.026851560920476913,
-0.028943654149770737,
-0.021757768467068672,
-0.025996532291173935,
-0.06618291139602661,
-0.03600219637155533,
-0.03645699843764305,
0.024577546864748,
-0.020848162472248077,
-0.0009397364337928593,
-0.016218269243836403,
-0.02130296640098095,
0.03516535833477974,
0.006007945630699396,
0.03860366716980934,
-0.02757924608886242,
-0.005252973176538944,
0.011078997515141964,
-0.007904473692178726,
-0.03582027181982994,
-0.016609400510787964,
-0.015126743353903294,
0.0056213634088635445,
0.017182452604174614,
-0.03733021765947342,
0.0006708342116326094,
0.031290438026189804,
0.014890246093273163,
0.005162012297660112,
-0.026633255183696747,
-0.019883980974555016,
0.0686570405960083,
0.02737913280725479,
-0.047481417655944824,
-0.03816705569624901,
-0.026214836165308952,
0.013425780460238457,
0.01789194531738758,
-0.017473526298999786,
-0.05315735936164856,
0.030744673684239388,
-0.027779359370470047,
0.0044047655537724495,
-0.017955617979168892,
0.00787263736128807,
0.021885113790631294,
-0.04966447129845619,
0.024049974977970123,
-0.07677072286605835,
-0.022321725264191628,
0.006953935604542494,
-0.024832235649228096,
0.06760189682245255,
0.0732414498925209,
-0.02757924608886242,
-0.0018260334618389606,
-0.0224490687251091,
-0.0040841298177838326,
0.035219933837652206,
-0.03698457032442093,
0.003990895114839077,
-0.03813067078590393,
-0.017200645059347153,
0.028343314304947853,
0.031617894768714905,
0.011515608057379723,
0.023031216114759445,
0.009541763924062252,
0.03270942345261574,
-0.04540751874446869,
-0.08477525413036346,
0.007899926044046879,
-0.0036520669236779213,
0.003404199378564954,
-0.031435973942279816,
0.011078997515141964,
0.05312097445130348,
0.05090153589844704,
-0.01676403358578682,
0.027179019525647163,
0.0190107598900795,
-0.022576414048671722,
0.033764563500881195,
-0.00636269198730588,
0.05741431191563606,
-0.008400209248065948,
0.05497657135128975,
0.052247751504182816,
-0.025214271619915962,
-0.034219369292259216,
0.015381433069705963,
-0.09234317392110825,
-0.05774177238345146,
0.027815742418169975,
0.02143031172454357,
-0.019265448674559593,
0.04700842499732971,
0.006530968938022852,
-0.07495151460170746,
-0.030326254665851593,
0.003906756639480591,
0.024668507277965546,
0.042496778070926666,
-0.049300629645586014,
0.0002768612466752529,
0.036074962466955185,
-0.04304254427552223,
0.011688433587551117,
0.0008726529777050018,
0.001969296485185623,
0.016654880717396736,
-0.002204656833782792,
-0.015754371881484985,
0.05846945568919182,
-0.01023306418210268,
-0.012588943354785442,
0.004889130592346191,
-0.014899341389536858,
-0.044970907270908356,
0.0014894793275743723,
0.009941990487277508,
0.021030085161328316,
-0.010414985939860344,
0.031144900247454643,
0.022903872653841972,
0.05730516090989113,
0.029980605468153954,
0.009532667696475983,
0.03247292339801788,
0.009932894259691238,
-0.025177886709570885,
0.013880583457648754,
0.016609400510787964,
-0.03396467864513397,
0.008563937619328499,
-0.00586240878328681,
0.006940291728824377,
-0.01576346717774868,
0.019592907279729843,
-0.015463297255337238,
-0.021903306245803833,
0.006917551625519991,
0.053885042667388916,
-0.020702626556158066,
-0.01074244361370802,
0.04984639212489128,
-0.023813478648662567,
-0.03534727916121483,
-0.002469579456374049,
0.009214306250214577,
-0.03269122913479805,
0.014162560924887657,
-0.04187824949622154,
-0.00887320376932621,
0.018410420045256615,
-0.053084589540958405,
-0.03718468174338341,
0.03167247027158737,
0.02181234583258629,
-0.04296977445483208,
0.015126743353903294,
0.04890040308237076,
-0.02412274479866028,
-0.039840731769800186,
0.015972675755620003,
-0.00001929358950292226,
-0.013689566403627396,
-0.016955051571130753,
0.014389962889254093,
-0.03929496929049492,
0.010023854672908783,
0.020429745316505432,
-0.009805549867451191,
-0.054066963493824005,
0.01911991275846958,
0.02968953177332878,
0.029307495802640915,
-0.11111743748188019,
-0.021703192964196205,
0.01569979451596737,
0.021721385419368744,
-0.019702060148119926,
-0.054248884320259094,
-0.009896510280668736,
-0.0018317184876650572,
-0.0015144934877753258,
-0.04256954789161682,
0.03398286923766136,
0.050755999982357025,
0.040859490633010864,
-0.07946315407752991,
-0.021866921335458755,
0.011124477721750736,
-0.03798513486981392,
0.03290953487157822,
-0.058687761425971985,
-0.03316422551870346,
0.0034360357094556093,
-0.0054712784476578236,
-0.018619628623127937,
0.009059673175215721,
-0.06552799791097641,
0.023395059630274773,
0.028507042676210403,
-0.031290438026189804,
0.04617158696055412,
0.03729383647441864,
0.00047185795847326517,
-0.024140935391187668,
0.03252750262618065,
0.053557585924863815,
0.05319374427199364,
0.043806612491607666,
0.029580378904938698,
-0.0008385427645407617,
0.012952785938978195,
0.014007927849888802,
-0.0755336582660675,
-0.03580208122730255,
-0.004561672918498516,
0.016472959890961647,
0.03765767812728882,
-0.06294471770524979,
-0.02708805911242962,
-0.002969862660393119,
0.002569636097177863,
0.004843650385737419,
-0.06159849837422371,
-0.0657099187374115,
-0.03234557807445526,
-0.03893112391233444,
-0.05064684525132179,
-0.038057904690504074,
-0.020739011466503143,
-0.046317122876644135,
-0.0015053974930197,
0.07611580938100815,
0.028470659628510475,
-0.04438875988125801,
0.06025228276848793,
-0.038858357816934586,
-0.028434274718165398,
-0.04304254427552223,
0.01899256743490696,
0.04191463068127632,
-0.03481970727443695,
-0.024668507277965546,
0.07105839997529984,
0.030326254665851593,
0.010133007541298866,
-0.026487719267606735,
-0.03994988277554512,
-0.037402987480163574,
-0.030326254665851593,
-0.06756551563739777,
-0.012688999995589256,
-0.002311535645276308,
-0.03747575730085373,
-0.003856728319078684,
0.06410901248455048,
0.050464924424886703
] |
9,986
|
sentence_transformers.datasets.ParallelSentencesDataset
|
load_data
|
Reads in a tab-seperated .txt/.csv/.tsv or .gz file. The different columns contain the different translations of the sentence in the first column
:param filepath: Filepath to the file
:param weight: If more than one dataset is loaded with load_data: With which frequency should data be sampled from this dataset?
:param max_sentences: Max number of lines to be read from filepath
:param max_sentence_length: Skip the example if one of the sentences is has more characters than max_sentence_length
:param batch_size: Size for encoding parallel sentences
:return:
|
def load_data(self, filepath: str, weight: int = 100, max_sentences: int = None, max_sentence_length: int = 128):
"""
Reads in a tab-seperated .txt/.csv/.tsv or .gz file. The different columns contain the different translations of the sentence in the first column
:param filepath: Filepath to the file
:param weight: If more than one dataset is loaded with load_data: With which frequency should data be sampled from this dataset?
:param max_sentences: Max number of lines to be read from filepath
:param max_sentence_length: Skip the example if one of the sentences is has more characters than max_sentence_length
:param batch_size: Size for encoding parallel sentences
:return:
"""
logger.info("Load " + filepath)
parallel_sentences = []
with gzip.open(filepath, "rt", encoding="utf8") if filepath.endswith(".gz") else open(
filepath, encoding="utf8"
) as fIn:
count = 0
for line in fIn:
sentences = line.strip().split("\t")
if (
max_sentence_length is not None
and max_sentence_length > 0
and max([len(sent) for sent in sentences]) > max_sentence_length
):
continue
parallel_sentences.append(sentences)
count += 1
if max_sentences is not None and max_sentences > 0 and count >= max_sentences:
break
self.add_dataset(
parallel_sentences, weight=weight, max_sentences=max_sentences, max_sentence_length=max_sentence_length
)
|
(self, filepath: str, weight: int = 100, max_sentences: Optional[int] = None, max_sentence_length: int = 128)
|
[
0.003538623219355941,
-0.016125144436955452,
-0.015207306481897831,
0.009592301212251186,
0.0008722830098122358,
0.028722913935780525,
-0.010357165709137917,
-0.006568836513906717,
0.05359450727701187,
-0.008332524448633194,
-0.026059385389089584,
-0.001569097163155675,
-0.0610811822116375,
-0.021326223388314247,
-0.019472550600767136,
0.0215601809322834,
0.0048636384308338165,
-0.0012057864805683494,
-0.003754585050046444,
-0.015774207189679146,
-0.0008621598244644701,
-0.024565650150179863,
-0.0602533295750618,
0.01140098087489605,
0.013137673027813435,
0.02076832205057144,
-0.040672797709703445,
-0.005983940325677395,
0.008867929689586163,
0.0038940603844821453,
0.00464317761361599,
-0.013992521911859512,
-0.052622679620981216,
0.019400564953684807,
-0.03464386612176895,
-0.04513600468635559,
0.0243676844984293,
-0.04635978862643242,
-0.05568213760852814,
-0.01158094871789217,
0.028344979509711266,
-0.039988916367292404,
0.008710457012057304,
0.029856711626052856,
-0.05830967426300049,
0.01742091402411461,
-0.021074267104268074,
0.027283167466521263,
-0.02964075095951557,
-0.012138850055634975,
0.010924065485596657,
-0.049635209143161774,
-0.007459678687155247,
0.03746936470270157,
-0.05510624125599861,
0.014982346445322037,
-0.059569451957941055,
0.06367272138595581,
0.008633971214294434,
-0.01743891090154648,
0.05255069211125374,
-0.060001373291015625,
0.06050528585910797,
0.05006713420152664,
-0.018023807555437088,
0.03554370626807213,
-0.00438447343185544,
0.0018952892860397696,
-0.01196788065135479,
-0.009547309018671513,
0.015207306481897831,
0.011257006786763668,
-0.0073067061603069305,
0.05636601895093918,
-0.03082854114472866,
0.07681039720773697,
-0.07249116152524948,
-0.013758563436567783,
0.002892987569794059,
0.03120647370815277,
0.004850141238421202,
-0.045351967215538025,
0.05064303055405617,
-0.02773308753967285,
0.02784106880426407,
-0.05276665464043617,
0.08192148804664612,
0.0031044501811265945,
0.005664496682584286,
-0.004980618134140968,
-0.07832212746143341,
0.05640201270580292,
0.07054750621318817,
0.017339929938316345,
0.049599215388298035,
-0.052622679620981216,
0.002897486789152026,
-0.01058212574571371,
-0.029010862112045288,
-0.028614932671189308,
-0.018770676106214523,
-0.014532426372170448,
0.10582125931978226,
-0.02744513936340809,
-0.00963729340583086,
-0.08768047392368317,
-0.0026702771428972483,
0.008233541622757912,
-0.025645459070801735,
-0.01702498458325863,
-0.08681662380695343,
-0.01972450688481331,
0.06791996955871582,
0.054170407354831696,
0.019472550600767136,
-0.041788600385189056,
0.007252715528011322,
0.05402643233537674,
-0.03480583429336548,
0.036461543291807175,
0.02233404479920864,
0.03171038255095482,
-0.08948015421628952,
0.0015522250905632973,
-0.006136913318186998,
-0.04268844053149223,
0.05201078951358795,
-0.04366026818752289,
0.06684016436338425,
-0.03507578745484352,
0.041500650346279144,
-0.029442785307765007,
0.04042084142565727,
-0.01695299707353115,
0.025375505909323692,
-0.05834566801786423,
0.054638322442770004,
0.04207654669880867,
0.011113031767308712,
0.011149025522172451,
0.041104719042778015,
-0.050319086760282516,
0.017456907778978348,
-0.0304506067186594,
0.06316881626844406,
-0.0020921295508742332,
0.034157950431108475,
-0.0796898901462555,
-0.034175947308540344,
0.014406448230147362,
0.012210837565362453,
-0.030954517424106598,
-0.0747227668762207,
-0.08213745057582855,
0.026671277359128,
-0.024007748812437057,
-0.050715018063783646,
-0.02848895452916622,
0.0021494943648576736,
-0.025213534012436867,
-0.013263651169836521,
0.02546549029648304,
-0.0462518073618412,
0.0510389618575573,
-0.019994458183646202,
0.04250847175717354,
-0.003912057261914015,
0.026887238025665283,
-0.04315635561943054,
0.0014993594959378242,
0.018662694841623306,
-0.007977087050676346,
-0.03212431073188782,
0.04121270030736923,
0.04502802714705467,
-0.009322348982095718,
0.02271197736263275,
-0.011239009909331799,
0.04135667532682419,
0.06867583841085434,
-0.036443546414375305,
0.0069647664204239845,
-0.01625112257897854,
0.023395856842398643,
0.0378652922809124,
0.011553953401744366,
0.04481206461787224,
-0.008579980581998825,
0.012120853178203106,
0.006357374135404825,
0.0076036532409489155,
-0.07263513654470444,
0.002762510674074292,
0.022244060412049294,
0.02663528360426426,
0.009277356788516045,
0.024079736322164536,
-0.018788672983646393,
-0.05280264839529991,
-0.015324286185204983,
0.04088876023888588,
-0.03658752143383026,
0.09192772209644318,
-0.0931515023112297,
-0.026725266128778458,
0.03199833258986473,
-0.055322203785181046,
0.02470962330698967,
-0.07529866695404053,
0.027697095647454262,
0.006613828707486391,
-0.08300130069255829,
0.03619159013032913,
0.03673149645328522,
0.06889180094003677,
-0.022496016696095467,
-0.06450057774782181,
0.025645459070801735,
-0.016494078561663628,
-0.01309268083423376,
0.09689483791589737,
0.023719798773527145,
-0.03237626701593399,
0.02238803543150425,
0.06363672763109207,
-0.023305872455239296,
0.07043952494859695,
0.014748387970030308,
-0.009133382700383663,
0.037649333477020264,
0.03385200351476669,
0.0054035428911447525,
0.04697168245911598,
-0.03458987548947334,
0.01482937391847372,
-0.001779434853233397,
0.00009019496064865962,
0.036857470870018005,
0.05568213760852814,
0.016467083245515823,
0.01061811950057745,
-0.000047593133785994723,
-0.011463969945907593,
-0.0638526901602745,
-0.022532010450959206,
0.015090327709913254,
0.0378652922809124,
-0.029928699135780334,
-0.010042221285402775,
-0.0115629518404603,
0.019886478781700134,
0.012561775743961334,
-0.05046306177973747,
-0.011877896264195442,
0.008440504781901836,
-0.05971342325210571,
0.036083608865737915,
-0.039916928857564926,
-0.005776976700872183,
-0.029478779062628746,
-0.0220640916377306,
0.0019087869441136718,
-0.02120024524629116,
0.07889802753925323,
-0.02281995862722397,
0.02811102196574211,
-0.017267942428588867,
-0.030576584860682487,
-0.0037500858306884766,
-0.023323869332671165,
0.038369204849004745,
0.11273203790187836,
0.01238180696964264,
-0.0008514741784892976,
-0.01657506451010704,
0.0022361038718372583,
0.015513252466917038,
-0.028758905827999115,
0.012939708307385445,
0.03710942715406418,
0.005677994340658188,
0.02271197736263275,
0.008026578463613987,
-0.060397304594516754,
0.028668923303484917,
0.0038535676430910826,
-0.09495118260383606,
-0.07234718650579453,
-0.02389976754784584,
-0.00928635522723198,
-0.009736275300383568,
-0.015603236854076385,
0.025393502786755562,
0.01733093149960041,
-0.028398970142006874,
-0.058453649282455444,
0.05503425374627113,
-0.020642343908548355,
0.04279642179608345,
-0.04290440306067467,
-0.020678337663412094,
-0.025375505909323692,
0.11971479654312134,
-0.007977087050676346,
-0.052298739552497864,
-0.04369626194238663,
-0.006726308725774288,
-0.0332581102848053,
-0.01664705201983452,
-0.043084368109703064,
0.01486536767333746,
-0.002167491242289543,
0.024781610816717148,
-0.012642760761082172,
-0.009547309018671513,
0.06158509477972984,
0.005749981850385666,
0.04808748513460159,
0.022082088515162468,
-0.021884124726057053,
-0.0431203618645668,
0.005264067556709051,
0.052226752042770386,
-0.01587318815290928,
0.020336398854851723,
-0.0011276127770543098,
0.11352389305830002,
-0.011913890019059181,
-0.01740291714668274,
-0.023665808141231537,
0.0692877322435379,
-0.007464177906513214,
0.028614932671189308,
-0.0015274795005097985,
-0.04160863161087036,
0.04074478521943092,
0.008624972775578499,
-0.007734130136668682,
0.07601853460073471,
-0.007599154021590948,
0.05510624125599861,
-0.04985117167234421,
-0.019094618037343025,
0.024457668885588646,
0.0031876855064183474,
-0.008494495414197445,
0.020336398854851723,
-0.043804243206977844,
0.04581988602876663,
0.05870560184121132,
0.02465563267469406,
0.007324702572077513,
-0.023809783160686493,
0.0433003306388855,
-0.03547171875834465,
-0.03286217898130417,
-0.003626357764005661,
-0.026113376021385193,
0.009259359911084175,
0.00787360593676567,
-0.03548971563577652,
-0.00210225279442966,
-0.0251055546104908,
0.03458987548947334,
0.013056688010692596,
0.005893955938518047,
0.02391776442527771,
0.013155669905245304,
-0.025573471561074257,
0.04527997970581055,
0.00396829703822732,
-0.008386515080928802,
0.04096074402332306,
0.07918597757816315,
0.016908004879951477,
-0.02778707817196846,
-0.06482452154159546,
0.030414612963795662,
-0.015927178785204887,
0.04430815204977989,
-0.031404439359903336,
0.0086834616959095,
0.06248493492603302,
0.024799607694149017,
-0.0077746231108903885,
-0.01116702239960432,
0.03593963384628296,
0.006433860398828983,
-0.02433169074356556,
0.0005671808030456305,
0.046143826097249985,
-0.003822073107585311,
0.014028515666723251,
-0.00820204708725214,
0.01671004109084606,
-0.010321171954274178,
-0.01640409417450428,
0.011454971507191658,
0.026419321075081825,
0.02470962330698967,
-0.0627368912100792,
-0.02271197736263275,
-0.07274311780929565,
0.05679794028401375,
-0.049203287810087204,
0.06867583841085434,
0.04430815204977989,
0.0052415719255805016,
-0.02319789119064808,
0.017474904656410217,
0.0057454826310276985,
0.05525021627545357,
0.04830344393849373,
0.017672870308160782,
-0.06590432673692703,
0.01970651000738144,
-0.06280887871980667,
0.004886134527623653,
0.019148608669638634,
0.032664213329553604,
0.022244060412049294,
0.07558661699295044,
0.02082231268286705,
-0.033816009759902954,
0.005075101274996996,
0.025177540257573128,
-0.06694814562797546,
-0.07601853460073471,
0.000010940445463347714,
-0.04006090387701988,
-0.051146943122148514,
-0.006793797016143799,
-0.014604413881897926,
-0.04545994848012924,
0.014190486632287502,
0.011113031767308712,
-0.0409967377781868,
0.004179759882390499,
0.020642343908548355,
-0.03286217898130417,
0.037181414663791656,
-0.03361804783344269,
0.02425970323383808,
-0.03862116113305092,
-0.0243676844984293,
-0.03862116113305092,
-0.04045683518052101,
0.01464040670543909,
-0.03439190983772278,
-0.013506608083844185,
-0.005498026497662067,
0.03505779057741165,
0.04556792974472046,
0.0144424419850111,
0.0011382984230294824,
0.021056270226836205,
0.08048174530267715,
0.002101127989590168,
-0.0017535644583404064,
0.04092475399374962,
0.019940469413995743,
0.021812137216329575,
0.06327679008245468,
-0.02701321616768837,
0.02661728672683239,
-0.008795942179858685,
-0.0363895557820797,
0.00732920179143548,
-0.03930503875017166,
-0.04909530654549599,
-0.018842663615942,
0.007185227703303099,
-0.013965526595711708,
-0.053450532257556915,
-0.00926835834980011,
0.012957705184817314,
0.017231948673725128,
0.011661934666335583,
0.03347407281398773,
0.003311413573101163,
0.07328302413225174,
-0.017150962725281715,
0.022675983607769012,
0.020894300192594528,
-0.0018682940863072872,
-0.01120301615446806,
-0.009682285599410534,
-0.02316189743578434,
-0.019058624282479286,
-0.04362427443265915,
-0.012291823513805866,
0.0401688851416111,
0.047259628772735596,
0.013452617451548576,
0.03617359325289726,
0.031818363815546036,
0.021704155951738358,
0.02735515497624874,
0.020228417590260506,
0.026059385389089584,
0.029478779062628746,
-0.012606767006218433,
-0.018014809116721153,
-0.04290440306067467,
0.009448327124118805,
0.05856162682175636,
0.020336398854851723,
0.021452201530337334,
-0.06165708228945732,
-0.046071842312812805,
-0.03779330849647522,
-0.01657506451010704,
-0.042652446776628494,
0.020228417590260506,
0.016206130385398865,
-0.009781267493963242,
-0.00787360593676567,
0.02924482151865959,
-0.03775731474161148,
0.053774476051330566,
-0.0027962548192590475,
0.024061739444732666,
-0.03234027326107025,
0.01043815165758133,
-0.017528895288705826,
-0.020588353276252747,
-0.005668995901942253,
-0.05708589032292366,
0.02350383810698986,
0.05902954563498497,
-0.003552120877429843,
-0.025213534012436867,
0.029082849621772766,
0.03466186299920082,
0.030576584860682487,
-0.018680691719055176,
-0.048771362751722336,
-0.0454239547252655,
0.05240671709179878,
-0.01891464926302433,
-0.06021733582019806,
0.0015949675580486655,
-0.01426247414201498,
-0.012687752954661846,
0.03746936470270157,
-0.009475321508944035,
-0.026149369776248932,
0.0727791115641594,
0.02663528360426426,
0.02971273846924305,
-0.020174426957964897,
-0.004971619695425034,
0.006163908168673515,
-0.03539973124861717,
0.029856711626052856,
-0.058885570615530014,
-0.034157950431108475,
-0.029514772817492485,
-0.0011832903837785125,
0.007689138408750296,
0.02744513936340809,
0.008539487607777119,
-0.01428047101944685,
-0.003392399288713932,
0.04078077897429466,
0.012795734219253063,
-0.04326433688402176,
0.04276042804121971,
-0.05057104304432869,
-0.03541772812604904,
0.01118501927703619,
0.013605589978396893,
-0.04020487889647484,
0.020192423835396767,
-0.042652446776628494,
0.015711218118667603,
-0.03656952455639839,
-0.007581157144159079,
-0.005183082073926926,
-0.017906827852129936,
-0.0014971098862588406,
0.04553193598985672,
0.005048105958849192,
0.05985739827156067,
0.03149442374706268,
0.026887238025665283,
-0.004209004808217287,
0.054206401109695435,
-0.007225720211863518,
0.018383745104074478,
-0.004222502000629902,
0.03732538968324661,
0.02082231268286705,
0.021020276471972466,
0.008458501659333706,
0.009880250319838524,
0.033744022250175476,
-0.0016489579575136304,
-0.0006079548038542271,
-0.027175188064575195,
-0.08595278114080429,
0.0004240499110892415,
-0.05751781165599823,
0.042940396815538406,
-0.015369278378784657,
-0.03082854114472866,
-0.0368034802377224,
0.012246831320226192,
-0.00763064855709672,
0.033816009759902954,
-0.026527302339673042,
0.021344220265746117,
0.038441192358732224,
-0.07054750621318817,
-0.01681802235543728,
-0.023251881822943687,
-0.027085203677415848,
-0.04088876023888588,
0.06176505982875824,
-0.0655083954334259,
0.029568763449788094,
-0.02391776442527771,
0.05478229746222496,
0.03466186299920082,
-0.05982140451669693,
0.04441613331437111,
-0.02703121304512024,
-0.05586210638284683,
-0.01970651000738144,
-0.030396616086363792,
-0.011994875967502594,
-0.05913752689957619,
0.06536442041397095,
0.04664773866534233,
0.04527997970581055,
-0.003372152801603079,
0.0011742920614778996,
0.005988439545035362,
0.029028858989477158,
-0.0479075163602829,
-0.015945175662636757,
-0.03520176559686661,
0.013686575926840305,
-0.024061739444732666,
-0.006991761736571789,
0.01832975447177887,
-0.027085203677415848,
-0.01218384224921465,
0.01968851312994957,
0.007999583147466183,
0.016845015808939934,
0.0030752054881304502,
-0.010591124184429646,
-0.022298051044344902,
0.004271993413567543,
-0.017132965847849846,
0.04466808959841728,
-0.030198652297258377,
0.048843350261449814,
-0.01136498712003231,
-0.0015702219679951668,
0.017285939306020737,
0.04157263785600662,
-0.013173666782677174,
0.030306633561849594,
-0.038045261055231094,
0.008031077682971954,
-0.017978815361857414,
0.047691553831100464,
-0.011625940911471844,
-0.05910153314471245,
0.053090598434209824,
-0.006231396459043026,
0.012075860984623432,
0.045351967215538025,
-0.0189326461404562,
-0.010312173515558243,
-0.062340959906578064,
0.0040200380608439445,
0.00832352600991726,
0.05172283947467804,
0.06104518845677376,
0.058849576860666275,
-0.03444590047001839,
-0.05928150191903114,
0.061189163476228714,
-0.04700767621397972,
-0.016332106664776802,
0.03894510120153427,
-0.01931058056652546,
0.006892779376357794,
0.0633847713470459,
-0.006226897239685059,
-0.041140712797641754,
-0.006843287963420153,
-0.02355782873928547,
0.010339168831706047,
-0.07652244716882706,
-0.05172283947467804,
0.028380973264575005,
-0.0243676844984293,
-0.029784725978970528,
-0.0077386293560266495,
0.0005666184006258845,
-0.03923305124044418,
-0.017816845327615738,
-0.07303106784820557,
0.041140712797641754,
-0.03793727979063988,
0.004670172929763794,
0.07346299290657043,
-0.013983523473143578,
-0.013830550946295261,
0.014208483509719372,
0.021002279594540596,
0.023773789405822754,
-0.03487782180309296,
0.049131300300359726,
-0.009277356788516045,
-0.019922472536563873,
0.021542184054851532,
0.04124869406223297,
0.015675224363803864,
0.027697095647454262,
-0.08242540061473846,
-0.01334463618695736,
-0.0036353562027215958,
-0.014001520350575447,
0.01927458681166172,
-0.019004633650183678,
0.006906277034431696,
0.0071717300452291965,
-0.03536373749375343,
0.003041461342945695,
-0.021092263981699944,
-0.03403197228908539,
-0.044524114578962326,
-0.03829721733927727,
0.03079254738986492,
0.009844256564974785,
-0.060325317084789276,
-0.028650926426053047,
-0.02627534605562687,
0.03590364009141922,
-0.005925450474023819,
-0.00963729340583086,
0.07681039720773697,
0.022460022941231728,
-0.015288292430341244,
0.004546444863080978,
-0.004134767688810825,
0.009259359911084175,
-0.01645808480679989,
0.029100846499204636,
-0.012831727042794228,
-0.008337023667991161,
0.05049905553460121,
-0.0638526901602745,
-0.02010243944823742,
-0.056078068912029266,
-0.020228417590260506,
-0.02231604792177677,
-0.015432266518473625,
0.0025555475149303675,
0.018266765400767326,
0.021722152829170227,
0.056905921548604965,
0.0757305845618248
] |
9,987
|
sentence_transformers.datasets.ParallelSentencesDataset
|
next_entry
| null |
def next_entry(self, data_idx):
source, target_sentences = self.datasets[data_idx][self.datasets_iterator[data_idx]]
self.datasets_iterator[data_idx] += 1
if self.datasets_iterator[data_idx] >= len(self.datasets[data_idx]): # Restart iterator
self.datasets_iterator[data_idx] = 0
random.shuffle(self.datasets[data_idx])
return source, target_sentences
|
(self, data_idx)
|
[
-0.013035280629992485,
-0.04925671964883804,
-0.0775090679526329,
-0.002773463958874345,
-0.0008932864875532687,
0.03379927948117256,
0.0191184114664793,
-0.014865766279399395,
0.08571852743625641,
0.0031016571447253227,
-0.03875453397631645,
-0.034520380198955536,
-0.003996099345386028,
0.02403668686747551,
0.005736447870731354,
-0.017195476219058037,
0.030397163704037666,
0.06197767332196236,
-0.04921973869204521,
0.039198290556669235,
-0.0100491838529706,
0.04729680344462395,
-0.05779898911714554,
-0.028270842507481575,
-0.0383477620780468,
0.07617780566215515,
0.018415801227092743,
-0.011962873861193657,
0.007784188725054264,
-0.007682494819164276,
-0.035518828779459,
-0.03849567845463753,
-0.0007771477103233337,
0.0063234977424144745,
-0.030341695994138718,
-0.00967938918620348,
-0.02884402498602867,
0.023814810439944267,
0.03875453397631645,
0.013719401322305202,
0.023260116577148438,
-0.011648548766970634,
0.028215372934937477,
0.00715553667396307,
-0.004707954823970795,
0.05639376491308212,
-0.04958953335881233,
-0.015254051424562931,
-0.015392724424600601,
-0.1019895151257515,
0.0073589240200817585,
-0.023167667910456657,
0.029842471703886986,
0.035814665257930756,
0.019710082560777664,
0.031599000096321106,
-0.010308041237294674,
0.01871163584291935,
-0.03964204341173172,
0.02875157631933689,
0.00446296576410532,
-0.049478594213724136,
0.030360184609889984,
0.05546927824616432,
0.024073665961623192,
-0.02375934086740017,
-0.03718290477991104,
-0.026199989020824432,
-0.02603358030319214,
-0.012961321510374546,
0.016511354595422745,
0.044523339718580246,
-0.02514607273042202,
-0.03690556064248085,
-0.03967902436852455,
0.0008331947610713542,
0.03307817876338959,
0.04430146515369415,
0.058797433972358704,
0.002209526253864169,
-0.004728755913674831,
-0.015364989638328552,
-0.005852008704096079,
-0.05339842662215233,
-0.005690223537385464,
-0.00626340601593256,
0.027475781738758087,
-0.01729716919362545,
-0.07684344053268433,
-0.02013534866273403,
0.007271097972989082,
0.036702170968055725,
0.009845796972513199,
-0.010511428117752075,
0.05173434689640999,
-0.032763853669166565,
-0.014606909826397896,
-0.024554399773478508,
0.022760894149541855,
-0.009304971434175968,
0.012554546818137169,
0.02875157631933689,
0.02566378563642502,
0.018609942868351936,
-0.000615940080024302,
-0.05794690549373627,
-0.02361142262816429,
0.05872347578406334,
-0.04696398973464966,
0.022446567192673683,
-0.04278530180454254,
-0.01898898370563984,
-0.014995194971561432,
0.01898898370563984,
-0.03418756648898125,
-0.06109016388654709,
0.025497378781437874,
0.05713335797190666,
-0.0182216577231884,
0.033096667379140854,
0.061792775988578796,
0.04311811923980713,
-0.10494787245988846,
0.03603653982281685,
-0.027864066883921623,
-0.03692404925823212,
0.05961098521947861,
0.02394423820078373,
-0.04041861370205879,
-0.048923902213573456,
0.03000887855887413,
0.00949449185281992,
0.024757787585258484,
0.07351528108119965,
0.004548480734229088,
-0.01229569036513567,
0.04992235079407692,
0.025737745687365532,
-0.06948451697826385,
-0.027771618217229843,
0.0062218038365244865,
0.0039799208752810955,
0.017250945791602135,
0.061238083988428116,
0.052769772708415985,
-0.042489465326070786,
-0.050551000982522964,
0.014495971612632275,
0.025090603157877922,
-0.00715553667396307,
0.04788847640156746,
0.01394127868115902,
-0.04104726389050484,
-0.013996748253703117,
0.005847386550158262,
-0.04333999752998352,
-0.03945714607834816,
-0.0374232716858387,
-0.004030767362564802,
0.0033327790442854166,
0.008010688237845898,
-0.04792545735836029,
0.024905705824494362,
0.012868872843682766,
-0.03483470529317856,
0.034113604575395584,
-0.03317062929272652,
0.010936692357063293,
-0.03344797343015671,
-0.0224650576710701,
0.03607352077960968,
-0.013257157057523727,
0.001588963670656085,
-0.02375934086740017,
-0.05162340775132179,
-0.0062218038365244865,
-0.02742031402885914,
0.030341695994138718,
0.1017676368355751,
-0.031136754900217056,
-0.0700022280216217,
-0.0228718314319849,
-0.02440648153424263,
-0.044116564095020294,
-0.016613049432635307,
0.03111826442182064,
0.016418905928730965,
0.034705277532339096,
0.035500336438417435,
0.02745729312300682,
-0.03028622642159462,
-0.03949412703514099,
-0.04995932802557945,
0.004056191071867943,
-0.025830194354057312,
-0.0024522042367607355,
-0.06079432740807533,
0.02751276269555092,
0.0008857750217430294,
0.0021436563692986965,
-0.0486280657351017,
-0.0646771788597107,
0.04256342723965645,
-0.019414247944951057,
-0.017990535125136375,
0.036609724164009094,
-0.021614529192447662,
0.04097330570220947,
-0.06992827355861664,
0.01828637160360813,
-0.024018198251724243,
-0.041934773325920105,
0.014024482108652592,
0.035777684301137924,
0.02542341873049736,
-0.024554399773478508,
-0.04918276146054268,
-0.0449301153421402,
0.013673176988959312,
0.014514461159706116,
0.0280674546957016,
-0.05173434689640999,
0.02166999876499176,
0.03607352077960968,
0.08150286227464676,
-0.0515124686062336,
0.014754828065633774,
-0.003298110794275999,
-0.031377121806144714,
-0.0007211006013676524,
-0.010603876784443855,
0.009892021305859089,
0.03930922970175743,
-0.025035133585333824,
0.060276616364717484,
0.0022106817923486233,
0.025830194354057312,
0.0007216784288175404,
0.01750980131328106,
0.07403299957513809,
-0.05044006183743477,
0.03126618266105652,
0.040122777223587036,
-0.031709935516119,
-0.03890245407819748,
0.03662821277976036,
0.02117077447474003,
-0.010761040262877941,
-0.0030531215015798807,
-0.0392722487449646,
0.007243363186717033,
0.02884402498602867,
-0.030304715037345886,
-0.04511501267552376,
0.02782708778977394,
-0.07055692374706268,
-0.02117077447474003,
-0.01567007042467594,
-0.010862733237445354,
-0.009360441006720066,
-0.0075761787593364716,
0.04034465551376343,
-0.08157681673765182,
0.03496413677930832,
-0.0727756917476654,
0.03579617291688919,
-0.020246285945177078,
0.021596038714051247,
0.022612975910305977,
-0.005121663212776184,
0.07436580955982208,
0.06145995855331421,
0.004104726482182741,
0.007391281425952911,
0.011916649527847767,
0.012637750245630741,
0.004005344118922949,
0.017703944817185402,
0.0074606179259717464,
-0.005861253943294287,
0.05413801595568657,
0.06715480238199234,
-0.043413955718278885,
-0.024831747636198997,
0.03997486084699631,
-0.055543236434459686,
-0.0074791074730455875,
-0.03538940101861954,
0.06349383294582367,
-0.03544486686587334,
0.00007554799958597869,
0.043783750385046005,
0.07284965366125107,
-0.01991347037255764,
0.006388211622834206,
-0.0002500450937077403,
0.013395830988883972,
0.01123252883553505,
-0.029139861464500427,
0.041232164949178696,
-0.02056061290204525,
-0.06796835362911224,
-0.05132757127285004,
0.0073126996867358685,
-0.08165077865123749,
0.024480441585183144,
0.03019377775490284,
0.016104580834507942,
0.0024799390230327845,
-0.04607648029923439,
0.029879450798034668,
0.020412694662809372,
0.03860661759972572,
0.01677021197974682,
-0.025534357875585556,
-0.07965388149023056,
-0.002611678559333086,
0.06386362761259079,
-0.00906460452824831,
0.03420605510473251,
-0.04382073134183884,
0.013099994510412216,
0.02717994712293148,
-0.043561872094869614,
0.024757787585258484,
0.03490866720676422,
0.019432736560702324,
-0.058279722929000854,
-0.028548188507556915,
0.005519193131476641,
0.01954367570579052,
-0.09488944709300995,
-0.03812588378787041,
0.03450189158320427,
-0.029232310131192207,
0.043746769428253174,
0.006623956374824047,
-0.011029141023755074,
0.057725027203559875,
-0.00954071618616581,
-0.03250499814748764,
-0.07129651308059692,
-0.013747136108577251,
0.005144775379449129,
0.07225798070430756,
0.027901045978069305,
0.05931514874100685,
-0.05099475756287575,
0.021189264953136444,
0.046002522110939026,
-0.001376331434585154,
0.05913025140762329,
0.042489465326070786,
0.015651581808924675,
0.07906220853328705,
0.021096816286444664,
0.02361142262816429,
-0.05813180282711983,
0.004788847640156746,
0.03315213695168495,
-0.05550625920295715,
-0.019062941893935204,
-0.011787221767008305,
0.04430146515369415,
-0.03978996351361275,
-0.010557652451097965,
-0.08054139465093613,
0.015984397381544113,
0.008602360263466835,
0.034298501908779144,
-0.05125361308455467,
0.006207936909049749,
0.008214076049625874,
0.05299165099859238,
0.03794098645448685,
-0.09533319622278214,
-0.020227797329425812,
0.029435696080327034,
-0.013109239749610424,
-0.016335701569914818,
-0.022428078576922417,
-0.0031409477815032005,
0.003633237676694989,
0.12010947614908218,
-0.04448636248707771,
0.010557652451097965,
0.02203979343175888,
-0.056985437870025635,
0.019136900082230568,
0.03890245407819748,
0.008061534725129604,
-0.0011036074720323086,
0.04603949934244156,
-0.025719255208969116,
-0.006813476327806711,
-0.04518897086381912,
0.004458343144506216,
-0.03398417681455612,
-0.05413801595568657,
-0.01222173124551773,
-0.005888988263905048,
0.07318247109651566,
-0.07832261919975281,
0.010594632476568222,
0.013312626630067825,
0.04407958686351776,
0.017066048458218575,
-0.023167667910456657,
-0.015272540971636772,
0.011177059262990952,
-0.09925302863121033,
0.024184605106711388,
0.08823312819004059,
0.00142371142283082,
0.0037880893796682358,
-0.014865766279399395,
-0.03232010081410408,
0.045410849153995514,
0.01603986695408821,
0.06367873400449753,
0.011916649527847767,
0.00977183785289526,
0.004377450328320265,
-0.01358997356146574,
-0.040640491992235184,
-0.04640929773449898,
-0.021318692713975906,
-0.004458343144506216,
-0.05343540385365486,
-0.00621718168258667,
-0.08764146268367767,
-0.07617780566215515,
0.01560535654425621,
-0.023629913106560707,
0.03311515972018242,
-0.009485246613621712,
-0.04104726389050484,
0.0004645551962312311,
-0.033318545669317245,
0.001585496822372079,
0.05454479157924652,
0.004996857605874538,
0.04223060980439186,
-0.004118593875318766,
-0.009716368280351162,
0.007206383626908064,
-0.00460163876414299,
0.003845870029181242,
0.036332376301288605,
-0.02394423820078373,
0.00803380087018013,
0.02126322314143181,
-0.017491312697529793,
0.026699213311076164,
-0.005311183165758848,
-0.03997486084699631,
-0.026126030832529068,
-0.015707051381468773,
-0.0047980924136936665,
0.011380447074770927,
0.012915097177028656,
-0.002375934040173888,
0.00017608606140129268,
-0.01640966162085533,
0.05968494340777397,
-0.033133648335933685,
0.0017519047250971198,
0.006096998229622841,
-0.028825534507632256,
-0.02505362406373024,
-0.0022961969953030348,
-0.0011226750211790204,
0.00932346098124981,
-0.05576511472463608,
-0.001019825809635222,
-0.020227797329425812,
0.0012053011450916529,
0.012462098151445389,
0.013349606655538082,
0.03997486084699631,
0.035167522728443146,
-0.04315509647130966,
0.07070484012365341,
0.0045692818239331245,
-0.040640491992235184,
-0.02440648153424263,
-0.01358997356146574,
0.0011694772401824594,
-0.0485171303153038,
0.019599145278334618,
0.04518897086381912,
-0.042304567992687225,
0.03324458748102188,
-0.018757861107587814,
0.0074606179259717464,
0.026458846405148506,
0.0785444974899292,
0.04777753725647926,
0.07137046754360199,
-0.0200983677059412,
0.020116858184337616,
-0.03472376987338066,
0.014042972587049007,
-0.056985437870025635,
0.022816363722085953,
0.10398640483617783,
-0.013580728322267532,
0.008870461955666542,
-0.029047412797808647,
-0.011204794049263,
0.029324758797883987,
-0.014662379398941994,
-0.006452925968915224,
0.03134014084935188,
0.08239036798477173,
0.017287924885749817,
0.00047351117245852947,
0.034058135002851486,
-0.008190963417291641,
0.0257007647305727,
-0.024332523345947266,
0.049848392605781555,
0.020893428474664688,
0.023999707773327827,
-0.015901193022727966,
0.043413955718278885,
-0.04319207742810249,
-0.011740997433662415,
-0.016890395432710648,
0.061792775988578796,
-0.04648325592279434,
-0.008190963417291641,
0.04589158296585083,
0.03886547312140465,
0.0064390585757792,
-0.013488279655575752,
0.02634790726006031,
0.010945937596261501,
0.0925227552652359,
0.05543229728937149,
-0.02880704589188099,
-0.08194661140441895,
-0.036332376301288605,
-0.07839658111333847,
0.028825534507632256,
0.010622366331517696,
-0.029768511652946472,
0.01723245531320572,
-0.006758007220923901,
0.003415982937440276,
-0.017103027552366257,
0.00715553667396307,
0.02268693409860134,
-0.05247393622994423,
0.01741735264658928,
-0.0009366218582727015,
-0.0065915994346141815,
0.017038313671946526,
0.023629913106560707,
0.02788255736231804,
0.013173953630030155,
-0.013737890869379044,
0.003298110794275999,
-0.04711190611124039,
0.05395311862230301,
-0.04674211144447327,
-0.04958953335881233,
-0.006688670255243778,
0.013571483083069324,
-0.026292437687516212,
-0.01560535654425621,
0.016659272834658623,
-0.02126322314143181,
0.005565417464822531,
-0.018702391535043716,
-0.006781119387596846,
-0.016539089381694794,
-0.10738851875066757,
0.02107832580804825,
-0.027808597311377525,
0.01831410638988018,
0.02203979343175888,
0.0755491554737091,
-0.013127729296684265,
0.007049220614135265,
0.008671697229146957,
-0.011010651476681232,
0.009845796972513199,
0.004206420388072729,
-0.0062218038365244865,
-0.039346206933259964,
0.036609724164009094,
-0.06171881780028343,
0.02936173789203167,
0.03659123554825783,
-0.04570668563246727,
0.03890245407819748,
-0.013626952655613422,
0.008967533707618713,
-0.030803939327597618,
-0.022631464526057243,
0.03302270919084549,
-0.06182975694537163,
0.056615643203258514,
0.019321799278259277,
0.0003042143362108618,
-0.04648325592279434,
-0.07007618993520737,
-0.0014780251076444983,
0.017685454338788986,
-0.004867429379373789,
0.043783750385046005,
0.020172327756881714,
-0.08749353885650635,
-0.006286518182605505,
-0.019617633894085884,
-0.019802533090114594,
-0.0008482176926918328,
-0.0066378237679600716,
0.054803647100925446,
0.05217809975147247,
0.025127582252025604,
0.012905851937830448,
0.00001823696948122233,
-0.04870202764868736,
-0.009531470946967602,
0.06922566145658493,
0.005708713084459305,
0.010964427143335342,
0.018277127295732498,
-0.01417240034788847,
-0.01609533466398716,
-0.006642445921897888,
-0.01921086013317108,
-0.004996857605874538,
0.06301309913396835,
0.02361142262816429,
-0.009568450041115284,
0.030970346182584763,
-0.015799500048160553,
0.012092302553355694,
0.05069892108440399,
-0.010206347331404686,
-0.021096816286444664,
0.004088548012077808,
-0.027808597311377525,
-0.010012204758822918,
-0.016012132167816162,
-0.009046114981174469,
0.011972119100391865,
0.011546854861080647,
0.047962434589862823,
0.016113825142383575,
0.0012422807049006224,
0.01760224997997284,
0.005251091439276934,
0.01083499938249588,
-0.00866245198994875,
0.029250798746943474,
-0.0128781171515584,
-0.02462835982441902,
0.04208269342780113,
0.03797796741127968,
-0.08031951636075974,
0.02449893206357956,
0.028917983174324036,
-0.01150987483561039,
-0.019488206133246422,
-0.01212928257882595,
0.0073820361867547035,
-0.05576511472463608,
0.012055323459208012,
-0.028973452746868134,
0.03200577199459076,
0.05273279547691345,
-0.019673103466629982,
0.0019240905530750751,
-0.043931666761636734,
-0.03890245407819748,
-0.022243181243538857,
0.008505289442837238,
0.004982990212738514,
0.007821167819201946,
0.011445160955190659,
-0.06759855896234512,
0.01760224997997284,
0.030545081943273544,
-0.05839065834879875,
0.03505658358335495,
0.01576251909136772,
0.009919756092131138,
-0.00949449185281992,
0.0036863957066088915,
-0.0475926399230957,
-0.07070484012365341,
-0.030415654182434082,
0.000994402333162725,
-0.012452852912247181,
-0.05339842662215233,
-0.00874103419482708,
0.003626303980126977,
0.04648325592279434,
0.03890245407819748,
-0.03905037045478821,
-0.04200873151421547,
-0.012748689390718937,
-0.07373715937137604,
0.020172327756881714,
-0.011583833955228329,
-0.009434400126338005,
0.040492571890354156,
-0.022723915055394173,
-0.06412248313426971,
0.07447674870491028,
-0.01095518283545971,
-0.004728755913674831,
-0.05402707681059837,
0.03978996351361275,
-0.03819984197616577,
0.0429701991379261,
0.005657866131514311,
0.028511209413409233,
0.02338954620063305,
0.07547520101070404,
-0.07377413660287857,
-0.013303381390869617,
0.02065306156873703,
0.0062772734090685844,
-0.00995673518627882,
-0.010816508904099464,
-0.011916649527847767,
-0.028733085840940475,
0.024203095585107803,
-0.026643743738532066,
-0.030489612370729446,
0.019654614850878716,
0.04223060980439186,
-0.029472677037119865,
0.05447082966566086,
0.021466610953211784,
-0.0411212258040905,
-0.0050939288921654224,
-0.02566378563642502,
0.024924196302890778,
0.005274204071611166,
0.004266512114554644,
0.021244732663035393,
-0.004899786319583654,
0.02588566392660141,
-0.08076326549053192,
0.04881296306848526,
0.02338954620063305,
0.005768804810941219,
-0.0022915746085345745,
-0.015133867971599102,
-0.004712577443569899,
0.0700022280216217,
-0.008884329348802567,
0.019506696611642838,
0.0003244374820496887,
0.04611346125602722,
-0.023260116577148438,
0.0013578416546806693,
0.01772243343293667,
-0.04407958686351776,
0.022446567192673683,
0.032024264335632324,
0.05029214546084404
] |
9,988
|
sentence_transformers.SentenceTransformer
|
SentenceTransformer
|
Loads or creates a SentenceTransformer model that can be used to map sentences / text to embeddings.
:param model_name_or_path: If it is a filepath on disc, it loads the model from that path. If it is not a path,
it first tries to download a pre-trained SentenceTransformer model. If that fails, tries to construct a model
from the Hugging Face Hub with that name.
:param modules: A list of torch Modules that should be called sequentially, can be used to create custom
SentenceTransformer models from scratch.
:param device: Device (like "cuda", "cpu", "mps", "npu") that should be used for computation. If None, checks if a GPU
can be used.
:param prompts: A dictionary with prompts for the model. The key is the prompt name, the value is the prompt text.
The prompt text will be prepended before any text to encode. For example:
`{"query": "query: ", "passage": "passage: "}` or `{"clustering": "Identify the main category based on the
titles in "}`.
:param default_prompt_name: The name of the prompt that should be used by default. If not set,
no prompt will be applied.
:param cache_folder: Path to store models. Can also be set by the SENTENCE_TRANSFORMERS_HOME environment variable.
:param trust_remote_code: Whether or not to allow for custom models defined on the Hub in their own modeling files.
This option should only be set to True for repositories you trust and in which you have read the code, as it
will execute code present on the Hub on your local machine.
:param revision: The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
:param token: Hugging Face authentication token to download private models.
:param truncate_dim: The dimension to truncate sentence embeddings to. `None` does no truncation. Truncation is
only applicable during inference when `.encode` is called.
|
class SentenceTransformer(nn.Sequential):
"""
Loads or creates a SentenceTransformer model that can be used to map sentences / text to embeddings.
:param model_name_or_path: If it is a filepath on disc, it loads the model from that path. If it is not a path,
it first tries to download a pre-trained SentenceTransformer model. If that fails, tries to construct a model
from the Hugging Face Hub with that name.
:param modules: A list of torch Modules that should be called sequentially, can be used to create custom
SentenceTransformer models from scratch.
:param device: Device (like "cuda", "cpu", "mps", "npu") that should be used for computation. If None, checks if a GPU
can be used.
:param prompts: A dictionary with prompts for the model. The key is the prompt name, the value is the prompt text.
The prompt text will be prepended before any text to encode. For example:
`{"query": "query: ", "passage": "passage: "}` or `{"clustering": "Identify the main category based on the
titles in "}`.
:param default_prompt_name: The name of the prompt that should be used by default. If not set,
no prompt will be applied.
:param cache_folder: Path to store models. Can also be set by the SENTENCE_TRANSFORMERS_HOME environment variable.
:param trust_remote_code: Whether or not to allow for custom models defined on the Hub in their own modeling files.
This option should only be set to True for repositories you trust and in which you have read the code, as it
will execute code present on the Hub on your local machine.
:param revision: The specific model version to use. It can be a branch name, a tag name, or a commit id,
for a stored model on Hugging Face.
:param token: Hugging Face authentication token to download private models.
:param truncate_dim: The dimension to truncate sentence embeddings to. `None` does no truncation. Truncation is
only applicable during inference when `.encode` is called.
"""
def __init__(
self,
model_name_or_path: Optional[str] = None,
modules: Optional[Iterable[nn.Module]] = None,
device: Optional[str] = None,
prompts: Optional[Dict[str, str]] = None,
default_prompt_name: Optional[str] = None,
cache_folder: Optional[str] = None,
trust_remote_code: bool = False,
revision: Optional[str] = None,
token: Optional[Union[bool, str]] = None,
use_auth_token: Optional[Union[bool, str]] = None,
truncate_dim: Optional[int] = None,
):
# Note: self._load_sbert_model can also update `self.prompts` and `self.default_prompt_name`
self.prompts = prompts or {}
self.default_prompt_name = default_prompt_name
self.truncate_dim = truncate_dim
self._model_card_vars = {}
self._model_card_text = None
self._model_config = {}
if use_auth_token is not None:
warnings.warn(
"The `use_auth_token` argument is deprecated and will be removed in v3 of SentenceTransformers.",
FutureWarning,
)
if token is not None:
raise ValueError(
"`token` and `use_auth_token` are both specified. Please set only the argument `token`."
)
token = use_auth_token
if cache_folder is None:
cache_folder = os.getenv("SENTENCE_TRANSFORMERS_HOME")
if model_name_or_path is not None and model_name_or_path != "":
logger.info("Load pretrained SentenceTransformer: {}".format(model_name_or_path))
# Old models that don't belong to any organization
basic_transformer_models = [
"albert-base-v1",
"albert-base-v2",
"albert-large-v1",
"albert-large-v2",
"albert-xlarge-v1",
"albert-xlarge-v2",
"albert-xxlarge-v1",
"albert-xxlarge-v2",
"bert-base-cased-finetuned-mrpc",
"bert-base-cased",
"bert-base-chinese",
"bert-base-german-cased",
"bert-base-german-dbmdz-cased",
"bert-base-german-dbmdz-uncased",
"bert-base-multilingual-cased",
"bert-base-multilingual-uncased",
"bert-base-uncased",
"bert-large-cased-whole-word-masking-finetuned-squad",
"bert-large-cased-whole-word-masking",
"bert-large-cased",
"bert-large-uncased-whole-word-masking-finetuned-squad",
"bert-large-uncased-whole-word-masking",
"bert-large-uncased",
"camembert-base",
"ctrl",
"distilbert-base-cased-distilled-squad",
"distilbert-base-cased",
"distilbert-base-german-cased",
"distilbert-base-multilingual-cased",
"distilbert-base-uncased-distilled-squad",
"distilbert-base-uncased-finetuned-sst-2-english",
"distilbert-base-uncased",
"distilgpt2",
"distilroberta-base",
"gpt2-large",
"gpt2-medium",
"gpt2-xl",
"gpt2",
"openai-gpt",
"roberta-base-openai-detector",
"roberta-base",
"roberta-large-mnli",
"roberta-large-openai-detector",
"roberta-large",
"t5-11b",
"t5-3b",
"t5-base",
"t5-large",
"t5-small",
"transfo-xl-wt103",
"xlm-clm-ende-1024",
"xlm-clm-enfr-1024",
"xlm-mlm-100-1280",
"xlm-mlm-17-1280",
"xlm-mlm-en-2048",
"xlm-mlm-ende-1024",
"xlm-mlm-enfr-1024",
"xlm-mlm-enro-1024",
"xlm-mlm-tlm-xnli15-1024",
"xlm-mlm-xnli15-1024",
"xlm-roberta-base",
"xlm-roberta-large-finetuned-conll02-dutch",
"xlm-roberta-large-finetuned-conll02-spanish",
"xlm-roberta-large-finetuned-conll03-english",
"xlm-roberta-large-finetuned-conll03-german",
"xlm-roberta-large",
"xlnet-base-cased",
"xlnet-large-cased",
]
if not os.path.exists(model_name_or_path):
# Not a path, load from hub
if "\\" in model_name_or_path or model_name_or_path.count("/") > 1:
raise ValueError("Path {} not found".format(model_name_or_path))
if "/" not in model_name_or_path and model_name_or_path.lower() not in basic_transformer_models:
# A model from sentence-transformers
model_name_or_path = __MODEL_HUB_ORGANIZATION__ + "/" + model_name_or_path
if is_sentence_transformer_model(model_name_or_path, token, cache_folder=cache_folder, revision=revision):
modules = self._load_sbert_model(
model_name_or_path,
token=token,
cache_folder=cache_folder,
revision=revision,
trust_remote_code=trust_remote_code,
)
else:
modules = self._load_auto_model(
model_name_or_path,
token=token,
cache_folder=cache_folder,
revision=revision,
trust_remote_code=trust_remote_code,
)
if modules is not None and not isinstance(modules, OrderedDict):
modules = OrderedDict([(str(idx), module) for idx, module in enumerate(modules)])
super().__init__(modules)
if device is None:
device = get_device_name()
logger.info("Use pytorch device_name: {}".format(device))
self.to(devic
|
(model_name_or_path: Optional[str] = None, modules: Optional[Iterable[torch.nn.modules.module.Module]] = None, device: Optional[str] = None, prompts: Optional[Dict[str, str]] = None, default_prompt_name: Optional[str] = None, cache_folder: Optional[str] = None, trust_remote_code: bool = False, revision: Optional[str] = None, token: Union[bool, str, NoneType] = None, use_auth_token: Union[bool, str, NoneType] = None, truncate_dim: Optional[int] = None)
|
[
-0.010446958243846893,
-0.049290284514427185,
-0.05703474581241608,
0.013260376639664173,
0.032087087631225586,
-0.01272592879831791,
-0.04473234340548515,
-0.015146072953939438,
0.027105621993541718,
-0.042433205991983414,
0.009872173890471458,
-0.008621766231954098,
-0.033034976571798325,
0.06159268692135811,
-0.03404337167739868,
0.018887214362621307,
0.022305669263005257,
0.0068570771254599094,
0.05074236914515495,
-0.02827535942196846,
-0.008571346290409565,
-0.020339300855994225,
-0.027872001752257347,
0.013764574192464352,
-0.026762768626213074,
0.0006434812094084918,
0.029142577201128006,
-0.023556075990200043,
0.02103509195148945,
0.019219983369112015,
-0.0003630217397585511,
-0.02123677171766758,
0.013925916515290737,
-0.007099091541022062,
-0.0023407337721437216,
-0.026843439787626266,
0.03581814467906952,
0.03634250909090042,
-0.07938075065612793,
-0.02079307846724987,
-0.019865356385707855,
-0.02771065942943096,
0.06514222919940948,
0.0008357062470167875,
-0.06199604272842407,
-0.0067713637836277485,
-0.02930392138659954,
0.0643758550286293,
-0.00043833613744936883,
0.013653650879859924,
-0.01867545209825039,
-0.05150875076651573,
0.023495573550462723,
0.0262182354927063,
-0.04190884158015251,
-0.018655283376574516,
-0.030171139165759087,
0.06925647705793381,
-0.020672069862484932,
0.03289380297064781,
0.056389376521110535,
-0.006907496601343155,
0.014954478479921818,
0.04662812501192093,
-0.00019317041733302176,
0.019109060987830162,
0.02289053611457348,
0.010537713766098022,
-0.017384707927703857,
0.0007682699360884726,
-0.032792963087558746,
-0.06369014829397202,
0.018725870177149773,
0.07925974577665329,
0.03128037229180336,
0.0061159078031778336,
-0.02833586372435093,
0.007305812556296587,
0.020752742886543274,
0.008737731724977493,
0.05727676302194595,
-0.009428480640053749,
0.008657059632241726,
-0.06889345496892929,
-0.014551120810210705,
-0.04444999247789383,
0.05086337774991989,
-0.0014230955857783556,
0.00034978656913153827,
-0.014722547493875027,
-0.06292376667261124,
0.04368361458182335,
0.047878533601760864,
0.06147167831659317,
0.04303824156522751,
0.009347809478640556,
-0.023374564945697784,
-0.001232761307619512,
-0.021962814033031464,
-0.06502122431993484,
-0.02182164043188095,
0.0960797518491745,
-0.042191192507743835,
0.027226630598306656,
-0.0286585483700037,
-0.0338013581931591,
-0.07921940833330154,
0.01125367358326912,
0.03198624774813652,
-0.026016557589173317,
-0.103662870824337,
0.01823175884783268,
0.00162351387552917,
0.009423439390957355,
-0.015206577256321907,
-0.07195897400379181,
-0.008722605183720589,
0.014359526336193085,
-0.018504023551940918,
0.026581257581710815,
-0.008213366381824017,
0.012514165602624416,
-0.10229145735502243,
-0.04945162683725357,
-0.003970550373196602,
0.016628412529826164,
0.06127000227570534,
0.01314945425838232,
0.03236943855881691,
-0.06949849426746368,
-0.021317442879080772,
-0.0232132226228714,
0.013482223264873028,
0.013925916515290737,
0.01899813674390316,
-0.0496533066034317,
-0.03442656248807907,
0.011021743528544903,
-0.01442002970725298,
0.06506156176328659,
-0.022850200533866882,
-0.0029092158656567335,
0.0425945483148098,
-0.04444999247789383,
0.018897298723459244,
0.0027125789783895016,
0.01944182999432087,
-0.06869177520275116,
-0.03608032688498497,
-0.03656435385346413,
0.03525344282388687,
-0.006206663325428963,
-0.013411636464297771,
-0.016799839213490486,
-0.026762768626213074,
0.04791886731982231,
-0.03446689620614052,
-0.05417091026902199,
-0.002911736723035574,
0.04759618267416954,
-0.031623225659132004,
-0.05429191514849663,
0.004121809266507626,
0.0314013808965683,
0.005465494003146887,
-0.02968711033463478,
-0.025169506669044495,
-0.0016298163682222366,
-0.02444346249103546,
0.06675565987825394,
-0.013330964371562004,
0.05384822189807892,
-0.04707181826233864,
0.0072705186903476715,
0.06389182806015015,
0.07458079606294632,
0.053202852606773376,
0.00738648371770978,
-0.021337609738111496,
0.042634885758161545,
-0.0041117253713309765,
-0.007361273746937513,
-0.021095596253871918,
0.0017369581619277596,
-0.00667052436619997,
0.05727676302194595,
0.022285500541329384,
0.016416650265455246,
-0.0030478700064122677,
0.024967828765511513,
0.026399746537208557,
-0.015246912837028503,
0.04432898759841919,
-0.009257053956389427,
-0.03420471400022507,
0.042513877153396606,
-0.013663734309375286,
-0.046023089438676834,
-0.02323339134454727,
-0.023636749014258385,
-0.010991491377353668,
-0.011697366833686829,
0.056389376521110535,
-0.0017848568968474865,
-0.06921613961458206,
0.005475577898323536,
-0.025572864338755608,
0.0524364709854126,
-0.029566103592514992,
-0.036181166768074036,
-0.03599965572357178,
-0.025552695617079735,
0.04138447716832161,
0.04035591706633568,
0.08454372733831406,
-0.08825461566448212,
-0.01008897926658392,
0.028698883950710297,
-0.004116767086088657,
-0.03967020660638809,
0.07232199609279633,
-0.018211590126156807,
-0.005621795076876879,
0.007078923750668764,
-0.018130918964743614,
-0.01781831681728363,
0.01929057203233242,
-0.00884865503758192,
0.024161113426089287,
-0.013653650879859924,
0.02615773305296898,
0.017858652397990227,
-0.010658721439540386,
0.04824155569076538,
0.006877244915813208,
0.030917350202798843,
0.005465494003146887,
0.03507193177938461,
0.009428480640053749,
-0.0480802096426487,
-0.009761250577867031,
0.0015592287527397275,
-0.022991375997662544,
-0.005173059646040201,
0.007608330342918634,
0.010099062696099281,
0.06812708079814911,
-0.032087087631225586,
-0.07086990773677826,
-0.047757524996995926,
-0.011072162538766861,
-0.008167988620698452,
-0.018312430009245872,
0.012574668973684311,
-0.012161227874457836,
-0.11632829904556274,
0.005031884647905827,
-0.029767781496047974,
0.02892073057591915,
-0.02533084899187088,
-0.06659431755542755,
-0.02436279132962227,
-0.07337072491645813,
0.0726446807384491,
-0.007608330342918634,
-0.0048730624839663506,
-0.021075427532196045,
0.034628238528966904,
0.005828515626490116,
-0.01764689013361931,
0.06510189920663834,
0.05046002194285393,
-0.10543764382600784,
0.004895751364529133,
0.030271979048848152,
-0.015882201492786407,
-0.04703148081898689,
0.010951155796647072,
-0.0133712999522686,
0.053444866091012955,
0.0025197237264364958,
-0.034103874117136,
0.000664909603074193,
-0.0012056607520207763,
0.03519294038414955,
-0.04035591706633568,
-0.048523902893066406,
-0.10067802667617798,
0.00369324185885489,
-0.033619847148656845,
-0.040416419506073,
0.017858652397990227,
0.046668458729982376,
-0.008717563934624195,
-0.01999644748866558,
-0.05033901333808899,
-0.016214970499277115,
0.04517603665590286,
0.041102126240730286,
-0.06623129546642303,
0.018685534596443176,
0.06373047828674316,
0.07091024518013,
0.0022247685119509697,
-0.030534161254763603,
-0.04828188940882683,
0.0016285558231174946,
-0.028416534885764122,
0.015045234002172947,
-0.045902080833911896,
-0.013986420817673206,
-0.013129285536706448,
0.06651365011930466,
0.014591456390917301,
0.008697395212948322,
0.024524135515093803,
0.0382382906973362,
0.05578434094786644,
0.028759388253092766,
0.0518314354121685,
-0.017162861302495003,
0.037935771048069,
0.01634606160223484,
0.05727676302194595,
0.022991375997662544,
-0.07280602306127548,
0.10535697638988495,
0.00003103961716988124,
-0.027730826288461685,
-0.018806543201208115,
-0.015418339520692825,
-0.00047079380601644516,
0.03896433115005493,
0.02692411094903946,
-0.052799493074417114,
-0.01186879351735115,
-0.020833414047956467,
-0.013300713151693344,
0.041424814611673355,
-0.02942492812871933,
0.06344813108444214,
-0.017122525721788406,
-0.024342624470591545,
0.053646545857191086,
0.04638611152768135,
-0.008591514080762863,
0.04291723668575287,
0.000859655614476651,
0.007734379731118679,
0.005500787403434515,
-0.026258571073412895,
0.017747728154063225,
0.0172031968832016,
0.06252040714025497,
0.002159222960472107,
-0.019744347780942917,
-0.03487025573849678,
-0.0061159078031778336,
0.00834949966520071,
-0.05138774216175079,
-0.024705644696950912,
-0.01775781251490116,
-0.07687993347644806,
0.030493825674057007,
-0.00217182794585824,
-0.026440082117915154,
0.005959606729447842,
0.008561262860894203,
0.0928528904914856,
-0.006468845531344414,
0.0043638236820697784,
-0.01167719904333353,
0.005510871764272451,
0.03781476244330406,
-0.006206663325428963,
-0.024080442264676094,
-0.05066169798374176,
0.031562723219394684,
-0.024403126910328865,
0.03355934098362923,
0.032913971692323685,
0.042513877153396606,
0.005994900595396757,
0.039045002311468124,
0.04211052134633064,
-0.03775426000356674,
0.05501795932650566,
-0.005601626820862293,
0.02444346249103546,
-0.04920961335301399,
0.03825845569372177,
-0.016809923574328423,
0.0037890393286943436,
0.003657948225736618,
-0.023051880300045013,
-0.008596556261181831,
-0.03716939315199852,
0.045700401067733765,
-0.0010323430178686976,
-0.05642971023917198,
-0.021841807290911674,
-0.0007978915236890316,
0.06183470040559769,
0.04816088452935219,
-0.046547453850507736,
0.031441714614629745,
0.08551178872585297,
0.03121986798942089,
-0.00416718702763319,
0.048322226852178574,
-0.03204675018787384,
0.03436605632305145,
-0.056187696754932404,
-0.028577877208590508,
-0.058043140918016434,
0.04836256057024002,
0.034628238528966904,
0.011717534624040127,
-0.014178015291690826,
0.03622150048613548,
-0.0022134240716695786,
0.04489368572831154,
0.016971265897154808,
-0.002571403980255127,
-0.0005344486562535167,
0.05396923050284386,
-0.05941455811262131,
0.039045002311468124,
-0.024665309116244316,
-0.02853754162788391,
0.0008754117880016565,
-0.026641761884093285,
-0.029828285798430443,
-0.07111192494630814,
-0.0029293836560100317,
0.009962929412722588,
0.016598159447312355,
-0.01272592879831791,
-0.022668689489364624,
0.0006195319001562893,
-0.002941988641396165,
-0.010779728181660175,
0.022245164960622787,
-0.017031770199537277,
0.04457100108265877,
-0.016628412529826164,
-0.059898585081100464,
0.03997272625565529,
-0.04319958761334419,
-0.0073663159273564816,
0.02738797292113304,
0.012130975723266602,
0.019593089818954468,
0.01767714135348797,
-0.017425043508410454,
-0.010890651494264603,
0.09866123646497726,
0.012544417753815651,
-0.05187177285552025,
0.009080585092306137,
-0.02539135329425335,
0.053444866091012955,
0.026198068633675575,
0.0594952292740345,
0.041102126240730286,
0.024745982140302658,
0.024100609123706818,
-0.023818258196115494,
-0.07829168438911438,
0.019562838599085808,
0.018746038898825645,
-0.012967943213880062,
0.07708161324262619,
-0.027589650824666023,
-0.04035591706633568,
0.0030050131026655436,
0.009211676195263863,
-0.054090239107608795,
-0.030917350202798843,
-0.018221674486994743,
0.044248316437006,
-0.05840616300702095,
0.02103509195148945,
0.041102126240730286,
-0.003536940785124898,
0.004454579204320908,
0.02476614899933338,
-0.021579625084996223,
-0.001994098536670208,
0.004807516932487488,
-0.06179436668753624,
0.02635941095650196,
0.0374114066362381,
-0.012050304561853409,
-0.006962958257645369,
0.01307886652648449,
-0.01634606160223484,
0.013119202107191086,
0.013008278794586658,
-0.040335748344659805,
0.004850373603403568,
-0.015166240744292736,
0.004605838097631931,
-0.0513070710003376,
0.038863491266965866,
0.049411289393901825,
-0.03428538516163826,
0.010376371443271637,
-0.05630870535969734,
0.005873893387615681,
-0.040275245904922485,
-0.029142577201128006,
0.023051880300045013,
-0.048443231731653214,
-0.004447016399353743,
0.007426819764077663,
0.010169650427997112,
0.020772909745573997,
-0.013966253027319908,
0.02871905267238617,
0.03878282010555267,
0.011233505792915821,
0.022809864953160286,
-0.03487025573849678,
0.02924341708421707,
0.021720800548791885,
-0.024584637954831123,
-0.01266542449593544,
0.05711542069911957,
0.03501142933964729,
0.032208096235990524,
-0.005737760104238987,
-0.002081072423607111,
0.06699767708778381,
0.05175076425075531,
-0.01570069044828415,
-0.032772794365882874,
-0.0401138998568058,
0.03466857597231865,
-0.03345850110054016,
-0.053122181445360184,
-0.03238960728049278,
-0.06719935685396194,
0.0237375870347023,
0.018695618957281113,
-0.03954920172691345,
0.018504023551940918,
0.06211705133318901,
-0.05909186974167824,
0.021014925092458725,
-0.07082957029342651,
0.01958300545811653,
0.016043543815612793,
-0.03725006431341171,
0.04194917902350426,
-0.016386397182941437,
-0.03934752196073532,
0.0049436502158641815,
0.01803007908165455,
0.014994814060628414,
0.0013361216988414526,
-0.014450281858444214,
0.0028083764482289553,
-0.03656435385346413,
0.03505176305770874,
0.05659105256199837,
-0.02406027354300022,
-0.004351218696683645,
-0.06127000227570534,
-0.020228376612067223,
0.027327468618750572,
0.01442002970725298,
-0.021539289504289627,
0.0589708648622036,
-0.04727349802851677,
0.00007310854562092572,
-0.0077696735970675945,
0.006695734336972237,
-0.0030478700064122677,
0.009771334938704967,
0.04485335201025009,
0.020893916487693787,
-0.015367919579148293,
0.03920634835958481,
0.03716939315199852,
-0.02335439808666706,
0.041424814611673355,
0.04102145507931709,
-0.010436874814331532,
-0.028678717091679573,
-0.04739450290799141,
0.024544302374124527,
0.008304121904075146,
-0.003932735417038202,
0.04892726242542267,
-0.0010430571855977178,
-0.041747499257326126,
-0.00572263402864337,
0.02886022813618183,
-0.034124042838811874,
-0.03224842995405197,
0.0028184603434056044,
0.028819892555475235,
-0.0013146932469680905,
0.06159268692135811,
-0.04166682809591293,
-0.05957590043544769,
0.011899045668542385,
0.03519294038414955,
0.022567851468920708,
-0.035918984562158585,
0.00043455464765429497,
-0.022224996238946915,
-0.03392236307263374,
-0.03426521643996239,
-0.05642971023917198,
0.008818402886390686,
-0.008747815154492855,
0.09188483655452728,
-0.04158615693449974,
0.04021473973989487,
0.015075486153364182,
-0.030856847763061523,
0.013663734309375286,
-0.04880625382065773,
0.023455237969756126,
0.0013928437838330865,
-0.02654092200100422,
0.013119202107191086,
-0.03402320295572281,
0.021982982754707336,
-0.017898987978696823,
0.07062789797782898,
0.01045704260468483,
0.04674912989139557,
0.00905537512153387,
0.0007077663321979344,
0.008117569610476494,
0.02105526067316532,
0.0006579768960364163,
-0.014530953019857407,
0.015085569582879543,
-0.014127595350146294,
-0.011193170212209225,
-0.04453066736459732,
0.020107369869947433,
-0.008193198591470718,
0.011858710087835789,
0.06070530042052269,
0.037935771048069,
-0.0011287706438452005,
0.06861110776662827,
0.014077176339924335,
-0.04989532008767128,
-0.0147427162155509,
0.01714269258081913,
0.004966339096426964,
-0.015458675101399422,
0.049854982644319534,
-0.018867045640945435,
0.004038616549223661,
-0.007870513014495373,
0.08535043895244598,
-0.0024844298604875803,
0.03255094960331917,
-0.00810244306921959,
0.014107427559792995,
-0.021156100556254387,
0.01125367358326912,
0.009897383861243725,
-0.06324645131826401,
-0.04287689924240112,
-0.007578078657388687,
-0.045902080833911896,
0.002735267858952284,
0.005294066853821278,
0.06679599732160568,
-0.013583063147962093,
-0.003158793319016695,
0.007124301511794329,
0.00836462527513504,
0.031139196828007698,
-0.01503514964133501,
0.02323339134454727,
-0.03950886428356171,
0.001073939260095358,
-0.022124158218503,
0.014248603023588657,
-0.01970401220023632,
-0.04920961335301399,
-0.010305783711373806,
0.017354454845190048,
-0.0021655254531651735,
-0.034103874117136,
0.027750995010137558,
-0.044934023171663284,
-0.02833586372435093,
-0.03196607902646065,
-0.07086990773677826,
-0.027670323848724365,
0.04670879617333412,
-0.05013733357191086,
-0.07716228812932968,
-0.02283003367483616,
-0.017394790425896645,
0.037008047103881836,
-0.075871542096138,
0.0017848568968474865,
-0.029828285798430443,
-0.0398113839328289,
0.05630870535969734,
-0.00994276162236929,
0.06546492129564285,
-0.00851084291934967,
0.02807367965579033,
-0.019361158832907677,
-0.021761136129498482,
0.07889672368764877,
0.003940298222005367,
0.009161257185041904,
0.03166356310248375,
-0.013280545361340046,
0.09301423281431198,
0.019300654530525208,
-0.02103509195148945,
-0.02244684286415577,
0.02258801832795143,
0.007245308719575405,
0.06058429181575775,
0.0008231013780459762,
0.018977969884872437,
0.005798263940960169,
-0.07191863656044006,
-0.0019071245333179832,
-0.024201449006795883,
-0.06594894826412201,
0.029707279056310654,
0.002296616556122899,
-0.05582467466592789,
-0.031885407865047455,
0.037653420120477676,
-0.04969364032149315,
-0.04432898759841919,
-0.008006646297872066,
0.031199701130390167,
0.04323992133140564,
0.05675239861011505,
-0.024080442264676094,
0.006146159488707781,
-0.02424178458750248,
0.06155234947800636,
-0.00967553723603487,
-0.02309221588075161,
0.004136935342103243,
0.039287019520998,
-0.027730826288461685,
0.007653708104044199,
0.021216602995991707,
-0.0474751740694046,
-0.049411289393901825,
0.01814100332558155,
-0.06683633476495743,
0.011263757944107056,
-0.025996388867497444,
0.05404990166425705,
0.014218350872397423,
0.035031598061323166,
0.0401138998568058
] |
9,989
|
torch.nn.modules.container
|
__add__
| null |
def __add__(self, other) -> 'Sequential':
if isinstance(other, Sequential):
ret = Sequential()
for layer in self:
ret.append(layer)
for layer in other:
ret.append(layer)
return ret
else:
raise ValueError('add operator supports only objects '
f'of Sequential class, but {str(type(other))} is given.')
|
(self, other) -> torch.nn.modules.container.Sequential
|
[
-0.07506076991558075,
0.0002762324584182352,
-0.030381739139556885,
0.03132788464426994,
-0.05943186581134796,
0.008002802729606628,
-0.0884469524025917,
0.011187277734279633,
0.05883614718914032,
0.00212444388307631,
0.01055651530623436,
-0.0332026481628418,
0.006684333086013794,
0.018011780455708504,
0.04727216437458992,
0.036934662610292435,
0.016942987218499184,
-0.027210403233766556,
-0.05224817991256714,
-0.022234385833144188,
-0.009216144680976868,
0.04054402559995651,
-0.0077312239445745945,
0.026141611859202385,
0.028804831206798553,
0.08774610608816147,
-0.014358612708747387,
0.0020346478559076786,
-0.05732932314276695,
0.013964386656880379,
0.022795064374804497,
-0.051792629063129425,
-0.096927210688591,
-0.059116486459970474,
0.009759301319718361,
0.06658051162958145,
-0.07033004611730576,
0.05144220590591431,
-0.028103984892368317,
0.04965504631400108,
0.05039093643426895,
-0.0431722067296505,
0.007560392376035452,
0.03283470496535301,
0.029873624444007874,
-0.009584089741110802,
-0.022024132311344147,
0.00631638802587986,
0.01802930235862732,
-0.05746949464082718,
0.024354450404644012,
-0.01488424837589264,
0.05673360452055931,
-0.014244724996387959,
-0.031958647072315216,
0.017389778047800064,
-0.007989661768078804,
0.010889417491853237,
-0.027175361290574074,
0.04860377311706543,
0.016180817037820816,
-0.03357059508562088,
0.01901048794388771,
0.0007523159729316831,
-0.005619920790195465,
-0.01109091192483902,
-0.10856127738952637,
-0.01815195009112358,
0.04285682365298271,
0.04608072340488434,
-0.00907597504556179,
-0.002352219307795167,
0.013973146677017212,
0.013736611232161522,
-0.0226899366825819,
0.015488729812204838,
0.01060031820088625,
0.04443373158574104,
0.031713347882032394,
-0.012799227610230446,
-0.0227425005286932,
0.02393394149839878,
-0.0538601279258728,
0.03031165339052677,
-0.024810001254081726,
-0.013333623297512531,
-0.1023237332701683,
-0.018186992034316063,
-0.03952779993414879,
-0.05750453844666481,
-0.0010233467910438776,
-0.001864911406300962,
-0.02710527740418911,
0.028962522745132446,
0.023653602227568626,
0.035480402410030365,
-0.02959328517317772,
-0.06857793033123016,
-0.03833635896444321,
-0.029470637440681458,
-0.029750976711511612,
0.017959216609597206,
0.003983879927545786,
-0.008375127799808979,
-0.020447226241230965,
-0.05343962088227272,
-0.03407870978116989,
-0.04015856236219406,
-0.005887119099497795,
0.07737356424331665,
-0.00424888776615262,
0.062060046941041946,
-0.03591843321919441,
-0.00532206054776907,
-0.04222606122493744,
0.0021430603228509426,
0.021989090368151665,
-0.007884534075856209,
-0.04828839376568794,
0.02535315789282322,
0.014454979449510574,
0.05039093643426895,
0.037109874188899994,
0.056978899985551834,
-0.005466610658913851,
0.021007902920246124,
0.020447226241230965,
-0.05638318136334419,
0.008966467343270779,
-0.12194745987653732,
0.022427119314670563,
-0.015033178962767124,
-0.027087755501270294,
0.035392798483371735,
0.02149849757552147,
0.01791541464626789,
0.017337214201688766,
0.005720667541027069,
-0.03413127362728119,
0.0025405720807611942,
0.021831398829817772,
0.002442015567794442,
0.040053434669971466,
0.03074968419969082,
-0.060833562165498734,
-0.02671981044113636,
-0.04166538268327713,
0.0034757654648274183,
-0.03665432333946228,
0.0041875638999044895,
-0.017959216609597206,
-0.00028663568082265556,
0.062410470098257065,
0.023390784859657288,
-0.04664140194654465,
0.04576534032821655,
-0.002260233275592327,
-0.008467113599181175,
0.030136441811919212,
-0.02128824219107628,
-0.04905932396650314,
0.03833635896444321,
-0.006500360555946827,
0.014332330785691738,
-0.011029587127268314,
-0.02552836947143078,
-0.008756212890148163,
-0.018292119726538658,
-0.03707483410835266,
-0.00440438836812973,
0.05417551100254059,
-0.04671148583292961,
0.09335288405418396,
0.02671981044113636,
-0.03917737305164337,
-0.07541119307279587,
0.009268708527088165,
0.04751745983958244,
0.012387479655444622,
-0.027823645621538162,
0.06896339356899261,
0.046571314334869385,
-0.05203792452812195,
-0.026562120765447617,
0.017188284546136856,
-0.017459863796830177,
-0.04124487563967705,
0.016820339486002922,
0.042155977338552475,
-0.035480402410030365,
0.04769267141819,
0.03048686496913433,
-0.004415339324623346,
-0.007214348763227463,
-0.03472699224948883,
-0.009067214094102383,
-0.028839875012636185,
0.035480402410030365,
0.01823955588042736,
0.07309839129447937,
-0.03609364479780197,
0.026141611859202385,
-0.005672484170645475,
0.03682953491806984,
-0.009365074336528778,
-0.04573030024766922,
-0.04608072340488434,
0.015769068151712418,
-0.07548127323389053,
-0.02650955691933632,
0.022707458585500717,
-0.021340806037187576,
0.04208589345216751,
0.03448169678449631,
0.02847192995250225,
-0.00004554824408842251,
-0.08648458123207092,
-0.03253684565424919,
0.045029450207948685,
-0.026492035016417503,
0.014235964976251125,
-0.003364067990332842,
0.0031428630463778973,
-0.026772374287247658,
-0.005072383675724268,
-0.04450381547212601,
-0.024652309715747833,
-0.03644406795501709,
-0.010083443485200405,
0.018870318308472633,
0.07239754498004913,
-0.009312511421740055,
-0.05953699350357056,
-0.06700102239847183,
0.04142008721828461,
0.045414917171001434,
-0.023828813806176186,
-0.0400884747505188,
-0.022321993485093117,
-0.014568867161870003,
-0.031573180109262466,
-0.019203221425414085,
-0.018730148673057556,
0.003515188116580248,
-0.031415488570928574,
0.04096453636884689,
0.01862502284348011,
0.04751745983958244,
-0.021165594458580017,
0.04222606122493744,
0.03152061626315117,
0.006364571396261454,
-0.00821305625140667,
0.0011268313974142075,
-0.027262967079877853,
-0.02051731012761593,
-0.029558243229985237,
-0.054105427116155624,
-0.006149936933070421,
0.005519174039363861,
0.016478676348924637,
0.054876357316970825,
0.033465467393398285,
0.010889417491853237,
-0.06798220425844193,
0.02829671837389469,
-0.037144917994737625,
0.03223898634314537,
0.02354847639799118,
0.006456557661294937,
0.051792629063129425,
-0.00771808298304677,
0.03668936714529991,
-0.014945573173463345,
0.025212988257408142,
-0.0012264831457287073,
0.008760593831539154,
0.0281390268355608,
-0.04180555418133736,
-0.023005319759249687,
0.01205457653850317,
0.004233556799590588,
-0.056628476828336716,
-0.10029127448797226,
-0.02016688697040081,
0.008725550957024097,
0.020692521706223488,
-0.002101447433233261,
-0.02128824219107628,
-0.043662797659635544,
0.03956284001469612,
-0.0015878576086834073,
0.044468771666288376,
-0.0019043340580537915,
0.02351343259215355,
0.016618845984339714,
-0.07835474610328674,
0.01123984158039093,
0.044854238629341125,
0.005317680537700653,
0.01815195009112358,
-0.0016185196582227945,
0.013386187143623829,
0.00440438836812973,
-0.09258195012807846,
-0.03879190981388092,
0.04962000250816345,
0.05445585027337074,
-0.032606929540634155,
0.012072098441421986,
-0.010136006399989128,
0.06647538393735886,
-0.005707526579499245,
0.031275320798158646,
-0.007284433580935001,
0.01055651530623436,
0.03511245921254158,
0.047377292066812515,
0.010136006399989128,
0.044468771666288376,
-0.01764383539557457,
-0.007017235737293959,
-0.04481919854879379,
-0.03756542503833771,
0.046956781297922134,
0.016732733696699142,
0.030416781082749367,
-0.04071924090385437,
0.020797649398446083,
0.05869597569108009,
-0.0032786522060632706,
-0.008708029985427856,
0.004844608251005411,
0.055682335048913956,
-0.06616000086069107,
-0.00040243976400233805,
0.02063995786011219,
0.03211633488535881,
0.03805601969361305,
-0.022795064374804497,
-0.013727850280702114,
0.02265489473938942,
-0.03272957727313042,
-0.01464771293103695,
0.012396239675581455,
-0.01871262863278389,
0.010171049274504185,
0.012991960160434246,
0.013903061859309673,
-0.0018331542378291488,
-0.02482752315700054,
0.03516502305865288,
-0.019203221425414085,
-0.020587395876646042,
-0.012851790525019169,
0.06580957770347595,
-0.017784005030989647,
0.027508264407515526,
0.018222033977508545,
-0.06591470539569855,
0.047937966883182526,
-0.0013250397751107812,
0.021568581461906433,
0.03323769196867943,
-0.022076696157455444,
0.04222606122493744,
-0.02037714049220085,
-0.032046250998973846,
0.017416059970855713,
-0.02307540364563465,
0.0021529158111661673,
0.033640678972005844,
0.02586127258837223,
0.046010639518499374,
-0.03104754351079464,
0.03125779703259468,
-0.0003958693123422563,
0.00440438836812973,
0.007455265149474144,
-0.01562889851629734,
-0.00911977794021368,
-0.011432575061917305,
0.002744256053119898,
0.015979323536157608,
0.07054030150175095,
0.0028866156935691833,
0.03223898634314537,
-0.06412754207849503,
0.030854810029268265,
0.0469217412173748,
0.028980044648051262,
-0.04895419627428055,
-0.002426684368401766,
-0.007122362498193979,
-0.07758381962776184,
-0.055682335048913956,
-0.0068945870734751225,
0.020780127495527267,
-0.046746525913476944,
-0.02479247935116291,
0.005676864646375179,
-0.012974439188838005,
0.03882694989442825,
0.006171838380396366,
-0.0030508767813444138,
0.010267416015267372,
-0.013859258964657784,
-0.00771808298304677,
-0.024774959310889244,
-0.01475283969193697,
-0.023688646033406258,
-0.0312227550894022,
-0.03879190981388092,
0.015085741877555847,
0.0017400729702785611,
-0.01141505315899849,
0.06258568167686462,
-0.005400905851274729,
0.025335635989904404,
0.039212416857481,
0.06566940993070602,
0.052353307604789734,
-0.01841476745903492,
0.027928773313760757,
0.038897037506103516,
0.007577913347631693,
0.006163077428936958,
0.03805601969361305,
-0.023022839799523354,
-0.058520764112472534,
-0.020955339074134827,
-0.028752269223332405,
0.023285657167434692,
-0.00849777553230524,
-0.005357102956622839,
-0.002461726777255535,
0.0021375848446041346,
-0.03497229143977165,
0.03164326399564743,
0.025878794491291046,
0.038476526737213135,
-0.03074968419969082,
-0.04457389935851097,
0.0015352939954027534,
-0.04629097506403923,
-0.07492059469223022,
0.015190869569778442,
0.017600033432245255,
-0.013876779936254025,
-0.013701568357646465,
0.07281805574893951,
-0.002536191837862134,
0.048708900809288025,
0.053684916347265244,
0.030416781082749367,
-0.005357102956622839,
0.04513457790017128,
-0.07702314108610153,
-0.0165224801748991,
0.007227489724755287,
0.01669769175350666,
0.011099671944975853,
0.045029450207948685,
0.030504386872053146,
-0.03113514930009842,
0.009566567838191986,
0.050881527364254,
-0.022882670164108276,
-0.019798941910266876,
0.003964168485254049,
0.05866093561053276,
-0.07057534158229828,
0.013841737993061543,
-0.08431195467710495,
-0.022374555468559265,
0.048708900809288025,
0.05536695197224617,
-0.04765762761235237,
-0.025808708742260933,
-0.008883241564035416,
0.0017816857434809208,
-0.0061849793419241905,
-0.023022839799523354,
-0.0008163778111338615,
-0.01858997903764248,
0.07681288570165634,
0.02680741623044014,
0.01867758482694626,
0.03502485156059265,
0.0376705527305603,
-0.010442627593874931,
-0.0022339513525366783,
-0.02547580562531948,
0.03973805159330368,
0.017398538067936897,
-0.00482708727940917,
-0.01398190762847662,
-0.032957352697849274,
0.012002013623714447,
0.028629619628190994,
-0.0004736195842269808,
0.0196587722748518,
-0.017608793452382088,
-0.027087755501270294,
0.038686782121658325,
0.04860377311706543,
-0.046606358140707016,
-0.02042970433831215,
-0.05301911383867264,
0.041945721954107285,
0.0029676510021090508,
0.033167608082294464,
-0.019168179482221603,
0.02710527740418911,
0.0330975241959095,
-0.011809280142188072,
-0.008708029985427856,
0.018134428188204765,
0.017398538067936897,
-0.024687353521585464,
0.05151228979229927,
0.01128364447504282,
-0.018957924097776413,
-0.03991326317191124,
-0.015882955864071846,
0.009794343262910843,
-0.05810025706887245,
-0.057013943791389465,
0.002901946660131216,
0.003992640413343906,
-0.02577366679906845,
0.003545850282534957,
-0.01267657894641161,
0.06339165568351746,
-0.06230534240603447,
0.0030508767813444138,
0.02933046780526638,
0.033640678972005844,
-0.002588755451142788,
-0.008484634570777416,
0.015602617524564266,
0.025721102952957153,
0.017608793452382088,
0.015970561653375626,
-0.021480975672602654,
0.05673360452055931,
-0.0211480725556612,
0.021726273000240326,
-0.05259860306978226,
0.03262444958090782,
-0.08697517216205597,
0.006820122245699167,
-0.049865297973155975,
0.058906231075525284,
0.10442627966403961,
-0.0012867122422903776,
-0.03467442840337753,
0.004997918847948313,
-0.027648434042930603,
0.06864801049232483,
0.036969706416130066,
0.002072975505143404,
-0.010836854577064514,
-0.007639237679541111,
-0.01340370811522007,
-0.026229217648506165,
-0.009005890227854252,
-0.004174422938376665,
0.013088326901197433,
0.02265489473938942,
0.007393940817564726,
-0.039457712322473526,
-0.04997042566537857,
-0.06461814045906067,
-0.013009481132030487,
0.06100877374410629,
-0.03332529962062836,
0.06121902912855148,
-0.057960089296102524,
0.009995837695896626,
-0.07253771275281906,
0.01633850671350956,
0.03244923800230026,
-0.06293610483407974,
0.05711907148361206,
-0.025160424411296844,
-0.0539652556180954,
-0.014630191028118134,
-0.034359049052000046,
0.023741208016872406,
-0.0030508767813444138,
0.031748391687870026,
-0.00845397263765335,
0.016023125499486923,
-0.012799227610230446,
-0.04050898551940918,
0.007459645625203848,
-0.0033027438912540674,
-0.012448803521692753,
0.027262967079877853,
0.031538136303424835,
-0.009356314316391945,
0.02149849757552147,
0.02950567938387394,
0.018519895151257515,
0.029750976711511612,
-0.05172254517674446,
-0.05298407003283501,
-0.04264656826853752,
-0.03553296625614166,
0.0330975241959095,
0.03668936714529991,
-0.0000671417365083471,
-0.05214305222034454,
-0.026229217648506165,
-0.05126699432730675,
-0.0700497031211853,
0.02051731012761593,
0.05014563724398613,
0.031538136303424835,
0.04555508866906166,
-0.0005086619639769197,
-0.030732162296772003,
0.011572743766009808,
-0.04303203523159027,
0.00045199188753031194,
-0.016356028616428375,
-0.0838213562965393,
0.08746577054262161,
0.03563809394836426,
0.02440701425075531,
0.054105427116155624,
0.04576534032821655,
-0.03742525726556778,
0.012089619413018227,
-0.09047941118478775,
0.03159070014953613,
0.05151228979229927,
0.037109874188899994,
-0.02398650534451008,
-0.05035589262843132,
-0.022584810853004456,
-0.08739568293094635,
-0.0196062084287405,
0.000750673352740705,
-0.026386907324194908,
-0.021551059558987617,
-0.02137584798038006,
0.02885739505290985,
0.01194944977760315,
-0.020710043609142303,
0.019536124542355537,
-0.03668936714529991,
0.018011780455708504,
0.025721102952957153,
-0.01385049894452095,
0.013727850280702114,
0.009189862757921219,
0.02452966198325157,
-0.008510916493833065,
0.007683040574193001,
-0.007336996961385012,
0.030469344928860664,
0.0024223041255027056,
-0.005799512844532728,
0.013132129795849323,
0.012930636294186115,
-0.028664661571383476,
0.04439868777990341,
0.015935519710183144,
-0.06598479300737381,
-0.06847280263900757,
-0.05067127197980881,
0.04839351773262024,
0.0017203615279868245,
-0.0069559114053845406,
-0.00933879241347313,
0.0011487328447401524,
0.040403857827186584,
-0.038897037506103516,
-0.054105427116155624,
0.02826167456805706,
-0.03146805241703987,
-0.026194175705313683,
-0.038651738315820694,
-0.00586521765217185,
0.008475874550640583,
0.018642542883753777,
0.06777194887399673,
-0.051967840641736984,
0.027525784447789192,
0.03840644285082817,
0.035515446215867996,
0.0075297304429113865,
0.00704351719468832,
0.0601327158510685,
-0.02063995786011219,
-0.05939682573080063,
-0.07583169639110565,
0.03609364479780197,
0.014148359186947346,
0.01871262863278389,
-0.02552836947143078,
0.018222033977508545,
0.008226197212934494,
0.013736611232161522,
-0.022970275953412056,
0.032992396503686905,
0.05536695197224617,
-0.023110445588827133,
-0.011677871458232403,
0.04113974794745445,
0.02025449275970459,
-0.028682183474302292,
0.012659057974815369,
-0.01631222479045391,
0.08564356714487076,
0.03139796853065491,
-0.06934885680675507,
0.05091657117009163,
-0.05070631578564644,
0.010302457958459854,
0.09279220551252365,
-0.04762258753180504,
-0.030591992661356926,
0.008029083721339703,
0.04951487481594086,
-0.04611576348543167,
0.0038962741382420063,
0.021603623405098915,
0.028068942949175835,
0.0685078427195549,
0.007091700565069914,
0.029470637440681458,
-0.0010260845301672816,
-0.013193453662097454,
-0.05578745901584625,
0.0226899366825819,
0.020307056605815887,
0.018870318308472633,
0.007836351171135902,
-0.012343676760792732,
0.05918657034635544,
-0.027823645621538162,
-0.004281740169972181,
-0.0539652556180954,
0.03018900565803051,
0.04583542421460152,
-0.013657765462994576,
0.0016623226692900062,
0.006233162246644497,
-0.005422807298600674,
0.041770510375499725,
0.021603623405098915,
0.01622461900115013,
0.02102542482316494,
0.018292119726538658,
-0.03987822309136391,
0.016268422827124596,
-0.0894281417131424,
-0.009443920105695724,
-0.02381129376590252,
0.09377339482307434,
0.011835562065243721,
0.014095795340836048,
0.007867013104259968,
-0.025142904371023178,
0.023092925548553467
] |
9,990
|
torch.nn.modules.module
|
_wrapped_call_impl
| null |
def _wrapped_call_impl(self, *args, **kwargs):
if self._compiled_call_impl is not None:
return self._compiled_call_impl(*args, **kwargs) # type: ignore[misc]
else:
return self._call_impl(*args, **kwargs)
|
(self, *args, **kwargs)
|
[
0.006381420884281397,
-0.1259932518005371,
0.02977709472179413,
0.08117270469665527,
-0.04736795648932457,
-0.02504374086856842,
-0.012702599167823792,
0.018055591732263565,
0.016067583113908768,
-0.04881377890706062,
0.0396224707365036,
0.02168736420571804,
0.018606381490826607,
-0.040138836950063705,
-0.05160215497016907,
0.006454572547227144,
0.015585641376674175,
-0.01960468851029873,
-0.0038942587561905384,
-0.04533691704273224,
0.03194583207368851,
0.02060299552977085,
0.01936371810734272,
0.0076637291349470615,
0.017762983217835426,
0.04791874811053276,
0.030637703835964203,
0.014010725542902946,
0.029570547863841057,
-0.0009671100997366011,
-0.005322870798408985,
0.032031893730163574,
-0.03402850776910782,
0.01886456459760666,
0.03258268162608147,
0.002485010540112853,
-0.013055448420345783,
0.012831689789891243,
-0.03800452500581741,
-0.06812585890293121,
-0.04158465936779976,
-0.056834664195775986,
0.08791988343000412,
-0.030207399278879166,
-0.07566480338573456,
-0.02879600040614605,
-0.00301213376224041,
0.06361626833677292,
0.03982901573181152,
-0.0029131637420505285,
0.029656609520316124,
-0.018262136727571487,
0.049812089651823044,
-0.0049269902519881725,
0.0004781762545462698,
0.02414870820939541,
0.04850396141409874,
0.036421000957489014,
0.012134596705436707,
-0.007878881879150867,
-0.05187755078077316,
0.024234768003225327,
-0.03590463474392891,
-0.007470091804862022,
0.017108920961618423,
-0.014638970606029034,
-0.02895090915262699,
-0.00046338452375493944,
0.012702599167823792,
0.03421784192323685,
-0.0276083592325449,
-0.003679106244817376,
-0.01574055105447769,
-0.019088322296738625,
0.03289250284433365,
-0.026317443698644638,
-0.0012220657663419843,
-0.03165322542190552,
0.04712698608636856,
-0.02924351580440998,
0.0062092989683151245,
-0.03292692452669144,
-0.0044278367422521114,
-0.0030078308191150427,
-0.015379094518721104,
-0.00796494260430336,
0.03865858539938927,
-0.0008234959095716476,
-0.01197968702763319,
0.07642214000225067,
-0.004823717288672924,
0.0075991833582520485,
-0.03308183699846268,
0.0032595591619610786,
0.018141651526093483,
0.008205913007259369,
0.02834848314523697,
0.0017793105216696858,
0.006265238393098116,
0.02573222853243351,
0.024906044825911522,
0.056869085878133774,
-0.03141225129365921,
-0.0427895113825798,
0.06502766907215118,
0.012513265013694763,
0.032978564500808716,
-0.016015946865081787,
-0.005116324406117201,
0.004354685079306364,
-0.012220657430589199,
-0.013477147556841373,
-0.053564347326755524,
-0.020465297624468803,
-0.018141651526093483,
-0.013399692252278328,
-0.09397857636213303,
-0.024854406714439392,
-0.02292664162814617,
0.09067383408546448,
-0.06791931390762329,
-0.038211070001125336,
-0.0018546138890087605,
-0.04234199598431587,
-0.03313347324728966,
0.04420091211795807,
-0.00762930465862155,
0.011652654968202114,
0.06988150626420975,
-0.03604233264923096,
0.06041479855775833,
0.01798674277961254,
0.034303899854421616,
-0.03304741159081459,
-0.011971080675721169,
0.05304798111319542,
0.0335465632379055,
0.04031095653772354,
-0.058796852827072144,
0.054115135222673416,
-0.00533577986061573,
-0.019742386415600777,
0.001387733151204884,
0.04791874811053276,
0.05711005628108978,
0.03893398120999336,
0.031343404203653336,
0.04303048551082611,
0.010998591780662537,
0.000693866575602442,
0.06740295141935349,
-0.056628115475177765,
0.008089730516076088,
0.05931321904063225,
-0.03185977041721344,
0.03251383453607559,
-0.00809833686798811,
0.011041621677577496,
-0.011248168535530567,
0.0006933286786079407,
0.006575057748705149,
-0.047540079802274704,
0.000264637463260442,
-0.02889927290380001,
0.03370147570967674,
-0.036730822175741196,
-0.008451187051832676,
-0.06258353590965271,
0.0024441315326839685,
0.05067269876599312,
0.02094724029302597,
0.05907224863767624,
0.036421000957489014,
-0.0041223205626010895,
0.036524273455142975,
0.023288097232580185,
-0.0021418423857539892,
0.01044780109077692,
-0.035629238933324814,
-0.005847842898219824,
0.006097419653087854,
-0.025456834584474564,
-0.03679966926574707,
0.03273759037256241,
0.03631772845983505,
0.06936513632535934,
0.04402879253029823,
-0.06478669494390488,
0.0020891299936920404,
-0.008584581315517426,
-0.00899337138980627,
0.0075346375815570354,
0.08702485263347626,
-0.026351869106292725,
-0.03389080986380577,
-0.028727151453495026,
-0.03067212924361229,
0.047195833176374435,
0.0199489314109087,
-0.009819556027650833,
-0.024424102157354355,
0.002902406034991145,
0.07600905001163483,
0.01160962413996458,
-0.03920937702059746,
0.05507902055978775,
0.05325452610850334,
0.056731387972831726,
-0.05501016974449158,
-0.010826469399034977,
0.020241539925336838,
-0.05012190714478493,
-0.04550904035568237,
0.036283303052186966,
-0.03093031235039234,
0.046404074877500534,
0.0710519328713417,
-0.002139690797775984,
-0.008197307586669922,
0.03814221918582916,
0.0006217904738150537,
-0.024561800062656403,
-0.0050259605050086975,
-0.05872800573706627,
0.015620065852999687,
-0.00879543088376522,
0.057867392897605896,
-0.022341426461935043,
-0.002233282197266817,
-0.04079289734363556,
-0.04000113904476166,
-0.013993512839078903,
0.021704575046896935,
-0.010705984197556973,
-0.037660278379917145,
-0.035835787653923035,
0.018003953620791435,
-0.003111104015260935,
0.002039644867181778,
-0.012255081906914711,
0.047540079802274704,
-0.0016416129656136036,
0.05748872458934784,
0.04010441154241562,
-0.021911121904850006,
-0.02266845852136612,
-0.027694419026374817,
0.04915802553296089,
0.026196958497166634,
0.02963939681649208,
0.018038379028439522,
-0.010989985428750515,
-0.028572240844368935,
-0.025973200798034668,
-0.02435525320470333,
-0.03270316869020462,
0.007693850435316563,
0.0056757209822535515,
0.03423505276441574,
0.04361569881439209,
-0.006131844129413366,
0.03062049299478531,
0.021997183561325073,
-0.02969103306531906,
0.015224184840917587,
-0.016093401238322258,
-0.05304798111319542,
-0.020465297624468803,
0.02261682227253914,
0.10292891412973404,
0.0427895113825798,
-0.033012986183166504,
0.030259035527706146,
0.05349549651145935,
-0.07525171339511871,
-0.012014111503958702,
-0.024234768003225327,
0.008915916085243225,
-0.001579218776896596,
-0.006764391902834177,
0.0855790227651596,
-0.0006696619093418121,
-0.03972574323415756,
-0.016558129340410233,
-0.026162534952163696,
-0.008119852282106876,
0.052428342401981354,
0.03339165449142456,
-0.0038318645674735308,
-0.04192890226840973,
0.03483748063445091,
0.04093059524893761,
0.04805644601583481,
-0.0054777804762125015,
0.03027624823153019,
-0.007035484071820974,
-0.10079460591077805,
-0.026248594745993614,
0.0575920008122921,
-0.0077971238642930984,
-0.042204298079013824,
-0.02380446344614029,
-0.02855502814054489,
0.0024054041132330894,
0.08860836923122406,
0.025215864181518555,
-0.036283303052186966,
0.04654177278280258,
-0.054906897246837616,
0.031584374606609344,
-0.018451470881700516,
-0.00738403107970953,
-0.03406292945146561,
-0.0744943767786026,
0.02000056952238083,
-0.006592269986867905,
0.024854406714439392,
0.02636907994747162,
0.027436235919594765,
0.021274270489811897,
-0.018658017739653587,
0.021205421537160873,
-0.03917495161294937,
0.06988150626420975,
0.025026530027389526,
-0.009199917316436768,
0.029329577460885048,
0.005757478531450033,
-0.004414927680045366,
-0.01852031983435154,
0.012625143863260746,
-0.008063912391662598,
0.026713324710726738,
0.0000064545724853815045,
0.06347856670618057,
-0.037901248782873154,
0.04361569881439209,
-0.03125734254717827,
0.007448576856404543,
-0.023821676149964333,
-0.0025667683221399784,
0.035835787653923035,
-0.030396733433008194,
0.00970767717808485,
-0.007504516281187534,
0.014682001434266567,
0.015387700870633125,
0.03141225129365921,
0.0536331944167614,
-0.0372471883893013,
-0.008773915469646454,
-0.08213658630847931,
-0.028365693986415863,
0.014897153712809086,
0.011230955831706524,
0.011162107810378075,
-0.0015135972062125802,
-0.009337615221738815,
0.019191594794392586,
-0.07828105241060257,
0.06502766907215118,
-0.0001672810030868277,
0.009165492840111256,
0.05012190714478493,
0.005994146224111319,
-0.020826753228902817,
-0.06210159510374069,
-0.022496337071061134,
-0.03370147570967674,
0.00022927179816178977,
-0.04282393679022789,
-0.04440746083855629,
0.01812443882226944,
-0.018640805035829544,
-0.023787250742316246,
0.021119361743330956,
0.01756504364311695,
0.027436235919594765,
-0.028727151453495026,
0.026248594745993614,
0.01577497459948063,
-0.025422409176826477,
-0.01229811180382967,
-0.05308240279555321,
0.058900125324726105,
0.006811725441366434,
0.012986600399017334,
0.001466263784095645,
0.03490632772445679,
-0.03296134993433952,
0.011721503920853138,
-0.00426001800224185,
-0.050810396671295166,
0.009363433346152306,
-0.042755089700222015,
0.018830139189958572,
0.02375282719731331,
0.025869926437735558,
-0.03666197136044502,
-0.013038236647844315,
0.01912274770438671,
0.017762983217835426,
0.07773026823997498,
-0.00994864758104086,
0.014656182378530502,
0.02647235430777073,
0.0235118567943573,
0.00580481206998229,
0.02142918109893799,
0.0599672831594944,
-0.09487360715866089,
-0.009518343023955822,
-0.04313375800848007,
-0.03215237706899643,
-0.03383917361497879,
0.043581273406744,
-0.0054132346995174885,
0.013761148788034916,
-0.016919586807489395,
-0.012143202126026154,
-0.0028615272603929043,
-0.0027259811758995056,
-0.0050259605050086975,
0.07869414985179901,
0.01528442744165659,
0.013967694714665413,
-0.0032122256234288216,
-0.04034538194537163,
0.015310246497392654,
-0.021601302549242973,
0.012349748983979225,
-0.02390773594379425,
-0.028916485607624054,
0.02425198070704937,
0.02203160710632801,
-0.03003527782857418,
-0.015146730467677116,
0.01590406708419323,
-0.009045007638633251,
0.05101694166660309,
-0.01037034671753645,
0.04010441154241562,
-0.014914365485310555,
-0.041619084775447845,
-0.02697150781750679,
-0.012848902493715286,
-0.02094724029302597,
0.028090300038456917,
-0.03421784192323685,
-0.019501416012644768,
0.08695600181818008,
0.06760949641466141,
0.05091366916894913,
-0.029949216172099113,
-0.07642214000225067,
-0.0628933534026146,
-0.055939629673957825,
-0.013485753908753395,
0.015310246497392654,
0.0396224707365036,
-0.012530476786196232,
0.0225823987275362,
-0.0014727183151990175,
-0.046610619872808456,
-0.016945404931902885,
0.024682285264134407,
-0.014277514070272446,
0.019294869154691696,
-0.08495938777923584,
-0.029914792627096176,
0.08234313130378723,
-0.047987595200538635,
0.005400325637310743,
0.02741902507841587,
-0.006368511356413364,
0.008872886188328266,
-0.03614560514688492,
0.00021730393928010017,
-0.0059296004474163055,
-0.00973349530249834,
-0.02247912436723709,
0.008976158685982227,
-0.0029518911615014076,
0.013993512839078903,
-0.028813211247324944,
0.021893909201025963,
0.07222236692905426,
-0.008507126942276955,
0.04313375800848007,
0.011885019950568676,
-0.032135166227817535,
0.09046728909015656,
0.03690294176340103,
-0.03421784192323685,
-0.03478584438562393,
-0.024338042363524437,
-0.021411968395113945,
-0.029415639117360115,
0.021119361743330956,
-0.037419307976961136,
-0.018537532538175583,
-0.024269193410873413,
0.040483079850673676,
-0.01648067496716976,
0.059450916945934296,
-0.00906221941113472,
0.0173068605363369,
0.027694419026374817,
-0.053667619824409485,
0.01592988520860672,
-0.010903924703598022,
0.006549239624291658,
-0.01274562906473875,
-0.0520496740937233,
0.00997446570545435,
0.007242030464112759,
-0.025456834584474564,
-0.06192947179079056,
-0.09989956766366959,
-0.034648146480321884,
0.07690408080816269,
0.010878106579184532,
0.0030809827148914337,
-0.008640521205961704,
0.04960554093122482,
-0.035284996032714844,
0.013545996509492397,
0.02707478031516075,
0.03406292945146561,
-0.03848646581172943,
-0.01614503748714924,
-0.02340858243405819,
-0.04533691704273224,
-0.026196958497166634,
0.06729967892169952,
-0.021670151501893997,
-0.09962417930364609,
0.012702599167823792,
-0.02869272604584694,
-0.0045095947571098804,
-0.010757621377706528,
0.01926044374704361,
-0.025973200798034668,
-0.022393064573407173,
-0.07594019919633865,
-0.05848703160881996,
-0.010241255164146423,
0.032186802476644516,
-0.02065463177859783,
-0.037557005882263184,
-0.03648985177278519,
-0.015757763758301735,
0.05291028320789337,
0.07346164435148239,
0.01289193332195282,
-0.0028486179653555155,
0.0023881918750703335,
0.058314912021160126,
-0.04643849655985832,
0.005744569469243288,
0.0203448124229908,
0.05714448168873787,
-0.001067155972123146,
-0.05022517964243889,
-0.04096502065658569,
0.005210991483181715,
0.0533577986061573,
0.05301355570554733,
-0.036180030554533005,
-0.033167898654937744,
-0.019587475806474686,
0.016084793955087662,
-0.016997041180729866,
0.021515242755413055,
0.03177370876073837,
0.046507347375154495,
0.026782173663377762,
-0.013502965681254864,
0.02647235430777073,
-0.02142918109893799,
-0.01807280257344246,
-0.0644424557685852,
-0.02884763665497303,
-0.03896840661764145,
-0.02884763665497303,
-0.053426649421453476,
-0.0414813868701458,
0.031343404203653336,
0.013115691021084785,
-0.0006857983535155654,
-0.030465582385659218,
-0.029105819761753082,
-0.024923255667090416,
-0.010120769962668419,
0.022857792675495148,
0.03872743621468544,
-0.1154593974351883,
0.04024210944771767,
0.04409763962030411,
-0.019329292699694633,
-0.053426649421453476,
0.011471927165985107,
-0.019776809960603714,
0.0032982865814119577,
0.04636964946985245,
0.02129148319363594,
-0.05790181830525398,
-0.021997183561325073,
-0.05745430290699005,
0.027005931362509727,
-0.0173068605363369,
0.016093401238322258,
0.05091366916894913,
-0.0008191928500309587,
0.014552909880876541,
-0.004244957119226456,
-0.043099332600831985,
0.049020327627658844,
0.03972574323415756,
0.03241056203842163,
-0.025474045425653458,
-0.014879941008985043,
-0.08041536808013916,
0.012599325738847256,
-0.025405198335647583,
0.00867924839258194,
0.06760949641466141,
0.036180030554533005,
0.015155335888266563,
0.04705813527107239,
-0.019518626853823662,
0.05211852118372917,
0.03872743621468544,
0.011127683334052563,
0.020775116980075836,
-0.05556096136569977,
-0.010559680871665478,
0.025164226070046425,
-0.028537817299365997,
-0.009828162379562855,
0.07332394272089005,
-0.053461071103811264,
-0.025422409176826477,
-0.037660278379917145,
-0.013158721849322319,
0.013150115497410297,
-0.007982154376804829,
-0.027126416563987732,
0.03556039184331894,
-0.009415069594979286,
-0.029002545401453972,
-0.0018739775987342,
0.0037544097285717726,
-0.013330844230949879,
-0.005671417806297541,
0.016601160168647766,
0.00011335843009874225,
-0.001193020143546164,
0.040173258632421494,
-0.033804748207330704,
-0.013270600698888302,
0.0020052206236869097,
-0.0013113539898768067,
-0.04716141149401665,
-0.014492667280137539,
0.012625143863260746,
-0.023890525102615356,
-0.004169653635472059,
0.024320829659700394,
-0.03955361992120743,
-0.003328407881781459,
-0.029019758105278015,
-0.06020825356245041,
-0.002812042133882642,
-0.0380389466881752,
-0.040276531130075455,
-0.0050603849813342094,
-0.003410165896639228,
-0.04736795648932457,
0.02340858243405819,
-0.07614674419164658,
-0.0070139686577022076,
-0.05649041756987572,
0.06378839164972305,
-0.0504661500453949,
-0.028262421488761902,
0.021825062111020088,
-0.01069737784564495,
0.008063912391662598,
-0.09466706216335297,
-0.013373874127864838,
-0.008051003329455853,
-0.011738715693354607,
0.010508043691515923,
-0.020757906138896942,
-0.0045397160574793816,
-0.06227371469140053,
-0.07573365420103073,
-0.0008450111490674317,
0.04898590222001076,
0.037419307976961136,
-0.007418455556035042,
-0.002650677692145109,
-0.011850595474243164,
0.04426976293325424,
0.01767692342400551,
0.00926015991717577,
0.0031175585463643074,
0.012986600399017334,
-0.03927822411060333,
0.015568428672850132,
-0.0005459492676891387,
0.03587020933628082,
0.012160414829850197,
-0.015387700870633125,
-0.047540079802274704,
-0.039037253707647324,
0.007285060826689005,
0.026162534952163696,
0.0012995206052437425,
-0.01430333312600851,
0.020671844482421875,
0.017074495553970337,
-0.07786796241998672,
-0.0011187925701960921,
0.01382999774068594,
0.015129517763853073,
-0.03244498372077942,
0.06671445816755295,
0.05645599588751793,
-0.012358355335891247,
-0.0007315182010643184,
0.003188558854162693,
0.00528414361178875,
0.010878106579184532,
-0.027436235919594765,
-0.020275963470339775,
-0.0026270109228789806,
-0.028761574998497963,
-0.058314912021160126,
-0.040138836950063705,
-0.014088179916143417,
-0.005292749498039484,
0.004449352156370878,
0.11876413226127625,
0.04340915009379387,
0.023477431386709213,
0.044235337525606155,
0.059003397822380066,
-0.008984765037894249,
0.0014113999204710126,
0.06451129913330078,
0.014027937315404415,
0.03132619336247444,
0.07032902538776398,
-0.027057567611336708,
-0.05621502548456192,
0.04330587759613991,
-0.011428896337747574,
-0.03631772845983505,
-0.02469949796795845,
0.03008691407740116,
-0.017263829708099365,
0.011342835612595081,
0.01743595115840435,
-0.0009601176716387272,
0.024217555299401283,
0.10100115090608597
] |
9,991
|
torch.nn.modules.module
|
__delattr__
| null |
def __delattr__(self, name):
if name in self._parameters:
del self._parameters[name]
elif name in self._buffers:
del self._buffers[name]
self._non_persistent_buffers_set.discard(name)
elif name in self._modules:
del self._modules[name]
else:
super().__delattr__(name)
|
(self, name)
|
[
0.0695539116859436,
-0.011331621557474136,
0.00946329440921545,
0.015242073684930801,
-0.05523296445608139,
-0.03660183399915695,
-0.08467432856559753,
0.03611519932746887,
0.009428534656763077,
0.03517669066786766,
-0.012496067211031914,
-0.005040138494223356,
-0.014929237775504589,
0.037992216646671295,
-0.004405776038765907,
-0.025669947266578674,
-0.01689315401017666,
0.0256178081035614,
0.0014914030907675624,
-0.06951915472745895,
-0.020734086632728577,
0.04101629927754402,
-0.0036975499242544174,
0.02422742359340191,
-0.006669493392109871,
0.01730157807469368,
0.045813120901584625,
0.023897208273410797,
-0.005431183613836765,
0.00021344551350921392,
-0.06197632476687431,
-0.00041548555600456893,
0.012487377971410751,
0.01722336933016777,
0.017901182174682617,
-0.016276171430945396,
-0.006799842230975628,
0.05154845118522644,
-0.05916079878807068,
-0.018422575667500496,
0.018040219321846962,
0.004016903694719076,
0.021672595292329788,
-0.017457997426390648,
0.03133575618267059,
0.027529584243893623,
-0.014798888936638832,
0.04039062559604645,
-0.0755673199892044,
0.04689066857099533,
0.03917404264211655,
0.025583047419786453,
0.011774806305766106,
0.056067194789648056,
-0.0029632537625730038,
0.022020190954208374,
0.04132913425564766,
0.06350574642419815,
0.0006077494472265244,
0.023393195122480392,
-0.009306875988841057,
0.026764873415231705,
-0.003919142298400402,
-0.10587766766548157,
-0.010879747569561005,
-0.05589339882135391,
0.016241412609815598,
0.02233302779495716,
0.0010802624747157097,
0.0188918299973011,
-0.028050977736711502,
-0.0220028106123209,
-0.006395761854946613,
0.038722168654203415,
0.022958699613809586,
-0.0464387945830822,
0.017284199595451355,
0.022958699613809586,
0.015033516101539135,
-0.03879168629646301,
0.013599684461951256,
0.0033477817196398973,
-0.05651906877756119,
-0.004853305872529745,
-0.019830338656902313,
-0.01116651389747858,
0.014260116033256054,
-0.047307781875133514,
-0.0008988609188236296,
-0.009593643248081207,
-0.013625754043459892,
0.04209384694695473,
-0.018509473651647568,
0.0323437862098217,
0.009758750908076763,
-0.03185715153813362,
0.0020757983438670635,
0.026591075584292412,
-0.0026482450775802135,
-0.04132913425564766,
0.04122485592961311,
-0.00098304427228868,
-0.01981295831501484,
0.01685839332640171,
0.0009423103765584528,
-0.008520441129803658,
0.037018947303295135,
-0.0709095373749733,
-0.005861333571374416,
0.01422535628080368,
-0.01174873672425747,
0.03788793832063675,
-0.034707438200712204,
0.029632538557052612,
0.025513527914881706,
-0.014512122608721256,
-0.08335345983505249,
-0.03934783861041069,
0.010401803068816662,
0.00775138521566987,
-0.049219559878110886,
0.05724902078509331,
-0.06736405938863754,
0.008837622590363026,
0.025270212441682816,
0.034255560487508774,
0.02285442128777504,
0.030744845047593117,
0.01339112687855959,
-0.028259534388780594,
-0.01118389330804348,
0.01276545412838459,
-0.02062980830669403,
-0.0054746330715715885,
0.046786390244960785,
0.010827607475221157,
0.025704706087708473,
0.013816931284964085,
-0.010784158483147621,
0.02334105595946312,
-0.019308945164084435,
0.03043200820684433,
0.02163783647119999,
0.02714722789824009,
0.020838364958763123,
-0.014816269278526306,
-0.004190701525658369,
-0.013660512864589691,
-0.11053545027971268,
-0.031665973365306854,
-0.06135065108537674,
0.013860381208360195,
-0.009046179242432117,
-0.04052966460585594,
-0.024731438606977463,
0.058535125106573105,
-0.08085077255964279,
0.028867827728390694,
-0.09246046841144562,
-0.01148803997784853,
0.006639079190790653,
0.03307373449206352,
-0.015085656195878983,
-0.07737481594085693,
-0.002826387993991375,
-0.06322766840457916,
0.06062069907784462,
-0.05453777313232422,
0.006878050975501537,
0.003893072484061122,
-0.03979971259832382,
0.023202016949653625,
0.08460480719804764,
0.06816352903842926,
-0.024123145267367363,
0.07111809402704239,
-0.004653437994420528,
-0.02349747344851494,
-0.01148803997784853,
-0.03253496438264847,
0.04000827297568321,
-0.059716951102018356,
-0.053425468504428864,
0.005283455364406109,
0.04942811653017998,
-0.030379869043827057,
-0.02881568856537342,
-0.0019269839394837618,
0.0342034213244915,
0.04039062559604645,
0.0256178081035614,
-0.0018911381484940648,
-0.017562275752425194,
-0.0061394101940095425,
0.027529584243893623,
-0.006204584147781134,
-0.0027047295588999987,
-0.010844987817108631,
0.022072330117225647,
0.021290240809321404,
-0.028415953740477562,
0.02532235160470009,
-0.014338324777781963,
-0.009002730250358582,
-0.05321691185235977,
-0.001567439641803503,
0.04355374723672867,
-0.020855745300650597,
-0.0035780637990683317,
0.013938589952886105,
0.02772076241672039,
0.01746668666601181,
0.0880112424492836,
0.033577751368284225,
0.07389885932207108,
-0.0757758766412735,
0.004783786833286285,
0.014946617186069489,
0.016988743096590042,
0.02480095811188221,
0.029962753877043724,
0.034342460334300995,
0.04063394293189049,
0.030049653723835945,
-0.04299759492278099,
0.010558221489191055,
0.013286847621202469,
0.007912148721516132,
-0.007038814015686512,
-0.025878503918647766,
0.04570884257555008,
0.009193907491862774,
0.030536286532878876,
-0.029736816883087158,
0.023966727778315544,
0.05113133415579796,
-0.04501365125179291,
-0.010236695408821106,
-0.04567408189177513,
-0.0501580685377121,
0.012391788884997368,
-0.008624719455838203,
-0.007130058016628027,
0.04244144260883331,
0.004688197746872902,
0.022141849622130394,
0.021464038640260696,
0.05968219041824341,
0.0012524309568107128,
-0.045083168894052505,
0.05283455550670624,
-0.028311673551797867,
0.005018413532525301,
0.03493337333202362,
0.03006703220307827,
-0.050470903515815735,
-0.04525696858763695,
0.015528840012848377,
0.006295828148722649,
0.020525529980659485,
-0.04602167755365372,
-0.04692542552947998,
-0.031057680025696754,
0.06086401641368866,
0.09871719777584076,
0.009263426996767521,
0.047794416546821594,
0.03524620831012726,
-0.02978895604610443,
0.010601670481264591,
0.02520069293677807,
-0.04348422959446907,
0.03722750395536423,
-0.02354961261153221,
-0.029006866738200188,
0.00107863312587142,
0.0015902506420388818,
-0.013495405204594135,
0.03795745596289635,
0.04713398590683937,
0.09134816378355026,
-0.07515019923448563,
0.0536687858402729,
0.034464120864868164,
0.008785482496023178,
0.02860713005065918,
-0.0026656249538064003,
-0.004275427665561438,
0.022020190954208374,
0.0256178081035614,
0.04108581691980362,
-0.019882477819919586,
0.02638251706957817,
0.034707438200712204,
0.037018947303295135,
-0.030223451554775238,
-0.05304311215877533,
0.02549614943563938,
0.052904073148965836,
0.023167258128523827,
0.009141768328845501,
0.02346271276473999,
0.015311593189835548,
0.040216829627752304,
-0.002278924686834216,
-0.07209136337041855,
0.056588590145111084,
0.017457997426390648,
0.01702350191771984,
0.06288006901741028,
0.043379951268434525,
0.016632456332445145,
-0.040425386279821396,
0.03722750395536423,
0.04814201220870018,
-0.008016427047550678,
0.034707438200712204,
0.0013990729348734021,
-0.029528260231018066,
0.06997102499008179,
-0.0012980529572814703,
-0.04369278624653816,
-0.03694942966103554,
-0.006387072149664164,
0.007760075386613607,
0.010054207406938076,
-0.00107863312587142,
0.01629355177283287,
0.0039452118799090385,
0.0024853097274899483,
-0.0709790512919426,
-0.010375733487308025,
-0.025548288598656654,
-0.019743438810110092,
-0.007264751475304365,
-0.041155338287353516,
0.010062897577881813,
-0.0010069414274767041,
0.01751013658940792,
-0.026608455926179886,
-0.025183312594890594,
-0.0065000406466424465,
-0.027946699410676956,
-0.025965403765439987,
-0.0661127120256424,
0.03736654296517372,
-0.011270792223513126,
0.0367061123251915,
0.055372003465890884,
-0.004145079292356968,
0.049254320561885834,
-0.009054869413375854,
0.014564262703061104,
0.05575435981154442,
0.06128113344311714,
-0.056067194789648056,
-0.025982782244682312,
0.035402629524469376,
-0.036775629967451096,
-0.06277579069137573,
0.013365057297050953,
0.013990729115903378,
-0.020212693139910698,
-0.008350987918674946,
0.03250020369887352,
-0.046786390244960785,
-0.030362488701939583,
-0.07952991127967834,
0.014920547604560852,
-0.07723578065633774,
-0.04254572093486786,
-0.02111644297838211,
-0.014642471447587013,
0.010610360652208328,
0.023393195122480392,
-0.0018161878688260913,
0.043101873248815536,
0.05158321186900139,
0.006295828148722649,
0.03213522955775261,
-0.00014895021740812808,
-0.01288711279630661,
0.04623023420572281,
0.0056875357404351234,
-0.021707355976104736,
0.024018866941332817,
-0.028676649555563927,
-0.015615739859640598,
0.03316063433885574,
0.0598212294280529,
0.028520232066512108,
-0.0005213936092332006,
-0.06329718977212906,
0.057318542152643204,
-0.0648961290717125,
0.025722086429595947,
-0.04202432557940483,
-0.021220721304416656,
-0.05408589914441109,
-0.009732681326568127,
0.016067614778876305,
0.010288834571838379,
-0.05836132913827896,
0.034672677516937256,
0.05036662518978119,
0.027251508086919785,
0.01693660393357277,
0.032847799360752106,
0.01944798231124878,
-0.016754115000367165,
0.008068566210567951,
0.007190887350589037,
0.0007772023673169315,
-0.036288995295763016,
0.06809400767087936,
-0.004740337375551462,
0.05432921648025513,
-0.04421418160200119,
0.09732681512832642,
0.045048411935567856,
-0.02799883857369423,
0.03156169503927231,
-0.00982827041298151,
-0.041398655623197556,
-0.0378531776368618,
0.029128525406122208,
-0.022802282124757767,
-0.005357319489121437,
-0.01564180850982666,
0.024974755942821503,
-0.06343622505664825,
-0.009741371497511864,
0.01014979649335146,
-0.040425386279821396,
-0.0020442975219339132,
-0.01640651933848858,
-0.013990729115903378,
-0.011557558551430702,
-0.030466768890619278,
0.011965983547270298,
-0.01681494526565075,
-0.0028090081177651882,
0.008094635792076588,
-0.0008597563719376922,
-0.007899113930761814,
0.013417196460068226,
-0.010723329149186611,
0.0709790512919426,
0.026104440912604332,
-0.034672677516937256,
0.010401803068816662,
0.025235451757907867,
-0.009680542163550854,
-0.1024712324142456,
0.006843291688710451,
-0.051687490195035934,
-0.0022028880193829536,
-0.055128686130046844,
-0.001537024974822998,
0.006135065108537674,
-0.04052966460585594,
0.03667135164141655,
-0.006791152060031891,
-0.041155338287353516,
0.0039973510429263115,
0.06454852968454361,
0.0634014680981636,
0.005235661286860704,
-0.0011644457699730992,
-0.006361002568155527,
0.01021062582731247,
-0.009628402069211006,
-0.0005746192182414234,
-0.04292807728052139,
-0.10212363302707672,
0.049740951508283615,
-0.02860713005065918,
0.06986674666404724,
0.020734086632728577,
-0.03067532554268837,
0.01092319656163454,
-0.02747744508087635,
0.005969956982880831,
-0.018092358484864235,
0.010766778141260147,
0.019308945164084435,
0.0022702347487211227,
-0.021742114797234535,
0.034915994852781296,
0.006699908059090376,
-0.05783993378281593,
-0.03524620831012726,
-0.013121739961206913,
-0.02516593225300312,
0.04835056886076927,
0.013052220456302166,
-0.002965426305308938,
-0.005183521658182144,
0.036288995295763016,
-0.02492261491715908,
-0.030588427558541298,
-0.008859346620738506,
-0.014381774701178074,
-0.03328229486942291,
0.04306711256504059,
-0.02309773862361908,
0.019308945164084435,
0.0758453980088234,
-0.02313249744474888,
-0.04324091225862503,
-0.059716951102018356,
-0.019100386649370193,
0.03562856465578079,
0.025722086429595947,
0.030571047216653824,
-0.03192666918039322,
-0.04685590788722038,
0.010367043316364288,
-0.019847717136144638,
0.011644457466900349,
0.026347758248448372,
0.07605395466089249,
-0.00775138521566987,
-0.03743606433272362,
-0.02799883857369423,
-0.04734254255890846,
-0.0646875724196434,
0.010905817151069641,
0.0757758766412735,
0.029962753877043724,
0.05895224213600159,
0.002880699932575226,
-0.023514853790402412,
0.00494454987347126,
0.03265662118792534,
-0.005765744484961033,
-0.0561714731156826,
-0.010549531318247318,
-0.01474674977362156,
0.03708846867084503,
0.022176608443260193,
-0.006308862939476967,
0.06635603308677673,
0.012270130217075348,
-0.06798972934484482,
0.0035650290083140135,
-0.011601008474826813,
0.05099229887127876,
0.028554990887641907,
0.0022593725007027388,
-0.015137795358896255,
0.0020464700646698475,
-0.03952163830399513,
-0.08126788586378098,
0.0030957746785134077,
-0.02726888656616211,
0.015207313932478428,
-0.006521765608340502,
0.02288918010890484,
0.005883058067411184,
-0.015424561686813831,
0.0709790512919426,
0.08418769389390945,
-0.005157452076673508,
0.027373166754841805,
0.02374079078435898,
0.020108414813876152,
-0.03031034953892231,
0.003376023843884468,
-0.022176608443260193,
0.011835635639727116,
-0.03538524731993675,
0.0005173202371224761,
0.00826843362301588,
0.017232060432434082,
0.07362078130245209,
0.027790280058979988,
-0.007747040595859289,
-0.03691466897726059,
-0.050957538187503815,
0.0016141477972269058,
0.02285442128777504,
-0.09496316313743591,
-0.03983447328209877,
-0.02354961261153221,
-0.00015709699073340744,
0.02666059508919716,
-0.02726888656616211,
0.039695434272289276,
-0.028502851724624634,
-0.011331621557474136,
0.0017260301392525434,
0.053182151168584824,
-0.03816601261496544,
-0.017796901986002922,
0.07772240787744522,
-0.011705286800861359,
0.0007093126187101007,
-0.0673292949795723,
0.07132665067911148,
0.05099229887127876,
-0.06632126867771149,
0.05929983779788017,
0.006143754813820124,
-0.013347676955163479,
0.0538078248500824,
-0.08147644251585007,
0.034915994852781296,
-0.02918066456913948,
-0.001717340317554772,
-0.04588263854384422,
0.009975998662412167,
-0.024609779939055443,
0.04254572093486786,
0.015798227861523628,
-0.04675162956118584,
0.019222045317292213,
-0.00830753892660141,
0.007542828097939491,
-0.00009837231482379138,
-0.04198956862092018,
-0.0014544710284098983,
-0.0293370820581913,
-0.0010601670946925879,
-0.042163364589214325,
-0.00553111732006073,
-0.020890504121780396,
0.00578312436118722,
-0.04331042990088463,
0.02921542339026928,
-0.05544152483344078,
-0.06256723403930664,
0.013043531216681004,
-0.03006703220307827,
-0.016884464770555496,
-0.016215341165661812,
-0.0012491722591221333,
-0.03587188199162483,
-0.018144497647881508,
0.004294979851692915,
0.08175452053546906,
-0.010175866074860096,
-0.00875506829470396,
-0.024453362450003624,
-0.11811304092407227,
0.0037105847150087357,
0.022958699613809586,
-0.033334434032440186,
0.07480260729789734,
-0.021689975634217262,
-0.04344946891069412,
-0.022159229964017868,
0.04146817326545715,
-0.05575435981154442,
0.02374079078435898,
-0.019465362653136253,
-0.01258296612650156,
0.027894560247659683,
0.03347347304224968,
-0.013599684461951256,
-0.05453777313232422,
-0.04032110795378685,
0.020734086632728577,
0.0025591738522052765,
0.012695934623479843,
-0.03392534703016281,
-0.048559125512838364,
0.0004285204049665481,
-0.002995840972289443,
-0.0032391580753028393,
-0.013790861703455448,
0.009758750908076763,
-0.03392534703016281,
-0.04303235560655594,
-0.0335603691637516,
-0.0055050477385520935,
-0.01246130745857954,
-0.041885290294885635,
-0.007451584096997976,
0.005266075953841209,
-0.055372003465890884,
0.07723578065633774,
0.006691218353807926,
0.02090788446366787,
0.02443598210811615,
0.0550244078040123,
0.0051444172859191895,
0.013521474786102772,
0.015667878091335297,
-0.012991391122341156,
-0.03712322562932968,
0.016145823523402214,
0.017327647656202316,
0.023984108120203018,
-0.03481171652674675,
-0.05033186450600624,
0.031909290701150894,
-0.10108084976673126,
0.02666059508919716,
0.0008499802788719535,
0.01920466497540474,
-0.009237357415258884,
-0.01274807471781969,
0.02306297793984413,
-0.012209300883114338,
0.03820077329874039,
0.014998757280409336,
-0.04932383820414543,
-0.011853015050292015,
-0.025669947266578674,
0.030379869043827057,
0.008068566210567951,
0.013312917202711105,
-0.012217991054058075,
0.04011255130171776,
0.04633451625704765,
-0.05790945142507553,
-0.0415724515914917,
-0.0022897871676832438,
0.028554990887641907,
0.006734667811542749,
0.0635405033826828,
0.04178100824356079,
0.03635851666331291,
0.01835305616259575,
-0.024453362450003624,
-0.013556234538555145,
-0.03882644698023796,
0.029111145064234734,
0.0489414818584919,
-0.016554247587919235,
-0.010419182479381561,
-0.05693618580698967,
0.04845484718680382,
-0.0028242154512554407,
-0.033456090837717056,
0.03833981230854988,
-0.001832481357268989,
0.005717950407415628,
0.04709922522306442,
-0.07278655469417572,
0.04219812527298927,
0.0045708841644227505,
0.052174124866724014,
-0.004223288502544165,
0.03820077329874039,
-0.007216956932097673,
0.0930166244506836,
0.011826945468783379,
-0.03809649497270584,
0.05175700783729553,
-0.04153769463300705,
-0.04011255130171776,
0.042163364589214325,
0.035593803972005844,
-0.058535125106573105,
-0.009680542163550854,
-0.03635851666331291,
-0.015598359517753124,
-0.06013406440615654,
-0.05231316015124321,
0.05356450751423836,
-0.033612508326768875,
-0.005109657533466816,
0.008016427047550678,
-0.006599974352866411,
-0.005691880360245705,
-0.034186042845249176
] |
9,992
|
torch.nn.modules.container
|
__delitem__
| null |
def __delitem__(self, idx: Union[slice, int]) -> None:
if isinstance(idx, slice):
for key in list(self._modules.keys())[idx]:
delattr(self, key)
else:
key = self._get_item_by_idx(self._modules.keys(), idx)
delattr(self, key)
# To preserve numbering
str_indices = [str(i) for i in range(len(self._modules))]
self._modules = OrderedDict(list(zip(str_indices, self._modules.values())))
|
(self, idx: Union[slice, int]) -> NoneType
|
[
0.017293602228164673,
0.025113705545663834,
-0.05466029420495033,
-0.026311298832297325,
-0.03889496251940727,
-0.025381824001669884,
-0.056983981281518936,
0.0702468752861023,
-0.004830589983612299,
0.0036732146982103586,
-0.0027459736447781324,
0.019930094480514526,
0.0052327667362987995,
0.003463188884779811,
-0.05798495560884476,
-0.013227147050201893,
0.018857622519135475,
0.04726023972034454,
-0.0031637907959520817,
-0.023951862007379532,
-0.02874223329126835,
0.041933633387088776,
-0.009428811259567738,
0.040896911174058914,
-0.040575169026851654,
0.04568728059530258,
0.08157932758331299,
-0.0022644787095487118,
0.04404282569885254,
-0.08672718703746796,
-0.03153065964579582,
-0.02997557632625103,
-0.01116263959556818,
0.03857322037220001,
-0.05358782038092613,
-0.04236261919140816,
-0.01583682745695114,
0.0017315944423899055,
0.014487300999462605,
0.05333757773041725,
0.07342854142189026,
0.012950092554092407,
0.03571329638361931,
-0.07914838939905167,
0.040038932114839554,
0.08386726677417755,
0.02960021048784256,
0.056662239134311676,
-0.012923280708491802,
0.009312626905739307,
-0.03253163397312164,
0.007257056422531605,
0.04286310821771622,
-0.0023370939306914806,
-0.034158214926719666,
0.07979187369346619,
0.05476754158735275,
0.04475780576467514,
0.02144942805171013,
0.034247588366270065,
-0.01058171782642603,
0.0006239325739443302,
-0.007011281792074442,
-0.03857322037220001,
0.027937879785895348,
-0.019894344732165337,
-0.0007697216933593154,
0.011064330115914345,
-0.013977877795696259,
-0.040539421141147614,
0.03131616488099098,
-0.020448455587029457,
0.02954658679664135,
0.015568709932267666,
0.01153800543397665,
-0.048511456698179245,
-0.0007624601712450385,
0.02100256457924843,
0.0621318444609642,
-0.01614963263273239,
0.009401999413967133,
0.0011741328053176403,
-0.02995770238339901,
0.034229714423418045,
-0.027008404955267906,
0.009956109337508678,
0.05458879470825195,
-0.03675002232193947,
0.003521281061694026,
0.027079902589321136,
-0.020895319059491158,
0.010242101736366749,
-0.02123493328690529,
-0.03499831631779671,
0.025596318766474724,
-0.04368533566594124,
0.02171754650771618,
-0.02314750850200653,
0.009446686133742332,
-0.05169312283396721,
0.026847533881664276,
-0.06198884919285774,
-0.07013963162899017,
0.027258649468421936,
-0.027705511078238487,
0.017070170491933823,
0.01508609764277935,
-0.019197238609194756,
-0.04475780576467514,
0.02144942805171013,
0.016480309888720512,
0.05419555678963661,
-0.021074064075946808,
-0.010680028237402439,
0.024112733080983162,
-0.0016120586078613997,
-0.06073763221502304,
-0.08086434751749039,
0.01422812044620514,
0.009482434950768948,
0.0011210677912458777,
0.017919210717082024,
-0.07778992503881454,
0.028170248493552208,
0.04322059825062752,
0.016632243990898132,
-0.027794884517788887,
0.03889496251940727,
0.03778674453496933,
-0.019215112552046776,
0.0040865628980100155,
-0.0018857622053474188,
-0.03703601285815239,
-0.028009379282593727,
0.012431731447577477,
0.011949119158089161,
0.019036367535591125,
-0.008870231918990612,
-0.09058808535337448,
0.017588531598448753,
-0.020055215805768967,
0.01512184739112854,
0.004580346867442131,
0.09759490191936493,
0.03653552755713463,
-0.018803998827934265,
-0.04236261919140816,
-0.017856648191809654,
-0.06749419867992401,
-0.006314175669103861,
-0.05387381464242935,
0.02243252657353878,
0.008092690259218216,
-0.0036977920681238174,
-0.0222716573625803,
0.012833908200263977,
-0.055983006954193115,
-0.006175647955387831,
-0.03817998245358467,
-0.013629324734210968,
0.011698875576257706,
0.03033306635916233,
0.03590991720557213,
-0.0020935535430908203,
-0.040932659059762955,
-0.015595521777868271,
0.032728251069784164,
-0.0704256221652031,
-0.06441978365182877,
0.027312271296977997,
-0.019983718171715736,
0.0029850455466657877,
0.031244667246937752,
0.014299619011580944,
-0.025900185108184814,
0.05941491574048996,
-0.017767276614904404,
0.008436774834990501,
-0.00020541738194879144,
-0.048582956194877625,
-0.00568856718018651,
-0.0025672283954918385,
-0.047474734485149384,
-0.01564020849764347,
-0.02361224591732025,
0.0320490226149559,
-0.028116624802350998,
0.04572303220629692,
0.033461108803749084,
-0.0060326517559587955,
-0.0031816652044653893,
0.01485372893512249,
0.018357135355472565,
-0.02960021048784256,
0.024130607023835182,
0.02166392281651497,
-0.03796548768877983,
-0.007534111849963665,
0.049047693610191345,
-0.017293602228164673,
-0.040896911174058914,
0.004835058469325304,
0.01508609764277935,
0.027973629534244537,
-0.062310587614774704,
0.006971064023673534,
0.024702591821551323,
0.018232014030218124,
-0.06574250012636185,
0.047581981867551804,
0.0020175869576632977,
-0.013933191075921059,
0.039824437350034714,
0.010939208790659904,
0.02893885411322117,
-0.035266436636447906,
-0.05262259766459465,
-0.009419874288141727,
0.07421502470970154,
-0.01529165543615818,
0.019858594983816147,
0.03978868946433067,
0.034283336251974106,
0.0017572890501469374,
0.007297274190932512,
0.003275506431236863,
-0.004294354468584061,
0.0035257497802376747,
0.00010934181045740843,
0.019661976024508476,
0.03864471986889839,
-0.002213089494034648,
0.04236261919140816,
-0.017275726422667503,
0.05869993567466736,
0.041683390736579895,
-0.05394531413912773,
0.009455623105168343,
0.028634987771511078,
-0.01092133391648531,
0.02366586960852146,
0.03682151809334755,
0.01177037414163351,
0.06388355046510696,
-0.00545619847252965,
0.11511193215847015,
0.001298137241974473,
0.03885921463370323,
0.004709937144070864,
-0.048797450959682465,
0.0450795479118824,
-0.004633970092982054,
0.006819130852818489,
0.028366869315505028,
0.02890310436487198,
-0.018893372267484665,
-0.033318113535642624,
-0.0059522162191569805,
-0.03789399191737175,
-0.013539951294660568,
-0.02361224591732025,
-0.08265179395675659,
-0.019536854699254036,
-0.0052014864049851894,
0.0472244918346405,
0.04711724445223808,
0.08429625630378723,
0.05219360813498497,
0.02250402607023716,
0.03828722983598709,
-0.03832297772169113,
-0.01138607133179903,
0.025381824001669884,
-0.012145739048719406,
-0.00005201765816309489,
0.07085461169481277,
-0.006814662367105484,
-0.05959366261959076,
0.03013644739985466,
0.027044154703617096,
0.09094557911157608,
-0.048511456698179245,
-0.007435801904648542,
0.049047693610191345,
0.033175114542245865,
0.026990531012415886,
-0.0038139764219522476,
0.013995751738548279,
0.025185203179717064,
0.04629501700401306,
0.014031501486897469,
-0.00033486803295090795,
0.0064437659457325935,
0.010894522070884705,
0.026919033378362656,
0.02216440998017788,
-0.11589840799570084,
0.06452702730894089,
0.01438899151980877,
0.04393557831645012,
-0.05137138068675995,
-0.020984690636396408,
-0.06341881304979324,
-0.0012601539492607117,
0.03092292509973049,
-0.015604458749294281,
0.06484877318143845,
0.033782850950956345,
0.016417749226093292,
0.03474807366728783,
0.06216759234666824,
0.0011685469653457403,
0.017088044434785843,
0.040896911174058914,
0.0314234122633934,
-0.03197752311825752,
0.0006987821543589234,
0.018142640590667725,
0.01518440805375576,
0.06609998643398285,
-0.041826386004686356,
-0.03111954592168331,
-0.07414352148771286,
-0.00548747880384326,
0.05283709242939949,
-0.028348995372653008,
-0.012967966496944427,
-0.005067427642643452,
-0.010018670931458473,
0.012065303511917591,
-0.03544517979025841,
-0.008754047565162182,
-0.00016743401647545397,
-0.03853747248649597,
0.034229714423418045,
-0.011180514469742775,
0.01584576442837715,
-0.00289120408706367,
-0.004055282566696405,
-0.008258029818534851,
-0.028170248493552208,
-0.017731526866555214,
-0.0012746769934892654,
0.016650117933750153,
-0.03517706319689751,
-0.012798159383237362,
0.03943119943141937,
0.018160516396164894,
0.003329130122438073,
0.02902822569012642,
0.040038932114839554,
0.025471195578575134,
0.04422157257795334,
0.01608707197010517,
0.03839447721838951,
0.007149809505790472,
0.013754446059465408,
0.011922307312488556,
-0.019947968423366547,
-0.07124785333871841,
0.021413680166006088,
-0.02913547307252884,
-0.03476594761013985,
-0.020198211073875427,
-0.01621219329535961,
-0.05265834555029869,
-0.06109512224793434,
-0.07750393450260162,
0.01568489521741867,
-0.04007468372583389,
-0.014085124246776104,
-0.042076628655195236,
-0.018392885103821754,
0.03076205588877201,
0.028188124299049377,
-0.0024376381188631058,
0.028331119567155838,
0.06234633922576904,
-0.03582054376602173,
-0.08501123636960983,
-0.007976505905389786,
-0.03131616488099098,
0.05680523440241814,
0.05501778423786163,
-0.041325896978378296,
0.026901157572865486,
0.008369745686650276,
-0.025810811668634415,
-0.00021267890406306833,
0.033246614038944244,
0.025685690343379974,
-0.01468392089009285,
-0.033925846219062805,
0.03181665390729904,
-0.05923617258667946,
-0.01513972133398056,
-0.024309352040290833,
-0.05430280417203903,
-0.06838792562484741,
-0.033228740096092224,
0.06198884919285774,
-0.008758516982197762,
-0.0003826265165116638,
0.019375983625650406,
0.049262188374996185,
0.018267763778567314,
-0.006086275447160006,
0.005983497016131878,
-0.0153542160987854,
-0.013477390632033348,
0.03033306635916233,
0.03487319499254227,
0.009384124539792538,
-0.017213165760040283,
0.08165082335472107,
-0.004435115959495306,
0.041969381272792816,
0.00005515966404345818,
0.03903795778751373,
0.01052809413522482,
-0.0074402703903615475,
-0.016560746356844902,
-0.00818653218448162,
-0.021074064075946808,
-0.0574844665825367,
-0.02178904414176941,
-0.024059109389781952,
-0.031155293807387352,
-0.015229093842208385,
0.009804176166653633,
-0.06370480358600616,
-0.025453321635723114,
-0.026525793597102165,
-0.01573851890861988,
0.005661755334585905,
-0.02309388481080532,
-0.024219978600740433,
-0.0030878239776939154,
-0.05787770822644234,
0.04279160872101784,
0.03996743634343147,
0.003910052124410868,
0.02947508916258812,
-0.0040329392068088055,
0.02913547307252884,
0.056161753833293915,
0.02287939004600048,
0.032978497445583344,
-0.006604636553674936,
-0.028581364080309868,
0.019286610186100006,
0.018875496461987495,
-0.01595301181077957,
-0.049405183643102646,
0.023755241185426712,
-0.09316201508045197,
-0.009902485646307468,
-0.024845587089657784,
-0.034819573163986206,
0.008727235719561577,
-0.04200512915849686,
0.055768512189388275,
-0.017543844878673553,
-0.06985364109277725,
-0.019215112552046776,
0.04297035560011864,
0.0450795479118824,
-0.012485355138778687,
-0.0009289166773669422,
0.028634987771511078,
-0.027955755591392517,
-0.0030409032478928566,
-0.0016690336633473635,
-0.0445433147251606,
-0.09630793333053589,
0.04411432519555092,
0.021252809092402458,
0.03964569419622421,
-0.008191000670194626,
-0.03857322037220001,
0.01165418978780508,
-0.056840986013412476,
0.041576143354177475,
0.02968958392739296,
-0.032495882362127304,
0.03753649815917015,
-0.006256083492189646,
-0.01565808244049549,
0.0112698869779706,
-0.0029872797895222902,
0.0037491812836378813,
-0.07371453195810318,
-0.015166533179581165,
0.02220015786588192,
0.11625590175390244,
0.005764533765614033,
-0.019340233877301216,
-0.011359259486198425,
-0.001902519608847797,
-0.07800441980361938,
-0.011189451441168785,
0.04568728059530258,
0.003800570499151945,
-0.04600902274250984,
0.019072117283940315,
-0.005938810296356678,
0.027044154703617096,
0.018553756177425385,
-0.04718874394893646,
-0.1031002551317215,
-0.0470457449555397,
0.02902822569012642,
0.013691885396838188,
0.006966595537960529,
0.05437429994344711,
0.015095035545527935,
-0.06831642985343933,
0.017007609829306602,
0.03154853358864784,
0.03760799765586853,
0.06631448119878769,
-0.025900185108184814,
0.0070783114060759544,
-0.027258649468421936,
0.001058506895788014,
-0.021091938018798828,
-0.04246986657381058,
0.01098389457911253,
0.03642828017473221,
0.027884256094694138,
-0.0007026921957731247,
0.027562515810132027,
-0.017749402672052383,
0.0004641790292225778,
0.0016064727678894997,
0.0006244911928661168,
-0.014701795764267445,
-0.017552781850099564,
0.07064011693000793,
0.06470577418804169,
-0.008061409927904606,
-0.014353242702782154,
0.049512431025505066,
-0.09008760005235672,
0.006483983248472214,
0.0071632154285907745,
-0.018178390339016914,
-0.0014701795298606157,
0.023755241185426712,
0.06509901583194733,
-0.05487478896975517,
-0.03049393743276596,
0.014433678239583969,
-0.05491053685545921,
0.04515104740858078,
0.05162162333726883,
-0.025810811668634415,
-0.05787770822644234,
0.02382674068212509,
-0.018714625388383865,
-0.014353242702782154,
0.06999663263559341,
0.07921988517045975,
-0.03832297772169113,
0.040789663791656494,
0.026722412556409836,
0.008544022217392921,
-0.07092610746622086,
0.05147862806916237,
-0.0016545106191188097,
-0.02116343565285206,
-0.033997345715761185,
-0.00394356669858098,
0.013548889197409153,
-0.047581981867551804,
0.02893885411322117,
0.034354835748672485,
-0.028474116697907448,
-0.01563127152621746,
-0.02345137484371662,
-0.0016790881054475904,
0.04690274968743324,
0.0029984512366354465,
-0.016953986138105392,
0.007431333418935537,
0.0041245464235544205,
0.025381824001669884,
-0.01108220499008894,
0.00038793301791884005,
-0.03964569419622421,
0.027044154703617096,
-0.034104589372873306,
0.03210264444351196,
-0.013691885396838188,
0.04397132992744446,
0.012413856573402882,
-0.06452702730894089,
-0.004625033121556044,
-0.045794527977705,
0.015166533179581165,
0.06416954100131989,
-0.041719138622283936,
0.025578442960977554,
0.013888505287468433,
0.048940446227788925,
0.10317175090312958,
-0.026078930124640465,
-0.017338287085294724,
-0.002161700278520584,
-0.039609942585229874,
-0.03006494790315628,
-0.008740642108023167,
-0.017356162890791893,
-0.02332625351846218,
0.005505353212356567,
-0.07085461169481277,
0.03957419469952583,
-0.025971682742238045,
0.010233164764940739,
-0.01606025919318199,
-0.06441978365182877,
0.006130961701273918,
-0.065528005361557,
0.012351295910775661,
-0.018178390339016914,
-0.0477607287466526,
-0.0022354326210916042,
0.07664595544338226,
0.02291513979434967,
0.01563127152621746,
-0.013638261705636978,
-0.016194317489862442,
0.025417571887373924,
-0.005514290649443865,
-0.0076547646895051,
0.020484203472733498,
-0.019161488860845566,
0.004423944745212793,
0.017070170491933823,
0.0322277657687664,
0.09945385158061981,
-0.04786797612905502,
-0.03928820416331291,
0.0012500995071604848,
-0.06506326794624329,
-0.028241747990250587,
0.0030207945965230465,
-0.0036776831839233637,
0.055947259068489075,
-0.06878116726875305,
-0.007346429396420717,
-0.03022581897675991,
-0.03868046775460243,
-0.0635618045926094,
-0.03170940652489662,
0.014353242702782154,
0.03253163397312164,
-0.02184266783297062,
-0.014210246503353119,
0.02198566496372223,
-0.024827713146805763,
-0.048582956194877625,
0.0060326517559587955,
-0.024327225983142853,
0.08365277200937271,
-0.04629501700401306,
-0.0004524488758761436,
-0.015568709932267666,
0.007203433196991682,
-0.02336200326681137,
-0.02906397543847561,
-0.02270064502954483,
-0.05090664327144623,
0.019536854699254036,
-0.03714326024055481,
-0.0007367655052803457,
0.019447481259703636,
0.06438403576612473,
0.007766480557620525,
0.00797203741967678,
-0.03199539706110954,
0.040289174765348434,
-0.00018572747649159282,
-0.0019416201394051313,
-0.004678656347095966,
0.05383806675672531,
-0.020037341862916946,
0.01047447044402361,
-0.012261923402547836,
-0.0322277657687664,
-0.01589045114815235,
-0.033800724893808365,
0.00022091793653089553,
-0.01133244764059782,
-0.024112733080983162,
-0.025685690343379974,
0.04479355737566948,
-0.04979842156171799,
0.0007250353810377419,
0.0015215688617900014,
0.027133526280522346,
-0.009786301292479038,
0.0222716573625803,
-0.01642668806016445,
-0.008986417204141617,
0.013334394432604313,
-0.009080258198082447,
0.00586731219664216,
-0.04246986657381058,
-0.0021516457200050354,
0.033246614038944244,
0.05147862806916237,
0.006425891071557999,
0.018178390339016914,
0.05022741109132767,
0.04304185137152672,
0.007087248843163252,
0.0008389854338020086,
-0.00022454869758803397,
-0.02239677868783474,
0.020913193002343178,
0.008615520782768726,
0.033729225397109985,
0.06023714318871498,
0.024434473365545273,
-0.04021767899394035,
0.004651844967156649,
0.020913193002343178,
-0.03935969993472099,
0.057412970811128616,
0.020269710570573807,
-0.06098787486553192,
-0.04232687130570412,
-0.05147862806916237,
-0.001323831849731505,
-0.026347048580646515,
0.08315228670835495,
0.026311298832297325,
0.054731789976358414,
0.002253307029604912,
-0.048547204583883286,
0.04407857358455658,
-0.02970745787024498,
0.042612865567207336,
0.00010215010843239725,
0.01589045114815235,
-0.03616015985608101,
0.05197911337018013,
0.007038093637675047,
-0.03853747248649597,
0.04604477435350418,
0.03019007109105587,
-0.04300610348582268,
0.06449127942323685,
0.05104963853955269,
-0.0790053978562355,
-0.0000960755642154254,
0.005143394228070974,
-0.008034598082304,
-0.040503669530153275,
-0.0317809022963047,
-0.005299796350300312,
-0.026400672271847725,
-0.0011953588109463453,
0.016989734023809433,
0.004835058469325304,
-0.012735597789287567,
-0.04372108355164528
] |
9,993
|
torch.nn.modules.container
|
__dir__
| null |
@_copy_to_script_wrapper
def __dir__(self):
keys = super().__dir__()
keys = [key for key in keys if not key.isdigit()]
return keys
|
(self)
|
[
0.008152599446475506,
0.020429149270057678,
-0.000462428288301453,
-0.03798193112015724,
0.025523440912365913,
0.03035782091319561,
0.015291539020836353,
-0.010838366113603115,
0.015482141636312008,
0.019718721508979797,
-0.002928351517766714,
-0.012562454678118229,
-0.019441481679677963,
0.04439311474561691,
-0.03002859838306904,
-0.03489763289690018,
0.050423093140125275,
0.08864761143922806,
0.0026034603361040354,
-0.04162071272730827,
-0.04130881652235985,
0.032471779733896255,
0.029907304793596268,
0.0017479138914495707,
-0.04772000014781952,
0.05070033296942711,
0.019268205389380455,
-0.03361539542675018,
0.04730413854122162,
-0.015178910456597805,
-0.06591390073299408,
-0.02562740631401539,
0.053646013140678406,
0.02226586826145649,
-0.004981663078069687,
-0.0662604495882988,
0.004834379069507122,
0.03221186622977257,
-0.03652641922235489,
0.0009719657828100026,
0.08421176671981812,
0.04214053601026535,
-0.007598118856549263,
0.0004497033660300076,
0.02004794403910637,
0.021416818723082542,
0.00039555487455800176,
-0.0423484668135643,
0.025731371715664864,
-0.03321686387062073,
0.035867974162101746,
-0.004006989765912294,
0.030704371631145477,
-0.01954544708132744,
-0.004981663078069687,
0.051843948662281036,
0.03413522243499756,
0.0058913580141961575,
-0.043249499052762985,
0.05673031136393547,
-0.04900223761796951,
0.002752910368144512,
-0.0003035023983102292,
-0.10202445834875107,
0.05160136520862579,
-0.035660043358802795,
-0.07776592671871185,
-0.010769056156277657,
-0.013905337080359459,
0.01476304978132248,
-0.04678431153297424,
-0.04117019474506378,
0.022421814501285553,
0.05219050124287605,
0.01759609952569008,
-0.04390794411301613,
-0.02448379062116146,
-0.0027485783211886883,
0.007728075608611107,
-0.01789933070540428,
-0.023929309099912643,
-0.034117892384529114,
-0.04519018158316612,
0.04349208250641823,
0.0024540105368942022,
0.01559477113187313,
0.0010975903132930398,
-0.031761351972818375,
-0.012051292695105076,
0.02562740631401539,
-0.06868629902601242,
0.04751206934452057,
-0.03874434158205986,
0.05825513228774071,
-0.01836717501282692,
-0.03522685542702675,
-0.006918013561517,
-0.004981663078069687,
-0.030132563784718513,
0.007797385565936565,
0.0003451967495493591,
0.06258701533079147,
0.03477633744478226,
0.0055794622749090195,
0.00785369984805584,
-0.011981982737779617,
-0.04765068739652634,
-0.04508621618151665,
0.0037427451461553574,
0.007286223582923412,
-0.04397725313901901,
0.017760710790753365,
0.0327143631875515,
-0.04013054445385933,
0.06754268705844879,
-0.05357670038938522,
-0.0507349893450737,
-0.009417508728802204,
0.05250239372253418,
-0.007108616642653942,
0.04075433313846588,
0.10569789260625839,
-0.025263529270887375,
0.04252174124121666,
0.042798981070518494,
0.052848946303129196,
-0.010413841344416142,
0.036249179393053055,
-0.013584778644144535,
0.008100616745650768,
0.010214574635028839,
-0.023756034672260284,
-0.04609121009707451,
0.0331302247941494,
0.018887000158429146,
0.015040290541946888,
0.003099460620433092,
0.02055044285953045,
0.0008100616978481412,
0.03023652732372284,
0.017812693491578102,
-0.0032619063276797533,
0.05513617768883705,
0.015178910456597805,
-0.03860572353005409,
0.012657755985856056,
0.01860976032912731,
0.07887488603591919,
-0.03780865669250488,
-0.04238312318921089,
0.0114275012165308,
0.023426812142133713,
-0.006493489257991314,
0.00031812250381335616,
-0.008403848856687546,
0.034117892384529114,
-0.03463771939277649,
-0.03614521399140358,
-0.05638376250863075,
-0.08864761143922806,
-0.02713490091264248,
-0.015473478473722935,
0.03018454648554325,
-0.07080025970935822,
0.024916978552937508,
-0.004483496770262718,
0.06431976705789566,
-0.057042207568883896,
0.01309960801154375,
0.024206550791859627,
-0.018020624294877052,
-0.05007654055953026,
-0.020117254927754402,
0.04498225077986717,
0.01606261357665062,
0.017639419063925743,
-0.011574785225093365,
0.022699056193232536,
0.019770704209804535,
0.07617179304361343,
-0.009339534677565098,
-0.04633379727602005,
-0.05056171119213104,
0.06383459270000458,
0.05128946900367737,
-0.007108616642653942,
0.019528118893504143,
-0.007840704172849655,
0.0329049676656723,
0.005102955736219883,
-0.009885352104902267,
0.040858298540115356,
-0.014615765772759914,
-0.016608431935310364,
-0.014312534593045712,
-0.02666705846786499,
-0.05666100233793259,
-0.01564675383269787,
-0.07554800063371658,
-0.0014457652578130364,
-0.02742946892976761,
-0.022491125389933586,
0.0035932951141148806,
-0.0034091901034116745,
0.000777572626248002,
0.0007580791716463864,
-0.03493228554725647,
-0.015144255012273788,
0.028625069186091423,
0.01689433492720127,
0.07249835878610611,
-0.06976060569286346,
0.025194218382239342,
-0.008494818583130836,
0.02377336286008358,
-0.03995727002620697,
0.02226586826145649,
-0.021780697628855705,
0.04328415170311928,
0.030583078041672707,
0.042833637446165085,
0.05835909768939018,
-0.043457429856061935,
-0.014295206405222416,
-0.02943946234881878,
-0.023721380159258842,
0.013151589781045914,
-0.006190257612615824,
-0.04130881652235985,
-0.047408103942871094,
0.046853624284267426,
-0.05794323608279228,
-0.05125481262803078,
0.04993792250752449,
-0.0005152230733074248,
0.00747249461710453,
-0.018557777628302574,
-0.022664399817585945,
0.032852984964847565,
-0.03522685542702675,
-0.053195495158433914,
0.0016406998038291931,
0.0369076244533062,
0.039437443017959595,
0.006190257612615824,
-0.01754411682486534,
0.021278198808431625,
0.030842991545796394,
-0.009634102694690228,
0.005817716009914875,
0.07693420350551605,
-0.0457100048661232,
-0.05194791406393051,
0.0194934643805027,
-0.017084937542676926,
0.007433507591485977,
-0.05766599625349045,
-0.010162592865526676,
-0.0232708640396595,
-0.028573086485266685,
-0.024085257202386856,
-0.02742946892976761,
-0.03652641922235489,
-0.017743384465575218,
0.02658042125403881,
-0.004877697676420212,
0.02297629602253437,
0.023877326399087906,
-0.05094292014837265,
-0.0028503774665296078,
0.02288965880870819,
-0.028538430109620094,
-0.06823578476905823,
0.05347273871302605,
-0.06605251878499985,
0.01954544708132744,
0.008923674933612347,
0.021226216107606888,
-0.03472435846924782,
-0.013602105900645256,
0.03131083399057388,
0.04435845836997032,
-0.02339215576648712,
-0.057596687227487564,
-0.0011187081690877676,
-0.0190776027739048,
-0.023340173065662384,
-0.06993388384580612,
-0.04889827221632004,
0.021156905218958855,
0.050388436764478683,
0.01264042779803276,
0.03462039306759834,
-0.04997257888317108,
0.03988795727491379,
0.003597626928240061,
-0.040650371462106705,
-0.062413737177848816,
0.009122940711677074,
0.008685421198606491,
-0.005787392612546682,
-0.01568140834569931,
-0.03597193956375122,
0.026528438553214073,
-0.07741937041282654,
0.0316573865711689,
0.010673753917217255,
0.0014739223988726735,
-0.028070587664842606,
0.010344531387090683,
0.01919889636337757,
0.02176336944103241,
0.052641015499830246,
0.03933347761631012,
-0.010032636113464832,
-0.04834378883242607,
-0.008395184762775898,
0.023045605048537254,
-0.020186563953757286,
0.10708409547805786,
-0.06172063946723938,
0.054616354405879974,
0.04550207778811455,
-0.010950994677841663,
0.0373234860599041,
0.024258533492684364,
0.016279207542538643,
0.01999596133828163,
0.014433827251195908,
0.006931009236723185,
-0.05867099389433861,
0.006272563245147467,
0.020151909440755844,
0.01771739311516285,
0.022040609270334244,
0.04425449296832085,
-0.00914026889950037,
-0.02536749467253685,
0.0012909005163237453,
-0.025315511971712112,
0.02775869145989418,
-0.0025753031950443983,
0.005514484364539385,
-0.011401509866118431,
-0.053611356765031815,
-0.027117574587464333,
0.019943978637456894,
0.052848946303129196,
0.019597427919507027,
-0.04096226394176483,
0.02554076910018921,
0.018211226910352707,
-0.027412142604589462,
0.01612326130270958,
0.04713086411356926,
-0.029993942007422447,
0.018332520499825478,
0.0017652413807809353,
-0.025973957031965256,
0.007286223582923412,
0.05946806073188782,
0.017084937542676926,
-0.03808589652180672,
-0.019857341423630714,
0.031137559562921524,
-0.05648772418498993,
0.0457100048661232,
-0.07658765465021133,
0.07873626798391342,
-0.020619751885533333,
-0.027828002348542213,
0.012458489276468754,
-0.034239187836647034,
-0.093083456158638,
-0.024899650365114212,
-0.06071564182639122,
0.034117892384529114,
0.009755395352840424,
-0.06217115372419357,
0.047442760318517685,
0.026303179562091827,
0.02737748622894287,
0.016617095097899437,
0.020723717287182808,
-0.03321686387062073,
0.021486129611730576,
0.014918997883796692,
0.011739397421479225,
-0.00734686991199851,
0.037462104111909866,
0.002711757319048047,
-0.005869698710739613,
-0.04519018158316612,
0.06965664029121399,
0.011410173960030079,
-0.026857661083340645,
0.014364516362547874,
-0.017760710790753365,
-0.05146274343132973,
0.008351866155862808,
0.06480493396520615,
-0.046229831874370575,
-0.029283514246344566,
0.03999192267656326,
0.013965983875095844,
-0.04092761129140854,
0.05527479946613312,
-0.06227511912584305,
0.022161902859807014,
-0.0662257969379425,
0.019684066995978355,
-0.01904294826090336,
0.039645373821258545,
-0.03909089416265488,
0.0507349893450737,
-0.03590262681245804,
-0.0036561074666678905,
-0.04498225077986717,
0.042071226984262466,
-0.0044358461163938046,
0.016885671764612198,
-0.04668034613132477,
0.00949548278003931,
0.030808337032794952,
0.03252376243472099,
0.020151909440755844,
-0.04293760284781456,
-0.007104284595698118,
0.002538482192903757,
0.035660043358802795,
-0.030305838212370872,
0.012545126490294933,
-0.035278838127851486,
-0.01287434995174408,
0.053056877106428146,
-0.013740725815296173,
0.01451180037111044,
-0.016781706362962723,
0.003597626928240061,
0.09148932248353958,
-0.0574580654501915,
0.017882004380226135,
0.04013054445385933,
-0.006060301326215267,
0.030600406229496002,
0.00977272354066372,
0.0012735729105770588,
0.09959860146045685,
-0.004405522719025612,
-0.007476826198399067,
-0.01635718159377575,
0.007689088582992554,
0.020481131970882416,
-0.09412311017513275,
0.026996280997991562,
0.024015948176383972,
-0.04314553365111351,
0.017318859696388245,
-0.015984639525413513,
0.0023283858317881823,
0.010491815395653248,
0.03611055761575699,
0.026112576946616173,
-0.007910014130175114,
0.03614521399140358,
-0.018211226910352707,
-0.018713725730776787,
0.012302541173994541,
0.02684033289551735,
0.06747337430715561,
0.01798596978187561,
0.04889827221632004,
-0.03002859838306904,
-0.05295291170477867,
-0.046195175498723984,
0.05887892469763756,
-0.005137610714882612,
0.008447167463600636,
-0.03988795727491379,
-0.03708089888095856,
-0.02113957889378071,
-0.07319145649671555,
0.008542468771338463,
0.033234190195798874,
-0.03014989010989666,
-0.021780697628855705,
-0.005557802971452475,
-0.036422453820705414,
-0.0016222894191741943,
0.0008880355744622648,
0.05253705009818077,
0.024882324039936066,
-0.05773530900478363,
-0.016235889866948128,
0.049210164695978165,
0.029993942007422447,
-0.01014526467770338,
0.05485893785953522,
0.007771394215524197,
-0.0005750571726821363,
-0.011808707378804684,
-0.014546455815434456,
0.021416818723082542,
0.005527480039745569,
0.00489502539858222,
0.027308177202939987,
0.03721952065825462,
0.00048733659787103534,
-0.02230052277445793,
-0.042833637446165085,
0.03274901956319809,
0.01724088564515114,
-0.02486499585211277,
0.004006989765912294,
0.03933347761631012,
-0.02335750125348568,
-0.06421580165624619,
0.035122890025377274,
0.00011520095722516999,
0.04574466124176979,
-0.020723717287182808,
-0.02276836521923542,
-0.012406506575644016,
-0.08192452788352966,
-0.005328213330358267,
0.025731371715664864,
-0.061789948493242264,
0.03408323973417282,
0.01975337602198124,
0.0859445184469223,
0.03593728318810463,
-0.016591103747487068,
0.011566122062504292,
0.0031969279516488314,
-0.019146913662552834,
0.07055767625570297,
0.006766397971659899,
-0.03628383204340935,
-0.006580126937478781,
0.032350484281778336,
0.029248859733343124,
0.00782770849764347,
0.05867099389433861,
-0.02612990513443947,
0.038259170949459076,
0.06643372774124146,
-0.07769661396741867,
-0.008746067062020302,
-0.05967599153518677,
0.024916978552937508,
0.004604789428412914,
-0.06068098545074463,
-0.05246774107217789,
-0.030201872810721397,
0.042071226984262466,
-0.06269098073244095,
0.018627086654305458,
-0.04130881652235985,
-0.011878017336130142,
0.018107261508703232,
0.011236898601055145,
-0.025384820997714996,
-0.0444624237716198,
-0.028070587664842606,
-0.05194791406393051,
-0.005583794321864843,
-0.019008293747901917,
0.032766345888376236,
-0.06282959878444672,
0.0016948484117165208,
-0.011574785225093365,
0.04927947744727135,
0.014182577840983868,
-0.028278518468141556,
0.02415456809103489,
0.046645693480968475,
-0.0009167342795990407,
0.025731371715664864,
0.025506114587187767,
-0.07416179776191711,
0.04775465279817581,
-0.006640773266553879,
-0.000130700966110453,
-0.013012969866394997,
-0.02545413188636303,
-0.03957606479525566,
-0.021503455936908722,
-0.013108271174132824,
0.06570596992969513,
-0.025194218382239342,
-0.004830047022551298,
0.052225153893232346,
0.0024821676779538393,
-0.042071226984262466,
0.01309960801154375,
-0.037670034915208817,
-0.031466782093048096,
-0.009781386703252792,
0.011687414720654488,
-0.023045605048537254,
0.05170533061027527,
-0.00039555487455800176,
0.017743384465575218,
0.04255639761686325,
0.036457110196352005,
-0.017726056277751923,
0.018037952482700348,
0.010786383412778378,
0.01318624522536993,
0.0299766156822443,
-0.07038439810276031,
-0.022456470876932144,
0.02164207585155964,
-0.05908685550093651,
0.012683747336268425,
0.03808589652180672,
0.027776019647717476,
-0.05846306309103966,
0.028330501168966293,
0.042417775839567184,
-0.06282959878444672,
0.04477431997656822,
0.001880036317743361,
0.00704363826662302,
-0.00977272354066372,
-0.0028785348404198885,
-0.025142235681414604,
0.0637306272983551,
0.02465706504881382,
-0.0578739270567894,
-0.00362795009277761,
-0.07024578005075455,
0.09509345144033432,
-0.0228550024330616,
-0.034828320145606995,
0.005024981684982777,
-0.027308177202939987,
-0.0767262727022171,
-0.031345490366220474,
0.03157074749469757,
0.051843948662281036,
-0.03044445812702179,
-0.018384501338005066,
-0.023548103868961334,
-0.0738152489066124,
-0.032766345888376236,
-0.019891995936632156,
-0.018973637372255325,
0.012371852062642574,
-0.0628989115357399,
-0.02226586826145649,
0.04577931761741638,
-0.033909961581230164,
0.04657638445496559,
-0.04335346445441246,
-0.012345860712230206,
-0.0003779566031880677,
-0.01916423998773098,
0.007459498941898346,
-0.03954140841960907,
-0.012631764635443687,
0.02943946234881878,
0.005432178732007742,
-0.03337280824780464,
0.04356139525771141,
0.005159270018339157,
-0.024258533492684364,
0.016374509781599045,
0.02775869145989418,
0.007143271621316671,
0.026597747579216957,
0.0482051707804203,
-0.035330820828676224,
-0.05250239372253418,
-0.08774657547473907,
0.01860976032912731,
0.020654408261179924,
0.0411008857190609,
0.044427771121263504,
-0.06400787085294724,
-0.03895227238535881,
-0.0327143631875515,
0.0010082452790811658,
0.023877326399087906,
-0.012631764635443687,
0.05565600469708443,
-0.020619751885533333,
0.0024605083744972944,
0.040026579052209854,
-0.017830021679401398,
-0.031102905049920082,
0.0028547095134854317,
0.023461466655135155,
0.001166358939372003,
0.036665040999650955,
0.022837676107883453,
0.05132412537932396,
-0.003933347761631012,
0.02637249045073986,
-0.04155139997601509,
0.01356745045632124,
-0.010587116703391075,
0.04096226394176483,
0.02457042783498764,
-0.001069433055818081,
-0.034187205135822296,
0.013125598430633545,
0.01559477113187313,
-0.03189997002482414,
0.018315192312002182,
0.011548793874680996,
0.04092761129140854,
-0.022924313321709633,
-0.03957606479525566,
0.025921974331140518,
-0.043006911873817444,
0.0007819044985808432,
0.03330349922180176,
0.026978954672813416,
-0.04387328773736954,
0.03448177129030228,
-0.009842033497989178,
0.02872903272509575,
0.08795450627803802,
0.07478559017181396,
0.026719041168689728,
-0.04172467440366745,
-0.006428511347621679,
0.03853641077876091,
0.03212522715330124,
0.007355533540248871,
-0.02250845357775688,
-0.03749676048755646,
0.019718721508979797,
0.03262772783637047,
0.010725736618041992,
0.012155257165431976,
-0.0016406998038291931,
-0.03151876479387283,
0.04418518394231796,
0.0019460974726825953,
0.03361539542675018,
0.005388859659433365,
0.04806654900312424,
0.011358191259205341,
-0.02214457467198372,
0.04428914934396744,
0.0031796004623174667,
0.021572766825556755,
-0.023426812142133713,
0.026996280997991562,
0.0327143631875515,
-0.03179600462317467,
-0.03808589652180672,
0.009304880164563656,
0.03241979703307152,
0.04331880807876587,
-0.05014585331082344,
0.027776019647717476,
-0.009937334805727005,
-0.02214457467198372,
-0.06743872165679932,
-0.036422453820705414,
0.009174923412501812,
0.07977591454982758,
0.0015746386488899589,
0.03191729635000229,
-0.07159732282161713
] |
9,994
|
torch.nn.modules.module
|
__getattr__
| null |
def __getattr__(self, name: str) -> Any:
if '_parameters' in self.__dict__:
_parameters = self.__dict__['_parameters']
if name in _parameters:
return _parameters[name]
if '_buffers' in self.__dict__:
_buffers = self.__dict__['_buffers']
if name in _buffers:
return _buffers[name]
if '_modules' in self.__dict__:
modules = self.__dict__['_modules']
if name in modules:
return modules[name]
raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
|
(self, name: str) -> Any
|
[
0.07500574737787247,
-0.05774307996034622,
-0.021037764847278595,
0.00812178198248148,
0.006371589377522469,
-0.040480416268110275,
0.023501327261328697,
-0.017758922651410103,
0.009907422587275505,
0.005370212718844414,
0.0015541272005066276,
0.020204761996865273,
0.014152194373309612,
0.037431977689266205,
-0.02107321098446846,
0.042997151613235474,
0.028446177020668983,
0.040267735719680786,
-0.013035615906119347,
-0.010465712286531925,
0.023731732740998268,
0.03867262229323387,
-0.0012339969398453832,
-0.016341043636202812,
0.012087410315871239,
0.08812111616134644,
0.06302467733621597,
0.007975563406944275,
0.061252329498529434,
-0.047463465481996536,
-0.01324829738587141,
-0.041153907775878906,
0.016660066321492195,
0.02351905219256878,
-0.017085429280996323,
0.036616697907447815,
-0.0140635771676898,
0.03489752113819122,
-0.06167769432067871,
-0.06330825388431549,
0.047463465481996536,
-0.005029036197811365,
0.02204800210893154,
-0.04391876980662346,
0.026035785675048828,
-0.034472160041332245,
-0.035057034343481064,
0.06362727284431458,
-0.0175107941031456,
0.007240039762109518,
0.05203612148761749,
0.006393743678927422,
-0.004517270717769861,
0.001766808913089335,
-0.005219563376158476,
0.022951900959014893,
-0.012043101713061333,
0.05728227272629738,
0.0011320869671180844,
0.04338706657290459,
-0.03027169592678547,
-0.021480850875377655,
0.03626222908496857,
-0.021906215697526932,
-0.021994832903146744,
-0.07372965663671494,
-0.019637610763311386,
0.010722702369093895,
-0.03271753340959549,
0.04487583786249161,
0.009437750093638897,
0.03771555423736572,
-0.03296566382050514,
0.009007955901324749,
0.006469068583101034,
-0.02961592748761177,
-0.05604162812232971,
-0.03629767522215843,
0.026018060743808746,
-0.007523614913225174,
0.0026164280716329813,
-0.006965325679630041,
-0.07925938069820404,
-0.05423383414745331,
-0.051256291568279266,
-0.04239455237984657,
-0.043741535395383835,
-0.08826290816068649,
-0.02396213822066784,
-0.02203027904033661,
-0.06383995711803436,
0.0488104484975338,
-0.03191997855901718,
0.07071666419506073,
0.006646302994340658,
-0.0769907757639885,
0.04459226131439209,
-0.009739049710333347,
0.01161773782223463,
0.01780323125422001,
0.013673661276698112,
-0.0015397268580272794,
0.0033120743464678526,
0.007944547571241856,
0.0190704595297575,
-0.026532042771577835,
0.006043705157935619,
-0.02351905219256878,
0.055545371025800705,
0.012920413166284561,
0.006628579460084438,
0.014799101278185844,
-0.045513883233070374,
0.040622204542160034,
0.0026983991265296936,
-0.013407808728516102,
-0.032469406723976135,
-0.04157927259802818,
0.00706723565235734,
0.008635763078927994,
-0.022065727040171623,
0.05380846932530403,
0.014347152784466743,
-0.003493739990517497,
0.05909006670117378,
0.04622282460331917,
-0.030378036201000214,
-0.04792427644133568,
0.058062102645635605,
-0.051681652665138245,
0.020576953887939453,
-0.012353261932730675,
-0.04094122722744942,
0.049838412553071976,
0.013983821496367455,
0.06054339185357094,
0.04569111764431,
0.07351697236299515,
0.0029576048254966736,
0.04640005901455879,
0.010882213711738586,
-0.01862737163901329,
0.008436374366283417,
-0.036102719604969025,
-0.02835755981504917,
-0.029562756419181824,
0.05795576423406601,
-0.01004920993000269,
-0.01060749962925911,
-0.02316458150744438,
-0.02403303235769272,
0.014958612620830536,
-0.002565473085269332,
0.0041561550460755825,
-0.008201537653803825,
0.010190998204052448,
-0.038389045745134354,
-0.007873653434216976,
-0.056963250041007996,
-0.05299318954348564,
-0.028517071157693863,
0.022473366931080818,
-0.07621094584465027,
-0.11598242074251175,
0.04303259775042534,
-0.03140599653124809,
0.009907422587275505,
-0.02116183005273342,
0.014595281332731247,
0.002058138605207205,
-0.06422987580299377,
0.011679770424962044,
0.0016272366046905518,
0.03913343325257301,
0.008618040010333061,
0.029208287596702576,
-0.062067609280347824,
0.01626128889620304,
0.03849538788199425,
-0.05246148630976677,
0.028481625020503998,
-0.010891075246036053,
-0.06642758101224899,
-0.015295359306037426,
0.018609648570418358,
0.03828270733356476,
-0.0014333860017359257,
0.018051359802484512,
-0.0018077944405376911,
0.024759694933891296,
0.0003821624268312007,
0.021923938766121864,
0.03789278864860535,
-0.00545439962297678,
-0.03293021768331528,
-0.005853177513927221,
0.000004586641352943843,
0.021179553121328354,
0.04235910624265671,
0.0830167606472969,
0.02144540473818779,
0.029048776254057884,
-0.03665214776992798,
0.10527744144201279,
-0.028322113677859306,
-0.04072854667901993,
0.10513565689325333,
-0.01306220144033432,
-0.04320983216166496,
-0.00012136426812503487,
-0.03831815347075462,
-0.019247693940997124,
0.051256291568279266,
0.03564190864562988,
0.04565567150712013,
0.04831419140100479,
-0.014382599852979183,
-0.04239455237984657,
0.04267812892794609,
0.03308972716331482,
0.06809359043836594,
0.03732563927769661,
0.05118539556860924,
0.005950656719505787,
-0.00003336997906444594,
-0.0387435145676136,
-0.010155551135540009,
-0.0038238398265093565,
-0.0636981725692749,
-0.03732563927769661,
0.05958632379770279,
-0.0055961874313652515,
0.03408224135637283,
0.007173576392233372,
-0.002295190002769232,
0.0026673830579966307,
-0.0032278879079967737,
0.010164412669837475,
-0.015720723196864128,
-0.05175254866480827,
0.05611252039670944,
0.024883758276700974,
-0.01995663344860077,
0.05589983984827995,
-0.024972375482320786,
-0.05689235404133797,
-0.002479071030393243,
0.04012594744563103,
-0.018786882981657982,
-0.03984237089753151,
0.0918784961104393,
0.036333125084638596,
-0.02389124408364296,
0.01640307530760765,
-0.04281991720199585,
-0.057034142315387726,
-0.08989346772432327,
-0.015082676894962788,
0.022278407588601112,
0.005379074718803167,
-0.021020041778683662,
-0.045159414410591125,
-0.016730960458517075,
0.03665214776992798,
0.03849538788199425,
0.0011608876520767808,
0.009225068613886833,
0.015383976511657238,
-0.021711256355047226,
0.004935987759381533,
0.017679166048765182,
-0.011839281767606735,
0.019868016242980957,
-0.004980296362191439,
-0.008059750311076641,
-0.03629767522215843,
0.04838508740067482,
0.024157095700502396,
0.0018908731872215867,
0.010882213711738586,
0.05692780017852783,
-0.04912947118282318,
-0.01269000768661499,
0.021339064463973045,
0.00040902456385083497,
-0.02130361646413803,
-0.004639119375497103,
-0.017643719911575317,
0.00460367277264595,
0.026248466223478317,
0.08975167572498322,
-0.005458830390125513,
-0.03262891620397568,
-0.017333557829260826,
0.0212858933955431,
-0.0016084053786471486,
-0.05898372456431389,
0.003983350936323404,
0.07394234091043472,
-0.008321171626448631,
0.02160491608083248,
-0.00017446545825805515,
-0.010226445272564888,
0.02516733482480049,
-0.02768406830728054,
-0.005671511869877577,
0.05721137672662735,
0.010155551135540009,
-0.06252841651439667,
0.05104360729455948,
0.014001545496284962,
0.017041120678186417,
0.015640966594219208,
0.026744723320007324,
0.025574974715709686,
0.007222316227853298,
0.02752455696463585,
0.045301202684640884,
0.0021766643039882183,
0.10109470039606094,
-0.02857024222612381,
0.026230743154883385,
-0.01384203415364027,
-0.0041628009639680386,
0.03463166952133179,
0.0061367531307041645,
-0.012300091795623302,
-0.00486066285520792,
-0.00521070184186101,
0.014887719415128231,
-0.0757855772972107,
-0.006358296610414982,
0.014923165552318096,
-0.013443255797028542,
-0.00568037386983633,
0.028375282883644104,
-0.017475346103310585,
0.03760921582579613,
0.007541338447481394,
-0.0431743860244751,
0.03807002305984497,
-0.02382034994661808,
-0.020009802654385567,
-0.004300158005207777,
-0.02270377241075039,
0.02522050403058529,
0.05260327458381653,
0.03853083401918411,
0.07114202529191971,
-0.06578953564167023,
-0.020364273339509964,
-0.06649848073720932,
0.010261892341077328,
0.0412602499127388,
-0.025131886824965477,
-0.019690779969096184,
0.013177403248846531,
0.018272902816534042,
-0.013009030371904373,
-0.006664026528596878,
0.038176365196704865,
-0.017041120678186417,
-0.044946733862161636,
-0.0114227794110775,
-0.04785338416695595,
-0.030927464365959167,
-0.03170729801058769,
0.007439428474754095,
0.05749495327472687,
-0.04200463742017746,
-0.04342251271009445,
0.008852875791490078,
-0.016961365938186646,
-0.01335463859140873,
-0.022881006821990013,
0.01988573931157589,
0.031352825462818146,
0.0022486657835543156,
0.0070317885838449,
-0.00894592422991991,
0.004922694992274046,
-0.017200632020831108,
0.039523348212242126,
0.025273675099015236,
0.014258535578846931,
-0.03378094360232353,
-0.04406055808067322,
-0.04951938986778259,
0.013443255797028542,
0.017971603199839592,
-0.00904783420264721,
-0.03697117045521736,
-0.05919640511274338,
0.048491425812244415,
-0.021480850875377655,
-0.03473801165819168,
0.013992683961987495,
-0.03856628015637398,
-0.052284251898527145,
0.009951731190085411,
0.016828440129756927,
-0.016961365938186646,
-0.04104756936430931,
0.037573765963315964,
0.002547749551013112,
0.007705280557274818,
0.05714048445224762,
0.04806606471538544,
-0.003779530990868807,
-0.00975677277892828,
-0.022242961451411247,
0.040338627994060516,
-0.08436374366283417,
-0.06749099493026733,
0.03578369691967964,
0.01283179596066475,
0.09336726367473602,
-0.011289853602647781,
0.02678017131984234,
0.015064953826367855,
0.01201651617884636,
-0.012840657494962215,
0.0006385989836417139,
-0.033727772533893585,
-0.003952335100620985,
0.010439126752316952,
-0.018450137227773666,
0.02530912309885025,
-0.005866470281034708,
0.05097271502017975,
-0.06497425585985184,
0.01640307530760765,
-0.030679335817694664,
-0.05139807611703873,
0.07302071899175644,
-0.02351905219256878,
-0.014905442483723164,
-0.03690027445554733,
-0.02686878852546215,
-0.00926937721669674,
-0.00012690284347627312,
0.019424928352236748,
-0.021250447258353233,
0.014923165552318096,
-0.041224803775548935,
-0.04838508740067482,
-0.029793161898851395,
0.060437049716711044,
0.028304388746619225,
-0.08422195166349411,
0.0012051962548866868,
0.02211889624595642,
0.05033466964960098,
-0.049306709319353104,
0.021197276189923286,
-0.07358786463737488,
-0.003976704552769661,
-0.04480494558811188,
0.052284251898527145,
0.01536625251173973,
-0.05589983984827995,
0.010261892341077328,
-0.009508644230663776,
-0.04533664882183075,
-0.033426474779844284,
0.05363123491406441,
0.05196522921323776,
0.01647396944463253,
-0.016225840896368027,
-0.029438691213726997,
0.06033070757985115,
-0.014613005332648754,
-0.025043269619345665,
-0.033125173300504684,
-0.013398947194218636,
0.00998717825859785,
-0.026248466223478317,
0.03672304004430771,
-0.031654126942157745,
-0.05196522921323776,
-0.004353328607976437,
-0.053985703736543655,
0.022384749725461006,
0.02701057679951191,
-0.008236984722316265,
-0.012849519029259682,
0.0028224634006619453,
0.036031823605298996,
0.026514317840337753,
-0.07380054891109467,
-0.0072976406663656235,
0.07351697236299515,
0.019035011529922485,
0.03867262229323387,
-0.012477326206862926,
0.031512338668107986,
-0.017785506322979927,
-0.01335463859140873,
-0.0013757847482338548,
0.020966870710253716,
-0.02204800210893154,
-0.032682087272405624,
0.047817934304475784,
-0.015632104128599167,
-0.008338894695043564,
0.01136074773967266,
-0.020311102271080017,
0.01647396944463253,
0.03991326689720154,
-0.013957236893475056,
-0.01554348785430193,
0.01498519815504551,
-0.018981842324137688,
0.021941661834716797,
0.019726227968931198,
-0.02931462787091732,
-0.001597328227944672,
0.0037462995387613773,
-0.035943206399679184,
0.013257158920168877,
0.05483643338084221,
-0.004023228771984577,
-0.025060994550585747,
-0.0406576506793499,
-0.039665136486291885,
-0.020364273339509964,
-0.015375114977359772,
0.01090879924595356,
-0.018574202433228493,
0.03154778480529785,
0.038034576922655106,
0.00408083014190197,
-0.04554932937026024,
0.03229217231273651,
0.027116917073726654,
0.03845994174480438,
-0.08386748284101486,
0.019336311146616936,
-0.0655059665441513,
0.0418628491461277,
0.05299318954348564,
-0.026230743154883385,
0.025255952030420303,
0.011830419301986694,
-0.0184146910905838,
-0.06256386637687683,
-0.05699869617819786,
0.026035785675048828,
0.0424654446542263,
-0.028375282883644104,
0.003633312415331602,
-0.003673190250992775,
-0.06373361498117447,
-0.048349641263484955,
0.03027169592678547,
-0.023855797946453094,
0.02686878852546215,
-0.0455847792327404,
-0.02249108999967575,
0.04898768663406372,
0.010518882423639297,
0.021409958600997925,
0.039877817034721375,
0.03849538788199425,
-0.027949919924139977,
0.0057734218426048756,
-0.008533853106200695,
0.028534794226288795,
-0.005356920417398214,
-0.04267812892794609,
0.008551577106118202,
0.03768010810017586,
0.0020160453859716654,
-0.005742406006902456,
0.06578953564167023,
0.06731376051902771,
0.03064388781785965,
0.04228821024298668,
-0.027772685512900352,
0.0021445404272526503,
0.05136262997984886,
-0.02568131498992443,
-0.06454889476299286,
-0.017413314431905746,
-0.043528854846954346,
-0.04647095128893852,
-0.016491694375872612,
-0.010465712286531925,
0.03168957307934761,
-0.03020080178976059,
-0.040622204542160034,
-0.06834171712398529,
-0.002008291194215417,
0.007403981871902943,
0.038140919059515,
0.05604162812232971,
-0.05919640511274338,
0.01090879924595356,
-0.0037219298537820578,
-0.013602767139673233,
0.0016704375157132745,
-0.030555270612239838,
0.03404679521918297,
0.042110975831747055,
0.019105905666947365,
0.06040160357952118,
-0.050866372883319855,
0.006792521569877863,
-0.015135847963392735,
0.023696286603808403,
-0.0072976406663656235,
-0.015109262429177761,
-0.021551745012402534,
0.031654126942157745,
0.006482360884547234,
-0.0017380082281306386,
-0.025876274332404137,
0.042040083557367325,
0.04593924805521965,
-0.03257574886083603,
0.00463468860834837,
0.04636460915207863,
-0.029420968145132065,
0.026851065456867218,
-0.04640005901455879,
-0.010767010971903801,
0.02754228003323078,
-0.056218862533569336,
0.015942266210913658,
0.022987347096204758,
-0.0061145988292992115,
-0.023855797946453094,
0.04274902120232582,
-0.0669238418340683,
-0.04764069989323616,
-0.0136116286739707,
0.05930274724960327,
-0.03177819028496742,
-0.05136262997984886,
0.06256386637687683,
0.018379243090748787,
0.0025854120030999184,
-0.059409089386463165,
-0.0052727339789271355,
-0.03537605702877045,
0.054588302969932556,
-0.019017288461327553,
-0.02596489153802395,
0.07149650156497955,
-0.01102400105446577,
-0.05994079262018204,
-0.029190562665462494,
0.00272719981148839,
0.0065222387202084064,
0.062599316239357,
-0.07043308764696121,
-0.0350215882062912,
-0.007802759762853384,
0.02419254370033741,
-0.025645868852734566,
-0.07500574737787247,
-0.07110658288002014,
-0.0007200161926448345,
-0.00732865696772933,
0.01595998927950859,
-0.02887153998017311,
-0.06167769432067871,
-0.043741535395383835,
0.05327676609158516,
-0.007129267789423466,
0.017085429280996323,
0.045903801918029785,
0.023341815918684006,
-0.04313893988728523,
-0.061854928731918335,
0.029066499322652817,
0.016757545992732048,
-0.042784467339515686,
0.04140203818678856,
-0.011927898973226547,
-0.016447383910417557,
0.0193717572838068,
-0.0474989116191864,
0.05519090220332146,
0.007638817653059959,
0.01579161547124386,
0.0437769815325737,
-0.004927126225084066,
0.04161471873521805,
-0.04725078493356705,
-0.02545090951025486,
-0.027737237513065338,
0.00868450291454792,
0.0519297830760479,
-0.01862737163901329,
-0.0562543086707592,
0.04083488509058952,
-0.043457962572574615,
0.03732563927769661,
0.03227444738149643,
0.027666345238685608,
-0.02360766939818859,
0.0018377028172835708,
-0.02382034994661808,
-0.01789184845983982,
0.035127926617860794,
0.018131114542484283,
0.01005807239562273,
-0.02055923081934452,
-0.03962969034910202,
-0.011919036507606506,
-0.004559364169836044,
0.03998415917158127,
-0.029101945459842682,
0.0750766396522522,
0.02195938490331173,
-0.056218862533569336,
0.06252841651439667,
-0.03792823478579521,
0.047817934304475784,
-0.033515091985464096,
0.038637176156044006,
0.05827478691935539,
-0.007457152009010315,
0.02314685843884945,
0.005543016828596592,
-0.03282387554645538,
-0.029793161898851395,
0.014418046921491623,
0.07500574737787247,
0.029350074008107185,
-0.011307576671242714,
-0.027861302718520164,
0.0029576048254966736,
0.03436581790447235,
-0.04363519698381424,
0.03856628015637398,
-0.024741971865296364,
0.013664798811078072,
0.04632916301488876,
-0.027116917073726654,
0.07550200074911118,
-0.016828440129756927,
0.033940453082323074,
0.03938155993819237,
0.02351905219256878,
-0.023873521015048027,
0.020754190161824226,
0.03294793888926506,
-0.01064294669777155,
0.05299318954348564,
0.021764427423477173,
0.02316458150744438,
0.03199087083339691,
0.058664701879024506,
-0.05632520467042923,
-0.031866807490587234,
-0.024529289454221725,
0.03775100037455559,
-0.034241754561662674,
-0.06827082484960556,
0.026904234662652016,
-0.03071478195488453,
0.0400550551712513,
-0.004499547183513641,
0.005002450663596392,
-0.046789973974227905,
0.005055621266365051
] |
9,995
|
torch.nn.modules.container
|
__getitem__
| null |
@_copy_to_script_wrapper
def __getitem__(self, idx: Union[slice, int]) -> Union['Sequential', T]:
if isinstance(idx, slice):
return self.__class__(OrderedDict(list(self._modules.items())[idx]))
else:
return self._get_item_by_idx(self._modules.values(), idx)
|
(self, idx: Union[slice, int]) -> Union[torch.nn.modules.container.Sequential, ~T]
|
[
0.017615392804145813,
-0.02165578491985798,
-0.08933456987142563,
-0.015144778415560722,
-0.00900837779045105,
0.03910171240568161,
-0.031770139932632446,
0.011746568605303764,
0.03296531364321709,
-0.04245532676577568,
0.022280126810073853,
0.03478482738137245,
-0.02627592347562313,
0.0007954799220897257,
-0.04013633728027344,
0.004651355557143688,
0.03326856344938278,
0.0993240550160408,
-0.030931737273931503,
0.011309527792036533,
-0.02021087519824505,
0.01985410787165165,
0.0389946810901165,
0.025134267285466194,
0.00011420739610912278,
0.01600101962685585,
0.0692128837108612,
-0.031217152252793312,
0.05433568358421326,
-0.09611315280199051,
-0.011648457497358322,
-0.040921226143836975,
-0.006542223040014505,
0.04959067702293396,
-0.015590737573802471,
0.0007068454870022833,
-0.03464211896061897,
0.01133628562092781,
0.0279705673456192,
0.03257286921143532,
0.015804797410964966,
-0.058367155492305756,
0.030717678368091583,
-0.054835155606269836,
-0.016696717590093613,
0.023011500015854836,
0.02540184184908867,
0.03956551104784012,
0.012192527763545513,
-0.022387158125638962,
0.018801644444465637,
0.023189883679151535,
0.03369668498635292,
-0.05315835028886795,
-0.05975854769349098,
0.05051827058196068,
0.018320009112358093,
0.05597681179642677,
-0.006412894930690527,
0.06539547443389893,
0.00962380226701498,
-0.021530915051698685,
0.014663142152130604,
0.031110120937228203,
0.026614852249622345,
-0.02090657316148281,
-0.020549805834889412,
-0.025526711717247963,
-0.025776447728276253,
-0.014493677765130997,
0.0459873229265213,
-0.009204600006341934,
0.011844679713249207,
-0.011113306507468224,
0.002312299096956849,
-0.019764916971325874,
-0.03535565361380577,
-0.013236072845757008,
0.06043640524148941,
0.022619055584073067,
-0.015778040513396263,
0.008972701616585255,
-0.06682254374027252,
0.022476349025964737,
-0.07195999473333359,
-0.024117479100823402,
-0.01437772810459137,
-0.040314722806215286,
-0.015394515357911587,
-0.03168094903230667,
-0.05083936080336571,
0.05055394768714905,
-0.026757558807730675,
0.041028257459402084,
0.018284332007169724,
-0.028309497982263565,
0.048199281096458435,
-0.06928423792123795,
-0.0562979020178318,
-0.01432421337813139,
0.002791705308482051,
0.006078425329178572,
-0.036961108446121216,
-0.012709840200841427,
-0.022351481020450592,
0.0052221836522221565,
-0.008317140862345695,
0.052052371203899384,
-0.023760711774230003,
0.004261141177266836,
0.010506801307201385,
0.08326952159404755,
-0.054407037794589996,
-0.010943841189146042,
-0.03244800120592117,
-0.0041942475363612175,
0.0015675469767302275,
-0.02306501567363739,
-0.01271875947713852,
0.02882681041955948,
0.0011087663006037474,
0.015742363408207893,
-0.05383620783686638,
0.048413343727588654,
0.044346194714307785,
0.03469563275575638,
-0.004443984478712082,
0.00859809573739767,
0.05287293717265129,
-0.05651196464896202,
0.019479501992464066,
-0.03549836203455925,
-0.034249674528837204,
0.02793489210307598,
0.021602269262075424,
0.031127959489822388,
-0.01151466928422451,
-0.005097314715385437,
-0.11430829018354416,
0.044524576514959335,
-0.013307426124811172,
-0.0002341286453884095,
0.03207339346408844,
0.05387188494205475,
0.007920237258076668,
-0.054728128015995026,
0.007407383993268013,
0.009329468943178654,
-0.03480266407132149,
-0.013227153569459915,
-0.005708279088139534,
0.028452204540371895,
-0.0043414137326180935,
0.041242316365242004,
-0.048270635306835175,
0.006555601954460144,
-0.0014326443197205663,
-0.041028257459402084,
0.002999076386913657,
-0.051445867866277695,
-0.0423126183450222,
-0.01248686108738184,
0.026258084923028946,
-0.020389258861541748,
-0.015662090852856636,
0.04295480251312256,
-0.0057171983644366264,
-0.03913738951086998,
-0.04281209409236908,
0.051909662783145905,
-0.013690951280295849,
0.0162061620503664,
-0.0021105024497956038,
0.009543529711663723,
-0.009784347377717495,
0.04010066017508507,
-0.0270251352339983,
0.030824707821011543,
0.03838817775249481,
-0.021138470619916916,
-0.005574491340667009,
0.024206671863794327,
-0.09004810452461243,
-0.020496290177106857,
0.006412894930690527,
0.06899882853031158,
-0.017615392804145813,
0.024456407874822617,
0.041063934564590454,
0.023332592099905014,
0.025027235969901085,
0.06275539100170135,
0.058260124176740646,
-0.044132132083177567,
-0.03266206011176109,
0.01840920001268387,
-0.055548690259456635,
0.03266206011176109,
-0.008959322236478329,
0.07470710575580597,
0.015662090852856636,
-0.005271239206194878,
0.015563979744911194,
0.0713534876704216,
-0.08269869536161423,
-0.000807743810582906,
0.05690440908074379,
0.019586533308029175,
-0.0720670223236084,
0.012763355858623981,
-0.05669034644961357,
-0.04687924310564995,
0.04013633728027344,
0.022904470562934875,
0.03856655955314636,
0.0038887651171535254,
-0.06325487047433853,
-0.04951932281255722,
0.0901908129453659,
-0.0021060428116470575,
0.06971236318349838,
-0.014770172536373138,
0.023885581642389297,
0.02864842675626278,
0.019122734665870667,
-0.05301564186811447,
-0.02475966140627861,
-0.024706145748496056,
-0.03246583789587021,
0.013521485961973667,
0.07356544584035873,
0.0002006816939683631,
0.05672602355480194,
-0.02083521895110607,
0.07520657777786255,
0.029272768646478653,
-0.0110241137444973,
0.013137961737811565,
0.03992227837443352,
0.051517218351364136,
0.012353072874248028,
0.08326952159404755,
0.015412353910505772,
0.05661899596452713,
-0.02302933856844902,
0.08005861937999725,
0.03210907056927681,
0.0330723412334919,
-0.023261237889528275,
0.003866467159241438,
0.03310801833868027,
0.03910171240568161,
-0.03012901172041893,
0.040635813027620316,
0.015492626465857029,
0.019515179097652435,
-0.0030548213981091976,
-0.04866307973861694,
-0.008553499355912209,
-0.020621158182621002,
-0.07492116093635559,
-0.03358965367078781,
0.04145637899637222,
-0.015465868636965752,
-0.05726117640733719,
0.020050330087542534,
0.044595930725336075,
0.0603293776512146,
0.013307426124811172,
0.07499251514673233,
-0.00402701273560524,
0.07477845996618271,
-0.006774121895432472,
-0.011559265665709972,
0.015305323526263237,
-0.0005265107029117644,
0.036229733377695084,
0.009516771882772446,
0.008874590508639812,
0.02190552093088627,
0.04523811116814613,
0.01769566535949707,
-0.05430000647902489,
-0.007594686932861805,
-0.017615392804145813,
-0.034142643213272095,
0.03027171827852726,
-0.003919982351362705,
0.014645303599536419,
0.015216131694614887,
0.01642914116382599,
0.00877647940069437,
-0.001096502412110567,
-0.06350460648536682,
-0.008254706859588623,
0.011140063405036926,
-0.11288122087717056,
0.012174689210951328,
0.04752142354846001,
0.019372472539544106,
-0.04192017391324043,
-0.07677635550498962,
-0.035979997366666794,
0.031074445694684982,
-0.006907909642904997,
-0.0016879560425877571,
0.031877171248197556,
0.029094384983181953,
-0.0496620275080204,
0.00658681895583868,
-0.007398465182632208,
-0.009110949002206326,
0.041028257459402084,
0.055298954248428345,
-0.0218698438256979,
-0.024117479100823402,
-0.03977956995368004,
0.026222407817840576,
0.03599783405661583,
0.06728634238243103,
-0.08783614635467529,
-0.0003074331907555461,
0.011675214394927025,
-0.03913738951086998,
0.06560953706502914,
-0.030289556831121445,
-0.01308444608002901,
-0.021976875141263008,
-0.04306183010339737,
0.041563406586647034,
-0.04174179211258888,
0.017775937914848328,
0.02525913529098034,
0.023939095437526703,
-0.019907623529434204,
0.03023604117333889,
0.012388749979436398,
0.01187143661081791,
0.01804351434111595,
-0.023760711774230003,
0.022066066041588783,
-0.0540502704679966,
-0.019372472539544106,
0.03633676469326019,
0.04013633728027344,
-0.03517727181315422,
0.06593062728643417,
0.048020899295806885,
0.022422833368182182,
-0.04252668097615242,
0.0018774886848405004,
-0.004020323045551777,
0.013717708177864552,
0.03564106673002243,
-0.015813717618584633,
0.014217182993888855,
0.04973338171839714,
-0.05244481563568115,
-0.0382811464369297,
-0.05661899596452713,
0.04167043790221214,
-0.015555060468614101,
-0.03614054247736931,
-0.0059535568580031395,
-0.008013889193534851,
-0.03257286921143532,
-0.029468990862369537,
-0.026614852249622345,
0.05619087442755699,
-0.02083521895110607,
-0.024599116295576096,
-0.0005474150530062616,
-0.04010066017508507,
0.013726627454161644,
-0.018355686217546463,
-0.03250151500105858,
-0.0341961607336998,
0.0020971237681806087,
-0.05358647182583809,
-0.08612366020679474,
0.011800083331763744,
-0.02609753981232643,
0.009168923832476139,
0.06689389795064926,
0.0104889627546072,
-0.005574491340667009,
0.003995795268565416,
-0.024634791538119316,
0.011131144128739834,
0.020264390856027603,
0.007732934318482876,
-0.01758863590657711,
-0.027988405898213387,
0.0007051731809042394,
-0.037246521562337875,
-0.024188833311200142,
0.015037748031318188,
-0.015983181074261665,
-0.03430319204926491,
-0.011309527792036533,
0.017044564709067345,
0.004403848201036453,
0.030343072488904,
0.058474186807870865,
0.0031016471330076456,
-0.02310069277882576,
0.048020899295806885,
-0.010515720583498478,
-0.01762431114912033,
-0.04637976735830307,
-0.01405663788318634,
0.016723474487662315,
-0.07406492531299591,
-0.037531934678554535,
0.04523811116814613,
0.02889816276729107,
0.02458127774298191,
0.0035342276096343994,
-0.04256235808134079,
0.017570797353982925,
0.043704014271497726,
-0.022476349025964737,
0.005730577278882265,
-0.020888734608888626,
-0.001449367729946971,
-0.00805402547121048,
-0.02094224840402603,
0.028059760108590126,
-0.029433313757181168,
-0.0009788806783035398,
-0.04848469793796539,
-0.03647947311401367,
-0.031627435237169266,
-0.0018641098868101835,
0.033357758074998856,
-0.04181314632296562,
-0.035302139818668365,
-0.017865130677819252,
-0.0017726882360875607,
0.07363680005073547,
0.05958016589283943,
0.054977864027023315,
0.0061676171608269215,
0.004718249663710594,
0.024295862764120102,
-0.025633741170167923,
-0.01716943271458149,
0.03444589674472809,
-0.01567992940545082,
-0.08077215403318405,
0.029040871188044548,
0.012799032032489777,
0.06782149523496628,
0.01518937386572361,
0.059045013040304184,
-0.06443220376968384,
-0.0500187948346138,
-0.0346064418554306,
0.04313318431377411,
-0.0023814227897673845,
-0.03967253863811493,
0.024188833311200142,
0.0320020392537117,
-0.058367155492305756,
0.009873539209365845,
-0.005226643290370703,
0.0106673464179039,
-0.026579175144433975,
-0.04202720522880554,
0.004883254412561655,
-0.01486828364431858,
-0.008236868306994438,
-0.015911828726530075,
-0.08904915302991867,
-0.03503456339240074,
0.03483834117650986,
0.01513585913926363,
-0.005101774353533983,
-0.006885611917823553,
-0.040849871933460236,
-0.009748670272529125,
-0.06582359224557877,
0.019943300634622574,
0.08626636862754822,
-0.07370815426111221,
0.03444589674472809,
0.03341127187013626,
0.04955499991774559,
0.021067118272185326,
-0.008361737243831158,
0.0285057183355093,
0.018462715670466423,
-0.008268085308372974,
0.062434304505586624,
0.06015099212527275,
0.004664734471589327,
-0.004847577773034573,
0.02374287322163582,
0.015465868636965752,
-0.012031982652842999,
0.027435416355729103,
0.0173032209277153,
0.019301118329167366,
-0.04241964966058731,
0.01356608234345913,
-0.00250852108001709,
-0.02461695484817028,
0.018658937886357307,
-0.009989488869905472,
-0.08162838965654373,
-0.00708183366805315,
0.04909120127558708,
-0.051873985677957535,
-0.005850986111909151,
0.05397891625761986,
0.021209824830293655,
-0.048306312412023544,
0.006194374989718199,
-0.006577899679541588,
-0.0013278438709676266,
0.07121078670024872,
-0.03539133071899414,
0.002573185134679079,
-0.04666518419981003,
0.015118020586669445,
0.004040391184389591,
-0.0211563091725111,
-0.006020450498908758,
-0.005619087256491184,
0.058295801281929016,
-0.036711372435092926,
-0.00250852108001709,
-0.015064505860209465,
0.03956551104784012,
-0.0220482274889946,
-0.012879304587841034,
0.02609753981232643,
0.009873539209365845,
0.04274073988199234,
0.0305214561522007,
-0.01720510981976986,
0.0019399230368435383,
0.059259071946144104,
-0.06097155809402466,
0.05016150325536728,
-0.006194374989718199,
-0.04655815288424492,
0.01405663788318634,
-0.02609753981232643,
0.04937661439180374,
-0.05116045102477074,
-0.032305292785167694,
0.026472145691514015,
-0.016125889495015144,
0.05326538160443306,
0.018872998654842377,
-0.05208804830908775,
-0.0709967240691185,
-0.03132418170571327,
0.009177843108773232,
0.03642595559358597,
0.008410792797803879,
0.027827860787510872,
-0.010908165015280247,
-0.03275125101208687,
0.019051382318139076,
0.003556525567546487,
-0.03091389872133732,
0.00606504688039422,
-0.06878476589918137,
0.0002548936172388494,
-0.011568184942007065,
-0.0010095403995364904,
0.04613003134727478,
0.018212977796792984,
0.04944796860218048,
0.0209779255092144,
-0.018748128786683083,
-0.01906922087073326,
-0.0180167555809021,
0.005668142810463905,
0.026222407817840576,
0.0629337802529335,
-0.03221610188484192,
0.054942186921834946,
-0.009151085279881954,
-0.013423374854028225,
-0.0014170357026159763,
0.010355175472795963,
-0.034535087645053864,
0.01486828364431858,
0.024670468643307686,
-0.011880355887115002,
0.014993151649832726,
0.08362629264593124,
0.00656006159260869,
-0.09318765997886658,
0.005057178437709808,
-0.001566432067193091,
-0.02436721697449684,
-0.02306501567363739,
0.008223489858210087,
0.019586533308029175,
-0.00045989552745595574,
0.028273820877075195,
0.017526201903820038,
-0.006015991326421499,
-0.030467940494418144,
0.04216991364955902,
-0.031520403921604156,
-0.0034963209182024,
-0.035801611840724945,
-0.030467940494418144,
-0.03321504965424538,
0.0019009015522897243,
-0.05315835028886795,
-0.025062913075089455,
0.024295862764120102,
0.04691492021083832,
-0.015510465018451214,
-0.022940147668123245,
0.028024083003401756,
-0.044167809188365936,
-0.000698483781889081,
-0.0246526300907135,
-0.04170611500740051,
0.02893383987247944,
-0.0057171983644366264,
0.06871341168880463,
-0.012370911426842213,
0.008129837922751904,
0.004238843452185392,
0.08854968100786209,
-0.0215130764991045,
0.001301086274906993,
-0.010506801307201385,
0.029379799962043762,
0.01744592748582363,
0.0042812093161046505,
0.0831981673836708,
0.003262192476540804,
-0.045202434062957764,
-0.01133628562092781,
-0.004299047868698835,
0.0034851720556616783,
-0.058402832597494125,
0.01660752482712269,
0.02533048950135708,
0.06653712689876556,
-0.00043926993384957314,
-0.020549805834889412,
0.011586022563278675,
-0.0628267452120781,
-0.011933871544897556,
-0.007171025965362787,
-0.01652725227177143,
0.043704014271497726,
-0.03225177899003029,
0.015064505860209465,
-0.002481763483956456,
-0.05276590585708618,
-0.02108495682477951,
-0.051695603877305984,
-0.04637976735830307,
0.07117510586977005,
-0.04363266006112099,
-0.03867359086871147,
-0.013833657838404179,
0.024295862764120102,
0.008401873521506786,
-0.011942790821194649,
-0.03977956995368004,
-0.0648246482014656,
0.019301118329167366,
-0.011363043449819088,
-0.023510975763201714,
0.048556048423051834,
0.03631892800331116,
0.012246042490005493,
-0.011077629402279854,
0.008062944747507572,
-0.009900297038257122,
-0.021495237946510315,
0.05765362083911896,
-0.04534514248371124,
0.017713503912091255,
0.00007086572441039607,
-0.0305214561522007,
0.023439621552824974,
-0.07195999473333359,
0.016857262700796127,
0.013592840172350407,
0.0026244705077260733,
0.005614627618342638,
-0.004615678917616606,
-0.02440289407968521,
0.018248654901981354,
-0.041563406586647034,
-0.04356130585074425,
0.01914057321846485,
0.02436721697449684,
-0.04987609013915062,
-0.011594941839575768,
-0.016090212389826775,
-0.01178224477916956,
0.004542095586657524,
-0.044702962040901184,
0.018070271238684654,
-0.028095437213778496,
-0.031020930036902428,
0.028701940551400185,
0.03685407713055611,
0.05033988878130913,
0.04216991364955902,
0.023403944447636604,
-0.008303762413561344,
-0.0034851720556616783,
0.047806836664676666,
-0.05091071501374245,
0.02616889216005802,
-0.027346225455403328,
-0.031306345015764236,
0.03810276463627815,
0.07056859880685806,
0.03813844174146652,
-0.005984773859381676,
-0.000799939502030611,
0.00000436813661508495,
-0.02327907644212246,
0.09868187457323074,
0.03351830318570137,
-0.06186347454786301,
-0.03225177899003029,
-0.06603765487670898,
0.01320931501686573,
-0.04516676068305969,
0.008749721571803093,
0.020514128729701042,
-0.005061638075858355,
-0.0285057183355093,
-0.05322970449924469,
0.027221355587244034,
-0.03849520906805992,
0.015385596081614494,
-0.03449941426515579,
-0.010604912415146828,
-0.012228203937411308,
-0.0067518241703510284,
0.016946453601121902,
-0.008312681689858437,
0.07520657777786255,
0.06778581440448761,
-0.013940688222646713,
0.048556048423051834,
0.08412576466798782,
-0.04884146526455879,
0.037674643099308014,
-0.0034606442786753178,
-0.008584716357290745,
-0.02998630329966545,
-0.051517218351364136,
-0.005213264375925064,
-0.01039977092295885,
0.030039818957448006,
-0.016973212361335754,
-0.03560539335012436,
-0.025722933933138847,
-0.025651579722762108
] |
9,996
|
torch.nn.modules.module
|
__getstate__
| null |
def __getstate__(self):
state = self.__dict__.copy()
state.pop("_compiled_call_impl", None)
return state
|
(self)
|
[
0.01226504985243082,
-0.06813530623912811,
0.026927517727017403,
0.0092248460277915,
-0.027691911906003952,
-0.0205517765134573,
0.010102162137627602,
-0.015374744310975075,
0.0338418111205101,
-0.08102577179670334,
-0.013706975616514683,
0.044161129742860794,
-0.043014537543058395,
0.032243531197309494,
-0.0730343759059906,
0.003109693992882967,
-0.020013226196169853,
-0.0069099487736821175,
-0.04304928332567215,
-0.051075421273708344,
0.003919691313058138,
0.014193408191204071,
0.04256284981966019,
0.024356374517083168,
0.006036975886672735,
-0.004651511553674936,
0.008395304903388023,
-0.03180921450257301,
0.08060882985591888,
-0.012534325011074543,
-0.03239988535642624,
0.009103238582611084,
-0.04607211425900459,
-0.026771165430545807,
0.010380123741924763,
-0.005706896539777517,
-0.001486442401073873,
0.024443237110972404,
0.0092248460277915,
-0.06212439015507698,
-0.012612502090632915,
-0.07324285060167313,
0.00023100119142327458,
0.00579810282215476,
0.000004830903890251648,
-0.031791843473911285,
0.0022779812570661306,
-0.0009223760571330786,
0.0565304160118103,
-0.0653904378414154,
0.061082035303115845,
0.003821970196440816,
0.017164120450615883,
0.04860851168632507,
-0.0056895241141319275,
-0.010944733396172523,
0.04836529493331909,
0.005971828475594521,
0.01343770045787096,
0.04975510388612747,
-0.04343147948384285,
0.025502964854240417,
-0.007978362962603569,
-0.03700362145900726,
0.014332388527691364,
-0.03349435701966286,
-0.035283733159303665,
-0.007583136670291424,
-0.0251728855073452,
0.04235437884926796,
-0.019318321719765663,
-0.013081561774015427,
0.03139227256178856,
-0.00519874831661582,
-0.009025061503052711,
-0.052534718066453934,
-0.01530525367707014,
-0.012942581437528133,
0.013767778873443604,
-0.03561381250619888,
-0.045550934970378876,
0.03469306603074074,
-0.059171050786972046,
0.0263194777071476,
0.006371397990733385,
-0.029707131907343864,
0.06056085601449013,
-0.022358525544404984,
-0.07338182628154755,
0.019127223640680313,
0.01672980561852455,
0.05976171791553497,
-0.05003306642174721,
0.04127727821469307,
0.017772162333130836,
-0.02251487970352173,
-0.008755786344408989,
0.02098609134554863,
0.0027535557746887207,
-0.03627397119998932,
0.007435469422489405,
0.0015201017959043384,
-0.0822071060538292,
-0.008655893616378307,
0.023175038397312164,
0.02972450479865074,
0.051770325750112534,
-0.04280606657266617,
0.020499659702181816,
-0.05267370119690895,
-0.00827804021537304,
0.006440888624638319,
-0.028682149946689606,
0.009624416008591652,
0.04457807168364525,
-0.017607122659683228,
-0.0838053822517395,
-0.019770009443163872,
-0.022045819088816643,
0.043778933584690094,
-0.03538797050714493,
0.02783089317381382,
-0.029967721551656723,
0.02960289642214775,
0.005884965416043997,
0.05666939541697502,
0.010466987267136574,
-0.018484437838196754,
0.0768563449382782,
-0.06386164575815201,
0.023852569982409477,
0.012933894991874695,
0.006857830565422773,
0.025919906795024872,
-0.03669091314077377,
0.03149650990962982,
0.05496688187122345,
0.008273697458207607,
-0.07706481963396072,
0.053229622542858124,
0.0349883995950222,
0.0092248460277915,
-0.006740565877407789,
0.024703826755285263,
0.04711446911096573,
0.03139227256178856,
0.037107858806848526,
0.07164456695318222,
-0.019700519740581512,
-0.00012798715033568442,
0.07949697971343994,
-0.05514060705900192,
0.003793739713728428,
0.03118380345404148,
-0.045550934970378876,
0.006497349590063095,
-0.020239070057868958,
0.0012225961545482278,
-0.05687786638736725,
-0.05197879672050476,
-0.028630031272768974,
-0.015583215281367302,
-0.03453671187162399,
-0.09693906456232071,
0.013967564329504967,
0.007405067328363657,
0.02915121056139469,
-0.07421571761369705,
-0.04204167425632477,
-0.024356374517083168,
-0.08950359374284744,
0.016860101372003555,
-0.028769012540578842,
0.07178355008363724,
-0.0070054978132247925,
0.05990069732069969,
-0.040234923362731934,
0.040408648550510406,
-0.004358348902314901,
-0.022653860971331596,
0.01084049791097641,
-0.008812247775495052,
-0.0961051806807518,
0.058232929557561874,
0.0205517765134573,
0.034397732466459274,
0.036934129893779755,
-0.030124075710773468,
0.06316674500703812,
0.036795150488615036,
-0.02117718942463398,
-0.00045331608271226287,
0.04089508205652237,
0.006888232659548521,
-0.007904529571533203,
-0.01084049791097641,
-0.06976833194494247,
0.023730961605906487,
0.0013539764331653714,
0.024634335190057755,
-0.009615729562938213,
-0.020638639107346535,
0.018936125561594963,
0.01926620490849018,
-0.06744040548801422,
0.025902535766363144,
0.009911064058542252,
-0.0008735156734474003,
-0.0006422430160455406,
0.042945049703121185,
-0.01641709916293621,
-0.045863643288612366,
-0.01584380492568016,
0.07136660814285278,
-0.004560305271297693,
-0.0653209462761879,
0.0761614441871643,
0.018223850056529045,
-0.0018903551390394568,
0.04152049496769905,
0.0722699835896492,
-0.02770928479731083,
0.017676612362265587,
-0.06278454512357712,
-0.04006119817495346,
-0.02484280616044998,
-0.014749330468475819,
-0.025277120992541313,
-0.04419587552547455,
-0.08345793187618256,
0.02320978231728077,
-0.05948375537991524,
0.02644108608365059,
-0.03271258994936943,
0.020430168136954308,
0.025450848042964935,
0.009198787622153759,
-0.024200020357966423,
-0.004794835578650236,
0.012760168872773647,
0.010197711177170277,
-0.005828504916280508,
0.08450029045343399,
0.019318321719765663,
-0.017546318471431732,
0.010493045672774315,
0.033754948526620865,
0.064243845641613,
-0.037629034370183945,
0.0016927419928833842,
0.0584414005279541,
-0.01765923947095871,
-0.03665617108345032,
-0.01775478944182396,
0.006953380070626736,
-0.040339160710573196,
0.018658164888620377,
0.02053440362215042,
0.043466225266456604,
0.022080564871430397,
0.0336507111787796,
-0.034015536308288574,
0.00611949572339654,
-0.01780690625309944,
0.036864642053842545,
0.013976250775158405,
0.0174941997975111,
0.009754710830748081,
-0.03929680213332176,
0.06361842900514603,
0.09742549806833267,
-0.0395747646689415,
-0.02790038287639618,
0.036412954330444336,
-0.04252810403704643,
-0.05079745873808861,
-0.010953419841825962,
-0.009120610542595387,
-0.012638560496270657,
-0.01758974976837635,
0.08811378479003906,
0.024113157764077187,
-0.0018078354187309742,
0.004002211149781942,
-0.03524899110198021,
-0.02598939836025238,
0.004977247677743435,
-0.0006699305959045887,
0.036100246012210846,
-0.008403991349041462,
0.050484754145145416,
0.03335537761449814,
0.007822009734809399,
-0.02199370227754116,
0.09825938194990158,
-0.009242218919098377,
-0.1060423031449318,
0.010771007277071476,
0.027848266065120697,
0.038254447281360626,
-0.000940834463108331,
-0.02567669190466404,
-0.08019188791513443,
0.04398740455508232,
0.01007610373198986,
0.034832049161195755,
0.011735185980796814,
0.04204167425632477,
-0.02098609134554863,
-0.001055384986102581,
0.008026137948036194,
-0.0004929472925141454,
0.02491229772567749,
-0.014167348854243755,
0.012603815644979477,
-0.09103238582611084,
-0.004145534709095955,
-0.024999160319566727,
0.010215084068477154,
0.08721040934324265,
-0.06573788821697235,
-0.009885004721581936,
0.0140370549634099,
0.0453772097826004,
0.019248832017183304,
-0.0033789691515266895,
-0.014367133378982544,
0.001207395107485354,
0.008026137948036194,
-0.018345456570386887,
-0.07213100045919418,
-0.039018843322992325,
0.026163123548030853,
-0.00007525861292378977,
0.030714742839336395,
0.00043214322067797184,
0.03233039379119873,
0.005051081068813801,
-0.0014636409468948841,
-0.10117797553539276,
0.05878885090351105,
0.004327946808189154,
-0.056843120604753494,
-0.015357371419668198,
0.0026384624652564526,
0.002260608598589897,
0.012899150140583515,
0.0238351970911026,
0.07824615389108658,
-0.0676836222410202,
-0.0645565539598465,
-0.03867138922214508,
-0.016338922083377838,
0.06775310635566711,
0.03029780089855194,
-0.026979636400938034,
-0.013819897547364235,
0.0013702631695196033,
0.0027188106905668974,
-0.005732955411076546,
0.08776633441448212,
0.01410654466599226,
-0.051561854779720306,
0.010692830197513103,
0.04179845750331879,
-0.025572456419467926,
-0.05621770769357681,
-0.016660315915942192,
-0.0028903649654239416,
-0.07671736925840378,
-0.028126226738095284,
-0.06813530623912811,
-0.020656011998653412,
0.006314937490969896,
-0.001968531869351864,
0.012534325011074543,
-0.016069646924734116,
0.012499580159783363,
-0.032174039632081985,
0.03443247824907303,
0.060248151421546936,
-0.01715543493628502,
-0.01933569461107254,
0.013958877883851528,
0.039088331162929535,
0.03599601238965988,
0.012100010178983212,
0.013359523378312588,
0.058476146310567856,
0.019248832017183304,
-0.06268031150102615,
-0.031149057671427727,
-0.0769258365035057,
0.03246937319636345,
0.03922731429338455,
0.012030520476400852,
0.051005929708480835,
-0.01242140308022499,
-0.03279945254325867,
-0.006949036847800016,
0.031149057671427727,
0.04944239929318428,
0.05826767534017563,
-0.01435844786465168,
-0.02644108608365059,
-0.03835868462920189,
0.02795250155031681,
0.036864642053842545,
-0.014306330122053623,
-0.05527959018945694,
-0.013255287893116474,
-0.014471368864178658,
-0.06504298746585846,
-0.0807478055357933,
-0.02213268168270588,
-0.012725424021482468,
0.069212406873703,
0.02029118686914444,
0.05249997228384018,
0.02022169716656208,
0.0072617437690496445,
0.03742056339979172,
-0.008551658131182194,
0.003072777297347784,
-0.02960289642214775,
0.05152710899710655,
-0.02637159451842308,
0.002406104002147913,
0.0025689720641821623,
0.040547631680965424,
0.01543554849922657,
-0.012577756308019161,
0.006149897817522287,
0.015852490440011024,
-0.009928436018526554,
-0.05475841090083122,
-0.007561420556157827,
-0.020499659702181816,
-0.026736419647932053,
0.12251152098178864,
-0.02175048552453518,
0.07282590866088867,
0.017720043659210205,
0.014940429478883743,
0.012013147585093975,
-0.009207474067807198,
-0.0162520594894886,
0.03347698599100113,
0.0019576740451157093,
-0.03158337250351906,
0.028369443491101265,
0.01938781328499317,
0.04412638396024704,
-0.025711435824632645,
-0.029272817075252533,
0.0018534384435042739,
-0.06250658631324768,
-0.010215084068477154,
-0.02218480035662651,
0.016243373975157738,
-0.0042106821201741695,
0.010632026009261608,
-0.02598939836025238,
0.03165286406874657,
-0.010762320831418037,
-0.0284563060849905,
-0.027083871886134148,
0.0026471486780792475,
-0.04735768586397171,
0.013845955953001976,
0.029255446046590805,
0.007274772971868515,
-0.020430168136954308,
-0.038011230528354645,
-0.036551933735609055,
0.002449535531923175,
-0.03172235190868378,
-0.025398729369044304,
-0.029429171234369278,
-0.08241558074951172,
-0.005276924930512905,
-0.0006433288217522204,
-0.006067377980798483,
0.0058198184706270695,
-0.008265011012554169,
0.01799800619482994,
0.07213100045919418,
0.03137490153312683,
0.025589827448129654,
-0.007166194263845682,
-0.0730343759059906,
0.02630210481584072,
-0.015088096261024475,
-0.021906839683651924,
-0.014610350131988525,
0.006063034757971764,
-0.014488741755485535,
-0.002154201501980424,
0.04322300851345062,
-0.019318321719765663,
0.0022432359401136637,
-0.029880858957767487,
0.021924210712313652,
0.025468220934271812,
0.022983940318226814,
-0.049928829073905945,
-0.005263895262032747,
0.004972904454916716,
0.003941406961530447,
-0.0038480290677398443,
0.011101086623966694,
0.014532173052430153,
-0.0036287002731114626,
-0.019439930096268654,
-0.00581547524780035,
-0.022462761029601097,
0.004568991716951132,
-0.010918674059212208,
-0.07094966620206833,
0.010293261148035526,
0.033946044743061066,
0.05750327929854393,
0.02630210481584072,
-0.019804755225777626,
-0.018154358491301537,
-0.005441964603960514,
-0.002211748156696558,
-0.011691754683852196,
0.006141211371868849,
-0.01876240037381649,
0.021003464236855507,
-0.061776939779520035,
-0.016113080084323883,
0.05045000836253166,
0.012100010178983212,
-0.024877551943063736,
-0.0008295412990264595,
-0.006002230569720268,
-0.08331894874572754,
-0.02270597778260708,
0.032556239515542984,
-0.008781845681369305,
-0.013124993070960045,
0.018606046214699745,
-0.020430168136954308,
-0.022914448752999306,
-0.014775389805436134,
0.030349917709827423,
-0.0580592043697834,
-0.04134676977992058,
-0.013898073695600033,
-0.06403537839651108,
0.02359198033809662,
-0.044856034219264984,
0.03491891175508499,
-0.013142365962266922,
0.07185304164886475,
0.053090643137693405,
-0.007630911190062761,
0.0064322021789848804,
-0.0013811211101710796,
0.0514923632144928,
-0.008894767612218857,
-0.027726657688617706,
-0.005828504916280508,
0.040721356868743896,
0.020847110077738762,
0.05329911410808563,
-0.021542014554142952,
-0.023244528099894524,
0.0263194777071476,
0.004621109459549189,
0.02053440362215042,
0.0014592977240681648,
0.07056746631860733,
0.017772162333130836,
0.0010564707918092608,
0.05197879672050476,
0.049233924597501755,
-0.03252149373292923,
0.09290862083435059,
-0.04395265877246857,
-0.023279273882508278,
-0.02060389518737793,
-0.0280741099268198,
0.01267330627888441,
-0.07866309583187103,
0.04183320328593254,
0.069594606757164,
-0.011700441129505634,
-0.01718149334192276,
0.022740723565220833,
0.002447363920509815,
0.0010304119205102324,
0.008238951675593853,
0.017216239124536514,
0.0019185856217518449,
0.021594131365418434,
-0.03163548931479454,
0.01914459653198719,
-0.031791843473911285,
0.0226886048913002,
0.057538025081157684,
-0.0066884481348097324,
-0.004186794627457857,
-0.018675535917282104,
-0.022080564871430397,
0.07727328687906265,
-0.011248753406107426,
0.02187209390103817,
0.005954456049948931,
-0.03853240981698036,
0.010328005999326706,
-0.043327245861291885,
-0.008295413106679916,
-0.039088331162929535,
0.018970871344208717,
0.03354647383093834,
-0.02433900162577629,
0.023001311346888542,
-0.022862331941723824,
0.021385660395026207,
-0.05503637343645096,
0.01518364530056715,
0.00037812531809322536,
-0.0061021228320896626,
0.04475179687142372,
0.023487744852900505,
0.00459505058825016,
0.019179342314600945,
-0.005754671059548855,
0.025155512616038322,
0.025138141587376595,
-0.06010916829109192,
0.025155512616038322,
0.009650475345551968,
0.04360520467162132,
0.05117965489625931,
-0.020447541028261185,
0.04266708716750145,
0.013611425645649433,
-0.014975174330174923,
0.005454993806779385,
-0.040339160710573196,
-0.056773632764816284,
-0.02663218416273594,
-0.00675359508022666,
-0.05527959018945694,
0.07636991888284683,
-0.016886159777641296,
-0.013889387249946594,
-0.0092248460277915,
0.012369285337626934,
-0.007400724105536938,
-0.02053440362215042,
-0.015548470430076122,
0.0005141201545484364,
0.03175709769129753,
0.03239988535642624,
-0.04249336197972298,
-0.08748837560415268,
0.01116189081221819,
-0.04103406146168709,
-0.02105558104813099,
0.03048889897763729,
0.05090169608592987,
-0.05635669082403183,
0.08185965567827225,
0.04179845750331879,
-0.013863328844308853,
0.013116307556629181,
-0.00963310245424509,
-0.02256699651479721,
-0.013463758863508701,
-0.0584414005279541,
-0.02694489061832428,
0.0280741099268198,
0.005945769604295492,
0.01756369136273861,
0.005802445579320192,
-0.021316170692443848,
0.0472881942987442,
-0.024755943566560745,
0.020308559760451317,
-0.006349682342261076,
0.011422479525208473,
0.0012616844614967704,
-0.001515758689492941,
0.07310386747121811,
-0.06587687134742737,
-0.05441096052527428,
-0.008047853596508503,
0.017025141045451164,
0.026197869330644608,
-0.031861335039138794,
0.007509302813559771,
-0.04603736847639084,
-0.10117797553539276,
0.016208628192543983,
0.0013083734083920717,
0.017381278797984123,
0.01347244530916214,
0.026719046756625175,
-0.02991560474038124,
0.04780937358736992,
0.032174039632081985,
0.006297564599663019,
-0.001637366833165288,
-0.023175038397312164,
-0.03048889897763729,
0.04343147948384285,
-0.017285728827118874,
-0.028195716440677643,
0.023348763585090637,
0.015583215281367302,
-0.052395738661289215,
-0.05270844325423241,
0.0069142915308475494,
-0.029811367392539978,
0.047079723328351974,
-0.027466068044304848,
0.0190229881554842,
0.02256699651479721,
-0.0052465228363871574,
0.04489078000187874,
0.07498010993003845,
0.013515876606106758,
-0.037559542804956436,
0.023418255150318146,
0.047253452241420746,
-0.042771320790052414,
0.004660197999328375,
-0.052534718066453934,
-0.006306251045316458,
0.02053440362215042,
-0.03742056339979172,
0.024043668061494827,
0.03450196981430054,
0.016330236569046974,
0.0336507111787796,
-0.011370361782610416,
0.03988747298717499,
0.013038130477070808,
0.04152049496769905,
0.020169580355286598,
0.019353067502379417,
-0.013550622388720512,
-0.027309715747833252,
0.018449692055583,
-0.02624998614192009,
-0.010501732118427753,
0.06660652160644531,
0.04134676977992058,
-0.009815515018999577,
0.04252810403704643,
-0.03905358910560608,
-0.043709442019462585,
0.02199370227754116,
0.005624376703053713,
-0.03735107183456421,
-0.050936441868543625,
-0.010962105356156826,
-0.009963181801140308,
0.0349883995950222,
0.020117461681365967,
0.004920786712318659,
-0.013750406913459301,
-0.0006487577338702977
] |
9,997
|
torch.nn.modules.container
|
__iadd__
| null |
def __iadd__(self, other) -> Self:
if isinstance(other, Sequential):
offset = len(self)
for i, module in enumerate(other):
self.add_module(str(i + offset), module)
return self
else:
raise ValueError('add operator supports only objects '
f'of Sequential class, but {str(type(other))} is given.')
|
(self, other) -> typing_extensions.Self
|
[
-0.059735506772994995,
-0.01363490428775549,
-0.0381605289876461,
0.05281912535429001,
-0.04122300446033478,
0.01010789442807436,
-0.054849304258823395,
0.013755339197814465,
-0.01938995160162449,
-0.006245388183742762,
0.025119192898273468,
-0.034478671848773956,
0.016628561541438103,
0.057774145156145096,
0.0004744796024169773,
0.01497688889503479,
0.03305066376924515,
0.0023226651828736067,
-0.04376933351159096,
-0.026254717260599136,
-0.04865553230047226,
0.04332200437784195,
0.010486402548849583,
0.004714149981737137,
0.004692643880844116,
0.09669169038534164,
0.005415250547230244,
-0.008774512447416782,
-0.023863233625888824,
-0.031347375363111496,
0.018426476046442986,
-0.06995522975921631,
-0.06400232762098312,
-0.04731354862451553,
0.008744403719902039,
0.019854485988616943,
-0.08279010653495789,
0.040156297385692596,
-0.031295761466026306,
0.06809709966182709,
0.1023349016904831,
-0.0469694510102272,
0.0362335741519928,
-0.011269226670265198,
0.00952292699366808,
0.015019901096820831,
-0.008929356932640076,
0.002068892354145646,
0.03647444397211075,
-0.03358401730656624,
0.0193383377045393,
-0.02843974344432354,
0.06438083201646805,
-0.012292919680476189,
-0.02291696146130562,
0.08334066718816757,
0.014546765014529228,
-0.0022818034049123526,
-0.025635341182351112,
0.031244147568941116,
-0.014942478388547897,
-0.04738236963748932,
0.03544214740395546,
0.0006263668765313923,
-0.002914084354415536,
0.00520018907263875,
-0.08423531800508499,
-0.012439161539077759,
0.021557772532105446,
0.038986362516880035,
0.004460377153009176,
-0.019149083644151688,
0.013961797580122948,
0.018512500450015068,
-0.017050081863999367,
0.023020191118121147,
-0.021764231845736504,
0.04342523589730263,
0.03420339524745941,
-0.010856308974325657,
0.004868994001299143,
0.028216078877449036,
-0.06665188819169998,
0.024241741746664047,
-0.03902077302336693,
-0.03298184275627136,
-0.09469591826200485,
-0.03494320437312126,
-0.006357220467180014,
-0.08003731817007065,
-0.03332594409584999,
-0.016241449862718582,
-0.0042926291935145855,
0.021024420857429504,
0.04294349625706673,
0.021815847605466843,
-0.01942436210811138,
-0.07281124591827393,
-0.04342523589730263,
-0.026013849303126335,
-0.018822189420461655,
0.008378799073398113,
-0.001301122596487403,
-0.022830937057733536,
-0.010718668811023235,
-0.033497992902994156,
-0.03126135095953941,
-0.022985782474279404,
-0.007866952568292618,
0.04418225213885307,
-0.01942436210811138,
0.06235065311193466,
-0.04690062999725342,
-0.008069111034274101,
-0.059494636952877045,
0.0030517238192260265,
0.031140917912125587,
0.008568053133785725,
0.018168402835726738,
0.03647444397211075,
0.009901435114443302,
0.06104307994246483,
0.012533788569271564,
0.03194954991340637,
0.021712617948651314,
0.018443681299686432,
-0.007006706204265356,
-0.05192446708679199,
0.015114528127014637,
-0.1331661343574524,
0.012241304852068424,
-0.029506448656320572,
-0.015527445822954178,
0.04635007306933403,
0.02207392081618309,
0.02310621552169323,
0.01865014061331749,
0.009282058104872704,
-0.06572282314300537,
0.01443493366241455,
0.006408835295587778,
-0.015837134793400764,
0.04301231727004051,
0.05698271840810776,
-0.06775300204753876,
-0.01282627321779728,
-0.038883134722709656,
0.03860785439610481,
-0.0518900603055954,
-0.008744403719902039,
-0.011097177863121033,
0.0019570603035390377,
0.07570167630910873,
0.03822934627532959,
-0.024241741746664047,
0.032723769545555115,
0.031244147568941116,
0.010374571196734905,
0.0021753478795289993,
-0.03351519629359245,
-0.036336805671453476,
0.023846028372645378,
0.005273310001939535,
0.03206998482346535,
-0.03088284283876419,
-0.016370488330721855,
-0.0015538199804723263,
-0.045455414801836014,
-0.059047307819128036,
0.01451235543936491,
0.032723769545555115,
-0.06383027881383896,
0.07281124591827393,
0.007617481052875519,
-0.059597864747047424,
-0.04972223937511444,
-0.008464823476970196,
0.033205509185791016,
0.019303927198052406,
-0.02236640453338623,
0.031794704496860504,
0.0651034414768219,
-0.0670303925871849,
-0.03578624874353409,
0.018822189420461655,
0.017170516774058342,
-0.039915431290864944,
0.01854691095650196,
0.07054019719362259,
-0.04927491024136543,
0.06438083201646805,
0.033497992902994156,
0.003116242354735732,
-0.014262883923947811,
-0.0391584113240242,
-0.002303309505805373,
-0.05319763347506523,
0.01766945980489254,
0.04122300446033478,
0.07852328568696976,
-0.03303346037864685,
0.044423121958971024,
-0.007385214790701866,
0.04566187411546707,
-0.007079827133566141,
-0.043734923005104065,
-0.036921773105859756,
0.03411737084388733,
-0.07425646483898163,
-0.01997491903603077,
0.012077858671545982,
-0.023846028372645378,
0.03310227766633034,
0.044216662645339966,
0.019596410915255547,
0.014649994671344757,
-0.05536545440554619,
-0.048483483493328094,
0.07226069271564484,
-0.023140626028180122,
0.034977614879608154,
0.05233738571405411,
-0.026960119605064392,
-0.04163592308759689,
-0.01490806881338358,
-0.03884872421622276,
-0.011484288610517979,
-0.03263774514198303,
-0.0328097939491272,
0.032775383442640305,
0.07907384634017944,
0.004127031657844782,
-0.057533275336027145,
-0.03877990320324898,
0.04948136955499649,
0.05216533690690994,
-0.02045665681362152,
-0.00883472990244627,
-0.05653538927435875,
0.00018226468819193542,
-0.04170474037528038,
0.010976742953062057,
-0.004856090527027845,
0.004593715537339449,
-0.03994983807206154,
-0.006826054770499468,
-0.00912721361964941,
0.027424652129411697,
-0.014770429581403732,
0.0301086213439703,
0.037954069674015045,
-0.03303346037864685,
-0.036095935851335526,
-0.012206895276904106,
-0.04074126482009888,
0.0022151342127472162,
-0.008469125255942345,
-0.04383815452456474,
-0.008774512447416782,
-0.0019817925058305264,
0.020043740049004555,
0.0235019288957119,
0.018770575523376465,
-0.030418310314416885,
-0.07446292042732239,
0.043631695210933685,
-0.026323538273572922,
0.03740350902080536,
0.03509804978966713,
0.015140335075557232,
0.022245969623327255,
-0.0018226469401270151,
0.023261060938239098,
0.027252603322267532,
0.0028775238897651434,
-0.0020205036271363497,
0.0008107821922749281,
0.04645330086350441,
-0.03420339524745941,
-0.0227621179074049,
0.02671925164759159,
0.004619522951543331,
-0.06888852268457413,
-0.0900849923491478,
-0.004481883253902197,
0.005858277436345816,
0.022727707400918007,
0.005509877577424049,
-0.017944738268852234,
-0.039674561470746994,
0.03289581835269928,
0.016456512734293938,
0.028852662071585655,
0.002688269829377532,
0.00937668513506651,
0.03506363928318024,
-0.10027030855417252,
0.04242734983563423,
0.030831228941679,
0.008869139477610588,
-0.004645330365747213,
-0.02334708534181118,
-0.057636503130197525,
-0.008929356932640076,
-0.07177895307540894,
-0.038642264902591705,
0.05116745084524155,
0.07081548124551773,
-0.031295761466026306,
0.0140736298635602,
0.0006865840987302363,
0.0763898715376854,
-0.0012688633287325501,
0.03970897197723389,
0.012241304852068424,
-0.013282203115522861,
0.043494053184986115,
0.05388582870364189,
0.0017753333086147904,
0.04204884171485901,
-0.024981552734971046,
0.0059615070931613445,
-0.04263380914926529,
-0.04562746360898018,
0.05154595896601677,
0.025824595242738724,
0.037713199853897095,
-0.055571913719177246,
0.007006706204265356,
0.02671925164759159,
-0.02554931677877903,
0.004511991981416941,
0.018288837745785713,
0.035270098596811295,
-0.05784296244382858,
0.004610920324921608,
0.0040259528905153275,
-0.005187285598367453,
0.02448260970413685,
-0.018925419077277184,
-0.0034667926374822855,
0.022108331322669983,
-0.04263380914926529,
-0.014305896125733852,
0.004331340081989765,
-0.058565571904182434,
0.03891754522919655,
-0.003853903617709875,
0.005152875557541847,
0.007871254347264767,
-0.007604577578604221,
0.02584180049598217,
-0.02162659354507923,
-0.028405332937836647,
0.01723073422908783,
0.0695079043507576,
-0.022280380129814148,
0.008572354912757874,
0.0008349766139872372,
-0.06451847404241562,
0.03884872421622276,
0.0011667091166600585,
0.01904585398733616,
0.024895528331398964,
-0.07363708317279816,
0.008963766507804394,
-0.04046598821878433,
-0.028560178354382515,
0.03332594409584999,
-0.007712108548730612,
0.005458262749016285,
0.008421811275184155,
0.04115418344736099,
0.022985782474279404,
-0.027338627725839615,
0.05133949965238571,
-0.013221985660493374,
0.02613428421318531,
-0.029403218999505043,
-0.059150539338588715,
0.015019901096820831,
-0.009187431074678898,
-0.0021054528187960386,
0.0073809134773910046,
0.04311554506421089,
0.005780855193734169,
0.05939140543341637,
-0.04810497537255287,
0.029059121385216713,
0.041876792907714844,
0.030814023688435555,
-0.04163592308759689,
-0.017841508612036705,
-0.013204781338572502,
-0.0699896439909935,
-0.044216662645339966,
-0.005991615820676088,
0.020146969705820084,
-0.05701712518930435,
-0.03397972881793976,
0.03730028122663498,
-0.018615730106830597,
0.05247502774000168,
0.014469343237578869,
0.017144709825515747,
0.012146677821874619,
0.013901581056416035,
-0.026598816737532616,
-0.03465072065591812,
-0.00023576125386171043,
-0.025239627808332443,
-0.008039002306759357,
-0.04425106942653656,
-0.0040259528905153275,
0.00396573543548584,
-0.04855230450630188,
0.07707807421684265,
-0.0327925905585289,
0.014899466186761856,
0.02037063241004944,
0.046625349670648575,
0.044079020619392395,
-0.012774658389389515,
0.009488517418503761,
0.022005101665854454,
-0.003430232172831893,
-0.0027914992533624172,
0.018288837745785713,
-0.050685714930295944,
-0.029351605102419853,
-0.04886199161410332,
0.016568344086408615,
0.0032431287690997124,
0.030315080657601357,
-0.005875482223927975,
-0.040121890604496,
0.0027549387887120247,
-0.03382488712668419,
0.03860785439610481,
0.026564406231045723,
0.08106961101293564,
-0.030659180134534836,
-0.00760027626529336,
0.003324852092191577,
-0.0489652194082737,
-0.07315535098314285,
0.024551430717110634,
0.04311554506421089,
-0.04497367888689041,
0.00351840746589005,
0.050788942724466324,
-0.00853794440627098,
0.02525683306157589,
0.04418225213885307,
0.016043594107031822,
-0.03757556155323982,
0.07363708317279816,
-0.08457941561937332,
-0.0024495513644069433,
0.007815337739884853,
-0.0030108620412647724,
0.017789894714951515,
0.014469343237578869,
-0.005879783537238836,
-0.001976415980607271,
0.024413790553808212,
0.0440446138381958,
-0.035855066031217575,
-0.005780855193734169,
0.02212553471326828,
0.06045811250805855,
-0.04032834619283676,
0.01399620808660984,
-0.08609345555305481,
-0.03385929390788078,
0.035614196211099625,
0.016602754592895508,
-0.04531777650117874,
-0.016757598146796227,
-0.018736165016889572,
0.012568199075758457,
-0.015320987440645695,
0.018443681299686432,
0.029833342880010605,
-0.018323246389627457,
0.04562746360898018,
0.05598483234643936,
-0.009970255196094513,
0.03146781027317047,
0.0035700222942978144,
-0.002286104718223214,
-0.003948530647903681,
-0.01698986440896988,
0.06063016131520271,
0.020766345784068108,
-0.00035135686630383134,
-0.008408907800912857,
-0.025394471362233162,
0.010451992973685265,
-0.00020417409541551024,
-0.021661002188920975,
0.02921396493911743,
-0.01928672194480896,
-0.0281472597271204,
0.03822934627532959,
0.06475934386253357,
-0.04277144744992256,
-0.032775383442640305,
-0.04579951614141464,
0.024190125986933708,
0.012774658389389515,
0.034581903368234634,
-0.024207331240177155,
0.01571669988334179,
0.03757556155323982,
-0.014736020006239414,
-0.026357946917414665,
0.021815847605466843,
0.0073809134773910046,
-0.030074210837483406,
0.058668799698352814,
-0.03994983807206154,
-0.02809564583003521,
-0.05257825553417206,
0.0038474516477435827,
0.003017314011231065,
-0.07769744843244553,
-0.04029393941164017,
-0.0024151415564119816,
0.031347375363111496,
-0.03397972881793976,
0.004352846648544073,
0.005720638204365969,
0.057533275336027145,
-0.049653418362140656,
0.002995807910338044,
0.04284026846289635,
0.03592388704419136,
0.027958005666732788,
-0.004105525556951761,
-0.016284463927149773,
0.02021578885614872,
0.016516730189323425,
-0.015019901096820831,
-0.005441057961434126,
0.040947724133729935,
-0.03215600922703743,
0.023175036534667015,
-0.04573069512844086,
0.027665521949529648,
-0.08347830176353455,
-0.0050195371732115746,
-0.04586833342909813,
0.06961113214492798,
0.09930683672428131,
0.004041007254272699,
-0.02413851208984852,
0.006456148810684681,
-0.013419842347502708,
0.05963227525353432,
0.0514083206653595,
0.007785229478031397,
0.009445504285395145,
-0.029919367283582687,
-0.015157540328800678,
-0.010408980771899223,
0.006722825113683939,
-0.038883134722709656,
-0.002985054859891534,
0.0337560661137104,
0.0005131906946189702,
-0.05560632422566414,
-0.04387256130576134,
-0.05343850329518318,
-0.0027226796373724937,
0.055571913719177246,
-0.03936487063765526,
0.05199328809976578,
-0.029145145788788795,
-0.0021624441724270582,
-0.06789064407348633,
0.03284420445561409,
0.04566187411546707,
-0.06310766935348511,
0.04903404042124748,
-0.03613034635782242,
-0.036543264985084534,
0.0027828968595713377,
-0.003413027385249734,
0.014847851358354092,
-0.010701464489102364,
-0.012077858671545982,
-0.012052050791680813,
-0.005101260729134083,
0.005785156507045031,
-0.008211051113903522,
-0.03544214740395546,
-0.01265422347933054,
0.024413790553808212,
0.014529560692608356,
0.04586833342909813,
-0.024998757988214493,
0.023175036534667015,
0.019149083644151688,
0.044801630079746246,
0.06424319744110107,
-0.026564406231045723,
-0.05130509287118912,
-0.028370924293994904,
-0.006021724082529545,
0.05144273117184639,
0.004877596627920866,
0.0029721511527895927,
-0.05343850329518318,
-0.0489652194082737,
-0.0572579950094223,
-0.048827581107616425,
0.0033313038293272257,
0.07054019719362259,
0.023725593462586403,
0.01138105895370245,
0.021024420857429504,
-0.049894288182258606,
-0.016748996451497078,
-0.04342523589730263,
0.04263380914926529,
-0.022590069100260735,
-0.03650885447859764,
0.0900849923491478,
0.03812611848115921,
0.009075598791241646,
0.04693504050374031,
0.06152481585741043,
-0.04077567532658577,
0.012370342388749123,
-0.0636582300066948,
0.025170806795358658,
0.06045811250805855,
0.027717135846614838,
0.01483064703643322,
-0.01820281147956848,
-0.022245969623327255,
-0.09565939009189606,
-0.02892148122191429,
-0.01766945980489254,
-0.03191513940691948,
-0.008155135437846184,
-0.03459910675883293,
0.005101260729134083,
-0.005109863355755806,
-0.01505431067198515,
0.0327925905585289,
-0.06403673440217972,
0.010013267397880554,
0.013695121742784977,
-0.023846028372645378,
0.018047967925667763,
0.004090471193194389,
0.027631111443042755,
-0.023175036534667015,
0.027975210919976234,
-0.007858349941670895,
0.07528875768184662,
-0.024654660373926163,
0.02207392081618309,
0.014813441783189774,
0.0558127835392952,
-0.026409562677145004,
0.046762991696596146,
-0.000017893795302370563,
-0.043390825390815735,
-0.057051535695791245,
-0.03902077302336693,
0.047692056745290756,
0.01010789442807436,
0.01392738800495863,
0.00016586625133641064,
0.019785664975643158,
0.01268003135919571,
-0.030280670151114464,
-0.04555864632129669,
0.00699810404330492,
-0.026564406231045723,
-0.042461760342121124,
-0.04590274393558502,
-0.0026646130718290806,
0.011862796731293201,
0.02085237018764019,
0.05997637286782265,
-0.05853116139769554,
0.030521539971232414,
0.04383815452456474,
0.0411197729408741,
0.003948530647903681,
0.03699059039354324,
0.05990755558013916,
-0.003840999910607934,
-0.05106422305107117,
-0.06785622984170914,
0.026839684695005417,
0.014340306632220745,
-0.0073077925480902195,
0.003967886324971914,
0.0036022814456373453,
-0.004408762324601412,
0.01683502085506916,
-0.023673979565501213,
0.04204884171485901,
0.020146969705820084,
-0.04714149981737137,
0.009006778709590435,
0.04253057762980461,
-0.00033442076528444886,
-0.008843332529067993,
0.018873805180191994,
-0.019734051078557968,
0.06699598580598831,
0.04311554506421089,
-0.044663988053798676,
0.04445752874016762,
-0.01399620808660984,
0.014323101378977299,
0.08444178104400635,
-0.029833342880010605,
-0.0367153137922287,
-0.0008849783916957676,
0.022159945219755173,
-0.008241159841418266,
0.014606982469558716,
0.020422248169779778,
0.020009329542517662,
0.033790476620197296,
-0.01904585398733616,
0.00988423079252243,
0.034581903368234634,
-0.016516730189323425,
-0.04531777650117874,
0.04497367888689041,
0.017755484208464622,
0.0005806662957184017,
0.02061150223016739,
-0.009531529620289803,
0.02295137196779251,
-0.004421666264533997,
0.012938104569911957,
-0.024895528331398964,
0.014873659238219261,
0.03640562295913696,
0.001038209768012166,
0.03005700744688511,
0.005940000992268324,
0.0026947215665131807,
0.03554537892341614,
0.03750674054026604,
0.01576831564307213,
0.02305460162460804,
0.022194355726242065,
-0.002720528980717063,
0.0007984161493368447,
-0.0783168226480484,
0.000870999414473772,
-0.038986362516880035,
0.08967208117246628,
0.032328058034181595,
0.029592473059892654,
0.011940219439566135,
-0.03415177762508392,
0.020783551037311554
] |
9,998
|
torch.nn.modules.container
|
__imul__
| null |
def __imul__(self, other: int) -> Self:
if not isinstance(other, int):
raise TypeError(f"unsupported operand type(s) for *: {type(self)} and {type(other)}")
elif (other <= 0):
raise ValueError(f"Non-positive multiplication factor {other} for {type(self)}")
else:
len_original = len(self)
offset = len(self)
for _ in range(other - 1):
for i in range(len_original):
self.add_module(str(i + offset), self._modules[str(i)])
offset += len_original
return self
|
(self, other: int) -> typing_extensions.Self
|
[
-0.014173989184200764,
-0.06516122817993164,
0.025057906284928322,
0.07547605037689209,
-0.045989882200956345,
-0.025627000257372856,
-0.011710881255567074,
-0.04090360924601555,
-0.04542078822851181,
0.0348392054438591,
0.015783457085490227,
-0.009612347930669785,
0.036297507584095,
0.089347705245018,
-0.039729852229356766,
0.030268670991063118,
0.018264349550008774,
-0.031566914170980453,
0.016983889043331146,
0.005584231577813625,
-0.030571000650525093,
0.04887092113494873,
0.05641141161322594,
0.035870686173439026,
-0.01582791842520237,
0.08892089128494263,
0.022194653749465942,
0.00897211767733097,
-0.015916839241981506,
-0.031922597438097,
-0.009558995254337788,
0.03099782206118107,
-0.03163805231451988,
-0.020914193242788315,
-0.0010470434790477157,
-0.04357123374938965,
-0.057691872119903564,
0.01257341355085373,
-0.08074016869068146,
0.031922597438097,
0.07085216045379639,
-0.030090829357504845,
0.10407301038503647,
-0.02128766104578972,
-0.024026423692703247,
-0.012751255184412003,
0.00545085035264492,
-0.03816484659910202,
0.02546694315969944,
-0.020060552284121513,
-0.029912985861301422,
-0.005495310761034489,
0.047448184341192245,
-0.013560435734689236,
-0.005664260592311621,
0.1189405769109726,
0.05185866355895996,
-0.030375374481081963,
-0.05353037640452385,
0.0026698496658354998,
-0.07497809082269669,
-0.028810366988182068,
0.01802426390349865,
-0.0360485278069973,
0.019527027383446693,
-0.017775285989046097,
-0.04933330789208412,
0.003407893003895879,
-0.02102089859545231,
0.052107639610767365,
-0.018797876313328743,
-0.01581902615725994,
-0.03279402479529381,
0.03400334715843201,
0.030304238200187683,
0.018673386424779892,
-0.0029655115213245153,
0.01762411929666996,
0.03432346135377884,
-0.0036035189405083656,
0.02913048304617405,
-0.006624605972319841,
-0.025964898988604546,
0.0030833317432552576,
0.008825398050248623,
-0.016308091580867767,
-0.0033767707645893097,
-0.04328668862581253,
0.01485868077725172,
-0.03745347633957863,
-0.05890119448304176,
-0.04108145087957382,
0.011755341663956642,
-0.010554909706115723,
0.05075604468584061,
0.025698136538267136,
-0.04157940670847893,
-0.030677706003189087,
-0.00371467019431293,
0.024453245103359222,
0.027014166116714478,
0.0050773825496435165,
0.018637817353010178,
-0.04670124873518944,
0.04207736253738403,
-0.011284060776233673,
0.01714394800364971,
-0.05114729329943657,
-0.01949145831167698,
0.023048294708132744,
-0.008554189465939999,
0.07152796536684036,
-0.07782356441020966,
-0.0036768787540495396,
-0.06064404547214508,
0.036599837243556976,
-0.024577733129262924,
-0.02335062436759472,
0.08991680294275284,
0.072346031665802,
-0.05313912406563759,
0.055700045078992844,
0.025787057355046272,
0.020309530198574066,
0.05207207053899765,
0.021252091974020004,
0.007749455515295267,
-0.03962314873933792,
-0.0039769867435097694,
-0.05698050558567047,
-0.0038925118278712034,
-0.03190481290221214,
-0.02359960414469242,
0.07775242626667023,
-0.010261470451951027,
0.01562339998781681,
0.014040607959032059,
0.004501619841903448,
0.02313721552491188,
0.03558614104986191,
-0.025751488283276558,
0.0017506299773231149,
0.036333076655864716,
0.09411387145519257,
-0.06793555617332458,
0.014191773720085621,
0.0158368106931448,
0.05299684777855873,
-0.05833210423588753,
-0.012822392396628857,
-0.04157940670847893,
0.029752928763628006,
0.09895116090774536,
0.04204179719090462,
0.021234307438135147,
0.03432346135377884,
0.03916075825691223,
0.022923804819583893,
-0.00279433885589242,
-0.0020362883806228638,
-0.0044527132995426655,
0.042717594653367996,
0.009950247593224049,
0.018122076988220215,
-0.036084096878767014,
-0.05093388631939888,
0.03428789600729942,
-0.041117019951343536,
-0.0524277538061142,
0.059007901698350906,
0.04794614389538765,
-0.0871424674987793,
0.06277814507484436,
-0.02407977730035782,
-0.032296065241098404,
-0.004077022895216942,
-0.001959593966603279,
-0.019633732736110687,
0.020434020087122917,
0.014529673382639885,
0.01741960272192955,
0.007024750113487244,
-0.04922660440206528,
-0.033078569918870926,
0.031104527413845062,
0.0065134549513459206,
-0.034803636372089386,
0.02354625053703785,
0.03677767887711525,
-0.046452272683382034,
0.035550571978092194,
-0.02054072543978691,
0.0020596301183104515,
-0.009843542240560055,
-0.02740541845560074,
-0.012689011171460152,
-0.02740541845560074,
-0.005793195683509111,
0.055237654596567154,
0.06050177291035652,
-0.05505981296300888,
0.04428260400891304,
0.015338853001594543,
0.03245612233877182,
0.004717253148555756,
-0.03165583685040474,
-0.021696696057915688,
0.02612495608627796,
-0.022959373891353607,
-0.029752928763628006,
-0.010981729254126549,
0.011497470550239086,
0.02100311405956745,
0.026907460764050484,
-0.019900495186448097,
0.04389135167002678,
0.0030699935741722584,
-0.04061906039714813,
0.03852052986621857,
0.005455296486616135,
0.05072047561407089,
0.015676751732826233,
-0.07995766401290894,
-0.004192620050162077,
-0.011942075565457344,
0.005059598479419947,
-0.005979929585009813,
0.025573646649718285,
-0.0013393708504736423,
0.046381134539842606,
0.030357591807842255,
0.014245126396417618,
-0.02893485687673092,
-0.03051764890551567,
-0.020576292648911476,
0.017268436029553413,
-0.01416509784758091,
0.001994050806388259,
-0.04666568338871002,
0.028952641412615776,
-0.026640698313713074,
-0.016370335593819618,
0.02267482690513134,
0.04488726332783699,
-0.04695022851228714,
-0.02308386191725731,
-0.04108145087957382,
0.016148032620549202,
0.007504922803491354,
0.05573561415076256,
0.013871658593416214,
-0.05128956958651543,
-0.026160525158047676,
0.0015505580231547356,
0.040263377130031586,
0.046914659440517426,
-0.019331401214003563,
-0.052498891949653625,
0.00461944006383419,
-0.009647916071116924,
0.02614274062216282,
0.003305634018033743,
-0.002527576172724366,
-0.024577733129262924,
-0.058616649359464645,
-0.00332564115524292,
-0.03636864200234413,
0.023119430989027023,
0.01608578860759735,
0.053032416850328445,
0.014983169734477997,
-0.006664620712399483,
0.037062227725982666,
0.026978597044944763,
-0.007629412226378918,
0.0063400594517588615,
0.02201681211590767,
0.08493722975254059,
-0.06260030716657639,
-0.0718480795621872,
0.016859401017427444,
-0.04606102034449577,
-0.04470942169427872,
-0.06366735696792603,
-0.011666420847177505,
0.03286515921354294,
0.02054072543978691,
0.012199945747852325,
-0.005815425887703896,
-0.013418162241578102,
0.042788732796907425,
0.06864692270755768,
-0.01781974546611309,
0.027618827298283577,
-0.00023730761313345283,
0.02573370561003685,
-0.08166494220495224,
0.028241274878382683,
0.035337161272764206,
0.039729852229356766,
-0.04108145087957382,
-0.049973540008068085,
-0.06217348575592041,
-0.009398938156664371,
-0.009292232804000378,
-0.02740541845560074,
0.06565918028354645,
0.06341838091611862,
-0.0008608653442934155,
0.06875362992286682,
0.038876213133335114,
0.06430758535861969,
-0.05594902113080025,
0.010261470451951027,
0.0444248765707016,
-0.02400863915681839,
0.06153325363993645,
0.060146089643239975,
-0.015329960733652115,
0.039872124791145325,
0.04901319369673729,
0.024026423692703247,
-0.03279402479529381,
-0.001518324133940041,
-0.0012137701269239187,
0.0008208509534597397,
0.004779497627168894,
-0.03186924755573273,
0.012484492734074593,
-0.03916075825691223,
-0.054419584572315216,
0.005166303366422653,
0.019847141578793526,
-0.01669044978916645,
0.018122076988220215,
-0.01961594820022583,
-0.0028832599055022,
0.022230222821235657,
0.010554909706115723,
-0.008820951916277409,
0.020576292648911476,
-0.028543604537844658,
-0.028347978368401527,
-0.015276608988642693,
-0.030766626819968224,
-0.014040607959032059,
0.05189422890543938,
-0.030233101919293404,
0.015249932184815407,
0.02208794839680195,
-0.015285500325262547,
-0.0359240397810936,
0.027743317186832428,
-0.04741261899471283,
0.020985329523682594,
0.02879258431494236,
-0.05673152580857277,
-0.03571062907576561,
-0.03791586682200432,
-0.011888722889125347,
0.061746664345264435,
0.016103573143482208,
0.03798700496554375,
0.010537125170230865,
-0.09233544766902924,
-0.042184069752693176,
-0.030001908540725708,
-0.018388839438557625,
-0.02573370561003685,
0.020060552284121513,
0.008309656754136086,
-0.027618827298283577,
-0.01661931350827217,
-0.012004319578409195,
-0.04602545127272606,
0.07974424958229065,
-0.027440985664725304,
0.05740732699632645,
-0.04517181217670441,
-0.03304300084710121,
0.029503950849175453,
-0.025787057355046272,
-0.03105117380619049,
-0.012724579311907291,
0.029859634116292,
0.02667626552283764,
0.045918747782707214,
-0.052356619387865067,
0.060003817081451416,
0.06046620383858681,
0.01473419088870287,
-0.05032922327518463,
0.030304238200187683,
-0.02993077039718628,
-0.05779857560992241,
-0.005682044662535191,
0.041650544852018356,
-0.01083945669233799,
-0.05552220344543457,
-0.04037008434534073,
0.024773359298706055,
0.0036324183456599712,
0.03144242614507675,
0.03245612233877182,
0.022176869213581085,
-0.02235471084713936,
0.016041329130530357,
0.0030499864369630814,
-0.009621240198612213,
0.033612094819545746,
-0.01420066598802805,
-0.0031455764546990395,
-0.02799229510128498,
-0.00771388690918684,
-0.00015769564197398722,
-0.0946829617023468,
0.03670654073357582,
-0.1041441410779953,
-0.012013211846351624,
0.014556349255144596,
0.03688438609242439,
0.025787057355046272,
0.02973514422774315,
-0.02752990648150444,
-0.01709948666393757,
-0.0228170994669199,
-0.008220735937356949,
-0.017001673579216003,
-0.06039506569504738,
0.02214130200445652,
-0.061142001301050186,
0.02126987650990486,
0.0458831787109375,
0.032296065241098404,
0.032545045018196106,
-0.05936358496546745,
-0.011221815831959248,
0.0031544684898108244,
-0.009363369084894657,
-0.0007736117113381624,
0.08330108970403671,
-0.033825505524873734,
0.017579659819602966,
-0.029308324679732323,
-0.0420062281191349,
-0.06843351572751999,
0.029308324679732323,
0.052570030093193054,
-0.08066903054714203,
0.019117990508675575,
0.0037391232326626778,
0.007024750113487244,
0.029806282371282578,
-0.027369849383831024,
0.04862194135785103,
-0.030037475749850273,
0.0029543964192271233,
-0.04460271820425987,
0.03412783518433571,
0.006949167232960463,
-0.02813456952571869,
0.0166282057762146,
-0.004097030032426119,
-0.027174223214387894,
0.005575339775532484,
0.031068958342075348,
0.06622827798128128,
-0.026285015046596527,
0.032882943749427795,
0.0348392054438591,
0.03976542130112648,
0.027814453467726707,
-0.00002485269396856893,
-0.004394914954900742,
-0.04474499076604843,
-0.0023141661658883095,
-0.06565918028354645,
-0.014760867692530155,
-0.023243920877575874,
-0.05114729329943657,
0.03976542130112648,
-0.004895094782114029,
0.06423644721508026,
0.007011412177234888,
-0.01040374394506216,
-0.032829590141773224,
0.05111172795295715,
-0.006544577423483133,
0.03716893121600151,
0.009852434508502483,
-0.012404464185237885,
0.01723286882042885,
-0.014823111705482006,
0.07035420835018158,
-0.036813247948884964,
-0.03092668578028679,
-0.014823111705482006,
-0.017375141382217407,
0.01284017600119114,
-0.021394366398453712,
-0.01675269566476345,
0.03955201059579849,
-0.03916075825691223,
-0.0005396386259235442,
0.036208584904670715,
0.07223933190107346,
0.0004334893310442567,
0.006958059500902891,
-0.016859401017427444,
0.0038858428597450256,
-0.0015249932184815407,
-0.003101116046309471,
-0.04161497578024864,
0.024506596848368645,
0.018940148875117302,
-0.002672072732821107,
-0.02799229510128498,
0.045918747782707214,
-0.013827198185026646,
-0.05335253104567528,
0.0788906142115593,
-0.061817802488803864,
-0.06398747116327286,
-0.052107639610767365,
0.01183537021279335,
-0.013489298522472382,
-0.09446955472230911,
-0.03823598101735115,
0.015774564817547798,
0.01574788987636566,
-0.07967311888933182,
-0.029841849580407143,
-0.030553217977285385,
0.0347147136926651,
-0.0847238227725029,
-0.03236720338463783,
-0.009372261352837086,
0.010946161113679409,
0.03409226983785629,
0.006393411662429571,
-0.03437681496143341,
0.05690936744213104,
0.033078569918870926,
0.007616074290126562,
-0.02553807944059372,
0.002411979017779231,
-0.0971016064286232,
0.07149239629507065,
0.0044682747684419155,
0.005086274817585945,
-0.049511149525642395,
-0.021501069888472557,
-0.03595960885286331,
0.03997883200645447,
0.07202591747045517,
0.03279402479529381,
0.01369381695985794,
0.013089154846966267,
0.0056020161136984825,
0.08066903054714203,
0.02432875521481037,
-0.005441958550363779,
0.08842293173074722,
-0.05797641724348068,
-0.025502510368824005,
-0.02041623555123806,
-0.002745432313531637,
-0.003979209810495377,
-0.014085068367421627,
0.037738025188446045,
0.011897615157067776,
-0.02100311405956745,
0.010714966803789139,
0.012546737678349018,
-0.03046429716050625,
-0.01063493825495243,
-0.027298713102936745,
-0.002765439683571458,
0.020522940903902054,
0.006793555803596973,
-0.04894205555319786,
0.046843525022268295,
0.008247412741184235,
-0.01516101136803627,
0.0230660792440176,
-0.04360680282115936,
-0.03848496079444885,
-0.0037858067080378532,
0.01722397655248642,
0.05338810011744499,
-0.015169903635978699,
-0.06608600169420242,
-0.023830797523260117,
-0.0009186639217659831,
-0.004699469078332186,
0.014076177030801773,
-0.05605572834610939,
-0.01489424891769886,
0.024648869410157204,
0.0026476194616407156,
0.01582791842520237,
-0.04268202558159828,
-0.007282620761543512,
-0.0115330396220088,
0.025289099663496017,
0.04396248608827591,
-0.02833019569516182,
-0.016121357679367065,
-0.022585906088352203,
-0.007936188951134682,
0.02320835180580616,
-0.004717253148555756,
0.013053586706519127,
0.01512544322758913,
-0.03823598101735115,
-0.04243304952979088,
-0.02262147329747677,
0.000056478656915714964,
0.036208584904670715,
-0.01319586019963026,
-0.08621769398450851,
0.009923570789396763,
-0.0667617991566658,
-0.019366970285773277,
-0.01961594820022583,
0.03748904541134834,
-0.005717613268643618,
-0.020700782537460327,
0.05281900614500046,
0.057158347219228745,
0.009550102986395359,
0.026569562032818794,
0.04360680282115936,
-0.03876950591802597,
0.01446742843836546,
-0.01496538519859314,
-0.0020829718559980392,
0.046452272683382034,
-0.002197457477450371,
0.07191921770572662,
0.017606336623430252,
-0.01236889511346817,
-0.08152267336845398,
-0.03336311876773834,
-0.039409738034009933,
-0.03905405476689339,
-0.04101031273603439,
-0.018042048439383507,
0.015507803298532963,
-0.023101646453142166,
-0.021625559777021408,
0.03777359426021576,
0.002160777570679784,
0.009132174775004387,
-0.01372938510030508,
-0.03450130298733711,
0.000260093598626554,
0.017544090747833252,
0.02167891338467598,
-0.017997587099671364,
0.0174818467348814,
-0.01849554479122162,
0.03869837149977684,
0.020594077184796333,
0.03345203772187233,
0.005192979704588652,
0.057158347219228745,
-0.0730573982000351,
0.008247412741184235,
-0.017401818186044693,
0.016601528972387314,
-0.0016305868048220873,
-0.06309825927019119,
0.010421528480947018,
-0.05335253104567528,
0.018566681072115898,
0.004788389895111322,
0.006402303930372,
-0.012902420945465565,
0.027974510565400124,
-0.054490718990564346,
-0.03576398268342018,
-0.023492898792028427,
0.033078569918870926,
-0.010359283536672592,
-0.010394851677119732,
-0.011150679551064968,
0.06548134237527847,
-0.03990769386291504,
-0.03752461448311806,
0.0502580851316452,
0.005913238972425461,
0.037809163331985474,
-0.00794508121907711,
-0.004270425532013178,
0.046843525022268295,
-0.024115344509482384,
-0.05466856062412262,
-0.012360003776848316,
0.026782970875501633,
0.005041814409196377,
0.0053930520080029964,
-0.0018806768348440528,
-0.02175004966557026,
-0.017730824649333954,
0.04922660440206528,
-0.024453245103359222,
0.010581585578620434,
0.026427287608385086,
-0.03546164929866791,
-0.022710394114255905,
0.05306798592209816,
-0.007553829345852137,
-0.040583495050668716,
0.04264645650982857,
0.02014947310090065,
0.024239834398031235,
0.03699108958244324,
-0.0279211588203907,
0.02713865414261818,
0.009132174775004387,
0.0076471962966024876,
0.048515237867832184,
0.0009603456128388643,
-0.04335782676935196,
-0.0006580145563930273,
0.052498891949653625,
-0.0180865079164505,
0.04342896118760109,
0.02274596318602562,
-0.012475600466132164,
0.044460445642471313,
-0.007220376282930374,
-0.06203121319413185,
0.03624415397644043,
-0.0655524805188179,
-0.02153663896024227,
-0.013400377705693245,
0.05481083691120148,
-0.026160525158047676,
-0.006228908430784941,
-0.01701945811510086,
0.016272522509098053,
0.03266953304409981,
-0.014529673382639885,
0.019455891102552414,
-0.007282620761543512,
0.029610656201839447,
0.024026423692703247,
0.02048737183213234,
-0.021892322227358818,
-0.0028832599055022,
0.01253784541040659,
0.0179620198905468,
0.03791586682200432,
-0.0012304427800700068,
0.03130015358328819,
-0.013524866662919521,
-0.005597569979727268,
-0.03384329006075859,
-0.01854889653623104,
-0.018708955496549606,
0.07149239629507065,
0.0250045545399189,
-0.0035857348702847958,
0.031282369047403336,
0.02180340141057968,
0.020665213465690613
] |
9,999
|
sentence_transformers.SentenceTransformer
|
__init__
| null |
def __init__(
self,
model_name_or_path: Optional[str] = None,
modules: Optional[Iterable[nn.Module]] = None,
device: Optional[str] = None,
prompts: Optional[Dict[str, str]] = None,
default_prompt_name: Optional[str] = None,
cache_folder: Optional[str] = None,
trust_remote_code: bool = False,
revision: Optional[str] = None,
token: Optional[Union[bool, str]] = None,
use_auth_token: Optional[Union[bool, str]] = None,
truncate_dim: Optional[int] = None,
):
# Note: self._load_sbert_model can also update `self.prompts` and `self.default_prompt_name`
self.prompts = prompts or {}
self.default_prompt_name = default_prompt_name
self.truncate_dim = truncate_dim
self._model_card_vars = {}
self._model_card_text = None
self._model_config = {}
if use_auth_token is not None:
warnings.warn(
"The `use_auth_token` argument is deprecated and will be removed in v3 of SentenceTransformers.",
FutureWarning,
)
if token is not None:
raise ValueError(
"`token` and `use_auth_token` are both specified. Please set only the argument `token`."
)
token = use_auth_token
if cache_folder is None:
cache_folder = os.getenv("SENTENCE_TRANSFORMERS_HOME")
if model_name_or_path is not None and model_name_or_path != "":
logger.info("Load pretrained SentenceTransformer: {}".format(model_name_or_path))
# Old models that don't belong to any organization
basic_transformer_models = [
"albert-base-v1",
"albert-base-v2",
"albert-large-v1",
"albert-large-v2",
"albert-xlarge-v1",
"albert-xlarge-v2",
"albert-xxlarge-v1",
"albert-xxlarge-v2",
"bert-base-cased-finetuned-mrpc",
"bert-base-cased",
"bert-base-chinese",
"bert-base-german-cased",
"bert-base-german-dbmdz-cased",
"bert-base-german-dbmdz-uncased",
"bert-base-multilingual-cased",
"bert-base-multilingual-uncased",
"bert-base-uncased",
"bert-large-cased-whole-word-masking-finetuned-squad",
"bert-large-cased-whole-word-masking",
"bert-large-cased",
"bert-large-uncased-whole-word-masking-finetuned-squad",
"bert-large-uncased-whole-word-masking",
"bert-large-uncased",
"camembert-base",
"ctrl",
"distilbert-base-cased-distilled-squad",
"distilbert-base-cased",
"distilbert-base-german-cased",
"distilbert-base-multilingual-cased",
"distilbert-base-uncased-distilled-squad",
"distilbert-base-uncased-finetuned-sst-2-english",
"distilbert-base-uncased",
"distilgpt2",
"distilroberta-base",
"gpt2-large",
"gpt2-medium",
"gpt2-xl",
"gpt2",
"openai-gpt",
"roberta-base-openai-detector",
"roberta-base",
"roberta-large-mnli",
"roberta-large-openai-detector",
"roberta-large",
"t5-11b",
"t5-3b",
"t5-base",
"t5-large",
"t5-small",
"transfo-xl-wt103",
"xlm-clm-ende-1024",
"xlm-clm-enfr-1024",
"xlm-mlm-100-1280",
"xlm-mlm-17-1280",
"xlm-mlm-en-2048",
"xlm-mlm-ende-1024",
"xlm-mlm-enfr-1024",
"xlm-mlm-enro-1024",
"xlm-mlm-tlm-xnli15-1024",
"xlm-mlm-xnli15-1024",
"xlm-roberta-base",
"xlm-roberta-large-finetuned-conll02-dutch",
"xlm-roberta-large-finetuned-conll02-spanish",
"xlm-roberta-large-finetuned-conll03-english",
"xlm-roberta-large-finetuned-conll03-german",
"xlm-roberta-large",
"xlnet-base-cased",
"xlnet-large-cased",
]
if not os.path.exists(model_name_or_path):
# Not a path, load from hub
if "\\" in model_name_or_path or model_name_or_path.count("/") > 1:
raise ValueError("Path {} not found".format(model_name_or_path))
if "/" not in model_name_or_path and model_name_or_path.lower() not in basic_transformer_models:
# A model from sentence-transformers
model_name_or_path = __MODEL_HUB_ORGANIZATION__ + "/" + model_name_or_path
if is_sentence_transformer_model(model_name_or_path, token, cache_folder=cache_folder, revision=revision):
modules = self._load_sbert_model(
model_name_or_path,
token=token,
cache_folder=cache_folder,
revision=revision,
trust_remote_code=trust_remote_code,
)
else:
modules = self._load_auto_model(
model_name_or_path,
token=token,
cache_folder=cache_folder,
revision=revision,
trust_remote_code=trust_remote_code,
)
if modules is not None and not isinstance(modules, OrderedDict):
modules = OrderedDict([(str(idx), module) for idx, module in enumerate(modules)])
super().__init__(modules)
if device is None:
device = get_device_name()
logger.info("Use pytorch device_name: {}".format(device))
self.to(device)
self.is_hpu_graph_enabled = False
if self.default_prompt_name is not None and self.default_prompt_name not in self.prompts:
raise ValueError(
f"Default prompt name '{self.default_prompt_name}' not found in the configured prompts "
f"dictionary with keys {list(self.prompts.keys())!r}."
)
if self.prompts:
logger.info(f"{len(self.prompts)} prompts are loaded, with the keys: {list(self.prompts.keys())}")
if self.default_prompt_name:
logger.warning(
f"Default prompt name is set to '{self.default_prompt_name}'. "
"This prompt will be applied to all `encode()` calls, except if `encode()` "
"is called with `prompt` or `prompt_name` parameters."
)
# Ideally, INSTRUCTOR models should set `include_prompt=False` in their pooling configuration, but
# that would be a breaking change for users currently using the InstructorEmbedding project.
# So, instead we hardcode setting it for the main INSTRUCTOR models, and otherwise give a warning if we
# suspect the user is using an INSTRUCTOR model.
if model_name_or_path in ("hkunlp/instructor-base", "hkunlp/instructor-large", "hkunlp/instructor-xl"):
self.set_pooling_include_prompt(include_prompt=False)
elif (
model_name_or_path
and "/" in model_name_or_path
and "instructor" in model_name_or_path.split("/")[1].lower()
):
if any([module.include_prompt for module in self if isinstance(module, Pooling)]):
logger.warning(
"Instructor models require `include_prompt=False` in the pooling configuration. "
"Either update the model configuration or call `model.set_pooling_include_prompt(False)` after loading the model."
)
|
(self, model_name_or_path: Optional[str] = None, modules: Optional[Iterable[torch.nn.modules.module.Module]] = None, device: Optional[str] = None, prompts: Optional[Dict[str, str]] = None, default_prompt_name: Optional[str] = None, cache_folder: Optional[str] = None, trust_remote_code: bool = False, revision: Optional[str] = None, token: Union[bool, str, NoneType] = None, use_auth_token: Union[bool, str, NoneType] = None, truncate_dim: Optional[int] = None)
|
[
-0.0173210259526968,
-0.05023415759205818,
-0.03860902413725853,
0.005088648293167353,
0.02812943235039711,
-0.0065550487488508224,
-0.04081525281071663,
-0.024544307962059975,
0.009604524821043015,
-0.04849463328719139,
0.008692333474755287,
-0.011699383147060871,
-0.04815521091222763,
0.07064178586006165,
-0.03152363374829292,
0.01542239636182785,
0.03780290111899376,
0.006358821410685778,
0.03534210845828056,
-0.042342644184827805,
-0.02049248293042183,
-0.013534372672438622,
-0.007679377216845751,
0.02143649384379387,
-0.03937271982431412,
-0.006024704780429602,
0.03958485648036003,
-0.020460661500692368,
0.01891205832362175,
0.02719602733850479,
-0.008522624149918556,
-0.008856740780174732,
0.009800752624869347,
0.028808271512389183,
0.004343515262007713,
-0.02100161276757717,
0.03322073072195053,
0.044548872858285904,
-0.08875832706689835,
-0.019028732553124428,
-0.029911387711763382,
-0.03894844278693199,
0.07284801453351974,
0.017257384955883026,
-0.06376852840185165,
0.005833781324326992,
0.004022657405585051,
0.04348818585276604,
0.005547395441681147,
0.0020656888373196125,
-0.037102848291397095,
-0.03712406009435654,
0.013937433250248432,
0.04049704968929291,
-0.05112513527274132,
-0.02940225787460804,
-0.0201954897493124,
0.056174010038375854,
-0.03160848841071129,
0.023398766294121742,
0.026941461488604546,
-0.009095394983887672,
0.006342911161482334,
0.031205425038933754,
-0.003256310475990176,
0.014605666510760784,
0.004598080180585384,
0.008050617761909962,
-0.010267455130815506,
0.005865601822733879,
-0.010697033256292343,
-0.05528303235769272,
0.0018097980646416545,
0.06835070252418518,
0.049512892961502075,
-0.02094857767224312,
-0.02861734852194786,
0.01827564463019371,
-0.003001745557412505,
0.016111843287944794,
0.05231310799717903,
0.009991676546633244,
-0.012993421405553818,
-0.0690295398235321,
-0.028808271512389183,
-0.04047583416104317,
0.0585075207054615,
0.00944542232900858,
-0.005987580865621567,
-0.01621791161596775,
-0.05541031435132027,
0.02462916262447834,
0.04257599636912346,
0.07157519459724426,
0.04794307425618172,
0.0037866542115807533,
-0.012579753994941711,
-0.012144871987402439,
-0.026135340332984924,
-0.06359881907701492,
-0.04017884284257889,
0.05405263230204582,
-0.0352572500705719,
0.02526557631790638,
-0.0384393148124218,
-0.023716971278190613,
-0.05290709063410759,
0.02384425513446331,
0.026156553998589516,
-0.04815521091222763,
-0.09554672986268997,
0.0356178842484951,
-0.007981672883033752,
0.011190253309905529,
-0.016642186790704727,
-0.05248281732201576,
-0.02130921185016632,
0.002272523008286953,
0.007106605917215347,
0.024120032787322998,
-0.0457792729139328,
0.02893555536866188,
-0.09249194711446762,
-0.05048872530460358,
0.018158970400691032,
0.01826503872871399,
0.031205425038933754,
0.0035320892930030823,
0.023419979959726334,
-0.0896068811416626,
0.006327000912278891,
-0.02795972116291523,
-0.014064716175198555,
0.01650429703295231,
0.011773630976676941,
-0.054561764001846313,
-0.04493072256445885,
0.0010567099088802934,
0.008962809108197689,
0.06724758446216583,
-0.0026238756254315376,
0.007737715262919664,
0.030781149864196777,
-0.038863588124513626,
0.000332624971633777,
-0.017543770372867584,
0.026962675154209137,
-0.0918131098151207,
-0.04151530936360359,
-0.03983942046761513,
0.034387487918138504,
0.0019185184501111507,
-0.0100075863301754,
-0.007095999084413052,
-0.04036976397037506,
0.050616007298231125,
-0.029826531186699867,
-0.059525780379772186,
0.010076531209051609,
0.0396697111427784,
-0.031353920698165894,
-0.06652631610631943,
0.02846885286271572,
0.0362330861389637,
-0.008299879729747772,
-0.03294495493173599,
-0.04242749884724617,
-0.015157223679125309,
-0.01470112893730402,
0.06597476452589035,
-0.01216608565300703,
0.012113051488995552,
-0.06151987239718437,
0.008395341224968433,
0.04964017495512962,
0.06054404005408287,
0.052525244653224945,
-0.013905612751841545,
-0.02704753167927265,
0.01729981228709221,
0.009896214120090008,
-0.012410043738782406,
-0.01683310978114605,
0.012219119817018509,
-0.011317535303533077,
0.054561764001846313,
0.04036976397037506,
0.017448309808969498,
0.005192065145820379,
0.01733163371682167,
0.014669307507574558,
-0.006650510709732771,
0.03928786516189575,
0.008252148516476154,
-0.03114178404211998,
0.02382304146885872,
0.007265709340572357,
-0.024841301143169403,
-0.022656284272670746,
-0.03133270889520645,
-0.01516783144325018,
-0.02064097858965397,
0.037081632763147354,
-0.007202067878097296,
-0.05842266604304314,
0.018657492473721504,
-0.027365736663341522,
0.05273738130927086,
0.004568911157548428,
-0.03129028156399727,
-0.02670811116695404,
-0.03252067789435387,
0.045354995876550674,
0.05787111073732376,
0.07267830520868301,
-0.06202900409698486,
0.02462916262447834,
0.0198348555713892,
-0.013778330758213997,
-0.019442401826381683,
0.0585075207054615,
-0.007817266508936882,
-0.009726503863930702,
-0.004364728927612305,
-0.03926664963364601,
-0.013619227334856987,
-0.013555586338043213,
0.009567401371896267,
0.01717253029346466,
-0.0024303002282977104,
0.04191837087273598,
0.028362782672047615,
-0.021266784518957138,
0.056980133056640625,
-0.02655961364507675,
0.04654296860098839,
-0.015814850106835365,
0.03199033439159393,
-0.03468447923660278,
-0.03404806926846504,
-0.007859693840146065,
0.01570878177881241,
-0.014510205015540123,
-0.03706042096018791,
0.009222677908837795,
0.0051735034212470055,
0.06338668614625931,
-0.03748469427227974,
-0.06215628609061241,
-0.04637325555086136,
-0.006931592710316181,
-0.004428370390087366,
-0.02257142961025238,
-0.0001275310933124274,
-0.04594898223876953,
-0.09911064058542252,
0.009896214120090008,
-0.042533569037914276,
0.039648499339818954,
-0.015273899771273136,
-0.06847798079252243,
-0.02082129567861557,
-0.0644049420952797,
0.07793931663036346,
0.008522624149918556,
0.005828477907925844,
-0.013608620502054691,
0.03937271982431412,
0.0067777931690216064,
-0.03512996807694435,
0.08341246098279953,
0.06308969110250473,
-0.08578840643167496,
0.006374731659889221,
0.03065386787056923,
-0.02445945329964161,
-0.03574516996741295,
0.01636640727519989,
-0.02462916262447834,
0.050616007298231125,
0.035045113414525986,
-0.01889084465801716,
0.023313911631703377,
0.006337607745081186,
0.0330510213971138,
-0.035808809101581573,
-0.037251345813274384,
-0.10861440002918243,
0.005669374484568834,
-0.028405210003256798,
-0.04053947702050209,
0.04556713253259659,
0.03653007745742798,
-0.007774839177727699,
0.004356774035841227,
-0.03877873346209526,
-0.018084721639752388,
0.04104860499501228,
0.030632654204964638,
-0.05290709063410759,
0.014170784503221512,
0.03863023966550827,
0.06147744506597519,
0.0023693107068538666,
-0.02859613485634327,
-0.0646170824766159,
0.021330425515770912,
-0.011890307068824768,
0.01731042005121708,
-0.026771752163767815,
0.010697033256292343,
-0.0008478870731778443,
0.09953491389751434,
0.04582170024514198,
0.029996242374181747,
0.021680451929569244,
0.04972502961754799,
0.055537596344947815,
0.03385714441537857,
0.045524705201387405,
-0.027365736663341522,
0.029762890189886093,
0.04174865782260895,
0.04510043188929558,
-0.006427766289561987,
-0.062368422746658325,
0.09800752252340317,
0.004486707970499992,
-0.04090011119842529,
-0.0238654688000679,
-0.05422234535217285,
0.0000691932873451151,
0.03126906603574753,
0.009206767193973064,
-0.048070356249809265,
0.006210325285792351,
-0.013088883832097054,
0.004136681091040373,
0.03445113077759743,
-0.04145166650414467,
0.07229645550251007,
-0.036636143922805786,
-0.014976907521486282,
0.04913104325532913,
0.029147692024707794,
-0.031396348029375076,
0.033475298434495926,
-0.016101235523819923,
-0.0078013562597334385,
-0.004892420955002308,
-0.055834587663412094,
0.04756122827529907,
0.02622019499540329,
0.04590655490756035,
0.014393528923392296,
-0.015178438276052475,
-0.04514285922050476,
0.0027683943044394255,
-0.00437268428504467,
-0.0397757813334465,
-0.014202605001628399,
-0.013258593156933784,
-0.07276315987110138,
0.04096375033259392,
-0.03589366376399994,
-0.03701799362897873,
0.02734452299773693,
0.0011680821189656854,
0.10148657858371735,
-0.009816662408411503,
-0.010087138041853905,
-0.015783030539751053,
0.004319649655371904,
0.014796590432524681,
-0.01767105422914028,
-0.00984848290681839,
-0.06720516085624695,
0.024735232815146446,
-0.04450644552707672,
0.01533754076808691,
0.048070356249809265,
0.033411655575037,
0.00872945785522461,
0.018487783148884773,
0.004205625969916582,
-0.030272020027041435,
0.03572395443916321,
0.010267455130815506,
0.02369575761258602,
-0.03778168931603432,
0.05286466330289841,
-0.011190253309905529,
0.007186157628893852,
0.011190253309905529,
-0.019251476973295212,
0.016960393637418747,
-0.016960393637418747,
0.05002202093601227,
-0.021224357187747955,
-0.0412607416510582,
-0.00656035216525197,
-0.0061095599085092545,
0.09342535585165024,
0.038693878799676895,
-0.038375671952962875,
0.017713481560349464,
0.09834694117307663,
0.037293773144483566,
0.0038502956740558147,
0.026792965829372406,
-0.02477766014635563,
0.033941999077796936,
-0.05748926103115082,
-0.013852578587830067,
-0.06597476452589035,
0.044082172214984894,
0.02210472710430622,
0.0078013562597334385,
0.008856740780174732,
0.022041086107492447,
0.005711802281439304,
0.05562245100736618,
0.01304645650088787,
-0.0045609562657773495,
0.00349231343716383,
0.07289044559001923,
-0.054561764001846313,
0.03510875627398491,
-0.007164943963289261,
-0.04174865782260895,
-0.03674221411347389,
0.0063959453254938126,
0.010214420035481453,
-0.04985231161117554,
0.0004060444189235568,
0.003171455580741167,
0.03082357905805111,
-0.021489528939127922,
-0.019750000908970833,
0.0023467710707336664,
0.0114448182284832,
-0.019972745329141617,
0.018859023228287697,
-0.002167779952287674,
0.03608458861708641,
0.004743924830108881,
-0.07153276354074478,
0.04811278358101845,
-0.05129484832286835,
0.008692333474755287,
0.026283835992217064,
0.00456360774114728,
0.03466326743364334,
0.004120770841836929,
-0.020439447835087776,
-0.012261547148227692,
0.07798174023628235,
0.02460794895887375,
-0.041409239172935486,
0.0012423301814123988,
-0.036169443279504776,
0.04802792891860008,
0.03602094575762749,
0.05821052938699722,
0.04514285922050476,
0.041388027369976044,
0.0412607416510582,
-0.0035824719816446304,
-0.055367887020111084,
0.0384393148124218,
-0.010522020049393177,
-0.0008386060362681746,
0.058380238711833954,
-0.0055951266549527645,
-0.046161118894815445,
-0.00512046879157424,
0.035808809101581573,
-0.04484586790204048,
-0.0410061776638031,
-0.033475298434495926,
0.039033301174640656,
-0.05494360998272896,
0.023271484300494194,
0.041409239172935486,
0.009726503863930702,
-0.018869630992412567,
0.01026215124875307,
-0.031459990888834,
-0.0015128054656088352,
-0.006459586787968874,
-0.061095599085092545,
0.0024607949890196323,
0.018233217298984528,
-0.016122449189424515,
0.0033093448728322983,
0.009456029161810875,
0.004054477903991938,
0.011858485639095306,
0.023547261953353882,
-0.029508326202630997,
0.019474221393465996,
0.011582707054913044,
0.02893555536866188,
-0.07280559092760086,
0.03126906603574753,
0.06826584786176682,
-0.03907572850584984,
0.00037886432255618274,
-0.05104028061032295,
0.022168368101119995,
-0.0277900118380785,
-0.018381714820861816,
0.021998658776283264,
-0.04302148520946503,
-0.0036964958999305964,
0.02588077448308468,
0.012897959910333157,
0.019580291584134102,
-0.010590964928269386,
0.037569548934698105,
0.04323362186551094,
0.022613856941461563,
0.02844763919711113,
-0.04543985053896904,
0.029126478359103203,
0.0238654688000679,
-0.029190119355916977,
-0.01040004100650549,
0.05350107699632645,
0.04794307425618172,
0.020725833252072334,
-0.005701195448637009,
-0.009079485200345516,
0.07085392624139786,
0.024692805483937263,
-0.0036673268768936396,
-0.031353920698165894,
-0.010304578579962254,
0.01967575214803219,
-0.04128195717930794,
-0.04164259135723114,
-0.021362245082855225,
-0.053628358989953995,
0.008273362182080746,
0.03256310522556305,
-0.039648499339818954,
0.008315789513289928,
0.06495650112628937,
-0.07420569658279419,
0.00460868701338768,
-0.059822775423526764,
-0.007684680633246899,
0.012431257404386997,
-0.04387003555893898,
0.04692481458187103,
-0.027620302513241768,
-0.0076899840496480465,
0.0198348555713892,
0.028553707525134087,
0.03398442640900612,
0.0007663466967642307,
-0.02683539316058159,
-0.027747584506869316,
-0.035999733954668045,
0.04340333119034767,
0.051888830959796906,
-0.037908971309661865,
-0.013375269249081612,
-0.06771428883075714,
-0.02242293395102024,
0.013788937591016293,
0.023398766294121742,
-0.012526718899607658,
0.06313212215900421,
-0.04832492023706436,
-0.031714554876089096,
-0.002418367424979806,
0.03801503777503967,
-0.007440722547471523,
0.011349355801939964,
0.04658539593219757,
0.03481176495552063,
-0.01342830341309309,
0.008713548071682453,
0.03339044377207756,
-0.011137218214571476,
0.030144738033413887,
0.023122986778616905,
-0.003121072892099619,
-0.018498389050364494,
-0.04104860499501228,
0.028320355340838432,
0.01167816948145628,
0.0007477846811525524,
0.054731473326683044,
0.014722342602908611,
-0.057446833699941635,
-0.00679370341822505,
0.03332680091261864,
-0.014648093841969967,
-0.03462084010243416,
0.0171407088637352,
0.03602094575762749,
0.002752484055235982,
0.06847798079252243,
-0.04802792891860008,
-0.059653062373399734,
0.02732330933213234,
0.005764836445450783,
0.019898496568202972,
-0.015984561294317245,
-0.012887353077530861,
-0.02575349248945713,
-0.04930075258016586,
-0.04493072256445885,
-0.0619441494345665,
0.03294495493173599,
0.004754531662911177,
0.09257680177688599,
-0.012378223240375519,
0.029296187683939934,
0.03196912258863449,
-0.02032277174293995,
0.03288131207227707,
-0.06525349617004395,
0.0244806669652462,
-0.009524974040687084,
-0.023441193625330925,
0.022125940769910812,
-0.03050537221133709,
0.018402928486466408,
-0.02651718631386757,
0.05515575036406517,
0.01761801913380623,
0.041239529848098755,
-0.007785446010529995,
0.010559143498539925,
0.010108351707458496,
0.016323979943990707,
0.015549678355455399,
-0.014340494759380817,
0.0004004095389973372,
-0.011540279723703861,
-0.013226772658526897,
-0.03131149336695671,
0.03795139864087105,
-0.024183673784136772,
0.02269871160387993,
0.0773453339934349,
0.03294495493173599,
-0.012929780408740044,
0.05736197903752327,
-0.0061413804069161415,
-0.044888295233249664,
-0.03175698220729828,
0.0058072637766599655,
-0.014255640096962452,
-0.01002349704504013,
0.03001745603978634,
-0.029274974018335342,
-0.013226772658526897,
-0.0075467913411557674,
0.09054028242826462,
0.010840225964784622,
0.022847209125757217,
0.014796590432524681,
-0.021383458748459816,
-0.03129028156399727,
-0.0015830760821700096,
0.021850161254405975,
-0.06678088754415512,
-0.051252420991659164,
-0.010484895668923855,
-0.03226611390709877,
-0.016122449189424515,
0.018678706139326096,
0.0419820100069046,
-0.020694013684988022,
-0.007944549433887005,
0.007122516632080078,
0.015560285188257694,
0.005141682457178831,
-0.020237917080521584,
-0.0027710460126399994,
-0.02094857767224312,
0.009996979497373104,
-0.03311466425657272,
0.04070918634533882,
-0.007207371294498444,
-0.06453222781419754,
-0.028362782672047615,
0.025541353970766068,
-0.003285479499027133,
-0.03723013028502464,
0.019102981314063072,
-0.03939393162727356,
-0.030399303883314133,
-0.04543985053896904,
-0.05354350432753563,
-0.010946295224130154,
0.024056391790509224,
-0.04181230068206787,
-0.0805273950099945,
-0.01763923279941082,
-0.03126906603574753,
0.0413668118417263,
-0.07496938854455948,
0.008665816858410835,
-0.05672556534409523,
-0.06122288107872009,
0.05880451574921608,
-0.010787191800773144,
0.07055693119764328,
-0.02494736947119236,
0.02573227882385254,
-0.011084184050559998,
-0.029168905690312386,
0.07416326552629471,
-0.0005141019355505705,
-0.010734157636761665,
0.013141917996108532,
-0.004828779958188534,
0.0832427516579628,
0.011529672890901566,
0.01618609018623829,
-0.02352604828774929,
-0.010394737124443054,
0.005526181776076555,
0.09580129384994507,
0.012505505234003067,
0.009562097489833832,
-0.0016772120725363493,
-0.08875832706689835,
0.012325188145041466,
-0.017045248299837112,
-0.066823311150074,
0.0448034405708313,
0.016461869701743126,
-0.04242749884724617,
-0.02048187516629696,
0.05731955170631409,
-0.04459130018949509,
-0.049682602286338806,
-0.011943341232836246,
0.012929780408740044,
0.048876479268074036,
0.04365789517760277,
-0.04276691749691963,
0.0163451936095953,
-0.03065386787056923,
0.06007733941078186,
0.0022910849656909704,
-0.0031290280167013407,
0.007743018679320812,
0.048240065574645996,
-0.0403909794986248,
0.0032722209580242634,
0.03809989616274834,
-0.04149409383535385,
-0.04548227787017822,
0.005189413670450449,
-0.0673324391245842,
0.02846885286271572,
-0.0320751890540123,
0.0356178842484951,
0.00858626514673233,
0.033135876059532166,
0.012760070152580738
] |
10,000
|
torch.nn.modules.container
|
__iter__
| null |
@_copy_to_script_wrapper
def __iter__(self) -> Iterator[Module]:
return iter(self._modules.values())
|
(self) -> Iterator[torch.nn.modules.module.Module]
|
[
0.034689754247665405,
-0.03475965932011604,
-0.06399691849946976,
-0.0195031575858593,
-0.01767692156136036,
0.03498684614896774,
-0.009017588570713997,
0.058928895741701126,
0.0246585626155138,
0.041208285838365555,
0.0003639912174548954,
-0.018035177141427994,
-0.022806111723184586,
0.0803893581032753,
-0.04935207590460777,
-0.02133813127875328,
0.027978992089629173,
0.07780291885137558,
-0.037433478981256485,
-0.045577272772789,
-0.04617145285010338,
0.025742070749402046,
0.015675924718379974,
-0.006619015242904425,
-0.0422917939722538,
0.017930321395397186,
0.038726698607206345,
-0.004722874611616135,
0.05973278731107712,
-0.028293559327721596,
-0.0473947711288929,
-0.06186485290527344,
0.031107187271118164,
-0.01875169202685356,
0.027227526530623436,
-0.02156531997025013,
-0.03143922984600067,
0.02644110843539238,
-0.031229518353939056,
-0.006750084925442934,
0.09185358136892319,
0.0042313640005886555,
0.016925456002354622,
0.023679908365011215,
-0.007877283729612827,
0.011612767353653908,
-0.016095347702503204,
-0.0025318278931081295,
0.04742972180247307,
-0.02373233623802662,
0.045926790684461594,
0.02175755426287651,
0.04487823322415352,
-0.018681788817048073,
-0.009524391032755375,
0.09367107599973679,
0.0032483418472111225,
0.009847696870565414,
-0.007798641454428434,
0.050505489110946655,
-0.025514883920550346,
-0.044948138296604156,
0.02637120522558689,
-0.04812876135110855,
0.03771309554576874,
-0.020254623144865036,
-0.0725601315498352,
-0.03170136734843254,
-0.0016241709236055613,
0.013386575505137444,
-0.04770933836698532,
-0.008047673851251602,
0.044528715312480927,
0.022194452583789825,
-0.017589541152119637,
-0.0007760412991046906,
-0.04431900382041931,
0.0030910582281649113,
0.02285853959619999,
-0.04285102337598801,
-0.023837191984057426,
0.017117690294981003,
-0.06986884027719498,
0.03886650875210762,
-0.025672167539596558,
-0.028363462537527084,
-0.009454487822949886,
-0.03037319704890251,
-0.028363462537527084,
0.014365228824317455,
-0.06162019073963165,
0.049771498888731,
-0.012294328771531582,
0.05298707261681557,
0.019538110122084618,
-0.021390559151768684,
-0.04302578419446945,
-0.014732223935425282,
-0.058474522083997726,
0.013290458358824253,
0.0021266043186187744,
0.058544423431158066,
0.019520632922649384,
0.013631239533424377,
0.054315246641635895,
0.013945805840194225,
-0.03173632174730301,
-0.025497406721115112,
0.030740192160010338,
-0.01985267549753189,
-0.06672316789627075,
0.03771309554576874,
0.011228295974433422,
-0.042117033153772354,
0.01455746404826641,
-0.059767741709947586,
-0.022316785529255867,
-0.021670175716280937,
0.08535252511501312,
0.032749924808740616,
-0.016453605145215988,
0.08465348929166794,
0.012967153452336788,
0.0534064956009388,
0.07056787610054016,
0.025811973959207535,
0.004923848435282707,
0.01577204279601574,
0.0042750537395477295,
-0.08332531899213791,
0.007309315260499716,
-0.024518754333257675,
-0.011237034574151039,
0.01139431819319725,
0.008353502489626408,
-0.008309813216328621,
-0.023330390453338623,
0.0056447312235832214,
-0.03767814114689827,
0.033588770776987076,
-0.016986621543765068,
-0.00973410252481699,
0.013744832947850227,
0.07332907617092133,
-0.057740531861782074,
-0.06298331171274185,
-0.008432144299149513,
0.08143791556358337,
-0.022526497021317482,
-0.016549723222851753,
0.014103089459240437,
-0.009166134521365166,
0.03470723330974579,
0.06329788267612457,
-0.08318550884723663,
0.03573831170797348,
-0.004985013976693153,
0.008567582815885544,
-0.02091870829463005,
-0.05836966633796692,
-0.05015597119927406,
0.013325409963726997,
0.02617896907031536,
-0.010651590302586555,
-0.021932315081357956,
-0.007532133255153894,
0.018734214827418327,
-0.08115830272436142,
-0.01878664270043373,
0.017519637942314148,
0.003468975657597184,
-0.06123571842908859,
0.01497688703238964,
0.01676817238330841,
-0.023155629634857178,
0.04809380695223808,
-0.011464221403002739,
0.0336761511862278,
0.0015138539019972086,
0.07353878766298294,
-0.031526610255241394,
-0.03147418051958084,
-0.09772549569606781,
0.0004707583284471184,
0.026580916717648506,
0.02624887228012085,
0.01726623624563217,
-0.01493319682776928,
0.036594633013010025,
-0.024221662431955338,
0.004823361523449421,
0.021617747843265533,
0.058963846415281296,
-0.001111907185986638,
-0.04956178739666939,
-0.012163259088993073,
-0.06668821722269058,
0.0032090209424495697,
-0.05151909217238426,
0.04005487263202667,
-0.0683659091591835,
-0.022753683850169182,
0.003289847169071436,
0.04400443658232689,
-0.02308572642505169,
0.032784879207611084,
-0.0028485795482993126,
-0.03392081335186958,
0.001933276653289795,
-0.00041286926716566086,
-0.005592303350567818,
-0.05634245648980141,
0.032714974135160446,
0.004281606990844011,
0.019101209938526154,
0.008510786108672619,
0.008873412385582924,
-0.07906118780374527,
0.03666453808546066,
0.001458149403333664,
0.0141729936003685,
0.036524731665849686,
-0.021093469113111496,
-0.030093582347035408,
-0.02198474109172821,
-0.02308572642505169,
-0.011167130433022976,
-0.01577204279601574,
-0.045087944716215134,
-0.024221662431955338,
0.0864010825753212,
0.007890390232205391,
-0.0014341200003400445,
-0.0016176174394786358,
0.03456742316484451,
0.003049552906304598,
-0.02553235925734043,
0.006112212780863047,
-0.012294328771531582,
0.032208170741796494,
-0.01081761159002781,
0.05592303350567818,
0.017860418185591698,
0.03224312141537666,
-0.05015597119927406,
0.01320307794958353,
0.014539988711476326,
0.0041985963471233845,
-0.0030146008357405663,
0.03393828868865967,
0.07647474855184555,
-0.04064905270934105,
-0.037363577634096146,
-0.0018262364901602268,
-0.007580192293971777,
-0.00017598825797904283,
0.0002587259514257312,
-0.013587549328804016,
0.02624887228012085,
-0.006186485290527344,
0.0056447312235832214,
-0.06050173193216324,
-0.009550604969263077,
0.018297316506505013,
0.01480212714523077,
0.021425511687994003,
0.0034165477845817804,
0.046311259269714355,
0.006203961558640003,
0.032540213316679,
0.07689417153596878,
-0.008327288553118706,
-0.031718846410512924,
0.035266462713479996,
-0.03105475939810276,
0.018035177141427994,
0.007217566482722759,
-0.013613763265311718,
-0.030530480667948723,
0.005976774264127016,
0.06766686588525772,
0.015518641099333763,
-0.03732862323522568,
-0.0288003608584404,
-0.007313684094697237,
-0.019905103370547295,
-0.006007357034832239,
0.0123292813077569,
0.021775031462311745,
0.012198211625218391,
0.058614328503608704,
0.03051300346851349,
0.02205464616417885,
-0.05864927917718887,
0.03837718069553375,
-0.0015433445805683732,
-0.08136801421642303,
-0.0329945906996727,
0.046346213668584824,
0.01794779859483242,
0.014968149363994598,
-0.07207080721855164,
-0.050994813442230225,
0.024064380675554276,
-0.08353503048419952,
-0.0011086304439231753,
0.04984140396118164,
0.039460688829422,
-0.06340273469686508,
0.03607035428285599,
0.008392823860049248,
-0.006959795951843262,
0.030530480667948723,
0.0020206563640385866,
-0.006033570971339941,
-0.09017588943243027,
0.022806111723184586,
0.004845206625759602,
-0.010214691050350666,
0.055678367614746094,
-0.09926338493824005,
0.04596174135804176,
0.07941070199012756,
-0.013832212425768375,
0.03093242645263672,
0.02130318060517311,
0.03984516113996506,
0.017397304996848106,
0.01163898129016161,
-0.026388680562376976,
-0.04435395449399948,
-0.004181120544672012,
0.027262479066848755,
0.0627036988735199,
0.012678800150752068,
0.060187164694070816,
0.009742841124534607,
-0.023714860901236534,
0.022928442806005478,
-0.07969032227993011,
0.017895370721817017,
-0.022089596837759018,
-0.01057294849306345,
-0.013692405074834824,
-0.05973278731107712,
0.006649598013609648,
-0.0018819411052390933,
0.04396948218345642,
0.012757441960275173,
-0.06228427588939667,
0.031753797084093094,
0.021705126389861107,
0.014216682873666286,
0.028975121676921844,
0.00868554599583149,
-0.004259762354195118,
0.0061515336856245995,
-0.00908749271184206,
-0.04529765620827675,
-0.007479705382138491,
0.07276984304189682,
0.04515784978866577,
-0.032819829881191254,
0.00853700004518032,
-0.018472077324986458,
-0.055189043283462524,
0.005954929161816835,
-0.016672054305672646,
0.08661079406738281,
-0.03428781032562256,
-0.016252631321549416,
0.01820993795990944,
-0.029359592124819756,
-0.05190356448292732,
-0.038237374275922775,
-0.040823813527822495,
0.015868160873651505,
0.029586778953671455,
-0.06245903670787811,
0.02236921340227127,
0.0725601315498352,
0.007020961958914995,
-0.009821482934057713,
-0.005391329992562532,
0.00207199202850461,
-0.0232430100440979,
0.05676187574863434,
-0.03245283290743828,
-0.004919479135423899,
0.009314680472016335,
-0.011280723847448826,
-0.06057163327932358,
-0.07130186259746552,
0.050924912095069885,
-0.008191850036382675,
-0.04690544307231903,
0.035685885697603226,
0.006767560727894306,
-0.04005487263202667,
-0.014793389476835728,
0.06633869558572769,
-0.0003787365567404777,
0.016217678785324097,
0.03047805279493332,
0.011708884499967098,
-0.08395445346832275,
0.05630750209093094,
-0.007095234468579292,
0.04358501359820366,
-0.023138154298067093,
0.011315676383674145,
-0.024745941162109375,
-0.05375601351261139,
-0.07794272899627686,
0.009244776330888271,
-0.027157623320817947,
0.010730232112109661,
-0.046695731580257416,
0.02776928059756756,
0.0069554271176457405,
0.07521647959947586,
-0.039076220244169235,
-0.0010387266520410776,
-0.007348636165261269,
-0.00891273282468319,
-0.013840950094163418,
-0.020097339525818825,
0.007859807461500168,
-0.035109177231788635,
0.008052042685449123,
-0.04106847569346428,
0.0015488058561459184,
-0.022334260866045952,
-0.000795701751485467,
0.05197346955537796,
-0.04529765620827675,
-0.0538608692586422,
0.007925341837108135,
0.011612767353653908,
0.07367859780788422,
0.027577044442296028,
0.0399150624871254,
0.03648977726697922,
-0.03448004275560379,
0.03327420353889465,
0.004148352891206741,
-0.02224688045680523,
0.07186109572649002,
0.0056185172870755196,
-0.01363997720181942,
-0.055258944630622864,
0.010459354147315025,
0.06829600036144257,
-0.05361620709300041,
0.013998233713209629,
-0.013875902630388737,
-0.01885654777288437,
-0.03308196738362312,
-0.011184606701135635,
0.013727356679737568,
0.010931205004453659,
-0.003058290807530284,
0.036594633013010025,
-0.027489665895700455,
0.05365115776658058,
-0.02586440183222294,
0.015754567459225655,
0.00031866299104876816,
0.0018710186704993248,
0.05700654163956642,
0.0502258725464344,
0.027175098657608032,
0.0025449348613619804,
-0.08842829614877701,
-0.013229291886091232,
0.03834223002195358,
-0.026336252689361572,
0.009236038662493229,
0.004963168874382973,
-0.04742972180247307,
-0.032522737979888916,
-0.03774804621934891,
0.029254736378788948,
0.02614401839673519,
-0.04610154777765274,
-0.022613875567913055,
0.05151909217238426,
-0.05186861380934715,
0.023679908365011215,
-0.01931092143058777,
0.0371888168156147,
-0.00367213343270123,
-0.025252744555473328,
0.027157623320817947,
0.03862184286117554,
-0.005360746756196022,
0.01363997720181942,
0.033466439694166183,
0.03638492152094841,
-0.028345987200737,
-0.008598166517913342,
0.04722001031041145,
0.025497406721115112,
-0.00313911703415215,
0.006863678339868784,
0.03834223002195358,
0.007628250867128372,
-0.02831103466451168,
-0.01684681326150894,
-0.0014155517565086484,
0.03753833472728729,
0.0076151443645358086,
-0.05414048582315445,
-0.014828341081738472,
0.04438890516757965,
-0.06619889289140701,
-0.04005487263202667,
0.06570956110954285,
-0.02712267078459263,
0.001222224091179669,
0.028555698692798615,
-0.034200429916381836,
-0.00775495171546936,
-0.06983388960361481,
-0.01988762803375721,
-0.009533129632472992,
-0.040404390543699265,
0.007706892676651478,
0.003062659874558449,
0.015728352591395378,
0.03402566909790039,
-0.00882098451256752,
-0.004814623389393091,
-0.00962050911039114,
-0.04942198097705841,
-0.009061278775334358,
0.04959673807024956,
-0.009131182916462421,
-0.004465104546397924,
0.05200842022895813,
0.0033684889785945415,
0.00979526899755001,
0.05082005634903908,
0.004137430805712938,
0.026685772463679314,
0.03687424957752228,
-0.06448624283075333,
-0.0037900961469858885,
-0.05169385299086571,
0.015020577237010002,
-0.01981772482395172,
-0.03600045293569565,
-0.04487823322415352,
0.009183610789477825,
0.019730344414711,
-0.03579074144363403,
0.008698652498424053,
-0.03173632174730301,
-0.03493442013859749,
0.04903750866651535,
0.030111057683825493,
0.007256887387484312,
-0.060606587678194046,
-0.02743723802268505,
0.0038862137589603662,
0.0176856592297554,
0.027070242911577225,
0.03138680011034012,
-0.029621731489896774,
0.00960303284227848,
0.032103314995765686,
0.02754209376871586,
0.0246585626155138,
-0.010564209893345833,
0.0636124461889267,
0.06637364625930786,
-0.0016198018565773964,
-0.007776796817779541,
0.026528488844633102,
-0.07689417153596878,
0.009297204203903675,
-0.013945805840194225,
0.06431148946285248,
-0.04819866269826889,
0.004679184872657061,
-0.026912959292531013,
-0.0493171252310276,
0.04438890516757965,
0.05428029224276543,
-0.0025405657943338156,
-0.00628697220236063,
0.04089371860027313,
-0.012626372277736664,
-0.051763758063316345,
0.029726587235927582,
-0.04243160039186478,
-0.04945693165063858,
-0.014146779663860798,
-0.028415890410542488,
0.031648941338062286,
0.029848918318748474,
0.0013401866890490055,
0.0362800657749176,
0.024553706869482994,
0.019573060795664787,
-0.03121204301714897,
-0.002383282408118248,
-0.03112466260790825,
0.032260600477457047,
0.06857562065124512,
-0.05043558403849602,
-0.04225683957338333,
0.003624074626713991,
-0.07577570527791977,
0.015667187049984932,
-0.001862280652858317,
-0.011271986179053783,
0.011848692782223225,
0.039495643228292465,
0.03486451506614685,
0.0015171306440606713,
0.030268341302871704,
-0.048827797174453735,
0.00920108612626791,
-0.017440995201468468,
-0.030233388766646385,
-0.016322534531354904,
-0.00533453281968832,
0.04529765620827675,
-0.0037507752422243357,
0.0010370882228016853,
-0.05400067940354347,
0.09073512256145477,
-0.042920928448438644,
0.02873045764863491,
0.010843825526535511,
0.03386838734149933,
-0.029079977422952652,
-0.0251129362732172,
0.04008982330560684,
0.03131689876317978,
-0.048443324863910675,
-0.008628749288618565,
-0.034427616745233536,
-0.038307275623083115,
-0.0017224730690941215,
-0.0032439727801829576,
0.009769055061042309,
0.04068400710821152,
-0.08814867585897446,
-0.01446134690195322,
0.04180246591567993,
-0.03521403297781944,
0.057321108877658844,
-0.02572459541261196,
-0.06294836103916168,
-0.016907978802919388,
-0.002520905341953039,
0.005810752511024475,
-0.014129303395748138,
0.02437894605100155,
0.00815252959728241,
0.03348391503095627,
-0.0380975641310215,
0.04833846911787987,
-0.01570213958621025,
0.002076361095532775,
0.029499398544430733,
0.012067141942679882,
0.003774804761633277,
0.0012506224447861314,
-0.0019758744165301323,
-0.043410252779722214,
-0.047115154564380646,
-0.06937950849533081,
0.015160384587943554,
-0.02182745933532715,
0.030233388766646385,
0.004032575059682131,
-0.013386575505137444,
-0.07871166616678238,
-0.0005043449345976114,
-0.040019918233156204,
0.05274241045117378,
-0.030967378988862038,
0.04770933836698532,
-0.023452721536159515,
-0.01917111501097679,
0.01630505919456482,
-0.058928895741701126,
0.0014177362900227308,
0.019870152696967125,
0.02340029366314411,
-0.0035847537219524384,
0.05927841365337372,
0.03690920025110245,
0.021495414897799492,
-0.06312312185764313,
-0.005657838191837072,
-0.004985013976693153,
0.03820241987705231,
-0.03135184943675995,
0.02666829526424408,
0.00761951319873333,
0.019835200160741806,
0.004596174228936434,
-0.02469351328909397,
0.033746056258678436,
-0.011560339480638504,
0.013482693582773209,
0.007575823459774256,
0.05078510195016861,
-0.0017213808605447412,
0.010730232112109661,
0.038272324949502945,
-0.06616393476724625,
0.0004704852763097733,
0.02686053141951561,
0.009699150919914246,
-0.0179128460586071,
0.018419649451971054,
-0.010494306683540344,
0.021582795307040215,
0.06210951879620552,
0.04861808568239212,
0.019765296950936317,
-0.034427616745233536,
0.03683929890394211,
0.05253269895911217,
0.07105720043182373,
-0.026231396943330765,
-0.06277360022068024,
-0.07941070199012756,
0.011341890320181847,
0.019520632922649384,
-0.043340351432561874,
0.0014843633398413658,
0.06186485290527344,
-0.01775556243956089,
-0.058090049773454666,
-0.0024335256312042475,
-0.021914837881922722,
-0.011376841925084591,
0.04071895778179169,
0.012215686962008476,
-0.02198474109172821,
-0.002951250644400716,
-0.06770182400941849,
0.03563345596194267,
-0.0027393547352403402,
0.042885974049568176,
0.03547617420554161,
-0.0006558941677212715,
0.017039049416780472,
0.06092115491628647,
0.007335529197007418,
0.030233388766646385,
-0.03138680011034012,
-0.02731490507721901,
-0.024623610079288483,
-0.03463732823729515,
-0.011717623099684715,
0.026458583772182465,
-0.03521403297781944,
0.06403186917304993,
0.0003446038463152945,
0.007628250867128372,
-0.05536380037665367
] |
10,001
|
torch.nn.modules.container
|
__len__
| null |
@_copy_to_script_wrapper
def __len__(self) -> int:
return len(self._modules)
|
(self) -> int
|
[
-0.012430834583938122,
-0.02242034301161766,
-0.023250725120306015,
0.016732217743992805,
0.017388220876455307,
0.06556704640388489,
-0.012405922636389732,
0.0259245578199625,
-0.029511813074350357,
0.010163888335227966,
0.028465529903769493,
-0.040057677775621414,
0.00019098809571005404,
0.005517895333468914,
-0.03524145483970642,
-0.01757090538740158,
0.06330840289592743,
0.05038764327764511,
0.0035332797560840845,
-0.049756553024053574,
-0.04118699952960014,
0.041950952261686325,
0.03012629598379135,
-0.024861669167876244,
-0.04058912396430969,
0.01069533359259367,
0.0482618622481823,
0.008116994053125381,
0.05656569451093674,
-0.0018548681400716305,
-0.07327300310134888,
-0.051649823784828186,
0.02936234511435032,
0.029378952458500862,
0.03382980450987816,
-0.012513872236013412,
0.012978887185454369,
0.020294561982154846,
-0.032152432948350906,
-0.020161699503660202,
0.05759536847472191,
0.0002857036597561091,
0.02801712416112423,
0.014631349593400955,
0.0053019956685602665,
-0.004039813298732042,
-0.024662375450134277,
-0.012464049272239208,
-0.023516448214650154,
-0.019198456779122353,
0.02316768653690815,
0.053044870495796204,
0.039360154420137405,
0.018235212191939354,
0.002717428607866168,
0.10329964756965637,
0.044209592044353485,
0.05158339440822601,
-0.040323399007320404,
0.007884486578404903,
-0.030940072610974312,
0.00653096241876483,
0.052181269973516464,
-0.07480090111494064,
0.04935796931385994,
0.006315063219517469,
-0.05948863923549652,
0.01406668871641159,
0.03258423134684563,
0.013626585714519024,
-0.027651755139231682,
0.02763514779508114,
0.011367944069206715,
0.04670074209570885,
0.015553073957562447,
0.0020012231543660164,
-0.005094400141388178,
-0.004023205954581499,
0.037965111434459686,
-0.025359898805618286,
0.009059478528797626,
-0.028913937509059906,
-0.030740780755877495,
0.06430486589670181,
0.02149031311273575,
-0.020543675869703293,
-0.01403347309678793,
-0.007315674796700478,
-0.01322800200432539,
-0.01735500618815422,
-0.0629098191857338,
0.08303830772638321,
-0.003547811647877097,
0.02413093112409115,
0.008391020819544792,
-0.055303510278463364,
-0.014564918354153633,
-0.055569231510162354,
-0.03098989464342594,
-0.015262439846992493,
-0.024496300145983696,
0.04068876802921295,
0.029179660603404045,
-0.010097458027303219,
0.0571303516626358,
0.009408240206539631,
-0.014556614682078362,
-0.023998070508241653,
-0.007211876567453146,
-0.01821860298514366,
-0.01430749986320734,
-0.0010083963861688972,
0.011949212290346622,
-0.037533313035964966,
0.026057420298457146,
-0.04527248442173004,
-0.011957515962421894,
-0.015320567414164543,
0.062478020787239075,
0.032949600368738174,
0.05085265636444092,
0.09526154398918152,
-0.004112471826374531,
-0.024230577051639557,
0.10595687478780746,
0.047830063849687576,
-0.009291986003518105,
-0.0024475539103150368,
-0.001227928907610476,
-0.06191335991024971,
0.03690222278237343,
-0.027684969827532768,
-0.037533313035964966,
0.010363180190324783,
0.026489218696951866,
0.011293209157884121,
-0.009740392677485943,
0.01750447414815426,
-0.04208381101489067,
0.0017759817419573665,
-0.025243643671274185,
0.009923077188432217,
0.03856298699975014,
0.047763630747795105,
-0.028199808672070503,
0.014797425828874111,
0.005605085752904415,
0.06686244159936905,
-0.029378952458500862,
-0.005713035352528095,
0.029993435367941856,
-0.04590357467532158,
-0.009773608297109604,
0.012679949402809143,
-0.061016544699668884,
0.035208240151405334,
-0.0064852917566895485,
-0.030574703589081764,
-0.00891831424087286,
-0.10183817893266678,
-0.044276025146245956,
-0.0097237853333354,
0.01583540439605713,
-0.02806694619357586,
-0.04288097843527794,
-0.027884261682629585,
0.043080274015665054,
-0.05437348037958145,
-0.050520505756139755,
0.07367158681154251,
0.02457933872938156,
-0.009167429059743881,
0.029495205730199814,
0.013776054605841637,
-0.004803766030818224,
0.05178268626332283,
-0.03730080649256706,
-0.012995494529604912,
0.00014285182987805456,
0.033763375133275986,
-0.048793308436870575,
-0.05025478079915047,
-0.05108516290783882,
0.01177483145147562,
0.05782787501811981,
0.04284776374697685,
-0.0025139846839010715,
0.003591406624764204,
0.036337561905384064,
0.024263791739940643,
-0.025393113493919373,
0.014207853935658932,
0.054672420024871826,
-0.007614612579345703,
-0.028531961143016815,
-0.03969230875372887,
-0.03813118860125542,
-0.003720116103067994,
-0.0641055703163147,
0.005480527877807617,
-0.07732526957988739,
-0.008104538545012474,
-0.002603250788524747,
-0.028316061943769455,
0.012596910819411278,
0.014996717683970928,
-0.005775313824415207,
0.03210260719060898,
-0.03039201907813549,
-0.009790215641260147,
0.016150949522852898,
-0.07407017052173615,
0.0578610897064209,
0.04520605131983757,
0.010919537395238876,
-0.03471001237630844,
0.019115418195724487,
-0.06138191372156143,
0.04384422302246094,
0.002642693929374218,
0.035972192883491516,
0.04779684916138649,
-0.04972333833575249,
-0.008395172655582428,
-0.03756652772426605,
-0.030425233766436577,
-0.009989508427679539,
0.03922729566693306,
0.008984744548797607,
-0.05291200801730156,
0.06380663067102432,
0.022337304428219795,
-0.00548468017950654,
0.0400908924639225,
0.026439396664500237,
-0.02564222738146782,
-0.012912455946207047,
-0.009308594278991222,
-0.007647827733308077,
-0.015270744450390339,
-0.061946574598550797,
0.019414355978369713,
0.03896157070994377,
0.03643720597028732,
-0.02564222738146782,
-0.01034657284617424,
-0.02059349976480007,
0.003734647762030363,
-0.014540007337927818,
0.010786675848066807,
0.045073192566633224,
-0.03238493949174881,
-0.08197541534900665,
-0.025525974109768867,
-0.017255360260605812,
0.022221049293875694,
0.007253395859152079,
-0.027983907610177994,
-0.027684969827532768,
-0.02300160937011242,
-0.003167911199852824,
-0.06078403815627098,
-0.021672997623682022,
-0.023134471848607063,
-0.02069314569234848,
0.006468683946877718,
0.010222014971077442,
0.045936789363622665,
-0.051915548741817474,
0.01702285185456276,
0.01263843011111021,
0.003238493809476495,
-0.027070486918091774,
-0.021473705768585205,
-0.06467023491859436,
-0.0225698109716177,
0.0211249440908432,
0.0071745095774531364,
0.012297973036766052,
0.023948246613144875,
0.10256890952587128,
0.006041036453098059,
-0.02559240534901619,
-0.048627231270074844,
-0.01730518229305744,
0.02657225728034973,
0.0037574833258986473,
-0.0059081753715872765,
-0.058226458728313446,
0.008835275657474995,
0.01627550832927227,
0.031654201447963715,
0.05553601682186127,
-0.006207113154232502,
0.004741487093269825,
-0.0005210653762333095,
-0.06377341598272324,
-0.00455049891024828,
0.028980368748307228,
0.019646862521767616,
-0.07181152701377869,
-0.04773041605949402,
-0.08748915791511536,
-0.010687029920518398,
-0.0856955274939537,
-0.03583933040499687,
0.05271271616220474,
-0.0034647732973098755,
-0.006771773565560579,
0.02311786450445652,
0.005152526777237654,
0.027817832306027412,
0.05367596074938774,
0.03471001237630844,
0.0813775360584259,
-0.013626585714519024,
0.02301821857690811,
0.003574799047783017,
-0.025343289598822594,
0.056399617344141006,
-0.06995146721601486,
0.027552109211683273,
0.06809140741825104,
-0.022619634866714478,
0.04075520113110542,
-0.0035415836609899998,
0.06948645412921906,
-0.0019482861971482635,
0.01870022527873516,
-0.023798778653144836,
-0.08383547514677048,
0.0216065663844347,
0.05012192204594612,
0.007884486578404903,
-0.003904876299202442,
0.024429868906736374,
0.0008080665138550103,
-0.04899260029196739,
0.0018372224876657128,
-0.02801712416112423,
0.025509366765618324,
-0.011102220974862576,
-0.04088805988430977,
0.009640746749937534,
0.0056798201985657215,
-0.029246089980006218,
0.03759974241256714,
0.04616929590702057,
0.02290196344256401,
-0.07021719217300415,
0.028216416016221046,
0.023798778653144836,
-0.02348323166370392,
0.026090634986758232,
0.025343289598822594,
-0.016732217743992805,
0.04015732556581497,
0.023134471848607063,
-0.013842484913766384,
0.016034696251153946,
0.02467898465692997,
0.037267591804265976,
-0.028415707871317863,
0.010687029920518398,
0.000825712108053267,
-0.03404570370912552,
0.01355185080319643,
-0.04175166040658951,
0.03072417341172695,
-0.04288097843527794,
-0.01865040324628353,
-0.024263791739940643,
-0.006302607245743275,
-0.05998687073588371,
-0.012480657547712326,
-0.01287924125790596,
-0.0066513679921627045,
-0.0031201643869280815,
-0.08164326101541519,
-0.02721995674073696,
0.004733183421194553,
0.01357676275074482,
-0.05410775914788246,
-0.03318210691213608,
-0.023632701486349106,
0.03869584947824478,
-0.019746508449316025,
-0.03027576580643654,
0.0001764563930919394,
0.02301821857690811,
0.025675443932414055,
-0.01204055454581976,
-0.07480090111494064,
0.03167080879211426,
-0.006273543927818537,
0.012771290726959705,
-0.005343514960259199,
0.035540394484996796,
-0.011384551413357258,
0.021789250895380974,
0.09977882355451584,
-0.023151079192757607,
0.028000516816973686,
0.0688885748386383,
-0.019812939688563347,
-0.027768008410930634,
0.04869366064667702,
-0.016607660800218582,
0.010844802483916283,
-0.03417856618762016,
0.007552333641797304,
0.007685195188969374,
-0.061182621866464615,
-0.049756553024053574,
-0.014224461279809475,
-0.028814291581511497,
0.010006115771830082,
-0.06380663067102432,
0.05427383631467819,
-0.01572745479643345,
0.06486952304840088,
0.004012825898826122,
0.027950692921876907,
0.03809797391295433,
0.013535243459045887,
0.022752495482563972,
-0.050786226987838745,
0.01730518229305744,
-0.018185388296842575,
0.0011947136372327805,
-0.039625879377126694,
0.04882652312517166,
-0.010944448411464691,
0.020942259579896927,
0.0225698109716177,
-0.017604120075702667,
-0.0009191302233375609,
-0.012870937585830688,
0.004338751547038555,
0.08841918408870697,
0.019962407648563385,
0.03603862226009369,
0.03236833214759827,
0.011700097471475601,
0.032949600368738174,
-0.01653292588889599,
-0.007132990285754204,
0.0006191543652676046,
-0.024180755019187927,
-0.03603862226009369,
-0.06015294790267944,
0.02316768653690815,
0.033647119998931885,
-0.04915867745876312,
-0.01638345792889595,
-0.03524145483970642,
-0.07380444556474686,
0.003419102169573307,
-0.03389623388648033,
-0.03657006844878197,
-0.03617148473858833,
0.040821630507707596,
0.03640399128198624,
-0.004002446308732033,
0.04244918003678322,
-0.04258204251527786,
0.005252172704786062,
-0.029329128563404083,
0.016898294910788536,
0.08443334698677063,
0.052015192806720734,
0.013659801334142685,
0.009956292808055878,
-0.061946574598550797,
0.047663986682891846,
0.026439396664500237,
-0.011517412960529327,
0.027552109211683273,
0.006007821299135685,
-0.019812939688563347,
-0.02715352550148964,
-0.0118827810510993,
0.011376247741281986,
0.036237914115190506,
-0.06307589262723923,
-0.010778372175991535,
-0.011891084723174572,
-0.05071979761123657,
0.037533313035964966,
-0.020294561982154846,
0.018135566264390945,
-0.021839074790477753,
-0.031056325882673264,
-0.011417767032980919,
0.049490828067064285,
-0.0049864500761032104,
0.004230801481753588,
0.027950692921876907,
0.01929810270667076,
-0.023881815373897552,
-0.04208381101489067,
0.03809797391295433,
0.01572745479643345,
-0.021756036207079887,
-0.016018088907003403,
0.0012652961304411292,
0.036237914115190506,
-0.010520952753722668,
-0.025293467566370964,
-0.0031513036228716373,
-0.0009539024904370308,
0.024811845272779465,
-0.034776441752910614,
0.04623572900891304,
0.0770595446228981,
-0.009524493478238583,
-0.020726360380649567,
0.06995146721601486,
0.0024973771069198847,
0.010819891467690468,
0.016250595450401306,
-0.022885356098413467,
-0.0065060509368777275,
-0.13139981031417847,
-0.0189659483730793,
-0.02182246558368206,
-0.020111877471208572,
0.005061184521764517,
0.026389572769403458,
0.078255295753479,
0.025791697204113007,
-0.00401490181684494,
0.015827100723981857,
-0.006032732781022787,
0.011027486994862556,
0.03766617551445961,
-0.011143740266561508,
-0.019680077210068703,
0.0008931807824410498,
0.025741875171661377,
-0.013834181241691113,
-0.02957824431359768,
0.06875571608543396,
-0.04284776374697685,
-0.037533313035964966,
0.06533453613519669,
-0.008528034202754498,
-0.0020292485132813454,
-0.033165499567985535,
0.013759447261691093,
-0.031704023480415344,
-0.01605130359530449,
0.005883263889700174,
0.002312616677954793,
0.06463701277971268,
-0.02931252121925354,
0.007049952168017626,
-0.07340586185455322,
0.004708271939307451,
0.039094433188438416,
0.028747860342264175,
-0.03992481529712677,
0.004870196338742971,
-0.01633363403379917,
-0.050520505756139755,
0.008079626597464085,
0.019115418195724487,
0.021307628601789474,
-0.04829507693648338,
-0.0039816866628825665,
-0.02263624221086502,
0.05108516290783882,
-0.019796332344412804,
-0.03243476152420044,
0.052812360227108,
0.023898424580693245,
-0.01115204393863678,
0.02549275942146778,
0.03298281505703926,
-0.048959385603666306,
0.0006030657095834613,
0.002734036184847355,
0.03411213681101799,
-0.01166688185185194,
0.0002966024330817163,
-0.011832958087325096,
-0.03417856618762016,
0.01080328319221735,
0.0337301604449749,
0.014697779901325703,
-0.04278133437037468,
0.07128007709980011,
0.002115400740876794,
-0.05643283203244209,
0.03803154453635216,
0.0345771498978138,
-0.04165201261639595,
0.005443160887807608,
0.012447441928088665,
0.01745465211570263,
0.036071840673685074,
0.0023437561467289925,
-0.008851883001625538,
0.05341023579239845,
0.028598392382264137,
-0.012970583513379097,
-0.02321751043200493,
0.006780077703297138,
0.01951400190591812,
0.061016544699668884,
-0.03730080649256706,
-0.05686463043093681,
0.007514966651797295,
-0.10980985313653946,
-0.029013583436608315,
0.009076086804270744,
-0.01810234971344471,
-0.001928564626723528,
0.09120927006006241,
0.07247582823038101,
-0.02926269918680191,
0.07001789659261703,
-0.02235391177237034,
-0.001994995167478919,
-0.04075520113110542,
0.020277954638004303,
-0.03550717979669571,
0.041087351739406586,
0.00372426793910563,
0.0003277418145444244,
-0.012945671565830708,
-0.07872030884027481,
0.12017303705215454,
-0.04029018431901932,
0.033763375133275986,
0.002534744329750538,
-0.0028087706305086613,
-0.018417896702885628,
0.025077568367123604,
0.047663986682891846,
0.06181371212005615,
-0.052779145538806915,
-0.035972192883491516,
-0.025692051276564598,
-0.04434245452284813,
-0.019763115793466568,
0.015079756267368793,
-0.001305777346715331,
0.002325072418898344,
-0.08310473710298538,
-0.021207982674241066,
0.009042871184647083,
-0.010878018103539944,
0.04470782354474068,
-0.013153267093002796,
-0.06573311984539032,
0.01567763090133667,
-0.020626714453101158,
-0.023616094142198563,
-0.06520167738199234,
0.013759447261691093,
-0.014921983703970909,
0.03286655992269516,
-0.033713553100824356,
0.08516408503055573,
-0.03843012824654579,
0.04580392688512802,
-0.0061697461642324924,
0.016283812001347542,
-0.0020790714770555496,
0.0013556003104895353,
-0.007436079904437065,
-0.020975476130843163,
-0.022885356098413467,
-0.04251561313867569,
0.021241197362542152,
-0.028382493183016777,
0.04686681926250458,
0.0023831992875784636,
-0.02899697609245777,
-0.04959047585725784,
0.001492613460868597,
-0.06380663067102432,
-0.026655295863747597,
-0.0014469424495473504,
0.06922072917222977,
-0.05158339440822601,
0.002773479325696826,
0.06035223975777626,
-0.026472611352801323,
-0.028531961143016815,
0.033979274332523346,
0.02165639027953148,
0.017222143709659576,
0.036769360303878784,
-0.015968265011906624,
0.02763514779508114,
-0.02780122496187687,
-0.019696686416864395,
-0.024612553417682648,
0.03313228487968445,
-0.005725490860641003,
0.01478912215679884,
-0.017521081492304802,
-0.035108596086502075,
0.0033339879009872675,
-0.06008651852607727,
0.011052398011088371,
-0.04613608121871948,
0.014564918354153633,
0.0020489702001214027,
0.05749572068452835,
0.04799614101648331,
-0.006775925401598215,
-0.022287480533123016,
-0.06516846269369125,
-0.011334728449583054,
0.06513524800539017,
0.005638300906866789,
-0.01891612634062767,
0.0008142943843267858,
0.04670074209570885,
0.055901385843753815,
0.0504208579659462,
0.039526231586933136,
-0.003574799047783017,
-0.017587512731552124,
-0.01430749986320734,
0.06613170355558395,
0.031239010393619537,
-0.012430834583938122,
-0.07526592165231705,
-0.06383984535932541,
0.008876794949173927,
0.04115378484129906,
-0.0000327287707477808,
0.02619028091430664,
0.022818926721811295,
-0.027900870889425278,
-0.051915548741817474,
0.05656569451093674,
-0.035640038549900055,
0.00417475076392293,
0.012090377509593964,
0.056233540177345276,
-0.026439396664500237,
0.0021486161276698112,
-0.008337046019732952,
0.015503250993788242,
-0.021789250895380974,
0.04484068602323532,
0.043246347457170486,
-0.0022150466684252024,
-0.028864113613963127,
0.0525798536837101,
0.02758532389998436,
0.014008562080562115,
-0.014689476229250431,
-0.04251561313867569,
-0.02565883658826351,
-0.01476421020925045,
-0.025359898805618286,
-0.00445915712043643,
-0.0042141941376030445,
0.08669199049472809,
0.01795288175344467,
-0.002426794497296214,
-0.03500894829630852
] |
10,002
|
torch.nn.modules.container
|
__mul__
| null |
def __mul__(self, other: int) -> 'Sequential':
if not isinstance(other, int):
raise TypeError(f"unsupported operand type(s) for *: {type(self)} and {type(other)}")
elif (other <= 0):
raise ValueError(f"Non-positive multiplication factor {other} for {type(self)}")
else:
combined = Sequential()
offset = 0
for _ in range(other):
for module in self:
combined.add_module(str(offset), module)
offset += 1
return combined
|
(self, other: int) -> torch.nn.modules.container.Sequential
|
[
-0.010536322370171547,
-0.026007939130067825,
0.006661760620772839,
0.0525839701294899,
-0.048997893929481506,
-0.009897219017148018,
-0.08521372824907303,
-0.03671291470527649,
-0.02362905628979206,
0.021214667707681656,
0.010873626917600632,
0.0007544965483248234,
0.056525103747844696,
0.08897732943296432,
-0.0038679041899740696,
0.030872222036123276,
0.028777385130524635,
-0.03731651231646538,
0.009329128079116344,
0.015808921307325363,
-0.02696659415960312,
0.06430085748434067,
0.037209995090961456,
0.03275402635335922,
-0.01793038845062256,
0.09039755910634995,
0.009950477629899979,
-0.002338939346373081,
-0.04573136568069458,
-0.04068955406546593,
0.02693108841776848,
-0.001781943254172802,
-0.04874935373663902,
-0.014761502854526043,
-0.019208593294024467,
-0.00888086762279272,
-0.06490445137023926,
0.04718710109591484,
-0.09451622515916824,
0.03696145489811897,
0.10424479097127914,
-0.05666712671518326,
0.05478532612323761,
-0.013288015499711037,
-0.029327724128961563,
-0.013785095885396004,
0.00392116280272603,
-0.010199017822742462,
-0.00200607324950397,
-0.040583036839962006,
0.011903292499482632,
-0.014104646630585194,
0.06110534444451332,
-0.02501377835869789,
0.0028227046132087708,
0.09629151225090027,
0.01865825615823269,
0.000021532276150537655,
-0.03420976176857948,
0.009142722934484482,
-0.050844188779592514,
-0.021889276802539825,
0.0220845565199852,
0.005720858927816153,
0.022013546898961067,
-0.009142722934484482,
-0.06110534444451332,
-0.002645176136866212,
-0.006062601692974567,
0.05755477026104927,
-0.007465077564120293,
-0.028156034648418427,
-0.02153421938419342,
0.01659892313182354,
0.00727867241948843,
0.014646109193563461,
-0.025262318551540375,
0.021800512447953224,
0.0313337966799736,
-0.009355757385492325,
0.0034817797131836414,
-0.011193177662789822,
-0.03594953939318657,
-0.015693528577685356,
-0.01606633886694908,
-0.04626395180821419,
-0.03184863179922104,
-0.02627423219382763,
-0.017424432560801506,
-0.0703723356127739,
-0.054430268704891205,
-0.02828030474483967,
-0.009684184566140175,
0.022013546898961067,
0.033641669899225235,
0.04072505980730057,
-0.04242933541536331,
-0.032327957451343536,
-0.025759398937225342,
0.0013026160886511207,
0.01659892313182354,
-0.002505372278392315,
0.00677715428173542,
-0.015418359078466892,
0.020380282774567604,
-0.03483111038804054,
-0.0160840917378664,
-0.009222610853612423,
-0.002733940491452813,
0.022297590970993042,
-0.027481427416205406,
0.06927166134119034,
-0.057874321937561035,
-0.006568558048456907,
-0.061992984265089035,
0.04768418148159981,
0.013687455095350742,
0.00442268094047904,
0.033304363489151,
0.06241905316710472,
-0.007882270030677319,
0.051589809358119965,
0.01285307016223669,
0.023735573515295982,
0.0471515953540802,
0.04622844606637955,
0.018249940127134323,
-0.03802662715315819,
0.0018307636491954327,
-0.053649142384529114,
0.01009250059723854,
-0.006932491902261972,
0.005734173581004143,
0.08855126053094864,
-0.006914739031344652,
0.022599389776587486,
0.0022601608652621508,
0.02851109206676483,
-0.0043272594921290874,
0.031493574380874634,
-0.027623450383543968,
-0.0037414152175188065,
0.042642369866371155,
0.07019481062889099,
-0.03234570845961571,
-0.02551085874438286,
0.016882969066500664,
0.014619479887187481,
-0.05403970554471016,
0.016350382938981056,
-0.00998598337173462,
0.033588409423828125,
0.10722727328538895,
0.0662536695599556,
-0.00012704389519058168,
0.05411071702837944,
0.0553889237344265,
-0.002776103327050805,
-0.00802429299801588,
0.013838354498147964,
-0.01453071553260088,
0.028866149485111237,
0.006346647161990404,
0.030144356191158295,
-0.01947488635778427,
-0.0432104617357254,
0.007540527265518904,
-0.0318131260573864,
-0.035754259675741196,
0.0025453162379562855,
0.05403970554471016,
-0.05744825303554535,
0.07697639614343643,
-0.02984255738556385,
0.0038789997342973948,
-0.03937584161758423,
-0.000430506857810542,
-0.008432608097791672,
0.041967760771512985,
-0.025368835777044296,
0.04363653063774109,
0.04779069870710373,
-0.03692594915628433,
-0.03273627161979675,
0.03813314437866211,
0.037778086960315704,
-0.04147068038582802,
0.024090630933642387,
0.017566455528140068,
-0.05059564858675003,
0.0331268347799778,
-0.009648678824305534,
-0.0014712682459503412,
-0.016261618584394455,
-0.03135155141353607,
0.014468580484390259,
-0.01456622127443552,
0.00003448284769547172,
0.07875168323516846,
0.07974584400653839,
-0.01348329707980156,
0.041151128709316254,
0.006715019233524799,
0.07662133872509003,
-0.005241531878709793,
-0.046725526452064514,
0.0019694578368216753,
0.03660639747977257,
-0.0737098753452301,
-0.04942396283149719,
-0.0070301322266459465,
0.01277318224310875,
0.05393318831920624,
0.04019247367978096,
0.01725577935576439,
0.04775519296526909,
-0.011352953501045704,
-0.020309271290898323,
0.026203220710158348,
-0.0073141781613230705,
0.03234570845961571,
-0.016501283273100853,
-0.021889276802539825,
0.0008599041611887515,
0.03138705715537071,
-0.006417658645659685,
-0.011157671920955181,
0.0014845828991383314,
-0.034298524260520935,
0.05134126916527748,
0.06057275831699371,
0.002571945544332266,
-0.035718753933906555,
-0.028031764551997185,
0.0035882967058569193,
0.021640736609697342,
-0.0036726228427141905,
-0.015418359078466892,
-0.07548516243696213,
0.023096470162272453,
-0.02071758732199669,
-0.006417658645659685,
0.03955337032675743,
0.015018919482827187,
-0.013660825788974762,
0.004873159807175398,
-0.02212006226181984,
0.009160475805401802,
-0.006453164387494326,
0.04512776806950569,
0.005250408314168453,
-0.012018686160445213,
-0.013598690740764141,
0.01177902240306139,
0.021037138998508453,
0.019741179421544075,
-0.03609156236052513,
-0.05190936103463173,
0.0015666898107156157,
0.0018085725605487823,
0.005459004547446966,
0.018871290609240532,
-0.049708008766174316,
-0.03174211457371712,
-0.034973133355379105,
0.012027562595903873,
-0.04711608961224556,
0.027605697512626648,
0.022652648389339447,
0.04722260683774948,
0.028227046132087708,
0.030676942318677902,
0.030375143513083458,
-0.0014135714154690504,
0.005361363757401705,
-0.005907264072448015,
0.03816865012049675,
0.07733145356178284,
-0.03326885774731636,
-0.05840690806508064,
0.015462740324437618,
-0.02829805761575699,
-0.07292874902486801,
-0.08542676270008087,
0.013394532725214958,
0.028138281777501106,
0.0270376056432724,
0.02073534019291401,
0.023220740258693695,
-0.018045781180262566,
0.05066666007041931,
0.025244565680623055,
0.014308804646134377,
0.0024587709922343493,
0.014184534549713135,
0.010412052273750305,
-0.07910674065351486,
0.027499180287122726,
0.04367203637957573,
0.010172388516366482,
-0.057767804712057114,
-0.04374304786324501,
0.013811725191771984,
0.010651716031134129,
-0.05908151715993881,
-0.02354029193520546,
0.06128287315368652,
0.04640597477555275,
-0.0007417366723529994,
0.06035972386598587,
0.02767670899629593,
0.04924643412232399,
-0.02087736316025257,
0.026682548224925995,
0.035079650580883026,
-0.007678112015128136,
0.05964960902929306,
0.09444521367549896,
0.020628822967410088,
0.03699696063995361,
0.008698901161551476,
0.026540525257587433,
-0.03168885409832001,
-0.018303198739886284,
0.03543470799922943,
0.0002959734702017158,
0.008716654032468796,
-0.05361363664269447,
-0.029576264321804047,
-0.0054856338538229465,
-0.033961221575737,
0.027179628610610962,
0.021037138998508453,
0.032221440225839615,
-0.030694695189595222,
0.000762263429351151,
0.0001231604692293331,
0.0011506072478368878,
0.03408548980951309,
-0.05386217683553696,
0.04296192154288292,
-0.0310675036162138,
-0.03335762396454811,
-0.009338004514575005,
-0.028528844937682152,
-0.0028049517422914505,
0.05244194716215134,
-0.010394299402832985,
0.0007134430343285203,
-0.03884325549006462,
0.021836018189787865,
0.035665493458509445,
0.019616909325122833,
-0.017211398109793663,
0.02087736316025257,
0.045340802520513535,
-0.02776547335088253,
-0.02568838745355606,
-0.04576687142252922,
-0.025120295584201813,
0.048252273350954056,
0.012986216694116592,
0.03128053992986679,
0.023256246000528336,
-0.04629945755004883,
0.003987736068665981,
-0.029416488483548164,
-0.01604858599603176,
0.018445221707224846,
0.018320951610803604,
-0.014264422468841076,
-0.0070301322266459465,
-0.0177262295037508,
0.018063534051179886,
-0.04079607129096985,
0.04622844606637955,
-0.05066666007041931,
0.023913102224469185,
-0.02068208158016205,
-0.041186634451150894,
0.0035927349235862494,
-0.05872645974159241,
0.010660592466592789,
-0.0034684650599956512,
0.01935061626136303,
0.016803082078695297,
0.05663162097334862,
-0.04768418148159981,
0.00730530172586441,
0.06671524792909622,
0.026806818321347237,
-0.05411071702837944,
0.010669468902051449,
-0.03314458951354027,
-0.06472692638635635,
-0.024001866579055786,
0.04278439283370972,
0.028244799003005028,
-0.06479793787002563,
-0.06675074994564056,
-0.0005267606466077268,
0.004160826560109854,
0.027250640094280243,
-0.0013558747014030814,
0.005334734451025724,
-0.016749823465943336,
0.029256712645292282,
0.003386358032003045,
-0.02561737596988678,
0.009284745901823044,
-0.045340802520513535,
0.014282175339758396,
-0.02551085874438286,
0.00310896965675056,
0.02355804480612278,
-0.05485633760690689,
0.03863022103905678,
-0.06241905316710472,
0.00778019055724144,
0.03273627161979675,
0.0801009014248848,
0.01812567003071308,
0.05244194716215134,
-0.04108011722564697,
0.028795138001441956,
-0.024623217061161995,
0.024711981415748596,
0.017566455528140068,
-0.07236065715551376,
0.01004811841994524,
-0.06337770819664001,
-0.00793552864342928,
0.01556925754994154,
0.019652415066957474,
0.03209717199206352,
-0.044559676200151443,
0.012116326950490475,
0.01002148911356926,
0.007562718354165554,
-0.010199017822742462,
0.11234009265899658,
-0.030925480648875237,
-0.004258467350155115,
-0.030179861932992935,
-0.041293151676654816,
-0.07211211323738098,
0.048145756125450134,
0.04626395180821419,
-0.06557906419038773,
0.013394532725214958,
-0.0022601608652621508,
0.023753326386213303,
0.06419434398412704,
-0.012063068337738514,
0.058548931032419205,
-0.018010275438427925,
0.016900721937417984,
-0.0995580404996872,
-0.002185820834711194,
-0.021889276802539825,
-0.002075975062325597,
-0.0038656850811094046,
0.015018919482827187,
-0.007402942515909672,
-0.007021255791187286,
-0.0042185233905911446,
0.059223540127277374,
-0.037742581218481064,
-0.003836836898699403,
0.02439242973923683,
0.045305296778678894,
-0.010909132659435272,
0.01247138436883688,
-0.02503153122961521,
-0.046015411615371704,
0.01630600169301033,
-0.043991588056087494,
-0.04945946857333183,
-0.016918474808335304,
-0.05467880889773369,
0.026895582675933838,
-0.023842090740799904,
0.05272599309682846,
0.018356457352638245,
-0.0235757976770401,
0.004580237902700901,
0.05070216581225395,
0.013296891935169697,
0.01350104995071888,
-0.007163278758525848,
-0.014450827613472939,
0.00621793931350112,
0.016554541885852814,
0.04903339967131615,
-0.025812657549977303,
-0.029665028676390648,
-0.0031289414037019014,
-0.00391228636726737,
0.011530482210218906,
0.0007262029103003442,
0.0025630691088736057,
0.05265498161315918,
-0.037884604185819626,
-0.0484653078019619,
0.06483343988656998,
0.07342582941055298,
-0.03474234789609909,
-0.05205138400197029,
-0.04161270335316658,
0.03310908377170563,
-0.008969631977379322,
0.02551085874438286,
-0.05943657457828522,
0.027499180287122726,
0.006533052306622267,
0.0028093899600207806,
-0.009639802388846874,
0.03193739429116249,
0.014282175339758396,
-0.055850494652986526,
0.08627890050411224,
-0.037742581218481064,
-0.05173183232545853,
-0.028741879388689995,
-0.008978508412837982,
-0.016403641551733017,
-0.09664656966924667,
-0.05879747122526169,
0.0070345704443752766,
0.028653115034103394,
-0.05357813090085983,
-0.022297590970993042,
-0.0432104617357254,
0.06543704122304916,
-0.10772435367107391,
-0.03248773142695427,
-0.014282175339758396,
0.05318756774067879,
0.0062978267669677734,
0.008170753717422485,
-0.018134545534849167,
0.06408782303333282,
0.050879694521427155,
0.010518569499254227,
-0.006462040822952986,
0.02494276873767376,
-0.059933654963970184,
0.08059798181056976,
0.00005131685975356959,
0.008898620493710041,
-0.0458378829061985,
-0.026558278128504753,
-0.04100910574197769,
0.005649847444146872,
0.08187618851661682,
0.0038102075923234224,
-0.007509459741413593,
0.008210697211325169,
-0.01652791164815426,
0.0789647176861763,
0.03341088071465492,
0.00251646782271564,
0.039872922003269196,
-0.07268020510673523,
-0.0056454092264175415,
-0.016421394422650337,
0.016794204711914062,
-0.03410324454307556,
0.0021547533106058836,
0.026149962097406387,
-0.016350382938981056,
-0.02986031025648117,
-0.0019228566670790315,
-0.009559914469718933,
-0.007074514403939247,
0.006333332508802414,
-0.017406679689884186,
0.008849800564348698,
-0.04867834225296974,
0.013980376534163952,
-0.015001166611909866,
0.02559962309896946,
0.015329594723880291,
-0.04253585264086723,
0.053684648126363754,
-0.05954309180378914,
-0.03183087706565857,
-0.036499880254268646,
0.0021547533106058836,
0.053720153868198395,
-0.017664095386862755,
-0.01862275041639805,
-0.03142256289720535,
0.012267226353287697,
-0.006599625572562218,
0.022599389776587486,
-0.0707273930311203,
-0.001389161217957735,
0.041293151676654816,
0.05496285483241081,
0.002851553028449416,
-0.02084185741841793,
0.012196214869618416,
0.0032665261533111334,
0.020486800000071526,
0.05045362561941147,
-0.03745853528380394,
-0.060040172189474106,
-0.028759632259607315,
-0.02346928045153618,
0.0008726639789529145,
-0.00044881447684019804,
-0.012915205210447311,
-0.005361363757401705,
-0.030978739261627197,
-0.058371402323246,
-0.04019247367978096,
0.013847230933606625,
0.048287779092788696,
-0.031582336872816086,
-0.05549544095993042,
0.03884325549006462,
-0.08350945264101028,
-0.02638074941933155,
-0.03887876123189926,
0.05755477026104927,
-0.01570240408182144,
-0.04420461878180504,
0.07513010501861572,
0.06298714876174927,
0.018028028309345245,
0.03944685310125351,
0.06469141691923141,
-0.031031997874379158,
0.018232187256217003,
-0.05890398845076561,
0.005933893378823996,
0.04239382967352867,
0.03257649764418602,
0.044701699167490005,
-0.020273765549063683,
-0.006488670129328966,
-0.07434897869825363,
-0.045447319746017456,
-0.014894649386405945,
-0.04026348516345024,
-0.018303198739886284,
0.0019550337456166744,
0.034316278994083405,
-0.006169118918478489,
-0.04516327381134033,
0.032931555062532425,
-0.03447605296969414,
0.00015714054461568594,
0.012524642050266266,
-0.05130576342344284,
-0.005636532790958881,
0.0004579683009069413,
0.029238959774374962,
-0.039730899035930634,
0.0037347578909248114,
-0.04353001341223717,
0.05474982038140297,
0.0038634659722447395,
-0.024143889546394348,
-0.023114223033189774,
0.023895349353551865,
-0.06817097961902618,
0.015675775706768036,
-0.006475355476140976,
-0.013998129405081272,
-0.03207941725850105,
-0.06731884181499481,
0.016971733421087265,
-0.026842324063181877,
0.0026207659393548965,
0.018214434385299683,
0.003648212645202875,
-0.02204905077815056,
0.000974742928519845,
-0.03795561566948891,
-0.003450712189078331,
-0.029966827481985092,
0.0067594014108181,
-0.01528521254658699,
-0.03951786458492279,
-0.010944638401269913,
0.04771968722343445,
0.004507007077336311,
-0.037032466381788254,
0.030233120545744896,
0.029540758579969406,
0.024587711319327354,
-0.0331268347799778,
-0.03738752380013466,
0.05666712671518326,
-0.00730086350813508,
-0.050950706005096436,
-0.03193739429116249,
0.03577201068401337,
-0.0290969368070364,
-0.018214434385299683,
-0.024481194093823433,
0.004060966428369284,
-0.034369535744190216,
0.030818965286016464,
-0.023984113708138466,
0.023220740258693695,
0.01936836913228035,
-0.050205085426568985,
-0.017282409593462944,
0.03337537497282028,
0.008002101443707943,
-0.00400770828127861,
0.014424198307096958,
-0.01949263922870159,
0.012728800065815449,
0.07420695573091507,
-0.0304106492549181,
0.05844241380691528,
-0.04139966890215874,
-0.0016565637197345495,
0.052939027547836304,
-0.012151832692325115,
-0.03270076587796211,
-0.016971733421087265,
0.029363229870796204,
-0.028670867905020714,
0.032221440225839615,
0.03752954676747322,
0.0017442185198888183,
0.042003266513347626,
-0.018445221707224846,
-0.04924643412232399,
0.04068955406546593,
-0.04839429631829262,
-0.023202987387776375,
-0.027516933158040047,
0.03245222568511963,
-0.02350478619337082,
-0.03468908742070198,
0.004313944838941097,
0.037884604185819626,
-0.005436813458800316,
-0.03877224400639534,
0.008690024726092815,
-0.006848165765404701,
0.04519877955317497,
0.028564350679516792,
-0.003450712189078331,
-0.01102452538907528,
-0.009932724758982658,
0.005800746846944094,
0.02009623683989048,
0.02494276873767376,
-0.01812567003071308,
0.0499565489590168,
-0.03332211822271347,
-0.030233120545744896,
-0.050808683037757874,
-0.0337836928665638,
0.014752626419067383,
0.09366408735513687,
0.048820365220308304,
-0.012986216694116592,
0.0169806107878685,
0.009932724758982658,
0.022670401260256767
] |
10,003
|
torch.nn.modules.module
|
__repr__
| null |
def __repr__(self):
# We treat the extra repr like the sub-module, one item per line
extra_lines = []
extra_repr = self.extra_repr()
# empty string will be split into list ['']
if extra_repr:
extra_lines = extra_repr.split('\n')
child_lines = []
for key, module in self._modules.items():
mod_str = repr(module)
mod_str = _addindent(mod_str, 2)
child_lines.append('(' + key + '): ' + mod_str)
lines = extra_lines + child_lines
main_str = self._get_name() + '('
if lines:
# simple one-liner info, which most builtin Modules will use
if len(extra_lines) == 1 and not child_lines:
main_str += extra_lines[0]
else:
main_str += '\n ' + '\n '.join(lines) + '\n'
main_str += ')'
return main_str
|
(self)
|
[
0.010293449275195599,
-0.04501233994960785,
0.057831622660160065,
0.015299850143492222,
0.05851966142654419,
-0.08242002129554749,
0.011805327609181404,
-0.00027781902463175356,
-0.004015078768134117,
-0.02000749483704567,
-0.010900011286139488,
-0.003992445766925812,
0.00038985194987617433,
0.08357882499694824,
-0.057831622660160065,
-0.01013049203902483,
0.05276184901595116,
-0.06029408052563667,
-0.03346049785614014,
0.0031618180219084024,
0.0008345887181349099,
0.07376519590616226,
0.03204820677638054,
-0.046967823058366776,
-0.02127493917942047,
0.04812662675976753,
-0.005481691565364599,
-0.016793621703982353,
-0.027720792219042778,
-0.059424977749586105,
-0.03291730955243111,
-0.07271502166986465,
-0.009958482347428799,
-0.0025710989721119404,
-0.022669127210974693,
0.005178410559892654,
-0.04139107093214989,
0.006649550050497055,
-0.02743109129369259,
-0.03570568561553955,
0.08031968772411346,
0.005015453789383173,
0.027974281460046768,
-0.02261480689048767,
-0.0489233061671257,
0.004329676274210215,
0.06503794342279434,
0.0010943013476207852,
-0.0056989677250385284,
-0.031722292304039,
0.0338045209646225,
0.04374489560723305,
0.009297600947320461,
-0.01921081729233265,
-0.0324646532535553,
0.015517125837504864,
0.040630605071783066,
-0.037697382271289825,
0.010574097745120525,
0.010202917270362377,
-0.048597391694784164,
0.0349995382130146,
0.04360004514455795,
-0.04211532697081566,
-0.01782568357884884,
-0.0024104053154587746,
-0.04588144272565842,
-0.01828739419579506,
-0.010356821119785309,
-0.003947180230170488,
-0.022560488432645798,
-0.0231942106038332,
-0.014982989057898521,
0.001990564865991473,
-0.007523180451244116,
-0.019373774528503418,
-0.041137583553791046,
-0.023465804755687714,
0.033876944333314896,
-0.029857339337468147,
-0.022288894280791283,
-0.012212720699608326,
-0.014032406732439995,
0.021075768396258354,
0.023846037685871124,
-0.06453096121549606,
-0.024389227852225304,
-0.013434897176921368,
0.017545035108923912,
0.028082920238375664,
-0.04932164400815964,
0.035216812044382095,
-0.032283589243888855,
0.03300784155726433,
-0.04226017743349075,
-0.04388974606990814,
0.01233041100203991,
-0.03671963885426521,
0.03695502132177353,
-0.015444700606167316,
0.025566140189766884,
-0.02927793748676777,
-0.06489308923482895,
-0.018884902819991112,
-0.04943028464913368,
0.02869853377342224,
-0.01678456924855709,
0.05841102451086044,
-0.0009969798848032951,
-0.025982584804296494,
-0.02089470624923706,
0.008378705009818077,
-0.003100709291175008,
-0.024534078314900398,
0.05113228037953377,
-0.0317947156727314,
-0.015553338453173637,
-0.000969820364844054,
0.07626386731863022,
-0.007672557607293129,
-0.011289297603070736,
0.024606503546237946,
-0.01176911499351263,
-0.0009641621145419776,
-0.024099526926875114,
-0.009542036801576614,
-0.04580901563167572,
-0.026127435266971588,
0.03583242744207382,
-0.116459921002388,
0.055984776467084885,
-0.010076173581182957,
-0.04291200265288353,
-0.004730279091745615,
0.054427631199359894,
0.006712922360748053,
0.0075005474500358105,
0.024515971541404724,
0.009777418337762356,
0.08024726063013077,
0.008333439007401466,
-0.040630605071783066,
-0.021492214873433113,
0.09234228730201721,
-0.09096620976924896,
-0.05587613582611084,
0.009370026178658009,
0.06692099571228027,
-0.011569945141673088,
-0.015680082142353058,
0.013606907799839973,
-0.0024171951226890087,
0.018685733899474144,
0.01757219433784485,
0.024570291861891747,
0.026236074045300484,
-0.002763478783890605,
-0.006192365195602179,
0.017336811870336533,
-0.019916964694857597,
-0.015960730612277985,
-0.021166300401091576,
0.04005120322108269,
-0.019790219143033028,
0.009496770799160004,
-0.015127839520573616,
0.016684984788298607,
-0.1320313662290573,
-0.010519778355956078,
0.004861549939960241,
0.01044735312461853,
-0.06109075993299484,
-0.031142888590693474,
0.02936846949160099,
-0.019102178514003754,
0.03145069628953934,
-0.020405834540724754,
0.08242002129554749,
-0.03896482288837433,
-0.023049360141158104,
0.04530204087495804,
-0.03990635275840759,
-0.06119940057396889,
0.01845940388739109,
0.024552185088396072,
-0.03327943757176399,
0.047764502465724945,
-0.021383576095104218,
0.07079575210809708,
-0.0039019142277538776,
-0.001414557103998959,
0.025077268481254578,
0.01514594629406929,
0.039580438286066055,
-0.029929764568805695,
-0.02790185622870922,
-0.0231942106038332,
-0.03583242744207382,
0.027956174686551094,
-0.009229701943695545,
-0.06199607625603676,
0.030726443976163864,
-0.01516405213624239,
0.008378705009818077,
-0.0003708968870341778,
0.00908485148102045,
-0.007889833301305771,
-0.0034220966044813395,
-0.0371541902422905,
0.022162148728966713,
0.015462806448340416,
-0.009360972791910172,
0.057034943252801895,
0.011425094678997993,
0.005617489106953144,
0.009442451409995556,
-0.010076173581182957,
0.012267039157450199,
-0.029422787949442863,
0.0033044053707271814,
0.0010162178659811616,
-0.011343616060912609,
0.007862674072384834,
-0.005119564943015575,
-0.08625856041908264,
-0.002822324400767684,
0.023809826001524925,
0.053051549941301346,
0.02860800363123417,
0.0185046698898077,
0.03262760862708092,
-0.030726443976163864,
-0.06163395196199417,
-0.007957732304930687,
-0.03809572011232376,
0.011868700385093689,
-0.047004036605358124,
0.014476011507213116,
0.012321358546614647,
-0.00836965162307024,
-0.03695502132177353,
0.0489957332611084,
0.031323954463005066,
-0.011126340366899967,
0.03293541446328163,
-0.0714837983250618,
-0.007744983304291964,
-0.00013593894254881889,
-0.015136892907321453,
-0.00941529218107462,
0.03737146779894829,
0.016015049070119858,
-0.010320608504116535,
0.0025846788194030523,
0.010211970657110214,
0.00662691704928875,
-0.006875879131257534,
0.002887959824874997,
0.010311555117368698,
0.041644562035799026,
0.0178347360342741,
-0.03787844628095627,
-0.028644215315580368,
-0.015833986923098564,
0.05500703305006027,
0.007161053828895092,
-0.032953523099422455,
0.002047147136181593,
0.020061815157532692,
-0.0021240990608930588,
0.09509444981813431,
0.024515971541404724,
-0.05142198130488396,
0.04609872028231621,
-0.06029408052563667,
-0.019735900685191154,
-0.004644273780286312,
-0.017001844942569733,
-0.028372621163725853,
-0.05236350744962692,
-0.00025575191830284894,
-0.006323636043816805,
-0.03449255973100662,
0.006654076743870974,
0.05587613582611084,
-0.039326950907707214,
-0.01820591650903225,
-0.006948304362595081,
0.005105985328555107,
0.033913157880306244,
0.06319109350442886,
0.025819627568125725,
-0.0017778153996914625,
0.015444700606167316,
0.04732994735240936,
-0.009514876641333103,
0.005169357638806105,
0.02332095429301262,
-0.016594452783465385,
-0.007491494528949261,
-0.04077545553445816,
-0.03612213209271431,
0.03213873878121376,
-0.005155777558684349,
-0.06268411874771118,
-0.005540537182241678,
0.034546878188848495,
0.01908407360315323,
-0.01807917095720768,
0.007541286759078503,
-0.0003694823244586587,
0.007029782980680466,
0.054644908756017685,
0.050987426191568375,
-0.01606031507253647,
0.011198765598237514,
0.002801954746246338,
0.016214219853281975,
0.03213873878121376,
0.028408832848072052,
-0.04106516018509865,
0.03512628376483917,
-0.009342866949737072,
0.022578595206141472,
0.07018014043569565,
-0.05381201580166817,
0.00981363095343113,
-0.009723099879920483,
0.03431149572134018,
0.01572534814476967,
-0.03860269859433174,
-0.03766116872429848,
0.011687636375427246,
0.036810170859098434,
0.01661255955696106,
0.04131864756345749,
-0.005137671250849962,
-0.04917679354548454,
-0.04439672455191612,
-0.07459808140993118,
0.08538945764303207,
0.015028255060315132,
-0.03530734404921532,
-0.00855524092912674,
-0.06025787070393562,
-0.005146724637597799,
0.03635751083493233,
0.04374489560723305,
0.021763809025287628,
-0.004316096659749746,
-0.03443824127316475,
0.00008423687540926039,
-0.01067368220537901,
-0.017481662333011627,
-0.018323607742786407,
0.0165310800075531,
-0.03900103643536568,
-0.00045350700384005904,
-0.05134955421090126,
0.01807917095720768,
0.05551401153206825,
0.04573659226298332,
-0.01606936939060688,
0.04816284030675888,
-0.08966255187988281,
-0.05920770391821861,
0.02114819549024105,
0.013552588410675526,
0.09074892848730087,
0.009569196030497551,
-0.05232729762792587,
0.022669127210974693,
0.01997128315269947,
-0.06970937550067902,
-0.05826617404818535,
0.03382262587547302,
0.02576530911028385,
-0.011216872371733189,
-0.031740397214889526,
-0.10479944199323654,
0.03212063014507294,
0.014141044579446316,
-0.010972436517477036,
-0.03519870713353157,
-0.024389227852225304,
0.0264714565128088,
0.050408024340867996,
0.031523123383522034,
-0.0031686078291386366,
0.0013262887950986624,
-0.03318890556693077,
0.005843818187713623,
-0.024063313379883766,
0.06963694840669632,
-0.07923330366611481,
-0.043020643293857574,
-0.0015231950674206018,
-0.025493713095784187,
-0.10516157001256943,
-0.020876599475741386,
0.06963694840669632,
-0.0031686078291386366,
-0.005065246019512415,
-0.04953892156481743,
-0.000023234100808622316,
-0.03530734404921532,
0.06851435452699661,
-0.006450380198657513,
0.00020624243188649416,
-0.019192710518836975,
0.03802329674363136,
0.006903038825839758,
-0.07488778233528137,
-0.047764502465724945,
0.0633721575140953,
-0.026036903262138367,
0.00243303831666708,
0.008844942785799503,
0.02752162329852581,
-0.06036650761961937,
0.0063010030426084995,
0.022306999191641808,
0.012095029465854168,
0.0044066281989216805,
-0.02525833249092102,
0.024769460782408714,
-0.06666751205921173,
0.02869853377342224,
0.041970476508140564,
0.0148743512108922,
-0.05641932785511017,
-0.005499797873198986,
0.024968629702925682,
0.013208568096160889,
0.04732994735240936,
-0.0898798257112503,
0.04627978056669235,
-0.010030907578766346,
-0.011751009151339531,
0.030635911971330643,
0.029096873477101326,
-0.00946055818349123,
0.0016307014739140868,
-0.0032070837914943695,
-0.0010937355691567063,
0.06293760985136032,
-0.015336062759160995,
0.028372621163725853,
0.009139170870184898,
0.005481691565364599,
0.003528471337631345,
0.02793806791305542,
-0.0014688761439174414,
-0.008437550626695156,
-0.04812662675976753,
-0.047474801540374756,
0.02169138379395008,
-0.012267039157450199,
-0.023049360141158104,
0.03346049785614014,
-0.056020986288785934,
0.05591234937310219,
0.02194487303495407,
0.03758874163031578,
0.04320170730352402,
-0.014340214431285858,
0.07836420089006424,
0.0023470332380384207,
-0.0594974048435688,
-0.007400962989777327,
0.0699990764260292,
0.046678122133016586,
0.006151625886559486,
0.020532580092549324,
0.009360972791910172,
0.06474824249744415,
-0.021709490567445755,
-0.02525833249092102,
-0.03367777541279793,
-0.05145819112658501,
-0.0357418991625309,
-0.049647558480501175,
-0.01955483667552471,
-0.03449255973100662,
-0.025566140189766884,
0.019663475453853607,
0.030147040262818336,
0.012031656689941883,
0.029640063643455505,
-0.03318890556693077,
0.0007168975425884128,
0.04533825442194939,
-0.06348079442977905,
0.038240570574998856,
0.0010269684717059135,
0.04526582732796669,
0.0014292685082182288,
-0.03382262587547302,
-0.014412639662623405,
-0.03615834191441536,
0.018703840672969818,
0.003211610484868288,
0.050371814519166946,
-0.01711048185825348,
0.002255369909107685,
0.06956452131271362,
0.027250027284026146,
0.029712488874793053,
0.017463555559515953,
-0.006282896734774113,
0.027829430997371674,
-0.032374121248722076,
0.024008994922041893,
-0.001261784927919507,
-0.007840041071176529,
-0.007817408069968224,
0.02274155244231224,
0.05754191800951958,
0.009867950342595577,
0.014457905665040016,
0.021329257637262344,
-0.029513319954276085,
-0.040594395250082016,
-0.01757219433784485,
-0.030147040262818336,
0.03856648504734039,
-0.025873947888612747,
0.07104924321174622,
-0.037407681345939636,
0.07228047400712967,
0.009433398023247719,
0.03112478367984295,
0.011986390687525272,
-0.03565136715769768,
-0.03635751083493233,
0.06750040501356125,
-0.07188213616609573,
0.06348079442977905,
0.04895951971411705,
0.026580093428492546,
0.0396890789270401,
-0.01235757116228342,
-0.0061833118088543415,
-0.05844723805785179,
-0.007767615839838982,
-0.027974281460046768,
0.0475834384560585,
0.03965286538004875,
0.006382481660693884,
-0.0251678004860878,
0.023429593071341515,
-0.025330757722258568,
-0.006463960278779268,
-0.021618958562612534,
0.043310344219207764,
0.027159497141838074,
0.02252427488565445,
0.010592203587293625,
-0.02924172393977642,
0.012321358546614647,
0.0010728001361712813,
0.04827147722244263,
0.03722661733627319,
-0.024190058931708336,
0.06876784563064575,
0.024950524792075157,
-0.008876629173755646,
0.024642717093229294,
-0.028499364852905273,
-0.006210471503436565,
-0.03188524767756462,
0.0034424662590026855,
0.025982584804296494,
0.029965978115797043,
-0.026525774970650673,
0.027720792219042778,
0.021962979808449745,
0.057795409113168716,
0.03327943757176399,
0.000827233016025275,
0.008012051694095135,
-0.025022950023412704,
0.016558239236474037,
-0.02366497367620468,
-0.040630605071783066,
-0.015879252925515175,
-0.02542128786444664,
0.009333813562989235,
0.06829708069562912,
-0.013697439804673195,
-0.010900011286139488,
-0.027485409751534462,
0.02580152079463005,
-0.015127839520573616,
0.08633098751306534,
-0.011923018842935562,
-0.044613998383283615,
0.03259139508008957,
0.02265102043747902,
0.04501233994960785,
0.009759312495589256,
-0.003646162338554859,
0.014104831963777542,
0.002283660927787423,
0.03188524767756462,
0.020912813022732735,
0.050154536962509155,
-0.017689885571599007,
-0.027630260214209557,
0.05985952913761139,
-0.050444237887859344,
0.022053511813282967,
-0.0423688143491745,
-0.07894360274076462,
-0.02408142015337944,
-0.03867512196302414,
0.008419443853199482,
-0.03766116872429848,
0.012846441939473152,
0.015489966608583927,
-0.008333439007401466,
0.06398777663707733,
-0.0766259953379631,
0.006350795738399029,
-0.004689539782702923,
0.055984776467084885,
-0.024950524792075157,
-0.007364749908447266,
0.06989043951034546,
-0.042984429746866226,
0.01275590993463993,
0.03501764312386513,
-0.012665378861129284,
-0.05591234937310219,
-0.014032406732439995,
-0.015797773376107216,
0.01795242726802826,
0.012239879928529263,
-0.020949024707078934,
0.034003689885139465,
0.038276784121990204,
-0.05721600726246834,
-0.09900541603565216,
-0.017219120636582375,
-0.03684638440608978,
0.021999191492795944,
-0.01527268998324871,
-0.03762495517730713,
0.04139107093214989,
-0.054427631199359894,
-0.042730942368507385,
0.007400962989777327,
0.007070522289723158,
0.021836234256625175,
-0.043853532522916794,
0.00985889695584774,
-0.03184903785586357,
-0.0023696660064160824,
-0.03087129443883896,
0.01132551021873951,
0.01482908520847559,
-0.07604659348726273,
0.016368122771382332,
-0.04635220766067505,
0.07597416639328003,
0.0057985526509583,
-0.01664877124130726,
0.04160834848880768,
0.04761965200304985,
-0.058881789445877075,
0.00046142854262143373,
0.04283957928419113,
-0.00492039555683732,
-0.02672494389116764,
-0.06434989720582962,
0.027757005766034126,
0.00043568358523771167,
0.05145819112658501,
0.025439394637942314,
-0.030110828578472137,
-0.0030599699821323156,
0.0026344710495322943,
-0.029893552884459496,
-0.07908845692873001,
0.004383995197713375,
0.029114980250597,
-0.026145542040467262,
0.05048045143485069,
-0.026797369122505188,
-0.06970937550067902,
-0.03780601918697357,
0.0027023698203265667,
0.01656729355454445,
-0.014050512574613094,
0.06670372188091278,
0.02370118722319603,
0.05142198130488396,
-0.067609041929245,
-0.01769893802702427,
-0.014331161044538021,
0.020876599475741386,
0.026489561423659325,
0.04399838298559189,
-0.01493772305548191,
0.017481662333011627,
0.03204820677638054,
0.006319109350442886,
0.009487717412412167,
-0.042477451264858246,
0.017336811870336533,
-0.004044501576572657,
0.09922269731760025,
0.008075423538684845,
-0.03130584582686424,
-0.000019662344129756093,
-0.053848229348659515,
0.03248275816440582,
0.03389505296945572,
-0.016042210161685944,
-0.005920770112425089,
-0.03456498682498932,
0.04005120322108269,
0.06521900743246078,
0.005784972570836544,
0.029676277190446854,
0.09205258637666702,
-0.046967823058366776,
-0.0038181724958121777,
-0.021836234256625175,
-0.006898512132465839,
-0.023809826001524925,
0.02080417424440384,
-0.08444792777299881,
-0.014584649354219437,
0.05645554140210152,
-0.00947866402566433,
-0.018151596188545227,
-0.0016567292623221874,
0.02022477239370346,
-0.04124622046947479,
0.017191961407661438,
0.006912091746926308,
-0.0017427343409508467,
0.03867512196302414,
0.009071271866559982,
0.014964882284402847,
-0.01237567700445652,
0.04106516018509865,
0.018848691135644913,
0.05091500282287598,
0.021003343164920807,
0.0277751125395298,
-0.03463741019368172,
-0.022976934909820557,
0.03943558782339096,
-0.007609185762703419,
0.0015560127794742584,
0.0044994233176112175,
0.011986390687525272,
-0.05685387924313545,
0.023972781375050545,
-0.04349140822887421,
0.05533294752240181,
0.01988075114786625,
0.024642717093229294,
0.021003343164920807,
-0.0436362586915493,
-0.027322454378008842
] |
10,004
|
torch.nn.modules.container
|
__rmul__
| null |
def __rmul__(self, other: int) -> 'Sequential':
return self.__mul__(other)
|
(self, other: int) -> torch.nn.modules.container.Sequential
|
[
-0.0425415076315403,
0.022737108170986176,
0.03795268386602402,
0.05144313722848892,
-0.05396181717514992,
-0.02979285642504692,
-0.07328318059444427,
-0.04129942134022713,
0.028775034472346306,
0.007888120599091053,
-0.010695756413042545,
-0.015603728592395782,
0.058516137301921844,
0.06890137493610382,
-0.003995813895016909,
0.048924461007118225,
0.004129510838538408,
0.0020852412562817335,
0.005071858875453472,
-0.0061500598676502705,
-0.019269613549113274,
0.08432396501302719,
0.02021843008697033,
0.07666442543268204,
-0.034157417714595795,
0.05865414813160896,
0.015664108097553253,
-0.02211606502532959,
-0.052202191203832626,
-0.029258068650960922,
0.015776241198182106,
0.03469220548868179,
-0.03031039424240589,
-0.020425444468855858,
0.0031655989587306976,
-0.009962579235434532,
-0.05872315540909767,
0.08459998667240143,
-0.07142005115747452,
0.006210439372807741,
0.03137996792793274,
-0.05723954737186432,
0.05644599348306656,
0.008021817542612553,
0.00587404053658247,
-0.028861291706562042,
0.03322584927082062,
-0.007392148021608591,
-0.023513413965702057,
-0.0407128781080246,
0.024824505671858788,
0.02258184738457203,
0.05340977758169174,
0.016250649467110634,
-0.01942487433552742,
0.060206759721040726,
-0.010635376907885075,
0.014629034325480461,
-0.042955540120601654,
0.011213293299078941,
-0.050753090530633926,
-0.020787719637155533,
-0.003055622335523367,
-0.004366714973002672,
0.03740064427256584,
-0.020908478647470474,
-0.0589301697909832,
0.02572156861424446,
0.022719856351614,
0.048544932156801224,
-0.026014840230345726,
0.00045931374188512564,
0.0054125702008605,
-0.00351062323898077,
0.0509256012737751,
-0.0011428933357819915,
0.0028313565999269485,
0.009436417371034622,
0.024686496704816818,
-0.05879215896129608,
0.026497874408960342,
0.019373120740056038,
-0.0007261685677804053,
-0.005472949706017971,
-0.023875689134001732,
-0.06293245404958725,
0.004403374157845974,
-0.04664729908108711,
-0.038366712629795074,
-0.07535333186388016,
-0.04844142496585846,
-0.014499650336802006,
-0.02323739416897297,
0.01374922227114439,
0.03788368031382561,
0.06483008712530136,
-0.06324297189712524,
-0.01568998396396637,
0.012101731263101101,
-0.08487600088119507,
0.03622756153345108,
0.039401788264513016,
-0.019994163885712624,
-0.005710153840482235,
0.040402356535196304,
-0.0073576453141868114,
-0.01759624481201172,
-0.03550301119685173,
-0.010773386806249619,
0.03595154359936714,
-0.02998262085020542,
0.10902771353721619,
-0.06465757638216019,
-0.0027688208501785994,
-0.06351899355649948,
0.024979766458272934,
-0.014128749258816242,
-0.01312817819416523,
0.01832079514861107,
0.07411124557256699,
0.007202384527772665,
0.038021691143512726,
-0.016492165625095367,
0.005356503650546074,
0.019442124292254448,
0.045577723532915115,
0.040126338601112366,
-0.00373273272998631,
-0.009790067560970783,
-0.02099473588168621,
0.006917739287018776,
0.009496796876192093,
0.0039936574175953865,
0.10240324586629868,
-0.0004900424974039197,
0.05271972715854645,
0.03629656881093979,
0.021960804238915443,
0.03282907232642174,
0.02815399132668972,
-0.009005136787891388,
0.066934734582901,
0.07314517349004745,
0.07245512306690216,
0.011118411086499691,
0.0025467113591730595,
0.01384410448372364,
0.04461165517568588,
-0.038090694695711136,
0.025618061423301697,
-0.010574998334050179,
0.03025864064693451,
0.12779703736305237,
0.03640007600188255,
0.019148854538798332,
0.064036525785923,
0.032984331250190735,
-0.019769897684454918,
-0.037642162293195724,
-0.02356516756117344,
-0.024393225088715553,
0.0513051301240921,
0.016173018142580986,
0.004390435758978128,
-0.01897634193301201,
-0.06465757638216019,
0.0519951768219471,
-0.017889514565467834,
-0.04481866955757141,
0.020132174715399742,
0.010462865233421326,
-0.0643470510840416,
0.057067036628723145,
-0.011877465061843395,
-0.019907908514142036,
-0.02770545892417431,
-0.0010539417853578925,
0.012317371554672718,
0.00010128353460459039,
-0.006331197917461395,
0.05792959779500961,
0.012472632341086864,
-0.03177674859762192,
-0.06072429567575455,
0.050097543746232986,
0.0465782955288887,
-0.058516137301921844,
0.022409334778785706,
-0.0009261748637072742,
-0.051891669631004333,
0.031017694622278214,
-0.02794697694480419,
0.00026119424728676677,
-0.012998794205486774,
-0.00705574918538332,
-0.0032259782310575247,
-0.03591703996062279,
0.010523244738578796,
0.07832054048776627,
0.009859072044491768,
-0.025687066838145256,
0.062242403626441956,
0.0037456711288541555,
0.049718014895915985,
-0.009212151169776917,
-0.06137984246015549,
-0.01411149837076664,
0.03936728462576866,
-0.006840108893811703,
-0.021564025431871414,
0.027774464339017868,
0.020373690873384476,
0.06362249702215195,
0.012550262734293938,
0.016233397647738457,
-0.0018469587666913867,
-0.04405961558222771,
0.002721379976719618,
0.059620216488838196,
-0.0019914377480745316,
0.03294983133673668,
-0.04671630263328552,
0.01349045429378748,
-0.042817529290914536,
0.013317941688001156,
-0.005287499167025089,
-0.042368996888399124,
-0.0009790067560970783,
-0.016155768185853958,
0.03733164072036743,
0.08453097939491272,
-0.014007991179823875,
-0.013947611674666405,
-0.060206759721040726,
-0.0053651295602321625,
0.01404249295592308,
-0.04875194653868675,
0.02284061536192894,
-0.05113261565566063,
0.027843469753861427,
-0.052409205585718155,
-0.006723663304001093,
0.05378930643200874,
0.021288005635142326,
0.007633665110915899,
0.050028540194034576,
0.010057461448013783,
0.04126491770148277,
-0.01060087513178587,
0.03025864064693451,
-0.012869410216808319,
-0.04561222717165947,
0.006520961411297321,
0.026601381599903107,
0.06834933161735535,
0.022788861766457558,
0.0016410222742706537,
-0.05989623814821243,
0.01870032213628292,
0.009186274372041225,
0.016250649467110634,
-0.006641719955950975,
-0.009194900281727314,
-0.01890733651816845,
-0.04830341786146164,
0.016095388680696487,
-0.044991184026002884,
0.043680090457201004,
0.015215576626360416,
0.029965369030833244,
0.0756983533501625,
-0.019200608134269714,
0.007142005022615194,
-0.03574452921748161,
0.01033348124474287,
0.03664159029722214,
0.018200038000941277,
0.0567220114171505,
-0.01292978972196579,
-0.0472683422267437,
0.005878353491425514,
-0.02729143016040325,
-0.02836100570857525,
-0.06210439279675484,
-0.05271972715854645,
0.052857737988233566,
0.006464894860982895,
-0.00905689038336277,
0.004217923153191805,
-0.04378359764814377,
0.0858420729637146,
-0.0038513350300490856,
0.01434438955038786,
0.01897634193301201,
0.07086801528930664,
-0.025876829400658607,
-0.07031597197055817,
0.0073792096227407455,
0.03853922709822655,
0.030896935611963272,
-0.06824582815170288,
-0.05665300786495209,
0.000030021166821825318,
-0.0034394620452076197,
-0.00994532834738493,
-0.05061507970094681,
0.06376051157712936,
0.010574998334050179,
-0.0009261748637072742,
0.055031392723321915,
0.011860214173793793,
0.047751378268003464,
-0.060862306505441666,
0.017535865306854248,
0.023737678304314613,
-0.008578169159591198,
0.051684655249118805,
0.06531312316656113,
0.02572156861424446,
0.04126491770148277,
0.007556034252047539,
-0.005209868308156729,
-0.047751378268003464,
-0.021046489477157593,
0.01079926360398531,
-0.018148284405469894,
-0.039470791816711426,
-0.0418514609336853,
-0.021909048780798912,
0.015465718694031239,
-0.03664159029722214,
0.001566626480780542,
0.0041338237933814526,
0.03137996792793274,
-0.03936728462576866,
-0.03286357596516609,
0.059102680534124374,
0.020442696288228035,
0.01895909011363983,
-0.04685431346297264,
0.029913615435361862,
-0.027222424745559692,
-0.028861291706562042,
-0.012774528935551643,
-0.031259212642908096,
0.032311536371707916,
0.025618061423301697,
-0.018752075731754303,
0.05137413367629051,
0.002876640995964408,
0.041575439274311066,
0.03933278098702431,
0.018165534362196922,
-0.008573856204748154,
0.029102807864546776,
0.0439906120300293,
-0.04626777395606041,
0.022737108170986176,
-0.0013369695516303182,
-0.043680090457201004,
-0.02415170893073082,
-0.010876893997192383,
0.002443204168230295,
0.011092534288764,
0.0035602205898612738,
-0.00470958324149251,
-0.08039068430662155,
-0.020442696288228035,
-0.025100525468587875,
-0.0024237963370978832,
-0.0461987666785717,
-0.019528381526470184,
-0.019269613549113274,
0.026670387014746666,
-0.011075283400714397,
0.05340977758169174,
-0.050442568957805634,
0.022340329363942146,
-0.01856231316924095,
0.0028292001225054264,
-0.01595737785100937,
-0.023530663922429085,
0.0051322379149496555,
0.0034804337192326784,
0.00944504328072071,
0.04464615881443024,
-0.007564660161733627,
-0.027584701776504517,
0.009393289685249329,
0.08459998667240143,
0.012972917407751083,
-0.07142005115747452,
0.025704318657517433,
-0.050373561680316925,
-0.08280585706233978,
-0.0004264285962563008,
0.007219635881483555,
0.018476055935025215,
-0.05934419855475426,
-0.05185716971755028,
-0.009255279786884785,
0.07155805826187134,
-0.002415170893073082,
0.025169530883431435,
0.0019903595093637705,
0.010721633210778236,
0.01600913144648075,
0.00038923067040741444,
-0.010342106223106384,
-0.015603728592395782,
-0.05589395388960838,
0.008284898474812508,
-0.009505422785878181,
-0.011989598162472248,
0.039470791816711426,
-0.04364558681845665,
0.03439893200993538,
-0.04626777395606041,
0.06424354761838913,
0.037435147911310196,
0.07756148278713226,
0.029499586671590805,
0.035675521939992905,
-0.01430988684296608,
0.027670957148075104,
0.007292953319847584,
0.03360537812113762,
0.017639372497797012,
-0.06541662663221359,
0.02389293909072876,
-0.03995382785797119,
-0.02848176471889019,
0.034950971603393555,
-0.010186845436692238,
0.017803259193897247,
-0.033294856548309326,
-0.012136233039200306,
0.0043214308097958565,
0.01056637242436409,
0.012998794205486774,
0.07549133896827698,
-0.008573856204748154,
-0.01804477721452713,
-0.029120059683918953,
-0.005472949706017971,
-0.05303025245666504,
0.03760765865445137,
0.03891875222325325,
-0.033363860100507736,
0.0005237362929619849,
0.053444281220436096,
0.015336334705352783,
0.036710597574710846,
-0.02665313519537449,
0.04554321989417076,
-0.027118917554616928,
-0.03006887622177601,
-0.07107502967119217,
-0.023392654955387115,
-0.058171115815639496,
-0.00272353645414114,
0.011558317579329014,
0.0011687701335176826,
-0.007918310351669788,
-0.03131096437573433,
0.008962009102106094,
0.057515569031238556,
-0.043680090457201004,
-0.006650345399975777,
0.006124183069914579,
0.03443343564867973,
-0.054755374789237976,
-0.005774845834821463,
-0.012972917407751083,
-0.04737184941768646,
0.024496732279658318,
-0.027653705328702927,
-0.05720504745841026,
-0.004541383590549231,
-0.06810782104730606,
0.024065451696515083,
-0.010359358042478561,
0.02375493012368679,
0.013102301396429539,
-0.018165534362196922,
0.0014943869318813086,
0.011230544187128544,
0.03451969102025032,
0.04074738174676895,
0.028447262942790985,
-0.013136804103851318,
0.023806683719158173,
-0.0047742752358317375,
0.04747535660862923,
-0.022236822172999382,
-0.0439906120300293,
-0.003834083676338196,
-0.022944122552871704,
0.03091418743133545,
-0.0006905879126861691,
-0.00510204816237092,
0.011204667389392853,
-0.02363417111337185,
-0.04140292853116989,
0.03929828107357025,
0.08404794335365295,
-0.019269613549113274,
-0.034019406884908676,
-0.07321418076753616,
0.0074525270611047745,
-0.030017122626304626,
0.020856725051999092,
-0.031155703589320183,
0.03602054715156555,
0.026946406811475754,
-0.01115291379392147,
-0.021426014602184296,
0.031397219747304916,
0.03584803640842438,
-0.04606075957417488,
0.0531337596476078,
-0.012429503723978996,
-0.06703824549913406,
-0.0078061772510409355,
-0.02309938333928585,
-0.014585906639695168,
-0.07845854759216309,
-0.07769949734210968,
0.029827360063791275,
0.028499016538262367,
-0.059171684086322784,
-0.04388710483908653,
-0.05582495033740997,
0.04654379189014435,
-0.08639410883188248,
-0.005089109763503075,
-0.06148334965109825,
0.026101095601916313,
0.019873404875397682,
-0.00408207019791007,
-0.009332910180091858,
0.07000545412302017,
0.05178816244006157,
0.03232878819108009,
-0.02770545892417431,
0.03184575214982033,
-0.03640007600188255,
0.09156947582960129,
-0.009729688055813313,
0.03978131338953972,
-0.09294957667589188,
-0.039401788264513016,
-0.028757784515619278,
0.0025747446343302727,
0.05378930643200874,
0.017639372497797012,
-0.014197754673659801,
0.03096594102680683,
0.005714466795325279,
0.05282323807477951,
-0.0028723282739520073,
0.0022728482726961374,
0.06417454034090042,
-0.08349590748548508,
0.019114352762699127,
0.01954563334584236,
0.025704318657517433,
-0.0320182628929615,
0.019804401323199272,
0.016052260994911194,
-0.022133314982056618,
-0.044749666005373,
0.0025725881569087505,
-0.016173018142580986,
-0.018941840156912804,
0.01830354519188404,
0.003803894156590104,
-0.019580135121941566,
-0.049372993409633636,
-0.00147282297257334,
-0.0418514609336853,
0.005572143942117691,
0.02304762974381447,
-0.06445056200027466,
0.021115493029356003,
-0.053444281220436096,
-0.020822223275899887,
-0.006469207350164652,
-0.02585957944393158,
0.04968351498246193,
-0.015983255580067635,
-0.013016046024858952,
-0.04081638529896736,
-0.013248937204480171,
-0.014939556829631329,
-0.025221284478902817,
-0.015310457907617092,
0.01686306856572628,
-0.010135091841220856,
0.07907959073781967,
0.036124054342508316,
-0.03805619105696678,
0.04799289628863335,
0.01089414581656456,
-0.025290288031101227,
0.027653705328702927,
-0.04750986024737358,
-0.05520390346646309,
-0.005477262195199728,
-0.048993464559316635,
-0.0047052702866494656,
0.0045111943036317825,
-0.014353015460073948,
0.012627893127501011,
0.0019925159867852926,
-0.04875194653868675,
-0.03746965155005455,
-0.008004565723240376,
0.0024000760167837143,
-0.025014270097017288,
-0.04926948621869087,
0.0003434070968069136,
-0.04868294298648834,
-0.04423213005065918,
-0.04123041778802872,
0.06272543966770172,
-0.008918880484998226,
-0.0063139465637505054,
0.04733734950423241,
0.056480493396520615,
0.006486458703875542,
0.014275385066866875,
0.052202191203832626,
-0.024306969717144966,
0.014913680031895638,
-0.06431254744529724,
0.01029897853732109,
0.06341548264026642,
0.025411047041416168,
0.012740026228129864,
0.01207585446536541,
-0.002227563876658678,
-0.05399632081389427,
-0.02658412978053093,
-0.03196651116013527,
-0.03812519833445549,
-0.015741737559437752,
0.017768757417798042,
0.02880953811109066,
0.001617301837541163,
-0.04385260120034218,
0.05223669484257698,
0.012783153913915157,
-0.036848604679107666,
-0.00885850191116333,
-0.05427233874797821,
0.021564025431871414,
-0.004239487461745739,
0.007706982549279928,
-0.03105219639837742,
-0.021822793409228325,
-0.03051740862429142,
-0.003894462948665023,
-0.003243229351937771,
-0.002596308710053563,
-0.023082133382558823,
0.0027774465270340443,
-0.03445068746805191,
-0.0031612860038876534,
-0.04595725238323212,
-0.018717573955655098,
-0.018355298787355423,
-0.04388710483908653,
0.018355298787355423,
-0.022185068577528,
-0.00843584630638361,
-0.01089414581656456,
-0.015931501984596252,
-0.007530157454311848,
0.00009366873564431444,
-0.036848604679107666,
-0.0001695471437415108,
-0.02742944099009037,
-0.025704318657517433,
0.0020442695822566748,
-0.03301883488893509,
-0.0363655723631382,
0.059758227318525314,
0.015560600906610489,
-0.029102807864546776,
0.01916610635817051,
0.01207585446536541,
-0.0036680407356470823,
-0.03843571990728378,
-0.043611083179712296,
0.050960104912519455,
-0.019183356314897537,
-0.024772752076387405,
0.000788165139965713,
0.039608802646398544,
0.00967793446034193,
-0.02794697694480419,
-0.017630746588110924,
-0.008578169159591198,
-0.028102237731218338,
0.05537641793489456,
-0.00810376089066267,
0.0031310964841395617,
0.0056497748009860516,
-0.02960309386253357,
0.021236252039670944,
0.05872315540909767,
0.00017574681260157377,
-0.031863003969192505,
0.03058641403913498,
0.005934419576078653,
0.01558647770434618,
0.051408637315034866,
-0.06796980649232864,
0.07003995776176453,
-0.05216769129037857,
-0.0009051499655470252,
0.047613367438316345,
-0.025894081220030785,
-0.028792286291718483,
-0.00797006394714117,
0.05378930643200874,
-0.01811378076672554,
-0.007310204673558474,
0.016440412029623985,
0.012429503723978996,
0.05551442503929138,
0.008616984821856022,
-0.020252931863069534,
0.009082767181098461,
-0.023979196324944496,
-0.027222424745559692,
-0.022461088374257088,
0.04264501482248306,
-0.0052012428641319275,
-0.03653808310627937,
0.015603728592395782,
0.04523269832134247,
-0.0010442378697916865,
-0.03843571990728378,
0.013197183609008789,
-0.012377750128507614,
0.06293245404958725,
0.0523747056722641,
-0.07066100090742111,
-0.0018146127695217729,
-0.01558647770434618,
0.013593961484730244,
-0.005602333694696426,
0.010842392221093178,
-0.030620915815234184,
0.05993073806166649,
-0.010186845436692238,
-0.03338111191987991,
-0.02829200029373169,
-0.03988482058048248,
-0.0007024481310509145,
0.06469207257032394,
0.052995748817920685,
-0.014085621573030949,
0.02579057402908802,
0.019976913928985596,
0.02560081146657467
] |
10,005
|
torch.nn.modules.module
|
__setattr__
| null |
def __setattr__(self, name: str, value: Union[Tensor, 'Module']) -> None:
def remove_from(*dicts_or_sets):
for d in dicts_or_sets:
if name in d:
if isinstance(d, dict):
del d[name]
else:
d.discard(name)
params = self.__dict__.get('_parameters')
if isinstance(value, Parameter):
if params is None:
raise AttributeError(
"cannot assign parameters before Module.__init__() call")
remove_from(self.__dict__, self._buffers, self._modules, self._non_persistent_buffers_set)
self.register_parameter(name, value)
elif params is not None and name in params:
if value is not None:
raise TypeError(f"cannot assign '{torch.typename(value)}' as parameter '{name}' "
"(torch.nn.Parameter or None expected)"
)
self.register_parameter(name, value)
else:
modules = self.__dict__.get('_modules')
if isinstance(value, Module):
if modules is None:
raise AttributeError(
"cannot assign module before Module.__init__() call")
remove_from(self.__dict__, self._parameters, self._buffers, self._non_persistent_buffers_set)
for hook in _global_module_registration_hooks.values():
output = hook(self, name, value)
if output is not None:
value = output
modules[name] = value
elif modules is not None and name in modules:
if value is not None:
raise TypeError(f"cannot assign '{torch.typename(value)}' as child module '{name}' "
"(torch.nn.Module or None expected)"
)
for hook in _global_module_registration_hooks.values():
output = hook(self, name, value)
if output is not None:
value = output
modules[name] = value
else:
buffers = self.__dict__.get('_buffers')
if buffers is not None and name in buffers:
if value is not None and not isinstance(value, torch.Tensor):
raise TypeError(f"cannot assign '{torch.typename(value)}' as buffer '{name}' "
"(torch.Tensor or None expected)"
)
for hook in _global_buffer_registration_hooks.values():
output = hook(self, name, value)
if output is not None:
value = output
buffers[name] = value
else:
super().__setattr__(name, value)
|
(self, name: str, value: Union[torch.Tensor, torch.nn.modules.module.Module]) -> NoneType
|
[
0.04546923562884331,
-0.021513335406780243,
-0.006186258513480425,
0.03731483593583107,
-0.039682239294052124,
0.039005838334560394,
-0.03464680537581444,
0.03769061341881752,
-0.01664699986577034,
-0.02102482318878174,
0.014176255092024803,
-0.02292250655591488,
0.009262947365641594,
0.051030758768320084,
0.021381814032793045,
0.003151844721287489,
0.04561954736709595,
0.0509931817650795,
-0.013039524666965008,
-0.06959423422813416,
0.008765039965510368,
0.008257739245891571,
-0.005105894524604082,
0.02884102240204811,
-0.035680197179317474,
-0.014552033506333828,
0.029611369594931602,
0.009666909463703632,
-0.009253553114831448,
-0.0006523284828290343,
0.004974371753633022,
-0.043778229504823685,
0.02521475777029991,
-0.003100175177678466,
0.03259881213307381,
-0.019202295690774918,
-0.04246300458908081,
0.06643769145011902,
-0.06478426605463028,
-0.04663414880633354,
0.011433069594204426,
-0.045431654900312424,
-0.019465342164039612,
-0.022509150207042694,
0.015369352884590626,
0.05865906924009323,
0.015106307342648506,
0.050504669547080994,
-0.00287470780313015,
0.03838580474257469,
0.012062499299645424,
-0.0203672107309103,
0.024425622075796127,
0.003161239204928279,
-0.03866763785481453,
0.042124804109334946,
0.043853387236595154,
0.03088901750743389,
-0.00020066001161467284,
0.0073793563060462475,
0.023580119013786316,
0.01252282876521349,
-0.012457067146897316,
-0.050354357808828354,
-0.020611466839909554,
-0.026323305442929268,
-0.026774238795042038,
-0.02777005359530449,
-0.00643521174788475,
0.06786564737558365,
-0.013434091582894325,
-0.058471180498600006,
0.02519596740603447,
0.00652915658429265,
-0.0070458524860441685,
0.030607182532548904,
-0.05764446780085564,
0.02217094972729683,
-0.010418467223644257,
-0.017962226644158363,
0.03124600648880005,
0.0357365645468235,
-0.013828659430146217,
-0.02111876755952835,
-0.042801205068826675,
-0.008093335665762424,
-0.078462615609169,
-0.014749317429959774,
0.01279526762664318,
-0.05009131506085396,
-0.048400308936834335,
0.000655851443298161,
0.0502416267991066,
0.041673868894577026,
0.023335862904787064,
-0.02149454690515995,
0.02724396251142025,
-0.020912090316414833,
-0.04670930281281471,
0.0029287259094417095,
-0.0032058628275990486,
0.006087616551667452,
0.010878795757889748,
0.012879818677902222,
-0.0018389674369245768,
-0.03964466229081154,
-0.012917395681142807,
0.010634539648890495,
0.02566569112241268,
-0.04746086150407791,
-0.03218545392155647,
0.03539836406707764,
-0.013715925626456738,
0.0094649288803339,
-0.013612587004899979,
-0.034853484481573105,
-0.057494156062603,
-0.08319742232561111,
0.016149094328284264,
0.016393350437283516,
-0.017821310088038445,
0.07177375257015228,
-0.00869927927851677,
0.004596244543790817,
0.04783663898706436,
0.04204964637756348,
0.049076709896326065,
0.009807826951146126,
0.015256619080901146,
-0.10055840760469437,
-0.01989748701453209,
-0.008004087954759598,
-0.048475462943315506,
0.030832650139927864,
0.05084287002682686,
0.007304200436919928,
-0.06309325993061066,
0.06354419142007828,
-0.01997264288365841,
-0.023035239428281784,
0.013415303081274033,
-0.014533245004713535,
0.007764529436826706,
0.0016921788919717073,
0.05212051793932915,
-0.0449807234108448,
0.047272972762584686,
0.02542143501341343,
-0.07252530753612518,
-0.06301810592412949,
-0.019465342164039612,
0.004032575991004705,
0.021776381880044937,
0.022678250446915627,
-0.05719353258609772,
0.029479846358299255,
-0.007773923687636852,
0.003076688852161169,
-0.00817788578569889,
0.011921582743525505,
0.02314797416329384,
-0.009117333218455315,
-0.01952170766890049,
-0.03103932924568653,
0.006153377704322338,
-0.01203431561589241,
-0.009845404885709286,
-0.05095560476183891,
-0.005815176758915186,
-0.0024096814449876547,
0.011855821125209332,
-0.03502258285880089,
0.09033722430467606,
0.08770677447319031,
-0.007285411469638348,
0.02277219481766224,
-0.0036192196421325207,
-0.053548477590084076,
-0.0014443997060880065,
0.016299406066536903,
0.06076342985033989,
0.035304419696331024,
-0.005956093780696392,
0.0028676618821918964,
-0.006176863797008991,
-0.01043725572526455,
-0.013593797571957111,
0.024914134293794632,
0.022377626970410347,
0.038348227739334106,
0.044229164719581604,
-0.0030038817785680294,
0.003407843876630068,
-0.014702345244586468,
-0.0321102999150753,
0.029705313965678215,
-0.005514553748071194,
-0.04017075151205063,
0.0056836544536054134,
0.06745229661464691,
0.0032669268548488617,
-0.00015603627252858132,
0.033876460045576096,
0.06204107776284218,
-0.033256422728300095,
-0.025853581726551056,
0.06970696896314621,
0.04246300458908081,
-0.01229736115783453,
-0.020536310970783234,
-0.016844283789396286,
-0.03267396613955498,
0.049227021634578705,
0.07162343710660934,
0.011527014896273613,
-0.060876164585351944,
-0.015500875189900398,
-0.017050962895154953,
0.030062302947044373,
-0.01846952736377716,
0.06264232844114304,
0.07369022071361542,
0.01153640914708376,
0.004586849827319384,
-0.005556828808039427,
-0.03934403881430626,
-0.014317172579467297,
-0.09018690884113312,
-0.007412236649543047,
0.03231697529554367,
0.05614135041832924,
0.04137324541807175,
-0.042425427585840225,
-0.03669479861855507,
0.03165936470031738,
0.013077101670205593,
0.02482018992304802,
-0.04013317450881004,
-0.058095403015613556,
-0.03866763785481453,
0.019089562818408012,
0.025552958250045776,
-0.019089562818408012,
0.022509150207042694,
-0.02346738614141941,
-0.011893399059772491,
-0.04592016711831093,
0.055953461676836014,
-0.03701421245932579,
-0.002505974844098091,
0.054750971496105194,
0.010775457136332989,
-0.022001847624778748,
0.016590634360909462,
-0.07436662167310715,
-0.02793915383517742,
-0.026379670947790146,
0.005260902922600508,
-0.0029663038440048695,
0.013612587004899979,
-0.06839174032211304,
-0.07395326346158981,
-0.027262751013040543,
0.016224250197410583,
0.06809111684560776,
-0.058546338230371475,
0.0071257054805755615,
0.023411018773913383,
-0.05061740428209305,
0.008356381207704544,
-0.012804662808775902,
0.027450641617178917,
0.005284389480948448,
-0.023730430752038956,
0.018197087571024895,
-0.06226654723286629,
0.010822429321706295,
0.0021994803100824356,
0.03474074974656105,
0.024632299318909645,
0.04836273193359375,
-0.07635825127363205,
0.007332383655011654,
0.0024425622541457415,
0.00851608719676733,
0.013396513648331165,
-0.0005704204668290913,
0.029122857376933098,
0.026135414838790894,
0.0057259295135736465,
-0.0014573171501979232,
0.036131132394075394,
-0.04080957546830177,
0.05294723063707352,
0.007294805720448494,
0.02367406338453293,
-0.12513433396816254,
0.06692620366811752,
0.04644626006484032,
-0.031527839601039886,
0.044379476457834244,
-0.006294294726103544,
-0.006195652764290571,
0.05640439689159393,
0.011367308907210827,
-0.06959423422813416,
0.07263804227113724,
0.009450837038457394,
-0.04204964637756348,
0.054525502026081085,
0.07271319627761841,
0.04396611824631691,
0.01641213893890381,
0.02224610559642315,
0.15091276168823242,
-0.018046775832772255,
0.0912390947341919,
-0.01672215573489666,
-0.03368856757879257,
0.04020833224058151,
-0.013997760601341724,
-0.019465342164039612,
-0.025026867166161537,
-0.01433596108108759,
0.04554438963532448,
-0.021926693618297577,
0.04546923562884331,
-0.020085375756025314,
-0.0003423109883442521,
0.015716947615146637,
-0.08424960821866989,
0.02241520583629608,
0.021137557923793793,
0.020536310970783234,
-0.06696378439664841,
-0.00072572281351313,
-0.0394943505525589,
0.031678151339292526,
0.011489436961710453,
-0.00851138960570097,
0.0316217839717865,
-0.012457067146897316,
-0.05880938097834587,
-0.01688186265528202,
0.006054735742509365,
-0.0067922016605734825,
0.014777501113712788,
0.02899133414030075,
0.029404690489172935,
0.013471669517457485,
-0.03896826133131981,
0.032129086554050446,
0.005453489720821381,
0.006881449371576309,
0.02254672721028328,
-0.011818243190646172,
-0.013678348623216152,
-0.003797714365646243,
-0.06290537118911743,
-0.08169431239366531,
0.03614991903305054,
0.022828562185168266,
-0.014195043593645096,
0.03631902113556862,
-0.0037577878683805466,
0.009150213561952114,
-0.03304974362254143,
-0.015190857462584972,
0.06903056800365448,
-0.05065498128533363,
0.02884102240204811,
-0.029385901987552643,
0.019408974796533585,
0.02801430970430374,
0.004058410879224539,
0.009544781409204006,
-0.014317172579467297,
-0.0009259424405172467,
-0.016214855015277863,
-0.06335630267858505,
0.05659228563308716,
-0.0029710012022405863,
0.06512246280908585,
0.003659146139398217,
-0.016910046339035034,
-0.001568876439705491,
0.05403698980808258,
-0.05290965363383293,
0.038705214858055115,
-0.009798431769013405,
-0.017116723582148552,
0.049602802842855453,
-0.013199230656027794,
0.04434189945459366,
-0.04509345442056656,
0.03460922837257385,
-0.006280203349888325,
0.010521805845201015,
-0.03289943188428879,
-0.03938161954283714,
0.027638530358672142,
-0.050204046070575714,
0.02156970277428627,
0.05689290910959244,
0.03755909204483032,
0.025778425857424736,
0.05110591650009155,
0.03934403881430626,
0.0035041372757405043,
0.016534266993403435,
-0.049001555889844894,
0.0010228229220956564,
-0.06328114867210388,
-0.053172700107097626,
0.0343649722635746,
-0.0409974679350853,
0.05659228563308716,
-0.03199756518006325,
0.049828268587589264,
-0.03697663173079491,
-0.016064543277025223,
0.03073870576918125,
-0.03111448511481285,
0.028108254075050354,
0.001587665406987071,
0.06083858758211136,
0.02784520946443081,
-0.018300427123904228,
-0.022133370861411095,
0.009150213561952114,
-0.05704322084784508,
0.031058117747306824,
0.026304515078663826,
-0.018826518207788467,
0.024181365966796875,
-0.07628309726715088,
0.021306658163666725,
-0.019634442403912544,
-0.05181989446282387,
0.012062499299645424,
0.0150593351572752,
-0.013800476677715778,
0.009826615452766418,
0.017304614186286926,
-0.038348227739334106,
0.003769531147554517,
-0.03536078333854675,
0.09289252012968063,
-0.03543594107031822,
-0.03489106148481369,
0.0037765768356621265,
-0.00482406048104167,
0.05715595558285713,
-0.008201371878385544,
0.007919537834823132,
-0.05257145315408707,
-0.03026898205280304,
-0.07380295544862747,
0.08086759597063065,
0.0028324327431619167,
-0.024312887340784073,
0.03759666904807091,
-0.005063619464635849,
-0.015369352884590626,
-0.00855366513133049,
0.06132709980010986,
0.09319314360618591,
-0.059823986142873764,
0.0329933799803257,
-0.0045633637346327305,
0.053773947060108185,
0.011451859027147293,
0.03904341533780098,
-0.029010122641921043,
-0.07462967187166214,
-0.014533245004713535,
-0.00281834090128541,
-0.004187584854662418,
-0.024124998599290848,
-0.04069684445858002,
0.012212811037898064,
-0.000651154201477766,
0.036356598138809204,
0.04077199846506119,
-0.012701323255896568,
0.015594820491969585,
0.016740946099162102,
0.009338103234767914,
0.05602861940860748,
0.05463823676109314,
-0.05321027711033821,
-0.04261331632733345,
-0.0002673020353540778,
0.034778326749801636,
-0.08229555934667587,
-0.007097521796822548,
0.008858985267579556,
-0.010117843747138977,
0.001484326203353703,
0.0034219357185065746,
-0.03269275650382042,
0.015510269440710545,
-0.04366549476981163,
-0.004669051617383957,
0.04622079059481621,
0.0208745114505291,
-0.027206385508179665,
0.026097837835550308,
-0.025308702141046524,
0.004100685939192772,
-0.00023676999262534082,
0.018112538382411003,
-0.02209579385817051,
0.005162261426448822,
-0.020573889836668968,
-0.021926693618297577,
-0.017079146578907967,
0.05745657905936241,
-0.04731054976582527,
-0.04614563658833504,
0.032204244285821915,
0.02594752609729767,
0.05685533210635185,
-0.06204107776284218,
0.0051152887754142284,
-0.03588687628507614,
-0.038348227739334106,
-0.03150905296206474,
0.023861953988671303,
0.006956604775041342,
-0.0013011341216042638,
-0.02111876755952835,
-0.04933975636959076,
0.028953757137060165,
0.033557046204805374,
-0.006980091333389282,
0.05895969271659851,
0.03335036709904671,
0.00945553369820118,
0.0075578512623906136,
-0.022114582359790802,
-0.0028112952131778,
0.05069255828857422,
0.019277451559901237,
0.0009500157902948558,
-0.02004779875278473,
-0.042500581592321396,
0.04028348624706268,
-0.00877443514764309,
-0.058922115713357925,
-0.059072427451610565,
-0.008642911911010742,
-0.04080957546830177,
-0.015237830579280853,
-0.007849079556763172,
-0.020029010251164436,
0.03474074974656105,
0.011602170765399933,
-0.01014602743089199,
0.059147581458091736,
-0.0016311148647218943,
0.04964037984609604,
0.04411642998456955,
0.029461057856678963,
0.054300036281347275,
-0.010953951627016068,
-0.04351518303155899,
-0.01620545983314514,
-0.002289901953190565,
-0.009826615452766418,
0.03646933287382126,
0.01120760291814804,
-0.016787918284535408,
0.0008672269759699702,
0.0321102999150753,
0.053623635321855545,
0.01618667133152485,
0.04321456328034401,
-0.0692184567451477,
-0.032730333507061005,
-0.006270808633416891,
0.03216666355729103,
-0.05835844576358795,
0.005467581562697887,
0.025759637355804443,
-0.017379770055413246,
-0.0018929856596514583,
0.08169431239366531,
-0.0015982341719791293,
0.004706629551947117,
-0.06177803501486778,
0.04708508402109146,
0.02134423516690731,
-0.019192902371287346,
0.05918516218662262,
0.012212811037898064,
-0.08612850308418274,
-0.01218462735414505,
0.04576985910534859,
0.029836837202310562,
-0.0331249013543129,
-0.049151867628097534,
0.0022593699395656586,
-0.005678956862539053,
0.005044830497354269,
-0.029254378750920296,
-0.025703269988298416,
0.034402549266815186,
-0.009742065332829952,
-0.012128260917961597,
0.024575933814048767,
-0.007290108595043421,
-0.02247157134115696,
-0.030456870794296265,
-0.023486174643039703,
-0.047986950725317,
-0.0049978578463196754,
0.020404787734150887,
0.0494900681078434,
-0.05933547019958496,
0.0004312648961786181,
0.008036969229578972,
-0.029461057856678963,
-0.019315030425786972,
-0.04092231020331383,
-0.024350466206669807,
-0.002982744248583913,
-0.05088045075535774,
-0.00013636660878546536,
-0.029874414205551147,
0.0094649288803339,
-0.03034413792192936,
0.0011631528614088893,
-0.024049842730164528,
0.004124172497540712,
-0.02634209394454956,
0.021006034687161446,
-0.027600953355431557,
0.041974492371082306,
0.008196675218641758,
0.03289943188428879,
-0.015933020040392876,
0.01195915974676609,
-0.0529848113656044,
-0.019033195450901985,
0.0056272875517606735,
0.029705313965678215,
-0.001821352867409587,
0.033876460045576096,
-0.013546825386583805,
-0.02367406338453293,
0.0150593351572752,
-0.006980091333389282,
-0.02549659088253975,
0.1137106642127037,
-0.01222220528870821,
-0.012551011517643929,
0.028408877551555634,
0.03564262017607689,
-0.010164816863834858,
-0.025928737595677376,
-0.04964037984609604,
0.05933547019958496,
0.026529982686042786,
0.01441111695021391,
0.02079935558140278,
-0.03229818865656853,
-0.031208429485559464,
0.0005622003227472305,
0.024989290162920952,
-0.04614563658833504,
-0.06031249836087227,
-0.06031249836087227,
-0.029761681333184242,
-0.019878698512911797,
-0.012475855648517609,
-0.009131425060331821,
-0.004476464819163084,
-0.007952419109642506,
0.03066354990005493,
-0.07136039435863495,
0.027732474729418755,
-0.007891355082392693,
0.044304318726062775,
-0.012607378885149956,
0.048851244151592255,
-0.011414281092584133,
0.012240994721651077,
0.030212614685297012,
-0.04144839942455292,
0.01048422884196043,
-0.0069284215569496155,
-0.0017779034096747637,
0.016825495287775993,
-0.03261759877204895,
-0.048099685460329056,
-0.002130195964127779,
-0.059748828411102295,
-0.017454925924539566,
0.03759666904807091,
-0.0034289814066141844,
-0.021099979057908058,
-0.0557279959321022,
-0.05591588467359543,
-0.02027326636016369,
-0.02769489772617817,
-0.03752151131629944,
-0.0128704234957695,
0.0033655688166618347,
-0.053398165851831436,
0.0057635074481368065,
-0.0002373571478528902,
-0.012551011517643929,
-0.048099685460329056,
-0.010127238929271698,
0.012804662808775902,
-0.02314797416329384,
-0.014589611440896988,
-0.008793223649263382,
0.04092231020331383,
0.00654794555157423,
0.02241520583629608,
0.10920131951570511,
0.02361769787967205,
0.0185540784150362,
-0.060049451887607574,
0.02497050166130066,
0.0014244364574551582,
0.06809111684560776,
0.009577661752700806,
0.041824180632829666,
0.07786136865615845,
-0.06733956187963486,
-0.021306658163666725,
0.026097837835550308,
-0.04111019894480705,
0.06335630267858505,
0.007924235425889492,
-0.000160439929459244,
0.02172001451253891,
-0.008708673529326916,
0.030250193551182747,
-0.020649045705795288,
0.00654794555157423,
0.03964466229081154,
0.03192240744829178,
-0.0329933799803257,
0.00662310142070055,
0.045431654900312424,
0.03823549300432205,
0.023561330512166023,
0.0038893106393516064,
-0.0032951103057712317,
0.05602861940860748,
0.06978212296962738,
-0.0789887011051178,
0.002255846979096532,
0.014852656982839108,
-0.024200154468417168,
-0.0922161191701889,
-0.0357365645468235,
0.005260902922600508,
0.007290108595043421,
-0.028202198445796967,
-0.002097315387800336,
0.008943535387516022,
-0.001189574715681374,
-0.0017638116842135787
] |
10,006
|
torch.nn.modules.container
|
__setitem__
| null |
def __setitem__(self, idx: int, module: Module) -> None:
key: str = self._get_item_by_idx(self._modules.keys(), idx)
return setattr(self, key, module)
|
(self, idx: int, module: torch.nn.modules.module.Module) -> NoneType
|
[
0.029090065509080887,
-0.011086773127317429,
-0.029819011688232422,
0.0047381543554365635,
-0.002996310591697693,
0.011391913518309593,
-0.021868405863642693,
0.07601390033960342,
-0.050416000187397,
-0.013299042358994484,
-0.015824927017092705,
-0.011400389485061169,
0.024682478979229927,
0.06760558485984802,
-0.01763034239411354,
-0.024394290521740913,
0.02558094821870327,
0.03926141560077667,
-0.011341056786477566,
-0.011120677925646305,
-0.01718958467245102,
0.030073296278715134,
0.04065150022506714,
-0.010018780827522278,
-0.023580582812428474,
0.03648124635219574,
0.04743240401148796,
0.04336386173963547,
0.05709518492221832,
-0.09886553883552551,
0.0016369519289582968,
-0.07567485421895981,
0.008065033704042435,
0.01827452890574932,
0.01721501164138317,
-0.039939507842063904,
-0.05502701178193092,
0.011180010624229908,
0.014917981810867786,
0.022800778970122337,
0.07818378508090973,
-0.009238977916538715,
-0.0070139942690730095,
-0.0524502694606781,
0.0199358481913805,
0.09269491583108902,
0.016096163541078568,
0.05679004639387131,
0.05679004639387131,
-0.0006150489207357168,
-0.03966826945543289,
0.004047350492328405,
0.037837427109479904,
-0.046076223254203796,
-0.04021074250340462,
0.09615317732095718,
0.04251625016331673,
0.027377888560295105,
0.024258673191070557,
0.03242965787649155,
0.0021931976079940796,
-0.0189017616212368,
-0.013485516421496868,
-0.04116006940603256,
0.020088419318199158,
0.00044658590923063457,
-0.042719677090644836,
0.034921638667583466,
0.01269723754376173,
0.016291115432977676,
0.0439741425216198,
-0.03229404240846634,
0.014816268347203732,
-0.03668467327952385,
-0.01824062317609787,
0.04858515411615372,
-0.05719690024852753,
0.04631355404853821,
0.0021953165996819735,
0.028784925118088722,
-0.0031213334295898676,
0.05102628096938133,
-0.009205073118209839,
0.03834599629044533,
-0.05573900789022446,
-0.0033607841469347477,
-0.018833952024579048,
-0.035158973187208176,
-0.02958168089389801,
-0.05333178490400314,
-0.003843923332169652,
0.0220379289239645,
0.009120311588048935,
-0.013205804862082005,
0.015901213511824608,
-0.052958838641643524,
0.042923104017972946,
-0.0691312849521637,
-0.01479931641370058,
0.013782180845737457,
0.0025046952068805695,
-0.027954263612627983,
-0.021461552008986473,
-0.004839868284761906,
-0.03709152713418007,
-0.014511127956211567,
-0.004407585598528385,
0.014451795257627964,
-0.026479419320821762,
-0.002273720921948552,
0.018969571217894554,
0.049398865550756454,
-0.023428013548254967,
-0.010968107730150223,
-0.011815720237791538,
0.008493078872561455,
-0.005717147141695023,
-0.0775735080242157,
0.054823584854602814,
0.036379534751176834,
-0.022071832790970802,
0.05353521183133125,
-0.030954813584685326,
0.06387608498334885,
0.07418305426836014,
-0.0021826024167239666,
-0.031107382848858833,
0.030090248212218285,
0.07438648492097855,
-0.10137446969747543,
-0.010849441401660442,
-0.03549801558256149,
-0.028140738606452942,
0.011247819289565086,
0.034531738609075546,
0.0027462649159133434,
-0.05261979252099991,
0.02642856165766716,
-0.06991109251976013,
-0.0020808889530599117,
-0.01405341736972332,
-0.02766607701778412,
-0.011705530807375908,
0.07052136957645416,
0.009696688503026962,
-0.044991277158260345,
-0.03256527706980705,
0.07364058494567871,
-0.05997706949710846,
-0.0018064744072034955,
-0.034921638667583466,
-0.009722116403281689,
0.05533215403556824,
0.05092456564307213,
-0.06841929256916046,
0.01718958467245102,
-0.02451295778155327,
0.023784009739756584,
0.02768302895128727,
-0.011035916395485401,
0.01280742697417736,
-0.035328492522239685,
0.02603865973651409,
0.03129385784268379,
-0.034955546259880066,
0.007251325994729996,
-0.010908774100244045,
-0.055671196430921555,
-0.06326580792665482,
0.005242484156042337,
0.03064967319369316,
-0.0441097617149353,
0.012917616404592991,
0.02561485394835472,
-0.013883895240724087,
0.04305872321128845,
-0.0199358481913805,
0.005280626472085714,
0.046856027096509933,
0.003002667799592018,
0.00656052166596055,
0.047907065600156784,
-0.03627781942486763,
0.01008659042418003,
-0.023326300084590912,
0.015155313536524773,
-0.022360021248459816,
0.06750386953353882,
0.04631355404853821,
0.02681846357882023,
0.04075321555137634,
-0.00017084692080970854,
0.03459954634308815,
-0.040380265563726425,
-0.010340874083340168,
0.03509116172790527,
-0.049602292478084564,
0.0007490776479244232,
0.002983596408739686,
0.08672772347927094,
0.010205255821347237,
0.022529544308781624,
0.03746447712182999,
0.08855856955051422,
-0.005835813004523516,
-0.009679736569523811,
0.0713350772857666,
-0.009205073118209839,
-0.05773937329649925,
0.011892004869878292,
-0.010561252944171429,
-0.025733519345521927,
0.014723031781613827,
0.0065774740651249886,
-0.005835813004523516,
-0.016214828938245773,
0.0014409414725378156,
-0.02244478277862072,
0.06533398479223251,
-0.01949509046971798,
0.02452990971505642,
0.04044807329773903,
0.02875101938843727,
-0.009772973135113716,
0.00607738271355629,
-0.038108665496110916,
-0.011569912545382977,
-0.06570693105459213,
-0.03821037709712982,
0.049602292478084564,
0.0587904118001461,
0.0398377925157547,
-0.007306420709937811,
-0.02786950394511223,
0.05624757334589958,
-0.02661503665149212,
0.008823647163808346,
0.015553691424429417,
-0.008480364456772804,
0.021664978936314583,
0.03398926556110382,
0.07920092344284058,
0.03131081163883209,
0.06889395415782928,
-0.04912762716412544,
0.05638319253921509,
-0.03485383093357086,
0.024207817390561104,
-0.030768338590860367,
-0.0055984812788665295,
0.05068723484873772,
0.0011961932759732008,
-0.014316176995635033,
0.01122239138931036,
-0.006285047624260187,
0.017732055857777596,
-0.022275259718298912,
0.04305872321128845,
-0.03242965787649155,
-0.049432769417762756,
-0.05350130796432495,
-0.0587565079331398,
0.005043295212090015,
-0.06818196177482605,
0.0035493778996169567,
0.006463046185672283,
0.04990743100643158,
0.07784474641084671,
0.021258125081658363,
0.03926141560077667,
-0.004924629349261522,
0.018308432772755623,
0.002297030296176672,
0.03236185014247894,
0.012070003896951675,
0.033243365585803986,
0.015994450077414513,
-0.003937160596251488,
0.003604472614824772,
-0.00014290219405665994,
0.05834965407848358,
-0.031531188637018204,
-0.03163290396332741,
0.04054978862404823,
0.029310444369912148,
0.01081553753465414,
0.010595157742500305,
0.06207915022969246,
0.023597534745931625,
0.023021159693598747,
0.009281358681619167,
0.038888465613126755,
-0.03729495406150818,
0.032616134732961655,
-0.00796332024037838,
0.05173827335238457,
-0.13772009313106537,
0.08340508490800858,
0.04027855023741722,
0.007166564930230379,
-0.03671857714653015,
-0.009374595247209072,
-0.0945257619023323,
0.025462282821536064,
0.01540959719568491,
-0.02768302895128727,
0.040380265563726425,
0.030903955921530724,
-0.03604048863053322,
0.023343252018094063,
0.03446393087506294,
0.033870600163936615,
-0.02305506356060505,
0.022953350096940994,
0.06184181571006775,
-0.02954777702689171,
0.0019484495278447866,
0.010705347172915936,
-0.005026342812925577,
0.04132959246635437,
-0.030988717451691628,
-0.0587226040661335,
-0.0629267618060112,
-0.02576742321252823,
0.08543935418128967,
0.007365753874182701,
0.03583706170320511,
-0.026937128975987434,
-0.03244661167263985,
-0.00351335434243083,
-0.06679187715053558,
0.005280626472085714,
0.0011506341397762299,
0.015765594318509102,
-0.019172998145222664,
-0.00309378607198596,
-0.0272931270301342,
-0.02073260396718979,
-0.011247819289565086,
-0.023444965481758118,
-0.02851368859410286,
-0.029293492436408997,
-0.07025013118982315,
-0.011196962557733059,
0.006526617333292961,
-0.029751203954219818,
0.034514784812927246,
0.02035965584218502,
-0.0167827308177948,
-0.007840416394174099,
0.004424537997692823,
-0.03131081163883209,
0.019206902012228966,
-0.011781815439462662,
0.010459539480507374,
0.010162875056266785,
0.006933471187949181,
-0.03122604824602604,
-0.057366423308849335,
-0.06180791184306145,
0.01763034239411354,
0.021359838545322418,
-0.009086407721042633,
0.0011877171928063035,
-0.039769984781742096,
0.011544483713805676,
-0.06730043888092041,
-0.0013890252448618412,
0.06262162327766418,
-0.062384288758039474,
0.016867490485310555,
-0.0220379289239645,
0.008959265425801277,
0.04048197716474533,
0.0006982209160923958,
0.019003475084900856,
-0.0020734723657369614,
0.017918530851602554,
-0.07228440791368484,
-0.1091725081205368,
0.039736080914735794,
-0.03443002328276634,
0.05475577712059021,
0.03246356174349785,
-0.0014123345026746392,
0.01718110777437687,
0.054620157927274704,
-0.0293273963034153,
0.021732788532972336,
0.018969571217894554,
-0.005704433191567659,
0.007882797159254551,
-0.06207915022969246,
0.04756801947951317,
-0.019342519342899323,
-0.013205804862082005,
-0.02452990971505642,
-0.03083614818751812,
-0.05261979252099991,
-0.037430573254823685,
0.05021257326006889,
-0.021546313539147377,
0.025648757815361023,
0.033073846250772476,
0.028276357799768448,
0.0009853496449068189,
0.0136211346834898,
0.02749655395746231,
0.001348763587884605,
-0.015680832788348198,
-0.001402798923663795,
0.07614951580762863,
-0.048313919454813004,
-0.07648856192827225,
0.05112799257040024,
-0.011298676021397114,
0.03100566938519478,
-0.024411244317889214,
0.03215842321515083,
0.009984876960515976,
-0.009908591397106647,
-0.029683394357562065,
-0.01717263087630272,
-0.0029645252507179976,
-0.039566557854413986,
-0.007247088011354208,
0.006331666372716427,
-0.0303784366697073,
-0.03188718855381012,
0.024411244317889214,
-0.041193973273038864,
0.03420964628458023,
0.02747960202395916,
0.04082102328538895,
0.002884001936763525,
-0.08564277738332748,
0.007730226963758469,
-0.02683541551232338,
-0.07221659272909164,
0.023597534745931625,
0.08543935418128967,
-0.012663332745432854,
0.008433745242655277,
0.0067978533916175365,
-0.02266516163945198,
-0.011154581792652607,
-0.0241230558604002,
0.008132843300700188,
-0.015197694301605225,
-0.03256527706980705,
-0.03234489634633064,
0.007213183678686619,
0.024614671245217323,
0.026106469333171844,
0.05604414641857147,
-0.05851917713880539,
-0.04743240401148796,
-0.09750935435295105,
0.07208097726106644,
0.00514500867575407,
-0.033446792513132095,
0.0136465635150671,
-0.0025280045811086893,
-0.043092627078294754,
-0.0006749115418642759,
0.04865296557545662,
0.02686931937932968,
-0.041838157922029495,
0.03719324246048927,
0.017732055857777596,
-0.018291480839252472,
0.016079211607575417,
-0.006780900992453098,
-0.05512872338294983,
-0.06431684643030167,
0.012442952953279018,
-0.025309713557362556,
0.002583099529147148,
-0.014070369303226471,
-0.02808988280594349,
-0.024682478979229927,
-0.018833952024579048,
0.08679553121328354,
0.043329957872629166,
-0.03675248473882675,
0.02012232318520546,
0.039736080914735794,
-0.007848893292248249,
0.023038111627101898,
0.020037561655044556,
0.023784009739756584,
-0.04987352713942528,
-0.01099353563040495,
0.05679004639387131,
0.022122690454125404,
0.010637538507580757,
-0.016079211607575417,
0.012968473136425018,
-0.02514019049704075,
-0.030920907855033875,
-0.010451063513755798,
0.026479419320821762,
-0.006844472140073776,
-0.024784192442893982,
0.0419059693813324,
-0.0036807579454034567,
-0.013773704878985882,
-0.0010965988039970398,
-0.0293782539665699,
-0.0566205233335495,
0.015875784680247307,
0.03902408480644226,
-0.052551981061697006,
-0.0377696193754673,
0.03315860778093338,
0.020444417372345924,
-0.06611378490924835,
0.017494725063443184,
-0.002394505776464939,
0.007942129857838154,
0.0544845387339592,
-0.056484904140233994,
0.049839623272418976,
-0.041634730994701385,
0.02976815588772297,
-0.026377705857157707,
-0.008916884660720825,
-0.023038111627101898,
0.008005701005458832,
0.05156875401735306,
-0.03402316942811012,
0.024038294330239296,
-0.04258405789732933,
0.0399056039750576,
0.021139459684491158,
0.03441307321190834,
0.06984327733516693,
0.015036648139357567,
0.04590670019388199,
0.0011633483227342367,
-0.05573900789022446,
-0.018596621230244637,
0.023953532800078392,
-0.10971497744321823,
0.003403164679184556,
-0.026682846248149872,
-0.06035001948475838,
-0.024801146239042282,
0.0076030851341784,
-0.027954263612627983,
-0.03634563088417053,
-0.014222939498722553,
-0.01866443082690239,
-0.016197877004742622,
0.011663150042295456,
-0.015494358725845814,
0.0004325473273638636,
-0.05679004639387131,
-0.0036828769370913506,
0.024038294330239296,
-0.009713640436530113,
0.026699798181653023,
0.039532653987407684,
0.008764314465224743,
0.048347823321819305,
-0.006696139927953482,
-0.03441307321190834,
-0.051500942558050156,
0.023156777024269104,
-0.0209529846906662,
0.04516080021858215,
-0.04468613862991333,
0.01049344427883625,
0.01700310967862606,
-0.008399841375648975,
0.029734250158071518,
0.01842709816992283,
0.00858631543815136,
-0.011569912545382977,
-0.03334508091211319,
-0.03242965787649155,
0.07282687723636627,
-0.013655039481818676,
-0.025513140484690666,
0.003625662997364998,
-0.05431501567363739,
0.016002926975488663,
0.04549984633922577,
-0.0067978533916175365,
-0.017579486593604088,
-0.03309079632163048,
0.01718958467245102,
0.00013680997653864324,
-0.018003292381763458,
0.07045356184244156,
0.0016210591420531273,
-0.09337300807237625,
-0.034921638667583466,
0.020291846245527267,
0.027733884751796722,
0.01802024431526661,
-0.02430953085422516,
-0.02452990971505642,
-0.0014684888301417232,
0.04390633478760719,
0.022800778970122337,
-0.008077748119831085,
-0.0025449569802731276,
0.015053600072860718,
-0.00039016667869873345,
-0.010400206781923771,
-0.01927471160888672,
-0.0018626287346705794,
-0.017325202003121376,
-0.01617244817316532,
-0.04424538090825081,
0.01375675294548273,
0.009145740419626236,
0.03414183482527733,
-0.02747960202395916,
-0.048347823321819305,
0.061367154121398926,
-0.046652600169181824,
-0.017782913520932198,
-0.03793914243578911,
-0.05221293866634369,
-0.007992987520992756,
0.02686931937932968,
0.03875285014510155,
-0.05048380792140961,
-0.030683577060699463,
-0.013680467382073402,
0.05407768487930298,
-0.04573717713356018,
0.005899383686482906,
-0.004865296650677919,
-0.004310110118240118,
-0.00006529266102006659,
0.06231648102402687,
0.06306237727403641,
0.02641160972416401,
-0.022580400109291077,
0.024428196251392365,
-0.050416000187397,
-0.008548173122107983,
0.00019071284623350948,
0.028276357799768448,
0.006111287046223879,
-0.017460819333791733,
-0.07418305426836014,
-0.024394290521740913,
-0.05828184261918068,
-0.06560521572828293,
-0.013697420246899128,
0.030480150133371353,
0.0011972528882324696,
-0.0043440149165689945,
-0.0033311175648123026,
0.010434111580252647,
-0.010010304860770702,
0.00296240602619946,
-0.02349582128226757,
0.032819561660289764,
-0.029412157833576202,
0.09906896203756332,
0.0043440149165689945,
0.03244661167263985,
-0.02664894051849842,
-0.036379534751176834,
-0.00691651925444603,
0.020054515451192856,
-0.05933288484811783,
-0.04299091175198555,
0.026937128975987434,
0.012926092371344566,
-0.034328311681747437,
-0.021105553954839706,
0.05960411950945854,
0.011002011597156525,
0.021054698154330254,
-0.0524502694606781,
-0.0009572724811732769,
-0.004127873573452234,
0.032802607864141464,
-0.02873406745493412,
0.07282687723636627,
-0.024614671245217323,
-0.010434111580252647,
0.01269723754376173,
-0.06730043888092041,
-0.0014504770515486598,
-0.00861174426972866,
-0.013070186600089073,
-0.0013784300535917282,
-0.032853465527296066,
-0.005848526954650879,
0.021970119327306747,
-0.034718211740255356,
-0.028445878997445107,
0.027767790481448174,
0.03705762326717377,
0.0023817915935069323,
0.0033417127560824156,
-0.021885357797145844,
-0.01396017987281084,
-0.04302481561899185,
-0.023868771269917488,
0.015655405819416046,
-0.05550167337059975,
-0.020681748166680336,
0.0188678577542305,
0.012798951007425785,
0.008649886585772038,
0.02875101938843727,
0.05122970789670944,
0.0006950423703528941,
-0.02434343472123146,
-0.027106652036309242,
-0.022580400109291077,
0.026072563603520393,
0.033073846250772476,
-0.013697420246899128,
0.03587096557021141,
0.04631355404853821,
0.016036830842494965,
-0.061129823327064514,
0.02224135585129261,
0.05048380792140961,
0.018766144290566444,
0.04051588475704193,
0.0015723214019089937,
-0.014044941402971745,
-0.0399056039750576,
-0.03415878862142563,
0.038922373205423355,
-0.01973242126405239,
0.010561252944171429,
0.012883711606264114,
0.02308896742761135,
0.0303784366697073,
-0.014468747191131115,
0.031734615564346313,
-0.028462832793593407,
0.00816250964999199,
-0.0011061344994232059,
0.013341423124074936,
-0.02076650969684124,
0.008840600028634071,
0.02768302895128727,
0.04661869630217552,
0.012756570242345333,
0.041634730994701385,
-0.01930861547589302,
0.07587828487157822,
0.07404743880033493,
-0.09255930036306381,
0.01910518854856491,
0.032853465527296066,
0.037735715508461,
-0.027852550148963928,
-0.026682846248149872,
0.005056009162217379,
-0.004180849064141512,
-0.011374961584806442,
-0.0025046952068805695,
0.008899932727217674,
0.003831209149211645,
-0.03841380402445793
] |
10,007
|
torch.nn.modules.module
|
__setstate__
| null |
def __setstate__(self, state):
self.__dict__.update(state)
# Support loading old checkpoints that don't have the following attrs:
if '_forward_pre_hooks' not in self.__dict__:
self._forward_pre_hooks = OrderedDict()
if '_forward_pre_hooks_with_kwargs' not in self.__dict__:
self._forward_pre_hooks_with_kwargs = OrderedDict()
if '_forward_hooks_with_kwargs' not in self.__dict__:
self._forward_hooks_with_kwargs = OrderedDict()
if '_forward_hooks_always_called' not in self.__dict__:
self._forward_hooks_always_called = OrderedDict()
if '_state_dict_hooks' not in self.__dict__:
self._state_dict_hooks = OrderedDict()
if '_state_dict_pre_hooks' not in self.__dict__:
self._state_dict_pre_hooks = OrderedDict()
if '_load_state_dict_pre_hooks' not in self.__dict__:
self._load_state_dict_pre_hooks = OrderedDict()
if '_load_state_dict_post_hooks' not in self.__dict__:
self._load_state_dict_post_hooks = OrderedDict()
if '_non_persistent_buffers_set' not in self.__dict__:
self._non_persistent_buffers_set = set()
if '_is_full_backward_hook' not in self.__dict__:
self._is_full_backward_hook = None
if '_backward_pre_hooks' not in self.__dict__:
self._backward_pre_hooks = OrderedDict()
|
(self, state)
|
[
-0.025847412645816803,
-0.006336727645248175,
-0.012441078200936317,
0.05759361386299133,
-0.03821698948740959,
-0.0006133398273959756,
-0.05687860772013664,
0.03775223717093468,
-0.0064395093359053135,
-0.046046290546655655,
-0.024792781099677086,
0.03746623545885086,
-0.002506984630599618,
0.042793020606040955,
-0.051730576902627945,
0.03008381463587284,
0.004634122829884291,
0.009160995483398438,
-0.0696771889925003,
-0.04143451154232025,
0.00712323235347867,
-0.01427327748388052,
0.03449896723031998,
0.06574466824531555,
-0.01385321281850338,
-0.02111050859093666,
-0.010465878061950207,
-0.0133973965421319,
0.05809411779046059,
0.028063926845788956,
-0.013576148077845573,
-0.027313172817230225,
-0.01796448789536953,
0.011931637302041054,
0.03775223717093468,
-0.05898787081241608,
0.009312933310866356,
0.04368677735328674,
-0.06781817972660065,
-0.006363539956510067,
0.0036375855561345816,
-0.03928949683904648,
-0.016641730442643166,
0.02370239980518818,
0.03004806488752365,
0.03281870856881142,
-0.00982237420976162,
0.04014750197529793,
0.04840580374002457,
-0.07171495258808136,
0.0005644625634886324,
-0.056592606008052826,
0.03893199563026428,
0.04508103430271149,
-0.006189257837831974,
-0.008294052444398403,
0.07436046749353409,
0.017446110025048256,
-0.008705180138349533,
0.02697354555130005,
-0.03594685345888138,
-0.023184021934866905,
0.013602960854768753,
-0.06620942056179047,
-0.002618703991174698,
-0.030691567808389664,
-0.016677480190992355,
0.026616042479872704,
-0.02758129872381687,
0.013290146365761757,
-0.015345783904194832,
-0.01341527234762907,
0.027384672313928604,
-0.005912193562835455,
-0.031209947541356087,
0.011216633021831512,
-0.0883745551109314,
0.020181002095341682,
-0.04583178833127022,
-0.007355608977377415,
-0.0045939041301608086,
0.031460199505090714,
-0.047583550214767456,
0.03396271541714668,
-0.04622504115104675,
-0.026330040767788887,
0.028028177097439766,
0.007386890240013599,
-0.021432260051369667,
-0.014309028163552284,
-0.028135428205132484,
0.05673560872673988,
0.0007663954747840762,
0.016552355140447617,
0.03537484630942345,
-0.005277627147734165,
-0.015086594969034195,
0.01548878476023674,
-0.03746623545885086,
-0.019019119441509247,
-0.0736454650759697,
-0.047655049711465836,
-0.012521516531705856,
-0.017741048708558083,
-0.025901038199663162,
-0.07260870933532715,
0.0017975660739466548,
-0.04654679447412491,
0.0024019682314246893,
-0.05948837473988533,
-0.015917787328362465,
-0.04297177121043205,
-0.028814680874347687,
0.03996875137090683,
0.01147582195699215,
0.020574254915118217,
0.005912193562835455,
-0.055734600871801376,
0.0018534257542341948,
-0.006323321256786585,
-0.012584079056978226,
0.024077776819467545,
-0.0220042634755373,
0.0421137660741806,
-0.024774907156825066,
0.0071813263930380344,
0.02280864305794239,
0.06681717187166214,
0.059130873531103134,
-0.0870160460472107,
-0.00851749163120985,
0.0007261764258146286,
-0.04157751053571701,
0.04243551939725876,
-0.0005574800889007747,
-0.021700385957956314,
0.007614797912538052,
0.014505653642117977,
-0.02604403905570507,
-0.008508553728461266,
0.013334834016859531,
0.01433584000915289,
0.02616916596889496,
-0.008723055012524128,
0.02204001322388649,
0.057486362755298615,
-0.015417284332215786,
0.00010697137622628361,
-0.011234507896006107,
0.02273714356124401,
0.058952122926712036,
-0.025043033063411713,
-0.01055525429546833,
0.008396834135055542,
-0.057450611144304276,
0.011752886697649956,
-0.0487990565598011,
-0.046046290546655655,
0.010805505327880383,
0.021021133288741112,
-0.015444097109138966,
-0.018295178189873695,
-0.008075081743299961,
-0.060775384306907654,
-0.0076952362433075905,
0.03187132626771927,
-0.021611010655760765,
-0.07579047977924347,
-0.012691330164670944,
0.01309351995587349,
-0.053410835564136505,
-0.05770086497068405,
-0.00673891743645072,
0.1027461513876915,
-0.0046117790043354034,
0.05480509623885155,
-0.0004452020220924169,
-0.018295178189873695,
-0.024900032207369804,
-0.013272271491587162,
0.029064932838082314,
-0.0020723959896713495,
-0.0650654137134552,
0.0075343600474298,
-0.016060788184404373,
0.008584522642195225,
-0.024614030495285988,
0.019144246354699135,
0.05151607468724251,
0.08887506276369095,
0.012753892689943314,
-0.0261155404150486,
0.012110388837754726,
0.01093956921249628,
-0.0293688103556633,
0.046832796186208725,
-0.032193079590797424,
-0.06499391049146652,
0.05784386396408081,
0.031156321987509727,
0.01344208512455225,
-0.025936787948012352,
0.01880461908876896,
0.001762932981364429,
-0.005590441636741161,
0.027152296155691147,
-0.01962687447667122,
0.03162107616662979,
0.02370239980518818,
0.02609766460955143,
0.005040781572461128,
-0.049299560487270355,
-0.024006277322769165,
0.051694825291633606,
0.013942588120698929,
-0.06864043325185776,
0.07421746850013733,
0.036286476999521255,
-0.007802486885339022,
0.028206927701830864,
0.1119697093963623,
0.05602060258388519,
-0.019322996959090233,
-0.03004806488752365,
-0.04715454578399658,
0.002542734844610095,
-0.013308021239936352,
-0.033926963806152344,
-0.018321990966796875,
0.004781592637300491,
-0.005049719475209713,
0.01052844151854515,
-0.027956675738096237,
0.007436046842485666,
0.07757798582315445,
0.03237183019518852,
-0.014738030731678009,
-0.0033024270087480545,
-0.06131163612008095,
0.027509799227118492,
0.02604403905570507,
0.014058776199817657,
0.037144485861063004,
-0.03828849270939827,
-0.029994439333677292,
-0.006421634461730719,
0.039575498551130295,
0.020556379109621048,
-0.06413590162992477,
0.022379640489816666,
0.005894318222999573,
-0.011511572636663914,
-0.03278295695781708,
0.0003256622003391385,
0.009518497623503208,
-0.008235958404839039,
0.04983581602573395,
0.003601835109293461,
0.013138207606971264,
0.02622278966009617,
0.025901038199663162,
-0.03835999220609665,
-0.018929744139313698,
0.012610891833901405,
0.007923143915832043,
0.00032091414323076606,
0.044473279267549515,
-0.0253469105809927,
-0.06674566864967346,
0.020520629361271858,
0.09738361090421677,
-0.01943024806678295,
-0.00809295754879713,
0.05383983999490738,
-0.02516815811395645,
-0.08201101422309875,
0.03169257566332817,
-0.017544422298669815,
-0.02763492427766323,
-1.483773957033918e-7,
0.09402309358119965,
0.004439731128513813,
0.044401779770851135,
0.037180233746767044,
-0.011967387981712818,
-0.05641385540366173,
-0.05072956904768944,
0.04547428712248802,
0.03188920021057129,
-0.05294608324766159,
0.058344367891550064,
0.03346221148967743,
0.03648310527205467,
0.03162107616662979,
0.05480509623885155,
-0.019823500886559486,
-0.0880170539021492,
0.046797044575214386,
0.04236401617527008,
0.01563178561627865,
0.0746464729309082,
-0.04329352453351021,
-0.0006753440829925239,
0.06413590162992477,
0.034749217331409454,
-0.01777680031955242,
0.027903050184249878,
0.014979344792664051,
0.024989407509565353,
-0.004567091353237629,
0.030423441901803017,
0.020931756123900414,
-0.04833430424332619,
0.04493803158402443,
0.05065806955099106,
-0.050515066832304,
-0.020127376541495323,
-0.06474366039037704,
-0.009536372497677803,
0.054054342210292816,
-0.05673560872673988,
-0.010278189554810524,
-0.024864282459020615,
0.03928949683904648,
-0.02198638953268528,
-0.03194282576441765,
0.06460065394639969,
-0.020717255771160126,
0.0017093076603487134,
-0.024059901013970375,
-0.09738361090421677,
-0.04322202131152153,
0.03825274109840393,
0.06120438501238823,
-0.07528997212648392,
-0.004292261321097612,
0.00861580390483141,
-0.021021133288741112,
-0.015899913385510445,
-0.04318627342581749,
0.0732879638671875,
0.04801255464553833,
-0.06349240243434906,
-0.012986269779503345,
0.001564072328619659,
-0.002886830596253276,
-0.013817462138831615,
0.008477272465825081,
0.06656692177057266,
-0.009330809116363525,
-0.09480959922075272,
-0.01268239226192236,
-0.018241552636027336,
0.0618121400475502,
0.0325327068567276,
-0.03265783190727234,
-0.005344658624380827,
-0.06399290263652802,
0.005894318222999573,
-0.059988878667354584,
0.017544422298669815,
0.011967387981712818,
-0.08072400838136673,
0.014764843508601189,
0.055126845836639404,
0.009929625317454338,
-0.012825393117964268,
-0.05641385540366173,
-0.00573344249278307,
-0.022451141849160194,
0.024256527423858643,
-0.1061781719326973,
-0.00593006843701005,
0.04997881501913071,
0.055806100368499756,
0.002370686735957861,
-0.04332927241921425,
0.01628422737121582,
0.03206795081496239,
0.05144457519054413,
0.04543853551149368,
-0.035339098423719406,
0.016704292967915535,
0.04475928097963333,
0.02454252913594246,
0.009147589094936848,
0.04164901375770569,
-0.0012222108198329806,
0.111326202750206,
-0.01705285720527172,
-0.017741048708558083,
0.01887611858546734,
-0.004140323027968407,
-0.030423441901803017,
0.0054250964894890785,
0.00712323235347867,
0.06363540142774582,
0.023273397237062454,
0.05212382972240448,
-0.02591891400516033,
0.06667417287826538,
-0.0006541173788718879,
0.010501628741621971,
0.027152296155691147,
0.018893994390964508,
-0.004294496029615402,
0.01019775215536356,
0.08715905249118805,
-0.019787749275565147,
-0.03928949683904648,
0.023988401517271996,
0.006944481283426285,
-0.049371059983968735,
-0.04633229225873947,
-0.001840019365772605,
0.0006206015823408961,
0.040934007614851,
-0.0474405474960804,
0.025579286739230156,
0.011743948794901371,
0.04586753994226456,
0.08315502107143402,
0.03426659107208252,
0.03592897579073906,
-0.00529550202190876,
0.0031683638226240873,
-0.031192071735858917,
-0.0081331767141819,
0.03187132626771927,
0.05366108939051628,
-0.0046117790043354034,
0.0145950298756361,
-0.03169257566332817,
0.04636804386973381,
0.007060669362545013,
-0.0075745792128145695,
0.020896006375551224,
-0.031442321836948395,
0.00021310485317371786,
0.03446321561932564,
-0.0030007846653461456,
-0.017571235075592995,
0.04168476164340973,
0.01182438712567091,
0.009147589094936848,
-0.015560285188257694,
-0.04086250811815262,
0.028206927701830864,
0.0356072261929512,
-0.022558392956852913,
-0.004616247955709696,
-0.026705417782068253,
-0.015837348997592926,
-0.014523529447615147,
-0.0033605212811380625,
0.02697354555130005,
-0.0341593399643898,
-0.007221545558422804,
-0.020788755267858505,
0.004991625435650349,
-0.011788636445999146,
0.004786061588674784,
-0.0356965996325016,
0.030298316851258278,
-0.005465315654873848,
-0.02112838253378868,
-0.050157565623521805,
-0.006171382497996092,
-0.02280864305794239,
-0.007462859619408846,
-0.009169932454824448,
-0.011154070496559143,
-0.006238414440304041,
-0.028868306428194046,
-0.027259547263383865,
-0.01713329553604126,
-0.02207576483488083,
-0.05541285127401352,
-0.059738628566265106,
-0.051623325794935226,
0.004176073241978884,
-0.020109502598643303,
-0.009840250015258789,
0.007065138313919306,
0.004978219047188759,
-0.034749217331409454,
0.0202882532030344,
0.0081555200740695,
0.051694825291633606,
0.029905064031481743,
-0.04375827684998512,
-0.03097756952047348,
0.02375602535903454,
-0.010957444086670876,
0.014031963422894478,
0.02515028417110443,
-0.0069757625460624695,
-0.003894540248438716,
0.0539470911026001,
-0.03351583704352379,
0.005049719475209713,
-0.015846287831664085,
0.02034187875688076,
0.032943833619356155,
0.017267359420657158,
0.014398403465747833,
-0.03526759892702103,
0.007436046842485666,
-0.0012657814659178257,
0.03088819421827793,
0.025507785379886627,
0.0051301573403179646,
0.060811132192611694,
-0.010912756435573101,
-0.006604854017496109,
-0.05616360530257225,
-0.028332052752375603,
0.0503363162279129,
-0.026365790516138077,
0.01019775215536356,
0.03861024230718613,
0.021485885605216026,
0.046761296689510345,
-0.0393967479467392,
-0.018393490463495255,
0.012521516531705856,
0.047583550214767456,
-0.03491009399294853,
0.012718142941594124,
-0.004015197046101093,
0.011511572636663914,
-0.01948387362062931,
0.019340872764587402,
0.07757798582315445,
-0.005626191850751638,
0.020896006375551224,
0.014952532015740871,
-0.008785617537796497,
-0.04919230937957764,
-0.039503999054431915,
0.052552830427885056,
-0.011171945370733738,
0.0008077316451817751,
0.039432499557733536,
0.009232495911419392,
-0.009268245659768581,
-0.056771356612443924,
-0.011341759003698826,
-0.045116785913705826,
-0.03358733654022217,
-0.027474047616124153,
-0.053768340498209,
0.0005077649257145822,
-0.022594142705202103,
0.004696685820817947,
-0.06377840042114258,
0.08622954040765762,
0.040934007614851,
0.036375854164361954,
-0.004727967549115419,
-0.058952122926712036,
0.021682512015104294,
-0.010492690838873386,
-0.019930750131607056,
0.005255283322185278,
0.01799130067229271,
0.0055770352482795715,
0.0026231727097183466,
-0.013880024664103985,
0.0016400415915995836,
0.06846167892217636,
0.04004025086760521,
-0.01023350190371275,
0.00689979363232851,
0.0035794912837445736,
0.0009295058553107083,
0.012861143797636032,
0.040219005197286606,
0.005201657768338919,
-0.03167469799518585,
0.05562734976410866,
0.006935543846338987,
-0.016883043572306633,
-0.020198877900838852,
-0.005013969261199236,
0.019233621656894684,
-0.013075645081698895,
0.10710767656564713,
0.007386890240013599,
-0.03353371098637581,
-0.07017768919467926,
-0.042078014463186264,
0.05140882357954979,
-0.0098491869866848,
-0.0229516439139843,
0.023791775107383728,
0.037930987775325775,
-0.02368452399969101,
-0.00016534479800611734,
-0.008075081743299961,
-0.009116307832300663,
0.03188920021057129,
0.030655818060040474,
-0.036304354667663574,
-0.005174844991415739,
-0.016668543219566345,
-0.013513585552573204,
0.0893755629658699,
-0.024828530848026276,
-0.003872196190059185,
0.023201895877718925,
0.004301199223846197,
0.011922700330615044,
-0.0133973965421319,
-0.04375827684998512,
-0.03896774724125862,
0.03846724331378937,
0.027402548119425774,
-0.0301374401897192,
0.0009194511221721768,
-0.02849292941391468,
-0.0392179973423481,
-0.011574135161936283,
0.021414384245872498,
-0.04218526557087898,
-0.045152533799409866,
0.03088819421827793,
-0.06392139941453934,
0.006859574466943741,
-0.0638856515288353,
-0.000497430854011327,
0.01345102209597826,
0.0013406334910541773,
-0.05880912020802498,
0.06620942056179047,
-0.0012925941264256835,
0.04497378319501877,
0.03010169044137001,
-0.014460965991020203,
0.015256408601999283,
0.0035906631965190172,
0.009357621893286705,
0.03982575237751007,
-0.019179996103048325,
-0.02851080521941185,
0.007659486029297113,
-0.0030007846653461456,
0.006014975253492594,
0.08887506276369095,
0.01632891595363617,
-0.006390352733433247,
0.010421190410852432,
-0.04318627342581749,
0.0013171723112463951,
-0.01887611858546734,
0.04404427856206894,
0.03267570585012436,
-0.0005373705644160509,
0.05291033536195755,
-0.05455484241247177,
-0.09223558008670807,
0.042685769498348236,
-0.049299560487270355,
0.02759917452931404,
0.04908505827188492,
0.04336502403020859,
-0.0616333894431591,
0.0600961297750473,
0.017294172197580338,
-0.0028577835764735937,
-0.035482097417116165,
0.011198758147656918,
-0.01866161823272705,
-0.003264442551881075,
-0.001281422097235918,
-0.05519834905862808,
0.024006277322769165,
-0.031370822340250015,
0.06241989508271217,
0.004240870475769043,
-0.046832796186208725,
0.05691435933113098,
0.002851080382242799,
0.002542734844610095,
0.002902471460402012,
0.05691435933113098,
0.029154308140277863,
0.023291271179914474,
0.02211151458323002,
-0.021611010655760765,
-0.04079100862145424,
0.011189820244908333,
0.008995650336146355,
-0.00978662446141243,
-0.014872093684971333,
-0.08580054342746735,
-0.051873575896024704,
-0.1078941822052002,
0.01800023764371872,
-0.05466209352016449,
0.02032400295138359,
0.038824744522571564,
-0.010260314680635929,
-0.029851438477635384,
0.02048487961292267,
0.001663502654992044,
-0.015810538083314896,
-0.042042266577482224,
-0.01959112286567688,
-0.021789763122797012,
0.046868544071912766,
-0.042793020606040955,
0.022522641345858574,
-0.018152177333831787,
0.040219005197286606,
-0.02207576483488083,
0.002171826083213091,
-0.06878343224525452,
-0.02459615468978882,
0.027205921709537506,
-0.036357980221509933,
0.02851080521941185,
-0.000008365866960957646,
-0.041077010333538055,
0.013585085980594158,
-0.02536478452384472,
-0.036357980221509933,
-0.0013506881659850478,
-0.015819475054740906,
0.0004153170739300549,
-0.016918793320655823,
0.0028689554892480373,
-0.050014566630125046,
-0.025865288451313972,
0.007105357479304075,
-0.06263439357280731,
0.06942693889141083,
0.023863274604082108,
0.006828293204307556,
0.053446587175130844,
0.015569223091006279,
0.007860580459237099,
-0.023827524855732918,
0.005907724611461163,
-0.01618591509759426,
0.019126370549201965,
-0.012861143797636032,
-0.03582172468304634,
-0.019305121153593063,
0.028242677450180054,
-0.001123339170590043,
0.051802076399326324,
0.015596035867929459,
-0.012056763283908367,
0.0638856515288353,
-0.038717493414878845,
-0.00425204262137413,
0.005349127575755119,
-0.0004778799775522202,
-0.0650654137134552,
-0.07371696829795837,
-0.06674566864967346,
0.029601186513900757,
0.018116427585482597,
0.059810128062963486,
0.02529328502714634,
-0.020896006375551224,
-0.0012188592227175832
] |
10,008
|
torch.nn.modules.module
|
_apply
| null |
def _apply(self, fn, recurse=True):
if recurse:
for module in self.children():
module._apply(fn)
def compute_should_use_set_data(tensor, tensor_applied):
if torch._has_compatible_shallow_copy_type(tensor, tensor_applied):
# If the new tensor has compatible tensor type as the existing tensor,
# the current behavior is to change the tensor in-place using `.data =`,
# and the future behavior is to overwrite the existing tensor. However,
# changing the current behavior is a BC-breaking change, and we want it
# to happen in future releases. So for now we introduce the
# `torch.__future__.get_overwrite_module_params_on_conversion()`
# global flag to let the user control whether they want the future
# behavior of overwriting the existing tensor or not.
return not torch.__future__.get_overwrite_module_params_on_conversion()
else:
return False
should_use_swap_tensors = torch.__future__.get_swap_module_params_on_conversion()
for key, param in self._parameters.items():
if param is None:
continue
# Tensors stored in modules are graph leaves, and we don't want to
# track autograd history of `param_applied`, so we have to use
# `with torch.no_grad():`
with torch.no_grad():
param_applied = fn(param)
p_should_use_set_data = compute_should_use_set_data(param, param_applied)
# subclasses may have multiple child tensors so we need to use swap_tensors
p_should_use_swap_tensors = should_use_swap_tensors or is_traceable_wrapper_subclass(param_applied)
param_grad = param.grad
if p_should_use_swap_tensors:
try:
if param_grad is not None:
# Accessing param.grad makes its at::Tensor's use_count 2, which will prevent swapping.
# Decrement use count of the gradient by setting to None
param.grad = None
param_applied = torch.nn.Parameter(param_applied, requires_grad=param.requires_grad)
torch.utils.swap_tensors(param, param_applied)
except Exception as e:
if param_grad is not None:
param.grad = param_grad
raise RuntimeError(f"_apply(): Couldn't swap {self._get_name()}.{key}") from e
out_param = param
elif p_should_use_set_data:
param.data = param_applied
out_param = param
else:
assert isinstance(param, Parameter)
assert param.is_leaf
out_param = Parameter(param_applied, param.requires_grad)
self._parameters[key] = out_param
if param_grad is not None:
with torch.no_grad():
grad_applied = fn(param_grad)
g_should_use_set_data = compute_should_use_set_data(param_grad, grad_applied)
if p_should_use_swap_tensors:
grad_applied.requires_grad_(param_grad.requires_grad)
try:
torch.utils.swap_tensors(param_grad, grad_applied)
except Exception as e:
raise RuntimeError(f"_apply(): Couldn't swap {self._get_name()}.{key}.grad") from e
out_param.grad = param_grad
elif g_should_use_set_data:
assert out_param.grad is not None
out_param.grad.data = grad_applied
else:
assert param_grad.is_leaf
out_param.grad = grad_applied.requires_grad_(param_grad.requires_grad)
for key, buf in self._buffers.items():
if buf is not None:
self._buffers[key] = fn(buf)
return self
|
(self, fn, recurse=True)
|
[
0.012139889411628246,
-0.06333855539560318,
-0.014992154203355312,
0.0712558701634407,
-0.051848288625478745,
0.019478635862469673,
-0.06337915360927582,
0.01788502186536789,
0.02980160154402256,
-0.013489893637597561,
0.025660235434770584,
0.005288363434374332,
0.027304600924253464,
-0.0023713894188404083,
-0.029354983940720558,
0.02279781922698021,
0.005790808703750372,
0.09452061355113983,
0.005400017835199833,
-0.019955703988671303,
-0.00449409382417798,
-0.018148932605981827,
0.0016443663043901324,
0.0479099303483963,
-0.03282642364501953,
-0.03309033438563347,
0.03296852856874466,
-0.0024322918616235256,
0.014058317057788372,
0.027324901893734932,
-0.011317706666886806,
-0.023183533921837807,
0.042022693902254105,
0.0108101861551404,
0.003555180737748742,
0.002414528513327241,
-0.039911407977342606,
0.05180769041180611,
-0.07478821277618408,
-0.02186398208141327,
0.007384422700852156,
-0.06272953003644943,
0.012566206976771355,
-0.031709879636764526,
0.024949705228209496,
0.0385715551674366,
0.005892312619835138,
0.08794314414262772,
-0.023203834891319275,
-0.022127892822027206,
0.050914451479911804,
-0.05879117175936699,
0.026898585259914398,
0.0079477708786726,
-0.006927654147148132,
0.06837315857410431,
0.05355355888605118,
-0.0226760134100914,
0.042956531047821045,
-0.05631447210907936,
0.07446340471506119,
-0.032562512904405594,
-0.04052043333649635,
-0.0081710796803236,
-0.018159082159399986,
-0.011896279640495777,
-0.05915658548474312,
-0.05326934903860092,
-0.00402971263974905,
0.07121527194976807,
-0.02827904000878334,
-0.01624065451323986,
0.04888436943292618,
0.01362184900790453,
-0.04064223915338516,
-0.018747806549072266,
0.03357755392789841,
-0.0299031063914299,
-0.013591397553682327,
-0.029253479093313217,
-0.004593060351908207,
0.002783749718219042,
-0.010881238617002964,
-0.017570357769727707,
-0.041555777192115784,
-0.022635413333773613,
-0.0032811197452247143,
-0.05103625729680061,
0.00026343483477830887,
-0.04596105217933655,
-0.04616406187415123,
-0.0012929083313792944,
0.023163234815001488,
0.009744392707943916,
0.06849496066570282,
0.01763126067817211,
-0.0011907698353752494,
-0.042144499719142914,
-0.05473100766539574,
-0.017042536288499832,
-0.01976284757256508,
0.06853556632995605,
0.025924144312739372,
0.025152714923024178,
0.08493862301111221,
-0.07227091491222382,
-0.04348435252904892,
0.00035462991218082607,
-0.0065571642480790615,
-0.039789605885744095,
-0.04425578564405441,
0.013175231404602528,
-0.009850972332060337,
0.0005830141017213464,
0.02137676253914833,
-0.034206878393888474,
-0.0783611610531807,
-0.01268801186233759,
-0.005770507734268904,
0.02850234881043434,
0.04425578564405441,
0.06195809692144394,
-0.016108699142932892,
-0.03625726327300072,
-0.020524127408862114,
0.04137306660413742,
0.05501521751284599,
0.06354156136512756,
0.017377501353621483,
-0.04929038882255554,
-0.030593333765864372,
0.03581064194440842,
-0.027081292122602463,
0.03635876625776291,
0.036744482815265656,
-0.004823981784284115,
-0.02911137416958809,
0.015834638848900795,
-0.06938819587230682,
-0.02103164792060852,
0.028542950749397278,
-0.01626095548272133,
0.07340776175260544,
0.05221370607614517,
0.0631355419754982,
-0.009617513045668602,
0.014098918065428734,
0.03516101837158203,
-0.03516101837158203,
-0.04592045024037361,
0.008764877915382385,
0.019894802942872047,
-0.0018131168326362967,
0.024503087624907494,
-0.05793853476643562,
0.032075293362140656,
-0.02172187529504299,
0.022818120196461678,
-0.03844974935054779,
-0.034085072576999664,
-0.03560763597488403,
-0.022006087005138397,
0.008140628226101398,
0.006196824833750725,
0.0081710796803236,
-0.03974900394678116,
0.0075265285558998585,
-0.06122726947069168,
-0.004618436098098755,
0.017600810155272484,
0.01599704474210739,
-0.06061824411153793,
0.0628107339143753,
0.03130386024713516,
-0.013347787782549858,
0.06451600044965744,
0.02312263287603855,
-0.05619266629219055,
-0.017793666571378708,
0.03796252980828285,
0.034064773470163345,
-0.027852723374962807,
-0.00592783885076642,
-0.04332194849848747,
-0.010185935534536839,
0.04453999549150467,
-0.02397526614367962,
-0.011875978671014309,
-0.0016545166727155447,
0.030065512284636497,
0.01765156164765358,
-0.009505858644843102,
0.022006087005138397,
-0.01419027242809534,
0.007074835244566202,
0.010043829679489136,
-0.007166189141571522,
0.004963550250977278,
0.05034602805972099,
0.029882805421948433,
0.013408690690994263,
-0.07024083286523819,
0.0949266254901886,
0.03855125606060028,
-0.06520622968673706,
-0.0007162382244132459,
-0.002890329109504819,
0.05314754322171211,
-0.014778995886445045,
0.007917319424450397,
0.0030628859531134367,
-0.041657280176877975,
0.03599335253238678,
0.032664015889167786,
0.000812032725661993,
-0.044133979827165604,
0.0047326283529400826,
0.012190641835331917,
0.042834725230932236,
0.004897572565823793,
-0.0005700089386664331,
0.011134998872876167,
-0.019001565873622894,
0.01777336746454239,
0.0427941270172596,
-0.026614373549818993,
-0.008795329369604588,
-0.053715966641902924,
0.010850787162780762,
0.012647409923374653,
0.026979787275195122,
0.010546275414526463,
0.0010899001499637961,
-0.04356555640697479,
0.061998698860406876,
-0.03026852011680603,
-0.019691793248057365,
-0.016565468162298203,
-0.0034968159161508083,
-0.013631999492645264,
-0.02490910515189171,
0.01274891383945942,
0.0015250990400090814,
0.004834132269024849,
-0.019326379522681236,
-0.018433142453432083,
0.02793392539024353,
0.04344375059008598,
-0.002113822614774108,
0.016910580918192863,
0.01519516296684742,
-0.021782778203487396,
-0.02639106474816799,
0.020991045981645584,
-0.05225430801510811,
-0.03855125606060028,
0.0360136516392231,
0.03361815586686134,
0.007100211456418037,
0.018900062888860703,
0.024604592472314835,
-0.06540923565626144,
-0.01419027242809534,
0.014718092978000641,
-0.01821998506784439,
-0.042712923139333725,
0.01669742353260517,
-0.004121066071093082,
-0.031263262033462524,
0.04523022472858429,
-0.045514434576034546,
0.010789885185658932,
0.00007894322334323078,
0.027954226359725,
-0.008759803138673306,
-0.0004834132269024849,
0.03905877470970154,
-0.0039205956272780895,
0.03284672275185585,
0.012302296236157417,
0.06354156136512756,
-0.06065884605050087,
-0.04417458176612854,
-0.009394203312695026,
-0.005176708567887545,
-0.007780288811773062,
-0.00010943409870378673,
0.02302112802863121,
0.01739780232310295,
0.011378608644008636,
0.051848288625478745,
0.022757217288017273,
0.04013471677899361,
0.018900062888860703,
0.03286702558398247,
0.0038089409936219454,
-0.06776413321495056,
-0.003611008170992136,
0.05741071328520775,
-0.03648057207465172,
0.04965580254793167,
-0.03436928614974022,
-0.021823380142450333,
-0.006379532162100077,
0.07011902332305908,
-0.026695575565099716,
0.0196207407861948,
-0.0030248218681663275,
-0.020777888596057892,
0.04360615834593773,
0.013286885805428028,
-0.006826150231063366,
0.02174217626452446,
0.012576357461512089,
0.053715966641902924,
-0.08664389699697495,
0.05022422596812248,
-0.006455660331994295,
-0.0024119908921420574,
0.05590845271945,
-0.03635876625776291,
0.04222570359706879,
-0.018839159980416298,
0.05164528265595436,
0.002235627733170986,
-0.01127710472792387,
0.05659868195652962,
0.007435174658894539,
-0.001061352202668786,
-0.004146442282944918,
-0.041433971375226974,
0.016382761299610138,
0.040601637214422226,
0.019915102049708366,
-0.08120327442884445,
0.02417827397584915,
0.0247872993350029,
-0.017245545983314514,
0.05448739603161812,
0.020260216668248177,
0.03128356114029884,
0.027771519497036934,
-0.04013471677899361,
0.013439142145216465,
-0.003578019328415394,
0.02186398208141327,
0.03528282418847084,
0.0674799233675003,
0.045879848301410675,
0.014169971458613873,
0.009952476248145103,
-0.022493306547403336,
-0.03656177222728729,
0.04441818967461586,
0.026857983320951462,
-0.010952292010188103,
-0.018138781189918518,
-0.005217310506850481,
-0.011693271808326244,
-0.08907999098300934,
0.03660237416625023,
-0.031608372926712036,
-0.015936141833662987,
0.09801235049962997,
0.06756112724542618,
-0.009338376112282276,
-0.05351295694708824,
0.019224874675273895,
0.030796341598033905,
-0.07097166031599045,
0.05619266629219055,
-0.04945279285311699,
0.02257451042532921,
-0.009739317931234837,
0.0008868920267559588,
0.002821813803166151,
-0.03341514617204666,
0.020067358389496803,
0.04994001239538193,
-0.010251913219690323,
0.017144041135907173,
-0.018494045361876488,
0.033963270485401154,
-0.021457964554429054,
0.008739502169191837,
0.0010715025709941983,
0.07352956384420395,
-0.07007842510938644,
0.06074004992842674,
-0.035465531051158905,
0.01624065451323986,
0.06496261805295944,
-0.04498661309480667,
0.03075573965907097,
-0.07876717299222946,
0.025294819846749306,
0.03660237416625023,
0.036521174013614655,
-0.0071357376873493195,
-0.05728891119360924,
0.005734981037676334,
-0.0876995325088501,
-0.00007394731801468879,
0.046691883355379105,
0.05006181821227074,
0.011155299842357635,
0.04226630553603172,
0.07178369164466858,
0.0015885391039773822,
0.03818583860993385,
-0.050305429846048355,
-0.012941772118210793,
-0.052538517862558365,
0.014362828806042671,
0.024340681731700897,
0.015712833032011986,
0.04807233810424805,
0.010718831792473793,
0.026147454977035522,
0.0053644911386072636,
0.035140715539455414,
0.0010594489285722375,
0.018199684098362923,
0.05676108971238136,
0.019783146679401398,
-0.02933468297123909,
-0.019549688324332237,
0.007668634410947561,
-0.0801476314663887,
0.04815354198217392,
-0.01659591868519783,
-0.031608372926712036,
0.00010380379535490647,
-0.01602749526500702,
0.014860198833048344,
-0.0343489833176136,
0.010536124929785728,
0.01708313822746277,
-0.008105101995170116,
0.03794223070144653,
0.03166927769780159,
-0.006958105601370335,
-0.003032434731721878,
-0.08217771351337433,
-0.04230690747499466,
0.02255420945584774,
0.013824857771396637,
0.05099565535783768,
-0.09443940967321396,
-0.01938728243112564,
0.02994370646774769,
0.043890368193387985,
0.02383316121995449,
0.0026619448326528072,
-0.027527909725904465,
-0.053106941282749176,
0.0025198389776051044,
-0.06817014515399933,
0.010789885185658932,
0.04033772647380829,
-0.03122265823185444,
0.008424839936196804,
-0.0007707967306487262,
-0.017275996506214142,
0.009830671362578869,
-0.03146626800298691,
0.08363936841487885,
-0.07787393778562546,
-0.029273780062794685,
-0.05132047086954117,
0.07020022720098495,
-0.03158807381987572,
0.029172277078032494,
-0.057573121041059494,
-0.03272492066025734,
-0.017824118956923485,
-0.021924883127212524,
-0.017448553815484047,
-0.03485650569200516,
-0.02663467451930046,
-0.02160007134079933,
-0.03822644054889679,
0.017265846952795982,
0.02815723605453968,
0.013297036290168762,
-0.045514434576034546,
-0.0018955889390781522,
0.024706095457077026,
0.02722339704632759,
0.021112851798534393,
-0.06159268319606781,
-0.06394758075475693,
0.07287994027137756,
0.047503914684057236,
-0.09606347233057022,
-0.02994370646774769,
-0.004379901569336653,
-0.015296666882932186,
0.01578388549387455,
-0.0305121298879385,
0.003430838230997324,
-0.0015695070615038276,
-0.02137676253914833,
0.05875056982040405,
0.014687642455101013,
0.0067449468187987804,
-0.02923317812383175,
0.03907907381653786,
-0.026898585259914398,
0.0071763391606509686,
-0.026451965793967247,
-0.0039053699001669884,
-0.014352678321301937,
-0.008450215682387352,
-0.010911690071225166,
-0.02876625955104828,
-0.024340681731700897,
0.04380916804075241,
-0.0065216380171477795,
-0.08794314414262772,
0.004910260438919067,
0.014758694916963577,
0.03670388087630272,
0.02594444528222084,
0.06021222844719887,
0.009658114053308964,
0.008465440943837166,
-0.03177078068256378,
0.016200052574276924,
-0.006379532162100077,
-0.05099565535783768,
-0.0036592225078493357,
0.008292884565889835,
-0.0158955417573452,
0.022229395806789398,
-0.03786102682352066,
0.03794223070144653,
-0.030349723994731903,
-0.0810408666729927,
-0.028908366337418556,
-0.020493676885962486,
0.00006470886000897735,
0.026857983320951462,
-0.028258739039301872,
-0.0004980044323019683,
-0.012809816747903824,
-0.011713571846485138,
-0.004669188056141138,
0.007074835244566202,
-0.039342984557151794,
-0.08177169412374496,
-0.01797637529671192,
-0.014241023920476437,
0.06463780254125595,
0.026695575565099716,
-0.0213970635086298,
-0.02736550383269787,
0.03765801712870598,
-0.019945554435253143,
0.010556425899267197,
-0.036541473120450974,
0.025071511045098305,
0.010272214189171791,
-0.03158807381987572,
0.020402323454618454,
-0.01454553660005331,
0.013083877973258495,
0.01953953690826893,
0.004377364180982113,
-0.024036169052124023,
0.052903931587934494,
0.023102331906557083,
-0.008556795306503773,
-0.05249791592359543,
0.013459443114697933,
0.030816642567515373,
0.024563990533351898,
-0.04758511856198311,
-0.014149670489132404,
-0.06683029234409332,
0.004945786669850349,
-0.056517478078603745,
-0.007242316845804453,
0.0479099303483963,
-0.0033521726727485657,
0.026208356022834778,
-0.028583552688360214,
0.11498383432626724,
0.03292792662978172,
-0.0218436811119318,
-0.046001654118299484,
0.002315562218427658,
0.041088856756687164,
-0.0661400631070137,
0.04206329584121704,
0.02454368956387043,
-0.07840175926685333,
-0.001653247862122953,
0.047747526317834854,
-0.051361069083213806,
-0.053472355008125305,
-0.03670388087630272,
0.03907907381653786,
-0.03365875780582428,
-0.038855765014886856,
-0.014586138539016247,
-0.023914365097880363,
0.029050471261143684,
0.010272214189171791,
0.006125771906226873,
0.00928762461990118,
0.005189396906644106,
0.05501521751284599,
-0.10361538082361221,
0.018900062888860703,
-0.05607086047530174,
-0.06366336345672607,
0.019438033923506737,
0.06244531646370888,
-0.0169511828571558,
-0.03775952383875847,
0.003806403372436762,
-0.04872196540236473,
0.0029004793614149094,
-0.07154008746147156,
0.03039032593369484,
0.011266954243183136,
-0.0864814892411232,
-0.0038470050785690546,
-0.007313369773328304,
-0.01729629747569561,
-0.05221370607614517,
0.02769031561911106,
0.024097071960568428,
0.027203096076846123,
-0.0483565479516983,
0.03656177222728729,
0.008039124310016632,
-0.00499653909355402,
-0.0653686374425888,
0.06321674585342407,
-0.0032684318721294403,
0.03467379882931709,
-0.05903477966785431,
-0.0015517438296228647,
-0.05099565535783768,
0.018778257071971893,
0.005481220781803131,
0.006460735574364662,
-0.01929592713713646,
-0.061308473348617554,
0.019316228106617928,
-0.036541473120450974,
-0.0008513655629940331,
0.07109346985816956,
0.021823380142450333,
0.05793853476643562,
0.011500413529574871,
0.028136935085058212,
0.02350834757089615,
0.010119957849383354,
-0.009820520877838135,
0.017458703368902206,
-0.007206790614873171,
0.013489893637597561,
-0.00214554276317358,
-0.014362828806042671,
-0.0030501980800181627,
0.014941402710974216,
-0.022127892822027206,
-0.06382577121257782,
0.0038241667207330465,
-0.06589645892381668,
-0.004575296770781279,
0.01514441054314375,
-0.009521083906292915,
0.015560577623546124,
0.007546829059720039,
-0.02513241395354271,
0.017712464556097984,
-0.006303403992205858,
0.03542492911219597,
-0.013814707286655903,
0.08120327442884445,
0.0081710796803236,
0.04770692437887192,
0.014393280260264874,
0.021092550829052925,
0.004831594880670309,
-0.03288732469081879,
-0.009627663530409336,
-0.02336624264717102,
0.042388107627630234,
-0.013307186774909496,
0.047503914684057236,
-0.03424748033285141,
-0.05448739603161812,
-0.03706929460167885,
0.015134260058403015,
-0.009546459652483463,
0.004986388608813286,
-0.01577373594045639,
-0.03761741518974304,
-0.020473375916481018,
0.03942418843507767,
-0.0018499121069908142,
-0.03597304970026016,
0.0003048294747713953,
-0.00005309139669407159,
-0.013865458779036999,
-0.027974527329206467,
0.00102138496004045,
-0.018291037529706955,
-0.004412890411913395,
-0.026857983320951462,
-0.005993816535919905,
0.020727135241031647,
-0.028827162459492683,
0.02291962318122387,
0.008079725317656994,
-0.01152071449905634,
-0.0026797079481184483,
0.07028143107891083,
0.013692902401089668,
0.009901723824441433,
-0.02360985241830349,
0.04161667823791504,
-0.001011234475299716,
0.016210203990340233,
0.0018080415902659297,
0.047260306775569916,
0.013002674095332623,
0.009977851994335651,
-0.012485003098845482,
0.029192576184868813,
-0.028888065367937088,
0.08087845891714096,
0.044215183705091476,
-0.06134907528758049,
0.003118713153526187,
-0.015844788402318954,
0.022980526089668274,
-0.05286332964897156,
0.03485650569200516,
0.05408138036727905,
0.03199408948421478,
-0.02535572275519371,
-0.006354156415909529,
0.03177078068256378,
-0.014555687084794044,
0.05574604868888855,
0.02840084582567215,
-0.006815999746322632,
0.03264371678233147,
0.0694693997502327,
-0.007516378071159124,
-0.0032811197452247143,
-0.036521174013614655,
-0.03708959370851517,
-0.09923040121793747,
0.02675647847354412,
-0.011845527216792107,
0.023061729967594147,
0.021579770371317863,
0.022371502593159676,
-0.00806450005620718,
0.0470166951417923,
0.01776321604847908
] |
10,009
|
torch.nn.modules.module
|
_call_impl
| null |
def _call_impl(self, *args, **kwargs):
forward_call = (self._slow_forward if torch._C._get_tracing_state() else self.forward)
# If we don't have any hooks, we want to skip the rest of the logic in
# this function, and just call forward.
if not (self._backward_hooks or self._backward_pre_hooks or self._forward_hooks or self._forward_pre_hooks
or _global_backward_pre_hooks or _global_backward_hooks
or _global_forward_hooks or _global_forward_pre_hooks):
return forward_call(*args, **kwargs)
try:
result = None
called_always_called_hooks = set()
full_backward_hooks, non_full_backward_hooks = [], []
backward_pre_hooks = []
if self._backward_pre_hooks or _global_backward_pre_hooks:
backward_pre_hooks = self._get_backward_pre_hooks()
if self._backward_hooks or _global_backward_hooks:
full_backward_hooks, non_full_backward_hooks = self._get_backward_hooks()
if _global_forward_pre_hooks or self._forward_pre_hooks:
for hook_id, hook in (
*_global_forward_pre_hooks.items(),
*self._forward_pre_hooks.items(),
):
if hook_id in self._forward_pre_hooks_with_kwargs:
args_kwargs_result = hook(self, args, kwargs) # type: ignore[misc]
if args_kwargs_result is not None:
if isinstance(args_kwargs_result, tuple) and len(args_kwargs_result) == 2:
args, kwargs = args_kwargs_result
else:
raise RuntimeError(
"forward pre-hook must return None or a tuple "
f"of (new_args, new_kwargs), but got {args_kwargs_result}."
)
else:
args_result = hook(self, args)
if args_result is not None:
if not isinstance(args_result, tuple):
args_result = (args_result,)
args = args_result
bw_hook = None
if full_backward_hooks or backward_pre_hooks:
bw_hook = hooks.BackwardHook(self, full_backward_hooks, backward_pre_hooks)
args = bw_hook.setup_input_hook(args)
result = forward_call(*args, **kwargs)
if _global_forward_hooks or self._forward_hooks:
for hook_id, hook in (
*_global_forward_hooks.items(),
*self._forward_hooks.items(),
):
# mark that always called hook is run
if hook_id in self._forward_hooks_always_called or hook_id in _global_forward_hooks_always_called:
called_always_called_hooks.add(hook_id)
if hook_id in self._forward_hooks_with_kwargs:
hook_result = hook(self, args, kwargs, result)
else:
hook_result = hook(self, args, result)
if hook_result is not None:
result = hook_result
if bw_hook:
if not isinstance(result, (torch.Tensor, tuple)):
warnings.warn("For backward hooks to be called,"
" module output should be a Tensor or a tuple of Tensors"
f" but received {type(result)}")
result = bw_hook.setup_output_hook(result)
# Handle the non-full backward hooks
if non_full_backward_hooks:
var = result
while not isinstance(var, torch.Tensor):
if isinstance(var, dict):
var = next(v for v in var.values() if isinstance(v, torch.Tensor))
else:
var = var[0]
grad_fn = var.grad_fn
if grad_fn is not None:
for hook in non_full_backward_hooks:
grad_fn.register_hook(_WrappedHook(hook, self))
self._maybe_warn_non_full_backward_hook(args, result, grad_fn)
return result
except Exception:
# run always called hooks if they have not already been run
# For now only forward hooks have the always_call option but perhaps
# this functionality should be added to full backward hooks as well.
for hook_id, hook in _global_forward_hooks.items():
if hook_id in _global_forward_hooks_always_called and hook_id not in called_always_called_hooks: # type: ignore[possibly-undefined]
try:
hook_result = hook(self, args, result) # type: ignore[possibly-undefined]
if hook_result is not None:
result = hook_result
except Exception as e:
warnings.warn("global module forward hook with ``always_call=True`` raised an exception "
f"that was silenced as another error was raised in forward: {str(e)}")
continue
for hook_id, hook in self._forward_hooks.items():
if hook_id in self._forward_hooks_always_called and hook_id not in called_always_called_hooks: # type: ignore[possibly-undefined]
try:
if hook_id in self._forward_hooks_with_kwargs:
hook_result = hook(self, args, kwargs, result) # type: ignore[possibly-undefined]
else:
hook_result = hook(self, args, result) # type: ignore[possibly-undefined]
if hook_result is not None:
result = hook_result
except Exception as e:
warnings.warn("module forward hook with ``always_call=True`` raised an exception "
f"that was silenced as another error was raised in forward: {str(e)}")
continue
# raise exception raised in try block
raise
|
(self, *args, **kwargs)
|
[
-0.05440346524119377,
-0.04208569973707199,
-0.06040442734956741,
0.06786614656448364,
-0.036538757383823395,
0.014429946430027485,
-0.059259507805109024,
0.0016556932823732495,
0.014597736299037933,
-0.03730861470103264,
0.03312373533844948,
-0.017381077632308006,
-0.0008185934857465327,
-0.03314347565174103,
-0.015673566609621048,
0.020884929224848747,
-0.04950794205069542,
0.022168029099702835,
0.009105078876018524,
-0.054048143327236176,
0.012396725825965405,
-0.01994727924466133,
0.043704379349946976,
0.012238805182278156,
0.00823158398270607,
-0.005107727367430925,
-0.0064451126381754875,
0.004241634160280228,
0.01770678721368313,
0.06723447144031525,
-0.02769523300230503,
-0.017667308449745178,
0.004458774346858263,
-0.02173374965786934,
0.0054038274101912975,
-0.04445450007915497,
-0.024457870051264763,
0.014844486489892006,
-0.0921463593840599,
0.00717549305409193,
0.002899313811212778,
-0.1035955622792244,
0.034466054290533066,
0.022049589082598686,
-0.04295425862073898,
-0.022227250039577484,
-0.06905055046081543,
0.06640538573265076,
-0.0022195172496140003,
-0.028149252757430077,
-0.0006575890583917499,
-0.06593162566423416,
0.04433605819940567,
0.01226841565221548,
0.019512997940182686,
0.0014052418991923332,
0.036538757383823395,
-0.015703177079558372,
-0.022069329395890236,
-0.012041404843330383,
0.062457386404275894,
0.018910927698016167,
-0.008093403652310371,
0.025207990780472755,
0.045915260910987854,
-0.006311867851763964,
0.0011911861365661025,
0.011695954948663712,
-0.0025156172923743725,
0.024319691583514214,
-0.05345594510436058,
0.002263932256028056,
0.031524792313575745,
-0.035610973834991455,
-0.0020270522218197584,
-0.013581125997006893,
0.03539383411407471,
-0.016275636851787567,
0.012090755626559258,
0.001376865548081696,
-0.009687408804893494,
0.015219546854496002,
-0.04330958053469658,
0.0077528883703053,
-0.01888131909072399,
-0.012880356051027775,
0.02159556932747364,
-0.017233027145266533,
0.0017630294896662235,
0.00296593620441854,
-0.07469619065523148,
-0.023944631218910217,
0.027438612654805183,
0.027122771367430687,
0.02070726826786995,
0.011459074914455414,
0.008853393606841564,
-0.01706523820757866,
-0.022286469116806984,
0.015969667583703995,
-0.019976887851953506,
0.053061142563819885,
0.002731523709371686,
0.007407438475638628,
0.05570630356669426,
-0.041651416569948196,
-0.0258988905698061,
-0.02558305114507675,
0.0031929463148117065,
-0.03407125547528267,
-0.04299373924732208,
-0.0827501192688942,
0.015012276358902454,
-0.012515165843069553,
0.0030522989109158516,
-0.015535387210547924,
-0.056180063635110855,
-0.016917187720537186,
-0.01031415443867445,
0.07690707594156265,
-0.00973182450979948,
-0.04840249940752983,
0.0010301816510036588,
-0.043664898723363876,
-0.04666538164019585,
0.05787770450115204,
0.029373133555054665,
0.04816561937332153,
0.08053923398256302,
-0.015614346601068974,
0.04449398070573807,
0.02769523300230503,
-0.05598266422748566,
-0.015673566609621048,
0.037525758147239685,
0.034525275230407715,
-0.014202936552464962,
0.014193066395819187,
-0.035453055053949356,
0.015555126592516899,
0.016591478139162064,
-0.034466054290533066,
0.05440346524119377,
0.03730861470103264,
-0.0055123972706496716,
0.05669330433011055,
0.047968219965696335,
0.03089311346411705,
0.0035729415249079466,
-0.035689935088157654,
0.07761771231889725,
-0.017321856692433357,
-0.020371688529849052,
0.012090755626559258,
-0.08338179439306259,
0.0411381796002388,
-0.06695810705423355,
0.010146364569664001,
-0.0009598579490557313,
0.0031263239216059446,
-0.00894715916365385,
-0.05850938707590103,
-0.004318126942962408,
-0.03794029727578163,
0.030379872769117355,
-0.02469475008547306,
0.007456788327544928,
-0.03529513627290726,
0.018772747367620468,
0.07955223321914673,
0.012722435407340527,
0.04046701639890671,
0.04421762004494667,
0.06304958462715149,
0.0012016730615869164,
0.04828406125307083,
-0.006395762786269188,
-0.03580837696790695,
-0.03697303682565689,
0.03411073610186577,
0.05681174620985985,
-0.0357491560280323,
-0.05637746304273605,
-0.07868367433547974,
-0.02775445207953453,
0.00504110474139452,
0.02990611270070076,
-0.012396725825965405,
0.008789238519966602,
0.06514202803373337,
0.022049589082598686,
-0.03268945589661598,
0.1035166084766388,
-0.03272893279790878,
0.01599927619099617,
0.034367356449365616,
-0.011972315609455109,
0.037466537207365036,
0.05866730585694313,
-0.046033699065446854,
-0.0009444360621273518,
0.001566863153129816,
0.06755030900239944,
0.013975925743579865,
-0.0727221891283989,
0.018368078395724297,
0.04812614247202873,
0.07568319141864777,
-0.0517977811396122,
-0.014410206116735935,
0.048955220729112625,
-0.04307270050048828,
-0.031189214438199997,
0.06605006754398346,
-0.01952286809682846,
-0.020963888615369797,
0.08322387933731079,
0.006662252824753523,
0.008572098799049854,
0.029254693537950516,
0.033597495406866074,
-0.03809821605682373,
-0.03742705658078194,
-0.022858930751681328,
-0.034604236483573914,
0.03290659561753273,
0.0259383711963892,
-0.004461241886019707,
0.0517188236117363,
-0.025109291076660156,
0.03772315755486488,
0.031169474124908447,
-0.027497831732034683,
0.002901781350374222,
0.05464034527540207,
-0.010965574532747269,
0.023194510489702225,
0.013176456093788147,
0.02149686962366104,
-0.007338348310440779,
0.07047183066606522,
0.03934183716773987,
0.03266971558332443,
-0.003173206467181444,
0.006213167682290077,
-0.019325468689203262,
0.03428839519619942,
-0.024457870051264763,
-0.009958834387362003,
0.02262205071747303,
0.0025291885249316692,
0.018131198361516,
-0.012485555373132229,
0.01006246916949749,
-0.0827501192688942,
-0.05460086464881897,
0.030340394005179405,
-0.021437648683786392,
0.0413750596344471,
0.011054405011236668,
0.021417910233139992,
0.025227731093764305,
-0.0205888282507658,
0.004779549781233072,
-0.0411776565015316,
-0.020865188911557198,
0.02680693194270134,
-0.05787770450115204,
0.04559941962361336,
0.11109676957130432,
0.12562541663646698,
-0.05653538554906845,
-0.016779007390141487,
0.029610013589262962,
-0.05740394443273544,
-0.02576071210205555,
0.03263023495674133,
0.014045015908777714,
0.000060569440393010154,
0.0204309094697237,
0.07414346933364868,
-0.014035145752131939,
-0.07090611010789871,
-0.03896677866578102,
0.007891068235039711,
0.008823784068226814,
0.025365911424160004,
0.0362229160964489,
0.04398074001073837,
-0.034545015543699265,
0.09696292132139206,
-0.0007032378343865275,
0.05254790186882019,
-0.00544824218377471,
0.0014965394511818886,
0.0008241453906521201,
-0.059259507805109024,
-0.007126143202185631,
0.07299855351448059,
-0.029610013589262962,
0.0018617295427247882,
-0.03949975594878197,
-0.004041766747832298,
0.005492657423019409,
0.055153585970401764,
-0.02159556932747364,
0.027142511680722237,
-0.0038665742613375187,
-0.04350697994232178,
-0.010254934430122375,
-0.019611699506640434,
-0.0024514624383300543,
-0.01708497665822506,
-0.05673278495669365,
0.013995666056871414,
-0.027458352968096733,
0.03703225776553154,
0.03736783564090729,
-0.019236639142036438,
0.02461579069495201,
-0.019611699506640434,
0.06372074782848358,
0.03430813550949097,
0.0828290730714798,
0.017775878310203552,
0.013561385683715343,
0.04425710067152977,
0.002936326200142503,
-0.00306710391305387,
-0.036617714911699295,
-0.05637746304273605,
-0.01584135740995407,
0.00037752767093479633,
0.01497279666364193,
-0.008389503695070744,
-0.003802419174462557,
-0.003442164044827223,
-0.019325468689203262,
0.05057390034198761,
-0.0012195623712614179,
0.014666826464235783,
0.01646316796541214,
-0.05566682294011116,
0.00002338342892471701,
0.03833509609103203,
0.020134808495640755,
0.006114467512816191,
0.058154065161943436,
0.05657486617565155,
-0.000698919699061662,
0.013117236085236073,
-0.08346075564622879,
-0.0516793429851532,
0.041572459042072296,
-0.007387698162347078,
-0.03632161766290665,
-0.03075493313372135,
-0.022128550335764885,
0.042835820466279984,
-0.048915740102529526,
0.013640346005558968,
0.00590719748288393,
-0.04433605819940567,
0.1024111658334732,
0.014943186193704605,
-0.03851275518536568,
-0.008606643415987492,
0.0038912491872906685,
-0.052074141800403595,
0.006213167682290077,
0.01335411611944437,
-0.02479345165193081,
0.012159845791757107,
-0.0034569690469652414,
-0.013107365928590298,
0.016571737825870514,
0.06928742676973343,
0.019345209002494812,
0.013186326250433922,
0.02155608870089054,
0.006958352867513895,
0.0077232783660292625,
-0.07923639565706253,
-0.042835820466279984,
0.07406451553106308,
-0.015051756985485554,
-0.009973639622330666,
-0.01748964749276638,
0.0721694752573967,
-0.06798458844423294,
0.06605006754398346,
-0.0032990488689392805,
-0.036597974598407745,
-0.024438131600618362,
-0.04607317969202995,
0.027478091418743134,
0.03620317578315735,
0.03493981435894966,
0.0040318965911865234,
-0.03191959485411644,
0.01552551705390215,
0.016532257199287415,
0.03225517272949219,
0.02384592965245247,
0.0060700527392327785,
0.05333750322461128,
0.012011795304715633,
0.050889741629362106,
-0.001353424391709268,
0.041690897196531296,
-0.0617862269282341,
0.0074715930968523026,
-0.09593643993139267,
-0.029333652928471565,
-0.0310510341078043,
0.04009195789694786,
-0.026333171874284744,
0.04627057909965515,
-0.03991429880261421,
0.037545494735240936,
0.016226287931203842,
0.007688733283430338,
0.019779488444328308,
0.044849298894405365,
-0.0070175728760659695,
0.042677897959947586,
-0.05246894434094429,
0.0048634447157382965,
-0.030281173065304756,
0.06091766804456711,
0.026431871578097343,
-0.061391428112983704,
0.003378008957952261,
0.005171882454305887,
-0.01706523820757866,
-0.027497831732034683,
-0.016996147111058235,
0.04859990254044533,
0.020924409851431847,
0.026254210621118546,
-0.005290322471410036,
-0.009134689345955849,
0.013512035831809044,
-0.024339430034160614,
-0.008749758824706078,
-0.004922664724290371,
-0.01907871849834919,
-0.005734472535550594,
-0.04508617892861366,
0.0008482034900225699,
0.0001375631836708635,
0.024003850296139717,
0.04666538164019585,
0.01190322544425726,
-0.029195472598075867,
-0.02672797255218029,
-0.11622916907072067,
-0.0037974840961396694,
-0.009105078876018524,
0.04563890025019646,
-0.04741550236940384,
-0.02266152948141098,
-0.02274049073457718,
-0.0009654097957536578,
0.0015853694640100002,
0.007012638263404369,
0.03399229422211647,
-0.021121809259057045,
-0.08906692266464233,
-0.025069810450077057,
0.01443981658667326,
-0.05542994290590286,
0.03628213703632355,
-0.003385411575436592,
-0.020351948216557503,
0.0066425129771232605,
-0.02771497145295143,
-0.03318295627832413,
0.02463553100824356,
-0.07110351324081421,
-0.021121809259057045,
-0.028445351868867874,
-0.005216297227889299,
0.00035316110006533563,
-0.021852189674973488,
-0.019779488444328308,
0.020312469452619553,
0.00919884443283081,
0.04338853806257248,
0.034525275230407715,
-0.05890418589115143,
-0.03089311346411705,
0.04421762004494667,
-0.035453055053949356,
-0.04520462080836296,
-0.039677418768405914,
0.0019838709849864244,
-0.021062588319182396,
0.031465575098991394,
0.012021665461361408,
-0.0053100623190402985,
-0.03497929498553276,
-0.019976887851953506,
0.009702214039862156,
0.02252334915101528,
0.012584255076944828,
-0.011360375210642815,
0.013294896110892296,
-0.004848639480769634,
0.022937890142202377,
-0.03851275518536568,
-0.0018136133439838886,
0.016779007390141487,
-0.030597014352679253,
-0.03286711499094963,
-0.04966586083173752,
0.02252334915101528,
0.014706306159496307,
-0.05839094519615173,
-0.04307270050048828,
0.04251997917890549,
0.019572218880057335,
-0.02479345165193081,
0.006839912850409746,
0.06569474935531616,
-0.003651901613920927,
0.010689214803278446,
-0.01233750581741333,
0.0030893112998455763,
-0.06711602956056595,
-0.017499517649412155,
0.007032378111034632,
-0.008295739069581032,
0.0018802358536049724,
0.029491573572158813,
-0.04307270050048828,
-0.01383774634450674,
0.006770823150873184,
-0.0924621969461441,
-0.030636493116617203,
0.01646316796541214,
-0.010156234726309776,
-0.037703417241573334,
-0.009568968787789345,
0.023233991116285324,
-0.08898796141147614,
-0.046823300421237946,
0.030340394005179405,
-0.02578045055270195,
-0.041769858449697495,
-0.07880211621522903,
-0.018851708620786667,
0.048994701355695724,
0.058154065161943436,
0.02791237272322178,
0.00894715916365385,
0.04496774077415466,
0.08796148002147675,
-0.010481944307684898,
0.0034693065099418163,
-0.026096291840076447,
0.0019875720608979464,
-0.047849781811237335,
-0.0514029823243618,
-0.03089311346411705,
-0.002931391354650259,
0.060285985469818115,
0.05554838478565216,
-0.05242946371436119,
-0.02161530964076519,
0.021417910233139992,
0.010935964994132519,
-0.039558976888656616,
-0.008345088921487331,
0.015180066227912903,
0.03776263818144798,
0.0512450635433197,
-0.04931054264307022,
0.048915740102529526,
-0.03515695407986641,
0.034367356449365616,
-0.05653538554906845,
-0.022266730666160583,
-0.003410086501389742,
0.022345690056681633,
0.010679344646632671,
-0.01186374481767416,
0.05787770450115204,
0.031110253185033798,
-0.010827395133674145,
-0.07366970926523209,
-0.008670798502862453,
-0.008517813868820667,
-0.03389359638094902,
0.034545015543699265,
0.06008858606219292,
-0.062141548842191696,
0.03231439366936684,
0.06569474935531616,
-0.009253129363059998,
-0.01294944528490305,
-0.0014212806709110737,
0.021358689293265343,
-0.04986326023936272,
-0.03985507786273956,
0.004910327028483152,
-0.030675973743200302,
0.02885989286005497,
-0.01086687482893467,
-0.006553682964295149,
-0.004374879412353039,
-0.04769185930490494,
0.03503851592540741,
-0.030498312786221504,
-0.0066030328162014484,
-0.04729706048965454,
0.005773952696472406,
0.051126621663570404,
0.060207027941942215,
0.043862298130989075,
0.017726527526974678,
-0.03904573619365692,
-0.055035144090652466,
0.04350697994232178,
-0.021378429606556892,
-0.017272507771849632,
0.027399132028222084,
-0.06040442734956741,
0.03604525700211525,
0.020411169156432152,
-0.006864588242024183,
0.029215212911367416,
0.037644196301698685,
0.006726407911628485,
0.01133076474070549,
0.0011301154736429453,
0.020805969834327698,
0.025385651737451553,
-0.016976406797766685,
-0.06451034545898438,
0.0075752283446490765,
0.02004597894847393,
0.02562253177165985,
-0.033419836312532425,
-0.01347255613654852,
0.002339191036298871,
-0.006005897652357817,
-0.01911819912493229,
0.09562060236930847,
0.010324024595320225,
-0.02562253177165985,
0.011153104715049267,
-0.02279970981180668,
0.02060856856405735,
-0.041769858449697495,
0.025168510153889656,
0.03940105810761452,
0.009312349371612072,
0.0013065418461337686,
-0.0258001908659935,
-0.02149686962366104,
0.04001299664378166,
0.025958111509680748,
-0.03379489481449127,
-0.036657195538282394,
0.009741694666445255,
0.0070027681067585945,
-0.008646124042570591,
0.01601901650428772,
-0.028011072427034378,
-0.031386613845825195,
-0.034604236483573914,
-0.05795666575431824,
0.0038246267940849066,
0.01345281582325697,
-0.023372169584035873,
0.016255896538496017,
0.015722917392849922,
-0.006825108081102371,
-0.017726527526974678,
-0.026135770604014397,
0.049784302711486816,
-0.051126621663570404,
0.04966586083173752,
-0.014508906751871109,
-0.0020566622260957956,
0.02485267072916031,
0.012001925148069859,
-0.000044646349124377593,
-0.02149686962366104,
-0.03407125547528267,
0.015140586532652378,
0.024142030626535416,
0.00311645376496017,
-0.0038246267940849066,
-0.05546942353248596,
-0.0414934977889061,
-0.08511891961097717,
0.018279248848557472,
-0.04429658129811287,
0.016739526763558388,
-0.012080885469913483,
-0.033558014780282974,
-0.027024071663618088,
0.01241646520793438,
0.019858447834849358,
-0.018081847578287125,
-0.02372748963534832,
0.0068053677678108215,
-0.011054405011236668,
-0.0015224481467157602,
-0.04398074001073837,
0.02068752981722355,
-0.010590515099465847,
-0.011113625019788742,
-0.05385074391961098,
-0.04950794205069542,
0.020213769748806953,
-0.0026328235398977995,
0.003484111512079835,
-0.017844967544078827,
0.022977370768785477,
0.012485555373132229,
-0.013146845623850822,
0.03424891456961632,
-0.04638902097940445,
0.0413750596344471,
-0.02173374965786934,
0.010876744985580444,
0.029274431988596916,
0.012702696025371552,
-0.02171400934457779,
-0.0030942463781684637,
0.01342320628464222,
0.04248049855232239,
-0.062496867030858994,
0.034643713384866714,
0.01330476626753807,
0.030518053099513054,
-0.04745497927069664,
0.009726889431476593,
-0.03361723572015762,
-0.014785266481339931,
0.005660447292029858,
0.10477996617555618,
0.02366827055811882,
0.0359070748090744,
-0.035670194774866104,
0.003940599039196968,
-0.017864707857370377,
0.04504669830203056,
0.033538274466991425,
-0.011676215566694736,
-0.010945835150778294,
0.056180063635110855,
0.0077528883703053,
-0.018328597769141197,
0.004836302250623703,
-0.027142511680722237,
-0.06881366670131683,
0.016394076868891716,
-0.010097014717757702,
0.01488396618515253,
0.0029807412065565586,
0.01702575758099556,
-0.014005536213517189,
0.009845329448580742,
0.04433605819940567
] |
10,010
|
sentence_transformers.SentenceTransformer
|
_create_model_card
|
Create an automatic model and stores it in path
|
def _create_model_card(
self, path: str, model_name: Optional[str] = None, train_datasets: Optional[List[str]] = None
):
"""
Create an automatic model and stores it in path
"""
if self._model_card_text is not None and len(self._model_card_text) > 0:
model_card = self._model_card_text
else:
tags = ModelCardTemplate.__TAGS__.copy()
model_card = ModelCardTemplate.__MODEL_CARD__
if (
len(self._modules) == 2
and isinstance(self._first_module(), Transformer)
and isinstance(self._last_module(), Pooling)
and self._last_module().get_pooling_mode_str() in ["cls", "max", "mean"]
):
pooling_module = self._last_module()
pooling_mode = pooling_module.get_pooling_mode_str()
model_card = model_card.replace(
"{USAGE_TRANSFORMERS_SECTION}", ModelCardTemplate.__USAGE_TRANSFORMERS__
)
pooling_fct_name, pooling_fct = ModelCardTemplate.model_card_get_pooling_function(pooling_mode)
model_card = (
model_card.replace("{POOLING_FUNCTION}", pooling_fct)
.replace("{POOLING_FUNCTION_NAME}", pooling_fct_name)
.replace("{POOLING_MODE}", pooling_mode)
)
tags.append("transformers")
# Print full model
model_card = model_card.replace("{FULL_MODEL_STR}", str(self))
# Add tags
model_card = model_card.replace("{TAGS}", "\n".join(["- " + t for t in tags]))
datasets_str = ""
if train_datasets is not None:
datasets_str = "datasets:\n" + "\n".join(["- " + d for d in train_datasets])
model_card = model_card.replace("{DATASETS}", datasets_str)
# Add dim info
self._model_card_vars["{NUM_DIMENSIONS}"] = self.get_sentence_embedding_dimension()
# Replace vars we created while using the model
for name, value in self._model_card_vars.items():
model_card = model_card.replace(name, str(value))
# Replace remaining vars with default values
for name, value in ModelCardTemplate.__DEFAULT_VARS__.items():
model_card = model_card.replace(name, str(value))
if model_name is not None:
model_card = model_card.replace("{MODEL_NAME}", model_name.strip())
with open(os.path.join(path, "README.md"), "w", encoding="utf8") as fOut:
fOut.write(model_card.strip())
|
(self, path: str, model_name: Optional[str] = None, train_datasets: Optional[List[str]] = None)
|
[
-0.011462739668786526,
-0.024203356355428696,
-0.06355049461126328,
-0.008125003427267075,
0.028094202280044556,
-0.0066182538866996765,
-0.023268789052963257,
0.02090376429259777,
0.010795192793011665,
-0.007071232423186302,
0.010280227288603783,
0.04321891441941261,
-0.02548123151063919,
0.05489145591855049,
-0.011653468012809753,
0.012845516204833984,
0.08147890865802765,
-0.01403756532818079,
0.00207654875703156,
-0.036963045597076416,
0.03106955625116825,
-0.012073068879544735,
-0.035914041101932526,
-0.014419020153582096,
0.03070717304944992,
0.03671509772539139,
0.009975062683224678,
0.01837662234902382,
0.015906697139143944,
0.010842874646186829,
-0.042188987135887146,
0.014743257313966751,
-0.010079963132739067,
0.051801666617393494,
0.010203936137259007,
-0.00975095760077238,
0.00016345967014785856,
0.047262344509363174,
-0.08285214751958847,
-0.06511446833610535,
0.05630284175276756,
-0.014047101140022278,
0.06194838508963585,
-0.02321157045662403,
-0.07571893185377121,
-0.008992815390229225,
0.02305898815393448,
0.009178774431347847,
-0.018767613917589188,
-0.027235927060246468,
-0.04714790731668472,
-0.000823109585326165,
-0.02256309613585472,
0.012244723737239838,
-0.06602995842695236,
-0.05878230184316635,
-0.0021886012982577085,
0.03513205796480179,
-0.007834143936634064,
0.00015600936603732407,
0.0034402525052428246,
0.0212661474943161,
0.032709814608097076,
0.039556942880153656,
-0.03869866579771042,
0.06362678855657578,
-0.014981667511165142,
-0.010356518439948559,
0.02912413328886032,
0.021380584686994553,
0.0008839040528982878,
-0.03885124996304512,
0.03181339427828789,
0.0748797282576561,
0.05420483648777008,
-0.0553492046892643,
-0.025538450106978416,
-0.05992667004466057,
0.028838040307164192,
-0.019950125366449356,
0.006780372932553291,
-0.040052834898233414,
-0.006746995262801647,
-0.055730659514665604,
-0.014285511337220669,
-0.006050839088857174,
0.06255871057510376,
-0.01585901528596878,
0.02115171030163765,
0.030402008444070816,
-0.01884390413761139,
0.0017976093804463744,
0.0017523114802315831,
0.02702612616121769,
0.028571022674441338,
-0.01689848117530346,
0.014352265745401382,
-0.052526433020830154,
0.013446308672428131,
-0.0031255516223609447,
-0.037134699523448944,
0.05073358863592148,
-0.08559863269329071,
-0.012292405590415001,
-0.05031399056315422,
0.009383806958794594,
-0.058400847017765045,
0.04756750911474228,
-0.03795482963323593,
-0.006999709643423557,
-0.05473887547850609,
0.00576474703848362,
0.018691323697566986,
-0.010499564930796623,
0.007104610092937946,
-0.07053113728761673,
0.01650748960673809,
0.012053996324539185,
-0.01596391573548317,
-0.024317791685461998,
-0.040777601301670074,
-0.02544308640062809,
-0.0778169333934784,
-0.07888501137495041,
0.03764966502785683,
0.01769000105559826,
0.04123534634709358,
0.016459807753562927,
0.013579818420112133,
-0.049169622361660004,
-0.054395563900470734,
0.0049589225091040134,
0.019234897568821907,
0.010480491444468498,
0.018080994486808777,
-0.06938676536083221,
-0.029887042939662933,
-0.00612713024020195,
-0.028914332389831543,
0.10100943595170975,
0.00435097748413682,
-0.019196750596165657,
0.02799883857369423,
0.031298428773880005,
-0.00820129457861185,
0.005297464318573475,
0.017060600221157074,
-0.08689557760953903,
-0.04283745959401131,
0.03309126943349838,
0.02410799264907837,
0.03066902793943882,
0.006327394396066666,
0.03217577561736107,
0.03038293682038784,
0.015296367928385735,
0.0007581429672427475,
-0.02815142087638378,
0.0006943683256395161,
0.020960982888936996,
-0.03148915618658066,
0.01254035159945488,
0.016621926799416542,
0.022906407713890076,
0.008220367133617401,
0.016478881239891052,
-0.08048712462186813,
0.0022350912913680077,
0.005988852586597204,
0.01701291836798191,
-0.0022994617465883493,
-0.010175326839089394,
-0.05409039929509163,
-0.028838040307164192,
0.005273623391985893,
0.030535517260432243,
0.03213763236999512,
-0.009016656316816807,
-0.025633813813328743,
-0.004021971952170134,
-0.014628821052610874,
-0.00403627660125494,
-0.02082747407257557,
0.012826443649828434,
-0.03816463053226471,
0.015324977226555347,
0.03894661366939545,
0.00794381182640791,
0.04123534634709358,
0.0014805244281888008,
0.018748540431261063,
0.039366215467453,
0.03330107033252716,
-0.012912270613014698,
-0.0171178188174963,
-0.03669602423906326,
0.026263216510415077,
-0.024699248373508453,
-0.0004002303467132151,
0.02353580854833126,
0.03059273585677147,
0.019482843577861786,
0.04180752858519554,
-0.03135564923286438,
0.03229021281003952,
0.004529784899204969,
-0.041387930512428284,
0.03366345539689064,
-0.08163148909807205,
-0.018424304202198982,
0.006828054785728455,
-0.006356003228574991,
0.05756164342164993,
0.04054872691631317,
0.09223595261573792,
-0.04154051095247269,
-0.0018464833265170455,
0.0390610508620739,
-0.029963335022330284,
-0.04455401003360748,
-0.003867005929350853,
0.057790517807006836,
-0.06732691079378128,
0.013379554264247417,
-0.038221847265958786,
-0.048673730343580246,
0.0011515190126374364,
-0.003445020643994212,
-0.032595377415418625,
-0.014438093639910221,
-0.01191094983369112,
-0.030478300526738167,
-0.06690730899572372,
0.03213763236999512,
-0.04611797630786896,
-0.035589803010225296,
0.018080994486808777,
0.0114055210724473,
-0.0261297058314085,
-0.07095073908567429,
0.007395469583570957,
0.01138644851744175,
-0.010585391893982887,
-0.022067204117774963,
0.041387930512428284,
0.012073068879544735,
0.012721543200314045,
-0.030878828838467598,
-0.05756164342164993,
-0.057027608156204224,
0.01292180735617876,
0.013131608255207539,
-0.02086561918258667,
0.03406398370862007,
-0.026511162519454956,
-0.08948947489261627,
-0.014771866612136364,
-0.0848357155919075,
0.02958187833428383,
0.0014054253697395325,
-0.03970952332019806,
-0.06000296026468277,
-0.019911980256438255,
0.05328934267163277,
0.008043943904340267,
-0.025004412978887558,
-0.013856373727321625,
0.044096264988183975,
-0.010661683045327663,
-0.033930473029613495,
0.08659041672945023,
0.0655340701341629,
-0.045965395867824554,
-0.026968909427523613,
0.01788073033094406,
-0.03833628445863724,
-0.03543722257018089,
0.01924443244934082,
-0.019196750596165657,
0.03316756337881088,
0.03637178987264633,
-0.08353877067565918,
0.030974192544817924,
0.014743257313966751,
0.009283674880862236,
-0.026587452739477158,
-0.006646863184869289,
-0.04375295341014862,
0.022334223613142967,
-0.006961564067751169,
-0.034216564148664474,
0.08147890865802765,
0.025996197015047073,
-0.004679983016103506,
-0.018004702404141426,
-0.04649943485856056,
-0.04775823652744293,
0.017957020550966263,
0.01953052543103695,
-0.0245085209608078,
-0.005235477816313505,
0.0585152842104435,
0.05348007008433342,
0.0021492636296898127,
-0.019482843577861786,
-0.029753534123301506,
-0.020674891769886017,
-0.03297683224081993,
0.02633950673043728,
0.0032900541555136442,
0.008949900977313519,
0.019368406385183334,
0.10322187840938568,
0.07552820444107056,
0.04947478696703911,
0.026263216510415077,
0.0260152705013752,
0.01855781301856041,
0.04485917463898659,
0.023116206750273705,
-0.0005554946837946773,
0.01519146841019392,
-0.03103141114115715,
0.03805019333958626,
0.04196011275053024,
-0.045240629464387894,
0.03570424020290375,
0.003661973401904106,
-0.009426720440387726,
0.031222138553857803,
-0.052526433020830154,
0.048559293150901794,
0.03177524730563164,
0.04806340113282204,
-0.019911980256438255,
-0.0026678049471229315,
-0.02180018648505211,
-0.05355636030435562,
-0.007071232423186302,
0.0032399881165474653,
0.08704815804958344,
-0.049894388765096664,
-0.06900531053543091,
-0.008115467615425587,
0.0521068312227726,
-0.006432294379919767,
0.07045484334230423,
0.018719932064414024,
0.009684203192591667,
0.013131608255207539,
-0.02054138295352459,
0.019721252843737602,
0.07011153548955917,
0.04802525416016579,
0.002096813637763262,
0.02681632712483406,
-0.05996481701731682,
0.02504255808889866,
-0.01827172189950943,
-0.058286409825086594,
0.014733721502125263,
-0.016803117468953133,
-0.033606234937906265,
0.05027584359049797,
-0.01873900555074215,
-0.03780224546790123,
0.00207297271117568,
0.03675324469804764,
0.05660800635814667,
0.0006294017075560987,
0.007714938838034868,
-0.03564702346920967,
0.0031374720856547356,
0.02374560944736004,
-0.027522020041942596,
-0.003728728275746107,
-0.01340816356241703,
0.006980637088418007,
-0.012568960897624493,
-0.018328940495848656,
0.02111356519162655,
0.03831721097230911,
0.05351821705698967,
-0.016192788258194923,
0.044096264988183975,
-0.07304874062538147,
0.03501762077212334,
0.04096832871437073,
-0.0227728970348835,
-0.05599767714738846,
0.05412854626774788,
-0.0212661474943161,
-0.016669608652591705,
-0.0008397982455790043,
0.0227347519248724,
-0.015029349364340305,
-0.019778471440076828,
0.05103875324130058,
-0.054395563900470734,
0.006479976233094931,
-0.017146427184343338,
-0.033930473029613495,
0.04958922415971756,
0.02082747407257557,
-0.04890260472893715,
0.024813685566186905,
0.04775823652744293,
0.047224197536706924,
-0.008692419156432152,
0.06328348070383072,
0.014600211754441261,
0.025004412978887558,
-0.04848300293087959,
-0.03164174035191536,
-0.01178697682917118,
0.032595377415418625,
0.009512548334896564,
0.007214278448373079,
-0.004582235123962164,
0.0035022390075027943,
-0.0021194624714553356,
0.07903759181499481,
0.04329520836472511,
0.04882631078362465,
-0.025671958923339844,
0.05016140639781952,
-0.031985048204660416,
0.07762620598077774,
0.023078061640262604,
-0.03873681277036667,
-0.03990025073289871,
0.022620314732193947,
-0.03492225706577301,
-0.050008825957775116,
0.009069106541574001,
-0.015534778125584126,
0.026110634207725525,
-0.057676080614328384,
-0.037859465926885605,
0.040853891521692276,
0.016459807753562927,
-0.042150840163230896,
-0.01292180735617876,
0.01650748960673809,
-0.03211855888366699,
0.0051067364402115345,
-0.051267627626657486,
0.02519514039158821,
-0.033281996846199036,
0.026759108528494835,
0.015201004222035408,
0.06900531053543091,
0.04428699240088463,
0.008220367133617401,
0.016955699771642685,
-0.042150840163230896,
0.08674299716949463,
-0.0164025891572237,
-0.013341408222913742,
-0.012645252048969269,
-0.006589645054191351,
0.04623241350054741,
0.03723006322979927,
0.025214213877916336,
0.030936047434806824,
0.06690730899572372,
0.04291374981403351,
-0.006489512976258993,
-0.031451012939214706,
-0.005464350804686546,
0.004796803928911686,
-0.03009684383869171,
0.045545794069767,
0.006808981765061617,
-0.04443957284092903,
-0.010394664481282234,
0.027731819078326225,
-0.04375295341014862,
-0.03208041191101074,
-0.010709364898502827,
0.04497361183166504,
-0.06709803640842438,
-0.014094782993197441,
0.047910820692777634,
-0.013751473277807236,
0.06549592316150665,
0.00487547880038619,
0.02536679431796074,
0.032595377415418625,
-0.02313528023660183,
-0.06244427710771561,
-0.01037559099495411,
0.0019919131882488728,
-0.01239730603992939,
-0.037897609174251556,
0.012387769296765327,
-0.010051353834569454,
0.03621920570731163,
-0.04455401003360748,
-0.04634685069322586,
0.0340830534696579,
-0.011205256916582584,
0.010604464448988438,
-0.05069544538855553,
-0.0015258222119882703,
0.046690162271261215,
-0.022658459842205048,
-0.06782279908657074,
-0.008711491711437702,
-0.013961274176836014,
-0.015935305505990982,
-0.004219852387905121,
-0.004002899397164583,
-0.01128154806792736,
-0.01432365644723177,
0.044096264988183975,
-0.010099035687744617,
-0.017794901505112648,
-0.0003906939527951181,
0.0130457803606987,
0.027159636840224266,
-0.018119139596819878,
0.0358186773955822,
-0.022715678438544273,
-0.004384355153888464,
0.05794310197234154,
-0.030440153554081917,
0.013827764429152012,
0.08094487339258194,
0.08567491918802261,
0.01403756532818079,
0.011825122870504856,
0.011186184361577034,
0.0618339478969574,
0.005869647487998009,
-0.012311478145420551,
-0.0010990689042955637,
-0.054395563900470734,
0.0038026352412998676,
-0.051267627626657486,
-0.0097271166741848,
-0.0655340701341629,
-0.04039614275097847,
-0.003058796748518944,
0.02406984567642212,
-0.005063822492957115,
0.03637178987264633,
-0.007753084413707256,
-0.02677818015217781,
-0.0389084666967392,
-0.008821159601211548,
-0.0005715873558074236,
-0.022639388218522072,
-0.03480781987309456,
0.08636154234409332,
0.044744737446308136,
-0.0022303229197859764,
-0.01996919885277748,
0.06019368767738342,
0.01650748960673809,
-0.009054801426827908,
-0.020884692668914795,
-0.02057952806353569,
-0.021056346595287323,
0.062367986887693405,
0.04035799950361252,
-0.05264086648821831,
-0.06786094605922699,
-0.04291374981403351,
-0.04295189678668976,
0.029887042939662933,
-0.01049002818763256,
0.054471854120492935,
0.04573652148246765,
-0.05214497447013855,
-0.008763941936194897,
-0.007071232423186302,
0.02893340401351452,
0.003678662236779928,
0.0011318501783534884,
0.004660909995436668,
0.014743257313966751,
-0.007981957867741585,
-0.011033602058887482,
-0.00043539577745832503,
-0.05622655153274536,
0.0376305915415287,
-0.029143204912543297,
0.012082604691386223,
-0.02597712352871895,
-0.0293720792979002,
0.053060468286275864,
-0.007772156968712807,
-0.0114055210724473,
0.029238568618893623,
0.025347722694277763,
-0.048635583370923996,
-0.03442636504769325,
-0.009994136169552803,
0.011462739668786526,
-0.016564708203077316,
0.008535068482160568,
0.036963045597076416,
0.0618339478969574,
0.023917263373732567,
-0.0030492604710161686,
-0.06866200268268585,
-0.00025599246146157384,
0.017537420615553856,
0.03517020493745804,
-0.0015103255864232779,
-0.025538450106978416,
-0.027445727959275246,
-0.060460709035396576,
0.007705402560532093,
-0.0423797145485878,
0.0008535068482160568,
-0.010442346334457397,
0.051801666617393494,
-0.017642319202423096,
0.035227421671152115,
0.027979765087366104,
-0.033644381910562515,
-0.0011503269197419286,
-0.050504717975854874,
0.04455401003360748,
0.0029848897829651833,
-0.04104461893439293,
0.028704531490802765,
-0.020770255476236343,
0.07289616018533707,
-0.0374780111014843,
0.05672244355082512,
-0.0004339057195466012,
0.044744737446308136,
-0.002156415954232216,
0.023631172254681587,
0.043333351612091064,
0.0245466660708189,
0.012473597191274166,
-0.010137181729078293,
-0.03576146066188812,
-0.05035213381052017,
-0.03038293682038784,
-0.06614439189434052,
-0.009464866481721401,
0.010852410458028316,
-0.024355938658118248,
0.037134699523448944,
0.01867225021123886,
-0.04638499766588211,
0.003220915561541915,
0.017241790890693665,
-0.03982396051287651,
0.061719510704278946,
0.0015007891925051808,
0.024622956290841103,
-0.01658378168940544,
0.009488707408308983,
-0.03967138007283211,
-0.02965817041695118,
-0.01877715066075325,
0.08811623603105545,
0.020674891769886017,
-0.019873835146427155,
-0.012330551631748676,
0.02998240850865841,
-0.04306633397936821,
-0.06656399369239807,
0.015248686075210571,
-0.04234156757593155,
-0.04428699240088463,
0.01729900948703289,
-0.02382189966738224,
-0.02637765184044838,
0.01111942995339632,
0.020713036879897118,
0.00933612510561943,
0.029715389013290405,
0.020007343962788582,
0.027121491730213165,
-0.007729243487119675,
0.0024913817178457975,
-0.017318082973361015,
0.04451586306095123,
0.023268789052963257,
-0.004887399263679981,
0.03150822967290878,
-0.03873681277036667,
-0.05824826657772064,
-0.047834526747465134,
0.018395693972706795,
0.03549443930387497,
-0.06511446833610535,
-0.04066316410899162,
-0.023020843043923378,
-0.0021289989817887545,
-0.006356003228574991,
-0.02681632712483406,
0.0005849978770129383,
0.011319694109261036,
-0.00620818929746747,
-0.024241501465439796,
-0.01737530156970024,
-0.05748535320162773,
0.03759244456887245,
-0.08552233874797821,
0.02698798105120659,
-0.035189274698495865,
-0.09246482700109482,
0.05615026131272316,
0.02710241824388504,
0.08002937585115433,
-0.010366055183112621,
0.005059054587036371,
-0.02641579881310463,
0.004005283582955599,
0.07205695658922195,
0.01737530156970024,
-0.01162485871464014,
0.015410805121064186,
0.02386004664003849,
0.049894388765096664,
-0.01769000105559826,
-0.01578272320330143,
-0.03246187046170235,
-0.05813382938504219,
0.008530300110578537,
0.11519958078861237,
-0.022639388218522072,
0.03497947379946709,
0.02584361471235752,
-0.01916814222931862,
0.010413737036287785,
-0.0021194624714553356,
-0.03990025073289871,
0.06366493552923203,
-0.009398111142218113,
-0.01956867054104805,
-0.028265858069062233,
0.026473015546798706,
0.014714648947119713,
-0.043943680822849274,
-0.004713360220193863,
-0.0011533070355653763,
0.04813969135284424,
0.0454695038497448,
-0.0021695285104215145,
0.0022303229197859764,
-0.02292547933757305,
0.03705840930342674,
-0.018824832513928413,
-0.013131608255207539,
0.03009684383869171,
0.034331001341342926,
-0.04882631078362465,
0.01571596972644329,
-0.019263505935668945,
-0.008439704775810242,
-0.07392609119415283,
-0.0012874125968664885,
-0.09864441305398941,
0.03370159864425659,
0.004408196080476046,
0.06408453732728958,
0.036963045597076416,
0.03686768189072609,
0.021990913897752762
] |
10,011
|
sentence_transformers.SentenceTransformer
|
_encode_multi_process_worker
|
Internal working process to encode sentences in multi-process setup
|
@staticmethod
def _encode_multi_process_worker(target_device: str, model, input_queue, results_queue):
"""
Internal working process to encode sentences in multi-process setup
"""
while True:
try:
chunk_id, batch_size, sentences, prompt_name, prompt, normalize_embeddings = input_queue.get()
embeddings = model.encode(
sentences,
prompt_name=prompt_name,
prompt=prompt,
device=target_device,
show_progress_bar=False,
convert_to_numpy=True,
batch_size=batch_size,
normalize_embeddings=normalize_embeddings,
)
results_queue.put([chunk_id, embeddings])
except queue.Empty:
break
|
(target_device: str, model, input_queue, results_queue)
|
[
0.038827892392873764,
0.0013143903343006968,
-0.13283033668994904,
0.07912515103816986,
-0.0209751445800066,
0.02152615413069725,
-0.06737025082111359,
-0.021011877804994583,
0.06208055093884468,
-0.037652403116226196,
0.04011358693242073,
-0.06347644329071045,
-0.0236199963837862,
0.02911173738539219,
0.015566054731607437,
0.043272715061903,
0.047570597380399704,
-0.03475041314959526,
0.04132581129670143,
0.02826685458421707,
-0.037101391702890396,
0.019909856840968132,
0.02672402374446392,
0.0004718029813375324,
-0.026907693594694138,
0.0027160239405930042,
-0.009151371195912361,
-0.05098686367273331,
-0.029019901528954506,
0.033556558191776276,
0.05759899318218231,
-0.03673405200242996,
0.0439339280128479,
0.003958094399422407,
0.02103024534881115,
0.012820184230804443,
-0.02158125676214695,
0.06108872964978218,
-0.08132919669151306,
-0.07357830554246902,
-0.02944234386086464,
-0.06850900501012802,
0.05157461017370224,
-0.020662905648350716,
-0.0006204611272551119,
0.024446511641144753,
-0.027017895132303238,
0.03824014961719513,
0.018670082092285156,
0.0030672934371978045,
-0.010083497501909733,
-0.05770919844508171,
0.009495752863585949,
0.02573220431804657,
-0.05352151393890381,
0.0441543310880661,
-0.01736602373421192,
-0.0017127252649515867,
-0.027642374858260155,
-0.03048926405608654,
-0.01913844235241413,
-0.014987493865191936,
0.08177000284194946,
0.055137813091278076,
-0.006653455551713705,
0.01341711264103651,
0.001611706567928195,
0.02103024534881115,
-0.002667810535058379,
0.004908587783575058,
0.009224838577210903,
-0.08353323489427567,
-0.030856603756546974,
0.0408482663333416,
-0.023417958989739418,
0.046174705028533936,
-0.04378699138760567,
0.03812994807958603,
-0.004474666900932789,
0.03794627636671066,
0.043089043349027634,
0.02235267125070095,
-0.03542999550700188,
-0.03407083451747894,
0.046284906566143036,
-0.01275589969009161,
0.02196696400642395,
0.06174994260072708,
-0.03890136256814003,
-0.04187681898474693,
-0.019726186990737915,
0.05583576112985611,
0.06009691208600998,
0.07765578478574753,
0.03526468947529793,
0.02103024534881115,
-0.011865098960697651,
-0.004481554497033358,
-0.06568048894405365,
-0.018137438222765923,
-0.03601773828268051,
0.05726838856935501,
0.030452528968453407,
-0.024868953973054886,
-0.033611658960580826,
-0.03783607482910156,
-0.0196527186781168,
-0.03678915277123451,
0.003774423850700259,
-0.00793914683163166,
-0.005023381672799587,
0.004123397637158632,
-0.022866947576403618,
-0.022995516657829285,
-0.016567056998610497,
-0.024262841790914536,
-0.033225949853658676,
0.05587249621748924,
0.04870935529470444,
0.031077008694410324,
-0.012526311911642551,
0.019120074808597565,
-0.012333458289504051,
-0.06410092115402222,
-0.01289365254342556,
0.04264823719859123,
0.0415094792842865,
0.030030088499188423,
-0.0008184806210920215,
-0.05117053538560867,
-0.06468866765499115,
0.027348501607775688,
0.03043416328728199,
0.0404074564576149,
0.03302391245961189,
0.007365177385509014,
-0.056754112243652344,
-0.027734210714697838,
0.024593448266386986,
0.01848641224205494,
0.02799134887754917,
-0.015134429559111595,
0.04099520295858383,
-0.025493431836366653,
0.00479838578030467,
0.017806831747293472,
0.018954770639538765,
-0.06549681723117828,
-0.010836545377969742,
-0.0422808937728405,
0.03166475519537926,
0.022334303706884384,
0.024813853204250336,
0.003278514137491584,
0.007815170101821423,
0.05815000459551811,
0.04323597997426987,
0.021342484280467033,
0.02352816052734852,
0.0021122079342603683,
-0.032509636133909225,
-0.016686443239450455,
-0.026907693594694138,
0.0201486274600029,
-0.01167224533855915,
0.030342327430844307,
0.02385876700282097,
0.02009352669119835,
-0.014243628829717636,
0.048121608793735504,
0.0464685782790184,
0.034217771142721176,
-0.024446511641144753,
-0.01228754036128521,
-0.031628020107746124,
0.05550515279173851,
0.0025185784325003624,
0.0068922266364097595,
-0.005308070685714483,
0.015226264484226704,
-0.06557028740644455,
0.048231810331344604,
-0.014959943480789661,
-0.005459598731249571,
0.011644694954156876,
0.012801817618310452,
0.013481397181749344,
0.0200384259223938,
0.0469093844294548,
-0.04771753400564194,
-0.011470207944512367,
-0.025493431836366653,
0.025309761986136436,
-0.01275589969009161,
-0.0203139316290617,
0.0025851589161902666,
0.03137088194489479,
-0.026595454663038254,
-0.024262841790914536,
0.015749724581837654,
-0.0015680849319323897,
-0.008843723684549332,
0.03381369635462761,
-0.004534359555691481,
-0.0460277684032917,
-0.03620140999555588,
-0.0459175668656826,
0.029809683561325073,
-0.07486400008201599,
-0.008696787059307098,
-0.014693621546030045,
-0.046395108103752136,
0.033446356654167175,
0.0832393616437912,
0.08551687747240067,
-0.02767910808324814,
0.01637420430779457,
0.06138260290026665,
0.026577087119221687,
-0.022554708644747734,
0.014537501148879528,
-0.007388136349618435,
-0.0009327005827799439,
-0.02284858003258705,
-0.04110540449619293,
-0.01176408026367426,
0.032730042934417725,
0.00813659280538559,
0.01803641952574253,
-0.002236185362562537,
0.01902823895215988,
0.012957937084138393,
-0.009215655736625195,
0.010046763345599174,
0.009431468322873116,
0.00782894529402256,
-0.01998332515358925,
-0.0023280205205082893,
0.00677743274718523,
-0.006800391711294651,
0.047019585967063904,
-0.02501589059829712,
0.0008150368230417371,
-0.06685597449541092,
0.01681501232087612,
0.007094264030456543,
0.07846393436193466,
0.007929963991045952,
0.03302391245961189,
0.02611791156232357,
-0.03021375834941864,
-0.016567056998610497,
-0.05256643146276474,
-0.037652403116226196,
0.030783135443925858,
-0.10314922034740448,
-0.002385417465120554,
-0.05330111086368561,
0.050215449184179306,
0.012057952582836151,
-0.03662385046482086,
0.0232342891395092,
0.028432156890630722,
0.05106033384799957,
-0.039709512144327164,
0.00951411947607994,
-0.05418272688984871,
0.00479838578030467,
-0.003267034888267517,
0.04973790794610977,
0.10219413787126541,
0.05124400556087494,
-0.03904829919338226,
0.02358326129615307,
-0.01902823895215988,
-0.0013637517113238573,
-0.022426139563322067,
0.09631668776273727,
-0.02661382220685482,
0.01167224533855915,
0.0221322663128376,
-0.022371038794517517,
-0.007071305066347122,
-0.046358373016119,
0.06784779578447342,
-0.008894232101738453,
-0.023436326533555984,
-0.010395737364888191,
0.055468421429395676,
-0.04786447063088417,
-0.03374022617936134,
0.05363171547651291,
0.008540667593479156,
-0.008609543554484844,
-0.03291371092200279,
-0.05748879164457321,
-0.02402407117187977,
-0.008788621984422207,
0.07049264758825302,
-0.015345650725066662,
-0.015042594633996487,
0.07097019255161285,
0.03557692840695381,
0.03680752217769623,
-0.03745036572217941,
0.024226108565926552,
0.03750546649098396,
-0.01396812405437231,
-0.06064791977405548,
-0.012912019155919552,
-0.017072150483727455,
0.0069335526786744595,
0.002010041382163763,
0.036164674907922745,
-0.0028445932548493147,
0.04066459834575653,
0.06733351945877075,
0.06395398825407028,
-0.019083339720964432,
0.012746715918183327,
-0.0466889813542366,
0.008728928864002228,
0.03293207660317421,
-0.009211063385009766,
-0.006313665304332972,
-0.011754896491765976,
0.058627549558877945,
0.00937636662274599,
-0.008581993170082569,
-0.01979965530335903,
0.02103024534881115,
-0.011920199729502201,
-0.02440977841615677,
0.0053539881482720375,
-0.0412890762090683,
-0.00588204013183713,
0.005445823539048433,
-0.01759561151266098,
0.05003178119659424,
-0.05146440863609314,
0.03563203290104866,
-0.00524378614500165,
-0.03401573374867439,
0.05164807662367821,
-0.023271022364497185,
-0.027072997763752937,
-0.010974298231303692,
0.005455006845295429,
-0.00774629320949316,
-0.024262841790914536,
0.025548534467816353,
0.05888468772172928,
0.00663967989385128,
0.056754112243652344,
0.03473204746842384,
-0.013288543559610844,
-0.02474038489162922,
-0.03904829919338226,
-0.019046606495976448,
0.005927957594394684,
-0.0395258404314518,
-0.0067177400924265385,
0.017522143200039864,
0.018109887838363647,
-0.05443986505270004,
-0.015198714099824429,
0.003168312134221196,
-0.004056816920638084,
0.05322764441370964,
0.027293400838971138,
0.0001008751496556215,
0.018743550404906273,
-0.018220089375972748,
0.046174705028533936,
-0.059839773923158646,
0.05017871782183647,
-0.1243080347776413,
0.0017620866419747472,
-0.07144773006439209,
0.005983058828860521,
-0.009918194264173508,
-0.01101103238761425,
0.0033267277758568525,
-0.03730342909693718,
0.015373201109468937,
-0.05087666213512421,
0.025640368461608887,
-0.00029961211839690804,
-0.00017735660367179662,
0.021673090755939484,
-0.023436326533555984,
0.002938724122941494,
0.0030925481114536524,
-0.0021891200449317694,
-0.007388136349618435,
-0.009031984955072403,
-0.02744033746421337,
0.04742366075515747,
-0.0205343347042799,
-0.030966807156801224,
-0.025144459679722786,
-0.049333833158016205,
0.0004319121071603149,
0.05186848342418671,
-0.018624164164066315,
0.004268037620931864,
0.037652403116226196,
0.04621144011616707,
0.01654869131743908,
0.051831748336553574,
-0.015070145018398762,
-0.015217081643640995,
-0.031958624720573425,
-0.02352816052734852,
-0.12504272162914276,
-0.07262322306632996,
-0.02661382220685482,
-0.06608456373214722,
0.0038777384907007217,
0.06501927226781845,
0.01665889285504818,
0.07486400008201599,
0.049223631620407104,
0.01749459281563759,
-0.015290549956262112,
-0.03138924762606621,
0.030507631599903107,
0.009211063385009766,
0.002248812699690461,
-0.02744033746421337,
-0.029846418648958206,
-0.014601785689592361,
0.02374856546521187,
-0.015290549956262112,
0.014509950764477253,
0.017751730978488922,
0.023436326533555984,
0.0008288120734505355,
0.002911173738539219,
0.008673828095197678,
0.0026287806686013937,
-0.005092258099466562,
0.002500211587175727,
-0.005482557229697704,
0.08683930337429047,
-0.017182353883981705,
-0.033225949853658676,
0.027348501607775688,
-0.047019585967063904,
0.03149944916367531,
0.010221250355243683,
0.024722017347812653,
0.003292289562523365,
-0.0225179735571146,
0.03454837575554848,
0.0018412943463772535,
0.05451333522796631,
-0.011112051084637642,
-0.019671086221933365,
-0.012379376217722893,
0.0021133560221642256,
0.014142610132694244,
0.004144060425460339,
0.044191066175699234,
0.0032142295967787504,
0.038644224405288696,
0.00035471320734359324,
0.004890220705419779,
-0.029075002297759056,
-0.003469072049483657,
0.05609289929270744,
0.047276727855205536,
0.06325604021549225,
-0.045072682201862335,
0.00267010647803545,
-0.039378903806209564,
-0.05598269775509834,
-0.010285534895956516,
0.03192189335823059,
-0.04220742732286453,
-0.005211643874645233,
-0.048782821744680405,
0.060794856399297714,
0.052052151411771774,
-0.03243616968393326,
-0.010606957599520683,
0.0825781524181366,
-0.05583576112985611,
0.07468032836914062,
0.008343221619725227,
-0.026411784812808037,
0.03585243597626686,
0.04433800280094147,
0.002929540816694498,
0.029075002297759056,
-0.0108732795342803,
-0.028211751952767372,
0.017393574118614197,
0.012158971279859543,
-0.03779933974146843,
0.05297050252556801,
-0.020736372098326683,
-0.04455840587615967,
-0.08132919669151306,
0.029681114479899406,
0.022811846807599068,
-0.026430150493979454,
-0.00322341313585639,
-0.04962770640850067,
0.03374022617936134,
-0.06501927226781845,
-0.03149944916367531,
-0.00032056201598607004,
-0.085002601146698,
-0.012250806204974651,
0.0035654990933835506,
-0.0057764300145208836,
-0.03232596814632416,
0.0023739382158964872,
0.03467694669961929,
0.01954251527786255,
0.027183199301362038,
-0.0196527186781168,
-0.005803980398923159,
-0.024666916579008102,
0.008200877346098423,
-0.014702804386615753,
-0.003657334251329303,
-0.014519134536385536,
0.017522143200039864,
-0.044521670788526535,
0.00324407615698874,
0.039929915219545364,
0.05197868496179581,
0.02960764616727829,
-0.030966807156801224,
0.01721908710896969,
0.01270079892128706,
0.05128073692321777,
-0.017163986340165138,
-0.06439479440450668,
0.02738523669540882,
-0.021397585049271584,
-0.06127240136265755,
0.022866947576403618,
0.018660899251699448,
-0.006644271779805422,
0.07122732698917389,
0.0033542781602591276,
-0.025438331067562103,
-0.06898654997348785,
0.007907005026936531,
0.02955254539847374,
0.04242783039808273,
0.014261996373534203,
-0.0805945098400116,
0.033776961266994476,
0.013215075246989727,
0.030966807156801224,
0.05653370916843414,
0.03403409942984581,
0.011855915188789368,
-0.051941949874162674,
-0.0395258404314518,
0.027568906545639038,
0.01349976472556591,
-0.07501093298196793,
0.02823011949658394,
-0.005335621070116758,
-0.005464190151542425,
0.014987493865191936,
-0.00912841223180294,
0.002225853968411684,
-0.030195390805602074,
-0.007287117652595043,
-0.02867092750966549,
-0.023326123133301735,
-0.04297884181141853,
0.009169737808406353,
-0.029846418648958206,
-0.007571806665509939,
0.02391386777162552,
-0.004936138167977333,
-0.006332032382488251,
0.028377056121826172,
-0.01648440584540367,
0.015749724581837654,
-0.028928067535161972,
-0.016668075695633888,
0.0035035102628171444,
-0.03401573374867439,
0.029313774779438972,
0.014656887389719486,
0.018954770639538765,
0.0786108747124672,
0.03598100319504738,
-0.044521670788526535,
-0.028689295053482056,
0.013260993175208569,
-0.04044419154524803,
-0.010570223443210125,
-0.002984641818329692,
-0.007227424997836351,
-0.012654880993068218,
0.06887634843587875,
-0.059839773923158646,
-0.060794856399297714,
-0.019744552671909332,
-0.014546684920787811,
0.0030144881457090378,
-0.03587080165743828,
-0.005771838128566742,
0.006653455551713705,
0.015042594633996487,
-0.024060804396867752,
-0.046064503490924835,
-0.05510107800364494,
-0.0060014259070158005,
0.07335790246725082,
0.009807991795241833,
0.08096185326576233,
-0.009270756505429745,
-0.025364862754940987,
-0.03554019704461098,
-0.0032325966749340296,
0.001980195054784417,
-0.015024228021502495,
-0.023307757452130318,
-0.000769119244068861,
-0.0232342891395092,
-0.010460021905601025,
0.042574767023324966,
0.0841209813952446,
0.01228754036128521,
0.02103024534881115,
-0.0439339280128479,
-0.03451164439320564,
0.018284374848008156,
-0.006079485639929771,
-0.0464685782790184,
-0.01223243959248066,
0.02290368266403675,
-0.05701125040650368,
-0.09793298691511154,
-0.01458341907709837,
0.01831192523241043,
-0.015859927982091904,
-0.024207741022109985,
-0.01417016051709652,
0.037487100809812546,
0.0007708411430940032,
0.010065130889415741,
0.004288700874894857,
0.013573232106864452,
0.040811531245708466,
0.031738221645355225,
-0.04588083177804947,
-0.03093007206916809,
0.010616141371428967,
-0.007259567268192768,
-0.0008420133963227272,
0.011745713651180267,
-0.027568906545639038,
-0.02639341726899147,
-0.0477910041809082,
-0.009036577306687832,
-0.033666759729385376,
-0.01737520657479763,
0.03037906251847744,
-0.023050617426633835,
0.016401754692196846,
0.007613132242113352,
-0.011607960797846317,
-0.050656259059906006,
-0.037652403116226196,
0.030728034675121307,
0.014243628829717636,
-0.007567214779555798,
0.010368186049163342,
-0.029368875548243523,
0.014335463754832745,
-0.0018435902893543243,
-0.0098263593390584,
0.0413992777466774,
-0.006814166903495789,
-0.03260147199034691,
0.03675242140889168,
-0.02938724309206009,
0.01687011308968067,
-0.06839880347251892,
0.011571226641535759,
0.02845052443444729,
0.014546684920787811,
-0.07324770092964172,
-0.04764406755566597,
-0.009890643879771233,
0.0193772129714489,
-0.05572555959224701,
-0.027917880564928055,
-0.01970781944692135,
0.01231509167701006,
0.016126248985528946,
-0.03857075423002243,
-0.08088838309049606,
0.03912176564335823,
0.07706804573535919,
-0.06086832657456398,
0.036660585552453995,
-0.024758752435445786,
-0.015611972659826279,
0.050766460597515106,
-0.021985331550240517,
0.02760564163327217,
-0.0045320638455450535,
-0.018513962626457214,
0.01843131147325039,
-0.004724917467683554,
0.07824353128671646,
0.054807208478450775,
0.029148470610380173,
-0.028744395822286606,
0.05561535432934761,
0.016172166913747787,
-0.010763077065348625,
-0.08044757694005966,
-0.038827892392873764,
-0.06979469954967499,
0.009560037404298782,
0.07346810400485992,
0.014785456471145153,
-0.0017999685369431973,
-0.0030695893801748753,
-0.047680798918008804,
0.04577063024044037,
-0.020993512123823166,
-0.05197868496179581,
0.02529139630496502,
-0.05759899318218231,
-0.03904829919338226,
-0.018826201558113098,
0.011378373019397259,
-0.043640054762363434,
0.01355486549437046,
0.03203209489583969,
0.044852279126644135,
0.01458341907709837,
0.06380704790353775,
-0.01383955404162407,
-0.01505177840590477,
-0.03419940173625946,
0.0823577493429184,
0.028432156890630722,
-0.02999335341155529,
0.020001692697405815,
0.05308070778846741,
-0.009835543110966682,
0.05245622619986534,
0.023730197921395302,
-0.06432132422924042,
-0.023142453283071518,
-0.04231762886047363,
-0.04345638304948807,
-0.021893495693802834,
-0.0015818601241335273,
-0.03171985596418381,
0.014216078445315361,
0.04334618151187897,
0.022609809413552284
] |
10,012
|
sentence_transformers.SentenceTransformer
|
_eval_during_training
|
Runs evaluation during the training
|
def _eval_during_training(self, evaluator, output_path, save_best_model, epoch, steps, callback):
"""Runs evaluation during the training"""
eval_path = output_path
if output_path is not None:
os.makedirs(output_path, exist_ok=True)
eval_path = os.path.join(output_path, "eval")
os.makedirs(eval_path, exist_ok=True)
if evaluator is not None:
score = evaluator(self, output_path=eval_path, epoch=epoch, steps=steps)
if callback is not None:
callback(score, epoch, steps)
if score > self.best_score:
self.best_score = score
if save_best_model:
self.save(output_path)
|
(self, evaluator, output_path, save_best_model, epoch, steps, callback)
|
[
0.0424337312579155,
0.007875160314142704,
-0.05264731124043465,
0.049558669328689575,
0.030816225335001945,
-0.01555727981030941,
-0.022726088762283325,
0.018075576052069664,
0.010038087144494057,
0.023936977609992027,
0.0596669502556324,
0.006515104789286852,
0.05664850398898125,
-0.01668042317032814,
0.017127925530076027,
0.03567732498049736,
0.03513330593705177,
-0.03427339717745781,
-0.0149167375639081,
0.020356960594654083,
-0.030219554901123047,
-0.06896797567605972,
-0.0196198970079422,
-0.015513407066464424,
0.025498846545815468,
0.02883317694067955,
0.055314771831035614,
0.0032224541064351797,
-0.0028254056815057993,
0.022673441097140312,
-0.0019216268556192517,
-0.04738257825374603,
0.0051638237200677395,
0.019830485805869102,
0.019374210387468338,
-0.015373014844954014,
-0.038467634469270706,
0.00869996752589941,
-0.021322160959243774,
-0.045627668499946594,
-0.045908454805612564,
-0.01655757799744606,
0.001587097067385912,
0.03930998966097832,
-0.05464790761470795,
0.022164518013596535,
-0.06050930917263031,
-0.015478309243917465,
0.07342544943094254,
-0.09876634925603867,
-0.07419760525226593,
-0.03671272471547127,
0.018514303490519524,
0.06373834609985352,
-0.025533944368362427,
-0.003152257762849331,
0.03271152824163437,
-0.015171200037002563,
0.03283437341451645,
-0.03811665251851082,
0.019391758367419243,
-0.03952058032155037,
0.03544918820261955,
0.029938770458102226,
0.06310657411813736,
0.029815927147865295,
-0.0688977763056755,
0.01965499483048916,
-0.014249871484935284,
0.06672169268131256,
-0.03492271527647972,
-0.002369128866121173,
0.0560518354177475,
-0.030693382024765015,
0.007927807047963142,
0.01583806611597538,
-0.07630350440740585,
-0.054683007299900055,
0.03355388715863228,
0.026639537885785103,
0.02871033363044262,
0.01689978688955307,
0.026657087728381157,
-0.03983646258711815,
-0.005150661803781986,
-0.0384325347840786,
0.034940265119075775,
-0.01731218956410885,
0.0061246370896697044,
0.049874551594257355,
0.04296020418405533,
0.020725490525364876,
0.01553973089903593,
-0.035940565168857574,
0.023199914023280144,
-0.0051857600919902325,
-0.019918231293559074,
-0.005922822281718254,
-0.00686608674004674,
-0.044785309582948685,
0.015636250376701355,
0.04868121072649956,
0.03815175220370293,
-0.00852886401116848,
0.0500500425696373,
-0.026007771492004395,
-0.007124935742467642,
-0.019321562722325325,
0.0010589787270873785,
0.00036112763336859643,
-0.034238301217556,
-0.0006059924489818513,
-0.054683007299900055,
0.00045435724314302206,
-0.02258569560945034,
0.00494446000084281,
-0.04738257825374603,
-0.013267122209072113,
-0.010696178302168846,
0.0006372518255375326,
-0.03857292979955673,
0.014065606519579887,
-0.04127549007534981,
0.030693382024765015,
-0.07475917786359787,
0.003286069491878152,
0.056683603674173355,
0.06598462909460068,
0.05542006716132164,
-0.04720708727836609,
0.07707566022872925,
-0.039099402725696564,
0.0015860002022236586,
-0.0005900886026211083,
-0.011468338780105114,
0.02546374872326851,
0.00007876531162764877,
0.023199914023280144,
-0.01874244213104248,
-0.015276494435966015,
0.02818385884165764,
-0.013442613184452057,
0.03127250075340271,
0.00686608674004674,
0.06710777431726456,
0.0030206392984837294,
-0.0628608912229538,
0.05345456674695015,
0.051313579082489014,
-0.005712233018130064,
0.041591376066207886,
0.0021607333328574896,
0.028903372585773468,
-0.0162153709679842,
0.030254654586315155,
-0.012907365337014198,
-0.02718356065452099,
-0.027130912989377975,
0.03430849686264992,
-0.020567549392580986,
-0.012310695834457874,
-0.014030507765710354,
0.010503138415515423,
0.024252859875559807,
0.0456627681851387,
0.05619222670793533,
-0.03300986438989639,
0.0384325347840786,
-0.029938770458102226,
0.04727728292346001,
0.03948548063635826,
-0.04976925626397133,
-0.0540512390434742,
0.004420180339366198,
-0.07384662330150604,
-0.013082856312394142,
0.017285866662859917,
-0.007265328895300627,
0.01865469664335251,
0.06984543055295944,
-0.050436124205589294,
0.006861699279397726,
-0.04896199703216553,
-0.012863492593169212,
-0.04625943675637245,
0.000266527000349015,
-0.020971179008483887,
-0.00027050296193920076,
-0.019918231293559074,
-0.03014935925602913,
-0.05826302245259285,
0.0002504860167391598,
-0.0026718510780483484,
0.009836272336542606,
-0.024252859875559807,
0.002303319750353694,
0.018953030928969383,
0.09322083741426468,
0.008344598114490509,
0.03299231454730034,
-0.04267941787838936,
0.0016112270532175899,
0.07075798511505127,
-0.052120838314294815,
-0.070477195084095,
0.01409192942082882,
-0.0536651574075222,
0.04264432191848755,
-0.010169705376029015,
0.009502839297056198,
-0.0042030103504657745,
0.00749785453081131,
-0.05492869392037392,
0.06952954828739166,
0.06988053023815155,
0.035378992557525635,
0.02198902703821659,
0.03727429360151291,
0.004025325644761324,
0.002619203645735979,
-0.04997984692454338,
-0.019883133471012115,
0.005734169390052557,
-0.019532151520252228,
0.06784483045339584,
-0.03132515028119087,
0.010485589504241943,
-0.06373834609985352,
0.0050760782323777676,
0.0032663268502801657,
-0.018286164849996567,
-0.04289000853896141,
0.02939474768936634,
-0.05162946134805679,
-0.004847939591854811,
-0.013477711006999016,
-0.031219854950904846,
0.0460488460958004,
-0.01173157524317503,
0.04545217752456665,
-0.0014631564263254404,
-0.037344492971897125,
-0.05380554869771004,
-0.07721605151891708,
0.0033782024402171373,
0.04436413198709488,
0.0392397940158844,
-0.021041374653577805,
-0.03759017959237099,
-0.02339295484125614,
0.060123227536678314,
0.015285269357264042,
-0.013828692957758904,
0.006936282850801945,
-0.005168210715055466,
0.09041298180818558,
-0.011047160252928734,
0.008208593353629112,
0.07840939611196518,
0.03527369722723961,
0.02802591770887375,
0.058157727122306824,
-0.02583228051662445,
0.05082220211625099,
-0.05973714590072632,
-0.055314771831035614,
0.0007600955432280898,
0.012863492593169212,
0.05942126363515854,
0.01213520485907793,
0.053279075771570206,
0.09673065692186356,
-0.05264731124043465,
-0.009502839297056198,
-0.0038937071803957224,
0.013442613184452057,
-0.01739993505179882,
0.00383886625058949,
0.013828692957758904,
-0.031939368695020676,
0.07110896706581116,
0.002939474768936634,
-0.038186848163604736,
0.01946195587515831,
-0.011643829755485058,
-0.012161528691649437,
-0.016408411785960197,
-0.02570943534374237,
0.026077967137098312,
-0.020392058417201042,
0.02474423497915268,
-0.007642634678632021,
0.06626541167497635,
-0.010862895287573338,
0.01846165582537651,
-0.012512510642409325,
0.005839464254677296,
-0.03188671916723251,
0.03513330593705177,
0.02283138409256935,
0.01818087138235569,
-0.04183706268668175,
0.02558659203350544,
-0.011012062430381775,
0.019514603540301323,
0.030640734359622,
-0.05250691622495651,
-0.003259745892137289,
-0.006725693587213755,
0.007818125188350677,
0.0021015051752328873,
-0.04345158115029335,
0.04678590968251228,
0.030746029689908028,
0.01830371469259262,
-0.021602945402264595,
0.035694874823093414,
-0.013547907583415508,
0.048119641840457916,
-0.040819212794303894,
0.006348388269543648,
0.06735345721244812,
0.04257412254810333,
0.03234299644827843,
-0.014004183933138847,
-0.07002092152833939,
0.003180774860084057,
0.022690990939736366,
-0.033378392457962036,
-0.036221347749233246,
0.020637745037674904,
-0.05826302245259285,
0.08107686042785645,
0.015908261761069298,
0.03576507419347763,
0.05454261228442192,
0.0014785119565203786,
0.04039803519845009,
0.07174073159694672,
0.018286164849996567,
0.022322459146380424,
0.033378392457962036,
-0.006365937180817127,
0.028218958526849747,
0.003130321390926838,
0.030184457078576088,
-0.031693682074546814,
0.03214995563030243,
-0.0149167375639081,
-0.047838855534791946,
-0.06061460077762604,
-0.03420320153236389,
-0.041907258331775665,
0.00020195178512949497,
-0.04064372181892395,
0.014548206701874733,
0.04573296383023262,
-0.06265030056238174,
0.0026170099154114723,
-0.10761109739542007,
0.005979856941848993,
0.012688001617789268,
-0.06549325585365295,
0.027815328910946846,
-0.00014944157737772912,
-0.027903074398636818,
0.010757599957287312,
-0.011626280844211578,
0.04994474723935127,
-0.021602945402264595,
0.0017439421499148011,
-0.0007902580546215177,
0.03916959837079048,
-0.012161528691649437,
-0.008068200200796127,
-0.025340905413031578,
-0.021936379373073578,
0.03244829177856445,
0.01693488471210003,
0.0040143574588000774,
0.005883336998522282,
0.0072960397228598595,
-0.028534842655062675,
-0.02377903461456299,
0.05180495232343674,
-0.0368531160056591,
-0.04882160574197769,
0.022041672840714455,
-0.007445206865668297,
-0.03267642855644226,
0.03920469805598259,
0.012047459371387959,
-0.027780231088399887,
-0.024603841826319695,
0.02186618186533451,
0.03773057088255882,
-0.013916438445448875,
0.029570238664746284,
-0.059807345271110535,
-0.004189848434180021,
-0.03195691853761673,
0.013846242800354958,
-0.04127549007534981,
0.055525362491607666,
0.03892391175031662,
0.00704596471041441,
0.023603543639183044,
0.03464192897081375,
-0.007563663646578789,
0.030465243384242058,
-0.006229931488633156,
-0.009257151745259762,
-0.027130912989377975,
0.02695542201399803,
-0.07539094984531403,
0.05176985263824463,
-0.059772245585918427,
0.008735066279768944,
0.019040776416659355,
-0.030693382024765015,
-0.017250768840312958,
0.08219999819993973,
0.061246369034051895,
0.021374808624386787,
0.002665270119905472,
0.0045452178455889225,
0.0014631564263254404,
-0.027850426733493805,
-0.04113509878516197,
-0.0016693584620952606,
-0.029184158891439438,
-0.06552834808826447,
-0.05078710615634918,
0.03255358710885048,
-0.002434937981888652,
0.027341503649950027,
0.002098214579746127,
0.02358599379658699,
-0.02886827476322651,
-0.037906061857938766,
-0.005563065875321627,
-0.01731218956410885,
0.021953927353024483,
0.014671050012111664,
-0.04499590024352074,
0.02930700220167637,
-0.011942164972424507,
0.023831682279706,
-0.10353970527648926,
0.020567549392580986,
0.003777444362640381,
0.026253458112478256,
0.03432604670524597,
0.061281468719244,
0.016382087022066116,
0.0005607486818917096,
-0.07953253388404846,
0.026621989905834198,
0.026499146595597267,
0.03508065640926361,
0.018549401313066483,
0.016294341534376144,
0.026692185550928116,
-0.044785309582948685,
-0.04654022306203842,
-0.006541428156197071,
0.014609628356993198,
0.06942424923181534,
0.025884926319122314,
-0.024200214073061943,
0.021041374653577805,
-0.023322757333517075,
-0.0019896295852959156,
0.01870734430849552,
-0.023252561688423157,
-0.0008012262405827641,
-0.0025643627159297466,
-0.014530657790601254,
0.005448996555060148,
-0.01870734430849552,
0.006734468508511782,
-0.017759691923856735,
-0.050436124205589294,
0.016733070835471153,
0.015732770785689354,
0.0011801772052422166,
-0.047628264874219894,
-0.018724892288446426,
0.012503735721111298,
0.012600256130099297,
-0.023533347994089127,
0.009906468912959099,
0.052752602845430374,
-0.026411401107907295,
-0.045557472854852676,
-0.046470023691654205,
0.03727429360151291,
0.05029572919011116,
0.019163621589541435,
-0.05001494288444519,
0.026130614802241325,
0.02895602025091648,
-0.009423868730664253,
0.037344492971897125,
0.018233519047498703,
0.022919129580259323,
-0.022006575018167496,
-0.005962308030575514,
-0.07932194322347641,
0.015513407066464424,
0.005549903959035873,
-0.021936379373073578,
0.005830689333379269,
-0.02246285229921341,
-0.028815627098083496,
-0.05475320294499397,
0.08514824509620667,
0.011801771819591522,
0.011477113701403141,
0.04632963240146637,
0.006673046387732029,
-0.02830670401453972,
-0.017987830564379692,
-0.017013855278491974,
-0.006883635651320219,
0.034501537680625916,
-0.018689794465899467,
0.056157130748033524,
0.0028934082947671413,
-0.014381489716470242,
0.00915185734629631,
0.012696776539087296,
0.05141887068748474,
0.02830670401453972,
0.013003885746002197,
0.007383785210549831,
0.02895602025091648,
0.005330540239810944,
-0.026779931038618088,
-0.0030140585731714964,
-0.009722203016281128,
0.0026301718316972256,
0.013547907583415508,
-0.011134905740618706,
0.019514603540301323,
-0.00999421440064907,
0.04060862585902214,
0.016346989199519157,
0.011038386262953281,
-0.009748526848852634,
0.007502241525799036,
0.0077084437943995,
0.03980136662721634,
0.0066335611045360565,
0.023533347994089127,
0.0014324455987662077,
0.0000027806074740510667,
0.03702860698103905,
0.0066774338483810425,
0.013819918967783451,
-0.029008667916059494,
0.005628874991089106,
0.020076174288988113,
-0.020620197057724,
0.05538497120141983,
-0.02474423497915268,
-0.051313579082489014,
-0.016004782170057297,
-0.03395751491189003,
-0.05415653437376022,
0.018830187618732452,
0.07002092152833939,
0.04938317462801933,
-0.04492570459842682,
-0.062123823910951614,
0.03102681413292885,
-0.012100107036530972,
-0.025165414437651634,
0.012731874361634254,
0.018795089796185493,
-0.018830187618732452,
-0.021480102092027664,
0.008739453740417957,
-0.021076472476124763,
-0.03014935925602913,
-0.027130912989377975,
0.00012716244964394718,
0.03580017015337944,
-0.08592040836811066,
0.028201408684253693,
0.03451908752322197,
0.08304235339164734,
-0.07630350440740585,
-0.015478309243917465,
0.05419163033366203,
-0.04913748800754547,
-0.003367234254255891,
0.0268325787037611,
-0.0492427833378315,
-0.056122031062841415,
-0.09666045755147934,
0.012512510642409325,
0.01858450099825859,
-0.010994513519108295,
0.04225824028253555,
-0.03455418348312378,
-0.06587933003902435,
0.052401620894670486,
-0.05854380875825882,
0.028218958526849747,
-0.04011724889278412,
0.04401315003633499,
0.025130316615104675,
0.0007902580546215177,
0.045873355120420456,
0.020286763086915016,
-0.021392356604337692,
-0.022287361323833466,
-0.018479205667972565,
0.020637745037674904,
0.007015253882855177,
-0.01749645546078682,
-0.02314726635813713,
0.016697971150279045,
-0.05113808810710907,
-0.06479129195213318,
0.0023800970520824194,
-0.03351878747344017,
0.03488761559128761,
-0.039345089346170425,
-0.030465243384242058,
0.016759393736720085,
0.04745277389883995,
-0.0536651574075222,
0.08030469715595245,
-0.06591442972421646,
0.048189837485551834,
0.014609628356993198,
0.007998003624379635,
-0.13870811462402344,
-0.047628264874219894,
0.03227280080318451,
0.022936677560210228,
-0.062123823910951614,
0.03611605614423752,
-0.022322459146380424,
-0.020234115421772003,
0.08613099902868271,
0.06693228334188461,
0.002450293628498912,
-0.036467038094997406,
0.03513330593705177,
0.02839444950222969,
0.048505719751119614,
-0.030781127512454987,
0.015469534322619438,
0.055876344442367554,
-0.06542305648326874,
0.023041972890496254,
-0.02162049524486065,
-0.05949145928025246,
-0.0004104844992980361,
-0.034062810242176056,
-0.01609252765774727,
-0.001875560381449759,
0.05370025709271431,
-0.022041672840714455,
0.057806745171546936,
-0.05692929029464722,
-0.022515499964356422,
-0.05054141581058502,
-0.027201110497117043,
0.03499291092157364,
-0.021164217963814735,
-0.045030999928712845,
-0.006896797567605972,
-0.01447801012545824,
-0.04029273986816406,
-0.003384783398360014,
-0.004281981382519007,
-0.030184457078576088,
0.015943359583616257,
-0.041240394115448,
0.008348985575139523,
0.01643473468720913,
0.03499291092157364,
-0.008590285666286945,
0.011766673997044563,
-0.002726692007854581,
-0.024480998516082764,
-0.04861101508140564,
0.030465243384242058,
-0.0021991219837218523,
-0.07960273325443268,
-0.04310059919953346,
-0.07468898594379425,
-0.021953927353024483,
-0.006519491784274578,
-0.022234713658690453,
-0.0035865979734808207,
0.0035712425597012043,
0.019602349027991295,
-0.044153545051813126,
-0.05742066726088524,
0.005304216407239437,
0.018549401313066483,
-0.0720917135477066,
0.024042271077632904,
-0.04232843592762947,
-0.05706968531012535,
0.032009564340114594,
-0.016855914145708084,
-0.03913449868559837,
-0.01625046879053116,
-0.03464192897081375,
-0.0030206392984837294,
0.013030209578573704,
-0.018672246485948563,
-0.006813439540565014,
-0.012065008282661438,
0.0025884928181767464,
-0.033255551010370255,
0.013003885746002197,
-0.051278479397296906,
-0.03895900771021843,
-0.03508065640926361,
-0.026095516979694366,
-0.05675379931926727,
0.082480788230896,
0.022164518013596535,
0.01469737384468317,
0.011161229573190212,
0.010599657893180847,
0.021532749757170677,
-0.0400470532476902,
-0.004198622889816761,
0.01777724176645279,
-0.017417484894394875,
0.014030507765710354,
-0.03969607129693031,
0.027762681245803833,
0.0013830886455252767,
0.015890713781118393,
-0.028745431452989578,
0.012582707218825817,
-0.002062019659206271,
0.005874562077224255,
-0.027780231088399887,
0.016662873327732086,
0.0304301455616951,
0.022971775382757187,
0.028973570093512535,
0.052436720579862595,
0.08353373408317566,
0.08332314342260361,
0.02386678010225296,
0.0020499546080827713,
0.00896759144961834,
-0.004404824692755938,
-0.00042337211198173463,
0.04425883665680885,
-0.04148608073592186,
-0.009941566735506058,
-0.029342100024223328,
0.042223140597343445,
-0.004619801416993141,
0.03488761559128761,
0.021287061274051666
] |
10,013
|
sentence_transformers.SentenceTransformer
|
_first_module
|
Returns the first module of this sequential embedder
|
def _first_module(self):
"""Returns the first module of this sequential embedder"""
return self._modules[next(iter(self._modules))]
|
(self)
|
[
0.004410610068589449,
0.010485516861081123,
-0.016660816967487335,
0.02862769179046154,
0.024629810824990273,
0.005639869719743729,
0.04172789677977562,
0.03869378939270973,
-0.00908893533051014,
0.011966874822974205,
-0.008812296204268932,
-0.03267911821603775,
-0.016259243711829185,
0.055898960679769516,
-0.013207289390265942,
-0.017008846625685692,
0.03207229822874069,
0.047474853694438934,
-0.040050212293863297,
-0.02198835276067257,
-0.008789986371994019,
0.04886697232723236,
0.027610374614596367,
-0.01956106722354889,
-0.04154941812157631,
0.043405577540397644,
0.03237570822238922,
-0.034713756293058395,
-0.012154275551438332,
-0.07228314131498337,
0.010842470452189445,
-0.059754062443971634,
-0.012386295944452286,
-0.020631927996873856,
-0.02070331946015358,
0.05229372903704643,
-0.03557044267654419,
0.010637222789227962,
-0.05018769949674606,
-0.019382590427994728,
0.0682852566242218,
-0.037944186478853226,
0.0675356537103653,
-0.015241926535964012,
-0.03344656899571419,
0.027913784608244896,
0.04015729948878288,
0.014563714154064655,
0.018365271389484406,
0.01620570197701454,
0.05746955797076225,
0.015170535072684288,
0.028913255780935287,
-0.018240338191390038,
-0.02539726160466671,
0.0562916100025177,
0.0044507673010230064,
-0.030198289081454277,
-0.020953185856342316,
0.03705180063843727,
0.02730696275830269,
-0.018508052453398705,
0.029859183356165886,
0.021649247035384178,
0.042763061821460724,
-0.002313506556674838,
0.012930650264024734,
0.005729108117520809,
-0.04272736608982086,
0.017597820609807968,
-0.045690082013607025,
-0.01615215837955475,
-0.008901534602046013,
0.0032638960983604193,
-0.01018210593611002,
-0.039050742983818054,
-0.03491007909178734,
-0.00864720530807972,
0.0076120393350720406,
-0.019489675760269165,
0.004125047009438276,
0.03207229822874069,
-0.05854041874408722,
0.02198835276067257,
-0.017803069204092026,
-0.078387051820755,
0.02393374964594841,
0.026557359844446182,
-0.03687332570552826,
-0.04126385599374771,
-0.02621825411915779,
0.018383119255304337,
0.0018661989597603679,
0.07303274422883987,
0.05229372903704643,
-0.0037011643871665,
-0.016803598031401634,
-0.009744837880134583,
-0.01781199313700199,
-0.04015729948878288,
-0.036480676382780075,
0.01972169615328312,
-0.02571851946413517,
0.03480299189686775,
0.008441956713795662,
0.030341070145368576,
-0.0038506388664245605,
0.030269680544734,
0.011279739439487457,
-0.003721243003383279,
-0.06892777234315872,
-0.02375527285039425,
-0.032928984612226486,
0.015661347657442093,
0.0014043899718672037,
-0.0504375696182251,
0.02036421187222004,
0.025486499071121216,
0.04333418980240822,
0.04529743269085884,
-0.018168946728110313,
0.052793461829423904,
-0.058647505939006805,
-0.02473689615726471,
0.03833683580160141,
-0.00854458101093769,
0.01988232508301735,
-0.046689555048942566,
0.04144233465194702,
-0.08445525914430618,
0.0754600241780281,
0.010280268266797066,
-0.04072842374444008,
0.016625121235847473,
-0.030180441215634346,
-0.017562124878168106,
0.006487634964287281,
0.011993646621704102,
-0.0543997548520565,
0.03171534091234207,
-0.029680706560611725,
0.02152431197464466,
0.01683036983013153,
0.05254359543323517,
-0.021131662651896477,
-0.03280405327677727,
-0.03464236482977867,
0.03819405287504196,
-0.014126445166766644,
0.03698040917515755,
0.03057309053838253,
-0.07296135276556015,
0.05257929116487503,
0.026325341314077377,
-0.019775239750742912,
-0.018525900319218636,
-0.008250094018876553,
0.021934809163212776,
-0.02443348616361618,
-0.05811207368969917,
0.004943809937685728,
0.015420403331518173,
0.012859259732067585,
-0.01203826628625393,
-0.04851001873612404,
-0.021435074508190155,
-0.0184188149869442,
-0.014768962748348713,
-0.03847961500287056,
0.051365647464990616,
0.0344281904399395,
0.016580503433942795,
-0.038086969405412674,
-0.020810404792428017,
-0.05229372903704643,
0.05382863059639931,
-0.014501246623694897,
0.0424061082303524,
-0.0001957668282557279,
0.020917491987347603,
0.015027754008769989,
0.03499931842088699,
-0.07228314131498337,
-0.011833017691969872,
0.03023398481309414,
0.0546853169798851,
0.030162593349814415,
-0.014670800417661667,
0.0501520037651062,
-0.007045375183224678,
0.004796566441655159,
0.07717340439558029,
0.018490204587578773,
0.004912576172500849,
-0.03980034589767456,
0.012930650264024734,
-0.02800302393734455,
-0.01825818605720997,
0.010066096670925617,
-0.0053275348618626595,
-0.02671799063682556,
-0.006643801927566528,
0.010967404581606388,
0.051544126123189926,
-0.048438627272844315,
0.05222233757376671,
0.01478680968284607,
0.03769432008266449,
-0.08474082499742508,
0.021274445578455925,
-0.02650381810963154,
-0.06343068182468414,
0.038765180855989456,
0.011868713423609734,
0.010146411135792732,
-0.042620278894901276,
-0.015804128721356392,
-0.026967857033014297,
0.03476729616522789,
0.016294939443469048,
-0.016803598031401634,
0.011181577108800411,
0.028734778985381126,
0.006982908118516207,
-0.0294665340334177,
-0.038443922996520996,
-0.008660591207444668,
0.0023112755734473467,
-0.05582756921648979,
0.0021138356532901525,
0.08823896944522858,
-0.033892761915922165,
-0.012734325602650642,
-0.032429251819849014,
0.05400710552930832,
0.025343718007206917,
-0.01975739188492298,
0.031465474516153336,
-0.030126897618174553,
0.015027754008769989,
0.015241926535964012,
0.05843333154916763,
0.035159945487976074,
0.021560007706284523,
-0.019489675760269165,
0.024219313636422157,
0.003658776171505451,
-0.04369114339351654,
-0.05332889407873154,
0.0026570747140794992,
0.025593586266040802,
-0.0009799496037885547,
0.020631927996873856,
-0.015349011868238449,
-0.0214886162430048,
-0.06675035506486893,
0.025343718007206917,
0.014197836630046368,
-0.0016743362648412585,
0.008964001201093197,
-0.030483853071928024,
-0.027913784608244896,
0.006733040325343609,
-0.014001511968672276,
-0.0362665019929409,
0.042156241834163666,
-0.015697041526436806,
0.06585796922445297,
0.0517582967877388,
0.020649775862693787,
0.1424245536327362,
0.018240338191390038,
-0.011663464829325676,
-0.031608257442712784,
0.017767373472452164,
-0.06368055194616318,
-0.005720184184610844,
0.01699099875986576,
0.02377312071621418,
0.03512424975633621,
0.043905314058065414,
-0.00904877856373787,
-0.061538830399513245,
0.01813325099647045,
-0.019186265766620636,
0.0016564886318519711,
0.003317439230158925,
-0.05414988845586777,
0.02862769179046154,
0.018347423523664474,
0.050687436014413834,
0.024826135486364365,
0.01424245536327362,
-0.052971940487623215,
-0.018632987514138222,
0.010324887931346893,
-0.03280405327677727,
0.009191559627652168,
0.04272736608982086,
0.0054613929241895676,
-0.02023927867412567,
-0.038265444338321686,
-0.08252771198749542,
-0.018793616443872452,
-0.10044679045677185,
-0.005229372996836901,
-0.008241170085966587,
0.02671799063682556,
-0.016375254839658737,
-0.008830144070088863,
-0.024058684706687927,
0.029002493247389793,
0.04790319502353668,
0.031608257442712784,
-0.022720107808709145,
-0.04426226764917374,
0.047617632895708084,
0.05061604455113411,
0.07131936401128769,
0.06296664476394653,
-0.04540451988577843,
0.06575088202953339,
0.020667623728513718,
0.027467593550682068,
0.009816228412091732,
-0.010655069723725319,
0.023166300728917122,
-0.03155471384525299,
-0.03448173403739929,
0.0018148868111893535,
-0.05664856359362602,
-0.03348226472735405,
0.0027217725291848183,
0.03191166743636131,
-0.009584208950400352,
0.03316100686788559,
-0.005965590011328459,
-0.03446388617157936,
0.02684292383491993,
-0.10173182189464569,
0.03300037607550621,
-0.12050759047269821,
-0.0074157146736979485,
0.017928002402186394,
-0.005617559887468815,
0.004145125858485699,
0.07781592011451721,
0.012573696672916412,
0.002628072164952755,
-0.07610254734754562,
0.006893669720739126,
-0.003977803513407707,
0.016402026638388634,
0.023201994597911835,
0.010708613321185112,
0.03812266141176224,
-0.06021810322999954,
0.026485970243811607,
-0.014742190949618816,
0.02877047471702099,
0.08081433176994324,
0.003283974714577198,
-0.09109460562467575,
0.02557573840022087,
-0.06835664808750153,
-0.01351962424814701,
-0.05422127991914749,
0.016642969101667404,
0.07560280710458755,
-0.04804597795009613,
-0.0344281904399395,
0.029823487624526024,
-0.012671859003603458,
0.013144822791218758,
-0.05547061562538147,
0.008107312954962254,
-0.0059031229466199875,
0.04272736608982086,
-0.02023927867412567,
-0.07624532282352448,
0.010289192199707031,
-0.0064474777318537235,
-0.03180458024144173,
0.00849549937993288,
-0.05197247117757797,
0.004850109573453665,
0.028235044330358505,
-0.07695923000574112,
-0.014804657548666,
-0.0378727950155735,
0.039050742983818054,
-0.05914723873138428,
-0.06182439252734184,
0.0008611509692855179,
-0.013707024976611137,
0.004343681037425995,
0.02976994402706623,
0.020114345476031303,
-0.0546853169798851,
-0.05807637795805931,
0.09130877256393433,
-0.0063002342358231544,
0.023987293243408203,
0.026253949850797653,
-0.011672388762235641,
-0.04922392591834068,
0.06118187680840492,
0.0019967101980000734,
-0.005889737047255039,
-0.013242985121905804,
-0.013278679922223091,
0.028235044330358505,
-0.08459804207086563,
-0.06607214361429214,
0.024379942566156387,
0.0006871360237710178,
0.02687861956655979,
0.01907917857170105,
0.04119246453046799,
0.01703561842441559,
0.03837253153324127,
0.03708749637007713,
-0.010155335068702698,
-0.032911136746406555,
-0.007014141418039799,
0.004167435225099325,
-0.015697041526436806,
0.024487029761075974,
-0.040835510939359665,
0.03698040917515755,
-0.0885959267616272,
0.004363759886473417,
-0.009254026226699352,
-0.011244043707847595,
0.004662708844989538,
-0.0014557021204382181,
-0.012082885019481182,
0.03496362268924713,
0.0014690879033878446,
0.00938788428902626,
0.10194599628448486,
0.01789230853319168,
-0.027128485962748528,
-0.025932691991329193,
0.014608332887291908,
0.0008293598075397313,
-0.020810404792428017,
0.060396578162908554,
-0.011609921231865883,
-0.003928722348064184,
-0.0491168387234211,
-0.02102457731962204,
0.0621456503868103,
-0.0018929705256596208,
0.023666035383939743,
-0.063466377556324,
-0.018882853910326958,
0.004236595239490271,
0.04315571114420891,
-0.034838687628507614,
-0.03182242810726166,
0.04087120667099953,
0.03801557794213295,
-0.02280934527516365,
0.052793461829423904,
-0.003413370344787836,
0.024629810824990273,
0.0008293598075397313,
-0.038872264325618744,
0.03394630551338196,
0.058469027280807495,
0.0009303107508458197,
0.010940632782876492,
-0.07067684829235077,
0.0070542991161346436,
0.004386069718748331,
-0.008227784186601639,
-0.006884745787829161,
0.05354306474328041,
-0.03894365578889847,
-0.03926491364836693,
-0.07324691116809845,
0.03990743309259415,
0.017883384600281715,
-0.027931632474064827,
0.021560007706284523,
-0.031126368790864944,
-0.03740875422954559,
0.013528548181056976,
-0.027699612081050873,
-0.009816228412091732,
0.023737426847219467,
0.008477652445435524,
0.035481203347444534,
0.010048248805105686,
0.010101791471242905,
0.026414578780531883,
0.026610903441905975,
0.05472101271152496,
0.04090690240263939,
0.03439249470829964,
0.03562398627400398,
0.011154805310070515,
-0.05661286786198616,
-0.0001263978920178488,
-0.01235952414572239,
-0.06182439252734184,
-0.051508430391550064,
-0.04097829386591911,
0.043084319680929184,
0.042120546102523804,
0.029948420822620392,
-0.06418028473854065,
-0.022363154217600822,
0.0068892077542841434,
0.03951478376984596,
0.0184188149869442,
0.06332360208034515,
0.05550631135702133,
0.004912576172500849,
0.006492096930742264,
-0.02914527617394924,
-0.01809755712747574,
0.009035392664372921,
-0.04033577814698219,
0.002141722710803151,
-0.08759645372629166,
-0.038086969405412674,
-0.010663993656635284,
0.05532783642411232,
0.03962186723947525,
0.017704907804727554,
-0.023077061399817467,
0.060432273894548416,
-0.021702788770198822,
-0.029645010828971863,
0.00953066535294056,
0.008620433509349823,
-0.008424108847975731,
-0.013671329244971275,
-0.030483853071928024,
-0.054970882833004,
0.0682852566242218,
-0.009289721958339214,
0.031144216656684875,
-0.026771532371640205,
-0.020756861194968224,
0.07221174985170364,
-0.06782121956348419,
0.024487029761075974,
-0.058326248079538345,
-0.042620278894901276,
-0.014608332887291908,
-0.05953988805413246,
0.04351266473531723,
-0.006572411395609379,
0.0184188149869442,
0.032429251819849014,
-0.00731309037655592,
0.03212583810091019,
0.018329575657844543,
0.008870300836861134,
-0.00469394214451313,
-0.010547984391450882,
0.006407320033758879,
-0.022077590227127075,
0.024665506556630135,
0.009468198753893375,
0.009593132883310318,
-0.0012917264830321074,
0.012413067743182182,
-0.01270755473524332,
0.005189215298742056,
0.006951674818992615,
0.0268250759691,
0.05725538358092308,
0.009718066081404686,
0.03135838732123375,
-0.014992058277130127,
0.01877576857805252,
0.03234001249074936,
-0.046189818531274796,
0.1155102401971817,
-0.04158511385321617,
-0.004729637410491705,
-0.006273462437093258,
-0.0028533991426229477,
0.006371624767780304,
-0.017865536734461784,
-0.006947212852537632,
0.003971110563725233,
-0.021774180233478546,
0.005157981999218464,
0.008566890843212605,
0.059290021657943726,
0.00772804906591773,
-0.020132193341851234,
0.006108371540904045,
0.01703561842441559,
0.06642909348011017,
-0.020774709060788155,
-0.010717537254095078,
0.04661816358566284,
0.012243514880537987,
0.05090160667896271,
-0.009744837880134583,
-0.009682371281087399,
-0.03007335588335991,
0.002507600234821439,
-0.021220901980996132,
-0.03797988221049309,
-0.03151901811361313,
-0.039407696574926376,
-0.04386961832642555,
-0.020631927996873856,
-0.012502306140959263,
0.0074647958390414715,
-0.04076411947607994,
0.056398697197437286,
0.02168494090437889,
-0.003219276899471879,
0.06617923080921173,
-0.06953459233045578,
-0.025361565873026848,
0.00018893451488111168,
0.02004295401275158,
0.015241926535964012,
-0.03926491364836693,
0.07852982729673386,
0.005501550156623125,
-0.0007155807688832283,
-0.00005605289697996341,
0.04804597795009613,
-0.07974347472190857,
0.030644482001662254,
0.00343568017706275,
-0.0009035392431542277,
-0.016098614782094955,
-0.010048248805105686,
0.04411948472261429,
-0.02375527285039425,
0.015081296674907207,
-0.031322695314884186,
-0.0445835255086422,
-0.0007819518796168268,
-0.01130651030689478,
-0.01861513964831829,
0.001156753278337419,
0.03819405287504196,
-0.0397646501660347,
-0.033053919672966,
0.019793087616562843,
-0.04640398919582367,
0.03715888783335686,
0.036480676382780075,
-0.062038566917181015,
0.0034446038771420717,
-0.015902290120720863,
-0.02263086847960949,
-0.042156241834163666,
0.06296664476394653,
-0.03915783017873764,
0.06935612112283707,
-0.03605233132839203,
0.009967934340238571,
-0.021774180233478546,
0.008629357442259789,
-0.014349541626870632,
-0.001991132739931345,
-0.0498664416372776,
-0.07031989097595215,
-0.04643968492746353,
-0.002556681400164962,
-0.06335929781198502,
0.007330938242375851,
0.02700355276465416,
-0.005693412851542234,
0.04251319542527199,
0.035481203347444534,
0.003553920891135931,
0.0012214512098580599,
0.019864477217197418,
-0.009378960356116295,
-0.0034535278100520372,
-0.042691670358181,
0.008589199744164944,
-0.01859729178249836,
-0.00037033954868093133,
0.00954851321876049,
-0.05579187348484993,
-0.01723194308578968,
-0.0009983550990000367,
0.03862239792943001,
-0.004272290505468845,
0.023541102185845375,
0.012912802398204803,
-0.005760341417044401,
-0.015429327264428139,
-0.0725330039858818,
0.020007258281111717,
0.020774709060788155,
-0.028110109269618988,
-0.0053275348618626595,
-0.008129621855914593,
-0.029020341113209724,
0.03708749637007713,
-0.019346894696354866,
0.049580879509449005,
-0.06496558338403702,
-0.027128485962748528,
0.01617000624537468,
0.013403614051640034,
0.029056036844849586,
0.060075320303440094,
0.015973681584000587,
-0.04126385599374771,
-0.06503697484731674,
0.05240081250667572,
-0.008709671907126904,
0.042156241834163666,
-0.04954518377780914,
-0.029966268688440323,
0.03594524413347244,
0.04194206744432449,
0.05111578106880188,
-0.0006531138787977397,
0.023808816447854042,
0.015268697403371334,
-0.014233531430363655,
0.03669484704732895,
-0.04447643831372261,
-0.06100339815020561,
-0.06178869679570198,
0.061860088258981705,
0.05711260437965393,
-0.017910156399011612,
0.03851531073451042,
0.02218467742204666,
0.012065037153661251,
-0.07781592011451721,
-0.04015729948878288,
-0.01697315275669098,
-0.011038795113563538,
0.04076411947607994,
0.0019331277580931783,
-0.0003653198655229062,
0.0007680083508603275,
-0.06296664476394653,
0.04037147015333176,
-0.02634318917989731,
0.010628298856317997,
0.02279149927198887,
0.027485441416502,
0.029056036844849586,
-0.025932691991329193,
-0.02702140063047409,
-0.021702788770198822,
0.04768902435898781,
-0.0034267562441527843,
-0.041156768798828125,
-0.01181516982614994,
-0.05414988845586777,
0.05771942436695099,
0.035320576280355453,
0.037301670759916306,
-0.0024741359520703554,
-0.02714633382856846,
-0.030126897618174553
] |
10,014
|
torch.nn.modules.module
|
_get_backward_hooks
|
Return the backward hooks for use in the call function.
It returns two lists, one with the full backward hooks and one with the non-full
backward hooks.
|
def _get_backward_hooks(self):
r"""Return the backward hooks for use in the call function.
It returns two lists, one with the full backward hooks and one with the non-full
backward hooks.
"""
full_backward_hooks: List[Callable] = []
if (_global_is_full_backward_hook is True):
full_backward_hooks += _global_backward_hooks.values()
if (self._is_full_backward_hook is True):
full_backward_hooks += self._backward_hooks.values()
non_full_backward_hooks: List[Callable] = []
if (_global_is_full_backward_hook is False):
non_full_backward_hooks += _global_backward_hooks.values()
if (self._is_full_backward_hook is False):
non_full_backward_hooks += self._backward_hooks.values()
return full_backward_hooks, non_full_backward_hooks
|
(self)
|
[
-0.027636893093585968,
-0.008953524753451347,
-0.05554980784654617,
0.044646866619586945,
-0.04933927208185196,
-0.012274437583982944,
-0.03236380219459534,
0.020615534856915474,
0.02906876616179943,
-0.046095989644527435,
0.009583204984664917,
-0.04768312722444534,
-0.03488251939415932,
-0.053514134138822556,
-0.02372080273926258,
0.0267398152500391,
-0.03988545387983322,
0.01654418185353279,
0.0232895165681839,
-0.061001282185316086,
-0.007025670725852251,
0.0084963608533144,
0.011739641427993774,
0.00018019723938778043,
-0.0008976167882792652,
0.03239830583333969,
-0.03234655037522316,
-0.026463791728019714,
0.048097163438797,
0.04285271093249321,
-0.061139293015003204,
-0.04568195343017578,
0.016328537836670876,
-0.057930514216423035,
0.0036745681427419186,
-0.03695270046591759,
0.04768312722444534,
0.07128316909074783,
-0.05979367718100548,
-0.02070179209113121,
0.05713694542646408,
-0.06752234697341919,
0.005947452504187822,
0.03298485651612282,
0.025911742821335793,
-0.010109375230967999,
-0.032191287726163864,
0.004379722755402327,
0.00827640388160944,
-0.02132284641265869,
0.04161060228943825,
-0.08191008865833282,
0.06200186908245087,
0.026826072484254837,
0.025256186723709106,
-0.02171963080763817,
0.010808060877025127,
0.004379722755402327,
-0.025221683084964752,
0.03912638872861862,
0.026274023577570915,
0.009971363469958305,
0.01029051560908556,
-0.010695925913751125,
0.06790187954902649,
0.014241107739508152,
-0.007780423387885094,
-0.021667875349521637,
-0.0267398152500391,
0.061518825590610504,
-0.0633474811911583,
0.006973916199058294,
-0.008000380359590054,
-0.02485940232872963,
-0.012645344249904156,
-0.05406618118286133,
0.035331059247255325,
0.0015515561681240797,
-0.042059142142534256,
0.00445519806817174,
-0.022375186905264854,
0.02637753263115883,
-0.03410620242357254,
0.06320947408676147,
0.03286409378051758,
-0.0420246385037899,
0.019287168979644775,
0.00019421408069320023,
0.013068006373941898,
0.01825208030641079,
-0.09453818202018738,
-0.05627437308430672,
0.020236002281308174,
0.016664942726492882,
0.014767277985811234,
-0.053962670266628265,
-0.03695270046591759,
0.026032503694295883,
0.007327571976929903,
-0.034382227808237076,
-0.006171721965074539,
-0.010609668679535389,
-0.006111341528594494,
0.03157023340463638,
0.056101854890584946,
-0.02944829873740673,
-0.034951526671648026,
-0.055791329592466354,
-0.026946833357214928,
-0.05123693495988846,
-0.01460338942706585,
-0.06331297755241394,
0.04412931948900223,
0.01182589866220951,
0.003316599642857909,
0.009393437765538692,
-0.02761964127421379,
-0.006266605108976364,
0.03985095024108887,
0.022254426032304764,
-0.0033273817971348763,
-0.0156643558293581,
-0.018424594774842262,
-0.008453232236206532,
0.0026437912601977587,
0.033002108335494995,
0.024893904104828835,
0.06476210802793503,
0.02887899987399578,
0.024686887860298157,
0.020598283037543297,
0.009048407897353172,
-0.09205397218465805,
-0.0012906274059787393,
-0.0010270029306411743,
-0.022892732173204422,
0.041507091373205185,
0.023548288270831108,
-0.014646518044173717,
0.0057835630141198635,
-0.009117414243519306,
-0.005067626014351845,
0.021909397095441818,
0.03691819682717323,
-0.04254218190908432,
0.0641065463423729,
0.021788636222481728,
0.02775765210390091,
0.013378533534705639,
0.004133888985961676,
0.01180002186447382,
-0.003387762000784278,
-0.0786668136715889,
-0.01592312753200531,
-0.03320912644267082,
0.031880758702754974,
-0.04833868518471718,
0.027481628581881523,
-0.006137218791991472,
-0.03125970438122749,
-0.03462374582886696,
-0.00871200393885374,
-0.08080599457025528,
-0.07673463970422745,
0.05379015579819679,
-0.008004693314433098,
0.05772349610924721,
-0.027153851464390755,
0.02637753263115883,
0.07597557455301285,
-0.023962324485182762,
0.02868923358619213,
0.005339337047189474,
0.0870165303349495,
-0.005680054426193237,
0.025566713884472847,
-0.01832108572125435,
-0.008220336399972439,
0.006568505894392729,
0.04512990638613701,
0.03726322576403618,
0.00476572522893548,
-0.05513577163219452,
-0.08349722623825073,
-0.0002713066933210939,
-0.012377946637570858,
0.01731187291443348,
0.0007472052820958197,
-0.015595350414514542,
0.0534796305000782,
-0.020166995003819466,
-0.018855882808566093,
0.10647621750831604,
-0.0023418902419507504,
0.00040891431854106486,
0.026774317026138306,
-0.022306181490421295,
0.07625160366296768,
0.024686887860298157,
-0.06034572422504425,
0.007612221408635378,
-0.040437500923871994,
-0.0020216593984514475,
0.008647311478853226,
-0.03443397954106331,
0.02025325410068035,
0.016639064997434616,
0.008362661115825176,
-0.04416382312774658,
-0.005740434397011995,
0.03510678932070732,
-0.013499293476343155,
-0.03013835847377777,
0.007444019429385662,
-0.021547114476561546,
-0.01844184659421444,
0.07418142259120941,
0.04706207290291786,
-0.028620228171348572,
0.052513547241687775,
0.03695270046591759,
-0.05265155807137489,
0.008513611741364002,
0.0027537697460502386,
-0.03151847794651985,
0.05758548527956009,
0.02429010346531868,
0.03234655037522316,
0.019356176257133484,
-0.04399130865931511,
0.026722563430666924,
0.04951178655028343,
-0.06141531839966774,
-0.006348549388349056,
0.06351999938488007,
-0.0023203259333968163,
-0.0071076154708862305,
-0.0028163061942905188,
0.07666563987731934,
0.01167063508182764,
0.05586033686995506,
0.0431632362306118,
0.04761412367224693,
0.06659076362848282,
0.046095989644527435,
-0.01939067803323269,
0.036711178719997406,
-0.023186007514595985,
-0.004670841619372368,
0.016449298709630966,
-0.019425181671977043,
-0.00025836806162260473,
0.004713970702141523,
0.013171515427529812,
-0.027136599645018578,
-0.038229309022426605,
0.009652210399508476,
-0.018786875531077385,
0.021857641637325287,
0.01336990762501955,
0.057481974363327026,
0.06527964770793915,
-0.02277197130024433,
0.018924888223409653,
-0.02259945683181286,
-0.017717283219099045,
0.06624573469161987,
-0.027705898508429527,
-0.025411449372768402,
0.09998965263366699,
0.08763758838176727,
-0.0810130164027214,
-0.06897146999835968,
0.005809440277516842,
-0.05009833723306656,
-0.009091537445783615,
0.026843324303627014,
0.01958044432103634,
0.005848256405442953,
-0.048235174268484116,
0.054514721035957336,
-0.03771176561713219,
-0.0156643558293581,
0.022616708651185036,
0.026084257289767265,
-0.011178967542946339,
-0.031173449009656906,
-0.03719421848654747,
0.03881585970520973,
-0.015655729919672012,
0.07749370485544205,
-0.0022577892523258924,
0.058241043239831924,
0.01387020107358694,
0.04875272139906883,
0.016561433672904968,
0.009272677823901176,
-0.0381603017449379,
0.09612531960010529,
-0.001372571918182075,
0.010557914152741432,
-0.024014078080654144,
0.023703552782535553,
0.0439223013818264,
0.004670841619372368,
-0.0439223013818264,
0.05920712649822235,
-0.030880173668265343,
-0.011998414061963558,
-0.03393368795514107,
-0.033640410751104355,
-0.04192112758755684,
0.03241555765271187,
-0.023358521983027458,
-0.029103269800543785,
-0.03574509546160698,
0.007720043417066336,
0.0012927837669849396,
-0.04002346470952034,
0.056101854890584946,
-0.027033090591430664,
0.008289342746138573,
0.06307145953178406,
0.0679708868265152,
0.051754482090473175,
0.009548701345920563,
0.005809440277516842,
-0.006637512240558863,
0.03660766780376434,
-0.019545942544937134,
-0.06973053514957428,
-0.05192699655890465,
0.012076045386493206,
0.05372115224599838,
0.01378394290804863,
0.01977021060883999,
-0.0035861541982740164,
-0.005447159055620432,
0.03241555765271187,
-0.0469585657119751,
0.007534589618444443,
-0.005007246043533087,
-0.04630300775170326,
-0.0003347868041601032,
0.007331884931772947,
0.02894800528883934,
-0.012007039040327072,
0.07300832122564316,
0.05047786980867386,
0.03919539228081703,
0.02963806502521038,
-0.05986268073320389,
-0.08273816108703613,
0.046544529497623444,
0.011239347979426384,
-0.03733223304152489,
-0.05896560475230217,
-0.028861748054623604,
0.06952352076768875,
0.019735708832740784,
0.026964083313941956,
0.024324605241417885,
-0.03524480015039444,
0.07576856017112732,
0.037608254700899124,
-0.023634545505046844,
0.025152677670121193,
0.019839217886328697,
-0.04154159501194954,
-0.043818794190883636,
0.01267984788864851,
-0.017156610265374184,
0.05720595270395279,
0.004280526656657457,
-0.04416382312774658,
-0.02240969054400921,
0.06790187954902649,
0.021616121754050255,
0.03301936015486717,
0.011308354325592518,
-0.007556153926998377,
-0.0208225529640913,
-0.059931688010692596,
0.006490874569863081,
0.04840768873691559,
0.029965844005346298,
-0.03871235251426697,
-0.02008073776960373,
0.0779077410697937,
-0.006128592882305384,
0.04271469637751579,
-0.02265121042728424,
-0.06376151740550995,
-0.007543215528130531,
-0.02334127016365528,
0.0006560958572663367,
0.056412383913993835,
0.010902944020926952,
0.04447434842586517,
-0.044681366533041,
0.01725149340927601,
0.04875272139906883,
-0.01698409579694271,
0.00944519229233265,
-0.004571645986288786,
0.038470830768346786,
-0.01255046110600233,
0.11593003571033478,
-0.01686333492398262,
-0.005787875968962908,
-0.03265707567334175,
-0.01044577918946743,
-0.07687265425920486,
-0.03519304841756821,
-0.007797675207257271,
0.011567126028239727,
-0.041679609566926956,
0.026843324303627014,
0.003754356177523732,
0.013482041656970978,
0.03070765919983387,
-0.01660456322133541,
0.018717870116233826,
-0.00693510053679347,
-0.03374392166733742,
0.061760347336530685,
-0.06400304287672043,
0.016535555943846703,
-0.051133427768945694,
0.061518825590610504,
0.04019597917795181,
-0.051443953067064285,
-0.004856295417994261,
-0.05109892413020134,
-0.02706759236752987,
0.0037478869780898094,
0.013162889517843723,
0.0313287116587162,
0.03864334523677826,
0.01705310121178627,
-0.038608841598033905,
0.020753545686602592,
0.01794155314564705,
-0.007444019429385662,
0.00356243341229856,
-0.017648277804255486,
-0.04299072176218033,
-0.0024518684949725866,
0.051754482090473175,
-0.0144136231392622,
-0.06231239438056946,
0.015431460924446583,
0.03567608818411827,
0.02246144413948059,
0.022254426032304764,
-0.017889799550175667,
-0.09453818202018738,
-0.01806231401860714,
-0.014715523459017277,
0.03446848317980766,
-0.00748714804649353,
-0.007909810170531273,
-0.0267398152500391,
0.03289859741926193,
-0.02416934259235859,
-0.042197152972221375,
0.059172622859478,
-0.055791329592466354,
-0.07376738637685776,
0.012326192110776901,
0.0029004074167460203,
-0.03348514810204506,
0.013827071525156498,
-0.04033399000763893,
-0.013335403986275196,
0.0031591798178851604,
-0.0021111515816301107,
-0.029224030673503876,
0.0322430394589901,
-0.1015767902135849,
-0.053341615945100784,
-0.03153572976589203,
-0.05996619164943695,
0.009747093543410301,
-0.01359417662024498,
-0.034520238637924194,
-0.05168547481298447,
-0.0016928027616813779,
-0.01744125969707966,
-0.005973329767584801,
-0.024445366114377975,
-0.016000760719180107,
0.011610254645347595,
-0.024824898689985275,
-0.014206605032086372,
-0.006991167552769184,
0.043956805020570755,
-0.0052142636850476265,
0.06310596317052841,
0.03324362635612488,
0.025652971118688583,
-0.02956905961036682,
-0.016785703599452972,
0.002520874375477433,
-0.004252492915838957,
-0.05520477890968323,
0.014189353212714195,
-0.018269332125782967,
-0.021064072847366333,
-0.006534003186970949,
0.014103095978498459,
-0.022064659744501114,
0.026912329718470573,
0.0212020855396986,
-0.042507678270339966,
-0.06234689801931381,
0.024704137817025185,
0.0035085224080830812,
0.038988374173641205,
0.04499189555644989,
-0.021478109061717987,
0.023962324485182762,
-0.012446952052414417,
-0.054031677544116974,
0.03995445743203163,
-0.016268158331513405,
-0.051133427768945694,
0.002389331813901663,
-0.01201566495001316,
-0.056101854890584946,
0.029931340366601944,
0.008125453256070614,
0.03372666984796524,
-0.007271504495292902,
-0.011920781806111336,
0.006413242779672146,
0.0022664149291813374,
0.001693881000392139,
-0.06938550621271133,
-0.03978194296360016,
0.029293036088347435,
0.014456751756370068,
-0.00005889767635380849,
0.01806231401860714,
0.005395404528826475,
-0.06255391240119934,
-0.050443366169929504,
0.012326192110776901,
-0.01870061829686165,
-0.0005531259812414646,
-0.03916088864207268,
0.006857468746602535,
0.0033273817971348763,
-0.02346203103661537,
-0.02416934259235859,
-0.023996828123927116,
0.022185420617461205,
0.06376151740550995,
-0.017191113904118538,
-0.009617707692086697,
-0.06089777126908302,
-0.009203671477735043,
-0.04726909101009369,
-0.015647104009985924,
-0.05865507945418358,
0.005921575240790844,
0.06179485097527504,
0.04933927208185196,
-0.01994272693991661,
0.01359417662024498,
0.0014545165468007326,
0.029655316844582558,
-0.016268158331513405,
-0.05372115224599838,
0.0328468419611454,
0.008147018030285835,
0.023393025621771812,
-0.059690166264772415,
0.011653384193778038,
-0.03258807212114334,
0.019735708832740784,
-0.02429010346531868,
-0.010877066291868687,
-0.0020518493838608265,
0.0034459857270121574,
0.011334231123328209,
-0.0016237967647612095,
0.06027671694755554,
0.0232895165681839,
-0.010316393338143826,
-0.02504916861653328,
0.0424041710793972,
0.0114549919962883,
-0.06472760438919067,
0.00641755573451519,
0.01550909224897623,
-0.053893666714429855,
0.047855641692876816,
-0.03510678932070732,
-0.008470483124256134,
0.045785464346408844,
0.007849429734051228,
0.04668254032731056,
-0.04443984851241112,
-0.025394197553396225,
-0.024152090772986412,
0.007215437013655901,
-0.027774903923273087,
-0.04909775033593178,
-0.005611048080027103,
-0.031190700829029083,
-0.03008660487830639,
0.034140706062316895,
-0.019476935267448425,
0.022116415202617645,
-0.020736295729875565,
0.010350896045565605,
0.04637201502919197,
-0.004899424035102129,
0.06928199529647827,
-0.011342857033014297,
0.009005279280245304,
0.01698409579694271,
0.05058137699961662,
-0.012317566201090813,
-0.036021117120981216,
0.016751199960708618,
-0.04530242085456848,
0.04192112758755684,
0.0461995005607605,
-0.019545942544937134,
0.016259532421827316,
0.0584135577082634,
-0.023565540090203285,
-0.003894524648785591,
0.02813718654215336,
0.02918952703475952,
-0.020563779398798943,
0.030155610293149948,
-0.014189353212714195,
-0.011998414061963558,
0.04412931948900223,
0.0431632362306118,
-0.024531623348593712,
-0.008919022046029568,
0.02856847271323204,
-0.015828244388103485,
-0.007198185659945011,
0.07549253851175308,
-0.028620228171348572,
-0.019718457013368607,
0.011653384193778038,
-0.007870993576943874,
0.010325019247829914,
-0.09074285626411438,
0.010195632465183735,
0.020115241408348083,
0.024462617933750153,
0.03971293941140175,
-0.058620575815439224,
-0.018407342955470085,
-0.0015278353821486235,
-0.0006938335136510432,
0.021478109061717987,
-0.026843324303627014,
0.028430461883544922,
0.03234655037522316,
0.03405444696545601,
0.023772558197379112,
-0.03905738145112991,
0.033950939774513245,
-0.01830383390188217,
-0.029672568663954735,
-0.01736362837255001,
-0.025773731991648674,
-0.004136045463383198,
-0.016216404736042023,
0.06755685061216354,
0.042438674718141556,
-0.023393025621771812,
-0.0051538837142288685,
0.0324673093855381,
-0.062277890741825104,
0.03127695620059967,
0.02832695282995701,
0.058931101113557816,
0.034002695232629776,
0.06555567681789398,
-0.007707104552537203,
0.015250320546329021,
-0.023013493046164513,
-0.0002830323064699769,
0.047855641692876816,
-0.0017197582637891173,
0.013240520842373371,
-0.015440086834132671,
-0.010989201255142689,
-0.089362733066082,
0.032950352877378464,
-0.05230652913451195,
0.02510092221200466,
-0.008198772557079792,
-0.04519891366362572,
-0.00871200393885374,
0.0064434329979121685,
0.016535555943846703,
0.029810581356287003,
-0.06362351030111313,
-0.04637201502919197,
0.014655143953859806,
-0.015112307853996754,
-0.04223165661096573,
0.029534555971622467,
-0.03912638872861862,
-0.0011493806960061193,
-0.08646448701620102,
-0.03916088864207268,
-0.019856469705700874,
-0.005731808487325907,
0.04171410948038101,
0.008483421988785267,
0.03688369318842888,
0.025256186723709106,
0.010816686786711216,
0.05247904360294342,
0.008039196021854877,
0.016078392043709755,
-0.008668875321745872,
-0.06155332922935486,
-0.016768451780080795,
0.0020992911886423826,
-0.027705898508429527,
0.011351482942700386,
0.061001282185316086,
0.031621988862752914,
-0.04412931948900223,
0.02818894013762474,
0.000015179292859102134,
-0.012610841542482376,
-0.01794155314564705,
0.029293036088347435,
-0.030431633815169334,
-0.010540662333369255,
0.06862644106149673,
-0.0018480662256479263,
0.0018577701412141323,
-0.009402063675224781,
-0.042956218123435974,
-0.01283511146903038,
-0.058241043239831924,
0.02718835324048996,
0.036469656974077225,
-0.012576338835060596,
-0.05058137699961662,
0.04268019646406174,
-0.0004606687871273607,
0.022806474938988686,
-0.024065833538770676,
-0.043197739869356155,
-0.051512960344552994,
0.0033381639514118433,
0.014120347797870636,
-0.010264638811349869,
0.002650260692462325,
0.04512990638613701,
-0.003551651258021593,
-0.03274333477020264,
0.01863161288201809
] |
10,015
|
torch.nn.modules.module
|
_get_backward_pre_hooks
| null |
def _get_backward_pre_hooks(self):
backward_pre_hooks: List[Callable] = []
backward_pre_hooks += _global_backward_pre_hooks.values()
backward_pre_hooks += self._backward_pre_hooks.values()
return backward_pre_hooks
|
(self)
|
[
-0.05773991346359253,
0.009524648077785969,
-0.06446114182472229,
0.03886474296450615,
-0.049556028097867966,
0.015340428799390793,
-0.014739696867763996,
0.015453610569238663,
0.06662029772996902,
-0.014687459915876389,
0.022584035992622375,
-0.049730151891708374,
-0.02357655018568039,
-0.023315362632274628,
-0.016550598666071892,
-0.002372455783188343,
-0.026641152799129486,
0.023750675842165947,
0.015880217775702477,
-0.08608749508857727,
-0.02563122846186161,
-0.011614150367677212,
0.008867325261235237,
0.0025291682686656713,
-0.0006235858309082687,
0.02559640258550644,
-0.054953910410404205,
-0.027041641995310783,
0.04067564383149147,
0.030907221138477325,
-0.04074529558420181,
-0.03029778227210045,
0.010882824659347534,
-0.08427659422159195,
0.0218178853392601,
-0.031185820698738098,
0.03520811349153519,
0.03660111501812935,
-0.06226716563105583,
-0.01734286919236183,
0.07201817631721497,
-0.055406633764505386,
-0.00039967172779142857,
0.0074351453222334385,
0.03754138946533203,
0.017377693206071854,
-0.02986246906220913,
0.0009217752376571298,
0.054919082671403885,
-0.006529694423079491,
0.0349121019244194,
-0.0676998719573021,
0.07800808548927307,
0.032039035111665726,
0.008175177499651909,
-0.016123991459608078,
0.02042488381266594,
-0.013207395561039448,
-0.015793154016137123,
0.04074529558420181,
0.05509321019053459,
0.007348082959651947,
0.012293238192796707,
-0.015471022576093674,
0.07125202566385269,
-0.01494864746928215,
0.006420866120606661,
-0.0292530320584774,
-0.027337653562426567,
0.027041641995310783,
-0.06790882349014282,
-0.013877777382731438,
0.004949508234858513,
-0.020146284252405167,
-0.0021319452207535505,
-0.03482503816485405,
0.023193474858999252,
-0.00533693702891469,
-0.02380291372537613,
0.0019763209857046604,
-0.003774163546040654,
0.02921820618212223,
-0.03722796589136124,
0.06581932306289673,
0.05484943464398384,
-0.06693372130393982,
0.01144873071461916,
-0.004971274174749851,
0.004710086155682802,
0.027912268415093422,
-0.08455519378185272,
-0.03475538641214371,
0.003114664228633046,
0.027912268415093422,
0.03701901435852051,
-0.028121218085289,
-0.029740581288933754,
0.013311870396137238,
0.019014470279216766,
-0.027703316882252693,
0.030245544388890266,
0.02089502289891243,
-0.002057942096143961,
0.028678419068455696,
0.04405367374420166,
-0.005341290030628443,
-0.024865075945854187,
-0.05551110953092575,
-0.026850104331970215,
-0.04018809273838997,
-0.017038149759173393,
-0.05962046608328819,
0.03465091064572334,
-0.008127293549478054,
0.02336760051548481,
-0.034233011305332184,
-0.023019349202513695,
-0.0055067092180252075,
0.06616757065057755,
0.025509340688586235,
-0.01067387405782938,
-0.01997215859591961,
-0.03148183226585388,
0.012528306804597378,
-0.028173455968499184,
0.022618861868977547,
0.0530037060379982,
0.05063560605049133,
0.020059222355484962,
-0.03533000126481056,
0.031986795365810394,
0.0021863593719899654,
-0.09402760118246078,
0.0034694443456828594,
-0.002309335395693779,
-0.04791925102472305,
0.062371641397476196,
0.0355563648045063,
0.006094381678849459,
-0.028661005198955536,
-0.013407639227807522,
-0.0030471908394247293,
0.010839292779564857,
0.05373503267765045,
-0.044784996658563614,
0.0329618975520134,
0.025282977148890495,
0.06306814402341843,
0.009820660576224327,
0.00921992864459753,
0.02942715585231781,
-0.005746131297200918,
-0.04091941937804222,
-0.006564519368112087,
-0.010821880772709846,
0.014687459915876389,
-0.0413721427321434,
0.01972838304936886,
-0.0017423401586711407,
-0.028922192752361298,
-0.02312382496893406,
-0.00583754712715745,
-0.07814738154411316,
-0.08302289247512817,
0.03593944013118744,
-0.0025052260607481003,
0.062162693589925766,
-0.02852170541882515,
-0.007857399061322212,
0.06783917546272278,
0.0007797543657943606,
0.02110397256910801,
-0.0023985744919627905,
0.07974933832883835,
-0.007883518002927303,
0.01237159501761198,
-0.013181276619434357,
0.012981032952666283,
-0.0067865289747715,
0.06174479052424431,
0.03129029646515846,
0.021278098225593567,
-0.05773991346359253,
-0.06066521629691124,
0.006351216230541468,
-0.010421392507851124,
0.02200942300260067,
-0.004544667433947325,
0.01215393841266632,
0.015784448012709618,
-0.005454471334815025,
-0.015653854236006737,
0.09479375183582306,
0.022148724645376205,
0.010090555064380169,
0.017882656306028366,
-0.03546930104494095,
0.06397359073162079,
0.003341027069836855,
-0.05638173595070839,
-0.003621803829446435,
-0.022792987525463104,
0.0012025521136820316,
0.0134947020560503,
-0.03149924799799919,
0.0157583300024271,
-0.01325963344424963,
0.0019349661888554692,
-0.022584035992622375,
-0.0007296933908946812,
0.03956124186515808,
-0.013181276619434357,
-0.01887517049908638,
-0.024882489815354347,
-0.05168035626411438,
-0.05969011411070824,
0.07947073876857758,
0.04743169993162155,
0.005558946635574102,
0.019049296155571938,
0.025962065905332565,
-0.008170824497938156,
-0.010943767614662647,
-0.008941328153014183,
-0.01677696220576763,
0.048232678323984146,
0.003116840962320566,
0.0017009854782372713,
-0.010499748401343822,
-0.03844683989882469,
0.04172039404511452,
0.04569045081734657,
-0.07424698024988174,
-0.03858614340424538,
0.07974933832883835,
0.005154105369001627,
-0.011622856371104717,
-0.01819608174264431,
0.044367097318172455,
0.019380133599042892,
0.04711827635765076,
0.06428702175617218,
0.06467009335756302,
0.06202339008450508,
0.04986945539712906,
0.011292017996311188,
0.04666554927825928,
-0.014582984149456024,
-0.03726278990507126,
0.03550412505865097,
0.009176397696137428,
0.0014419741928577423,
-0.006107441149652004,
0.023054175078868866,
-0.030820157378911972,
-0.029078906401991844,
0.031081346794962883,
0.007626682985574007,
0.028869956731796265,
0.021713411435484886,
0.025578990578651428,
0.03437231108546257,
-0.011866631917655468,
0.01492252852767706,
-0.008501661941409111,
-0.00572436535730958,
0.049103304743766785,
0.010273385792970657,
-0.03238728642463684,
0.08441589027643204,
0.11387787014245987,
-0.08734119683504105,
-0.06407807022333145,
0.003482503816485405,
-0.008640962652862072,
-0.03303154930472374,
-0.011074362322688103,
0.019676147028803825,
-0.0022745102178305387,
-0.03278777375817299,
0.05119280517101288,
-0.05634691193699837,
-0.025248151272535324,
0.005262933671474457,
0.01677696220576763,
-0.0027119996957480907,
-0.03217833489179611,
-0.05255098268389702,
0.03722796589136124,
-0.01951943337917328,
0.06049108877778053,
-0.000013271944226289634,
0.0593070387840271,
-0.014582984149456024,
0.05255098268389702,
-0.0070781889371573925,
-0.007261020131409168,
-0.03146442025899887,
0.07403802871704102,
0.034459374845027924,
0.021452223882079124,
-0.019850270822644234,
0.012406419962644577,
0.03353651240468025,
-0.019885096698999405,
-0.028243105858564377,
0.04060599207878113,
0.0074133798480033875,
-0.04649142548441887,
-0.07355047762393951,
-0.041023895144462585,
-0.015767036005854607,
-0.007940108887851238,
-0.02312382496893406,
-0.03729761391878128,
-0.08950034528970718,
0.004514195490628481,
0.016811786219477654,
-0.019885096698999405,
0.06202339008450508,
-0.01932789571583271,
0.01981544680893421,
0.03533000126481056,
0.05551110953092575,
0.041476618498563766,
0.006146619096398354,
0.008688846603035927,
-0.0031342534348368645,
0.027006816118955612,
-0.027738142758607864,
-0.05700858682394028,
-0.027964504435658455,
0.005889784544706345,
0.06369499117136002,
0.0048058549873530865,
0.02584017813205719,
0.005123633425682783,
-0.003913463559001684,
0.021974598988890648,
-0.059655290096998215,
-0.007361142430454493,
-0.033588748425245285,
-0.03212609887123108,
0.0017347221728414297,
-0.038063764572143555,
0.014069315046072006,
-0.029270444065332413,
0.06672476977109909,
0.035173289477825165,
0.031377360224723816,
0.024429764598608017,
-0.050252530723810196,
-0.06815259903669357,
0.0512276291847229,
0.030680857598781586,
-0.05060077831149101,
-0.060769692063331604,
-0.047292400151491165,
0.06449596583843231,
0.01732545532286167,
0.06460044533014297,
0.03353651240468025,
-0.03802894055843353,
0.049312252551317215,
0.03075050748884678,
-0.008358009159564972,
0.019049296155571938,
0.00975971668958664,
-0.031150996685028076,
-0.04938190430402756,
0.015366547740995884,
0.001204728614538908,
0.04603869840502739,
0.010534574277698994,
-0.06049108877778053,
-0.05272510647773743,
0.07348082959651947,
0.017734650522470474,
0.012658901512622833,
0.030036594718694687,
-0.0030994282569736242,
-0.005846253130584955,
-0.07187888026237488,
-0.0020633835811167955,
0.03031519427895546,
0.024795426055788994,
-0.022775573655962944,
-0.012467363849282265,
0.09918170422315598,
-0.011570618487894535,
0.025700878351926804,
-0.04475017264485359,
-0.04624764993786812,
0.0013832069234922528,
0.0006328362505882978,
-0.002518285531550646,
0.03708866611123085,
0.0140606090426445,
0.05638173595070839,
-0.03479021415114403,
0.027685904875397682,
0.03249175846576691,
-0.00703030452132225,
0.02878289297223091,
0.018561745062470436,
0.009698772802948952,
-0.012075581587851048,
0.11269382387399673,
0.005489296745508909,
0.0008466837462037802,
-0.03736726567149162,
-0.0039156400598585606,
-0.04802372679114342,
-0.0570434108376503,
-0.012780788354575634,
-0.028695831075310707,
-0.04673520103096962,
-0.015000885352492332,
0.007487383205443621,
0.002659762278199196,
0.021608935669064522,
0.002942715771496296,
-0.0024551651440560818,
-0.003639216534793377,
-0.004279126413166523,
0.07055552303791046,
-0.05262063071131706,
0.03701901435852051,
-0.060804516077041626,
0.067560575902462,
0.04802372679114342,
-0.03033260814845562,
0.008915209211409092,
-0.054501183331012726,
-0.04677002504467964,
0.017229687422513962,
0.022305436432361603,
0.033588748425245285,
0.03332756087183952,
0.02782520465552807,
-0.03078533336520195,
0.04579492285847664,
0.024621302261948586,
-0.017473462969064713,
0.023315362632274628,
0.005659068468958139,
-0.03444196283817291,
0.006194503512233496,
0.04405367374420166,
-0.0035325647331774235,
-0.06000354140996933,
0.00039259789627976716,
0.019171183928847313,
0.019919920712709427,
0.022305436432361603,
0.010743523947894573,
-0.08511239290237427,
-0.02023334614932537,
-0.0507400780916214,
0.039909493178129196,
0.016002105548977852,
0.0035869788844138384,
-0.03369322419166565,
0.029723169282078743,
-0.007665861397981644,
-0.014992178417742252,
0.02467353828251362,
-0.03418077528476715,
-0.07410767674446106,
0.020616421476006508,
0.02559640258550644,
-0.036949366331100464,
0.0035260349977761507,
-0.043461646884679794,
-0.05136692896485329,
0.00449243001639843,
0.0052237557247281075,
-0.04290444776415825,
0.04927742853760719,
-0.07355047762393951,
-0.03722796589136124,
-0.010865411721169949,
-0.04356612265110016,
0.029984356835484505,
-0.009698772802948952,
-0.03778516501188278,
-0.04941672831773758,
-0.014313090592622757,
-0.01913635805249214,
0.0005212872638367116,
-0.02070348523557186,
-0.012493481859564781,
0.01793489418923855,
0.004762324038892984,
-0.002683704486116767,
-0.009777129627764225,
0.0373324416577816,
0.001166638801805675,
0.0722271278500557,
0.03980501741170883,
0.014896409586071968,
-0.006325097288936377,
-0.03193455934524536,
0.021382572129368782,
-0.009707478806376457,
-0.042765144258737564,
-0.0022723337169736624,
-0.004670908208936453,
-0.03459867462515831,
-0.0038155182264745235,
0.05098385363817215,
-0.03273553401231766,
0.013555645942687988,
0.023245712742209435,
-0.05638173595070839,
-0.05547628551721573,
0.0020481476094573736,
0.019954746589064598,
0.0031342534348368645,
0.06268506497144699,
-0.007979286834597588,
0.007735511288046837,
0.015357841737568378,
-0.0762668326497078,
0.030733095481991768,
-0.006838766857981682,
-0.046874500811100006,
-0.014461096376180649,
-0.012101700529456139,
-0.037889640778303146,
0.017151331529021263,
-0.01449592225253582,
0.044158145785331726,
0.006864885333925486,
-0.03308378532528877,
0.0025378745049238205,
0.030471907928586006,
-0.00802281778305769,
-0.04872022569179535,
-0.042556196451187134,
0.02853911742568016,
0.02383773773908615,
0.016106579452753067,
0.044784996658563614,
0.040780119597911835,
-0.05707823485136032,
-0.05634691193699837,
0.01793489418923855,
-0.07153062522411346,
-0.003077662782743573,
-0.07327187806367874,
-0.014208615757524967,
-0.0181786697357893,
-0.04433227330446243,
-0.020302996039390564,
-0.023750675842165947,
0.04387954622507095,
0.04743169993162155,
0.006542753893882036,
0.008950035087764263,
-0.04241689667105675,
-0.024203401058912277,
-0.03837719187140465,
-0.008566958829760551,
-0.0673864483833313,
0.011535793542861938,
0.039909493178129196,
0.049764979630708694,
-0.04071046784520149,
0.0026641152799129486,
0.0408845953643322,
0.014347915537655354,
0.02023334614932537,
-0.04140697047114372,
0.012032050639390945,
-0.006830060388892889,
0.0033845582511276007,
-0.060142841190099716,
0.012267119251191616,
-0.05056595429778099,
0.03384993597865105,
-0.027999330312013626,
0.01303326990455389,
-0.0002586031041573733,
0.0004633362405002117,
-0.017299337312579155,
-0.03075050748884678,
0.07362012565135956,
0.005123633425682783,
-0.016524480655789375,
-0.05460565909743309,
0.03938711807131767,
-0.02089502289891243,
-0.043496470898389816,
0.0206860713660717,
-0.026675978675484657,
-0.011718625202775002,
0.044367097318172455,
-0.052934058010578156,
0.0031081344932317734,
0.05014805495738983,
-0.006908416748046875,
0.05422258377075195,
-0.04569045081734657,
-0.004155062139034271,
-0.06306814402341843,
-0.008593077771365643,
-0.038760267198085785,
-0.036322515457868576,
0.004211653023958206,
-0.023088999092578888,
-0.012946208007633686,
0.0235939621925354,
-0.015201129019260406,
0.01438274048268795,
-0.018021956086158752,
0.008122939616441727,
0.0059420219622552395,
0.018788108602166176,
0.0717395767569542,
-0.004235594999045134,
-0.0036500992719084024,
0.026223253458738327,
0.042556196451187134,
0.007469970732927322,
-0.03771551698446274,
0.013903896324336529,
-0.07086895406246185,
0.043496470898389816,
0.030367432162165642,
0.0069214762188494205,
0.011004711501300335,
0.08009758591651917,
-0.019641321152448654,
-0.005872372072190046,
0.04440192133188248,
0.025300389155745506,
-0.014330502599477768,
0.017299337312579155,
-0.056764811277389526,
-0.03033260814845562,
0.02921820618212223,
0.010682580061256886,
-0.023889975622296333,
-0.007173957768827677,
0.030175894498825073,
-0.031133582815527916,
-0.0329618975520134,
0.0872715413570404,
-0.026571502909064293,
-0.007604917511343956,
-0.008397187106311321,
-0.008680140599608421,
0.046177998185157776,
-0.08866454660892487,
0.022775573655962944,
-0.003593508619815111,
0.034267835319042206,
0.043496470898389816,
-0.07118237763643265,
-0.009098040871322155,
0.007779042702168226,
0.005332584027200937,
0.024151163175702095,
-0.00047612356138415635,
0.028643593192100525,
0.04791925102472305,
0.023210886865854263,
0.006050850264728069,
-0.03590461239218712,
0.023541726171970367,
-0.04673520103096962,
-0.021034322679042816,
-0.043949197977781296,
0.001477887504734099,
-0.007126073352992535,
-0.019014470279216766,
0.07264503091573715,
0.03841201588511467,
-0.019589083269238472,
-0.022392498329281807,
0.038098592311143875,
-0.051784832030534744,
0.02604912780225277,
0.014713577926158905,
0.030646033585071564,
0.014043196104466915,
0.05464048311114311,
0.0015812743222340941,
0.03949159383773804,
-0.005127986893057823,
0.018962232396006584,
0.04938190430402756,
0.006377335172146559,
0.008423306047916412,
-0.0030406611040234566,
0.003029778366908431,
-0.09925135970115662,
0.0036740414798259735,
-0.05592900887131691,
0.03970054164528847,
0.010987299494445324,
-0.042765144258737564,
-0.03775034099817276,
-0.008488602936267853,
0.019954746589064598,
0.04091941937804222,
-0.05185448005795479,
-0.05453600734472275,
0.018492095172405243,
-0.009733597747981548,
-0.05004357919096947,
0.031325120478868484,
-0.03327532485127449,
-0.0033236145973205566,
-0.04520289972424507,
-0.023663612082600594,
-0.021974598988890648,
-0.02178306132555008,
0.04558597505092621,
0.015314309857785702,
0.027720730751752853,
0.01237159501761198,
0.038551315665245056,
0.04631730169057846,
0.02136516012251377,
0.027233179658651352,
-0.042103469371795654,
-0.07577928155660629,
-0.021957186982035637,
0.016733430325984955,
-0.005698246881365776,
-0.007944461889564991,
0.05262063071131706,
0.04165074601769447,
-0.05056595429778099,
0.006085675209760666,
0.005489296745508909,
-0.019414957612752914,
-0.013782008551061153,
0.027511779218912125,
-0.04335717111825943,
-0.013285751454532146,
0.06477457284927368,
0.02362878806889057,
0.003950465004891157,
0.012937501072883606,
-0.05432705953717232,
-0.005881078075617552,
-0.04673520103096962,
0.003856872906908393,
0.03980501741170883,
-0.027947092428803444,
-0.05909808725118637,
0.00005808707282994874,
0.007892224006354809,
0.023297950625419617,
-0.004701380152255297,
-0.05105350539088249,
-0.054292231798172,
-0.02155669778585434,
-0.012624075636267662,
-0.013433758169412613,
0.004483723547309637,
0.09145054966211319,
-0.009933842346072197,
-0.0012722021201625466,
0.007213135715574026
] |
10,016
|
torch.nn.modules.container
|
_get_item_by_idx
|
Get the idx-th item of the iterator.
|
def _get_item_by_idx(self, iterator, idx) -> T: # type: ignore[misc, type-var]
"""Get the idx-th item of the iterator."""
size = len(self)
idx = operator.index(idx)
if not -size <= idx < size:
raise IndexError(f'index {idx} is out of range')
idx %= size
return next(islice(iterator, idx, None))
|
(self, iterator, idx) -> ~T
|
[
0.024902453646063805,
-0.04983990639448166,
-0.0638398826122284,
0.01956496387720108,
-0.020439961925148964,
0.0013256225502118468,
0.026547450572252274,
0.026092451065778732,
0.060724884271621704,
-0.02465745434165001,
0.010114980861544609,
0.016143718734383583,
-0.03863992542028427,
-0.03863992542028427,
-0.014997472055256367,
0.012696226127445698,
-0.009572481736540794,
0.059639886021614075,
-0.04164992272853851,
0.04763491079211235,
0.01690496876835823,
0.010254980996251106,
0.011016229167580605,
0.03814992681145668,
0.0003833586524706334,
0.05211490020155907,
0.06663987785577774,
0.00613811332732439,
0.06905487179756165,
-0.04350491985678673,
-0.008045610040426254,
-0.013746224343776703,
0.036854930222034454,
0.022837456315755844,
-0.024709952995181084,
0.02203245833516121,
-0.06558987498283386,
0.018234966322779655,
0.04448491707444191,
0.05515989661216736,
0.030047442764043808,
-0.023852454498410225,
0.07783985137939453,
-0.034877434372901917,
-0.03503493219614029,
0.031989939510822296,
-0.009336232207715511,
0.019232463091611862,
-0.017307467758655548,
0.0008766389801166952,
0.006680612452328205,
0.009239982813596725,
0.014376223087310791,
-0.037834927439689636,
-0.05018990486860275,
0.02084246091544628,
-0.014901221729815006,
-0.008133109658956528,
-0.050049904733896255,
0.06761987507343292,
-0.020999960601329803,
-0.06331487745046616,
0.0016635906649753451,
0.011602478101849556,
0.040004923939704895,
-0.048369910567998886,
0.0010308574419468641,
-0.018427465111017227,
-0.037274930626153946,
-0.0035131184849888086,
0.06821487098932266,
0.032777439802885056,
-0.02035246230661869,
-0.035209935158491135,
-0.03475493565201759,
-0.03102744184434414,
0.012127476744353771,
0.020527461543679237,
0.09645982086658478,
0.0028765571769326925,
0.009931230917572975,
0.032619938254356384,
-0.007371861021965742,
-0.014612472616136074,
-0.016537468880414963,
0.003683743067085743,
0.03503493219614029,
-0.03751992806792259,
-0.0119174774736166,
0.0396549254655838,
0.0031893691048026085,
-0.025532452389597893,
0.006851237267255783,
-0.018689963966608047,
0.00970373209565878,
-0.00393093004822731,
0.014831221662461758,
-0.045744914561510086,
0.014306223019957542,
0.01710621826350689,
-0.0398649238049984,
0.03930492699146271,
-0.021384960040450096,
-0.006536237895488739,
0.028279947116971016,
0.013046225532889366,
-0.012416226789355278,
0.005468739662319422,
-0.023327456787228584,
0.0032440563663840294,
0.013273725286126137,
0.016589969396591187,
-0.10478980094194412,
0.00577061390504241,
-0.019389962777495384,
0.008907482959330082,
0.011331228539347649,
-0.01227622665464878,
0.014551222324371338,
-0.01952996291220188,
-0.005473114550113678,
-0.010561229661107063,
-0.06275488436222076,
0.023222455754876137,
-0.01206622738391161,
0.0051493654027581215,
0.012941225431859493,
0.010517479851841927,
0.0059193638153374195,
0.0344749353826046,
0.04168492183089256,
-0.0031040566973388195,
0.02586495131254196,
-0.005508114583790302,
-0.031989939510822296,
0.028489945456385612,
0.016992468386888504,
0.023484956473112106,
-0.13474974036216736,
-0.01393872406333685,
0.020737461745738983,
0.00125562259927392,
0.0071881115436553955,
0.0557548962533474,
-0.013632474467158318,
-0.026879949495196342,
-0.06957986950874329,
-0.02491995319724083,
0.020037462934851646,
0.0014426534762606025,
-0.020229961723089218,
0.06149488314986229,
0.02724744938313961,
0.043679919093847275,
-0.00045882727135904133,
-0.031727440655231476,
0.01107747945934534,
-0.029924944043159485,
-0.02005496248602867,
0.017841216176748276,
0.011199979111552238,
-0.04024992510676384,
0.015172471292316914,
-0.010762480087578297,
-0.018672464415431023,
0.03540243208408356,
-0.07447986304759979,
0.006851237267255783,
0.009624982252717018,
-0.018374964594841003,
0.015679970383644104,
0.0010057012550532818,
-0.020334960892796516,
-0.03594493120908737,
-0.05071490257978439,
0.060199886560440063,
0.011611227877438068,
0.043154917657375336,
0.05249990150332451,
-0.05256989970803261,
-0.037239931523799896,
0.013833723962306976,
-0.014323722571134567,
-0.07230986654758453,
0.010202480480074883,
0.05974488705396652,
-0.005783739034086466,
0.032094940543174744,
0.020527461543679237,
0.03151744231581688,
0.02192745916545391,
0.012713725678622723,
-0.021332459524273872,
-0.04549991339445114,
-0.03207743912935257,
0.04808991029858589,
0.0030799941159784794,
0.037869930267333984,
0.049069907516241074,
0.0713648647069931,
-0.02780744805932045,
-0.003381868591532111,
-0.02623245120048523,
0.02731744758784771,
-0.05736489221453667,
-0.014393722638487816,
0.009047483094036579,
-0.027789948508143425,
-0.09204982966184616,
0.029627444222569466,
-0.032357439398765564,
-0.03597993403673172,
-0.03331993892788887,
0.035507433116436005,
0.016983717679977417,
0.0198274627327919,
-0.08966983109712601,
-0.07293986529111862,
0.07209986448287964,
0.02833244577050209,
0.03459743410348892,
-0.07650985568761826,
-0.0037318679969757795,
0.0019731211941689253,
0.06695487350225449,
-0.041509922593832016,
-0.014927471987903118,
-0.03183244168758392,
-0.011742478236556053,
0.01966996304690838,
0.00549936480820179,
0.004357491619884968,
0.11969977617263794,
0.027719948440790176,
0.014603722840547562,
-0.0028787446208298206,
-0.015977470204234123,
-0.004711865913122892,
-0.007756860461086035,
0.040564924478530884,
-0.02180495858192444,
0.03246244043111801,
0.009073733352124691,
0.03779992833733559,
-0.024972453713417053,
0.04588491469621658,
0.002432495355606079,
0.03933992609381676,
-0.024972453713417053,
0.00018662074580788612,
-0.02547995187342167,
0.05211490020155907,
0.03877992555499077,
0.018427465111017227,
0.02537495270371437,
0.004460304044187069,
-0.030117442831397057,
-0.08805983513593674,
-0.01161997765302658,
-0.00011204080510651693,
-0.032777439802885056,
-0.0023187457118183374,
0.007590610533952713,
-0.02327495627105236,
-0.05736489221453667,
0.029102444648742676,
0.016572467982769012,
0.023589955642819405,
0.004154054448008537,
0.10170980542898178,
0.045114915817976,
0.07146986573934555,
0.017753716558218002,
-0.026354949921369553,
0.008168109692633152,
-0.03279493749141693,
-0.006339362822473049,
0.05932488664984703,
-0.027982447296380997,
-0.02376495487987995,
0.013404974713921547,
0.05673489347100258,
-0.05148490145802498,
0.00885060802102089,
-0.007122486364096403,
-0.0290499459952116,
0.05193990096449852,
-0.06023488566279411,
0.027142448350787163,
0.0029334318824112415,
0.0356474332511425,
-0.00953748170286417,
0.009528731927275658,
-0.0686698704957962,
-0.014962472021579742,
-0.007192486431449652,
-0.04913990572094917,
-0.006068113725632429,
0.02327495627105236,
0.014866221696138382,
-0.001637340639717877,
-0.03270743787288666,
-0.11780977994203568,
0.005936863832175732,
-0.01949496380984783,
0.08119984716176987,
0.022207457572221756,
0.01214497722685337,
-0.03072994202375412,
0.0033949934877455235,
0.015504971146583557,
-0.05288489907979965,
0.050539903342723846,
0.009327482432126999,
-0.020177461206912994,
-0.07496985793113708,
-0.05414489656686783,
0.004226242192089558,
0.009484982118010521,
0.057539891451597214,
-0.024342454969882965,
0.04126492142677307,
-0.005643739365041256,
-0.047914911061525345,
-0.021069960668683052,
0.013273725286126137,
-0.09232982248067856,
0.0198274627327919,
-0.04700491204857826,
0.0739198625087738,
-0.010972479358315468,
-0.04976990446448326,
-0.01568872109055519,
0.024079954251646996,
0.008417484350502491,
0.04038992524147034,
0.02143745869398117,
0.027089949697256088,
0.025689952075481415,
-0.0046637412160634995,
0.006225613411515951,
-0.04598991200327873,
0.02491995319724083,
0.03863992542028427,
0.04066992178559303,
-0.003460618434473872,
0.05701489374041557,
-0.044134918600320816,
0.011733727529644966,
0.0009039826691150665,
-0.018934965133666992,
-0.011138728819787502,
0.005214990116655827,
-0.04063492268323898,
-0.008806858211755753,
0.03473743423819542,
0.008146234788000584,
-0.0424199216067791,
-0.011059978976845741,
0.023554954677820206,
-0.027754947543144226,
-0.04346991702914238,
0.008758733049035072,
-0.0017149967607110739,
-0.030817441642284393,
-0.031079940497875214,
-0.07692985236644745,
0.013483724556863308,
-0.003359993686899543,
0.014866221696138382,
0.010727480053901672,
0.03226993978023529,
-0.04346991702914238,
-0.00001690182398306206,
0.037309929728507996,
-0.06828486919403076,
0.006365613080561161,
0.061774883419275284,
-0.026407450437545776,
-0.027632448822259903,
0.01495372224599123,
-0.02859494648873806,
-0.014962472021579742,
0.10765979439020157,
-0.013334974646568298,
-0.026092451065778732,
-0.02192745916545391,
-0.03856992721557617,
0.01214497722685337,
0.013859974220395088,
-0.02428995445370674,
-0.025462452322244644,
-0.002360308077186346,
-0.013903724029660225,
-0.03744992986321449,
-0.00935373269021511,
0.0185149647295475,
-0.05466989800333977,
-0.030309943482279778,
-0.04710990935564041,
-0.01989746280014515,
0.013623724691569805,
-0.03233993798494339,
0.04441491514444351,
0.03275993838906288,
0.015977470204234123,
-0.01285372581332922,
0.007468110881745815,
-0.03657492995262146,
0.02143745869398117,
-0.06289488077163696,
0.011856228113174438,
0.02941744402050972,
0.018339965492486954,
0.02589995041489601,
0.019319962710142136,
-0.009388732723891735,
0.047459911555051804,
-0.03639993071556091,
0.03881492838263512,
0.002988119376823306,
-0.08665983378887177,
0.0013081225333735347,
-0.019389962777495384,
-0.048964906483888626,
-0.08378984034061432,
0.012311226688325405,
0.009791231714189053,
-0.04913990572094917,
-0.020562460646033287,
-0.04500991478562355,
-0.090229831635952,
-0.03478993475437164,
-0.010447480715811253,
0.005534364376217127,
0.000035546807339414954,
-0.06408488005399704,
-0.016432469710707664,
-0.0265299491584301,
0.006413737777620554,
0.08749983459711075,
0.05543989688158035,
-0.02675744891166687,
0.012862475588917732,
-0.009152483195066452,
0.013221224769949913,
0.003753742901608348,
0.042594920843839645,
0.014971221797168255,
-0.030029943212866783,
0.044134918600320816,
0.004619991406798363,
0.005280614830553532,
0.03135994076728821,
0.062194883823394775,
-0.06607987731695175,
-0.06740987300872803,
-0.05337489768862724,
0.02196245826780796,
0.02679244987666607,
-0.032882437109947205,
0.0397249236702919,
0.026547450572252274,
-0.1007298082113266,
0.008036860264837742,
-0.02084246091544628,
-0.0023734329733997583,
0.029504943639039993,
-0.01847996562719345,
-0.0020901523530483246,
-0.013387475162744522,
-0.01608246937394142,
-0.039899926632642746,
-0.06033988669514656,
0.012494976632297039,
0.0199324619024992,
0.015539970248937607,
0.0225224569439888,
0.029399944469332695,
0.0014470284804701805,
0.022434957325458527,
-0.03650493174791336,
0.014218723401427269,
0.003919992595911026,
-0.03961992636322975,
0.05522989481687546,
0.010762480087578297,
0.05197490379214287,
-0.026879949495196342,
0.03424743562936783,
0.05603489279747009,
0.0027234323788434267,
0.007297486066818237,
0.015443720854818821,
0.03937492519617081,
0.019949963316321373,
0.014244972728192806,
0.010386230424046516,
0.055894896388053894,
-0.0001450583222322166,
0.033407438546419144,
-0.020264962688088417,
0.06737487018108368,
-0.02507745288312435,
0.006085613742470741,
0.0040074922144412994,
-0.03349493816494942,
0.043224919587373734,
0.03582243248820305,
-0.0583098903298378,
0.03720492869615555,
0.04007492586970329,
-0.026774950325489044,
-0.03092244081199169,
0.02442995458841324,
-0.0062781129963696,
-0.0032440563663840294,
-0.0053549897857010365,
0.017902465537190437,
0.01733371801674366,
0.04385491833090782,
-0.014183723367750645,
-0.038954924792051315,
0.007288736291229725,
0.03926992416381836,
0.03657492995262146,
-0.036189932376146317,
-0.004392491653561592,
0.01782371662557125,
0.04133492335677147,
-0.04189492017030716,
0.03347743675112724,
-0.023397454991936684,
-0.016441218554973602,
0.014104973524808884,
-0.0395849235355854,
0.033862434327602386,
0.01726371794939041,
0.08056984841823578,
-0.025392452254891396,
0.01298497524112463,
-0.028472445905208588,
0.03741493076086044,
-0.0581698901951313,
0.006676237564533949,
-0.014866221696138382,
-0.06236988306045532,
-0.012713725678622723,
-0.004388116765767336,
0.04231492057442665,
-0.019022464752197266,
-0.034912433475255966,
0.031167441979050636,
-0.021559959277510643,
-0.009143732488155365,
0.05897488817572594,
-0.06194988265633583,
0.035734932869672775,
-0.0008536702371202409,
-0.0066149877384305,
0.030834941193461418,
0.04140492156147957,
-0.013606224209070206,
-0.008220609277486801,
0.020037462934851646,
-0.026319950819015503,
-0.0030449943151324987,
-0.0581698901951313,
0.06075988709926605,
-0.05197490379214287,
-0.010692480020225048,
0.026669949293136597,
-0.06485487520694733,
0.03219993785023689,
0.0017423405079171062,
0.021857459098100662,
0.0043356167152523994,
-0.050539903342723846,
-0.012459976598620415,
-0.018532464280724525,
0.032094940543174744,
-0.002662182552739978,
0.1059798002243042,
0.012328727170825005,
0.023922454565763474,
-0.05228990316390991,
0.002725619822740555,
-0.021594958379864693,
-0.05239490047097206,
-0.015373720787465572,
0.07727985084056854,
-0.08847983181476593,
-0.029819943010807037,
0.018129965290427208,
0.08679983764886856,
0.024307454004883766,
-0.06793487071990967,
-0.055929895490407944,
-0.04826490953564644,
-0.018164966255426407,
-0.015977470204234123,
0.04626991227269173,
-0.013256224803626537,
0.026599949225783348,
0.06481987982988358,
0.05256989970803261,
-0.024832453578710556,
-0.04031992331147194,
0.043119918555021286,
-0.020964959636330605,
0.0011604665778577328,
0.013299974612891674,
-0.007988735102117062,
-0.004856240935623646,
-0.011602478101849556,
-0.012888725847005844,
-0.0005589051870629191,
0.04399491846561432,
-0.0006097644800320268,
0.029732443392276764,
-0.04875490814447403,
0.03587493300437927,
-0.04749491065740585,
0.01667746901512146,
-0.009021232835948467,
-0.062299881130456924,
0.10814979672431946,
-0.04294491931796074,
0.015863720327615738,
0.03519243374466896,
-0.03125493973493576,
-0.0069387368857860565,
0.04910490661859512,
0.011094979010522366,
-0.05515989661216736,
0.010272480547428131,
-0.011794977821409702,
0.02084246091544628,
-0.053269900381565094,
0.048509906977415085,
0.019232463091611862,
0.06863486766815186,
-0.027229947969317436,
0.0012753100600093603,
0.038849927484989166,
-0.031237442046403885,
0.0032265563495457172,
0.01280122622847557,
0.043784916400909424,
-0.015198721550405025,
0.0048868656158447266,
0.02694994956254959,
-0.018339965492486954,
-0.015014971606433392,
-0.023729955777525902,
-0.002657807432115078,
0.054319895803928375,
-0.025024952366948128,
0.013098725117743015,
0.02761494740843773,
-0.02045746147632599,
-0.033407438546419144,
-0.0044449917040765285,
-0.014236222952604294,
-0.0042087421752512455,
-0.0475999116897583,
-0.06439987570047379,
-0.03926992416381836,
-0.009441232308745384,
-0.014647472649812698,
-0.020929960533976555,
0.02049246057868004,
-0.054809898138046265,
0.007052486762404442,
0.01591622084379196,
0.006251863203942776,
0.013396224938333035,
-0.043119918555021286,
0.0005414052284322679,
0.003438743529841304,
0.04927990585565567,
-0.013483724556863308,
-0.007612485438585281,
0.09652981907129288,
-0.05627989396452904,
-0.002533120336011052,
0.02679244987666607,
-0.007734985556453466,
-0.0197924617677927,
-0.013693723827600479,
-0.003911242820322514,
-0.018427465111017227,
-0.0005321083590388298,
-0.015583720989525318,
-0.02869994565844536,
-0.013203725218772888,
0.006181863136589527,
0.0424199216067791,
0.009099982678890228,
0.025234952569007874,
0.00019974571478087455,
-0.029137445613741875,
0.03559493273496628,
-0.0003612102591432631,
-0.03452743589878082,
0.0009865605970844626,
-0.03272493928670883,
-0.00754248583689332,
-0.007756860461086035,
-0.033704936504364014,
-0.011278728954494,
-0.004633116070181131,
0.011103728786110878,
0.04983990639448166,
0.011007479391992092,
0.042629919946193695,
-0.04098492115736008,
0.045849911868572235,
-0.04276992008090019,
0.03270743787288666,
-0.016764968633651733,
-0.04035492241382599,
-0.00251562031917274,
0.08364984393119812,
-0.012914976105093956,
0.006851237267255783,
0.04763491079211235,
0.02091246098279953,
-0.05893988907337189,
0.10366980731487274,
0.031464941799640656,
-0.06954486668109894,
0.039444927126169205,
-0.020404960960149765,
-0.02120996080338955,
0.0037253054324537516,
0.030537443235516548,
0.005718114320188761,
0.01206622738391161,
0.010403729975223541,
-0.031149940565228462,
0.06653487682342529,
-0.044274915009737015,
0.0026271825190633535,
-0.03484243527054787,
0.03713493049144745,
-0.020964959636330605,
-0.016309969127178192,
-0.018007466569542885,
-0.02994244359433651,
0.03664493188261986,
0.0016089031705632806,
-0.0030953066889196634,
0.06719987094402313,
0.009668732061982155,
-0.018899964168667793,
0.03765992820262909,
-0.0005006631254218519,
-0.021752459928393364,
0.031202441081404686,
0.024674953892827034,
-0.001022107433527708,
-0.016292469576001167,
0.05596489459276199,
-0.0664648711681366,
-0.03125493973493576,
-0.01914496347308159,
0.029504943639039993
] |
10,017
|
torch.nn.modules.module
|
_get_name
| null |
def _get_name(self):
return self.__class__.__name__
|
(self)
|
[
0.026208093389868736,
-0.013688192702829838,
0.0281087476760149,
0.03189261630177498,
-0.005980955436825752,
-0.045720309019088745,
0.054822519421577454,
0.03307834640145302,
0.0621810145676136,
-0.027376385405659676,
-0.03382814675569534,
-0.005309623666107655,
0.003653090912848711,
-0.02041894756257534,
-0.0018527013016864657,
-0.0019104619277641177,
0.01388872042298317,
0.013077891431748867,
-0.013845127075910568,
-0.021691862493753433,
0.00168050907086581,
0.04676653817296028,
0.031491562724113464,
-0.08028081804513931,
-0.0015181251801550388,
0.08648845553398132,
0.0005111275822855532,
0.029346788302063942,
0.02310427464544773,
-0.022389350458979607,
-0.0917893573641777,
-0.052485935389995575,
0.014019499532878399,
-0.010069976560771465,
-0.020209701731801033,
0.03307834640145302,
-0.044255584478378296,
0.04802201688289642,
-0.02510955184698105,
-0.03752483054995537,
0.025371108204126358,
-0.0013426635414361954,
-0.01661764085292816,
-0.026242967694997787,
0.029643220826983452,
-0.007345415651798248,
0.027045078575611115,
0.013095328584313393,
-0.0035332103725522757,
-0.01596374623477459,
0.0044094291515648365,
-0.022406786680221558,
-0.04223287105560303,
-0.014690831303596497,
-0.037420205771923065,
0.018413670361042023,
0.03391532972455025,
-0.026155782863497734,
-0.057193975895643234,
0.07156222313642502,
-0.029817592352628708,
-0.008701156824827194,
0.0221626665443182,
-0.021761611104011536,
-0.014603645540773869,
-0.022650906816124916,
0.026800958439707756,
0.016338644549250603,
-0.04254673793911934,
0.0383966900408268,
0.030654577538371086,
-0.022424224764108658,
0.01537088118493557,
0.03640884906053543,
0.0054578399285674095,
-0.049242619425058365,
-0.05123046040534973,
-0.014856484718620777,
0.009651483967900276,
-0.020296886563301086,
0.014481584541499615,
0.01405437383800745,
-0.06399448215961456,
-0.029032917693257332,
0.02606859616935253,
-0.060472168028354645,
-0.042128246277570724,
-0.0651104599237442,
-0.08104804903268814,
-0.009433519095182419,
-0.05119558423757553,
-0.004603417590260506,
0.009642764925956726,
0.05112583562731743,
-0.030584828928112984,
-0.04470895230770111,
-0.02308683656156063,
-0.03738533332943916,
0.003112538019195199,
0.013365604914724827,
0.020262012258172035,
0.03395020589232445,
-0.00255018868483603,
0.04104714095592499,
-0.0026221172884106636,
0.0013993344036862254,
-0.02573728933930397,
0.013278419151902199,
-0.007362852804362774,
-0.015170353464782238,
-0.013784097507596016,
0.02249397337436676,
-0.004577261861413717,
0.0038710557855665684,
0.057228852063417435,
-0.08258252590894699,
-0.005270390305668116,
0.055764127522706985,
0.015030856244266033,
-0.027306636795401573,
-0.013426635414361954,
0.06409910321235657,
-0.041535381227731705,
-0.017332565039396286,
-0.01314764004200697,
0.00830882042646408,
-0.006320980843156576,
-0.0325726680457592,
0.021674424409866333,
-0.029364224523305893,
0.005427324678748846,
0.022964777424931526,
-0.05973980575799942,
0.0010663931025192142,
0.06657518446445465,
0.05984443053603172,
0.017655152827501297,
0.09081287682056427,
-0.037699200212955475,
0.08767418563365936,
-0.0008582366281189024,
0.013452790677547455,
0.009529422968626022,
-0.005797865334898233,
-0.017812088131904602,
0.0236448273062706,
0.024673622101545334,
0.06354111433029175,
-0.005871973000466824,
-0.031805433332920074,
-0.005030628759413958,
0.013914876617491245,
0.034752316772937775,
0.013496384024620056,
-0.01923321932554245,
0.011604448780417442,
-0.06319236755371094,
0.020000455901026726,
-0.051893074065446854,
-0.07170172035694122,
-0.013731786049902439,
-0.02866673842072487,
-0.050707343965768814,
-0.0679004117846489,
0.02245909906923771,
-0.023836636915802956,
0.02041894756257534,
-0.0001155213758465834,
0.01836135983467102,
-0.0033697367180138826,
-0.042721111327409744,
-0.005793505813926458,
-0.019390152767300606,
0.05091658979654312,
-0.011142363771796227,
0.06096041202545166,
-0.009494548663496971,
0.06336674094200134,
0.024621309712529182,
0.013566132634878159,
0.027446134015917778,
-0.019930705428123474,
-0.045964427292346954,
-0.013487664982676506,
0.008579096756875515,
-0.010287941433489323,
0.04073327034711838,
0.003971319645643234,
0.0443253330886364,
0.025353671982884407,
-0.029957089573144913,
0.024429500102996826,
-0.029521159827709198,
0.005776068661361933,
0.05506664142012596,
-0.012371685355901718,
0.007715955842286348,
-0.005758631508797407,
0.012598368339240551,
0.00959045346826315,
0.01211884617805481,
0.07246895134449005,
-0.03046276792883873,
0.012014222331345081,
0.008701156824827194,
0.01952964998781681,
0.064970962703228,
0.0041849249973893166,
-0.02071538008749485,
-0.017001258209347725,
-0.022249851375818253,
-0.007345415651798248,
-0.028230808675289154,
0.05178844928741455,
0.02095950022339821,
-0.0620415173470974,
-0.03232854604721069,
-0.07170172035694122,
0.005322701763361692,
0.044499702751636505,
0.013574850745499134,
0.015728343278169632,
0.013374323025345802,
-0.00679614394903183,
-0.03818744421005249,
-0.05049809813499451,
0.00992176029831171,
0.014516458846628666,
-0.00415441021323204,
-0.04170975461602211,
0.020854877308011055,
-0.01684432476758957,
0.01655660942196846,
0.02338326908648014,
-0.020296886563301086,
0.02866673842072487,
-0.043313976377248764,
0.0110813332721591,
-0.021953420713543892,
-0.03391532972455025,
-0.036234475672245026,
-0.010226910933852196,
0.015588846057653427,
0.036548346281051636,
0.030026838183403015,
-0.045127443969249725,
-0.0008767636027187109,
0.03340965136885643,
-0.0016151195159181952,
-0.011735227890312672,
0.058763325214385986,
-0.021709298714995384,
-0.02008764073252678,
-0.02305196225643158,
-0.025580355897545815,
-0.07163196802139282,
-0.07048111408948898,
-0.001047321129590273,
0.01739359460771084,
0.01553653459995985,
-0.07435216754674911,
-0.013583569787442684,
0.010941836051642895,
0.017219223082065582,
-0.04191900044679642,
-0.01984352059662342,
-0.004764711484313011,
0.01686176098883152,
-0.043627846986055374,
-0.02127336896955967,
0.13377811014652252,
0.02130824327468872,
-0.051893074065446854,
0.01862291805446148,
-0.014403117820620537,
-0.09437005966901779,
-0.03689708933234215,
0.0383618138730526,
-0.09841549396514893,
-0.04177950322628021,
0.036862216889858246,
-0.025196736678481102,
0.02749844640493393,
0.01314764004200697,
-0.01954708807170391,
-0.03808281943202019,
0.01124698668718338,
-0.06640081107616425,
0.0030427894089370966,
0.022005731239914894,
0.016739699989557266,
-0.008208556100726128,
-0.040663521736860275,
0.007341056130826473,
-0.02837030589580536,
-0.032956287264823914,
-0.0017121139680966735,
0.016704825684428215,
0.013383042067289352,
-0.013034298084676266,
0.023174023255705833,
0.010035102255642414,
-0.010514624416828156,
-0.02156980149447918,
-0.07135297358036041,
0.02012251503765583,
-0.004433405119925737,
-0.005056784488260746,
-0.0011530340416356921,
0.016059650108218193,
-0.055136390030384064,
0.047185029834508896,
-0.032363422214984894,
0.04289548471570015,
0.01834392175078392,
0.056043121963739395,
0.018204424530267715,
0.0325552299618721,
0.016661234200000763,
0.1124349907040596,
-0.04017528146505356,
0.04760352522134781,
-0.005418606102466583,
0.011159800924360752,
0.02894573286175728,
0.027446134015917778,
-0.08760443329811096,
0.033601462841033936,
-0.03340965136885643,
0.016417112201452255,
-0.05450865253806114,
-0.06005367636680603,
0.009093494154512882,
-0.009939197450876236,
-0.04477870091795921,
0.029747843742370605,
0.04575518146157265,
0.02045382186770439,
0.013069172389805317,
-0.058693576604127884,
0.021656988188624382,
-0.009546861052513123,
-0.023139148950576782,
0.006233794614672661,
-0.06120453029870987,
0.03292141109704971,
0.015728343278169632,
-0.006325339898467064,
0.0591818168759346,
-0.024063318967819214,
-0.034717440605163574,
-0.04812663793563843,
-0.00046753461356274784,
-0.007694159168750048,
-0.008178041316568851,
-0.007502350490540266,
0.002114259172230959,
0.01599862053990364,
-0.015283695422112942,
0.0592515654861927,
0.026556838303804398,
-0.082791768014431,
0.030253522098064423,
-0.0013644599821418524,
-0.025597792118787766,
0.0018843061989173293,
0.008138807490468025,
0.025911662727594376,
0.049521613866090775,
-0.06919076293706894,
-0.04533668980002403,
0.029085230082273483,
-0.006713317707180977,
-0.03490925207734108,
-0.07637488842010498,
0.04062864929437637,
0.07449167221784592,
0.001886485842987895,
-0.037455081939697266,
-0.03804794326424599,
0.037141211330890656,
-0.0011279680766165257,
0.013374323025345802,
0.0310730691999197,
-0.029468847438693047,
-0.022389350458979607,
-0.005518869962543249,
0.008042902685701847,
0.014725705608725548,
-0.008160604164004326,
0.004677525721490383,
-0.04756864905357361,
-0.03379327058792114,
0.02957347221672535,
-0.0015638978220522404,
-0.048056889325380325,
-0.045999303460121155,
-0.04491819813847542,
-0.04767327383160591,
0.021412868052721024,
-0.014080530032515526,
-0.03192749246954918,
0.025493169203400612,
0.004363656509667635,
-0.012450152076780796,
0.014376961626112461,
0.02043638378381729,
0.012057815678417683,
-0.017820807173848152,
-0.0473594032227993,
-0.025022365152835846,
-0.010688996873795986,
-0.06542433053255081,
-0.07456141710281372,
0.06294824928045273,
0.007541583850979805,
-0.0039626010693609715,
0.006783066317439079,
0.06326211988925934,
0.003252035705372691,
-0.05119558423757553,
0.07149247080087662,
0.03016633540391922,
0.03937317058444023,
-0.038850054144859314,
-0.006007111165672541,
-0.041849251836538315,
0.039477795362472534,
0.026539400219917297,
0.02871904894709587,
-0.07218995690345764,
0.013853846117854118,
0.011334172450006008,
0.0070533426478505135,
0.027672817930579185,
-0.0325203575193882,
-0.00768980011343956,
0.004590339958667755,
-0.06720292568206787,
0.03940804675221443,
0.006469196639955044,
0.005309623666107655,
-0.029747843742370605,
0.011935755610466003,
0.02397613413631916,
-0.006957438308745623,
-0.025562917813658714,
0.014751860871911049,
-0.013914876617491245,
-0.024063318967819214,
-0.02544085867702961,
0.03735045716166496,
0.016504298895597458,
-0.047812771052122116,
0.005671445280313492,
-0.03612985461950302,
-0.06441297382116318,
-0.030863823369145393,
0.06315749883651733,
-0.025789601728320122,
-0.10811056941747665,
0.08341950923204422,
0.034194327890872955,
-0.003609498031437397,
-0.029050355777144432,
-0.011709071695804596,
0.05708935484290123,
0.004444303456693888,
0.012206031940877438,
-0.01137776579707861,
0.06542433053255081,
0.03187518194317818,
-0.007415164262056351,
-0.03128231689333916,
-0.07560764998197556,
0.047743022441864014,
-0.04122151434421539,
0.013662037439644337,
0.007550302427262068,
-0.002798668807372451,
-0.012493745423853397,
-0.003908109851181507,
0.02868417464196682,
0.03049764223396778,
0.030096586793661118,
0.01360100694000721,
-0.03902442753314972,
0.036862216889858246,
0.01169163454324007,
-0.04711528122425079,
0.0015889637870714068,
0.062320511788129807,
-0.026835832744836807,
0.044534578919410706,
0.010226910933852196,
0.025004928931593895,
0.031195130199193954,
0.010471032001078129,
-0.04174462705850601,
0.05175357311964035,
0.010566935874521732,
-0.0251444261521101,
0.04861488193273544,
-0.0415005087852478,
0.03762945160269737,
-0.04282573610544205,
0.006547664292156696,
0.014333369210362434,
0.019041409716010094,
-0.0354672409594059,
0.03347939997911453,
0.005601696670055389,
0.02781231515109539,
-0.01447286643087864,
-0.01359228789806366,
-0.030619703233242035,
-0.02896316908299923,
-0.001638005836866796,
0.030898697674274445,
0.07156222313642502,
0.02510955184698105,
-0.027760004624724388,
-0.030951010063290596,
0.031177692115306854,
-0.027428697794675827,
0.053671665489673615,
0.0017644255422055721,
0.06950463354587555,
-0.039198800921440125,
0.09792724996805191,
0.004433405119925737,
0.006992312613874674,
-0.011682916432619095,
0.038536187261343,
-0.00843959953635931,
0.031840305775403976,
-0.1269427239894867,
-0.0325726680457592,
0.0068658930249512196,
0.023732014000415802,
0.010523343458771706,
-0.05946081131696701,
0.03867568448185921,
0.00946839340031147,
0.006120453123003244,
-0.051648952066898346,
-0.0295909084379673,
0.03783869743347168,
-0.03079407475888729,
-0.010279222391545773,
0.07449167221784592,
-0.043941713869571686,
-0.04767327383160591,
-0.08090855181217194,
0.0012870824430137873,
0.04024503007531166,
-0.0024499250575900078,
0.0413261353969574,
0.018727540969848633,
0.03606010600924492,
0.007933920249342918,
0.03762945160269737,
0.0740034282207489,
0.024691058322787285,
0.021639550104737282,
-0.00004563639231491834,
-0.021412868052721024,
0.05405528470873833,
0.0005994033417664468,
-0.004433405119925737,
-0.0009241710067726672,
0.013461509719491005,
0.08062955737113953,
0.010819775052368641,
0.0046600885689258575,
0.07463116943836212,
0.033549148589372635,
0.04519719257950783,
-0.02303452603518963,
-0.045999303460121155,
0.011473669670522213,
0.00035773482522927225,
-0.015397037379443645,
-0.012589650228619576,
-0.08453548699617386,
-0.02123849466443062,
-0.0620763897895813,
-0.022371912375092506,
0.009895604103803635,
-0.030009401962161064,
-0.03428151085972786,
0.021116435527801514,
0.006368933245539665,
-0.008788342587649822,
0.04293035715818405,
-0.005575540941208601,
0.023801762610673904,
-0.06354111433029175,
-0.00747619429603219,
0.011560855433344841,
0.0473942793905735,
0.019738897681236267,
0.04474382475018501,
0.05583387613296509,
0.06354111433029175,
-0.00687897065654397,
-0.023557640612125397,
0.009799700230360031,
-0.0002768153790384531,
0.006081219296902418,
-0.014743142761290073,
0.00042394164483994246,
0.038850054144859314,
0.0018287251004949212,
-0.014368243515491486,
-0.010837212204933167,
0.004324422683566809,
-0.03672271966934204,
0.03435125946998596,
0.009145805612206459,
-0.015920152887701988,
0.054543524980545044,
0.03135206550359726,
0.007742111571133137,
-0.02777744084596634,
-0.008548581972718239,
0.016338644549250603,
-0.027969250455498695,
0.024429500102996826,
-0.03220648691058159,
-0.02252884767949581,
-0.02899804338812828,
-0.0054578399285674095,
-0.12652423977851868,
-0.006599975749850273,
0.03752483054995537,
-0.017716184258461,
-0.025301359593868256,
-0.07463116943836212,
0.011587011627852917,
-0.011473669670522213,
0.0038841336499899626,
-0.011961910873651505,
0.015318569727241993,
-0.054927144199609756,
-0.03283422440290451,
0.009834574535489082,
-0.026452215388417244,
-0.0022319601848721504,
-0.021674424409866333,
-0.03288653865456581,
0.026155782863497734,
-0.006273028440773487,
0.019111158326268196,
0.060228049755096436,
-0.02690558135509491,
-0.03693196550011635,
-0.014036936685442924,
-0.03986141085624695,
-0.05729860067367554,
0.0022406787611544132,
-0.05178844928741455,
0.008953996002674103,
-0.003088562050834298,
0.0472547821700573,
0.007397727109491825,
-0.030270958319306374,
-0.02430744096636772,
0.0027528961654752493,
-0.038326941430568695,
-0.014725705608725548,
0.06298312544822693,
0.019111158326268196,
-0.11717790365219116,
-0.05946081131696701,
0.009381207637488842,
0.05747297406196594,
0.023139148950576782,
0.06179739534854889,
-0.03864080831408501,
0.01865779235959053,
-0.011447514407336712,
-0.03192749246954918,
-0.0010124467080458999,
0.08718594163656235,
0.03499643877148628,
0.017960304394364357,
-0.02397613413631916,
0.024638747796416283,
-0.03466513007879257,
-0.03644372522830963,
0.009241709485650063,
0.004036709200590849,
0.0770026221871376,
0.03511849790811539,
0.01198806706815958,
0.04027990624308586,
-0.01537088118493557,
-0.010610529221594334,
0.01627761498093605,
0.02634759247303009,
-0.025004928931593895,
0.029957089573144913,
-0.027690254151821136,
0.033566586673259735,
0.023854073137044907,
0.035083621740341187,
0.041012268513441086,
0.02481311932206154,
0.023732014000415802,
0.03679246827960014,
-0.019302967935800552,
0.047185029834508896,
0.02252884767949581,
0.03013146109879017,
-0.04376734420657158,
-0.035885732620954514,
0.07337568700313568,
-0.02631271630525589,
0.04648754373192787,
-0.0021600318141281605,
-0.007192840334028006,
0.05593850091099739,
0.006944360211491585,
0.03571136295795441,
0.04945186525583267,
-0.01982608251273632,
-0.03431638702750206,
-0.04889387637376785,
0.05994905158877373,
-0.014281056821346283,
0.0055537442676723,
-0.042686235159635544,
0.027760004624724388,
0.08118754625320435,
-0.022110354155302048,
0.064970962703228,
0.011569574475288391,
-0.004777789581567049,
0.05119558423757553,
-0.03724583610892296,
0.010863368399441242,
-0.016242740675807,
0.026853270828723907,
0.000990105327218771,
0.04994010552763939,
-0.006172764580696821,
0.0140456547960639,
0.0019704021979123354,
-0.020907189697027206,
0.06005367636680603,
0.02069794200360775,
-0.026103470474481583,
-0.027289200574159622,
-0.004803945310413837,
-0.02985246665775776,
0.016783293336629868,
-0.01214500144124031,
0.04251186549663544,
0.017794650048017502,
0.025022365152835846,
-0.029957089573144913,
-0.0021600318141281605,
0.01239784061908722,
0.011386483907699585,
0.013165077194571495,
0.015885278582572937,
-0.026120908558368683
] |
10,018
|
sentence_transformers.SentenceTransformer
|
_get_scheduler
|
Returns the correct learning rate scheduler. Available scheduler: constantlr, warmupconstant, warmuplinear, warmupcosine, warmupcosinewithhardrestarts
|
@staticmethod
def _get_scheduler(optimizer, scheduler: str, warmup_steps: int, t_total: int):
"""
Returns the correct learning rate scheduler. Available scheduler: constantlr, warmupconstant, warmuplinear, warmupcosine, warmupcosinewithhardrestarts
"""
scheduler = scheduler.lower()
if scheduler == "constantlr":
return transformers.get_constant_schedule(optimizer)
elif scheduler == "warmupconstant":
return transformers.get_constant_schedule_with_warmup(optimizer, num_warmup_steps=warmup_steps)
elif scheduler == "warmuplinear":
return transformers.get_linear_schedule_with_warmup(
optimizer, num_warmup_steps=warmup_steps, num_training_steps=t_total
)
elif scheduler == "warmupcosine":
return transformers.get_cosine_schedule_with_warmup(
optimizer, num_warmup_steps=warmup_steps, num_training_steps=t_total
)
elif scheduler == "warmupcosinewithhardrestarts":
return transformers.get_cosine_with_hard_restarts_schedule_with_warmup(
optimizer, num_warmup_steps=warmup_steps, num_training_steps=t_total
)
else:
raise ValueError("Unknown scheduler {}".format(scheduler))
|
(optimizer, scheduler: str, warmup_steps: int, t_total: int)
|
[
0.048255398869514465,
-0.01573466695845127,
-0.01975897140800953,
-0.024907181039452553,
-0.03373527154326439,
-0.008887005969882011,
-0.04499245062470436,
-0.018254389986395836,
-0.05757293105125427,
0.025179093703627586,
-0.006358219776302576,
0.012018530629575253,
0.03872033581137657,
0.04089563339948654,
-0.012072913348674774,
0.052968546748161316,
0.008837155066430569,
0.013640942052006721,
0.012109167873859406,
-0.03901037573814392,
0.018870724365115166,
-0.05594145879149437,
-0.02320319600403309,
0.0515546016395092,
-0.0008842819952405989,
0.06848568469285965,
0.012671120464801788,
-0.03163248300552368,
-0.054853808134794235,
0.006675451062619686,
0.001981562003493309,
-0.02139044739305973,
-0.016622915863990784,
-0.004479757975786924,
0.013341838493943214,
0.020683474838733673,
-0.03814025595784187,
0.011900702491402626,
-0.08418409526348114,
-0.01157440710812807,
0.04738527908921242,
-0.04691396281123161,
0.03373527154326439,
-0.025994831696152687,
-0.02070160210132599,
-0.009471617639064789,
-0.041983284056186676,
0.005714693572372198,
0.014955185353755951,
-0.0432884655892849,
0.041947029531002045,
-0.08055859804153442,
0.028170131146907806,
0.0128886504098773,
-0.057355403900146484,
0.029783478006720543,
0.017601799219846725,
0.03930041566491127,
0.06351874768733978,
-0.032067544758319855,
0.037197623401880264,
-0.026375507935881615,
-0.038502804934978485,
0.07414146512746811,
0.03146933391690254,
-0.05057571828365326,
-0.06790560483932495,
-0.01180100068449974,
-0.0128886504098773,
0.04241834580898285,
0.008728389628231525,
-0.021444829180836678,
-0.01631474681198597,
-0.025106584653258324,
-0.027680689468979836,
-0.011365940794348717,
-0.09999127686023712,
-0.09607573598623276,
-0.016695424914360046,
-0.02320319600403309,
0.038466550409793854,
0.020103394985198975,
-0.004921615589410067,
-0.05285978317260742,
0.01950518786907196,
-0.043542247265577316,
-0.001938509289175272,
-0.05053946375846863,
-0.037270136177539825,
-0.05503508076071739,
-0.017121421173214912,
-0.05474504083395004,
0.026375507935881615,
0.025559771806001663,
0.012190742418169975,
0.02090100385248661,
-0.040678102523088455,
-0.051699623465538025,
-0.01141125988215208,
-0.06431636214256287,
0.02737252041697502,
0.045717548578977585,
0.003618701593950391,
0.020810367539525032,
0.04462989792227745,
-0.01946893148124218,
-0.039445433765649796,
-0.005696566309779882,
0.01851723901927471,
-0.010015442036092281,
-0.07022592425346375,
0.008551646955311298,
-0.06486018747091293,
-0.017057975754141808,
-0.022260567173361778,
-0.002689667511731386,
-0.013577495701611042,
0.05148209258913994,
-0.015100205317139626,
-0.00975259393453598,
0.016486959531903267,
0.06660042703151703,
0.015553392469882965,
-0.022876901552081108,
-0.007328040897846222,
-0.03377152606844902,
0.0018739301012828946,
0.047566551715135574,
0.03295579180121422,
-0.01638725772500038,
0.018064051866531372,
-0.007822015322744846,
-0.026302998885512352,
0.040678102523088455,
0.004049229901283979,
0.002144709462299943,
-0.00573735311627388,
0.0848366916179657,
-0.05035818740725517,
0.00421011121943593,
0.03065359778702259,
0.015263352543115616,
0.03291953727602959,
-0.03228507190942764,
0.03529423847794533,
0.017230186611413956,
0.011057773604989052,
0.05869683623313904,
-0.007831078954041004,
0.02951156534254551,
0.02853268012404442,
0.005624056328088045,
-0.016795126721262932,
0.0017164474120363593,
0.029529692605137825,
-0.03995300456881523,
0.00801235344260931,
-0.009199704974889755,
-0.014946121722459793,
-0.023094432428479195,
-0.029294036328792572,
0.03132431581616402,
-0.0704071968793869,
-0.07338011264801025,
0.02110040746629238,
0.02860519103705883,
0.0014286733930930495,
0.06863070279359818,
-0.00621773162856698,
0.007074255961924791,
-0.04245460033416748,
-0.04437611252069473,
-0.0549263171851635,
0.031251806765794754,
0.04191077500581741,
0.06848568469285965,
-0.000775517022702843,
0.03893786296248436,
0.02470777928829193,
0.03032730333507061,
-0.0052479105070233345,
-0.000022287616957328282,
-0.06457014381885529,
-0.07642553001642227,
-0.021607976406812668,
0.04767531901597977,
-0.021589849144220352,
0.017683373764157295,
-0.055470142513513565,
0.04372352361679077,
0.019613951444625854,
0.004402716178447008,
-0.006525899283587933,
-0.0031972373835742474,
-0.012634865939617157,
-0.012752694077789783,
-0.013378093019127846,
0.0443398579955101,
0.003722934750840068,
0.04560878500342369,
0.03311893716454506,
0.07356138527393341,
0.04767531901597977,
0.03868408128619194,
0.017574608325958252,
-0.036490652710199356,
-0.019414549693465233,
0.027771325781941414,
-0.06380879133939743,
0.010332673788070679,
-0.025034073740243912,
-0.0271731186658144,
0.009788848459720612,
0.07896337658166885,
0.017076103016734123,
0.00593222351744771,
0.008025949820876122,
0.03166873753070831,
0.022713754326105118,
-0.011773809790611267,
0.03558427840471268,
-0.01659572310745716,
0.04234583303332329,
-0.017157675698399544,
0.07918091118335724,
-0.025106584653258324,
0.03123367764055729,
-0.04125818610191345,
-0.035838063806295395,
-0.006389942951500416,
0.012625802308321,
-0.09245023876428604,
0.013940045610070229,
0.0016314748208969831,
0.06221356987953186,
-0.012852395884692669,
0.014737655408680439,
0.03640001639723778,
-0.020302796736359596,
-0.0077948239631950855,
-0.005048507824540138,
0.039735473692417145,
-0.017919031903147697,
-0.04325220733880997,
0.012535164132714272,
0.0003656656190287322,
0.05996576324105263,
0.008528987877070904,
-0.101006418466568,
-0.02275000885128975,
0.007967035286128521,
-0.013169626705348492,
-0.019414549693465233,
-0.0021469753701239824,
-0.07232871651649475,
-0.05837054178118706,
-0.01803685910999775,
0.013568432070314884,
0.027970729395747185,
0.009041089564561844,
-0.026919333264231682,
0.009861358441412449,
-0.10086139291524887,
0.03507670760154724,
-0.05035818740725517,
-0.014121320098638535,
-0.01335996575653553,
0.007858269847929478,
-0.027934473007917404,
0.006113498471677303,
0.10318171232938766,
0.010359864681959152,
-0.0509745217859745,
0.022641245275735855,
0.008524456061422825,
-0.021825507283210754,
-0.059820741415023804,
-0.016332875937223434,
0.040351808071136475,
-0.03344523161649704,
0.06152472645044327,
0.016332875937223434,
-0.03669005632400513,
-0.01483735628426075,
-0.02438148483633995,
-0.02236933261156082,
-0.01930578425526619,
-0.0015170449623838067,
0.035838063806295395,
0.02720937319099903,
0.007980630733072758,
-0.01815468817949295,
0.04397730901837349,
-0.031995031982660294,
0.09716338664293289,
0.050756994634866714,
0.028460171073675156,
-0.040061768144369125,
0.05463627725839615,
0.013822216540575027,
0.07562792301177979,
0.019940247759222984,
-0.005787203554064035,
0.0012643929803743958,
-0.026212360709905624,
0.008143777959048748,
-0.015852496027946472,
0.008447414264082909,
0.033300213515758514,
0.01225418783724308,
0.010803988203406334,
-0.022224312648177147,
0.03810400143265724,
-0.02236933261156082,
0.009535063989460468,
-0.016740743070840836,
-0.0232757069170475,
0.0404968298971653,
0.05021316930651665,
0.023583874106407166,
-0.05115579813718796,
0.08070361614227295,
0.04615261033177376,
-0.012671120464801788,
-0.008325053378939629,
-0.04629762843251228,
-0.01014233473688364,
-0.015218034386634827,
-0.04963308945298195,
0.003802242688834667,
-0.023710766807198524,
-0.04774782806634903,
0.029620330780744553,
0.02545100636780262,
-0.011547216214239597,
0.040134280920028687,
0.017601799219846725,
0.06029205769300461,
0.0004412912530824542,
0.0018693981692194939,
0.09716338664293289,
0.06257612258195877,
-0.008674007840454578,
0.04125818610191345,
0.0037659876979887486,
-0.021589849144220352,
0.039409179240465164,
0.039771728217601776,
0.035638660192489624,
-0.011946020647883415,
-0.05775420740246773,
-0.018743831664323807,
-0.005379335023462772,
0.06591158360242844,
0.032520730048418045,
0.021535467356443405,
-0.01397630013525486,
-0.06881198287010193,
0.05913189798593521,
-0.043505992740392685,
-0.012517036870121956,
0.001000411226414144,
-0.028224512934684753,
0.025233477354049683,
-0.0012689247960224748,
-0.021426701918244362,
-0.002671540016308427,
-0.011112156324088573,
0.06547652184963226,
-0.07947094738483429,
-0.023783275857567787,
-0.02070160210132599,
0.03919164836406708,
0.0055696736089885235,
-0.015190842561423779,
0.005229783244431019,
0.012707375921308994,
-0.011882574297487736,
-0.004037899896502495,
0.019813355058431625,
0.05032193288207054,
0.04172949865460396,
0.020846622064709663,
0.030146028846502304,
0.06583907455205917,
-0.033626507967710495,
-0.020175904035568237,
-0.0005188996437937021,
0.05289603769779205,
-0.0715673565864563,
0.01483735628426075,
-0.006031924858689308,
-0.007024405058473349,
-0.01461076270788908,
-0.026574911549687386,
0.022804392501711845,
-0.014012555591762066,
0.05815301090478897,
-0.030961764976382256,
-0.035221729427576065,
0.001166957663372159,
-0.0038974119815975428,
-0.024653397500514984,
0.014909866265952587,
0.0003268614527769387,
-0.015172715298831463,
0.09390043467283249,
0.046623922884464264,
-0.0224599689245224,
0.07298130542039871,
-0.010269227437675,
-0.05561516061425209,
-0.040061768144369125,
-0.014873611740767956,
-0.07693310081958771,
-0.006031924858689308,
0.004563597496598959,
0.04553627222776413,
0.0290946327149868,
0.03377152606844902,
0.010631777346134186,
0.011402196250855923,
0.006231327075511217,
0.01700359210371971,
0.10492195188999176,
-0.0036957436241209507,
-0.030345430597662926,
-0.010151398368179798,
-0.05811675637960434,
-0.0027077950071543455,
0.000134752452140674,
-0.037270136177539825,
-0.06428010761737823,
-0.03872033581137657,
0.02110040746629238,
-0.016740743070840836,
0.023493235930800438,
0.05695659667253494,
-0.012970224022865295,
-0.0315418466925621,
0.06620161980390549,
-0.03224881738424301,
0.0024744034744799137,
0.008397563360631466,
-0.055180102586746216,
-0.039155393838882446,
-0.0024200209882110357,
0.032810769975185394,
-0.04999563843011856,
-0.039409179240465164,
-0.0128886504098773,
0.025632280856370926,
-0.01631474681198597,
0.06250361353158951,
0.049524322152137756,
-0.016006579622626305,
0.059349425137043,
-0.013078989461064339,
-0.053331099450588226,
-0.013187753967940807,
0.020846622064709663,
0.009009365923702717,
0.01741146109998226,
0.02840578928589821,
-0.012281379662454128,
0.04484742879867554,
0.040351808071136475,
0.018798215314745903,
0.013387156650424004,
-0.0034442245960235596,
0.002367904409766197,
-0.02847829833626747,
0.025469133630394936,
-0.06221356987953186,
-0.009906677529215813,
0.024979691952466965,
-0.04209204763174057,
-0.005021316930651665,
0.03529423847794533,
0.004316610284149647,
0.020502200350165367,
-0.019650207832455635,
0.0432884655892849,
0.06888449192047119,
-0.0025265200529247522,
-0.03716136887669563,
-0.06025580316781998,
-0.017964350059628487,
-0.0349135585129261,
0.006784216035157442,
-0.06652791798114777,
0.02430897392332554,
0.09774346649646759,
0.010686160065233707,
-0.06286615878343582,
0.006371815223246813,
0.027082480490207672,
0.027680689468979836,
0.04669643193483353,
0.058624327182769775,
0.04473866522312164,
0.008157373405992985,
-0.03835778310894966,
0.032230690121650696,
0.05532512068748474,
-0.026774313300848007,
-0.05057571828365326,
-0.018299708142876625,
-0.05619524046778679,
0.046551413834095,
0.009335661306977272,
0.006167881190776825,
-0.0039404649287462234,
0.045717548578977585,
-0.04709523916244507,
-0.03868408128619194,
0.009843231178820133,
0.0006157684256322682,
0.04180200770497322,
0.030798617750406265,
0.01684044487774372,
0.03348148614168167,
0.012290443293750286,
-0.05565141886472702,
0.031704992055892944,
0.017348015680909157,
0.0037048072554171085,
-0.012743630446493626,
0.040061768144369125,
0.017320822924375534,
0.021952399984002113,
-0.02204303629696369,
-0.006734365131705999,
0.05775420740246773,
0.04053308442234993,
0.027735071256756783,
-0.03291953727602959,
-0.03094363771378994,
-0.026919333264231682,
-0.04180200770497322,
-0.0026783377397805452,
-0.0230400487780571,
0.027880091220140457,
-0.0012066115159541368,
0.012961160391569138,
-0.00842022243887186,
-0.024562759324908257,
0.054563768208026886,
-0.0031156635377556086,
-0.007785760331898928,
-0.014728591777384281,
0.017320822924375534,
-0.016749808564782143,
0.022641245275735855,
-0.010686160065233707,
-0.021118534728884697,
-0.004053761716932058,
0.062104806303977966,
0.015689348801970482,
0.03893786296248436,
-0.05126456171274185,
-0.015100205317139626,
0.02463526837527752,
-0.019867736846208572,
-0.023583874106407166,
-0.013187753967940807,
-0.033427104353904724,
0.05652153864502907,
-0.00915891770273447,
0.00870573054999113,
0.023311961442232132,
-0.05220719426870346,
0.026248617097735405,
-0.08280640840530396,
-0.07439524680376053,
0.034442245960235596,
0.0001240600540768355,
-0.015743732452392578,
-0.01905200071632862,
-0.030508577823638916,
0.03315519168972969,
-0.009716338478028774,
-0.011030581779778004,
-0.05561516061425209,
-0.030182283371686935,
-0.03262949362397194,
-0.02778945304453373,
0.002299926243722439,
-0.053258586674928665,
0.012181677855551243,
-0.04557253047823906,
0.056412771344184875,
0.006874853279441595,
0.012861459515988827,
-0.0008644550107419491,
0.01803685910999775,
-0.028496425598859787,
0.016505086794495583,
0.014556380920112133,
0.025596026331186295,
-0.045681294053792953,
0.025759173557162285,
0.03364463523030281,
0.011021518148481846,
0.058007992804050446,
-0.014456679113209248,
-0.02561415359377861,
-0.04172949865460396,
0.008442881517112255,
-0.022641245275735855,
0.01335996575653553,
0.01456544455140829,
0.04140320420265198,
-0.008442881517112255,
0.050104402005672455,
-0.018082179129123688,
-0.04629762843251228,
-0.028804592788219452,
0.03795897960662842,
-0.10354426503181458,
-0.014393232762813568,
0.03656316176056862,
-0.03237571194767952,
-0.02122730016708374,
-0.05681157857179642,
0.0014105458976700902,
0.03253885731101036,
-0.09223270416259766,
0.02126355469226837,
-0.08382155001163483,
0.014927994459867477,
-0.04691396281123161,
0.04230957850813866,
-0.1057920753955841,
-0.006707174237817526,
0.017348015680909157,
0.021607976406812668,
0.051047034561634064,
-0.021172916516661644,
-0.054237473756074905,
0.013387156650424004,
0.08896975964307785,
-0.008506327867507935,
-0.03368088975548744,
-0.022895028814673424,
-0.0404968298971653,
-0.03431535139679909,
0.016405384987592697,
0.06449763476848602,
0.06123468652367592,
-0.03462351858615875,
0.03146933391690254,
-0.00952600035816431,
0.06475142389535904,
-0.015625903382897377,
-0.0022965273819863796,
-0.009671020321547985,
-0.038502804934978485,
0.03930041566491127,
-0.0699358880519867,
-0.014873611740767956,
0.018209071829915047,
0.004393652081489563,
0.018780088052153587,
-0.04169324412941933,
-0.016287555918097496,
-0.037560176104307175,
0.016097217798233032,
0.011420323513448238,
-0.020810367539525032,
-0.01983148232102394,
-0.034768540412187576,
0.02853268012404442,
-0.01676793582737446,
-0.0069609591737389565,
0.044484879821538925,
-0.05159085616469383,
-0.057681698352098465,
0.021535467356443405,
-0.03861156851053238,
0.031487464904785156,
0.03529423847794533,
-0.04615261033177376,
0.0006792146596126258,
-0.03339084982872009,
-0.013006479479372501,
0.0016699957195669413,
-0.03132431581616402,
0.04466615244746208,
-0.01422102190554142,
-0.01917889155447483,
0.034115951508283615,
-0.020828494802117348,
0.03357212617993355,
0.029946625232696533,
-0.031016148626804352,
-0.059204407036304474,
-0.0036390952300280333,
-0.02197052724659443,
-0.008393031544983387,
0.0029366544913500547,
-0.008433817885816097,
-0.051735877990722656,
-0.011628789827227592,
-0.01704891212284565,
0.047602809965610504,
-0.009888550266623497,
0.00004425658698892221,
-0.0030454194638878107,
-0.041330695152282715,
0.05068448185920715,
-0.0240914449095726,
0.027426904067397118,
0.012707375921308994,
0.0012779885437339544,
-0.041983284056186676,
-0.007183020934462547,
0.032194435596466064,
-0.002287463517859578,
0.025523517280817032,
-0.0019045202061533928,
-0.0002090327034238726,
0.041040655225515366,
-0.0018750630551949143,
-0.014909866265952587,
0.0128886504098773,
-0.012671120464801788,
-0.022115547209978104,
0.02516096644103527,
-0.01311524398624897,
0.04122192785143852,
0.019360167905688286,
-0.003000100841745734,
-0.011492833495140076,
0.05960321053862572,
0.012979288585484028,
0.013831280171871185,
-0.02307630516588688,
0.010921817272901535,
0.04332472011446953,
0.023819532245397568,
0.0699358880519867,
-0.03400718420743942,
-0.00458852294832468,
-0.008406626991927624,
0.022441841661930084,
-0.02278626523911953,
-0.03824901953339577,
0.05695659667253494,
-0.013731579296290874,
0.029149016365408897,
-0.06362751871347427,
0.012136359699070454,
0.015616838820278645,
0.026937460526823997,
-0.08186377584934235,
0.018943235278129578,
0.012589546851813793,
-0.028804592788219452,
-0.045427508652210236,
0.0021968260407447815,
-0.037070732563734055,
0.037197623401880264,
0.02122730016708374,
0.04365101456642151,
-0.026828696951270103,
-0.007377891335636377,
0.008741986006498337
] |
10,019
|
sentence_transformers.SentenceTransformer
|
_last_module
|
Returns the last module of this sequential embedder
|
def _last_module(self):
"""Returns the last module of this sequential embedder"""
return self._modules[next(reversed(self._modules))]
|
(self)
|
[
-0.00982721708714962,
0.031995989382267,
-0.04111578315496445,
0.07364020496606827,
-0.0051352111622691154,
-0.0026975839864462614,
-0.013534797355532646,
0.040570300072431564,
0.004193400498479605,
-0.028569672256708145,
0.0013072415022179484,
-0.06450336426496506,
-0.03835427388548851,
0.019637389108538628,
0.010901137255132198,
0.03393927216529846,
0.020302195101976395,
0.0185293760150671,
-0.03260965645313263,
-0.05741208791732788,
0.00032974022906273603,
0.06133274734020233,
0.0029404943343251944,
-0.03051295503973961,
-0.02991633303463459,
0.03206417337059975,
0.02749575302004814,
-0.01722533069550991,
-0.031450506299734116,
-0.044320493936538696,
-0.06194641441106796,
-0.07282198220491409,
0.011898348107933998,
-0.03869520127773285,
-0.002601698273792863,
0.04350227117538452,
-0.040229372680187225,
0.01130172610282898,
-0.057616643607616425,
-0.03288239613175392,
0.07841318100690842,
-0.045888759195804596,
0.03312104567885399,
-0.0016492337454110384,
0.003300598356872797,
0.025092218071222305,
0.04534327611327171,
0.0023737032897770405,
-0.00528010493144393,
0.010611348785459995,
0.0632760301232338,
0.005689217243343592,
0.02434217929840088,
-0.024563781917095184,
-0.0449000708758831,
0.04442277178168297,
0.009111271239817142,
-0.030376585200428963,
-0.024904709309339523,
0.023114843294024467,
0.01421665120869875,
-0.03206417337059975,
0.03324037045240402,
0.005582677666097879,
0.07391294836997986,
0.047968413680791855,
0.003696925938129425,
0.0013764923205599189,
-0.021631810814142227,
0.045002348721027374,
-0.03363243490457535,
-0.027188919484615326,
0.007662331685423851,
0.004018675535917282,
-0.02313188835978508,
-0.080663301050663,
-0.024989940226078033,
0.029762916266918182,
-0.02877422794699669,
-0.013620029203593731,
-0.014080280438065529,
0.03416087478399277,
-0.01474508736282587,
0.05199135094881058,
0.008553002960979939,
-0.08741365373134613,
0.016228118911385536,
0.008297308348119259,
-0.07704947143793106,
-0.05659386143088341,
-0.06453745812177658,
0.006038667168468237,
-0.0015000782441347837,
0.06450336426496506,
0.04350227117538452,
-0.06395788490772247,
-0.03351311385631561,
0.010781812481582165,
-0.018222542479634285,
-0.06757170706987381,
-0.013253532350063324,
0.011830163188278675,
-0.021154513582587242,
0.019330553710460663,
0.04285451024770737,
0.019160090014338493,
-0.021512486040592194,
-0.0010350326774641871,
-0.04094531759619713,
-0.017983892932534218,
-0.045513737946748734,
0.01634744368493557,
-0.03467226400971413,
0.0035200701095163822,
0.034058596938848495,
-0.021597716957330704,
0.007662331685423851,
0.028552625328302383,
0.062491897493600845,
0.03917250037193298,
0.003669225610792637,
0.03869520127773285,
-0.07691310346126556,
-0.038047440350055695,
0.00434468686580658,
0.0024269733112305403,
0.012469400651752949,
-0.0316380150616169,
0.007926549762487411,
-0.06740124523639679,
0.035013191401958466,
0.016679847612977028,
-0.047968413680791855,
0.0013743614545091987,
-0.004926393274217844,
0.007862626574933529,
0.019773758947849274,
0.02190455235540867,
-0.063991978764534,
0.026404786854982376,
-0.012895558960735798,
0.05495741218328476,
0.04984350875020027,
0.0624237135052681,
0.01669689454138279,
-0.019961269572377205,
-0.023898974061012268,
0.05165042355656624,
-0.017336132004857063,
-0.002516466425731778,
0.027274150401353836,
-0.06879904121160507,
0.04585466533899307,
0.02175113558769226,
-0.011242063716053963,
-0.002865916583687067,
-0.018120262771844864,
0.024819476529955864,
-0.045275088399648666,
-0.09116385132074356,
-0.019688528031110764,
0.03211531043052673,
-0.02069426141679287,
-0.030308399349451065,
-0.03400745615363121,
-0.013730830512940884,
0.05349142849445343,
-0.013023407198488712,
-0.039445240050554276,
0.07159464806318283,
0.007794440723955631,
0.005552846472710371,
-0.013620029203593731,
-0.011761977337300777,
-0.09505041688680649,
0.07343564927577972,
-0.012367122806608677,
0.02626841701567173,
-0.010849998332560062,
0.04179763421416283,
0.01477918028831482,
0.016807695850729942,
-0.04670698195695877,
-0.030632279813289642,
0.04841161519289017,
-0.00217447429895401,
-0.006379594095051289,
-0.015171246603131294,
0.017165668308734894,
-0.007658069953322411,
-0.016466768458485603,
0.052911851555109024,
0.05253683403134346,
-0.025433145463466644,
-0.015307617373764515,
-0.0061579919420182705,
-0.0019251714693382382,
0.056321121752262115,
0.06020768731832504,
0.0013189609162509441,
-0.023506907746195793,
-0.013193869963288307,
0.007364020682871342,
-0.023251213133335114,
-0.05151405185461044,
0.016321875154972076,
-0.00006658727943431586,
0.01566559076309204,
-0.08864098787307739,
0.016245165839791298,
0.0013850154355168343,
-0.02781963348388672,
0.030240213498473167,
0.016594616696238518,
0.008212076500058174,
-0.04841161519289017,
-0.0020988311152905226,
-0.0020892424508929253,
0.05724162235856056,
0.026745714247226715,
-0.014242220669984818,
-0.0007862626225687563,
0.008812960237264633,
-0.003036380046978593,
-0.03559276461601257,
-0.04363863915205002,
0.0017216807464137673,
0.023898974061012268,
-0.006264531519263983,
-0.009477767162024975,
0.06116228178143501,
0.005437783896923065,
-0.05233227461576462,
-0.020574936643242836,
0.07193557173013687,
0.04776385426521301,
-0.05424146726727486,
0.0260127205401659,
0.006396640557795763,
0.03651326894760132,
-0.0007820010068826377,
0.05141177400946617,
0.010423839092254639,
0.030223168432712555,
-0.008736250922083855,
0.021768180653452873,
0.03424610570073128,
-0.0016961112851276994,
-0.0009828283218666911,
-0.0026762760244309902,
0.030751604586839676,
-0.017276469618082047,
0.0004610503383446485,
-0.010031773708760738,
-0.0034305767621845007,
-0.044150032103061676,
0.024291040375828743,
-0.006903769448399544,
0.02321712113916874,
0.009452197700738907,
0.011949487030506134,
-0.02094995602965355,
-0.020574936643242836,
-0.0012901951558887959,
-0.04329771548509598,
0.02686503902077675,
0.014983735978603363,
0.02130793035030365,
0.025194495916366577,
0.03920659050345421,
0.09886879473924637,
0.005676432512700558,
-0.08257248997688293,
-0.06801491230726242,
0.0046621751971542835,
-0.04626377671957016,
0.02304665744304657,
-0.014063233509659767,
-0.003954751882702112,
0.017199760302901268,
0.04507053270936012,
-0.021785227581858635,
-0.03593369200825691,
0.0063625480979681015,
-0.02625137008726597,
0.03397336229681969,
-0.00939253531396389,
-0.05932127684354782,
0.01730204001069069,
0.025791117921471596,
0.059355370700359344,
0.0027700308710336685,
-0.003017202951014042,
0.0011761977802962065,
0.020557891577482224,
-0.04541146010160446,
-0.03651326894760132,
-0.001363707473501563,
0.05853714421391487,
0.0120432423427701,
-0.03242214769124985,
-0.03610415756702423,
-0.039002034813165665,
-0.009929494932293892,
-0.10650555789470673,
-0.014549054205417633,
0.03417791798710823,
0.0025612132158130407,
0.0008672327385284007,
-0.000876288628205657,
0.007892456836998463,
0.036035969853401184,
0.056866604834795,
0.00304277241230011,
-0.021290883421897888,
-0.027853725478053093,
0.04912756383419037,
0.017728198319673538,
0.033342648297548294,
0.0473206527531147,
-0.06825356185436249,
0.04704790934920311,
0.036649640649557114,
0.0076964241452515125,
0.009494813159108162,
-0.025433145463466644,
0.0017216807464137673,
0.0028744398150593042,
0.003701187437400222,
-0.03366652876138687,
-0.04980941861867905,
-0.04237721115350723,
-0.020574936643242836,
0.024393318220973015,
0.026200231164693832,
0.02018287219107151,
0.0020924387499690056,
-0.023523954674601555,
0.042581766843795776,
-0.07064004987478256,
0.004231754690408707,
-0.08714091032743454,
-0.032916489988565445,
0.02262049913406372,
0.006358286365866661,
0.03279716521501541,
0.08161789178848267,
0.01330467127263546,
-0.011284680105745792,
-0.01800093986093998,
0.016330396756529808,
0.01781342923641205,
-0.027103686705231667,
0.0362064354121685,
-0.019535109400749207,
0.011276156641542912,
-0.016543477773666382,
0.026728667318820953,
-0.023097796365618706,
0.043706826865673065,
0.0544460229575634,
-0.0012443831656128168,
-0.048752542585134506,
0.05192316323518753,
-0.05911672115325928,
-0.005957697052508593,
-0.029541313648223877,
0.0041358694434165955,
0.08734546601772308,
-0.05072991922497749,
-0.040399834513664246,
-0.017242377623915672,
0.046843353658914566,
0.06365104764699936,
-0.047695670276880264,
0.024205807596445084,
-0.0046621751971542835,
0.03607006371021271,
-0.011548898182809353,
-0.0803905576467514,
-0.0032963368576020002,
-0.02260345220565796,
-0.0356268584728241,
-0.034297242760658264,
-0.016194026917219162,
0.030291352421045303,
0.034399520605802536,
-0.07950414717197418,
-0.023881927132606506,
-0.025433145463466644,
0.022040922194719315,
-0.04738883674144745,
-0.07514028251171112,
-0.017063390463590622,
-0.03668373078107834,
0.01774524338543415,
-0.0018122394103556871,
0.014012094587087631,
-0.028382163494825363,
-0.06443518400192261,
0.0481729693710804,
0.04721837118268013,
0.029029924422502518,
0.02686503902077675,
0.00615373020991683,
-0.04616149887442589,
0.058230310678482056,
0.013066022656857967,
-0.01851232908666134,
-0.05932127684354782,
-0.027700308710336685,
-0.003379437606781721,
-0.09600500762462616,
-0.057787105441093445,
0.06873086094856262,
-0.012094381265342236,
0.03654736280441284,
-0.011847209185361862,
0.06235552579164505,
0.005207658279687166,
0.030853882431983948,
0.06341239809989929,
0.01591276191174984,
-0.018410051241517067,
-0.003946228418499231,
0.02314893528819084,
-0.05741208791732788,
0.012512016110122204,
-0.09089110791683197,
0.03869520127773285,
-0.057343900203704834,
0.004449095577001572,
0.005049979314208031,
0.008028827607631683,
0.015512173064053059,
-0.00856152642518282,
0.007687901146709919,
0.009239118546247482,
-0.022654591128230095,
0.02079653926193714,
0.06951498985290527,
0.02164885774254799,
-0.04155898839235306,
0.011966533958911896,
0.06017359346151352,
-0.008629711344838142,
0.0006845172611065209,
0.03105843812227249,
0.017148621380329132,
0.017762290313839912,
-0.06351467967033386,
-0.027546891942620277,
0.05079810693860054,
-0.0003558424359653145,
0.03832018002867699,
-0.07479935884475708,
-0.04207037761807442,
-0.01687587983906269,
0.042581766843795776,
-0.03907021880149841,
-0.050661735236644745,
0.061878230422735214,
0.07391294836997986,
-0.01583605445921421,
0.052911851555109024,
-0.023592140525579453,
0.02113746665418148,
-0.04957076907157898,
-0.04063848406076431,
0.026677528396248817,
0.05836668238043785,
0.014463823288679123,
-0.011028984561562538,
-0.05567336082458496,
-0.018989626318216324,
-0.010952276177704334,
0.02964359149336815,
0.014932597056031227,
0.04957076907157898,
-0.06286691874265671,
-0.02338758483529091,
-0.035695046186447144,
-0.003562685800716281,
0.013193869963288307,
-0.028416255488991737,
0.04186582192778587,
-0.04455914348363876,
-0.026575250551104546,
0.02775144763290882,
-0.02442741021513939,
-0.01783047616481781,
0.018393004313111305,
-0.004201923962682486,
0.06692394614219666,
-0.0008075705263763666,
-0.003464669454842806,
0.015861622989177704,
-0.006562842521816492,
0.05707116052508354,
0.02860376611351967,
0.0292174331843853,
0.02451264299452305,
0.019790805876255035,
-0.059355370700359344,
-0.002910663140937686,
-0.015171246603131294,
-0.029933379963040352,
-0.022842101752758026,
-0.0108329514041543,
0.04322952777147293,
0.039888445287942886,
0.014583147130906582,
-0.021802274510264397,
0.009750508703291416,
-0.02260345220565796,
0.010074389167129993,
0.0004530598525889218,
0.055025599896907806,
0.099482461810112,
0.04950258135795593,
-0.013415472581982613,
0.009648230858147144,
-0.013202393427491188,
-0.025961581617593765,
-0.029899287968873978,
0.01521386206150055,
-0.10786926746368408,
-0.019347600638866425,
-0.013637075200676918,
0.08175426721572876,
0.037092845886945724,
0.025961581617593765,
0.03346197307109833,
0.041354428976774216,
-0.027274150401353836,
0.0029404943343251944,
-0.007334189489483833,
-0.00020149310876149684,
-0.009759032167494297,
-0.04554783180356026,
-0.031245948746800423,
-0.05093447491526604,
0.07220831513404846,
-0.023097796365618706,
-0.006405163556337357,
-0.0205237977206707,
-0.003901482094079256,
0.061980508267879486,
-0.029779963195323944,
0.03417791798710823,
-0.030734557658433914,
-0.002652837196364999,
-0.0015640020137652755,
-0.06811719387769699,
0.048479802906513214,
0.01737874746322632,
0.027427567169070244,
0.04537736624479294,
-0.003102434566244483,
-0.0009375489316880703,
-0.01142957340925932,
0.02113746665418148,
-0.008173721842467785,
-0.007381067145615816,
-0.0003651646547950804,
-0.003767241956666112,
0.025637701153755188,
0.012793281115591526,
0.0036116940900683403,
0.030751604586839676,
-0.0005308337858878076,
-0.005118164699524641,
0.03133118152618408,
-0.02923448011279106,
0.05898034945130348,
0.07173101603984833,
0.030734557658433914,
0.03358129784464836,
0.02279096283018589,
0.003353868145495653,
0.039956629276275635,
-0.010466455481946468,
0.09041380882263184,
-0.047627486288547516,
-0.017421362921595573,
0.009673800319433212,
-0.013671168126165867,
0.021290883421897888,
-0.0011506282025948167,
0.012827374041080475,
-0.003532854840159416,
0.04009300097823143,
0.0173190850764513,
-0.016407106071710587,
0.058230310678482056,
-0.0010595368221402168,
-0.04541146010160446,
0.03699056804180145,
-0.006818537600338459,
0.0818224549293518,
0.01601503975689411,
0.015120106749236584,
0.030836835503578186,
0.025024032220244408,
0.036410991102457047,
-0.030836835503578186,
-0.02671162039041519,
-0.044047754257917404,
-0.03105843812227249,
-0.0042040543630719185,
-0.037092845886945724,
-0.03750195726752281,
-0.05113903060555458,
-0.06723078340291977,
-0.01651790738105774,
-0.03729740157723427,
0.0057360948994755745,
0.000942343205679208,
0.04149080067873001,
0.0481729693710804,
0.003965405747294426,
0.0694127157330513,
-0.03982026129961014,
0.001956067979335785,
-0.02285914681851864,
0.039513424038887024,
-0.024154668673872948,
-0.005003102123737335,
0.04994578659534454,
0.021682949736714363,
-0.03750195726752281,
-0.027512799948453903,
0.044320493936538696,
-0.05618475005030632,
-0.0076836394146084785,
-0.011779023334383965,
0.02321712113916874,
-0.02234775759279728,
0.01835891231894493,
-0.004858207888901234,
-0.01627073623239994,
0.015401371754705906,
-0.05171860754489899,
-0.05315050110220909,
-0.018648700788617134,
0.012972267344594002,
0.00022746215108782053,
0.016398582607507706,
0.005795756820589304,
-0.06975363940000534,
-0.012256321497261524,
0.003483846550807357,
0.026421833783388138,
-0.0059662205167114735,
0.0003558424359653145,
-0.09423218667507172,
0.03999072313308716,
0.04738883674144745,
-0.00614946847781539,
-0.06102591007947922,
0.026813898235559464,
-0.04329771548509598,
0.023285305127501488,
-0.0449000708758831,
0.01922827586531639,
-0.021768180653452873,
-0.012648386880755424,
0.01984194479882717,
0.00909422431141138,
-0.06286691874265671,
-0.043877288699150085,
-0.08686816692352295,
0.002876570448279381,
-0.046843353658914566,
-0.01984194479882717,
-0.00615373020991683,
-0.02514335699379444,
0.0505935475230217,
0.05751436576247215,
-0.0036308711860328913,
0.023268260061740875,
0.040843039751052856,
-0.05062764137983322,
-0.00952890608459711,
-0.0005231096874922514,
0.08591357618570328,
-0.029694730415940285,
0.06334421783685684,
0.023984206840395927,
-0.053798262029886246,
-0.025552470237016678,
0.0016918496694415808,
0.008297308348119259,
0.002181932097300887,
0.04592284932732582,
0.011898348107933998,
0.006980477832257748,
-0.011582991108298302,
-0.04854798689484596,
0.0048539466224610806,
0.014532008208334446,
-0.009409582242369652,
0.007210603449493647,
-0.018921442329883575,
-0.018648700788617134,
0.04080894589424133,
0.003873781766742468,
0.016577569767832756,
-0.0819588229060173,
-0.022978471592068672,
0.02521154284477234,
0.025347912684082985,
0.028228744864463806,
0.015188292600214481,
0.01257167849689722,
-0.029609499499201775,
-0.025791117921471596,
0.030547048896551132,
-0.029115155339241028,
0.02393306791782379,
-0.050048064440488815,
0.0208817720413208,
0.050661735236644745,
0.02914924919605255,
0.04476369917392731,
-0.00012145520304329693,
0.01598947122693062,
0.01887030340731144,
-0.0024333656765520573,
0.0450364425778389,
-0.05877579376101494,
-0.047695670276880264,
-0.03869520127773285,
0.056866604834795,
0.0386270172894001,
-0.010159621015191078,
0.03324037045240402,
0.0019922915380448103,
-0.0034476229920983315,
-0.052570924162864685,
-0.025450192391872406,
0.004133738577365875,
-0.0055059692822396755,
0.04653652012348175,
0.013654121197760105,
-0.020148778334259987,
-0.026132045313715935,
-0.04132033884525299,
0.034212011843919754,
-0.05332096293568611,
0.04159307852387428,
0.0072319116443395615,
0.005906558129936457,
0.012512016110122204,
-0.005880988668650389,
-0.011148309335112572,
0.03433133661746979,
0.036308713257312775,
-0.0077092088758945465,
-0.028382163494825363,
-0.016304828226566315,
-0.054650578647851944,
0.06419653445482254,
0.009239118546247482,
0.017421362921595573,
-0.0031194810289889574,
-0.040229372680187225,
-0.057957570999860764
] |
10,020
|
sentence_transformers.SentenceTransformer
|
_load_auto_model
|
Creates a simple Transformer + Mean Pooling model and returns the modules
|
def _load_auto_model(
self,
model_name_or_path: str,
token: Optional[Union[bool, str]],
cache_folder: Optional[str],
revision: Optional[str] = None,
trust_remote_code: bool = False,
):
"""
Creates a simple Transformer + Mean Pooling model and returns the modules
"""
logger.warning(
"No sentence-transformers model found with name {}. Creating a new one with MEAN pooling.".format(
model_name_or_path
)
)
transformer_model = Transformer(
model_name_or_path,
cache_dir=cache_folder,
model_args={"token": token, "trust_remote_code": trust_remote_code, "revision": revision},
tokenizer_args={"token": token, "trust_remote_code": trust_remote_code, "revision": revision},
)
pooling_model = Pooling(transformer_model.get_word_embedding_dimension(), "mean")
return [transformer_model, pooling_model]
|
(self, model_name_or_path: str, token: Union[bool, str, NoneType], cache_folder: Optional[str], revision: Optional[str] = None, trust_remote_code: bool = False)
|
[
0.05036872252821922,
-0.060968708246946335,
-0.010928885079920292,
0.028379393741488457,
0.035972289741039276,
0.022008124738931656,
0.010693957097828388,
-0.00797348190099001,
0.005177829880267382,
0.016595367342233658,
-0.002075595548376441,
-0.014095725491642952,
-0.07728216052055359,
-0.004689177963882685,
-0.0034017683938145638,
0.0072217099368572235,
0.007588198874145746,
0.01947089470922947,
-0.014979057013988495,
-0.022647131234407425,
0.02168862149119377,
-0.030484354123473167,
-0.001201660605147481,
0.019320540130138397,
0.021970536559820175,
-0.004343832843005657,
0.008109740912914276,
-0.011041651479899883,
0.003458151128143072,
-0.028924427926540375,
0.009603887796401978,
-0.012808315455913544,
0.019217172637581825,
0.03358541429042816,
0.01667054370045662,
-0.03134889155626297,
0.0614197738468647,
0.054127585142850876,
-0.05875098332762718,
-0.11156296730041504,
0.036648884415626526,
-0.047812700271606445,
0.060254525393247604,
0.00504626939073205,
-0.04311412572860718,
0.0021578206215053797,
0.02587975189089775,
0.020053518936038017,
0.028360599651932716,
-0.018324442207813263,
-0.05371411144733429,
0.0002996809780597687,
-0.010769134387373924,
0.040858808904886246,
-0.008805129677057266,
0.005079159513115883,
-0.02452656254172325,
0.06668217480182648,
-0.016576573252677917,
0.051947444677352905,
0.01958366110920906,
-0.03405527025461197,
0.025503864511847496,
0.05315028131008148,
-0.0020297844894230366,
0.028341803699731827,
0.0015622761566191912,
0.015759021043777466,
0.0039655971340835094,
-0.00007260766869876534,
-0.02097443863749504,
-0.07389918714761734,
0.02082408405840397,
0.0828452780842781,
0.06480274349451065,
-0.008410449139773846,
-0.044955965131521225,
-0.01890706643462181,
0.05728502571582794,
0.015439517796039581,
-0.011060445569455624,
-0.05164673551917076,
-0.027026204392313957,
-0.02851095236837864,
-0.05033113434910774,
-0.07690627872943878,
0.01005495060235262,
-0.015890581533312798,
0.030371589586138725,
-0.02648116834461689,
-0.031705982983112335,
0.06998997181653976,
0.004710321314632893,
0.06694529950618744,
-0.0035004382953047752,
-0.017055828124284744,
0.012366649694740772,
0.0067847422324121,
-0.013663455843925476,
-0.013456718996167183,
-0.028886839747428894,
0.05766091123223305,
-0.03411165624856949,
0.02576698549091816,
-0.03491980955004692,
-0.016153700649738312,
-0.029563434422016144,
-0.00217544031329453,
-0.009660270065069199,
-0.034412361681461334,
-0.03418683260679245,
0.03298399597406387,
-0.011981366202235222,
0.046346742659807205,
-0.02381237782537937,
-0.06732118129730225,
0.026819465681910515,
0.00009580688492860645,
-0.014396433718502522,
0.036630090326070786,
-0.03491980955004692,
0.010778531432151794,
-0.05288716033101082,
0.005708768498152494,
0.016849089413881302,
0.020373022183775902,
0.08171761780977249,
-0.05281198397278786,
0.013466116040945053,
-0.06307367235422134,
0.037945691496133804,
0.014988454058766365,
0.02012869529426098,
0.0003391783975530416,
-0.0100925387814641,
-0.045594971626996994,
-0.03772015869617462,
0.02995811402797699,
0.003690730780363083,
0.03693079948425293,
-0.024056704714894295,
0.0093689588829875,
0.02856733649969101,
0.00046809553168714046,
0.031724777072668076,
-0.028041096404194832,
-0.003974994644522667,
-0.037287890911102295,
-0.01872852072119713,
-0.03134889155626297,
0.04258788377046585,
-0.015702636912465096,
0.02659393474459648,
0.006390062160789967,
-0.03678044676780701,
0.04484320059418678,
-0.017948556691408157,
-0.015815403312444687,
-0.02431982383131981,
-0.028980810195207596,
-0.01424607913941145,
-0.009354863315820694,
0.01947089470922947,
-0.006850522477179766,
0.025447482243180275,
-0.01952727697789669,
-0.028811661526560783,
-0.01892586052417755,
-0.03557761013507843,
0.03691200539469719,
-0.017732422798871994,
0.025954928249120712,
-0.03709995001554489,
0.02242160029709339,
0.05709708482027054,
0.028097478672862053,
-0.003960898611694574,
0.0196024551987648,
0.02499641850590706,
0.06514104455709457,
0.013240584172308445,
0.017892174422740936,
-0.02852974832057953,
-0.02712017484009266,
-0.0473240464925766,
0.018709726631641388,
0.01395476795732975,
0.004160588141530752,
-0.004498885478824377,
0.024921242147684097,
0.029149958863854408,
0.04683539643883705,
0.05006801709532738,
-0.019677631556987762,
-0.03428080305457115,
-0.0037471135146915913,
-0.07547791302204132,
-0.0018054274842143059,
-0.030258823186159134,
0.05664601922035217,
-0.013109024614095688,
-0.002190710511058569,
0.03491980955004692,
0.05239851027727127,
-0.033773358911275864,
-0.024676915258169174,
-0.010515411384403706,
0.04469284415245056,
-0.02860492467880249,
-0.04179852455854416,
0.023154577240347862,
-0.021387914195656776,
0.008800431154668331,
0.0729970633983612,
0.06882472336292267,
-0.01595636084675789,
-0.009913993068039417,
0.033792153000831604,
0.004625746980309486,
-0.056796375662088394,
0.056119780987501144,
0.05251127481460571,
-0.026293225586414337,
0.03550243377685547,
0.004816039465367794,
-0.039468031376600266,
-0.02012869529426098,
-0.030258823186159134,
-0.004895915277302265,
-0.018333839252591133,
0.04683539643883705,
-0.02507159672677517,
-0.003103408729657531,
-0.014913276769220829,
0.041497815400362015,
-0.015524092130362988,
-0.002920164493843913,
0.017159195616841316,
-0.00027574761770665646,
-0.03751342371106148,
0.011953175067901611,
-0.0050932555459439754,
-0.040144626051187515,
-0.04871482774615288,
-0.0038598794490098953,
0.04826376214623451,
0.00831647776067257,
-0.04341483488678932,
-0.034562718123197556,
-0.029018400236964226,
0.021782593801617622,
0.06743394583463669,
-0.033134352415800095,
0.06149495020508766,
-0.01047782227396965,
-0.0882580354809761,
0.019715221598744392,
-0.06074317917227745,
0.020410610362887383,
0.0072546000592410564,
-0.05183468014001846,
0.01605033315718174,
-0.0122162951156497,
0.0909644141793251,
-0.051270850002765656,
-0.02715776301920414,
-0.03138647973537445,
0.00941594410687685,
0.014875688590109348,
-0.030559532344341278,
0.0679977759718895,
0.03268328681588173,
-0.023436492308974266,
-0.04747440293431282,
0.021124793216586113,
-0.03538966551423073,
-0.026312019675970078,
-0.005191925447434187,
-0.03845313936471939,
0.027439678087830544,
-0.008842717856168747,
-0.031724777072668076,
0.042888592928647995,
0.003718922147527337,
-0.06923820078372955,
-0.004698575008660555,
-0.06085594370961189,
-0.05642049014568329,
0.015777815133333206,
-0.039355263113975525,
-0.016849089413881302,
0.020354226231575012,
0.05390205234289169,
-0.03129250928759575,
-0.027439678087830544,
-0.03841555118560791,
-0.009293781593441963,
0.0446176677942276,
0.052586451172828674,
-0.05081978812813759,
-0.011605480685830116,
0.017920365557074547,
0.05841268599033356,
-0.007052561268210411,
0.052060212939977646,
-0.08931051194667816,
-0.015655651688575745,
-0.03747583553195,
-0.028078684583306313,
-0.02082408405840397,
0.003714223625138402,
-0.0031621409580111504,
0.07389918714761734,
0.008546708151698112,
0.023943938314914703,
0.013860796578228474,
0.021143587306141853,
0.051985032856464386,
0.0517595037817955,
0.004473043605685234,
-0.0076727732084691525,
0.05506730079650879,
-0.017863981425762177,
0.0025301827117800713,
0.023192167282104492,
-0.029018400236964226,
0.040069449692964554,
0.000130018379422836,
-0.0419112890958786,
0.027007408440113068,
-0.023586846888065338,
0.0006801187410019338,
0.015204588882625103,
0.0651034563779831,
-0.0770566314458847,
0.020354226231575012,
0.0031480451580137014,
-0.03416803851723671,
0.014819305390119553,
0.01815529353916645,
0.07818429172039032,
-0.05236091837286949,
-0.03067229688167572,
0.04247511923313141,
0.016886679455637932,
0.035258106887340546,
0.028135066851973534,
0.0008944912115111947,
0.029601022601127625,
-0.05860062688589096,
-0.039392851293087006,
0.023436492308974266,
0.010787928476929665,
0.026631522923707962,
0.021350324153900146,
0.011943778023123741,
-0.012470018118619919,
0.060931120067834854,
-0.019048023968935013,
-0.10306794196367264,
-0.02871769107878208,
-0.06641905754804611,
-0.05281198397278786,
0.003319543320685625,
-0.012695549987256527,
0.01501664612442255,
0.019640043377876282,
0.017779408022761345,
0.04322689026594162,
-0.011436332017183304,
-0.027590032666921616,
-0.005600701551884413,
0.01044023409485817,
0.018352633342146873,
-0.01687728241086006,
0.0024009719491004944,
-0.04871482774615288,
-0.014866291545331478,
-0.010919488035142422,
0.012742535211145878,
0.040069449692964554,
0.06923820078372955,
0.10148922353982925,
0.006676675286144018,
0.08043960481882095,
-0.049880072474479675,
-0.0182492658495903,
-0.01330636441707611,
-0.007480131462216377,
-0.014969659969210625,
0.04349001124501228,
-0.03954320773482323,
-0.020354226231575012,
0.027345705777406693,
-0.020091107115149498,
-0.014481008052825928,
-0.005610098596662283,
0.04657227545976639,
-0.04657227545976639,
-0.02518436126410961,
-0.005760453175753355,
0.007898304611444473,
0.06555452197790146,
0.007235805504024029,
-0.06390061974525452,
0.04168575629591942,
0.0173847284168005,
-0.01876610890030861,
-0.02567301318049431,
0.0009479374857619405,
-0.01605033315718174,
0.025936134159564972,
-0.01462196558713913,
-0.022703515365719795,
-0.007287489715963602,
0.0708921030163765,
0.0333222933113575,
-0.014302462339401245,
0.007033766712993383,
-0.02499641850590706,
0.013625867664813995,
0.05284957215189934,
-0.008527914062142372,
-0.03149924799799919,
-0.04127228260040283,
0.05792403221130371,
-0.020373022183775902,
0.039392851293087006,
-0.012169308960437775,
-0.01048721931874752,
-0.010111333802342415,
-0.03272087499499321,
0.017845187336206436,
-0.063938207924366,
0.030427971854805946,
-0.0030705188401043415,
0.026142871007323265,
-0.04258788377046585,
0.009726050309836864,
-0.030935417860746384,
-0.006220913492143154,
0.0025583740789443254,
0.0062397075816988945,
0.02174500562250614,
0.018305648118257523,
-0.05766091123223305,
-0.05623254552483559,
0.08021407574415207,
-0.03488222137093544,
-0.014509200118482113,
-0.0034745961893349886,
0.02304181270301342,
0.043565187603235245,
0.040708452463150024,
0.003397069638594985,
0.01672692783176899,
0.1184040904045105,
0.010900693945586681,
-0.0030282316729426384,
0.055518362671136856,
-0.035182930529117584,
-0.008119137957692146,
0.10404524207115173,
0.014199093915522099,
0.04311412572860718,
0.004816039465367794,
0.02582336775958538,
-0.009608586318790913,
-0.03461910039186478,
-0.024601738899946213,
0.03328470513224602,
-0.072057344019413,
0.044955965131521225,
-0.03897937759757042,
-0.09795588999986649,
0.005769850220531225,
0.060404881834983826,
-0.002854384249076247,
0.039468031376600266,
-0.031217332929372787,
0.012704947032034397,
-0.007329776883125305,
0.020335432142019272,
0.039280086755752563,
-0.03749462962150574,
0.038641080260276794,
0.0030611215624958277,
-0.04375313222408295,
-0.002950705122202635,
-0.021293941885232925,
-0.06081835553050041,
0.061043888330459595,
0.047812700271606445,
0.002043880056589842,
-0.021293941885232925,
0.0236620232462883,
0.014866291545331478,
0.05487935617566109,
0.0062021189369261265,
-0.02097443863749504,
0.03493860363960266,
-0.014415227808058262,
-0.0318751335144043,
-0.05307510495185852,
0.035859525203704834,
0.024113086983561516,
-0.05164673551917076,
-0.05596942454576492,
-0.03131130337715149,
0.02993931993842125,
-0.03835916519165039,
-0.031160948798060417,
-0.029469462111592293,
0.027684004977345467,
-0.004167635925114155,
0.004315641243010759,
0.03672406077384949,
0.0035004382953047752,
-0.03958079591393471,
0.022196069359779358,
0.03367938473820686,
-0.00453177560120821,
-0.0023868761491030455,
-0.0502183698117733,
-0.017610259354114532,
0.020354226231575012,
-0.00946762878447771,
0.03984391689300537,
0.04454249143600464,
0.0502183698117733,
0.054841767996549606,
-0.0021014376543462276,
-0.03272087499499321,
0.06514104455709457,
0.014443419873714447,
-0.01116381399333477,
-0.0300332922488451,
-0.01464075967669487,
-0.005666481330990791,
-0.04367795214056969,
-0.05499212071299553,
-0.006845823954790831,
-0.015157602727413177,
0.03777654469013214,
0.026161665096879005,
-0.008433941751718521,
-0.00977303646504879,
0.051195673644542694,
-0.05634531006217003,
0.020335432142019272,
-0.030427971854805946,
-0.006361870560795069,
-0.009119934402406216,
-0.013475513085722923,
0.023248549550771713,
-0.024056704714894295,
-0.03976874053478241,
-0.03413045033812523,
0.0108631057664752,
0.0018488892819732428,
0.02522195130586624,
0.002917814999818802,
0.006747153587639332,
0.053263045847415924,
0.030954211950302124,
0.024150675162672997,
-0.03638576343655586,
-0.012272678315639496,
-0.03988150507211685,
-0.014762923121452332,
0.024883653968572617,
-0.03788930922746658,
0.035953495651483536,
0.013024450279772282,
-0.04540703073143959,
0.06596799194812775,
-0.013494307175278664,
-0.005116748157888651,
-0.008786335587501526,
0.033848535269498825,
0.024733299389481544,
0.010684560053050518,
-0.0333222933113575,
0.028341803699731827,
0.023474080488085747,
-0.07427507638931274,
0.02093685045838356,
0.026236843317747116,
-0.011633671820163727,
0.013776222243905067,
-0.014321256428956985,
0.040708452463150024,
0.017741819843649864,
0.03574676066637039,
0.04258788377046585,
-0.022553160786628723,
-0.04194887727499008,
0.009951582178473473,
0.02234642207622528,
-0.05232333019375801,
-0.019809192046523094,
-0.004670383408665657,
-0.026763083413243294,
-0.04349001124501228,
0.0016351040685549378,
-0.004092458635568619,
-0.10517290234565735,
0.00048042929847724736,
0.029074782505631447,
0.06578005105257034,
-0.042851004749536514,
-0.021124793216586113,
0.0026006612461060286,
-0.010158319026231766,
-0.013672852888703346,
0.013776222243905067,
-0.004482440650463104,
-0.019921958446502686,
0.05570630729198456,
-0.05781126767396927,
0.03916732221841812,
0.013513102196156979,
0.026067694649100304,
-0.02369961328804493,
-0.0419112890958786,
0.029657404869794846,
-0.004820737987756729,
-0.029770171269774437,
0.05435311421751976,
0.016275864094495773,
0.0037541615311056376,
-0.04033256694674492,
0.08562683314085007,
0.01180282048881054,
0.045670147985219955,
0.0009285559062846005,
0.01608792133629322,
0.021857770159840584,
0.03063470870256424,
-0.07002755999565125,
0.004928805399686098,
-0.033829741179943085,
-0.01886947825551033,
-0.009735447354614735,
-0.01677391305565834,
-0.008894402533769608,
-0.01954607293009758,
0.07149352133274078,
0.05980346351861954,
0.02574819140136242,
-0.007442542817443609,
-0.024150675162672997,
0.019677631556987762,
-0.006610895041376352,
-0.012282075360417366,
-0.025428688153624535,
0.0016127858543768525,
-0.060442470014095306,
0.05784885585308075,
-0.033773358911275864,
-0.04807582125067711,
-0.006958589423447847,
0.013381541706621647,
0.03773895651102066,
-0.017976747825741768,
-0.02368081733584404,
-0.04390348494052887,
-0.03709995001554489,
-0.017798202112317085,
0.0500304251909256,
-0.04052051156759262,
-0.04059568792581558,
0.014217888005077839,
-0.03822760656476021,
0.01260157860815525,
-0.025691809132695198,
0.05089496448636055,
-0.030183646827936172,
-0.028905633836984634,
0.04882759228348732,
-0.02029784396290779,
-0.0020356576424092054,
-0.004588158335536718,
0.026631522923707962,
-0.06051764637231827,
0.061682894825935364,
-0.04112192988395691,
0.038641080260276794,
0.05160914734005928,
-0.029093576595187187,
-0.011483317241072655,
0.07818429172039032,
0.029751377180218697,
-0.01673632487654686,
-0.031687188893556595,
-0.01886947825551033,
0.010261687450110912,
-0.03339746966958046,
-0.06202119216322899,
-0.007879510521888733,
0.05923963338136673,
-0.044880788773298264,
-0.06273537129163742,
-0.06803536415100098,
-0.03691200539469719,
0.01943330653011799,
-0.09577575325965881,
0.057585734874010086,
-0.07239564508199692,
-0.04664745181798935,
0.05307510495185852,
0.006676675286144018,
0.047098517417907715,
0.01667054370045662,
0.07247082144021988,
0.00942534115165472,
-0.03366059064865112,
0.0875062644481659,
-0.002284682122990489,
0.004625746980309486,
-0.024169469252228737,
-0.028172655031085014,
0.018502987921237946,
-0.011708849109709263,
-0.00003301850301795639,
-0.00502747530117631,
-0.027044998481869698,
-0.0015517043648287654,
0.06656941026449203,
0.05803680047392845,
0.05213538929820061,
-0.0029154657386243343,
-0.008241300471127033,
-0.0032890024594962597,
0.007282791193574667,
-0.05213538929820061,
0.05115808546543121,
0.020354226231575012,
0.000750597333535552,
-0.017572671175003052,
0.031799957156181335,
-0.03255172818899155,
-0.0542779378592968,
0.04589568078517914,
-0.001985148061066866,
-0.04112192988395691,
0.053450990468263626,
0.0002384526887908578,
-0.04454249143600464,
0.028736485168337822,
-0.0076774717308580875,
0.0244325902312994,
0.035145342350006104,
0.0515715591609478,
0.0050227767787873745,
-0.04672263190150261,
0.011718246154487133,
0.0026570442132651806,
-0.015542886219918728,
-0.09570057690143585,
-0.0014330653939396143,
-0.07002755999565125,
-0.03290881961584091,
-0.053375814110040665,
0.025522660464048386,
-0.032476551830768585,
0.040069449692964554,
0.012996258214116096
] |
10,021
|
torch.nn.modules.module
|
_load_from_state_dict
|
Copy parameters and buffers from :attr:`state_dict` into only this module, but not its descendants.
This is called on every submodule
in :meth:`~torch.nn.Module.load_state_dict`. Metadata saved for this
module in input :attr:`state_dict` is provided as :attr:`local_metadata`.
For state dicts without metadata, :attr:`local_metadata` is empty.
Subclasses can achieve class-specific backward compatible loading using
the version number at `local_metadata.get("version", None)`.
Additionally, :attr:`local_metadata` can also contain the key
`assign_to_params_buffers` that indicates whether keys should be
assigned their corresponding tensor in the state_dict.
.. note::
:attr:`state_dict` is not the same object as the input
:attr:`state_dict` to :meth:`~torch.nn.Module.load_state_dict`. So
it can be modified.
Args:
state_dict (dict): a dict containing parameters and
persistent buffers.
prefix (str): the prefix for parameters and buffers used in this
module
local_metadata (dict): a dict containing the metadata for this module.
See
strict (bool): whether to strictly enforce that the keys in
:attr:`state_dict` with :attr:`prefix` match the names of
parameters and buffers in this module
missing_keys (list of str): if ``strict=True``, add missing keys to
this list
unexpected_keys (list of str): if ``strict=True``, add unexpected
keys to this list
error_msgs (list of str): error messages should be added to this
list, and will be reported together in
:meth:`~torch.nn.Module.load_state_dict`
|
def _load_from_state_dict(self, state_dict, prefix, local_metadata, strict,
missing_keys, unexpected_keys, error_msgs):
r"""Copy parameters and buffers from :attr:`state_dict` into only this module, but not its descendants.
This is called on every submodule
in :meth:`~torch.nn.Module.load_state_dict`. Metadata saved for this
module in input :attr:`state_dict` is provided as :attr:`local_metadata`.
For state dicts without metadata, :attr:`local_metadata` is empty.
Subclasses can achieve class-specific backward compatible loading using
the version number at `local_metadata.get("version", None)`.
Additionally, :attr:`local_metadata` can also contain the key
`assign_to_params_buffers` that indicates whether keys should be
assigned their corresponding tensor in the state_dict.
.. note::
:attr:`state_dict` is not the same object as the input
:attr:`state_dict` to :meth:`~torch.nn.Module.load_state_dict`. So
it can be modified.
Args:
state_dict (dict): a dict containing parameters and
persistent buffers.
prefix (str): the prefix for parameters and buffers used in this
module
local_metadata (dict): a dict containing the metadata for this module.
See
strict (bool): whether to strictly enforce that the keys in
:attr:`state_dict` with :attr:`prefix` match the names of
parameters and buffers in this module
missing_keys (list of str): if ``strict=True``, add missing keys to
this list
unexpected_keys (list of str): if ``strict=True``, add unexpected
keys to this list
error_msgs (list of str): error messages should be added to this
list, and will be reported together in
:meth:`~torch.nn.Module.load_state_dict`
"""
for hook in self._load_state_dict_pre_hooks.values():
hook(state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
persistent_buffers = {k: v for k, v in self._buffers.items() if k not in self._non_persistent_buffers_set}
local_name_params = itertools.chain(self._parameters.items(), persistent_buffers.items())
local_state = {k: v for k, v in local_name_params if v is not None}
assign_to_params_buffers = local_metadata.get("assign_to_params_buffers", False)
use_swap_tensors = torch.__future__.get_swap_module_params_on_conversion()
for name, param in local_state.items():
key = prefix + name
if key in state_dict:
input_param = state_dict[key]
if not torch.overrides.is_tensor_like(input_param):
error_msgs.append(f'While copying the parameter named "{key}", '
'expected torch.Tensor or Tensor-like object from checkpoint but '
f'received {type(input_param)}'
)
continue
# This is used to avoid copying uninitialized parameters into
# non-lazy modules, since they dont have the hook to do the checks
# in such case, it will error when accessing the .shape attribute.
is_param_lazy = torch.nn.parameter.is_lazy(param)
# Backward compatibility: loading 1-dim tensor from 0.3.* to version 0.4+
if not is_param_lazy and len(param.shape) == 0 and len(input_param.shape) == 1:
input_param = input_param[0]
if not is_param_lazy and input_param.shape != param.shape:
# local shape should match the one in checkpoint
error_msgs.append('size mismatch for {}: copying a param with shape {} from checkpoint, '
'the shape in current model is {}.'
.format(key, input_param.shape, param.shape))
continue
if param.is_meta and not input_param.is_meta and not assign_to_params_buffers:
warnings.warn(f'for {key}: copying from a non-meta parameter in the checkpoint to a meta '
'parameter in the current model, which is a no-op. (Did you mean to '
'pass `assign=True` to assign items in the state dictionary to their '
'corresponding key in the module instead of copying them in place?)')
try:
with torch.no_grad():
if use_swap_tensors:
new_input_param = param.module_load(input_param, assign=assign_to_params_buffers)
if id(new_input_param) == id(input_param) or id(new_input_param) == id(param):
raise RuntimeError("module_load returned one of self or other, please .detach() "
"the result if returning one of the inputs in module_load")
if (isinstance(param, torch.nn.Parameter)):
if not isinstance(new_input_param, torch.nn.Parameter):
new_input_param = torch.nn.Parameter(new_input_param, requires_grad=param.requires_grad)
else:
new_input_param.requires_grad_(param.requires_grad)
torch.utils.swap_tensors(param, new_input_param)
del new_input_param
elif assign_to_params_buffers:
# Shape checks are already done above
if (isinstance(param, torch.nn.Parameter)):
if not isinstance(input_param, torch.nn.Parameter):
input_param = torch.nn.Parameter(input_param, requires_grad=param.requires_grad)
else:
input_param.requires_grad_(param.requires_grad)
setattr(self, name, input_param)
else:
param.copy_(input_param)
except Exception as ex:
action = "swapping" if use_swap_tensors else "copying"
error_msgs.append(f'While {action} the parameter named "{key}", '
f'whose dimensions in the model are {param.size()} and '
f'whose dimensions in the checkpoint are {input_param.size()}, '
f'an exception occurred : {ex.args}.'
)
elif strict:
missing_keys.append(key)
extra_state_key = prefix + _EXTRA_STATE_KEY_SUFFIX
if getattr(self.__class__, "set_extra_state", Module.set_extra_state) is not Module.set_extra_state:
if extra_state_key in state_dict:
self.set_extra_state(state_dict[extra_state_key])
elif strict:
missing_keys.append(extra_state_key)
elif strict and (extra_state_key in state_dict):
unexpected_keys.append(extra_state_key)
if strict:
for key in state_dict.keys():
if key.startswith(prefix) and key != extra_state_key:
input_name = key[len(prefix):]
input_name = input_name.split('.', 1)[0] # get the name of param/buffer/child
if input_name not in self._modules and input_name not in local_state:
unexpected_keys.append(key)
|
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
|
[
-0.020754799246788025,
-0.021746011450886726,
-0.049762967973947525,
0.03952717036008835,
-0.014271452091634274,
-0.0009937421418726444,
-0.03283141925930977,
0.04094319045543671,
0.014554656110703945,
-0.08269552886486053,
-0.017326008528470993,
-0.025771552696824074,
-0.009355842135846615,
0.033559657633304596,
-0.0335192009806633,
0.045272164046764374,
0.024982627481222153,
0.041873715817928314,
-0.06343767046928406,
-0.06578421592712402,
-0.01617296412587166,
-0.03592643514275551,
0.027834895998239517,
0.08269552886486053,
-0.031233342364430428,
-0.06970860809087753,
0.029129542410373688,
-0.016446053981781006,
0.027430318295955658,
0.0029786978848278522,
0.013978133909404278,
-0.013472412712872028,
0.04757825285196304,
0.06974907219409943,
-0.024274617433547974,
-0.020653653889894485,
0.032447073608636856,
0.02091662958264351,
-0.07557497918605804,
-0.03238638490438461,
0.0016764658503234386,
-0.06028196960687637,
0.02971617877483368,
0.00954801682382822,
0.03479361906647682,
0.04328973591327667,
-0.01764967106282711,
0.04171188548207283,
0.0025260774418711662,
0.02492194063961506,
0.019561296328902245,
-0.031152427196502686,
0.010271198116242886,
0.019682670012116432,
-0.006028196774423122,
-0.022777684032917023,
0.062264394015073776,
-0.007418930064886808,
-0.01270371675491333,
0.005310072563588619,
0.006463116966187954,
0.006028196774423122,
-0.006609776057302952,
-0.028340617194771767,
-0.005173528101295233,
-0.07945891469717026,
-0.02302042953670025,
-0.041671428829431534,
-0.012723946012556553,
0.024739881977438927,
-0.007069982588291168,
-0.028684506192803383,
0.0460408590734005,
0.028057413175702095,
-0.017841843888163567,
-0.008298885077238083,
-0.020097360014915466,
-0.014665914699435234,
-0.025690637528896332,
-0.00044029351556673646,
0.014918775297701359,
-0.008511288091540337,
-0.06440865248441696,
0.02231241948902607,
-0.06416590511798859,
0.0005992796504870057,
-0.006306343246251345,
-0.00226942403241992,
0.03778748959302902,
-0.019510723650455475,
-0.029129542410373688,
0.0679689273238182,
0.0017169235507026315,
0.02931160107254982,
0.06655291467905045,
-0.015131178312003613,
-0.024942170828580856,
0.0020582852885127068,
-0.02832038700580597,
-0.02271699719130993,
-0.05522475764155388,
-0.0460004024207592,
-0.032770734280347824,
0.02510400116443634,
0.02281814068555832,
-0.06889946013689041,
0.008526459336280823,
-0.025953613221645355,
0.036958105862140656,
-0.05344461649656296,
-0.060079678893089294,
-0.02558949403464794,
-0.05360644683241844,
0.0006688163266517222,
0.0033124738838523626,
-0.010842662304639816,
0.005380873568356037,
-0.03780771791934967,
-0.05024845898151398,
0.02190784364938736,
0.03082876466214657,
0.041246622800827026,
-0.03641192615032196,
-0.003193629439920187,
0.03192112222313881,
0.030262356624007225,
0.05619573965668678,
0.0054719033651053905,
0.045959942042827606,
-0.09912135452032089,
-0.013796074315905571,
0.020552510395646095,
-0.05890640616416931,
0.007869021967053413,
-0.0016183078987523913,
-0.03548140078783035,
-0.04539353400468826,
-0.000301378226140514,
-0.025144457817077637,
-0.023687981069087982,
0.05045074597001076,
0.04128707945346832,
0.02360706590116024,
0.01691131666302681,
0.01595044694840908,
-0.055791161954402924,
0.0430469885468483,
-0.02071434073150158,
-0.04988434165716171,
-0.004349202383309603,
0.03378217667341232,
0.006109112408012152,
-0.04260195419192314,
0.004693092778325081,
-0.055669791996479034,
-0.006670462898910046,
-0.009952593594789505,
-0.043006531894207,
-0.0049408962950110435,
-0.012430626899003983,
-0.02959480509161949,
-0.05850182846188545,
0.019156718626618385,
-0.03289210796356201,
-0.026681851595640182,
-0.009558130986988544,
-0.003499590791761875,
-0.050369832664728165,
-0.02330363355576992,
-0.010822433978319168,
0.0006580697372555733,
-0.01574815809726715,
0.028563134372234344,
0.04349202290177345,
-0.008435430005192757,
0.044260721653699875,
-0.026176130399107933,
-0.07933754473924637,
-0.025063542649149895,
-0.02672230824828148,
0.06044379994273186,
0.014200651086866856,
-0.02211013063788414,
-0.00178898882586509,
-0.015829073265194893,
0.03181997686624527,
-0.025488348677754402,
0.029878009110689163,
0.040761128067970276,
0.04422026127576828,
0.00675643514841795,
0.013968019746243954,
0.01879259943962097,
0.0023048243019729853,
-0.04041723906993866,
0.03962831571698189,
-0.010367284528911114,
0.004323916509747505,
0.0560339093208313,
0.06574375927448273,
-0.010073966346681118,
-0.040882501751184464,
0.00695366645231843,
0.009664332494139671,
-0.07351163774728775,
-0.012653145007789135,
-0.011581015773117542,
0.044382091611623764,
0.03331691399216652,
0.0022732168436050415,
0.006281057372689247,
-0.05931098386645317,
0.04539353400468826,
0.03143563121557236,
0.015222208574414253,
-0.04559582471847534,
-0.003299830947071314,
0.029048625379800797,
0.03260890394449234,
-0.023162031546235085,
0.08633672446012497,
0.047052301466464996,
-0.017740700393915176,
-0.009664332494139671,
-0.012835204601287842,
-0.007570646703243256,
-0.01734623685479164,
-0.018489167094230652,
-0.008915864862501621,
0.028441760689020157,
0.05583162233233452,
-0.007555474992841482,
-0.02639864757657051,
-0.00878437701612711,
0.083990179002285,
0.02421393059194088,
0.008713576011359692,
-0.0374840572476387,
-0.016719143837690353,
-0.003545105690136552,
-0.020147932693362236,
0.019611869007349014,
0.013027378357946873,
-0.03914282098412514,
-0.0004153235349804163,
-0.04120616242289543,
0.027733750641345978,
0.03932487964630127,
-0.03580506145954132,
0.048751525580883026,
0.011924905702471733,
0.05324232950806618,
-0.0385359562933445,
0.04450346529483795,
-0.020279420539736748,
-0.03333714231848717,
0.023950956761837006,
0.014584999531507492,
-0.011530443094670773,
-0.009740190580487251,
-0.052554547786712646,
-0.060767460614442825,
-0.020451365038752556,
0.02180669829249382,
0.018398137763142586,
-0.008733805269002914,
0.036472614854574203,
0.007540303282439709,
-0.004065998364239931,
-0.013785960152745247,
0.06655291467905045,
0.05732855573296547,
-0.03538025543093681,
0.05142173171043396,
0.003921867813915014,
-0.05332324281334877,
0.02449713461101055,
0.005406159907579422,
0.04019472002983093,
0.040781356394290924,
0.06432773917913437,
-0.007332957349717617,
0.0008451865869574249,
-0.0008730012341402471,
0.0007851321715861559,
-0.0026904367841780186,
-0.026358189061284065,
-0.03707947954535484,
0.025063542649149895,
-0.003299830947071314,
0.021685324609279633,
0.017558639869093895,
0.0012997034937143326,
-0.0016069291159510612,
-0.007095268461853266,
0.0018281821394339204,
-0.10324804484844208,
0.048953812569379807,
0.018114933744072914,
-0.006584490183740854,
0.04478666931390762,
-0.020734569057822227,
-0.006599661894142628,
0.03879893198609352,
0.016071820631623268,
-0.04049815610051155,
0.018721798434853554,
-0.016628112643957138,
-0.04171188548207283,
0.029655491933226585,
0.04964159429073334,
0.02160440944135189,
0.057975880801677704,
0.0055477614514529705,
0.07958029210567474,
-0.0720551609992981,
0.050369832664728165,
-0.014018591493368149,
0.017882302403450012,
0.050369832664728165,
-0.03968900069594383,
0.04134776443243027,
-0.033761948347091675,
0.04774008318781853,
-0.025447892025113106,
-0.037463828921318054,
0.06647199392318726,
0.0011505157453939319,
0.0044857473112642765,
-0.029534118250012398,
-0.09823128581047058,
0.03440926969051361,
0.004682978615164757,
0.015343581326305866,
-0.038758471608161926,
0.021563952788710594,
-0.03570391610264778,
-0.0215032659471035,
0.06667428463697433,
-0.03914282098412514,
0.09426642954349518,
-0.0264997910708189,
-0.05223088711500168,
-0.015889760106801987,
-0.0004772743850480765,
-0.031678374856710434,
0.021624639630317688,
0.03898099064826965,
0.026681851595640182,
-0.007954994216561317,
-0.08374743163585663,
0.00017447381105739623,
0.007418930064886808,
0.07039639353752136,
0.07140783220529556,
-0.004065998364239931,
-0.007363300770521164,
-0.04171188548207283,
-0.0006966309738345444,
-0.025731094181537628,
0.07978257536888123,
-0.015778502449393272,
-0.044867586344480515,
0.02611544355750084,
0.04413934797048569,
-0.011166323907673359,
-0.011206782422959805,
-0.06020105257630348,
-0.007818450219929218,
-0.05943235754966736,
-0.007085154298692942,
-0.086013063788414,
-0.02540743350982666,
-0.005320187192410231,
0.001145458547398448,
-0.0020721927285194397,
-0.06380178779363632,
0.014878317713737488,
-0.01640559546649456,
0.04120616242289543,
0.08844052255153656,
-0.015181750990450382,
0.009831219911575317,
0.016213422641158104,
-0.004837223328649998,
0.00886023510247469,
0.04434163495898247,
-0.022575395181775093,
0.05870411917567253,
-0.02421393059194088,
-0.005588219501078129,
0.06372087448835373,
0.013148751109838486,
0.040579069405794144,
0.004703207407146692,
0.02409255877137184,
0.032143641263246536,
0.03111196868121624,
-0.02979709394276142,
-0.04858969524502754,
0.03778748959302902,
-0.08261461555957794,
-0.025731094181537628,
0.02122006192803383,
0.008941151201725006,
-0.011014607734978199,
0.040761128067970276,
0.08382834494113922,
-0.04108479246497154,
0.009204125963151455,
0.010352113284170628,
0.0260142982006073,
-0.06254760175943375,
0.004847337957471609,
-0.004420003388077021,
-0.019844500347971916,
0.03341805562376976,
-0.027329174801707268,
0.007530188653618097,
0.03101082518696785,
0.04053861275315285,
0.015829073265194893,
0.028340617194771767,
-0.0020519637037068605,
-0.0024868841283023357,
0.050774410367012024,
-0.05712626874446869,
0.02409255877137184,
-0.0344901867210865,
0.014989576302468777,
-0.03410583734512329,
-0.0003089640522375703,
0.00410139886662364,
-0.030060067772865295,
0.02122006192803383,
0.0031152425799518824,
0.034571100026369095,
0.006761492695659399,
0.00500916875898838,
0.05008662864565849,
0.034854304045438766,
-0.001996334409341216,
0.055791161954402924,
0.02269676700234413,
-0.009279984049499035,
0.010210511274635792,
-0.031354714184999466,
0.059068236500024796,
-0.05024845898151398,
0.014777173288166523,
-0.014291681349277496,
-0.016243765130639076,
0.022069673985242844,
-0.04911564290523529,
-0.025387205183506012,
-0.02512422949075699,
-0.009664332494139671,
0.003709465032443404,
-0.0264997910708189,
0.0004918138729408383,
-0.018064361065626144,
0.05210951343178749,
-0.013968019746243954,
0.044179804623126984,
0.04422026127576828,
0.02200898714363575,
0.026358189061284065,
-0.03732222691178322,
-0.016496626660227776,
0.02862382121384144,
0.008829892612993717,
0.006134398281574249,
0.015505412593483925,
-0.018367793411016464,
-0.02710665762424469,
-0.03412606567144394,
0.010200397111475468,
0.014382711611688137,
-0.028158556669950485,
-0.028886795043945312,
0.03608826547861099,
-0.046081315726041794,
0.020117590203881264,
0.02340477705001831,
0.00519881397485733,
-0.023748667910695076,
0.01345218438655138,
0.05352553352713585,
0.028178784996271133,
0.019996216520667076,
-0.08876418322324753,
-0.044260721653699875,
0.03991151601076126,
0.03224478289484978,
-0.02890702337026596,
-0.01330046821385622,
-0.017609212547540665,
0.023141803219914436,
0.06764526665210724,
-0.029878009110689163,
-0.0004415578441694379,
0.022029215469956398,
-0.01916683465242386,
0.03944625332951546,
0.0029761693440377712,
0.01219799555838108,
-0.032447073608636856,
0.01739680953323841,
0.011530443094670773,
0.029129542410373688,
-0.028987940400838852,
0.010387513786554337,
0.0339844636619091,
0.003170871874317527,
-0.021766241639852524,
-0.03552185744047165,
-0.034348584711551666,
0.07193378359079361,
-0.022231504321098328,
-0.03851572796702385,
0.058461371809244156,
0.02720780111849308,
0.061859820038080215,
-0.0790138840675354,
0.0040811700746417046,
0.008885521441698074,
-0.02330363355576992,
-0.0629926323890686,
0.02850244753062725,
-0.017386695370078087,
-0.06683611124753952,
-0.024234160780906677,
0.044382091611623764,
0.03188066557049751,
0.030646705999970436,
-0.04130730777978897,
0.06064608693122864,
-0.02030976302921772,
-0.06756435334682465,
-0.017993560060858727,
0.011732731945812702,
0.008025795221328735,
0.036250095814466476,
0.020168161019682884,
0.018924087285995483,
0.04430117830634117,
-0.02066376805305481,
0.050653036683797836,
-0.10227705538272858,
-0.02510400116443634,
-0.066957488656044,
-0.04648589342832565,
-0.018114933744072914,
-0.009214240126311779,
0.0630735456943512,
-0.07059868425130844,
0.03910236433148384,
0.0015234851744025946,
0.016850629821419716,
0.021847156807780266,
-0.007024467457085848,
0.029250914230942726,
-0.03598712012171745,
-0.012643029913306236,
-0.008389914408326149,
0.010620145127177238,
-0.040174491703510284,
-0.008890578523278236,
-0.025468120351433754,
0.02241356484591961,
0.07488719373941422,
0.02421393059194088,
-0.028158556669950485,
0.013340925797820091,
0.003256844589486718,
-0.03374172002077103,
0.02931160107254982,
0.04094319045543671,
0.00590176647529006,
-0.009947536513209343,
0.0920008048415184,
0.030484873801469803,
0.01859031245112419,
0.032143641263246536,
0.0365130715072155,
0.03944625332951546,
-0.025953613221645355,
0.05918961018323898,
0.07059868425130844,
-0.009993051178753376,
-0.043249279260635376,
0.039972204715013504,
0.04988434165716171,
-0.05740947276353836,
0.030727621167898178,
0.014200651086866856,
-0.015121064148843288,
-0.0020367922261357307,
0.021887613460421562,
-0.02081548422574997,
-0.025791781023144722,
-0.00855680275708437,
0.04579811170697212,
-0.033559657633304596,
-0.01300714910030365,
-0.03612872213125229,
-0.0165067408233881,
0.08722679316997528,
0.007954994216561317,
0.026358189061284065,
0.008991722948849201,
-0.030565788969397545,
0.0077223628759384155,
-0.07177195698022842,
-0.038657329976558685,
-0.03962831571698189,
-0.0035172910429537296,
0.009876735508441925,
0.09539924561977386,
-0.0033807463478296995,
-0.04163096845149994,
-0.012491313740611076,
-0.02449713461101055,
0.029331829398870468,
-0.06032242625951767,
-0.04072067141532898,
0.0033908607438206673,
-0.06752389669418335,
-0.009017009288072586,
-0.0710841715335846,
0.001584171666763723,
0.0034110895358026028,
0.027491005137562752,
0.0073885866440832615,
0.03610849380493164,
-0.021543722599744797,
0.05421331524848938,
-0.023425007238984108,
-0.035360027104616165,
0.057773590087890625,
0.046162232756614685,
-0.02811810001730919,
-0.02439599111676216,
-0.028947481885552406,
-0.02692459709942341,
-0.00891080778092146,
0.031476087868213654,
-0.001598078990355134,
0.08860235661268234,
0.0058410800993442535,
-0.003962325863540173,
0.02931160107254982,
-0.0710841715335846,
0.014999691396951675,
0.032871879637241364,
0.01777104288339615,
0.012268796563148499,
0.03552185744047165,
0.025953613221645355,
-0.01704280450940132,
-0.011156209744513035,
-0.006346801295876503,
0.016901202499866486,
0.012491313740611076,
-0.021038001403212547,
0.024679195135831833,
-0.043006531894207,
0.005269614979624748,
0.03669513016939163,
0.008389914408326149,
-0.08528482168912888,
-0.05931098386645317,
-0.03720085322856903,
-0.03643215447664261,
0.013684815727174282,
-0.011682160198688507,
0.027936039492487907,
-0.001371768768876791,
0.014139965176582336,
0.011864219792187214,
0.01800367422401905,
0.036452386528253555,
0.00267779384739697,
0.04211646318435669,
0.01635502465069294,
0.06513689458370209,
-0.012369940988719463,
0.009517673403024673,
0.011307925917208195,
-0.011237124912440777,
-0.0005088819889351726,
0.03210318088531494,
0.03622986748814583,
-0.010276255197823048,
-0.01431191060692072,
-0.048670608550310135,
-0.061374325305223465,
-0.06493460386991501,
-0.0325482152402401,
-0.020876171067357063,
-0.02862382121384144,
-0.02522537298500538,
-0.040963418781757355,
-0.02931160107254982,
-0.01495923288166523,
0.0215032659471035,
-0.05894686281681061,
-0.01815539225935936,
-0.05538658797740936,
-0.019713012501597404,
0.0036361354868859053,
-0.03940579667687416,
0.02781466580927372,
-0.04883243888616562,
-0.006078768987208605,
0.016668571159243584,
0.021280748769640923,
-0.05259500443935394,
0.0025260774418711662,
0.0270257405936718,
-0.035966891795396805,
0.0028598534408956766,
0.03999243304133415,
0.010792090557515621,
0.0006568054086528718,
-0.049358390271663666,
-0.00547696091234684,
-0.05032937601208687,
0.019763585180044174,
0.017932873219251633,
0.04112524911761284,
0.036877188831567764,
-0.08957333862781525,
-0.011702388525009155,
0.04551490768790245,
-0.05469880625605583,
0.08156271278858185,
0.039972204715013504,
-0.013310582377016544,
0.04039701074361801,
0.017174292355775833,
0.040862273424863815,
-0.03501613810658455,
0.03469247370958328,
-0.007221698760986328,
0.039769914001226425,
0.011429299600422382,
-0.061981189996004105,
-0.016931546851992607,
-0.009669389575719833,
0.05789496377110481,
0.040255408734083176,
0.005224099848419428,
-0.01790253072977066,
0.03333714231848717,
-0.04591948539018631,
-0.01028131227940321,
0.01962198317050934,
-0.03819206729531288,
-0.08245278894901276,
-0.045029416680336,
-0.04571719840168953,
0.07148875296115875,
0.022170817479491234,
0.03631078451871872,
-0.007818450219929218,
-0.02391049824655056,
-0.008536574430763721
] |
10,022
|
sentence_transformers.SentenceTransformer
|
_load_sbert_model
|
Loads a full sentence-transformers model
|
def _load_sbert_model(
self,
model_name_or_path: str,
token: Optional[Union[bool, str]],
cache_folder: Optional[str],
revision: Optional[str] = None,
trust_remote_code: bool = False,
):
"""
Loads a full sentence-transformers model
"""
# Check if the config_sentence_transformers.json file exists (exists since v2 of the framework)
config_sentence_transformers_json_path = load_file_path(
model_name_or_path,
"config_sentence_transformers.json",
token=token,
cache_folder=cache_folder,
revision=revision,
)
if config_sentence_transformers_json_path is not None:
with open(config_sentence_transformers_json_path) as fIn:
self._model_config = json.load(fIn)
if (
"__version__" in self._model_config
and "sentence_transformers" in self._model_config["__version__"]
and self._model_config["__version__"]["sentence_transformers"] > __version__
):
logger.warning(
"You try to use a model that was created with version {}, however, your version is {}. This might cause unexpected behavior or errors. In that case, try to update to the latest version.\n\n\n".format(
self._model_config["__version__"]["sentence_transformers"], __version__
)
)
# Set prompts if not already overridden by the __init__ calls
if not self.prompts:
self.prompts = self._model_config.get("prompts", {})
if not self.default_prompt_name:
self.default_prompt_name = self._model_config.get("default_prompt_name", None)
# Check if a readme exists
model_card_path = load_file_path(
model_name_or_path, "README.md", token=token, cache_folder=cache_folder, revision=revision
)
if model_card_path is not None:
try:
with open(model_card_path, encoding="utf8") as fIn:
self._model_card_text = fIn.read()
except Exception:
pass
# Load the modules of sentence transformer
modules_json_path = load_file_path(
model_name_or_path, "modules.json", token=token, cache_folder=cache_folder, revision=revision
)
with open(modules_json_path) as fIn:
modules_config = json.load(fIn)
modules = OrderedDict()
for module_config in modules_config:
module_class = import_from_string(module_config["type"])
# For Transformer, don't load the full directory, rely on `transformers` instead
# But, do load the config file first.
if module_class == Transformer and module_config["path"] == "":
kwargs = {}
for config_name in [
"sentence_bert_config.json",
"sentence_roberta_config.json",
"sentence_distilbert_config.json",
"sentence_camembert_config.json",
"sentence_albert_config.json",
"sentence_xlm-roberta_config.json",
"sentence_xlnet_config.json",
]:
config_path = load_file_path(
model_name_or_path, config_name, token=token, cache_folder=cache_folder, revision=revision
)
if config_path is not None:
with open(config_path) as fIn:
kwargs = json.load(fIn)
break
hub_kwargs = {"token": token, "trust_remote_code": trust_remote_code, "revision": revision}
if "model_args" in kwargs:
kwargs["model_args"].update(hub_kwargs)
else:
kwargs["model_args"] = hub_kwargs
if "tokenizer_args" in kwargs:
kwargs["tokenizer_args"].update(hub_kwargs)
else:
kwargs["tokenizer_args"] = hub_kwargs
module = Transformer(model_name_or_path, cache_dir=cache_folder, **kwargs)
else:
# Normalize does not require any files to be loaded
if module_class == Normalize:
module_path = None
else:
module_path = load_dir_path(
model_name_or_path,
module_config["path"],
token=token,
cache_folder=cache_folder,
revision=revision,
)
module = module_class.load(module_path)
modules[module_config["name"]] = module
return modules
|
(self, model_name_or_path: str, token: Union[bool, str, NoneType], cache_folder: Optional[str], revision: Optional[str] = None, trust_remote_code: bool = False)
|
[
0.029819319024682045,
-0.03125735744833946,
-0.027762126177549362,
-0.0005804581451229751,
0.003565136343240738,
-0.03217610344290733,
-0.02087152749300003,
0.028361309319734573,
-0.00005648544174619019,
-0.005512479692697525,
0.01086517795920372,
-0.015129360370337963,
-0.06902583688497543,
0.027043107897043228,
-0.014989551156759262,
0.012313202023506165,
0.03676983714103699,
0.01040580403059721,
0.017765764147043228,
-0.06459188461303711,
-0.006820695009082556,
-0.03637038171291351,
-0.011803897097706795,
0.0154589107260108,
0.011554237455129623,
0.01409077737480402,
0.025025859475135803,
-0.02722286246716976,
0.03415340557694435,
-0.024067167192697525,
0.011664087884128094,
-0.006071717012673616,
0.021231036633253098,
0.04190283641219139,
-0.021390818059444427,
-0.025265531614422798,
0.01677711308002472,
-0.007704489398747683,
-0.1070539578795433,
-0.04865362495183945,
0.005857009906321764,
-0.012482970952987671,
0.09131542593240738,
0.018604619428515434,
-0.04398000240325928,
0.007429864257574081,
-0.01261279359459877,
0.06818697601556778,
-0.009507030248641968,
0.010285967960953712,
-0.046336784958839417,
-0.01447025965899229,
0.0017800716450437903,
0.025305477902293205,
-0.03411346301436424,
-0.05180932208895683,
-0.02710302546620369,
0.06223509833216667,
0.005242847837507725,
0.04334087297320366,
0.05636310949921608,
0.005327731836587191,
0.012562861666083336,
0.06051744148135185,
-0.01769585907459259,
0.015438937582075596,
0.0036175649147480726,
-0.00316068809479475,
0.001400589244440198,
-0.0038522446993738413,
-0.014040845446288586,
-0.037668611854314804,
0.003035858506336808,
0.07541711628437042,
0.04873351752758026,
-0.013132085092365742,
-0.053167469799518585,
-0.002260665874928236,
0.006136628333479166,
0.03327460587024689,
0.053167469799518585,
-0.0365900844335556,
-0.022249646484851837,
-0.06431226432323456,
-0.05033133551478386,
-0.03904673084616661,
0.04441940039396286,
-0.024546513333916664,
0.010965040884912014,
0.004219244234263897,
-0.0672282874584198,
0.04072444140911102,
0.007404898293316364,
0.043380819261074066,
0.03351427987217903,
-0.00762459821999073,
0.029220137745141983,
0.01494960580021143,
-0.029220137745141983,
-0.022768938913941383,
-0.029759401455521584,
0.06595002859830856,
-0.03157692402601242,
0.002198251197114587,
-0.04505852982401848,
-0.012622780166566372,
-0.05716202035546303,
0.006615974474698305,
0.03233588859438896,
-0.02091147191822529,
-0.07665542513132095,
0.0158583652228117,
-0.008054012432694435,
0.026523815467953682,
-0.007984108291566372,
-0.06798724830150604,
-0.007759414613246918,
0.008363590575754642,
-0.006571035832166672,
0.044818855822086334,
0.009551969356834888,
0.019233761355280876,
-0.04881340637803078,
-0.02808169089257717,
0.021550599485635757,
0.025784824043512344,
0.05400632321834564,
-0.03173670545220375,
0.0833263248205185,
-0.08260730654001236,
0.04609711468219757,
-0.010086240246891975,
0.03359416872262955,
0.007015429437160492,
0.027282780036330223,
-0.053646814078092575,
-0.06395275145769119,
0.027662262320518494,
0.001782568171620369,
0.05125008523464203,
0.005452561657875776,
-0.004351563286036253,
0.030578285455703735,
-0.04597727581858635,
0.014889687299728394,
-0.021330900490283966,
-0.004221740644425154,
-0.07541711628437042,
-0.052408501505851746,
0.01409077737480402,
0.05556419864296913,
-0.004012026824057102,
-0.017276430502533913,
-0.004064455162733793,
-0.04150338098406792,
0.005118018016219139,
-0.03668994829058647,
-0.04445934668183327,
-0.000860076688695699,
0.04809438809752464,
-0.0181452464312315,
-0.033793896436691284,
0.04909302666783333,
0.01460008230060339,
0.010685422457754612,
-0.010745340958237648,
-0.06527095288038254,
-0.024706294760107994,
-0.0406046062707901,
0.025744877755641937,
-0.015588733367621899,
0.030778011307120323,
-0.08899858593940735,
0.030897848308086395,
0.06251471489667892,
0.012472984381020069,
0.03467269986867905,
0.01607806608080864,
-0.02484610490500927,
0.00861324928700924,
-0.01002632174640894,
0.01969313435256481,
-0.024506567046046257,
0.009197453036904335,
-0.011174755170941353,
0.06039760261774063,
0.009666812606155872,
0.026004524901509285,
0.009137534536421299,
0.03451291844248772,
0.01113480981439352,
0.00810394436120987,
0.060956843197345734,
-0.013281880877912045,
-0.036650002002716064,
0.01954333856701851,
-0.03217610344290733,
-0.01954333856701851,
-0.020022684708237648,
0.005677254870533943,
-0.009811614640057087,
-0.013201989233493805,
0.05963863804936409,
-0.008802990429103374,
-0.06443209946155548,
-0.008822963573038578,
-0.021231036633253098,
0.04413978382945061,
-0.0064561921171844006,
-0.01140444166958332,
-0.021151145920157433,
-0.04382022097706795,
0.01919381506741047,
0.03291509672999382,
0.08348610997200012,
-0.04254196211695671,
0.02586471475660801,
0.024945968762040138,
-0.016497494652867317,
-0.037408966571092606,
0.08524370938539505,
0.039126623421907425,
-0.02576485089957714,
0.0004259813576936722,
-0.019942793995141983,
-0.02408714033663273,
-0.01810530014336109,
-0.021550599485635757,
0.0005551801295951009,
-0.007659550756216049,
0.03431319072842598,
0.009362228214740753,
0.0074248709715902805,
0.004309121519327164,
-0.027921907603740692,
-0.022629128769040108,
0.017456185072660446,
0.04421967640519142,
-0.019503392279148102,
-0.03223602473735809,
0.03984564170241356,
-0.006371308118104935,
-0.04749520495533943,
-0.033694032579660416,
0.006591008510440588,
-0.015079428441822529,
0.044499292969703674,
-0.058280494064092636,
-0.06682883203029633,
-0.03397365286946297,
0.011104850098490715,
0.056442998349666595,
-0.028481146320700645,
0.03499226272106171,
-0.03962594270706177,
-0.09443117678165436,
0.031437113881111145,
-0.053487032651901245,
0.03467269986867905,
-0.020611880347132683,
-0.054405778646469116,
-0.06283427774906158,
-0.039126623421907425,
0.06339351832866669,
-0.03908667713403702,
-0.03241577744483948,
-0.0014567626640200615,
0.011224687099456787,
0.020671799778938293,
-0.01433045044541359,
0.039006784558296204,
0.027282780036330223,
-0.05244844779372215,
-0.003377891844138503,
0.019103938713669777,
-0.030138883739709854,
-0.03613071143627167,
-0.023527903482317924,
0.008208801038563251,
0.06694866716861725,
0.009846567176282406,
-0.03778844699263573,
0.03427324444055557,
0.017136622220277786,
0.017426226288080215,
-0.038866978138685226,
-0.0645119920372963,
-0.11144796013832092,
-0.002743756864219904,
-0.01239309273660183,
-0.0075946394354105,
0.015199264511466026,
0.014640027657151222,
-0.02081160806119442,
0.00731502054259181,
-0.0850040391087532,
-0.030158856883645058,
0.019523365423083305,
0.07709482312202454,
-0.08564316481351852,
-0.010675436817109585,
0.027502480894327164,
0.06595002859830856,
-0.009337262250483036,
0.014969578012824059,
-0.06339351832866669,
-0.0056173368357121944,
-0.05664272606372833,
-0.01363140344619751,
-0.0025540157221257687,
0.0008170104119926691,
0.0019161360105499625,
0.10777297616004944,
0.013811158947646618,
0.046656351536512375,
0.02544528618454933,
0.03764864057302475,
0.05720196291804314,
0.033214688301086426,
0.003575122682377696,
0.0003894686815328896,
0.031377196311950684,
0.015558774583041668,
0.01966317556798458,
0.056602779775857925,
-0.04749520495533943,
0.07977117598056793,
-0.003387878183275461,
-0.039006784558296204,
-0.00848342664539814,
-0.03637038171291351,
0.03027869388461113,
0.061116624623537064,
0.026004524901509285,
-0.0330948531627655,
0.02404719404876232,
-0.01715659536421299,
-0.005991825833916664,
0.024386731907725334,
-0.020991362631320953,
0.07993095368146896,
-0.06962501257658005,
-0.005891961976885796,
0.03005899302661419,
0.00432909419760108,
0.008228774182498455,
0.02989921160042286,
0.007589646149426699,
0.020731717348098755,
-0.009252377785742283,
-0.044019948691129684,
0.013132085092365742,
0.02941986545920372,
0.05029139295220375,
-0.03661005571484566,
-0.0020759180188179016,
-0.03445299714803696,
0.0023218325804919004,
-0.015878338366746902,
-0.09283335506916046,
-0.01702677085995674,
0.023527903482317924,
-0.0941116139292717,
0.031157493591308594,
-0.03748885542154312,
-0.02388741262257099,
0.010815246030688286,
-0.0017563540022820234,
0.08788011223077774,
0.010635490529239178,
0.007260095793753862,
0.0027088045608252287,
0.017705844715237617,
0.01124466024339199,
0.005607350263744593,
-0.012472984381020069,
-0.05664272606372833,
0.004076938144862652,
-0.03223602473735809,
0.018914196640253067,
0.044818855822086334,
0.054845180362463,
0.03790828585624695,
-0.0026938249357044697,
0.03854741156101227,
-0.02710302546620369,
0.04166316241025925,
-0.009696771390736103,
0.006750790402293205,
-0.0543258860707283,
0.03183656930923462,
-0.03593098372220993,
-0.02280888333916664,
0.016008161008358,
-0.01374125387519598,
0.009317289106547832,
-0.027402617037296295,
0.07337989658117294,
-0.011594182811677456,
-0.007459823042154312,
0.002333067124709487,
0.008937806822359562,
0.057521529495716095,
0.02005264349281788,
-0.04533815011382103,
0.034812506288290024,
0.07625596970319748,
0.026903297752141953,
-0.008433494716882706,
0.028141608461737633,
-0.014699946157634258,
0.03780842199921608,
-0.06551063060760498,
-0.027342699468135834,
-0.05093051865696907,
0.04845389723777771,
0.02440670318901539,
0.033634115010499954,
0.0005055603105574846,
-0.004024509806185961,
-0.012303215451538563,
0.04110392555594444,
0.004007033538073301,
-0.04793460667133331,
0.013072166591882706,
0.11008981615304947,
-0.05524463579058647,
0.023567847907543182,
-0.03147706016898155,
-0.017925545573234558,
-0.004593733232468367,
-0.011054919101297855,
-0.023867439478635788,
-0.041862890124320984,
0.0309178214520216,
-0.008328638039529324,
0.01361143123358488,
-0.03645027428865433,
-0.024666350334882736,
-0.004438944160938263,
-0.010605531744658947,
-0.007869265042245388,
0.02860098145902157,
0.01150430552661419,
0.009222419001162052,
-0.027562398463487625,
-0.05812070891261101,
0.055364470928907394,
-0.007749428041279316,
-0.050850629806518555,
-0.004401495214551687,
0.034552861005067825,
0.0038048094138503075,
0.0034802521113306284,
-0.025944605469703674,
-0.004618699196726084,
0.11600174754858017,
0.045418038964271545,
-0.02350793033838272,
0.035791173577308655,
-0.03828776627779007,
0.004181795287877321,
0.07537716627120972,
0.020282329991459846,
0.07357962429523468,
0.011813883669674397,
0.027941880747675896,
-0.009427139535546303,
-0.030358584597706795,
-0.012762589380145073,
0.005028140731155872,
-0.03453288972377777,
0.0330948531627655,
0.007874257862567902,
-0.049132972955703735,
0.02436675876379013,
0.04857373610138893,
-0.07246115058660507,
-0.04905308037996292,
-0.031497031450271606,
0.02860098145902157,
-0.029759401455521584,
-0.011604169383645058,
0.039765749126672745,
0.010775299742817879,
-0.03932635113596916,
0.007215157151222229,
-0.02522558718919754,
0.025205614045262337,
-0.026743516325950623,
-0.05720196291804314,
0.023048557341098785,
0.04889329895377159,
0.015988187864422798,
-0.0054425750859081745,
0.017426226288080215,
-0.013211975805461407,
0.021151145920157433,
0.011044932529330254,
-0.025025859475135803,
0.024826131761074066,
-0.001110984361730516,
0.008603263646364212,
-0.04565771296620369,
0.003517701057717204,
0.04793460667133331,
-0.036709919571876526,
-0.02678346075117588,
-0.022888774052262306,
0.012223324738442898,
-0.03097773902118206,
0.01992282085120678,
-0.008313658647239208,
-0.015239210799336433,
-0.004441441036760807,
-0.0019011563854292035,
-0.012662725523114204,
0.04266180098056793,
-0.00854833796620369,
0.053167469799518585,
0.03984564170241356,
-0.012522916309535503,
0.04342076554894447,
-0.038707196712493896,
0.01852472871541977,
0.014190641231834888,
-0.00861324928700924,
0.0032280960585922003,
0.06491144746541977,
0.059398967772722244,
0.008078978396952152,
-0.01903403364121914,
-0.024606430903077126,
0.0554044172167778,
0.03475258871912956,
-0.010435763746500015,
-0.004536311607807875,
-0.01486971415579319,
0.01449023187160492,
-0.036110736429691315,
-0.02484610490500927,
-0.04182294383645058,
-0.013801172375679016,
0.04581749439239502,
0.016507480293512344,
-0.04018517956137657,
-0.012293229810893536,
0.030039019882678986,
-0.05895956605672836,
0.005886968690901995,
-0.037668611854314804,
-0.009122555144131184,
0.0009512023534625769,
-0.022409427911043167,
0.04601722210645676,
-0.05029139295220375,
-0.017595995217561722,
0.0005205398774705827,
0.027043107897043228,
0.014789823442697525,
0.008168855682015419,
0.02576485089957714,
-0.04809438809752464,
-0.0013406709767878056,
0.05097046494483948,
0.03980569541454315,
-0.02195005491375923,
-0.002542781177908182,
-0.04641667753458023,
-0.024646377190947533,
0.034492943435907364,
0.00938719417899847,
-0.0038197890389710665,
0.05508485063910484,
-0.02436675876379013,
0.04957237094640732,
-0.015718556940555573,
0.03349430486559868,
-0.003909666556864977,
0.01690693572163582,
0.06043754890561104,
0.0008032791665755212,
-0.01788559928536415,
0.030638203024864197,
0.005647295620292425,
-0.06011798605322838,
0.023368120193481445,
0.02163049206137657,
0.0046261888928711414,
0.003492735093459487,
-0.030398529022932053,
0.042462073266506195,
0.03195640444755554,
0.007829318754374981,
0.052728068083524704,
0.012293229810893536,
-0.04457918554544449,
-0.0010167378932237625,
0.013281880877912045,
-0.025425314903259277,
-0.04817428067326546,
-0.008059006184339523,
0.03141713887453079,
-0.007055374793708324,
0.016886962577700615,
-0.017496131360530853,
-0.06371308118104935,
0.009157506749033928,
0.004915793891996145,
0.08420512825250626,
-0.009197453036904335,
-0.028361309319734573,
-0.0022818869911134243,
-0.06850653886795044,
0.0024092132225632668,
-0.04326098412275314,
0.02252926491200924,
-0.007469809614121914,
0.06958507001399994,
-0.04793460667133331,
0.03898681327700615,
0.031337250024080276,
-0.02017248049378395,
0.030997712165117264,
-0.07705488055944443,
0.026683596894145012,
-0.02344801090657711,
-0.05121013894677162,
0.0023805024102330208,
-0.049612317234277725,
0.023707658052444458,
-0.048933245241642,
0.0704638734459877,
-0.009032677859067917,
0.012433039024472237,
-0.0189641285687685,
0.03559144586324692,
0.02103130891919136,
0.04018517956137657,
0.01578846201300621,
0.034492943435907364,
-0.0414234884083271,
-0.0162678062915802,
-0.01871446892619133,
-0.062035370618104935,
0.018165219575166702,
-0.01763594150543213,
0.04577754810452461,
0.06251471489667892,
0.035191990435123444,
-0.0030458448454737663,
0.04026506841182709,
-0.024866078048944473,
-0.013211975805461407,
-0.02834133617579937,
-0.009746703319251537,
0.031976375728845596,
-0.02754242531955242,
0.05292779579758644,
-0.0022931217681616545,
0.000398518837755546,
-0.003879707306623459,
0.07018425315618515,
0.0001599380630068481,
0.005657282192260027,
-0.007185197900980711,
0.0012844976736232638,
-0.023308202624320984,
0.011254645884037018,
-0.005142983980476856,
-0.036550138145685196,
-0.042462073266506195,
0.0034952317364513874,
-0.037089403718709946,
-0.004805943462997675,
0.03043847531080246,
0.032775286585092545,
-0.027881963178515434,
0.017036758363246918,
0.012642752379179,
-0.026264170184731483,
0.04669629782438278,
-0.008523372001945972,
0.04362049326300621,
-0.036650002002716064,
0.048214226961135864,
-0.022788910195231438,
0.03343438729643822,
0.02894051931798458,
-0.05448567122220993,
-0.01880434714257717,
0.04130365327000618,
-0.03343438729643822,
-0.04469902068376541,
0.013911021873354912,
-0.029020410031080246,
0.00419427827000618,
-0.06890599429607391,
-0.06423237174749374,
0.023328175768256187,
0.05017155408859253,
-0.06355329602956772,
-0.06575030088424683,
-0.02656376175582409,
-0.05548430606722832,
-0.008578297682106495,
-0.0688660517334938,
0.029140247032046318,
-0.07022419571876526,
-0.07038398087024689,
0.04701586067676544,
-0.030298665165901184,
0.0833263248205185,
-0.011694046668708324,
0.03816793113946915,
0.006526097189635038,
-0.01960325613617897,
0.07497771084308624,
0.021530628204345703,
-0.030478421598672867,
-0.0030558311846107244,
-0.017366308718919754,
0.04282158240675926,
0.028840655460953712,
0.03637038171291351,
-0.03581114485859871,
-0.010196090675890446,
0.02328822948038578,
0.09642845392227173,
0.02091147191822529,
0.01202359702438116,
-0.012363133952021599,
-0.061436187475919724,
-0.010955055244266987,
-0.0018187687965109944,
-0.0796113908290863,
0.020222412422299385,
0.023487957194447517,
-0.0013693819055333734,
-0.009032677859067917,
0.05796092748641968,
-0.004304128233343363,
-0.05712207406759262,
-0.005167949944734573,
0.002124601509422064,
0.019503392279148102,
0.06103673204779625,
-0.038147956132888794,
-0.0017176567343994975,
-0.013940981589257717,
0.01906399242579937,
0.0004671751812566072,
0.00525782722979784,
0.023567847907543182,
0.012113474309444427,
-0.033694032579660416,
-0.007949155755341053,
0.016727181151509285,
-0.025025859475135803,
-0.04501858353614807,
0.036230575293302536,
-0.08009073883295059,
0.017046744003891945,
-0.03882703185081482,
0.06930544972419739,
0.001477983663789928,
0.037189263850450516,
0.018644563853740692
] |
10,023
|
torch.nn.modules.module
|
_maybe_warn_non_full_backward_hook
| null |
def _maybe_warn_non_full_backward_hook(self, inputs, result, grad_fn):
if not isinstance(result, torch.Tensor):
if not (isinstance(result, tuple) and all(isinstance(r, torch.Tensor) for r in result)):
warnings.warn("Using non-full backward hooks on a Module that does not return a "
"single Tensor or a tuple of Tensors is deprecated and will be removed "
"in future versions. This hook will be missing some of the grad_output. "
"Please use register_full_backward_hook to get the documented behavior.")
return
else:
result = (result,)
if not isinstance(inputs, torch.Tensor):
if not (isinstance(inputs, tuple) and all(isinstance(i, torch.Tensor) for i in inputs)):
warnings.warn("Using non-full backward hooks on a Module that does not take as input a "
"single Tensor or a tuple of Tensors is deprecated and will be removed "
"in future versions. This hook will be missing some of the grad_input. "
"Please use register_full_backward_hook to get the documented behavior.")
return
else:
inputs = (inputs,)
# At this point we are sure that inputs and result are tuple of Tensors
out_grad_fn = {r.grad_fn for r in result if r.grad_fn is not None}
if len(out_grad_fn) == 0 or (len(out_grad_fn) == 1 and grad_fn not in out_grad_fn):
warnings.warn("Using a non-full backward hook when outputs are nested in python data structure "
"is deprecated and will be removed in future versions. This hook will be missing "
"some grad_output.")
elif len(out_grad_fn) > 1:
warnings.warn("Using a non-full backward hook when outputs are generated by different autograd Nodes "
"is deprecated and will be removed in future versions. This hook will be missing "
"some grad_output. Please use register_full_backward_hook to get the documented behavior.")
else:
# At this point the grad_output part of the hook will most likely be correct
inputs_grad_fn = {i.grad_fn for i in inputs if i.grad_fn is not None}
next_functions = {n[0] for n in grad_fn.next_functions}
if inputs_grad_fn != next_functions:
warnings.warn("Using a non-full backward hook when the forward contains multiple autograd Nodes "
"is deprecated and will be removed in future versions. This hook will be missing "
"some grad_input. Please use register_full_backward_hook to get the documented "
"behavior.")
|
(self, inputs, result, grad_fn)
|
[
-0.05590735748410225,
-0.031679634004831314,
-0.012860852293670177,
0.03194963186979294,
-0.0231117345392704,
0.01951177604496479,
-0.046187467873096466,
0.024371718987822533,
0.05371138080954552,
-0.03065364621579647,
0.029987655580043793,
-0.01432783529162407,
0.0005546186002902687,
-0.05432337522506714,
-0.0005214315024204552,
0.05770733579993248,
-0.034091606736183167,
0.05083141475915909,
0.04262350872159004,
0.01734280027449131,
-0.02716168761253357,
-0.029465660452842712,
0.025865701958537102,
0.05345938354730606,
-0.022823737934231758,
-0.03490159660577774,
0.04989542439579964,
-0.03319161757826805,
0.01797279343008995,
0.05237939581274986,
-0.0697311982512474,
-0.0443514883518219,
0.06616723537445068,
0.005408937577158213,
-0.005138940643519163,
-0.016685808077454567,
0.006677923258394003,
0.06998319178819656,
-0.06328727304935455,
0.002927216235548258,
0.009139394387602806,
-0.050327420234680176,
-0.021293755620718002,
0.017117802053689957,
0.0023827224504202604,
-0.0009089895174838603,
-0.06811121851205826,
0.031049642711877823,
-0.0752391368150711,
-0.010088884271681309,
0.01688380539417267,
-0.06472725421190262,
0.027611682191491127,
0.04751945286989212,
0.021077757701277733,
0.015299824066460133,
0.03916754946112633,
0.0035639589186757803,
-0.01368884276598692,
0.024551717564463615,
0.05731134116649628,
0.0254697073251009,
0.010700876824557781,
0.007775910664349794,
0.017045803368091583,
-0.0014242335455492139,
-0.015074826776981354,
-0.02735968492925167,
-0.021491752937436104,
0.07559912651777267,
-0.08027907460927963,
0.01342784520238638,
0.017936794087290764,
0.006407926324754953,
0.025919701904058456,
-0.05439537391066551,
0.05187540128827095,
-0.0011902363039553165,
0.0016166063724085689,
-0.028817668557167053,
-0.007775910664349794,
-0.014543832279741764,
-0.028979666531085968,
0.02395772375166416,
0.0018157290760427713,
-0.03002365492284298,
-0.0066239237785339355,
-0.010376880876719952,
0.024767715483903885,
-0.00829340424388647,
-0.049787428230047226,
-0.06321527063846588,
0.007433914579451084,
0.01601981557905674,
0.01214986015111208,
0.016370810568332672,
-0.02289573661983013,
-0.032003629952669144,
-0.005975930951535702,
0.010277881287038326,
0.0032669624779373407,
-0.0006232428131625056,
0.004900443367660046,
0.04834744334220886,
0.08675900101661682,
-0.06346727162599564,
-0.014759830199182034,
-0.03626958280801773,
0.02003376930952072,
-0.0355495922267437,
-0.014543832279741764,
-0.07459113746881485,
0.024677716195583344,
-0.0007391165127046406,
-0.006002930924296379,
-0.017891794443130493,
-0.02300373464822769,
-0.02534370869398117,
-0.004436948802322149,
0.0026167198084294796,
0.06101929768919945,
-0.028907667845487595,
-0.048419442027807236,
-0.035369593650102615,
0.012113860808312893,
0.0012824852019548416,
0.040247537195682526,
0.04910343512892723,
0.05057941749691963,
0.009611889719963074,
-0.008270904421806335,
0.04697945713996887,
-0.07696711272001266,
0.024011723697185516,
0.013976839371025562,
-0.0018832283094525337,
-0.028511671349406242,
0.004999442491680384,
0.013499844819307327,
-0.018026791512966156,
-0.016523810103535652,
0.005071441642940044,
0.050435420125722885,
0.038447558879852295,
-0.013130849227309227,
0.04892343655228615,
0.0042434511706233025,
0.05410737544298172,
0.029789656400680542,
-0.02429972030222416,
0.020915759727358818,
-0.0017662296304479241,
-0.06353926658630371,
-0.006682422943413258,
-0.05443137139081955,
0.036629579961299896,
-0.031049642711877823,
0.008851397782564163,
0.023165732622146606,
-0.02811567671597004,
0.012761852703988552,
-0.08215105533599854,
0.015452821739017963,
0.008419402875006199,
0.03787156566977501,
-0.02863766998052597,
0.02143775299191475,
-0.0014906078577041626,
0.006830921396613121,
0.06346727162599564,
-0.011465867981314659,
0.003831705776974559,
0.034631602466106415,
0.0710991844534874,
-0.025487706065177917,
0.05079541355371475,
-0.0000728429076843895,
-0.034217607229948044,
-0.038771554827690125,
0.01855778694152832,
0.05770733579993248,
-0.027215685695409775,
-0.02291373535990715,
-0.07415914535522461,
0.0023107232991605997,
0.013409845530986786,
-0.028817668557167053,
-0.0005737433675676584,
-0.012311858125030994,
0.0318596325814724,
-0.0271436870098114,
-0.016361812129616737,
0.044819485396146774,
-0.011843863874673843,
0.027287686243653297,
0.013409845530986786,
-0.03119364008307457,
0.04229951277375221,
0.07588712871074677,
-0.0773991122841835,
-0.010754875838756561,
-0.055007368326187134,
0.03603558614850044,
0.03490159660577774,
-0.050327420234680176,
0.009031396359205246,
0.014534832909703255,
0.041111525148153305,
-0.03142763674259186,
-0.033047620207071304,
0.03445160388946533,
0.007969408296048641,
-0.017567798495292664,
0.03641358017921448,
-0.004063453059643507,
0.009881886653602123,
0.07394314557313919,
0.018161790445446968,
-0.06364727020263672,
0.011447868309915066,
0.0241917222738266,
-0.08272704482078552,
0.0060524302534759045,
0.0003417148254811764,
0.010178882628679276,
0.026819691061973572,
0.02716168761253357,
0.004945443011820316,
0.04445948824286461,
-0.007708411198109388,
0.038663554936647415,
0.014615831896662712,
-0.02969965711236,
0.013913840055465698,
0.03056364879012108,
0.02024976722896099,
-0.007730911020189524,
-0.030041653662919998,
0.08265504986047745,
0.01992577128112316,
0.0008662400068715215,
0.012446857057511806,
-0.00407020328566432,
0.03758356720209122,
0.06634723395109177,
-0.024875713512301445,
0.009035895578563213,
-0.02366972714662552,
-0.014237836003303528,
0.025541706010699272,
-0.0267476923763752,
0.007010919041931629,
0.004342449828982353,
0.01447183359414339,
-0.012761852703988552,
-0.0608753003180027,
-0.014066837728023529,
-0.02176174893975258,
0.04539547860622406,
-0.061991285532712936,
0.030293650925159454,
-0.00042805756675079465,
-0.023165732622146606,
0.045467477291822433,
-0.05918331816792488,
-0.05432337522506714,
0.0538913793861866,
-0.0051929401233792305,
0.015569821000099182,
0.07595912367105484,
0.010646877810359001,
-0.012698853388428688,
-0.05407137796282768,
-0.005246939603239298,
-0.004967942833900452,
0.026027699932456017,
0.0752391368150711,
0.02705368772149086,
0.05525936186313629,
0.037187572568655014,
0.06911920756101608,
-0.0498594269156456,
-0.04161551967263222,
0.044063493609428406,
0.030275652185082436,
0.02003376930952072,
-0.013058849610388279,
-0.02429972030222416,
0.04309150204062462,
-0.03970754146575928,
0.08481502532958984,
-0.0007008669199422002,
0.05939931422472,
0.017315801233053207,
-0.02800767682492733,
0.04795144870877266,
-0.010727876797318459,
0.004661946091800928,
0.0696231946349144,
-0.025379708036780357,
-0.011150871403515339,
-0.0025672204792499542,
-0.006664423272013664,
0.004425698891282082,
0.035693589597940445,
-0.10360680520534515,
0.01610981486737728,
-0.06937120109796524,
-0.016091814264655113,
-0.02154575102031231,
-0.013967839069664478,
-0.027197686955332756,
0.04424349218606949,
-0.02525370940566063,
0.008171905763447285,
-0.016550809144973755,
0.037691567093133926,
-0.0022893487475812435,
0.009728888049721718,
0.06166728958487511,
-0.02555970475077629,
0.038231559097766876,
0.05756333842873573,
0.06609524041414261,
-0.03459560126066208,
-0.026495695114135742,
0.03765556588768959,
-0.005237939767539501,
0.01718980260193348,
-0.017639797180891037,
-0.0700191929936409,
-0.06573524326086044,
0.02725168690085411,
-0.014822829514741898,
-0.03938354551792145,
0.017225801944732666,
0.019961770623922348,
-0.06692323088645935,
0.060407303273677826,
-0.009629889391362667,
0.004063453059643507,
0.009800886735320091,
-0.010817875154316425,
0.03545959293842316,
0.03585558757185936,
0.04413549229502678,
-0.0027562181930989027,
0.05439537391066551,
0.057959333062171936,
0.04197551682591438,
-0.012662854045629501,
-0.04888743534684181,
-0.04913943260908127,
0.04273150861263275,
0.04039153456687927,
-0.013022850267589092,
-0.04273150861263275,
0.02514570951461792,
0.042371511459350586,
-0.024479718878865242,
-0.012680853717029095,
-0.03974354267120361,
-0.007811910007148981,
0.08503101766109467,
0.04636746644973755,
-0.010700876824557781,
0.0307796448469162,
-0.004103952553123236,
-0.019871771335601807,
-0.02303973399102688,
0.002443471923470497,
-0.0009258643258363008,
0.022769737988710403,
-0.021869748830795288,
-0.04867143929004669,
-0.015002827160060406,
0.0025694703217595816,
0.027017688378691673,
0.015938816592097282,
-0.02100575901567936,
-0.013625843450427055,
-0.0023219732102006674,
-0.054683368653059006,
0.012653854675590992,
0.05749133974313736,
0.0078794090077281,
-0.044819485396146774,
-0.016226813197135925,
0.0019574775360524654,
-0.009809887036681175,
0.05327938497066498,
0.026045700535178185,
-0.02080775983631611,
-0.008851397782564163,
-0.05975931137800217,
0.011600865982472897,
0.01647881045937538,
0.02080775983631611,
-0.002686469117179513,
-0.03513559699058533,
-0.024119721725583076,
-0.01829678937792778,
-0.03317361697554588,
0.020447764545679092,
-0.05122740939259529,
0.04496348276734352,
-0.002531220903620124,
0.06227928400039673,
0.00021346629364416003,
0.01825178973376751,
-0.016550809144973755,
0.008036907762289047,
-0.07451914250850677,
0.009629889391362667,
0.030995642766356468,
0.07948708534240723,
-0.06227928400039673,
0.030185652896761894,
-0.04816744476556778,
0.03317361697554588,
0.04589947313070297,
-0.016001814976334572,
0.06501524895429611,
0.02195974625647068,
-0.029861656948924065,
-0.0009224893874488771,
-0.09928685426712036,
0.0153898224234581,
-0.05327938497066498,
0.04453148692846298,
0.013067849911749363,
-0.05317138880491257,
0.013598843477666378,
-0.05857132375240326,
-0.04082353040575981,
-0.025595705956220627,
-0.0010608627926558256,
0.04712345823645592,
0.019385777413845062,
0.014975827187299728,
0.008113406598567963,
0.014579832553863525,
0.01992577128112316,
-0.023579727858304977,
0.011204871349036694,
-0.01432783529162407,
-0.009710888378322124,
-0.028043676167726517,
-0.059903308749198914,
0.0033839610405266285,
-0.020915759727358818,
0.022103745490312576,
0.04348750039935112,
0.038555555045604706,
0.0015727318823337555,
-0.06245928257703781,
-0.05939931422472,
-0.00910339504480362,
0.026135699823498726,
0.053927380591630936,
-0.03693557530641556,
-0.025919701904058456,
-0.030095653608441353,
0.0359455868601799,
0.005242439452558756,
-0.03349761292338371,
0.0696231946349144,
-0.06357526779174805,
-0.06836321204900742,
0.034217607229948044,
0.025937700644135475,
-0.05111940950155258,
0.05662734806537628,
0.005440437234938145,
-0.0060569304041564465,
-0.020519763231277466,
-0.010619877837598324,
-0.00805490743368864,
0.04931943118572235,
-0.04611546918749809,
-0.04107552766799927,
-0.028043676167726517,
-0.0036607077345252037,
0.007150417659431696,
-0.014858828857541084,
-0.02046576514840126,
-0.04913943260908127,
-0.024227721616625786,
0.010457879863679409,
0.05036342144012451,
-0.07603112608194351,
-0.05439537391066551,
0.034091606736183167,
-0.045467477291822433,
-0.025289708748459816,
-0.06944320350885391,
0.029465660452842712,
0.0038744553457945585,
0.02048376388847828,
0.025955701246857643,
0.0243897195905447,
-0.007771410513669252,
-0.03956354409456253,
-0.012023861519992352,
0.04924743250012398,
-0.046727463603019714,
0.017270801588892937,
0.01743279956281185,
-0.014237836003303528,
-0.003732707118615508,
-0.07311515510082245,
0.017846794798970222,
0.05655534937977791,
0.027953678742051125,
-0.01682080700993538,
-0.043019503355026245,
0.04082353040575981,
0.029087664559483528,
0.034955598413944244,
-0.023255731910467148,
-0.024263720959424973,
0.04575547203421593,
-0.04388349503278732,
-0.023273732513189316,
0.05921931937336922,
0.004621446598321199,
-0.004126452375203371,
-0.01972777210175991,
0.0037102072965353727,
-0.055367361754179,
-0.010700876824557781,
0.03459560126066208,
0.05515136569738388,
-0.031103642657399178,
-0.05327938497066498,
0.00034733975189737976,
0.03455960378050804,
0.0005554623785428703,
-0.12016661465167999,
-0.04510748013854027,
0.005372938234359026,
-0.010583878494799137,
-0.013211848214268684,
-0.026549695059657097,
0.014390834607183933,
-0.014138837344944477,
-0.03967154398560524,
0.04319950193166733,
-0.01415683701634407,
-0.020915759727358818,
-0.07732710987329483,
0.011492867954075336,
0.025271708145737648,
0.034001607447862625,
0.0065879239700734615,
0.028799667954444885,
-0.0014906078577041626,
0.06947919726371765,
-0.002190349856391549,
-0.016460809856653214,
-0.034001607447862625,
-0.04093153029680252,
-0.02078976109623909,
-0.01001688465476036,
-0.02536170743405819,
0.01907978020608425,
0.06836321204900742,
-0.009737887419760227,
-0.04384749382734299,
0.028691669926047325,
-0.02345372922718525,
0.004148952197283506,
-0.041507523506879807,
-0.04319950193166733,
0.005111941136419773,
-0.018116790801286697,
0.07016319036483765,
-0.07912708818912506,
0.04553947597742081,
-0.05677134543657303,
-0.008900897577404976,
-0.01166386529803276,
0.00344921019859612,
-0.004346949979662895,
0.06076730042695999,
-0.005467437207698822,
-0.01214986015111208,
0.0381595604121685,
0.031103642657399178,
0.00909439567476511,
-0.026117699220776558,
0.0033547114580869675,
0.011348869651556015,
-0.09777487069368362,
0.031013643369078636,
0.021779749542474747,
-0.09777487069368362,
0.016208812594413757,
0.060947299003601074,
-0.014768829569220543,
-0.022553740069270134,
0.004436948802322149,
0.022859737277030945,
-0.06580724567174911,
-0.0074789137579500675,
-0.006515924818813801,
-0.007726410869508982,
-0.01024188194423914,
-0.021689750254154205,
-0.017612796276807785,
-0.022967735305428505,
0.009035895578563213,
0.0377635657787323,
-0.030743645504117012,
0.016631808131933212,
-0.05471936985850334,
-0.001167736598290503,
0.05205539986491203,
0.03587358817458153,
0.0784790962934494,
0.011861863546073437,
0.02408372238278389,
-0.0010040509514510632,
0.041831519454717636,
-0.02483971416950226,
-0.010763876140117645,
0.000854427635204047,
-0.04697945713996887,
0.023579727858304977,
0.020555762574076653,
-0.05781533569097519,
-0.008072907105088234,
0.04615147039294243,
-0.0069704195484519005,
-0.02035776525735855,
-0.023183733224868774,
0.036971572786569595,
-0.01610981486737728,
0.013184848241508007,
-0.044387489557266235,
-0.029879655689001083,
0.033263616263866425,
0.008284404873847961,
-0.022823737934231758,
0.010106883943080902,
0.010151882655918598,
-0.009251893498003483,
-0.0003495897108223289,
0.048527441918849945,
-0.002904716646298766,
-0.01972777210175991,
0.06112729758024216,
-0.03682757541537285,
0.03236362710595131,
0.015776818618178368,
0.03711557388305664,
0.01325684692710638,
0.029879655689001083,
-0.013913840055465698,
0.0036269582342356443,
0.00691642053425312,
-0.027935678139328957,
0.020915759727358818,
0.03859155625104904,
-0.028349673375487328,
0.04867143929004669,
0.012545855715870857,
0.025667704641819,
-0.005651935003697872,
-0.06890320777893066,
-0.049175433814525604,
-0.011222871020436287,
-0.033911608159542084,
-0.01801779307425022,
0.03859155625104904,
-0.045575473457574844,
0.033587612211704254,
0.05399937927722931,
-0.022121746093034744,
-0.03376761078834534,
0.02887166664004326,
0.00837890338152647,
-0.04341550171375275,
0.03531559184193611,
-0.01994377002120018,
0.03682757541537285,
-0.007366415113210678,
0.061271294951438904,
-0.026873691007494926,
-0.034217607229948044,
-0.020753761753439903,
-0.039635542780160904,
0.03830355778336525,
-0.026549695059657097,
-0.00482394453138113,
-0.05673534795641899,
-0.03603558614850044,
0.013580843806266785,
0.0289616659283638,
-0.06292727589607239,
0.0436674989759922,
-0.012320858426392078,
-0.05731134116649628,
0.02397572435438633,
0.02321973256766796,
0.009485891088843346,
-0.019871771335601807,
-0.06217128410935402,
-0.038771554827690125,
-0.005863432306796312,
-0.0013556093908846378,
-0.02131175436079502,
0.0166678074747324,
-0.03295762091875076,
-0.02024976722896099,
-0.07711111009120941,
0.0037349569611251354,
-0.01647881045937538,
0.03500959649682045,
-0.030275652185082436,
-0.008896397426724434,
0.009836887009441853,
0.010403879918158054,
0.009836887009441853,
-0.004016203805804253,
-0.015704819932579994,
0.03630558028817177,
-0.02408372238278389,
-0.011015873402357101,
0.003863205434754491,
0.04496348276734352,
-0.010862874798476696,
0.004859943874180317,
0.07361914962530136,
0.02334573119878769,
-0.0008729899418540299,
0.03468560054898262,
0.04103952646255493,
-0.0010001134360209107,
-0.01792779378592968,
0.027089688926935196,
0.0153898224234581,
0.017585797235369682,
0.012779852375388145,
-0.000030110981242614798,
0.006065930239856243,
0.005390937905758619,
-0.006430426146835089,
-0.028043676167726517,
-0.05781533569097519,
0.0964788869023323,
0.02534370869398117,
-0.01879178360104561,
0.013850840739905834,
0.09129495173692703,
-0.03540559113025665,
0.057023342698812485,
-0.04625946655869484,
-0.03427160531282425,
-0.06883120536804199,
0.03286762163043022,
0.04420749098062515,
0.04607946798205376,
0.01197886187583208,
-0.03812355920672417,
0.030077653005719185,
-0.04528747871518135,
0.016118815168738365
] |
10,024
|
torch.nn.modules.module
|
_named_members
|
Help yield various names + members of modules.
|
def _named_members(self, get_members_fn, prefix='', recurse=True, remove_duplicate: bool = True):
r"""Help yield various names + members of modules."""
memo = set()
modules = self.named_modules(prefix=prefix, remove_duplicate=remove_duplicate) if recurse else [(prefix, self)]
for module_prefix, module in modules:
members = get_members_fn(module)
for k, v in members:
if v is None or v in memo:
continue
if remove_duplicate:
memo.add(v)
name = module_prefix + ('.' if module_prefix else '') + k
yield name, v
|
(self, get_members_fn, prefix='', recurse=True, remove_duplicate: bool = True)
|
[
0.0007704187883064151,
-0.038712840527296066,
0.02704153023660183,
-0.025335723534226418,
-0.009094645269215107,
0.00331061240285635,
0.014104330912232399,
0.0054002259857952595,
0.06981239467859268,
-0.023037374019622803,
-0.00868614949285984,
0.021349521353840828,
0.06956101953983307,
0.044566452503204346,
-0.016734864562749863,
-0.008021782152354717,
0.010737606324255466,
0.058643851429224014,
-0.053185269236564636,
0.0009707388817332685,
-0.020397860556840897,
0.06018805503845215,
-0.012919244356453419,
-0.00014056074724067003,
-0.02542550303041935,
0.019787361845374107,
0.022067757323384285,
-0.0007883746293373406,
0.02815479412674904,
0.006719982251524925,
-0.04187307506799698,
0.006558379158377647,
-0.0550885908305645,
-0.012048384174704552,
-0.017264563590288162,
-0.04650568589568138,
-0.01175211276859045,
0.03298492357134819,
-0.04758303984999657,
-0.021726595237851143,
0.10184565931558609,
-0.029896512627601624,
0.011060812510550022,
0.002016667975112796,
0.02043377235531807,
-0.021977977827191353,
0.08374615013599396,
0.07002786546945572,
0.02628738433122635,
-0.03655814006924629,
0.02057741954922676,
0.010234842076897621,
-0.020200347527861595,
-0.012793553061783314,
0.033721111714839935,
0.002392618916928768,
0.005032130982726812,
0.008753483183681965,
0.0508510060608387,
0.08338703215122223,
-0.006208240054547787,
-0.017830172553658485,
0.019051171839237213,
-0.01586400531232357,
-0.032661717385053635,
-0.033631332218647,
-0.03910787031054497,
-0.05311344563961029,
-0.07835938781499863,
-0.0038784665521234274,
0.0005013613845221698,
-0.005382270086556673,
0.0487322136759758,
0.060511261224746704,
0.004659546539187431,
0.023576049134135246,
-0.061875905841588974,
-0.029950380325317383,
0.04061616212129593,
-0.05034824088215828,
-0.018279070034623146,
-0.018297025933861732,
-0.09732078015804291,
0.013808059506118298,
-0.001447691465727985,
0.043704573065042496,
-0.025515282526612282,
-0.02763407491147518,
0.06658034026622772,
0.04858856648206711,
-0.07078201323747635,
0.02896280772984028,
0.018252136185765266,
0.03917969390749931,
-0.030632704496383667,
-0.031548451632261276,
-0.016357792541384697,
0.03337994962930679,
-0.02416859194636345,
0.0004483354859985411,
-0.01381703745573759,
-0.06158861145377159,
0.01502905786037445,
0.07160798460245132,
0.035283271223306656,
-0.010881253518164158,
-0.02815479412674904,
-0.02194206602871418,
0.06047534942626953,
0.016483483836054802,
-0.059649378061294556,
-0.04040069505572319,
0.04722392186522484,
0.02002078853547573,
0.03278740867972374,
-0.06205546483397484,
0.051174212247133255,
-0.0054226708598434925,
-0.023522181436419487,
-0.06295325607061386,
0.0128115089610219,
0.020918581634759903,
0.009821857325732708,
-0.017354343086481094,
-0.012353634461760521,
-0.05063553526997566,
0.05232338607311249,
0.002094102557748556,
0.03223077580332756,
-0.006509000435471535,
0.0017922197002917528,
0.049809567630290985,
0.007263146806508303,
0.0160884540528059,
0.00011264498607488349,
-0.012281810864806175,
0.0704588070511818,
0.02048764005303383,
-0.009902658872306347,
0.010656804777681828,
-0.030147895216941833,
-0.03248215839266777,
-0.014687896706163883,
0.04970183223485947,
-0.032410334795713425,
-0.05792561545968056,
0.03900013491511345,
0.029196234419941902,
-0.027221089228987694,
-0.03724046051502228,
-0.03002220392227173,
-0.004964796360582113,
0.002771936357021332,
0.0178122166544199,
-0.04772668704390526,
0.020810846239328384,
-0.016860555857419968,
0.038605108857154846,
-0.0610499382019043,
0.022247314453125,
-0.0008803984383121133,
0.018368849530816078,
-0.06482066959142685,
0.033326081931591034,
0.038605108857154846,
0.001593582914210856,
0.05993667244911194,
-0.06543117016553879,
0.0002968328772112727,
0.014176154509186745,
0.008641259744763374,
-0.020002832636237144,
0.00458547892048955,
0.036737699061632156,
0.052395209670066833,
-0.030542925000190735,
-0.009346026927232742,
-0.01036951132118702,
-0.004304918460547924,
-0.0032230776268988848,
0.010576004162430763,
-0.055411797016859055,
-0.030291542410850525,
-0.07835938781499863,
-0.016573261469602585,
0.047188010066747665,
0.023234887048602104,
0.03487028926610947,
0.017722437158226967,
-0.01881774514913559,
0.025263899937272072,
-0.011006944812834263,
-0.00494235148653388,
0.058895234018564224,
-0.0010397566948086023,
0.01659121736884117,
-0.05426261946558952,
0.03183574602007866,
0.008241741918027401,
-0.012676839716732502,
-0.0011985539458692074,
-0.016160277649760246,
-0.02099040523171425,
0.011985539458692074,
-0.0032612336799502373,
0.02790341153740883,
-0.005781787913292646,
0.02556915022432804,
-0.02612578123807907,
-0.023935167118906975,
0.030884085223078728,
-0.036953166127204895,
0.040687985718250275,
0.048049893230199814,
-0.03181779012084007,
0.0006430443609133363,
-0.009732077829539776,
-0.017740393057465553,
-0.0027786698192358017,
-0.00988470297306776,
0.006526956334710121,
-0.0019919786136597395,
-0.017767326906323433,
0.008129517547786236,
0.0614449642598629,
-0.008165429346263409,
-0.004491210449486971,
-0.0016014386201277375,
-0.08094503730535507,
-0.04309407249093056,
0.07498368620872498,
-0.015289418399333954,
-0.013861927203834057,
0.022121625021100044,
-0.04165760427713394,
-0.025138208642601967,
0.009552519768476486,
0.011904737912118435,
0.00842129997909069,
-0.02149316854774952,
-0.03935925289988518,
0.02517412044107914,
0.04524877667427063,
0.0023050839081406593,
0.01996692083775997,
-0.04453054070472717,
0.007770400028675795,
0.04471009969711304,
0.04172942787408829,
0.03002220392227173,
-0.02108018472790718,
0.05501676723361015,
0.003954778891056776,
0.059505730867385864,
-0.025658929720520973,
-0.041837163269519806,
-0.053795766085386276,
0.04226810485124588,
-0.041442133486270905,
-0.01790199615061283,
0.03501393273472786,
-0.05498085543513298,
0.00659429095685482,
0.03610924258828163,
0.08640361577272415,
0.03596559539437294,
0.04625430330634117,
-0.00041663215961307287,
-0.056417323648929596,
-0.023073285818099976,
0.004803193733096123,
-0.053185269236564636,
-0.0016755065880715847,
0.019787361845374107,
-0.014696874655783176,
-0.014337757602334023,
-0.04510512948036194,
-0.014966212213039398,
-0.02370174042880535,
-0.02077493444085121,
-0.008187874220311642,
-0.03420592099428177,
-0.03355950862169266,
0.00702523160725832,
0.003873977577313781,
0.05494494363665581,
-0.007958936505019665,
0.047188010066747665,
0.011823936365544796,
0.002260194392874837,
-0.0056471191346645355,
-0.05709964781999588,
-0.030507013201713562,
-0.04772668704390526,
-0.03395453840494156,
-0.006755893584340811,
-0.05918252840638161,
0.01059396006166935,
-0.01099796686321497,
0.005279024131596088,
-0.030794305726885796,
0.00133322284091264,
-0.04797806963324547,
-0.02472522482275963,
-0.0026036002673208714,
0.041334398090839386,
0.03900013491511345,
0.011285260319709778,
-0.007460661232471466,
0.006881584879010916,
-0.03262580558657646,
-0.020595375448465347,
0.015181683003902435,
-0.02804705873131752,
0.04837309569120407,
-0.0423758402466774,
-0.0364144928753376,
0.05174880102276802,
0.0402570478618145,
0.030507013201713562,
-0.050527799874544144,
0.012102251872420311,
-0.024150636047124863,
0.04223219305276871,
0.04589518904685974,
0.0402570478618145,
-0.04201672226190567,
0.021924110129475594,
0.016680996865034103,
-0.032661717385053635,
-0.07171571999788284,
-0.046541597694158554,
-0.01659121736884117,
0.05781788006424904,
-0.046936627477407455,
0.029268058016896248,
-0.013834993354976177,
-0.002168170642107725,
0.03738410770893097,
-0.02657467871904373,
0.01890752464532852,
-0.010558048263192177,
-0.04664933308959007,
-0.014939278364181519,
-0.03108160011470318,
-0.008731038309633732,
0.05447809025645256,
0.00514435488730669,
0.07713839411735535,
0.00015823605644982308,
0.03510371223092079,
0.03047110140323639,
0.04402777925133705,
-0.011734156869351864,
0.07907762378454208,
-0.007824267260730267,
-0.03163823112845421,
-0.01134810596704483,
-0.023396490141749382,
0.032302599400281906,
0.026754237711429596,
-0.02235504984855652,
-0.007034209556877613,
-0.0015890939394012094,
0.0324462465941906,
-0.08101686090230942,
-0.051533330231904984,
0.028837116435170174,
0.03724046051502228,
-0.055052679032087326,
-0.022660300135612488,
-0.008089116774499416,
-0.028783248737454414,
-0.05135377123951912,
-0.032302599400281906,
-0.028370264917612076,
0.07232622057199478,
0.018252136185765266,
-0.05993667244911194,
-0.01180598046630621,
0.035839904099702835,
-0.01862023025751114,
0.03646836057305336,
0.026359207928180695,
-0.0345650389790535,
0.001319756032899022,
0.10234842449426651,
0.005831166636198759,
0.0018954658880829811,
0.04449462890625,
-0.04140622168779373,
0.0169503353536129,
-0.025802576914429665,
0.03610924258828163,
-0.01258706022053957,
-0.05225156247615814,
0.021385433152318,
-0.07936491817235947,
-0.07308036834001541,
-0.023468313738703728,
0.05200017988681793,
-0.07469639182090759,
-0.05207200348377228,
0.034834377467632294,
0.000988694722764194,
-0.02637716382741928,
0.03724046051502228,
-0.044925570487976074,
0.020164435729384422,
0.000028003432817058638,
0.0009421217255294323,
-0.04287860170006752,
-0.05781788006424904,
-0.029375793412327766,
0.02977082133293152,
0.031907569617033005,
0.030004248023033142,
-0.008870196528732777,
0.028944851830601692,
0.036145154386758804,
0.03953881189227104,
-0.06507205218076706,
-0.014687896706163883,
0.014813588000833988,
0.028567779809236526,
-0.04086754471063614,
-0.03320039063692093,
0.003070452716201544,
-0.000735068169888109,
0.009220335632562637,
-0.06629304587841034,
0.018674097955226898,
-0.0014903367264196277,
-0.008277652785182,
0.07670745253562927,
-0.08532626181840897,
-0.04090345650911331,
0.00848863460123539,
-0.02063128724694252,
0.028639603406190872,
0.044422805309295654,
0.040328871458768845,
-0.012389546260237694,
-0.07167980819940567,
0.0025991112925112247,
0.03438547998666763,
0.00889264140278101,
0.07221848517656326,
0.04963000863790512,
-0.00847516767680645,
0.02447384223341942,
0.025964178144931793,
0.04600292444229126,
-0.07099748402833939,
0.05483720824122429,
-0.023647872731089592,
-0.010558048263192177,
-0.0037797093391418457,
0.0007361904135905206,
-0.02682606130838394,
0.008389877155423164,
0.027957279235124588,
-0.015235550701618195,
0.024150636047124863,
-0.007415771950036287,
-0.010611915960907936,
0.0733676627278328,
-0.018144400790333748,
0.0027337803039699793,
0.021044272929430008,
0.056668706238269806,
-0.00883877370506525,
-0.02925010211765766,
-0.03531918302178383,
-0.0009308992885053158,
0.0013736236141994596,
-0.07850303500890732,
0.022211402654647827,
-0.015684446319937706,
-0.0754864513874054,
0.04413551464676857,
-0.0162231232970953,
0.09688983857631683,
0.013682368211448193,
0.0211879201233387,
-0.01054009236395359,
0.05645323544740677,
0.022337093949317932,
-0.04101119190454483,
-0.08338703215122223,
0.017632657662034035,
-0.004237583838403225,
-0.0034452814143151045,
0.023378534242510796,
-0.008080138824880123,
0.0022456052247434855,
0.011500731110572815,
0.031243203207850456,
-0.023899255320429802,
-0.015343285165727139,
-0.012317722663283348,
0.00639228755608201,
0.10694512724876404,
0.05013277009129524,
0.016680996865034103,
0.04427916184067726,
0.0070970552042126656,
-0.045428335666656494,
-0.007303547579795122,
-0.03278740867972374,
-0.008762461133301258,
-0.02300146222114563,
-0.01890752464532852,
0.023181019350886345,
0.010073239915072918,
-0.014265934005379677,
-0.04959409683942795,
0.05393941327929497,
-0.0144006023183465,
-0.023486269637942314,
0.04205263406038284,
-0.05074327066540718,
0.004123115446418524,
-0.0008966709719970822,
-0.011761090718209743,
0.04115483909845352,
-0.04262721911072731,
0.03878466412425041,
-0.03169209882616997,
0.024850916117429733,
0.023989034816622734,
-0.01091716531664133,
-0.011276282370090485,
-0.047942157834768295,
-0.053544387221336365,
-0.0529697984457016,
0.01748003251850605,
-0.0048480830155313015,
0.030255630612373352,
0.05709964781999588,
0.07792844623327255,
0.024276327341794968,
-0.04262721911072731,
0.0014039240777492523,
0.0016003163764253259,
0.014643006958067417,
0.010441334918141365,
-0.017767326906323433,
0.021152008324861526,
-0.020649243146181107,
0.02108018472790718,
-0.06751404702663422,
-0.09236496686935425,
-0.009444784373044968,
0.004221872426569462,
-0.03434956818819046,
-0.046685244888067245,
-0.042806778103113174,
-0.021564992144703865,
0.022067757323384285,
0.03434956818819046,
0.05598638206720352,
0.015199638903141022,
-0.03226668760180473,
-0.013547698967158794,
0.008793883956968784,
-0.0076267533004283905,
0.0006985953077673912,
-0.015253506600856781,
0.030794305726885796,
-0.009830835275352001,
0.036845430731773376,
0.017435144633054733,
0.036540184170007706,
-0.02723904512822628,
0.02208571322262287,
0.000601521460339427,
-0.0003060913586523384,
0.018692053854465485,
-0.066221222281456,
0.018584318459033966,
-0.013987617567181587,
0.06367149204015732,
0.002020034706220031,
-0.03278740867972374,
-0.012066340073943138,
-0.01800973154604435,
-0.002316306345164776,
0.08044227212667465,
-0.0017046848079189658,
-0.031656187027692795,
-0.06194772943854332,
0.022462785243988037,
-0.07081792503595352,
-0.012730707414448261,
0.012147141620516777,
-0.04535651206970215,
0.031458672136068344,
-0.011850870214402676,
-0.023037374019622803,
-0.002617067191749811,
0.03961063548922539,
0.06424608081579208,
0.011743134818971157,
-0.03724046051502228,
0.00950763002038002,
0.038102343678474426,
-0.030255630612373352,
0.019751450046896935,
0.045320600271224976,
-0.045320600271224976,
-0.04402777925133705,
0.0357501246035099,
0.00840783305466175,
-0.009992438368499279,
0.016689974814653397,
0.011653355322778225,
-0.017300475388765335,
0.034834377467632294,
-0.061624523252248764,
-0.0966743677854538,
-0.015100881457328796,
-0.04632612690329552,
0.026107825338840485,
-0.006118460558354855,
-0.04111892729997635,
0.020613331347703934,
-0.011419929563999176,
0.05447809025645256,
-0.01578320376574993,
-0.07699474692344666,
-0.04876812547445297,
0.0317818783223629,
-0.03470868617296219,
0.009570475667715073,
0.0024599533062428236,
0.0243661068379879,
-0.03481642156839371,
-0.10220477730035782,
0.008416811004281044,
-0.018674097955226898,
-0.05250294506549835,
-0.03632471337914467,
0.05160515382885933,
-0.04478192329406738,
0.05422670766711235,
0.008748994208872318,
-0.01871000975370407,
0.06618531048297882,
-0.028926895931363106,
0.01384397130459547,
0.017884040251374245,
-0.017040114849805832,
0.01957189105451107,
0.04334545508027077,
-0.031063644215464592,
-0.05569908767938614,
-0.025605062022805214,
-0.0014645251212641597,
0.007923024706542492,
0.034331612288951874,
-0.06851957738399506,
0.03738410770893097,
-0.03975428268313408,
0.01737229898571968,
0.03481642156839371,
-0.004365519154816866,
0.027705898508429527,
0.02441997453570366,
0.0169503353536129,
-0.003853777190670371,
0.05559135600924492,
0.02829844132065773,
-0.024940695613622665,
-0.05738694220781326,
0.029842644929885864,
-0.013547698967158794,
0.05857202783226967,
-0.032715585082769394,
0.030237674713134766,
-0.0035889283753931522,
-0.03232055529952049,
0.0010038450127467513,
0.02467135712504387,
0.021367477253079414,
-0.0043767415918409824,
0.010082217864692211,
-0.012694795615971088,
0.024886827915906906,
0.007914046756923199,
-0.0006032048258930445,
-0.008367432281374931,
0.02183433063328266,
0.03354155272245407,
-0.034475259482860565,
0.06884278357028961,
0.034475259482860565,
-0.021277697756886482,
0.033469729125499725,
-0.0352294035255909,
-0.0315125398337841,
0.0011693756096065044,
0.03646836057305336,
-0.01591787301003933,
0.010414401069283485,
0.003117586951702833,
0.011859848164021969,
0.06043943762779236,
0.010701694525778294,
0.02713130973279476,
-0.010028350166976452,
0.0031310536433011293,
-0.04101119190454483,
0.028011146932840347,
0.017237629741430283,
-0.07361903786659241,
0.05584273487329483,
0.04011340066790581,
0.05462173745036125,
0.026502855122089386,
0.06496431678533554,
0.020972449332475662,
0.010028350166976452,
0.04115483909845352,
0.0007822022889740765,
0.009328071027994156,
-0.049055419862270355,
0.027149265632033348,
-0.0385332852602005,
0.012946178205311298,
0.036809518933296204,
0.043955955654382706,
-0.04097528010606766,
0.016797710210084915,
0.0037325751036405563,
-0.04075980931520462,
0.02869347110390663,
0.05954164266586304,
-0.06744222342967987,
0.03738410770893097,
-0.0504559762775898,
0.04327363148331642,
0.0169503353536129,
0.062127288430929184,
-0.02300146222114563,
0.010243820026516914,
0.05196426808834076,
-0.011895759962499142,
0.011850870214402676,
-0.04725983366370201,
0.010154040530323982,
0.036342669278383255,
0.008300097659230232,
-0.012515236623585224,
0.005718942731618881,
0.009767989628016949,
-0.043201807886362076,
-0.041837163269519806,
-0.011258326470851898,
-0.09171855449676514,
-0.04384822025895119,
-0.0033442797139286995,
0.017919952049851418,
0.01462505105882883,
0.03792278468608856,
0.0325719378888607,
0.03724046051502228,
0.04334545508027077
] |
10,025
|
torch.nn.modules.module
|
_register_load_state_dict_pre_hook
|
Register a pre-hook for the :meth:`~torch.nn.Module.load_state_dict` method.
These hooks will be called with arguments: `state_dict`, `prefix`,
`local_metadata`, `strict`, `missing_keys`, `unexpected_keys`,
`error_msgs`, before loading `state_dict` into `self`. These arguments
are exactly the same as those of `_load_from_state_dict`.
If ``with_module`` is ``True``, then the first argument to the hook is
an instance of the module.
Arguments:
hook (Callable): Callable hook that will be invoked before
loading the state dict.
with_module (bool, optional): Whether or not to pass the module
instance to the hook as the first parameter.
|
def _register_load_state_dict_pre_hook(self, hook, with_module=False):
r"""Register a pre-hook for the :meth:`~torch.nn.Module.load_state_dict` method.
These hooks will be called with arguments: `state_dict`, `prefix`,
`local_metadata`, `strict`, `missing_keys`, `unexpected_keys`,
`error_msgs`, before loading `state_dict` into `self`. These arguments
are exactly the same as those of `_load_from_state_dict`.
If ``with_module`` is ``True``, then the first argument to the hook is
an instance of the module.
Arguments:
hook (Callable): Callable hook that will be invoked before
loading the state dict.
with_module (bool, optional): Whether or not to pass the module
instance to the hook as the first parameter.
"""
handle = hooks.RemovableHandle(self._load_state_dict_pre_hooks)
self._load_state_dict_pre_hooks[handle.id] = _WrappedHook(hook, self if with_module else None)
return handle
|
(self, hook, with_module=False)
|
[
-0.02174997329711914,
0.00806464720517397,
-0.015584205277264118,
0.037495024502277374,
0.048539794981479645,
0.04675261303782463,
-0.0006366826710291207,
0.0552595891058445,
0.04003281891345978,
-0.08478379249572754,
0.008189749903976917,
-0.05161374434828758,
-0.005102397408336401,
-0.03165094926953316,
-0.017139051109552383,
-0.0018609006656333804,
-0.053651127964258194,
0.04736025631427765,
-0.06319466233253479,
-0.08671394735574722,
0.013761281967163086,
0.04693133383989334,
0.013573627918958664,
0.02189294807612896,
0.010455000214278698,
-0.041248101741075516,
-0.0215891283005476,
-0.010669461451470852,
0.06458866596221924,
0.005736846011132002,
0.041534051299095154,
0.010160115547478199,
0.03863881900906563,
-0.017022883519530296,
-0.03604741021990776,
-0.032383691519498825,
0.029399102553725243,
-0.02298312820494175,
-0.0293633583933115,
-0.005169416777789593,
0.018872614949941635,
-0.016227589920163155,
0.006768942344933748,
0.015521653927862644,
0.03358110040426254,
0.0348142571747303,
-0.03445681929588318,
0.0014174566604197025,
0.0684489756822586,
0.01662076823413372,
0.03211561590433121,
-0.05944158881902695,
0.033634718507528305,
0.026450255885720253,
-0.008900153450667858,
-0.01101796142756939,
0.03497510030865669,
-0.041855741292238235,
0.007081698626279831,
0.028005102649331093,
0.044822461903095245,
0.010901794768869877,
-0.018425820395350456,
-0.008283576928079128,
0.01940876804292202,
-0.06348061561584473,
-0.01512847375124693,
-0.023197589442133904,
-0.028005102649331093,
-0.03670866787433624,
-0.014190204441547394,
-0.04210594668984413,
0.06290871649980545,
0.016727998852729797,
0.01382383331656456,
0.01989130675792694,
-0.030185461044311523,
-0.06755538284778595,
0.026450255885720253,
0.021338922902941704,
0.002738852519541979,
-0.02296525612473488,
-0.03184753656387329,
0.06108579412102699,
-0.04382164031267166,
-0.0691995918750763,
0.03302707523107529,
-0.03681589663028717,
0.05575999990105629,
-0.005486641079187393,
-0.059906255453825,
0.1002965122461319,
0.03229433298110962,
0.00852931383997202,
0.024287769570946693,
-0.001862017554230988,
0.03601166605949402,
0.08364000171422958,
-0.008296980522572994,
-0.013805961236357689,
-0.022893769666552544,
-0.029881641268730164,
0.00012775541108567268,
0.014735294505953789,
-0.0008868877775967121,
-0.0540800504386425,
-0.021231692284345627,
-0.03497510030865669,
-0.0012543766060844064,
-0.010892858728766441,
-0.011375397443771362,
-0.10079692304134369,
-0.026289409026503563,
0.055045127868652344,
0.05300774425268173,
-0.015396551229059696,
0.0045282659120857716,
-0.03695886954665184,
-0.007658063899725676,
0.010919666849076748,
-0.0024819455575197935,
-0.018765384331345558,
0.007684871554374695,
-0.0009176049497909844,
-0.048682767897844315,
0.03047141060233116,
0.08221025764942169,
0.01912282034754753,
0.06040666624903679,
-0.0596560500562191,
0.04893297329545021,
0.04614497348666191,
-0.07027189433574677,
-0.02827317826449871,
-0.027862127870321274,
-0.02176784537732601,
0.02979228086769581,
0.03856733441352844,
0.016433116048574448,
-0.0028192754834890366,
0.01924792304635048,
0.0047226217575371265,
-0.040604718029499054,
0.04864702373743057,
-0.014762102626264095,
-0.022429103031754494,
-0.029738666489720345,
0.08306810259819031,
0.02968505024909973,
-0.03234794735908508,
0.06340912729501724,
-0.04893297329545021,
0.024001820012927055,
0.0363333597779274,
-0.0689493864774704,
0.050076767802238464,
-0.02981015294790268,
-0.023555025458335876,
-0.005924500059336424,
-0.0225184615701437,
0.03290197253227234,
-0.00772061524912715,
0.01499443594366312,
-0.04267784580588341,
-0.031186280772089958,
-0.014744230546057224,
0.011098384857177734,
-0.08528420329093933,
-0.018765384331345558,
0.019533870741724968,
0.029935255646705627,
-0.013207255862653255,
0.023358436301350594,
0.09707958996295929,
-0.008658884093165398,
0.054151538759469986,
-0.01956961490213871,
-0.06823451071977615,
-0.04192722961306572,
0.03511807695031166,
0.07391773909330368,
0.0348142571747303,
-0.02734384499490261,
0.024484358727931976,
-0.07134420424699783,
-0.026325153186917305,
-0.006183641031384468,
-0.016030998900532722,
0.028505511581897736,
0.04929041117429733,
0.04439353942871094,
0.00002310767195012886,
0.03365258872509003,
-0.006013859063386917,
-0.026503872126340866,
0.04711005091667175,
-0.07641979306936264,
-0.019498128443956375,
-0.009999268688261509,
0.016120359301567078,
-0.006085345987230539,
0.005656423047184944,
-0.04128384590148926,
0.0366729237139225,
-0.0459662564098835,
-0.002995759481564164,
-0.013216191902756691,
0.053043484687805176,
0.004499224480241537,
-0.0064695896580815315,
0.023376306518912315,
-0.0710582584142685,
-0.03338451310992241,
0.08621353656053543,
-0.01070520468056202,
-0.07002168893814087,
0.026968538761138916,
0.03552912920713425,
0.003746374975889921,
-0.050541434437036514,
0.05493789538741112,
0.08013712614774704,
-0.019909178838133812,
-0.042141690850257874,
-0.024913281202316284,
-0.013948936015367508,
0.014583384618163109,
-0.033473871648311615,
0.005727909971028566,
0.0552595891058445,
0.02421628125011921,
0.031597331166267395,
-0.03867456316947937,
-0.027308102697134018,
0.07066507637500763,
0.02979228086769581,
0.03259815275669098,
-0.010472871363162994,
0.04896871745586395,
0.0047538974322378635,
0.04911169037222862,
0.042320407927036285,
0.02580687217414379,
-0.08506974577903748,
-0.030810974538326263,
0.03728056326508522,
-0.02035597339272499,
0.001121455105021596,
-0.026986408978700638,
0.05944158881902695,
-0.011286037974059582,
0.013841704465448856,
0.02048107609152794,
0.055223844945430756,
-0.04471522942185402,
0.01436892244964838,
0.03560061380267143,
0.0031141601502895355,
-0.03602953627705574,
0.01739819161593914,
-0.017809243872761726,
-0.01706756465137005,
-0.013350230641663074,
0.00535260234028101,
0.02875571697950363,
-0.009391628205776215,
0.055974461138248444,
0.016558216884732246,
0.037852462381124496,
0.0023814167361706495,
0.050898872315883636,
-0.03635122999548912,
-0.024305639788508415,
-0.00644725002348423,
0.023644383996725082,
-0.050577178597450256,
-0.0219286922365427,
-0.02110658958554268,
0.02796935848891735,
0.06276573985815048,
0.03157946094870567,
-0.0029533139895647764,
0.0015034647658467293,
-0.028022974729537964,
-0.010517551563680172,
-0.024716692045331,
-0.0645529255270958,
0.04632369056344032,
0.004228913225233555,
-0.04925466701388359,
0.0308824609965086,
0.007470410317182541,
-0.020070025697350502,
0.017478615045547485,
-0.006067474372684956,
-0.011241358704864979,
-0.08985938131809235,
0.0344746932387352,
0.006844897288829088,
0.0009550240356475115,
0.035654231905937195,
-0.030078230425715446,
-0.01163453795015812,
0.01940876804292202,
-0.0011181042063981295,
-0.02021300047636032,
0.018908359110355377,
-0.0068270256742835045,
-0.0960787683725357,
-0.021231692284345627,
-0.004318272229284048,
0.037066102027893066,
-0.012849819846451283,
-0.03835286945104599,
0.008859941735863686,
-0.07041487097740173,
0.021321050822734833,
-0.0057145063765347,
0.013243000023066998,
0.012036653235554695,
-0.04786066710948944,
0.03778097406029701,
-0.0293633583933115,
0.03713759034872055,
0.01864028163254261,
-0.020302359014749527,
0.06805579364299774,
-0.030542897060513496,
0.02455584518611431,
-0.005763653665781021,
-0.0798511803150177,
-0.01118774339556694,
-0.012420897372066975,
0.03681589663028717,
-0.035975921899080276,
-0.025217102840542793,
-0.010428192093968391,
-0.039711128920316696,
-0.03638697415590286,
-0.04521564021706581,
0.027111511677503586,
-0.04546584561467171,
-0.04793215170502663,
-0.003889349289238453,
-0.021553384140133858,
-0.0156735647469759,
-0.028684230521321297,
0.014914012514054775,
0.045751795172691345,
0.017290960997343063,
-0.04743174463510513,
-0.06355210393667221,
-0.015110602602362633,
0.0293633583933115,
0.026521742343902588,
-0.06526779383420944,
0.00852931383997202,
-0.02671833336353302,
0.009874166920781136,
-0.0018664855742827058,
0.01769307628273964,
0.011277101933956146,
-0.05969179421663284,
0.02128530666232109,
0.03699461370706558,
-0.0006696337950415909,
-0.022411230951547623,
-0.0703076422214508,
-0.04650241136550903,
-0.006813621614128351,
0.024019692093133926,
-0.04485820606350899,
-0.03182966634631157,
0.024734564125537872,
0.03824564069509506,
-0.036118898540735245,
0.011205615475773811,
-0.017514359205961227,
-0.012161755934357643,
0.06326615065336227,
0.04975507780909538,
0.03247305005788803,
0.0018553156405687332,
-0.020409589633345604,
-0.009119083173573017,
-0.03327728062868118,
-0.008690159767866135,
0.0047851731069386005,
0.04643092304468155,
-0.09057425707578659,
-0.019373025745153427,
0.006308743264526129,
0.020784897729754448,
0.03695886954665184,
-0.002365778898820281,
-0.016727998852729797,
-0.002930974354967475,
-0.005428557749837637,
0.05944158881902695,
-0.029273999854922295,
0.0798511803150177,
-0.03093607723712921,
0.014395730569958687,
-0.019462384283542633,
0.04400035738945007,
0.029291871935129166,
-0.02746894769370556,
0.04196297377347946,
0.005482173059135675,
-0.005549192428588867,
-0.014082973822951317,
0.05465194955468178,
-0.04578753933310509,
-0.0649818480014801,
-0.02405543625354767,
-0.05561702325940132,
0.04893297329545021,
0.04936189576983452,
-0.04332122951745987,
0.008725903928279877,
0.0290237944573164,
0.011178807355463505,
-0.009892038069665432,
0.012072397395968437,
-0.009990333579480648,
0.050898872315883636,
0.0038670096546411514,
-0.015307191759347916,
0.011196679435670376,
0.05915563926100731,
-0.009918846189975739,
0.006326615344733,
0.04628794640302658,
0.022589948028326035,
-0.018747512251138687,
0.010562230832874775,
-0.0016341522568836808,
0.0049996343441307545,
-0.03835286945104599,
0.04539435729384422,
0.014172333292663097,
-0.008448891341686249,
0.06687625497579575,
0.025252845138311386,
0.03849584609270096,
0.004421035293489695,
-0.025717511773109436,
-0.007099570240825415,
0.05886968970298767,
0.002767894184216857,
-0.017934346571564674,
-0.037530768662691116,
-0.000367209519026801,
0.028684230521321297,
-0.03250879421830177,
-0.01628120429813862,
-0.04114087298512459,
-0.020409589633345604,
-0.019533870741724968,
0.061586204916238785,
-0.03631548583507538,
0.009409500285983086,
-0.012090269476175308,
0.06062112748622894,
0.01116987131536007,
-0.020463204011321068,
-0.048218101263046265,
0.0007768645882606506,
-0.03695886954665184,
0.0021792419720441103,
0.01536974310874939,
0.02282228134572506,
0.0290237944573164,
-0.028326794505119324,
-0.007130845915526152,
0.019015589728951454,
0.022268256172537804,
0.005214096046984196,
-0.005307923071086407,
-0.05114907771348953,
0.05794035643339157,
-0.005991518963128328,
0.015423358418047428,
0.0008868877775967121,
-0.010642653331160545,
-0.009150358848273754,
-0.02982802502810955,
0.04582327976822853,
0.01211707666516304,
0.06626861542463303,
-0.015110602602362633,
-0.006617031991481781,
0.020409589633345604,
0.012376218102872372,
0.011000089347362518,
-0.04650241136550903,
0.01280514057725668,
0.005334730725735426,
0.05575999990105629,
-0.005857480689883232,
-0.03545764088630676,
-0.004463480785489082,
-0.02562815323472023,
0.07842143625020981,
-0.008252301253378391,
0.01881900057196617,
-0.04425056278705597,
0.05200692266225815,
0.014967627823352814,
0.019623231142759323,
-0.032866232097148895,
-0.016415243968367577,
0.04135533422231674,
-0.003891583299264312,
-0.0132876792922616,
-0.03277686983346939,
0.01705862767994404,
0.08800071477890015,
-0.05483066663146019,
-0.01116987131536007,
0.01174176950007677,
0.002276419894769788,
0.04582327976822853,
-0.08185281604528427,
-0.012143884785473347,
0.03043566644191742,
0.016826294362545013,
-0.017755627632141113,
-0.013627243228256702,
0.002604814013466239,
-0.0013895320007577538,
-0.021535512059926987,
0.03420661389827728,
-0.012367282062768936,
-0.007220204919576645,
0.01055329479277134,
0.03266964107751846,
0.017147986218333244,
-0.04711005091667175,
-0.017478615045547485,
0.05479492247104645,
0.0011639005970209837,
0.024126922711730003,
0.0540800504386425,
0.039675384759902954,
0.004197637550532818,
-0.03182966634631157,
0.05111333355307579,
-0.08807220309972763,
-0.03199051320552826,
-0.04893297329545021,
-0.022768666967749596,
0.009110147133469582,
-0.019158564507961273,
0.023840973153710365,
-0.014914012514054775,
0.05608168989419937,
0.004825384356081486,
0.011786448769271374,
-0.018229231238365173,
-0.025878358632326126,
0.045894768089056015,
-0.04400035738945007,
0.026325153186917305,
-0.014708487316966057,
-0.028773589059710503,
-0.012027718126773834,
0.0062819356098771095,
-0.039353691041469574,
0.03245517984032631,
0.1137361004948616,
0.000003080441047131899,
0.0036346763372421265,
0.010428192093968391,
-0.03234794735908508,
0.014476153999567032,
0.006036198697984219,
0.007599980570375919,
-0.00559387169778347,
-0.031919024884700775,
0.019033461809158325,
-0.009990333579480648,
0.0033129840157926083,
0.013520012609660625,
-0.026986408978700638,
-0.0008757179602980614,
-0.01180431991815567,
0.1318223625421524,
0.027594050392508507,
0.01087498664855957,
-0.054616205394268036,
-0.004749429412186146,
-0.0028862948529422283,
-0.0280944611877203,
0.07663425803184509,
-0.03247305005788803,
0.03770948573946953,
0.00798869226127863,
0.0011197796557098627,
0.0007690456695854664,
0.0025288588367402554,
0.005826205015182495,
0.008355064317584038,
-0.03510020300745964,
-0.026986408978700638,
-0.03132925555109978,
0.012599615380167961,
0.039389435201883316,
0.00438529159873724,
-0.04546584561467171,
-0.02888081967830658,
-0.03241943567991257,
0.028165947645902634,
-0.007528493646532297,
0.016710128635168076,
-0.03077523037791252,
0.033152177929878235,
-0.07130846381187439,
0.06140748783946037,
-0.03824564069509506,
-0.005638550966978073,
-0.05161374434828758,
-0.002506519202142954,
0.005839609075337648,
0.029131025075912476,
-0.07499004900455475,
0.01072307676076889,
-0.04957635700702667,
0.005651955027133226,
-0.08378297090530396,
0.00030745071126148105,
0.05765441060066223,
0.027754897251725197,
-0.04146256297826767,
0.04189148545265198,
0.04096215218305588,
0.05261456221342087,
0.013278743252158165,
-0.03717333450913429,
-0.04646666720509529,
-0.016727998852729797,
-0.01570037193596363,
0.008980576880276203,
-0.02934548631310463,
-0.008252301253378391,
-0.022268256172537804,
-0.0017480849055573344,
-0.010642653331160545,
0.1040138453245163,
-0.019801948219537735,
0.015468038618564606,
-0.020248742774128914,
-0.06333763897418976,
0.009579282253980637,
-0.023698000237345695,
0.0010030544362962246,
0.03147222846746445,
0.03182966634631157,
0.02314397320151329,
-0.015503781847655773,
-0.06119302287697792,
0.0302926916629076,
-0.022893769666552544,
0.022018050774931908,
0.01752329431474209,
-0.005946839693933725,
-0.012143884785473347,
0.014619127847254276,
0.02326907590031624,
-0.03174030780792236,
-0.028219563886523247,
-0.02950633317232132,
-0.06412399560213089,
-0.010597974061965942,
0.05032697319984436,
-0.0065768202766776085,
-0.001843028818257153,
-0.010383512824773788,
0.07448963820934296,
0.014878269284963608,
-0.058011844754219055,
0.024806050583720207,
-0.013207255862653255,
0.020892128348350525,
-0.028666358441114426,
0.038924768567085266,
-0.026182178407907486,
-0.0011828894494101405,
0.01677267998456955,
0.03824564069509506,
0.017139051109552383,
0.041212357580661774,
0.03141861408948898,
0.022732922807335854,
-0.04643092304468155,
-0.052578818053007126,
-0.03963964059948921,
-0.04786066710948944,
-0.022750794887542725,
-0.02326907590031624,
0.040926408022642136,
-0.008654416538774967,
0.02130317874252796,
-0.06530353426933289,
-0.04146256297826767,
-0.0338849239051342,
-0.040283024311065674,
-0.025556666776537895,
-0.0280944611877203,
0.048396818339824677,
0.0228580255061388,
-0.021857203915715218,
0.02873784489929676,
-0.02048107609152794,
0.02112446166574955,
0.011840064078569412,
-0.04936189576983452,
-0.07130846381187439,
-0.003797756275162101,
0.004320506472140551,
-0.030542897060513496,
0.011062640696763992,
-0.031454358249902725,
0.020445333793759346,
0.01788966730237007,
-0.00979374349117279,
0.04274933412671089,
-0.05697528272867203,
-0.025681769475340843,
0.005450897384434938,
0.07663425803184509,
-0.02330482006072998,
-0.07377476990222931,
-0.026825563982129097,
0.038317129015922546,
-0.036601435393095016,
0.029702922329306602,
0.05386558920145035,
0.07034338265657425,
-0.006214916706085205,
0.012063461355865002,
0.0313471294939518,
0.017961153760552406,
0.052721794694662094,
0.07009317725896835,
-0.001838560914620757,
0.008506974205374718,
-0.037066102027893066,
-0.01428849995136261,
0.06726943701505661,
-0.005214096046984196,
0.08185281604528427,
0.015888025984168053,
-0.027254486456513405,
0.014020422473549843,
-0.011366461403667927,
-0.023680128157138824,
0.03433171659708023,
-0.00915929488837719,
-0.04492969065904617,
-0.01041032001376152,
-0.04693133383989334,
0.012000910006463528,
-0.03526104986667633,
0.06319466233253479,
-0.039711128920316696,
-0.01924792304635048,
-0.0188011284917593
] |
10,026
|
torch.nn.modules.module
|
_register_state_dict_hook
|
Register a state-dict hook.
These hooks will be called with arguments: `self`, `state_dict`,
`prefix`, `local_metadata`, after the `state_dict` of `self` is set.
Note that only parameters and buffers of `self` or its children are
guaranteed to exist in `state_dict`. The hooks may modify `state_dict`
inplace or return a new one.
|
def _register_state_dict_hook(self, hook):
r"""Register a state-dict hook.
These hooks will be called with arguments: `self`, `state_dict`,
`prefix`, `local_metadata`, after the `state_dict` of `self` is set.
Note that only parameters and buffers of `self` or its children are
guaranteed to exist in `state_dict`. The hooks may modify `state_dict`
inplace or return a new one.
"""
handle = hooks.RemovableHandle(self._state_dict_hooks)
self._state_dict_hooks[handle.id] = hook
return handle
|
(self, hook)
|
[
-0.029986482113599777,
0.029575197026133537,
-0.0517098568379879,
0.01544191688299179,
0.018965888768434525,
0.030360378324985504,
-0.019498690962791443,
0.06666570901870728,
0.05208375304937363,
-0.06883430480957031,
-0.0009960830211639404,
0.03028559871017933,
0.01614297181367874,
-0.011272973380982876,
-0.04602663218975067,
0.035576231777668,
-0.018451781943440437,
0.016918806359171867,
-0.08524835109710693,
-0.012366619892418385,
0.032585062086582184,
0.025406252592802048,
0.049429088830947876,
0.054439298808574677,
-0.001957113388925791,
-0.04542839899659157,
-0.023723719641566277,
-0.01145992148667574,
0.09205326437950134,
0.025406252592802048,
-0.013217234052717686,
-0.046886593103408813,
0.049690816551446915,
0.011609479784965515,
0.004472734406590462,
-0.03351980075240135,
0.027705714106559753,
0.009141764603555202,
-0.02028387412428856,
-0.010487791150808334,
0.034977998584508896,
0.031089475378394127,
-0.02572406455874443,
0.012114239856600761,
0.0545140765607357,
0.03492191433906555,
-0.012002070434391499,
-0.0010305516188964248,
0.05268198624253273,
-0.02574275992810726,
0.015572779811918736,
-0.049840375781059265,
0.0010562570532783866,
0.015367137268185616,
0.008613635785877705,
-0.016227098181843758,
0.032603755593299866,
-0.040380798280239105,
0.015329747460782528,
0.004012374673038721,
-0.010525180026888847,
-0.025051051750779152,
0.0009750514291226864,
-0.02501366101205349,
0.0026570004411041737,
-0.06120682135224342,
0.004874672740697861,
-0.021199919283390045,
-0.016928154975175858,
-0.029799534007906914,
-0.025667980313301086,
-0.05728090927004814,
0.06210417300462723,
0.022059880197048187,
-0.01063734944909811,
0.03639880195260048,
-0.015787770971655846,
-0.051223792135715485,
0.004194648936390877,
-0.003841784317046404,
-0.010067157447338104,
-0.03583795949816704,
-0.03406194970011711,
0.03720267862081528,
-0.06045902892947197,
-0.0269579216837883,
0.036641836166381836,
-0.00967456679791212,
-0.005823434796184301,
0.0076602003537118435,
-0.010749517939984798,
0.07313411682844162,
0.01099255122244358,
-0.02086341194808483,
0.011852512136101723,
-0.04602663218975067,
0.02864045463502407,
0.08562225103378296,
0.013665908947587013,
-0.004963472951203585,
-0.05784175544977188,
-0.04987776279449463,
0.0014114584773778915,
0.017049670219421387,
-0.024004140868782997,
-0.06898386776447296,
-0.024564985185861588,
-0.04752221703529358,
-0.0444936566054821,
-0.016507521271705627,
0.011319709941744804,
-0.05533665046095848,
0.008954815566539764,
0.05185941606760025,
0.038286980241537094,
0.05851477012038231,
-0.006608617026358843,
-0.023106791079044342,
-0.015096062794327736,
-0.005201831925660372,
-0.0009195511811412871,
-0.02015301026403904,
0.014918461441993713,
0.030379073694348335,
-0.051784634590148926,
0.017049670219421387,
0.045802295207977295,
0.0492047518491745,
0.006940449588000774,
-0.011132761836051941,
-0.003173444652929902,
0.053878456354141235,
-0.04236244782805443,
0.0023719046730548143,
0.04374586418271065,
0.015750380232930183,
-0.0029187279287725687,
-0.00632819440215826,
0.005211179610341787,
-0.017694640904664993,
0.00855755154043436,
-0.01804984360933304,
-0.05253242701292038,
0.032734621316194534,
-0.00383944739587605,
0.02503235638141632,
-0.06315108388662338,
0.07941556721925735,
0.016610343009233475,
-0.046064022928476334,
0.0074405362829566,
-0.04438148811459541,
0.016451437026262283,
0.09070723503828049,
-0.07141418755054474,
0.06857258081436157,
-0.00569724477827549,
-0.009085679426789284,
-0.0013974374160170555,
-0.019386522471904755,
0.011749690398573875,
-0.013441571034491062,
-0.0067768702283501625,
-0.06786217540502548,
-0.03488452360033989,
-0.01765725202858448,
0.007174135185778141,
-0.08345364779233932,
-0.012460093945264816,
0.000030178249289747328,
-0.008431361056864262,
-0.05156029760837555,
0.012104892171919346,
0.09332451224327087,
0.024135004729032516,
0.04737265780568123,
0.0017409545835107565,
-0.05586010590195656,
-0.03793177753686905,
0.019236963242292404,
0.09347406774759293,
0.0029841596260666847,
-0.02265811525285244,
0.03193074092268944,
-0.05503753200173378,
-0.046624865382909775,
-0.03129512071609497,
0.011057982221245766,
0.051635075360536575,
0.09078201651573181,
0.017610514536499977,
-0.017825504764914513,
0.017629209905862808,
-0.04393281415104866,
-0.005846803076565266,
0.04337196797132492,
-0.03626793995499611,
-0.04684920608997345,
0.02710748091340065,
-0.032865483313798904,
0.04602663218975067,
-0.00820702314376831,
-0.051223792135715485,
0.0305660218000412,
-0.033445023000240326,
-0.03535189479589462,
0.010684086009860039,
0.0074919466860592365,
0.01625514030456543,
-0.008090181276202202,
0.00882862601429224,
-0.0257053691893816,
-0.0294630266726017,
0.08091115951538086,
-0.005519643891602755,
-0.07492881268262863,
-0.0024817364756017923,
0.012179671786725521,
-0.015937328338623047,
-0.04696137458086014,
0.08846385776996613,
0.03609968721866608,
0.002860306529328227,
-0.005748655181378126,
-0.049279529601335526,
-0.0391843318939209,
0.013151802122592926,
-0.02736920863389969,
0.040642526000738144,
0.026023181155323982,
-0.001270078937523067,
-0.006809586193412542,
0.009992377832531929,
-0.023854583501815796,
0.08113549649715424,
0.03793177753686905,
0.004159596282988787,
-0.04195116460323334,
0.0444936566054821,
0.05279415473341942,
0.048045672476291656,
0.036473583430051804,
0.06498317420482635,
-0.019966062158346176,
-0.01481564063578844,
0.05036383122205734,
-0.004430670756846666,
0.034529320895671844,
0.012347924523055553,
0.029219994321465492,
0.0010194515343755484,
0.005220526829361916,
-0.01625514030456543,
0.03252897784113884,
0.005342043004930019,
0.023461991921067238,
-0.0030869811307638884,
0.020807327702641487,
-0.04363369569182396,
-0.00038119894452393055,
-0.006445037201046944,
0.022284219041466713,
-0.003421151079237461,
0.028659150004386902,
-0.0016206067521125078,
0.018040494993329048,
0.05765480548143387,
0.013619172386825085,
-0.030210819095373154,
0.016572952270507812,
0.11740343272686005,
-0.03325807303190231,
-0.009408165700733662,
-0.005393453873693943,
-0.005402801092714071,
-0.027612240985035896,
0.014067847281694412,
-0.011114067398011684,
0.0002469760365784168,
0.027986137196421623,
0.052495039999485016,
0.0039749848656356335,
0.057318300008773804,
-0.008043443784117699,
-0.0013612161856144667,
-0.00840799231082201,
-0.053280219435691833,
0.07477925717830658,
0.037034425884485245,
-0.05294371396303177,
0.0777704268693924,
0.03142598271369934,
-0.027313124388456345,
0.06090770661830902,
0.008384624496102333,
-0.005468233022838831,
-0.1140383705496788,
0.06180505454540253,
0.03978256508708,
0.009954988956451416,
0.03378152847290039,
0.010749517939984798,
0.006038425024598837,
0.056084442883729935,
-0.021629899740219116,
-0.017133796587586403,
0.023966751992702484,
0.012067502364516258,
-0.056495729833841324,
0.007669547572731972,
-0.02639707736670971,
0.043147630989551544,
-0.031893353909254074,
0.020059535279870033,
-0.0008319192565977573,
-0.04894302412867546,
-0.0013612161856144667,
-0.05380367487668991,
-0.008711783215403557,
0.02890218235552311,
-0.05458885803818703,
0.03609968721866608,
-0.027986137196421623,
-0.047484830021858215,
0.023424603044986725,
-0.040380798280239105,
0.05541142821311951,
-0.02684575319290161,
0.03514625132083893,
-0.014974546618759632,
-0.07433058321475983,
-0.06991860270500183,
0.028023526072502136,
0.006318847183138132,
-0.0006490605883300304,
-0.00903426855802536,
0.0057907188311219215,
-0.005963645875453949,
-0.02836003340780735,
-0.07373234629631042,
0.00820234976708889,
0.013048980385065079,
-0.009824125096201897,
-0.005183137021958828,
0.0027154218405485153,
0.025649284943938255,
-0.0005348469712771475,
-0.0016872070264071226,
0.03600621223449707,
-0.030547326430678368,
-0.03765135630965233,
-0.040530357509851456,
-0.01287137996405363,
0.016713164746761322,
0.028135694563388824,
-0.07694785296916962,
0.0023006305564194918,
-0.01293681189417839,
-0.006309499964118004,
-0.005262590013444424,
-0.029911702498793602,
0.03553884103894234,
-0.055822715163230896,
-0.01905936375260353,
0.046101413667201996,
-0.020900802686810493,
-0.02959389053285122,
-0.04269895702600479,
-0.06199200451374054,
-0.03432367742061615,
0.031033391132950783,
-0.08876297622919083,
-0.04266156628727913,
0.04505450278520584,
0.03409934043884277,
-0.03004256635904312,
0.019685639068484306,
0.003958627115935087,
-0.004671366885304451,
-0.0004285202012397349,
0.04034340754151344,
0.00827245507389307,
0.05466363579034805,
0.005692570935934782,
0.016900112852454185,
-0.05305588245391846,
0.0025822212919592857,
0.0297621451318264,
0.017629209905862808,
-0.023443296551704407,
-0.005402801092714071,
0.00004885480666416697,
0.03933388739824295,
0.056645285338163376,
0.00005166633127373643,
-0.024976272135972977,
0.0074639045633375645,
-0.02822916954755783,
0.020396042615175247,
0.017853546887636185,
0.024677155539393425,
-0.022452471777796745,
-0.01890980452299118,
-0.054551467299461365,
0.06838563084602356,
0.017788115888834,
-0.04071730375289917,
0.056794844567775726,
-0.02583623304963112,
-0.01888176240026951,
-0.010665391571819782,
0.03200552240014076,
-0.014787598513066769,
-0.028416117653250694,
0.022134659811854362,
-0.022321607917547226,
0.03755788132548332,
0.03707181662321091,
-0.030902527272701263,
0.031874656677246094,
0.036211855709552765,
0.02723834477365017,
0.00241864169947803,
0.053990624845027924,
-0.03331415727734566,
0.017722683027386665,
-0.007819105871021748,
0.0008371771546080709,
0.010039115324616432,
0.050251659005880356,
0.031762488186359406,
0.0007588926237076521,
0.04576490446925163,
0.010384969413280487,
0.0010515833273530006,
-0.00806681253015995,
-0.020190399140119553,
-0.00580006605014205,
-0.06180505454540253,
0.0645345002412796,
-0.004332523327320814,
-0.017143145203590393,
0.030827749520540237,
0.03922171890735626,
0.07702263444662094,
0.008580919355154037,
-0.00869776215404272,
-0.02518191561102867,
0.07448013871908188,
-0.005860824137926102,
0.018844373524188995,
-0.01145992148667574,
-0.02598579227924347,
0.03514625132083893,
-0.034136731177568436,
-0.0352771133184433,
-0.05156029760837555,
-0.015750380232930183,
-0.04632575064897537,
0.018021801486611366,
-0.04367108643054962,
-0.025649284943938255,
-0.028808709233999252,
0.04352152720093727,
-0.028864793479442596,
-0.05339238792657852,
-0.047596998512744904,
-0.010487791150808334,
-0.04101642221212387,
-0.011572089977562428,
-0.0020517557859420776,
0.045503176748752594,
0.010095199570059776,
-0.04277373477816582,
-0.030902527272701263,
-0.0232002642005682,
-0.0022936200257390738,
-0.010104547254741192,
-0.04770916700363159,
-0.007519988808780909,
0.05417757108807564,
0.01877894066274166,
0.0049681467935442924,
0.0026336319278925657,
-0.005533664952963591,
0.003192139556631446,
0.0054916017688810825,
0.05477580428123474,
0.03819350525736809,
0.08330409228801727,
-0.00000877688671607757,
-0.01931174285709858,
-0.00862298347055912,
-0.023405907675623894,
0.05047599971294403,
-0.041652046144008636,
0.03251028060913086,
0.0023123149294406176,
0.017703989520668983,
-0.032024215906858444,
-0.034828439354896545,
-0.054289739578962326,
0.0036945627070963383,
0.06431016325950623,
-0.036473583430051804,
-0.04277373477816582,
-0.060795534402132034,
0.04527883976697922,
-0.013161148875951767,
0.012675084173679352,
-0.02753746137022972,
-0.03978256508708,
0.039109550416469574,
-0.01251617819070816,
0.0033183295745402575,
-0.013619172386825085,
-0.02155512012541294,
0.04116598144173622,
-0.05541142821311951,
-0.01642339490354061,
0.006136572919785976,
0.00013422292249742895,
0.04097903147339821,
-0.07448013871908188,
-0.004898041486740112,
-0.008482771925628185,
0.0495038665831089,
-0.017703989520668983,
0.0038674897514283657,
-0.02293853648006916,
-0.01203011255711317,
-0.006374931428581476,
0.020358651876449585,
-0.010487791150808334,
-0.024564985185861588,
0.025780148804187775,
0.03514625132083893,
-0.0330711267888546,
-0.03168771043419838,
-0.02961258590221405,
0.03125772997736931,
0.027331817895174026,
0.007351735606789589,
-0.011964681558310986,
0.015096062794327736,
-0.010319537483155727,
-0.05563576892018318,
-0.00740782031789422,
-0.022452471777796745,
-0.010758865624666214,
-0.04445626959204674,
-0.028752624988555908,
0.00774432672187686,
-0.03284678980708122,
-0.007188156247138977,
-0.004869998898357153,
0.10364405065774918,
-0.008183655329048634,
0.016227098181843758,
-0.037595272064208984,
-0.03531450405716896,
0.07732175290584564,
-0.004636313766241074,
0.01931174285709858,
0.06449710577726364,
0.0012303524417802691,
-0.00427877577021718,
0.003505277680233121,
-0.01696554385125637,
0.03353849798440933,
0.046923983842134476,
0.009683913551270962,
0.0020809664856642485,
-0.023405907675623894,
-0.025967096909880638,
-0.005407474935054779,
0.022134659811854362,
-0.00028597222990356386,
0.01340418215841055,
-0.02432195283472538,
0.004781198687851429,
0.028117001056671143,
-0.02389197237789631,
-0.009646523743867874,
-0.015778422355651855,
0.038436539471149445,
-0.003865152830258012,
0.1275734156370163,
0.002204819582402706,
-0.0064917742274701595,
-0.07018033415079117,
0.021723374724388123,
-0.009225890971720219,
-0.0798642486333847,
0.03738962858915329,
-0.02295723184943199,
0.035221029072999954,
-0.01934913359582424,
-0.009464249946177006,
-0.009010900743305683,
-0.008436035364866257,
-0.009646523743867874,
-0.026359688490629196,
0.0037389628123492002,
-0.007033923640847206,
-0.034136731177568436,
0.03673531115055084,
0.04348413646221161,
-0.009062311612069607,
-0.0723489299416542,
-0.053878456354141235,
-0.015226926654577255,
0.055673155933618546,
0.03409934043884277,
0.01383416261523962,
-0.054701026529073715,
0.02252725139260292,
-0.022882452234625816,
0.03165031969547272,
-0.030341682955622673,
-0.03043515793979168,
-0.07313411682844162,
-0.014180016703903675,
-0.02170467935502529,
0.004898041486740112,
-0.0752653256058693,
0.005589749664068222,
0.002271419856697321,
-0.016058845445513725,
-0.058888666331768036,
-0.042175501585006714,
0.05769219622015953,
-0.019554775208234787,
-0.0595242902636528,
0.07122724503278732,
0.044717997312545776,
0.012357272207736969,
0.013796772807836533,
-0.025780148804187775,
-0.04340935871005058,
-0.0029981809202581644,
0.02585492841899395,
0.022751588374376297,
-0.0011158466804772615,
-0.03993212431669235,
0.013619172386825085,
0.035912737250328064,
-0.014067847281694412,
0.08053725957870483,
-0.031743794679641724,
0.014123932458460331,
-0.020526906475424767,
-0.06636659055948257,
-0.002907043555751443,
0.021891627460718155,
0.023592855781316757,
0.008020075038075447,
0.02280767261981964,
-0.007987359538674355,
0.03127642348408699,
-0.059412118047475815,
0.014843682758510113,
-0.0608329251408577,
-0.00316176051273942,
0.011114067398011684,
0.010039115324616432,
-0.03952083736658096,
0.012731168419122696,
0.022302912548184395,
-0.024789324030280113,
-0.0022422093898057938,
-0.026097960770130157,
-0.046923983842134476,
-0.000557631254196167,
0.005758002866059542,
-0.04180160537362099,
0.009398818016052246,
0.035221029072999954,
0.11979637295007706,
0.02864045463502407,
-0.07851821929216385,
0.027892662212252617,
-0.030192125588655472,
0.03032298944890499,
-0.004306817892938852,
0.03725876659154892,
0.005234547890722752,
0.009889557026326656,
0.03729615360498428,
0.019779114052653313,
-0.01070278137922287,
-0.02837872877717018,
0.031052086502313614,
0.03322068601846695,
-0.08412666618824005,
-0.05780436471104622,
-0.028247864916920662,
-0.07339584082365036,
0.01734878681600094,
-0.006187983322888613,
0.039408668875694275,
0.040119070559740067,
0.03630533069372177,
-0.07029250264167786,
0.024004140868782997,
-0.03824958950281143,
-0.02013431489467621,
-0.010515833273530006,
0.020676463842391968,
0.03331415727734566,
0.02613534964621067,
-0.009936293587088585,
0.02948172204196453,
-0.031463373452425,
0.018152665346860886,
-0.0005266679800115526,
-0.020358651876449585,
-0.07963991165161133,
0.019162185490131378,
-0.017722683027386665,
-0.052046362310647964,
0.03811872750520706,
-0.01389959454536438,
-0.005519643891602755,
0.02291984297335148,
-0.008739825338125229,
0.05518709123134613,
-0.023723719641566277,
-0.02017170377075672,
0.03303373605012894,
0.03088383376598358,
-0.030061261728405952,
-0.08083637803792953,
-0.03765135630965233,
0.005262590013444424,
-0.024938881397247314,
0.04569012671709061,
0.06386148184537888,
0.04049296677112579,
0.0036524992901831865,
0.015956023707985878,
0.04404498264193535,
0.07190025597810745,
0.03851131722331047,
0.06831084936857224,
-0.015797117725014687,
-0.0017304387874901295,
-0.022003795951604843,
-0.0016942175570875406,
0.04202594235539436,
0.06266501545906067,
0.07414363324642181,
-0.0076788947917521,
-0.017975063994526863,
0.03781960904598236,
-0.02529408410191536,
0.005402801092714071,
-0.01862938329577446,
0.016918806359171867,
-0.005524317733943462,
-0.016872070729732513,
-0.03851131722331047,
0.02449020743370056,
-0.05926256254315376,
0.027892662212252617,
-0.02836003340780735,
-0.024004140868782997,
-0.04262417554855347
] |
10,027
|
torch.nn.modules.module
|
_replicate_for_data_parallel
| null |
def _replicate_for_data_parallel(self):
replica = self.__new__(type(self))
replica.__dict__ = self.__dict__.copy()
# replicas do not have parameters themselves, the replicas reference the original
# module.
replica._parameters = OrderedDict()
replica._buffers = replica._buffers.copy()
replica._modules = replica._modules.copy()
replica._is_replica = True # type: ignore[assignment]
return replica
|
(self)
|
[
0.03411766514182091,
-0.013833100907504559,
-0.006481332238763571,
0.027768604457378387,
-0.04802756756544113,
0.018347419798374176,
-0.02532797120511532,
0.0026731763500720263,
0.004599655047059059,
-0.02913399413228035,
0.00014760605699848384,
0.03070419281721115,
-0.05386460945010185,
0.05140690878033638,
0.0025814392138272524,
-0.03449314832687378,
-0.03887946158647537,
0.008717156946659088,
-0.057414621114730835,
-0.011230327188968658,
0.021573150530457497,
0.050758346915245056,
0.02100992761552334,
0.033008284866809845,
-0.008712890557944775,
0.002036350080743432,
-0.017732994630932808,
0.0027606466319411993,
0.04751554876565933,
0.02809288538992405,
0.029680149629712105,
-0.03195010870695114,
0.002594239776954055,
0.04294149577617645,
0.05796077474951744,
0.006144252140074968,
-0.028417164459824562,
0.0639684870839119,
-0.0561857707798481,
-0.0073517682030797005,
0.003944694995880127,
-0.08205989748239517,
-0.03625108674168587,
-0.03679724037647247,
0.013193074613809586,
0.06031607463955879,
0.046389102935791016,
0.023126281797885895,
0.023860178887844086,
-0.035192910581827164,
0.0028331829234957695,
-0.0019691474735736847,
-0.021573150530457497,
0.019781077280640602,
-0.01587264984846115,
0.060077130794525146,
0.06482185423374176,
0.059394434094429016,
-0.05714154243469238,
-0.016717486083507538,
-0.02080512046813965,
-0.05120209977030754,
0.02648855186998844,
-0.05338672176003456,
0.030516451224684715,
-0.0036396158393472433,
-0.020276030525565147,
-0.035465989261865616,
0.04860785976052284,
0.01683695614337921,
0.03392992541193962,
-0.012988265603780746,
-0.0010997784556820989,
-0.003838024102151394,
0.007193895056843758,
0.07277525216341019,
0.020258963108062744,
0.010027077980339527,
0.01688815839588642,
-0.014507261104881763,
-0.048983342945575714,
-0.009617460891604424,
-0.06185213476419449,
0.018825305625796318,
-0.021419545635581017,
-0.01449019368737936,
-0.010496430099010468,
-0.005901041906327009,
-0.017767127603292465,
-0.09284647554159164,
-0.0002689443645067513,
0.07277525216341019,
-0.023126281797885895,
0.022699598222970963,
0.06113530695438385,
-0.03881119191646576,
-0.054922785609960556,
0.01050496380776167,
-0.022051038220524788,
0.012032493017613888,
-0.05976991727948189,
0.041951585561037064,
-0.0003496143326628953,
-0.010436694137752056,
0.001611799467355013,
-0.019593337550759315,
0.023689504712820053,
0.020566176623106003,
-0.08929646015167236,
-0.03060178831219673,
-0.030840730294585228,
0.1228167712688446,
-0.03338376805186272,
0.05109969526529312,
-0.030004430562257767,
0.0007482973742298782,
-0.013602690771222115,
-0.03307655453681946,
0.0030827929731458426,
0.03973282873630524,
-0.017545253038406372,
0.051543448120355606,
-0.02611307054758072,
0.0179548691958189,
-0.047379009425640106,
0.03423713520169258,
0.033332567662000656,
-0.03268400579690933,
-0.035363584756851196,
-0.07673487812280655,
-0.01061590202152729,
0.01661508157849312,
0.011383933015167713,
0.06738196313381195,
-0.0002512102946639061,
0.011750881560146809,
0.008162467740476131,
0.04386313259601593,
-0.04116648808121681,
-0.0017824730603024364,
0.0064642648212611675,
0.011196192353963852,
0.037070319056510925,
0.08752145618200302,
0.03908427059650421,
-0.05082661658525467,
-0.016854023560881615,
0.05113383010029793,
-0.023228686302900314,
-0.01009534765034914,
-0.001975547755137086,
0.02742725796997547,
0.05956510826945305,
0.04239533841609955,
-0.025310903787612915,
0.0025003692135214806,
-0.036285221576690674,
-0.015642240643501282,
-0.011571674607694149,
-0.05348912626504898,
-0.041951585561037064,
-0.006801345385611057,
0.025106096640229225,
0.009958808310329914,
-0.029577745124697685,
-0.02991909347474575,
0.012621317058801651,
-0.1186523288488388,
-0.014157380908727646,
0.016367604956030846,
0.01696496270596981,
0.009224911220371723,
0.061374250799417496,
0.004057766404002905,
-0.060998767614364624,
0.04922228306531906,
0.007484040223062038,
-0.06390021741390228,
0.04645737260580063,
-0.024013783782720566,
-0.06075982376933098,
-0.008691556751728058,
0.015983588993549347,
-0.008128332905471325,
-0.0028481166809797287,
0.02128300629556179,
-0.00658373674377799,
0.000012458844139473513,
0.08315221220254898,
0.01678575575351715,
-0.020736850798130035,
0.034407809376716614,
-0.011349799111485481,
0.0016555344918742776,
0.015940919518470764,
-0.009899072349071503,
-0.020173627883195877,
-0.00859768595546484,
-0.0031083940993994474,
0.07810027152299881,
-0.035363584756851196,
-0.05577615275979042,
0.03543185442686081,
0.021470747888088226,
-0.02659095637500286,
-0.008951833471655846,
-0.045501597225666046,
0.04314630106091499,
-0.009779601357877254,
-0.005704767070710659,
0.005320751573890448,
0.0018251414876431227,
0.06212521344423294,
0.02100992761552334,
0.044614095240831375,
-0.08178681880235672,
0.01004414539784193,
-0.030943134799599648,
0.07140985876321793,
-0.021419545635581017,
0.04973430559039116,
0.017835397273302078,
-0.06646032631397247,
0.034936897456645966,
-0.053045373409986496,
-0.010061212815344334,
-0.04106408357620239,
-0.006767211016267538,
-0.02710297703742981,
-0.0043543120846152306,
0.0348515622317791,
-0.01935439370572567,
-0.03268400579690933,
-0.041439566761255264,
0.03969869390130043,
-0.03911840543150902,
-0.04249774292111397,
0.017075899988412857,
0.01648707687854767,
0.03700204938650131,
-0.04437515139579773,
0.026761630550026894,
0.052738163620233536,
-0.020634446293115616,
-0.019917616620659828,
-0.041849181056022644,
0.0026646426413208246,
0.028383029624819756,
0.0738675594329834,
0.022597193717956543,
0.03625108674168587,
0.0010603101691231132,
-0.05113383010029793,
0.03177943453192711,
0.0019072782015427947,
0.029577745124697685,
0.016367604956030846,
-0.00026534422067925334,
0.008055796846747398,
-0.003368671517819166,
-0.005598096176981926,
0.020480839535593987,
0.0012480511795729399,
0.016248133033514023,
-0.02008829079568386,
0.0004114835464861244,
-0.06953245401382446,
-0.004842865280807018,
-0.013705095276236534,
0.02611307054758072,
0.03329843282699585,
0.058506932109594345,
0.05140690878033638,
0.011204726062715054,
0.016188396140933037,
-0.06120357662439346,
0.014788872562348843,
0.00849528145045042,
0.005457290448248386,
-0.02283613570034504,
0.016717486083507538,
0.007996060885488987,
0.014874209649860859,
-0.09544071555137634,
0.027853941544890404,
-0.03386165574193001,
0.02346762828528881,
0.04283909127116203,
0.015121686272323132,
-0.04444342106580734,
-0.04802756756544113,
0.02321161888539791,
0.021777959540486336,
-0.011622876860201359,
0.00913104135543108,
0.033161893486976624,
-0.09605513513088226,
0.053830474615097046,
0.008230737410485744,
-0.02481595054268837,
-0.02019069530069828,
-0.05874587595462799,
-0.0019862146582454443,
0.028656108304858208,
-0.009062771685421467,
-0.03304241970181465,
0.0084568802267313,
0.02945827506482601,
-0.036182817071676254,
0.011016985401511192,
0.037070319056510925,
0.013286944478750229,
-0.0047063264064490795,
0.06301271915435791,
-0.0034006726928055286,
-0.05577615275979042,
0.04201985523104668,
0.02867317572236061,
-0.028946252539753914,
0.014515794813632965,
-0.05458143725991249,
0.0017739393515512347,
-0.04021071642637253,
0.019627470523118973,
0.01714416965842247,
0.02840009704232216,
0.03522704541683197,
-0.013252809643745422,
-0.015352096408605576,
0.049563631415367126,
-0.04140543192625046,
0.023638302460312843,
-0.02102699503302574,
0.0671088844537735,
-0.0076376465149223804,
0.007488307077437639,
-0.01464380044490099,
-0.06226175278425217,
0.032803479582071304,
-0.02715417928993702,
-0.014601131901144981,
0.018535159528255463,
-0.01412324607372284,
-0.03002149797976017,
0.005977845285087824,
-0.02664215862751007,
-0.0005552227376028895,
-0.006707475055009127,
-0.0171697698533535,
-0.08417624980211258,
-0.009984409436583519,
0.052635759115219116,
-0.02903158962726593,
0.0577559694647789,
0.07270698249340057,
-0.023996716365218163,
-0.004932468757033348,
-0.009591859765350819,
-0.03022630512714386,
-0.010607368312776089,
0.003995897248387337,
-0.04157610610127449,
0.012160498648881912,
0.03466382250189781,
-0.0022763600572943687,
0.026761630550026894,
-0.06130598112940788,
0.00015053950482979417,
-0.02455994114279747,
-0.017511118203401566,
-0.007552309427410364,
-0.03464675322175026,
-0.013525888323783875,
0.011179124936461449,
0.0013397883158177137,
-0.01673455350100994,
-0.08124066144227982,
-0.028639040887355804,
-0.036558300256729126,
-0.02112939953804016,
0.0031019938178360462,
-0.07393582910299301,
0.06314925849437714,
-0.015198489651083946,
-0.034936897456645966,
0.012971198186278343,
0.05540066957473755,
-0.032018378376960754,
0.05755116045475006,
0.01615426316857338,
-0.011546073481440544,
0.005141544155776501,
-0.004510051570832729,
0.028963319957256317,
-0.025942396372556686,
0.011827684938907623,
0.009685730561614037,
0.014080577529966831,
-0.024696478620171547,
-0.0452626571059227,
0.021112332120537758,
-0.015684910118579865,
-0.006630671676248312,
0.020105358213186264,
0.01699056290090084,
-0.02664215862751007,
0.09421186149120331,
0.004428981803357601,
0.027768604457378387,
-0.009950274601578712,
0.015480101108551025,
-0.004740461241453886,
0.050963155925273895,
0.017331911250948906,
0.0447506345808506,
-0.015778779983520508,
0.08813588321208954,
-0.031403955072164536,
0.04208812490105629,
0.02278493344783783,
0.015957986935973167,
0.0546155720949173,
0.02481595054268837,
0.017596455290913582,
0.013423483818769455,
-0.025157298892736435,
0.0024022317957133055,
-0.014302453026175499,
-0.011503404937684536,
0.0379919558763504,
-0.04911988228559494,
0.0011573807569220662,
0.01488274335861206,
0.027819806709885597,
0.08369836211204529,
-0.028058750554919243,
0.027871008962392807,
0.016265200451016426,
0.033486172556877136,
0.022972675040364265,
0.03266694024205208,
-0.034988101571798325,
0.03761647641658783,
-0.08294740319252014,
-0.04772035777568817,
-0.002261426066979766,
-0.023177484050393105,
-0.011733814142644405,
-0.015002215281128883,
0.03143808990716934,
0.05540066957473755,
-0.01742578111588955,
0.04990497976541519,
0.014080577529966831,
-0.03495396673679352,
-0.020514974370598793,
0.01693936064839363,
-0.07455025613307953,
0.028485434129834175,
-0.03802609071135521,
-0.00037681544199585915,
-0.031659964472055435,
0.027495527639985085,
0.01920078694820404,
0.008909164927899837,
-0.0385039784014225,
0.0067970785312354565,
-0.004693525843322277,
-0.02367243729531765,
-0.03334963321685791,
0.049085747450590134,
0.004531385842710733,
0.027393123134970665,
-0.08888684213161469,
-0.016162795946002007,
0.006075982470065355,
0.026044800877571106,
-0.004428981803357601,
-0.009378517977893353,
-0.04338524490594864,
-0.027290718629956245,
-0.021658487617969513,
0.03662656992673874,
0.03002149797976017,
-0.045194387435913086,
-0.033742181956768036,
0.03543185442686081,
0.04696939140558243,
0.02247772179543972,
-0.00518847955390811,
-0.0024939689319580793,
0.009404119104146957,
-0.02293854020535946,
0.06884975731372833,
-0.01986641436815262,
0.02705177664756775,
0.02476474829018116,
0.018245015293359756,
0.05222614109516144,
-0.055229999125003815,
0.016470009461045265,
0.020514974370598793,
0.03754820674657822,
-0.010709772817790508,
0.034578483551740646,
-0.0030934601090848446,
-0.046798717230558395,
0.018552226945757866,
0.00194461306091398,
0.01373923011124134,
-0.006639205384999514,
-0.03864051774144173,
-0.03683137521147728,
-0.004023631568998098,
-0.01620546355843544,
0.03625108674168587,
-0.03864051774144173,
-0.0051927464082837105,
-0.0764617994427681,
-0.06444637477397919,
0.029099859297275543,
0.06369540840387344,
-0.005069007631391287,
-0.0018144743517041206,
-0.020941657945513725,
-0.008909164927899837,
0.010248953476548195,
-0.011179124936461449,
0.009685730561614037,
0.06082809343934059,
-0.04307803139090538,
-0.04089340940117836,
0.030499383807182312,
0.0048385984264314175,
0.014925411902368069,
-0.016666283831000328,
0.01961040310561657,
-0.014157380908727646,
0.03713858872652054,
-0.0541035532951355,
-0.03205251321196556,
0.016794288530945778,
0.03195010870695114,
-0.12001772224903107,
-0.048300646245479584,
0.016094526275992393,
0.003340936964377761,
0.03341790288686752,
-0.015701977536082268,
-0.00014240584278013557,
0.03116501122713089,
-0.043521784245967865,
-0.037275128066539764,
-0.022699598222970963,
-0.02840009704232216,
0.005252481903880835,
-0.02211930602788925,
-0.03553425520658493,
0.032803479582071304,
0.024047918617725372,
0.029953228309750557,
-0.050075653940439224,
0.045194387435913086,
0.03169409930706024,
0.006374661345034838,
0.00835447572171688,
-0.024389266967773438,
0.025430375710129738,
-0.04642323777079582,
-0.02273373119533062,
0.06809879094362259,
0.006942151114344597,
0.045808810740709305,
0.011435135267674923,
0.008183802478015423,
-0.0048599326983094215,
0.01459259819239378,
0.0074584390968084335,
-0.0009536391007713974,
-0.030618855729699135,
0.011511938646435738,
0.03522704541683197,
0.008277672342956066,
-0.06260310113430023,
-0.02532797120511532,
0.035090506076812744,
-0.06403675675392151,
0.03360564634203911,
0.05369393527507782,
-0.05389874428510666,
0.0035798801109194756,
0.07407236844301224,
-0.0063789281994104385,
-0.022358249872922897,
-0.009387051686644554,
0.05686846375465393,
-0.0016448674723505974,
0.010735373944044113,
0.05297710373997688,
0.007535242475569248,
-0.02730778604745865,
0.06574349850416183,
-0.043624188750982285,
-0.0619204044342041,
-0.0011424468830227852,
-0.05809731408953667,
-0.058609336614608765,
0.010684171691536903,
0.03891359642148018,
-0.00032481332891620696,
0.030499383807182312,
-0.0024171657860279083,
0.0029697217978537083,
-0.06420743465423584,
0.0036780175287276506,
-0.026317879557609558,
-0.07188774645328522,
-0.012365306727588177,
0.008503815159201622,
-0.05222614109516144,
-0.03420300409197807,
-0.007326167076826096,
0.005465824156999588,
-0.0028993189334869385,
-0.039357345551252365,
0.025771724060177803,
-0.01719537191092968,
-0.042736686766147614,
-0.001468860195018351,
0.008550751022994518,
-0.008209403604269028,
-0.06458291411399841,
0.005977845285087824,
0.05809731408953667,
0.05475211143493652,
-0.017186837270855904,
0.013534422032535076,
0.014430458657443523,
0.0012160498881712556,
-0.003033724380657077,
0.0195080004632473,
-0.048300646245479584,
0.011930089443922043,
-0.052362680435180664,
-0.039459750056266785,
-0.08779453486204147,
0.06239829212427139,
-0.0179548691958189,
-0.034936897456645966,
0.009566258639097214,
-0.04280495643615723,
0.021214736625552177,
-0.004243373870849609,
0.0051458110101521015,
0.022289980202913284,
0.036285221576690674,
0.007321900222450495,
0.0006218921625986695,
0.026778697967529297,
-0.009284647181630135,
-0.03362271189689636,
0.029884958639740944,
-0.010974316857755184,
-0.06430983543395996,
0.07509641349315643,
0.009224911220371723,
-0.028963319957256317,
-0.013210142031311989,
0.04201985523104668,
0.06861080974340439,
-0.020873388275504112,
0.008171001449227333,
-0.031233280897140503,
0.03980109840631485,
0.06748436391353607,
-0.05082661658525467,
-0.010573233477771282,
-0.026727495715022087,
-0.0525674894452095,
0.028707310557365417,
0.03553425520658493,
-0.002767046680673957,
-0.0010667104506865144,
-0.022648395970463753,
-0.00353081151843071,
0.0665968656539917,
0.023911381140351295,
0.010078280232846737,
0.00405136588960886,
-0.015642240643501282,
0.04191745072603226,
0.060281939804553986,
0.03963042423129082,
0.022955607622861862,
-0.01316747348755598,
0.00000793782510299934,
-0.023023877292871475,
-0.07769065350294113,
-0.003176663536578417,
-0.019234921783208847,
-0.05499105527997017,
0.03700204938650131,
-0.0016768687637522817,
-0.0019691474735736847,
0.027324853464961052,
0.019269056618213654,
-0.06403675675392151,
0.04017658159136772,
-0.013833100907504559,
-0.036865510046482086,
0.05133863911032677,
0.05703913792967796,
0.04437515139579773,
0.026027733460068703,
0.013124804943799973,
0.050485268235206604,
0.028058750554919243,
-0.017596455290913582,
-0.054547302424907684,
-0.005615163594484329,
-0.04167851060628891,
-0.001642734045162797,
0.06024780496954918,
-0.004155903588980436,
0.001371789607219398,
-0.015207023359835148,
0.004230573307722807,
-0.05891655012965202,
0.02450873889029026,
0.021880364045500755,
0.013560022227466106,
0.029526544734835625,
0.008619019761681557,
-0.05249921977519989,
0.03833330422639847,
-0.06151079013943672,
0.06622137874364853,
-0.020054155960679054,
-0.037479937076568604,
0.04198572039604187,
-0.03471502289175987,
-0.03870878741145134,
0.02013949304819107,
0.07161466777324677,
-0.11639943718910217,
-0.0015595306176692247,
0.024218592792749405,
-0.004740461241453886,
0.02461114153265953,
-0.022563058882951736,
0.019542135298252106,
0.0041793715208768845,
-0.03210371732711792,
0.037753015756607056,
-0.015147287398576736,
-0.03085779771208763,
0.04256601259112358,
-0.022819068282842636,
0.014285385608673096,
-0.09291474521160126,
-0.011102321557700634,
-0.027649134397506714,
0.019217854365706444,
0.07031755149364471,
-0.05519586428999901,
-0.00931024830788374,
0.06075982376933098,
0.02928760088980198
] |
10,028
|
sentence_transformers.SentenceTransformer
|
_save_checkpoint
| null |
def _save_checkpoint(self, checkpoint_path, checkpoint_save_total_limit, step):
# Store new checkpoint
self.save(os.path.join(checkpoint_path, str(step)))
# Delete old checkpoints
if checkpoint_save_total_limit is not None and checkpoint_save_total_limit > 0:
old_checkpoints = []
for subdir in os.listdir(checkpoint_path):
if subdir.isdigit():
old_checkpoints.append({"step": int(subdir), "path": os.path.join(checkpoint_path, subdir)})
if len(old_checkpoints) > checkpoint_save_total_limit:
old_checkpoints = sorted(old_checkpoints, key=lambda x: x["step"])
shutil.rmtree(old_checkpoints[0]["path"])
|
(self, checkpoint_path, checkpoint_save_total_limit, step)
|
[
-0.0045372419990599155,
0.03228624165058136,
-0.07455792278051376,
0.06786593049764633,
-0.04358555004000664,
-0.02293146587908268,
-0.04095780476927757,
0.07701048254966736,
-0.013419024646282196,
-0.015635089948773384,
0.016327062621712685,
-0.007734333164989948,
0.03475632518529892,
-0.03356507793068886,
-0.0002597636776044965,
0.007659880444407463,
0.053921353071928024,
-0.04803520068526268,
-0.05066294968128204,
0.03640304505825043,
0.02757381834089756,
0.004589796997606754,
-0.008566453121602535,
-0.02280883677303791,
-0.0007921560318209231,
-0.0009071198874153197,
0.06026298180222511,
0.08527912944555283,
0.0010478137992322445,
0.008163531310856342,
-0.07091411203145981,
-0.03330230340361595,
-0.009153315797448158,
0.031708139926195145,
-0.005303667858242989,
-0.023614680394530296,
-0.017938748002052307,
0.012166465632617474,
-0.07024841755628586,
-0.022721245884895325,
-0.016721226274967194,
0.03892568126320839,
-0.05889655277132988,
0.01883218251168728,
-0.016160639002919197,
0.005640895571559668,
-0.035334426909685135,
0.03892568126320839,
0.06874184310436249,
-0.023439496755599976,
-0.06562358140945435,
-0.03289938345551491,
0.005036513786762953,
0.0305869672447443,
0.023579644039273262,
-0.015547499060630798,
0.05465712398290634,
-0.01569640450179577,
0.027854111045598984,
0.036052677780389786,
0.025979651138186455,
-0.010379597544670105,
0.09649084508419037,
-0.024998625740408897,
0.027889147400856018,
-0.029465794563293457,
-0.05073302239179611,
-0.012797124683856964,
0.0032540257088840008,
0.027661409229040146,
-0.0011594929965212941,
-0.0664995014667511,
0.023930009454488754,
0.021880367770791054,
-0.004436511546373367,
-0.007616084534674883,
-0.014102238230407238,
-0.015985457226634026,
-0.015100781805813313,
0.030937332659959793,
0.0210044514387846,
-0.05269507318735123,
0.01089638751000166,
-0.04134320840239525,
-0.029658496379852295,
0.02028620056807995,
0.06986301392316818,
-0.0010494561865925789,
0.011562083847820759,
0.022002995014190674,
0.02666286565363407,
0.030026379972696304,
0.0067620668560266495,
-0.031462881714105606,
0.027854111045598984,
-0.08338715136051178,
-0.04793009161949158,
0.0037270202301442623,
-0.053185585886240005,
-0.0003350376500748098,
-0.021039487794041634,
-0.04961185157299042,
-0.039135899394750595,
-0.010221933014690876,
0.026452645659446716,
-0.05746005102992058,
0.028344623744487762,
-0.06005275994539261,
-0.00007322105375351384,
0.001982853515073657,
-0.050838131457567215,
0.010002953931689262,
-0.056689247488975525,
0.008329955860972404,
0.0047912574373185635,
0.049997251480817795,
0.05721479654312134,
-0.01098397932946682,
-0.032128576189279556,
-0.020478902384638786,
-0.012201501987874508,
-0.0049489219672977924,
-0.03289938345551491,
0.04586293175816536,
-0.020899342373013496,
-0.0048481919802725315,
0.08359736949205399,
0.08759154379367828,
0.009731420315802097,
-0.01710662804543972,
0.07876231521368027,
-0.06898710131645203,
-0.02668038383126259,
-0.0013872310519218445,
0.010659891180694103,
-0.005154762417078018,
0.02268620952963829,
0.010029231198132038,
-0.0489811897277832,
-0.04856074973940849,
0.00427665701135993,
0.0010357699356973171,
-0.01376063097268343,
-0.008351854048669338,
0.05539289116859436,
0.03990670666098595,
-0.06765570491552353,
0.044916942715644836,
0.008036524057388306,
-0.005426296032965183,
0.018744589760899544,
-0.02757381834089756,
-0.04270963743329048,
-0.015529980883002281,
-0.010519743897020817,
-0.01520589180290699,
-0.008908059448003769,
0.017632177099585533,
-0.030219081789255142,
0.003551837056875229,
-0.009021928533911705,
-0.009302222169935703,
0.02895776368677616,
-0.0017485461430624127,
-0.03331982344388962,
0.052835218608379364,
-0.017842397093772888,
0.06930242478847504,
-0.04411109909415245,
0.04575782269239426,
0.053080473095178604,
-0.010318283922970295,
-0.008908059448003769,
0.04642351716756821,
-0.0569695383310318,
0.018989846110343933,
0.0271008238196373,
-0.05896662548184395,
0.03759428858757019,
0.010913906618952751,
0.00850513856858015,
0.020356275141239166,
0.0272059328854084,
-0.024000082165002823,
-0.009854048490524292,
-0.036648303270339966,
-0.02611979842185974,
0.030639521777629852,
0.008943096734583378,
0.021144598722457886,
-0.008421926759183407,
0.042569488286972046,
0.05882648006081581,
0.014067201875150204,
-0.02739863470196724,
-0.00011824857938336208,
0.025611767545342445,
-0.002237963955849409,
0.046668775379657745,
0.007392726372927427,
-0.01883218251168728,
0.021389855071902275,
0.0897638127207756,
-0.1028675064444542,
0.006451117340475321,
0.0025927096139639616,
-0.041308172047138214,
0.016694948077201843,
-0.0475446879863739,
0.055603113025426865,
0.0034730045590549707,
0.01267449650913477,
-0.04249941557645798,
0.0017430717125535011,
0.05689946562051773,
-0.033092085272073746,
0.03885560855269432,
0.026575274765491486,
-0.014146033674478531,
0.017465753480792046,
-0.001844896818511188,
-0.0043839565478265285,
0.00986280757933855,
0.0048788487911224365,
0.038049764931201935,
-0.04376073554158211,
0.021074526011943817,
-0.07729078084230423,
0.01622195355594158,
-0.014365012757480145,
-0.00457227835431695,
-0.018499333411455154,
-0.030008861795067787,
-0.01361172553151846,
0.0032386973034590483,
-0.009013169445097446,
-0.02209058776497841,
-0.06331116706132889,
0.023930009454488754,
0.005890531465411186,
-0.029010318219661713,
-0.07108929753303528,
-0.0352993905544281,
0.010668650269508362,
0.029167983680963516,
0.036227863281965256,
0.06268050521612167,
-0.07364697009325027,
0.03507165238261223,
0.02920302003622055,
0.06706008315086365,
0.014741656370460987,
-0.022826356813311577,
-0.013401506468653679,
0.05055783689022064,
-0.005982502363622189,
-0.010747482068836689,
0.014259902760386467,
0.028099367395043373,
0.08016377687454224,
-0.017167942598462105,
0.02275628224015236,
0.0189548097550869,
-0.014014646410942078,
-0.05679435655474663,
-0.001933583291247487,
0.03151543810963631,
-0.011746025644242764,
0.03745414316654205,
0.02081174962222576,
0.0461081862449646,
0.04687899351119995,
-0.035264354199171066,
0.00490074697881937,
0.007598566357046366,
-0.04362058639526367,
-0.012797124683856964,
-0.00047983741387724876,
-0.02209058776497841,
-0.029010318219661713,
0.037979692220687866,
-0.009100761264562607,
0.05738997831940651,
0.011500769294798374,
-0.03615779057145119,
0.020846787840127945,
0.010248210281133652,
-0.016694948077201843,
0.011080330237746239,
-0.03892568126320839,
-0.04144831746816635,
0.0005050199688412249,
0.04295489192008972,
0.027135860174894333,
0.005259871948510408,
0.0010916095925495028,
-0.0664995014667511,
-0.03444099426269531,
0.009941640309989452,
0.031287699937820435,
0.0023386941757053137,
-0.03507165238261223,
-0.008202947676181793,
0.01448764093220234,
0.03463369607925415,
-0.03349500522017479,
-0.014951876364648342,
-0.01529348362237215,
0.029220538213849068,
0.009223389439284801,
0.0005334872403182089,
-0.055182673037052155,
0.05255492404103279,
0.028292067348957062,
0.0662892758846283,
-0.028221994638442993,
-0.015363556332886219,
-0.038960717618465424,
-0.010572299361228943,
0.01065113116055727,
-0.0009164265356957912,
0.04943666607141495,
-0.043900880962610245,
0.013024861924350262,
-0.03549209237098694,
-0.03239135071635246,
0.012297852896153927,
0.017150424420833588,
-0.02075919508934021,
-0.03941619396209717,
0.0014156983233988285,
-0.03144536539912224,
0.05230966955423355,
0.023439496755599976,
-0.0018372326157987118,
0.021705184131860733,
0.02147744596004486,
0.018551887944340706,
0.027713963761925697,
0.04786001890897751,
0.03994174301624298,
0.006897834129631519,
0.02668038383126259,
0.0011074856156483293,
0.017719769850373268,
0.03473880514502525,
0.02068912237882614,
0.0046949065290391445,
-0.01863948069512844,
0.041132986545562744,
-0.09025432914495468,
0.0152672054246068,
-0.04435635730624199,
-0.027416152879595757,
-0.04495197907090187,
-0.024455558508634567,
0.07518857717514038,
-0.0789024606347084,
-0.013944573700428009,
-0.10938432067632675,
0.025664322078227997,
0.0284847691655159,
-0.009135797619819641,
0.027013231068849564,
0.03843516856431961,
0.02268620952963829,
-0.01545114815235138,
0.005040893331170082,
0.04421621188521385,
-0.009092002175748348,
-0.0007259148987941444,
-0.027608854696154594,
0.016598597168922424,
0.02123218961060047,
-0.004541621543467045,
0.015705162659287453,
0.013804427348077297,
0.05206441134214401,
0.015661368146538734,
0.02196795865893364,
-0.0011551134521141648,
-0.0555330365896225,
-0.00043275696225464344,
-0.004970820154994726,
0.03836509585380554,
-0.0015219030901789665,
0.029010318219661713,
-0.04526730999350548,
0.08247619867324829,
0.008334334939718246,
0.02722345106303692,
-0.0010642372071743011,
-0.032251205295324326,
-0.036543190479278564,
0.042569488286972046,
-0.009258425794541836,
0.03724392503499985,
0.02503366209566593,
-0.025611767545342445,
0.01607304811477661,
-0.005662793293595314,
0.015906624495983124,
-0.03270668163895607,
0.017684731632471085,
-0.01179858110845089,
-0.022843874990940094,
-0.03594756871461868,
0.0025357750710099936,
0.006770826410502195,
-0.0034511068370193243,
0.007944553159177303,
0.05672428384423256,
0.030254118144512177,
0.036543190479278564,
0.0251562912017107,
0.03251397982239723,
-0.07150973379611969,
-0.040222037583589554,
0.0032934420742094517,
-0.01799130253493786,
0.0012930701486766338,
0.08317692577838898,
0.04008188843727112,
0.004064247477799654,
-0.013681799173355103,
0.000023659980797674507,
-0.01668618805706501,
-0.02589206025004387,
-0.02196795865893364,
0.01984824426472187,
0.022948984056711197,
-0.0529753640294075,
-0.05504252389073372,
0.02685556747019291,
-0.018867218866944313,
0.03734903410077095,
-0.009740179404616356,
-0.01418107096105814,
-0.04519723728299141,
0.04162349924445152,
0.011176681146025658,
-0.02268620952963829,
0.01249055378139019,
0.05472719669342041,
0.04439139366149902,
-0.007992728613317013,
-0.02503366209566593,
-0.050417691469192505,
-0.01249055378139019,
0.05570822209119797,
-0.04176364839076996,
-0.029132947325706482,
0.014198589138686657,
-0.041132986545562744,
0.018446778878569603,
0.007550390902906656,
-0.05567318573594093,
-0.016449691727757454,
-0.009976676665246487,
-0.012271574698388577,
0.08191560953855515,
0.04996221512556076,
0.036052677780389786,
-0.010975220240652561,
0.027889147400856018,
-0.06499292701482773,
-0.0030306673143059015,
0.05185419321060181,
0.025979651138186455,
-0.031462881714105606,
0.007563529536128044,
-0.0230540931224823,
-0.02522636391222477,
0.019287656992673874,
-0.02154751867055893,
0.0169051680713892,
-0.01863948069512844,
-0.007957691326737404,
0.015197132714092731,
0.01529348362237215,
0.019042400643229485,
-0.03920597583055496,
-0.00045438113738782704,
-0.0031051202677190304,
0.022651173174381256,
0.0014551144558936357,
-0.05714472383260727,
0.002470081439241767,
-0.0016708086477592587,
0.025296436622738838,
-0.002222635317593813,
-0.01622195355594158,
-0.032496463507413864,
-0.006385423243045807,
0.025419065728783607,
-0.04036218300461769,
-0.02685556747019291,
0.027608854696154594,
0.032969456166028976,
-0.05280018225312233,
0.029132947325706482,
-0.018078895285725594,
0.0025708116590976715,
0.024245338514447212,
-0.0077387127093970776,
0.028519805520772934,
-0.024455558508634567,
0.020303718745708466,
-0.06033305451273918,
-0.00029699006699956954,
0.019445322453975677,
-0.006131407804787159,
-0.018078895285725594,
0.05045272782444954,
-0.007445280905812979,
0.009687624871730804,
0.01402340643107891,
0.010905146598815918,
0.02088182419538498,
0.005640895571559668,
-0.03302201256155968,
-0.016011733561754227,
0.03202346712350845,
-0.039556339383125305,
-0.029255574569106102,
-0.02722345106303692,
-0.04036218300461769,
-0.04120306298136711,
0.020794231444597244,
0.01668618805706501,
0.03542201966047287,
0.04400599002838135,
0.09873318672180176,
0.046984102576971054,
0.02589206025004387,
0.05767027288675308,
-0.0011074856156483293,
-0.06961775571107864,
0.060192909091711044,
-0.039135899394750595,
-0.028292067348957062,
-0.04186875745654106,
-0.04291985556483269,
0.023369424045085907,
-0.04291985556483269,
0.04663373902440071,
0.04439139366149902,
0.021162116900086403,
-0.02147744596004486,
0.016002975404262543,
0.04736950621008873,
0.015424870885908604,
0.01870955340564251,
-0.036963630467653275,
0.03661326318979263,
-0.049927178770303726,
0.004957681521773338,
0.008802950382232666,
0.06005275994539261,
0.003970086574554443,
-0.044741760939359665,
-0.011369382031261921,
0.05665421113371849,
-0.02075919508934021,
0.025786949321627617,
-0.050592873245477676,
-0.03065703995525837,
-0.04558263719081879,
-0.0034620556980371475,
0.03016652725636959,
0.07392726093530655,
0.032373834401369095,
0.019392767921090126,
-0.06008780002593994,
0.00039881523116491735,
-0.010633612982928753,
-0.02219569683074951,
0.02678549289703369,
-0.023789862170815468,
0.04778994619846344,
-0.05146878957748413,
0.053430840373039246,
0.02209058776497841,
-0.005141623318195343,
0.013165009208023548,
0.032373834401369095,
0.021757738664746284,
0.007068637292832136,
-0.08296670764684677,
0.09936384856700897,
-0.059527210891246796,
0.08941344916820526,
-0.011237994767725468,
-0.07504843175411224,
0.014540196396410465,
-0.04032714664936066,
0.0203913114964962,
-0.02407015673816204,
-0.03745414316654205,
-0.015529980883002281,
-0.013953332789242268,
-0.013769390061497688,
0.012928511947393417,
0.06562358140945435,
-0.0272059328854084,
0.02804681286215782,
-0.03710377588868141,
0.041728612035512924,
-0.03976656123995781,
0.049997251480817795,
-0.05956224724650383,
0.03468625247478485,
0.07217542827129364,
-0.004554760176688433,
-0.07112433016300201,
0.03288186341524124,
0.040151964873075485,
-0.009127038531005383,
-0.06190970167517662,
0.05353594943881035,
-0.052589960396289825,
-0.11632157117128372,
-0.046738848090171814,
0.006753307767212391,
-0.05581333115696907,
-0.05581333115696907,
-0.0066350591368973255,
0.020566493272781372,
-0.009135797619819641,
-0.05202937498688698,
-0.055778294801712036,
0.012525590136647224,
-0.0010379598243162036,
-0.040397219359874725,
0.039241012185811996,
-0.0298161618411541,
-0.016002975404262543,
-0.028081849217414856,
0.015188373625278473,
-0.022283287718892097,
-0.03952130302786827,
0.07616960257291794,
-0.01851685158908367,
-0.0037554875016212463,
-0.029728569090366364,
-0.04680892080068588,
0.0017452614847570658,
0.0326891653239727,
0.07511850446462631,
0.02436796762049198,
-0.019830726087093353,
0.0008151488145813346,
-0.020531456917524338,
0.02534899301826954,
-0.002851104596629739,
0.05202937498688698,
0.09235652536153793,
0.0005616807611659169,
-0.002441614167764783,
-0.08191560953855515,
-0.07729078084230423,
-0.0010330327786505222,
-0.06723526865243912,
-0.009635069407522678,
-0.04414613917469978,
0.04099284112453461,
-0.036052677780389786,
0.061524298042058945,
-0.04151839017868042,
-0.08212582767009735,
-0.01777232438325882,
-0.0529753640294075,
-0.003556216601282358,
-0.02088182419538498,
-0.04029211029410362,
-0.05689946562051773,
0.014706620015203953,
0.002294898498803377,
-0.01732560619711876,
0.0008211706881411374,
-0.04761476069688797,
-0.02081174962222576,
-0.025594249367713928,
0.0028073089197278023,
0.01604676991701126,
0.09768208861351013,
-0.0339680016040802,
0.03536946326494217,
-0.03766436502337456,
0.031217625364661217,
-0.022475989535450935,
0.028274549171328545,
0.019690578803420067,
-0.002577381208539009,
-0.05346587672829628,
-0.025454102084040642,
-0.012648218311369419,
0.02147744596004486,
0.010800037533044815,
-0.07960319519042969,
-0.015687644481658936,
-0.009240907616913319,
-0.008329955860972404,
-0.02461322396993637,
0.017781082540750504,
-0.03650815412402153,
-0.00899565126746893,
0.00733141228556633,
-0.04295489192008972,
0.024525631219148636,
0.061874665319919586,
-0.025962132960557938,
0.01592414267361164,
-0.03536946326494217,
-0.043165113776922226,
0.04393591731786728,
-0.007927034981548786,
-0.08738132566213608,
-0.02202051319181919,
-0.028327105566859245,
-0.02732856199145317,
-0.045162200927734375,
-0.006775205954909325,
-0.02601468749344349,
-0.06523817777633667,
-0.005531406030058861,
0.02661031112074852,
-0.03959137573838234,
0.03706873953342438,
0.0054000187665224075,
-0.019322695210576057,
0.028204476460814476,
0.00938105396926403,
0.04351547732949257,
0.0145752327516675,
0.038820572197437286,
0.027976738288998604,
0.016948962584137917,
0.04109795019030571,
-0.005198557861149311,
0.06555350869894028,
0.011982522904872894,
0.02263365499675274,
0.006871556397527456,
0.03531691059470177,
0.0011244564084336162,
0.03494902700185776,
0.046738848090171814,
-0.04460161179304123,
-0.04008188843727112,
0.018324151635169983,
0.049927178770303726,
0.01025696936994791,
0.05181915685534477,
0.01442632731050253,
0.0026868705172091722,
0.01942780427634716,
-0.009722661226987839,
0.04677388444542885,
0.02836214192211628,
-0.0024591325782239437,
-0.05045272782444954,
0.018008820712566376,
-0.024718333035707474,
0.054692160338163376,
0.00006887569179525599,
-0.005018995609134436,
0.006556226871907711
] |
10,029
|
torch.nn.modules.module
|
_save_to_state_dict
|
Save module state to the `destination` dictionary.
The `destination` dictionary will contain the state
of the module, but not its descendants. This is called on every
submodule in :meth:`~torch.nn.Module.state_dict`.
In rare cases, subclasses can achieve class-specific behavior by
overriding this method with custom logic.
Args:
destination (dict): a dict where state will be stored
prefix (str): the prefix for parameters and buffers used in this
module
|
def _save_to_state_dict(self, destination, prefix, keep_vars):
r"""Save module state to the `destination` dictionary.
The `destination` dictionary will contain the state
of the module, but not its descendants. This is called on every
submodule in :meth:`~torch.nn.Module.state_dict`.
In rare cases, subclasses can achieve class-specific behavior by
overriding this method with custom logic.
Args:
destination (dict): a dict where state will be stored
prefix (str): the prefix for parameters and buffers used in this
module
"""
for name, param in self._parameters.items():
if param is not None:
destination[prefix + name] = param if keep_vars else param.detach()
for name, buf in self._buffers.items():
if buf is not None and name not in self._non_persistent_buffers_set:
destination[prefix + name] = buf if keep_vars else buf.detach()
extra_state_key = prefix + _EXTRA_STATE_KEY_SUFFIX
if getattr(self.__class__, "get_extra_state", Module.get_extra_state) is not Module.get_extra_state:
destination[extra_state_key] = self.get_extra_state()
|
(self, destination, prefix, keep_vars)
|
[
-0.02678663842380047,
0.027161402627825737,
-0.058355968445539474,
-0.03130164369940758,
0.003504481166601181,
-0.01845262199640274,
-0.043008528649806976,
0.07502400130033493,
0.011153663508594036,
-0.07109791785478592,
-0.04697030782699585,
-0.006616353522986174,
-0.006161283701658249,
0.02143288031220436,
0.014187460765242577,
0.04168793559074402,
0.018399083986878395,
-0.01359854731708765,
-0.070134237408638,
-0.020719045773148537,
-0.015980970114469528,
-0.017283717170357704,
0.0467204675078392,
0.017069566994905472,
-0.04175931587815285,
-0.06253190338611603,
0.03401421383023262,
-0.02393130213022232,
0.02373499609529972,
0.025876499712467194,
0.01249210350215435,
-0.07773657888174057,
0.03840429708361626,
0.03331822529435158,
-0.001774547970853746,
-0.0076915668323636055,
-0.0229676254093647,
0.02958844043314457,
-0.07816487550735474,
-0.07402464002370834,
-0.013545009307563305,
-0.03276500478386879,
-0.00018292009190190583,
0.03092687949538231,
0.0455426387488842,
0.03794030472636223,
-0.006304050795733929,
0.012518872506916523,
0.07502400130033493,
-0.016141582280397415,
-0.0059471335262060165,
-0.010359522886574268,
-0.0054563721641898155,
0.009966913610696793,
0.021307960152626038,
-0.0026478797663003206,
0.0785931795835495,
-0.008566013537347317,
-0.060961466282606125,
0.017087412998080254,
-0.007682643830776215,
-0.012465334497392178,
0.042044851928949356,
-0.023199621587991714,
0.024662980809807777,
-0.001568205188959837,
-0.07199020683765411,
-0.00607651611790061,
-0.039724890142679214,
0.051931459456682205,
0.0014800912467762828,
-0.10172141343355179,
0.0835186317563057,
0.022128868848085403,
-0.04532849043607712,
0.025287587195634842,
-0.06745735555887222,
-0.02314608357846737,
-0.0314801000058651,
-0.013527163304388523,
-0.01989813707768917,
-0.05467972159385681,
-0.04861212894320488,
0.02748262695968151,
-0.03929658979177475,
-0.00859278254210949,
-0.019059380516409874,
0.019951673224568367,
0.01182288397103548,
-0.044329121708869934,
-0.03167640417814255,
0.07552368938922882,
0.014776374213397503,
0.005880211479961872,
0.02316392958164215,
-0.02564450353384018,
-0.029070910066366196,
-0.0055589862167835236,
0.002429268090054393,
-0.0181492418050766,
-0.044828806072473526,
-0.03197978436946869,
-0.03769046068191528,
0.04051010683178902,
0.011894267052412033,
-0.05714245140552521,
0.014847757294774055,
-0.036655399948358536,
-0.017747709527611732,
-0.049433037638664246,
0.011581964790821075,
0.010984128341078758,
-0.033568065613508224,
-0.010439828969538212,
0.008775702677667141,
-0.03312192112207413,
0.05100347474217415,
-0.018229547888040543,
-0.057106759399175644,
-0.019719677045941353,
-0.012956095859408379,
0.030088122934103012,
-0.05639292299747467,
0.0551794059574604,
0.03449605032801628,
-0.002913336968049407,
0.013527163304388523,
0.026376184076070786,
0.04090271517634392,
-0.06913486868143082,
-0.025216203182935715,
-0.02460944466292858,
-0.03890398144721985,
0.008494630455970764,
0.021593492478132248,
0.014874526299536228,
-0.014339149929583073,
0.03458528220653534,
0.005848981440067291,
-0.013348705135285854,
0.031569331884384155,
-0.033764369785785675,
0.012554564513266087,
0.04254453629255295,
0.04736291989684105,
-0.05603600665926933,
0.00859278254210949,
0.026536796241998672,
-0.025769425556063652,
-0.04168793559074402,
0.033764369785785675,
0.013045324943959713,
0.01571328192949295,
0.04896904528141022,
-0.07902147620916367,
0.009725995361804962,
0.012875789776444435,
0.00006730538734700531,
-0.023699305951595306,
0.0015972047112882137,
-0.004796075634658337,
-0.036155715584754944,
0.005175299942493439,
-0.032318856567144394,
0.010172141715884209,
0.005103916395455599,
0.033282533288002014,
-0.03144440799951553,
0.006901887245476246,
-0.04140239953994751,
-0.052895136177539825,
-0.05128900706768036,
0.0008844855474308133,
0.02575157955288887,
-0.1007220447063446,
0.020504895597696304,
0.008664166554808617,
-0.06467340141534805,
-0.015490208752453327,
0.02239655703306198,
0.09972267597913742,
-0.033050537109375,
-0.0960107371211052,
0.03908243775367737,
0.012697330676019192,
-0.07566645741462708,
-0.024716518819332123,
0.025858653709292412,
0.04582817479968071,
0.040795642882585526,
0.02844630368053913,
-0.0006731236353516579,
0.023074699565768242,
-0.01022567879408598,
-0.05696399137377739,
0.006611892022192478,
-0.04582817479968071,
-0.055964622646570206,
0.008806932717561722,
0.08109159767627716,
-0.008048484101891518,
-0.05967656150460243,
-0.01836339198052883,
0.00809756014496088,
0.0036338637582957745,
-0.0022240406833589077,
-0.011653347872197628,
-0.022610707208514214,
0.02678663842380047,
-0.02717924863100052,
0.018399083986878395,
-0.03035581111907959,
0.031551484018564224,
0.05492956563830376,
0.0271970946341753,
-0.023770688101649284,
0.019273530691862106,
0.06820688396692276,
0.05906980484724045,
-0.03517419472336769,
0.01834554597735405,
0.04218761995434761,
-0.02419898845255375,
0.006183591205626726,
-0.025394661352038383,
-0.035388343036174774,
-0.00921738799661398,
-0.03112318366765976,
-0.01215303223580122,
0.009520767256617546,
0.07231143116950989,
0.00792356301099062,
-0.06345988810062408,
-0.031961940228939056,
0.09715287387371063,
0.02410976029932499,
0.0022641937248408794,
-0.04090271517634392,
0.030694883316755295,
0.007107114419341087,
0.00463100103661418,
0.017569251358509064,
0.012991787865757942,
-0.07530953735113144,
0.0023244235198944807,
-0.05257391184568405,
0.04946872964501381,
-0.0047648451291024685,
-0.025037745013833046,
0.014651453122496605,
0.04964718967676163,
0.00826263427734375,
-0.022450095042586327,
0.052788060158491135,
0.029517056420445442,
-0.0032881000079214573,
0.02899952605366707,
0.0459352508187294,
-0.02564450353384018,
-0.0065628159791231155,
0.002087965840473771,
-0.031640712171792984,
-0.04507864639163017,
-0.06260328739881516,
0.03804737702012062,
0.03833291307091713,
0.04272299259901047,
-0.006536046974360943,
0.014803142286837101,
-0.00927092507481575,
0.05046809837222099,
0.014214228838682175,
-0.06852810829877853,
0.009449384175240993,
-0.008833701722323895,
-0.0407242588698864,
0.02623341791331768,
-0.0038033993914723396,
0.004396774340420961,
-0.002859799424186349,
0.03239024057984352,
-0.009047851897776127,
0.003941704984754324,
-0.016052352264523506,
0.031283795833587646,
0.03353237360715866,
-0.01249210350215435,
0.037119392305612564,
0.06602969020605087,
0.008392016403377056,
0.022717783227562904,
0.0366910919547081,
0.002080158330500126,
0.032604388892650604,
-0.002830799901857972,
0.027714623138308525,
-0.1022924855351448,
0.019059380516409874,
0.044043589383363724,
0.05425142124295235,
0.020897503942251205,
0.037440620362758636,
-0.032318856567144394,
0.05225268378853798,
0.0064468178898096085,
-0.007307880558073521,
0.048933353275060654,
-0.007294496055692434,
-0.025287587195634842,
0.03701232001185417,
0.041937775909900665,
-0.035870183259248734,
0.06752873957157135,
0.021539956331253052,
0.04425773769617081,
-0.08366139978170395,
0.0023891148157417774,
-0.035388343036174774,
-0.030516425147652626,
0.0304450411349535,
-0.03208686038851738,
0.03979627415537834,
-0.0547867976129055,
0.05732090771198273,
0.032800693064928055,
-0.004595309495925903,
0.040224574506282806,
0.02460944466292858,
0.037512000650167465,
-0.02642972208559513,
-0.10571888834238052,
0.01311670895665884,
0.02919583022594452,
0.04054579883813858,
-0.027304168790578842,
0.028660453855991364,
-0.004196008201688528,
-0.020201515406370163,
0.022057484835386276,
0.017506791278719902,
0.0632457360625267,
-0.011805037967860699,
-0.07174036651849747,
-0.004276314750313759,
0.006232667248696089,
0.00011669520608847961,
-0.02487713284790516,
0.018238471820950508,
0.030427195131778717,
-0.005755290389060974,
-0.09101390093564987,
0.035209886729717255,
0.014428379945456982,
0.04896904528141022,
0.05771351978182793,
-0.030320119112730026,
0.011537349782884121,
-0.04921888932585716,
-0.029445672407746315,
-0.033050537109375,
0.059212569147348404,
0.009886607527732849,
-0.003424174850806594,
-0.0025742657016962767,
0.012170878238976002,
0.02594788372516632,
-0.003038258058950305,
-0.02940998040139675,
0.023199621587991714,
-0.06467340141534805,
0.0314265638589859,
-0.070134237408638,
-0.013741313479840755,
0.04457896202802658,
0.0008348517585545778,
0.037619076669216156,
-0.012813328765332699,
-0.013839466497302055,
-0.02257501520216465,
0.007468493189662695,
0.05985502153635025,
-0.03794030472636223,
0.013000710867345333,
-0.000600624771323055,
0.07366771996021271,
0.022842703387141228,
0.10493367165327072,
-0.012224415317177773,
0.033478837460279465,
-0.04993272200226784,
-0.04104548320174217,
0.06820688396692276,
-0.006428971886634827,
0.011260738596320152,
0.030605653300881386,
-0.01604343019425869,
0.0012302491813898087,
-0.0030271043069660664,
-0.014829911291599274,
-0.010475520975887775,
0.04900473728775978,
-0.04575679078698158,
-0.014089308679103851,
0.010769978165626526,
0.015160059556365013,
-0.012554564513266087,
0.022931933403015137,
0.024341756477952003,
0.024627290666103363,
-0.038939669728279114,
0.03513850271701813,
-0.015615129843354225,
-0.07106222212314606,
0.014009001664817333,
0.0459352508187294,
0.007522030733525753,
0.007182959467172623,
-0.05078932270407677,
-0.01696249283850193,
-0.0017801247304305434,
0.03676247596740723,
0.04054579883813858,
0.04161655157804489,
-0.025126973167061806,
-0.001209057169035077,
0.028553379699587822,
-0.06977732479572296,
-0.025822961702942848,
-0.0000865106048877351,
0.02757185697555542,
-0.024948514997959137,
-0.026197725906968117,
-0.017524637281894684,
0.005532217212021351,
0.04479311406612396,
-0.019648294895887375,
0.047505684196949005,
0.004432465881109238,
-0.026286955922842026,
0.04771983623504639,
0.015552668832242489,
-0.019933827221393585,
0.012313645333051682,
0.04978995397686958,
-0.007896794006228447,
-0.029731206595897675,
-0.001998736523091793,
0.005465295165777206,
0.0322117805480957,
0.018666772171854973,
-0.04743430018424988,
-0.040974099189043045,
0.03333606943488121,
-0.03410344198346138,
-0.014820988290011883,
-0.021486418321728706,
-0.001291594235226512,
-0.045399874448776245,
-0.027429090812802315,
-0.037797536700963974,
-0.014133922755718231,
-0.03365729749202728,
-0.009458307176828384,
0.07802210748195648,
0.039546430110931396,
-0.0016685881419107318,
0.010966282337903976,
-0.056642767041921616,
0.024627290666103363,
0.047898292541503906,
-0.017524637281894684,
0.034049905836582184,
0.01604343019425869,
-0.004706846084445715,
-0.020040903240442276,
0.01920214854180813,
-0.016230812296271324,
0.0017176641849800944,
-0.03296130895614624,
-0.05928395316004753,
0.04133101552724838,
0.00010296225809725001,
-0.0014823218807578087,
0.035209886729717255,
0.024555906653404236,
0.014107153750956059,
0.01412499975413084,
0.022646399214863777,
0.04015319049358368,
0.03772615268826485,
-0.022039640694856644,
-0.08102021366357803,
-0.0017433176981285214,
-0.003816783893853426,
-0.014954832382500172,
-0.002239655703306198,
-0.018613234162330627,
0.058855652809143066,
0.007794180419296026,
-0.062103599309921265,
-0.031248103827238083,
0.025876499712467194,
-0.013295167125761509,
0.070134237408638,
-0.03258654475212097,
-0.00405547209084034,
-0.013839466497302055,
0.028107233345508575,
-0.005804366897791624,
0.07923562824726105,
-0.017087412998080254,
0.03940366208553314,
0.038475677371025085,
0.018077857792377472,
-0.025412507355213165,
-0.004965611267834902,
-0.034728046506643295,
0.07309665530920029,
-0.050289638340473175,
-0.031658560037612915,
0.019523372873663902,
-0.019041534513235092,
0.08530322462320328,
-0.04425773769617081,
-0.011251816526055336,
0.053002212196588516,
-0.011938882060348988,
-0.012545641511678696,
-0.014919140376150608,
0.016409270465373993,
-0.02478790283203125,
0.033050537109375,
0.04611370712518692,
0.05018256604671478,
-0.003836860414594412,
-0.04061718285083771,
0.08680227398872375,
-0.022039640694856644,
-0.04332975298166275,
-0.029088756069540977,
0.021022425964474678,
-0.025822961702942848,
-0.05310928449034691,
-0.02496636100113392,
0.03429974615573883,
0.04407928138971329,
0.018666772171854973,
0.0039595505222678185,
-0.048861969262361526,
-0.017149873077869415,
-0.028589071705937386,
-0.04871920496225357,
-0.0021738491486757994,
-0.03228316456079483,
0.03679816797375679,
-0.025019899010658264,
0.018470467999577522,
0.021557802334427834,
0.013669930398464203,
0.028945988044142723,
-0.035870183259248734,
-0.019077226519584656,
-0.0025118051562458277,
0.012947172857820988,
0.0031408716458827257,
0.014838834293186665,
-0.016025584191083908,
-0.04964718967676163,
-0.01996951922774315,
0.08159128576517105,
0.07830764353275299,
0.008994314819574356,
0.012643793597817421,
-0.0011454812483862042,
0.015070830471813679,
-0.003691862802952528,
0.04704169183969498,
0.0334431454539299,
0.04418635368347168,
0.009431538172066212,
0.04771983623504639,
0.03340745344758034,
0.0011967881582677364,
0.026001421734690666,
-0.009342309087514877,
0.021682722494006157,
-0.03024873696267605,
0.052038535475730896,
0.056642767041921616,
-0.01195672806352377,
-0.0008047368610277772,
0.07381048798561096,
0.06374541670084,
-0.05560770630836487,
0.05382312089204788,
-0.0564643070101738,
-0.046149399131536484,
0.0072052669711411,
0.03562033921480179,
-0.021825488656759262,
-0.013081016950309277,
-0.027732469141483307,
0.033086229115724564,
-0.05260960012674332,
0.01566866785287857,
-0.020719045773148537,
0.011644424870610237,
0.06852810829877853,
0.0004974533803761005,
-0.010305985808372498,
-0.05410865321755409,
-0.05228837579488754,
0.01834554597735405,
-0.0507536306977272,
-0.023663613945245743,
-0.030712729319930077,
0.06463771313428879,
-0.010404137894511223,
-0.03247946873307228,
-0.0077138738706707954,
-0.04133101552724838,
-0.027429090812802315,
-0.02544819936156273,
0.004983456805348396,
-0.02057627961039543,
-0.04775552824139595,
-0.04026026651263237,
-0.005260067991912365,
0.013553932309150696,
-0.045292798429727554,
-0.07359633594751358,
-0.0023690382950007915,
0.044721730053424835,
-0.03190840035676956,
0.03288992494344711,
0.0035290191881358624,
0.05428711324930191,
0.014687144197523594,
0.004849613178521395,
0.01825631782412529,
0.018577542155981064,
0.008392016403377056,
-0.018809538334608078,
-0.01316132303327322,
-0.04465034604072571,
0.007816487923264503,
0.034246210008859634,
0.0009430422796867788,
-0.012144109234213829,
-0.06253190338611603,
0.0065226624719798565,
-0.005648215301334858,
-0.06395956873893738,
0.018238471820950508,
0.005795443896204233,
0.015686511993408203,
0.058463044464588165,
0.034335438162088394,
0.008905084803700447,
-0.020611971616744995,
0.01066290307790041,
0.02143288031220436,
0.010636134073138237,
0.006870656739920378,
0.02573373354971409,
0.0451500304043293,
-0.06535154581069946,
0.04450758174061775,
0.027607548981904984,
-0.061925143003463745,
0.006424510385841131,
-0.046542007476091385,
-0.02623341791331768,
-0.004225007724016905,
-0.03397852182388306,
-0.024573752656579018,
-0.0019463143544271588,
0.02526974119246006,
0.023699305951595306,
-0.035013582557439804,
-0.001003829762339592,
0.0048897662200033665,
0.03037365712225437,
-0.0262155719101429,
0.04743430018424988,
0.07773657888174057,
-0.01325947605073452,
0.02901737205684185,
-0.011617655865848064,
-0.03092687949538231,
0.023663613945245743,
0.0483979769051075,
0.029035218060016632,
-0.026269109919667244,
-0.014499763026833534,
-0.020344283431768417,
-0.001352939405478537,
-0.01939845271408558,
-0.004693461582064629,
-0.07466708868741989,
-0.0415094755589962,
0.03603079542517662,
0.042794376611709595,
-0.04575679078698158,
0.016427116468548775,
-0.01315240003168583,
-0.06849242001771927,
-0.02121873013675213,
-0.04026026651263237,
-0.03979627415537834,
0.01845262199640274,
-0.021647030487656593,
-0.01941629871726036,
0.0005155781400389969,
-0.015168982557952404,
-0.025216203182935715,
0.028945988044142723,
-0.045399874448776245,
0.012643793597817421,
0.023966992273926735,
-0.028071541339159012,
0.0011142509756609797,
0.005536678712815046,
-0.01694464683532715,
-0.047898292541503906,
-0.06110423058271408,
-0.00202439003624022,
0.003575864713639021,
0.05200284346938133,
-0.029249368235468864,
0.00699111633002758,
0.0023868840653449297,
-0.0644235610961914,
0.0028107233811169863,
-0.00299141276627779,
0.006121130660176277,
0.061354074627161026,
0.04093840718269348,
0.020433511584997177,
0.046149399131536484,
0.026179879903793335,
0.06103285029530525,
0.043472521007061005,
0.03410344198346138,
-0.020308591425418854,
0.028125079348683357,
-0.019826753064990044,
-0.03296130895614624,
-0.02710786461830139,
0.005875749979168177,
0.042794376611709595,
0.04611370712518692,
0.03897536173462868,
-0.03801168501377106,
0.035495419055223465,
-0.03283638507127762,
-0.005197607446461916,
-0.0016340117435902357,
-0.01882738433778286,
-0.0374763123691082,
-0.04921888932585716,
-0.06945609301328659,
0.07602337002754211,
-0.03340745344758034,
0.02441313862800598,
0.006085439119488001,
-0.028571225702762604,
-0.02651895210146904
] |
10,030
|
torch.nn.modules.module
|
_slow_forward
| null |
def _slow_forward(self, *input, **kwargs):
tracing_state = torch._C._get_tracing_state()
if not tracing_state or isinstance(self.forward, torch._C.ScriptMethod):
return self.forward(*input, **kwargs)
recording_scopes = torch.jit._trace._trace_module_map is not None
if recording_scopes:
# type ignore was added because at this point one knows that
# torch.jit._trace._trace_module_map is not Optional and has type Dict[Any, Any]
name = torch.jit._trace._trace_module_map[self] if self in torch.jit._trace._trace_module_map else None # type: ignore[index, operator] # noqa: B950
if name:
tracing_state.push_scope(name)
else:
recording_scopes = False
try:
result = self.forward(*input, **kwargs)
finally:
if recording_scopes:
tracing_state.pop_scope()
return result
|
(self, *input, **kwargs)
|
[
-0.09300927817821503,
-0.03584207221865654,
-0.06779374927282333,
0.03535577282309532,
-0.05529405176639557,
-0.004606336820870638,
-0.047801434993743896,
0.04077710956335068,
0.011860303580760956,
-0.07571862637996674,
0.002456262707710266,
0.003500905819237232,
-0.03425709530711174,
0.001429630327038467,
0.006303882226347923,
0.02989841252565384,
-0.01916380040347576,
0.02989841252565384,
-0.030114544555544853,
-0.06664104014635086,
0.026260171085596085,
0.0048269727267324924,
0.000978227355517447,
-0.01032035518437624,
-0.005646476987749338,
0.02703464776277542,
0.014769094996154308,
0.011392015032470226,
-0.013976606540381908,
0.008348140865564346,
-0.002771456725895405,
0.03243797644972801,
-0.05064718797802925,
0.009446817450225353,
0.024278951808810234,
0.0016919169574975967,
-0.07125187665224075,
-0.015561583451926708,
-0.046216461807489395,
-0.026458293199539185,
-0.019794190302491188,
-0.07125187665224075,
-0.012526714242994785,
0.03955235704779625,
-0.04023677855730057,
-0.03366272896528244,
-0.04686485975980759,
0.05399725213646889,
0.03632837161421776,
-0.03292427584528923,
0.0010525231482461095,
-0.038939978927373886,
0.003991708159446716,
0.007132392376661301,
-0.0004356432764325291,
-0.012238536961376667,
0.024098839610815048,
-0.024819284677505493,
-0.016840370371937752,
-0.0356619618833065,
0.04942243546247482,
0.003924166318029165,
0.04808961600065231,
0.05504189431667328,
0.04156959801912308,
-0.00748811149969697,
0.025269560515880585,
0.016471143811941147,
-0.005178188905119896,
-0.008231068961322308,
-0.046612706035375595,
-0.0016119927167892456,
0.026710448786616325,
0.026080060750246048,
-0.016011860221624374,
-0.020424578338861465,
0.008240073919296265,
-0.009987150318920612,
-0.02618812769651413,
0.0072449613362550735,
-0.0026521331164985895,
-0.024585139006376266,
-0.08234670758247375,
-0.02010037750005722,
-0.10770632326602936,
-0.03984053432941437,
0.02188347652554512,
-0.028385480865836143,
-0.0660286620259285,
-0.028133325278759003,
-0.05558222904801369,
0.023090219125151634,
-0.031753554940223694,
0.048341769725084305,
0.028799735009670258,
-0.018254240974783897,
-0.006006699055433273,
-0.03771522641181946,
-0.06858623772859573,
0.03793136030435562,
-0.016363076865673065,
0.1329939067363739,
-0.004835978150367737,
-0.00524573028087616,
0.05648278445005417,
-0.018893634900450706,
-0.012490691617131233,
-0.02123507671058178,
0.018551424145698547,
0.004872000310570002,
-0.00875789299607277,
-0.04142551124095917,
0.0011498956009745598,
-0.03627434000372887,
0.028439514338970184,
-0.020370544865727425,
-0.02064071036875248,
-0.007407061289995909,
-0.010428422130644321,
0.06491197645664215,
-0.005763549357652664,
-0.02599000558257103,
-0.01613793708384037,
-0.08126604557037354,
-0.03508560732007027,
0.07636702805757523,
0.03389687463641167,
-0.012031408958137035,
0.03323046490550041,
-0.051259566098451614,
-0.020568666979670525,
0.006231837440282106,
0.016624238342046738,
0.0838596448302269,
0.006047224160283804,
0.07579067349433899,
-0.03706682473421097,
0.03182559832930565,
-0.04600032791495323,
0.027304815128445625,
-0.00415831059217453,
-0.0274669136852026,
0.04643259197473526,
0.015975838527083397,
0.05089934542775154,
0.029718300327658653,
0.029718300327658653,
0.007348525337874889,
0.0026476304046809673,
-0.010284333489835262,
0.04045291244983673,
-0.048846080899238586,
-0.025809893384575844,
0.028547579422593117,
-0.028673658147454262,
0.04275833070278168,
-0.05608654022216797,
0.013211135752499104,
-0.01990225538611412,
0.005164680536836386,
-0.0298443790525198,
-0.06203019991517067,
0.0021770906168967485,
-0.038795892149209976,
0.014543956145644188,
-0.02672846056520939,
0.01905573531985283,
0.009392783977091312,
-0.029430123046040535,
0.08177035301923752,
0.00017631170339882374,
0.04376695305109024,
0.10482455044984818,
0.03548185154795647,
-0.021307121962308884,
0.010950743220746517,
-0.0014937948435544968,
0.006011202000081539,
-0.012193509377539158,
0.01871352456510067,
-0.004921530839055777,
-0.028133325278759003,
-0.05356498435139656,
-0.09070385992527008,
0.007100872695446014,
-0.011527098715305328,
0.005614957772195339,
-0.0069702924229204655,
0.009041568264365196,
0.06865827739238739,
0.02910592406988144,
-0.01721860282123089,
0.11325374245643616,
-0.07881653308868408,
0.024188896641135216,
0.00277821091003716,
-0.00700631458312273,
0.026692437008023262,
0.049278344959020615,
0.06321892887353897,
-0.015912799164652824,
0.040921200066804886,
0.040020644664764404,
0.025413649156689644,
-0.08349941670894623,
0.04322661831974983,
0.004246114753186703,
0.0660286620259285,
-0.03600417077541351,
0.002672395668923855,
-0.04045291244983673,
-0.03620229288935661,
0.029934434220194817,
0.038435667753219604,
-0.031501397490501404,
0.025611771270632744,
-0.011355993337929249,
0.01401262916624546,
0.08436395227909088,
0.01777694746851921,
0.07629498094320297,
-0.03688671439886093,
-0.10115028917789459,
-0.03757113590836525,
0.0046783811412751675,
0.002121931640431285,
-0.0009523364715278149,
0.033482618629932404,
0.01322014071047306,
-0.06552434712648392,
0.03236593306064606,
0.04048893228173256,
-0.023738618940114975,
0.053781118243932724,
0.0058220853097736835,
0.009734994731843472,
-0.014399867504835129,
-0.0018416340462863445,
-0.01945197954773903,
-0.05738333612680435,
0.015498544089496136,
0.04931436851620674,
0.0016930425772443414,
0.010401405394077301,
0.006227334961295128,
-0.046108394861221313,
0.014733072370290756,
0.001999231055378914,
0.015966832637786865,
0.05904035642743111,
-0.014021635055541992,
0.019578056409955025,
-0.061417821794748306,
0.05053912103176117,
-0.054681673645973206,
-0.008123002015054226,
0.015444510616362095,
-0.01752479188144207,
-0.028205368667840958,
-0.009419800713658333,
-0.03178957477211952,
-0.03818351402878761,
0.00875789299607277,
-0.013427268713712692,
-0.010707593522965908,
-0.0024607654195278883,
-0.012328592129051685,
-0.06649695336818695,
0.019037723541259766,
0.05288056284189224,
0.0052322219125926495,
-0.02678249217569828,
-0.027881169691681862,
0.04038086533546448,
-0.005596946459263563,
-0.026674427092075348,
-0.009455823339521885,
0.014516939409077168,
-0.033194441348314285,
0.0031249243766069412,
0.049278344959020615,
-0.03937224671244621,
-0.05882422626018524,
-0.08393168449401855,
-0.021649332717061043,
0.020172422751784325,
0.050070833414793015,
0.061705999076366425,
0.04337070882320404,
-0.021901486441493034,
0.07953698188066483,
0.02544967271387577,
0.04247015342116356,
-0.021991543471813202,
-0.01995628885924816,
-0.00661007035523653,
-0.07471000403165817,
0.020964911207556725,
0.04232606664299965,
-0.0011560869170352817,
-0.009608916938304901,
-0.06293075531721115,
-0.05014287680387497,
-0.017551809549331665,
0.057599470019340515,
0.0020588929764926434,
-0.024873318150639534,
0.022513864561915398,
-0.052556365728378296,
-0.004140299744904041,
-0.013058041222393513,
0.01467903982847929,
-0.04527988284826279,
-0.05079127848148346,
0.0033815824426710606,
-0.011049804277718067,
0.0009478337015025318,
0.00697929784655571,
-0.010203283280134201,
0.03672461584210396,
-0.03668859228491783,
-0.01094173826277256,
0.03187963366508484,
0.020658722147345543,
-0.04513579607009888,
-0.006366920657455921,
0.03589610382914543,
0.004817966837435961,
0.0006309510208666325,
-0.0697389468550682,
-0.00875789299607277,
0.02078479900956154,
0.019794190302491188,
-0.013571357354521751,
-0.025269560515880585,
-0.011689198203384876,
0.010860688053071499,
0.042145952582359314,
0.03222184255719185,
0.02440502867102623,
0.004844983574002981,
0.005759046413004398,
-0.007578166667371988,
-0.0076231942512094975,
0.04527988284826279,
0.004138048272579908,
0.020928887650370598,
0.0672173947095871,
0.08919092267751694,
-0.002025122055783868,
0.011148865334689617,
-0.04985469952225685,
-0.01121190469712019,
0.07247663289308548,
0.01007720548659563,
0.01378749031573534,
0.0018528910586610436,
-0.021127009764313698,
-0.002397726522758603,
-0.042938441038131714,
0.03483344987034798,
0.019433967769145966,
-0.02698061428964138,
0.04708099365234375,
0.01738070324063301,
-0.031159188598394394,
0.015057272277772427,
-0.03414902836084366,
-0.00669562304392457,
0.045315906405448914,
-0.036706604063510895,
-0.03580604866147041,
0.011130854487419128,
0.054537583142519,
-0.06260655075311661,
0.045820217579603195,
0.03485146164894104,
0.0089650209993124,
0.012940969318151474,
0.014273789711296558,
0.03114117681980133,
-0.03926417976617813,
-0.05064718797802925,
-0.04772939160466194,
0.07305298745632172,
0.027701059356331825,
0.04816165938973427,
-0.025881938636302948,
0.06379528343677521,
-0.026422271504998207,
0.002958321711048484,
-0.01821821928024292,
-0.013508318923413754,
-0.032546043395996094,
-0.009091098792850971,
0.03479743003845215,
0.015849759802222252,
0.054033275693655014,
-0.011301959864795208,
-0.03530173748731613,
-0.015669649466872215,
-0.005322277545928955,
0.01086969394236803,
0.024675196036696434,
-0.01905573531985283,
0.049242325127124786,
0.0362563282251358,
0.03204173222184181,
0.029195979237556458,
0.004741420038044453,
-0.03344659507274628,
0.00784833263605833,
-0.07067552208900452,
0.01378749031573534,
-0.0035144141875207424,
0.028187358751893044,
0.020316511392593384,
-0.01564263366162777,
-0.038543734699487686,
0.06512811034917831,
0.03980451077222824,
0.015453516505658627,
-0.011644170619547367,
0.004642358981072903,
0.003210477065294981,
-0.005434846971184015,
-0.04726110398769379,
0.039336223155260086,
0.001469029695726931,
0.05075525492429733,
-0.025413649156689644,
-0.006853220518678427,
0.00172005919739604,
0.006677612196654081,
0.03371676430106163,
0.01104079931974411,
-0.005043105687946081,
0.010554499924182892,
0.02723276987671852,
0.05623062700033188,
0.007897863164544106,
-0.022838063538074493,
-0.01504826731979847,
-0.03198769688606262,
0.0286556463688612,
-0.010806654579937458,
-0.012751853093504906,
0.026602381840348244,
-0.019992312416434288,
-0.013868540525436401,
0.041209377348423004,
0.01091472152620554,
0.029664266854524612,
-0.03832760080695152,
-0.008501235395669937,
-0.03184361010789871,
-0.07960902154445648,
0.032888252288103104,
0.03706682473421097,
0.033680740743875504,
-0.01856943592429161,
0.036166273057460785,
0.00987908337265253,
-0.011500081978738308,
-0.0036157267168164253,
0.05208807811141014,
0.020514633506536484,
-0.037355002015829086,
-0.04949447885155678,
-0.011770248413085938,
-0.0048539889976382256,
-0.021108999848365784,
-0.008127504959702492,
-0.05677096173167229,
0.016507165506482124,
0.019524022936820984,
-0.02910592406988144,
0.02604403905570507,
0.06134577840566635,
-0.008627313189208508,
0.004187578801065683,
-0.07319707423448563,
0.033788807690143585,
0.03510361909866333,
0.003953434526920319,
0.04981867969036102,
0.02550370618700981,
0.04762132465839386,
0.10194277763366699,
0.02703464776277542,
-0.007519630715250969,
-0.01497622299939394,
0.06174202263355255,
-0.020082367584109306,
-0.0274669136852026,
-0.018146174028515816,
-0.012742847204208374,
0.0041335453279316425,
-0.006326396018266678,
0.05846400186419487,
-0.0027061665896326303,
-0.005849102046340704,
-0.0001421891211066395,
0.0008071220363490283,
0.04020075500011444,
0.07557453960180283,
0.022315742447972298,
0.012742847204208374,
-0.04016473516821861,
0.03389687463641167,
-0.015345449559390545,
0.01728164218366146,
-0.005714018829166889,
-0.015705671161413193,
-0.00787084735929966,
-0.023594530299305916,
-0.03796738013625145,
0.027196748182177544,
-0.031807586550712585,
-0.08054560422897339,
0.020262477919459343,
0.02208159863948822,
-0.031069133430719376,
-0.03441919758915901,
0.023882707580924034,
0.026422271504998207,
0.025071438401937485,
0.051763877272605896,
0.005862610414624214,
-0.04445137456059456,
0.008969523943960667,
0.014994233846664429,
-0.009617922827601433,
0.0008285102085210383,
0.056410737335681915,
-0.021865464746952057,
-0.006204821169376373,
-0.014489922672510147,
-0.04236208647489548,
-0.027989236637949944,
-0.020010322332382202,
-0.03623831644654274,
-0.04862994700670242,
0.00489001115784049,
-0.002357201650738716,
-0.06750556826591492,
-0.06847816705703735,
0.04203788563609123,
-0.06397539377212524,
-0.0012742846738547087,
-0.05990489199757576,
0.002938059391453862,
0.01738070324063301,
0.04654065892100334,
0.03456328436732292,
0.045459993183612823,
0.011896326206624508,
0.04693690314888954,
-0.025323593989014626,
0.027809124439954758,
0.020820822566747665,
-0.01950601115822792,
0.004259623121470213,
-0.03243797644972801,
-0.06123771145939827,
-0.029520178213715553,
0.041209377348423004,
0.05115149915218353,
-0.052700452506542206,
-0.02193750999867916,
0.0549338273704052,
0.008271593600511551,
-0.00997814442962408,
0.04376695305109024,
0.027755092829465866,
0.015075283125042915,
0.043730929493904114,
-0.04326264187693596,
0.053745098412036896,
-0.027070671319961548,
0.04935039207339287,
-0.007726758252829313,
-0.05543813854455948,
0.021901486441493034,
0.0026588873006403446,
-0.01751578599214554,
-0.0364544503390789,
0.02287408523261547,
0.015732688829302788,
-0.04034484550356865,
-0.045568060129880905,
-0.042145952582359314,
-0.0030303660314530134,
-0.006074240431189537,
0.025629783049225807,
0.04585623741149902,
-0.05370907485485077,
0.02802525833249092,
0.07478205114603043,
0.02292811870574951,
-0.042254019528627396,
0.01846136897802353,
0.0023121738340705633,
-0.008208555169403553,
-0.057455383241176605,
0.008933501318097115,
-0.07528635859489441,
0.018821589648723602,
0.015255394391715527,
0.0006354538490995765,
0.016101915389299393,
-0.021613309159874916,
0.00017434173787478358,
-0.0077402666211128235,
-0.057455383241176605,
-0.02024446614086628,
0.00968096125870943,
0.03494151681661606,
0.06912656873464584,
0.020910877734422684,
-0.005241227801889181,
-0.03706682473421097,
-0.019379934296011925,
0.03202372044324875,
0.025431660935282707,
0.012292569503188133,
0.029177967458963394,
-0.06736148148775101,
0.04236208647489548,
0.01081566046923399,
-0.05756344646215439,
0.015678655356168747,
0.008050957694649696,
0.04034484550356865,
-0.007330514024943113,
-0.014291801489889622,
0.002436000155285001,
0.05107945576310158,
-0.04020075500011444,
-0.050575144588947296,
-0.0561225600540638,
0.014841139316558838,
-0.013535335659980774,
-0.025413649156689644,
-0.012940969318151474,
-0.04895414784550667,
0.002348195994272828,
-0.012895941734313965,
0.05644676089286804,
0.017353687435388565,
0.0077222553081810474,
0.04084915667772293,
0.0004176321963313967,
0.03267211839556694,
0.046756792813539505,
0.002685904037207365,
0.003392839338630438,
0.03405897319316864,
0.05623062700033188,
-0.069342702627182,
0.02038855478167534,
0.020262477919459343,
0.009217175655066967,
-0.022207675501704216,
-0.01618296653032303,
-0.0037733237259089947,
-0.005214211065322161,
-0.031501397490501404,
0.016813354566693306,
-0.043694909662008286,
-0.05738333612680435,
-0.006569545716047287,
-0.050863321870565414,
0.026944592595100403,
0.010428422130644321,
-0.01777694746851921,
0.04693690314888954,
-0.011770248413085938,
-0.02168535441160202,
-0.041065286844968796,
-0.04920630156993866,
0.014796111732721329,
-0.001341826282441616,
0.04567612707614899,
0.0026206139009445906,
0.03247399628162384,
0.025377627462148666,
0.00854176003485918,
-0.022603919729590416,
-0.0278631579130888,
-0.018353302031755447,
-0.02589995041489601,
-0.012787874788045883,
0.02109098806977272,
0.06084146723151207,
-0.039732467383146286,
-0.015822743996977806,
-0.09430607408285141,
0.03099708817899227,
-0.03034868836402893,
0.010761626996099949,
-0.02445906214416027,
-0.005714018829166889,
-0.034076984971761703,
0.00819054339081049,
0.023738618940114975,
0.016939431428909302,
0.03362670913338661,
0.039336223155260086,
-0.0014161220751702785,
0.006335401441901922,
-0.10107824206352234,
0.03034868836402893,
0.08155421912670135,
0.04203788563609123,
-0.032347921282052994,
-0.02137916535139084,
0.023432429879903793,
-0.005898632574826479,
0.022892097011208534,
0.018353302031755447,
0.02222568728029728,
-0.0036742626689374447,
0.03584207221865654,
-0.02148723229765892,
-0.050575144588947296,
-0.017560813575983047,
0.006785678677260876,
0.01623699814081192,
0.03270814195275307,
-0.02307220734655857,
-0.013445279560983181,
-0.017704902216792107,
-0.023144252598285675,
0.04005666822195053,
-0.06321892887353897,
-0.0014183734310790896,
0.021072976291179657,
0.017749929800629616,
-0.06437163800001144,
-0.026260171085596085,
0.021325131878256798,
-0.007114381063729525,
-0.0012551479740068316,
0.04736917093396187,
0.009716983884572983,
0.03414902836084366,
-0.06350710988044739,
0.012373619712889194,
-0.07283685356378555,
0.09200065582990646,
0.0179300419986248,
-0.016813354566693306,
0.009091098792850971,
0.10640952736139297,
0.005218713544309139,
-0.04419921711087227,
0.021253088489174843,
-0.027809124439954758,
-0.07175619155168533,
-0.03474339470267296,
-0.026890559121966362,
0.054429519921541214,
-0.018749546259641647,
-0.03263609856367111,
-0.003392839338630438,
0.03341057524085045,
0.020514633506536484
] |
10,031
|
sentence_transformers.SentenceTransformer
|
_text_length
|
Help function to get the length for the input text. Text can be either
a list of ints (which means a single text as input), or a tuple of list of ints
(representing several text inputs to the model).
|
def _text_length(self, text: Union[List[int], List[List[int]]]):
"""
Help function to get the length for the input text. Text can be either
a list of ints (which means a single text as input), or a tuple of list of ints
(representing several text inputs to the model).
"""
if isinstance(text, dict): # {key: value} case
return len(next(iter(text.values())))
elif not hasattr(text, "__len__"): # Object has no len() method
return 1
elif len(text) == 0 or isinstance(text[0], int): # Empty string or list of ints
return len(text)
else:
return sum([len(t) for t in text]) # Sum of length of individual strings
|
(self, text: Union[List[int], List[List[int]]])
|
[
0.013386097736656666,
-0.06058495491743088,
0.027620675042271614,
0.03236854076385498,
0.008083108812570572,
0.00954989343881607,
0.020453741773962975,
-0.01537189818918705,
0.09221334010362625,
0.0020997580140829086,
0.012636910192668438,
0.0009782322449609637,
-0.003163740737363696,
-0.05361660197377205,
0.023703232407569885,
0.032801806926727295,
0.007261709775775671,
-0.022186802700161934,
0.011905774474143982,
-0.016310639679431915,
0.001624745549634099,
-0.004734328016638756,
0.027963675558567047,
0.05596345663070679,
-0.012122406624257565,
-0.03978821262717247,
0.06798657774925232,
-0.019749684259295464,
0.03588882461190224,
0.0028455613646656275,
-0.01842280849814415,
-0.0017251638928428292,
0.00911662820726633,
0.02937178872525692,
-0.0147400526329875,
-0.010371292009949684,
-0.024660026654601097,
-0.03227827697992325,
0.02881215512752533,
-0.004106995649635792,
-0.05722714960575104,
-0.010741373524069786,
0.04953668639063835,
0.03715251386165619,
-0.023992076516151428,
-0.013025043532252312,
-0.024984976276755333,
-0.007451263722032309,
-0.08145391196012497,
-0.045853931456804276,
-0.015453135594725609,
0.01951499842107296,
-0.023703232407569885,
-0.007591172121465206,
-0.032350488007068634,
0.029498158022761345,
-0.004824591800570488,
0.041340749710798264,
-0.022186802700161934,
-0.04177401214838028,
-0.014117233455181122,
0.01448731403797865,
0.033307284116744995,
-0.024154551327228546,
-0.017059829086065292,
-0.022981123998761177,
0.027349883690476418,
0.02317970246076584,
0.03318091481924057,
-0.011111454106867313,
0.0236310213804245,
0.017493093386292458,
-0.02256591059267521,
0.03133953735232353,
0.029841160401701927,
-0.0038881064392626286,
0.031032640486955643,
0.05126974731683731,
0.07972084730863571,
-0.022999176755547523,
0.04440971091389656,
0.06715615093708038,
0.03430018201470375,
-0.014496340416371822,
0.05166690796613693,
-0.026663878932595253,
-0.033361442387104034,
0.03511255607008934,
0.015353845432400703,
0.01110242772847414,
-0.032910123467445374,
0.03191722556948662,
0.037874624133110046,
0.023739337921142578,
-0.06668677926063538,
0.008791678585112095,
-0.039607685059309006,
-0.10138412564992905,
-0.012320986948907375,
-0.01940668374300003,
-0.01646408811211586,
0.07452166080474854,
0.017926359549164772,
-0.016364797949790955,
-0.012618857435882092,
-0.03614156320691109,
-0.012537620030343533,
-0.05423039570450783,
0.020309319719672203,
0.03597908839583397,
0.0266819316893816,
-0.016247455030679703,
0.06509813666343689,
-0.02012879215180874,
0.008818757720291615,
0.01115658599883318,
-0.018991470336914062,
-0.035040345042943954,
-0.022836701944470406,
-0.04430139437317848,
0.025652926415205002,
0.02780120074748993,
-0.02368517965078354,
-0.020002422854304314,
0.057588204741477966,
0.06379834562540054,
-0.03343365341424942,
-0.04892289265990257,
0.0007108261925168335,
0.021464694291353226,
0.047695308923721313,
0.012483461759984493,
0.042857177555561066,
0.05321944132447243,
0.02855941653251648,
0.010091475211083889,
0.0016010513063520193,
0.01875678449869156,
-0.015489241108298302,
0.02321580797433853,
0.038091257214546204,
0.05412207916378975,
0.04538455978035927,
0.008417084813117981,
-0.06683120131492615,
0.03314480930566788,
-0.0026650340296328068,
-0.007460290100425482,
0.014559525065124035,
0.01290770061314106,
-0.02967868559062481,
-0.02169938012957573,
0.024371182546019554,
0.02337828278541565,
0.018919259309768677,
0.015642689540982246,
-0.005397765897214413,
-0.05921294912695885,
0.03186306729912758,
-0.03502229228615761,
0.008760086260735989,
-0.0005810721777379513,
0.014866421930491924,
0.029967529699206352,
-0.026609720662236214,
0.047586992383003235,
0.04787583649158478,
-0.03726083040237427,
-0.018133966252207756,
0.030599374324083328,
0.06072937697172165,
-0.0017499863170087337,
0.002762067364528775,
-0.004495129454880953,
0.0033104191534221172,
0.040871378034353256,
-0.019370578229427338,
0.011770378798246384,
0.019749684259295464,
-0.01110242772847414,
-0.053941551595926285,
-0.0335419699549675,
-0.03545555844902992,
0.007460290100425482,
0.031231220811605453,
0.047695308923721313,
-0.011887721717357635,
0.03769409656524658,
-0.030924323946237564,
-0.01336804497987032,
-0.04802025854587555,
-0.06123485416173935,
-0.011833563446998596,
-0.019677473232150078,
-0.025111345574259758,
0.013747152872383595,
0.002683086786419153,
-0.0034728937316685915,
-0.04386812821030617,
-0.021356377750635147,
-0.06636182963848114,
-0.0726802870631218,
-0.03374055027961731,
0.037477463483810425,
-0.01623842865228653,
-0.01909978687763214,
-0.011996038258075714,
0.07340238988399506,
-0.05859915539622307,
-0.062318019568920135,
0.0017804503440856934,
-0.0289565771818161,
0.003707579104229808,
0.05953789874911308,
0.04090748354792595,
-0.04661214351654053,
-0.0058310311287641525,
-0.030779901891946793,
-0.007085695862770081,
-0.039716001600027084,
0.1072332039475441,
0.059682320803403854,
0.02245759405195713,
-0.007816831581294537,
0.04874236509203911,
-0.07260807603597641,
-0.014523419551551342,
0.08766404539346695,
0.031086798757314682,
0.052316807210445404,
0.04206285625696182,
0.007072156295180321,
0.020435689017176628,
0.06170422583818436,
0.009703341871500015,
-0.02500302903354168,
0.01991215907037258,
-0.08094843477010727,
-0.004034784622490406,
-0.0736912339925766,
-0.06394276022911072,
0.0059935059398412704,
-0.04751478135585785,
-0.0003559772449079901,
-0.07805999368429184,
0.031032640486955643,
-0.02509329281747341,
0.02103142812848091,
-0.0015942815225571394,
-0.05484418943524361,
-0.04578172042965889,
0.042857177555561066,
-0.028595522046089172,
-0.020905058830976486,
0.003908415790647268,
0.01047058217227459,
0.02077868953347206,
-0.0038790800608694553,
0.015489241108298302,
-0.00894512701779604,
0.055566299706697464,
-0.007527987938374281,
-0.03343365341424942,
0.0685642659664154,
-0.005370686762034893,
-0.045456770807504654,
0.018179098144173622,
0.02262006886303425,
-0.08405350148677826,
0.022114591673016548,
-0.009748473763465881,
-0.03146590664982796,
0.0007051847060211003,
-0.0441930778324604,
-0.023919865489006042,
0.021518852561712265,
0.05166690796613693,
0.04394033923745155,
-0.0106691624969244,
0.015182344242930412,
-0.008543454110622406,
0.002791403094306588,
-0.04885068163275719,
-0.05849083885550499,
0.012997964397072792,
0.0358346663415432,
0.007338433992117643,
-0.007555066607892513,
-0.05412207916378975,
-0.0009206891409121454,
0.04040200635790825,
-0.031520064920186996,
0.030400793999433517,
0.04527624323964119,
0.022529805079102516,
0.03233243525028229,
0.008092135190963745,
0.0345529206097126,
0.03552776947617531,
-0.051811330020427704,
-0.07870989292860031,
-0.005199185572564602,
0.007776212878525257,
-0.07452166080474854,
-0.03130343183875084,
-0.02530992589890957,
-0.001872970606200397,
-0.026790248230099678,
0.06419549882411957,
-0.004887775983661413,
-0.025490451604127884,
0.009044417180120945,
-0.018043702468276024,
0.07091111689805984,
0.0005455308710224926,
0.04350707679986954,
0.009387418627738953,
0.021879905834794044,
-0.05585514008998871,
0.023847654461860657,
0.015552425757050514,
-0.04249612241983414,
0.033162862062454224,
-0.029407894238829613,
0.023251913487911224,
-0.011201717890799046,
0.0375857800245285,
0.009089549072086811,
0.04607056453824043,
0.010019264183938503,
-0.03931884095072746,
0.00011473354970803484,
0.03794683516025543,
-0.0041273050010204315,
-0.01092190109193325,
-0.016048874706029892,
0.06610909104347229,
0.022024327889084816,
-0.04188232868909836,
-0.0185401514172554,
0.023288019001483917,
-0.03567219153046608,
-0.010587925091385841,
0.07047785073518753,
0.07639914751052856,
0.014108207076787949,
0.03565413877367973,
-0.04069085046648979,
0.0965459942817688,
0.0302383191883564,
-0.010777479037642479,
-0.009405471384525299,
0.03819957375526428,
-0.04289328306913376,
-0.0009584870422258973,
-0.00965820997953415,
0.028487205505371094,
-0.011517641134560108,
0.014667841605842113,
0.021861854940652847,
0.004057350568473339,
-0.019298367202281952,
0.019731631502509117,
0.032910123467445374,
-0.026555564254522324,
-0.02124806120991707,
0.003854257520288229,
-0.004553800914436579,
0.017736805602908134,
0.047731414437294006,
0.021735485643148422,
0.007654356770217419,
-0.0076453303918242455,
-0.036412354558706284,
0.037874624133110046,
0.038993895053863525,
-0.008669822476804256,
0.010560845956206322,
-0.04043811187148094,
-0.0035586440935730934,
-0.1077386811375618,
-0.0020478563383221626,
-0.0028455613646656275,
0.0031163522507995367,
-0.03161032870411873,
0.017772911116480827,
-0.07733789086341858,
-0.06610909104347229,
-0.03262127935886383,
0.04004095122218132,
-0.006607298739254475,
0.01542605645954609,
-0.0012343552662059665,
-0.03099653497338295,
-0.015417030081152916,
0.039716001600027084,
-0.010930927470326424,
-0.0002628928632475436,
0.007446750532835722,
0.033415600657463074,
0.013864495791494846,
-0.038741156458854675,
-0.02595982328057289,
0.08564214408397675,
-0.02262006886303425,
0.05173911899328232,
0.032043591141700745,
0.042857177555561066,
-0.020562058314681053,
0.0115627720952034,
0.03271154314279556,
0.005718201864510775,
0.0220965389162302,
-0.04903120920062065,
-0.036051299422979355,
-0.03819957375526428,
-0.008778139017522335,
0.035599980503320694,
-0.007397105451673269,
0.00018010417988989502,
0.015453135594725609,
0.024876659736037254,
0.03592493012547493,
0.048814576119184494,
0.014017943292856216,
0.0241364985704422,
-0.0038587707094848156,
0.006327481474727392,
0.01895536482334137,
-0.027674833312630653,
-0.04581782594323158,
-0.00981165748089552,
0.0022611042950302362,
-0.05986284837126732,
0.002879410283640027,
0.024605868384242058,
-0.02352270483970642,
-0.032801806926727295,
0.028739944100379944,
-0.054808083921670914,
0.042460016906261444,
0.0411602221429348,
0.033866919577121735,
0.09488514065742493,
0.08455897867679596,
-0.0741606056690216,
-0.004996092524379492,
-0.04325433820486069,
-0.05101700872182846,
-0.03520281985402107,
0.0015435082605108619,
0.014270681887865067,
0.006774286273866892,
0.008886455558240414,
0.03516671434044838,
0.023251913487911224,
-0.0243892353028059,
0.026808300986886024,
0.00011607340275077149,
-0.0024732237216085196,
-0.02520160935819149,
0.055060822516679764,
0.042460016906261444,
-0.039607685059309006,
-0.029100997373461723,
-0.011373219080269337,
-0.0492839477956295,
-0.013711047358810902,
-0.0023355716839432716,
0.05910463258624077,
0.012429303489625454,
0.012627883814275265,
-0.021735485643148422,
-0.001435191952623427,
0.04549287632107735,
0.0017985031008720398,
0.03379470854997635,
0.0012050196528434753,
-0.010272002778947353,
-0.025075240060687065,
0.06831152737140656,
0.0013889317633584142,
0.022349277511239052,
-0.0030915297102183104,
-0.08008190244436264,
0.004937421064823866,
-0.04412086680531502,
-0.03321702033281326,
-0.01468589436262846,
0.009252022951841354,
-0.02612229809165001,
-0.006589245982468128,
0.03099653497338295,
-0.033108703792095184,
-0.04018537327647209,
-0.04635940492153168,
0.03446265682578087,
-0.012402224354445934,
-0.01336804497987032,
0.034336287528276443,
-0.012636910192668438,
0.046828776597976685,
0.05755209922790527,
-0.06473708152770996,
0.00014054331404622644,
0.04213506728410721,
-0.015326766297221184,
-0.031736698001623154,
-0.013467335142195225,
-0.010199791751801968,
-0.1057167798280716,
-0.0027710937429219484,
0.06253465265035629,
0.012032143771648407,
0.026032034307718277,
0.005018658470362425,
0.04599835351109505,
0.011093401350080967,
-0.02942594699561596,
0.0043146018870174885,
-0.039210524410009384,
-0.002906489185988903,
-0.043218232691287994,
-0.06072937697172165,
0.008620177395641804,
0.040113162249326706,
-0.027981728315353394,
-0.043109916150569916,
0.041449062526226044,
0.0370803028345108,
0.0017071111360564828,
0.0307437963783741,
0.00894512701779604,
-0.010994111187756062,
0.0009387418976984918,
-0.03216996043920517,
-0.044084761291742325,
-0.014983764849603176,
0.021627169102430344,
0.10593341290950775,
-0.019388630986213684,
-0.02094116434454918,
-0.023992076516151428,
-0.0335419699549675,
0.009098575450479984,
0.039716001600027084,
0.02077868953347206,
0.00023454443726222962,
-0.030364688485860825,
0.026555564254522324,
-0.09221334010362625,
-0.02402818202972412,
0.02077868953347206,
0.030418846756219864,
0.0106691624969244,
0.010452529415488243,
0.001212917733937502,
-0.06823931634426117,
0.029588421806693077,
0.016310639679431915,
-0.011391271837055683,
-0.07040563970804214,
-0.025327978655695915,
0.0005726100062020123,
0.00929715484380722,
0.017014697194099426,
-0.030527163296937943,
0.021518852561712265,
-0.04177401214838028,
-0.00648092944175005,
0.007433210965245962,
0.003951291088014841,
-0.032242171466350555,
-0.035238925367593765,
0.000926894776057452,
-0.0416656956076622,
-0.06672288477420807,
0.007293302100151777,
0.04173790663480759,
0.000010524881872697733,
-0.03408355265855789,
0.07704904675483704,
0.03892168402671814,
0.010660136118531227,
0.057588204741477966,
0.0015514063416048884,
0.009360339492559433,
-0.0151191595941782,
-0.12218086421489716,
0.042857177555561066,
-0.039138313382864,
0.014397051185369492,
-0.011454456485807896,
0.019948264583945274,
0.012032143771648407,
0.03659288212656975,
-0.017231328412890434,
0.024966923519968987,
-0.024172604084014893,
-0.03466123715043068,
-0.028541363775730133,
0.014649788849055767,
-0.0508003793656826,
0.06693951785564423,
0.044445816427469254,
0.02805393934249878,
0.009021851234138012,
0.04874236509203911,
0.022529805079102516,
-0.042207278311252594,
0.006494469009339809,
-0.01143640372902155,
0.03402939438819885,
-0.058563049882650375,
-0.009703341871500015,
-0.02144664153456688,
0.0022825419437140226,
0.047262042760849,
0.070658378303051,
0.022945018485188484,
0.014857395552098751,
0.02402818202972412,
-0.0024145524948835373,
-0.002258847700431943,
-0.0259237177670002,
0.04004095122218132,
-0.056180089712142944,
-0.008335847407579422,
-0.0052036987617611885,
-0.06878089159727097,
0.018720678985118866,
-0.0036308548878878355,
0.07567703723907471,
-0.02520160935819149,
-0.01674390584230423,
0.026555564254522324,
-0.041340749710798264,
-0.036159615963697433,
-0.015074028633534908,
0.003242721315473318,
-0.015155265107750893,
0.016274534165859222,
-0.03881336748600006,
0.0271874088793993,
0.03541945293545723,
0.012456382624804974,
0.009595025330781937,
-0.00897220615297556,
0.01419847086071968,
0.0043665035627782345,
0.0026199021376669407,
0.01539897732436657,
0.03372249752283096,
-0.029028786346316338,
0.006282349582761526,
-0.0005032197805121541,
0.02424481324851513,
-0.08195938915014267,
-0.06109043210744858,
-0.023992076516151428,
-0.02429897151887417,
-0.0016732622170820832,
0.03659288212656975,
-0.019442789256572723,
0.03186306729912758,
-0.051053114235401154,
0.007880016230046749,
0.02962452732026577,
0.07452166080474854,
-0.039607685059309006,
0.022222908213734627,
0.030653532594442368,
0.0538693405687809,
0.053941551595926285,
-0.024461446329951286,
0.03733304142951965,
0.05040321871638298,
-0.013485387898981571,
0.054699767380952835,
-0.02561682090163231,
0.017745831981301308,
-0.058165889233350754,
-0.06415939331054688,
-0.041340749710798264,
0.003511255607008934,
-0.019569156691432,
-0.03397523611783981,
0.008146293461322784,
0.10015653818845749,
0.003912928979843855,
-0.053941551595926285,
-0.06058495491743088,
0.0015807420713827014,
-0.030093898996710777,
-0.007726567797362804,
-0.061162643134593964,
-0.010822610929608345,
0.011264902539551258,
0.034119658172130585,
0.0005816363263875246,
0.01499279122799635,
-0.0017691673710942268,
-0.02317970246076584,
-0.052822284400463104,
-0.05574682354927063,
-0.042351700365543365,
-0.10391150414943695,
0.0013133359607309103,
0.030364688485860825,
-0.04404865577816963,
-0.03211580216884613,
0.05018658563494682,
-0.002572513883933425,
-0.058057572692632675,
-0.004567340482026339,
0.04704540967941284,
0.07141659408807755,
0.053075022995471954,
-0.002200176240876317,
-0.005871649831533432,
0.018630415201187134,
0.025598768144845963,
0.03507645055651665,
0.009974132291972637,
-0.070658378303051,
-0.00029899831861257553,
-0.009965105913579464,
0.012573725543916225,
-0.011896748095750809,
-0.030906271189451218,
-0.004565083887428045,
-0.028433047235012054,
0.006530574522912502,
-0.075171560049057,
-0.04762309789657593,
0.03536529466509819,
0.035293083637952805,
-0.016707800328731537,
-0.026808300986886024,
-0.025598768144845963,
0.019190050661563873,
0.021861854940652847,
-0.034787606447935104,
0.01001023780554533,
0.026555564254522324,
-0.046323299407958984,
0.019533051177859306,
0.0655675083398819,
0.01419847086071968,
-0.04917563125491142,
0.04527624323964119,
0.0133409658446908,
0.018386702984571457,
-0.0802985355257988,
0.029714791104197502,
0.04650382697582245,
-0.0069051687605679035,
-0.055205244570970535,
-0.04307381063699722,
0.04224338382482529,
-0.00017573202785570174,
-0.009874842129647732,
0.05329165235161781,
0.022890860214829445,
0.020255161449313164,
-0.00043241927050985396,
-0.031213168054819107,
0.03171864524483681
] |
10,033
|
torch.nn.modules.module
|
add_module
|
Add a child module to the current module.
The module can be accessed as an attribute using the given name.
Args:
name (str): name of the child module. The child module can be
accessed from this module using the given name
module (Module): child module to be added to the module.
|
def add_module(self, name: str, module: Optional['Module']) -> None:
r"""Add a child module to the current module.
The module can be accessed as an attribute using the given name.
Args:
name (str): name of the child module. The child module can be
accessed from this module using the given name
module (Module): child module to be added to the module.
"""
if not isinstance(module, Module) and module is not None:
raise TypeError(f"{torch.typename(module)} is not a Module subclass")
elif not isinstance(name, str):
raise TypeError(f"module name should be a string. Got {torch.typename(name)}")
elif hasattr(self, name) and name not in self._modules:
raise KeyError(f"attribute '{name}' already exists")
elif '.' in name:
raise KeyError(f"module name can't contain \".\", got: {name}")
elif name == '':
raise KeyError("module name can't be empty string \"\"")
for hook in _global_module_registration_hooks.values():
output = hook(self, name, module)
if output is not None:
module = output
self._modules[name] = module
|
(self, name: str, module: Optional[torch.nn.modules.module.Module]) -> NoneType
|
[
-0.009440754540264606,
0.0040766894817352295,
0.010821418836712837,
0.036755505949258804,
-0.04791276156902313,
-0.01771540753543377,
-0.04347224906086922,
0.0775410607457161,
-0.04578579589724541,
-0.016484005376696587,
0.023042157292366028,
-0.008050762116909027,
0.043584194034338,
0.07433194667100906,
0.026549790054559708,
0.005149502772837877,
0.04832322895526886,
-0.005135509185492992,
-0.051009926944971085,
-0.0429871529340744,
0.037651073187589645,
0.04709182679653168,
0.00753767741844058,
-0.017510173842310905,
-0.049591947346925735,
0.055972855538129807,
0.06235376000404358,
0.053733941167593,
-0.026232611387968063,
-0.046420153230428696,
0.020168885588645935,
-0.09888537228107452,
-0.010121758095920086,
-0.010681486688554287,
-0.02427356131374836,
0.017864668741822243,
-0.05948048457503319,
0.0203741192817688,
-0.06313738226890564,
0.01408650167286396,
0.06410757452249527,
0.010075113736093044,
-0.05653258413076401,
0.020952504128217697,
0.0018529347144067287,
0.02138162963092327,
-0.010737459175288677,
0.01191288884729147,
-0.031717948615550995,
0.008610490709543228,
-0.007192511577159166,
0.009072266519069672,
0.05974169075489044,
0.008344619534909725,
0.011325174011290073,
0.037091344594955444,
0.022146591916680336,
-0.013377511873841286,
0.007117881439626217,
0.027575958520174026,
0.032109759747982025,
-0.030915671959519386,
0.00910958182066679,
-0.04746498167514801,
-0.013284224085509777,
0.0178180243819952,
-0.022426456212997437,
-0.02794911153614521,
0.005275441333651543,
0.036568932235240936,
-0.0447036512196064,
-0.038957107812166214,
0.03371431678533554,
-0.0016663585556671023,
-0.002338032703846693,
0.043770771473646164,
-0.020672639831900597,
0.01287375669926405,
-0.0052474550902843475,
0.027986427769064903,
0.012435302138328552,
0.02806105650961399,
0.0046200924552977085,
0.02552362158894539,
-0.05492802709341049,
-0.004701719619333744,
-0.08866100013256073,
-0.01043893676251173,
0.029609639197587967,
-0.051457710564136505,
-0.038845159113407135,
-0.011138597503304482,
0.00376883870922029,
0.07716790586709976,
0.0605253130197525,
-0.06306274980306625,
0.0045407977886497974,
0.01148376427590847,
-0.02563556656241417,
0.0333784781396389,
-0.03977804258465767,
0.005718559958040714,
0.03050520457327366,
-0.009991154074668884,
-0.00308317132294178,
-0.03285606577992439,
0.008801731280982494,
-0.005895807407796383,
0.022370483726263046,
-0.03031862899661064,
-0.019814390689134598,
-0.003575266106054187,
0.007486368995159864,
-0.016390716657042503,
-0.026493817567825317,
-0.002518778434023261,
0.030878357589244843,
-0.06615991145372391,
0.013601403683423996,
0.029796216636896133,
-0.005387387238442898,
0.009501392021775246,
0.040076564997434616,
-0.038210801780223846,
0.020392775535583496,
-0.019422579556703568,
-0.021792097017169,
-0.031885869801044464,
0.024702686816453934,
-0.08306371420621872,
0.013498786836862564,
0.004641082603484392,
-0.04030045494437218,
0.007845528423786163,
-0.009123574942350388,
-0.03197915852069855,
0.014291735365986824,
0.09993020445108414,
0.009851221926510334,
-0.0002644134219735861,
-0.031885869801044464,
-0.02257571741938591,
0.02619529515504837,
0.06802567839622498,
-0.0183870829641819,
-0.09321346133947372,
-0.04556190222501755,
0.05459218844771385,
-0.06671964377164841,
-0.022538403049111366,
-0.04544995725154877,
0.002593408804386854,
0.01748218759894371,
0.03100896067917347,
-0.04824860021471977,
0.01737957075238228,
0.0024371512699872255,
0.01635340228676796,
-0.012668523006141186,
0.03813616931438446,
0.000349247275153175,
-0.04056166112422943,
0.009618001990020275,
-0.022202564403414726,
-0.014730188995599747,
-0.06287617236375809,
0.028135687112808228,
-0.05515191704034805,
-0.02585945837199688,
0.07709328085184097,
0.06097309663891792,
-0.015299246646463871,
0.03808019682765007,
0.0384720079600811,
-0.01945989578962326,
0.021978674456477165,
-0.00039297607145272195,
-0.021512232720851898,
0.011185241863131523,
-0.026437845081090927,
0.06041336804628372,
0.024516109377145767,
-0.002980554476380348,
0.009291493333876133,
0.010401622392237186,
-0.028900649398565292,
-0.005242790561169386,
0.057502780109643936,
0.023900408297777176,
0.040710922330617905,
-0.0008978978730738163,
-0.015504480339586735,
0.010597527027130127,
-0.03181123733520508,
0.00449648592621088,
0.05679379031062126,
-0.02591543085873127,
-0.012612549588084221,
0.004589774180203676,
0.041867695748806,
-0.04832322895526886,
0.034647196531295776,
-0.020075596868991852,
0.09373587369918823,
-0.019944993779063225,
-0.00964598823338747,
0.012957715429365635,
0.04447976127266884,
0.006329596973955631,
-0.044218555092811584,
-0.012397986836731434,
-0.024422822520136833,
0.02987084537744522,
0.07209303230047226,
-0.011959533207118511,
0.010196387767791748,
-0.004790343344211578,
-0.03546813130378723,
0.05071140453219414,
-0.006684091407805681,
-0.008367941714823246,
0.07910829782485962,
0.01052289642393589,
0.013452142477035522,
-0.014422338455915451,
-0.057054996490478516,
0.001126453629694879,
-0.002523442730307579,
0.010448265820741653,
0.0673166885972023,
0.07798884063959122,
0.05970437824726105,
-0.06742863357067108,
-0.041793063282966614,
0.008358612656593323,
0.0070385863073170185,
0.019441237673163414,
-0.011213228106498718,
-0.054069776087999344,
-0.05130844935774803,
0.03330384939908981,
0.05910733342170715,
-0.026325898244976997,
0.025094496086239815,
-0.055189233273267746,
-0.039180997759103775,
-0.0401885099709034,
0.01912405900657177,
-0.0025024530477821827,
-0.002280893735587597,
0.02664307877421379,
-0.005485339555889368,
-0.018760234117507935,
0.0010990502778440714,
-0.0339568629860878,
-0.0048090009950101376,
-0.03151271492242813,
0.04746498167514801,
-0.001773639814928174,
0.0024045004975050688,
0.017220981419086456,
-0.04533801227807999,
-0.005676580127328634,
-0.010709472931921482,
0.017724737524986267,
-0.04440512880682945,
0.019310634583234787,
0.013732006773352623,
0.013330868445336819,
-0.02653113193809986,
0.05082334950566292,
-0.02738938294351101,
0.04656941443681717,
-0.019441237673163414,
-0.022650348022580147,
-0.047278404235839844,
0.03156869113445282,
-0.01227671280503273,
-0.042800575494766235,
0.04634552448987961,
0.033135928213596344,
-0.06235376000404358,
-0.011922217905521393,
0.029833531007170677,
-0.017444873228669167,
0.0077429115772247314,
-0.003689544042572379,
0.062391072511672974,
0.017556818202137947,
0.03048654831945896,
-0.008811060339212418,
0.02516912668943405,
-0.06205523759126663,
0.05865954980254173,
-0.02240779995918274,
0.035001691430807114,
-0.06888392567634583,
0.064518041908741,
0.01547649409621954,
-0.03587859869003296,
0.015131328254938126,
0.028303606435656548,
-0.03259485960006714,
-0.030355945229530334,
-0.07619771361351013,
-0.03552410379052162,
0.026456501334905624,
-0.003967076074331999,
-0.08216814696788788,
0.036643560975790024,
-0.009944510646164417,
0.04406929388642311,
-0.018359096720814705,
0.026102008298039436,
0.052651796489953995,
0.03869589790701866,
0.148216113448143,
0.01584964618086815,
-0.01213678065687418,
0.003402682952582836,
-0.020075596868991852,
-0.012127451598644257,
-0.043584194034338,
0.018545672297477722,
0.05742814764380455,
-0.03460988029837608,
0.053883202373981476,
-0.01862030290067196,
0.03701671212911606,
-0.019254662096500397,
-0.01668923906981945,
0.020560694858431816,
0.019329292699694633,
0.0361957773566246,
-0.06048799678683281,
-0.020840559154748917,
-0.033135928213596344,
-0.03800556808710098,
0.01618548296391964,
-0.047054510563611984,
-0.00817670114338398,
0.028471525758504868,
-0.05074872076511383,
-0.023751147091388702,
0.027314752340316772,
-0.016819842159748077,
0.0166985671967268,
0.015504480339586735,
-0.01662393845617771,
0.008923005312681198,
-0.01826580800116062,
-0.00281496811658144,
-0.04141991212964058,
-0.021512232720851898,
0.04078555107116699,
0.03067312389612198,
-0.029964134097099304,
-0.019907677546143532,
-0.05328615754842758,
-0.06615991145372391,
0.008988307788968086,
0.03843469172716141,
-0.028415551409125328,
0.021344315260648727,
-0.03869589790701866,
-0.003281408455222845,
-0.02992681972682476,
0.040598977357149124,
0.0384720079600811,
-0.045412641018629074,
0.008750422857701778,
-0.004615428391844034,
0.054517559707164764,
0.04011387750506401,
-0.009981825947761536,
0.03072909638285637,
0.03423672914505005,
0.009380117058753967,
-0.03020668402314186,
-0.03660624474287033,
0.033005326986312866,
-0.018321780487895012,
-0.03418075665831566,
-0.023396652191877365,
-0.006684091407805681,
0.024870604276657104,
0.06806299090385437,
-0.04492754489183426,
-0.01468354556709528,
-0.05477876588702202,
-0.007066573016345501,
0.01765943504869938,
-0.055077288299798965,
0.06985411792993546,
-0.06004021316766739,
-0.035281553864479065,
-0.021978674456477165,
0.0027963104657828808,
-0.08955656737089157,
0.016819842159748077,
0.06254033744335175,
-0.013004359789192677,
-0.013750663958489895,
-0.02675502374768257,
-0.010317662730813026,
0.011800942942500114,
0.011633024550974369,
0.009501392021775246,
0.029572324827313423,
-0.017864668741822243,
0.027426699176430702,
0.04112138971686363,
-0.07608576864004135,
-0.038546640425920486,
-0.022146591916680336,
-0.03955414891242981,
0.12694643437862396,
-0.01979573257267475,
0.007229826878756285,
-0.02710951864719391,
0.018984125927090645,
0.0062036579474806786,
-0.05645795166492462,
-0.004976919386535883,
-0.008493880741298199,
0.015588440001010895,
0.002446480095386505,
0.014496969059109688,
-0.03740852326154709,
0.030915671959519386,
-0.08060090988874435,
0.05992826819419861,
0.021624179556965828,
-0.0010325824841856956,
0.039404887706041336,
-0.0741080567240715,
-0.00964598823338747,
0.00690331868827343,
-0.026661736890673637,
0.004676065407693386,
0.028658101335167885,
-0.06601065397262573,
0.006791372783482075,
-0.0015205958625301719,
-0.023732490837574005,
-0.005517990328371525,
-0.017230309545993805,
-0.005723224487155676,
0.02641918696463108,
-0.06321200728416443,
0.002917584963142872,
-0.03328518941998482,
0.04701719805598259,
0.04485291242599487,
0.007290464360266924,
-0.050151675939559937,
-0.012612549588084221,
-0.08575040847063065,
0.06657037883996964,
0.009655317291617393,
-0.07515288144350052,
0.06601065397262573,
0.01923600398004055,
-0.011987519450485706,
0.039516836404800415,
0.04869638383388519,
0.03740852326154709,
-0.07224229723215103,
0.012939058244228363,
-0.0031274831853806973,
0.05448024347424507,
0.03554276376962662,
0.036121148616075516,
-0.03891979157924652,
0.008591832593083382,
-0.0350949801504612,
-0.04197964072227478,
-0.03914368152618408,
0.012006177566945553,
-0.04373345524072647,
0.03559873625636101,
0.013358854688704014,
0.024478795006871223,
-0.021176395937800407,
-0.011735641397535801,
0.002395171672105789,
0.02082190103828907,
-0.01957184076309204,
0.012668523006141186,
0.010868062265217304,
-0.061308931559324265,
-0.05138307809829712,
0.019814390689134598,
0.09410902112722397,
-0.03558007627725601,
-0.016474677249789238,
0.04272594675421715,
-0.032277677208185196,
0.04078555107116699,
-0.006175671704113483,
-0.05992826819419861,
0.06664501130580902,
0.004883631598204374,
-0.00033991847885772586,
0.01844305545091629,
0.06690622121095657,
-0.013330868445336819,
0.021568207070231438,
0.004204960539937019,
0.06059994176030159,
-0.00845656543970108,
0.010112429037690163,
-0.003323388285934925,
-0.03696073964238167,
-0.002915252698585391,
0.0003714032063726336,
0.0023135445080697536,
0.06265228241682053,
0.008181365206837654,
-0.04567384719848633,
0.009776591323316097,
-0.011213228106498718,
0.022109277546405792,
-0.008461229503154755,
-0.0082000233232975,
-0.009202869608998299,
-0.05970437824726105,
-0.012752481736242771,
0.019889021292328835,
0.0274453554302454,
0.02307947352528572,
0.04294983670115471,
-0.0054200380109250546,
-0.03231499344110489,
0.0052567836828529835,
0.02348994091153145,
0.007449054159224033,
0.04332298785448074,
-0.05623406171798706,
-0.020038282498717308,
0.013330868445336819,
-0.02416161447763443,
0.05612211301922798,
-0.010215045884251595,
-0.07145867496728897,
0.0037058694288134575,
0.011353160254657269,
0.011950204148888588,
0.013097647577524185,
-0.021922701969742775,
-0.015765687450766563,
0.015205958858132362,
-0.06746594607830048,
0.008102070540189743,
0.08821322023868561,
-0.05414440855383873,
0.01553246658295393,
-0.004732038360089064,
-0.028826018795371056,
0.04194232448935509,
-0.026176637038588524,
-0.0013899925397709012,
0.0040673608891665936,
-0.01292972918599844,
0.01929197646677494,
0.008055426180362701,
-0.03382626175880432,
-0.02850884012877941,
0.031829897314310074,
-0.009454747661948204,
0.00549000408500433,
0.00021266768453642726,
-0.061420876532793045,
-0.011306516826152802,
-0.008727100677788258,
0.04873369634151459,
-0.0034096797462552786,
0.0565698966383934,
-0.04003924876451492,
-0.017846010625362396,
-0.036251749843358994,
-0.0004364133346825838,
-0.00674472888931632,
0.031438086181879044,
-0.033061299473047256,
-0.009739276953041553,
-0.0005856743082404137,
0.035001691430807114,
0.009202869608998299,
-0.0006396064418368042,
0.009562029503285885,
-0.028881993144750595,
0.11828929930925369,
-0.018461713567376137,
0.056271374225616455,
-0.005303428042680025,
-0.08948193490505219,
-0.006828688085079193,
0.04701719805598259,
0.060749202966690063,
-0.008214016444981098,
-0.017976615577936172,
0.005797854624688625,
-0.009412768296897411,
0.006800701841711998,
0.035449475049972534,
-0.014580928720533848,
-0.021624179556965828,
-0.0280050840228796,
0.026176637038588524,
0.0007976131746545434,
-0.03843469172716141,
-0.006716742645949125,
0.022314511239528656,
-0.02619529515504837,
-0.019721101969480515,
-0.01547649409621954,
-0.029833531007170677,
0.07399611175060272,
-0.027016229927539825,
-0.011763627640902996,
0.03197915852069855,
-0.0026004055980592966,
0.019478553906083107,
-0.006180335767567158,
-0.04645746946334839,
-0.024516109377145767,
0.0015567450318485498,
-0.011688997969031334,
-0.03278143331408501,
-0.055450439453125,
-0.022333169355988503,
0.0034096797462552786,
-0.0729512870311737,
0.034516591578722,
-0.029329774901270866,
0.05220401659607887,
-0.025448990985751152,
0.04701719805598259,
0.04086018353700638,
-0.019161373376846313,
0.0039600795134902,
-0.004615428391844034,
-0.03992730379104614,
0.005914465058594942,
0.05022630840539932,
0.02246377244591713,
-0.014263749122619629,
-0.01043893676251173,
-0.06578676402568817,
-0.016903802752494812,
-0.004277259111404419,
-0.04843517765402794,
0.027799850329756737,
0.05865954980254173,
-0.040487032383680344,
-0.052017439156770706,
0.018881509080529213,
-0.06858540326356888,
-0.027706563472747803,
0.053883202373981476,
-0.06470461934804916,
0.09075065702199936,
-0.014170460402965546,
0.02936709113419056,
-0.0003536201547831297,
0.03649429976940155,
-0.006982613354921341,
-0.01741688698530197,
-0.011269201524555683,
-0.03317324444651604,
-0.018704261630773544,
0.0007772063836455345,
0.013601403683423996,
0.014077172614634037,
0.03552410379052162,
-0.021027134731411934,
-0.011754299513995647,
0.027855822816491127,
0.03274412080645561,
-0.04589774087071419,
0.04966657981276512,
-0.004930275492370129,
0.043136414140462875,
0.042688630521297455,
0.05798787623643875,
-0.015131328254938126,
0.040934812277555466,
0.02692294307053089,
-0.032445598393678665,
0.029441721737384796,
0.012593892402946949,
-0.030971646308898926,
-0.00002268431126140058,
0.07798884063959122,
0.05578627809882164,
0.004162981174886227,
-0.015047368593513966,
-0.025784827768802643,
0.036643560975790024,
0.013386840932071209,
-0.006921976339071989,
-0.02341531030833721,
-0.02020619995892048,
-0.0166985671967268,
-0.0268856268376112,
-0.05899538844823837,
0.03716597333550453,
-0.00945008359849453,
-0.013676034286618233,
-0.04250205308198929,
-0.008493880741298199,
0.0010856401640921831,
-0.0006740064709447324,
-0.026493817567825317,
-0.0042236181907355785,
0.0033653678838163614,
0.020038282498717308,
-0.028527498245239258,
-0.0070805661380290985,
0.04239010810852051,
0.023471282795071602,
0.08336223661899567,
-0.03647564351558685,
-0.020056938752532005,
-0.07828736305236816,
0.023042157292366028,
-0.017332926392555237,
0.05324884131550789,
-0.00917021930217743,
-0.03899442031979561,
0.0395914651453495,
-0.04671867564320564,
0.02705354616045952,
0.06821224838495255,
-0.027202807366847992,
0.027687905356287956,
0.0175474900752306,
0.02466537058353424,
-0.039815355092287064,
-0.0038458015769720078,
0.010159073397517204,
0.009534042328596115,
-0.025225099176168442,
0.05127113312482834,
-0.00803676899522543,
-0.03378894552588463,
0.004475496243685484,
-0.0036778829526156187,
0.042464736849069595,
0.02449745312333107,
0.03740852326154709,
0.006730735767632723,
0.07418268918991089,
0.028079714626073837,
-0.01730494014918804,
0.003134479746222496,
0.03699805587530136,
0.024310875684022903,
-0.07552603632211685,
-0.0017689754022285342,
0.002069829497486353,
0.06358516216278076,
-0.04052434489130974,
0.0023800123017281294,
0.0037501812912523746,
-0.018638961017131805,
-0.005541312508285046
] |
10,034
|
torch.nn.modules.container
|
append
|
Append a given module to the end.
Args:
module (nn.Module): module to append
|
def append(self, module: Module) -> 'Sequential':
r"""Append a given module to the end.
Args:
module (nn.Module): module to append
"""
self.add_module(str(len(self)), module)
return self
|
(self, module: torch.nn.modules.module.Module) -> torch.nn.modules.container.Sequential
|
[
-0.031657520681619644,
0.03856927156448364,
-0.01510345283895731,
0.04583940654993057,
0.0057725911028683186,
0.02476283721625805,
-0.10410289466381073,
0.0441669337451458,
0.005810989532619715,
-0.021486155688762665,
0.023107429966330528,
-0.045634616166353226,
0.02133256196975708,
0.07618284225463867,
0.033227596431970596,
0.038125552237033844,
0.004033987410366535,
-0.02570146881043911,
-0.08901651203632355,
-0.028005385771393776,
-0.02459217607975006,
0.08976741880178452,
0.007355466950684786,
-0.02476283721625805,
-0.03628242015838623,
0.043450161814689636,
0.02034272998571396,
0.0041449167765676975,
-0.029421867802739143,
-0.0207523163408041,
-0.009045005775988102,
-0.10894965380430222,
-0.03203297406435013,
-0.05065203458070755,
0.012151027098298073,
0.04249446094036102,
-0.04095851629972458,
0.06375876069068909,
-0.025052959099411964,
0.03138446435332298,
0.04990112781524658,
-0.02887575514614582,
-0.018823852762579918,
0.03114553913474083,
-0.006724023260176182,
0.01231315452605486,
0.018397200852632523,
0.01593969017267227,
0.005465402267873287,
-0.023619411513209343,
0.005896320100873709,
0.030002113431692123,
0.026657167822122574,
-0.041129179298877716,
-0.017868153750896454,
0.05287062004208565,
-0.008413562551140785,
-0.024916430935263634,
0.008093574084341526,
0.030940746888518333,
0.05037897452712059,
-0.054372433573007584,
0.03891059011220932,
0.004769960884004831,
-0.0003813195216935128,
0.07085823267698288,
-0.06935641914606094,
0.02218586392700672,
0.06580668687820435,
0.008959675207734108,
0.0033065469469875097,
-0.006967214401811361,
0.03175991773605347,
0.03131619840860367,
-0.015521571040153503,
0.010811341926455498,
-0.04874063655734062,
0.06433900445699692,
-0.008588489145040512,
0.015376510098576546,
-0.010137232951819897,
0.06307611614465714,
-0.0211960319429636,
0.024302054196596146,
-0.03682853281497955,
-0.07522714138031006,
-0.11045146733522415,
-0.031077275052666664,
-0.02918294444680214,
-0.06526057422161102,
-0.03918364644050598,
0.04020760953426361,
0.007065344136208296,
0.031520992517471313,
0.06321264803409576,
-0.02133256196975708,
-0.018192408606410027,
-0.033807843923568726,
-0.042289670556783676,
-0.019643021747469902,
-0.052461035549640656,
0.02578680031001568,
0.011886502616107464,
0.009599652141332626,
-0.030872482806444168,
-0.021588552743196487,
-0.04368908330798149,
-0.004735828377306461,
-0.005917652510106564,
0.03365425020456314,
-0.0265547726303339,
0.03819381818175316,
0.01109293196350336,
-0.011707309633493423,
-0.03007037751376629,
-0.00235938117839396,
0.054372433573007584,
-0.01461707055568695,
0.021810410544276237,
0.050140053033828735,
0.015146118588745594,
0.04385974630713463,
-0.0325620211660862,
-0.015077854506671429,
0.029029348865151405,
-0.0365896075963974,
-0.03153805807232857,
-0.049423277378082275,
-0.01870439015328884,
-0.1677933931350708,
-0.018004681915044785,
-0.015026655979454517,
-0.024660440161824226,
0.033142268657684326,
0.004590766970068216,
-0.015333845280110836,
-0.020018475130200386,
0.01807294599711895,
-0.013174990192055702,
0.06212041899561882,
-0.03641894832253456,
0.005153946578502655,
0.050140053033828735,
0.05781977251172066,
-0.001031429274007678,
-0.055805981159210205,
-0.05819522589445114,
0.023499948903918266,
-0.029729057103395462,
-0.020155003294348717,
-0.016571134328842163,
-0.021008305251598358,
0.0972764790058136,
0.046248991042375565,
-0.0455322191119194,
0.025650272145867348,
-0.010632148012518883,
0.00644670007750392,
0.01914810761809349,
-0.031077275052666664,
-0.010111633688211441,
-0.014608537778258324,
0.02583799883723259,
0.036657873541116714,
-0.0357021726667881,
-0.017595095559954643,
0.004211047664284706,
-0.018772654235363007,
-0.04816038906574249,
0.011485450901091099,
0.04007108137011528,
-0.026384111493825912,
0.076728954911232,
0.020359795540571213,
-0.07481756061315536,
0.010248162783682346,
0.0019295301754027605,
0.03346652165055275,
-0.028261376544833183,
-0.01548743899911642,
0.024216722697019577,
0.035360854119062424,
-0.00840076245367527,
-0.01776575669646263,
0.021127767860889435,
-0.02940480224788189,
-0.014284282922744751,
0.035941097885370255,
0.016989251598715782,
-0.012304620817303658,
0.006062713917344809,
0.0234316848218441,
0.033142268657684326,
-0.013516310602426529,
-0.00006146444502519444,
0.009275397285819054,
-0.009292463771998882,
0.019796617329120636,
-0.017646294087171555,
0.04519089683890343,
-0.012330220080912113,
0.009471656754612923,
0.021213099360466003,
0.03962736576795578,
-0.015572769567370415,
-0.0032446824479848146,
-0.020735248923301697,
0.07440797239542007,
-0.04191421717405319,
-0.030531160533428192,
-0.005682994145900011,
-0.00030452231294475496,
0.0637928918004036,
0.0397297628223896,
0.015052255243062973,
-0.006028581876307726,
-0.009275397285819054,
-0.02766406536102295,
0.03628242015838623,
-0.04932088032364845,
-0.011647578328847885,
0.028551500290632248,
-0.029831454157829285,
-0.037818364799022675,
-0.05604490265250206,
-0.039286043494939804,
-0.015956755727529526,
-0.029694924131035805,
0.0034836072009056807,
0.02329515665769577,
0.09434112161397934,
0.07331574708223343,
-0.08587636053562164,
-0.03512192890048027,
0.03802315518260002,
0.022510118782520294,
-0.045498088002204895,
0.015734897926449776,
-0.040275875478982925,
-0.04556635022163391,
-0.012483814731240273,
0.05109575018286705,
-0.020513391122221947,
0.006856285035610199,
-0.020598720759153366,
0.01225342322140932,
-0.00018919314607046545,
0.0140538914129138,
-0.008806081488728523,
0.009574053809046745,
0.0008970341878011823,
-0.030360501259565353,
-0.009283930994570255,
-0.017595095559954643,
-0.010674813762307167,
-0.001895398017950356,
-0.012261955998837948,
0.00450543686747551,
0.0025769732892513275,
0.008422095328569412,
0.032101236283779144,
-0.007282936479896307,
-0.0026580370031297207,
-0.013849098235368729,
-0.015333845280110836,
0.006822152994573116,
-0.03740878030657768,
0.027646999806165695,
0.04314297065138817,
0.017390303313732147,
0.04488370940089226,
0.022953836247324944,
0.0032382828649133444,
-0.04502023756504059,
0.019779549911618233,
-0.002679369645193219,
0.03962736576795578,
-0.001872998895123601,
-0.03327879682183266,
0.04717056080698967,
0.04051480069756508,
-0.03343239054083824,
-0.039251912385225296,
-0.033978503197431564,
0.006404034793376923,
0.042187273502349854,
0.02699849009513855,
0.06454379856586456,
0.02414845861494541,
-0.02266371250152588,
0.02727154642343521,
0.0064680324867367744,
-0.01080280914902687,
0.041880082339048386,
-0.011903569102287292,
-0.0019252636702731252,
-0.06297372281551361,
0.06928815692663193,
0.04235793277621269,
-0.012799536809325218,
0.01017136499285698,
-0.010606549680233002,
0.02315862849354744,
-0.011792640201747417,
-0.06215455010533333,
-0.046931635588407516,
0.009411926381289959,
0.036657873541116714,
-0.03686266392469406,
-0.010606549680233002,
-0.016400473192334175,
0.03918364644050598,
0.00004256512693245895,
0.035804569721221924,
0.01923343725502491,
0.021810410544276237,
0.07242830842733383,
0.04082198813557625,
-0.0031870845705270767,
0.001031962689012289,
-0.0629395917057991,
-0.018448399379849434,
0.0012948864605277777,
-0.005563532002270222,
0.012475281953811646,
-0.018175341188907623,
0.06433900445699692,
-0.011493983678519726,
-0.020052608102560043,
0.008315431885421276,
0.02691315859556198,
-0.0031252203043550253,
0.005921918898820877,
0.0597994364798069,
-0.10191844403743744,
-0.001753536518663168,
-0.001122092711739242,
-0.03641894832253456,
0.03611176088452339,
-0.03833034634590149,
-0.005537932738661766,
-0.011988899670541286,
-0.052495166659355164,
0.01146838441491127,
0.05737605690956116,
-0.04078785702586174,
0.035053662955760956,
0.014540273696184158,
-0.0415046326816082,
-0.00438597472384572,
0.026930226013064384,
0.04249446094036102,
-0.051744259893894196,
-0.0043497090227901936,
0.02887575514614582,
0.055805981159210205,
-0.01923343725502491,
0.0292341411113739,
-0.05256342887878418,
-0.032783880829811096,
0.016050618141889572,
0.03833034634590149,
-0.026930226013064384,
0.025650272145867348,
-0.015990888699889183,
0.05153946578502655,
-0.004607832990586758,
0.028807491064071655,
0.07877688109874725,
-0.00798691064119339,
-0.023329289630055428,
-0.028756292536854744,
0.039251912385225296,
0.06369049102067947,
-0.016016487032175064,
0.02092297561466694,
-0.030326368287205696,
0.014915727078914642,
-0.010794276371598244,
-0.04181182011961937,
-0.0003866526822093874,
-0.04542982205748558,
0.016596732661128044,
-0.05734192579984665,
0.004353975877165794,
0.03252789005637169,
0.04699989780783653,
-0.037818364799022675,
-0.027766462415456772,
0.0054910010658204556,
0.008323965594172478,
-0.018619058653712273,
-0.05601077154278755,
0.009505788795650005,
-0.06997080147266388,
0.019199304282665253,
-0.010034836828708649,
0.017262307927012444,
-0.06679651886224747,
-0.044474124908447266,
0.05474788323044777,
-0.03377370908856392,
0.014275750145316124,
0.04430346190929413,
-0.006711223628371954,
-0.0071421414613723755,
0.014122155494987965,
0.014932792633771896,
0.020820580422878265,
-0.052768222987651825,
0.0131664564833045,
0.017868153750896454,
-0.09331715852022171,
-0.0017428701976314187,
0.06215455010533333,
-0.03247668966650963,
0.07242830842733383,
-0.05338260158896446,
0.025650272145867348,
0.03863753378391266,
0.036794401705265045,
0.04829691722989082,
-0.016477270051836967,
0.02716914936900139,
0.02860269881784916,
0.013661372475326061,
0.013550442643463612,
-0.0025449744425714016,
-0.03240842744708061,
-0.002421245677396655,
-0.07174567133188248,
0.06867378205060959,
0.0017151378560811281,
0.00939485989511013,
-0.018243607133626938,
-0.04051480069756508,
0.0022633846383541822,
-0.04403040558099747,
0.0047656940296292305,
0.005448336247354746,
0.05706886574625969,
-0.03730638325214386,
-0.007897313684225082,
0.004936354700475931,
-0.010026304051280022,
-0.041470497846603394,
0.015521571040153503,
-0.01492425985634327,
-0.0016532734734937549,
-0.018892116844654083,
0.026930226013064384,
-0.04618072882294655,
0.07188219577074051,
0.05123227834701538,
0.006391235161572695,
-0.04102678224444389,
0.008874345570802689,
-0.08806081116199493,
0.03476354107260704,
-0.006719756871461868,
-0.04054893180727959,
0.06123298406600952,
0.017117246985435486,
0.009898308664560318,
0.019045710563659668,
-0.006092579569667578,
0.05590837448835373,
-0.06631866842508316,
-0.013840565457940102,
0.02454097755253315,
0.03182817995548248,
-0.016784459352493286,
0.018397200852632523,
-0.08669552952051163,
0.02578680031001568,
0.021230164915323257,
0.010444422252476215,
-0.054645489901304245,
0.03815968707203865,
-0.044064536690711975,
-0.01945529505610466,
-0.021161900833249092,
-0.017142845317721367,
0.025820931419730186,
-0.007445063907653093,
0.07092650234699249,
0.024284986779093742,
-0.02213466539978981,
0.025411346927285194,
0.012953131459653378,
-0.017595095559954643,
-0.02619638480246067,
-0.00649363175034523,
0.06546536087989807,
-0.011895036324858665,
-0.002485243370756507,
0.0026089721359312534,
-0.01481333002448082,
-0.013396847993135452,
0.0054398030042648315,
-0.004684630315750837,
0.059867698699235916,
0.00011606246698647738,
-0.05805869773030281,
-0.009531388059258461,
0.0870368480682373,
-0.017868153750896454,
-0.023773005232214928,
-0.044064536690711975,
0.06311024725437164,
0.03092368133366108,
0.027237413451075554,
-0.014156287536025047,
-0.015299713239073753,
-0.007146407850086689,
0.004313443787395954,
-0.02926827408373356,
0.047238823026418686,
0.04034413769841194,
-0.013132324442267418,
0.019881946966052055,
0.03252789005637169,
0.010563883930444717,
-0.039695627987384796,
0.013849098235368729,
0.009736181236803532,
-0.059867698699235916,
-0.04891129583120346,
0.017450034618377686,
0.05119814723730087,
0.015009590424597263,
0.02128136344254017,
0.03377370908856392,
0.010162832215428352,
-0.014096556231379509,
0.022032268345355988,
0.045634616166353226,
0.013686970807611942,
-0.021964004263281822,
-0.0071933395229279995,
-0.04717056080698967,
-0.012381418608129025,
0.03761357069015503,
-0.030087444931268692,
-0.04573700949549675,
0.05345086380839348,
0.03918364644050598,
0.014164820313453674,
-0.055396392941474915,
0.01133185625076294,
-0.05345086380839348,
-0.0066045611165463924,
-0.03252789005637169,
0.019967276602983475,
0.08963088691234589,
-0.03334705904126167,
-0.021400826051831245,
-0.033978503197431564,
-0.00968498270958662,
0.02177627757191658,
-0.01945529505610466,
-0.016955120489001274,
-0.03655547648668289,
0.016588199883699417,
0.025940394029021263,
0.026452375575900078,
0.024063128978013992,
-0.04901369288563728,
-0.0027668331749737263,
0.025274818763136864,
0.010785742662847042,
-0.01153664942830801,
-0.030770085752010345,
-0.04699989780783653,
-0.01117826160043478,
0.024523911997675896,
-0.04310883954167366,
0.0410609133541584,
-0.02401193045079708,
-0.026708366349339485,
-0.04437172785401344,
0.01133185625076294,
0.023773005232214928,
-0.03065062314271927,
-0.013371249660849571,
-0.012535013258457184,
-0.036930929869413376,
0.04601006954908371,
-0.015717830508947372,
0.028193112462759018,
0.03158925473690033,
0.011656111106276512,
0.01989901252090931,
-0.01967715471982956,
0.029114678502082825,
-0.021673882380127907,
-0.07577325403690338,
-0.01448054239153862,
0.009377793408930302,
0.07433971017599106,
0.03288627788424492,
0.04310883954167366,
0.0037630638107657433,
0.027766462415456772,
0.006719756871461868,
0.029285339638590813,
-0.042904045432806015,
0.004332643002271652,
-0.035360854119062424,
0.010947870090603828,
0.0010874272556975484,
0.002308183116838336,
-0.02092297561466694,
-0.048433445394039154,
-0.07113128900527954,
-0.05092509090900421,
-0.0272203478962183,
-0.018857983872294426,
0.10342025756835938,
0.028346708044409752,
0.04365495219826698,
0.03356891870498657,
-0.00018079346045851707,
0.01901157759130001,
-0.03007037751376629,
-0.01175850722938776,
-0.05208558216691017,
-0.05109575018286705,
0.04614659771323204,
-0.027476338669657707,
-0.045054368674755096,
-0.008550090715289116,
0.030275171622633934,
-0.0278859231621027,
0.026742499321699142,
-0.05171012878417969,
0.0278859231621027,
0.010504152625799179,
0.05952638015151024,
-0.04075372591614723,
-0.04119744151830673,
-0.015265580266714096,
-0.06099405884742737,
-0.06669411808252335,
0.01492425985634327,
0.025513743981719017,
0.007875981740653515,
-0.0005186478956602514,
-0.030991945415735245,
-0.05686407536268234,
0.004513970110565424,
0.0018431332428008318,
-0.014292815700173378,
0.0037843964528292418,
0.0406171977519989,
-0.04532742500305176,
-0.004590766970068216,
0.02481403574347496,
-0.011749974451959133,
-0.05672754719853401,
0.0330057367682457,
-0.02744220569729805,
0.05211971327662468,
-0.0265547726303339,
0.041129179298877716,
0.018550794571638107,
0.02070111781358719,
0.010743077844381332,
-0.005755525082349777,
-0.0037374647799879313,
-0.06717196851968765,
-0.043313633650541306,
-0.0019583289977163076,
0.04020760953426361,
0.03061649203300476,
0.013729636557400227,
-0.05761498212814331,
-0.0015540770255029202,
0.03187938034534454,
0.003511339658871293,
-0.018004681915044785,
-0.013430980034172535,
-0.01807294599711895,
-0.0749540850520134,
-0.010000704787671566,
0.08376016467809677,
-0.0374770425260067,
0.04850171133875847,
0.012936064973473549,
-0.058434151113033295,
-0.0047656940296292305,
0.02218586392700672,
0.006229107733815908,
-0.013618706725537777,
0.09208840131759644,
0.043313633650541306,
0.004595033824443817,
-0.04860410839319229,
-0.038842327892780304,
-0.0007258403929881752,
0.030940746888518333,
0.015154651366174221,
-0.02873922698199749,
-0.018670257180929184,
-0.014557339251041412,
0.00396572332829237,
-0.01550450548529625,
0.03819381818175316,
-0.03904711827635765,
0.024882299825549126,
0.00022159198124427348,
0.05529399961233139,
0.019404098391532898,
0.004688896704465151,
0.011118531227111816,
-0.005606197286397219,
0.041880082339048386,
-0.0006773088243789971,
-0.062359344214200974,
0.029694924131035805,
0.017253775149583817,
0.0017364704981446266,
0.08143918216228485,
-0.009616718627512455,
-0.0031252203043550253,
-0.04717056080698967,
0.001692738733254373,
0.017066048458218575,
0.028449103236198425,
-0.003974256105720997,
-0.040583062916994095,
0.005781123880296946,
-0.028636829927563667,
0.019745418801903725,
0.058126963675022125,
-0.02017206884920597,
-0.021588552743196487,
0.028090717270970345,
-0.016758859157562256,
-0.05225624144077301,
-0.00467609753832221,
-0.009369260631501675,
0.023534081876277924,
-0.009898308664560318,
0.04297231137752533,
-0.08730990439653397,
0.014258683659136295,
0.020001409575343132,
0.020001409575343132,
-0.002982292091473937,
0.02481403574347496,
0.03261321783065796,
0.022527184337377548,
0.052665825933218,
0.03908125311136246,
-0.010401756502687931,
0.05867307633161545,
0.021895740181207657,
-0.006340037100017071,
-0.09352194517850876,
-0.025599073618650436,
-0.04198247939348221,
0.11843837797641754,
-0.01923343725502491,
-0.0019199304515495896,
0.026810763403773308,
0.002749767154455185,
-0.01157931424677372
] |
10,035
|
torch.nn.modules.module
|
apply
|
Apply ``fn`` recursively to every submodule (as returned by ``.children()``) as well as self.
Typical use includes initializing the parameters of a model
(see also :ref:`nn-init-doc`).
Args:
fn (:class:`Module` -> None): function to be applied to each submodule
Returns:
Module: self
Example::
>>> @torch.no_grad()
>>> def init_weights(m):
>>> print(m)
>>> if type(m) == nn.Linear:
>>> m.weight.fill_(1.0)
>>> print(m.weight)
>>> net = nn.Sequential(nn.Linear(2, 2), nn.Linear(2, 2))
>>> net.apply(init_weights)
Linear(in_features=2, out_features=2, bias=True)
Parameter containing:
tensor([[1., 1.],
[1., 1.]], requires_grad=True)
Linear(in_features=2, out_features=2, bias=True)
Parameter containing:
tensor([[1., 1.],
[1., 1.]], requires_grad=True)
Sequential(
(0): Linear(in_features=2, out_features=2, bias=True)
(1): Linear(in_features=2, out_features=2, bias=True)
)
|
def apply(self: T, fn: Callable[['Module'], None]) -> T:
r"""Apply ``fn`` recursively to every submodule (as returned by ``.children()``) as well as self.
Typical use includes initializing the parameters of a model
(see also :ref:`nn-init-doc`).
Args:
fn (:class:`Module` -> None): function to be applied to each submodule
Returns:
Module: self
Example::
>>> @torch.no_grad()
>>> def init_weights(m):
>>> print(m)
>>> if type(m) == nn.Linear:
>>> m.weight.fill_(1.0)
>>> print(m.weight)
>>> net = nn.Sequential(nn.Linear(2, 2), nn.Linear(2, 2))
>>> net.apply(init_weights)
Linear(in_features=2, out_features=2, bias=True)
Parameter containing:
tensor([[1., 1.],
[1., 1.]], requires_grad=True)
Linear(in_features=2, out_features=2, bias=True)
Parameter containing:
tensor([[1., 1.],
[1., 1.]], requires_grad=True)
Sequential(
(0): Linear(in_features=2, out_features=2, bias=True)
(1): Linear(in_features=2, out_features=2, bias=True)
)
"""
for module in self.children():
module.apply(fn)
fn(self)
return self
|
(self: ~T, fn: Callable[[torch.nn.modules.module.Module], NoneType]) -> ~T
|
[
0.002469377825036645,
-0.014089708216488361,
-0.000549229618627578,
0.0018025997560471296,
-0.04072403907775879,
0.03645666316151619,
-0.014935826882719994,
-0.003338488517329097,
0.043667059391736984,
0.02702060341835022,
0.0015312901232391596,
0.004180008079856634,
0.05146606266498566,
0.030000410974025726,
-0.03406545892357826,
0.02192549966275692,
-0.02054595947265625,
0.056064531207084656,
0.013105636462569237,
0.035978421568870544,
-0.016628064215183258,
0.008451986126601696,
-0.004265079740434885,
0.021870318800210953,
-0.04039295017719269,
-0.03309058025479317,
0.04727226123213768,
-0.0018899707356467843,
0.01695915311574936,
0.0009133708663284779,
0.02159441076219082,
-0.008341622538864613,
-0.004384640138596296,
-0.011781277135014534,
-0.011781277135014534,
-0.02898874692618847,
-0.03454369679093361,
0.04083440452814102,
-0.06776303797960281,
-0.013105636462569237,
0.046205416321754456,
-0.022017469629645348,
-0.004412231035530567,
0.011560550890862942,
0.02977968379855156,
0.004832990933209658,
0.0565427727997303,
0.06665940582752228,
-0.011073113419115543,
-0.037817809730768204,
-0.008999203331768513,
0.04348312318325043,
0.04138622060418129,
-0.07585634291172028,
0.0166004728525877,
0.09344089031219482,
-0.0030349893495440483,
-0.0719936266541481,
0.07416410744190216,
-0.046462930738925934,
0.056616347283124924,
-0.03632790595293045,
-0.019276781007647514,
-0.0023981016129255295,
-0.014448389410972595,
0.0003960431204177439,
-0.08615691214799881,
0.0014772581635043025,
0.005352617707103491,
0.0667329803109169,
-0.03592323884367943,
-0.02626645378768444,
0.06257596611976624,
0.04786086454987526,
-0.04171730950474739,
0.027112573385238647,
0.012222730554640293,
0.006718363147228956,
-0.01186404936015606,
0.023691311478614807,
-0.03605199605226517,
0.015791142359375954,
-0.023875249549746513,
-0.023323433473706245,
-0.033311307430267334,
-0.05808785930275917,
-0.04013543576002121,
-0.060037609189748764,
0.02179674245417118,
-0.031637467443943024,
-0.049589887261390686,
-0.002572843339294195,
0.019405538216233253,
-0.03653023764491081,
0.03599681332707405,
0.03914216533303261,
0.016296973451972008,
-0.019994143396615982,
-0.041864462196826935,
-0.05941221863031387,
-0.021833529695868492,
0.0022475016303360462,
0.008916431106626987,
0.025751424953341484,
0.032428402453660965,
-0.03744992986321449,
-0.03899501636624336,
-0.03362400457262993,
0.01066844817250967,
0.02159441076219082,
-0.024040795862674713,
0.014062117785215378,
0.0341758206486702,
-0.03375276178121567,
0.013528695330023766,
-0.00921993050724268,
-0.03836962580680847,
-0.015699172392487526,
-0.004460514988750219,
0.0014715100405737758,
0.022274984046816826,
0.05713137611746788,
-0.010383342392742634,
-0.03754189983010292,
0.00744492094963789,
0.013455119915306568,
0.014586343429982662,
-0.0185686182230711,
0.009238324128091335,
-0.06117802858352661,
-0.007656450849026442,
0.026211272925138474,
-0.013455119915306568,
0.008631326258182526,
0.014853054657578468,
-0.04160694777965546,
-0.014963417313992977,
-0.010659250430762768,
-0.05069351941347122,
0.010751220397651196,
0.002286588540300727,
-0.004405333194881678,
0.06022154912352562,
0.052017878741025925,
0.015625597909092903,
0.003370677586644888,
0.009491239674389362,
0.013556286692619324,
-0.03248358517885208,
-0.03336649015545845,
-0.0014841558877378702,
0.01392416376620531,
0.03958361968398094,
0.0739801675081253,
-0.07600349187850952,
0.03445173054933548,
0.03770744428038597,
0.02192549966275692,
0.008378410711884499,
-0.05599095672369003,
-0.039031803607940674,
0.06603401154279709,
-0.020601140335202217,
0.019938960671424866,
-0.029080716893076897,
-0.04664686694741249,
-0.02347058430314064,
-0.0641210526227951,
-0.026174485683441162,
-0.013160818256437778,
0.0007892122375778854,
-0.058566100895404816,
0.09653105586767197,
0.008723295293748379,
0.022183014079928398,
0.04050331562757492,
0.023452190682291985,
-0.005669912323355675,
-0.035021938383579254,
0.04716189578175545,
0.029264656826853752,
0.005398602690547705,
-0.025236397981643677,
-0.03921574354171753,
-0.019368750974535942,
0.03586805611848831,
-0.05091424658894539,
0.03277788683772087,
-0.052017878741025925,
-0.028841596096754074,
0.0565427727997303,
0.0028510508127510548,
0.04282094165682793,
-0.017336226999759674,
-0.010916764847934246,
0.030589014291763306,
-0.002255548955872655,
-0.0012703270185738802,
0.04944273829460144,
-0.004345552995800972,
0.022624466568231583,
-0.051429275423288345,
0.041202280670404434,
0.063789963722229,
-0.06117802858352661,
-0.01699594035744667,
-0.025990545749664307,
0.06485680490732193,
-0.04083440452814102,
0.008755484595894814,
0.004458215553313494,
-0.011284642852842808,
0.05091424658894539,
0.052017878741025925,
0.0037362559232860804,
-0.026211272925138474,
-0.006005600560456514,
0.0009582059574313462,
0.04344633221626282,
-0.025585880503058434,
-0.057609617710113525,
0.011073113419115543,
0.019681446254253387,
-0.01942393183708191,
0.01850423961877823,
-0.005968812387436628,
-0.002439487725496292,
-0.05334223806858063,
-0.008585341274738312,
0.04881734400987625,
0.026174485683441162,
-0.004223693627864122,
-0.004878975450992584,
-0.06088372692465782,
0.03855356201529503,
-0.03235482797026634,
0.020453989505767822,
-0.0226796492934227,
-0.023157889023423195,
-0.05433550849556923,
-0.023617736995220184,
-0.001519793993793428,
-0.004616862628608942,
-0.0022084147203713655,
-0.01695915311574936,
0.03463566675782204,
0.010742023587226868,
0.03629111498594284,
0.011293839663267136,
-0.004382340703159571,
0.015423264354467392,
-0.012710168026387691,
-0.021686378866434097,
0.022808406502008438,
-0.027995478361845016,
-0.020270051434636116,
0.027995478361845016,
0.00006764778663637117,
-0.011762883514165878,
0.022661253809928894,
0.06485680490732193,
-0.09160149842500687,
-0.0057067000307142735,
0.03086492232978344,
-0.019644659012556076,
0.001303665922023356,
-0.011615732684731483,
-0.0010691439965739846,
0.01066844817250967,
0.030055591836571693,
0.024647792801260948,
-0.009417664259672165,
0.060331910848617554,
0.02054595947265625,
-0.010861583054065704,
0.024040795862674713,
0.01306884828954935,
-0.016416534781455994,
0.024868519976735115,
0.024537429213523865,
0.06974957883358002,
-0.07946154475212097,
-0.1052129715681076,
-0.02968771569430828,
0.03423100337386131,
0.022495709359645844,
-0.023746494203805923,
0.03895822912454605,
0.010594872757792473,
0.015303704887628555,
0.05466659739613533,
-0.0014991008210927248,
0.024243127554655075,
0.0253099724650383,
0.017897240817546844,
-0.030975285917520523,
-0.051686789840459824,
0.01423685997724533,
0.04624220356345177,
-0.029466988518834114,
0.008704901672899723,
-0.030717771500349045,
-0.02952216938138008,
-0.019902173429727554,
0.01686718314886093,
-0.018237527459859848,
0.0318949818611145,
0.025898577645421028,
-0.003710964461788535,
0.0512821264564991,
0.018357086926698685,
0.0087094996124506,
0.0198837798088789,
-0.012829728424549103,
0.03424939513206482,
-0.04752977564930916,
0.0640842616558075,
-0.005320428404957056,
-0.014751887880265713,
0.026211272925138474,
-0.03829604759812355,
0.045543234795331955,
-0.0009093472035601735,
0.04638935253024101,
0.009987873956561089,
0.0069574834778904915,
0.07578276842832565,
0.014466783031821251,
-0.009482042863965034,
0.013979345560073853,
-0.019828597083687782,
0.009445254690945148,
0.0572049543261528,
0.008162282407283783,
-0.10410933196544647,
0.022201407700777054,
0.029043929651379585,
-0.010640856809914112,
0.021226532757282257,
-0.030055591836571693,
0.006428659427911043,
0.04970025271177292,
-0.025990545749664307,
0.01787884719669819,
-0.03465406224131584,
0.03356882184743881,
0.014586343429982662,
0.020601140335202217,
0.02564106322824955,
0.01545085571706295,
0.06504074484109879,
-0.0006501085590571165,
-0.03695329651236534,
0.00771623058244586,
-0.015340492129325867,
0.018890509381890297,
-0.024960489943623543,
0.03119601309299469,
-0.010466115549206734,
-0.10558084398508072,
0.0019118133932352066,
-0.03303540125489235,
-0.051723577082157135,
0.015156553126871586,
0.08166880905628204,
0.021520834416151047,
0.0017048823647201061,
0.05337902531027794,
0.048044804483652115,
-0.044917844235897064,
0.06629152595996857,
-0.02050917036831379,
-0.007141422014683485,
-0.008148486725986004,
-0.0005187647766433656,
0.015092174522578716,
-0.029595745727419853,
-0.0014577145921066403,
0.023617736995220184,
0.0019876882433891296,
-0.018559420481324196,
-0.037229202687740326,
0.05713137611746788,
-0.06463608145713806,
0.025990545749664307,
-0.018320299685001373,
0.06952884793281555,
-0.06919775903224945,
-0.002552150283008814,
-0.02455582469701767,
0.036180753260850906,
0.018596207723021507,
-0.04811837896704674,
0.024445461109280586,
-0.04263700172305107,
0.009054385125637054,
0.020748291164636612,
-0.0018784744897857308,
0.0060929711908102036,
-0.06963921338319778,
0.020527565851807594,
-0.06860915571451187,
0.06603401154279709,
0.06364280730485916,
0.05893397703766823,
0.007684041280299425,
-0.004248985089361668,
0.05952258035540581,
0.02017808146774769,
0.015395673923194408,
-0.011367415077984333,
0.011854852549731731,
-0.07386980205774307,
0.0019083645893260837,
0.022863587364554405,
0.003039587987586856,
0.09322015941143036,
0.029503775760531425,
-0.005058315582573414,
-0.05444587022066116,
0.07052212208509445,
-0.016720032319426537,
0.04388778656721115,
0.02885999158024788,
0.06206093728542328,
-0.04830231890082359,
0.034598879516124725,
-0.03513230383396149,
-0.0226796492934227,
0.014034527353942394,
-0.056616347283124924,
-0.0058446540497243404,
0.002687805099412799,
0.014135693199932575,
-0.012894107028841972,
-0.05433550849556923,
-0.01526691671460867,
0.029466988518834114,
-0.011459384113550186,
0.011137492023408413,
0.020932231098413467,
0.0018255921313539147,
0.004819195251911879,
-0.0696759968996048,
-0.024813337251544,
0.01900087296962738,
0.07254544645547867,
0.023654524236917496,
-0.09557458013296127,
0.021778348833322525,
-0.0006489588995464146,
0.002083106432110071,
0.02041720226407051,
0.045248933136463165,
-0.03458048775792122,
-0.013271180912852287,
0.032557159662246704,
-0.06371638178825378,
-0.019368750974535942,
0.027535632252693176,
-0.02968771569430828,
-0.019902173429727554,
0.02722293511033058,
-0.015248523093760014,
-0.016186609864234924,
-0.0249788835644722,
0.11124616116285324,
-0.05286399647593498,
-0.01465991884469986,
-0.051429275423288345,
0.057315316051244736,
-0.002329124603420496,
0.008079510182142258,
-0.02705739066004753,
0.007918563671410084,
-0.009445254690945148,
-0.017152288928627968,
-0.07173611223697662,
-0.01588311232626438,
-0.08255171030759811,
-0.017336226999759674,
0.0258066076785326,
0.0463525652885437,
0.019846992567181587,
-0.04039295017719269,
-0.05400441959500313,
0.020913835614919662,
-0.03406545892357826,
0.032299645245075226,
0.007867979817092419,
-0.04793443903326988,
-0.018945692107081413,
0.03478281944990158,
0.06386353820562363,
-0.05683707445859909,
-0.04855982959270477,
0.011781277135014534,
0.008962416090071201,
-0.008695704862475395,
-0.050472795963287354,
-0.01006145030260086,
0.06051585078239441,
-0.013583877123892307,
0.03139834478497505,
-0.049884188920259476,
0.08748127520084381,
-0.05966973304748535,
-0.02209104411303997,
-0.00742192892357707,
0.003713263664394617,
0.0022176115307956934,
0.0010093639139086008,
-0.06143554300069809,
-0.015478446148335934,
-0.028381749987602234,
0.014374813996255398,
0.01820993609726429,
0.04627899080514908,
0.00559633644297719,
-0.03921574354171753,
0.01808117888867855,
-0.04528572037816048,
-0.000011756632375181653,
0.0166004728525877,
0.04609505087137222,
0.029393412172794342,
0.017244258895516396,
-0.010640856809914112,
0.008884241804480553,
-0.014466783031821251,
-0.008847454562783241,
0.004166212864220142,
-0.003285605926066637,
-0.008980809710919857,
-0.043703846633434296,
-0.03800174593925476,
0.009100370109081268,
-0.05065673217177391,
-0.052017878741025925,
0.018228331580758095,
-0.03465406224131584,
-0.013731027953326702,
0.02777475118637085,
-0.006985074374824762,
0.021741561591625214,
-0.015901505947113037,
0.015699172392487526,
-0.02547551691532135,
0.013124030083417892,
0.006562015041708946,
-0.04421887546777725,
-0.02439027838408947,
-0.04638935253024101,
0.05889718979597092,
0.052680060267448425,
-0.028804808855056763,
-0.04223233833909035,
-0.004028258845210075,
-0.03699008375406265,
0.01181806530803442,
-0.0143012385815382,
0.009238324128091335,
0.015128962695598602,
-0.0026441195514053106,
0.04855982959270477,
-0.012792940251529217,
0.027701176702976227,
0.008061115629971027,
-0.028381749987602234,
0.017593741416931152,
0.006157349795103073,
0.03807532414793968,
-0.04793443903326988,
-0.08372892439365387,
0.004586972761899233,
0.04881734400987625,
-0.018596207723021507,
-0.035187482833862305,
-0.03491157665848732,
-0.0446971170604229,
-0.026008939370512962,
-0.07125787436962128,
0.05190751701593399,
0.05503447726368904,
-0.04083440452814102,
-0.005508965812623501,
-0.027278117835521698,
0.09035071730613708,
-0.03224446251988411,
0.022201407700777054,
-0.016388943418860435,
-0.021281713619828224,
0.022127831354737282,
-0.017566151916980743,
0.04223233833909035,
-0.032961826771497726,
-0.08468540012836456,
-0.057609617710113525,
0.06253917515277863,
-0.0249788835644722,
-0.03562893718481064,
-0.032134100794792175,
0.009859117679297924,
0.05308472365140915,
-0.004632957279682159,
0.011073113419115543,
0.002554449485614896,
0.02422473393380642,
0.005587139632552862,
0.0341758206486702,
-0.010677644982933998,
-0.024187946692109108,
0.04624220356345177,
-0.06184021010994911,
0.003577608847990632,
-0.07048533111810684,
-0.03836962580680847,
0.022808406502008438,
0.06290705502033234,
-0.050803884863853455,
-0.030717771500349045,
0.005964213982224464,
-0.04326239600777626,
0.0012599804904311895,
-0.013703437522053719,
0.05039921775460243,
-0.06301742047071457,
-0.0414230078458786,
0.0007805901113897562,
0.031711041927337646,
-0.022532496601343155,
-0.012792940251529217,
-0.022900374606251717,
0.03664059937000275,
0.041202280670404434,
-0.040025074034929276,
0.02238534577190876,
0.0184030719101429,
-0.00358680565841496,
-0.04079761728644371,
0.008493372239172459,
-0.00017129296611528844,
0.020233262330293655,
-0.07295010983943939,
0.04054010286927223,
-0.018449056893587112,
-0.04171730950474739,
0.03465406224131584,
-0.023654524236917496,
-0.04914843663573265,
-0.04723547399044037,
-0.0309017114341259,
-0.04116549342870712,
0.04822874069213867,
0.04226912558078766,
-0.008980809710919857,
0.043041668832302094,
0.0007713931263424456,
0.024408672004938126,
0.010907568037509918,
-0.01313322689384222,
-0.07519416511058807,
0.03345846012234688,
0.010135025717318058,
0.032557159662246704,
-0.030975285917520523,
-0.001196751487441361,
-0.04322560876607895,
-0.021833529695868492,
-0.030828135088086128,
-0.032593946903944016,
0.014853054657578468,
-0.0424162782728672,
0.026615938171744347,
-0.02422473393380642,
0.03991470858454704,
-0.031343162059783936,
0.019148023799061775,
-0.006667779758572578,
0.04664686694741249,
0.01854102686047554,
0.03579448163509369,
-0.029411807656288147,
0.04344633221626282,
-0.006424061022698879,
0.012535425834357738,
-0.0013358552241697907,
0.04054010286927223,
0.018136361613869667,
0.0011455935891717672,
-0.021281713619828224,
-0.023488979786634445,
0.05937543138861656,
0.01079720538109541,
0.039399679750204086,
0.03638308495283127,
-0.0325387641787529,
-0.0417540967464447,
0.020325232297182083,
-0.0034856393467634916,
0.02196228690445423,
0.01880773715674877,
-0.03406545892357826,
-0.030000410974025726,
0.06798376142978668,
-0.03362400457262993,
-0.027572419494390488,
0.02626645378768444,
0.014816266484558582,
0.027462055906653404,
-0.030552227050065994,
0.038148898631334305,
-0.02718614786863327,
0.007753018755465746,
-0.02050917036831379,
0.027590813115239143,
0.06136196851730347,
-0.018587011843919754,
-0.013436726294457912,
-0.025880182161927223,
0.02606412209570408,
-0.07405374199151993,
0.039399679750204086,
-0.012636592611670494,
0.03520587831735611,
-0.01536808256059885,
0.035849664360284805,
0.09807614237070084,
0.007647253572940826,
-0.019092842936515808,
0.024371884763240814,
-0.0400986485183239,
0.006943687796592712,
-0.02242213487625122,
0.016756821423768997,
-0.011836458928883076,
0.0417540967464447,
0.05841894820332527,
-0.0857890322804451,
-0.03744992986321449,
0.020858654752373695,
0.01472429744899273,
-0.0011887041619047523,
0.04517535865306854,
0.05966973304748535,
0.010318963788449764,
-0.03737635537981987,
0.006883908063173294,
0.08961496502161026,
-0.030294712632894516,
0.0263032428920269,
0.02676308900117874,
0.034893181174993515,
0.0417540967464447,
0.028197811916470528,
0.00853015948086977,
-0.004961748141795397,
-0.045874327421188354,
-0.059485793113708496,
-0.06169305741786957,
0.039988286793231964,
-0.07269259542226791,
0.07453198730945587,
0.006079175975173712,
0.03640148043632507,
0.012314699590206146,
0.04594790190458298,
-0.011827262118458748
] |
10,036
|
torch.nn.modules.module
|
bfloat16
|
Casts all floating point parameters and buffers to ``bfloat16`` datatype.
.. note::
This method modifies the module in-place.
Returns:
Module: self
|
def bfloat16(self: T) -> T:
r"""Casts all floating point parameters and buffers to ``bfloat16`` datatype.
.. note::
This method modifies the module in-place.
Returns:
Module: self
"""
return self._apply(lambda t: t.bfloat16() if t.is_floating_point() else t)
|
(self: ~T) -> ~T
|
[
0.033695805817842484,
-0.04280034452676773,
-0.00963638722896576,
0.027746304869651794,
-0.022572042420506477,
-0.028341256082057953,
-0.03027033619582653,
-0.0018783743726089597,
-0.07874974608421326,
0.007932666689157486,
0.02727755717933178,
-0.05419453978538513,
-0.01799273118376732,
0.007536033634096384,
-0.0054356795735657215,
0.03868978098034859,
-0.010474726557731628,
0.02437492273747921,
0.051093585789203644,
0.0192186888307333,
-0.041105639189481735,
0.011763784103095531,
-0.008221128024160862,
0.010546841658651829,
0.03625589236617088,
-0.005661039613187313,
-0.003768016817048192,
0.025240303948521614,
-0.01867782510817051,
-0.028864091262221336,
-0.013548634946346283,
-0.048389267176389694,
-0.0006665017572231591,
0.03822103142738342,
0.02010209858417511,
-0.043809957802295685,
-0.03210927173495293,
0.01528841257095337,
-0.08718722313642502,
0.024266749620437622,
0.04016814008355141,
-0.07615360617637634,
-0.006102744955569506,
0.021291999146342278,
0.015513772144913673,
6.470292532867461e-7,
0.07312476634979248,
0.022734303027391434,
0.003206870751455426,
0.03868978098034859,
0.02019224315881729,
-0.03129797801375389,
-0.036003489047288895,
0.019687436521053314,
-0.0333172008395195,
0.02682683803141117,
0.017307637259364128,
-0.005422158166766167,
-0.06295652687549591,
0.033641718327999115,
0.000487059005536139,
0.001874994020909071,
-0.0019302071304991841,
-0.07016804814338684,
0.006643608678132296,
0.0475599430501461,
-0.048930130898952484,
0.009050452150404453,
-0.009365955367684364,
0.031478263437747955,
-0.049615226686000824,
0.015072067268192768,
-0.005516809411346912,
0.05754789337515831,
-0.06850939989089966,
-0.012457893230021,
-0.025582851842045784,
0.037571996450424194,
-0.028719861060380936,
-0.0054627228528261185,
-0.011051647365093231,
0.027259528636932373,
0.014900793321430683,
-0.0182271059602499,
-0.05812481418251991,
-0.03297465294599533,
-0.05448300018906593,
0.013864138163626194,
-0.017046218737959862,
-0.01995786838233471,
-0.040672946721315384,
-0.04168255999684334,
-0.04114169627428055,
0.05249983072280884,
0.04496379941701889,
-0.052716176956892014,
0.04005996882915497,
-0.03625589236617088,
-0.05877384915947914,
0.03380397707223892,
-0.07694686949253082,
0.02058887667953968,
-0.028611687943339348,
-0.027656162157654762,
0.027926594018936157,
-0.008076896890997887,
-0.03513810783624649,
-0.012854525819420815,
-0.030558796599507332,
-0.007463918533176184,
-0.01046571135520935,
-0.020949453115463257,
-0.010330495424568653,
-0.028810003772377968,
-0.03724747896194458,
-0.01873191073536873,
-0.006715723779052496,
0.04402630031108856,
0.03640012443065643,
0.038942184299230576,
0.06905025988817215,
0.015207283198833466,
-0.021742718294262886,
0.007707307115197182,
0.007207008078694344,
0.03384003788232803,
0.03923064470291138,
-0.02466338314116001,
-0.03713930398225784,
-0.0025713560171425343,
0.0125300083309412,
0.05783635377883911,
0.003871682332828641,
0.061946917325258255,
0.025132130831480026,
-0.0009955271380022168,
-0.07352139800786972,
-0.001603435375727713,
-0.05076906830072403,
0.007387296296656132,
-0.028467457741498947,
-0.007810972630977631,
0.10182660073041916,
0.007270108908414841,
0.012854525819420815,
0.026033570989966393,
-0.019398976117372513,
-0.019921811297535896,
-0.07218726724386215,
0.0010484866797924042,
0.01198914460837841,
0.03439892828464508,
0.06472335010766983,
0.016892975196242332,
-0.01543264277279377,
0.012917626649141312,
0.05076906830072403,
-0.021796805784106255,
-0.021111711859703064,
-0.009960905648767948,
-0.06616565585136414,
-0.004097042139619589,
-0.0012732831528410316,
-0.008464516140520573,
-0.005381593480706215,
-0.024843670427799225,
-0.03210927173495293,
-0.03760805353522301,
0.001660902169533074,
0.05798058584332466,
0.06360556930303574,
-0.01592843420803547,
-0.007756886072456837,
0.07045650482177734,
-0.016640571877360344,
0.02841337025165558,
-0.01710030622780323,
-0.044639281928539276,
0.06356950849294662,
-0.010573884472250938,
0.05873779207468033,
0.00018141468171961606,
-0.02249992825090885,
-0.06288441270589828,
0.06789641827344894,
0.03149629384279251,
0.016929032281041145,
0.009942877106368542,
-0.011637583374977112,
-0.026087656617164612,
0.09288431704044342,
0.014585290104150772,
0.034813590347766876,
-0.025420591235160828,
0.02201315015554428,
-0.029422983527183533,
0.0049218591302633286,
-0.042043134570121765,
0.05643010884523392,
0.018551623448729515,
0.03457921743392944,
-0.061658456921577454,
0.052608005702495575,
0.017623141407966614,
-0.015054038725793362,
0.017569053918123245,
0.069771409034729,
0.026267945766448975,
-0.012097316794097424,
-0.016334082931280136,
-0.005683575756847858,
-0.01799273118376732,
-0.021562431007623672,
0.03749987855553627,
0.0004126902495045215,
-0.027349673211574554,
-0.03887006640434265,
-0.021706661209464073,
-0.006440784782171249,
0.020318444818258286,
0.06612959504127502,
-0.022193439304828644,
-0.013224116526544094,
0.02172468975186348,
0.01646929793059826,
0.03713930398225784,
-0.03194701299071312,
-0.01216041762381792,
0.0024496617261320353,
-0.035751089453697205,
0.007243065629154444,
0.04460322484374046,
-0.07485552877187729,
0.02039055898785591,
0.04124986752867699,
-0.036291953176259995,
0.06555267423391342,
-0.0056565324775874615,
-0.018145976588129997,
-0.05134598910808563,
0.0407090038061142,
-0.003731959266588092,
0.0033060291316360235,
0.03721141815185547,
-0.02004801295697689,
-0.07709109783172607,
-0.002182610332965851,
0.010105135850608349,
-0.001977532636374235,
-0.003896472044289112,
-0.030053989961743355,
-0.06382191181182861,
0.013161015696823597,
0.028575628995895386,
0.00008591844380134717,
-0.026322031393647194,
-0.01779441349208355,
0.0026795286685228348,
-0.02949509769678116,
0.009402013383805752,
-0.025925397872924805,
0.004254794213920832,
0.03149629384279251,
0.009834703989326954,
0.024897757917642593,
0.029477069154381752,
-0.015901392325758934,
-0.017821457237005234,
0.03394820913672447,
0.03652632609009743,
0.0888458713889122,
-0.033587634563446045,
-0.03288451209664345,
0.0016428733943030238,
-0.03021625056862831,
-0.03713930398225784,
0.05480751767754555,
-0.03807680308818817,
-0.011204891838133335,
-0.02482564188539982,
-0.00019902092753909528,
-0.11632174253463745,
-0.009374969638884068,
0.042980633676052094,
-0.014125555753707886,
0.08098531514406204,
-0.00486326590180397,
0.01887614093720913,
0.06483152508735657,
-0.012764382176101208,
0.012223518453538418,
0.03185686841607094,
0.04900224879384041,
0.017623141407966614,
-0.016595499590039253,
-0.018353307619690895,
0.014233728870749474,
-0.00432240217924118,
0.07420649379491806,
-0.055853188037872314,
-0.019579265266656876,
-0.03605757653713226,
-0.024014346301555634,
0.08790837228298187,
0.04370178282260895,
-0.02899029292166233,
0.06854545325040817,
0.02053479105234146,
-0.020138157531619072,
0.02152637392282486,
-0.004917351994663477,
0.004615369718521833,
-0.016108723357319832,
0.003788299160078168,
0.03912246972322464,
-0.022319640964269638,
0.0209314227104187,
0.061658456921577454,
0.007220529951155186,
0.015612930990755558,
-0.02821505442261696,
0.012457893230021,
0.07521610707044601,
0.018497537821531296,
-0.011033618822693825,
0.0050255246460437775,
-0.007346731144934893,
-0.07521610707044601,
-0.0023347281385213137,
0.03306479752063751,
0.004013658966869116,
0.014567261561751366,
0.052211370319128036,
0.027836449444293976,
-0.04146621376276016,
-0.0063010617159307,
0.009365955367684364,
0.031081631779670715,
-0.0209314227104187,
-0.011150806210935116,
0.01873191073536873,
0.047199368476867676,
0.008937772363424301,
-0.012746353633701801,
-0.0523916594684124,
0.034092437475919724,
-0.034471042454242706,
-0.0196513794362545,
0.057872410863637924,
0.01970546506345272,
0.006219931878149509,
-0.10709100216627121,
0.020174214616417885,
0.05592530220746994,
0.004682977683842182,
-0.04694696515798569,
-0.0030446117743849754,
0.04673061892390251,
0.015099110081791878,
0.0044283210299909115,
-0.004746078513562679,
0.025781167671084404,
-0.02363574132323265,
-0.0004436772142071277,
0.009131581522524357,
0.0026727679651230574,
-0.02354559861123562,
0.02010209858417511,
0.005543852690607309,
0.03380397707223892,
0.027493903413414955,
-0.013620750047266483,
0.040420543402433395,
-0.01314298715442419,
-0.01435091532766819,
-0.0010513036977499723,
-0.061406053602695465,
0.04139409959316254,
-0.013701879419386387,
-0.039338815957307816,
0.01853359490633011,
0.011385180056095123,
-0.0012158164754509926,
0.02167060412466526,
0.053978193551301956,
0.02132805623114109,
0.047199368476867676,
-0.03266816586256027,
0.0009600329794920981,
0.02172468975186348,
-0.016153793781995773,
0.008604239672422409,
-0.11026407033205032,
0.009014394134283066,
-0.0822833925485611,
0.02186891995370388,
0.014693462289869785,
0.03721141815185547,
-0.002071056980639696,
-0.019741524010896683,
0.0011504620779305696,
-0.027926594018936157,
-0.05195896700024605,
-0.0006603043875657022,
-0.009843718260526657,
0.013179044239223003,
0.014711491763591766,
0.02870183065533638,
0.006391205359250307,
0.0021240166388452053,
0.045035913586616516,
0.04633398726582527,
-0.036291953176259995,
0.05066089704632759,
-0.019939839839935303,
0.03650829568505287,
0.001649634214118123,
-0.021291999146342278,
0.022626129910349846,
-0.015748146921396255,
0.06216326355934143,
0.03531839698553085,
-0.040961407124996185,
-0.030342450365424156,
-0.004633398726582527,
0.019867725670337677,
0.02201315015554428,
0.09317278116941452,
-0.0020958466921001673,
0.015153196640312672,
0.0196513794362545,
-0.025294389575719833,
-0.03513810783624649,
-0.015378556214272976,
0.005886399652808905,
-0.011105733923614025,
-0.005908935330808163,
-0.028034767135977745,
0.009699488058686256,
0.03138812258839607,
0.008987351320683956,
-0.01705523394048214,
0.0020485210698097944,
-0.09173047542572021,
-0.025871312245726585,
-0.07229544222354889,
-0.01792963035404682,
0.034615274518728256,
-0.026376117020845413,
-0.08668241649866104,
-0.012863541021943092,
0.0062604970298707485,
0.051814738661050797,
-0.027295585721731186,
0.02098551020026207,
-0.05772818252444267,
0.034092437475919724,
-0.0689060315489769,
0.04777628928422928,
-0.0030265829991549253,
-0.042439769953489304,
-0.03912246972322464,
-0.037716224789619446,
-0.017623141407966614,
0.03149629384279251,
-0.0196513794362545,
0.13889378309249878,
-0.029801586642861366,
-0.0193629190325737,
-0.008784526959061623,
0.04427870362997055,
-0.01768624223768711,
0.0010236972011625767,
-0.00651289988309145,
0.021346084773540497,
0.030162163078784943,
-0.005241870414465666,
0.005286942236125469,
-0.010033020749688148,
-0.0660574808716774,
-0.04950705170631409,
-0.011267992667853832,
-0.028395341709256172,
0.0438460148870945,
-0.03288451209664345,
0.00874396227300167,
0.04950705170631409,
0.015594902448356152,
0.02796265110373497,
-0.011790827848017216,
-0.008383386768400669,
-0.018443450331687927,
-0.0010191899491474032,
0.0009617232135497034,
-0.014531203545629978,
0.04817292466759682,
-0.03219941630959511,
0.007950696162879467,
0.008861149661242962,
0.055853188037872314,
-0.024537181481719017,
-0.020949453115463257,
-0.11242752522230148,
-0.07932666689157486,
0.022626129910349846,
-0.010186265222728252,
-0.027349673211574554,
0.009329898282885551,
-0.05509597808122635,
0.003310536267235875,
-0.03528233990073204,
-0.010033020749688148,
-0.07997570931911469,
0.023617712780833244,
0.03836526349186897,
0.026862895116209984,
-0.035697001963853836,
-0.02790856547653675,
-0.02172468975186348,
-0.03445301577448845,
-0.020066041499376297,
0.026700636371970177,
-0.02249992825090885,
-0.005624982062727213,
-0.007450396660715342,
-0.027926594018936157,
-0.031730666756629944,
-0.004155635833740234,
0.04074506089091301,
0.0060937306843698025,
-0.011700684204697609,
-0.027493903413414955,
-0.0018400632543489337,
-0.024212663993239403,
-0.005124683026224375,
-0.03439892828464508,
0.04171861708164215,
0.043016690760850906,
-0.007716321386396885,
-0.0657690241932869,
-0.04860561341047287,
-0.0879804864525795,
0.022968675941228867,
-0.030829228460788727,
-0.0012180700432509184,
-0.036147721111774445,
-0.025186218321323395,
-0.026358088478446007,
0.0024609295651316643,
0.013431447558104992,
-0.05956711620092392,
-0.024681411683559418,
0.033190999180078506,
0.0415743850171566,
0.030360480770468712,
-0.018659796565771103,
0.01177279930561781,
0.04608158394694328,
-0.031081631779670715,
-0.040132082998752594,
-0.06039644032716751,
-0.006810375023633242,
0.05444694310426712,
0.00539511488750577,
-0.028088852763175964,
0.0038581606931984425,
0.0381489172577858,
0.06010797992348671,
0.02024632878601551,
0.0092172184959054,
-0.028773946687579155,
0.030937401577830315,
0.03650829568505287,
-0.018984314054250717,
0.032559990882873535,
0.0324518196284771,
-0.01725354976952076,
-0.019002342596650124,
0.009672445245087147,
-0.0737377479672432,
-0.06021615490317345,
-0.0011053901398554444,
-0.029549185186624527,
0.042692169547080994,
-0.006783331744372845,
-0.024104490876197815,
0.01748792454600334,
0.014080483466386795,
0.019885754212737083,
0.0033803978003561497,
-0.0021961317397654057,
-0.0421513095498085,
0.04146621376276016,
-0.02796265110373497,
0.006490363739430904,
-0.05917048454284668,
-0.0933891236782074,
0.018145976588129997,
0.04608158394694328,
0.05336521565914154,
0.02147228643298149,
-0.02240978367626667,
0.03670661523938179,
-0.027728276327252388,
0.017505953088402748,
0.009663430973887444,
-0.020624933764338493,
-0.021778777241706848,
-0.0247715562582016,
-0.04453110694885254,
0.0182271059602499,
0.015612930990755558,
-0.008099433034658432,
-0.032505907118320465,
-0.03598546236753464,
0.022914590314030647,
-0.06212720647454262,
0.03647223860025406,
0.0025623415131121874,
0.048930130898952484,
0.00960934441536665,
0.057872410863637924,
-0.04564889147877693,
0.020318444818258286,
-0.021634547039866447,
-0.0195071492344141,
0.013548634946346283,
-0.06259595602750778,
-0.008973829448223114,
0.035949405282735825,
-0.015748146921396255,
-0.03548065572977066,
0.024194633588194847,
0.029855674132704735,
-0.05127387493848801,
-0.013620750047266483,
-0.0019899276085197926,
0.0384373776614666,
0.07846128940582275,
0.049903687089681625,
0.07038439065217972,
0.00037635097396560013,
0.019579265266656876,
-0.027728276327252388,
0.041646502912044525,
-0.011340107768774033,
-0.030342450365424156,
-0.0663459450006485,
0.01799273118376732,
0.0012439864221960306,
-0.07106948643922806,
0.0532570406794548,
-0.03706718981266022,
-0.02206723764538765,
0.0521031990647316,
-0.03695901483297348,
-0.024933815002441406,
0.033533547073602676,
-0.03405638039112091,
0.038942184299230576,
-0.04161044582724571,
-0.007810972630977631,
0.021886948496103287,
0.010429654270410538,
-0.007856044918298721,
0.014197670854628086,
-0.007265601772814989,
0.036291953176259995,
-0.03710324689745903,
-0.06010797992348671,
0.020426617935299873,
0.013846109621226788,
-0.08423049747943878,
-0.011556453071534634,
-0.009100031107664108,
0.03621983528137207,
0.007783929351717234,
0.059098370373249054,
-0.021219884976744652,
0.015531801618635654,
0.07197092473506927,
0.03854554891586304,
0.01789357326924801,
0.009627372957766056,
0.0013566663255915046,
-0.03391215205192566,
-0.07124977558851242,
0.058954138308763504,
-0.012737339362502098,
-0.02875591814517975,
0.0046784705482423306,
-0.028233082965016365,
0.019326861947774887,
-0.03944699093699455,
0.02408646233379841,
0.00015887869813013822,
0.02516818977892399,
-0.048389267176389694,
0.024645354598760605,
0.007026720326393843,
-0.019002342596650124,
-0.07334110885858536,
-0.052211370319128036,
0.015252355486154556,
0.06227143481373787,
0.030053989961743355,
0.02825111150741577,
0.012746353633701801,
-0.041502270847558975,
-0.005778226535767317,
0.04168255999684334,
0.039879679679870605,
-0.03416455537080765,
0.04662244766950607,
-0.038653723895549774,
0.06335316598415375,
-0.021778777241706848,
0.0009690473671071231,
-0.012683252803981304,
0.020805222913622856,
-0.03531839698553085,
0.009834703989326954,
0.07918243855237961,
0.0831487700343132,
0.05740366131067276,
0.0034660345409065485,
0.011484337970614433,
0.07038439065217972,
-0.06021615490317345,
0.017668213695287704,
0.07781225442886353,
-0.02983764559030533,
-0.020011955872178078,
-0.018605709075927734,
-0.02152637392282486,
0.0062604970298707485,
0.01572110317647457,
0.027854477986693382,
-0.007243065629154444,
-0.008937772363424301,
-0.012142389081418514,
0.008897206746041775,
-0.02103959582746029,
0.009100031107664108,
-0.021832862868905067,
0.059783462435007095,
0.014386973343789577,
-0.02260810136795044,
0.011682654730975628,
-0.024789584800601006,
0.0026344568468630314,
0.033894121646881104,
-0.0055528669618070126,
0.004563536960631609,
0.10261986404657364,
-0.02855760045349598,
-0.011286021210253239,
0.0246273260563612,
-0.02540256269276142,
-0.06454306095838547,
0.018290206789970398,
-0.0047055138275027275,
0.02551073580980301,
0.04280034452676773,
-0.05549260973930359,
0.048533499240875244,
-0.0020102099515497684,
0.03800468519330025
] |
10,037
|
torch.nn.modules.module
|
buffers
|
Return an iterator over module buffers.
Args:
recurse (bool): if True, then yields buffers of this module
and all submodules. Otherwise, yields only buffers that
are direct members of this module.
Yields:
torch.Tensor: module buffer
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> for buf in model.buffers():
>>> print(type(buf), buf.size())
<class 'torch.Tensor'> (20L,)
<class 'torch.Tensor'> (20L, 1L, 5L, 5L)
|
def buffers(self, recurse: bool = True) -> Iterator[Tensor]:
r"""Return an iterator over module buffers.
Args:
recurse (bool): if True, then yields buffers of this module
and all submodules. Otherwise, yields only buffers that
are direct members of this module.
Yields:
torch.Tensor: module buffer
Example::
>>> # xdoctest: +SKIP("undefined vars")
>>> for buf in model.buffers():
>>> print(type(buf), buf.size())
<class 'torch.Tensor'> (20L,)
<class 'torch.Tensor'> (20L, 1L, 5L, 5L)
"""
for _, buf in self.named_buffers(recurse=recurse):
yield buf
|
(self, recurse: bool = True) -> Iterator[torch.Tensor]
|
[
0.0006571353878825903,
-0.09951739013195038,
-0.06021912768483162,
0.010102197527885437,
-0.022891148924827576,
0.03168579190969467,
-0.047716762870550156,
0.02382255718111992,
-0.019935719668865204,
0.018628165125846863,
0.003427851013839245,
-0.030933501198887825,
-0.03209776058793068,
0.04417024552822113,
-0.019452104344964027,
0.002688993699848652,
0.03607415780425072,
-0.018171416595578194,
-0.009806654416024685,
0.04467177391052246,
-0.06612998992204666,
0.09063319116830826,
0.030557356774806976,
0.013962168246507645,
-0.0578547827899456,
0.00009249712456949055,
0.02324938401579857,
-0.005440677981823683,
0.01758033037185669,
-0.020670099183917046,
-0.05918024852871895,
-0.06197447329759598,
0.022049300372600555,
-0.011875455267727375,
-0.06233270838856697,
-0.03199029341340065,
-0.009582757949829102,
0.08690755814313889,
-0.055956143885850906,
-0.0590011328458786,
0.09543352574110031,
0.005404854658991098,
0.015153296291828156,
0.0027651183772832155,
0.015153296291828156,
0.012305336073040962,
0.05760401859879494,
0.010908223688602448,
-0.02106415666639805,
-0.0028457208536565304,
0.03184700012207031,
-0.01344272866845131,
-0.006255660206079483,
-0.04091031849384308,
0.033888932317495346,
0.002003871137276292,
0.031040972098708153,
-0.024879347532987595,
-0.009815610013902187,
0.02600778453052044,
-0.02432408556342125,
-0.04929299280047417,
0.03215149790048599,
0.008803599514067173,
-0.014105461537837982,
-0.06491199135780334,
-0.03245599567890167,
-0.05144239589571953,
-0.01632651314139366,
0.042773135006427765,
-0.027781043201684952,
-0.02889156900346279,
0.03276049345731735,
0.06899585574865341,
-0.10474760830402374,
-0.028945302590727806,
0.02405541017651558,
0.03539351373910904,
0.014768194407224655,
-0.03546516224741936,
0.039441559463739395,
0.0471077635884285,
-0.04843322932720184,
-0.01884310506284237,
0.004437623079866171,
-0.04216413572430611,
-0.01022757962346077,
-0.005015275441110134,
0.023267295211553574,
0.024718143045902252,
-0.07465595752000809,
0.01066641602665186,
0.04381201043725014,
0.041626784950494766,
-0.008982716128230095,
-0.028210923075675964,
-0.01581602916121483,
0.03424716740846634,
-0.06734798103570938,
0.044349364936351776,
-0.020293952897191048,
0.011929190717637539,
0.001872891909442842,
0.051693160086870193,
-0.0031748483888804913,
0.023428499698638916,
-0.028587069362401962,
-0.01604888029396534,
0.05867872014641762,
-0.0007758003775961697,
-0.020508892834186554,
0.061544593423604965,
0.04259401559829712,
0.01636233553290367,
0.014821929857134819,
0.004412994720041752,
0.023804645985364914,
0.006842268630862236,
0.017168361693620682,
0.023231470957398415,
0.034999456256628036,
0.038975853472948074,
0.008033396676182747,
-0.0018941620364785194,
0.03014538623392582,
0.011848587542772293,
0.06082812324166298,
0.007142289541661739,
-0.022783679887652397,
-0.03206193819642067,
-0.014257711358368397,
0.01839531399309635,
0.005270516965538263,
0.04309554398059845,
0.03815191611647606,
0.019470015540719032,
0.042235784232616425,
-0.031076794490218163,
-0.052839506417512894,
-0.02681381069123745,
-0.009520066902041435,
-0.004171186592429876,
-0.015538397245109081,
0.03320828825235367,
-0.013997991569340229,
-0.0586070753633976,
0.06258346885442734,
-0.031399205327034,
-0.024162879213690758,
-0.02199556492269039,
-0.023625528439879417,
-0.018484871834516525,
0.05258874222636223,
0.07687700539827347,
-0.05230215564370155,
0.0854029729962349,
0.013263612054288387,
0.032008204609155655,
-0.04069537669420242,
-0.0052123041823506355,
-0.0070124296471476555,
0.06810027360916138,
-0.030503621324896812,
0.02796016074717045,
-0.007339318282902241,
-0.010290270671248436,
-0.08404168486595154,
-0.04134019836783409,
-0.05086922273039818,
-0.010711194947361946,
0.05581285059452057,
-0.015583177097141743,
0.04818246513605118,
0.011991881765425205,
0.01850278303027153,
0.05455902963876724,
-0.035142749547958374,
-0.022622473537921906,
0.00266212597489357,
0.033459052443504333,
0.037793681025505066,
-0.012475497089326382,
0.02133283205330372,
-0.004101778846234083,
-0.034838251769542694,
0.015484662726521492,
0.008257292211055756,
-0.048827286809682846,
0.010245490819215775,
-0.014571165665984154,
0.014168152585625648,
0.05022440105676651,
0.056636787950992584,
-0.025774933397769928,
-0.03607415780425072,
0.015099560841917992,
-0.015565264970064163,
0.013881566002964973,
0.024610672146081924,
0.03188282251358032,
-0.032545555382966995,
0.00650194613263011,
0.004630174022167921,
0.02425243891775608,
-0.026151077821850777,
0.02792433649301529,
0.03326202183961868,
-0.005328730214387178,
-0.05072592571377754,
0.006389997899532318,
-0.011929190717637539,
-0.0032576899975538254,
0.05839213356375694,
0.06390893459320068,
0.031739529222249985,
0.0352502204477787,
-0.027172045782208443,
-0.00392490066587925,
0.0028390041552484035,
-0.04348960146307945,
0.06491199135780334,
-0.025685373693704605,
-0.06329993903636932,
-0.003490542061626911,
-0.006913915276527405,
0.0037816071417182684,
0.010630592703819275,
-0.014374136924743652,
-0.05298279970884323,
-0.029966270551085472,
0.054881442338228226,
0.04728688299655914,
-0.0128337312489748,
-0.006367608439177275,
0.002215453190729022,
-0.011069429107010365,
-0.011356016620993614,
-0.002382255857810378,
-0.00622431468218565,
-0.03926244005560875,
-0.012376982718706131,
-0.0032979913521558046,
-0.010424608364701271,
-0.027763132005929947,
-0.03376355022192001,
-0.02118953876197338,
-0.009323038160800934,
-0.0142666669562459,
-0.002727055922150612,
0.02435990795493126,
-0.021780624985694885,
-0.009717095643281937,
-0.003009165171533823,
-0.04123272746801376,
-0.0030584223568439484,
-0.08139075338840485,
-0.030826032161712646,
-0.012941201217472553,
-0.016380246728658676,
0.052839506417512894,
0.0048003350384533405,
0.0003134547150693834,
-0.038402680307626724,
0.04363289475440979,
0.05835631117224693,
0.03704139217734337,
-0.016693701967597008,
0.012269512750208378,
-0.009094664826989174,
0.02421661466360092,
-0.004515986889600754,
0.022819502279162407,
0.017374346032738686,
-0.013854698278009892,
-0.005561582278460264,
-0.06595087051391602,
0.023840470239520073,
0.0762321874499321,
-0.008499100804328918,
-0.016299644485116005,
0.0034457629080861807,
-0.027727307751774788,
-0.04262984171509743,
0.011329148896038532,
0.01074701827019453,
-0.004764511715620756,
-0.017553463578224182,
0.02842586487531662,
-0.03122008964419365,
-0.02919606678187847,
0.046642061322927475,
0.02179853618144989,
0.0231777373701334,
-0.009206612594425678,
0.009761875495314598,
-0.03279631957411766,
-0.03811609372496605,
0.005821301601827145,
0.055454615503549576,
-0.008454320952296257,
-0.030969325453042984,
-0.02290906198322773,
0.032814230769872665,
0.03320828825235367,
0.013156142085790634,
0.006219836883246899,
0.016102615743875504,
-0.008839422836899757,
-0.03413969650864601,
0.066667340695858,
0.007196024525910616,
0.009663361124694347,
0.06784950941801071,
0.008440887555480003,
0.025882402434945107,
-0.10052044689655304,
0.03336949273943901,
0.05194392427802086,
-0.04796752706170082,
0.026222724467515945,
-0.024037498980760574,
0.0478958785533905,
0.04843322932720184,
-0.010755974799394608,
-0.036486126482486725,
0.06075647845864296,
0.08368345350027084,
0.0001782773615559563,
-0.027207868173718452,
-0.021744800731539726,
-0.010890312492847443,
-0.03739962354302406,
-0.009027495980262756,
0.05806972458958626,
-0.03657568618655205,
0.04467177391052246,
0.012968068942427635,
0.009081230498850346,
0.01651458442211151,
-0.03689809516072273,
0.06981980055570602,
-0.05430826544761658,
-0.020061101764440536,
-0.010093241930007935,
-0.05620690807700157,
-0.009663361124694347,
0.02711831033229828,
-0.02742280811071396,
0.056135259568691254,
0.05251709744334221,
0.0685659795999527,
0.023930028080940247,
0.009905168786644936,
0.008588658645749092,
0.012914333492517471,
-0.016102615743875504,
-0.01371140405535698,
-0.003304708283394575,
-0.03010956384241581,
0.03632492199540138,
-0.023804645985364914,
0.10560736805200577,
0.015592132695019245,
-0.02328520640730858,
-0.01643398217856884,
-0.037220507860183716,
-0.023392677307128906,
0.01636233553290367,
0.06448210775852203,
-0.018914751708507538,
-0.007791588548570871,
0.045495711266994476,
-0.05205139145255089,
0.0285333339124918,
-0.022550826892256737,
-0.021314920857548714,
0.006551203317940235,
0.032348524779081345,
-0.006340740714222193,
0.05566955730319023,
0.002581523498520255,
0.016944466158747673,
0.06297753006219864,
-0.059287719428539276,
0.0004623456916306168,
0.01754450798034668,
0.02482561208307743,
-0.05230215564370155,
-0.03353069722652435,
-0.023661352694034576,
-0.0011978447437286377,
0.00144636956974864,
-0.0716109648346901,
0.052696213126182556,
-0.11513639241456985,
-0.034121785312891006,
0.09529022872447968,
0.009806654416024685,
-0.040587905794382095,
-0.07444101572036743,
0.04341795668005943,
-0.05409332737326622,
-0.052803684026002884,
0.018789371475577354,
0.016577275469899178,
-0.006067587528377771,
0.04786005616188049,
-0.013577066361904144,
-0.016174262389540672,
0.012206821702420712,
0.0035599498078227043,
-0.015636911615729332,
-0.03700556606054306,
-0.007845323532819748,
0.04961540177464485,
-0.036109983921051025,
0.017454950138926506,
-0.017678845673799515,
0.03138129413127899,
0.03336949273943901,
0.03010956384241581,
-0.011266457848250866,
0.021153714507818222,
-0.003911466803401709,
0.0027516845148056746,
0.0020475308410823345,
0.01285164337605238,
0.01839531399309635,
-0.009148399345576763,
0.005995940882712603,
-0.08726578950881958,
-0.012600879184901714,
0.027763132005929947,
-0.03010956384241581,
0.008817032910883427,
-0.07795170694589615,
-0.0062019252218306065,
-0.020634274929761887,
-0.036378659307956696,
0.026688428595662117,
0.07247073203325272,
0.02903486229479313,
0.0448150672018528,
-0.05735325440764427,
-0.004822724498808384,
0.028013894334435463,
0.005091399885714054,
0.08239381015300751,
-0.03259928897023201,
-0.0005983626469969749,
0.004542854148894548,
-0.010075329802930355,
0.07243490219116211,
-0.08002946525812149,
-0.017840050160884857,
-0.027297427877783775,
0.025345051661133766,
-0.038474325090646744,
-0.024700231850147247,
-0.030217032879590988,
-0.01693551056087017,
0.021153714507818222,
0.026992928236722946,
-0.0402296744287014,
0.018287843093276024,
-0.07780841737985611,
0.07408278435468674,
-0.026025695726275444,
0.013335258699953556,
-0.022515004500746727,
0.04918552190065384,
0.030557356774806976,
-0.02267620898783207,
-0.0816056951880455,
0.031703703105449677,
-0.009887256659567356,
-0.05355597659945488,
0.02190600521862507,
-0.030808119103312492,
-0.04477924481034279,
-0.01739225909113884,
-0.07530077546834946,
0.05470232293009758,
-0.005203348118811846,
0.011042561382055283,
-0.00886629056185484,
0.023858381435275078,
-0.0032017158810049295,
-0.003412178484722972,
-0.039513204246759415,
-0.023195648565888405,
-0.014069638215005398,
-0.0348561629652977,
-0.004871981684118509,
-0.013317347504198551,
0.040623731911182404,
0.0379369743168354,
0.017571374773979187,
-0.0005633788532577455,
-0.020813392475247383,
0.009394685737788677,
-0.014418916776776314,
0.042199958115816116,
-0.03700556606054306,
-0.0440627746284008,
0.041161082684993744,
0.03098723664879799,
-0.03224105387926102,
0.025506258010864258,
0.0007953913300298154,
0.00669449707493186,
0.028067629784345627,
-0.08010111004114151,
0.04359707236289978,
0.0032935133203864098,
-0.037829503417015076,
-0.006569114979356527,
0.005404854658991098,
-0.02405541017651558,
-0.025882402434945107,
0.019487926736474037,
0.013012847863137722,
0.03353069722652435,
-0.05097668990492821,
0.0344800166785717,
-0.03199029341340065,
-0.05907277762889862,
-0.022282151505351067,
0.03184700012207031,
0.027028752490878105,
0.040014732629060745,
0.060004185885190964,
-0.0010282433358952403,
0.006255660206079483,
-0.0029308015946298838,
-0.1237340047955513,
0.07225579023361206,
0.00969022884964943,
-0.06878092139959335,
0.041161082684993744,
-0.013953212648630142,
-0.005919815972447395,
0.04065955430269241,
-0.03182908520102501,
0.00940364133566618,
0.04348960146307945,
0.01371140405535698,
-0.002935279393568635,
0.011293325573205948,
-0.05359179899096489,
-0.009591714479029179,
-0.08719414472579956,
-0.07945629209280014,
-0.030772296711802483,
0.0039047501049935818,
-0.02126118540763855,
-0.012170998379588127,
-0.030736472457647324,
-0.029178155586123466,
0.01781318336725235,
0.010961959138512611,
0.09801281243562698,
-0.05316191911697388,
0.03229479119181633,
0.025148022919893265,
-0.01419502031058073,
0.012645658105611801,
0.04194919392466545,
0.006940783001482487,
0.042844779789447784,
0.0590011328458786,
0.004157752729952335,
0.041698433458805084,
-0.0016299644485116005,
0.05584867298603058,
0.0379369743168354,
-0.04198502004146576,
0.041626784950494766,
-0.02869454026222229,
-0.019828248769044876,
0.03310081735253334,
-0.04295225068926811,
0.01076493039727211,
0.007437832187861204,
0.03243808448314667,
0.01256505586206913,
-0.04760929197072983,
0.02099251002073288,
0.010138020850718021,
0.04757346957921982,
0.018189329653978348,
0.0005205587367527187,
0.016577275469899178,
-0.03936991095542908,
0.01174111757427454,
0.02493308298289776,
-0.08991672098636627,
0.023894203826785088,
-0.009851433336734772,
-0.008405064232647419,
-0.0007869952241890132,
0.021046245470643044,
-0.0034368070773780346,
0.01792960986495018,
-0.0402296744287014,
-0.02355388179421425,
-0.012636702507734299,
0.01823410764336586,
0.0413760207593441,
0.05190809816122055,
-0.06612998992204666,
-0.0064168656244874,
0.023894203826785088,
-0.0015180163318291306,
-0.03164996951818466,
-0.023840470239520073,
-0.014284579083323479,
0.006788533180952072,
0.06186700239777565,
0.00017953678616322577,
0.00018723320681601763,
0.032312702387571335,
-0.011767985299229622,
-0.005530236754566431,
-0.02590031549334526,
-0.0036248797550797462,
-0.023464323952794075,
-0.05015275254845619,
0.033584434539079666,
0.002778552006930113,
-0.026939192786812782,
-0.040552083402872086,
0.031435027718544006,
0.02398376353085041,
0.04485088959336281,
-0.018986400216817856,
-0.02034768834710121,
-0.03976396843791008,
0.00201170751824975,
0.030629003420472145,
0.016030969098210335,
0.0017833333695307374,
-0.009511111304163933,
-0.04900640621781349,
-0.047680940479040146,
0.004939150530844927,
0.010872400365769863,
0.011705294251441956,
0.07616053521633148,
-0.020329777151346207,
-0.024646496400237083,
0.010433563962578773,
0.007733375299721956,
0.0074243987910449505,
0.030503621324896812,
0.03747127205133438,
0.008051307871937752,
0.00812295451760292,
0.026258548721671104,
-0.023858381435275078,
0.016308600082993507,
-0.052230510860681534,
0.058714546263217926,
-0.01157095655798912,
-0.08167733997106552,
-0.022174682468175888,
-0.0352502204477787,
-0.010657460428774357,
0.009546934626996517,
0.0044913580641150475,
-0.014615945518016815,
0.050582632422447205,
-0.025649551302194595,
-0.05344850569963455,
-0.037292152643203735,
0.05341268330812454,
-0.038295209407806396,
0.02213885821402073,
-0.03007373958826065,
-0.025846580043435097,
-0.04972287267446518,
0.02341058850288391,
-0.006470600608736277,
0.0639805868268013,
-0.02301653102040291,
-0.005194392520934343,
-0.044385187327861786,
0.025040553882718086,
0.024413643404841423,
-0.001678102184087038,
0.020902950316667557,
0.011544088833034039,
0.08834049105644226,
-0.01655040867626667,
-0.025219669565558434,
0.08475815504789352,
0.04914969950914383,
-0.015789160504937172,
-0.010352960787713528,
-0.04313136637210846,
-0.013030759990215302,
-0.02953638881444931,
-0.010317137464880943,
0.005695919971913099,
-0.027172045782208443,
0.013684537261724472,
-0.0072497595101594925,
0.004831680562347174,
-0.044421009719371796,
0.019702866673469543,
0.00010446157830301672,
0.018144549801945686,
-0.008812555111944675,
-0.034802429378032684,
-0.01329047977924347,
-0.026025695726275444,
0.026401842013001442,
0.015493618324398994,
0.06172370910644531,
0.05412914976477623,
-0.007052730768918991,
0.02976924180984497,
0.047179412096738815,
0.07286478579044342,
-0.0007181471446529031,
0.004742121789604425,
-0.029142331331968307,
0.06441046297550201,
0.039513204246759415,
-0.010066374205052853,
0.06641657650470734,
-0.0578547827899456,
-0.06734798103570938,
-0.04094614088535309,
0.032312702387571335,
-0.013818874955177307,
0.009788742288947105,
-0.00950215570628643,
-0.015108516439795494,
-0.018054991960525513,
-0.0037950410041958094,
0.024915171787142754,
-0.0471077635884285,
0.06777786463499069,
-0.02704666368663311,
-0.008136388845741749,
-0.010155932977795601,
0.015036869794130325,
-0.014347270131111145,
-0.03465913608670235,
0.05846378207206726,
-0.044349364936351776,
0.01769675686955452,
-0.03987143933773041,
0.0509408675134182,
0.01957748457789421,
-0.014589077793061733,
-0.06906750798225403,
-0.03922661766409874,
-0.0164787620306015,
0.019720779731869698,
-0.015842895954847336,
0.03496363386511803,
0.013111362233757973,
-0.0655209869146347,
0.00289273913949728,
0.0015851851785555482,
0.010576857253909111
] |
10,038
|
torch.nn.modules.module
|
children
|
Return an iterator over immediate children modules.
Yields:
Module: a child module
|
def children(self) -> Iterator['Module']:
r"""Return an iterator over immediate children modules.
Yields:
Module: a child module
"""
for name, module in self.named_children():
yield module
|
(self) -> Iterator[torch.nn.modules.module.Module]
|
[
0.024296967312693596,
-0.03721706569194794,
-0.04317466914653778,
-0.042277440428733826,
-0.03675050660967827,
0.053510747849941254,
-0.006195367779582739,
0.053367193788290024,
0.0172357726842165,
0.013180296868085861,
0.019882598891854286,
0.0031066560186445713,
0.0409136526286602,
0.061729367822408676,
-0.020026154816150665,
-0.004773259162902832,
0.03158246725797653,
0.03610450401902199,
-0.04263633117079735,
-0.003985940478742123,
-0.07041455060243607,
0.04008819907903671,
0.013440493494272232,
-0.07838194072246552,
-0.06460050493478775,
0.034597158432006836,
0.016616685315966606,
0.01911098137497902,
-0.010327108204364777,
-0.03470482677221298,
-0.061370477080345154,
-0.006993901450186968,
-0.02467380277812481,
-0.06818941980600357,
-0.031438909471035004,
0.020851606503129005,
-0.05394141748547554,
0.040626537054777145,
0.004223706666380167,
0.022107727825641632,
0.1167115718126297,
0.018877701833844185,
-0.050747282803058624,
-0.007442516274750233,
-0.006415188778191805,
0.0011277049779891968,
0.05591532215476036,
-0.005989004857838154,
0.028657499700784683,
-0.007464946713298559,
0.05333130434155464,
0.020367102697491646,
0.0372888445854187,
-0.030200734734535217,
0.026199093088507652,
0.061693478375673294,
-0.008752470836043358,
-0.007792435586452484,
0.02959061972796917,
0.006083213724195957,
0.027670549228787422,
-0.028854891657829285,
-0.010497581213712692,
-0.012991879135370255,
0.026557983830571175,
0.01119742076843977,
-0.005383375100791454,
-0.06923020631074905,
-0.04647647216916084,
0.014283888973295689,
-0.06065269187092781,
-0.04956294223666191,
0.0467635840177536,
0.04762492701411247,
-0.03843729943037033,
-0.014445389620959759,
-0.032910365611314774,
0.045220352709293365,
0.03217463940382004,
-0.02763465978205204,
-0.03371787443757057,
0.011134614236652851,
-0.06858419626951218,
0.010093828663229942,
-0.011457616463303566,
-0.019254539161920547,
-0.002442706376314163,
-0.02176677994430065,
0.0039051901549100876,
0.05756622552871704,
-0.0723525658249855,
0.011161531321704388,
0.03911919146776199,
0.029680341482162476,
0.00858648307621479,
-0.016885854303836823,
-0.03402293100953102,
0.01586301252245903,
-0.05458742380142212,
0.014553057961165905,
-0.012022871524095535,
0.06266248971223831,
0.025911979377269745,
0.039155080914497375,
0.018177863210439682,
0.014642780646681786,
-0.06524650752544403,
-0.03551233187317848,
0.0913020446896553,
-0.04805559664964676,
-0.09582407772541046,
0.020815717056393623,
0.016562851145863533,
0.012211289256811142,
-0.024619968608021736,
-0.04985005408525467,
0.016724351793527603,
-0.030774962157011032,
0.01798047311604023,
-0.022179504856467247,
0.0004099216021131724,
0.04622524976730347,
0.018752090632915497,
-0.01095516886562109,
0.018249642103910446,
0.02144377864897251,
0.01896742545068264,
-0.00695352628827095,
-0.044574346393346786,
-0.07138355821371078,
0.018895646557211876,
0.012381763197481632,
0.020797772333025932,
-0.016948658972978592,
-0.005989004857838154,
-0.0016553878085687757,
0.07931505888700485,
-0.020725995302200317,
-0.052541740238666534,
-0.030523737892508507,
-0.047517258673906326,
-0.018168890848755836,
0.0003131890553049743,
0.05480276048183441,
-0.06808175146579742,
-0.05282885581254959,
0.014920921064913273,
-0.0062536876648664474,
-0.06976854056119919,
-0.010345052927732468,
-0.027580825611948967,
-0.02454819157719612,
0.04525624215602875,
0.025588976219296455,
-0.048773378133773804,
0.036355726420879364,
-0.012803460471332073,
0.013826302252709866,
-0.04708658903837204,
-0.016500044614076614,
-0.039334528148174286,
0.024422578513622284,
-0.022502508014440536,
0.015988623723387718,
-0.0364813394844532,
-0.03282064571976662,
-0.032910365611314774,
-0.09812098741531372,
-0.010488608852028847,
0.022179504856467247,
0.03775540366768837,
-0.01554000936448574,
0.0268092080950737,
-0.01562076061964035,
-0.035584110766649246,
0.024602023884654045,
0.019703153520822525,
0.007787949405610561,
-0.009600352495908737,
0.04744547978043556,
0.022179504856467247,
-0.04443078860640526,
-0.016661545261740685,
-0.04400011897087097,
0.04410778731107712,
0.011412755586206913,
-0.0031874068081378937,
0.022646065801382065,
0.052039291709661484,
-0.027491101995110512,
0.019667264074087143,
0.00023117671662475914,
0.04841448739171028,
0.015970679000020027,
-0.03240791708230972,
0.008003284223377705,
-0.04342589154839516,
-0.014606891199946404,
0.03059551492333412,
0.02763465978205204,
-0.05430031195282936,
0.008272453211247921,
-0.0019211920443922281,
-0.015243924222886562,
-0.02140788920223713,
0.05656132847070694,
-0.03551233187317848,
-0.03201313689351082,
-0.06844064593315125,
-0.01727166213095188,
-0.0513932891190052,
0.014687641523778439,
0.029859786853194237,
0.007541211321949959,
-0.0012168671237304807,
0.04238510876893997,
-0.03362815082073212,
-0.0608680285513401,
0.011637062765657902,
-0.02221539430320263,
-0.023973964154720306,
0.04740959033370018,
-0.018393198028206825,
-0.035871222615242004,
-0.030954407528042793,
-0.02417135424911976,
0.03233614191412926,
0.007034277077764273,
-0.02729371190071106,
0.0010374212870374322,
0.030864683911204338,
0.017971500754356384,
-0.04478968307375908,
-0.03332309052348137,
0.014032664708793163,
0.007707198616117239,
-0.03526110574603081,
0.025947868824005127,
-0.025265974923968315,
0.011969037353992462,
-0.04909638315439224,
0.014983727596700191,
-0.010318135842680931,
-0.012354846112430096,
-0.0006157235475257039,
-0.021515555679798126,
-0.002642340026795864,
-0.007424571551382542,
0.029518840834498405,
0.025732534006237984,
0.014795309863984585,
-0.06729219108819962,
-0.010946196503937244,
-0.030954407528042793,
0.01608731970191002,
-0.044861458241939545,
-0.013700690120458603,
0.011394810862839222,
0.007007359992712736,
0.0020782072097063065,
0.04155965521931648,
-0.031977247446775436,
-0.007707198616117239,
0.04658414050936699,
0.041093096137046814,
0.05591532215476036,
0.015037561766803265,
-0.020151767879724503,
0.023112624883651733,
-0.019810819998383522,
0.12467896938323975,
-0.031097963452339172,
-0.031815748661756516,
0.0149657828733325,
0.007935992442071438,
-0.028711333870887756,
-0.004252866376191378,
0.016652574762701988,
-0.04934760555624962,
-0.006603606976568699,
0.03599683567881584,
-0.03188752382993698,
-0.06625140458345413,
-0.0031088991090655327,
0.012354846112430096,
-0.014265944249927998,
-0.043390002101659775,
0.05871468037366867,
-0.00019556793267838657,
0.011888287030160427,
0.03529699519276619,
-0.013898080214858055,
-0.03513549640774727,
-0.04493323713541031,
0.029554730281233788,
-0.05333130434155464,
-0.07037866115570068,
-0.00963624194264412,
0.010416830889880657,
0.021336110308766365,
0.025373641401529312,
-0.04640469327569008,
-0.02225128374993801,
0.011000029742717743,
-0.04970649629831314,
0.054192643612623215,
0.02729371190071106,
0.02860366739332676,
-0.054695092141628265,
0.03771951422095299,
0.012399707920849323,
-0.023112624883651733,
0.04755314812064171,
-0.029016392305493355,
0.0016598739894106984,
-0.08469843864440918,
0.05343897268176079,
0.0013054684968665242,
0.0025122417137026787,
0.0028487027157098055,
-0.06940965354442596,
0.06467228382825851,
0.012794488109648228,
0.001876330585218966,
0.008905000053346157,
0.07436235249042511,
0.028478054329752922,
0.030182790011167526,
0.02352534979581833,
-0.05282885581254959,
-0.017908694222569466,
-0.021820614114403725,
-0.011314060539007187,
0.02731165662407875,
-0.013126462697982788,
0.0013088331324979663,
0.004131740424782038,
-0.00915173813700676,
0.024745581671595573,
-0.07687459886074066,
0.007994311861693859,
0.006617065519094467,
0.005571793299168348,
0.01251634769141674,
-0.0509985089302063,
0.01995437778532505,
0.05444386601448059,
-0.011969037353992462,
0.03396909683942795,
0.0019626887515187263,
0.04812737554311752,
0.029213782399892807,
-0.02402779832482338,
-0.00245392182841897,
0.009205571375787258,
0.0035283537581562996,
-0.013521243818104267,
0.012722710147500038,
-0.07271145284175873,
0.04378478601574898,
0.08512910455465317,
0.026234982535243034,
-0.011556312441825867,
-0.0005972181679680943,
-0.043748896569013596,
-0.09876699000597,
0.007348306942731142,
0.03535082936286926,
0.06043735891580582,
-0.021641168743371964,
-0.0015645434614270926,
0.025571031495928764,
-0.014597918838262558,
-0.01120639219880104,
-0.030290458351373672,
-0.015225979499518871,
0.04679947346448898,
0.04335411638021469,
0.027742326259613037,
0.02747315727174282,
-0.014346694573760033,
-0.05168040096759796,
0.025265974923968315,
-0.067328080534935,
-0.02106694132089615,
-0.03271297737956047,
0.09970010817050934,
-0.023327959701418877,
-0.028155053034424782,
0.002062505576759577,
-0.004308943171054125,
-0.029788009822368622,
-0.05936068296432495,
0.008918458595871925,
-0.05609476938843727,
-0.02860366739332676,
0.04626113548874855,
-0.014041637070477009,
-0.04679947346448898,
-0.040770094841718674,
0.03222847357392311,
-0.02435079962015152,
-0.016939686611294746,
0.0010144297266378999,
0.030039234086871147,
-0.05968368425965309,
0.05002950131893158,
-0.012955989688634872,
0.02241278439760208,
-0.003476763144135475,
0.01234587375074625,
-0.02273578755557537,
-0.05903768166899681,
-0.015055505558848381,
0.0419185496866703,
-0.04543568566441536,
0.08376532047986984,
-0.0012090163072571158,
0.040124088525772095,
0.006792025174945593,
0.04687125235795975,
-0.035386718809604645,
0.03364609554409981,
-0.005356458481401205,
0.009003695100545883,
-0.006056297104805708,
-0.020008211955428123,
0.015755344182252884,
-0.02582225576043129,
-0.018931536003947258,
-0.06707685440778732,
0.01896742545068264,
-0.03470482677221298,
-0.001657630898989737,
0.03707351163029671,
-0.02682715281844139,
-0.027078377082943916,
0.03396909683942795,
-0.04041120409965515,
0.024440523236989975,
0.039657529443502426,
0.03633778169751167,
0.015818150714039803,
-0.0681176409125328,
0.08577511459589005,
0.030864683911204338,
0.046512361615896225,
0.07249611616134644,
0.04529213160276413,
0.005769183859229088,
-0.038042519241571426,
-0.02991362102329731,
0.08096596598625183,
-0.03710940107703209,
-0.023650960996747017,
-0.03323337063193321,
0.035243161022663116,
-0.03420237824320793,
-0.0014366882387548685,
-0.00868966430425644,
0.009591380134224892,
0.0077161709778010845,
0.04285166785120964,
-0.02451230213046074,
0.01735241338610649,
-0.008855652064085007,
0.0509985089302063,
-0.036678727716207504,
0.00731690414249897,
0.0020367102697491646,
0.08419598639011383,
0.03549438714981079,
0.03190546855330467,
-0.0685483068227768,
-0.003129086922854185,
-0.020402992144227028,
-0.06765107810497284,
-0.021677058190107346,
0.004448013845831156,
-0.04557924345135689,
0.0022812052629888058,
-0.014938865788280964,
0.06614373624324799,
-0.016078347340226173,
-0.020725995302200317,
-0.03976519778370857,
0.014400528743863106,
-0.023794518783688545,
0.0005276829469949007,
-0.059109460562467575,
0.024386689066886902,
-0.02928556129336357,
0.012318956665694714,
0.020313268527388573,
0.02372273989021778,
0.013709662482142448,
0.03364609554409981,
0.01038991380482912,
0.0019492304418236017,
-0.034597158432006836,
-0.009402962401509285,
0.0346689373254776,
0.0530082993209362,
0.018823867663741112,
-0.028657499700784683,
0.0687277540564537,
0.03779129311442375,
-0.05376197397708893,
-0.001660995534621179,
0.032425861805677414,
0.0360865592956543,
-0.01806122437119484,
-0.027580825611948967,
-0.026898931711912155,
-0.008743498474359512,
-0.0010733103845268488,
-0.012686820700764656,
0.07838194072246552,
0.023453570902347565,
0.013261047191917896,
0.018097111955285072,
-0.05146506801247597,
0.002586263231933117,
-0.009564463049173355,
0.00152192497625947,
-0.007671309635043144,
-0.05526931956410408,
0.023166457191109657,
-0.004145198967307806,
0.012606070376932621,
0.055341098457574844,
-0.011089752428233624,
0.001743989298120141,
-0.0029967455193400383,
-0.06223181635141373,
-0.056489549577236176,
0.04654825106263161,
0.011942120268940926,
0.00572432205080986,
0.06689740717411041,
0.022161561995744705,
0.04023175686597824,
0.009402962401509285,
0.029339395463466644,
-0.009941299445927143,
-0.013413576409220695,
0.020833661779761314,
-0.012229233980178833,
0.027832049876451492,
0.02160527929663658,
0.018052252009510994,
-0.030774962157011032,
-0.10587304830551147,
-0.01717296615242958,
0.04310289025306702,
0.010165606625378132,
0.011062836274504662,
-0.03025456890463829,
-0.06822530925273895,
0.03761184960603714,
0.06338027119636536,
0.06678973883390427,
-0.01739727333188057,
-0.03994464501738548,
0.0755825862288475,
0.010515525937080383,
0.024602023884654045,
0.016805103048682213,
0.02090544067323208,
0.05178806930780411,
0.035584110766649246,
0.0256966445595026,
0.04400011897087097,
-0.0032905880361795425,
0.04622524976730347,
0.03562000021338463,
-0.016230875626206398,
-0.003402741625905037,
-0.016778185963630676,
-0.06151403486728668,
0.0467635840177536,
-0.05017305538058281,
0.0022823268081992865,
-0.004898871295154095,
0.008649289608001709,
-0.0020927870646119118,
-0.018931536003947258,
0.07016332447528839,
0.057135555893182755,
0.006150505971163511,
0.012606070376932621,
-0.026557983830571175,
0.009017153643071651,
-0.01862647756934166,
0.02108488604426384,
-0.02515830658376217,
-0.0765874832868576,
-0.022161561995744705,
-0.029500896111130714,
0.0236868504434824,
0.023274125531315804,
0.017621580511331558,
0.04468201473355293,
0.03649928420782089,
-0.011493505910038948,
-0.011520422995090485,
0.031313300132751465,
-0.03893974795937538,
0.0009533060365356505,
0.06628729403018951,
-0.01307262945920229,
-0.045722801238298416,
0.02745521254837513,
-0.054838649928569794,
-0.040949542075395584,
-0.0364813394844532,
-0.034920159727334976,
0.01414930447936058,
0.033412814140319824,
-0.02584020048379898,
-0.012749627232551575,
-0.01160117331892252,
-0.04234921932220459,
0.01896742545068264,
-0.031474798917770386,
-0.003232268150895834,
-0.01381732989102602,
-0.05103439837694168,
0.028549833223223686,
0.032461751252412796,
0.002420275704935193,
-0.021138720214366913,
-0.003023662371560931,
-0.04026764631271362,
0.000657220371067524,
-0.016598740592598915,
0.025050638243556023,
-0.05591532215476036,
-0.026396483182907104,
-0.007020818535238504,
-0.04138021171092987,
-0.015396453440189362,
-0.030182790011167526,
-0.02729371190071106,
-0.03500988334417343,
-0.0035956460051238537,
0.0014815496979281306,
0.012381763197481632,
-0.0040263161063194275,
-0.07615681737661362,
0.030128955841064453,
0.030344290658831596,
-0.03348459303379059,
0.013673773035407066,
0.004225949291139841,
-0.031115908175706863,
-0.04105720669031143,
0.00764887873083353,
-0.0012942531611770391,
0.007877672091126442,
0.12080293893814087,
-0.05627421662211418,
0.06578484177589417,
0.004836065229028463,
0.04450256749987602,
-0.0069490401074290276,
0.020026154816150665,
0.02273578755557537,
-0.025248030200600624,
-0.0043560476042330265,
-0.018249642103910446,
0.031438909471035004,
0.008250022307038307,
-0.03879619017243385,
-0.054695092141628265,
0.007882158271968365,
-0.03436387702822685,
0.06294959783554077,
0.028819002211093903,
0.019362205639481544,
-0.05541287362575531,
0.022753732278943062,
-0.006774080451577902,
0.04478968307375908,
0.0463688038289547,
0.01193314790725708,
-0.018770035356283188,
0.0013379930751398206,
0.022484563291072845,
-0.05114206299185753,
0.04773259162902832,
0.03274886682629585,
0.06517472863197327,
0.00486298231408,
0.007752060424536467,
0.10673438757658005,
0.020869551226496696,
-0.02549925446510315,
-0.03807840868830681,
0.01860853284597397,
0.023274125531315804,
-0.03240791708230972,
-0.0004988033324480057,
0.0030730098951607943,
0.03890385851264,
0.006446591578423977,
-0.006298549007624388,
0.08024817705154419,
0.039011526852846146,
0.030111011117696762,
-0.0364813394844532,
0.046332914382219315,
-0.045722801238298416,
-0.02174883522093296,
-0.0050917756743729115,
-0.06808175146579742,
0.08110951632261276,
0.021318165585398674,
0.04098542779684067,
0.005971060134470463,
0.053690195083618164,
-0.002206062199547887,
0.06442105770111084,
0.012390735559165478,
-0.030828794464468956,
0.02225128374993801,
0.0063030351884663105,
0.053367193788290024,
0.03517138585448265,
0.058284007012844086,
-0.02304084599018097,
-0.006581176072359085,
-0.06384682655334473,
-0.010901334695518017,
0.01624882034957409,
-0.056812550872564316,
-0.00048169991350732744,
0.022969067096710205,
-0.06822530925273895,
-0.06244715303182602,
0.020564492791891098,
-0.006159478332847357,
0.008721067570149899,
0.012893183156847954,
0.009169681929051876,
-0.0025660754181444645,
-0.017226800322532654,
0.00018337121582590044,
0.04827092960476875,
0.0027500074356794357,
0.01880592480301857,
0.02535569667816162,
0.012794488109648228,
0.014427445828914642,
-0.02451230213046074,
0.032138749957084656,
0.018429087474942207,
-0.044861458241939545,
-0.04988594353199005,
-0.03976519778370857,
-0.01945192925632,
-0.0005512351635843515,
0.02662976272404194,
-0.006128075532615185,
0.019218649715185165,
-0.007016332354396582,
0.025606920942664146,
-0.011457616463303566
] |
10,039
|
torch.nn.modules.module
|
compile
|
Compile this Module's forward using :func:`torch.compile`.
This Module's `__call__` method is compiled and all arguments are passed as-is
to :func:`torch.compile`.
See :func:`torch.compile` for details on the arguments for this function.
|
def compile(self, *args, **kwargs):
"""
Compile this Module's forward using :func:`torch.compile`.
This Module's `__call__` method is compiled and all arguments are passed as-is
to :func:`torch.compile`.
See :func:`torch.compile` for details on the arguments for this function.
"""
self._compiled_call_impl = torch.compile(self._call_impl, *args, **kwargs)
|
(self, *args, **kwargs)
|
[
-0.05855455622076988,
-0.04712330922484398,
0.0022984847892075777,
0.02419089712202549,
-0.030937781557440758,
0.01917443238198757,
-0.03618147224187851,
0.039082981646060944,
-0.0025868879165500402,
-0.04991994425654411,
0.05418481305241585,
0.013703513890504837,
0.006602681707590818,
0.04603961482644081,
-0.036426179111003876,
-0.050094734877347946,
0.00272234994918108,
0.020765019580721855,
-0.01390452217310667,
-0.04069104790687561,
-0.013345194980502129,
0.02125442959368229,
-0.007979150861501694,
-0.01285578403621912,
0.00029550387989729643,
0.039607349783182144,
0.03336735814809799,
0.015093092806637287,
-0.00037907520891167223,
-0.000524369184859097,
-0.010260156355798244,
0.027529381215572357,
-0.014227883890271187,
0.0017795778112486005,
0.018772415816783905,
0.011413768865168095,
-0.015888385474681854,
0.018405357375741005,
-0.07120933383703232,
-0.03382181003689766,
0.014708555303514004,
-0.07089471071958542,
0.06495185941457748,
0.025361988693475723,
-0.04596969857811928,
-0.04656398296356201,
-0.015599982813000679,
0.022233253344893456,
-0.007861168123781681,
-0.03567458316683769,
0.0024929384235292673,
-0.04499087482690811,
0.07376126199960709,
-0.04418684169650078,
-0.0015512588433921337,
0.045165665447711945,
0.029626857489347458,
0.03509777784347534,
0.022215774282813072,
-0.017103174701333046,
0.024260813370347023,
-0.008730746805667877,
-0.017094435170292854,
0.02011829800903797,
0.03761474788188934,
-0.0036268867552280426,
-0.029889043420553207,
-0.02083493582904339,
0.011457466520369053,
0.01618552766740322,
-0.04086583852767944,
-0.008420495316386223,
0.05373036116361618,
0.009954274632036686,
0.019803674891591072,
-0.04614448547363281,
-0.05390515178442001,
-0.015285361558198929,
0.00028485263464972377,
-0.009901837445795536,
-0.0025519300252199173,
-0.03761474788188934,
-0.03576197847723961,
-0.010242678225040436,
-0.022390563040971756,
-0.06302917748689651,
-0.014813428744673729,
-0.032231226563453674,
-0.016875946894288063,
-0.002074535470455885,
-0.04310314729809761,
0.0019860481843352318,
-0.016526367515325546,
0.02749442309141159,
0.018702499568462372,
-0.0014933596830815077,
0.035901810973882675,
-0.003561340505257249,
-0.026585517451167107,
0.020502833649516106,
0.061351191252470016,
0.07613840699195862,
-0.04530549794435501,
-0.04166987165808678,
0.03586685284972191,
0.018265526741743088,
-0.034800633788108826,
-0.019873591139912605,
-0.012130406685173512,
-0.002503862837329507,
-0.033542148768901825,
-0.02529207244515419,
-0.005711254198104143,
-0.038628529757261276,
-0.0026436946354806423,
-0.06621034443378448,
-0.05858951434493065,
-0.06669975817203522,
-0.024051066488027573,
0.08271049708127975,
0.005921002011746168,
-0.005252431146800518,
-0.016902165487408638,
-0.030710553750395775,
-0.03894314914941788,
0.05376531928777695,
0.015599982813000679,
-0.03757978975772858,
0.04687860235571861,
-0.1041746735572815,
0.011405029334127903,
-0.011763348244130611,
-0.001018150127492845,
0.01065343338996172,
-0.0023399973288178444,
0.001141595421358943,
0.025589214637875557,
-0.022215774282813072,
-0.03151458874344826,
0.02287997491657734,
0.013336455449461937,
0.008031588047742844,
0.07718714326620102,
0.06079186499118805,
0.04170482978224754,
0.009167720563709736,
0.02697005495429039,
0.01298687607049942,
-0.003985205665230751,
-0.009814443066716194,
0.05677170306444168,
-0.014367715455591679,
0.06044228747487068,
0.009805703535676003,
-0.037999287247657776,
0.059253714978694916,
-0.015136790461838245,
-0.002136804396286607,
-0.035534750670194626,
0.04488600045442581,
-0.016482671722769737,
-0.026096105575561523,
-0.04890616610646248,
0.02392871305346489,
0.012602339498698711,
-0.06299421936273575,
0.04006180539727211,
-0.04908095300197601,
-0.04488600045442581,
0.04163491353392601,
0.023421822115778923,
-0.02172636240720749,
0.06313404440879822,
0.028158623725175858,
0.011632256209850311,
0.0039742812514305115,
-0.00203630025498569,
0.04562011733651161,
-0.026463164016604424,
0.017374098300933838,
0.030448369681835175,
0.010880660265684128,
-0.046319276094436646,
-0.011588558554649353,
0.05012969300150871,
0.03831390663981438,
0.024068545550107956,
0.013747211545705795,
0.037999287247657776,
-0.009456124156713486,
0.02917240560054779,
0.005007725674659014,
0.027319634333252907,
-0.03709037974476814,
-0.03424130752682686,
-0.009202678687870502,
-0.02146417833864689,
0.02267022617161274,
0.017059477046132088,
0.030780469998717308,
-0.028106188401579857,
0.02487257681787014,
0.040201637893915176,
0.021184515208005905,
-0.028298456221818924,
0.0037820127326995134,
0.04995490238070488,
0.10305602103471756,
-0.032231226563453674,
-0.044746167957782745,
0.04104062542319298,
-0.045270539820194244,
0.032388534396886826,
0.08173167705535889,
-0.006563354283571243,
-0.010548559948801994,
-0.027476944029331207,
0.0012169734109193087,
0.021901153028011322,
0.014979478903114796,
0.05687657743692398,
0.023002328351140022,
-0.06222514063119888,
-0.04299827292561531,
0.010041669942438602,
-0.03214383125305176,
0.013117969036102295,
-0.019960986450314522,
-0.054429519921541214,
-0.050828851759433746,
-0.00991931650787592,
-0.02371896617114544,
-0.050304483622312546,
0.035377439111471176,
0.02539694681763649,
-0.000679495045915246,
0.02759929746389389,
0.05051422864198685,
-0.051912546157836914,
-0.03593676537275314,
0.02413845993578434,
0.05184263363480568,
0.018824853003025055,
-0.032912906259298325,
0.01905207894742489,
-0.01774989627301693,
0.0013852085685357451,
0.04415188357234001,
-0.03455592691898346,
0.028665514662861824,
-0.04362751543521881,
-0.03698550537228584,
-0.02576400525867939,
0.0009394947555847466,
-0.06026749685406685,
-0.018580147996544838,
0.02639324776828289,
-0.02911996841430664,
0.017793593928217888,
0.02602618932723999,
-0.020293086767196655,
-0.039712224155664444,
-0.00352201284840703,
-0.01880737394094467,
0.050409357994794846,
-0.022495437413454056,
-0.07536932826042175,
0.026882659643888474,
0.004614448640495539,
0.03733508661389351,
0.12235280871391296,
-0.015320319682359695,
-0.009333771653473377,
0.043068189173936844,
-0.03572702035307884,
-0.05617741867899895,
-0.026428205892443657,
0.03106013312935829,
0.0027310894802212715,
0.033856768161058426,
0.07099958509206772,
-0.06554614752531052,
-0.09452628344297409,
-0.05837976932525635,
-0.017880989238619804,
0.00015813007485121489,
0.025414425879716873,
0.020502833649516106,
-0.012628557160496712,
0.01332771684974432,
0.06428766250610352,
0.043068189173936844,
0.03392668440937996,
0.013677296228706837,
0.05058414489030838,
-0.034695759415626526,
-0.053485654294490814,
0.040656089782714844,
0.04408196732401848,
-0.026061147451400757,
-0.005641338415443897,
-0.03792937099933624,
-0.01180704589933157,
-0.021376783028244972,
0.013633598573505878,
-0.0033188199158757925,
-0.046319276094436646,
0.04499087482690811,
-0.047472890466451645,
0.016674939543008804,
0.05313607677817345,
-0.01243628840893507,
-0.012707212939858437,
0.013965698890388012,
0.04173978418111801,
-0.024645350873470306,
0.06411287188529968,
0.0003981928457506001,
0.011597298085689545,
0.01880737394094467,
-0.01791594736278057,
0.021027203649282455,
0.028193581849336624,
0.07970411330461502,
-0.0021586529910564423,
-0.02697005495429039,
0.037684664130210876,
-0.024855097755789757,
-0.014961999841034412,
-0.016561325639486313,
0.022268211469054222,
0.06393808126449585,
0.046319276094436646,
0.018213089555501938,
0.009333771653473377,
-0.0029211733490228653,
0.01075830776244402,
-0.007577134296298027,
-0.0010574777843430638,
-0.042753566056489944,
0.03859357163310051,
0.026305852457880974,
-0.03535996004939079,
0.03237105533480644,
0.023788880556821823,
0.0004787599900737405,
-0.023281991481781006,
0.03193408250808716,
0.02057274989783764,
-0.017557628452777863,
0.003050080733373761,
-0.021499136462807655,
0.000803486502263695,
0.03635626286268234,
0.04236903041601181,
0.01364233810454607,
-0.03085038624703884,
-0.0006587387761101127,
-0.03761474788188934,
-0.06848261505365372,
0.07418075948953629,
0.0055845314636826515,
-0.03168937563896179,
0.015739815309643745,
0.012925700284540653,
-0.01500569749623537,
-0.04023659601807594,
-0.01618552766740322,
0.015669899061322212,
0.039607349783182144,
-0.007376126479357481,
-0.022163337096571922,
0.006755622569471598,
0.027354592457413673,
-0.044746167957782745,
-0.009534779004752636,
-0.005545204039663076,
0.04523558169603348,
-0.030151227489113808,
0.002320333616808057,
0.0030741142109036446,
-0.03743995726108551,
0.005283019505441189,
-0.08096259832382202,
0.015163008123636246,
0.03256332501769066,
0.01837039925158024,
-0.004933440126478672,
0.020869892090559006,
-0.021551573649048805,
0.028717951849102974,
-0.008472931571304798,
-0.04415188357234001,
-0.049465492367744446,
-0.03712533786892891,
0.00594285037368536,
0.045585159212350845,
0.06778345257043839,
-0.06554614752531052,
-0.06313404440879822,
0.03625138849020004,
-0.028578119352459908,
0.04383726418018341,
0.01964636519551277,
-0.009674611501395702,
0.020328044891357422,
0.07585874199867249,
0.03974718227982521,
0.004832935985177755,
0.06484698504209518,
-0.028106188401579857,
0.028980135917663574,
-0.09711316972970963,
0.0014092421624809504,
-0.049255743622779846,
0.02293241210281849,
0.06914681196212769,
-0.04691356047987938,
0.0041315918788313866,
0.0026917618233710527,
0.033384837210178375,
0.032021477818489075,
0.047787509858608246,
0.03326248377561569,
0.0016954602906480432,
0.04670381546020508,
0.014804689213633537,
-0.0005342010990716517,
-0.001913947518914938,
-0.01185948308557272,
-0.07543924450874329,
-0.000647814420517534,
-0.014813428744673729,
0.03649609535932541,
0.03922281414270401,
-0.036111555993556976,
0.02896265685558319,
0.036006681621074677,
-0.008682679384946823,
0.046319276094436646,
0.017041997984051704,
-0.005335456226021051,
0.02854316122829914,
-0.05047927051782608,
-0.05058414489030838,
0.017636282369494438,
-0.016159309074282646,
-0.01591460406780243,
-0.1085793748497963,
0.009359989315271378,
0.06205035001039505,
0.08417873084545135,
0.06516160815954208,
-0.02586887963116169,
-0.0023312580306082964,
-0.043487682938575745,
-0.05390515178442001,
-0.03560466691851616,
0.02078249864280224,
0.026882659643888474,
-0.019314264878630638,
0.05268162116408348,
0.0034477273002266884,
-0.05554817244410515,
0.006502177566289902,
-0.0006898731808178127,
0.03219626843929291,
-0.013913261704146862,
-0.04953540861606598,
-0.019716281443834305,
0.06624530255794525,
-0.047368016093969345,
-0.023526696488261223,
-0.025414425879716873,
-0.025222156196832657,
0.009019149467349052,
-0.027476944029331207,
-0.012471246533095837,
0.011824524961411953,
-0.03635626286268234,
-0.01989107020199299,
-0.03820903226733208,
0.009499821811914444,
0.06851757317781448,
0.0008859654190018773,
0.017059477046132088,
0.05512867867946625,
0.003578819567337632,
0.022285690531134605,
0.003117811633273959,
-0.028193581849336624,
0.03771962225437164,
0.042124323546886444,
-0.00991931650787592,
-0.04523558169603348,
-0.026113584637641907,
-0.03158450126647949,
-0.0030784839764237404,
-0.007791251875460148,
0.00978822447359562,
-0.024155938997864723,
-0.015346537344157696,
0.0029889042489230633,
-0.025327030569314957,
0.022215774282813072,
0.06400799751281738,
0.06946143507957458,
-0.004636297468096018,
-0.05782043933868408,
0.01938418112695217,
-0.014061832800507545,
-0.014332757331430912,
-0.07065000385046005,
-0.016465192660689354,
-0.010767047293484211,
0.035062819719314575,
-0.029154926538467407,
0.019034601747989655,
-0.07550916075706482,
-0.05477909743785858,
0.04939557611942291,
0.021813757717609406,
-0.01607191562652588,
-0.0019063004292547703,
0.04869641736149788,
0.03095526061952114,
-0.003836634336039424,
0.010679651983082294,
0.05282145366072655,
-0.004653776530176401,
-0.023177117109298706,
-0.016797292977571487,
-0.029784169048070908,
-0.0022329387720674276,
0.014236622489988804,
-0.027948876842856407,
-0.02135930396616459,
0.03834886476397514,
-0.03656601160764694,
0.005540834274142981,
-0.01298687607049942,
-0.02006586082279682,
-0.014061832800507545,
-0.022477958351373672,
-0.035587187856435776,
-0.048311877995729446,
-0.017627542838454247,
0.03967726603150368,
-0.04257877543568611,
-0.017688719555735588,
-0.09082073718309402,
-0.005488397087901831,
-0.027686692774295807,
0.01629040203988552,
0.04184465855360031,
0.04488600045442581,
0.005645708180963993,
0.017103174701333046,
-0.03709037974476814,
0.04111054167151451,
0.0033931054640561342,
-0.013738472014665604,
0.033856768161058426,
0.0039305840618908405,
-0.02838585153222084,
0.03712533786892891,
0.051562968641519547,
0.00722755491733551,
-0.04027155041694641,
-0.057156238704919815,
0.014839647337794304,
0.006873605772852898,
-0.028350893408060074,
0.03294786438345909,
0.03016870655119419,
0.03515021502971649,
0.01873745769262314,
0.029259799048304558,
0.03230113908648491,
-0.04079592227935791,
0.018527710810303688,
-0.043697431683540344,
-0.02681274339556694,
0.04051625728607178,
-0.028193581849336624,
-0.026305852457880974,
-0.024522997438907623,
0.030728032812476158,
0.05792531371116638,
-0.019191911444067955,
-0.029364673420786858,
-0.009779484942555428,
-0.061770688742399216,
0.007747554685920477,
0.035325001925230026,
-0.006392933893948793,
-0.09732291847467422,
0.05635220557451248,
0.03614651411771774,
0.006034614983946085,
-0.05823993682861328,
-0.0020319304894655943,
0.03064063936471939,
-0.01712939329445362,
-0.02980164811015129,
-0.023893754929304123,
-0.03782449662685394,
0.05229708552360535,
-0.010662172921001911,
0.025781484320759773,
0.000712268112692982,
-0.012943179346621037,
-0.017146872356534004,
0.001296721282415092,
-0.055478259921073914,
-0.034538447856903076,
-0.021551573649048805,
0.03373441472649574,
0.07529941201210022,
0.052961286157369614,
-0.008599654771387577,
0.023421822115778923,
-0.05152801051735878,
0.010373770259320736,
0.03555222973227501,
0.052506834268569946,
0.02413845993578434,
-0.04775255173444748,
0.02177879959344864,
0.043907176703214645,
-0.00722755491733551,
0.02109711989760399,
0.03382181003689766,
0.02350921742618084,
-0.005086380988359451,
-0.07739689201116562,
0.005842346698045731,
0.020397961139678955,
0.014018136076629162,
-0.03841878101229668,
0.0015283176908269525,
0.01597578078508377,
-0.014996957965195179,
-0.08508763462305069,
-0.02759929746389389,
0.006541505455970764,
-0.001576384762302041,
-0.04929070174694061,
0.04845171049237251,
-0.024802662432193756,
0.020397961139678955,
0.030710553750395775,
0.042858440428972244,
0.04460633918642998,
0.052401959896087646,
0.01665746048092842,
-0.03785945475101471,
0.013196623884141445,
0.04991994425654411,
-0.03747491538524628,
0.02980164811015129,
-0.029189884662628174,
0.05390515178442001,
-0.04177474230527878,
-0.01650015078485012,
-0.0002677833253983408,
0.018405357375741005,
-0.019541490823030472,
-0.04355759918689728,
0.022582832723855972,
-0.06568598002195358,
-0.02209342084825039,
-0.06823790818452835,
-0.03656601160764694,
0.01802081987261772,
-0.004478986840695143,
0.01748771220445633,
-0.05551321431994438,
-0.028473244979977608,
0.01455998420715332,
-0.02765173465013504,
-0.01437645498663187,
-0.006135119125247002,
0.01770619861781597,
-0.043907176703214645,
0.013922001235187054,
-0.024627871811389923,
0.04887120798230171,
0.0029561312403529882,
-0.09061099588871002,
-0.025327030569314957,
0.05603758618235588,
0.01524166390299797,
-0.028403330594301224,
0.04142516478896141,
-0.0011809230782091618,
-0.06690950691699982,
-0.07592865824699402,
-0.0024011738132685423,
0.011649735271930695,
0.007869907654821873,
-0.000836259569041431,
-0.04922078549861908,
-0.00455764215439558,
-0.015407714061439037,
0.012698473408818245,
0.010452425107359886,
-0.020922329276800156,
-0.0023312580306082964,
-0.02293241210281849,
0.021167036145925522,
0.011964356526732445,
0.0038672226946800947,
0.04320801794528961,
-0.009954274632036686,
-0.06575589627027512,
0.007218815386295319,
0.05362548679113388,
0.007201336789876223,
0.012313935905694962,
0.018719978630542755,
0.013703513890504837,
0.049570366740226746,
-0.008503519929945469,
0.02424333430826664,
-0.040446341037750244,
0.02298484928905964,
-0.016508888453245163,
0.04995490238070488,
0.015355276875197887,
0.041599955409765244,
0.015250403434038162,
0.00042768861749209464,
-0.02062518708407879,
-0.011544860899448395,
-0.047997258603572845,
0.007970411330461502,
-0.004192768596112728,
-0.04964028298854828,
-0.029993915930390358,
-0.051562968641519547,
0.0025104174856096506,
-0.013318977318704128,
-0.008853099308907986,
0.10913870483636856,
0.03373441472649574,
-0.005151927005499601,
-0.008765704929828644,
0.07522949576377869,
-0.023893754929304123,
0.01437645498663187,
0.10599248856306076,
0.00401797890663147,
-0.011081668548285961,
0.06711925566196442,
-0.05268162116408348,
-0.031497109681367874,
-0.0007068059640005231,
-0.07781638205051422,
-0.11536121368408203,
-0.0007292008958756924,
-0.022914933040738106,
0.007948562502861023,
-0.03562214598059654,
0.028578119352459908,
0.00439814617857337,
0.07362142950296402,
0.05170280113816261
] |
10,040
|
torch.nn.modules.module
|
cpu
|
Move all model parameters and buffers to the CPU.
.. note::
This method modifies the module in-place.
Returns:
Module: self
|
def cpu(self: T) -> T:
r"""Move all model parameters and buffers to the CPU.
.. note::
This method modifies the module in-place.
Returns:
Module: self
"""
return self._apply(lambda t: t.cpu())
|
(self: ~T) -> ~T
|
[
0.013073280453681946,
-0.021206818521022797,
-0.03832557797431946,
0.021939262747764587,
-0.038223374634981155,
-0.0058467797935009,
-0.03483369201421738,
-0.023370085284113884,
-0.011633941903710365,
-0.045036811381578445,
0.03611120954155922,
-0.056824054569005966,
0.0042158132418990135,
0.07167734205722809,
0.001848144456744194,
0.02364262193441391,
-0.018873216584324837,
0.007252051029354334,
0.004335048608481884,
-0.053451403975486755,
0.0019737672992050648,
0.005868071690201759,
0.035157330334186554,
-0.012979594990611076,
0.003217219142243266,
0.042958714067935944,
0.029910983517766,
-0.0455818846821785,
0.006621807813644409,
-0.01909465342760086,
0.04145975783467293,
0.03413531556725502,
-0.02118978649377823,
-0.03229568526148796,
0.033743541687726974,
0.0037133225705474615,
-0.02451133541762829,
0.04762591794133186,
-0.07760503143072128,
-0.053076665848493576,
-0.01836220920085907,
-0.08639436960220337,
0.0023570230696350336,
0.004454283509403467,
-0.020917247980833054,
-0.02984284982085228,
0.06305834650993347,
0.03655408322811127,
0.07522033154964447,
-0.026265794411301613,
-0.015423915348947048,
-0.018464410677552223,
0.0007068939739838243,
0.020729878917336464,
-0.0033023871947079897,
0.020644711330533028,
0.008525311946868896,
-0.027355944737792015,
-0.00026628290652297437,
0.012962562032043934,
0.02481793984770775,
-0.013371367938816547,
-0.018753983080387115,
0.001051291823387146,
0.04551375284790993,
-0.0314440056681633,
-0.026606466621160507,
0.015560184605419636,
0.008576412685215473,
0.059821967035532,
-0.05202058330178261,
-0.056824054569005966,
0.03931352496147156,
0.05167991295456886,
0.0053229969926178455,
-0.022194767370820045,
-0.06581778824329376,
-0.0023804442025721073,
0.0010874882573261857,
-0.025328947231173515,
0.002188816200941801,
0.06479577720165253,
-0.048716068267822266,
-0.007848226465284824,
-0.05035129189491272,
-0.06953111290931702,
-0.016965454444289207,
-0.020423274487257004,
-0.06275174766778946,
-0.030064286664128304,
-0.035463932901620865,
0.033930908888578415,
-0.05723286047577858,
0.05365580692887306,
0.07964906841516495,
0.041970763355493546,
-0.005931947845965624,
-0.0035749245434999466,
-0.0579482726752758,
-0.00674104318022728,
-0.004386149346828461,
0.09770467132329941,
-0.02180299535393715,
-0.028871934860944748,
0.02819059044122696,
0.006106541957706213,
-0.020474374294281006,
-0.004709787666797638,
-0.005357063841074705,
0.0061746761202812195,
-0.05167991295456886,
0.05900435522198677,
-0.04544561728835106,
-0.005076009780168533,
-0.031716544181108475,
-0.027407046407461166,
-0.06268361210823059,
-0.017314644530415535,
0.03156324103474617,
0.048477597534656525,
-0.06425070017576218,
0.06036704033613205,
-0.012238633818924427,
-0.05011282116174698,
-0.014359315857291222,
0.05167991295456886,
0.024085495620965958,
-0.010501207783818245,
-0.03287482634186745,
-0.06513644754886627,
-0.06343308836221695,
-0.02972361445426941,
0.033862777054309845,
0.05113483592867851,
0.02941701002418995,
-0.022927211597561836,
-0.024272864684462547,
-0.00967507902532816,
0.006357787176966667,
0.011685042642056942,
-0.011327337473630905,
0.032687459141016006,
0.06850909441709518,
0.012545239180326462,
0.053212933242321014,
-0.030813762918114662,
-0.0011753176804631948,
0.003779327729716897,
-0.05539323389530182,
-0.0019971884321421385,
0.009726179763674736,
0.04002893716096878,
0.0749477967619896,
0.020474374294281006,
-0.013848308473825455,
0.0620022676885128,
0.008342200890183449,
-0.02965547889471054,
-0.006281136069446802,
-0.051850248128175735,
-0.0740620493888855,
0.002765829209238291,
-0.008082438260316849,
-0.004305239766836166,
0.017783068120479584,
-0.026742735877633095,
-0.04057401046156883,
-0.009342923760414124,
-0.019605662673711777,
0.020065568387508392,
0.023114580661058426,
-0.06244514137506485,
0.06329681724309921,
0.04030147194862366,
-0.026555366814136505,
0.049329277127981186,
-0.008107989095151424,
-0.014291182160377502,
-0.0024698704946786165,
0.03442488610744476,
0.04943147674202919,
0.01848144456744194,
-0.014691471122205257,
-0.03716729208827019,
0.021343087777495384,
0.007486262824386358,
0.0023378601763397455,
-0.004203038290143013,
-0.0068347277119755745,
0.007332960143685341,
0.06196819990873337,
0.03151214122772217,
0.016633300110697746,
-0.006396112963557243,
-0.0012487750500440598,
-0.00014704778732266277,
-0.02045734040439129,
-0.02130901999771595,
0.04704677313566208,
0.04646763205528259,
-0.0005951110506430268,
-0.0012242892989888787,
0.06333088874816895,
0.06568152457475662,
-0.031461041420698166,
-0.02180299535393715,
0.020678777247667313,
0.053144801408052444,
-0.032704491168260574,
0.0015181186608970165,
0.024051427841186523,
-0.01157432422041893,
0.022058498114347458,
0.03897285461425781,
0.03377760946750641,
-0.018873216584324837,
-0.0114210220053792,
0.011557290330529213,
0.01645444706082344,
-0.0033854260109364986,
0.019997434690594673,
0.040982816368341446,
-0.06956517696380615,
-0.07304003089666367,
-0.017263542860746384,
-0.026930104941129684,
-0.06568152457475662,
-0.029025236144661903,
-0.03462928906083107,
-0.040744345635175705,
0.06983771920204163,
-0.04554782062768936,
-0.07413018494844437,
-0.0013733331579715014,
0.0335221029818058,
-0.004939740989357233,
-0.004467058926820755,
0.04851166531443596,
-0.10281474888324738,
-0.05426901578903198,
0.01640334725379944,
0.011003699153661728,
0.013183998875319958,
-0.002980878110975027,
0.0018098189029842615,
-0.022859077900648117,
0.0031512139830738306,
0.014376349747180939,
-0.021479357033967972,
0.0076225316151976585,
0.017646798864006996,
-0.04701270908117294,
-0.02086614817380905,
0.01756163127720356,
-0.06438697129487991,
-0.03573647141456604,
0.033488038927316666,
-0.027475180104374886,
0.010910014621913433,
0.02401736192405224,
-0.030745629221200943,
-0.018123740330338478,
0.0406421460211277,
0.01963972859084606,
0.017263542860746384,
-0.0017352969152852893,
-0.07671929150819778,
0.03372650593519211,
0.008665839210152626,
0.04186856374144554,
0.02647019922733307,
0.0004162583500146866,
0.004041219130158424,
0.014359315857291222,
-0.018822116777300835,
-0.06227480247616768,
-0.03597494214773178,
0.060503311455249786,
0.015287647023797035,
-0.004024185705929995,
0.031580276787281036,
-0.07058719545602798,
-0.06976958364248276,
-0.06172972917556763,
-0.05822081118822098,
-0.035702403634786606,
0.016539616510272026,
0.029365908354520798,
0.024903107434511185,
-0.023318983614444733,
0.021700793877243996,
0.022382136434316635,
-0.006055441219359636,
-0.034782588481903076,
0.06513644754886627,
-0.03173357620835304,
-0.10063444823026657,
0.018464410677552223,
0.06908824294805527,
0.0010188216110691428,
0.03040495701134205,
-0.031955014914274216,
-0.0843503326177597,
0.02430693246424198,
0.0569603256881237,
0.03359023854136467,
0.029178539291024208,
0.018396276980638504,
-0.06271767616271973,
0.021223852410912514,
0.028718631714582443,
-0.011514706537127495,
-0.008942634798586369,
0.022620607167482376,
0.029076337814331055,
-0.0027253744192421436,
0.05011282116174698,
0.05716472864151001,
0.010092401877045631,
0.022876111790537834,
-0.03979046642780304,
0.02074691280722618,
0.0222969688475132,
0.0538942776620388,
-0.0015692193992435932,
0.0013041342608630657,
0.031052233651280403,
-0.023370085284113884,
-0.020355138927698135,
0.008316650055348873,
0.000630775117315352,
0.03239788860082626,
0.012613372877240181,
0.01013498567044735,
-0.043810393661260605,
0.006745301652699709,
0.01068857777863741,
0.024085495620965958,
0.021343087777495384,
-0.0193331241607666,
0.02590809017419815,
0.04990841820836067,
-0.019316090270876884,
0.01052675861865282,
-0.016795119270682335,
-0.011787244118750095,
0.02583995647728443,
0.035157330334186554,
0.044491738080978394,
-0.0385640487074852,
0.036996956914663315,
0.024102529510855675,
0.008018562570214272,
0.04943147674202919,
0.02873566560447216,
0.025397082790732384,
-0.036860689520835876,
0.005931947845965624,
-0.006434438284486532,
-0.0579482726752758,
0.03316440060734749,
-0.001188092865049839,
-0.007975978776812553,
0.02781585231423378,
0.015245063230395317,
-0.016105258837342262,
-0.06244514137506485,
0.009623978286981583,
0.02807135507464409,
0.01732316054403782,
-0.018805082887411118,
0.013098830357193947,
0.031035199761390686,
0.018072638660669327,
-0.026759769767522812,
0.03825744241476059,
-0.051986515522003174,
0.022807976230978966,
-0.02326788380742073,
0.008729714900255203,
0.06626066565513611,
-0.0010129662696272135,
0.03403311222791672,
-0.03652001544833183,
0.03900691866874695,
0.025158612057566643,
0.04837539419531822,
-0.03958606347441673,
0.007281859405338764,
-0.03083079680800438,
-0.00004371511022327468,
-0.018157806247472763,
-0.07304003089666367,
-0.011821310967206955,
-0.02093428187072277,
0.04333345219492912,
0.009104453958570957,
0.04275431111454964,
-0.04445767030119896,
-0.0648639127612114,
0.016633300110697746,
-0.016113776713609695,
0.020610643550753593,
0.044798340648412704,
-0.03679255396127701,
-0.018379243090748787,
0.03379464149475098,
0.015756070613861084,
0.011940546333789825,
0.06680573523044586,
-0.03311329707503319,
0.03750796616077423,
-0.033556170761585236,
0.006689942441880703,
0.007145591080188751,
-0.01262188982218504,
0.09034615755081177,
-0.0599241703748703,
0.05392834544181824,
0.01984413154423237,
0.016599232330918312,
0.05089636519551277,
-0.013286200352013111,
-0.004026314709335566,
0.04186856374144554,
0.002291017910465598,
0.05839114636182785,
0.02677680365741253,
0.0009400412091054022,
0.042958714067935944,
-0.07004211843013763,
0.003890046151354909,
-0.03112036921083927,
0.016812153160572052,
0.030047252774238586,
-0.03818930685520172,
0.051066700369119644,
-0.0021355862263590097,
0.025226745754480362,
0.01890728436410427,
0.03483369201421738,
0.012758159078657627,
0.033556170761585236,
-0.07651488482952118,
-0.03921132534742355,
0.007746024988591671,
-0.0620022676885128,
0.054609689861536026,
-0.08196563273668289,
0.010203120298683643,
0.03204018250107765,
0.029263706877827644,
0.07065533101558685,
-0.01854957826435566,
0.044423602521419525,
-0.04898860305547714,
0.002812671475112438,
-0.07699182629585266,
0.04118721932172775,
-0.010927047580480576,
-0.0054379734210669994,
-0.007192433346062899,
0.0038815292064100504,
-0.032568223774433136,
0.013371367938816547,
0.036009009927511215,
0.05515476316213608,
0.007375544402748346,
0.002131327986717224,
-0.003964568022638559,
0.06895197182893753,
-0.02762848325073719,
0.00396669702604413,
-0.03481665626168251,
-0.028394993394613266,
0.025192679837346077,
-0.05300853028893471,
-0.0027189867105334997,
0.03430565074086189,
-0.056585583835840225,
-0.009402541443705559,
-0.059345025569200516,
0.07174547761678696,
0.06401222944259644,
-0.009198138490319252,
0.03703102469444275,
0.06588592380285263,
-0.0077034407295286655,
0.07413018494844437,
-0.01212791632860899,
-0.06339902430772781,
0.02614656090736389,
0.019980400800704956,
-0.0005461394903250039,
-0.09313967078924179,
0.0077545419335365295,
-0.021581558510661125,
-0.019878199324011803,
0.009692112915217876,
0.05655151605606079,
0.0208150465041399,
0.0243750661611557,
-0.023915160447359085,
-0.0508282333612442,
0.027832886204123497,
0.0344589501619339,
-0.018464410677552223,
-0.034101247787475586,
-0.04554782062768936,
0.048307258635759354,
0.008512536063790321,
-0.04132349044084549,
-0.038291510194540024,
-0.04023334011435509,
-0.008112247101962566,
-0.00512711051851511,
-0.03835964575409889,
0.032142382115125656,
-0.02045734040439129,
-0.06115058809518814,
0.01793636940419674,
0.02137715555727482,
0.007963202893733978,
0.008044112473726273,
0.014785155653953552,
0.039449792355298996,
-0.006038407329469919,
-0.015466499142348766,
0.05110076814889908,
0.018004504963755608,
0.010194603353738785,
-0.04650169983506203,
-0.02166672609746456,
0.01737426221370697,
0.0335221029818058,
-0.04316311702132225,
0.014597786590456963,
-0.034544121474027634,
-0.013993093743920326,
-0.04081248119473457,
-0.031478073447942734,
-0.06762335449457169,
0.08591742813587189,
0.016318179666996002,
0.0032278653234243393,
-0.03917725756764412,
-0.0467742383480072,
0.04282244294881821,
-0.09463862329721451,
-0.0021441031713038683,
-0.08162496238946915,
-0.05294039845466614,
-0.05876588448882103,
0.018123740330338478,
0.020116670057177544,
0.018072638660669327,
0.035225462168455124,
0.024153629317879677,
-0.013763140887022018,
0.0455818846821785,
0.007997270673513412,
-0.014972525648772717,
0.031171469017863274,
0.013669455423951149,
0.022518405690789223,
0.019145755097270012,
-0.025771820917725563,
0.026299862191081047,
-0.010424557141959667,
-0.028633464127779007,
0.0466720350086689,
-0.008593445643782616,
0.022586539387702942,
-0.02217773348093033,
0.022893143817782402,
0.03818930685520172,
0.020491408184170723,
0.04704677313566208,
-0.04169822856783867,
-0.052156850695610046,
-0.016369279474020004,
-0.015057693235576153,
-0.008205931633710861,
-0.04980621486902237,
-0.007746024988591671,
-0.09606944769620895,
-0.0032555449288338423,
0.03163137659430504,
0.024358034133911133,
-0.018753983080387115,
0.02866753190755844,
0.04071027785539627,
-0.022399170324206352,
0.017263542860746384,
0.016062675043940544,
-0.0416300930082798,
-0.09259459376335144,
0.0026976948138326406,
0.012366386130452156,
0.06983771920204163,
-0.04711490869522095,
-0.0032555449288338423,
0.07460712641477585,
-0.0038410744164139032,
-0.007988753728568554,
-0.04837539419531822,
-0.05610864609479904,
0.009777280502021313,
0.020338106900453568,
-0.007963202893733978,
0.04960181191563606,
-0.03900691866874695,
-0.011940546333789825,
0.03156324103474617,
0.0096410121768713,
-0.05753946676850319,
-0.02388109266757965,
-0.016437413170933723,
0.04820505902171135,
-0.026572400704026222,
0.01612229272723198,
0.018583646044135094,
-0.0496358796954155,
-0.04701270908117294,
-0.003140568034723401,
0.02578885480761528,
0.004122128710150719,
-0.07978533208370209,
0.04002893716096878,
0.021700793877243996,
-0.0022825009655207396,
-0.06653320044279099,
0.03934759274125099,
0.0058510382659733295,
-0.014350798912346363,
-0.061559394001960754,
-0.031086301431059837,
0.05205465108156204,
-0.019452359527349472,
-0.033181432634592056,
0.005761611741036177,
0.05491629242897034,
0.007839709520339966,
-0.04691050574183464,
-0.02468167059123516,
-0.03709915652871132,
-0.043571922928094864,
-0.004147679079324007,
0.034288614988327026,
0.010637477040290833,
-0.04953368008136749,
0.017263542860746384,
-0.017050623893737793,
0.022876111790537834,
0.020951315760612488,
-0.004441508557647467,
-0.010484174825251102,
-0.014223047532141209,
0.020763946697115898,
-0.04636543244123459,
-0.03377760946750641,
0.0167610514909029,
0.05539323389530182,
-0.007107265293598175,
0.021837061271071434,
-0.004454283509403467,
-0.03088189847767353,
0.016369279474020004,
-0.05556356906890869,
-0.0019652503542602062,
-0.01885618455708027,
-0.020304039120674133,
-0.044116996228694916,
-0.03679255396127701,
-0.0046075861901044846,
0.02050844207406044,
0.004320144187659025,
-0.026180626824498177,
-0.021445289254188538,
0.014614819549024105,
0.006549415178596973,
-0.0004947725683450699,
-0.015986023470759392,
0.01145508885383606,
-0.0406421460211277,
0.012919978238642216,
-0.036383748054504395,
0.05907249078154564,
0.010228670202195644,
-0.06718047708272934,
0.008231482468545437,
0.04524121433496475,
0.03863218054175377,
-0.009002252481877804,
-0.015730520710349083,
0.00802707951515913,
-0.011080349795520306,
-0.07106413692235947,
0.023131614550948143,
0.04605882614850998,
-0.01230676844716072,
-0.03706509247422218,
-0.060264840722084045,
-0.042277369648218155,
0.01277519203722477,
0.057130660861730576,
-0.006970996502786875,
0.021598592400550842,
-0.022944245487451553,
-0.04592255875468254,
0.08557675778865814,
0.028343893587589264,
-0.007447937037795782,
0.06070771440863609,
0.0344078503549099,
0.015049176290631294,
-0.00896818470209837,
0.012604855932295322,
0.014018644578754902,
0.034544121474027634,
0.004735338035970926,
0.013149931095540524,
0.042038898915052414,
-0.010356422513723373,
0.02647019922733307,
0.00011071833432652056,
-0.023625588044524193,
0.00153515231795609,
0.04183449596166611,
0.04844352975487709,
0.0268960390239954,
-0.0017725579673424363,
0.017970437183976173,
0.013677972368896008,
0.03498699143528938,
-0.04646763205528259,
0.00822722353041172,
-0.019009485840797424,
-0.04851166531443596,
-0.016939904540777206,
-0.031035199761390686,
-0.011676525697112083,
-0.0030128161888569593,
-0.004290335346013308,
-0.0014233693946152925,
-0.005659410264343023,
0.016914354637265205,
0.0008756329771131277,
0.08271510899066925,
0.005186728201806545,
0.016956938430666924,
0.030064286664128304,
0.04438953474164009,
0.03406718000769615,
0.059787899255752563,
-0.03972233086824417,
0.024460235610604286,
0.01739981211721897,
-0.03958606347441673,
-0.05420088395476341,
-0.010731161572039127,
-0.05116890370845795,
-0.015006592497229576,
0.06316055357456207,
0.0002741343341767788,
0.008848950266838074,
0.0456840880215168,
0.04145975783467293
] |
10,041
|
torch.nn.modules.module
|
cuda
|
Move all model parameters and buffers to the GPU.
This also makes associated parameters and buffers different objects. So
it should be called before constructing optimizer if the module will
live on GPU while being optimized.
.. note::
This method modifies the module in-place.
Args:
device (int, optional): if specified, all parameters will be
copied to that device
Returns:
Module: self
|
def cuda(self: T, device: Optional[Union[int, device]] = None) -> T:
r"""Move all model parameters and buffers to the GPU.
This also makes associated parameters and buffers different objects. So
it should be called before constructing optimizer if the module will
live on GPU while being optimized.
.. note::
This method modifies the module in-place.
Args:
device (int, optional): if specified, all parameters will be
copied to that device
Returns:
Module: self
"""
return self._apply(lambda t: t.cuda(device))
|
(self: ~T, device: Union[int, torch.device, NoneType] = None) -> ~T
|
[
0.01285602431744337,
0.0038013935554772615,
-0.03390444070100784,
-0.03351432830095291,
-0.07426349073648453,
-0.012598903849720955,
-0.04631715267896652,
-0.0202149897813797,
-0.0009065713966265321,
-0.03879859670996666,
0.006707298569381237,
-0.09703195840120316,
-0.040075331926345825,
0.058481615036726,
0.018619069829583168,
0.03420589119195938,
-0.00037819985300302505,
0.021225741133093834,
0.009362732991576195,
-0.007837741635739803,
0.020179525017738342,
-0.012483643367886543,
-0.06075136736035347,
-0.013618520461022854,
-0.04894155636429787,
0.03378031402826309,
0.00441759591922164,
-0.01272303145378828,
0.037770114839076996,
-0.029028017073869705,
0.06337577104568481,
0.010222756303846836,
0.03229078650474548,
0.016375916078686714,
0.04394100606441498,
0.019133310765028,
0.04163578897714615,
0.07922857999801636,
-0.05064387246966362,
-0.03234398365020752,
-0.06319844722747803,
-0.08894596248865128,
0.015560222789645195,
0.023264972493052483,
0.051388632506132126,
0.03769918531179428,
0.04943806678056717,
0.008533740416169167,
-0.005935937166213989,
0.016774896532297134,
0.011268970556557178,
0.0003186299290973693,
-0.022130094468593597,
0.02154492400586605,
-0.04050091281533241,
-0.050714801996946335,
-0.008631269447505474,
-0.03046434558928013,
-0.03097858652472496,
0.017696982249617577,
0.011286702938377857,
-0.0606449730694294,
0.022555673494935036,
-0.03904685005545616,
-0.011632486246526241,
-0.02425798960030079,
0.003437878331169486,
0.005075913388282061,
0.021456262096762657,
0.05911998078227043,
-0.06025485694408417,
0.018530407920479774,
0.0273257028311491,
0.0006134318537078798,
0.025836177170276642,
-0.036848027259111404,
-0.033478863537311554,
0.0067560626193881035,
-0.03734453395009041,
-0.0695466622710228,
-0.00562561908736825,
0.06532634049654007,
-0.022928055375814438,
-0.009841508232057095,
-0.04163578897714615,
-0.0049916841089725494,
-0.03943696245551109,
-0.01070153247565031,
-0.06351763010025024,
-0.03847941383719444,
-0.009602120146155357,
-0.033727116882801056,
0.021846376359462738,
0.045856110751628876,
0.05592814087867737,
0.041564859449863434,
-0.024151593446731567,
0.020445512607693672,
-0.05291362479329109,
-0.0023584156297147274,
-0.009389331564307213,
0.03448961302638054,
0.038053832948207855,
0.006596470717340708,
0.02773354947566986,
-0.047345634549856186,
-0.01658870466053486,
0.01789204031229019,
0.04447298124432564,
0.020410047844052315,
-0.07688789814710617,
0.06270193308591843,
0.002733013592660427,
0.008320950902998447,
0.004632601980119944,
-0.05780778080224991,
-0.039933472871780396,
-0.00888395681977272,
-0.008325383998453617,
0.044650305062532425,
-0.07256117463111877,
0.04674273356795311,
-0.011951670050621033,
-0.039791613817214966,
0.014877524226903915,
0.0038523743860423565,
0.01455833949148655,
-0.008338683284819126,
-0.016677366569638252,
-0.04489855840802193,
-0.07724254578351974,
-0.05802056938409805,
0.018672266975045204,
0.011002983897924423,
0.035482630133628845,
0.013379132375121117,
-0.020800162106752396,
-0.012900356203317642,
-0.010763595812022686,
0.029932372272014618,
-0.0008749854750931263,
0.01219105813652277,
0.007802277337759733,
-0.0052887024357914925,
0.04241601377725601,
-0.03581954538822174,
-0.01587940752506256,
-0.01327273715287447,
-0.04337356612086296,
-0.047593891620635986,
-0.04071370139718056,
0.044402047991752625,
0.11221092939376831,
0.03379804641008377,
-0.037096280604600906,
0.018158026039600372,
-0.0352698378264904,
0.007815576158463955,
-0.005532523617148399,
0.01576414704322815,
-0.041813112795352936,
0.011464027687907219,
-0.022803928703069687,
0.06036125123500824,
0.02519780769944191,
-0.060006603598594666,
-0.005865007173269987,
0.007975168526172638,
-0.037770114839076996,
-0.004371048416942358,
-0.009947903454303741,
-0.054474081844091415,
0.1112179160118103,
0.049260739237070084,
-0.04770028591156006,
0.0611414797604084,
0.011747746728360653,
-0.05617639422416687,
0.028354184702038765,
-0.0011814243625849485,
0.047593891620635986,
0.04351542890071869,
0.04273520037531853,
0.015196708030998707,
-0.011198041029274464,
0.017209339886903763,
0.0020170658826828003,
0.005909338127821684,
0.018796395510435104,
-0.005457160994410515,
0.07334140688180923,
0.04273520037531853,
-0.025126878172159195,
0.005470460280776024,
0.017457595095038414,
0.003630718681961298,
0.014336683787405491,
-0.0014950670301914215,
-0.0002073865180136636,
0.03578408062458038,
-0.015702081844210625,
-0.041422996670007706,
0.02409839630126953,
0.042096830904483795,
-0.01927517168223858,
-0.00478776078671217,
0.027769014239311218,
0.06458157300949097,
-0.005466027185320854,
0.006689566187560558,
-0.0014463027473539114,
0.01165908481925726,
0.04684912785887718,
0.022662067785859108,
0.02207689732313156,
-0.008214556612074375,
-0.00922973919659853,
0.021349867805838585,
-0.0123329171910882,
-0.003260553814470768,
0.016606437042355537,
-0.0061664585955441,
-0.007270303554832935,
-0.017608320340514183,
-0.030641669407486916,
-0.03328380361199379,
-0.041281137615442276,
-0.05794963985681534,
-0.025570189580321312,
-0.056779298931360245,
0.066212959587574,
-0.029169876128435135,
-0.05550256371498108,
0.01994900405406952,
0.03110271319746971,
-0.006108828354626894,
-0.004102845210582018,
0.014088429510593414,
-0.04280612990260124,
-0.044260188937187195,
0.009105611592531204,
-0.023921072483062744,
0.01197826862335205,
0.02654547430574894,
-0.03823115676641464,
0.04011079668998718,
-0.017705848440527916,
0.0037215976044535637,
0.033195141702890396,
-0.02705971524119377,
-0.05280723050236702,
0.008037231862545013,
-0.02115480974316597,
0.04206136614084244,
-0.07405070215463638,
-0.03030475415289402,
0.003311534645035863,
-0.00029674143297597766,
0.0008655650890432298,
0.009212006814777851,
-0.06021939218044281,
-0.014097295701503754,
0.008511574938893318,
0.03275183215737343,
0.06032578647136688,
-0.026829194277524948,
-0.027857676148414612,
0.02262660302221775,
-0.027237040922045708,
0.04606889933347702,
0.057701386511325836,
0.0794413685798645,
0.015125778503715992,
-0.017306869849562645,
0.021491726860404015,
0.003856807481497526,
-0.029595455154776573,
0.07554022967815399,
0.025960303843021393,
-0.0056034536100924015,
0.013707182370126247,
-0.08440645039081573,
-0.04638808220624924,
-0.041281137615442276,
-0.04124567285180092,
-0.022857125848531723,
-0.01628725416958332,
0.07178094983100891,
0.03596140444278717,
0.02289259061217308,
0.009673050604760647,
-0.005359632428735495,
-0.028389649465680122,
0.012253121472895145,
0.02856697328388691,
-0.008702198974788189,
-0.08128554373979568,
0.07695882767438889,
0.04954446107149124,
-0.024843160063028336,
0.011233505792915821,
0.001649117679335177,
-0.055679887533187866,
0.08213669806718826,
0.054225824773311615,
0.04833865165710449,
0.04252241179347038,
-0.00828105304390192,
-0.009726247750222683,
0.005505925044417381,
0.04000440239906311,
-0.04543052986264229,
0.02571204863488674,
0.05943916738033295,
0.04106834903359413,
-0.02560565434396267,
0.0401817262172699,
0.0025135744363069534,
0.0014463027473539114,
0.019310636445879936,
-0.035890474915504456,
0.017023149877786636,
0.03922417387366295,
0.016659634187817574,
-0.023140843957662582,
0.009398197755217552,
0.016101062297821045,
0.02627948857843876,
-0.032946888357400894,
0.05252351239323616,
-0.03519890829920769,
0.032273054122924805,
0.004654767457395792,
0.0180516317486763,
-0.013857908546924591,
0.001718939165584743,
-0.004311201628297567,
-0.00700874999165535,
0.022573405876755714,
0.003276069648563862,
0.023513225838541985,
0.05021829158067703,
-0.007695882581174374,
-0.017874307930469513,
-0.010417813435196877,
-0.01587054133415222,
-0.007775678299367428,
0.014354417100548744,
0.006889055948704481,
0.015382898971438408,
0.030357951298356056,
0.08483202755451202,
0.0239565372467041,
0.03755732625722885,
0.053551994264125824,
0.012430446222424507,
-0.06273739784955978,
0.01668623276054859,
-0.035606756806373596,
-0.03652884438633919,
-0.021048415452241898,
0.05993567407131195,
0.006964419037103653,
-0.00222098920494318,
0.046281687915325165,
0.019878074526786804,
-0.0851866826415062,
-0.019470227882266045,
0.0068846228532493114,
0.010479876771569252,
-0.0011204690672457218,
-0.008422913029789925,
0.08029252290725708,
0.029861442744731903,
0.015444962307810783,
0.008702198974788189,
-0.07061060518026352,
0.005749746225774288,
-0.004362182226032019,
0.020693765953183174,
0.04351542890071869,
-0.024062931537628174,
0.062028102576732635,
-0.033354733139276505,
0.0011803160887211561,
0.0017466461285948753,
-0.0039942339062690735,
-0.00291255465708673,
-0.03518117591738701,
-0.015533624216914177,
-0.014079563319683075,
-0.01993127167224884,
-0.030482077971100807,
0.01657983846962452,
-0.022981252521276474,
0.07901579141616821,
-0.027307970449328423,
0.015019383281469345,
-0.06823445856571198,
-0.08837851881980896,
0.0006561005720868707,
-0.05578628182411194,
0.019860342144966125,
0.060148462653160095,
-0.002979051321744919,
-0.02908121421933174,
0.040465448051691055,
0.02422252483665943,
0.019860342144966125,
0.03812476247549057,
-0.030659401789307594,
0.017705848440527916,
-0.018955986946821213,
0.06245368346571922,
-0.002249804325401783,
0.009389331564307213,
0.07298675924539566,
-0.011880740523338318,
0.0929180309176445,
0.03230851888656616,
0.012350649572908878,
0.012634369544684887,
-0.021793179214000702,
-0.030216092243790627,
0.033602990210056305,
0.003972068428993225,
0.07156816124916077,
-0.01051534153521061,
-0.021651318296790123,
0.002351765986531973,
-0.05763045698404312,
0.047629356384277344,
-0.011428562924265862,
0.009052414447069168,
0.02234288491308689,
0.010781328193843365,
0.08199483901262283,
0.0014252455439418554,
0.023867875337600708,
0.01440761424601078,
0.0078111435286700726,
-0.04110381379723549,
0.0002611379895824939,
-0.06075136736035347,
-0.07490186393260956,
0.013911105692386627,
-0.015808477997779846,
0.007926404476165771,
-0.03140416368842125,
0.011721148155629635,
0.09348546713590622,
-0.00012059450091328472,
0.05628278851509094,
-0.02870883420109749,
0.031014051288366318,
-0.048551443964242935,
-0.007722481153905392,
-0.054474081844091415,
0.054615940898656845,
0.005106945056468248,
-0.002553472528234124,
0.03592593967914581,
-0.004690232686698437,
-0.06287925690412521,
-0.025552457198500633,
0.08490296453237534,
0.07851927727460861,
-0.017723580822348595,
0.01819349080324173,
0.0019505693344399333,
0.04085556045174599,
-0.04606889933347702,
-0.021385332569479942,
0.0008888389565981925,
-0.060290321707725525,
-0.026492277160286903,
-0.011960536241531372,
0.01628725416958332,
-0.02289259061217308,
-0.049650855362415314,
-0.014336683787405491,
-0.014274620451033115,
0.034010834991931915,
0.04752296209335327,
0.005789644084870815,
0.034826528280973434,
0.05117584392428398,
-0.021651318296790123,
0.0057586124166846275,
0.030801262706518173,
-0.029453596100211143,
-0.02799953520298004,
-0.0006001325091347098,
-0.06642574816942215,
-0.05560895800590515,
0.013964302837848663,
0.02936493419110775,
0.04294798895716667,
0.013946570456027985,
0.027556223794817924,
0.016890157014131546,
0.0061664585955441,
-0.018406281247735023,
-0.06156706064939499,
-0.020551906898617744,
0.0013897806638851762,
-0.015267637558281422,
-0.009859240613877773,
-0.04131660237908363,
0.044650305062532425,
0.015586821362376213,
0.013379132375121117,
-0.05209793150424957,
-0.03869220241904259,
-0.0016014616703614593,
-0.00007072198786772788,
-0.040891025215387344,
0.0004748971259687096,
-0.02936493419110775,
-0.049118880182504654,
0.017324602231383324,
0.0654681995511055,
-0.010072030127048492,
0.010976385325193405,
0.007465360686182976,
0.01923970691859722,
0.013370266184210777,
0.007124010939151049,
0.04227415472269058,
-0.07185187935829163,
-0.023867875337600708,
-0.02599576860666275,
-0.027573956176638603,
0.02709518000483513,
0.03555355966091156,
-0.08270413428544998,
0.030659401789307594,
0.004269086755812168,
-0.020126327872276306,
-0.018796395510435104,
-0.032663170248270035,
-0.016934487968683243,
0.04567878693342209,
-0.014904122799634933,
-0.024311186745762825,
-0.01927517168223858,
-0.02762715332210064,
0.031333234161138535,
-0.06724144518375397,
0.0033669485710561275,
-0.09405290335416794,
-0.0262440238147974,
-0.008409613743424416,
0.033868975937366486,
-0.000670508190523833,
0.042486947029829025,
0.009460261091589928,
0.021864108741283417,
0.017812244594097137,
0.025126878172159195,
-0.017998434603214264,
-0.022431546822190285,
-0.006099962163716555,
0.04674273356795311,
0.09547150135040283,
0.008125894702970982,
-0.012465910986065865,
0.03143962845206261,
-0.040749166160821915,
0.007505258545279503,
0.002582287648692727,
-0.011490626260638237,
-0.05046654865145683,
0.025534724816679955,
0.015968069434165955,
0.0037260306999087334,
0.017732448875904083,
0.052736300975084305,
-0.0294890608638525,
-0.036316052079200745,
-0.017980702221393585,
0.020268188789486885,
0.0023074347991496325,
0.029737316071987152,
-0.0051468429155647755,
-0.07979601621627808,
-0.0006001325091347098,
-0.0029081215616315603,
0.026705065742135048,
-0.06873096525669098,
0.0474165640771389,
0.020161792635917664,
-0.05362292379140854,
-0.01535630039870739,
-0.007562889251857996,
-0.006507808342576027,
-0.11575742065906525,
0.011171442456543446,
0.04280612990260124,
0.07617859542369843,
-0.06493622809648514,
0.0037770115304738283,
0.06784434616565704,
0.005071480292826891,
-0.0022919189650565386,
-0.054474081844091415,
-0.09405290335416794,
0.01576414704322815,
0.020144060254096985,
-0.032805029302835464,
0.004752296023070812,
-0.026314953342080116,
-0.03599686920642853,
0.04514681175351143,
-0.02331816963851452,
-0.06876643002033234,
-0.014930721372365952,
-0.009274070151150227,
0.041671253740787506,
-0.010923188179731369,
0.022591138258576393,
0.01549815945327282,
-0.0039809346199035645,
-0.01872546598315239,
-0.017067480832338333,
0.03269863501191139,
-0.0015704298857599497,
-0.06834085285663605,
-0.005665516946464777,
0.0707879289984703,
-0.003697215346619487,
-0.05344559997320175,
0.02168678306043148,
0.03571315109729767,
-0.027928605675697327,
-0.07660417258739471,
-0.05943916738033295,
0.024594904854893684,
0.005514791235327721,
-0.021083880215883255,
0.0301983579993248,
0.08149833232164383,
0.05724034085869789,
-0.00498281791806221,
-0.012510241940617561,
-0.04589157551527023,
0.004388780798763037,
0.023814678192138672,
0.0024249122943729162,
0.005998000502586365,
-0.029152143746614456,
0.03440094739198685,
-0.000011905330211448018,
-0.02328270487487316,
0.030889924615621567,
-0.0261198952794075,
-0.010462144389748573,
0.006321617867797613,
0.03677709773182869,
-0.012244255281984806,
0.020676033571362495,
0.011224639602005482,
0.0563182532787323,
-0.046281687915325165,
0.004858690779656172,
0.019860342144966125,
-0.024719033390283585,
-0.037911973893642426,
-0.06766702234745026,
0.00593150407075882,
-0.06841178238391876,
0.02691785618662834,
-0.05082119628787041,
-0.0216690506786108,
-0.008006200194358826,
0.00025947557878680527,
0.034666936844587326,
-0.05262990668416023,
-0.05621185898780823,
0.011756612919270992,
0.01767038367688656,
0.012785094790160656,
0.008205690421164036,
0.03303555026650429,
-0.02883296087384224,
0.021314403042197227,
-0.04050091281533241,
0.005483759567141533,
0.005315301474183798,
-0.06454610824584961,
0.019700748845934868,
-0.0031120446510612965,
0.028744298964738846,
-0.008187958039343357,
-0.004699098877608776,
-0.012049198150634766,
-0.004444194957613945,
-0.01966528408229351,
-0.0032383883371949196,
0.05337466672062874,
-0.015001650899648666,
-0.02211236208677292,
-0.0452532060444355,
-0.03273409977555275,
0.019629819318652153,
0.0203391183167696,
-0.005856140982359648,
0.0053064352832734585,
-0.03581954538822174,
-0.016792628914117813,
0.08078902959823608,
0.018636802211403847,
-0.004752296023070812,
0.0031386432237923145,
0.0312800370156765,
0.013494392856955528,
-0.04184857755899429,
-0.01159702055156231,
0.003209572983905673,
0.02507368102669716,
0.0001377035368932411,
0.001341016381047666,
0.01806936413049698,
0.00889725610613823,
0.01978941261768341,
-0.025428330525755882,
-0.014514008536934853,
0.0010949786519631743,
0.062169961631298065,
-0.006920087616890669,
0.002223205752670765,
-0.003717164508998394,
-0.005457160994410515,
-0.022130094468593597,
0.012102395296096802,
-0.024577172473073006,
0.018016166985034943,
-0.03555355966091156,
-0.051636889576911926,
0.05184967815876007,
-0.049260739237070084,
0.04149392992258072,
-0.005395097192376852,
0.003963202238082886,
0.002540173241868615,
-0.01589713990688324,
-0.026226291432976723,
-0.025144610553979874,
0.08490296453237534,
0.00036490053753368556,
0.020924288779497147,
0.04000440239906311,
0.06940480321645737,
0.05479326471686363,
0.07178094983100891,
-0.05106944963335991,
0.0150991789996624,
0.004960652440786362,
-0.039401497691869736,
-0.08724364638328552,
-0.016198590397834778,
-0.023867875337600708,
-0.008418479934334755,
0.005634485278278589,
-0.024985019117593765,
-0.0028549241833388805,
0.04876423254609108,
-0.019505692645907402
] |
10,042
|
torch.nn.modules.module
|
double
|
Casts all floating point parameters and buffers to ``double`` datatype.
.. note::
This method modifies the module in-place.
Returns:
Module: self
|
def double(self: T) -> T:
r"""Casts all floating point parameters and buffers to ``double`` datatype.
.. note::
This method modifies the module in-place.
Returns:
Module: self
"""
return self._apply(lambda t: t.double() if t.is_floating_point() else t)
|
(self: ~T) -> ~T
|
[
0.05280156433582306,
-0.003284635255113244,
0.0529782734811306,
0.06375771015882492,
-0.04781828075647354,
-0.05191800370812416,
-0.04750020056962967,
0.001995741855353117,
-0.006670880131423473,
0.012590734288096428,
0.01901421695947647,
-0.051670607179403305,
-0.02039257064461708,
0.04778293892741203,
-0.021611884236335754,
0.05248348042368889,
-0.04955006018280983,
0.09372807294130325,
-0.010735257528722286,
0.04993882775306702,
-0.03852322697639465,
0.014331348240375519,
-0.00753676937893033,
-0.0264891367405653,
-0.036508709192276,
-0.022283390164375305,
0.029616940766572952,
-0.013774705119431019,
-0.02118777483701706,
-0.006732729263603687,
0.011769022792577744,
-0.02657749317586422,
0.012458199635148048,
0.01762702688574791,
0.029281187802553177,
-0.02458064630627632,
-0.05018622428178787,
0.011389091610908508,
-0.05672457069158554,
-0.004727047402411699,
-0.005402971059083939,
-0.027761464938521385,
0.006878516636788845,
0.004532664082944393,
0.01762702688574791,
0.010567381046712399,
0.04297637194395065,
0.01221963856369257,
0.0004884431837126613,
-0.029970364645123482,
0.0012546556536108255,
0.03410542756319046,
0.012210803106427193,
0.020003804937005043,
-0.02689557522535324,
0.04633390158414841,
0.04113856703042984,
0.025057770311832428,
-0.058385662734508514,
0.010470189154148102,
0.02701927348971367,
-0.012590734288096428,
0.00202556187286973,
-0.02274284139275551,
0.018201341852545738,
0.006710640154778957,
-0.016540247946977615,
0.012546556070446968,
0.010805942118167877,
0.055134162306785583,
-0.058385662734508514,
-0.027549410238862038,
-0.04113856703042984,
0.025393523275852203,
0.036261312663555145,
0.012502377852797508,
0.009462930262088776,
-0.025534892454743385,
-0.029351873323321342,
-0.01151279080659151,
-0.03990158066153526,
0.04513226076960564,
-0.03940678760409355,
0.03240898996591568,
-0.08065138012170792,
-0.03166680037975311,
-0.07266400009393692,
0.03580186143517494,
-0.03468857705593109,
-0.006127490662038326,
-0.04598047584295273,
-0.026453794911503792,
-0.05873908847570419,
0.006039134692400694,
0.050150882452726364,
-0.0445314384996891,
0.01482614129781723,
-0.009100670926272869,
-0.037462957203388214,
0.01059388741850853,
-0.01151279080659151,
0.01687600091099739,
0.009719163179397583,
-0.0077090635895729065,
0.03401707112789154,
-0.03838185966014862,
0.042941030114889145,
0.0006477601127699018,
-0.014057444408535957,
0.03348693624138832,
-0.049620743840932846,
0.012246145866811275,
-0.02007449045777321,
0.004970026668161154,
-0.028839407488703728,
-0.008650055155158043,
-0.011459777131676674,
0.03566049411892891,
0.054427314549684525,
0.04714677855372429,
0.0007090571452863514,
0.05884511396288872,
-0.018219012767076492,
0.03615528717637062,
0.022159691900014877,
0.01972106471657753,
0.010152108035981655,
-0.03467090427875519,
-0.0026219652500003576,
0.009321561083197594,
0.01963271014392376,
0.03525405377149582,
0.007505844812840223,
0.05969333276152611,
0.03887665271759033,
0.0026506809517741203,
-0.00698012625798583,
0.02555256336927414,
0.00411959970369935,
0.03431748226284981,
-0.006405812222510576,
-0.018219012767076492,
0.08482179045677185,
0.02555256336927414,
0.012970664538443089,
0.04025500640273094,
-0.04078514128923416,
0.04537965729832649,
-0.06707989424467087,
0.03703884780406952,
-0.03958350047469139,
0.029139818623661995,
0.09295054525136948,
0.005500162951648235,
0.0023922394029796124,
-0.0028870331589132547,
0.02587064541876316,
0.01084128487855196,
-0.022142020985484123,
0.01753867231309414,
-0.04060843214392662,
-0.03990158066153526,
-0.01790093071758747,
0.0012612823629751801,
0.01806880719959736,
0.00411959970369935,
-0.0369681641459465,
-0.028910093009471893,
0.00956895761191845,
0.011044503189623356,
0.010461353696882725,
-0.0128027880564332,
0.041244592517614365,
0.04803033545613289,
0.0032824263907969,
0.04753554239869118,
0.007134749088436365,
0.02587064541876316,
0.019579695537686348,
-0.00777091272175312,
0.10878394544124603,
-0.05103444308042526,
-0.05690128356218338,
0.0005848064902238548,
0.04212815314531326,
0.03458254784345627,
-0.04626321792602539,
0.005243930500000715,
-0.05000951141119003,
0.023272978141903877,
0.09330396354198456,
0.013271075673401356,
-0.007435159757733345,
-0.033186525106430054,
0.026506807655096054,
-0.00810224749147892,
-0.020463256165385246,
-0.023007910698652267,
0.07838946580886841,
0.07952042669057846,
-0.051529236137866974,
-0.07149770110845566,
0.031012965366244316,
0.019349969923496246,
-0.019349969923496246,
-0.08157028257846832,
0.012034091167151928,
0.013279911130666733,
-0.04149199277162552,
-0.004029035102576017,
-0.010266970843076706,
0.0032249949872493744,
-0.0029930605087429285,
0.028379956260323524,
-0.0035894636530429125,
-0.06485332548618317,
-0.016584426164627075,
-0.03387570008635521,
0.02074599638581276,
0.0087914252653718,
0.038664598017930984,
-0.017980452626943588,
-0.04781828075647354,
0.020533941686153412,
0.024863386526703835,
0.022495444864034653,
0.002418746240437031,
0.0025976672768592834,
0.011044503189623356,
-0.030641870573163033,
0.03887665271759033,
0.014799634926021099,
-0.05195334553718567,
0.008040398359298706,
0.06690318137407303,
-0.1028464138507843,
0.0075146802701056,
0.040361035615205765,
-0.03371665999293327,
-0.01972106471657753,
0.018996546044945717,
0.014331348240375519,
-0.030571185052394867,
0.031048309057950974,
0.0004776747664436698,
-0.03308049589395523,
-0.006282113492488861,
0.025040097534656525,
0.05428594350814819,
0.012705597095191479,
-0.01012560073286295,
-0.007404235191643238,
0.019349969923496246,
0.028751051053404808,
-0.015082374215126038,
-0.008623548783361912,
0.03940678760409355,
0.015656687319278717,
-0.01293532270938158,
0.0054471492767333984,
0.04166870191693306,
0.020498597994446754,
0.04283500090241432,
0.03193186968564987,
-0.02194763720035553,
0.00628653122112155,
-0.05106978490948677,
-0.03954815864562988,
0.06732729077339172,
0.0752086490392685,
0.014578744769096375,
-0.018272027373313904,
-0.013898403383791447,
-0.04750020056962967,
-0.029616940766572952,
0.006997797638177872,
0.03809912130236626,
0.05004485324025154,
0.03855857253074646,
-0.01998613402247429,
0.00872515793889761,
-0.0601174421608448,
-0.019332299008965492,
0.012811624445021152,
-0.07619824260473251,
0.042764317244291306,
-0.0046121845953166485,
0.05008019506931305,
0.03792240843176842,
0.009692655876278877,
0.03587254881858826,
0.03513035550713539,
0.09556587785482407,
0.029493242502212524,
0.02622406929731369,
-0.021735582500696182,
-0.030659541487693787,
-0.038805969059467316,
0.08955767005681992,
0.004797732457518578,
-0.027637764811515808,
-0.011680667288601398,
0.0017373004229739308,
0.08298398554325104,
0.04916129261255264,
-0.0021172312553972006,
0.046369243413209915,
-0.03629665821790695,
-0.01151279080659151,
0.049797456711530685,
-0.004090884234756231,
0.002626382978633046,
-0.09287985414266586,
0.03672076389193535,
0.04110322520136833,
0.01843106746673584,
-0.003059327369555831,
0.0077399881556630135,
-0.010258134454488754,
0.02542886510491371,
-0.039512816816568375,
0.013235732913017273,
0.054604023694992065,
-0.02039257064461708,
-0.00816851481795311,
-0.026277082040905952,
0.017476823180913925,
-0.0024342085234820843,
-0.0016997491475194693,
0.035960905253887177,
0.00988703966140747,
-0.003660148475319147,
0.07054345309734344,
0.012793952599167824,
-0.014746621251106262,
-0.0342821404337883,
0.03108365088701248,
-0.03767501190304756,
-0.014304840937256813,
-0.031366389244794846,
-0.0002088791661662981,
0.026771876960992813,
0.01400443073362112,
-0.0529782734811306,
-0.07421906292438507,
0.0057740663178265095,
-0.02056928351521492,
-0.02479270100593567,
0.1188918724656105,
0.0007709063356742263,
0.0133594311773777,
-0.03958350047469139,
0.0006223577656783164,
0.05933990702033043,
0.010028408840298653,
-0.03170214220881462,
-0.0325150191783905,
0.037109531462192535,
-0.0287157092243433,
-0.08658890426158905,
-0.007329132407903671,
0.0681048259139061,
-0.047570884227752686,
0.03463556244969368,
0.050150882452726364,
0.021965308114886284,
-0.036614738404750824,
0.000038759306335123256,
-0.008296631276607513,
0.05488676577806473,
-0.0027567080687731504,
-0.058527033776044846,
-0.01665511168539524,
-0.007960878312587738,
-0.01620449498295784,
-0.008517521433532238,
-0.03548378124833107,
0.01696435734629631,
0.011459777131676674,
-0.023785442113876343,
0.013059020973742008,
-0.05538155883550644,
-0.017980452626943588,
-0.005941942799836397,
0.04011363536119461,
-0.02016284503042698,
0.02853899635374546,
-0.038664598017930984,
0.028061874210834503,
0.008248034864664078,
-0.018590107560157776,
-0.013076691888272762,
-0.04322376847267151,
0.042410895228385925,
-0.06414647400379181,
0.01235217321664095,
-0.055098820477724075,
0.03023543208837509,
-0.06534811854362488,
0.009940053336322308,
-0.004450934939086437,
0.015055866912007332,
-0.004168195649981499,
0.04686403647065163,
-0.05813826620578766,
-0.011071010492742062,
0.022848868742585182,
-0.0003677819622680545,
0.0131297055631876,
-0.0018908190540969372,
0.02898077666759491,
0.03276241570711136,
-0.028061874210834503,
0.057502102106809616,
0.07492591440677643,
0.042234182357788086,
0.049832798540592194,
-0.015568331815302372,
0.023838456720113754,
0.0347239188849926,
0.017874425277113914,
-0.0033641557674854994,
0.004762390162795782,
-0.007695809938013554,
0.01740613766014576,
-0.018855176866054535,
0.023962154984474182,
0.06280346214771271,
-0.04460212215781212,
0.044142670929431915,
-0.045167602598667145,
-0.00032029059366323054,
-0.03845254331827164,
-0.018978875130414963,
0.03592555969953537,
0.01068224385380745,
0.008535192348062992,
-0.022689828649163246,
0.01059388741850853,
-0.013120870105922222,
-0.0329567976295948,
0.0042852675542235374,
-0.00042742228833958507,
-0.08757849782705307,
-0.014587580226361752,
-0.06566619873046875,
0.039336103945970535,
-0.007148002739995718,
-0.04170404374599457,
-0.0707908496260643,
0.0030018959660083055,
-0.029192831367254257,
0.11118722707033157,
-0.043082401156425476,
-0.03442350775003433,
-0.05449799820780754,
0.028662696480751038,
-0.13253404200077057,
0.06796345859766006,
0.001473336829803884,
-0.018572436645627022,
-0.036438025534152985,
-0.02106407657265663,
-0.06644373387098312,
-0.045167602598667145,
-0.036438025534152985,
0.061637166887521744,
-0.025093112140893936,
-0.015250250697135925,
-0.004656362812966108,
0.0529782734811306,
0.01059388741850853,
-0.01440203282982111,
-0.030376803129911423,
-0.023449689149856567,
0.025852974504232407,
-0.03551912307739258,
0.00644557224586606,
-0.006405812222510576,
-0.081923708319664,
-0.08651822060346603,
-0.04693472385406494,
0.017070384696125984,
0.020233530551195145,
0.0065648527815938,
0.03838185966014862,
0.046369243413209915,
0.0037816381081938744,
0.04166870191693306,
0.046192530542612076,
-0.022407088428735733,
0.07697577029466629,
0.05085773020982742,
0.0012933113612234592,
-0.05018622428178787,
0.05085773020982742,
-0.008848856203258038,
-0.009016732685267925,
0.001482172403484583,
0.032161593437194824,
0.02265448495745659,
-0.036261312663555145,
-0.026118041947484016,
-0.010213957168161869,
0.04212815314531326,
0.02302558161318302,
-0.043965958058834076,
0.015082374215126038,
-0.03767501190304756,
0.010805942118167877,
-0.03502433001995087,
-0.0020310841500759125,
-0.052554164081811905,
0.045344315469264984,
0.04598047584295273,
-0.01883750595152378,
-0.015506482683122158,
-0.0014788589905947447,
-0.047747597098350525,
-0.06934180855751038,
-0.015055866912007332,
0.04099719598889351,
-0.051175810396671295,
-0.03792240843176842,
-0.014905662275850773,
-0.014366690069437027,
-0.02203599363565445,
0.03930076211690903,
0.05827963724732399,
-0.0014534567017108202,
0.05729004740715027,
0.003251501824706793,
0.008937212638556957,
-0.027620093896985054,
-0.018643122166395187,
-0.0119103929027915,
-0.009436423890292645,
0.017980452626943588,
-0.014119293540716171,
-0.05983470380306244,
-0.009436423890292645,
-0.04368321970105171,
0.012193132191896439,
-0.029192831367254257,
-0.007907864637672901,
-0.008230363950133324,
-0.046192530542612076,
-0.015365113504230976,
-0.013677513226866722,
-0.027390368282794952,
-0.015082374215126038,
-0.03041214495897293,
0.0162486732006073,
0.006891770288348198,
-0.027938175946474075,
0.005274855066090822,
-0.00038738595321774483,
0.05128183960914612,
-0.008451254107058048,
-0.031313374638557434,
-0.026648178696632385,
-0.047747597098350525,
0.07888425886631012,
0.06414647400379181,
-0.013898403383791447,
-0.020551612600684166,
0.05955196171998978,
0.0601174421608448,
-0.050150882452726364,
-0.015612510032951832,
0.02475735917687416,
-0.017962779849767685,
0.061813876032829285,
-0.00874724704772234,
0.028839407488703728,
0.04265829175710678,
-0.0039848568849265575,
-0.04237554967403412,
-0.08333740383386612,
-0.06404045224189758,
0.004391294438391924,
-0.005707799457013607,
-0.05283690616488457,
-0.005402971059083939,
-0.010903134010732174,
-0.06672647595405579,
0.00903440359979868,
0.024421606212854385,
-0.011689502745866776,
-0.04198678582906723,
-0.016169153153896332,
0.0002266884403070435,
-0.005478073842823505,
-0.028821736574172974,
0.02145284414291382,
-0.05661854147911072,
-0.10496696084737778,
0.04947937652468681,
0.07330016046762466,
0.015011689625680447,
-0.0247043464332819,
0.006100983824580908,
-0.0155860036611557,
-0.01364217046648264,
-0.0051379031501710415,
-0.01242285780608654,
-0.028839407488703728,
-0.007037557661533356,
-0.011026832275092602,
-0.07739987969398499,
0.023785442113876343,
0.0000034384645459795138,
0.0007526829140260816,
-0.03032378852367401,
-0.005906600505113602,
0.021541200578212738,
-0.04304705560207367,
-0.016672782599925995,
-0.012361008673906326,
0.03258570283651352,
-0.03108365088701248,
0.03838185966014862,
-0.02449229173362255,
-0.005849169101566076,
0.016496069729328156,
-0.03304515406489372,
-0.010867791250348091,
-0.022672157734632492,
0.031225020065903664,
-0.027178313583135605,
-0.04488486424088478,
-0.008402658626437187,
0.04237554967403412,
-0.002228780882433057,
-0.0382758304476738,
0.018908189609646797,
-0.001854372094385326,
0.0180246289819479,
0.07178043574094772,
0.06298017501831055,
0.05979935824871063,
0.030288446694612503,
0.025163797661662102,
0.00258220499381423,
0.004939102102071047,
-0.03774569556117058,
-0.029599269852042198,
-0.033451590687036514,
0.013854225166141987,
-0.01088546309620142,
-0.06821085512638092,
0.05145855247974396,
0.010355326347053051,
0.0054250601679086685,
0.023113936185836792,
-0.009692655876278877,
-0.009657314047217369,
-0.03679145127534866,
0.00039843047852627933,
0.024050511419773102,
-0.030376803129911423,
-0.020905036479234695,
-0.015948263928294182,
-0.0030306116677820683,
0.0017262558685615659,
-0.042446237057447433,
-0.05951661989092827,
0.027089959010481834,
-0.018890518695116043,
-0.04573307931423187,
-0.029440227895975113,
0.011813201010227203,
-0.0462985597550869,
0.028432970866560936,
-0.005557594355195761,
-0.0316137857735157,
0.03954815864562988,
-0.03647336736321449,
-0.015100045129656792,
0.037957750260829926,
0.011724844574928284,
0.027885163202881813,
-0.011565804481506348,
-0.01980942115187645,
-0.061637166887521744,
-0.012414022348821163,
-0.004042288288474083,
0.09457629173994064,
-0.03422912582755089,
-0.053897175937891006,
0.004391294438391924,
-0.026188727468252182,
0.029546255245804787,
0.012599569745361805,
-0.009763341397047043,
-0.05078704655170441,
-0.00886210985481739,
-0.037816379219293594,
0.01284696627408266,
-0.003830233821645379,
-0.007055229041725397,
-0.0036446861922740936,
0.004532664082944393,
0.03838185966014862,
0.09549519419670105,
0.027408039197325706,
0.0017207337077707052,
0.007139167282730341,
0.019473668187856674,
-0.0418454147875309,
0.03126036375761032,
0.008804677985608578,
0.015524154528975487,
0.040361035615205765,
0.0043228184804320335,
0.020480927079916,
-0.039194732904434204,
-0.01874914951622486,
0.0035828370600938797,
0.029899679124355316,
-0.02587064541876316,
-0.06149579584598541,
0.053402382880449295,
0.040961854159832,
0.03023543208837509,
0.04029034823179245,
-0.05106978490948677,
0.022460103034973145,
-0.002593249548226595,
0.0029820159543305635,
0.012758610770106316,
0.013112034648656845,
0.048419103026390076,
-0.0005908809253014624,
-0.0012612823629751801,
0.009462930262088776,
0.028927763924002647,
0.02145284414291382,
-0.004267596174031496,
0.012705597095191479,
-0.06050620973110199,
-0.004903759807348251,
-0.011203544214367867,
0.01364217046648264,
-0.01968572288751602,
-0.015789221972227097,
-0.03299213945865631,
0.010381833650171757,
0.030659541487693787,
-0.046899378299713135,
0.03334556519985199,
0.03557213768362999,
0.028114888817071915,
-0.015506482683122158,
0.1108338013291359,
0.0021934383548796177,
-0.030553514137864113,
-0.027938175946474075,
-0.00621142890304327,
-0.04385993257164955,
0.006436736788600683,
0.008013891987502575,
0.012899979948997498,
0.06980126351118088,
-0.07308810949325562,
0.04067911580204964,
-0.0020620087161660194,
0.0471821203827858
] |
10,043
|
sentence_transformers.SentenceTransformer
|
encode
|
Computes sentence embeddings.
:param sentences: the sentences to embed.
:param prompt_name: The name of the prompt to use for encoding. Must be a key in the `prompts` dictionary,
which is either set in the constructor or loaded from the model configuration. For example if
`prompt_name` is ``"query"`` and the `prompts` is ``{"query": "query: ", ...}``, then the sentence "What
is the capital of France?" will be encoded as "query: What is the capital of France?" because the sentence
is appended to the prompt. If `prompt` is also set, this argument is ignored.
:param prompt: The prompt to use for encoding. For example, if the prompt is ``"query: "``, then the
sentence "What is the capital of France?" will be encoded as "query: What is the capital of France?"
because the sentence is appended to the prompt. If `prompt` is set, `prompt_name` is ignored.
:param batch_size: the batch size used for the computation.
:param show_progress_bar: Whether to output a progress bar when encode sentences.
:param output_value: The type of embeddings to return: "sentence_embedding" to get sentence embeddings,
"token_embeddings" to get wordpiece token embeddings, and `None`, to get all output values. Defaults
to "sentence_embedding".
:param precision: The precision to use for the embeddings. Can be "float32", "int8", "uint8", "binary", or
"ubinary". All non-float32 precisions are quantized embeddings. Quantized embeddings are smaller in
size and faster to compute, but may have a lower accuracy. They are useful for reducing the size
of the embeddings of a corpus for semantic search, among other tasks. Defaults to "float32".
:param convert_to_numpy: Whether the output should be a list of numpy vectors. If False, it is a list of PyTorch tensors.
:param convert_to_tensor: Whether the output should be one large tensor. Overwrites `convert_to_numpy`.
:param device: Which `torch.device` to use for the computation.
:param normalize_embeddings: Whether to normalize returned vectors to have length 1. In that case,
the faster dot-product (util.dot_score) instead of cosine similarity can be used.
:return: By default, a 2d numpy array with shape [num_inputs, output_dimension] is returned. If only one string
input is provided, then the output is a 1d array with shape [output_dimension]. If `convert_to_tensor`, a
torch Tensor is returned instead. If `self.truncate_dim <= output_dimension` then output_dimension is
`self.truncate_dim`.
|
def encode(
self,
sentences: Union[str, List[str]],
prompt_name: Optional[str] = None,
prompt: Optional[str] = None,
batch_size: int = 32,
show_progress_bar: bool = None,
output_value: Optional[Literal["sentence_embedding", "token_embeddings"]] = "sentence_embedding",
precision: Literal["float32", "int8", "uint8", "binary", "ubinary"] = "float32",
convert_to_numpy: bool = True,
convert_to_tensor: bool = False,
device: str = None,
normalize_embeddings: bool = False,
) -> Union[List[Tensor], ndarray, Tensor]:
"""
Computes sentence embeddings.
:param sentences: the sentences to embed.
:param prompt_name: The name of the prompt to use for encoding. Must be a key in the `prompts` dictionary,
which is either set in the constructor or loaded from the model configuration. For example if
`prompt_name` is ``"query"`` and the `prompts` is ``{"query": "query: ", ...}``, then the sentence "What
is the capital of France?" will be encoded as "query: What is the capital of France?" because the sentence
is appended to the prompt. If `prompt` is also set, this argument is ignored.
:param prompt: The prompt to use for encoding. For example, if the prompt is ``"query: "``, then the
sentence "What is the capital of France?" will be encoded as "query: What is the capital of France?"
because the sentence is appended to the prompt. If `prompt` is set, `prompt_name` is ignored.
:param batch_size: the batch size used for the computation.
:param show_progress_bar: Whether to output a progress bar when encode sentences.
:param output_value: The type of embeddings to return: "sentence_embedding" to get sentence embeddings,
"token_embeddings" to get wordpiece token embeddings, and `None`, to get all output values. Defaults
to "sentence_embedding".
:param precision: The precision to use for the embeddings. Can be "float32", "int8", "uint8", "binary", or
"ubinary". All non-float32 precisions are quantized embeddings. Quantized embeddings are smaller in
size and faster to compute, but may have a lower accuracy. They are useful for reducing the size
of the embeddings of a corpus for semantic search, among other tasks. Defaults to "float32".
:param convert_to_numpy: Whether the output should be a list of numpy vectors. If False, it is a list of PyTorch tensors.
:param convert_to_tensor: Whether the output should be one large tensor. Overwrites `convert_to_numpy`.
:param device: Which `torch.device` to use for the computation.
:param normalize_embeddings: Whether to normalize returned vectors to have length 1. In that case,
the faster dot-product (util.dot_score) instead of cosine similarity can be used.
:return: By default, a 2d numpy array with shape [num_inputs, output_dimension] is returned. If only one string
input is provided, then the output is a 1d array with shape [output_dimension]. If `convert_to_tensor`, a
torch Tensor is returned instead. If `self.truncate_dim <= output_dimension` then output_dimension is
`self.truncate_dim`.
"""
if self.device.type == "hpu" and not self.is_hpu_graph_enabled:
import habana_frameworks.torch as ht
ht.hpu.wrap_in_hpu_graph(self, disable_tensor_cache=True)
self.is_hpu_graph_enabled = True
self.eval()
if show_progress_bar is None:
show_progress_bar = (
logger.getEffectiveLevel() == logging.INFO or logger.getEffectiveLevel() == logging.DEBUG
)
if convert_to_tensor:
convert_to_numpy = False
if output_value != "sentence_embedding":
convert_to_tensor = False
convert_to_numpy = False
input_was_string = False
if isinstance(sentences, str) or not hasattr(
sentences, "__len__"
): # Cast an individual sentence to a list with length 1
sentences = [sentences]
input_was_string = True
if prompt is None:
if prompt_name is not None:
try:
prompt = self.prompts[prompt_name]
except KeyError:
raise ValueError(
f"Prompt name '{prompt_name}' not found in the configured prompts dictionary with keys {list(self.prompts.keys())!r}."
)
elif self.default_prompt_name is not None:
prompt = self.prompts.get(self.default_prompt_name, None)
else:
if prompt_name is not None:
logger.warning(
"Encode with either a `prompt`, a `prompt_name`, or neither, but not both. "
"Ignoring the `prompt_name` in favor of `prompt`."
)
extra_features = {}
if prompt is not None:
sentences = [prompt + sentence for sentence in sentences]
# Some models (e.g. INSTRUCTOR, GRIT) require removing the prompt before pooling
# Tracking the prompt length allow us to remove the prompt during pooling
tokenized_prompt = self.tokenize([prompt])
if "input_ids" in tokenized_prompt:
extra_features["prompt_length"] = tokenized_prompt["input_ids"].shape[-1] - 1
if device is None:
device = self.device
self.to(device)
all_embeddings = []
length_sorted_idx = np.argsort([-self._text_length(sen) for sen in sentences])
sentences_sorted = [sentences[idx] for idx in length_sorted_idx]
for start_index in trange(0, len(sentences), batch_size, desc="Batches", disable=not show_progress_bar):
sentences_batch = sentences_sorted[start_index : start_index + batch_size]
features = self.tokenize(sentences_batch)
features = batch_to_device(features, device)
features.update(extra_features)
with torch.no_grad():
out_features = self.forward(features)
out_features["sentence_embedding"] = truncate_embeddings(
out_features["sentence_embedding"], self.truncate_dim
)
if output_value == "token_embeddings":
embeddings = []
for token_emb, attention in zip(out_features[output_value], out_features["attention_mask"]):
last_mask_id = len(attention) - 1
while last_mask_id > 0 and attention[last_mask_id].item() == 0:
last_mask_id -= 1
embeddings.append(token_emb[0 : last_mask_id + 1])
elif output_value is None: # Return all outputs
embeddings = []
for sent_idx in range(len(out_features["sentence_embedding"])):
row = {name: out_features[name][sent_idx] for name in out_features}
embeddings.append(row)
else: # Sentence embeddings
embeddings = out_features[output_value]
embeddings = embeddings.detach()
if normalize_embeddings:
embeddings = torch.nn.functional.normalize(embeddings, p=2, dim=1)
# fixes for #522 and #487 to avoid oom problems on gpu with large datasets
if convert_to_numpy:
embeddings = embeddings.cpu()
all_embeddings.extend(embeddings)
all_embeddings = [all_embeddings[idx] for idx in np.argsort(length_sorted_idx)]
if precision and precision != "float32":
all_embeddings = quantize_embeddings(all_embeddings, precision=precision)
if convert_to_tensor:
if len(all_embeddings):
if isinstance(all_embeddings, np.ndarray):
all_embeddings = torch.from_numpy(all_embeddings)
else:
all_embeddings = torch.stack(all_embeddings)
else:
all_embeddings = torch.Tensor()
elif convert_to_numpy:
if not isinstance(all_embeddings, np.ndarray):
all_embeddings = np.asarray([emb.numpy() for emb in all_embeddings])
elif isinstance(all_embeddings, np.ndarray):
all_embeddings = [torch.from_numpy(embedding) for embedding in all_embeddings]
if input_was_string:
all_embeddings = all_embeddings[0]
return all_embeddings
|
(self, sentences: Union[str, List[str]], prompt_name: Optional[str] = None, prompt: Optional[str] = None, batch_size: int = 32, show_progress_bar: Optional[bool] = None, output_value: Optional[Literal['sentence_embedding', 'token_embeddings']] = 'sentence_embedding', precision: Literal['float32', 'int8', 'uint8', 'binary', 'ubinary'] = 'float32', convert_to_numpy: bool = True, convert_to_tensor: bool = False, device: Optional[str] = None, normalize_embeddings: bool = False) -> Union[List[torch.Tensor], numpy.ndarray, torch.Tensor]
|
[
-0.005186009686440229,
-0.06405776739120483,
-0.0503494031727314,
-0.04294005408883095,
0.023615961894392967,
0.034463077783584595,
-0.05333876609802246,
-0.043196287006139755,
0.07998679578304291,
0.013185223564505577,
0.002579659456387162,
-0.02863381989300251,
-0.051118094474077225,
-0.009245670400559902,
0.028121357783675194,
0.04975153133273125,
0.036491572856903076,
-0.03476201370358467,
0.000504788535181433,
-0.006982296239584684,
0.006581935100257397,
-0.004769634455442429,
-0.042875997722148895,
-0.007969853468239307,
-0.0005218038568273187,
-0.04923906922340393,
0.026413151994347572,
-0.04825684800744057,
-0.06521080434322357,
0.03640616312623024,
0.040698032826185226,
-0.01666569523513317,
0.046975694596767426,
-0.03708944469690323,
-0.0033016439992934465,
-0.0303847324103117,
-0.010179846547544003,
-0.0019003803608939052,
0.00012561326730065048,
-0.03149506822228432,
-0.05893314257264137,
-0.09164530783891678,
0.009405815042555332,
0.007233189418911934,
-0.03841330483555794,
0.04693298786878586,
-0.03375844284892082,
0.05269818753004074,
-0.019548295065760612,
-0.007750989403575659,
0.0096833985298872,
-0.07127493619918823,
0.04778709262609482,
0.021427322179079056,
-0.026797497645020485,
0.015886325389146805,
-0.025665810331702232,
-0.004983160179108381,
-0.0033710398711264133,
-0.0409969687461853,
0.017914820462465286,
-0.0005878634401597083,
0.04975153133273125,
0.06794393807649612,
-0.020936213433742523,
0.05397934094071388,
0.03102531097829342,
0.008188717067241669,
-0.04817143827676773,
0.01581159234046936,
-0.025003880262374878,
-0.08882676810026169,
-0.027587544173002243,
0.0007880439516156912,
-0.0193667970597744,
0.019548295065760612,
0.010259918868541718,
0.022484274581074715,
0.0025863321498036385,
0.014380968175828457,
0.006790122948586941,
0.03612858057022095,
-0.033673033118247986,
-0.04219271242618561,
0.05731034651398659,
-0.002584997797384858,
-0.0022180001251399517,
0.05573025345802307,
-0.03384385257959366,
-0.028719231486320496,
-0.03401467204093933,
0.024363303557038307,
0.07815047353506088,
0.06486916542053223,
-0.0062990132719278336,
0.024576829746365547,
-0.012950344942510128,
-0.07212904095649719,
-0.002048513852059841,
-0.023487847298383713,
-0.00004499890928855166,
0.09275564551353455,
0.025836631655693054,
0.03140965849161148,
-0.00915492232888937,
-0.043772805482149124,
-0.056071896106004715,
-0.017231538891792297,
0.032605402171611786,
-0.005306118167936802,
-0.038135722279548645,
0.018085641786456108,
0.04142402112483978,
0.0010449422989040613,
0.007073044776916504,
-0.04586536064743996,
-0.027075082063674927,
0.04458420351147652,
0.003106801537796855,
0.023338379338383675,
0.012736818753182888,
0.022014517337083817,
-0.02267644926905632,
-0.08519682288169861,
-0.006790122948586941,
0.039801225066185,
0.005215369630604982,
0.020188871771097183,
0.025986099615693092,
-0.06444211304187775,
-0.04197918623685837,
-0.008172702975571156,
0.009459196589887142,
0.07750989496707916,
0.023295672610402107,
-0.035680174827575684,
-0.029210340231657028,
-0.02745942771434784,
0.009939629584550858,
0.037495143711566925,
0.004123718477785587,
0.026583971455693245,
0.03890441358089447,
-0.01825646311044693,
-0.019292064011096954,
-0.02331702597439289,
0.04121049493551254,
-0.06713254004716873,
-0.005882638040930033,
-0.06747417896986008,
0.01905718445777893,
-0.02688290923833847,
-0.01958032324910164,
-0.0387335941195488,
-0.0037126813549548388,
0.012149622663855553,
0.010473444126546383,
-0.06354530155658722,
0.03700403496623039,
0.025644458830356598,
-0.01226706150919199,
-0.05679788440465927,
-0.014722609892487526,
0.052441954612731934,
-0.012896963395178318,
0.04449879378080368,
0.055388614535331726,
0.0393955260515213,
-0.004967145621776581,
0.06008618324995041,
0.041808366775512695,
0.025260111317038536,
0.0010582876857370138,
0.006667345762252808,
-0.03181535750627518,
0.032861631363630295,
0.02513199672102928,
-0.014861401170492172,
-0.014743962325155735,
0.018651485443115234,
-0.043132226914167404,
-0.02006075717508793,
-0.03960905224084854,
-0.01613187976181507,
-0.00677410839125514,
0.03333139047026634,
0.04150943085551262,
0.04454149678349495,
0.02246292307972908,
-0.010259918868541718,
-0.02692561410367489,
-0.059488311409950256,
0.01256599836051464,
0.03059825859963894,
-0.0439436249434948,
0.012715466320514679,
-0.030619611963629723,
-0.018811630085110664,
-0.033181920647621155,
-0.045481011271476746,
-0.02342378906905651,
-0.009800838306546211,
0.03168724104762077,
-0.038605477660894394,
-0.04770168289542198,
0.013153194449841976,
-0.050648339092731476,
0.009848881512880325,
-0.03427090495824814,
-0.07631415128707886,
-0.029082225635647774,
-0.0404631532728672,
0.0403350405395031,
0.0034564503002911806,
0.04204324632883072,
-0.031110720708966255,
0.0021405969746410847,
0.02314620465040207,
-0.036811862140893936,
-0.018779601901769638,
0.023295672610402107,
-0.02331702597439289,
-0.014541112817823887,
0.0036219328176230192,
-0.03550935536623001,
0.00763888843357563,
0.028548410162329674,
0.028505705296993256,
0.030320674180984497,
-0.010494796559214592,
0.02092553675174713,
0.05073374882340431,
-0.04838496446609497,
0.01383647695183754,
0.012053536251187325,
0.06350259482860565,
-0.00003540692705428228,
0.009688736870884895,
0.04210730269551277,
-0.01772264763712883,
0.017808059230446815,
-0.040206924080848694,
-0.015395215712487698,
-0.03410008177161217,
-0.00009183280781144276,
0.04274788126349449,
0.05227113515138626,
0.0030240602791309357,
0.003306982107460499,
-0.00633638072758913,
-0.03081178478896618,
-0.013131842017173767,
0.009987672790884972,
-0.03869089111685753,
0.03416414186358452,
-0.06913968175649643,
0.0014239506563171744,
-0.0007613532361574471,
0.047402746975421906,
-0.008535697124898434,
-0.01734897866845131,
0.00979016162455082,
-0.0046174973249435425,
0.07268420606851578,
-0.017551828175783157,
-0.026327740401029587,
-0.028868699446320534,
0.015608741901814938,
-0.004732267465442419,
-0.011210109107196331,
-0.017445065081119537,
0.11504774540662766,
-0.047231923788785934,
-0.0313883051276207,
0.029210340231657028,
-0.0014025981072336435,
0.03407873213291168,
0.02927439846098423,
-0.02039172127842903,
0.0690542683005333,
0.006256308406591415,
-0.007094397209584713,
-0.00904815923422575,
-0.057139527052640915,
0.0921577662229538,
-0.0007373315747827291,
-0.053296059370040894,
-0.04774438589811325,
0.055217791348695755,
-0.048299554735422134,
0.03222105652093887,
0.041125085204839706,
0.05098998174071312,
0.02207857556641102,
-0.05530320480465889,
-0.01841660775244236,
-0.015416568145155907,
-0.02139529399573803,
0.03817842900753021,
-0.03815707564353943,
0.01005706936120987,
0.028761936351656914,
0.09830731898546219,
0.02863381989300251,
-0.024512771517038345,
-0.021747611463069916,
0.04428526759147644,
0.016633665189146996,
0.022847268730401993,
-0.04911095276474953,
-0.02299673669040203,
-0.017861440777778625,
0.0024622203782200813,
0.03232781961560249,
0.001693527097813785,
0.04082614928483963,
0.07413618266582489,
-0.0034964862279593945,
0.015790238976478577,
0.035786937922239304,
-0.007339952047914267,
0.026327740401029587,
0.05573025345802307,
0.029637392610311508,
-0.014252852648496628,
-0.10787327587604523,
0.11086263507604599,
-0.00272779306396842,
0.028783287853002548,
-0.07622873783111572,
0.055858369916677475,
-0.06768770515918732,
0.0024835728108882904,
0.0033496872056275606,
-0.04881201684474945,
0.013281309977173805,
0.0013085133396089077,
0.006966281682252884,
0.039886634796857834,
-0.026690734550356865,
0.04097561538219452,
0.010612236335873604,
-0.02773701213300228,
0.07328208535909653,
0.0079805301502347,
-0.023274321109056473,
0.02842029556632042,
0.007008987013250589,
-0.01517101377248764,
0.0005745180533267558,
-0.009816852398216724,
0.041402667760849,
0.025409579277038574,
0.04185107350349426,
0.023082148283720016,
-0.017647914588451385,
-0.02214263379573822,
-0.03200753033161163,
-0.04624970629811287,
-0.014658551663160324,
-0.02677614614367485,
0.021747611463069916,
-0.012928992509841919,
0.03508230298757553,
-0.025793926790356636,
-0.002858577761799097,
0.028804641216993332,
-0.03901117667555809,
0.03647021949291229,
0.014978840947151184,
0.013089136220514774,
-0.006000077351927757,
-0.0037313648499548435,
0.053723111748695374,
0.006752755958586931,
0.029616039246320724,
-0.08131065219640732,
0.03224240615963936,
-0.018704866990447044,
0.010526825673878193,
-0.0006248968420550227,
0.02080809697508812,
-0.0010015697916969657,
-0.003950228914618492,
0.07618603110313416,
-0.011348900385200977,
0.07417888939380646,
-0.018918393179774284,
0.02218533866107464,
-0.0011577106779441237,
-0.06226414814591408,
0.01114605087786913,
0.012416530400514603,
0.017423711717128754,
-0.04082614928483963,
0.01388985849916935,
-0.04415715113282204,
0.031431008130311966,
-0.02496117539703846,
-0.01501086913049221,
0.0012190992711111903,
-0.020242253318428993,
0.03187941387295723,
0.06166627258062363,
-0.04522478207945824,
-0.0005801898660138249,
0.031174778938293457,
0.03805031254887581,
-0.00960866454988718,
0.0409969687461853,
-0.08178041130304337,
0.018437959253787994,
-0.00846630148589611,
0.012042859569191933,
-0.07071977108716965,
0.010041054338216782,
-0.04219271242618561,
0.013430777937173843,
-0.010713661089539528,
0.04663405194878578,
-0.0054235574789345264,
0.04923906922340393,
0.082805335521698,
0.03027796931564808,
-0.026370447129011154,
0.021619495004415512,
-0.041445374488830566,
-0.00018950422236230224,
-0.0002605683112051338,
-0.06247767433524132,
-0.04445608705282211,
-0.03751649707555771,
0.013185223564505577,
-0.06482645869255066,
-0.03243458271026611,
0.025110643357038498,
0.010078421793878078,
-0.03126018866896629,
-0.020146166905760765,
0.020989593118429184,
0.010606897994875908,
-0.02773701213300228,
0.029680097475647926,
0.05081915855407715,
0.05385122820734978,
0.014455702155828476,
-0.08242098987102509,
0.07669849693775177,
-0.022057224065065384,
-0.005941357463598251,
0.07294043898582458,
-0.02246292307972908,
0.06328906863927841,
0.020402397960424423,
0.037601906806230545,
0.014017974026501179,
0.05231384187936783,
0.02033833973109722,
-0.02513199672102928,
-0.010414725169539452,
0.0037767391186207533,
0.048726607114076614,
0.02538822777569294,
0.03775137662887573,
0.02321026287972927,
0.025793926790356636,
-0.01814970001578331,
-0.02282591722905636,
-0.028377588838338852,
0.03241322934627533,
0.042662471532821655,
0.023231616243720055,
0.054534509778022766,
-0.019035832956433296,
0.021886402741074562,
-0.041915129870176315,
0.0044279927387833595,
-0.031858060508966446,
-0.015672799199819565,
-0.019943317398428917,
0.014679904095828533,
-0.08728937804698944,
-0.027758363634347916,
0.0011990813072770834,
-0.0011223454494029284,
-0.00449738884344697,
0.04748815670609474,
-0.021619495004415512,
0.06175168603658676,
0.02261239103972912,
-0.03251999244093895,
0.0460788831114769,
0.059915363788604736,
-0.05880502611398697,
-0.014370291493833065,
-0.007393333595246077,
0.001113003701902926,
0.02214263379573822,
0.023124853149056435,
0.0029172974172979593,
0.007959176786243916,
0.004262510221451521,
-0.03262675553560257,
-0.05188678950071335,
0.029829565435647964,
0.05077645555138588,
-0.021886402741074562,
0.03059825859963894,
-0.054150164127349854,
-0.012875610962510109,
-0.0722571611404419,
-0.058676913380622864,
0.04121049493551254,
-0.07071977108716965,
0.0020124814473092556,
0.0193667970597744,
-0.00008465967403026298,
0.013324014842510223,
-0.005143304821103811,
0.008375552482903004,
-0.01650555059313774,
0.08028572797775269,
-0.045694537460803986,
-0.019292064011096954,
-0.022377511486411095,
0.017018012702465057,
-0.022228043526411057,
-0.03183670714497566,
0.00494846235960722,
0.011114021763205528,
-0.035317178815603256,
-0.02346649393439293,
0.00822074618190527,
0.055815666913986206,
0.017957527190446854,
0.014797343872487545,
-0.020082108676433563,
0.00559971621260047,
0.05795092508196831,
0.026797497645020485,
-0.06264849007129669,
0.021779639646410942,
-0.05726763978600502,
-0.03960905224084854,
0.042021892964839935,
-0.011701217852532864,
-0.00814601220190525,
0.07528922706842422,
0.0011990813072770834,
0.010558854788541794,
-0.06269119679927826,
-0.003467126516625285,
0.05017858371138573,
0.014786667190492153,
0.013484159484505653,
-0.06670548766851425,
0.036534279584884644,
0.012982373125851154,
-0.003536522388458252,
0.06141004338860512,
0.029082225635647774,
0.002903952030465007,
-0.017316948622465134,
-0.06469833850860596,
0.032391875982284546,
0.07413618266582489,
-0.057609282433986664,
-0.019025156274437904,
-0.050007760524749756,
-0.009090864099562168,
0.022313455119729042,
0.00007656904926989228,
-0.03448443114757538,
0.0022406871430575848,
-0.03055555373430252,
0.0063310423865914345,
-0.02491847053170204,
-0.027075082063674927,
0.016462845727801323,
0.010606897994875908,
-0.012854257598519325,
0.00859441701322794,
-0.0016201275866478682,
0.017946850508451462,
0.1040298119187355,
0.05120350793004036,
0.034996893256902695,
0.05188678950071335,
-0.014679904095828533,
0.027544839307665825,
-0.01087914314121008,
0.03495418652892113,
0.014466378837823868,
0.046975694596767426,
0.07481946796178818,
0.0011029946617782116,
-0.041658900678157806,
0.025003880262374878,
0.01005706936120987,
-0.06593678891658783,
-0.05103268474340439,
0.015790238976478577,
-0.017701296135783195,
0.02453412301838398,
0.038349248468875885,
-0.06243496760725975,
-0.013259957544505596,
0.03495418652892113,
0.017861440777778625,
-0.028441647067666054,
-0.03305380791425705,
0.007275894284248352,
-0.03140965849161148,
-0.052869006991386414,
-0.029957681894302368,
-0.03623534366488457,
0.009096202440559864,
0.023765429854393005,
0.06345988810062408,
-0.026904260739684105,
0.08549576252698898,
-0.010041054338216782,
-0.028975462540984154,
-0.02596474625170231,
-0.0241711288690567,
-0.025537695735692978,
-0.014861401170492172,
-0.006496524903923273,
0.016462845727801323,
-0.02049848437309265,
0.022761858999729156,
0.025943394750356674,
-0.0016801818273961544,
0.030320674180984497,
0.003509831614792347,
0.02176896296441555,
0.00686485692858696,
-0.03518906608223915,
-0.008338185958564281,
0.007355966605246067,
-0.029359808191657066,
0.024619534611701965,
-0.01370836142450571,
0.0017242215108126402,
0.0063523948192596436,
0.02271915413439274,
-0.01909988932311535,
-0.022420218214392662,
0.014861401170492172,
0.051075391471385956,
-0.00008528523903805763,
0.032498639076948166,
0.019067861139774323,
-0.05098998174071312,
0.03454848751425743,
0.013377396389842033,
-0.004022293724119663,
-0.01916394755244255,
0.007996544241905212,
0.01506425067782402,
0.019601676613092422,
0.0061975885182619095,
-0.019548295065760612,
-0.02267644926905632,
-0.014765314757823944,
0.014626522548496723,
-0.04706110432744026,
-0.011081993579864502,
0.0331178642809391,
0.0029439881909638643,
-0.05504697188735008,
-0.007964515127241611,
-0.010174508206546307,
-0.007654902990907431,
0.0123204430565238,
0.017850764095783234,
0.0186301339417696,
0.0035285151097923517,
0.01051081158220768,
-0.029359808191657066,
-0.01519236620515585,
0.011605131439864635,
0.045694537460803986,
-0.0013525530230253935,
-0.07315396517515182,
-0.050221286714076996,
-0.0061762360855937,
0.006416452582925558,
-0.020306311547756195,
-0.06986566632986069,
-0.018064290285110474,
0.005060563329607248,
-0.015886325389146805,
-0.07631415128707886,
0.0324559323489666,
0.018758248537778854,
-0.002797188935801387,
-0.06153815984725952,
-0.028035948053002357,
0.012416530400514603,
0.012160299345850945,
0.01038269605487585,
-0.05914666876196861,
-0.04919636249542236,
0.007510772906243801,
0.03264810889959335,
-0.021470027044415474,
-0.0012998387683182955,
-0.051502443850040436,
0.03331003710627556,
0.05748116597533226,
0.00009883912571240216,
0.023722724989056587,
-0.033566270023584366,
-0.001540055382065475,
0.012074888683855534,
-0.001064293086528778,
0.07507570087909698,
0.040698032826185226,
0.027075082063674927,
0.022313455119729042,
0.007750989403575659,
0.04454149678349495,
-0.0046174973249435425,
-0.08771643042564392,
-0.018758248537778854,
-0.04178701341152191,
0.0037553864531219006,
0.08408649265766144,
-0.02485441230237484,
-0.03559476509690285,
0.03179400414228439,
-0.05722493678331375,
0.017647914588451385,
-0.045694537460803986,
-0.06371612101793289,
0.022163987159729004,
-0.023978956043720245,
-0.054363690316677094,
-0.06866992264986038,
-0.0008727870299480855,
-0.017050040885806084,
-0.02261239103972912,
0.02709643356502056,
0.04616429656744003,
0.018320521339774132,
0.06042782589793205,
-0.06512539088726044,
-0.017786705866456032,
-0.0009181612986139953,
0.042982760816812515,
0.03128154203295708,
-0.036491572856903076,
-0.018160376697778702,
0.08361673355102539,
0.014647874981164932,
0.034890130162239075,
0.0014746631495654583,
-0.05790821835398674,
-0.059317488223314285,
-0.04150943085551262,
-0.0299149751663208,
0.022697800770401955,
-0.0025142673403024673,
-0.049580708146095276,
0.028890050947666168,
0.020936213433742523,
0.02427789196372032
] |
10,044
|
sentence_transformers.SentenceTransformer
|
encode_multi_process
|
This method allows to run encode() on multiple GPUs. The sentences are chunked into smaller packages
and sent to individual processes, which encode these on the different GPUs. This method is only suitable
for encoding large sets of sentences
:param sentences: List of sentences
:param pool: A pool of workers started with SentenceTransformer.start_multi_process_pool
:param prompt_name: The name of the prompt to use for encoding. Must be a key in the `prompts` dictionary,
which is either set in the constructor or loaded from the model configuration. For example if
`prompt_name` is ``"query"`` and the `prompts` is ``{"query": "query: {}", ...}``, then the sentence "What
is the capital of France?" will be encoded as "query: What is the capital of France?". If `prompt` is
also set, this argument is ignored.
:param prompt: The prompt to use for encoding. For example, if the prompt is ``"query: {}"``, then the
sentence "What is the capital of France?" will be encoded as "query: What is the capital of France?".
If `prompt` is set, `prompt_name` is ignored.
:param batch_size: Encode sentences with batch size
:param chunk_size: Sentences are chunked and sent to the individual processes. If none, it determine a sensible size.
:param normalize_embeddings: Whether to normalize returned vectors to have length 1. In that case,
the faster dot-product (util.dot_score) instead of cosine similarity can be used.
:return: 2d numpy array with shape [num_inputs, output_dimension]
|
def encode_multi_process(
self,
sentences: List[str],
pool: Dict[str, object],
prompt_name: Optional[str] = None,
prompt: Optional[str] = None,
batch_size: int = 32,
chunk_size: int = None,
normalize_embeddings: bool = False,
):
"""
This method allows to run encode() on multiple GPUs. The sentences are chunked into smaller packages
and sent to individual processes, which encode these on the different GPUs. This method is only suitable
for encoding large sets of sentences
:param sentences: List of sentences
:param pool: A pool of workers started with SentenceTransformer.start_multi_process_pool
:param prompt_name: The name of the prompt to use for encoding. Must be a key in the `prompts` dictionary,
which is either set in the constructor or loaded from the model configuration. For example if
`prompt_name` is ``"query"`` and the `prompts` is ``{"query": "query: {}", ...}``, then the sentence "What
is the capital of France?" will be encoded as "query: What is the capital of France?". If `prompt` is
also set, this argument is ignored.
:param prompt: The prompt to use for encoding. For example, if the prompt is ``"query: {}"``, then the
sentence "What is the capital of France?" will be encoded as "query: What is the capital of France?".
If `prompt` is set, `prompt_name` is ignored.
:param batch_size: Encode sentences with batch size
:param chunk_size: Sentences are chunked and sent to the individual processes. If none, it determine a sensible size.
:param normalize_embeddings: Whether to normalize returned vectors to have length 1. In that case,
the faster dot-product (util.dot_score) instead of cosine similarity can be used.
:return: 2d numpy array with shape [num_inputs, output_dimension]
"""
if chunk_size is None:
chunk_size = min(math.ceil(len(sentences) / len(pool["processes"]) / 10), 5000)
logger.debug(f"Chunk data into {math.ceil(len(sentences) / chunk_size)} packages of size {chunk_size}")
input_queue = pool["input"]
last_chunk_id = 0
chunk = []
for sentence in sentences:
chunk.append(sentence)
if len(chunk) >= chunk_size:
input_queue.put([last_chunk_id, batch_size, chunk, prompt_name, prompt, normalize_embeddings])
last_chunk_id += 1
chunk = []
if len(chunk) > 0:
input_queue.put([last_chunk_id, batch_size, chunk, prompt_name, prompt, normalize_embeddings])
last_chunk_id += 1
output_queue = pool["output"]
results_list = sorted([output_queue.get() for _ in range(last_chunk_id)], key=lambda x: x[0])
embeddings = np.concatenate([result[1] for result in results_list])
return embeddings
|
(self, sentences: List[str], pool: Dict[str, object], prompt_name: Optional[str] = None, prompt: Optional[str] = None, batch_size: int = 32, chunk_size: Optional[int] = None, normalize_embeddings: bool = False)
|
[
0.019903114065527916,
-0.03447604924440384,
-0.059047795832157135,
0.018750132992863655,
-0.026253964751958847,
0.036763112992048264,
-0.06139156222343445,
-0.054662685841321945,
0.09828698635101318,
-0.014147655107080936,
0.022322487086057663,
-0.06766680628061295,
-0.06146716699004173,
0.056590620428323746,
-0.0002532484650146216,
0.0003830475325230509,
0.07466030865907669,
-0.07477371394634247,
-0.007518009282648563,
0.007914937101304531,
0.004876546561717987,
0.0361015647649765,
-0.0014105127193033695,
-0.027236836031079292,
-0.012144112959504128,
0.0026083854027092457,
0.040373269468545914,
-0.03438154235482216,
-0.025630220770835876,
0.04313286393880844,
0.05171407386660576,
-0.0024181907065212727,
0.022984033450484276,
0.0009799165418371558,
-0.01386413536965847,
-0.006728878244757652,
0.0006461896700784564,
0.05386882647871971,
-0.059917256236076355,
-0.030846992507576942,
-0.038010600954294205,
-0.10320133715867996,
0.017682205885648727,
0.0003437681880313903,
-0.028919054195284843,
0.0288812518119812,
-0.024477239698171616,
0.03604486212134361,
-0.007489657029509544,
0.004800941329449415,
-0.012380380183458328,
-0.08452680706977844,
0.026121655479073524,
0.01545184850692749,
-0.037046633660793304,
0.02854102849960327,
0.017729459330439568,
0.008009443990886211,
-0.04634609445929527,
-0.01810748688876629,
0.012210267595946789,
-0.033871207386255264,
0.06876308470964432,
0.026008248329162598,
-0.0370655357837677,
0.0015629047993570566,
-0.007711748126894236,
0.01434611901640892,
-0.02041345089673996,
-0.0021382144186645746,
-0.005145890638232231,
-0.06709976494312286,
-0.028030691668391228,
0.040902506560087204,
-0.04025986045598984,
0.08966796845197678,
-0.003990545868873596,
0.02704782225191593,
0.015045469626784325,
0.021150603890419006,
0.01636856235563755,
0.008165379986166954,
-0.035364411771297455,
-0.052205510437488556,
0.028616633266210556,
0.0021134065464138985,
0.016207901760935783,
0.07186290621757507,
-0.026253964751958847,
-0.0751139372587204,
-0.005736557766795158,
0.06778021901845932,
0.07726868987083435,
0.09170931577682495,
0.05333958938717842,
0.02050795778632164,
-0.010717061348259449,
0.019430581480264664,
-0.023040737956762314,
-0.004734786693006754,
-0.03027995117008686,
0.05492730438709259,
0.0649828165769577,
-0.009597157128155231,
-0.05212990567088127,
-0.023267554119229317,
-0.024042507633566856,
0.006468984764069319,
0.011633777059614658,
-0.024061409756541252,
-0.041658561676740646,
0.03077138587832451,
0.011208496056497097,
-0.012115760706365108,
0.008198457770049572,
-0.009734191931784153,
-0.03269932419061661,
0.05700645223259926,
0.014572935178875923,
0.02682100608944893,
-0.026631992310285568,
0.03286943584680557,
0.003482572501525283,
-0.07598339766263962,
-0.027142329141497612,
0.009143524803221226,
0.02835201472043991,
0.03957941383123398,
-0.02695331536233425,
-0.03859654441475868,
-0.019317172467708588,
0.007380974479019642,
0.03192436695098877,
0.060446497052907944,
0.02657528780400753,
-0.03908797726035118,
-0.05719546601176262,
-0.023267554119229317,
0.019373876973986626,
0.009100996889173985,
0.009275834076106548,
-0.028730042278766632,
-0.012843462638556957,
0.01934552565217018,
0.021207306534051895,
-0.024439437314867973,
0.047253359109163284,
-0.11454214155673981,
0.007598340045660734,
-0.028919054195284843,
0.011936197988688946,
-0.004952151793986559,
-0.0024264599196612835,
-0.040562283247709274,
-0.003135260194540024,
0.044607169926166534,
0.016982857137918472,
-0.014998216181993484,
0.010471343994140625,
0.003929116763174534,
-0.04483398422598839,
-0.03470286726951599,
-0.016538675874471664,
0.06653273105621338,
-0.018844639882445335,
0.00510336272418499,
0.029391588643193245,
0.010433541610836983,
-0.024155916646122932,
0.03768927976489067,
0.058518558740615845,
0.02629176899790764,
0.007182510569691658,
-0.009379791095852852,
0.00015017707482911646,
0.030582373961806297,
0.03269932419061661,
-0.02704782225191593,
-0.012238619849085808,
0.014279964379966259,
-0.014667442068457603,
0.006194915156811476,
-0.02137742005288601,
0.017030110582709312,
-0.04271703585982323,
0.008392196148633957,
0.06248784065246582,
0.0036739485803991556,
0.04933250695466995,
-0.03154634311795235,
-0.03566683456301689,
-0.005556995049118996,
-0.0000436724403698463,
0.022303584963083267,
-0.0019078543409705162,
0.030979301780462265,
-0.03124392032623291,
-0.03241580352187157,
-0.03351208195090294,
-0.012578844092786312,
-0.01237092912197113,
-0.01535734161734581,
0.05980385094881058,
-0.01713406667113304,
-0.035213202238082886,
-0.02184995263814926,
-0.06434017419815063,
0.007376248948276043,
-0.030601274222135544,
-0.03260481730103493,
-0.0013597153592854738,
-0.06638151407241821,
0.06279025971889496,
0.09170931577682495,
0.07541635632514954,
0.010821019299328327,
0.02175544574856758,
0.01786176860332489,
-0.028994660824537277,
-0.03681981563568115,
0.021793248131871223,
-0.03923918679356575,
0.024439437314867973,
0.025554616004228592,
-0.05039098113775253,
0.011038384400308132,
0.022795019671320915,
0.03012874163687229,
0.03523210436105728,
0.011709381826221943,
0.00934198871254921,
0.028559928759932518,
-0.0076597691513597965,
0.00868989247828722,
-0.009403417818248272,
-0.028049593791365623,
-0.016812745481729507,
-0.008033070713281631,
0.014251613058149815,
0.010717061348259449,
0.025932643562555313,
-0.01593383215367794,
-0.009455396793782711,
-0.053755421191453934,
0.012635547667741776,
0.0066201952286064625,
0.05035317689180374,
-0.021585334092378616,
0.02426932379603386,
0.011369157582521439,
-0.03559122979640961,
-0.03445714712142944,
-0.021547531709074974,
-0.03976842761039734,
0.02536560222506523,
-0.058669768273830414,
-0.009781445376574993,
0.004647367633879185,
0.011945649050176144,
-0.00330300978384912,
-0.029297081753611565,
0.005571170710027218,
-0.02175544574856758,
0.06025748327374458,
-0.011113990098237991,
0.012219718657433987,
-0.022549303248524666,
0.013807430863380432,
-0.009015941061079502,
0.02234138734638691,
0.022851724177598953,
0.09307021647691727,
-0.023021835833787918,
-0.007858233526349068,
0.012550491839647293,
0.008170105516910553,
-0.014752497896552086,
0.024666253477334976,
-0.009970458224415779,
0.01465799193829298,
0.038502037525177,
-0.011303002946078777,
-0.0317731574177742,
-0.06158057600259781,
0.06944353133440018,
0.012333126738667488,
-0.05961483716964722,
-0.03373889625072479,
0.0457412488758564,
-0.04082690179347992,
-0.018381556496024132,
0.03821851685643196,
0.0199787188321352,
0.0032841083593666553,
-0.06895209848880768,
-0.03818071261048317,
-0.012559942901134491,
-0.01583932526409626,
0.0009539271704852581,
-0.0558345690369606,
-0.005556995049118996,
0.0462326854467392,
0.057649098336696625,
0.041469547897577286,
-0.0156503114849329,
-0.029769616201519966,
0.021339615806937218,
-0.017738910391926765,
-0.039692819118499756,
-0.01713406667113304,
0.003482572501525283,
-0.0007011216948740184,
0.003655047155916691,
0.024722956120967865,
-0.005840515252202749,
0.06180739402770996,
0.07908321917057037,
0.0361015647649765,
-0.01465799193829298,
-0.001872414257377386,
-0.033682193607091904,
0.01362786814570427,
0.06513402611017227,
-0.002735969377681613,
-0.0192510187625885,
-0.009875952266156673,
0.08271227777004242,
-0.014572935178875923,
0.02031894400715828,
0.003943292889744043,
0.026159459725022316,
-0.0018074408872053027,
0.013344348408281803,
0.025044279173016548,
-0.026499683037400246,
0.004687533248215914,
-0.0009403418516740203,
-0.04736676439642906,
0.0674021914601326,
-0.06245003640651703,
0.03243470564484596,
-0.013797980733215809,
-0.05734667554497719,
0.009781445376574993,
-0.04736676439642906,
-0.028673337772488594,
0.028994660824537277,
0.013920838944613934,
-0.030695781111717224,
-0.004515058360993862,
0.024609548971056938,
0.058518558740615845,
0.02300293557345867,
0.033436477184295654,
0.0021027743350714445,
0.009379791095852852,
-0.03553452342748642,
-0.020300041884183884,
-0.0075369104743003845,
-0.013363249599933624,
-0.04721555486321449,
-0.020696971565485,
0.020810378715395927,
-0.00582633912563324,
-0.03298284485936165,
-0.01973300240933895,
0.03625277802348137,
-0.028030691668391228,
0.04335968196392059,
0.006261069793254137,
-0.008122852072119713,
0.01030123233795166,
-0.01714351773262024,
0.04653510823845863,
-0.03644178807735443,
0.010102767497301102,
-0.10872052609920502,
0.002160659758374095,
-0.04713995009660721,
0.01148256566375494,
-0.006298872642219067,
-0.023078540340065956,
0.048652056604623795,
-0.01954398863017559,
0.019288821145892143,
-0.040222059935331345,
0.07692846655845642,
0.037141140550374985,
0.005939747206866741,
0.013382150791585445,
-0.038010600954294205,
0.011066736653447151,
-0.0009810978081077337,
0.010339034721255302,
-0.030261050909757614,
-0.010291781276464462,
-0.00578853627666831,
0.0279172845184803,
-0.06320609152317047,
-0.032377999275922775,
-0.02041345089673996,
-0.006856462452560663,
0.025554616004228592,
0.01174718514084816,
-0.034438248723745346,
0.0029651483055204153,
0.031206117942929268,
0.009715290740132332,
0.006142936646938324,
0.027331342920660973,
-0.035610131919384,
0.04116712510585785,
-0.0022244518622756004,
-0.031073808670043945,
-0.10373057425022125,
-0.008774948306381702,
-0.06891429424285889,
-0.03447604924440384,
0.03409802168607712,
0.021169504150748253,
0.04203658550977707,
0.0774955078959465,
0.004522146191447973,
-0.0041086794808506966,
-0.02228468284010887,
-0.009942106902599335,
0.001070288592018187,
-0.017890121787786484,
0.012559942901134491,
-0.04324627295136452,
-0.04827402904629707,
0.0005611336091533303,
-0.0072959186509251595,
-0.011255749501287937,
-0.0008086230955086648,
0.005920845549553633,
0.031792059540748596,
-0.006081507075577974,
-0.030223248526453972,
0.014298866502940655,
0.0009775538928806782,
-0.003919666167348623,
0.02440163493156433,
-0.002724156016483903,
0.07757110893726349,
0.004141756799072027,
-0.058858782052993774,
0.024722956120967865,
-0.048500847071409225,
0.0035510899033397436,
0.0727323666214943,
0.016141746193170547,
0.04173416644334793,
-0.015064370818436146,
0.04679972678422928,
0.017200222238898277,
0.06282806396484375,
0.004233900923281908,
-0.04131833463907242,
0.005660952068865299,
0.012730054557323456,
0.004607202485203743,
0.03364438936114311,
0.04676192253828049,
-0.0233431588858366,
-0.003940930124372244,
-0.0044418154284358025,
0.01674658991396427,
-0.003825159277766943,
0.019005300477147102,
0.03337977081537247,
0.04218779876828194,
0.058367349207401276,
-0.013571164570748806,
-0.021944459527730942,
-0.040902506560087204,
-0.0274447500705719,
-0.017493193969130516,
0.019373876973986626,
-0.030393360182642937,
-0.006265795323997736,
-0.03167865052819252,
0.06093792989850044,
0.021963361650705338,
-0.018646175041794777,
-0.013202588073909283,
0.0674021914601326,
-0.00950737576931715,
0.03285053372383118,
0.01771055907011032,
-0.0008098044199869037,
0.0028800922445952892,
0.05046658590435982,
-0.01627405732870102,
0.029448293149471283,
-0.0013927926775068045,
0.0044418154284358025,
0.009904303587973118,
0.048311833292245865,
-0.03859654441475868,
0.0072675663977861404,
0.012333126738667488,
0.03218898922204971,
-0.1087961345911026,
0.05001295357942581,
0.03349317982792854,
-0.005528642795979977,
-0.0033927911426872015,
-0.09745532274246216,
0.028238607570528984,
-0.08271227777004242,
-0.07295918464660645,
-0.0015558168524876237,
-0.06176958978176117,
0.005301826633512974,
0.03927699103951454,
0.049710530787706375,
0.001652686158195138,
0.004824568051844835,
0.0024028331972658634,
0.044758379459381104,
0.038067303597927094,
-0.04203658550977707,
-0.006809209007769823,
-0.038502037525177,
0.00044713489478453994,
0.0035085617564618587,
-0.02648078091442585,
-0.006950968876481056,
0.010424090549349785,
-0.03498638793826103,
-0.0044654421508312225,
-0.004491431638598442,
0.05311277508735657,
0.028030691668391228,
-0.042339008301496506,
-0.004713522270321846,
0.0438133142888546,
0.0756053701043129,
0.005429410841315985,
-0.07624801993370056,
0.0438133142888546,
-0.011567622423171997,
-0.023910198360681534,
0.039881832897663116,
0.023702284321188927,
0.020678069442510605,
0.06233663111925125,
-0.0070171235129237175,
0.0030643802601844072,
-0.04434255138039589,
-0.01090607512742281,
0.021831050515174866,
-0.005746008362621069,
0.018750132992863655,
-0.09609442949295044,
0.038785554468631744,
0.01227642223238945,
-0.016160648316144943,
0.042679231613874435,
0.03071468323469162,
0.031414031982421875,
-0.039881832897663116,
-0.057989321649074554,
0.04853864759206772,
0.02181215025484562,
-0.0678936243057251,
0.01169993169605732,
0.00856703333556652,
0.0014943873975425959,
0.03394681215286255,
0.025346701964735985,
0.0033833403140306473,
-0.0019432943081483245,
-0.0015877127880230546,
-0.01087772287428379,
-0.013174235820770264,
-0.024231521412730217,
0.004401650279760361,
0.0043307701125741005,
-0.012966321781277657,
0.013060827739536762,
-0.011189594864845276,
0.00291316956281662,
0.05318837985396385,
0.056250397115945816,
0.0038700499571859837,
-0.000679267046507448,
0.002766684163361788,
0.014497330412268639,
-0.05810273066163063,
0.03923918679356575,
0.04732896387577057,
0.0394660048186779,
0.07541635632514954,
0.010556399822235107,
-0.04887887462973595,
-0.008378020487725735,
-0.0008877724758349359,
-0.06634371727705002,
-0.04078909754753113,
0.019430581480264664,
-0.008047247305512428,
0.02243589423596859,
0.03553452342748642,
-0.09564079344272614,
-0.07401765882968903,
0.0028989934362471104,
0.000575309619307518,
0.01915651187300682,
-0.024193719029426575,
-0.023891298100352287,
-0.0021653850562870502,
-0.02570582740008831,
-0.02787948027253151,
-0.029826318845152855,
0.0011606606421992183,
0.0008233897387981415,
0.07401765882968903,
-0.03672530874609947,
0.05719546601176262,
-0.023891298100352287,
-0.032321296632289886,
-0.05848075449466705,
-0.007905486971139908,
-0.012115760706365108,
-0.030317753553390503,
0.0049899546429514885,
0.0003354988293722272,
-0.031792059540748596,
-0.009809796698391438,
0.015829874202609062,
0.0799148753285408,
0.013835783116519451,
0.06951913982629776,
-0.01621735282242298,
-0.012210267595946789,
0.009171877056360245,
-0.019430581480264664,
-0.03905017673969269,
-0.02035674639046192,
0.023021835833787918,
-0.010887173935770988,
-0.05912340059876442,
-0.017634952440857887,
0.012172465212643147,
-0.01015947200357914,
0.03691432252526283,
0.06815824657678604,
0.04736676439642906,
0.007343171630054712,
0.023324256762862206,
0.01631185971200466,
-0.04740456864237785,
0.034060221165418625,
0.026442978531122208,
-0.05303717032074928,
-0.02980741858482361,
0.007929113693535328,
-0.01761605218052864,
-0.012682801112532616,
0.02854102849960327,
0.013826332986354828,
-0.019326623529195786,
-0.045325420796871185,
-0.024193719029426575,
-0.04309506341814995,
-0.038199614733457565,
0.008935609832406044,
0.01815474033355713,
-0.04611927643418312,
0.008250436745584011,
-0.018939146772027016,
-0.019562890753149986,
-0.010168923065066338,
0.032567013055086136,
0.0008422911050729454,
-0.006832835730165243,
-0.025441208854317665,
0.002172473119571805,
0.029769616201519966,
-0.008633188903331757,
0.02079147659242153,
0.017417587339878082,
-0.07035079598426819,
-0.05556995049118996,
-0.0064973365515470505,
-0.012210267595946789,
-0.018183091655373573,
-0.029523897916078568,
0.021207306534051895,
0.046043671667575836,
0.04422914236783981,
-0.09594321995973587,
-0.0023768439423292875,
-0.0020826917607337236,
0.04751797765493393,
-0.06286586821079254,
-0.048992279917001724,
-0.0022303585428744555,
-0.01824924722313881,
0.0005552269285544753,
-0.07715528458356857,
-0.053074970841407776,
0.022795019671320915,
0.05931241437792778,
-0.0799148753285408,
0.04857645183801651,
-0.001591256819665432,
0.03196217119693756,
0.05575896054506302,
-0.04986174404621124,
0.06589008122682571,
0.01564086228609085,
0.013467206619679928,
0.04819842427968979,
0.03196217119693756,
0.0866437554359436,
0.04661071300506592,
0.016207901760935783,
-0.0202244371175766,
0.051865287125110626,
0.042679231613874435,
-0.020772576332092285,
-0.08399756997823715,
-0.023513270542025566,
-0.01078321598470211,
0.008963962085545063,
0.12437083572149277,
0.01761605218052864,
-0.03317185863852501,
0.008009443990886211,
-0.05107142776250839,
-0.010679258964955807,
-0.035610131919384,
-0.048500847071409225,
0.015810973942279816,
-0.07110685110092163,
-0.06052210181951523,
-0.03298284485936165,
0.012900167144834995,
-0.02470405586063862,
0.024420535191893578,
0.006246894132345915,
0.04135613888502121,
0.003175425576046109,
0.051109232008457184,
-0.028106296434998512,
-0.008326041512191296,
-0.04872766137123108,
0.0491056889295578,
0.0543980672955513,
-0.04521201178431511,
0.017455389723181725,
0.06914111226797104,
-0.038634344935417175,
0.048122819513082504,
0.016907252371311188,
-0.05594797432422638,
-0.03551562502980232,
-0.03375779837369919,
-0.024590646848082542,
0.004822205286473036,
-0.01642526686191559,
-0.029637306928634644,
-0.007532185409218073,
0.04827402904629707,
0.03579914569854736
] |
10,045
|
torch.nn.modules.module
|
eval
|
Set the module in evaluation mode.
This has any effect only on certain modules. See documentations of
particular modules for details of their behaviors in training/evaluation
mode, if they are affected, e.g. :class:`Dropout`, :class:`BatchNorm`,
etc.
This is equivalent with :meth:`self.train(False) <torch.nn.Module.train>`.
See :ref:`locally-disable-grad-doc` for a comparison between
`.eval()` and several similar mechanisms that may be confused with it.
Returns:
Module: self
|
def eval(self: T) -> T:
r"""Set the module in evaluation mode.
This has any effect only on certain modules. See documentations of
particular modules for details of their behaviors in training/evaluation
mode, if they are affected, e.g. :class:`Dropout`, :class:`BatchNorm`,
etc.
This is equivalent with :meth:`self.train(False) <torch.nn.Module.train>`.
See :ref:`locally-disable-grad-doc` for a comparison between
`.eval()` and several similar mechanisms that may be confused with it.
Returns:
Module: self
"""
return self.train(False)
|
(self: ~T) -> ~T
|
[
0.040396399796009064,
-0.011729956604540348,
0.027332106605172157,
-0.007256003096699715,
0.006383887026458979,
0.021384278312325478,
-0.01485213078558445,
-0.04405928775668144,
-0.028744934126734734,
-0.004155631642788649,
0.020372623577713966,
-0.02103543095290661,
0.019256316125392914,
0.058989908546209335,
0.009645599871873856,
-0.015323073603212833,
-0.029303088784217834,
0.004700704012066126,
0.0028670805040746927,
-0.03983824700117111,
-0.03451834246516228,
-0.029774030670523643,
0.00867319107055664,
-0.023686664178967476,
-0.005311185028403997,
-0.00047884605010040104,
0.06540868431329727,
-0.0007042334764264524,
-0.02215174026787281,
0.008289460092782974,
-0.0023983183782547712,
-0.012689284048974514,
0.012872428633272648,
0.009854908101260662,
0.04182666912674904,
-0.032163627445697784,
-0.08463010936975479,
0.026442550122737885,
-0.04660586640238762,
-0.014607938937842846,
-0.050547827035188675,
-0.04545467346906662,
0.043012749403715134,
0.05354790762066841,
-0.0548386387526989,
-0.01130262017250061,
0.05222228914499283,
0.034117165952920914,
0.011354946531355381,
-0.03179733827710152,
-0.0023329094983637333,
0.034431129693984985,
0.009671763516962528,
0.01852373778820038,
-0.020599374547600746,
0.01370093785226345,
0.011415994726121426,
-0.022866874933242798,
0.027035588398575783,
-0.01643938198685646,
0.025552991777658463,
-0.0365590900182724,
-0.021558701992034912,
-0.003632362000644207,
0.02762862667441368,
0.03382064774632454,
-0.06708314269781113,
0.04632679000496864,
0.0108578409999609,
0.05082690715789795,
-0.057071253657341,
-0.016491709277033806,
0.01965748891234398,
0.009977004490792751,
0.020599374547600746,
-0.02513437531888485,
-0.09335126727819443,
-0.014477121643722057,
-0.028989126905798912,
0.014215486124157906,
-0.019727258011698723,
0.06122252345085144,
0.02297152951359749,
0.01600332371890545,
-0.06844364106655121,
-0.07625780254602432,
-0.021733123809099197,
-0.017093468457460403,
0.03436135873198509,
-0.052117638289928436,
0.013125342316925526,
0.03219851478934288,
-0.03484974429011345,
-0.034762535244226456,
0.036942820996046066,
-0.011747399345040321,
0.0008563086157664657,
-0.037187013775110245,
-0.034326475113630295,
-0.06457144767045975,
-0.00345357833430171,
0.07437402755022049,
0.0188376996666193,
-0.005045189522206783,
0.07179256528615952,
0.0033271214924752712,
-0.028500743210315704,
0.00965432170778513,
0.0194132961332798,
-0.028954243287444115,
-0.03514626622200012,
0.08016487956047058,
-0.0388265922665596,
0.036035820841789246,
-0.030628705397248268,
-0.030698474496603012,
-0.05815267935395241,
-0.06729245185852051,
-0.010186311788856983,
0.04887336492538452,
-0.0388614758849144,
0.06921110302209854,
-0.03509393706917763,
-0.0008786566322669387,
0.009235705249011517,
0.051594365388154984,
0.018471410498023033,
-0.020704027265310287,
0.06673429906368256,
-0.1313057392835617,
0.05525725334882736,
0.010604927316308022,
0.0051629249937832355,
0.04782682657241821,
-0.010631090961396694,
0.02100054733455181,
0.006946401670575142,
0.05340836942195892,
-0.015916112810373306,
0.024244816973805428,
-0.02148893103003502,
-0.0014902277616783977,
0.05448979139328003,
0.07562987506389618,
0.01908189244568348,
-0.047582633793354034,
-0.0753507986664772,
0.058222446590662,
-0.021994758397340775,
-0.012479975819587708,
0.03851263225078583,
0.01187821663916111,
0.05347813665866852,
-0.0024157606530934572,
-0.01838419958949089,
0.05947829410433769,
-0.0060001565143466,
0.01370093785226345,
0.03907078504562378,
-0.044931404292583466,
-0.022430816665291786,
0.019256316125392914,
-0.0035277081187814474,
0.018436526879668236,
0.022866874933242798,
-0.02433202974498272,
-0.0066193584352731705,
-0.043117403984069824,
-0.03481486067175865,
0.062199294567108154,
0.03171012923121452,
-0.059373639523983,
0.020861009135842323,
0.053617674857378006,
-0.05654798448085785,
0.052012983709573746,
0.013448025099933147,
0.03607070818543434,
-0.03048916719853878,
0.08190911263227463,
0.00764845497906208,
0.0019644408021122217,
-0.07276933640241623,
-0.04350113496184349,
0.034448571503162384,
0.01920398883521557,
-0.005049549974501133,
0.005010304972529411,
-0.01794814132153988,
0.0088476138189435,
-0.007369378115981817,
-0.016273679211735725,
0.038198668509721756,
-0.012889870442450047,
-0.04880359768867493,
0.01895979605615139,
-0.0616411417722702,
-0.011363668367266655,
0.03212874382734299,
0.056234024465084076,
-0.025186702609062195,
0.004330054856836796,
0.061396948993206024,
0.0434313639998436,
-0.05319906026124954,
0.014041063375771046,
0.01871560327708721,
0.06202487275004387,
0.026111144572496414,
0.01295963954180479,
0.0001089463330572471,
-0.03760563209652901,
0.020250527188181877,
0.0833044946193695,
0.03176245465874672,
-0.005777766928076744,
0.013543957844376564,
0.011965427547693253,
-0.005376593675464392,
0.02773328125476837,
-0.001629766309633851,
0.03164035826921463,
0.0023459913209080696,
-0.02328548952937126,
0.013491630554199219,
-0.02375643327832222,
-0.021785451099276543,
-0.07472287863492966,
-0.056024715304374695,
-0.0019219251116737723,
0.06310629844665527,
-0.00035484207910485566,
-0.04807101935148239,
0.009593273513019085,
0.04629190266132355,
0.042315054684877396,
0.026233240962028503,
0.08595572412014008,
-0.06819944828748703,
0.004382381681352854,
0.025291357189416885,
0.01840164139866829,
-0.006109170615673065,
-0.011337504722177982,
-0.040396399796009064,
0.043919749557971954,
0.002468087477609515,
0.027489088475704193,
-0.03896613046526909,
-0.013116620481014252,
0.04008243978023529,
-0.03240782022476196,
-0.02033773995935917,
0.03481486067175865,
-0.017302775755524635,
0.0434313639998436,
0.026076260954141617,
-0.000907545443624258,
0.021872662007808685,
0.009793859906494617,
0.002308926312252879,
-0.025797182694077492,
-0.02316339500248432,
0.03559976443648338,
0.023372702300548553,
-0.0387917086482048,
-0.023721547797322273,
0.015523659996688366,
0.023564567789435387,
0.001314714434556663,
0.017878372222185135,
0.026634415611624718,
0.013439303264021873,
0.015811458230018616,
-0.02148893103003502,
-0.02103543095290661,
-0.020477278158068657,
0.03321016579866409,
-0.0029521118849515915,
0.009226984344422817,
0.06439702957868576,
-0.029058896005153656,
-0.04297786206007004,
-0.016378333792090416,
-0.04074524715542793,
-0.011852052994072437,
-0.026442550122737885,
0.027506530284881592,
0.05675729364156723,
0.010543879121541977,
0.03732655197381973,
0.024384357035160065,
0.03631490096449852,
-0.024506451562047005,
0.055920060724020004,
-0.04214063286781311,
-0.04179178550839424,
0.01699753664433956,
0.02091333456337452,
0.0032072055619210005,
0.02523902989923954,
-0.06764129549264908,
-0.05839686840772629,
-0.011921822093427181,
0.03385553136467934,
-0.02148893103003502,
0.034326475113630295,
0.04890825226902962,
0.01554110273718834,
0.024872740730643272,
0.031221743673086166,
0.0029281286988407373,
0.00682430574670434,
0.002047291724011302,
0.015706803649663925,
-0.03962893784046173,
0.08511849492788315,
-0.03732655197381973,
0.031221743673086166,
0.004159992095082998,
-0.039594054222106934,
0.0376753993332386,
0.030541492626070976,
0.045629095286130905,
-0.017320219427347183,
-0.04611748084425926,
0.037187013775110245,
-0.021401720121502876,
-0.036942820996046066,
-0.013177668675780296,
-0.0005690554971806705,
0.011363668367266655,
0.05745498463511467,
0.016247516497969627,
-0.0571061372756958,
-0.013613726943731308,
0.05204786732792854,
0.033070627599954605,
-0.00022634128981735557,
-0.028710050508379936,
0.00765281543135643,
0.023494798690080643,
0.006880993023514748,
0.011546812020242214,
-0.017878372222185135,
0.03554743900895119,
-0.033646225929260254,
0.027262337505817413,
0.0833044946193695,
0.01159913931041956,
-0.03143105283379555,
-0.03575674444437027,
0.004923093132674694,
0.002485529752448201,
0.003362006274983287,
-0.02832631953060627,
-0.017555689439177513,
0.026983261108398438,
-0.04119874909520149,
-0.11344481259584427,
-0.006872272118926048,
0.009401408024132252,
-0.046536095440387726,
0.06575752794742584,
-0.03983824700117111,
0.00012093792611267418,
-0.01862839236855507,
-0.010796792805194855,
0.06261791288852692,
-0.017669064924120903,
-0.01262823585420847,
-0.03617536276578903,
0.021331951022148132,
-0.0023111067712306976,
0.010578763671219349,
0.013980015181005001,
-0.041617363691329956,
-0.010988658294081688,
0.04810590296983719,
-0.004617852624505758,
0.08058349788188934,
0.004356218036264181,
0.001423729001544416,
-0.03526835888624191,
0.009192099794745445,
-0.002159576630219817,
-0.0009244426619261503,
-0.020599374547600746,
0.022465702146291733,
-0.039559170603752136,
0.030070550739765167,
0.006349002476781607,
-0.04029174894094467,
0.035233475267887115,
-0.07179256528615952,
0.026878606528043747,
-0.02670418471097946,
0.002723181387409568,
-0.06572264432907104,
-0.03575674444437027,
0.0069551230408251286,
0.034762535244226456,
0.036593977361917496,
0.03176245465874672,
0.002662133192643523,
0.015218419954180717,
0.0696297213435173,
0.02352968230843544,
-0.00275370548479259,
-0.01736382395029068,
-0.02216918207705021,
0.032948531210422516,
-0.07060649245977402,
0.028291434049606323,
-0.02626812644302845,
-0.014625380747020245,
0.06192021816968918,
-0.01692776568233967,
0.05232694372534752,
0.004197056870907545,
0.016823112964630127,
0.03976847603917122,
0.022326162084937096,
-0.03498928248882294,
0.007247281726449728,
0.05455956235527992,
0.010465389117598534,
-0.0017769357655197382,
-0.054664213210344315,
0.034640438854694366,
-0.09083957225084305,
-0.011808447539806366,
-0.0014727854868397117,
0.023233164101839066,
0.02865772321820259,
-0.08239749819040298,
-0.010508994571864605,
0.010290965437889099,
-0.04029174894094467,
-0.03530324622988701,
0.04248948022723198,
-0.062094639986753464,
0.0388265922665596,
-0.03600093722343445,
-0.02363433688879013,
-0.001441171276383102,
-0.014747477136552334,
0.039803363382816315,
-0.09453734755516052,
-0.003937602508813143,
0.010639811865985394,
0.04691982641816139,
0.03697770833969116,
0.04841986671090126,
-0.011668908409774303,
-0.000013328722161531914,
0.0042995307594537735,
-0.049954790621995926,
0.07702526450157166,
0.006266151554882526,
-0.028710050508379936,
0.034239262342453,
-0.04967571422457695,
-0.0422452874481678,
0.018785372376441956,
0.010186311788856983,
0.05124552175402641,
-0.0022696813102811575,
-0.01392768882215023,
-0.028413530439138412,
0.005703636910766363,
-0.05525725334882736,
-0.01074446551501751,
-0.0044586919248104095,
-0.05204786732792854,
0.042315054684877396,
-0.03286132216453552,
-0.0007418434252031147,
0.03976847603917122,
-0.0890953466296196,
-0.018924912437796593,
-0.02729722298681736,
0.02719256840646267,
0.019378412514925003,
-0.015270746313035488,
-0.020738912746310234,
-0.019029565155506134,
0.007269084919244051,
0.011634023860096931,
0.01736382395029068,
-0.011354946531355381,
-0.004247203469276428,
0.04943152144551277,
0.0066019161604344845,
-0.07835087925195694,
-0.013386976905167103,
0.021192412823438644,
0.011407273821532726,
-0.0052544972859323025,
0.037187013775110245,
0.009200820699334145,
0.0959327295422554,
-0.0013070834102109075,
0.02754141576588154,
0.052117638289928436,
0.018105123192071915,
-0.02377387508749962,
0.02225639298558235,
-0.03697770833969116,
0.014982948079705238,
-0.01632600650191307,
-0.010674696415662766,
-0.009000234305858612,
0.017049862071871758,
0.02248314395546913,
-0.019483065232634544,
0.029965896159410477,
0.07904857397079468,
-0.034762535244226456,
-0.05068736523389816,
-0.0034666601568460464,
0.022675009444355965,
-0.012645678594708443,
-0.0033598258160054684,
-0.011320061981678009,
0.03701259195804596,
-0.0018259923672303557,
0.02548322267830372,
0.0400126688182354,
0.012035197578370571,
0.054873522371053696,
-0.014311418868601322,
0.014320140704512596,
0.01589866913855076,
0.003385989461094141,
-0.0097153689712286,
-0.0066542429849505424,
0.016866719350218773,
-0.01666613109409809,
0.0028845227789133787,
-0.031012436375021935,
-0.019674930721521378,
0.04629190266132355,
-0.010535158216953278,
-0.002568380907177925,
-0.04004755616188049,
-0.010918889194726944,
0.06799014657735825,
-0.014311418868601322,
-0.037187013775110245,
-0.03559976443648338,
-0.022919202223420143,
-0.006322839297354221,
-0.016413217410445213,
0.030105436220765114,
0.01848885416984558,
0.03928009420633316,
0.057175908237695694,
-0.027680953964591026,
0.019709816202521324,
-0.022099412977695465,
-0.07842064648866653,
0.02672162652015686,
0.037396322935819626,
0.05644332990050316,
-0.00625306973233819,
0.008372311480343342,
-0.030524050816893578,
-0.04165224730968475,
-0.05428048223257065,
0.021994758397340775,
-0.031256627291440964,
0.02202964387834072,
0.025413453578948975,
0.039001017808914185,
0.08776973187923431,
-0.025849509984254837,
-0.0199888925999403,
-0.04315228760242462,
-0.014860852621495724,
-0.023599451407790184,
-0.05082690715789795,
-0.011241571977734566,
0.006697848904877901,
-0.033872976899147034,
-0.06216441094875336,
0.008350508287549019,
0.07071114331483841,
-0.005197810009121895,
-0.021087758243083954,
0.04412905499339104,
0.03252991661429405,
0.0000932755065150559,
0.002790770260617137,
0.07029253244400024,
-0.04838498309254646,
-0.06928087770938873,
-0.007439147215336561,
0.0628272145986557,
0.03826843947172165,
-0.07835087925195694,
-0.0008116126991808414,
0.036140475422143936,
-0.036698631942272186,
-0.032495032995939255,
-0.03321016579866409,
-0.05452467501163483,
0.035338129848241806,
0.014041063375771046,
-0.03802424669265747,
0.014887015335261822,
-0.050757136195898056,
-0.021837778389453888,
-0.00907872524112463,
0.015183535404503345,
-0.021419161930680275,
-0.021279623731970787,
0.04067547991871834,
0.011398552916944027,
-0.04088478535413742,
0.008991513401269913,
0.05958294868469238,
-0.03333226218819618,
-0.022919202223420143,
-0.01610797829926014,
-0.01678822748363018,
0.017834767699241638,
-0.06572264432907104,
0.0061789401806890965,
-0.005005944520235062,
-0.04810590296983719,
-0.034099724143743515,
0.01187821663916111,
-0.021855220198631287,
0.022675009444355965,
-0.04782682657241821,
0.04521048069000244,
0.06540868431329727,
0.05051294341683388,
-0.061676025390625,
-0.006375166121870279,
0.027715837582945824,
0.03493695706129074,
-0.056827060878276825,
-0.016125420108437538,
-0.006649882532656193,
-0.022116854786872864,
0.021506374701857567,
0.046640750020742416,
-0.0411289781332016,
-0.04866405948996544,
0.006309757474809885,
-0.011250292882323265,
0.025047164410352707,
-0.008359229192137718,
-0.0007151348982006311,
0.03286132216453552,
-0.018453968688845634,
0.02351224049925804,
-0.04165224730968475,
-0.05414094403386116,
-0.034884627908468246,
-0.016500430181622505,
0.00625306973233819,
0.06122252345085144,
0.04332670941948891,
-0.0211226437240839,
0.02705303020775318,
-0.03812890127301216,
-0.02651231922209263,
-0.05892014130949974,
-0.004371480084955692,
-0.0456639789044857,
0.005276300013065338,
-0.003143977141007781,
0.02157614380121231,
-0.03896613046526909,
-0.07109487801790237,
-0.038442861288785934,
-0.011738677509129047,
-0.05183855816721916,
0.044373247772455215,
-0.0020418409258127213,
0.03610559180378914,
-0.03816378489136696,
0.050059445202350616,
-0.04967571422457695,
0.03641955181956291,
-0.02419249154627323,
-0.08665341883897781,
-0.0650598332285881,
0.05117575079202652,
0.021227296441793442,
-0.025430895388126373,
0.0662110298871994,
-0.039349861443042755,
-0.03634978458285332,
-0.045175597071647644,
-0.0422801710665226,
0.03851263225078583,
-0.01609925739467144,
-0.023459913209080696,
-0.017093468457460403,
-0.04657097905874252,
0.002546577947214246,
0.0026730347890406847,
-0.033524129539728165,
0.01039562001824379,
-0.07583918422460556,
-0.05229206010699272,
0.03851263225078583,
0.03232061117887497,
-0.02182033658027649,
0.020477278158068657,
0.005747242830693722,
0.0066542429849505424,
-0.006571392063051462,
-0.02593672275543213,
-0.02569252997636795,
-0.012253225781023502,
0.033872976899147034,
-0.027803050354123116,
-0.0029804555233567953,
0.00559462234377861,
0.08232772350311279,
0.0044586919248104095,
0.00897407066076994,
0.00838539283722639,
0.021506374701857567,
-0.006414411123842001,
0.04084990173578262,
-0.003913619555532932,
0.029390299692749977,
-0.022936644032597542,
0.010910168290138245,
-0.04217551648616791,
0.02283198945224285,
0.011564254760742188,
-0.013465466909110546,
-0.019047006964683533,
0.036733515560626984,
0.014494563452899456,
-0.059443410485982895,
-0.0010154697811231017,
0.0008759312331676483,
0.0006797052337788045,
-0.05218740552663803,
-0.008577258326113224,
0.09411872923374176,
0.02752397209405899,
-0.013945130631327629,
0.04831521213054657,
0.061676025390625,
0.06261791288852692,
0.06432725489139557,
-0.003955044783651829,
-0.009017677046358585,
0.011354946531355381,
-0.02319827862083912,
-0.06251325458288193,
0.012924754992127419,
-0.022081971168518066,
-0.01352651510387659,
0.025396009907126427,
-0.061152756214141846,
-0.006942041218280792,
0.0696297213435173,
-0.0012983622727915645
] |
10,046
|
sentence_transformers.SentenceTransformer
|
evaluate
|
Evaluate the model
:param evaluator:
the evaluator
:param output_path:
the evaluator can write the results to this path
|
def evaluate(self, evaluator: SentenceEvaluator, output_path: str = None):
"""
Evaluate the model
:param evaluator:
the evaluator
:param output_path:
the evaluator can write the results to this path
"""
if output_path is not None:
os.makedirs(output_path, exist_ok=True)
return evaluator(self, output_path)
|
(self, evaluator: sentence_transformers.evaluation.SentenceEvaluator.SentenceEvaluator, output_path: Optional[str] = None)
|
[
0.018345413729548454,
-0.027838490903377533,
-0.007187254261225462,
0.0049446625635027885,
0.047920648008584976,
-0.0199304036796093,
-0.044447161257267,
0.014686448499560356,
0.012081331573426723,
0.059791211038827896,
0.07324676215648651,
0.022240441292524338,
-0.004316567908972502,
0.04724618420004845,
-0.013295366428792477,
0.0031994874589145184,
0.08289159834384918,
-0.05844228342175484,
-0.012612472288310528,
0.0410073958337307,
-0.04249121621251106,
-0.03331850841641426,
0.003768566297367215,
0.01991354301571846,
0.00030456253443844616,
-0.021953795105218887,
0.031548041850328445,
-0.0081357192248106,
-0.0075539941899478436,
-0.013000288978219032,
-0.0029297019354999065,
-0.041209734976291656,
0.01944141834974289,
0.011988593265414238,
-0.0032163490541279316,
-0.01518386509269476,
-0.02605116181075573,
0.008578335866332054,
-0.03803975507616997,
-0.04168185964226723,
-0.03513956069946289,
-0.0021445839665830135,
0.01782270520925522,
0.052338387817144394,
-0.08565689623355865,
0.001576559036038816,
-0.034701161086559296,
-0.04259238392114639,
0.0392875149846077,
-0.06940232217311859,
-0.03301500156521797,
-0.009535231627523899,
0.022678842768073082,
0.04367152601480484,
-0.04424482211470604,
-0.005222878884524107,
0.021700870245695114,
0.011078067123889923,
0.037095505744218826,
0.010310865007340908,
-0.00353250396437943,
-0.038242094218730927,
0.0387142188847065,
0.03296441584825516,
0.03696061298251152,
0.04181675240397453,
-0.03915262222290039,
0.03459998965263367,
-0.014062569476664066,
0.03178410232067108,
-0.042862169444561005,
-0.057396866381168365,
0.04970797896385193,
-0.001476443256251514,
0.033385954797267914,
-0.005576971918344498,
-0.05136041343212128,
0.004137413576245308,
0.06832318007946014,
0.029541512951254845,
-0.009821878746151924,
-0.0017230440862476826,
0.003452411387115717,
-0.050146378576755524,
0.010892589576542377,
-0.039591021835803986,
0.04950563982129097,
-0.04613332077860832,
-0.015917344018816948,
0.0799914002418518,
0.008978798985481262,
0.05537347495555878,
0.004388229921460152,
-0.023673677816987038,
0.03618498146533966,
0.02441558800637722,
0.012410133145749569,
-0.008852336555719376,
0.006786791607737541,
-0.008106211200356483,
-0.010083233006298542,
0.1483820229768753,
0.008182087913155556,
0.015352481044828892,
0.024550480768084526,
-0.0007751063676550984,
-0.018446583300828934,
-0.04087250307202339,
0.03908517584204674,
0.019171632826328278,
-0.054429225623607635,
0.05783526599407196,
-0.009172706864774227,
-0.006230358965694904,
0.0025629622396081686,
-0.04067016392946243,
-0.06866040825843811,
-0.03431334346532822,
-0.027231473475694656,
0.029440343379974365,
-0.013152043335139751,
0.01964375749230385,
-0.05034871771931648,
0.06167970970273018,
-0.06387171894311905,
0.048696283251047134,
0.016684547066688538,
0.005273463204503059,
0.06137620285153389,
-0.052136048674583435,
0.0427272766828537,
-0.01703020930290222,
0.03588147088885307,
-0.01158391498029232,
-0.006946976762264967,
0.07162804901599884,
0.010032648220658302,
-0.0291031114757061,
-0.002577716251835227,
0.08882687240839005,
0.04377269744873047,
-0.016423191875219345,
0.03965846821665764,
0.0014300738694146276,
0.03438078984618187,
-0.004139521159231663,
-0.036252427846193314,
0.060836631804704666,
0.02126246877014637,
0.01723254844546318,
0.026489563286304474,
-0.003916105255484581,
0.04626821354031563,
-0.052237216383218765,
-0.002497623674571514,
0.011794684454798698,
-0.011187667027115822,
-0.019289663061499596,
0.02136363834142685,
-0.032222505658864975,
-0.006753068417310715,
-0.028411785140633583,
-0.007747902534902096,
0.05169764533638954,
0.04566119611263275,
0.005859403870999813,
0.0104288961738348,
0.02711344324052334,
-0.038343265652656555,
0.01033615693449974,
0.0040594288147985935,
-0.03830954059958458,
-0.08619646728038788,
0.01876695454120636,
-0.05523858219385147,
-0.01048791129142046,
0.023521922528743744,
0.04950563982129097,
0.03259345889091492,
0.04185047745704651,
-0.023606231436133385,
0.020807206630706787,
-0.07479803264141083,
0.04181675240397453,
-0.0182779673486948,
-0.0015207049436867237,
-0.042288877069950104,
0.017569780349731445,
0.003677935106679797,
-0.013168904930353165,
-0.037972308695316315,
-0.0014616893604397774,
0.022830598056316376,
0.01790701225399971,
-0.015967929735779762,
-0.022678842768073082,
-0.02842864766716957,
0.03073868528008461,
-0.02642211690545082,
-0.01010852586477995,
-0.03992825374007225,
-0.006280943751335144,
0.04856139048933983,
-0.0036336735356599092,
-0.053080298006534576,
0.011727238073945045,
-0.046200767159461975,
0.06980700045824051,
-0.035948917269706726,
0.008367565460503101,
-0.04181675240397453,
0.004255444742739201,
-0.038916558027267456,
0.026944827288389206,
0.044953007251024246,
0.015849897637963295,
0.03137942776083946,
0.04384014382958412,
-0.022678842768073082,
0.0005174401449039578,
0.020469974726438522,
-0.025629622861742973,
0.0798565074801445,
-0.0024913004599511623,
0.02967640571296215,
-0.05210232362151146,
0.014113154262304306,
-0.07257229834794998,
-0.03510583937168121,
-0.02470223419368267,
0.014298631809651852,
-0.02202124148607254,
0.08498243242502213,
-0.0427272766828537,
-0.014534694142639637,
-0.00804297998547554,
-0.026590732857584953,
0.07223507016897202,
0.010631234385073185,
0.046301934868097305,
-0.008064056746661663,
-0.0405689962208271,
-0.04029921069741249,
-0.020335081964731216,
0.002278422936797142,
0.05456411838531494,
0.06262396275997162,
-0.04181675240397453,
0.0013563043903559446,
-0.030570069327950478,
0.05527230352163315,
0.001628197613172233,
-0.04778575524687767,
0.004982600919902325,
0.04761714115738869,
0.06825572997331619,
-0.00020431508892215788,
-0.007912302389740944,
0.07203272730112076,
0.0013815967831760645,
0.030907301232218742,
0.04360407963395119,
-0.0033111954107880592,
-0.00020326123922131956,
-0.07553993910551071,
-0.06866040825843811,
-0.05254072695970535,
0.05372103676199913,
0.06127503141760826,
0.022729428485035896,
-0.03043517656624317,
0.12093134969472885,
-0.03874794393777847,
-0.02433127909898758,
-0.0013794890837743878,
-0.0019422448240220547,
-0.020335081964731216,
0.051562752574682236,
-0.044683221727609634,
0.004354506731033325,
0.011997023597359657,
0.0048982929438352585,
-0.001242488739080727,
0.03952357545495033,
0.011811546050012112,
-0.023117244243621826,
-0.051765091717243195,
-0.023909740149974823,
0.03294755518436432,
-0.04997776448726654,
0.024870850145816803,
0.019390832632780075,
0.05409199371933937,
-0.027905937284231186,
0.0071577467024326324,
-0.024466171860694885,
-0.0013763275928795338,
-0.06225300580263138,
0.0331161692738533,
0.004101582802832127,
0.014812909997999668,
-0.006984915118664503,
0.08093564957380295,
0.00689217634499073,
-0.009771293960511684,
0.026759348809719086,
-0.031548041850328445,
0.021329915151000023,
0.012022316455841064,
-0.016785716637969017,
-0.023994047194719315,
-0.008439227938652039,
0.010310865007340908,
0.030957886949181557,
0.042558662593364716,
0.029726989567279816,
0.0149815259501338,
-0.03153118118643761,
0.058745793998241425,
-0.018227383494377136,
-0.02011588215827942,
0.04785320162773132,
0.06117386370897293,
0.023673677816987038,
-0.02347133867442608,
-0.0696721076965332,
0.018311690539121628,
0.017485473304986954,
-0.03112650290131569,
-0.03341967985033989,
0.016220852732658386,
-0.04475066810846329,
0.07385378330945969,
0.0268099345266819,
0.030047360807657242,
0.006424267310649157,
0.03207075223326683,
0.031750380992889404,
0.045155346393585205,
0.030907301232218742,
0.06097152456641197,
-0.018025044351816177,
-0.0018252675654366612,
0.01810935139656067,
0.012047608382999897,
0.03262718394398689,
-0.04545885697007179,
0.004712815396487713,
0.02249336615204811,
-0.04434598982334137,
-0.0467403382062912,
0.027265196666121483,
-0.016128113493323326,
-0.014290200546383858,
-0.03121080994606018,
0.011297267861664295,
0.016060667112469673,
-0.012873826548457146,
-0.06579393893480301,
-0.0901758000254631,
-0.01600165292620659,
0.03247543051838875,
-0.08606157451868057,
0.018901847302913666,
-0.015192296355962753,
-0.04427854344248772,
0.03065437823534012,
-0.004531553480774164,
0.07290953397750854,
0.020706037059426308,
0.0025187006685882807,
0.003361780196428299,
0.017114518210291862,
-0.0012730503221973777,
0.022071825340390205,
0.016237715259194374,
-0.02480340376496315,
0.023319583386182785,
0.012873826548457146,
0.022071825340390205,
-0.026573872193694115,
0.048595111817121506,
0.0011866346467286348,
-0.0027463319711387157,
0.05007893219590187,
-0.019761787727475166,
-0.019677480682730675,
0.025798238813877106,
-0.004384014289826155,
-0.00017981308337766677,
0.03601636365056038,
-0.02852981723845005,
-0.010251848958432674,
-0.021667147055268288,
-0.03421217203140259,
-0.013641029596328735,
-0.052439555525779724,
0.0417155846953392,
-0.07378633320331573,
0.003658965928480029,
-0.0007803756161592901,
0.03159862756729126,
-0.021903209388256073,
0.02535983733832836,
-0.03141314908862114,
0.006576021667569876,
0.05517113581299782,
0.030468899756669998,
0.02040252834558487,
-0.001200334751047194,
0.0162714384496212,
-0.01090945117175579,
-0.0352744534611702,
0.015192296355962753,
-0.07783311605453491,
0.0210769921541214,
0.019104186445474625,
-0.005281894002109766,
0.021296191960573196,
0.006221928168088198,
0.008472951129078865,
0.04296334087848663,
0.08026118576526642,
0.03972591459751129,
0.009493077173829079,
0.024365002289414406,
-0.008426581509411335,
-0.020419390872120857,
-0.010471049696207047,
-0.024095216765999794,
-0.039793360978364944,
-0.08700582385063171,
-0.0685255154967308,
0.003361780196428299,
0.010378311388194561,
-0.00007185937283793464,
-0.019087323918938637,
-0.002158283954486251,
-0.05925163999199867,
-0.004027813207358122,
-0.019576311111450195,
-0.028226308524608612,
0.028411785140633583,
0.04529023915529251,
-0.03524073213338852,
-0.0007213600329123437,
-0.03780369460582733,
-0.013716906309127808,
-0.09496449679136276,
-0.005530602764338255,
0.0834311693906784,
0.022729428485035896,
0.06640095263719559,
0.04319940134882927,
0.019862957298755646,
0.0066687604412436485,
-0.022543950006365776,
0.0024217464961111546,
0.019070463255047798,
0.05115807428956032,
-0.009931478649377823,
0.011347852647304535,
0.08005885034799576,
-0.049842871725559235,
-0.041108567267656326,
-0.03363887965679169,
-0.0017968135653063655,
0.04235632345080376,
0.005661279894411564,
-0.05972376465797424,
0.015242881141602993,
-0.014737033285200596,
-0.023876016959547997,
-0.0010960035724565387,
-0.04761714115738869,
0.00828747358173132,
-0.0021603917703032494,
-0.022156134247779846,
-0.021717732772231102,
0.000048608813813189045,
-0.039321236312389374,
-0.021414224058389664,
-0.07722610235214233,
0.05149530619382858,
0.008013471961021423,
0.0013204735005274415,
-0.0034755959641188383,
-0.04876372963190079,
0.01637260802090168,
0.0029212711378932,
-0.0018221059581264853,
0.06791850179433823,
0.04660544544458389,
-0.07823779433965683,
-0.03524073213338852,
-0.01455155573785305,
0.021684009581804276,
0.035004667937755585,
-0.018884984776377678,
-0.03992825374007225,
0.0019443525234237313,
-0.010454188100993633,
0.005028970539569855,
0.008928214199841022,
0.045829810202121735,
0.07162804901599884,
0.008675290271639824,
-0.026691902428865433,
-0.06818828731775284,
-0.0399957001209259,
-0.03669082745909691,
-0.0038444434758275747,
-0.03551051765680313,
-0.02203810214996338,
-0.012545025907456875,
-0.020621730014681816,
0.0944923684000969,
0.0009273876785300672,
-0.0719652846455574,
0.028108276426792145,
0.006424267310649157,
-0.005332478787750006,
-0.043907590210437775,
-0.01935710944235325,
0.0034671651665121317,
0.02097582258284092,
-0.004556845873594284,
0.032121334224939346,
0.025494730100035667,
-0.007634086534380913,
0.025730792433023453,
-0.008030333556234837,
0.026944827288389206,
0.05071967467665672,
0.0017283133929595351,
0.026388393715023994,
0.000022657766749034636,
-0.0017704673809930682,
0.03014853037893772,
0.024735957384109497,
-0.0013689505867660046,
0.018058767542243004,
-0.03473488241434097,
0.0007097676862031221,
0.011836838908493519,
-0.021144438534975052,
0.02230788767337799,
0.016338884830474854,
0.006791006773710251,
0.015268173068761826,
-0.0074443938210606575,
-0.026843657717108727,
0.035004667937755585,
0.002584039233624935,
0.02922114171087742,
0.022645119577646255,
0.02689424157142639,
0.01407943107187748,
-0.018530892208218575,
0.0016355746192857623,
-0.0185646153986454,
-0.05314774438738823,
0.040265485644340515,
0.014585278928279877,
0.060836631804704666,
0.029726989567279816,
-0.04778575524687767,
-0.018362276256084442,
-0.057396866381168365,
-0.051461584866046906,
0.034802328795194626,
0.04556002467870712,
0.02826003171503544,
-0.0007124023395590484,
-0.042086537927389145,
0.028479231521487236,
-0.02632094733417034,
-0.014273338951170444,
0.007857502438127995,
0.05861090123653412,
-0.017021778970956802,
0.009661693125963211,
-0.03743273764848709,
-0.0171313788741827,
-0.024196386337280273,
-0.026489563286304474,
-0.019306525588035583,
0.03497094660997391,
-0.06063429266214371,
0.051461584866046906,
-0.00012929417425766587,
0.05695846304297447,
-0.02785535342991352,
0.024972019717097282,
0.059791211038827896,
-0.0610726922750473,
-0.01657494716346264,
-0.002148799365386367,
-0.02384229376912117,
-0.08289159834384918,
-0.06946976482868195,
-0.005087986122816801,
0.0006765714497305453,
0.03645476698875427,
0.02163342386484146,
-0.05547464266419411,
-0.03601636365056038,
0.05159647762775421,
-0.06127503141760826,
0.021144438534975052,
-0.03908517584204674,
0.02067231386899948,
0.017283134162425995,
0.03053634613752365,
0.01336281280964613,
-0.011769392527639866,
-0.010285572148859501,
0.0233701691031456,
-0.039793360978364944,
0.01493094116449356,
0.01684473268687725,
-0.022156134247779846,
-0.012089762836694717,
0.009653262794017792,
-0.03416159003973007,
-0.005564325954765081,
0.012190932407975197,
-0.019407695159316063,
0.0570596344769001,
-0.013025580905377865,
-0.01589205116033554,
0.0030519485007971525,
0.033385954797267914,
-0.05675612390041351,
0.055879320949316025,
-0.02470223419368267,
0.03235739842057228,
0.022763151675462723,
0.03163234889507294,
-0.11324246227741241,
-0.02977757528424263,
0.004019382409751415,
0.011179236695170403,
-0.05958887189626694,
-0.011465883813798428,
0.013666321523487568,
-0.05513741075992584,
0.04319940134882927,
0.06366937607526779,
0.028226308524608612,
-0.014863494783639908,
0.025494730100035667,
0.050989460200071335,
0.003985659219324589,
-0.0002934971125796437,
0.00856990460306406,
0.039793360978364944,
-0.06326469779014587,
0.01403727661818266,
-0.005387279205024242,
-0.03094102442264557,
-0.003916105255484581,
-0.024010909721255302,
-0.0202170517295599,
-0.0036399965174496174,
0.02443244867026806,
-0.028496094048023224,
0.06549043208360672,
-0.051191799342632294,
-0.007069223094731569,
-0.011803115718066692,
0.03571285679936409,
0.01934024877846241,
-0.016220852732658386,
-0.033756911754608154,
-0.025646483525633812,
0.01153333019465208,
-0.05432805418968201,
-0.004008844029158354,
-0.005813034251332283,
-0.05729569494724274,
0.026219777762889862,
0.007031284738332033,
-0.0012762119295075536,
-0.023437615483999252,
-0.018986154347658157,
-0.006774145178496838,
0.004708600230515003,
0.000021373387426137924,
-0.08639880269765854,
-0.07688886672258377,
-0.003873951267451048,
0.001200334751047194,
-0.06714286655187607,
0.03259345889091492,
-0.027653014287352562,
-0.0074443938210606575,
-0.013944538310170174,
-0.04488556087017059,
0.037668801844120026,
0.02175145596265793,
0.028681570664048195,
-0.047145016491413116,
-0.051933709532022476,
0.00574137270450592,
-0.0025187006685882807,
-0.009982063435018063,
0.037871140986680984,
-0.049741700291633606,
-0.0785750299692154,
0.05948770418763161,
0.0005416786880232394,
-0.020537421107292175,
0.01450097095221281,
0.009299169294536114,
-0.0009258068748749793,
-0.03800603374838829,
0.06140992417931557,
0.010799850337207317,
-0.04029921069741249,
0.011904285289347172,
-0.03353770822286606,
0.009627969935536385,
-0.038444433361291885,
-0.061612263321876526,
-0.008409719914197922,
-0.0678173303604126,
-0.0387142188847065,
0.09671810269355774,
0.007292639464139938,
-0.02967640571296215,
0.005758234299719334,
0.005614910740405321,
-0.018986154347658157,
-0.03217191994190216,
-0.0364210419356823,
-0.0038697358686476946,
-0.03965846821665764,
0.03112650290131569,
-0.05372103676199913,
0.045627471059560776,
0.016996486112475395,
0.008523535914719105,
-0.06309608370065689,
0.027838490903377533,
0.012401701882481575,
0.011187667027115822,
-0.006154481787234545,
-0.009998925030231476,
0.024112079292535782,
0.03267776966094971,
0.007275777868926525,
0.042558662593364716,
0.08235202729701996,
0.0890292152762413,
-0.0011718807509168983,
0.04660544544458389,
-0.014349216595292091,
-0.022459642961621284,
0.008249534294009209,
0.04643682762980461,
-0.024246972054243088,
-0.02883332595229149,
-0.04235632345080376,
-0.009720709174871445,
-0.0012340579414740205,
0.027956523001194,
-0.0041268751956522465
] |
10,047
|
torch.nn.modules.container
|
extend
| null |
def extend(self, sequential) -> 'Sequential':
for layer in sequential:
self.append(layer)
return self
|
(self, sequential) -> torch.nn.modules.container.Sequential
|
[
-0.0464383140206337,
-0.013636782765388489,
-0.05246882140636444,
0.03453061729669571,
-0.04473477974534035,
0.03754587098956108,
-0.10296154767274857,
-0.005165964365005493,
0.03843170776963234,
0.029283735901117325,
0.014684456400573254,
-0.041089221835136414,
0.031379081308841705,
0.050152018666267395,
0.03730737790465355,
0.008636913262307644,
0.010791882872581482,
-0.02325322851538658,
-0.05955551937222481,
-0.05131042003631592,
0.0076147932559251785,
0.05836304649710655,
-0.009820869192481041,
0.02131119929254055,
0.015902481973171234,
0.08245100826025009,
-0.03325296938419342,
0.020561644807457924,
-0.009522750973701477,
-0.016251707449555397,
-0.016592413187026978,
-0.055909957736730576,
-0.07222981005907059,
-0.0707988366484642,
0.004348268266767263,
0.016132459044456482,
-0.06575638055801392,
0.04119143262505531,
-0.008057711645960808,
0.08401826024055481,
0.07713598012924194,
-0.009846421889960766,
-0.006030507385730743,
0.029658513143658638,
0.024411629885435104,
0.012078050523996353,
0.004676198586821556,
0.01728234440088272,
0.03938568755984306,
-0.04555247724056244,
0.0195054542273283,
0.010621529072523117,
0.06384842097759247,
-0.023185087367892265,
-0.02429238334298134,
0.03648968040943146,
-0.010638564825057983,
0.023151015862822533,
0.02028908021748066,
0.023968711495399475,
0.009156490676105022,
-0.07045812904834747,
0.013304593972861767,
0.011098518967628479,
-0.011379601433873177,
0.03327000141143799,
-0.10759515315294266,
-0.025144150480628014,
0.036898527294397354,
0.012444309890270233,
0.00034895812859758735,
0.002321064006537199,
0.01238468661904335,
-0.006303072907030582,
-0.062451526522636414,
0.016345400363206863,
-0.014812220819294453,
0.019863197579979897,
0.03257155418395996,
-0.03802286088466644,
-0.0020996045786887407,
0.049368392676115036,
-0.0707988366484642,
0.056591372936964035,
0.010170092806220055,
-0.025007866322994232,
-0.0814288854598999,
-0.03296336904168129,
-0.019028466194868088,
-0.02144748345017433,
-0.012538004666566849,
0.050015732645988464,
-0.015621399506926537,
0.02340654656291008,
0.025876669213175774,
0.031004304066300392,
-0.015544740483164787,
-0.03972639515995979,
-0.002003780798986554,
-0.03275894373655319,
-0.053320590406656265,
-0.01999947987496853,
-0.02107270620763302,
-0.010868541896343231,
-0.031072445213794708,
-0.028125332668423653,
-0.0428268238902092,
-0.053320590406656265,
-0.019147712737321854,
0.047221940010786057,
-0.009957151487469673,
0.046063538640737534,
0.02393464185297489,
-0.030833950266242027,
-0.036455608904361725,
-0.0016769154462963343,
0.05199183151125908,
0.01511885691434145,
-0.012043979950249195,
0.0196587722748518,
-0.007567946333438158,
0.03154943510890007,
-0.006047542672604322,
0.04153214022517204,
-0.003119595116004348,
0.016140976920723915,
0.00864117220044136,
0.012137673795223236,
0.01896032504737377,
-0.1377817690372467,
0.003104689298197627,
-0.01926696114242077,
-0.0214134119451046,
0.003155795158818364,
-0.00115201435983181,
-0.045859113335609436,
0.008679501712322235,
-0.022350355982780457,
-0.046199820935726166,
0.04091886803507805,
-0.047085657715797424,
0.016115423291921616,
0.04599539563059807,
0.05945330858230591,
-0.0641891285777092,
-0.025127114728093147,
-0.03228195384144783,
-0.03836356848478317,
-0.03935161605477333,
-0.0036583375185728073,
0.006090131122618914,
-0.01255503948777914,
0.027188390493392944,
0.05018608644604683,
-0.04408743977546692,
0.03846577927470207,
-0.04340602457523346,
0.03320186212658882,
0.033729955554008484,
-0.02340654656291008,
-0.0673917755484581,
0.04228169471025467,
-0.03364478051662445,
0.03257155418395996,
-0.03648968040943146,
-0.004995611030608416,
-0.04647238552570343,
-0.0284830741584301,
-0.02691582404077053,
-0.02057868055999279,
0.08272357285022736,
0.00008850387530401349,
0.1131146028637886,
0.020902352407574654,
-0.014590761624276638,
-0.029368912801146507,
0.025331538170576096,
0.015561775304377079,
0.003047195030376315,
0.007303898688405752,
0.02555299736559391,
0.011941767297685146,
-0.0013500500936061144,
-0.008164183236658573,
0.023866500705480576,
-0.028210509568452835,
-0.000953446258790791,
0.013849725015461445,
0.04418965056538582,
-0.0631670132279396,
0.05407014489173889,
0.03792065009474754,
0.016030246391892433,
0.005894224625080824,
-0.020272044464945793,
0.019130676984786987,
-0.004714528098702431,
0.047767069190740585,
-0.014957020990550518,
0.00559610640630126,
-0.040203385055065155,
0.002540393965318799,
0.02223110757768154,
-0.014650385826826096,
-0.002482899697497487,
0.001457585603930056,
-0.032554518431425095,
-0.017767850309610367,
-0.07284308224916458,
-0.025229327380657196,
0.02672843635082245,
0.005225588101893663,
0.06929972767829895,
0.023491723462939262,
0.03275894373655319,
-0.006281778682023287,
-0.09001469612121582,
0.00010154654592042789,
0.0782262459397316,
-0.0352972075343132,
-0.013500500470399857,
0.0016801096498966217,
-0.05509226396679878,
-0.04091886803507805,
-0.020374257117509842,
-0.010016774758696556,
0.01026378758251667,
-0.0669829249382019,
-0.023968711495399475,
0.03110651671886444,
0.037034813314676285,
-0.01356012374162674,
-0.07911208271980286,
-0.05563739314675331,
0.016226153820753098,
0.05131042003631592,
-0.03217974305152893,
-0.007806440815329552,
0.0012701969826593995,
-0.029726654291152954,
0.007870323024690151,
0.03914719447493553,
-0.013057582080364227,
-0.01002529263496399,
0.001140302512794733,
0.042588330805301666,
0.0034688194282352924,
0.039283476769924164,
-0.016822390258312225,
0.04977723956108093,
0.015323281288146973,
0.009028726257383823,
0.015186998061835766,
0.01974394917488098,
-0.033627744764089584,
-0.017955239862203598,
-0.02393464185297489,
-0.03522906452417374,
0.012895746156573296,
-0.008070488460361958,
0.032009389251470566,
0.013287559151649475,
-0.0025595587212592363,
0.01901143044233322,
-0.036012690514326096,
0.03246934339404106,
-0.014607797376811504,
0.001375603023916483,
0.007116510067135096,
0.03141315281391144,
0.048448484390974045,
0.03764808177947998,
0.038159143179655075,
0.0019186042482033372,
0.04330381378531456,
0.04667681083083153,
0.00821954756975174,
-0.00862839538604021,
-0.041327714920043945,
-0.026592152193188667,
0.05781791731715202,
-0.005894224625080824,
-0.06446169316768646,
-0.06510903686285019,
0.014224502258002758,
-0.0044717746786773205,
0.016745731234550476,
0.01375603023916483,
-0.03091912716627121,
-0.06929972767829895,
0.032264918088912964,
0.011907696723937988,
0.04153214022517204,
-0.004701751749962568,
0.044019296765327454,
-0.028857851400971413,
-0.055126335471868515,
0.05853340029716492,
0.03751179948449135,
0.009045761078596115,
0.039862677454948425,
-0.04650645703077316,
0.03621711581945419,
0.035671986639499664,
-0.044836994260549545,
-0.027103213593363762,
0.0069418977946043015,
0.051174137741327286,
-0.030510280281305313,
0.0008315371233038604,
-0.02136230655014515,
0.05938516557216644,
-0.019965408369898796,
0.017733780667185783,
-0.03546756133437157,
-0.028602322563529015,
0.026898788288235664,
0.05270731821656227,
-0.008394159376621246,
0.02751206047832966,
-0.02921559475362301,
-0.009982704184949398,
-0.02672843635082245,
-0.004222632851451635,
0.0393175445497036,
0.051174137741327286,
0.0888562947511673,
-0.005962366238236427,
-0.03502464294433594,
0.012819087132811546,
0.0050765289925038815,
-0.01887514814734459,
0.0011733084684237838,
0.05924888327717781,
-0.08701647818088531,
0.020272044464945793,
-0.001140302512794733,
0.0006452131783589721,
0.061667900532484055,
-0.04408743977546692,
-0.0035114078782498837,
0.02272513322532177,
-0.04739229381084442,
-0.03683038800954819,
0.0195054542273283,
-0.04711972922086716,
0.022469602525234222,
0.03512685373425484,
-0.03296336904168129,
0.03306557983160019,
0.02233332023024559,
-0.009199079126119614,
-0.03086802177131176,
0.02321915701031685,
0.0014639737782999873,
0.03495649993419647,
-0.026200341060757637,
0.005212811753153801,
0.033372215926647186,
-0.03321889787912369,
0.02218000218272209,
0.028023120015859604,
0.0034815960098057985,
0.040987007319927216,
0.011004824191331863,
0.011635132133960724,
0.0016939508495852351,
-0.0012531615793704987,
0.020016515627503395,
-0.016226153820753098,
0.007814958691596985,
0.003534831339493394,
0.043917085975408554,
0.051719266921281815,
-0.02482047863304615,
-0.030408067628741264,
-0.034649863839149475,
-0.005677024368196726,
0.023082874715328217,
0.003392160404473543,
-0.013423841446638107,
-0.012163227424025536,
0.027631308883428574,
-0.01793820410966873,
0.09233149886131287,
-0.014624832198023796,
0.07011742889881134,
-0.06207675114274025,
0.00615827227011323,
0.023372475057840347,
0.050356440246105194,
-0.035535700619220734,
-0.02463308908045292,
0.022452566772699356,
-0.06803911179304123,
-0.02999921888113022,
-0.017580462619662285,
0.026592152193188667,
-0.02146451734006405,
-0.02979479543864727,
0.009573856368660927,
-0.06609708815813065,
0.05720464512705803,
0.032264918088912964,
0.015169963240623474,
-0.019386207684874535,
-0.003466689959168434,
0.03843170776963234,
0.002604276407510042,
-0.0066267442889511585,
-0.046063538640737534,
0.013279041275382042,
-0.06473425775766373,
0.009301290847361088,
0.03867020457983017,
-0.018704794347286224,
0.05236661061644554,
-0.00958237424492836,
0.004318456631153822,
0.05573960766196251,
0.07025370746850967,
0.04885733127593994,
-0.018568512052297592,
0.0640869215130806,
0.02814236842095852,
0.0024850289337337017,
-0.009744210168719292,
0.008875408209860325,
-0.03456468880176544,
-0.047324150800704956,
-0.05243474990129471,
-0.020646821707487106,
0.0023018992505967617,
-0.02887488715350628,
-0.005136152729392052,
-0.011090001091361046,
-0.0016566860722377896,
-0.04691530391573906,
0.0020644692704081535,
-0.0053277998231351376,
0.04541619494557381,
-0.014692973345518112,
-0.025570033118128777,
-0.039283476769924164,
-0.020391292870044708,
-0.016720177605748177,
-0.013526053167879581,
0.04010117053985596,
-0.022026684135198593,
-0.001657750690355897,
0.030220678076148033,
0.011481814086437225,
0.06003250926733017,
0.03487132489681244,
0.03836356848478317,
-0.0012574204010888934,
0.03376402705907822,
-0.07270679622888565,
-0.026064056903123856,
0.007559428457170725,
0.01223988551646471,
-0.008321759290993214,
0.0284830741584301,
0.03081691451370716,
-0.012589110061526299,
0.00813011173158884,
0.014028595760464668,
-0.02379835955798626,
-0.04906175658106804,
0.025331538170576096,
0.0426223985850811,
-0.05022015795111656,
0.008573031052947044,
-0.10153058171272278,
0.03413880616426468,
0.03475207835435867,
0.05291173979640007,
-0.049368392676115036,
0.002367911161854863,
-0.03393438085913658,
-0.021106775850057602,
-0.02793794497847557,
-0.03367885202169418,
0.0031110774725675583,
-0.014590761624276638,
0.10459693521261215,
0.043474167585372925,
-0.007874581962823868,
0.0008315371233038604,
0.024854550138115883,
-0.018500370904803276,
0.005225588101893663,
-0.03672817721962929,
0.0534568727016449,
0.024513842537999153,
-0.01646464876830578,
0.012095085345208645,
-0.005711094941943884,
0.01921585388481617,
-0.00006577900785487145,
0.002165616489946842,
-0.0006494720000773668,
0.025041937828063965,
-0.02725653164088726,
0.008645431138575077,
0.08606249839067459,
-0.040782585740089417,
-0.02809126302599907,
-0.06998114287853241,
0.015416975133121014,
0.02890895865857601,
-0.0048933993093669415,
-0.022111861035227776,
-0.002114510629326105,
0.0055151889100670815,
-0.030322890728712082,
-0.027324672788381577,
0.020953457802534103,
0.07877137511968613,
-0.009616444818675518,
0.05993029847741127,
0.007870323024690151,
0.002602146938443184,
-0.005395941436290741,
-0.017580462619662285,
0.028925994411110878,
-0.01170327328145504,
-0.041770633310079575,
-0.00870505440980196,
0.020936422049999237,
0.005885707214474678,
0.03802286088466644,
0.003258007112890482,
0.04153214022517204,
-0.02754613198339939,
-0.006843944545835257,
0.019982444122433662,
-0.003134501166641712,
0.00814288854598999,
-0.01255503948777914,
0.01999947987496853,
0.008138629607856274,
0.04173656180500984,
-0.013100170530378819,
-0.03740958869457245,
0.026302551850676537,
-0.0283808633685112,
0.013287559151649475,
-0.023202121257781982,
0.019437313079833984,
-0.10159871727228165,
0.014147843234241009,
-0.07202538102865219,
0.01901143044233322,
0.09348990023136139,
-0.05209404602646828,
-0.035671986639499664,
-0.04204319790005684,
-0.055467039346694946,
0.06040728837251663,
0.03335518017411232,
0.03447951003909111,
-0.04865290969610214,
-0.01848333515226841,
0.010485246777534485,
-0.0024679936468601227,
-0.0000773909778217785,
0.008006606251001358,
-0.013091652654111385,
0.04061223194003105,
0.006711920723319054,
0.018636653199791908,
-0.04139585793018341,
-0.049913521856069565,
-0.024701232090592384,
0.02379835955798626,
-0.02819347381591797,
0.039862677454948425,
-0.028789710253477097,
-0.02681361325085163,
-0.06521125137805939,
-0.013074616901576519,
0.019232889637351036,
-0.04541619494557381,
0.01411377266049385,
-0.030152536928653717,
-0.05311616510152817,
0.0528436005115509,
-0.03102133981883526,
0.019965408369898796,
0.019283995032310486,
0.04555247724056244,
-0.031907178461551666,
-0.006183825433254242,
-0.0194032434374094,
-0.045756902545690536,
-0.026898788288235664,
-0.022503674030303955,
-0.04153214022517204,
0.015340316109359264,
0.01759749837219715,
0.031907178461551666,
0.009531267918646336,
0.05914667248725891,
-0.02175411954522133,
0.00429290346801281,
-0.021140847355127335,
-0.01901143044233322,
-0.058976318687200546,
-0.022520707920193672,
0.003006736049428582,
0.030271785333752632,
-0.01484629139304161,
-0.08306428045034409,
-0.04541619494557381,
-0.04930024966597557,
-0.0531502366065979,
0.012103603221476078,
0.0960792750120163,
-0.006107166409492493,
0.017580462619662285,
-0.02165190689265728,
-0.05226439982652664,
0.022742168977856636,
-0.017818957567214966,
0.004846551921218634,
-0.020663857460021973,
-0.046642739325761795,
0.0748191773891449,
0.027001000940799713,
0.017887098714709282,
0.04091886803507805,
0.019675808027386665,
-0.018057452514767647,
0.058158621191978455,
-0.07645457237958908,
0.008134370669722557,
0.03165164589881897,
0.03338925167918205,
-0.05144670233130455,
-0.019147712737321854,
-0.03296336904168129,
-0.03165164589881897,
-0.04786928370594978,
0.020306115970015526,
-0.02364504151046276,
-0.014710009098052979,
-0.009931598789989948,
0.020016515627503395,
-0.007759593892842531,
-0.005902742501348257,
0.016507236286997795,
-0.03740958869457245,
0.021430447697639465,
-0.004697492811828852,
0.008475077338516712,
0.010306376032531261,
0.011601060628890991,
0.06650593876838684,
-0.03335518017411232,
-0.004048020578920841,
0.030322890728712082,
0.01720568537712097,
0.019283995032310486,
0.028414933010935783,
-0.001203120336867869,
0.017239755019545555,
-0.032741907984018326,
0.024650124832987785,
0.018738865852355957,
-0.07168467342853546,
-0.04432593286037445,
-0.051174137741327286,
0.04384894296526909,
0.007495546247810125,
-0.017887098714709282,
-0.05754535272717476,
0.017835993319749832,
0.07515988498926163,
-0.014701491221785545,
-0.030118467286229134,
0.016771284863352776,
-0.011686237528920174,
-0.0423157662153244,
-0.020834211260080338,
-0.007027074228972197,
-0.0004085817781742662,
0.008189735934138298,
0.04408743977546692,
-0.0004578245570883155,
0.0247182659804821,
0.017290862277150154,
0.013330147601664066,
0.0041417148895561695,
-0.010076398961246014,
0.05560332164168358,
0.026029987260699272,
-0.13682778179645538,
-0.039964888244867325,
-0.007163356989622116,
0.02921559475362301,
0.02672843635082245,
-0.07475103437900543,
0.01887514814734459,
0.02218000218272209,
0.022111861035227776,
-0.0013106558471918106,
0.01960766687989235,
0.007504063658416271,
0.01714606210589409,
0.012393203563988209,
0.05502412095665932,
-0.000169155522598885,
-0.004880622494965792,
0.017265308648347855,
-0.018858112394809723,
0.09655626118183136,
-0.022503674030303955,
-0.032111600041389465,
0.07107140123844147,
-0.011575507931411266,
0.018125593662261963,
0.06470019370317459,
-0.04432593286037445,
-0.03965825214982033,
0.008773195557296276,
-0.0001001491182250902,
0.01848333515226841,
-0.004373821429908276,
0.01562991738319397,
-0.007759593892842531,
0.01848333515226841,
-0.0007048368570394814,
0.05812455341219902,
0.02434348873794079,
-0.02877267636358738,
-0.06452983617782593,
0.03775029629468918,
-0.04650645703077316,
-0.05110599473118782,
-0.02005058526992798,
-0.05154891312122345,
0.042213551700115204,
0.0214134119451046,
-0.032213810831308365,
-0.03512685373425484,
0.06565416604280472,
0.043235670775175095,
-0.00807900633662939,
0.006085872184485197,
0.0048933993093669415,
0.0250249020755291,
0.013176829554140568,
0.011933250352740288,
0.014641867950558662,
0.009931598789989948,
0.024956760928034782,
-0.02686471864581108,
-0.011098518967628479,
-0.09015097469091415,
-0.018517406657338142,
-0.03877241536974907,
0.09601113200187683,
0.016030246391892433,
0.04432593286037445,
0.03948789834976196,
0.03785250708460808,
0.03754587098956108
] |
10,048
|
torch.nn.modules.module
|
extra_repr
|
Set the extra representation of the module.
To print customized extra information, you should re-implement
this method in your own modules. Both single-line and multi-line
strings are acceptable.
|
def extra_repr(self) -> str:
r"""Set the extra representation of the module.
To print customized extra information, you should re-implement
this method in your own modules. Both single-line and multi-line
strings are acceptable.
"""
return ''
|
(self) -> str
|
[
-0.009633936919271946,
-0.0191472340375185,
0.0656624287366867,
0.04529156535863876,
0.0760374367237091,
-0.058665331453084946,
0.002906122710555792,
0.017768494784832,
0.027299026027321815,
-0.04294770956039429,
0.023180045187473297,
-0.02059490978717804,
0.01560559868812561,
0.05604572966694832,
-0.0513235479593277,
0.0003425304021220654,
0.021956413984298706,
-0.04277537018060684,
-0.016363905742764473,
-0.0025140438228845596,
-0.016381138935685158,
0.06111259385943413,
0.01753583364188671,
-0.014976548962295055,
-0.01875084638595581,
0.05790702626109123,
-0.0020745708607137203,
-0.041293226182460785,
-0.020388098433613777,
-0.04973800107836723,
-0.017027422785758972,
-0.09492616355419159,
-0.022421738132834435,
0.017871901392936707,
-0.009340954944491386,
0.030159909278154373,
-0.02629944123327732,
0.020818954333662987,
-0.05763128027319908,
-0.03446846827864647,
0.04305111616849899,
0.03096991777420044,
0.03109055757522583,
-0.037708502262830734,
-0.06904034316539764,
-0.011512468568980694,
0.0650075301527977,
0.007975141517817974,
-0.019595323130488396,
-0.022594081237912178,
0.0754859447479248,
0.05008268356323242,
-0.0019140770891681314,
0.00429563270881772,
-0.039604268968105316,
-0.009082441218197346,
0.043223459273576736,
0.027523072436451912,
0.010443945415318012,
0.007992375642061234,
-0.014356116764247417,
0.04960012435913086,
0.023748774081468582,
-0.025368792936205864,
-0.005635594483464956,
0.036812324076890945,
-0.012942909263074398,
0.010013089515268803,
-0.0013334988616406918,
0.006234484259039164,
-0.011900238692760468,
-0.031745459884405136,
-0.040431514382362366,
0.012848121114075184,
0.016760293394327164,
-0.015131657011806965,
-0.04673924297094345,
-0.023214513435959816,
0.007764022331684828,
-0.018888721242547035,
-0.0009656556649133563,
-0.009504679590463638,
0.014166540466248989,
0.03557145968079567,
0.0045713805593550205,
-0.08699841052293777,
-0.03867362067103386,
-0.017596153542399406,
0.04143109917640686,
0.024162396788597107,
-0.053908683359622955,
0.005695914383977652,
-0.0322280190885067,
0.04401623457670212,
-0.015665918588638306,
-0.03345164656639099,
0.04394729807972908,
-0.05328825116157532,
0.05411549285054207,
-0.02047426998615265,
0.014201008714735508,
-0.01430441439151764,
-0.025523900985717773,
-0.028987981379032135,
-0.01957808993756771,
-0.020301926881074905,
-0.010056175291538239,
0.030832044780254364,
-0.002167204860597849,
-0.019078297540545464,
-0.033934205770492554,
-0.017036039382219315,
-0.04363708198070526,
-0.014692184515297413,
0.05825171247124672,
-0.012158752419054508,
-0.013908026739954948,
-0.016803378239274025,
0.07507232576608658,
0.004190073348581791,
-0.0019086913671344519,
-0.004562763497233391,
-0.03427889198064804,
-0.03629529848694801,
0.010805864818394184,
0.001554312533698976,
-0.028333080932497978,
0.01881978288292885,
0.019233405590057373,
-0.1020956039428711,
0.034968260675668716,
-0.014597396366298199,
-0.019543621689081192,
-0.030194377526640892,
0.033193133771419525,
0.025713477283716202,
-0.007944981567561626,
0.03241759538650513,
0.050530772656202316,
0.06593818217515945,
-0.02762647718191147,
-0.030745873227715492,
-0.016794761642813683,
0.06262920796871185,
-0.05383974686264992,
-0.03096991777420044,
-0.02664412558078766,
0.056424882262945175,
-0.023214513435959816,
-0.011512468568980694,
0.0229559987783432,
0.01132289133965969,
-0.025644540786743164,
-0.004989310633391142,
0.0011676193680614233,
0.05063417926430702,
0.027523072436451912,
-0.013408234342932701,
0.040983010083436966,
-0.003035379573702812,
0.00933233741670847,
-0.07562381774187088,
0.0771404281258583,
-0.00858695711940527,
0.008405997417867184,
0.02928096428513527,
-0.0021435078233480453,
-0.08472349494695663,
0.007755405269563198,
0.02197364903986454,
0.02031916193664074,
-0.04167237877845764,
-0.028987981379032135,
0.016251882538199425,
0.0173807255923748,
0.08679160475730896,
0.014373350888490677,
0.06304282695055008,
-0.03629529848694801,
-0.01505410298705101,
0.03701913356781006,
-0.037674035876989365,
-0.038501277565956116,
0.03412378206849098,
0.06766160577535629,
-0.05590785667300224,
0.05676956847310066,
-0.024869000539183617,
0.031262900680303574,
0.007570137269794941,
0.05321931466460228,
0.04305111616849899,
0.0015349239110946655,
0.014097603037953377,
-0.03171098977327347,
-0.04542944207787514,
0.018647441640496254,
-0.06442156434059143,
0.041293226182460785,
-0.014295796863734722,
-0.03171098977327347,
0.03863915428519249,
-0.0004327408387325704,
0.010512882843613625,
0.04732520505785942,
0.01725146733224392,
0.014261328615248203,
-0.012710247188806534,
-0.08913546055555344,
-0.01012511271983385,
0.021491089835762978,
-0.00657486030831933,
0.07445189356803894,
0.007570137269794941,
0.017303170636296272,
0.03715701028704643,
-0.008285357616841793,
0.029573945328593254,
-0.07624424993991852,
0.00988383311778307,
0.024024521932005882,
-0.03753616288304329,
0.010228517465293407,
-0.011365977115929127,
-0.018733613193035126,
-0.009702873416244984,
0.03670891746878624,
0.012917058542370796,
0.0055795833468437195,
-0.002757477341219783,
0.039087243378162384,
-0.0000842861772980541,
-0.0673169195652008,
0.007328858133405447,
-0.011098846793174744,
0.013192806392908096,
-0.05570104345679283,
0.013080783188343048,
-0.0030504593160003424,
-0.02307663857936859,
-0.037984251976013184,
0.06276708096265793,
0.015700386837124825,
0.006695500109344721,
0.013606428168714046,
-0.05101333186030388,
-0.00023925963614601642,
0.03946639597415924,
-0.003683817572891712,
-0.0033412871416658163,
0.02909138612449169,
-0.005665754433721304,
-0.019543621689081192,
0.00559250870719552,
0.009013504721224308,
-0.01646731048822403,
-0.010969589464366436,
-0.0019173085456714034,
0.0199744775891304,
0.017820198088884354,
-0.008479243144392967,
-0.023645369336009026,
-0.03667445108294487,
-0.008302592672407627,
0.07845023274421692,
0.01330482866615057,
-0.05339165776968002,
0.0012774876086041331,
0.020181287080049515,
-0.010245752520859241,
0.08486136794090271,
0.03857021406292915,
-0.06107812374830246,
0.0006796750822104514,
-0.03726041316986084,
-0.008815310895442963,
-0.011236720718443394,
0.0018332916079089046,
-0.01491622906178236,
-0.021628962829709053,
0.028781170025467873,
-0.021956413984298706,
-0.002712237648665905,
0.01764785498380661,
0.031538646668195724,
-0.02838478423655033,
-0.012649927288293839,
-0.006350815296173096,
-0.005631285719573498,
0.015235062688589096,
0.03489932417869568,
0.04280983656644821,
-0.012150134891271591,
0.023679837584495544,
0.06135387346148491,
-0.0173807255923748,
0.01753583364188671,
0.0099872387945652,
-0.023679837584495544,
-0.019957242533564568,
-0.043843891471624374,
-0.01835445873439312,
0.00974595919251442,
0.008358603343367577,
-0.03981108218431473,
-0.017285937443375587,
0.035709332674741745,
-0.00398972537368536,
-0.03267610818147659,
0.004047890659421682,
0.014313030987977982,
0.04063832387328148,
0.04477453976869583,
0.0540810264647007,
0.014252711087465286,
0.03176269307732582,
0.014209626242518425,
0.015286765992641449,
0.019233405590057373,
0.00945297721773386,
-0.05097886547446251,
-0.02633390948176384,
-0.03801871836185455,
0.0006182781653478742,
0.015424638986587524,
-0.06462837755680084,
0.009065207093954086,
-0.00903935544192791,
0.047738827764987946,
0.010461180470883846,
-0.040190234780311584,
-0.019784901291131973,
0.00002361291990382597,
0.007341783493757248,
0.005135801620781422,
-0.0024192556738853455,
-0.020232990384101868,
-0.0662139281630516,
-0.011822684668004513,
-0.0486694760620594,
0.05804489925503731,
0.007259921170771122,
-0.039673205465078354,
0.01584687829017639,
-0.016243265941739082,
-0.00988383311778307,
0.024593252688646317,
0.03557145968079567,
0.029108621180057526,
-0.0015618524048477411,
-0.026264972984790802,
0.0202502254396677,
-0.016251882538199425,
0.0032378816977143288,
-0.005066864658147097,
0.01289120689034462,
-0.0481179803609848,
0.033623989671468735,
-0.04084513336420059,
0.0037850686348974705,
0.021904710680246353,
0.022663017734885216,
-0.002013173885643482,
0.06404241174459457,
-0.08493030816316605,
-0.029642881825566292,
0.015631450340151787,
0.04005235806107521,
0.076588936150074,
0.02342132478952408,
-0.03660551458597183,
-0.012899824418127537,
-0.006841991096735001,
-0.057286594063043594,
-0.02000894583761692,
0.035278476774692535,
-0.019681494683027267,
-0.00357610359787941,
-0.06535221636295319,
-0.0824485719203949,
0.03760509938001633,
0.013192806392908096,
-0.033468883484601974,
-0.04508475586771965,
-0.03128013387322426,
0.006639488507062197,
0.053667403757572174,
0.047773297876119614,
-0.03636423498392105,
-0.0036622746847569942,
-0.032400358468294144,
-0.006350815296173096,
0.009168612770736217,
0.03715701028704643,
-0.08754990994930267,
-0.0486694760620594,
-0.020181287080049515,
-0.015941666439175606,
-0.08803246915340424,
0.0006926007918082178,
0.06972970813512802,
-0.005945810582488775,
-0.011572788469493389,
-0.04570518806576729,
-0.01634667068719864,
0.014114837162196636,
0.03155588358640671,
0.019354045391082764,
-0.002839340129867196,
0.008082855492830276,
-0.004506752360612154,
0.004099593497812748,
-0.04181025177240372,
-0.04735967516899109,
0.071073979139328,
-0.006225867196917534,
0.023679837584495544,
0.005359846632927656,
0.00890148151665926,
-0.023748774081468582,
0.010788630694150925,
-0.0183199904859066,
0.012486202642321587,
0.07410720735788345,
-0.012546522542834282,
0.027729881927371025,
-0.026196036487817764,
0.008642968721687794,
0.06810969114303589,
0.009099675342440605,
-0.05266781896352768,
0.0016297122929245234,
0.0022145991679280996,
0.012124283239245415,
0.03501996397972107,
-0.09251336753368378,
0.035536989569664,
-0.02943607233464718,
-0.01757030189037323,
0.030918216332793236,
0.03750169277191162,
-0.019233405590057373,
-0.009478828869760036,
0.0000440954026998952,
0.022025350481271744,
0.018578505143523216,
-0.02783328853547573,
0.025299854576587677,
0.028160737827420235,
-0.01546772476285696,
-0.019233405590057373,
0.0360884852707386,
0.00773386238142848,
-0.0011256108991801739,
-0.021939178928732872,
-0.10381902754306793,
0.02455878257751465,
-0.06755819916725159,
-0.04253409057855606,
-0.003972490783780813,
-0.07190122455358505,
0.09051419794559479,
-0.03352058678865433,
0.04291324317455292,
0.06897140294313431,
-0.010624905116856098,
0.055597640573978424,
-0.02142215333878994,
-0.08810140192508698,
0.01531261671334505,
0.040983010083436966,
0.004437815397977829,
0.020974062383174896,
0.015907198190689087,
0.031745459884405136,
0.04704945906996727,
-0.040983010083436966,
-0.03238312527537346,
-0.023766009137034416,
-0.0377429723739624,
-0.03746722638607025,
-0.05766574665904045,
-0.0031301677227020264,
-0.03148694708943367,
-0.0073245493695139885,
0.020577674731612206,
0.02200811728835106,
0.005795011296868324,
0.046877115964889526,
-0.012486202642321587,
0.0060966103337705135,
0.04656689986586571,
-0.04067279398441315,
-0.003938022535294294,
0.02712668478488922,
0.005514954682439566,
0.004963459447026253,
0.0021865933667868376,
-0.008815310895442963,
-0.012994612567126751,
0.006833373568952084,
-0.029039684683084488,
0.01847509853541851,
-0.0295222420245409,
0.037949781864881516,
0.00858695711940527,
0.022869829088449478,
0.03643317148089409,
0.0018246745457872748,
0.03372739627957344,
0.008574031293392181,
-0.01359781064093113,
0.05835511535406113,
0.017208382487297058,
0.011107463389635086,
-0.02087065763771534,
0.018009774386882782,
0.07458976656198502,
0.04649796336889267,
-0.008823927491903305,
0.007600297220051289,
-0.03372739627957344,
-0.0248862337321043,
-0.04853160306811333,
-0.006902310531586409,
0.004618774633854628,
-0.06249133124947548,
0.01992277428507805,
-0.04181025177240372,
0.07589956372976303,
0.017622003331780434,
0.023990053683519363,
0.008388763293623924,
-0.044705603271722794,
-0.025093045085668564,
0.09423679113388062,
-0.06293942034244537,
0.07038461416959763,
0.061216000467538834,
0.020060649141669273,
0.038466811180114746,
-0.028367549180984497,
-0.0054891034960746765,
-0.05873426795005798,
-0.011822684668004513,
-0.01686369813978672,
0.017087742686271667,
0.03998342156410217,
0.006264644209295511,
0.004065124783664942,
-0.01564006693661213,
-0.036502107977867126,
-0.018492333590984344,
-0.013623662292957306,
0.04232727736234665,
0.007156515493988991,
0.008164718747138977,
0.031107792630791664,
0.014330265112221241,
0.01583826169371605,
-0.0026411463040858507,
0.0019162313546985388,
0.01634667068719864,
-0.024386441335082054,
0.05101333186030388,
0.041568972170352936,
-0.02181854099035263,
-0.02550666593015194,
-0.06828203797340393,
-0.017820198088884354,
-0.020215757191181183,
-0.011038526892662048,
0.029901396483182907,
0.028436485677957535,
-0.07035014033317566,
0.007328858133405447,
0.05535636097192764,
0.07458976656198502,
0.0008153946837410331,
0.017087742686271667,
-0.05159929767251015,
0.0026993118226528168,
0.035536989569664,
-0.035536989569664,
-0.020698314532637596,
-0.03526124358177185,
0.0020551823545247316,
0.002378324279561639,
0.04794563725590706,
0.013890792615711689,
-0.022507909685373306,
-0.02759200893342495,
0.04112088307738304,
-0.05825171247124672,
0.08589541912078857,
0.0083327516913414,
-0.05349506065249443,
0.005764851346611977,
0.03622635826468468,
0.07624424993991852,
0.00800099316984415,
0.03436506167054176,
-0.0005795010947622359,
0.004321484360843897,
0.028591593727469444,
0.02068108133971691,
0.04429198056459427,
-0.026626892387866974,
-0.03203844279050827,
0.037363819777965546,
-0.04987587407231331,
0.029177557677030563,
-0.026523485779762268,
-0.07458976656198502,
-0.030177144333720207,
-0.023766009137034416,
0.030022036284208298,
-0.04118981957435608,
0.02790222503244877,
0.01871637813746929,
-0.009530531242489815,
0.08396518975496292,
-0.06807522475719452,
-0.011521085165441036,
-0.008285357616841793,
0.04287877306342125,
-0.044705603271722794,
-0.012150134891271591,
0.02523091807961464,
-0.06273261457681656,
-0.017010189592838287,
0.023731540888547897,
0.017768494784832,
-0.0507720522582531,
-0.006488689221441746,
-0.044395387172698975,
0.004198690410703421,
0.014166540466248989,
0.007716628257185221,
0.001099759596399963,
0.0366399809718132,
-0.02762647718191147,
-0.10051005333662033,
-0.015674535185098648,
-0.049462251365184784,
0.05356400087475777,
-0.060147475451231,
-0.055563170462846756,
0.03843234106898308,
-0.06142280995845795,
-0.03434782847762108,
0.013278977014124393,
0.008483551442623138,
0.010771396569907665,
-0.028281377628445625,
0.0011449994053691626,
-0.050599709153175354,
0.03238312527537346,
-0.018285522237420082,
-0.01863020658493042,
0.00015914738469291478,
-0.05373634025454521,
0.017561685293912888,
-0.008164718747138977,
0.05601125955581665,
0.011529702693223953,
-0.02829861268401146,
0.01206396333873272,
0.034141018986701965,
-0.08472349494695663,
-0.014088986441493034,
0.03629529848694801,
-0.0023761698976159096,
-0.010349157266318798,
-0.0316765233874321,
0.014071752317249775,
-0.016924018040299416,
0.0010652911150828004,
0.019164469093084335,
0.0014681413304060698,
-0.010150963440537453,
-0.008505094796419144,
-0.03422718867659569,
-0.10547351092100143,
0.0023912498727440834,
0.08217282593250275,
-0.051668234169483185,
0.06962630897760391,
-0.023748774081468582,
-0.06972970813512802,
-0.06449050456285477,
-0.014045900665223598,
-0.014545693062245846,
-0.025765180587768555,
0.08334475755691528,
-0.009306486696004868,
0.02421409823000431,
-0.06104365736246109,
0.0240589901804924,
-0.02535155788064003,
0.026196036487817764,
0.04949672147631645,
0.0025398952420800924,
-0.00905658956617117,
0.0057993195950984955,
0.015579747967422009,
0.001812826027162373,
-0.041051946580410004,
-0.05966491624712944,
-0.0021295049227774143,
0.0025614381302148104,
0.11078165471553802,
0.01470080204308033,
-0.05497720465064049,
-0.017578918486833572,
-0.0453605055809021,
0.03483038768172264,
0.0001775933924363926,
0.0016620263922959566,
0.000968348525930196,
-0.05004821717739105,
0.03643317148089409,
0.04546390846371651,
0.014907612465322018,
0.0060061304830014706,
0.08293113112449646,
-0.08417199552059174,
-0.04332686588168144,
0.024145161733031273,
-0.0054891034960746765,
-0.016484545543789864,
0.03226248547434807,
-0.08513711392879486,
0.050840988755226135,
0.04587753117084503,
-0.02188747748732567,
-0.013313446193933487,
0.017242850735783577,
0.03384803608059883,
-0.04363708198070526,
0.017165297642350197,
0.009789044968783855,
0.023024937137961388,
-0.0097114909440279,
0.03577826917171478,
0.006462837569415569,
0.001580163836479187,
0.06052662804722786,
-0.008423231542110443,
0.058079369366168976,
0.022731954231858253,
0.021198106929659843,
-0.026471782475709915,
0.03612295538187027,
0.056149132549762726,
-0.00831120926886797,
0.023248981684446335,
0.04649796336889267,
0.01992277428507805,
-0.026402845978736877,
-0.04456773027777672,
-0.014778356067836285,
0.07396933436393738,
0.02707498148083687,
0.022490674629807472,
0.037674035876989365,
-0.03891490027308464,
0.012563756667077541
] |
10,049
|
sentence_transformers.SentenceTransformer
|
fit
|
Train the model with the given training objective
Each training objective is sampled in turn for one batch.
We sample only as many batches from each objective as there are in the smallest one
to make sure of equal training with each dataset.
:param train_objectives: Tuples of (DataLoader, LossFunction). Pass more than one for multi-task learning
:param evaluator: An evaluator (sentence_transformers.evaluation) evaluates the model performance during training on held-out dev data. It is used to determine the best model that is saved to disc.
:param epochs: Number of epochs for training
:param steps_per_epoch: Number of training steps per epoch. If set to None (default), one epoch is equal the DataLoader size from train_objectives.
:param scheduler: Learning rate scheduler. Available schedulers: constantlr, warmupconstant, warmuplinear, warmupcosine, warmupcosinewithhardrestarts
:param warmup_steps: Behavior depends on the scheduler. For WarmupLinear (default), the learning rate is increased from o up to the maximal learning rate. After these many training steps, the learning rate is decreased linearly back to zero.
:param optimizer_class: Optimizer
:param optimizer_params: Optimizer parameters
:param weight_decay: Weight decay for model parameters
:param evaluation_steps: If > 0, evaluate the model using evaluator after each number of training steps
:param output_path: Storage path for the model and evaluation files
:param save_best_model: If true, the best model (according to evaluator) is stored at output_path
:param max_grad_norm: Used for gradient normalization.
:param use_amp: Use Automatic Mixed Precision (AMP). Only for Pytorch >= 1.6.0
:param callback: Callback function that is invoked after each evaluation.
It must accept the following three parameters in this order:
`score`, `epoch`, `steps`
:param show_progress_bar: If True, output a tqdm progress bar
:param checkpoint_path: Folder to save checkpoints during training
:param checkpoint_save_steps: Will save a checkpoint after so many steps
:param checkpoint_save_total_limit: Total number of checkpoints to store
|
def fit(
self,
train_objectives: Iterable[Tuple[DataLoader, nn.Module]],
evaluator: SentenceEvaluator = None,
epochs: int = 1,
steps_per_epoch=None,
scheduler: str = "WarmupLinear",
warmup_steps: int = 10000,
optimizer_class: Type[Optimizer] = torch.optim.AdamW,
optimizer_params: Dict[str, object] = {"lr": 2e-5},
weight_decay: float = 0.01,
evaluation_steps: int = 0,
output_path: str = None,
save_best_model: bool = True,
max_grad_norm: float = 1,
use_amp: bool = False,
callback: Callable[[float, int, int], None] = None,
show_progress_bar: bool = True,
checkpoint_path: str = None,
checkpoint_save_steps: int = 500,
checkpoint_save_total_limit: int = 0,
):
"""
Train the model with the given training objective
Each training objective is sampled in turn for one batch.
We sample only as many batches from each objective as there are in the smallest one
to make sure of equal training with each dataset.
:param train_objectives: Tuples of (DataLoader, LossFunction). Pass more than one for multi-task learning
:param evaluator: An evaluator (sentence_transformers.evaluation) evaluates the model performance during training on held-out dev data. It is used to determine the best model that is saved to disc.
:param epochs: Number of epochs for training
:param steps_per_epoch: Number of training steps per epoch. If set to None (default), one epoch is equal the DataLoader size from train_objectives.
:param scheduler: Learning rate scheduler. Available schedulers: constantlr, warmupconstant, warmuplinear, warmupcosine, warmupcosinewithhardrestarts
:param warmup_steps: Behavior depends on the scheduler. For WarmupLinear (default), the learning rate is increased from o up to the maximal learning rate. After these many training steps, the learning rate is decreased linearly back to zero.
:param optimizer_class: Optimizer
:param optimizer_params: Optimizer parameters
:param weight_decay: Weight decay for model parameters
:param evaluation_steps: If > 0, evaluate the model using evaluator after each number of training steps
:param output_path: Storage path for the model and evaluation files
:param save_best_model: If true, the best model (according to evaluator) is stored at output_path
:param max_grad_norm: Used for gradient normalization.
:param use_amp: Use Automatic Mixed Precision (AMP). Only for Pytorch >= 1.6.0
:param callback: Callback function that is invoked after each evaluation.
It must accept the following three parameters in this order:
`score`, `epoch`, `steps`
:param show_progress_bar: If True, output a tqdm progress bar
:param checkpoint_path: Folder to save checkpoints during training
:param checkpoint_save_steps: Will save a checkpoint after so many steps
:param checkpoint_save_total_limit: Total number of checkpoints to store
"""
##Add info to model card
# info_loss_functions = "\n".join(["- {} with {} training examples".format(str(loss), len(dataloader)) for dataloader, loss in train_objectives])
info_loss_functions = []
for dataloader, loss in train_objectives:
info_loss_functions.extend(ModelCardTemplate.get_train_objective_info(dataloader, loss))
info_loss_functions = "\n\n".join([text for text in info_loss_functions])
info_fit_parameters = json.dumps(
{
"evaluator": fullname(evaluator),
"epochs": epochs,
"steps_per_epoch": steps_per_epoch,
"scheduler": scheduler,
"warmup_steps": warmup_steps,
"optimizer_class": str(optimizer_class),
"optimizer_params": optimizer_params,
"weight_decay": weight_decay,
"evaluation_steps": evaluation_steps,
"max_grad_norm": max_grad_norm,
},
indent=4,
sort_keys=True,
)
self._model_card_text = None
self._model_card_vars["{TRAINING_SECTION}"] = ModelCardTemplate.__TRAINING_SECTION__.replace(
"{LOSS_FUNCTIONS}", info_loss_functions
).replace("{FIT_PARAMETERS}", info_fit_parameters)
if use_amp:
if is_torch_npu_available():
scaler = torch.npu.amp.GradScaler()
else:
scaler = torch.cuda.amp.GradScaler()
self.to(self.device)
dataloaders = [dataloader for dataloader, _ in train_objectives]
# Use smart batching
for dataloader in dataloaders:
dataloader.collate_fn = self.smart_batching_collate
loss_models = [loss for _, loss in train_objectives]
for loss_model in loss_models:
loss_model.to(self.device)
self.best_score = -9999999
if steps_per_epoch is None or steps_per_epoch == 0:
steps_per_epoch = min([len(dataloader) for dataloader in dataloaders])
num_train_steps = int(steps_per_epoch * epochs)
# Prepare optimizers
optimizers = []
schedulers = []
for loss_model in loss_models:
param_optimizer = list(loss_model.named_parameters())
no_decay = ["bias", "LayerNorm.bias", "LayerNorm.weight"]
optimizer_grouped_parameters = [
{
"params": [p for n, p in param_optimizer if not any(nd in n for nd in no_decay)],
"weight_decay": weight_decay,
},
{"params": [p for n, p in param_optimizer if any(nd in n for nd in no_decay)], "weight_decay": 0.0},
]
optimizer = optimizer_class(optimizer_grouped_parameters, **optimizer_params)
scheduler_obj = self._get_scheduler(
optimizer, scheduler=scheduler, warmup_steps=warmup_steps, t_total=num_train_steps
)
optimizers.append(optimizer)
schedulers.append(scheduler_obj)
global_step = 0
data_iterators = [iter(dataloader) for dataloader in dataloaders]
num_train_objectives = len(train_objectives)
skip_scheduler = False
for epoch in trange(epochs, desc="Epoch", disable=not show_progress_bar):
training_steps = 0
for loss_model in loss_models:
loss_model.zero_grad()
loss_model.train()
for _ in trange(steps_per_epoch, desc="Iteration", smoothing=0.05, disable=not show_progress_bar):
for train_idx in range(num_train_objectives):
loss_model = loss_models[train_idx]
optimizer = optimizers[train_idx]
scheduler = schedulers[train_idx]
data_iterator = data_iterators[train_idx]
try:
data = next(data_iterator)
except StopIteration:
data_iterator = iter(dataloaders[train_idx])
data_iterators[train_idx] = data_iterator
data = next(data_iterator)
features, labels = data
labels = labels.to(self.device)
features = list(map(lambda batch: batch_to_device(batch, self.device), features))
if use_amp:
with torch.autocast(device_type=self.device.type):
loss_value = loss_model(features, labels)
scale_before_step = scaler.get_scale()
scaler.scale(loss_value).backward()
scaler.unscale_(optimizer)
torch.nn.utils.clip_grad_norm_(loss_model.parameters(), max_grad_norm)
scaler.step(optimizer)
scaler.update()
skip_scheduler = scaler.get_scale() != scale_before_step
else:
loss_value = loss_model(features, labels)
loss_value.backward()
torch.nn.utils.clip_grad_norm_(loss_model.parameters(), max_grad_norm)
optimizer.step()
optimizer.zero_grad()
if not skip_scheduler:
scheduler.step()
training_steps += 1
global_step += 1
if evaluation_steps > 0 and training_steps % evaluation_steps == 0:
self._eval_during_training(
evaluator, output_path, save_best_m
|
(self, train_objectives: Iterable[Tuple[torch.utils.data.dataloader.DataLoader, torch.nn.modules.module.Module]], evaluator: Optional[sentence_transformers.evaluation.SentenceEvaluator.SentenceEvaluator] = None, epochs: int = 1, steps_per_epoch=None, scheduler: str = 'WarmupLinear', warmup_steps: int = 10000, optimizer_class: Type[torch.optim.optimizer.Optimizer] = <class 'torch.optim.adamw.AdamW'>, optimizer_params: Dict[str, object] = {'lr': 2e-05}, weight_decay: float = 0.01, evaluation_steps: int = 0, output_path: Optional[str] = None, save_best_model: bool = True, max_grad_norm: float = 1, use_amp: bool = False, callback: Optional[Callable[[float, int, int], NoneType]] = None, show_progress_bar: bool = True, checkpoint_path: Optional[str] = None, checkpoint_save_steps: int = 500, checkpoint_save_total_limit: int = 0)
|
[
-0.0046461536549031734,
-0.002935536438599229,
-0.0565330944955349,
-0.016994087025523186,
0.027177730575203896,
0.005014429800212383,
-0.04914621636271477,
-0.03725462779402733,
-0.030209338292479515,
-0.005668254103511572,
-0.032728563994169235,
-0.021071814000606537,
0.016876665875315666,
0.05371497943997383,
-0.0032184154260903597,
0.0693427100777626,
0.0019588035065680742,
-0.004720876459032297,
0.027732813730835915,
0.00507314084097743,
0.0037041131872683764,
-0.07540592551231384,
-0.0448763445019722,
0.02495739795267582,
-0.0380232036113739,
-0.011176387779414654,
0.028181150555610657,
0.0014477531658485532,
-0.02137070521712303,
0.04389427602291107,
-0.023270798847079277,
-0.006239349488168955,
0.009697944857180119,
-0.005758988671004772,
0.010594617575407028,
-0.03541858121752739,
0.01601201668381691,
0.019353190436959267,
-0.045901115983724594,
-0.012350602075457573,
-0.027220429852604866,
-0.05896691977977753,
0.0245517585426569,
0.02348429150879383,
-0.0371478796005249,
0.021509476006031036,
-0.051366548985242844,
0.03806590288877487,
0.028095752000808716,
-0.06374917924404144,
-0.04641349986195564,
-0.06507283449172974,
0.017421074211597443,
0.03529048711061478,
-0.052007030695676804,
0.04114020988345146,
0.01515804324299097,
0.019385214895009995,
0.02459445782005787,
-0.06037597730755806,
0.043467290699481964,
-0.05260481312870979,
0.021189235150814056,
0.02999584563076496,
0.03106331266462803,
-0.009553836658596992,
-0.03998734429478645,
-0.006532902829349041,
-0.002373781520873308,
0.028458692133426666,
0.005334670189768076,
-0.026665344834327698,
0.012019687332212925,
0.0033571862149983644,
-0.014784429222345352,
-0.05115305632352829,
-0.04645619913935661,
-0.05845453590154648,
0.0020922368858009577,
-0.013386046513915062,
0.026857489719986916,
0.02655859850347042,
-0.01992962323129177,
-0.05358688533306122,
-0.020815622061491013,
-0.043467290699481964,
0.039197418838739395,
-0.024210169911384583,
-0.012788264080882072,
-0.007210745010524988,
0.008838633075356483,
0.03898392245173454,
0.04991479590535164,
0.001092153019271791,
0.010194317437708378,
0.014784429222345352,
-0.057088177651166916,
-0.0594366081058979,
0.0011268457164987922,
-0.05563642084598541,
0.007285467814654112,
0.060162484645843506,
0.02201118692755699,
0.05444085970520973,
0.005257279146462679,
-0.0594366081058979,
-0.054483555257320404,
-0.011058966629207134,
0.015136693604290485,
-0.0396244041621685,
-0.0753205269575119,
0.009473776444792747,
-0.0365714468061924,
-0.013759659603238106,
-0.013428744859993458,
-0.017122182995080948,
-0.035802870988845825,
0.015830546617507935,
-0.03315554931759834,
0.014538911171257496,
0.019278468564152718,
0.0413750521838665,
-0.09154603630304337,
-0.06562791764736176,
-0.006036530248820782,
-0.020345935598015785,
0.034244365990161896,
0.04427856579422951,
0.03625120595097542,
-0.08262200653553009,
-0.03170379251241684,
-0.0289924256503582,
-0.007920610718429089,
0.025576528161764145,
0.019950972869992256,
-0.04073457047343254,
-0.006799770053476095,
0.03734002262353897,
-0.0710933580994606,
0.023740483447909355,
0.031084662303328514,
0.021701620891690254,
0.040115438401699066,
-0.005748314317315817,
0.032280225306749344,
-0.002165625337511301,
0.00708798598498106,
-0.019064974039793015,
0.0047982679679989815,
-0.000041093338950304314,
0.03872773051261902,
0.011485953815281391,
0.003904263488948345,
0.0021856403909623623,
-0.024829301983118057,
-0.02016446739435196,
-0.058326441794633865,
-0.03125545755028725,
0.03373198211193085,
0.018595289438962936,
-0.04267736151814461,
-0.04114020988345146,
-0.023548340424895287,
-0.003325162222608924,
0.00043432594975456595,
0.023868579417467117,
-0.03751081973314285,
0.05849723517894745,
-0.01601201668381691,
0.04799335077404976,
0.02144542895257473,
-0.054056569933891296,
-0.03315554931759834,
0.019897600635886192,
-0.03454325720667839,
0.07749816030263901,
0.020015021786093712,
0.015531656332314014,
-0.019950972869992256,
0.02536303550004959,
-0.02248087152838707,
-0.009372367523610592,
-0.032322924584150314,
-0.055166736245155334,
-0.05243401974439621,
0.0480787493288517,
0.0006448172498494387,
0.001462430926039815,
-0.017591869458556175,
0.016876665875315666,
-0.011870241723954678,
-0.022502221167087555,
-0.023569688200950623,
-0.009836715646088123,
-0.03652874752879143,
0.029099171981215477,
0.02559787780046463,
0.02971830405294895,
0.04220767691731453,
0.0025098836049437523,
-0.020933043211698532,
0.018146952614188194,
0.0415244959294796,
-0.053885772824287415,
-0.05239132046699524,
-0.01844584383070469,
-0.04581571742892265,
0.06152884289622307,
-0.018435169011354446,
-0.013364696875214577,
-0.04017948731780052,
0.008817284367978573,
-0.01082412339746952,
0.08573901653289795,
0.10375787317752838,
-0.015446258708834648,
-0.005972482264041901,
0.02532033622264862,
0.01477375440299511,
-0.007141359616070986,
-0.007061299402266741,
-0.02248087152838707,
-0.048505738377571106,
0.0008673176052980125,
0.032322924584150314,
-0.0035573365166783333,
0.04679778963327408,
-0.017623893916606903,
0.026985585689544678,
-0.013012432493269444,
-0.00012050710938638076,
-0.04765176400542259,
-0.0330701507627964,
0.03078577108681202,
0.05012828856706619,
0.02495739795267582,
-0.022929208353161812,
0.039112020283937454,
-0.026708044111728668,
-0.03031608648598194,
-0.0036480713170021772,
-0.0265159010887146,
-0.03586691990494728,
-0.051537346094846725,
0.01495522353798151,
0.03458595648407936,
0.06268171221017838,
0.01869136095046997,
-0.06844603270292282,
-0.023889929056167603,
0.024850649759173393,
0.020260538905858994,
-0.028800280764698982,
0.020271213725209236,
-0.06157154217362404,
-0.050896864384412766,
0.04760906472802162,
-0.032173480838537216,
0.04197283461689949,
-0.022950557991862297,
-0.030614975839853287,
-0.025213589891791344,
-0.060077086091041565,
0.0742957592010498,
-0.025298986583948135,
-0.013044456951320171,
0.01988692581653595,
0.008166128769516945,
0.010306401178240776,
0.015766499564051628,
0.08864252269268036,
0.06972699612379074,
-0.07933420687913895,
0.03633660450577736,
-0.0132579505443573,
0.05051257461309433,
-0.03990194573998451,
-0.009996836073696613,
0.03247237205505371,
0.025491131469607353,
0.06801904737949371,
-0.015926619991660118,
-0.050939563661813736,
-0.05298910290002823,
0.0316183976829052,
-0.015905270352959633,
-0.023633737117052078,
-0.02103978954255581,
0.013407395221292973,
0.004683515056967735,
0.0059244465082883835,
0.026366455480456352,
0.07468004524707794,
-0.02559787780046463,
0.04871923103928566,
-0.0035306497011333704,
0.014592285268008709,
0.01845651865005493,
-0.0021642909850925207,
-0.0016265540616586804,
0.04564492404460907,
-0.006148614455014467,
0.030209338292479515,
-0.016801944002509117,
-0.012393301352858543,
-0.03031608648598194,
-0.016001341864466667,
0.01628955826163292,
0.05038448050618172,
-0.02619566023349762,
0.04295490309596062,
-0.029184570536017418,
0.07937690615653992,
0.03106331266462803,
0.02408207394182682,
-0.015382210724055767,
0.0010888171382248402,
-0.009900763630867004,
0.0456022247672081,
0.03990194573998451,
-0.03716922923922539,
0.06417616456747055,
0.06549982726573944,
0.02794630639255047,
-0.008651826530694962,
-0.06742126494646072,
0.04274141043424606,
0.035674773156642914,
-0.05678928643465042,
-0.05631960183382034,
0.02180836722254753,
-0.06737856566905975,
0.0330701507627964,
0.018232349306344986,
-0.02559787780046463,
0.04301895201206207,
0.015200741589069366,
0.026046214625239372,
0.05115305632352829,
0.03281395882368088,
0.08906951546669006,
0.0654144287109375,
-0.02867218479514122,
0.06058947369456291,
-0.0019748155027627945,
-0.0321948304772377,
0.05042717978358269,
0.03174649178981781,
0.001635894412174821,
0.017282303422689438,
-0.07045287638902664,
0.023868579417467117,
-0.006020518485456705,
0.07160574197769165,
0.036720890551805496,
-0.007856562733650208,
-0.016108088195323944,
-0.050854165107011795,
0.026857489719986916,
-0.08898411691188812,
-0.03319824859499931,
-0.013225926086306572,
-0.06592681258916855,
0.076345294713974,
0.010279715061187744,
-0.008411645889282227,
0.015467608347535133,
-0.055124036967754364,
0.0495305061340332,
-0.04931701347231865,
-0.016631148755550385,
-0.03334769234061241,
0.03266451507806778,
-0.0006578270113095641,
-0.009009428322315216,
-0.008288887329399586,
-0.01856326498091221,
0.035802870988845825,
0.01888350583612919,
0.019022276625037193,
0.06093106046319008,
0.0022590288426727057,
0.013770334422588348,
0.00544141698628664,
0.05631960183382034,
-0.043189745396375656,
-0.003821534803137183,
-0.00024101421877276152,
0.015787849202752113,
-0.05789945274591446,
0.08360407501459122,
-0.003090319223701954,
0.0015958643052726984,
-0.015083320438861847,
-0.02316405065357685,
0.050341781228780746,
0.022395474836230278,
0.06114455685019493,
-0.07749816030263901,
-0.06234011799097061,
-0.027497971430420876,
-0.032771263271570206,
0.027924956753849983,
0.04743826761841774,
-0.00460078613832593,
0.011133689433336258,
0.081597238779068,
0.029568858444690704,
-0.007584358565509319,
0.10204992443323135,
-0.011464604176580906,
0.008347597904503345,
-0.02316405065357685,
0.019620059058070183,
-0.06490204483270645,
-0.0018640656489878893,
-0.01965208165347576,
0.020783597603440285,
0.03716922923922539,
0.028330596163868904,
0.022032534703612328,
0.047267474234104156,
0.06208392605185509,
0.016353607177734375,
-0.015713125467300415,
-0.006052542477846146,
-0.05683198571205139,
-0.008011345751583576,
-0.04376617819070816,
-0.04357403516769409,
-0.047822557389736176,
-0.037275977432727814,
-0.02275841310620308,
-0.07527782768011093,
-0.028138451278209686,
0.006004506256431341,
0.012638818472623825,
0.007509635761380196,
-0.009623222053050995,
-0.0037094505969434977,
0.03198133409023285,
-0.04432126134634018,
0.03866368532180786,
0.04160989448428154,
-0.03430841490626335,
0.0009914106922224164,
-0.017068810760974884,
0.0034772763028740883,
-0.09923180937767029,
0.05422736331820488,
-0.017869411036372185,
0.027412572875618935,
0.04859113320708275,
0.04555952548980713,
0.006954552605748177,
-0.008283549919724464,
0.024252869188785553,
-0.002770078834146261,
-0.01933184266090393,
-0.020185817033052444,
-0.011912941001355648,
0.03558937832713127,
0.005945795681327581,
0.003506631823256612,
-0.006223337259143591,
0.08018817752599716,
0.06289520114660263,
0.02307865396142006,
-0.026900188997387886,
0.007184058427810669,
-0.0010361109161749482,
-0.035247787833213806,
0.052732910960912704,
-0.030059892684221268,
-0.05367228016257286,
0.003042283235117793,
0.009457765147089958,
0.015478283166885376,
0.021349355578422546,
-0.022374125197529793,
0.07220352441072464,
-0.07937690615653992,
0.03125545755028725,
0.04118290916085243,
-0.002527229953557253,
0.004027022048830986,
-0.025576528161764145,
-0.010226341895759106,
-0.01605471596121788,
0.03941091150045395,
-0.050811465829610825,
-0.004387292545288801,
0.06157154217362404,
-0.016044041141867638,
-0.04109751060605049,
-0.003271788824349642,
0.024850649759173393,
0.03418032079935074,
0.025341685861349106,
-0.04141775146126747,
0.06093106046319008,
0.0019227763405069709,
-0.02523493953049183,
-0.014485538005828857,
0.030999265611171722,
0.038599636405706406,
-0.032920707017183304,
-0.006239349488168955,
-0.08526932448148727,
-0.005057128611952066,
-0.024658506736159325,
-0.044065069407224655,
0.016513727605342865,
-0.0028901691548526287,
-0.031959984451532364,
-0.03761756420135498,
0.04620000720024109,
0.027006935328245163,
0.03849288821220398,
-0.0044860332272946835,
0.02092236839234829,
0.01765591651201248,
-0.00448336498811841,
-0.027348525822162628,
0.019481288269162178,
0.04267736151814461,
-0.0007385542849078774,
0.018189651891589165,
0.06528633087873459,
0.020975742489099503,
0.01383438240736723,
0.013386046513915062,
0.03055092878639698,
0.05606340989470482,
0.03610176220536232,
-0.008235514163970947,
0.01720758154988289,
-0.07399686425924301,
0.005972482264041901,
-0.010877496562898159,
-0.011400556191802025,
-0.01805088110268116,
0.013887756504118443,
-0.03723327815532684,
0.0218510664999485,
0.00423250999301672,
0.009537824429571629,
0.05614880472421646,
-0.035162389278411865,
-0.0031650420278310776,
-0.03701978176832199,
-0.011774170212447643,
0.019513310864567757,
0.017079485580325127,
0.015520981512963772,
-0.00027670766576193273,
-0.016599124297499657,
0.020580779761075974,
0.03546128049492836,
0.0421009287238121,
-0.02583272010087967,
-0.03381738066673279,
-0.004795599263161421,
-0.0569600835442543,
0.03804455325007439,
0.03311285004019737,
-0.027732813730835915,
-0.02559787780046463,
-0.03849288821220398,
0.005377369001507759,
0.0026286395732313395,
0.022865159437060356,
-0.02080494724214077,
-0.02176566794514656,
-0.06114455685019493,
0.012403976172208786,
-0.029803700745105743,
-0.04116155952215195,
-0.002879494335502386,
-0.010631979443132877,
0.06152884289622307,
-0.00454207556322217,
-0.003824203507974744,
-0.009692607447504997,
0.03766026347875595,
-0.00476357527077198,
-0.03125545755028725,
0.02843734249472618,
-0.004440666176378727,
0.0013730304781347513,
-0.0008292890270240605,
0.06114455685019493,
-0.04637080058455467,
-0.014101250097155571,
0.04692588374018669,
0.0190863236784935,
-0.053287994116544724,
-0.013012432493269444,
0.02711368165910244,
0.004275208339095116,
-0.0431257002055645,
0.0337960310280323,
0.020036371424794197,
0.025854069739580154,
0.028522739186882973,
-0.04602921009063721,
-0.029462112113833427,
0.05666119232773781,
0.027412572875618935,
0.012105084955692291,
-0.018584614619612694,
0.012147783301770687,
0.024146120995283127,
-0.07442385703325272,
-0.009489788673818111,
-0.050341781228780746,
-0.011133689433336258,
-0.0040670521557331085,
0.10162293165922165,
-0.026964236050844193,
0.04201553389430046,
-0.001545159611850977,
-0.01972680538892746,
0.009340343065559864,
-0.041994184255599976,
-0.026579948142170906,
0.02000434696674347,
-0.06857413053512573,
0.015008597634732723,
-0.06870222836732864,
0.01070136483758688,
-0.016503052785992622,
0.04269871115684509,
-0.01110166497528553,
0.04427856579422951,
0.019598709419369698,
0.04306165128946304,
0.041033461689949036,
-0.022181980311870575,
-0.07655879110097885,
0.011955639347434044,
0.02112518809735775,
0.0190863236784935,
-0.0244023147970438,
-0.02491469867527485,
-0.011293808929622173,
-0.009815366007387638,
0.03738272190093994,
0.07638799399137497,
0.04116155952215195,
-0.013855732046067715,
0.04372348263859749,
-0.026985585689544678,
-0.0018320416565984488,
-0.0005644236225634813,
0.04453475773334503,
0.03650739789009094,
-0.022331425920128822,
0.020175142213702202,
-0.025533828884363174,
-0.03193863481283188,
0.001553165609948337,
0.04233577474951744,
0.003242433536797762,
0.0059884944930672646,
-0.007819201797246933,
-0.02867218479514122,
0.0333690419793129,
-0.011635399423539639,
0.022352775558829308,
-0.09923180937767029,
0.0026619979180395603,
-0.023014605045318604,
0.010994918644428253,
0.0174103993922472,
0.006484867073595524,
-0.011806193739175797,
-0.06836064159870148,
-0.04263466224074364,
-0.028522739186882973,
0.04444935917854309,
0.026131611317396164,
-0.04871923103928566,
0.019737480208277702,
0.01008223369717598,
0.011550001800060272,
-0.020911693572998047,
-0.007813864387571812,
-0.0016105420654639602,
-0.021221259608864784,
-0.040030043572187424,
0.04052107781171799,
0.010060884058475494,
-0.04009408876299858,
0.009959474205970764,
-0.09248541295528412,
-0.05602071061730385,
-0.021669596433639526,
-0.021669596433639526,
-0.0244023147970438,
-0.01565975323319435,
0.010930870659649372,
-0.05042717978358269,
-0.03400952368974686,
0.003052957821637392,
0.053330689668655396,
-0.057130876928567886,
0.007760490756481886,
-0.04859113320708275,
-0.06229742243885994,
0.06720777601003647,
0.03983789682388306,
-0.0030929879285395145,
-0.0015585030196234584,
-0.0036560771986842155,
-0.04124695435166359,
0.027220429852604866,
0.013802358880639076,
-0.014250694774091244,
0.016236186027526855,
0.034521907567977905,
0.0025605882983654737,
0.03723327815532684,
-0.021093163639307022,
-0.03558937832713127,
-0.01789076067507267,
-0.018200326710939407,
-0.00016637486987747252,
0.07903531938791275,
-0.012852312065660954,
0.06925731152296066,
-0.019064974039793015,
-0.013332672417163849,
-0.004915689118206501,
0.02435961551964283,
-0.015862571075558662,
0.07890722155570984,
-0.013204576447606087,
-0.005278628319501877,
0.008347597904503345,
0.03450055792927742,
0.0003616047033574432,
-0.059564702212810516,
0.00008072725177044049,
-0.030444182455539703,
0.04128965362906456,
-0.004120425786823034,
-0.02991044707596302,
0.04291220381855965,
-0.011496628634631634,
0.05926581099629402,
-0.02132800593972206,
0.01204103697091341,
0.02307865396142006,
0.06806174665689468,
-0.009158873930573463,
-0.002320408122614026,
-0.017858736217021942,
-0.07305749505758286,
-0.0866783857345581,
0.03740407153964043,
-0.06870222836732864,
0.021392054855823517,
0.015350187197327614,
0.011090990155935287,
0.015446258708834648,
0.02284381166100502,
0.016321582719683647
] |
10,050
|
torch.nn.modules.module
|
float
|
Casts all floating point parameters and buffers to ``float`` datatype.
.. note::
This method modifies the module in-place.
Returns:
Module: self
|
def float(self: T) -> T:
r"""Casts all floating point parameters and buffers to ``float`` datatype.
.. note::
This method modifies the module in-place.
Returns:
Module: self
"""
return self._apply(lambda t: t.float() if t.is_floating_point() else t)
|
(self: ~T) -> ~T
|
[
0.022777335718274117,
-0.04054079204797745,
0.007708839140832424,
0.05722985044121742,
-0.00471394183114171,
-0.02078969217836857,
-0.05175039544701576,
0.011272274889051914,
-0.026143798604607582,
0.01951831579208374,
0.02336825802922249,
-0.07835976779460907,
-0.020431557670235634,
0.03889337554574013,
0.009195095859467983,
0.07062406837940216,
-0.04225983843207359,
0.04451608285307884,
0.02478288859128952,
0.03678038343787193,
-0.024693354964256287,
0.01293759886175394,
-0.015077450312674046,
-0.012095983140170574,
0.022078974172472954,
-0.012140749953687191,
0.046808142215013504,
-0.00878771860152483,
-0.003585818922147155,
-0.025194741785526276,
0.01707404851913452,
-0.019285527989268303,
-0.00019865257490891963,
0.0035679121501743793,
-0.010842513293027878,
-0.014701410196721554,
-0.04927926883101463,
-0.0022775097750127316,
-0.012042263522744179,
-0.007637212052941322,
-0.02401289902627468,
-0.013707587495446205,
-0.023278724402189255,
0.026967506855726242,
-0.005886831320822239,
0.02336825802922249,
0.08910379558801651,
0.054257333278656006,
0.027988189831376076,
0.0144238555803895,
0.018819954246282578,
0.03280509635806084,
0.00757901556789875,
0.008863821625709534,
-0.030011648312211037,
0.05175039544701576,
0.032267894595861435,
-0.028937244787812233,
-0.06661296635866165,
0.0052780029363930225,
0.03284090757369995,
0.021899906918406487,
-0.009526370093226433,
-0.06410602480173111,
-0.012042263522744179,
0.003612678963690996,
-0.029957927763462067,
0.013421080075204372,
-0.00855045486241579,
0.03459576517343521,
-0.06478647887706757,
0.005210852716118097,
0.016581613570451736,
0.04129287600517273,
0.020145049318671227,
0.026734719052910805,
-0.014370135962963104,
0.03312741592526436,
-0.02544543705880642,
-0.0146924564614892,
-0.007395471446216106,
0.06815294176340103,
-0.014880476519465446,
0.020861318334937096,
-0.03203510493040085,
-0.05475872382521629,
-0.09905992448329926,
0.019106460735201836,
-0.01757543720304966,
0.026287052780389786,
-0.03289462998509407,
-0.00044878694461658597,
-0.0630316212773323,
-0.0012803298886865377,
0.0805801972746849,
-0.0275226142257452,
0.01434327568858862,
-0.02336825802922249,
-0.025642409920692444,
0.04963740333914757,
-0.021183639764785767,
0.08022206276655197,
-0.019339248538017273,
-0.005166086368262768,
0.03771153464913368,
-0.0297788605093956,
0.0055107902735471725,
-0.03241114690899849,
0.024818701669573784,
0.05826843902468681,
-0.04046916589140892,
-0.018220078200101852,
-0.02374429814517498,
0.016626380383968353,
-0.02039574459195137,
-0.03724595904350281,
-0.027558429166674614,
0.035186685621738434,
0.056728459894657135,
0.04451608285307884,
0.020968759432435036,
0.0627451166510582,
-0.019178086891770363,
0.04949415102601051,
0.019661568105220795,
0.0006099473685026169,
0.035562727600336075,
-0.040719859302043915,
0.029904207214713097,
-0.04029009863734245,
0.02698541432619095,
0.012498884461820126,
0.00014842984091956168,
0.03036978282034397,
0.011603549122810364,
0.025803571566939354,
-0.036708757281303406,
0.006119618657976389,
-0.010162058286368847,
0.029743047431111336,
-0.001064330106601119,
0.018229031935334206,
0.0667204037308693,
0.016626380383968353,
-0.014576062560081482,
0.041973330080509186,
-0.010618679225444794,
0.008626557886600494,
-0.1026412695646286,
0.0019697381649166346,
-0.011352854780852795,
0.0006424032617360353,
0.07327426224946976,
-0.007659595459699631,
0.012794344685971737,
-0.011630408465862274,
0.035401567816734314,
-0.02462172694504261,
-0.00014787026157137007,
0.017029281705617905,
-0.06614738702774048,
0.006025608163326979,
0.03631481155753136,
0.010941000655293465,
0.007628258783370256,
-0.031050236895680428,
-0.053433626890182495,
-0.05791030451655388,
-0.04193751886487007,
0.031157677993178368,
0.06625483185052872,
-0.020807597786188126,
0.038248736411333084,
0.03405856341123581,
-0.025087302550673485,
0.03964545950293541,
-0.009347302839159966,
0.00853702425956726,
0.017503809183835983,
0.02068225108087063,
0.07585282623767853,
-0.04150775447487831,
-0.04157938435673714,
-0.030638381838798523,
0.07305938005447388,
0.04738115891814232,
-0.03491808474063873,
0.013949328102171421,
-0.048455558717250824,
-0.0097054373472929,
0.06929897516965866,
0.013430032879114151,
-0.004857195541262627,
-0.022526642307639122,
0.0009619261254556477,
-0.020198769867420197,
-0.014316415414214134,
-0.054042454808950424,
0.0749933049082756,
0.015363957732915878,
-0.051571328192949295,
-0.04415794834494591,
0.05866238474845886,
0.026681000366806984,
-0.07008686661720276,
-0.02823888324201107,
0.04125706106424332,
0.03527621924877167,
-0.03789060190320015,
-0.006598623003810644,
-0.02095085196197033,
-0.006034561432898045,
-0.03903663158416748,
0.030960703268647194,
-0.016420453786849976,
-0.05092668533325195,
-0.03398693725466728,
-0.029134219512343407,
0.058089371770620346,
0.05640614032745361,
0.06371207535266876,
-0.032536495476961136,
-0.03459576517343521,
-0.01066344603896141,
0.035562727600336075,
0.03393321856856346,
-0.020216677337884903,
-0.01693974807858467,
-0.012230283580720425,
-0.03946639224886894,
0.05945027992129326,
0.008899635635316372,
-0.06869014352560043,
0.0025293228682130575,
0.06310325115919113,
-0.06424927711486816,
0.06715016812086105,
0.052072715014219284,
-0.08194111287593842,
-0.0388217493891716,
0.013358406722545624,
-0.0019753340166062117,
-0.0023077274672687054,
0.025534970685839653,
-0.021577587351202965,
-0.026233332231640816,
0.017700783908367157,
0.020932944491505623,
-0.004062585067003965,
0.013036085292696953,
-0.005940551403909922,
-0.01543558482080698,
0.021398520097136497,
0.019930168986320496,
0.005148179363459349,
-0.024102432653307915,
0.00021194270811975002,
0.018819954246282578,
-0.0055376505479216576,
0.017906710505485535,
-0.008237087167799473,
-0.025320090353488922,
0.0683320090174675,
0.056334514170885086,
0.002154401270672679,
0.02204316109418869,
-0.06596832722425461,
-0.03310950845479965,
0.05232340842485428,
0.05278898403048515,
0.04483840614557266,
-0.019321341067552567,
0.017960431054234505,
-0.03310950845479965,
-0.010376938618719578,
-0.04616349935531616,
-0.01346584688872099,
0.007310414686799049,
0.015757905319333076,
0.0021398519165813923,
0.02863283082842827,
-0.10643748939037323,
-0.04294029250741005,
0.03092489019036293,
-0.04938670992851257,
0.07280869036912918,
-0.01973319612443447,
0.027164481580257416,
0.029814673587679863,
-0.002446504309773445,
0.03310950845479965,
0.038463614881038666,
0.01667114719748497,
-0.002426359336823225,
0.03267974779009819,
0.018766233697533607,
-0.04412213712930679,
-0.02105829305946827,
0.1082281619310379,
-0.029295379295945168,
0.00836243387311697,
-0.053433626890182495,
-0.020771784707903862,
0.05801774561405182,
0.0765690952539444,
-0.01461187656968832,
0.02385173924267292,
0.005971888080239296,
-0.05554661899805069,
0.06704272329807281,
0.019178086891770363,
0.0032455914188176394,
-0.08072345703840256,
-0.028543297201395035,
0.07814488559961319,
0.02456800825893879,
0.03212463855743408,
0.038571055978536606,
0.0034224202390760183,
0.0025293228682130575,
-0.01568627916276455,
-0.01667114719748497,
0.048777882009744644,
0.04003940522670746,
-0.020753877237439156,
-0.009338350035250187,
-0.00340003683231771,
-0.023672671988606453,
-0.01898111402988434,
0.04430120438337326,
0.018999019637703896,
-0.015462445095181465,
0.041543569415807724,
0.004445340950042009,
-0.05214434117078781,
-0.013689680956304073,
0.04039753973484039,
0.030745822936296463,
0.005152656231075525,
-0.017530670389533043,
-0.002551706274971366,
0.0414719432592392,
0.011961682699620724,
-0.000842174980789423,
-0.07434866577386856,
0.04576955363154411,
-0.024550100788474083,
-0.03387949615716934,
0.10944581776857376,
-0.004978065844625235,
-0.01381502766162157,
-0.06901246309280396,
0.010726120322942734,
0.010072524659335613,
0.021953627467155457,
-0.023045936599373817,
-0.022061068564653397,
0.017503809183835983,
0.0030687625985592604,
-0.05160714313387871,
0.03461367264389992,
0.021595492959022522,
-0.02417406067252159,
0.00818784348666668,
0.0148894302546978,
0.009042888879776001,
-0.020413650199770927,
0.009101086296141148,
0.029026778414845467,
0.06113351136445999,
0.01656370796263218,
-0.04591280594468117,
-0.004821381997317076,
-0.03015490062534809,
-0.05028204619884491,
-0.003762647742405534,
-0.02172083966434002,
0.05432896316051483,
-0.014361182227730751,
-0.02336825802922249,
0.022687802091240883,
-0.008371387608349323,
-0.036046210676431656,
0.007064197678118944,
0.03239323943853378,
0.029241658747196198,
0.001140433712862432,
-0.0754946917295456,
0.036440156400203705,
0.049601588398218155,
0.008013253100216389,
-0.029098404571413994,
-0.04616349935531616,
-0.005139226093888283,
-0.07384727895259857,
0.04311935976147652,
-0.005846541374921799,
0.029546072706580162,
-0.04501747339963913,
-0.011317041702568531,
0.012919692322611809,
-0.0356343537569046,
-0.010887280106544495,
0.04136450216174126,
-0.01031426526606083,
0.006124095059931278,
0.015480351634323597,
-0.026842160150408745,
0.0019798106513917446,
0.036046210676431656,
0.06507299095392227,
0.027379361912608147,
-0.04003940522670746,
0.026143798604607582,
0.02544543705880642,
0.03414809703826904,
0.006983617320656776,
-0.05200108885765076,
0.02972513996064663,
0.006477752700448036,
0.02823888324201107,
0.01653684675693512,
-0.024209873750805855,
0.00042164709884673357,
0.014271648600697517,
-0.007167160976678133,
0.022616175934672356,
0.07635421305894852,
-0.010958907194435596,
0.03636853024363518,
-0.03036978282034397,
-0.015936972573399544,
-0.01683230884373188,
0.000827066192869097,
0.01957203447818756,
0.013797121122479439,
-0.002341302577406168,
-0.007382041774690151,
-0.008425107225775719,
0.018408099189400673,
0.023063844069838524,
-0.019285527989268303,
0.025678222998976707,
-0.07492168247699738,
-0.028811898082494736,
-0.0667204037308693,
-0.01030531246215105,
0.01795147731900215,
-0.0742054134607315,
-0.04326261579990387,
0.0021622353233397007,
0.0008634392288513482,
0.0630316212773323,
-0.028937244787812233,
0.013286779634654522,
-0.05121319368481636,
0.02121945284307003,
-0.07979230582714081,
0.038678497076034546,
-0.00024887529434636235,
-0.05576149746775627,
0.0073014614172279835,
-0.05139226093888283,
-0.06399858742952347,
-0.013152479194104671,
-0.02983258105814457,
0.09870178997516632,
-0.01975110173225403,
-0.029295379295945168,
-0.023565230891108513,
0.054508026689291,
-0.020771784707903862,
-0.044945843517780304,
-0.02746889553964138,
-0.023672671988606453,
0.05017460510134697,
-0.029098404571413994,
0.019894355908036232,
-0.015757905319333076,
-0.03464948758482933,
-0.0648939236998558,
-0.04584117978811264,
0.005792820826172829,
0.054866161197423935,
-0.016554754227399826,
0.03674457222223282,
0.061384204775094986,
-0.015077450312674046,
0.02823888324201107,
0.029599793255329132,
-0.0430835485458374,
0.02150595933198929,
0.038248736411333084,
0.00606142170727253,
-0.06281673908233643,
0.040325913578271866,
0.009642763994634151,
-0.013859794475138187,
-0.0065941461361944675,
0.026573559269309044,
0.000395906186895445,
0.013027132488787174,
-0.06937059760093689,
-0.004884055349975824,
0.04698720946907997,
-0.0047273715026676655,
-0.012570511549711227,
0.008944402448832989,
-0.046414196491241455,
-0.003818606026470661,
-0.03993196412920952,
0.011263321153819561,
-0.04917182773351669,
-0.0010827964870259166,
0.004127496853470802,
-0.014710363000631332,
-0.029134219512343407,
0.009136899374425411,
-0.048777882009744644,
-0.05035367235541344,
-0.022455016151070595,
0.0648939236998558,
-0.044337015599012375,
-0.008460921235382557,
-0.019643662497401237,
-0.001820888719521463,
-0.018229031935334206,
0.004290895536541939,
0.07148358970880508,
-0.010556005872786045,
0.025463342666625977,
-0.014128395356237888,
0.002168950391933322,
-0.03432716429233551,
0.002286463277414441,
-0.010726120322942734,
0.00785656925290823,
0.020932944491505623,
-0.03060256876051426,
-0.06715016812086105,
-0.017217302694916725,
-0.024424754083156586,
0.016635334119200706,
0.007664072327315807,
0.022472921758890152,
-0.06518042832612991,
-0.03185603767633438,
-0.021452240645885468,
-0.009011552669107914,
0.0059763649478554726,
-0.05540336295962334,
-0.06625483185052872,
0.009248816408216953,
0.04297610744833946,
0.01864088699221611,
0.0030911460053175688,
0.0013933659065514803,
0.06478647887706757,
-0.011827382259070873,
-0.03434507176280022,
-0.023225003853440285,
0.0037648859433829784,
0.06919153034687042,
0.060130733996629715,
-0.04634256660938263,
-0.050425298511981964,
0.03477483242750168,
0.09003494679927826,
0.01381502766162157,
-0.029796767979860306,
0.021040385589003563,
0.0377473458647728,
0.047237902879714966,
-0.0021454477682709694,
0.04978065565228462,
0.008541501127183437,
-0.030781636014580727,
-0.010627632960677147,
-0.045375604182481766,
-0.04956577718257904,
-0.0284537635743618,
-0.03327066823840141,
-0.03652969002723694,
-0.010206825099885464,
-0.04662907496094704,
-0.04157938435673714,
-0.006858270149677992,
0.018085777759552002,
-0.037532467395067215,
0.01025159191340208,
-0.012892832048237324,
-0.03839198872447014,
0.020467370748519897,
0.00855045486241579,
0.007726745679974556,
-0.10729701071977615,
-0.061276763677597046,
0.025964731350541115,
0.060130733996629715,
0.032984163612127304,
-0.03113977052271366,
-0.021022478118538857,
0.0007296984549611807,
-0.035509008914232254,
0.026555651798844337,
-0.01858716644346714,
-0.06937059760093689,
0.026304958388209343,
-0.010869373567402363,
-0.06442834436893463,
0.021183639764785767,
0.006540426053106785,
-0.014316415414214134,
-0.020216677337884903,
-0.006844840478152037,
0.017888804897665977,
-0.0489211343228817,
0.03640434518456459,
-0.013430032879114151,
0.05325455963611603,
-0.005036262329667807,
0.016599521040916443,
-0.05149970203638077,
0.004543827846646309,
0.034953899681568146,
-0.0285791102796793,
0.000165217395988293,
-0.08416154235601425,
0.012230283580720425,
-0.02576775662600994,
-0.019804822281003,
-0.016760680824518204,
-0.004062585067003965,
-0.012901785783469677,
-0.021362707018852234,
-0.022616175934672356,
-0.0187483262270689,
0.04347749426960945,
0.05812518298625946,
0.010627632960677147,
0.06643389910459518,
0.01996598206460476,
0.0027419652324169874,
-0.05948609486222267,
0.02687797322869301,
-0.0691199079155922,
-0.05490197613835335,
-0.0462709404528141,
0.07309519499540329,
-0.0073014614172279835,
-0.07216404378414154,
0.0648939236998558,
0.006231535226106644,
-0.009508463554084301,
0.04487421736121178,
-0.025105208158493042,
-0.03081744909286499,
-0.004257320426404476,
-0.004051393363624811,
0.026555651798844337,
-0.047560226172208786,
0.0034537569154053926,
0.02949235402047634,
0.03301997482776642,
0.025248462334275246,
-0.029205845668911934,
-0.03486436605453491,
0.018085777759552002,
-0.037926413118839264,
-0.03212463855743408,
-0.05350525304675102,
0.02610798552632332,
-0.05526011064648628,
0.009589043445885181,
-0.010752979665994644,
0.00865341816097498,
0.03821292147040367,
0.013125618919730186,
-0.0374966524541378,
0.0279165618121624,
0.04337005317211151,
0.03307369351387024,
-0.030011648312211037,
0.016635334119200706,
-0.0414719432592392,
-0.019052740186452866,
-0.05379176139831543,
0.054866161197423935,
-0.006253918632864952,
-0.037639908492565155,
0.03746084123849869,
-0.021523866802453995,
0.0382845476269722,
-0.014003047719597816,
0.0024576960131525993,
-0.01653684675693512,
-0.04995972290635109,
-0.013653866946697235,
-0.0002713986032176763,
0.020324116572737694,
-0.008980215527117252,
-0.00853702425956726,
-0.043620746582746506,
0.03491808474063873,
0.05844750627875328,
0.028758177533745766,
0.0046065011993050575,
0.027827028185129166,
-0.04487421736121178,
-0.035562727600336075,
0.011549828574061394,
0.0137613071128726,
-0.021738747134804726,
0.04075567424297333,
-0.0014191068476065993,
0.049816470593214035,
0.0013284541200846434,
-0.012194470502436161,
-0.011737849563360214,
0.016581613570451736,
-0.014952103607356548,
-0.014513389207422733,
0.06679203361272812,
0.06317487359046936,
0.06464322656393051,
-0.006124095059931278,
-0.022848963737487793,
0.03334229439496994,
-0.04415794834494591,
0.029581885784864426,
0.04294029250741005,
0.030513035133481026,
0.016017552465200424,
-0.02675262652337551,
0.005166086368262768,
-0.024657541885972023,
0.02582147717475891,
0.019804822281003,
-0.03746084123849869,
-0.015838485211133957,
-0.05232340842485428,
-0.024908235296607018,
-0.05286061018705368,
-0.016465220600366592,
0.0060972352512180805,
0.0052780029363930225,
-0.0013250965857878327,
-0.01212284341454506,
0.0055376505479216576,
0.004279703833162785,
-0.0006983617204241455,
0.016715914011001587,
0.052287597209215164,
0.023547325283288956,
0.12957295775413513,
-0.028167257085442543,
-0.04512491077184677,
0.029546072706580162,
0.017145676538348198,
-0.03986033797264099,
-0.017485903576016426,
-0.04007522016763687,
0.03187394514679909,
0.03996777907013893,
-0.023869646713137627,
0.02949235402047634,
-0.014880476519465446,
0.054973602294921875
] |
10,051
|
torch.nn.modules.container
|
forward
| null |
def forward(self, input):
for module in self:
input = module(input)
return input
|
(self, input)
|
[
-0.048873696476221085,
-0.018642203882336617,
-0.09562820941209793,
0.006986686959862709,
-0.08125749230384827,
0.01596011035144329,
-0.05208558589220047,
0.03145664930343628,
0.04152277484536171,
0.012400542385876179,
0.021738199517130852,
-0.05980074405670166,
0.0012448141351342201,
0.07211850583553314,
0.025595778599381447,
0.02822820283472538,
0.028691774234175682,
0.06708544492721558,
-0.030529504641890526,
-0.0465889535844326,
-0.019585901871323586,
0.0019194764317944646,
0.018791208043694496,
0.006018153391778469,
-0.027251390740275383,
0.02476797252893448,
0.0280791986733675,
-0.007855883799493313,
-0.009701892733573914,
-0.026721594855189323,
0.00204261252656579,
0.008708524517714977,
-0.017268044874072075,
-0.029354019090533257,
0.03536389395594597,
-0.02432095631957054,
-0.0652642697095871,
0.026423584669828415,
-0.009470107033848763,
0.04509890079498291,
0.07847605645656586,
-0.07953565567731857,
0.012102531269192696,
0.04794655367732048,
-0.0200660303235054,
0.04794655367732048,
-0.050396863371133804,
0.0360923632979393,
0.05612528324127197,
0.008799583651125431,
0.01191213633865118,
-0.02605934999883175,
0.03092685155570507,
0.018344193696975708,
0.04764854535460472,
0.04433731734752655,
0.0037478941958397627,
-0.013054508715867996,
0.016688579693436623,
-0.016663745045661926,
0.02644014172255993,
-0.024453405290842056,
0.03764864057302475,
0.015281308442354202,
0.028029529377818108,
0.0014993646182119846,
0.00035259383730590343,
-0.0014300358016043901,
-0.005157234612852335,
0.01198663841933012,
-0.06662186980247498,
-0.02538054808974266,
0.006833543069660664,
0.029966596513986588,
0.03708573430776596,
0.028940116986632347,
0.07244963198900223,
0.009246598929166794,
-0.005049619823694229,
-0.02317858301103115,
0.032234787940979004,
0.00528140552341938,
-0.12013128399848938,
0.03187055140733719,
-0.056158397346735,
-0.056290846318006516,
-0.0062499395571649075,
-0.03605925291776657,
-0.04814522713422775,
-0.006490003317594528,
-0.04211879521608353,
0.007619959302246571,
-0.04066185653209686,
0.09231698513031006,
0.02245011366903782,
-0.004122476559132338,
-0.03794665262103081,
-0.05026441439986229,
-0.07013177126646042,
0.03870823234319687,
-0.0042549255304038525,
0.10595923662185669,
-0.06443645805120468,
0.028211647644639015,
0.04735053330659866,
-0.011233334429562092,
-0.023609042167663574,
-0.036688387393951416,
0.025976568460464478,
0.028410321101546288,
-0.06013186648488045,
-0.015529650263488293,
-0.014337609522044659,
-0.004888197407126427,
-0.007073606830090284,
-0.07476748526096344,
-0.008153893984854221,
0.024171950295567513,
0.02640702947974205,
0.057648446410894394,
0.0059022605419158936,
0.03148975968360901,
-0.01270683016628027,
-0.03332749009132385,
0.05182068794965744,
0.05539681389927864,
0.008381540887057781,
-0.040363848209381104,
0.06162191927433014,
-0.08874086290597916,
-0.022764679044485092,
0.015620709396898746,
-0.047085635364055634,
0.03365861251950264,
0.0011340950150042772,
0.03150631859898567,
-0.05364186316728592,
-0.022400444373488426,
-0.022632230073213577,
-0.01596011035144329,
0.002932504750788212,
-0.013327685184776783,
0.061787478625774384,
0.04827767610549927,
-0.030744735151529312,
-0.019999805837869644,
0.04556247219443321,
0.032996367663145065,
-0.04735053330659866,
0.004445320926606655,
-0.0076572103425860405,
0.017069371417164803,
0.028857335448265076,
0.0427810437977314,
-0.039271142333745956,
0.059668295085430145,
-0.04907236993312836,
-0.005190346855670214,
-0.023410368710756302,
-0.011200222186744213,
-0.032764583826065063,
-0.010215132497251034,
-0.01286411378532648,
0.019635571166872978,
0.0016980381915345788,
-0.035463232547044754,
0.05105910822749138,
-0.026191798970103264,
-0.008249091915786266,
0.037747979164123535,
0.024072613567113876,
-0.020695162937045097,
0.015562762506306171,
0.04529757425189018,
-0.023377256467938423,
-0.015446869656443596,
-0.02990037202835083,
-0.039304252713918686,
0.0055131916888058186,
0.05029752478003502,
0.004660550970584154,
0.0007693427032791078,
-0.04999951645731926,
-0.04516512528061867,
0.022781236097216606,
0.02059582620859146,
-0.0315394289791584,
0.04539690911769867,
0.03301292657852173,
-0.007814493961632252,
0.0317712165415287,
-0.0124253761023283,
0.04387374594807625,
-0.023526262491941452,
-0.015173694118857384,
-0.013311129063367844,
-0.08801238983869553,
0.06559538841247559,
0.003896899288520217,
0.02211899124085903,
-0.03728440776467323,
0.0044618770480155945,
0.03092685155570507,
0.028029529377818108,
-0.07655555009841919,
0.01807929389178753,
0.00718949967995286,
-0.0021833397913724184,
-0.06052921339869499,
-0.04311216622591019,
0.02077794447541237,
-0.011200222186744213,
0.06052921339869499,
-0.03456920012831688,
0.005339351948350668,
0.01812896318733692,
0.010869099758565426,
-0.04976772889494896,
0.052714720368385315,
-0.011076051741838455,
-0.015968387946486473,
0.03226789832115173,
-0.04281415417790413,
-0.017880620434880257,
-0.02412228286266327,
-0.02059582620859146,
-0.03192022070288658,
-0.0005297961761243641,
-0.03685394674539566,
-0.02913879044353962,
0.09787984192371368,
0.018493197858333588,
-0.046059153974056244,
0.012739942409098148,
0.028360651805996895,
0.00890719797462225,
-0.007876579649746418,
-0.03741685673594475,
-0.0427810437977314,
0.02347659319639206,
0.0029407828114926815,
0.0423174686729908,
0.006092655938118696,
-0.012640605680644512,
0.0003833778901025653,
0.03283080831170082,
0.003298809053376317,
-0.03738374263048172,
-0.03350960835814476,
0.03480098769068718,
0.020281260833144188,
0.003114622086286545,
-0.03329437971115112,
0.026423584669828415,
-0.031473204493522644,
-0.03860889747738838,
-0.019321003928780556,
-0.038012877106666565,
-0.003768589347600937,
-0.0096273897215724,
0.02966858632862568,
-0.02986725978553295,
0.04400619491934776,
0.006345137022435665,
-0.019585901871323586,
0.003348477417603135,
-0.02754940092563629,
-0.013046231120824814,
0.026158686727285385,
-0.002466863486915827,
0.013278016820549965,
-0.01509919110685587,
-0.014006487093865871,
0.041887011379003525,
-0.0013493247097358108,
-0.0031291088089346886,
0.015587597154080868,
0.05241670832037926,
0.00041830100235529244,
-0.016920365393161774,
0.057847119867801666,
-0.0518869124352932,
-0.10258178412914276,
-0.04953594505786896,
-0.006788013502955437,
0.007706878706812859,
0.035695016384124756,
0.027450064197182655,
0.05344318971037865,
-0.03526455909013748,
0.08655545115470886,
0.01048830896615982,
0.030065933242440224,
-0.02875799871981144,
-0.04642339050769806,
0.0009219695348292589,
-0.1082770973443985,
0.009503219276666641,
0.07549595832824707,
-0.0032470710575580597,
-0.0010751137742772698,
-0.04632405564188957,
-0.03847644850611687,
0.0067590405233204365,
-0.03513211011886597,
-0.05072798579931259,
0.021258071064949036,
0.03403940424323082,
-0.09900566190481186,
-0.012855835258960724,
0.02245011366903782,
0.02670503966510296,
-0.06821125745773315,
-0.020049475133419037,
-0.017847508192062378,
-0.05612528324127197,
0.047251198440790176,
0.0860256552696228,
0.0023571790661662817,
0.02112562209367752,
-0.056059058755636215,
0.01898988150060177,
-0.004975117277354002,
0.040827419608831406,
-0.011614126153290272,
0.0595027357339859,
0.03950292989611626,
0.018294524401426315,
-0.026688482612371445,
-0.047251198440790176,
-0.018857432529330254,
0.028360651805996895,
0.0185097549110651,
0.009577721357345581,
-0.03192022070288658,
0.04423798248171806,
-0.008559519425034523,
-0.007454398088157177,
0.04814522713422775,
-0.033377159386873245,
0.00024653112632222474,
0.021870648488402367,
-0.03718506917357445,
-0.0038244661409407854,
-0.05205247551202774,
0.005542164668440819,
-0.005827757995575666,
0.070794016122818,
0.03692017123103142,
-0.013120733201503754,
0.027714962139725685,
-0.01464389730244875,
0.035496342927217484,
0.03963537886738777,
0.023642154410481453,
0.013898871839046478,
-0.019585901871323586,
-0.01559587474912405,
-0.014147213660180569,
-0.06986687332391739,
0.08840973675251007,
-0.0014610785292461514,
-0.030562616884708405,
0.02761562541127205,
-0.01846008561551571,
-0.045992929488420486,
0.005889843683689833,
0.005182068794965744,
0.04665517807006836,
0.03781420364975929,
-0.007023938465863466,
0.02309580333530903,
-0.016051169484853745,
-0.012814445421099663,
-0.06205237656831741,
0.018559422343969345,
0.02576133981347084,
0.021489858627319336,
-0.020380597561597824,
0.030065933242440224,
0.03900624439120293,
0.004573631100356579,
-0.027913635596632957,
-0.03254935145378113,
0.05920472368597984,
-0.008865808136761189,
0.052681609988212585,
-0.005716003943234682,
0.06165502965450287,
0.017963401973247528,
0.0017777145840227604,
-0.02432095631957054,
-0.03582746535539627,
0.003623723052442074,
-0.03499966114759445,
-0.03081095963716507,
0.012946894392371178,
0.031704992055892944,
-0.05178757756948471,
-0.04983395338058472,
0.03163876757025719,
-0.00766548840329051,
0.008232535794377327,
0.039105579257011414,
-0.017532942816615105,
-0.011357505805790424,
0.035430118441581726,
0.0860256552696228,
0.022549450397491455,
-0.0068087088875472546,
-0.029354019090533257,
0.0363241508603096,
-0.06013186648488045,
-0.05225114896893501,
0.007930386811494827,
-0.010455196723341942,
0.042416807264089584,
-0.010289635509252548,
-0.0015769714955240488,
0.04976772889494896,
0.048310790210962296,
0.015405479818582535,
0.005132400430738926,
-0.0033691725693643093,
-0.011514788493514061,
-0.01819518767297268,
-0.013998208567500114,
0.04211879521608353,
-0.05390676110982895,
0.08787994086742401,
-0.04741675779223442,
-0.0004043317458126694,
-0.035628791898489,
-0.03688706085085869,
0.015869051218032837,
-0.007007382344454527,
0.009701892733573914,
0.02162230759859085,
0.011730019003152847,
0.02971825562417507,
0.05095976963639259,
0.002858001971617341,
0.03552945703268051,
-0.024950088933110237,
0.013004840351641178,
0.005115844309329987,
-0.015513094142079353,
0.053741201758384705,
-0.07456881552934647,
-0.0031684294808655977,
-0.05731732398271561,
-0.028244759887456894,
0.04771476984024048,
-0.013931984081864357,
-0.016051169484853745,
-0.015463425777852535,
0.012152199633419514,
-0.029238127171993256,
0.02735072746872902,
0.04225124418735504,
-0.0024296122137457132,
-0.01653129607439041,
0.05490012839436531,
0.0029635473620146513,
-0.0015904232859611511,
0.03165532276034355,
0.010480030439794064,
-0.025512997061014175,
-0.029966596513986588,
0.02640702947974205,
0.04870813712477684,
-0.004830250982195139,
-0.004826112184673548,
-0.06165502965450287,
-0.005268988665193319,
0.010190298780798912,
-0.025363992899656296,
-0.019966693595051765,
0.0002889562165364623,
-0.06129079684615135,
-0.03397317975759506,
-0.07231717556715012,
0.03293014317750931,
0.02427128702402115,
-0.02526465617120266,
0.011340949684381485,
0.07225095480680466,
-0.019619014114141464,
0.042185019701719284,
-0.017996514216065407,
-0.03870823234319687,
-0.0036630439572036266,
0.025976568460464478,
-0.00884925201535225,
-0.017119038850069046,
-0.02682093158364296,
-0.023989833891391754,
0.005604250356554985,
0.015181971713900566,
0.016539575532078743,
-0.022168658673763275,
0.05589349567890167,
-0.04248303174972534,
-0.013236626982688904,
0.022251440212130547,
0.09721759706735611,
0.0058774263598024845,
-0.02153952606022358,
-0.03476787358522415,
0.0487743616104126,
-0.03382417559623718,
0.02233421988785267,
0.0014776346506550908,
-0.009569443762302399,
-0.0048592244274914265,
-0.017681946977972984,
-0.01270683016628027,
0.06569472700357437,
-0.040595632046461105,
-0.006245800293982029,
0.0798005536198616,
-0.008600910194218159,
-0.06301263719797134,
-0.029585804790258408,
0.0056953090243041515,
0.02620835416018963,
-0.031555984169244766,
0.013609139248728752,
0.007495788391679525,
-0.00550905242562294,
0.008807861246168613,
0.012855835258960724,
-0.0013658808311447501,
0.020347485318779945,
-0.0024213341530412436,
-0.003783075837418437,
0.03066195361316204,
-0.028410321101546288,
-0.04453599080443382,
0.018344193696975708,
-0.03923802822828293,
0.0062996079213917255,
0.002324066823348403,
0.012475044466555119,
0.012590937316417694,
-0.03536389395594597,
-0.083707794547081,
0.0037747977767139673,
-0.050860434770584106,
-0.02162230759859085,
-0.12542924284934998,
-0.058575589209795,
-0.012739942409098148,
0.062217939645051956,
0.0633106455206871,
-0.03148975968360901,
0.005144817754626274,
0.04529757425189018,
-0.02408917061984539,
0.03460231423377991,
0.0213905218988657,
-0.003195333294570446,
-0.02986725978553295,
0.0036920171696692705,
-0.006618313491344452,
-0.00019699208496604115,
-0.0006720754317939281,
-0.007686183787882328,
-0.031108969822525978,
0.017383936792612076,
0.07033044099807739,
-0.0031767075415700674,
0.0030339108780026436,
0.003011146327480674,
0.056323956698179245,
0.02367526665329933,
0.007603403180837631,
-0.004482572432607412,
0.03400629386305809,
-0.047814104706048965,
0.01778128370642662,
-0.01937067322432995,
-0.017996514216065407,
-0.010670426301658154,
0.011009827256202698,
-0.060429878532886505,
-0.014370721764862537,
0.036423489451408386,
0.006038848776370287,
0.009966790676116943,
-0.03134075552225113,
-0.03450297564268112,
-0.022052766755223274,
0.04152277484536171,
0.0243871808052063,
-0.028062641620635986,
-0.07814493775367737,
-0.019966693595051765,
0.03314537554979324,
0.008472600020468235,
-0.0017342546489089727,
0.005451106000691652,
0.014494892209768295,
-0.004660550970584154,
0.0011289211688563228,
-0.016622355207800865,
-0.07364167273044586,
-0.02746662124991417,
-0.012218424119055271,
0.018228299915790558,
0.0327480249106884,
-0.02165541984140873,
-0.009602556005120277,
-0.010082683525979519,
-0.04334395006299019,
-0.0038203271105885506,
0.001555241527967155,
0.011440286412835121,
0.05496635288000107,
0.019238224253058434,
0.03923802822828293,
-0.007367478217929602,
-0.06026431545615196,
0.017946844920516014,
0.0028166116680949926,
0.04665517807006836,
-0.016009777784347534,
-0.027234835550189018,
0.05387365072965622,
0.0370195098221302,
0.04052940756082535,
-0.034171853214502335,
0.04251614212989807,
0.016092559322714806,
0.0029200876597315073,
-0.009072760120034218,
0.030148714780807495,
-0.0038203271105885506,
-0.04403930902481079,
-0.043178390711545944,
-0.03271491453051567,
-0.019503122195601463,
0.0049792565405368805,
-0.07966810464859009,
0.0065065594390034676,
-0.04615849256515503,
-0.007466814946383238,
-0.0367877222597599,
0.020380597561597824,
-0.023989833891391754,
-0.035496342927217484,
0.032118894159793854,
-0.02347659319639206,
0.08542963117361069,
0.046522729098796844,
-0.032383792102336884,
0.02408917061984539,
0.02541366033256054,
0.033211600035429,
-0.036986395716667175,
-0.00715224863961339,
0.04052940756082535,
0.09695269912481308,
-0.015628987923264503,
-0.035993028432130814,
0.02405605837702751,
0.033211600035429,
0.004693663213402033,
-0.0401320606470108,
-0.013766422867774963,
-0.06049610301852226,
-0.02461896650493145,
-0.026721594855189323,
-0.027450064197182655,
0.009147262200713158,
-0.05311206728219986,
0.04718497395515442,
0.02470174804329872,
0.0025310185737907887,
-0.020960060879588127,
-0.03996650129556656,
0.0006425848114304245,
0.006647286470979452,
0.04423798248171806,
0.009445272386074066,
-0.012028029188513756,
0.0010456230957061052,
0.02200309745967388,
-0.003644418204203248,
-0.03187055140733719,
0.007069468032568693,
0.017185263335704803,
0.04337706416845322,
-0.08059524744749069,
0.003451953176409006,
0.05407232418656349,
0.0011620334116742015,
-0.08158861100673676,
-0.00370029523037374,
0.027400396764278412,
0.04632405564188957,
-0.019403785467147827,
0.015711767598986626,
-0.016233285889029503,
0.012152199633419514,
0.001188937108963728,
-0.012532991357147694,
0.02837720885872841,
-0.03450297564268112,
-0.008932032622396946,
0.009470107033848763,
-0.057118650525808334,
-0.0011299558682367206,
0.0695357471704483,
0.08178728818893433,
-0.0325162410736084,
-0.01865875907242298,
0.07225095480680466,
0.01572832465171814,
0.055529262870550156,
0.026738151907920837,
-0.032168563455343246,
0.06374110281467438,
0.019635571166872978,
-0.010206854902207851,
-0.04311216622591019,
-0.042185019701719284,
0.00214194948785007,
0.03917180374264717,
0.07516483217477798,
-0.026357360184192657,
0.005409715697169304,
-0.036986395716667175,
0.05586038529872894,
0.0389731302857399,
-0.06039676442742348,
-0.002353040035814047,
0.025827564299106598,
-0.006945296656340361,
-0.049635279923677444,
-0.0059726242907345295,
-0.03172154724597931,
0.0012303274124860764,
0.015554484911262989,
0.029801035299897194,
-0.009776394814252853,
0.051158443093299866,
-0.0619199275970459,
-0.013874037191271782,
-0.018609091639518738,
0.04145655035972595,
0.027599070221185684,
-0.005641501396894455,
-0.02572822757065296,
0.07370789349079132,
0.03427119180560112,
0.015397201292216778,
-0.03486721217632294,
-0.023145470768213272,
-0.04400619491934776,
-0.005658057518303394,
-0.007301253732293844,
0.06788013875484467,
0.012036306783556938,
0.06340998411178589,
0.004817834123969078,
0.015223362483084202,
-0.018625646829605103
] |
10,052
|
torch.nn.modules.module
|
get_buffer
|
Return the buffer given by ``target`` if it exists, otherwise throw an error.
See the docstring for ``get_submodule`` for a more detailed
explanation of this method's functionality as well as how to
correctly specify ``target``.
Args:
target: The fully-qualified string name of the buffer
to look for. (See ``get_submodule`` for how to specify a
fully-qualified string.)
Returns:
torch.Tensor: The buffer referenced by ``target``
Raises:
AttributeError: If the target string references an invalid
path or resolves to something that is not a
buffer
|
def get_buffer(self, target: str) -> "Tensor":
"""Return the buffer given by ``target`` if it exists, otherwise throw an error.
See the docstring for ``get_submodule`` for a more detailed
explanation of this method's functionality as well as how to
correctly specify ``target``.
Args:
target: The fully-qualified string name of the buffer
to look for. (See ``get_submodule`` for how to specify a
fully-qualified string.)
Returns:
torch.Tensor: The buffer referenced by ``target``
Raises:
AttributeError: If the target string references an invalid
path or resolves to something that is not a
buffer
"""
module_path, _, buffer_name = target.rpartition(".")
mod: torch.nn.Module = self.get_submodule(module_path)
if not hasattr(mod, buffer_name):
raise AttributeError(mod._get_name() + " has no attribute `"
+ buffer_name + "`")
buffer: torch.Tensor = getattr(mod, buffer_name)
if buffer_name not in mod._buffers:
raise AttributeError("`" + buffer_name + "` is not a buffer")
return buffer
|
(self, target: str) -> torch.Tensor
|
[
0.03840159997344017,
-0.054511040449142456,
-0.07048308104276657,
-0.01675347238779068,
0.007719820830971003,
0.006740889512002468,
0.021175839006900787,
0.07858932763338089,
-0.013833850622177124,
-0.05653759837150574,
0.03980989009141922,
-0.04956485703587532,
-0.02071213349699974,
-0.02296195924282074,
-0.0017174240201711655,
0.00251387944445014,
0.0669795349240303,
-0.01787838339805603,
-0.015911933034658432,
0.03295736759901047,
-0.0013395907590165734,
0.00984942726790905,
0.043141692876815796,
0.007908737286925316,
-0.04911832883954048,
0.030364057049155235,
-0.005877883639186621,
-0.012030554935336113,
0.024078285321593285,
-0.04774438962340355,
-0.019990816712379456,
-0.0823676586151123,
0.05245013162493706,
0.054511040449142456,
-0.050492268055677414,
0.04922137409448624,
0.02048886939883232,
0.06972741335630417,
-0.028972944244742393,
-0.1039385050535202,
0.0012311784084886312,
-0.04489346593618393,
0.051660116761922836,
0.0005463554989546537,
0.031961262226104736,
0.0011775088496506214,
0.026894859969615936,
-0.020866701379418373,
-0.07529187202453613,
0.05849546194076538,
0.06375078111886978,
0.03956944867968559,
-0.060041144490242004,
-0.034863706678152084,
-0.027753572911024094,
-0.014392013661563396,
0.02375197410583496,
0.005955168046057224,
-0.02862945944070816,
0.046610888093709946,
-0.0018988269148394465,
-0.00019911385606974363,
0.03671852499246597,
0.008449725806713104,
-0.025091564282774925,
-0.05018312856554985,
-0.009042237885296345,
-0.043141692876815796,
-0.002417274285107851,
0.04211123660206795,
-0.03350694477558136,
-0.0004881241184193641,
0.03630634397268295,
0.031154071912169456,
-0.049255721271038055,
-0.06199900805950165,
0.06268597394227982,
0.005873590242117643,
-0.0078013986349105835,
-0.03374738246202469,
0.018204694613814354,
0.029316429048776627,
0.010390415787696838,
-0.02904164046049118,
0.0328371487557888,
-0.06900610029697418,
-0.019217975437641144,
0.004847429227083921,
-0.033214982599020004,
-0.07487969100475311,
-0.06694518774747849,
0.001279480871744454,
-0.007135896943509579,
0.03348976746201515,
0.02236086130142212,
-0.052106644958257675,
-0.007187419570982456,
0.0515914186835289,
-0.03654678538441658,
0.028818374499678612,
-0.055575840175151825,
0.07742147892713547,
-0.015276486985385418,
0.0829172357916832,
0.010768248699605465,
0.028543587774038315,
-0.00700279651209712,
0.026912035420536995,
0.043966054916381836,
-0.01178152859210968,
-0.03412521630525589,
0.06217075139284134,
0.010613680817186832,
0.01784403622150421,
0.027461610734462738,
-0.03589416295289993,
-0.01686510443687439,
0.01624683104455471,
-0.02479960396885872,
0.0013739392161369324,
0.03330085054039955,
0.03500110283493996,
-0.01909775473177433,
-0.05258752405643463,
0.06017853692173958,
0.014271793887019157,
0.04046250879764557,
-0.014838543720543385,
0.023923717439174652,
-0.04200819134712219,
-0.039329010993242264,
0.024885473772883415,
-0.04740090295672417,
0.07570405304431915,
0.02804553508758545,
0.07865802198648453,
0.00008137638360494748,
0.02926490642130375,
-0.022807391360402107,
-0.003743984503671527,
0.05062966048717499,
-0.009471593424677849,
0.009789316914975643,
-0.041321221739053726,
-0.004499651025980711,
-0.020798005163669586,
0.05897634103894234,
-0.02984882891178131,
0.027255520224571228,
-0.014134399592876434,
-0.01592910848557949,
-0.06385382264852524,
0.03391912579536438,
0.037233754992485046,
0.0014748378889635205,
0.039122920483350754,
-0.0009451199439354241,
0.040737297385931015,
0.022669997066259384,
-0.023099353536963463,
0.013979831710457802,
0.039329010993242264,
-0.042179934680461884,
-0.03333520144224167,
-0.0025117327459156513,
0.004050973802804947,
-0.026517027989029884,
0.018771445378661156,
-0.03895117715001106,
-0.007509436458349228,
-0.007891563698649406,
0.027908140793442726,
-0.013043835759162903,
0.04692002385854721,
0.009402896277606487,
0.014529407024383545,
-0.04341648146510124,
0.007771343924105167,
-0.012133601121604443,
0.04547739028930664,
0.0596633106470108,
0.013430256396532059,
0.010132801719009876,
0.0024000999983400106,
-0.004830255173146725,
0.022498255595564842,
0.04018772393465042,
-0.03853899613022804,
-0.007286171428859234,
0.02820010297000408,
-0.021296057850122452,
0.05183185636997223,
0.04688567668199539,
-0.0051350980065763,
-0.028543587774038315,
-0.04616435989737511,
0.003119271481409669,
0.019183626398444176,
-0.02904164046049118,
0.05461408570408821,
-0.001831203349865973,
0.02294478565454483,
0.013146881014108658,
0.04894658550620079,
-0.03881378471851349,
-0.010862707160413265,
0.05622846260666847,
0.03084493614733219,
-0.06138073652982712,
0.022807391360402107,
-0.006083974614739418,
-0.031617775559425354,
0.027375739067792892,
0.06048767641186714,
0.024524815380573273,
0.02359740622341633,
-0.07398662716150284,
0.04382866248488426,
0.019406892359256744,
0.00299261137843132,
0.06117464601993561,
-0.02356305718421936,
0.0014941588742658496,
0.06014418974518776,
-0.062651626765728,
-0.007466501090675592,
0.02318522520363331,
0.00640599150210619,
0.0016455069417133927,
-0.048637449741363525,
0.0544079951941967,
0.015568449161946774,
0.0031235648784786463,
-0.01645292155444622,
0.06522776186466217,
-0.021416278555989265,
0.02557244338095188,
0.010330305434763432,
0.03637504205107689,
-0.017998604103922844,
0.011824464425444603,
-0.014632453210651875,
0.052690569311380386,
0.024902649223804474,
-0.007341987919062376,
-0.008252222090959549,
0.0007680105627514422,
-0.009574638679623604,
0.0008952072821557522,
0.009858014062047005,
-0.005229556001722813,
0.042179934680461884,
-0.00609256187453866,
-0.07426141202449799,
-0.021004095673561096,
-0.08174938708543777,
-0.043519526720047,
-0.023288270458579063,
-0.016916627064347267,
0.02682616375386715,
-0.08937474340200424,
-0.0697961151599884,
0.013679282739758492,
-0.012382627464830875,
0.013009486719965935,
-0.021296057850122452,
-0.04018772393465042,
0.01992211863398552,
-0.017534898594021797,
0.006062506698071957,
0.02759900502860546,
0.03987858444452286,
-0.008423964492976665,
-0.027375739067792892,
-0.0019728909246623516,
-0.09720619767904282,
0.0617242194712162,
0.10400719940662384,
0.05062966048717499,
0.02172541432082653,
-0.01684792898595333,
-0.049461811780929565,
-0.0033790317829698324,
-0.01381667610257864,
-0.008007489144802094,
0.02115866355597973,
-0.013636346906423569,
-0.03675287589430809,
0.02521178498864174,
-0.007436445914208889,
0.019956467673182487,
0.02601897343993187,
-0.04245472326874733,
0.0035915630869567394,
0.011635547503829002,
-0.007037145085632801,
-0.028354670852422714,
0.00217361468821764,
0.061655521392822266,
-0.03326650336384773,
0.0016981030348688364,
-0.0027929607313126326,
-0.010948577895760536,
0.04434388875961304,
-0.05626280978322029,
-0.02905881404876709,
0.036478087306022644,
-0.027341390028595924,
-0.007548078428953886,
0.02782226912677288,
0.04994269087910652,
-0.014417774975299835,
0.07433011382818222,
-0.004252771381288767,
0.062273796647787094,
-0.015285073779523373,
0.03331802785396576,
0.03352411836385727,
-0.01703684590756893,
0.02820010297000408,
-0.015302248299121857,
0.061071597039699554,
0.028526414185762405,
0.013670695014297962,
-0.05093879625201225,
0.0037010489031672478,
0.006350175477564335,
-0.010811184532940388,
-0.034674789756536484,
0.045580435544252396,
-0.059628963470458984,
0.0012483525788411498,
0.00532830785959959,
0.007844334468245506,
-0.036065906286239624,
0.015516926534473896,
0.006762356963008642,
0.010081279091536999,
0.022189117968082428,
-0.00954029057174921,
0.07604753971099854,
-0.07927629351615906,
-0.009480181150138378,
0.039122920483350754,
0.03561937436461449,
0.009274089708924294,
0.03412521630525589,
-0.003413380356505513,
0.06254858523607254,
0.0013041688362136483,
0.01952711120247841,
-0.022669997066259384,
-0.00639311084523797,
-0.02134758047759533,
0.014632453210651875,
-0.03895117715001106,
-0.02744443528354168,
0.05348058417439461,
-0.025332003831863403,
0.032802797853946686,
-0.03572241961956024,
0.01708836853504181,
0.007844334468245506,
-0.010003995150327682,
-0.049496158957481384,
-0.009428657591342926,
0.009136696346104145,
0.008295157924294472,
0.0045597609132528305,
-0.01581747457385063,
-0.03003774583339691,
-0.012442736886441708,
-0.020368648692965508,
0.07288747280836105,
-0.05203794687986374,
0.004276385996490717,
-0.017234349623322487,
-0.03024383820593357,
-0.010399002581834793,
0.012477085925638676,
0.03314628452062607,
0.03548198193311691,
0.023253921419382095,
-0.0053755370900034904,
-0.049496158957481384,
0.004486770369112492,
-0.02110714092850685,
-0.059800706803798676,
0.004063854459673166,
-0.002286320785060525,
0.07364314049482346,
-0.07254399359226227,
-0.006543385796248913,
0.04592391848564148,
-0.08951213955879211,
-0.0027564656920731068,
0.04163035750389099,
0.01209066528826952,
0.008076186291873455,
0.003202995751053095,
0.04592391848564148,
-0.010742487385869026,
-0.059800706803798676,
0.025503747165203094,
-0.0393977090716362,
0.04489346593618393,
0.06955567002296448,
0.020574739202857018,
-0.03024383820593357,
-0.04750394821166992,
-0.054751478135585785,
-0.015164854004979134,
-0.03737114742398262,
-0.002121018711477518,
0.013833850622177124,
0.02699790522456169,
-0.002198302885517478,
-0.012125013396143913,
0.007706940174102783,
0.0034670496825128794,
-0.016667600721120834,
0.011704244650900364,
0.007633949629962444,
-0.047641344368457794,
-0.002378632314503193,
0.02601897343993187,
-0.034228261560201645,
0.03190973773598671,
0.007359161972999573,
0.03215017914772034,
-0.06412861496210098,
0.010553570464253426,
0.01870274730026722,
-0.06368208676576614,
0.0033790317829698324,
-0.03874508664011955,
-0.01703684590756893,
0.03271692618727684,
-0.01543105486780405,
0.015542687848210335,
0.012846332043409348,
0.021794110536575317,
0.027925314381718636,
0.027976837009191513,
-0.01746620237827301,
-0.020849527791142464,
-0.002243385184556246,
0.07563535124063492,
-0.02783944457769394,
-0.03407369181513786,
0.020368648692965508,
-0.014443536289036274,
0.06017853692173958,
0.014855718240141869,
0.003346830140799284,
-0.09528268873691559,
-0.010613680817186832,
-0.00974638108164072,
0.016573142260313034,
0.01564573310315609,
-0.0564689040184021,
0.08332941681146622,
0.06193030998110771,
-0.07281877845525742,
-0.030123617500066757,
-0.020420171320438385,
0.07790235430002213,
-0.006350175477564335,
0.010725312866270542,
-0.004589815624058247,
0.04207688942551613,
-0.046233054250478745,
-0.0315147303044796,
-0.034468699246644974,
0.0002490264887455851,
-0.028097057715058327,
0.020282777026295662,
0.05059531331062317,
0.02050604298710823,
-0.03251083567738533,
-0.020145384594798088,
-0.04750394821166992,
-0.026688769459724426,
0.001831203349865973,
-0.024696556851267815,
0.028148580342531204,
-0.0037074892316013575,
0.03610025346279144,
0.03125711902976036,
-0.02619071677327156,
-0.05324014648795128,
0.07742147892713547,
-0.029556868597865105,
-0.02823445200920105,
-0.02440459467470646,
0.05564453825354576,
0.034640442579984665,
0.07000220566987991,
-0.009797903709113598,
0.03640938922762871,
0.015233551152050495,
-0.034606095403432846,
-0.022790217772126198,
-0.029900353401899338,
-0.024730905890464783,
-0.06598342955112457,
0.013490365818142891,
0.0034455819986760616,
0.01047628652304411,
0.020660610869526863,
0.009780730120837688,
0.08978693187236786,
-0.06962437182664871,
0.060831159353256226,
-0.032407790422439575,
0.016590315848588943,
-0.05220969021320343,
-0.02481677755713463,
-0.00054340367205441,
0.021467801183462143,
0.012975138612091541,
0.08745123445987701,
0.018445134162902832,
-0.08058153837919235,
0.016444334760308266,
-0.0772840827703476,
-0.04537434130907059,
-0.01993929222226143,
-0.015594210475683212,
0.021862808614969254,
0.021381929516792297,
0.00035609715268947184,
0.013292862102389336,
0.028990117833018303,
-0.0020834500901401043,
-0.010553570464253426,
0.02352871000766754,
-0.015267899259924889,
-0.06089985743165016,
-0.007706940174102783,
-0.025761360302567482,
-0.043141692876815796,
0.0080203702673316,
-0.057980235666036606,
0.008355268277227879,
0.035241540521383286,
-0.03256236016750336,
0.04530564695596695,
0.016873691231012344,
-0.007286171428859234,
-0.0046713934279978275,
-0.031978435814380646,
-0.026740292087197304,
-0.03070754185318947,
0.025881581008434296,
-0.04104643315076828,
0.016925213858485222,
0.014812782406806946,
-0.032424964010715485,
0.010768248699605465,
0.000325773871736601,
-0.0018097355496138334,
-0.005156565457582474,
0.10517504811286926,
-0.012597305700182915,
-0.010596506297588348,
0.015465403907001019,
0.03561937436461449,
0.029986223205924034,
-0.028509238734841347,
0.01562855951488018,
0.008810385130345821,
0.04005032777786255,
0.009454418905079365,
0.04080599546432495,
0.04269516095519066,
-0.005650325212627649,
0.010690964758396149,
0.021227361634373665,
0.026053322479128838,
0.034211087971925735,
-0.016985323280096054,
0.029316429048776627,
0.006208487786352634,
0.01909775473177433,
0.023614579811692238,
-0.051934901624917984,
0.003196555422618985,
0.018221868202090263,
-0.00767259206622839,
0.009712032973766327,
0.01217653602361679,
0.0393977090716362,
-0.03415956348180771,
0.07563535124063492,
0.015362357720732689,
-0.10888468474149704,
0.0093342000618577,
0.01656455546617508,
0.004192661494016647,
0.011240540072321892,
0.00032953073969110847,
-0.012021968141198158,
0.01648727059364319,
0.0009472667006775737,
-0.029539693146944046,
-0.05183185636997223,
-0.025692664086818695,
0.01705402135848999,
-0.02435307204723358,
-0.07776495814323425,
-0.048637449741363525,
-0.03125711902976036,
0.004473889712244272,
-0.03294019401073456,
-0.005160859320312738,
0.0020083128474652767,
0.026259412989020348,
-0.0027156767901033163,
0.005693260580301285,
0.05619411543011665,
0.07398662716150284,
0.021673891693353653,
-0.0012708938447758555,
-0.016495857387781143,
-0.007715527433902025,
-0.014134399592876434,
-0.0667734444141388,
0.005564454011619091,
-0.01115466933697462,
-0.027667701244354248,
-0.03984423726797104,
0.03860769420862198,
0.013636346906423569,
-0.03314628452062607,
-0.040531206876039505,
0.04812221974134445,
-0.023219572380185127,
0.03005492128431797,
0.037645936012268066,
-0.010115627199411392,
0.013567649759352207,
-0.014203096739947796,
-0.05389276519417763,
-0.04362257197499275,
-0.0373368002474308,
0.04533999413251877,
0.011532502248883247,
0.046610888093709946,
-0.006255717016756535,
-0.03510414808988571,
0.021862808614969254,
-0.0045425863936543465,
0.014872891828417778,
0.06972741335630417,
-0.0035829758271574974,
0.016719123348593712,
0.02114148996770382,
0.020282777026295662,
0.006436046678572893,
0.037302449345588684,
-0.020059512928128242,
0.019046232104301453,
0.021811285987496376,
-0.08738253265619278,
-0.03247648850083351,
-0.023030655458569527,
-0.07041438668966293,
-0.010862707160413265,
0.04530564695596695,
-0.035241540521383286,
-0.005251023918390274,
-0.05258752405643463,
-0.10696116834878922,
-0.0055129313841462135,
0.01431472972035408,
0.03716505691409111,
0.033403895795345306,
-0.004937594290822744,
0.0030248130206018686,
0.018926013261079788,
0.04262646287679672,
-0.031016677618026733,
0.028165753930807114,
-0.010562158189713955,
0.056778039783239365,
-0.027702050283551216,
0.015903346240520477,
0.030364057049155235,
-0.05732761323451996,
0.0029904646798968315,
0.0045597609132528305,
0.06385382264852524,
0.05025182664394379,
-0.023494360968470573,
0.02516026236116886,
-0.0176379457116127,
0.010441938415169716,
-0.02502286806702614,
-0.009780730120837688,
0.021811285987496376,
-0.03998163342475891,
-0.04692002385854721,
-0.04413779824972153,
-0.0339534729719162,
-0.007260410115122795,
-0.02069495990872383,
-0.04138991981744766,
-0.10915946960449219,
-0.021072793751955032,
0.016555966809391975,
-0.01555127464234829,
0.055369749665260315,
-0.0438973568379879,
0.014907240867614746,
-0.013713630847632885,
-0.05670934170484543,
-0.00543564697727561,
-0.027341390028595924,
0.0343313068151474,
-0.054511040449142456,
0.011008688248693943,
0.08751992881298065,
0.037062011659145355,
0.036271996796131134,
0.013885373249650002,
0.012872093357145786,
0.0058091869577765465,
-0.005491463467478752,
0.0020770097617059946,
0.046645235270261765,
0.008557065390050411,
-0.04650784283876419,
-0.029574042186141014,
0.02904164046049118,
-0.04853440448641777,
-0.011309237219393253,
-0.04798482730984688,
0.027873791754245758,
0.0352758914232254,
-0.030020572245121002,
0.02845771610736847,
-0.03306041285395622,
0.03774898126721382,
-0.01138652116060257,
-0.010544983670115471,
-0.019784724339842796,
-0.027581829577684402,
-0.0025439343880861998,
-0.020986922085285187,
0.049083977937698364,
-0.024421770125627518,
0.05282796174287796,
-0.01024443469941616,
0.054957568645477295,
-0.05849546194076538,
-0.02416415698826313,
-0.006083974614739418,
-0.01270035095512867,
-0.0023464306723326445,
-0.04461867734789848,
0.0031171245500445366,
0.028784027323126793,
-0.0026620072312653065,
-0.06447210162878036,
-0.01077683549374342,
-0.034056518226861954,
-0.02418133057653904
] |
10,053
|
torch.nn.modules.module
|
get_extra_state
|
Return any extra state to include in the module's state_dict.
Implement this and a corresponding :func:`set_extra_state` for your module
if you need to store extra state. This function is called when building the
module's `state_dict()`.
Note that extra state should be picklable to ensure working serialization
of the state_dict. We only provide provide backwards compatibility guarantees
for serializing Tensors; other objects may break backwards compatibility if
their serialized pickled form changes.
Returns:
object: Any extra state to store in the module's state_dict
|
def get_extra_state(self) -> Any:
"""Return any extra state to include in the module's state_dict.
Implement this and a corresponding :func:`set_extra_state` for your module
if you need to store extra state. This function is called when building the
module's `state_dict()`.
Note that extra state should be picklable to ensure working serialization
of the state_dict. We only provide provide backwards compatibility guarantees
for serializing Tensors; other objects may break backwards compatibility if
their serialized pickled form changes.
Returns:
object: Any extra state to store in the module's state_dict
"""
raise RuntimeError(
"Reached a code path in Module.get_extra_state() that should never be called. "
"Please file an issue at https://github.com/pytorch/pytorch/issues/new?template=bug-report.yml "
"to report this bug.")
|
(self) -> Any
|
[
-0.05098763480782509,
-0.041791968047618866,
0.019267957657575607,
0.06830553710460663,
0.04311585798859596,
0.002871408825740218,
-0.02712184377014637,
0.038535915315151215,
0.016942206770181656,
-0.08759138733148575,
0.02381211891770363,
0.020806532353162766,
-0.011512471362948418,
0.02377633936703205,
-0.03145131841301918,
0.024527736008167267,
-0.0023682413157075644,
0.02892877347767353,
-0.022470340132713318,
-0.018427109345793724,
0.0009571362752467394,
0.01067162211984396,
-0.002884826622903347,
0.02917923964560032,
-0.032095372676849365,
0.013981346040964127,
-0.005443153437227011,
-0.030181100592017174,
0.04469021409749985,
-0.033329810947179794,
-0.05016467720270157,
-0.03159444406628609,
-0.011100991629064083,
0.008113295771181583,
-0.034009646624326706,
-0.010483773425221443,
0.00368094933219254,
0.049520622938871384,
-0.045405831187963486,
-0.02057395689189434,
0.005402900278568268,
-0.054064780473709106,
0.03139764815568924,
0.02170105278491974,
0.008131185546517372,
-0.01755942590534687,
-0.014625400304794312,
-0.0003102865885011852,
0.04336632415652275,
-0.05907409265637398,
0.06962943077087402,
-0.027676446363329887,
0.03760561719536781,
0.046121444553136826,
-0.0035601891577243805,
0.00044502364471554756,
0.05427946522831917,
-0.006038009189069271,
-0.011843442916870117,
0.060040175914764404,
-0.005416317842900753,
0.025601159781217575,
0.03574501350522041,
-0.034832604229450226,
0.02372266724705696,
-0.031415536999702454,
-0.03671109676361084,
-0.0004374761483632028,
-0.05016467720270157,
0.03935887664556503,
-0.01830187626183033,
-0.03749827295541763,
0.08222426474094391,
0.03068203292787075,
-0.022237764671444893,
-0.02764066495001316,
-0.044153500348329544,
-0.020860204473137856,
-0.01314944215118885,
-0.00666417321190238,
-0.051023416221141815,
0.0077957408502697945,
-0.04279383271932602,
0.09023916721343994,
-0.06873490661382675,
-0.06533573567867279,
0.00028988035046495497,
-0.032363731414079666,
0.004342894069850445,
-0.0249034333974123,
-0.06515683233737946,
0.08895105868577957,
-0.029715951532125473,
0.023543763905763626,
0.03696156293153763,
-0.035655561834573746,
0.016432330012321472,
0.017881453037261963,
-0.01783672720193863,
-0.03501150757074356,
-0.05005733296275139,
-0.0023458783980458975,
-0.07041660696268082,
0.0027841932605952024,
0.016065577045083046,
-0.03177334740757942,
-0.002681323327124119,
-0.02155792899429798,
0.016942206770181656,
-0.03810654580593109,
-0.03145131841301918,
0.008292199112474918,
-0.045191146433353424,
0.023078612983226776,
0.006471851374953985,
-0.04293695464730263,
0.03939465433359146,
-0.03170178458094597,
-0.03717624768614769,
0.01882069930434227,
0.0272291861474514,
0.04279383271932602,
-0.04079010710120201,
0.023364858701825142,
-0.0136145930737257,
0.04959218204021454,
0.04046807810664177,
-0.009535581804811954,
0.006301892455667257,
-0.08329769223928452,
-0.025028666481375694,
-0.02397313341498375,
-0.026728253811597824,
-0.015564646571874619,
-0.04454709216952324,
0.006852022372186184,
0.05574648082256317,
0.020913874730467796,
-0.016834864392876625,
-0.013480414636433125,
-0.011315676383674145,
0.014446496032178402,
0.023364858701825142,
0.018337657675147057,
0.024152036756277084,
0.005890413653105497,
-0.01953631453216076,
0.02289970964193344,
-0.012925812043249607,
-0.03145131841301918,
0.05016467720270157,
-0.00603353651240468,
-0.046014104038476944,
0.0009957124711945653,
-0.06934317946434021,
0.027211295440793037,
-0.0031621279194951057,
-0.04350944608449936,
-0.020609738305211067,
0.0036787129938602448,
-0.03052101843059063,
-0.024241488426923752,
0.0025896350853145123,
-0.05105919390916824,
-0.016486002132296562,
0.0005012106848880649,
0.028678307309746742,
-0.08716201782226562,
-0.04007449001073837,
0.00848004873842001,
-0.03842857480049133,
-0.03939465433359146,
0.03429589420557022,
0.04744533449411392,
-0.07038082182407379,
0.05156012624502182,
-0.01865968480706215,
-0.011557197198271751,
-0.016897480934858322,
0.011387238278985023,
0.035906028002500534,
-0.008390596136450768,
-0.08737670630216599,
0.013596702367067337,
0.02186206541955471,
-0.02298916131258011,
0.046586595475673676,
-0.018122972920536995,
0.07327906787395477,
0.05760708078742027,
0.058501601219177246,
0.01693326234817505,
0.018623903393745422,
-0.004208716098219156,
-0.0373193696141243,
0.028857212513685226,
-0.022416668012738228,
-0.031075621023774147,
0.0181945338845253,
0.05825113505125046,
-0.004767790902405977,
-0.038034986704587936,
0.007885192520916462,
0.03621016442775726,
-0.05603272467851639,
0.014857975766062737,
0.02479609102010727,
0.030503127723932266,
-0.014634345658123493,
-0.007920973934233189,
-0.0007950045401230454,
-0.03925153240561485,
0.0088646924123168,
0.088450126349926,
0.04200665280222893,
-0.041684627532958984,
0.006221385672688484,
0.03005586750805378,
0.017765164375305176,
0.015180002897977829,
0.037927642464637756,
0.017058493569493294,
-0.008779712952673435,
-0.0028311554342508316,
-0.019840450957417488,
-0.024724530056118965,
-0.026477789506316185,
-0.06032641977071762,
-0.025046557188034058,
-0.01382033247500658,
0.034725263714790344,
0.027408089488744736,
-0.056175850331783295,
-0.003477446036413312,
0.061077818274497986,
0.10591115802526474,
0.012970538809895515,
-0.06519261002540588,
-0.011906059458851814,
0.0034081207122653723,
-0.014580674469470978,
-0.0017275415593758225,
0.024259379133582115,
-0.05141700431704521,
0.0037346205208450556,
-0.042149778455495834,
0.051846373826265335,
0.04100479185581207,
-0.05624740943312645,
0.01332834642380476,
0.013256784528493881,
-0.007657090201973915,
0.011718210764229298,
0.02062762901186943,
-0.00756763806566596,
-0.034206438809633255,
0.038500137627124786,
0.006990673020482063,
-0.0288214311003685,
-0.018239259719848633,
-0.013274675235152245,
-0.03660375252366066,
-0.03046734817326069,
0.0021535565610975027,
-0.0045150890946388245,
-0.015743549913167953,
0.017183726653456688,
0.025171790271997452,
-0.0058233244344592094,
0.009025705978274345,
0.10068716108798981,
0.015385742299258709,
-0.04479755461215973,
0.004038757178932428,
-0.002428621519356966,
-0.09854031354188919,
0.015251563861966133,
0.01887436956167221,
-0.02764066495001316,
0.04572785645723343,
0.030020087957382202,
0.021933628246188164,
-0.011646648868918419,
0.025440145283937454,
-0.053027138113975525,
-0.02687137760221958,
-0.006914638914167881,
-0.015358906239271164,
0.015162112191319466,
-0.03068203292787075,
0.031988032162189484,
0.02356165461242199,
-0.010403266176581383,
0.004700702149420977,
0.06594400852918625,
-0.05742817744612694,
-0.1117076426744461,
0.06426230818033218,
0.045083802193403244,
0.008538192138075829,
0.06515683233737946,
0.019500533118844032,
-0.09918436408042908,
0.027855349704623222,
-0.006516577210277319,
-0.0166022889316082,
0.032864660024642944,
0.03375918045639992,
-0.0511307567358017,
-0.009607143700122833,
0.04454709216952324,
-0.010134910233318806,
0.059431903064250946,
0.02578006312251091,
0.016825919970870018,
-0.09202820807695389,
0.02687137760221958,
-0.021933628246188164,
0.000449496234068647,
0.07878930866718292,
-0.07177627831697464,
0.005921721458435059,
-0.04275805130600929,
0.06436964869499207,
0.006534467916935682,
-0.032614193856716156,
0.04562051594257355,
-0.02433094196021557,
0.012988428585231304,
-0.024813981726765633,
-0.09331631660461426,
0.0058412146754562855,
0.0244382843375206,
0.03052101843059063,
-0.055352892726659775,
-0.00029295525746420026,
0.026370447129011154,
-0.006055899895727634,
0.007835994474589825,
-0.03257841616868973,
0.04418928176164627,
-0.0039739045314490795,
-0.06930740177631378,
0.03148709982633591,
0.028749870136380196,
-0.01687959022819996,
0.03985980525612831,
0.03964512050151825,
0.046228788793087006,
-0.012559059076011181,
-0.05778598412871361,
-0.0013428980018943548,
-0.04350944608449936,
0.059467680752277374,
0.02547592669725418,
0.017461027950048447,
-0.04919859394431114,
-0.004946695175021887,
-0.007997008040547371,
0.007992534898221493,
0.05356385186314583,
-0.028016362339258194,
-0.02799847349524498,
0.0613640658557415,
-0.0020775224547833204,
-0.03130819648504257,
-0.009571363218128681,
-0.020305601879954338,
0.028857212513685226,
-0.034725263714790344,
-0.0021032399963587523,
-0.07077441364526749,
-0.006829659454524517,
0.05309870094060898,
0.0344032347202301,
0.0022519538179039955,
-0.0511307567358017,
0.005112180951982737,
0.02161160111427307,
0.03159444406628609,
0.06830553710460663,
-0.015117386355996132,
-0.03935887664556503,
-0.022291434928774834,
0.023794228211045265,
0.012881086207926273,
0.07592684775590897,
-0.021128559485077858,
0.011065211147069931,
-0.035440877079963684,
-0.05928877741098404,
0.02526124194264412,
-0.03760561719536781,
-0.007813631556928158,
-0.02345431223511696,
-0.020913874730467796,
-0.0008397305500693619,
0.0056533655151724815,
-0.0338665246963501,
-0.019196396693587303,
0.05728505551815033,
-0.011601923033595085,
0.02969806082546711,
-0.026155762374401093,
-0.016047686338424683,
-0.007724179420620203,
-0.00007205078145489097,
0.06368981301784515,
0.01087736152112484,
-0.0539216585457325,
-0.022201983258128166,
0.036067042499780655,
-0.051846373826265335,
-0.022863928228616714,
0.000047032179281814024,
-0.00621244078502059,
0.08358393609523773,
-0.020305601879954338,
0.009571363218128681,
0.03175545483827591,
0.025136008858680725,
0.040611203759908676,
-0.010295923799276352,
0.002560563152655959,
-0.010385376401245594,
0.03810654580593109,
-0.02712184377014637,
0.04898390918970108,
0.011270950548350811,
0.0406469851732254,
-0.025350693613290787,
-0.006512104999274015,
0.01098470389842987,
-0.013274675235152245,
0.03130819648504257,
-0.0260305292904377,
0.029984306544065475,
-0.054529931396245956,
-0.05059404671192169,
0.055567577481269836,
0.013194167986512184,
0.02969806082546711,
0.02578006312251091,
0.008703678846359253,
0.03774873912334442,
-0.034671589732170105,
-0.031272415071725845,
0.04808938875794411,
0.05213261768221855,
-0.03935887664556503,
-0.023346969857811928,
-0.02747965045273304,
0.04311585798859596,
0.012621675617992878,
-0.0027238130569458008,
-0.013829277828335762,
-0.03445690497756004,
-0.056283190846443176,
-0.009155411273241043,
-0.011584032326936722,
-0.02381211891770363,
0.02690715901553631,
-0.05123810097575188,
0.0035557164810597897,
0.07871775329113007,
-0.02325751632452011,
-0.020806532353162766,
-0.07399468868970871,
-0.03561978042125702,
0.01734474115073681,
0.06873490661382675,
0.03322247043251991,
0.010662676766514778,
-0.060720011591911316,
0.012791634537279606,
0.0016503891674801707,
-0.011440909467637539,
-0.017326850444078445,
-0.007974645122885704,
-0.08200958371162415,
0.011154662817716599,
-0.038750600069761276,
0.015537810511887074,
-0.015537810511887074,
-0.003079384798184037,
0.03279310092329979,
0.025493817403912544,
0.019572095945477486,
0.06351090967655182,
0.0020137878600507975,
-0.051846373826265335,
0.004651503637433052,
0.005698091816157103,
0.02567272074520588,
-0.013077881187200546,
-0.015546755865216255,
-0.028284719213843346,
0.020806532353162766,
0.07585528492927551,
0.03501150757074356,
0.01923217810690403,
-0.011431964114308357,
0.007411097176373005,
0.039573561400175095,
0.011843442916870117,
-0.018337657675147057,
-0.0262988843023777,
0.003247107146307826,
0.006158769596368074,
0.056533657014369965,
0.02876775898039341,
0.04594254121184349,
0.05334916710853577,
-0.023901570588350296,
0.02170105278491974,
-0.030646251514554024,
-0.015341016463935375,
0.11313887685537338,
0.035136740654706955,
-0.0023883681278675795,
0.009535581804811954,
0.012827415019273758,
0.061900775879621506,
-0.019786780700087547,
-0.008010425604879856,
0.01613713800907135,
-0.06379716098308563,
-0.04451131075620651,
0.0036451686173677444,
0.04232868179678917,
0.0050137839280068874,
-0.01273796334862709,
-0.02701450139284134,
0.050450921058654785,
-0.024974996224045753,
-0.04322320222854614,
0.014920591376721859,
0.03032422438263893,
-0.05474461615085602,
-0.044010378420352936,
0.03306145593523979,
-0.06927162408828735,
0.01944686286151409,
0.007232193369418383,
0.008560555055737495,
0.007612364366650581,
-0.03252474218606949,
0.0544583722949028,
-0.0792902410030365,
-0.009598198346793652,
-0.04000293090939522,
-0.041434161365032196,
-0.0031643640249967575,
-0.05381431803107262,
0.09975685924291611,
-0.05402900278568268,
0.021218011155724525,
0.019965684041380882,
-0.007952282205224037,
0.011288841255009174,
0.002875881502404809,
0.007862829603254795,
-0.0354587696492672,
-0.020842313766479492,
0.004834880121052265,
0.034421127289533615,
-0.02953704632818699,
0.00019917044846806675,
-0.024867653846740723,
-0.022345107048749924,
0.0447617769241333,
0.019053272902965546,
-0.022720804437994957,
0.019965684041380882,
-0.0003625600947998464,
0.002842336893081665,
0.03889372572302818,
0.06504948437213898,
0.010251197963953018,
-0.019786780700087547,
0.06390450149774551,
-0.021987298503518105,
0.01980466954410076,
0.009893390350043774,
0.0005498501705005765,
0.003996267449110746,
0.0036697678733617067,
0.08165177702903748,
0.039001066237688065,
0.027408089488744736,
0.016825919970870018,
-0.005170324817299843,
0.03538720682263374,
-0.029984306544065475,
0.05961080640554428,
-0.007433460094034672,
-0.05120231956243515,
-0.00024068175116553903,
0.032721538096666336,
0.01245171669870615,
-0.026746144518256187,
0.004128209315240383,
0.04547739028930664,
-0.08501517027616501,
-0.018257150426506996,
-0.03136186674237251,
-0.0025337275583297014,
0.03964512050151825,
-0.031791236251592636,
-0.008332452736794949,
-0.022470340132713318,
-0.02687137760221958,
-0.008153548464179039,
-0.06662384420633316,
-0.01722845248878002,
-0.04655081406235695,
0.01549308467656374,
-0.0026477789506316185,
0.022076750174164772,
0.013140496797859669,
-0.014249701984226704,
0.033651839941740036,
-0.03535142540931702,
-0.0067804609425365925,
-0.018445000052452087,
-0.05134544149041176,
0.023078612983226776,
-0.04207821562886238,
-0.007415569853037596,
-0.03975246474146843,
-0.021271683275699615,
0.016333933919668198,
0.048125170171260834,
-0.08079303801059723,
0.022005189210176468,
-0.03078937530517578,
0.03429589420557022,
0.0015542283654212952,
0.012156525626778603,
0.0276943352073431,
-0.020198259502649307,
0.030860936269164085,
-0.0498068667948246,
-0.031415536999702454,
-0.03383074328303337,
-0.0034148297272622585,
-0.03334769979119301,
-0.018606014549732208,
0.010197526775300503,
-0.03531564399600029,
-0.018149808049201965,
-0.003694367129355669,
-0.04816095158457756,
0.018838588148355484,
-0.019142726436257362,
-0.00460230465978384,
0.03975246474146843,
0.05982549116015434,
0.048447199165821075,
-0.030091648921370506,
-0.05188215523958206,
0.04114791378378868,
-0.0040186308324337006,
0.049771085381507874,
0.0572492741048336,
0.028642527759075165,
-0.06705321371555328,
0.040396519005298615,
0.05367119237780571,
-0.02427726984024048,
-0.01585983857512474,
-0.013283620588481426,
-0.015162112191319466,
-0.0034103570505976677,
0.01005440391600132,
0.012254922650754452,
0.013498305343091488,
-0.007370844017714262,
0.0475526787340641,
0.011619813740253448,
-0.005018256604671478,
0.0535280704498291,
-0.012612730264663696,
0.04587097838521004,
0.030431566759943962,
0.05925299599766731,
-0.008954144082963467,
0.06662384420633316,
-0.0019310448551550508,
-0.03619227558374405,
-0.03857169672846794,
0.03154077008366585,
0.010922088287770748,
0.01283636037260294,
0.06290263682603836,
-0.047982048243284225,
-0.058394256979227066,
-0.054995082318782806,
-0.006896748207509518,
-0.046693939715623856,
-0.0025918714236468077,
0.0041192639619112015,
-0.028087925165891647,
-0.011584032326936722,
0.019464753568172455,
-0.0008900472894310951,
-0.03774873912334442,
-0.05410056188702583,
-0.018623903393745422,
-0.031988032162189484,
0.004893023986369371,
0.007581056095659733,
-0.007147213909775019,
0.010823690332472324,
-0.009508746676146984,
-0.02597685717046261,
0.012254922650754452,
-0.014196030795574188,
-0.02857096493244171,
0.03511885181069374,
-0.046121444553136826,
-0.013283620588481426,
0.03871482238173485,
0.02898244373500347,
-0.000775436928961426,
0.02468874864280224,
0.013748770579695702,
-0.04100479185581207,
-0.001376442494802177,
0.03538720682263374,
0.028892992064356804,
-0.014786413870751858,
-0.04336632415652275,
0.02799847349524498,
0.0359954796731472,
-0.016566507518291473,
0.04955640062689781,
0.08014898002147675,
-0.028642527759075165,
0.019303739070892334,
0.05860894173383713,
0.014500167220830917,
0.025118118152022362,
0.0219157375395298,
0.08522985875606537,
-0.005774125922471285,
-0.0021926918998360634,
0.0015329835005104542,
-0.016155028715729713,
0.003459555795416236,
0.007124850992113352,
0.07428093254566193,
0.044225063174963,
-0.006333200726658106,
0.053134482353925705,
-0.00770628871396184,
-0.02320384606719017,
-0.02381211891770363,
-0.03429589420557022,
-0.11213701218366623,
-0.03739093244075775,
-0.060755789279937744,
0.035709235817193985,
0.009446130134165287,
0.04501223936676979,
0.02558326907455921,
-0.017630986869335175,
-0.0026477789506316185
] |
10,054
|
sentence_transformers.SentenceTransformer
|
get_max_seq_length
|
Returns the maximal sequence length for input the model accepts. Longer inputs will be truncated
|
def get_max_seq_length(self):
"""
Returns the maximal sequence length for input the model accepts. Longer inputs will be truncated
"""
if hasattr(self._first_module(), "max_seq_length"):
return self._first_module().max_seq_length
return None
|
(self)
|
[
0.003619074122980237,
0.042440265417099,
0.01333761215209961,
0.03234216570854187,
0.008575440384447575,
0.03416052833199501,
-0.005816999822854996,
0.0008970448980107903,
0.04823078587651253,
-0.060270827263593674,
-0.023779965937137604,
-0.03529038652777672,
-0.006456958130002022,
0.011757577769458294,
0.048336707055568695,
0.07909001410007477,
0.038874153047800064,
-0.03306598216295242,
0.029288019984960556,
-0.019490038976073265,
-0.0019893874414265156,
0.05225590243935585,
-0.041381023824214935,
-0.05705779418349266,
-0.039862778037786484,
0.0599883608520031,
0.036402590572834015,
0.014670491218566895,
0.03288944065570831,
0.00729552423581481,
-0.016903724521398544,
-0.010707163251936436,
0.027293115854263306,
0.015994543209671974,
-0.017865868285298347,
-0.012737375684082508,
-0.03502557799220085,
0.012004734016954899,
-0.05320921912789345,
-0.03693221136927605,
0.03950969874858856,
-0.024627359583973885,
0.03898007795214653,
0.0026039681397378445,
-0.03679097816348076,
-0.03384275734424591,
0.009418419562280178,
0.02639276161789894,
-0.0368615947663784,
0.00841655395925045,
0.04741869866847992,
0.0073793805204331875,
0.012234236113727093,
-0.02702830545604229,
-0.06892129778862,
0.04311111941933632,
-0.024450818076729774,
0.03161834925413132,
0.002957048360258341,
-0.011881155893206596,
0.006311312317848206,
0.03179489076137543,
0.05769333988428116,
-0.051337890326976776,
0.03742652386426926,
0.014573394320905209,
0.007630950305610895,
0.01600337028503418,
0.01839548908174038,
0.04374666139483452,
-0.03615543246269226,
-0.04561799019575119,
-0.029464559629559517,
0.07774830609560013,
0.025315865874290466,
-0.040039319545030594,
-0.06712058931589127,
0.008857904933393002,
0.0071984268724918365,
-0.024133047088980675,
0.04597106948494911,
0.024256624281406403,
0.007966376841068268,
-0.004274479579180479,
0.017283286899328232,
-0.08798763900995255,
0.01161634549498558,
0.027928661555051804,
0.037214674055576324,
-0.01874857023358345,
-0.051832202821969986,
0.07294641435146332,
0.02009027637541294,
0.04929002746939659,
-0.0008744256920181215,
-0.017945311963558197,
0.002429634565487504,
-0.009012377820909023,
-0.006465785205364227,
-0.06539048999547958,
-0.029446907341480255,
0.08897626399993896,
-0.0026194152887910604,
0.036084819585084915,
0.01002748403698206,
0.00007827075751265511,
-0.02040804736316204,
-0.028723090887069702,
0.006739422213286161,
-0.018483759835362434,
-0.021290749311447144,
0.03578469902276993,
0.011987079866230488,
0.03827391564846039,
-0.01926053687930107,
-0.009868597611784935,
0.038591690361499786,
0.02951752208173275,
0.007322004996240139,
-0.02503340132534504,
0.003175517078489065,
0.055822014808654785,
-0.07711276412010193,
-0.06231869384646416,
0.06803859770298004,
0.05359760671854019,
0.010036311112344265,
-0.04042770713567734,
0.04201656952500343,
-0.025651292875409126,
0.0270459596067667,
-0.015332517214119434,
-0.005962645635008812,
0.0494665652513504,
0.023338615894317627,
-0.03499026969075203,
0.022261720150709152,
0.04886632785201073,
-0.05603386089205742,
0.027822736650705338,
-0.04152225703001022,
0.0891881138086319,
0.07697153091430664,
-0.05211466923356056,
-0.03163600340485573,
0.013628903776407242,
0.03368386998772621,
0.014538086019456387,
-0.009833289310336113,
-0.012869780883193016,
0.02653399296104908,
-0.03912131115794182,
0.012048869393765926,
-0.007992858067154884,
-0.01335526630282402,
0.04565329849720001,
-0.008147330954670906,
-0.03601420298218727,
0.01758340373635292,
-0.03403695300221443,
-0.03232451155781746,
0.043217044323682785,
-0.039580315351486206,
-0.024998093023896217,
-0.018024755641818047,
-0.012922743335366249,
0.016700703650712967,
-0.02005496807396412,
-0.014882339164614677,
0.06906253099441528,
-0.02070816606283188,
0.03975685313344002,
0.02902320958673954,
-0.034601882100105286,
-0.0248921699821949,
0.0730876475572586,
0.011563383974134922,
0.009321322664618492,
0.00910947471857071,
0.043217044323682785,
0.011227956973016262,
-0.0034028124064207077,
-0.029729370027780533,
0.009100647643208504,
0.0623893104493618,
0.07527674734592438,
-0.040886711329221725,
0.03968624025583267,
-0.026463376358151436,
-0.027169538661837578,
0.009162437170743942,
-0.0165947787463665,
0.01244608499109745,
-0.030082451179623604,
-0.06055328994989395,
0.009815635159611702,
0.008398900739848614,
-0.0020390392746776342,
0.01876622438430786,
0.002921740524470806,
-0.00020109032629989088,
-0.003109314478933811,
-0.018536722287535667,
-0.0074808914214372635,
-0.04173410311341286,
0.005362408701330423,
-0.0010300017893314362,
0.032430436462163925,
-0.08212650567293167,
-0.018836839124560356,
-0.029076172038912773,
-0.03802676126360893,
0.037567757070064545,
0.03168896585702896,
0.04417036101222038,
-0.04759524017572403,
-0.029588138684630394,
-0.01774229109287262,
0.01715088076889515,
0.012834472581744194,
0.083609439432621,
-0.015014744363725185,
0.030382569879293442,
-0.02754027210175991,
0.046218227595090866,
-0.04847794026136398,
0.0013041907222941518,
0.020143236964941025,
-0.007666258607059717,
0.004770999308675528,
0.047065619379282,
0.02918209694325924,
-0.02037273906171322,
0.041698798537254333,
0.04840732365846634,
0.04032178223133087,
-0.002930567367002368,
-0.009745019488036633,
-0.06306016445159912,
-0.03230685740709305,
-0.064154714345932,
0.033242519944906235,
-0.015358997508883476,
0.016153428703546524,
-0.016506509855389595,
0.016038678586483,
0.018483759835362434,
0.008641643449664116,
-0.017300941050052643,
-0.05423315241932869,
0.012419603765010834,
-0.011731096543371677,
-0.03364856168627739,
0.02951752208173275,
0.022756032645702362,
-0.020125582814216614,
-0.024786245077848434,
-0.03117700107395649,
-0.0025796936824917793,
-0.0005012087058275938,
0.012375468388199806,
0.00044769493979401886,
-0.05388006940484047,
0.057622723281383514,
0.0018161573680117726,
0.02155555970966816,
-0.015111841261386871,
0.0029857363551855087,
-0.008623989298939705,
0.007335245609283447,
0.08495114743709564,
0.03435472398996353,
-0.11206772178411484,
-0.07231086492538452,
0.021008284762501717,
-0.09815635532140732,
-0.004250205587595701,
0.01020402368158102,
-0.010098099708557129,
0.029605792835354805,
0.004704796709120274,
-0.029235057532787323,
0.028934940695762634,
0.00625835033133626,
-0.0061833206564188,
0.020461009815335274,
-0.03915661945939064,
-0.04473529011011124,
-0.025421788915991783,
0.00817822478711605,
0.009903905913233757,
-0.008738740347325802,
-0.005362408701330423,
0.017495134845376015,
0.007233735173940659,
-0.044876519590616226,
0.024980438873171806,
0.015606154687702656,
0.06274238973855972,
0.0019706301391124725,
-0.046853769570589066,
-0.015306035988032818,
-0.02092001400887966,
0.002179168164730072,
-0.06832105666399002,
-0.007370553445070982,
-0.006381928455084562,
-0.027293115854263306,
0.02056693471968174,
0.026992997154593468,
-0.032430436462163925,
0.02718719094991684,
0.03732059895992279,
0.020302124321460724,
0.013487671501934528,
0.038203299045562744,
0.030929844826459885,
0.034566573798656464,
0.012878607958555222,
0.045053061097860336,
-0.04911348596215248,
0.018501413986086845,
0.022491222247481346,
-0.029446907341480255,
-0.02153790555894375,
0.01068068202584982,
0.01732742041349411,
0.0033741246443241835,
-0.024803899228572845,
-0.022950226441025734,
-0.04777178168296814,
-0.019136957824230194,
0.036402590572834015,
0.01799827441573143,
-0.06164783984422684,
0.005613978486508131,
0.04660661518573761,
-0.011678135022521019,
0.030082451179623604,
-0.04399381950497627,
0.06217746064066887,
-0.047665856778621674,
-0.014123216271400452,
0.042863961309194565,
0.02471562847495079,
-0.012357814237475395,
0.05603386089205742,
-0.038203299045562744,
0.03714406117796898,
-0.03269524499773979,
-0.011545729823410511,
0.01888980157673359,
-0.003817681921645999,
-0.006955684162676334,
-0.05094950273633003,
-0.011704615317285061,
0.014670491218566895,
0.04109856113791466,
0.0035727324429899454,
0.05455092340707779,
-0.01500591728836298,
-0.025492405518889427,
-0.0433935821056366,
0.01592392660677433,
-0.03529038652777672,
0.03582000732421875,
-0.04349950700998306,
0.024503780528903008,
0.08685778081417084,
0.023656386882066727,
-0.04427628219127655,
0.005812586285173893,
0.05621040239930153,
0.01971954107284546,
-0.03387806564569473,
0.03619074076414108,
-0.06740304827690125,
0.024344895035028458,
-0.05243244022130966,
-0.04473529011011124,
-0.058399498462677,
-0.0559985525906086,
-0.021184824407100677,
-0.020302124321460724,
-0.009559651836752892,
-0.010239331983029842,
-0.009497863240540028,
-0.07252271473407745,
-0.04258149862289429,
0.0017786425305530429,
0.026127951219677925,
-0.006849760189652443,
-0.04886632785201073,
-0.033419061452150345,
-0.03297771140933037,
0.01775994524359703,
0.008107609115540981,
0.04074547812342644,
0.044205669313669205,
-0.01565028913319111,
-0.0009334563510492444,
0.011369189247488976,
0.016541818156838417,
0.05726964399218559,
-0.018978072330355644,
0.01625935360789299,
0.07944308966398239,
0.014899993315339088,
-0.023621080443263054,
-0.012251890264451504,
-0.0058214133605360985,
0.012251890264451504,
-0.042440265417099,
-0.03809737786650658,
0.02819347009062767,
-0.04925471916794777,
0.015676770359277725,
-0.040392398834228516,
0.04060424864292145,
-0.010301120579242706,
0.036896903067827225,
0.08502176403999329,
0.005922923795878887,
0.016012197360396385,
0.01876622438430786,
0.046218227595090866,
-0.0071807727217674255,
0.06221276894211769,
-0.03604951128363609,
0.026269182562828064,
-0.07379380613565445,
0.010018656961619854,
0.010919012129306793,
0.0005172076635062695,
-0.002771681174635887,
-0.008500411175191402,
0.009815635159611702,
-0.015208939090371132,
-0.059599973261356354,
-0.004567977972328663,
0.07704214751720428,
-0.0006355447694659233,
0.03168896585702896,
0.05225590243935585,
0.07746583968400955,
-0.05303267762064934,
0.018695607781410217,
0.01768050156533718,
-0.006253936793655157,
-0.029252711683511734,
-0.03912131115794182,
-0.016224045306444168,
0.045335523784160614,
-0.014079081825911999,
0.04325234889984131,
-0.04127509891986847,
0.025421788915991783,
-0.011713442392647266,
-0.018801532685756683,
-0.05486869439482689,
-0.029235057532787323,
0.0799374058842659,
0.034760765731334686,
-0.008955001831054688,
-0.008368005976080894,
0.021961601451039314,
-0.006055328994989395,
-0.034919653087854385,
-0.06401348114013672,
0.026781149208545685,
0.053138602524995804,
0.005494813900440931,
0.012357814237475395,
-0.07358195632696152,
0.00019791812519542873,
-0.027663851156830788,
0.018836839124560356,
0.006355447228997946,
0.022455913946032524,
-0.010804261080920696,
0.053138602524995804,
-0.05225590243935585,
0.02501574717462063,
0.045865144580602646,
-0.04049832373857498,
0.0003892159729730338,
-0.06072983145713806,
-0.05024334415793419,
-0.04593576118350029,
0.005004914943128824,
-0.02554536797106266,
0.0018271910957992077,
0.027911007404327393,
0.04929002746939659,
0.01526190061122179,
-0.042051877826452255,
0.06906253099441528,
-0.02671053260564804,
-0.002544385613873601,
0.05825826898217201,
-0.01253435481339693,
0.038062069565057755,
0.026957688853144646,
-0.059811823070049286,
0.001608722610399127,
0.01989608071744442,
-0.08191465586423874,
-0.05726964399218559,
-0.03188316151499748,
-0.0005169318174012005,
-0.007864866405725479,
0.019860772415995598,
0.00350432307459414,
0.033577948808670044,
0.01590627245604992,
-0.01924288272857666,
0.055645473301410675,
0.015464922413229942,
0.055645473301410675,
0.062106844037771225,
-0.014052600599825382,
-0.008363592438399792,
-0.022773686796426773,
-0.08099664747714996,
-0.009930386207997799,
-0.007092502899467945,
-0.04078078642487526,
-0.02900555543601513,
0.02023150771856308,
0.07880754768848419,
0.045865144580602646,
0.011837020516395569,
0.034725457429885864,
0.07901939749717712,
-0.021431980654597282,
-0.00433626864105463,
-0.04985495284199715,
0.0002394326584180817,
-0.008222360163927078,
0.018872147426009178,
-0.05458623170852661,
-0.020814090967178345,
0.036084819585084915,
0.039086002856492996,
0.009286015294492245,
-0.011801713146269321,
-0.009356630966067314,
0.06825044751167297,
-0.029164442792534828,
0.024662666022777557,
-0.08565730601549149,
0.013443537056446075,
0.02337392419576645,
-0.06005897745490074,
0.054162535816431046,
0.018201295286417007,
0.03696751967072487,
0.011395670473575592,
0.04964310675859451,
0.006143599282950163,
-0.019101649522781372,
-0.02356811799108982,
0.027240153402090073,
0.0025995546020567417,
-0.01691255159676075,
0.03499026969075203,
-0.016524164006114006,
-0.02270307019352913,
-0.032907094806432724,
0.057481490075588226,
-0.007273456547409296,
-0.008306216448545456,
-0.05222059413790703,
0.020831745117902756,
0.020478663966059685,
-0.015606154687702656,
-0.03280116990208626,
0.05674002319574356,
-0.039403773844242096,
0.04300519451498985,
0.04032178223133087,
0.04759524017572403,
0.022932572290301323,
-0.01425562147051096,
-0.005393303465098143,
-0.0024428751785308123,
-0.015570846386253834,
0.005750797223299742,
-0.05818765237927437,
0.0027628543321043253,
0.0011795092141255736,
0.029623446986079216,
-0.0248921699821949,
-0.02655164711177349,
0.03664974868297577,
0.0374971404671669,
-0.05988243967294693,
-0.024627359583973885,
0.017415691167116165,
0.02817581780254841,
-0.008085541427135468,
0.031777236610651016,
-0.0003081178292632103,
0.06595542281866074,
0.05988243967294693,
-0.044876519590616226,
-0.019790157675743103,
0.006929202936589718,
-0.01209300383925438,
-0.004722450394183397,
-0.04229903221130371,
-0.023938851431012154,
-0.015703251585364342,
-0.06666158139705658,
-0.10225208848714828,
-0.05677533149719238,
-0.010345255956053734,
-0.04777178168296814,
0.08332698047161102,
-0.07513551414012909,
0.004466467071324587,
0.06055328994989395,
0.0016727184411138296,
-0.024592051282525063,
-0.02803458459675312,
0.056951869279146194,
-0.05666940659284592,
-0.029817640781402588,
-0.0092153986915946,
-0.03281882405281067,
0.014891166239976883,
-0.03147711977362633,
0.07294641435146332,
-0.05561016499996185,
0.018360180780291557,
-0.012375468388199806,
-0.02369169518351555,
0.00385740352794528,
0.0015513470862060785,
0.023938851431012154,
-0.03777960315346718,
0.012604970484972,
-0.08643408864736557,
-0.029623446986079216,
-0.02107890136539936,
0.025810178369283676,
-0.027787428349256516,
0.0473833903670311,
-0.0027341663371771574,
-0.052820831537246704,
-0.021114207804203033,
0.0001175095749204047,
0.020778782665729523,
-0.029076172038912773,
0.030470838770270348,
-0.11164402961730957,
0.022632453590631485,
0.003228479065001011,
-0.01839548908174038,
-0.0989331305027008,
-0.025792524218559265,
-0.05455092340707779,
0.019543001428246498,
-0.018483759835362434,
0.052503056824207306,
-0.04198126122355461,
-0.03993339464068413,
0.030647380277514458,
0.010301120579242706,
-0.015111841261386871,
-0.025739561766386032,
-0.03412522375583649,
0.033577948808670044,
0.006898308638483286,
0.029570484533905983,
-0.0054727462120354176,
0.007891347631812096,
0.03002948872745037,
0.051655665040016174,
-0.00808995496481657,
0.05419784411787987,
0.022349990904331207,
-0.04466467350721359,
-0.029288019984960556,
0.01806006394326687,
-0.008275322616100311,
-0.02287960983812809,
0.05854073166847229,
0.049184102565050125,
-0.004506188910454512,
0.0005607909988611937,
-0.013037494383752346,
-0.007873693481087685,
-0.005410957150161266,
0.012569663114845753,
-0.02337392419576645,
-0.011148514226078987,
0.04311111941933632,
-0.04695969447493553,
-0.0043119946494698524,
-0.010883703827857971,
0.03834453225135803,
-0.028122855350375175,
-0.014264448545873165,
-0.025774870067834854,
0.014123216271400452,
-0.05709310248494148,
0.028158163651823997,
-0.07192248106002808,
-0.033436715602874756,
0.02386823669075966,
0.043534815311431885,
0.04625353589653969,
-0.03555519878864288,
-0.005481573287397623,
-0.0009836599929258227,
0.023674041032791138,
0.08925873041152954,
-0.020937668159604073,
0.030400224030017853,
-0.021979255601763725,
0.018342526629567146,
0.033224865794181824,
-0.006712941452860832,
-0.03883884474635124,
-0.0024428751785308123,
-0.06235400214791298,
0.02902320958673954,
0.017230324447155,
-0.0117664048448205,
0.010804261080920696,
-0.0216967910528183,
-0.05190281942486763,
-0.012234236113727093,
0.028228778392076492,
-0.007873693481087685,
-0.0010619997046887875,
-0.0074279289692640305,
-0.028652476146817207,
-0.07513551414012909,
0.009930386207997799,
0.00884025078266859,
0.018289566040039062,
0.024486126378178596,
0.04759524017572403,
0.014158524572849274,
-0.020355084910988808,
0.022650107741355896,
-0.006924789398908615,
-0.07252271473407745,
0.03647320717573166,
0.010053964331746101,
0.06913314759731293,
-0.0507376566529274,
0.016285834833979607,
0.003811061615124345,
-0.02769915759563446,
0.019101649522781372,
-0.04095732793211937,
0.02337392419576645,
-0.02937629073858261,
-0.027240153402090073,
0.0738644227385521,
0.029941219836473465,
0.03488434478640556,
0.004219310823827982,
-0.032236240804195404,
-0.00953317154198885
] |
10,055
|
torch.nn.modules.module
|
get_parameter
|
Return the parameter given by ``target`` if it exists, otherwise throw an error.
See the docstring for ``get_submodule`` for a more detailed
explanation of this method's functionality as well as how to
correctly specify ``target``.
Args:
target: The fully-qualified string name of the Parameter
to look for. (See ``get_submodule`` for how to specify a
fully-qualified string.)
Returns:
torch.nn.Parameter: The Parameter referenced by ``target``
Raises:
AttributeError: If the target string references an invalid
path or resolves to something that is not an
``nn.Parameter``
|
def get_parameter(self, target: str) -> "Parameter":
"""Return the parameter given by ``target`` if it exists, otherwise throw an error.
See the docstring for ``get_submodule`` for a more detailed
explanation of this method's functionality as well as how to
correctly specify ``target``.
Args:
target: The fully-qualified string name of the Parameter
to look for. (See ``get_submodule`` for how to specify a
fully-qualified string.)
Returns:
torch.nn.Parameter: The Parameter referenced by ``target``
Raises:
AttributeError: If the target string references an invalid
path or resolves to something that is not an
``nn.Parameter``
"""
module_path, _, param_name = target.rpartition(".")
mod: torch.nn.Module = self.get_submodule(module_path)
if not hasattr(mod, param_name):
raise AttributeError(mod._get_name() + " has no attribute `"
+ param_name + "`")
param: torch.nn.Parameter = getattr(mod, param_name)
if not isinstance(param, torch.nn.Parameter):
raise AttributeError("`" + param_name + "` is not an "
"nn.Parameter")
return param
|
(self, target: str) -> torch.nn.parameter.Parameter
|
[
0.0672137588262558,
0.017123166471719742,
0.01096841786056757,
0.009485239163041115,
0.02998330257833004,
0.00040826271288096905,
0.0363423228263855,
0.028935307636857033,
-0.001411018194630742,
-0.01646594889461994,
0.008619311265647411,
-0.009902660734951496,
0.0025222920812666416,
-0.029112935066223145,
-0.004416231531649828,
0.03131549805402756,
0.049912963062524796,
0.06867028772830963,
-0.049309033900499344,
0.003989928402006626,
0.04056982323527336,
0.024583466351032257,
0.027709687128663063,
0.012691392563283443,
-0.016057409346103668,
-0.02239866368472576,
0.04941561073064804,
-0.015284734778106213,
0.0029241712763905525,
-0.02650182880461216,
-0.037017300724983215,
-0.03280755877494812,
0.020675690844655037,
0.07211624085903168,
-0.04060535132884979,
0.08966571092605591,
0.001935015432536602,
0.08170805126428604,
-0.07360830157995224,
-0.048172228038311005,
-0.05321681126952171,
-0.010515470989048481,
0.05861664563417435,
0.011190450750291348,
0.029681337997317314,
0.004460637923330069,
0.019361255690455437,
0.004316316917538643,
-0.09378663450479507,
0.03277203440666199,
0.061920493841171265,
0.020498063415288925,
-0.033020712435245514,
-0.06597036868333817,
-0.05009058862924576,
0.006785321049392223,
0.03925539180636406,
0.019379017874598503,
0.034281857311725616,
0.04724856838583946,
0.02847347967326641,
-0.020107286050915718,
0.001949447556398809,
0.02701694518327713,
-0.02790507674217224,
-0.029716864228248596,
-0.018277736380696297,
-0.043376319110393524,
-0.046999894082546234,
0.05577462911605835,
-0.004189758095890284,
-0.012638104148209095,
-0.007673452142626047,
0.013783792965114117,
0.00662545720115304,
-0.03836726024746895,
-0.0025755800306797028,
-0.03797648102045059,
-0.0011201552115380764,
-0.013845962472259998,
-0.013028882443904877,
0.009334256872534752,
-0.012185157276690006,
-0.030445130541920662,
-0.007362606003880501,
-0.06387438625097275,
-0.04188425838947296,
-0.046999894082546234,
0.021670397371053696,
-0.045117054134607315,
-0.08369746804237366,
0.009449713863432407,
0.015622224658727646,
0.028455717489123344,
0.032256919890642166,
-0.05879427492618561,
0.014245621860027313,
0.031937193125486374,
-0.02541830949485302,
-0.028455717489123344,
-0.015933070331811905,
0.04103165119886398,
0.007748943287879229,
0.061352089047431946,
0.06632562726736069,
-0.041209280490875244,
0.0017207538476213813,
0.03129773586988449,
0.043980248272418976,
-0.03474368527531624,
-0.05286155641078949,
0.043838147073984146,
-0.07822658121585846,
0.01096841786056757,
0.044264450669288635,
-0.04763934761285782,
-0.007877722382545471,
0.0053820740431547165,
-0.0591140016913414,
0.004773704335093498,
0.0077755870297551155,
0.07396355271339417,
-0.03374897688627243,
-0.04501048102974892,
0.04380262270569801,
-0.026519592851400375,
-0.01657252386212349,
-0.018792852759361267,
0.01888166554272175,
-0.08618423342704773,
0.02131514437496662,
-0.007047319784760475,
-0.088457852602005,
0.012611460871994495,
-0.01395253837108612,
0.017727095633745193,
0.0029175104573369026,
0.08355536311864853,
-0.01976979710161686,
0.000580615655053407,
0.027940601110458374,
0.05623645707964897,
-0.030445130541920662,
-0.026750506833195686,
0.014361078850924969,
-0.02758534997701645,
0.04348289594054222,
0.003252779832109809,
0.01426338404417038,
0.010391132906079292,
-0.04025009647011757,
-0.06422963738441467,
0.02028491161763668,
-0.032452307641506195,
-0.024299263954162598,
-0.01637713611125946,
0.039468541741371155,
0.01868627592921257,
0.0025311734061688185,
-0.03561405465006828,
0.013339728116989136,
0.012265088967978954,
-0.027940601110458374,
-0.03284308686852455,
-0.0004138135409448296,
0.01169668510556221,
0.0053421081975102425,
0.019503356888890266,
0.0050268215127289295,
-0.000313066178932786,
-0.020320437848567963,
-0.00818856805562973,
-0.02447689138352871,
0.011190450750291348,
0.0031195601914077997,
-0.00005072060594102368,
0.020036235451698303,
-0.014929482713341713,
0.026981420814990997,
0.04906035587191582,
0.07122810930013657,
0.013597286306321621,
0.02923727221786976,
-0.05822587013244629,
0.012504884973168373,
0.03184837847948074,
0.025436071678996086,
0.036075882613658905,
-0.06934527307748795,
0.01748730055987835,
0.014352196827530861,
0.010879605077207088,
0.02330455742776394,
0.02861558087170124,
-0.0536431148648262,
-0.013819318264722824,
0.03374897688627243,
0.03064052015542984,
0.017496181651949883,
0.08383956551551819,
0.04611176252365112,
0.0247966181486845,
0.0022869373206049204,
0.04753277078270912,
-0.05058794096112251,
-0.037159401923418045,
0.057302214205265045,
0.03723045065999031,
-0.016989946365356445,
-0.004991296213120222,
-0.004100944846868515,
-0.05392731353640556,
0.046005185693502426,
0.03726597875356674,
0.015098227187991142,
-0.022185511887073517,
-0.05616540461778641,
-0.0031484244391322136,
0.04778144881129265,
0.014503179118037224,
0.03154641389846802,
-0.00010865728108910844,
0.07183203846216202,
0.05644960701465607,
0.004396248608827591,
-0.032363492995500565,
0.009036732837557793,
-0.004056538455188274,
-0.03691072389483452,
-0.04547230899333954,
0.049593236297369,
-0.04973533749580383,
0.0067142704501748085,
0.003443727968260646,
0.08142384886741638,
-0.0020637945272028446,
0.0021070907823741436,
-0.0030152047984302044,
0.024317028000950813,
-0.013055525720119476,
-0.003639116883277893,
0.0068386089988052845,
0.0019028206588700414,
0.0604284331202507,
-0.016021883115172386,
-0.023002592846751213,
-0.005888308864086866,
0.020267149433493614,
0.010995062068104744,
0.010000355541706085,
0.04362499713897705,
0.07780027389526367,
-0.043518420308828354,
-0.008521617390215397,
-0.018108991906046867,
-0.04216846078634262,
-0.058296918869018555,
-0.005635191220790148,
-0.01449429802596569,
0.02536502107977867,
-0.08547373116016388,
-0.08533162623643875,
0.014680805616080761,
0.030658282339572906,
0.009156630374491215,
-0.030853671953082085,
-0.047745924443006516,
0.015639986842870712,
0.008677040226757526,
-0.04103165119886398,
0.08248960971832275,
0.010630927979946136,
-0.015098227187991142,
-0.0065233223140239716,
0.02856229431927204,
-0.06657429784536362,
0.027354435995221138,
0.03964616730809212,
0.001954998355358839,
0.023499947041273117,
0.01412128284573555,
-0.05261288210749626,
0.014671924524009228,
-0.0055552595295012,
-0.008095313794910908,
0.06241784617304802,
-0.0041298093274235725,
-0.042239509522914886,
-0.00647003436461091,
0.043092116713523865,
-0.010790792293846607,
0.0038456073962152004,
-0.0564851313829422,
0.018108991906046867,
-0.015648867934942245,
0.031102348119020462,
-0.038580410182476044,
-0.010684216395020485,
0.04227503761649132,
-0.021919073536992073,
0.017469536513090134,
-0.0247966181486845,
-0.056733809411525726,
0.009063377045094967,
-0.07090838253498077,
0.010604284703731537,
0.062488898634910583,
-0.0496998131275177,
0.0028264769352972507,
0.0018739564111456275,
0.039184339344501495,
0.03605812042951584,
0.04113822802901268,
0.021954597905278206,
0.061636291444301605,
-0.014023588970303535,
0.02667945623397827,
-0.02211446315050125,
0.019379017874598503,
0.04000142216682434,
0.007207183167338371,
0.09378663450479507,
0.016563642770051956,
-0.0042608086951076984,
-0.01635049283504486,
-0.025258446112275124,
-0.08014494180679321,
0.03351806476712227,
-0.024459127336740494,
0.034566059708595276,
-0.07080180197954178,
0.015755444765090942,
0.025684749707579613,
-0.002009396441280842,
-0.036875199526548386,
-0.0020982094574719667,
0.01985860988497734,
0.049770861864089966,
0.06515329331159592,
0.012646985240280628,
0.08227645605802536,
-0.08149490505456924,
-0.01737184263765812,
0.00795765407383442,
0.048456426709890366,
0.020817790180444717,
0.011172688566148281,
0.01971650868654251,
0.058296918869018555,
-0.05723116174340248,
-0.02564922347664833,
-0.012700273655354977,
0.008073111064732075,
-0.028260329738259315,
0.0005031817127019167,
-0.04994848743081093,
-0.004662687890231609,
0.02325127087533474,
-0.011092755943536758,
-0.009671746753156185,
0.021350668743252754,
-0.039468541741371155,
0.0007343733450397849,
0.009813847951591015,
0.001033007400110364,
0.0009453044622205198,
-0.018135635182261467,
-0.030747095122933388,
0.03893566504120827,
-0.01900600455701351,
-0.0023113610222935677,
-0.05065899342298508,
-0.004362943582236767,
-0.006740914192050695,
-0.015622224658727646,
0.0034526092931628227,
-0.029485950246453285,
-0.01536466646939516,
0.021865785121917725,
-0.014973889105021954,
0.04767487198114395,
-0.007939890958368778,
0.010737503878772259,
0.008641514927148819,
-0.041777681559324265,
-0.05595225468277931,
0.02071121521294117,
-0.04891825467348099,
0.009582933969795704,
-0.015382429584860802,
-0.010995062068104744,
-0.023890724405646324,
0.030107641592621803,
0.04522363096475601,
-0.005333226639777422,
-0.041351381689310074,
0.0073404028080403805,
-0.008961241692304611,
-0.04596966132521629,
0.023269033059477806,
0.035134464502334595,
-0.028509005904197693,
-0.04248818755149841,
0.05218657851219177,
-0.00044351042015478015,
-0.01779814623296261,
0.058439020067453384,
0.05588120222091675,
-0.04618281126022339,
-0.043234217911958694,
-0.05058794096112251,
-0.011874311603605747,
-0.04778144881129265,
-0.007353724911808968,
0.01202529389411211,
0.027123522013425827,
0.02371309883892536,
0.01825997419655323,
0.007322640158236027,
-0.030906958505511284,
0.031244449317455292,
-0.05009058862924576,
0.021332906559109688,
-0.006185832433402538,
-0.004960211925208569,
0.06835056096315384,
-0.019077055156230927,
0.026253152638673782,
-0.009982592426240444,
0.03453053534030914,
-0.09947067499160767,
0.02062240242958069,
0.0012955610873177648,
-0.04493942856788635,
0.04518810659646988,
-0.051937900483608246,
-0.035187751054763794,
0.05986003205180168,
-0.010382251814007759,
-0.017167571932077408,
-0.014458772726356983,
-0.014867313206195831,
-0.005937155801802874,
0.03421080857515335,
-0.020409250631928444,
-0.013455185107886791,
0.00028697733068838716,
0.049770861864089966,
-0.04096060246229172,
-0.051227398216724396,
-0.02080002799630165,
0.01134143304079771,
0.09669970721006393,
-0.03421080857515335,
0.054708871990442276,
-0.11503072828054428,
-0.062204696238040924,
0.015844257548451424,
0.058154817670583725,
0.008095313794910908,
-0.020125048235058784,
0.06021528318524361,
0.057408787310123444,
-0.045827560126781464,
-0.051795799285173416,
-0.016297204419970512,
0.08064229786396027,
-0.019982947036623955,
-0.0019616594072431326,
-0.008823581971228123,
0.013970300555229187,
-0.01774485781788826,
-0.015266972593963146,
-0.027620874345302582,
-0.023073643445968628,
0.005350989289581776,
0.01748730055987835,
0.06348360329866409,
0.03444172069430351,
0.016616931185126305,
0.0025955629535019398,
-0.004898042418062687,
0.0071894205175340176,
0.03625350818037987,
-0.014272265136241913,
-0.027691924944519997,
-0.05762194097042084,
0.06927421689033508,
-0.02898859605193138,
-0.04639596492052078,
-0.020675690844655037,
0.05943372845649719,
0.027425486594438553,
0.027123522013425827,
-0.048172228038311005,
-0.012096344493329525,
0.012549291364848614,
0.049309033900499344,
0.020071761682629585,
0.0363423228263855,
-0.004103165119886398,
0.0044206720776855946,
0.018135635182261467,
-0.016510356217622757,
0.02296706847846508,
-0.08796049654483795,
-0.006971828639507294,
0.03175956383347511,
0.0068785748444497585,
0.014254502952098846,
-0.0004415676521603018,
0.04941561073064804,
-0.026661694049835205,
0.05747983977198601,
-0.02650182880461216,
0.02861558087170124,
-0.01905929110944271,
0.025666985660791397,
0.02721233479678631,
0.006607694551348686,
-0.006740914192050695,
0.00348369381390512,
0.008437244221568108,
-0.0456499345600605,
-0.0029374933801591396,
-0.015409072861075401,
-0.07122810930013657,
-0.04248818755149841,
-0.04767487198114395,
0.03270098567008972,
0.039610642939805984,
-0.02117304317653179,
-0.0011878752848133445,
0.009156630374491215,
0.004060979001224041,
0.03723045065999031,
-0.049024831503629684,
-0.00016430423420388252,
-0.039894845336675644,
0.026661694049835205,
0.0013210949255153537,
-0.024814380332827568,
-0.01101282425224781,
0.032736510038375854,
0.005417599342763424,
0.01900600455701351,
-0.038331735879182816,
0.06362570822238922,
-0.001863964949734509,
0.03648442402482033,
0.010257912799715996,
0.0011701126350089908,
-0.08966571092605591,
-0.029343849048018456,
0.03309176117181778,
0.015115990303456783,
0.014352196827530861,
0.027230096980929375,
-0.03872251138091087,
0.042665813118219376,
0.005062346812337637,
-0.046999894082546234,
0.05755088850855827,
0.09328927844762802,
-0.02781626395881176,
-0.0482788011431694,
-0.01165227871388197,
-0.01390813197940588,
0.009076698683202267,
-0.03719492629170418,
0.04362499713897705,
0.03417528048157692,
0.009121106006205082,
0.022203275933861732,
0.01731855422258377,
0.046573590487241745,
0.0525418296456337,
0.007145014125853777,
-0.013526235707104206,
0.057408787310123444,
0.02467227913439274,
-0.012726917862892151,
0.02334008365869522,
0.04128032922744751,
-0.05215105414390564,
0.0336601659655571,
-0.0335535891354084,
-0.006705389358103275,
0.0013965860707685351,
-0.03351806476712227,
-0.013570642098784447,
0.0187750905752182,
0.04010799527168274,
-0.00452280743047595,
0.05446019396185875,
-0.0017707112710922956,
-0.06888344138860703,
0.006145866587758064,
0.07559771090745926,
-0.018135635182261467,
-0.019183630123734474,
-0.02310916967689991,
0.010559877380728722,
0.02142171934247017,
0.007788909133523703,
-0.03522327542304993,
-0.022629577666521072,
-0.04618281126022339,
-0.005759529769420624,
-0.02419268898665905,
-0.009725034236907959,
-0.06334150582551956,
-0.041955310851335526,
-0.04753277078270912,
-0.041635580360889435,
0.028509005904197693,
-0.012194039300084114,
0.0009719483787193894,
0.004955770913511515,
-0.05335891246795654,
-0.015533411875367165,
0.06771110743284225,
-0.003215034259483218,
0.021688159555196762,
-0.044406551867723465,
-0.008854665793478489,
-0.027709687128663063,
-0.08547373116016388,
-0.017842551693320274,
-0.023517709225416183,
-0.032967422157526016,
-0.020160574465990067,
0.02197236195206642,
-0.006385662127286196,
-0.06117446348071098,
-0.032594408839941025,
0.05993108078837395,
-0.044974952936172485,
0.004207520745694637,
0.049593236297369,
0.013366371393203735,
0.04607623815536499,
-0.04834985360503197,
-0.028313616290688515,
0.013055525720119476,
-0.006847490090876818,
0.013455185107886791,
-0.01343742199242115,
0.04710647091269493,
-0.011421364732086658,
-0.006487797014415264,
0.03003659099340439,
-0.024157162755727768,
0.032114818692207336,
0.07065970450639725,
-0.09975487738847733,
0.0007593519985675812,
0.030906958505511284,
0.04820775240659714,
-0.010231269523501396,
0.0011173798702657223,
-0.050197165459394455,
0.010808554477989674,
-0.006039290688931942,
-0.036448895931243896,
-0.030089879408478737,
-0.05446019396185875,
-0.07158336043357849,
-0.02612881362438202,
0.007664570584893227,
-0.014227858744561672,
-0.027709687128663063,
-0.013774911873042583,
-0.07431880384683609,
0.0023801911156624556,
-0.010009236633777618,
-0.0038855732418596745,
-0.005253294948488474,
0.012575935572385788,
0.05026821419596672,
0.055277273058891296,
0.017895840108394623,
-0.019752033054828644,
0.07851078361272812,
0.01390813197940588,
0.06280862540006638,
-0.015702156350016594,
-0.03078262135386467,
0.010204625315964222,
-0.011749973520636559,
-0.05854559689760208,
0.007868840359151363,
-0.011323670856654644,
0.03559629246592522,
-0.013730505481362343,
-0.04248818755149841,
-0.01275356113910675,
-0.016057409346103668,
-0.002395733492448926,
0.03854488581418991,
-0.0004479510826058686,
-0.037301503121852875,
-0.05712458863854408,
-0.015586699359118938,
-0.037905432283878326,
0.009121106006205082,
0.016838964074850082,
-0.028633344918489456,
-0.03783437982201576,
-0.029166223481297493,
-0.007327080704271793,
-0.010337845422327518,
0.020675690844655037,
-0.08149490505456924,
0.039184339344501495,
0.035365376621484756,
-0.0416000559926033,
0.011368077248334885,
-0.03939749300479889,
0.004787025973200798,
-0.017336318269371986,
-0.023269033059477806,
0.07403460144996643,
0.0037945397198200226,
0.03506341204047203,
0.03522327542304993,
0.01395253837108612,
-0.006585491355508566,
-0.0020138369873166084,
0.007411453407257795,
0.018277736380696297,
0.044264450669288635,
-0.03996589407324791,
-0.01626167818903923,
0.019503356888890266,
-0.04074745252728462,
0.05442466959357262,
0.004600518848747015,
0.007784468587487936,
0.017336318269371986,
-0.0160929337143898,
0.09044726192951202,
-0.00537763349711895,
-0.006581050809472799,
0.04071192443370819,
0.03248783200979233,
-0.04042772203683853,
-0.05854559689760208,
0.05012611299753189,
-0.04355394467711449,
0.02969910204410553,
-0.009893779642879963,
0.03993036970496178,
0.01774485781788826,
0.013126576319336891,
-0.031102348119020462,
-0.004738179035484791,
0.009138868190348148,
-0.02607552707195282,
-0.019805321469902992,
-0.07751607149839401,
0.0031684073619544506,
0.05229315534234047,
-0.01548900455236435,
-0.026857081800699234,
0.005080109462141991,
-0.021101992577314377,
-0.022842729464173317
] |
10,056
|
sentence_transformers.SentenceTransformer
|
get_sentence_embedding_dimension
|
:return: The number of dimensions in the output of `encode`. If it's not known, it's `None`.
|
def get_sentence_embedding_dimension(self) -> Optional[int]:
"""
:return: The number of dimensions in the output of `encode`. If it's not known, it's `None`.
"""
output_dim = None
for mod in reversed(self._modules.values()):
sent_embedding_dim_method = getattr(mod, "get_sentence_embedding_dimension", None)
if callable(sent_embedding_dim_method):
output_dim = sent_embedding_dim_method()
break
if self.truncate_dim is not None:
# The user requested truncation. If they set it to a dim greater than output_dim,
# no truncation will actually happen. So return output_dim insead of self.truncate_dim
return min(output_dim or np.inf, self.truncate_dim)
return output_dim
|
(self) -> Optional[int]
|
[
-0.00827173050493002,
-0.022289574146270752,
-0.00940759014338255,
0.046253982931375504,
0.035937707871198654,
0.06403575837612152,
0.0008758368203416467,
-0.0035902070812880993,
0.06620948016643524,
0.0060490090399980545,
0.006516715977340937,
-0.07604468613862991,
-0.05252571031451225,
-0.0593675933778286,
0.0321960523724556,
0.050209447741508484,
0.0373452827334404,
-0.02204013057053089,
0.02538980357348919,
-0.01610693521797657,
0.011412047781050205,
-0.010815165005624294,
-0.035046838223934174,
-0.06556805223226547,
-0.031055737286806107,
0.008730528876185417,
0.03673949092626572,
-0.03802234306931496,
0.0196525976061821,
0.001451004995033145,
-0.030218319967389107,
-0.04286867752671242,
0.04600454121828079,
0.04222724959254265,
-0.022806279361248016,
-0.01718488708138466,
-0.0037616996560245752,
-0.022200487554073334,
-0.0705212876200676,
-0.04832080379128456,
-0.04119384288787842,
-0.03991098701953888,
0.06802685558795929,
-0.0013229423202574253,
-0.027723882347345352,
0.0012995570432394743,
-0.006530079059302807,
0.014654816128313541,
-0.04753683879971504,
-0.001648109988309443,
0.01970604993402958,
-0.04956802353262901,
-0.00011205477494513616,
0.002387532265856862,
-0.049532387405633926,
0.027082456275820732,
0.010084651410579681,
0.010868617333471775,
-0.033959973603487015,
-0.019296249374747276,
-0.011242782697081566,
0.009051241911947727,
0.049425482749938965,
0.005581302102655172,
-0.008311819285154343,
0.044044625014066696,
-0.009550129063427448,
0.05968830734491348,
0.003514483105391264,
0.03004014492034912,
-0.001097440836019814,
-0.04169273003935814,
-0.03214259818196297,
0.06289543956518173,
-0.026761742308735847,
-0.013327418826520443,
-0.007438766770064831,
0.0024766193237155676,
0.032784026116132736,
-0.006356359459459782,
0.04016043245792389,
0.042904313653707504,
0.017309609800577164,
0.013380871154367924,
0.10212936997413635,
-0.059652674943208694,
-0.009603581391274929,
0.0618620328605175,
-0.012819623574614525,
-0.04065931960940361,
-0.02661920338869095,
0.0705212876200676,
0.08523846417665482,
0.029772885143756866,
-0.0234120711684227,
0.03280184417963028,
-0.019153710454702377,
-0.04055241495370865,
-0.004984419327229261,
-0.05398673936724663,
-0.024196036159992218,
0.09229415655136108,
0.03520719334483147,
0.031501173973083496,
-0.023625880479812622,
-0.003530073445290327,
0.0015824083238840103,
-0.03926956281065941,
-0.01571495085954666,
0.03759472444653511,
0.02366151474416256,
-0.011216056533157825,
0.01581294648349285,
0.0437595471739769,
0.04130074754357338,
-0.06097115948796272,
-0.02647666446864605,
0.04005352780222893,
0.01817375421524048,
0.043046850711107254,
-0.018708275631070137,
0.03280184417963028,
-0.037523455917835236,
-0.08858814090490341,
0.06417829543352127,
0.04579073190689087,
0.0007550125592388213,
0.004191544838249683,
0.02859693579375744,
-0.054271817207336426,
0.04846334457397461,
-0.027153726667165756,
0.005224954336881638,
0.02123834751546383,
0.04475732147693634,
-0.0072026862762868404,
0.019688233733177185,
0.02380405366420746,
-0.02533635124564171,
0.00357461697421968,
-0.008133645169436932,
0.029755067080259323,
0.011616948060691357,
0.001024500816129148,
-0.055554669350385666,
0.040588051080703735,
0.031982243061065674,
-0.040623683482408524,
0.017327426001429558,
-0.04657469689846039,
0.004443215671926737,
-0.07768388837575912,
-0.02920272760093212,
-0.030414311215281487,
-0.013443232513964176,
0.03166152909398079,
0.015412055887281895,
-0.039946623146533966,
0.019634781405329704,
-0.02489091455936432,
-0.05808474123477936,
-0.04607580974698067,
-0.013746128417551517,
-0.013781762681901455,
-0.011643674224615097,
0.016864174976944923,
0.05605355650186539,
-0.010467725805938244,
-0.011082425713539124,
0.05673062056303024,
0.027634795755147934,
0.05993775278329849,
0.027884239330887794,
-0.023376435041427612,
0.0007661484414711595,
0.09963493049144745,
-0.00810246542096138,
-0.020080216228961945,
-0.03410251438617706,
0.05202682316303253,
0.01649891771376133,
-0.0030467764008790255,
-0.053879834711551666,
0.006953242234885693,
0.013826306909322739,
0.02148779109120369,
0.01698889583349228,
0.02608468197286129,
-0.0328909307718277,
-0.0026414303574711084,
0.01422719843685627,
-0.024481115862727165,
0.03369271382689476,
-0.006004465743899345,
-0.050209447741508484,
0.010993339121341705,
0.007126962300390005,
-0.017220523208379745,
-0.017772862687706947,
-0.05216936394572258,
-0.014832990244030952,
-0.017363062128424644,
0.012017839588224888,
0.0017093573696911335,
-0.027242813259363174,
0.02474837563931942,
-0.00512695824727416,
0.03328291326761246,
-0.10248571634292603,
-0.028080230578780174,
-0.048534613102674484,
-0.08915829658508301,
0.07355024665594101,
-0.011028974317014217,
0.06920280307531357,
-0.045576922595500946,
-0.009069059044122696,
0.029630344361066818,
-0.028864197432994843,
-0.011269508861005306,
0.04896223172545433,
-0.0015701588708907366,
0.053915467113256454,
0.017131434753537178,
-0.008819615468382835,
-0.04450787976384163,
0.019937677308917046,
0.00951449479907751,
0.0293987188488245,
-0.016329651698470116,
0.012534544803202152,
0.07237429916858673,
-0.027741700410842896,
0.03265930339694023,
0.057478949427604675,
0.003946555312722921,
-0.004432079382240772,
-0.0431893914937973,
0.06032973527908325,
-0.053523484617471695,
-0.00797774363309145,
0.0012138107558712363,
-0.024178219959139824,
0.0373452827334404,
-0.051100317388772964,
0.013247241266071796,
0.012783988378942013,
0.021006720140576363,
0.015866398811340332,
0.006311815697699785,
-0.03955464065074921,
-0.06114933639764786,
-0.023732783272862434,
-0.0028708295430988073,
0.0512784942984581,
-0.0038752856198698282,
-0.047893185168504715,
0.03492211550474167,
0.006169276777654886,
0.0018251704750582576,
-0.012187105603516102,
0.03403124585747719,
-0.013888667337596416,
0.040730588138103485,
-0.004922058433294296,
0.010316277854144573,
0.003015595953911543,
-0.011697126552462578,
-0.014539002440869808,
0.016142569482326508,
-0.03180406987667084,
0.10512269288301468,
-0.010414273478090763,
-0.08851686865091324,
0.014832990244030952,
-0.053131502121686935,
0.03877067565917969,
0.015741677954792976,
0.00033658192842267454,
0.08317165076732635,
0.007309590466320515,
-0.0875190943479538,
-0.0147706288844347,
0.013612497597932816,
0.003302901517599821,
0.023946592584252357,
-0.013033431954681873,
-0.05983084812760353,
0.033069103956222534,
-0.026654837653040886,
0.0010451021371409297,
0.02089981734752655,
0.04757247120141983,
0.060792986303567886,
-0.06154131889343262,
-0.05847672373056412,
0.009104694239795208,
-0.016427647322416306,
0.05284642428159714,
0.02089981734752655,
-0.017309609800577164,
0.008360817097127438,
0.013256149366497993,
0.05113595351576805,
0.01429846789687872,
0.019349701702594757,
0.060686081647872925,
-0.0025189355947077274,
0.051100317388772964,
-0.016516733914613724,
-0.05883307382464409,
0.0068908813409507275,
-0.0027260631322860718,
-0.008957700803875923,
0.03745218738913536,
0.051848649978637695,
0.06136314570903778,
0.032784026116132736,
-0.03716710954904556,
0.09015607088804245,
0.03383525460958481,
0.012115836143493652,
0.032285138964653015,
-0.00827173050493002,
0.02628067322075367,
-0.047750648111104965,
0.09136765450239182,
-0.024124767631292343,
0.06923843920230865,
-0.05085087567567825,
-0.047109220176935196,
-0.05270388349890709,
-0.0025389802176505327,
-0.006601348519325256,
-0.03591988980770111,
-0.048392072319984436,
0.002072386909276247,
-0.007113599218428135,
0.00010927080438705161,
-0.027706066146492958,
0.020080216228961945,
-0.04383081570267677,
-0.030556850135326385,
0.055839747190475464,
0.02973724901676178,
0.010369730181992054,
0.04311812296509743,
-0.03028958849608898,
-0.001967709744349122,
0.03369271382689476,
0.011091334745287895,
0.020365294069051743,
0.03695330023765564,
0.00354566378518939,
0.006944333668798208,
0.021505609154701233,
0.011216056533157825,
0.015135886147618294,
-0.03998225927352905,
0.04233415424823761,
-0.00005299982149153948,
0.031732797622680664,
-0.012169287540018559,
0.027652613818645477,
-0.052988965064287186,
0.035599175840616226,
-0.00023663741012569517,
-0.020472198724746704,
0.051599204540252686,
0.029416536912322044,
-0.033371999859809875,
-0.024677107110619545,
-0.008013377897441387,
0.011429865844547749,
-0.00468152342364192,
0.0713408887386322,
-0.09172400087118149,
0.02416040189564228,
-0.03966154530644417,
-0.024338575080037117,
-0.040089163929224014,
0.006828520447015762,
-0.019581329077482224,
-0.026565751060843468,
0.015162612311542034,
0.0020055717322975397,
-0.026441030204296112,
-0.05487760901451111,
-0.014360828325152397,
0.014957712031900883,
-0.02658356912434101,
0.013683767057955265,
-0.05024508386850357,
0.009425407275557518,
-0.04254796355962753,
0.024623654782772064,
-0.05715823546051979,
0.02706463821232319,
0.03321164473891258,
0.030343040823936462,
0.018850814551115036,
-0.017487782984972,
0.027082456275820732,
0.08865940570831299,
-0.026066863909363747,
0.011768396012485027,
0.006187093909829855,
0.05053016170859337,
-0.00911805685609579,
0.011625857092440128,
-0.027652613818645477,
0.021897591650485992,
-0.03472612425684929,
-0.006258363835513592,
-0.02519381046295166,
-0.04172836244106293,
-0.001905348733998835,
0.009639216586947441,
0.0021848592441529036,
-0.024231672286987305,
-0.007844112813472748,
0.05487760901451111,
0.07732754200696945,
0.02875729277729988,
0.0005729409167543054,
0.0006353018688969314,
-0.06977295875549316,
-0.007082418538630009,
-0.0016614730702713132,
-0.01625838316977024,
-0.0866638571023941,
-0.0051893191412091255,
-0.02050783298909664,
-0.003249449422582984,
-0.0006497785216197371,
0.009055696427822113,
0.012810714542865753,
0.00184298784006387,
-0.042761772871017456,
0.01847665011882782,
0.03338981792330742,
0.010930977761745453,
0.0234120711684227,
0.0546281635761261,
0.07258810847997665,
-0.021576877683401108,
-0.039839718490839005,
0.04985310137271881,
-0.03240986168384552,
-0.045434385538101196,
0.015590230002999306,
-0.0434744693338871,
0.022200487554073334,
-0.005269497632980347,
0.026441030204296112,
-0.04689541086554527,
0.003418714739382267,
-0.0012683765962719917,
-0.040730588138103485,
-0.028240587562322617,
-0.05077960714697838,
0.05776402726769447,
-0.027492256835103035,
0.02647666446864605,
0.023982226848602295,
0.03093101643025875,
-0.000054774602176621556,
-0.041372016072273254,
-0.03251676633954048,
0.024712741374969482,
0.08302910625934601,
0.036080244928598404,
0.031251728534698486,
-0.03898448124527931,
0.043438833206892014,
-0.026155950501561165,
0.017122525721788406,
-0.0033140373416244984,
0.0013040113262832165,
0.01575949601829052,
-0.016080208122730255,
-0.004550119861960411,
-0.04293994605541229,
-0.021719416603446007,
-0.012739445082843304,
0.0026971097104251385,
-0.05085087567567825,
-0.018494466319680214,
0.04051677882671356,
0.03848559409379959,
-0.020828546956181526,
0.06036537140607834,
0.02594214305281639,
-0.061078064143657684,
0.036044612526893616,
-0.020810728892683983,
0.03233858942985535,
0.01439646352082491,
0.02065037377178669,
0.03458358347415924,
-0.025870872661471367,
0.012534544803202152,
0.0024253942538052797,
-0.055839747190475464,
-0.01858355477452278,
-0.010440999642014503,
-0.043153755366802216,
0.012997797690331936,
0.00021213848958723247,
0.03777289763092995,
-0.030895380303263664,
0.01170603558421135,
0.00972830317914486,
-0.005265043117105961,
0.04336756467819214,
0.010547904297709465,
0.007006694562733173,
0.01812921091914177,
0.046360887587070465,
0.03004014492034912,
-0.002844103379175067,
0.021452156826853752,
-0.023180443793535233,
-0.04846334457397461,
0.00012611382408067584,
0.007670393213629723,
0.0058396547101438046,
-0.026547934859991074,
-0.02474837563931942,
0.051064684987068176,
-0.016472190618515015,
-0.0048017906956374645,
-0.005937650334089994,
0.08645004779100418,
0.02227175608277321,
0.020115850493311882,
-0.050565797835588455,
-0.005429854150861502,
0.007946562953293324,
0.048285167664289474,
-0.10319840908050537,
-0.07982197403907776,
-0.0026347488164901733,
-0.02998669259250164,
0.02123834751546383,
0.023839687928557396,
0.004044550936669111,
0.06881082057952881,
0.010708260349929333,
-0.0000033538133266119985,
-0.07918054610490799,
0.01524278987199068,
0.0543430857360363,
-0.011082425713539124,
0.05341657996177673,
0.000505847274325788,
0.009100239723920822,
-0.006316270213574171,
0.02120271325111389,
0.01499334629625082,
0.01227619219571352,
-0.0188151802867651,
0.031447719782590866,
-0.027973325923085213,
-0.005242771469056606,
0.012338553555309772,
-0.04522057622671127,
0.00008866943244356662,
-0.08452577143907547,
0.055697210133075714,
-0.03517155721783638,
0.012783988378942013,
-0.0451493039727211,
-0.004726066719740629,
0.00290200999006629,
0.0330156534910202,
-0.010138103738427162,
0.0008691552793607116,
0.022984452545642853,
-0.001022273674607277,
0.015456599183380604,
0.007563488557934761,
0.04222724959254265,
0.05195555463433266,
-0.026939917355775833,
0.0200623981654644,
-0.0018853042274713516,
-0.04115820676088333,
-0.013719402253627777,
0.014120293781161308,
-0.04094439744949341,
0.007875293493270874,
0.031732797622680664,
-0.0005275622243061662,
0.0632517859339714,
0.025175994262099266,
-0.05195555463433266,
0.0000821271023596637,
0.018316293135285378,
-0.0540580078959465,
-0.009621398523449898,
-0.001924279727973044,
-0.022253939881920815,
0.07640103250741959,
0.06599567085504532,
-0.04408026114106178,
-0.010503360070288181,
0.046752870082855225,
-0.007456584367901087,
-0.046610333025455475,
-0.06253909319639206,
-0.03948337212204933,
-0.012044565752148628,
-0.1028420627117157,
-0.07126962393522263,
-0.054022371768951416,
0.0560179241001606,
-0.016463283449411392,
0.06139877811074257,
-0.032534580677747726,
0.0702362135052681,
0.04044551029801369,
-0.02920272760093212,
-0.03077065944671631,
-0.0060000112280249596,
0.04906913638114929,
-0.024463297799229622,
-0.023144809529185295,
0.0009799572871997952,
-0.043046850711107254,
0.012311827391386032,
0.015322968363761902,
0.04094439744949341,
-0.06834756582975388,
0.005389765370637178,
0.027100274339318275,
-0.03647222742438316,
-0.030539032071828842,
0.012267284095287323,
0.03171498328447342,
0.0624321885406971,
0.03552790731191635,
-0.023786235600709915,
-0.005216045305132866,
-0.005429854150861502,
0.026351941749453545,
0.004554574377834797,
-0.002076841425150633,
-0.005171502009034157,
-0.008579080924391747,
-0.032231684774160385,
-0.01484189834445715,
0.0624321885406971,
-0.0652117058634758,
0.037274010479450226,
-0.04447224363684654,
0.028187135234475136,
0.012240557931363583,
-0.018004488199949265,
-0.0702362135052681,
-0.00214365660212934,
-0.0192249808460474,
-0.016908718273043633,
-0.025407619774341583,
0.029327448457479477,
-0.03695330023765564,
-0.022717192769050598,
-0.055412132292985916,
0.036436595022678375,
-0.08374180644750595,
-0.031982243061065674,
0.014262832701206207,
-0.010022290982306004,
-0.023590244352817535,
-0.032534580677747726,
0.017763953655958176,
0.010993339121341705,
0.03805797919631004,
0.06781304627656937,
-0.016142569482326508,
-0.008120282553136349,
0.012356370687484741,
-0.004953238647431135,
-0.011198239400982857,
-0.018164845183491707,
-0.01680181361734867,
-0.04415152966976166,
-0.015590230002999306,
0.0003463258035480976,
0.005777293816208839,
-0.017621414735913277,
-0.037523455917835236,
0.008922065608203411,
-0.03912702202796936,
0.04286867752671242,
-0.047394298017024994,
-0.002730517415329814,
-0.00921159889549017,
-0.019991129636764526,
0.002621385734528303,
0.011697126552462578,
0.002770606428384781,
-0.06179076060652733,
-0.06389321386814117,
-0.019991129636764526,
0.017416514456272125,
-0.04155018925666809,
0.008066830225288868,
-0.048142630606889725,
0.04447224363684654,
0.006766159553080797,
-0.0032761753536760807,
0.042512331157922745,
-0.03670385479927063,
-0.03180406987667084,
0.05270388349890709,
-0.020721642300486565,
0.08623624593019485,
-0.0024810736067593098,
0.02658356912434101,
-0.003240540623664856,
0.033817436546087265,
0.020169302821159363,
0.06154131889343262,
-0.060792986303567886,
-0.015991121530532837,
-0.00714923394843936,
0.025532342493534088,
0.03495774790644646,
-0.007238321006298065,
-0.047109220176935196,
-0.011046791449189186,
-0.04493549466133118,
0.032784026116132736,
-0.01931406743824482,
0.02134525217115879,
-0.016436556354165077,
-0.0034922114573419094,
-0.012739445082843304,
-0.08687766641378403,
0.049924369901418686,
-0.0007527853595092893,
0.023697149008512497,
0.03353235870599747,
0.09108257293701172,
-0.002167041879147291,
0.03695330023765564,
0.004351901356130838,
-0.007572397124022245,
-0.03194660693407059,
0.05665934830904007,
0.017621414735913277,
0.013024522922933102,
-0.04493549466133118,
0.01995549350976944,
-0.017363062128424644,
-0.00978175550699234,
-0.011839665472507477,
-0.012587997131049633,
-0.010485542938113213,
-0.025799602270126343,
-0.08951464295387268,
0.016881991177797318,
0.027599161490797997,
-0.010654808022081852,
0.02998669259250164,
0.023590244352817535,
0.0003591320710256696
] |
10,057
|
sentence_transformers.SentenceTransformer
|
get_sentence_features
| null |
def get_sentence_features(self, *features):
return self._first_module().get_sentence_features(*features)
|
(self, *features)
|
[
-0.015045748092234135,
-0.06527076661586761,
0.05399063602089882,
-0.043513841927051544,
0.003974821884185076,
0.0017729798564687371,
0.0353466272354126,
0.06687742471694946,
0.10429932922124863,
0.017455745488405228,
-0.01787414774298668,
-0.014443248510360718,
-0.05395716428756714,
-0.05104508250951767,
-0.010727835819125175,
-0.00266522285528481,
0.022543517872691154,
-0.03358934074640274,
-0.028300734236836433,
-0.03939676284790039,
-0.0008885819697752595,
0.004606609698385,
-0.012978840619325638,
-0.09472628682851791,
0.008539591915905476,
0.016116857528686523,
0.025388652458786964,
-0.07618269324302673,
0.030794411897659302,
-0.041036900132894516,
-0.015372101217508316,
-0.049505364149808884,
-0.08542101830244064,
-0.0025417942088097334,
-0.06741297990083694,
-0.020518450066447258,
-0.03842607140541077,
0.016384635120630264,
0.05830854922533035,
0.02394934929907322,
-0.031179342418909073,
-0.06901964545249939,
0.02722962386906147,
0.009388947859406471,
-0.07718686014413834,
-0.022593725472688675,
-0.01704571023583412,
0.022510046139359474,
-0.022727614268660545,
0.019497549161314964,
0.03009149618446827,
-0.035145796835422516,
0.011121134273707867,
-0.03926287591457367,
-0.0018012219807133079,
-0.019731853157281876,
0.022945184260606766,
0.03250149264931679,
0.000513327366206795,
0.038057874888181686,
0.0681493729352951,
-0.0058660004287958145,
0.03896162658929825,
0.04602425545454025,
0.0036777565255761147,
-0.007200703956186771,
0.006665149237960577,
0.034610241651535034,
0.037957459688186646,
0.011890994384884834,
-0.022928448393940926,
-0.014719394035637379,
-0.02153935097157955,
0.06794853508472443,
-0.008171397261321545,
0.028384413570165634,
-0.04301175847649574,
-0.004535481333732605,
0.016066649928689003,
0.015899287536740303,
-0.037522319704294205,
-0.022978655993938446,
-0.061890073120594025,
0.012175507843494415,
0.022861503064632416,
-0.0600825734436512,
0.011899362318217754,
-0.03625037893652916,
-0.012460021302103996,
0.0024832177441567183,
-0.05707007646560669,
0.08147130161523819,
-0.014568769372999668,
0.02097032405436039,
0.013924429193139076,
-0.011907730251550674,
-0.03218350559473038,
0.02443469688296318,
-0.037288013845682144,
0.005623327102512121,
0.011932834051549435,
0.04943842068314552,
0.022208794951438904,
0.05409105122089386,
0.020585395395755768,
-0.005983153358101845,
-0.025673167780041695,
-0.02070254646241665,
0.0371875986456871,
0.004568953532725573,
-0.028350941836833954,
0.017505953088402748,
0.08950462937355042,
0.007158863823860884,
-0.01704571023583412,
-0.09211545437574387,
0.03973148390650749,
0.03969801217317581,
-0.0540241077542305,
-0.005163084715604782,
-0.010861724615097046,
0.005878552794456482,
-0.028836287558078766,
-0.01051863469183445,
-0.009606517851352692,
0.03909551352262497,
0.009347108192741871,
-0.01815866120159626,
0.04110384359955788,
-0.10831599682569504,
0.05067688971757889,
0.009347108192741871,
0.008225790224969387,
0.028853025287389755,
0.005874368827790022,
-0.06801548600196838,
0.040836066007614136,
0.019664909690618515,
0.043513841927051544,
0.022727614268660545,
-0.004292808007448912,
0.007150495890527964,
0.0005012982874177396,
0.01210856344550848,
-0.09753794968128204,
0.002412089379504323,
0.013916061259806156,
-0.029388578608632088,
-0.008861761540174484,
-0.01380727719515562,
0.043681204319000244,
-0.029020385816693306,
-0.05707007646560669,
-0.08401519060134888,
-0.03230065852403641,
-0.0009675553883425891,
-0.0063638994470238686,
-0.009556309320032597,
0.028066428378224373,
-0.0034057949669659138,
0.012911896221339703,
-0.0010371147654950619,
-0.040467873215675354,
0.04572300612926483,
0.011037453077733517,
0.02421712689101696,
0.014016478322446346,
0.005987337324768305,
-0.0018430622294545174,
0.006330427248030901,
0.05104508250951767,
0.09010712802410126,
0.03812481835484505,
0.03578176721930504,
0.055396467447280884,
0.00905422680079937,
0.01235960517078638,
0.0300412867218256,
0.019330186769366264,
0.06888575851917267,
0.043948981910943985,
-0.010602314956486225,
-0.09706933796405792,
-0.04488620162010193,
0.05472702533006668,
-0.010209016501903534,
-0.00030360318487510085,
0.0239828210324049,
-0.028919968754053116,
-0.011807314120233059,
0.05054300278425217,
-0.029539205133914948,
0.02749740146100521,
0.03430899232625961,
-0.05760563164949417,
0.025238027796149254,
-0.08013241738080978,
-0.07209908962249756,
-0.04220842570066452,
-0.028016220778226852,
-0.04870203137397766,
0.012326132506132126,
-0.010970508679747581,
0.004363936372101307,
-0.014618976972997189,
0.03380690887570381,
0.00822997372597456,
-0.025104139000177383,
-0.0955965667963028,
-0.031564272940158844,
0.01499553956091404,
-0.025238027796149254,
0.052785638719797134,
0.018761159852147102,
0.07310325652360916,
-0.04445106163620949,
0.027949275448918343,
0.029037121683359146,
-0.03691982105374336,
-0.016518523916602135,
0.05017480626702309,
-0.06935437023639679,
0.06473521143198013,
0.025790318846702576,
0.02984045445919037,
-0.012493493966758251,
0.03665204346179962,
-0.0017133575165644288,
-0.04639245197176933,
-0.03357260301709175,
0.011890994384884834,
0.044283702969551086,
0.0057446639984846115,
-0.013623179867863655,
0.011087661609053612,
0.01785741187632084,
0.04321259260177612,
-0.010351273231208324,
0.056132856756448746,
-0.040467873215675354,
0.0014110618503764272,
0.04455148056149483,
-0.014091790653765202,
0.015564566478133202,
-0.028853025287389755,
0.023196225985884666,
0.01661057211458683,
-0.04622508957982063,
-0.000981153454631567,
0.03320441022515297,
0.01845991052687168,
0.004409960471093655,
0.002347236964851618,
0.03317093476653099,
-0.040836066007614136,
-0.06486909836530685,
0.020267408341169357,
0.03979843109846115,
-0.01501227542757988,
0.005999889224767685,
-0.028535038232803345,
-0.006828325800597668,
-0.04856814071536064,
0.05683577060699463,
-0.011656688526272774,
0.0360160730779171,
-0.013121097348630428,
-0.00905422680079937,
0.013932797126471996,
-0.035212740302085876,
-0.009146274998784065,
0.04023356735706329,
-0.040635235607624054,
-0.03027559258043766,
0.01820886880159378,
-0.016100121662020683,
-0.026509972289204597,
-0.023530947044491768,
0.008719504810869694,
0.03862690180540085,
0.029606148600578308,
-0.012460021302103996,
-0.025790318846702576,
0.0420745387673378,
0.03996578976511955,
0.019982894882559776,
-0.005631695501506329,
0.012836583890020847,
0.02113768644630909,
-0.05817465856671333,
0.014049950055778027,
0.046492867171764374,
0.096266008913517,
-0.02682795748114586,
0.02123810164630413,
0.007175600156188011,
-0.013280089944601059,
0.0025376100093126297,
0.06835020333528519,
-0.03064378723502159,
0.029706565663218498,
0.006853430066257715,
-0.012585542164742947,
-0.010928669013082981,
-0.03343871235847473,
-0.09178073704242706,
0.022576989606022835,
0.012334500439465046,
-0.00679066963493824,
-0.05178147181868553,
-0.055998966097831726,
-0.04783175513148308,
0.012870055623352528,
-0.019514285027980804,
-0.09184768050909042,
-0.0024476535618305206,
-0.012970471754670143,
0.012543701566755772,
0.017522688955068588,
0.010970508679747581,
-0.02095358818769455,
-0.030760938301682472,
0.07357186824083328,
0.01677793264389038,
0.04622508957982063,
-0.008037508465349674,
-0.009698566049337387,
-0.07611574977636337,
-0.008803185075521469,
0.012326132506132126,
-0.022777821868658066,
-0.01842643879354,
0.0373549610376358,
0.034576769918203354,
-0.1024918332695961,
0.052383970469236374,
0.00905422680079937,
0.05074383318424225,
-0.02132178284227848,
-0.03034253604710102,
-0.02774844318628311,
-0.027848858386278152,
-0.0493045300245285,
0.05245091766119003,
0.02368157170712948,
0.022141851484775543,
0.005669351667165756,
-0.003738424740731716,
0.062124378979206085,
-0.028484830632805824,
0.013639915734529495,
-0.08856740593910217,
0.050107862800359726,
0.01825907826423645,
0.01063578762114048,
0.03571482375264168,
-0.0312964953482151,
0.04163939878344536,
0.010309433564543724,
-0.028150107711553574,
0.044116340577602386,
-0.0016798853175714612,
-0.0004317389102652669,
0.023380322381854057,
-0.05191536247730255,
-0.013129465281963348,
0.019028937444090843,
0.062224794179201126,
-0.01066925935447216,
-0.022493308410048485,
0.015104323625564575,
0.05723743885755539,
-0.013204777613282204,
0.05690271779894829,
-0.010685995221138,
-0.06068507209420204,
-0.025689903646707535,
0.017121022567152977,
-0.021890809759497643,
0.015422309748828411,
-0.053120359778404236,
0.0014152458170428872,
0.011681793257594109,
0.03655162826180458,
-0.012200611643493176,
0.018945258110761642,
-0.01647668331861496,
-0.06450090557336807,
0.05670188367366791,
0.012301028706133366,
-0.01830928586423397,
-0.013631547801196575,
-0.0740404725074768,
0.031714897602796555,
-0.014225679449737072,
-0.05499480292201042,
0.0029790245462208986,
-0.022761086001992226,
0.05345508083701134,
0.025455597788095474,
0.02741372026503086,
0.028986914083361626,
-0.028166845440864563,
-0.0118658896535635,
-0.05020827800035477,
0.031447120010852814,
0.005677719600498676,
-0.00604591378942132,
0.0003815306117758155,
0.02388240396976471,
-0.027865594252943993,
0.06028340756893158,
-0.07357186824083328,
-0.023614628240466118,
0.008627455681562424,
0.017589634284377098,
-0.034208573400974274,
0.10255877673625946,
-0.04502009227871895,
0.040702179074287415,
0.02672754041850567,
-0.016501788049936295,
-0.03671898692846298,
-0.015338629484176636,
0.026443026959896088,
0.040869537740945816,
-0.07912825047969818,
0.0022510045673698187,
0.07076020538806915,
-0.010711099952459335,
-0.0710279792547226,
-0.02739698439836502,
-0.053187303245067596,
-0.01712939143180847,
0.018727688118815422,
0.0006856567924842238,
-0.026526708155870438,
-0.0270957350730896,
-0.01709591969847679,
0.004539665300399065,
0.040735650807619095,
0.00923832319676876,
0.03256843611598015,
0.03527968376874924,
0.05442577600479126,
-0.0641327053308487,
-0.02120462991297245,
-0.012694326229393482,
0.05693618953227997,
-0.05111202970147133,
-0.0005211724201217294,
-0.006958030629903078,
0.026509972289204597,
0.03969801217317581,
0.03050989843904972,
-0.00690363859757781,
0.05653452128171921,
0.03695329278707504,
-0.025756847113370895,
0.01647668331861496,
-0.025673167780041695,
0.022259004414081573,
-0.007409905083477497,
0.03218350559473038,
0.06583978980779648,
-0.07705297321081161,
0.031045453622937202,
-0.020267408341169357,
-0.07752158492803574,
-0.02133851870894432,
0.06309507042169571,
-0.004886939190328121,
0.01825907826423645,
-0.07799019664525986,
0.04615814611315727,
0.038057874888181686,
-0.031179342418909073,
-0.03379017114639282,
0.017003871500492096,
-0.01065252348780632,
0.0414050929248333,
-0.031882256269454956,
-0.03025885671377182,
-0.02671080455183983,
-0.005828344263136387,
0.01055210642516613,
-0.00905422680079937,
-0.010836619883775711,
0.022342683747410774,
-0.03067725896835327,
0.03230065852403641,
0.015547830611467361,
0.03849301487207413,
-0.04589036852121353,
0.029338371008634567,
0.022744350135326385,
0.049840085208415985,
0.007970564067363739,
0.011229918338358402,
0.09552961587905884,
-0.010987245477735996,
0.013229881413280964,
0.01538883801549673,
-0.01782393828034401,
-0.020183729007840157,
0.017556162551045418,
-0.014669185504317284,
-0.011255023069679737,
-0.029221218079328537,
0.010434954427182674,
0.0012248727725818753,
-0.01827581413090229,
0.020468242466449738,
-0.02451837621629238,
0.049338001757860184,
0.01489512249827385,
0.015338629484176636,
0.05338813737034798,
-0.005711191799491644,
0.06942131370306015,
-0.03715412691235542,
0.03973148390650749,
-0.037790097296237946,
0.0008483107085339725,
-0.0011359623167663813,
-0.01814192533493042,
-0.019296715036034584,
0.002939276397228241,
0.03290316089987755,
0.03638426586985588,
0.040735650807619095,
-0.014150367118418217,
0.00169139145873487,
0.08053407818078995,
-0.03303704783320427,
-0.009137907065451145,
-0.041170790791511536,
-0.058777157217264175,
0.05807424336671829,
0.0323173962533474,
-0.0033806907013058662,
-0.028334205970168114,
-0.01185752172023058,
0.0494718924164772,
0.0014466260327026248,
-0.047296199947595596,
-0.0068032220005989075,
0.01199977844953537,
0.008752976544201374,
0.053019944578409195,
-0.03929634764790535,
-0.03611648827791214,
-0.02699531801044941,
0.0017405536491423845,
0.02662712335586548,
-0.03732148930430412,
-0.05104508250951767,
0.011765473522245884,
-0.06677701324224472,
0.029488995671272278,
-0.014434880577027798,
-0.05158063769340515,
0.04294481500983238,
0.046626754105091095,
0.011556272394955158,
0.05770605057477951,
0.013296825811266899,
0.05389022082090378,
-0.046961478888988495,
-0.03002455085515976,
0.04803258553147316,
0.01620890572667122,
-0.05673535540699959,
0.05372285842895508,
-0.03999926149845123,
0.040534816682338715,
0.012727798894047737,
-0.004035490565001965,
0.026058096438646317,
0.08769712597131729,
-0.023447265848517418,
0.011480960063636303,
0.014510192908346653,
0.019731853157281876,
0.025003723800182343,
0.05814118683338165,
0.008439174853265285,
-0.0028702400159090757,
-0.008443359285593033,
0.014543664641678333,
-0.0017499676905572414,
-0.009832454845309258,
0.06794853508472443,
-0.005531278904527426,
0.020066576078534126,
-0.022777821868658066,
-0.010041655972599983,
-0.018794633448123932,
-0.021639768034219742,
-0.022811295464634895,
0.0021652320865541697,
-0.010309433564543724,
0.038191765546798706,
-0.011079293675720692,
0.03879426419734955,
-0.0012991392286494374,
-0.011062557809054852,
0.02170671336352825,
-0.0302923284471035,
0.022275740280747414,
-0.042743980884552,
0.00302714086137712,
-0.01622564159333706,
-0.052852582186460495,
-0.030995244160294533,
0.032250452786684036,
0.06660965085029602,
-0.0049622515216469765,
0.028183581307530403,
-0.05512868985533714,
0.055362995713949203,
-0.03916245698928833,
-0.049973975867033005,
0.019162826240062714,
0.010016552172601223,
-0.019263243302702904,
-0.020300880074501038,
-0.07484380900859833,
-0.01566498354077339,
0.003960178233683109,
-0.010116968303918839,
-0.01800803653895855,
0.0300412867218256,
-0.02418365515768528,
0.05248438939452171,
0.022576989606022835,
-0.005853448528796434,
-0.01844317466020584,
0.002750995336100459,
-0.002573174424469471,
-0.06232520937919617,
0.01800803653895855,
-0.035179268568754196,
-0.008154661394655704,
-0.03045968897640705,
0.010133704170584679,
-0.06875187158584595,
-0.0026191985234618187,
0.0959312841296196,
0.00039408268639817834,
-0.008179765194654465,
0.032250452786684036,
-0.029455523937940598,
0.052785638719797134,
-0.0057488479651510715,
-0.046292033046483994,
-0.040735650807619095,
0.00933874025940895,
0.04518745094537735,
-0.053321193903684616,
0.012510229833424091,
0.022175323218107224,
0.03655162826180458,
-0.0026505787391215563,
-0.07035853713750839,
-0.01617543399333954,
-0.01512106042355299,
-0.004043858498334885,
0.06329590082168579,
0.019597964361310005,
-0.020250672474503517,
0.041572455316782,
-0.005715375766158104,
-0.013506026938557625,
0.04267703741788864,
0.021890809759497643,
0.012451653368771076,
0.01341397874057293,
0.01842643879354,
0.010133704170584679,
0.040501344949007034,
0.00907096266746521,
0.03397426754236221,
-0.031313229352235794,
-0.05459313467144966,
-0.013296825811266899,
-0.05399063602089882,
0.04850119724869728,
0.00020554014190565795,
-0.012552069500088692,
-0.02446816861629486,
-0.022476572543382645,
0.008794817142188549,
-0.004263519775122404,
0.058609798550605774,
0.05787340924143791,
0.008301102556288242,
-0.10235794633626938,
-0.029171010479331017,
-0.0010836620349436998,
-0.014225679449737072,
0.031179342418909073,
-0.04297828674316406,
-0.024685736745595932,
-0.007782283239066601,
-0.00838896632194519,
0.000401666242396459,
0.0019905490335077047,
-0.031898993998765945,
-0.003041784977540374,
0.005811608396470547,
-0.01671098917722702,
0.02441795915365219,
0.03712065517902374,
0.0339910052716732,
-0.000711283937562257,
0.004343016073107719,
0.023330112919211388,
0.011280126869678497,
0.031430382281541824,
0.019229771569371223,
-0.03675245866179466,
0.040769122540950775,
0.03362281247973442,
-0.05804077163338661,
-0.005983153358101845,
-0.013966269791126251,
0.02393261343240738,
0.028384413570165634,
-0.026593651622533798,
-0.03655162826180458,
-0.030894827097654343,
-0.026091570034623146,
0.040568288415670395,
-0.043279536068439484,
-0.017037343233823776,
-0.028133371844887733,
-0.01830928586423397,
-0.0005517680547200143,
-0.06440048664808273,
0.016451580449938774,
0.014133630320429802,
0.027848858386278152,
0.028668927028775215,
0.01513779629021883,
0.01502901129424572,
0.0013566695852205157,
-0.031279757618904114,
-0.028652191162109375,
-0.0477982833981514,
-0.0031003612093627453,
0.03969801217317581,
0.01804150827229023,
-0.04910369589924812,
0.016351163387298584,
0.019731853157281876,
0.0014413960743695498,
-0.03855995833873749,
-0.04498661682009697,
-0.019045673310756683,
-0.031179342418909073,
0.01866074465215206,
0.028116635978221893,
0.007673498708754778,
0.01080314815044403,
0.019832270219922066,
-0.0023744332138448954,
0.03996578976511955
] |
10,058
|
torch.nn.modules.module
|
get_submodule
|
Return the submodule given by ``target`` if it exists, otherwise throw an error.
For example, let's say you have an ``nn.Module`` ``A`` that
looks like this:
.. code-block:: text
A(
(net_b): Module(
(net_c): Module(
(conv): Conv2d(16, 33, kernel_size=(3, 3), stride=(2, 2))
)
(linear): Linear(in_features=100, out_features=200, bias=True)
)
)
(The diagram shows an ``nn.Module`` ``A``. ``A`` has a nested
submodule ``net_b``, which itself has two submodules ``net_c``
and ``linear``. ``net_c`` then has a submodule ``conv``.)
To check whether or not we have the ``linear`` submodule, we
would call ``get_submodule("net_b.linear")``. To check whether
we have the ``conv`` submodule, we would call
``get_submodule("net_b.net_c.conv")``.
The runtime of ``get_submodule`` is bounded by the degree
of module nesting in ``target``. A query against
``named_modules`` achieves the same result, but it is O(N) in
the number of transitive modules. So, for a simple check to see
if some submodule exists, ``get_submodule`` should always be
used.
Args:
target: The fully-qualified string name of the submodule
to look for. (See above example for how to specify a
fully-qualified string.)
Returns:
torch.nn.Module: The submodule referenced by ``target``
Raises:
AttributeError: If the target string references an invalid
path or resolves to something that is not an
``nn.Module``
|
def get_submodule(self, target: str) -> "Module":
"""Return the submodule given by ``target`` if it exists, otherwise throw an error.
For example, let's say you have an ``nn.Module`` ``A`` that
looks like this:
.. code-block:: text
A(
(net_b): Module(
(net_c): Module(
(conv): Conv2d(16, 33, kernel_size=(3, 3), stride=(2, 2))
)
(linear): Linear(in_features=100, out_features=200, bias=True)
)
)
(The diagram shows an ``nn.Module`` ``A``. ``A`` has a nested
submodule ``net_b``, which itself has two submodules ``net_c``
and ``linear``. ``net_c`` then has a submodule ``conv``.)
To check whether or not we have the ``linear`` submodule, we
would call ``get_submodule("net_b.linear")``. To check whether
we have the ``conv`` submodule, we would call
``get_submodule("net_b.net_c.conv")``.
The runtime of ``get_submodule`` is bounded by the degree
of module nesting in ``target``. A query against
``named_modules`` achieves the same result, but it is O(N) in
the number of transitive modules. So, for a simple check to see
if some submodule exists, ``get_submodule`` should always be
used.
Args:
target: The fully-qualified string name of the submodule
to look for. (See above example for how to specify a
fully-qualified string.)
Returns:
torch.nn.Module: The submodule referenced by ``target``
Raises:
AttributeError: If the target string references an invalid
path or resolves to something that is not an
``nn.Module``
"""
if target == "":
return self
atoms: List[str] = target.split(".")
mod: torch.nn.Module = self
for item in atoms:
if not hasattr(mod, item):
raise AttributeError(mod._get_name() + " has no "
"attribute `" + item + "`")
mod = getattr(mod, item)
if not isinstance(mod, torch.nn.Module):
raise AttributeError("`" + item + "` is not "
"an nn.Module")
return mod
|
(self, target: str) -> torch.nn.modules.module.Module
|
[
0.02581450156867504,
-0.005149374715983868,
-0.007332786917686462,
-0.0054971748031675816,
-0.008187795989215374,
0.005603447090834379,
0.016346607357263565,
0.05336800590157509,
0.012076394632458687,
-0.045600466430187225,
0.02479042299091816,
-0.009100771509110928,
0.02177615463733673,
-0.019022736698389053,
-0.02285820059478283,
-0.020906655117869377,
0.051667649298906326,
0.007902792654931545,
-0.00752600934356451,
0.020037153735756874,
0.0033089322969317436,
0.035920027643442154,
0.040808554738759995,
-0.025196190923452377,
-0.045600466430187225,
0.010781805031001568,
0.051899515092372894,
-0.0011001595994457603,
-0.014578623697161674,
-0.0682847648859024,
-0.02960165962576866,
-0.03883768618106842,
0.0017450391314923763,
0.04737811163067818,
-0.03557223081588745,
0.051319848746061325,
0.012192328460514545,
0.05727109685540199,
-0.07624552398920059,
-0.004927169065922499,
-0.015670329332351685,
-0.04780320078134537,
0.049735426902770996,
-0.006772442255169153,
0.03535968437790871,
0.0138637013733387,
0.007951098494231701,
0.0330989845097065,
-0.09815693646669388,
0.00958382710814476,
0.04830557852983475,
0.03085760399699211,
-0.01755424775183201,
-0.04235433414578438,
-0.00727482046931982,
0.03420035168528557,
0.031746428459882736,
0.007617789786309004,
0.06646847724914551,
0.06662305444478989,
0.02135106548666954,
-0.008733648806810379,
-0.0069560036063194275,
0.01516795251518488,
-0.06739594787359238,
-0.010279427282512188,
-0.041310932487249374,
-0.04378417879343033,
-0.04393875598907471,
0.007868979126214981,
-0.04900117963552475,
0.004359578713774681,
0.033833228051662445,
0.02471313439309597,
0.017882725223898888,
-0.05781211704015732,
0.025659924373030663,
-0.019863255321979523,
0.02782401442527771,
-0.012201989069581032,
-0.016201691702008247,
-0.005869127810001373,
-0.00975289661437273,
-0.011873511597514153,
0.007212023250758648,
-0.07663197070360184,
0.019138671457767487,
-0.010665872134268284,
0.02571788989007473,
-0.06503863632678986,
-0.08146253228187561,
-0.02436533384025097,
0.025679245591163635,
0.04100177437067032,
-0.010549938306212425,
-0.03487662971019745,
-0.014395062811672688,
-0.008250593207776546,
-0.06171520799398422,
-0.0618697851896286,
-0.010888077318668365,
0.02235582284629345,
-0.030915571376681328,
0.09552911669015884,
0.029466403648257256,
0.006675831042230129,
-0.023998212069272995,
0.029698271304368973,
0.024674490094184875,
-0.059898920357227325,
-0.06144469603896141,
0.0056614140048623085,
-0.0012656061444431543,
0.0014902271796017885,
0.027089769020676613,
-0.05943518504500389,
0.022259211167693138,
-0.027939947322010994,
-0.030316581949591637,
-0.01239521149545908,
0.010549938306212425,
0.05781211704015732,
-0.0196700319647789,
-0.0472235344350338,
0.08146253228187561,
-0.0058594667352736,
0.031244048848748207,
-0.03841259703040123,
0.050469670444726944,
-0.09421519935131073,
0.05348393693566322,
0.010095866397023201,
-0.0711444616317749,
0.026915868744254112,
-0.012636739760637283,
0.030973538756370544,
-0.015090662986040115,
0.0343162827193737,
-0.02042359858751297,
0.011419438757002354,
-0.039378710091114044,
0.012124700471758842,
-0.01155469473451376,
0.03018132597208023,
-0.015921518206596375,
-0.011264861561357975,
0.022123955190181732,
0.01714848168194294,
0.0008616507984697819,
-0.005888449959456921,
-0.040151599794626236,
-0.06805290281772614,
0.02596908062696457,
0.036866817623376846,
-0.042818065732717514,
-0.003514230949804187,
-0.021737510338425636,
0.023495834320783615,
0.00247807614505291,
-0.029620980843901634,
-0.025833824649453163,
0.03389119356870651,
-0.032152194529771805,
-0.02177615463733673,
-0.03259660676121712,
-0.02654874697327614,
0.0482669360935688,
-0.05170629173517227,
-0.05445004999637604,
0.052479181438684464,
-0.0269931573420763,
0.0017498696688562632,
-0.04900117963552475,
0.014597945846617222,
0.007893132045865059,
0.023225322365760803,
0.0009812071220949292,
0.030703026801347733,
-0.0421997532248497,
0.026355523616075516,
0.05738702788949013,
0.030239293351769447,
-0.0343162827193737,
-0.021814800798892975,
-0.0028669361490756273,
0.05680736154317856,
0.012974878773093224,
0.0011412192834541202,
-0.02453923411667347,
0.019863255321979523,
0.002028834307566285,
0.020037153735756874,
0.06592745333909988,
0.033330850303173065,
0.004081821534782648,
-0.012762334197759628,
-0.0368281751871109,
0.04405468702316284,
-0.0011828829301521182,
0.03356271609663963,
-0.008274746127426624,
0.039378710091114044,
0.0044924188405275345,
0.08447679877281189,
-0.027456890791654587,
-0.0033499919809401035,
0.018182219937443733,
0.07786859571933746,
-0.027630791068077087,
-0.005342597141861916,
-0.028365036472678185,
-0.003282364225015044,
0.07052614539861679,
0.054334115236997604,
0.017940692603588104,
-0.0009606772218830884,
-0.036113251000642776,
0.02034630998969078,
0.00636667525395751,
0.00811050646007061,
-0.00710575096309185,
0.028017235919833183,
0.06770510226488113,
0.04177466407418251,
-0.041079066693782806,
-0.036847494542598724,
-0.029717592522501945,
0.029021993279457092,
0.001702771638520062,
-0.026510102674365044,
0.06813018769025803,
-0.022993456572294235,
-0.007806181907653809,
-0.0368281751871109,
0.02654874697327614,
0.00827957596629858,
0.008018726482987404,
0.007468042429536581,
0.050392381846904755,
-0.002114576753228903,
-0.023573122918605804,
0.005772516597062349,
-0.00177523004822433,
0.02050088718533516,
-0.01790204830467701,
-0.019206298515200615,
0.013718784786760807,
-0.028191136196255684,
-0.017621874809265137,
0.025022290647029877,
-0.014414384961128235,
0.04536860063672066,
-0.004125296603888273,
-0.009941288270056248,
-0.005448869429528713,
-0.06461354345083237,
-0.04838286712765694,
-0.013805734924972057,
0.022645656019449234,
0.008839921094477177,
-0.055338870733976364,
-0.11353743821382523,
0.020365633070468903,
0.034586794674396515,
-0.02353447861969471,
-0.051744937896728516,
0.008047709241509438,
0.02875148132443428,
0.00474602309986949,
-0.010289088822901249,
0.0850951075553894,
0.0168972909450531,
-0.00021601651678793132,
0.008289237506687641,
-0.004002117086201906,
-0.03908887505531311,
0.04355230927467346,
0.030818959698081017,
0.04741675779223442,
0.0309348925948143,
-0.004634920507669449,
-0.02965962514281273,
-0.043165866285562515,
-0.02629755809903145,
0.0064294724725186825,
0.01856866478919983,
-0.02218192256987095,
-0.037446483969688416,
0.019805287942290306,
0.07450652867555618,
0.01756390929222107,
-0.03597799688577652,
-0.04544588923454285,
0.018037304282188416,
-0.00967077724635601,
0.018046963959932327,
-0.028345713391900063,
0.02749553695321083,
0.03833530843257904,
-0.04513673484325409,
-0.03278982639312744,
-0.006390828173607588,
-0.0686325654387474,
0.009593487717211246,
-0.04606420174241066,
-0.045252665877342224,
0.0511266253888607,
-0.03976515308022499,
0.007216853555291891,
0.03709868714213371,
-0.018771547824144363,
-0.006255572661757469,
0.07145361602306366,
0.005482683423906565,
0.04958084598183632,
0.009289163164794445,
0.04679844528436661,
0.031128115952014923,
0.011090961284935474,
0.049967292696237564,
-0.03876039758324623,
0.08238999545574188,
0.012800978496670723,
0.06592745333909988,
-0.007385923061519861,
-0.053831737488508224,
-0.029137926176190376,
0.02160225622355938,
-0.020114444196224213,
-0.001411730539985001,
-0.05278833955526352,
-0.02479042299091816,
0.06217894330620766,
0.0034997393377125263,
-0.04413197934627533,
0.0015554396668449044,
0.0583144947886467,
-0.022259211167693138,
0.06214029714465141,
-0.02697383612394333,
0.07095123827457428,
-0.028712837025523186,
-0.023553799837827682,
-0.000378293072571978,
0.01396031305193901,
0.013399967923760414,
0.04911711439490318,
0.04760998114943504,
0.026181625202298164,
-0.0016931105637922883,
0.01470421813428402,
0.0268192570656538,
0.0009341091499663889,
0.01638525351881981,
-0.017544586211442947,
-0.0016121987719088793,
-0.04633471369743347,
0.029215214774012566,
-0.007646773476153612,
-0.01487811841070652,
0.03532103821635246,
-0.009733574464917183,
-0.03622918576002121,
-0.007221684325486422,
-0.009303654544055462,
-0.04455706849694252,
-0.028191136196255684,
0.03721461817622185,
0.0450594462454319,
-0.07017834484577179,
-0.024674490094184875,
-0.03497324138879776,
-0.007308634463697672,
-0.02102258801460266,
-0.018703920766711235,
0.029794881120324135,
-0.0239595677703619,
-0.03236473724246025,
-0.003936904948204756,
-0.02150564454495907,
0.07249701768159866,
0.008009064942598343,
-0.03186235949397087,
-0.004209831357002258,
-0.019283587113022804,
-0.005975400097668171,
0.03574612736701965,
-0.009105601347982883,
-0.007434228900820017,
0.0034924934152513742,
0.032925084233284,
-0.024597201496362686,
-0.01454964093863964,
0.044672999531030655,
-0.05858500674366951,
-0.0511266253888607,
0.007245836779475212,
-0.00975289661437273,
-0.035263072699308395,
-0.007241006474941969,
0.09885253757238388,
-0.0030190986581146717,
0.02446194551885128,
0.0339684821665287,
-0.011767239309847355,
0.012192328460514545,
0.06557965278625488,
0.06028536334633827,
-0.00775304576382041,
-0.09599284827709198,
-0.0393400639295578,
-0.0018984093330800533,
-0.0586622953414917,
-0.03346610441803932,
-0.002052987227216363,
0.01882951520383358,
0.043590955436229706,
0.03505052998661995,
-0.018945448100566864,
-0.02850029245018959,
0.046527933329343796,
-0.04594826698303223,
0.014974730089306831,
-0.033408138900995255,
0.014984390698373318,
0.029041314497590065,
-0.03953328728675842,
0.011400116607546806,
-0.026626035571098328,
0.04699166864156723,
-0.08849582076072693,
0.03663495182991028,
-0.0023053837940096855,
-0.061251476407051086,
0.033427461981773376,
-0.07883470505475998,
-0.03590070828795433,
0.045175377279520035,
-0.017525264993309975,
0.002536043059080839,
0.0363064743578434,
0.007574314717203379,
-0.027109092101454735,
-0.005134883336722851,
0.032074905931949615,
0.01790204830467701,
-0.008530765771865845,
0.044595710933208466,
-0.008506612852215767,
-0.03209422901272774,
0.010211799293756485,
-0.013177761808037758,
0.06994648277759552,
0.05850771814584732,
-0.004796743858605623,
-0.07551128417253494,
0.024403978139162064,
0.048962537199258804,
0.04343637824058533,
0.0009630924905650318,
-0.06994648277759552,
0.06627525389194489,
0.05881687253713608,
0.0019346384797245264,
0.03296372666954994,
-0.018298152834177017,
0.12451246380805969,
-0.05062424764037132,
-0.014433707110583782,
0.0026278235018253326,
0.010549938306212425,
-0.03848988562822342,
-0.012887928634881973,
0.0071105812676250935,
0.0006261610542424023,
-0.0018331967294216156,
0.007617789786309004,
-0.0029997765086591244,
0.0343162827193737,
-0.08115337789058685,
-0.012086056172847748,
-0.011960461735725403,
-0.006318369880318642,
0.0007390753598883748,
-0.04799642413854599,
-0.04270213097333908,
-0.013573868200182915,
0.04285671189427376,
-0.009883321821689606,
-0.0761682391166687,
-0.053174782544374466,
0.04069261997938156,
-0.007168548181653023,
0.0239595677703619,
-0.015757279470562935,
-0.025099579244852066,
-0.01248216163367033,
0.008052540011703968,
0.017505941912531853,
-0.010221460834145546,
0.015457785688340664,
0.07663197070360184,
0.03402645140886307,
-0.03852853178977966,
-0.01215368416160345,
0.02368905581533909,
-0.028442325070500374,
0.0063425227999687195,
0.01470421813428402,
-0.006463286466896534,
-0.018713582307100296,
0.04104042053222656,
-0.0268192570656538,
0.058043986558914185,
-0.01974732056260109,
0.058043986558914185,
0.0009449779172427952,
0.08092150837182999,
0.05773482844233513,
-0.006057519931346178,
0.008018726482987404,
-0.018307814374566078,
-0.011516050435602665,
-0.0016061605419963598,
0.009550013579428196,
-0.01772814802825451,
-0.05421818420290947,
0.005873958580195904,
-0.03949464112520218,
0.022587688639760017,
0.03885700926184654,
0.0009775841608643532,
-0.01840442605316639,
0.015322529710829258,
-0.030915571376681328,
-0.00569522799924016,
-0.035011883825063705,
0.017457636073231697,
-0.023495834320783615,
0.02865486964583397,
-0.02386295609176159,
-0.011197233572602272,
0.011322828009724617,
0.04865337908267975,
-0.001685864757746458,
0.028944702818989754,
0.010366377420723438,
0.06020807474851608,
0.0178054366260767,
0.03928209841251373,
0.011525711044669151,
0.03101218305528164,
-0.00518801948055625,
-0.04034481942653656,
0.07466110587120056,
-0.04277942329645157,
-0.024172112345695496,
-0.005922263953834772,
-0.031398627907037735,
0.013342001475393772,
-0.019399520009756088,
-0.00891237985342741,
0.04177466407418251,
0.031553205102682114,
0.03754309564828873,
0.048962537199258804,
0.014472351409494877,
0.000014887930774420965,
0.022742267698049545,
-0.034412894397974014,
-0.015902196988463402,
-0.014056923799216747,
-0.010656210593879223,
0.036093927919864655,
0.02940843626856804,
0.09637929499149323,
0.02303210087120533,
0.0011218971339985728,
0.01891646534204483,
0.007709570694714785,
0.04046075418591499,
-0.05785076320171356,
0.06925088167190552,
0.028442325070500374,
-0.0011231047101318836,
-0.012598095461726189,
-0.012288939207792282,
-0.013081151060760021,
0.0186749380081892,
0.005207341630011797,
0.019061380997300148,
-0.003919997718185186,
0.06755052506923676,
0.00005306065941113047,
0.08780021965503693,
-0.012675384059548378,
-0.12837691605091095,
0.028616225346922874,
0.07369498908519745,
0.028094524517655373,
-0.012462839484214783,
-0.014008617959916592,
0.025872468948364258,
0.02453923411667347,
-0.02210463397204876,
-0.003135032020509243,
0.030548449605703354,
-0.08053506165742874,
0.01076248288154602,
-0.01774746924638748,
-0.053174782544374466,
-0.07214921712875366,
-0.050469670444726944,
-0.052401892840862274,
-0.049310337752103806,
-0.04942626878619194,
-0.018858497962355614,
-0.008492120541632175,
0.02270362339913845,
-0.06043994054198265,
0.0064971004612743855,
0.049310337752103806,
-0.021486321464180946,
0.014771846123039722,
-0.038373950868844986,
0.025988401845097542,
-0.021544288843870163,
-0.03756241872906685,
-0.009622471407055855,
-0.04007430747151375,
-0.006893206387758255,
-0.018443070352077484,
0.014047262258827686,
-0.04235433414578438,
-0.012511145323514938,
-0.05027644708752632,
0.05928060784935951,
-0.026104334741830826,
-0.013805734924972057,
0.0746997520327568,
-0.04741675779223442,
-0.02243311144411564,
-0.047957777976989746,
-0.00535708898678422,
-0.03259660676121712,
-0.026761291548609734,
0.019467148929834366,
0.005956077948212624,
0.031128115952014923,
-0.025601956993341446,
-0.022916167974472046,
0.05773482844233513,
-0.022761588916182518,
0.012936234474182129,
0.01180588360875845,
-0.044247910380363464,
0.01889714226126671,
0.005873958580195904,
-0.012201989069581032,
-0.010830110870301723,
0.050740182399749756,
-0.07071936875581741,
0.02295481227338314,
0.023051422089338303,
-0.0134096285328269,
-0.0038064797408878803,
0.01282030064612627,
-0.051899515092372894,
-0.00009578090975992382,
-0.004975474905222654,
-0.02195005491375923,
-0.003724360140040517,
-0.036113251000642776,
-0.052247315645217896,
-0.017428653314709663,
0.02840368077158928,
0.02521551214158535,
0.005603447090834379,
0.01541914138942957,
0.05201544985175133,
0.05673007294535637,
0.06329963356256485,
-0.04544588923454285,
0.04923304542899132,
0.02453923411667347,
0.055609382688999176,
-0.0046735648065805435,
0.002751002786681056,
0.030548449605703354,
-0.0966111570596695,
-0.01982460916042328,
0.025447379797697067,
0.009680437855422497,
0.03957192972302437,
0.013969973661005497,
0.043513666838407516,
-0.02421075664460659,
-0.01781509816646576,
-0.03733055293560028,
0.006786934100091457,
0.0571938082575798,
-0.05788940563797951,
-0.039881087839603424,
-0.0393400639295578,
-0.024906357750296593,
0.013187423348426819,
-0.01926426589488983,
-0.005163866560906172,
-0.06453625112771988,
-0.013467595912516117,
-0.03010403737425804,
0.03460611775517464,
0.01747695915400982,
-0.06820748001337051,
0.058043986558914185,
-0.022046666592359543,
-0.044170621782541275,
0.019785964861512184,
-0.03487662971019745,
-0.023476511240005493,
0.025949757546186447,
-0.020056476816534996,
0.0690576583147049,
0.0070526148192584515,
0.02102258801460266,
-0.005588955711573362,
0.04741675779223442,
0.005917433649301529,
-0.007670925930142403,
0.03663495182991028,
-0.012549789622426033,
0.04370689019560814,
-0.04648929089307785,
-0.01864595338702202,
0.03941735252737999,
-0.053329359740018845,
-0.0009950948879122734,
0.011612661182880402,
0.020133765414357185,
-0.036093927919864655,
0.007878639735281467,
0.0023983719293028116,
-0.013564206659793854,
0.007690248545259237,
-0.007719231769442558,
0.01673305220901966,
-0.003973133862018585,
-0.036267828196287155,
0.04958084598183632,
-0.02749553695321083,
0.03532103821635246,
0.004035931080579758,
0.026761291548609734,
0.002581933280453086,
0.013776751235127449,
-0.04428655654191971,
-0.03429696336388588,
0.0023174602538347244,
-0.052170027047395706,
-0.06329963356256485,
-0.01638525351881981,
-0.006651678122580051,
0.08347204327583313,
-0.02336057834327221,
-0.019283587113022804,
-0.008419662714004517,
-0.03170778229832649,
-0.05452733859419823
] |
10,059
|
torch.nn.modules.module
|
half
|
Casts all floating point parameters and buffers to ``half`` datatype.
.. note::
This method modifies the module in-place.
Returns:
Module: self
|
def half(self: T) -> T:
r"""Casts all floating point parameters and buffers to ``half`` datatype.
.. note::
This method modifies the module in-place.
Returns:
Module: self
"""
return self._apply(lambda t: t.half() if t.is_floating_point() else t)
|
(self: ~T) -> ~T
|
[
0.0033042500726878643,
-0.04036308825016022,
0.029768645763397217,
0.04515663906931877,
-0.02139730006456375,
-0.03438851609826088,
-0.0023707235231995583,
-0.004081465303897858,
-0.06144776567816734,
-0.014901691116392612,
0.029386550188064575,
-0.06679709255695343,
-0.005206039175391197,
0.006248115561902523,
-0.013199632987380028,
0.06933280825614929,
-0.01527510117739439,
0.04137042909860611,
0.006031016353517771,
0.02716345526278019,
0.0023598684929311275,
-0.0015945937484502792,
-0.006252457853406668,
0.005983254406601191,
-0.03855682164430618,
-0.03187016770243645,
0.031505439430475235,
-0.0005297220777720213,
0.015101421624422073,
-0.011853617615997791,
0.01346883550286293,
-0.0024054592940956354,
0.005622869823127985,
-0.018740005791187286,
0.013876982033252716,
-0.05001966282725334,
-0.013903033919632435,
0.04216935485601425,
-0.044461920857429504,
0.02330777235329151,
-0.014510911889374256,
-0.04109254106879234,
-0.0032608304172754288,
0.0436282604932785,
-0.005301563069224358,
0.007298876065760851,
0.10705596953630447,
0.01761108823120594,
0.026451369747519493,
0.019625769928097725,
0.0010719273705035448,
-0.00289393262937665,
-0.023863546550273895,
-0.0038535112980753183,
-0.0024684180971235037,
0.014684591442346573,
0.030637042596936226,
-0.03230436518788338,
-0.048074450343847275,
0.02839657850563526,
0.027059247717261314,
-0.017124786972999573,
0.03287750482559204,
-0.03225225955247879,
0.023724602535367012,
0.044844016432762146,
-0.02865709736943245,
0.024662472307682037,
-0.005462216679006815,
0.03643793240189552,
-0.04751867800951004,
0.004153108224272728,
-0.002531376900151372,
0.06922859698534012,
-0.030029164627194405,
-0.010316555388271809,
0.013416731730103493,
0.02438458427786827,
-0.008258454501628876,
-0.03378063812851906,
-0.014302496798336506,
0.04904705658555031,
-0.05446585267782211,
0.01781950332224369,
-0.08899331092834473,
-0.019677873700857162,
-0.053771134465932846,
-0.01647348888218403,
-0.01410276535898447,
-0.007255455944687128,
-0.06506029516458511,
0.007463871501386166,
-0.04453139379620552,
0.023429349064826965,
0.07051382958889008,
-0.0322001576423645,
-0.04088412597775459,
-0.024488791823387146,
-0.06009306386113167,
0.012973849661648273,
-0.032339099794626236,
0.03357222303748131,
-0.00001774107659002766,
0.038938917219638824,
0.07096539437770844,
-0.012504915706813335,
0.022022545337677002,
-0.029403919354081154,
-0.03581268712878227,
-0.0010024557122960687,
-0.03876523673534393,
0.000875995378009975,
-0.06110040470957756,
0.012374655343592167,
-0.03675055503845215,
-0.00030638129101134837,
0.001454564742743969,
0.03796631097793579,
0.058217328041791916,
0.012557019479572773,
0.031071240082383156,
0.025843491777777672,
-0.036576878279447556,
-0.0007631037733517587,
0.04143989831209183,
0.037202123552560806,
0.01721162721514702,
-0.0349963940680027,
-0.04289880767464638,
-0.020910996943712234,
-0.00716861616820097,
0.06294140964746475,
-0.03456219658255577,
0.02945602312684059,
-0.02289094217121601,
0.01634323038160801,
-0.015327204950153828,
0.015153525397181511,
-0.001208157162182033,
0.010429446585476398,
-0.05460479483008385,
-0.012027297168970108,
0.0801704004406929,
0.016542959958314896,
0.0003582137287594378,
0.022613056004047394,
-0.018983155488967896,
0.0038469983264803886,
0.0023251327220350504,
0.06783916801214218,
-0.019608402624726295,
0.034492723643779755,
0.09795516729354858,
-0.02143203467130661,
-0.023637764155864716,
0.008371345698833466,
0.020910996943712234,
0.006465214770287275,
-0.03452746197581291,
0.02989022061228752,
-0.07238956540822983,
-0.019851552322506905,
0.0030936638358980417,
-0.013729355297982693,
0.0036841738037765026,
-0.013173581101000309,
-0.02799711562693119,
-0.05071437731385231,
0.019139466807246208,
0.01115021575242281,
0.05620264634490013,
-0.023377245292067528,
0.019886288791894913,
0.05807838588953018,
-0.020754685625433922,
0.03412799909710884,
0.007845966145396233,
-0.008705678395926952,
0.0007636465015821159,
-0.04453139379620552,
0.09128588438034058,
-0.04269039258360863,
-0.026034539565443993,
-0.059294138103723526,
0.0517217181622982,
0.02778870053589344,
-0.017393989488482475,
0.0024336823262274265,
-0.03754948079586029,
-0.02037259191274643,
0.051026999950408936,
-0.0009264709078706801,
0.00131236482411623,
-0.023620394989848137,
0.0048890747129917145,
-0.022786734625697136,
-0.004685001447796822,
-0.020702581852674484,
0.10184558480978012,
0.0254440288990736,
-0.05418796464800835,
-0.05964149907231331,
0.0373758040368557,
0.0231514610350132,
-0.02693767100572586,
-0.015969818457961082,
0.033659063279628754,
0.04140516370534897,
-0.03138386458158493,
0.015023265965282917,
-0.003949034959077835,
0.0022339511197060347,
-0.047622885555028915,
0.01974734477698803,
-0.0021937876008450985,
-0.048699699342250824,
-0.037028443068265915,
-0.015822190791368484,
0.01305200532078743,
0.018514221534132957,
-0.0075116329826414585,
-0.019417354837059975,
-0.040640976279973984,
0.02436721697449684,
0.00425080256536603,
0.025096669793128967,
-0.031783327460289,
-0.039772577583789825,
-0.005062753800302744,
-0.03588216006755829,
0.02443668805062771,
0.04751867800951004,
-0.10379079729318619,
0.0037992363795638084,
0.05700157210230827,
-0.04602503404021263,
0.00669099809601903,
-0.004941178485751152,
-0.033606961369514465,
-0.049324944615364075,
0.02203991264104843,
-0.01398987416177988,
-0.034475356340408325,
0.035343755036592484,
-0.00007252470823004842,
-0.05533425137400627,
-0.028361842036247253,
0.00400548055768013,
0.03817472606897354,
0.030637042596936226,
-0.039598897099494934,
-0.04164831340312958,
0.03504849970340729,
0.0044982959516346455,
0.014302496798336506,
0.004103175364434719,
-0.006235089618712664,
0.004103175364434719,
-0.019625769928097725,
0.028049219399690628,
0.03265172243118286,
-0.023672498762607574,
0.06968016922473907,
0.0003747675218619406,
0.01610007882118225,
0.028987089172005653,
-0.05665421485900879,
-0.03398905321955681,
0.05307641625404358,
0.037028443068265915,
-0.015414045192301273,
-0.023446716368198395,
-0.028587626293301582,
-0.03768842667341232,
-0.008076091296970844,
0.017871608957648277,
0.03513533994555473,
0.040015727281570435,
0.058043647557497025,
-0.017941080033779144,
0.02697240747511387,
-0.11567046493291855,
-0.03994625806808472,
0.026798728853464127,
-0.04262091964483261,
0.07357058674097061,
-0.010099455714225769,
-0.006243773736059666,
0.0764189288020134,
-0.02631242573261261,
0.018548958003520966,
0.054431118071079254,
0.03390221297740936,
-0.0034866135101765394,
0.027076615020632744,
0.002353355521336198,
-0.038730502128601074,
-0.0365421399474144,
0.11275265365839005,
-0.03543059155344963,
0.01630849391222,
-0.06092672422528267,
-0.03716738522052765,
0.05901625379920006,
0.05429217219352722,
-0.031957004219293594,
0.052520643919706345,
0.012166240252554417,
0.009726045653223991,
0.029768645763397217,
-0.00801964569836855,
-0.02525298111140728,
-0.046580810099840164,
0.005987596698105335,
0.08614496886730194,
-0.008479896001517773,
0.023516187444329262,
0.03522217646241188,
-0.030862824991345406,
0.04522611200809479,
-0.04567767679691315,
-0.00541011244058609,
0.050193339586257935,
0.0722506195306778,
-0.008523315191268921,
-0.026381896808743477,
0.019452091306447983,
-0.02122361958026886,
-0.01656901277601719,
0.0337459035217762,
-0.019261043518781662,
-0.01626507379114628,
0.05359745770692825,
0.027667125687003136,
-0.07794730365276337,
0.006977568846195936,
0.06103093549609184,
0.007463871501386166,
-0.0025617708452045918,
-0.02843131497502327,
0.04661554470658302,
0.02101520448923111,
0.03464903682470322,
0.003901273012161255,
-0.0492207370698452,
0.01778476871550083,
-0.010003931820392609,
-0.033606961369514465,
0.10240136086940765,
0.0322001576423645,
0.0006122197955846786,
-0.08809018135070801,
0.005331956781446934,
0.012122821062803268,
0.03261698782444,
-0.01525773387402296,
-0.027736596763134003,
0.03141859918832779,
-0.04790077358484268,
-0.041891466826200485,
0.049776509404182434,
0.037410538643598557,
-0.05998885631561279,
0.04605977237224579,
0.013442783616483212,
0.008280164562165737,
-0.03478797897696495,
0.02103257365524769,
0.004179160110652447,
0.05120068043470383,
-0.01070733368396759,
-0.04748394340276718,
0.0028266320005059242,
-0.014866954647004604,
-0.012079400941729546,
0.017454776912927628,
-0.045052431523799896,
0.04644186422228813,
0.010750753805041313,
0.000930270180106163,
0.02818816341459751,
-0.027736596763134003,
-0.005323273129761219,
-0.007989251054823399,
0.004715395160019398,
0.020268384367227554,
0.04119674861431122,
-0.07607156783342361,
0.0467197522521019,
0.015231681056320667,
-0.0011354289017617702,
-0.02186623401939869,
-0.04918599873781204,
0.023446716368198395,
-0.08593655377626419,
0.04661554470658302,
-0.008488579653203487,
0.013703303411602974,
-0.02184886671602726,
0.0011560533894225955,
0.03348538279533386,
-0.04015467315912247,
0.02016417495906353,
0.05067964270710945,
-0.04074518382549286,
-0.019191570580005646,
0.026572944596409798,
0.036194782704114914,
0.02971654199063778,
-0.011098111979663372,
0.036854762583971024,
0.020650478079915047,
-0.05540372058749199,
0.06853388249874115,
0.07614103704690933,
0.027007143944501877,
0.063566654920578,
-0.003200042527168989,
0.0017878120997920632,
0.01220966037362814,
0.04480927810072899,
0.012617806904017925,
-0.00610483018681407,
-0.007429135497659445,
0.01719425804913044,
-0.022838838398456573,
0.015822190791368484,
0.030480731278657913,
-0.03845261409878731,
0.023933017626404762,
-0.025808755308389664,
0.010160244069993496,
-0.0722506195306778,
-0.002898274688050151,
0.004502637777477503,
0.004789208993315697,
0.022560950368642807,
-0.009274479001760483,
0.031071240082383156,
0.003345499048009515,
-0.011862301267683506,
0.029560230672359467,
-0.00956104975193739,
-0.0980246439576149,
-0.0015077540883794427,
-0.05133962258696556,
-0.01293042954057455,
-0.008718704804778099,
-0.0246103685349226,
-0.039564162492752075,
-0.008718704804778099,
-0.023377245292067528,
0.07648839801549911,
-0.02612137794494629,
-0.012565703131258488,
-0.09010486304759979,
0.004222579766064882,
-0.0851723700761795,
0.04852601885795593,
0.022613056004047394,
-0.03435378149151802,
-0.006530344486236572,
-0.03242594003677368,
-0.048908114433288574,
-0.0030350470915436745,
-0.06853388249874115,
0.07280639559030533,
-0.02103257365524769,
0.0038730502128601074,
-0.022109385579824448,
0.05533425137400627,
-0.016430068761110306,
0.019695241004228592,
0.008410423994064331,
0.06860335171222687,
0.03664634749293327,
-0.018184231594204903,
-0.0017183403251692653,
-0.013520939275622368,
-0.0926058441400528,
-0.07801678031682968,
-0.009595785290002823,
-0.018201598897576332,
0.024245642125606537,
0.00609180424362421,
0.031297024339437485,
-0.013668566942214966,
0.03072388283908367,
0.019261043518781662,
0.010247083380818367,
-0.019191570580005646,
0.042134616523981094,
-0.0038296303246170282,
0.014215657487511635,
-0.044218771159648895,
0.07454319298267365,
-0.005892072804272175,
0.007737416308373213,
-0.001412230427376926,
0.03859155625104904,
0.013277788646519184,
-0.012496231123805046,
-0.024332480505108833,
-0.017411356791853905,
0.0038535112980753183,
0.03907785937190056,
-0.05373639985918999,
-0.01136731542646885,
-0.05703630670905113,
0.011862301267683506,
0.004120543133467436,
-0.00041465950198471546,
-0.05140909552574158,
0.04776182770729065,
0.0209804680198431,
0.0026377555914223194,
-0.02459299936890602,
0.02546139620244503,
-0.015631144866347313,
-0.058668892830610275,
-0.007615840528160334,
0.013078057207167149,
-0.034492723643779755,
-0.01218360848724842,
-0.023516187444329262,
-0.025826124474406242,
-0.016994526609778404,
-0.017376622185111046,
0.050818584859371185,
-0.026034539565443993,
0.03473587706685066,
0.0172897819429636,
0.02824026718735695,
-0.009699992835521698,
0.00672573409974575,
0.017524249851703644,
-0.03584742546081543,
0.024124065414071083,
0.05811312049627304,
-0.05411849543452263,
-0.030307050794363022,
-0.05703630670905113,
0.01664716936647892,
0.015691932290792465,
-0.048699699342250824,
-0.010412078350782394,
-0.02527035027742386,
-0.0069602010771632195,
-0.034075893461704254,
-0.0010708419140428305,
-0.0407104454934597,
-0.050783850252628326,
0.0556468740105629,
0.0016662365524098277,
-0.012539651244878769,
0.01592639833688736,
-0.00374279054813087,
0.0292823426425457,
-0.01016892772167921,
-0.008818570524454117,
-0.036576878279447556,
-0.017550300806760788,
0.08093459159135818,
0.06387927383184433,
-0.02565244399011135,
-0.017906343564391136,
0.0963573157787323,
0.06860335171222687,
-0.009170271456241608,
0.004754472989588976,
0.00021329997980501503,
0.09031327813863754,
0.0508880577981472,
-0.01732451841235161,
0.03859155625104904,
0.016256390139460564,
0.0018779082456603646,
-0.02122361958026886,
-0.07419583201408386,
-0.05946781858801842,
-0.022369904443621635,
-0.04220408946275711,
-0.03138386458158493,
0.017671877518296242,
-0.03548269718885422,
-0.027232926338911057,
0.006769153755158186,
0.03268646076321602,
-0.02353355661034584,
0.036368463188409805,
-0.002470589242875576,
-0.02863973006606102,
0.015474832616746426,
-0.017090050503611565,
0.020494166761636734,
-0.06488661468029022,
-0.11726831644773483,
-0.011506258510053158,
0.037202123552560806,
0.01431118045002222,
-0.003111031837761402,
0.003840485354885459,
0.0086448909714818,
0.02481878362596035,
0.011688622646033764,
-0.00004335199992056005,
-0.025565603747963905,
0.018548958003520966,
-0.047379735857248306,
-0.07370952516794205,
0.02824026718735695,
0.030393891036510468,
0.01781950332224369,
-0.009804201312363148,
-0.024297745898365974,
0.03588216006755829,
-0.02077205292880535,
-0.01431118045002222,
0.004081465303897858,
0.020928364247083664,
-0.018705269321799278,
0.05839100852608681,
-0.03056757152080536,
0.028170796111226082,
0.0005299935000948608,
-0.04133569076657295,
0.02971654199063778,
-0.06519924104213715,
0.019208939746022224,
-0.04369773343205452,
-0.053771134465932846,
-0.03605584055185318,
-0.003786210436373949,
-0.013616463169455528,
-0.029647069051861763,
0.010672598145902157,
-0.011792830191552639,
0.018184231594204903,
0.04418403282761574,
0.051652248948812485,
0.04258618503808975,
0.005075779743492603,
0.018496854230761528,
-0.01178414560854435,
0.028083955869078636,
-0.043801940977573395,
-0.0299075897783041,
-0.01778476871550083,
-0.011619150638580322,
-0.028587626293301582,
-0.063566654920578,
0.0805872306227684,
-0.025947699323296547,
0.0010675854282453656,
0.03199174255132675,
-0.018965788185596466,
0.03390221297740936,
-0.04473980888724327,
-0.0013872639974579215,
0.009387370198965073,
-0.046163979917764664,
-0.0361253097653389,
0.019191570580005646,
0.024245642125606537,
0.02973390929400921,
0.00886199064552784,
-0.034666404128074646,
0.02400249056518078,
-0.052555378526449203,
-0.04067571088671684,
-0.015709299594163895,
-0.000980745768174529,
-0.07106959819793701,
-0.014441439881920815,
-0.026347162202000618,
-0.03629899024963379,
0.019643137231469154,
0.014424072578549385,
-0.049568094313144684,
0.02099783718585968,
0.037028443068265915,
0.002381578553467989,
-0.020685214549303055,
-0.020112071186304092,
0.008770808577537537,
-0.005501294508576393,
-0.035100601613521576,
0.06599816679954529,
-0.06763075292110443,
-0.039772577583789825,
0.021188884973526,
-0.03813999146223068,
0.05120068043470383,
0.01746346242725849,
0.028483418747782707,
-0.04282933473587036,
-0.007020988967269659,
-0.02144940383732319,
0.03560427203774452,
0.020303118973970413,
-0.0027115691918879747,
-0.0329122431576252,
-0.03845261409878731,
0.019625769928097725,
0.07051382958889008,
0.012973849661648273,
0.021762026473879814,
-0.01040339469909668,
-0.016430068761110306,
-0.012079400941729546,
0.008149905130267143,
0.02504456602036953,
0.012374655343592167,
0.044705070555210114,
0.0209804680198431,
0.014997214078903198,
-0.0500543974339962,
-0.02782343700528145,
-0.008610155433416367,
0.03966837003827095,
-0.0386262945830822,
-0.057383667677640915,
0.11136321723461151,
0.0307412501424551,
0.02018154412508011,
0.03155754134058952,
0.027615021914243698,
0.06968016922473907,
-0.06287193298339844,
0.011523626744747162,
0.028726568445563316,
-0.010689965449273586,
0.03563900664448738,
0.021466771140694618,
0.05147856846451759,
0.0068950713612139225,
0.023446716368198395,
0.01748082973062992,
-0.02994232438504696,
-0.015822190791368484,
0.01825370267033577,
-0.028344474732875824,
0.011801513843238354,
-0.018601061776280403,
-0.04081465303897858,
0.01431118045002222,
-0.029803382232785225,
0.005097489804029465,
0.005970228463411331,
-0.03357222303748131,
0.022213593125343323,
0.03556953743100166,
0.05446585267782211,
-0.012774118222296238,
0.09524577111005783,
-0.005045386031270027,
-0.01781950332224369,
0.0007039442425593734,
-0.02144940383732319,
-0.04727552831172943,
-0.007463871501386166,
0.00853199977427721,
0.03879997134208679,
0.08656179904937744,
-0.022369904443621635,
0.03942522034049034,
0.013043321669101715,
0.0320785827934742
] |
10,060
|
torch.nn.modules.container
|
insert
| null |
def insert(self, index: int, module: Module) -> 'Sequential':
if not isinstance(module, Module):
raise AssertionError(
f'module should be of type: {Module}')
n = len(self._modules)
if not (-n <= index <= n):
raise IndexError(
f'Index out of range: {index}')
if index < 0:
index += n
for i in range(n, index, -1):
self._modules[str(i)] = self._modules[str(i - 1)]
self._modules[str(index)] = module
return self
|
(self, index: int, module: torch.nn.modules.module.Module) -> torch.nn.modules.container.Sequential
|
[
-0.007853815332055092,
0.03831562027335167,
-0.045694924890995026,
-0.004940231796354055,
0.0035433080047369003,
0.017827406525611877,
-0.06840047985315323,
0.04122477024793625,
-0.02859480492770672,
-0.002226208569481969,
0.003505613189190626,
-0.03352616727352142,
0.007636515889316797,
0.030617019161581993,
0.004177466966211796,
-0.010474709793925285,
0.03185872733592987,
0.02172992378473282,
-0.07982420921325684,
-0.031113702803850174,
-0.014829563908278942,
0.03400511294603348,
-0.01604466699063778,
-0.040195923298597336,
-0.008031202480196953,
0.03528229892253876,
-0.0021364062558859587,
0.023060327395796776,
0.009330563247203827,
-0.06602349132299423,
0.06836500018835068,
-0.06595253199338913,
-0.026466159150004387,
-0.04168597608804703,
-0.012638833373785019,
-0.006097682751715183,
-0.03977019339799881,
0.033242348581552505,
0.004532241262495518,
0.05158417671918869,
0.05176156386733055,
-0.06045353412628174,
-0.020293088629841805,
-0.007805033586919308,
-0.018980422988533974,
0.05711865797638893,
0.02504706382751465,
0.037286773324012756,
0.02094941958785057,
-0.0055965641513466835,
-0.02008022367954254,
0.010483579710125923,
0.08372672647237778,
-0.05449332669377327,
-0.047930002212524414,
0.05300327390432358,
0.028470635414123535,
-0.019938314333558083,
0.04512728750705719,
0.009640990756452084,
0.04314054921269417,
-0.0032838792540133,
0.02431977540254593,
0.007246264256536961,
0.03781893476843834,
0.042076226323843,
-0.05768629536032677,
-0.009738553315401077,
0.036967478692531586,
0.008878226391971111,
0.03377451002597809,
-0.006372632924467325,
0.029322093352675438,
-0.0005219061858952045,
-0.011033480055630207,
0.052648499608039856,
-0.022013742476701736,
0.07563786953687668,
0.032603755593299866,
0.0436372347176075,
-0.046156130731105804,
0.02408917248249054,
-0.04785904660820961,
0.055238351225852966,
-0.047930002212524414,
-0.023965001106262207,
-0.04427582770586014,
-0.05236468091607094,
-0.030421894043684006,
-0.08365577459335327,
-0.048781462013721466,
-0.004266160540282726,
-0.009747423231601715,
0.010492448695003986,
0.03788989037275314,
0.02039952017366886,
0.05857323110103607,
-0.07585074007511139,
-0.04030235484242439,
-0.0011341689387336373,
-0.012621094472706318,
0.0331713929772377,
-0.011352776549756527,
-0.0007854924187995493,
-0.05999232828617096,
0.0010748550994321704,
0.0023747701197862625,
0.028736716136336327,
-0.04530467465519905,
0.04661733657121658,
-0.03639984130859375,
0.04122477024793625,
0.012355013750493526,
-0.02371666021645069,
-0.03143300116062164,
-0.044382259249687195,
0.03902516886591911,
-0.006448022089898586,
0.04413392022252083,
0.028665760532021523,
0.05176156386733055,
0.007751817815005779,
-0.02772560901939869,
0.03930898755788803,
0.029464002698659897,
0.02327319234609604,
-0.0036940870340913534,
-0.04477251321077347,
0.03223124146461487,
-0.09664051234722137,
0.018714342266321182,
-0.04086999595165253,
-0.021871833130717278,
0.032568275928497314,
-0.015592329204082489,
0.0018326308345422149,
-0.04335341602563858,
-0.009915940463542938,
-0.07861797511577606,
-0.009632120840251446,
-0.02394726313650608,
-0.038102757185697556,
0.040444266051054,
0.07897274941205978,
0.007583300117403269,
-0.06573966890573502,
-0.07549596577882767,
0.010013503953814507,
-0.028098121285438538,
0.011751897633075714,
0.011166520416736603,
-0.007015660870820284,
0.06499464809894562,
0.026430683210492134,
-0.05914086848497391,
-0.00006281305832089856,
0.0069624450989067554,
-0.019051378592848778,
0.03613375872373581,
-0.017658889293670654,
-0.0019268677569925785,
-0.001569876098074019,
0.0437081903219223,
0.06173072010278702,
-0.07400590926408768,
0.019477106630802155,
0.014261925593018532,
-0.0319828987121582,
-0.05676388368010521,
0.009507950395345688,
0.05030699074268341,
0.017242029309272766,
0.041792407631874084,
0.018377305939793587,
-0.0719127431511879,
-0.006000119727104902,
0.0061242906376719475,
0.03384546563029289,
0.03959280624985695,
-0.04058617725968361,
-0.012603355571627617,
0.05080367624759674,
-0.007893727160990238,
-0.008550059981644154,
-0.011326168663799763,
0.019122332334518433,
-0.04448869451880455,
0.04675924777984619,
0.06325624883174896,
0.00017198236309923232,
0.026785457506775856,
0.03294079005718231,
0.050058647990226746,
-0.014031321741640568,
-0.01025297585874796,
0.036062803119421005,
-0.05970850959420204,
0.019352935254573822,
0.004106512293219566,
0.06346911936998367,
0.026430683210492134,
0.008487974293529987,
0.049561966210603714,
0.03703843429684639,
0.009534558281302452,
-0.019069116562604904,
0.002607590751722455,
0.03464370593428612,
-0.053429003804922104,
-0.0019002596382051706,
-0.01365880947560072,
-0.01571650058031082,
0.04225361347198486,
0.003368138102814555,
-0.032107070088386536,
-0.008887095376849174,
0.048107389360666275,
-0.042927686125040054,
0.11076052486896515,
-0.03991210460662842,
0.025277666747570038,
0.038422051817178726,
-0.008718577213585377,
-0.019140072166919708,
-0.0016851777909323573,
-0.034750137478113174,
-0.03295852988958359,
-0.05289684236049652,
-0.04576588049530983,
0.034608229994773865,
0.05218729376792908,
0.023823091760277748,
-0.085642509162426,
-0.056870315223932266,
0.07499928027391434,
-0.03263923153281212,
-0.004232900217175484,
-0.013694286346435547,
-0.019778665155172348,
0.006088813301175833,
0.021783139556646347,
0.07251586019992828,
-0.015787454321980476,
0.03528229892253876,
-0.015166600234806538,
0.033295564353466034,
-0.018049141392111778,
-0.026803195476531982,
-0.029712345451116562,
0.00681610032916069,
-0.013508030213415623,
-0.007139832247048616,
-0.02609364688396454,
0.002818237990140915,
-0.0263065118342638,
0.02586304396390915,
0.002809368772432208,
0.010927047580480576,
-0.01531737856566906,
-0.012638833373785019,
-0.05374830216169357,
-0.04910075664520264,
0.0037983020301908255,
-0.04321150481700897,
0.013250818476080894,
-0.007862684316933155,
-0.03595637157559395,
0.05985041707754135,
0.08798401802778244,
0.041473113000392914,
0.053783778101205826,
0.060418058186769485,
-0.019689971581101418,
-0.02362796664237976,
0.03572576865553856,
-0.024426208809018135,
0.018519217148423195,
-0.009915940463542938,
-0.011006871238350868,
0.015849540010094643,
0.03549516573548317,
-0.019069116562604904,
-0.07315445691347122,
-0.009747423231601715,
0.025508269667625427,
0.04104738309979439,
0.0025787653867155313,
0.018873991444706917,
0.039379943162202835,
-0.005379264708608389,
0.023557011038064957,
0.04399200901389122,
-0.006474630441516638,
0.0023725528735667467,
-0.023007111623883247,
0.02618234045803547,
-0.11728837341070175,
0.07138058543205261,
0.003853735513985157,
0.000531607074663043,
0.00032123702112585306,
-0.04157954454421997,
-0.03258601576089859,
0.026324249804019928,
-0.0322844572365284,
-0.001063214149326086,
-0.030617019161581993,
0.06194358691573143,
-0.04824930056929588,
-0.004330463241785765,
0.0007699709967710078,
0.024745505303144455,
0.028825409710407257,
0.0436372347176075,
0.042076226323843,
-0.019707709550857544,
0.03930898755788803,
0.020488213747739792,
-0.00690922886133194,
0.012700919061899185,
-0.042785774916410446,
-0.0034368757624179125,
-0.033934157341718674,
-0.04565944895148277,
0.028825409710407257,
0.0005144226597622037,
0.03528229892253876,
-0.05985041707754135,
-0.0653848946094513,
0.030971793457865715,
-0.044453214854002,
0.022350778803229332,
-0.004647542722523212,
0.07634741812944412,
-0.06190810725092888,
0.025508269667625427,
-0.018306352198123932,
-0.05371282249689102,
0.031965162605047226,
-0.03132656589150429,
-0.021286455914378166,
-0.006000119727104902,
-0.048923369497060776,
-0.00723739480599761,
0.035512905567884445,
-0.0793275237083435,
0.031379785388708115,
0.004904753994196653,
-0.06510107964277267,
0.017339592799544334,
0.03490978851914406,
0.007370435167104006,
-0.03159264847636223,
-0.011663204059004784,
-0.011122173629701138,
0.047007590532302856,
0.007938073948025703,
-0.03143300116062164,
-0.030421894043684006,
-0.042147181928157806,
0.02621781826019287,
0.027920734137296677,
-0.028931841254234314,
0.015441549941897392,
-0.03788989037275314,
0.015352856367826462,
-0.05786368250846863,
0.03498074412345886,
0.02926887758076191,
-0.0028781061992049217,
0.009800639003515244,
-0.000755004002712667,
0.025667918846011162,
0.06584610044956207,
-0.005392568651586771,
0.00345461443066597,
-0.006940271705389023,
0.011698680929839611,
-0.08294622600078583,
-0.10458745062351227,
-0.007494606543332338,
-0.04899432510137558,
0.03749964013695717,
0.013916020281612873,
-0.028754454106092453,
-0.007286176551133394,
0.07883083820343018,
-0.013179863803088665,
0.006119856145232916,
-0.029144706204533577,
-0.021517058834433556,
-0.05697674676775932,
-0.043105073273181915,
0.007281741593033075,
0.011503555811941624,
0.0014190970687195659,
-0.016488132998347282,
0.0073305233381688595,
-0.052967797964811325,
-0.02740631252527237,
0.04232456907629967,
-0.013348381966352463,
0.02185409516096115,
0.031060487031936646,
0.02094941958785057,
-0.02208469808101654,
0.008439192548394203,
0.023024849593639374,
0.014164362102746964,
-0.01745489425957203,
-0.011006871238350868,
0.09160271286964417,
-0.052293725311756134,
-0.018483739346265793,
0.06286600232124329,
-0.025259926915168762,
0.04016044735908508,
0.0091088293120265,
-0.05286136642098427,
-0.016124490648508072,
0.02213791385293007,
0.0014745305525138974,
-0.02059464529156685,
-0.003940211609005928,
0.03276340290904045,
0.01127295196056366,
0.029871992766857147,
-0.036470793187618256,
-0.06577514857053757,
0.015876147896051407,
-0.06616540253162384,
0.04629804193973541,
0.014111146330833435,
0.04509180784225464,
0.005813863128423691,
-0.07457354664802551,
0.010625489056110382,
-0.022333040833473206,
-0.022510426118969917,
0.042111705988645554,
0.08628109842538834,
0.003248401917517185,
0.012505793012678623,
0.0001457900507375598,
-0.008173111826181412,
-0.029694605618715286,
0.026927366852760315,
-0.016736475750803947,
0.03214254975318909,
0.004521154332906008,
-0.01672760583460331,
-0.02580982819199562,
0.05495453253388405,
0.04498537629842758,
0.02458585612475872,
-0.04491442069411278,
-0.032887574285268784,
-0.08784210681915283,
0.026980582624673843,
0.013898281380534172,
-0.0032461844384670258,
0.02063012309372425,
0.021375149488449097,
-0.028896363452076912,
0.010962524451315403,
0.03746416047215462,
0.013508030213415623,
-0.03448405861854553,
-0.005184139125049114,
0.005809428635984659,
-0.0001929085119627416,
0.009889332577586174,
-0.006470195483416319,
-0.08464913815259933,
-0.047468796372413635,
0.005272832699120045,
0.02194278873503208,
-0.04704306647181511,
0.040054015815258026,
-0.03788989037275314,
0.009303955361247063,
-0.02458585612475872,
0.026749979704618454,
0.06297243386507034,
-0.04910075664520264,
0.054919056594371796,
0.050519853830337524,
-0.02190731093287468,
0.03045736998319626,
-0.016248662024736404,
0.018927207216620445,
-0.08358481526374817,
0.017100119963288307,
0.07954038679599762,
0.04381462186574936,
-0.017756452783942223,
-0.052329204976558685,
0.015583459287881851,
0.029889732599258423,
-0.018013663589954376,
-0.009135437197983265,
0.07038721442222595,
0.008811705745756626,
-0.07939848303794861,
-0.004133120179176331,
0.055202875286340714,
-0.015778586268424988,
-0.032195765525102615,
-0.04725593328475952,
-0.0013470335397869349,
0.032887574285268784,
0.04658186063170433,
-0.03290531411767006,
-0.018714342266321182,
0.03549516573548317,
0.045375626534223557,
-0.031929682940244675,
-0.006634278688579798,
0.024922892451286316,
0.0012350579490885139,
0.051335837692022324,
-0.039202556014060974,
0.010714182630181313,
-0.06286600232124329,
0.030031641945242882,
-0.012514661997556686,
-0.013871673494577408,
-0.07861797511577606,
0.02776108682155609,
0.0598149411380291,
0.0012439272832125425,
0.013570115901529789,
0.005077706649899483,
0.0411892905831337,
-0.018625648692250252,
-0.01127295196056366,
0.08535868674516678,
0.05772177129983902,
0.04129572585225105,
-0.012425968423485756,
-0.07627646625041962,
-0.026483898982405663,
0.013126648031175137,
-0.037747982889413834,
0.010643227957189083,
-0.007955812849104404,
-0.02513575740158558,
-0.012700919061899185,
-0.09039647877216339,
0.006310547236353159,
-0.03166360408067703,
-0.007565561216324568,
-0.01745489425957203,
-0.015920495614409447,
0.05676388368010521,
-0.02094941958785057,
-0.006252896506339312,
-0.026749979704618454,
-0.002494506537914276,
0.02918018400669098,
0.018217658624053,
-0.029552696272730827,
-0.013100040145218372,
-0.02353927306830883,
0.008186415769159794,
-0.010261845774948597,
0.0032062723767012358,
-0.07077746838331223,
0.029109228402376175,
0.016346223652362823,
0.05775725096464157,
-0.039557330310344696,
-0.0070688771083951,
0.016825169324874878,
-0.0250825397670269,
0.007982420735061169,
-0.01563667505979538,
0.03682556748390198,
-0.03448405861854553,
-0.02676771767437458,
0.01767662726342678,
0.016346223652362823,
0.043105073273181915,
-0.0242665596306324,
0.015743108466267586,
-0.02359248884022236,
-0.01563667505979538,
0.01908685453236103,
0.017171073704957962,
-0.005467958282679319,
0.004971274174749851,
0.01272752694785595,
0.01703803427517414,
0.0073926085606217384,
0.06325624883174896,
0.00757886515930295,
-0.08216571807861328,
-0.03157490864396095,
0.015051297843456268,
0.03508717566728592,
0.0051131839863955975,
0.02126871794462204,
0.017791928723454475,
0.01745489425957203,
0.05672840401530266,
0.02540183812379837,
-0.016984818503260612,
-0.06996148824691772,
-0.010536795482039452,
-0.012355013750493526,
0.034288931638002396,
-0.016621174290776253,
-0.05073272064328194,
-0.05364186689257622,
-0.07868893444538116,
-0.032107070088386536,
-0.00790703110396862,
-0.007862684316933155,
0.08003707230091095,
0.014714262448251247,
0.01281622052192688,
0.03333104029297829,
-0.036062803119421005,
-0.009348302148282528,
-0.009818377904593945,
-0.008332760073244572,
-0.031060487031936646,
-0.02845289558172226,
0.050519853830337524,
-0.002891410142183304,
-0.0020721033215522766,
-0.015024689957499504,
0.0014279664028435946,
-0.032018378376960754,
-0.025011586025357246,
-0.004423591773957014,
0.009729684330523014,
0.03040415421128273,
0.0639657974243164,
0.06424961984157562,
-0.03817370906472206,
-0.04058617725968361,
-0.01354350708425045,
-0.035920895636081696,
0.04122477024793625,
-0.04108285903930664,
0.027849780395627022,
-0.00917978398501873,
-0.0006130942492745817,
-0.03299400582909584,
0.008332760073244572,
-0.005286136642098427,
-0.06268861144781113,
-0.02463907189667225,
0.03205385431647301,
-0.017428286373615265,
-0.024284297600388527,
-0.0023326408118009567,
0.00020898421644233167,
-0.029836514964699745,
0.039379943162202835,
-0.000604224915150553,
0.017153335735201836,
-0.04040879011154175,
0.0294994805008173,
0.03122013434767723,
0.022244347259402275,
-0.04193431884050369,
-0.03240862861275673,
0.014128885231912136,
-0.04448869451880455,
-0.08032089471817017,
-0.014394965954124928,
0.04250195622444153,
0.061198558658361435,
0.011689811944961548,
-0.027370834723114967,
0.06417866796255112,
-0.005871513858437538,
-0.007685297634452581,
-0.007538953330367804,
-0.019033638760447502,
0.02371666021645069,
-0.05208086222410202,
-0.07219656556844711,
0.046972110867500305,
-0.04541110619902611,
0.006000119727104902,
0.0274950060993433,
-0.017073512077331543,
0.013729764148592949,
0.03689652308821678,
-0.0009800639236345887,
-0.00019554159371182323,
-0.0025832001119852066,
0.03357938304543495,
0.03217802569270134,
-0.029339831322431564,
-0.04154406487941742,
0.024053694680333138,
0.04257291182875633,
-0.00022866310609970242,
-0.01754358783364296,
-0.008465800434350967,
-0.02286520041525364,
-0.023024849593639374,
-0.01363220065832138,
0.04494990035891533,
-0.04409844055771828,
0.005738473497331142,
0.04541110619902611,
0.0100933276116848,
0.027246663346886635,
0.046794723719358444,
0.009117698296904564,
0.02694510482251644,
0.012425968423485756,
0.01081174612045288,
-0.06691042333841324,
0.03372129425406456,
-0.002818237990140915,
-0.05048437789082527,
0.0517260879278183,
0.025348620489239693,
0.013419336639344692,
-0.05495453253388405,
0.030386416241526604,
0.00539700360968709,
0.01741054654121399,
0.00022769301722291857,
0.0018126748036593199,
-0.00003714043123181909,
-0.042431000620126724,
0.0004576033679768443,
0.05445785075426102,
-0.009033439680933952,
-0.005924730096012354,
0.0303154606372118,
0.004984578583389521,
-0.028381941840052605,
0.01322421059012413,
0.020913943648338318,
-0.013738633133471012,
-0.02650163695216179,
0.028151337057352066,
-0.01254126988351345,
0.007308349944651127,
-0.023486055433750153,
0.021215500310063362,
0.026430683210492134,
-0.0010532360756769776,
0.020204395055770874,
0.015805194154381752,
0.07226751744747162,
0.005587694700807333,
-0.03927351161837578,
0.0662008747458458,
0.04910075664520264,
-0.004263943061232567,
-0.08032089471817017,
0.004073251970112324,
-0.014891649596393108,
0.05836036801338196,
0.01397810596972704,
-0.007162005640566349,
0.016434917226433754,
0.017428286373615265,
-0.008199719712138176
] |
10,061
|
torch.nn.modules.module
|
ipu
|
Move all model parameters and buffers to the IPU.
This also makes associated parameters and buffers different objects. So
it should be called before constructing optimizer if the module will
live on IPU while being optimized.
.. note::
This method modifies the module in-place.
Arguments:
device (int, optional): if specified, all parameters will be
copied to that device
Returns:
Module: self
|
def ipu(self: T, device: Optional[Union[int, device]] = None) -> T:
r"""Move all model parameters and buffers to the IPU.
This also makes associated parameters and buffers different objects. So
it should be called before constructing optimizer if the module will
live on IPU while being optimized.
.. note::
This method modifies the module in-place.
Arguments:
device (int, optional): if specified, all parameters will be
copied to that device
Returns:
Module: self
"""
return self._apply(lambda t: t.ipu(device))
|
(self: ~T, device: Union[int, torch.device, NoneType] = None) -> ~T
|
[
0.00975592527538538,
-0.026421934366226196,
-0.04177381098270416,
0.014568615704774857,
-0.047691766172647476,
-0.014089957810938358,
-0.0018852606881409883,
-0.057438988238573074,
-0.030024925246834755,
-0.024646546691656113,
0.020260296761989594,
-0.08688952028751373,
-0.03696982190012932,
0.07679418474435806,
-0.0075540971010923386,
0.0586225800216198,
-0.023689230903983116,
0.014646941795945168,
-0.01002571452409029,
-0.011574826203286648,
0.012967286631464958,
0.022958189249038696,
0.0008822541567496955,
0.01156612392514944,
-0.04396693408489227,
0.02541240118443966,
0.002232288010418415,
-0.03244432434439659,
0.042713720351457596,
-0.06321769952774048,
0.031295545399188995,
0.021913845092058182,
0.04142569378018379,
-0.01680525578558445,
0.03230508044362068,
0.024942444637417793,
0.01175758708268404,
0.07776890695095062,
-0.05858776718378067,
-0.046612609177827835,
-0.02137426659464836,
-0.0838957354426384,
0.03157403692603111,
-0.0029328695964068174,
0.031539227813482285,
0.044906843453645706,
0.05162546783685684,
-0.01694450154900551,
0.06332213431596756,
0.018519721925258636,
0.013237075880169868,
0.01799754984676838,
-0.013202263973653316,
0.012105701491236687,
-0.04337513819336891,
0.008002295158803463,
0.004677796270698309,
-0.04480241239070892,
-0.03164365887641907,
-0.02830175682902336,
-0.043932121247053146,
-0.04793544486165047,
0.01236678846180439,
-0.02878911793231964,
0.023149652406573296,
-0.016866175457835197,
-0.017257805913686752,
0.0021506985649466515,
-0.004917125683277845,
0.0688919723033905,
-0.032322484999895096,
-0.02332371100783348,
0.0006363978609442711,
0.032078806310892105,
0.03307093307375908,
-0.016222162172198296,
0.00709719629958272,
0.006400966085493565,
-0.0113224433735013,
-0.05360972136259079,
-0.002382412552833557,
0.07007556408643723,
-0.03965030610561371,
0.021739786490797997,
-0.019981805235147476,
-0.035142216831445694,
-0.001081332447938621,
-0.04337513819336891,
-0.06561969220638275,
-0.05601171776652336,
-0.03418489918112755,
-0.008063215762376785,
0.021252425387501717,
0.059005506336688995,
0.06353100389242172,
0.03599509969353676,
-0.038118600845336914,
0.007240793667733669,
-0.04723921790719032,
-0.0211653970181942,
-0.0101997721940279,
0.014446775428950787,
-0.023549985140562057,
-0.022993000224232674,
0.03815341368317604,
-0.0328446589410305,
0.01458602212369442,
0.02946794219315052,
0.015264846384525299,
-0.010330314747989178,
-0.04894497990608215,
0.09280747920274734,
-0.050267815589904785,
0.01715337112545967,
-0.03940662741661072,
-0.03609953448176384,
-0.05472369119524956,
0.007688991725444794,
0.0378401093184948,
0.05420151725411415,
-0.10937775671482086,
0.05775229260325432,
-0.0374571830034256,
-0.03039044700562954,
0.02327149361371994,
-0.014594724401831627,
0.014281420968472958,
0.008289489895105362,
-0.02551683597266674,
-0.07860438525676727,
-0.09566202014684677,
-0.06342656910419464,
-0.00004106670166947879,
0.03535108640789986,
-0.006753432564437389,
-0.00726690236479044,
-0.007836940698325634,
-0.01942482218146324,
-0.01642232947051525,
0.0676039457321167,
-0.01358519122004509,
0.019651096314191818,
0.0105826985090971,
0.026717832311987877,
0.046995535492897034,
-0.0116096381098032,
0.04257447272539139,
0.017283914610743523,
-0.038466718047857285,
-0.06454053521156311,
-0.030355634167790413,
0.026944106444716454,
0.08111081272363663,
0.022853754460811615,
-0.0010530480649322271,
0.01848491095006466,
-0.01148779783397913,
0.002845840761438012,
-0.021687569096684456,
-0.07380039989948273,
-0.04518533870577812,
-0.00966019369661808,
-0.003080818336457014,
0.05214763805270195,
0.010208474472165108,
-0.038954079151153564,
-0.004934531170874834,
0.013411133550107479,
0.008202461525797844,
0.02492504008114338,
-0.011470391415059566,
-0.08654140681028366,
0.09413031488656998,
0.02830175682902336,
-0.05984098091721535,
0.08772499859333038,
-0.002232288010418415,
-0.0460556261241436,
0.027501091361045837,
0.041634563356637955,
0.024124374613165855,
0.05357491225004196,
0.009059694595634937,
0.018850430846214294,
-0.030755966901779175,
0.021095773205161095,
0.007201630622148514,
0.001310870866291225,
0.009990902617573738,
-0.04170418530702591,
0.08946557343006134,
0.03648246079683304,
0.003478975035250187,
-0.018363069742918015,
0.0035507737193256617,
0.014107363298535347,
0.0072973622009158134,
0.0009094506385736167,
0.014847108162939548,
0.043932121247053146,
-0.0020538789685815573,
-0.0289283636957407,
0.023201869800686836,
0.06906603276729584,
-0.07035405933856964,
0.00278056925162673,
-0.013402430340647697,
0.022470828145742416,
0.02361960895359516,
0.025133907794952393,
0.05594209209084511,
0.01214921660721302,
0.025690892711281776,
0.007262550760060549,
0.012453816831111908,
0.03477669507265091,
-0.017475377768278122,
0.023532578721642494,
0.011505203321576118,
0.02819732204079628,
0.011278928257524967,
0.016813958063721657,
-0.04668223112821579,
-0.06165118142962456,
-0.02736184559762478,
-0.006692512426525354,
-0.028702087700366974,
-0.04052059352397919,
-0.018850430846214294,
-0.009285969659686089,
0.04884054511785507,
-0.05858776718378067,
-0.057787101715803146,
0.01697061024606228,
0.0456726998090744,
0.006957950070500374,
-0.053435664623975754,
-0.0030460068956017494,
-0.07407888770103455,
-0.04727402701973915,
-0.005922307725995779,
-0.020712846890091896,
-0.006714269518852234,
0.018154202029109,
-0.062068916857242584,
0.017553701996803284,
-0.034515611827373505,
-0.010356423445045948,
0.028963174670934677,
-0.008202461525797844,
0.015578149817883968,
-0.024019939824938774,
-0.03982436656951904,
0.034515611827373505,
-0.04379287734627724,
-0.006910084281116724,
0.007580205798149109,
-0.03609953448176384,
0.0052782949060201645,
0.0005306035163812339,
-0.033192772418260574,
-0.0129237724468112,
0.0049911001697182655,
0.01593496836721897,
0.03717869147658348,
-0.013254481367766857,
-0.038710396736860275,
-0.01385498046875,
0.023062624037265778,
0.0314347930252552,
0.00999960582703352,
0.06321769952774048,
-0.0010350984521210194,
0.02151351235806942,
0.021583134308457375,
0.01536928117275238,
-0.024176592007279396,
0.10269394516944885,
0.01465564500540495,
-0.0197555311024189,
0.040416162461042404,
-0.03571660816669464,
-0.03843190521001816,
-0.05166027694940567,
-0.04943234100937843,
-0.03742237016558647,
-0.00470825657248497,
0.07526247948408127,
0.02067803591489792,
-0.01839788258075714,
0.017553701996803284,
0.053748968988657,
-0.05844852328300476,
-0.0008572333608753979,
0.01961628533899784,
0.027501091361045837,
-0.10164960473775864,
0.06189486011862755,
0.055106617510318756,
-0.04128644987940788,
0.007079790346324444,
-0.036169156432151794,
-0.0767245665192604,
0.039093323051929474,
0.05340085178613663,
0.06485383957624435,
0.03352348133921623,
-0.015029868111014366,
-0.06896159797906876,
0.023236680775880814,
0.05291349068284035,
-0.0023802367504686117,
0.0033875948283821344,
0.0256560817360878,
0.04678666591644287,
-0.05399264767765999,
0.05917956307530403,
0.022331582382321358,
0.0011683612829074264,
0.017144666984677315,
-0.030059736222028732,
0.01351556833833456,
0.0299553032964468,
-0.01724039949476719,
-0.009164129383862019,
0.0319395586848259,
0.04264409840106964,
0.007802129257470369,
-0.018763402476906776,
0.011130979284644127,
-0.04421061649918556,
0.03787492215633392,
-0.030529692769050598,
-0.00424265256151557,
-0.03491594269871712,
-0.018119389191269875,
0.022035684436559677,
-0.001998398220166564,
0.037143878638744354,
0.025482023134827614,
0.021966060623526573,
0.024820605292916298,
-0.03406305983662605,
0.009695004671812057,
-0.0030503582675009966,
-0.023428143933415413,
0.0004359597514849156,
-0.01205348502844572,
0.013428539037704468,
0.028266943991184235,
0.011740180663764477,
0.0488753579556942,
0.014176986180245876,
0.02882392890751362,
0.05434076488018036,
0.01339372806251049,
-0.04985008016228676,
0.02882392890751362,
-0.008885637857019901,
-0.013480756431818008,
-0.0035311924293637276,
-0.0035594766959547997,
0.03582104295492172,
-0.003698722692206502,
0.04219154641032219,
-0.004582064691931009,
-0.05367934703826904,
-0.0261086318641901,
-0.0016742160078138113,
0.04177381098270416,
-0.0105826985090971,
-0.025882355868816376,
0.04626449570059776,
0.004564659204334021,
-0.006897029932588339,
0.03996361047029495,
-0.05486293509602547,
0.011383363045752048,
-0.05239132046699524,
0.0069927615113556385,
0.05291349068284035,
-0.0137592488899827,
0.07435738295316696,
0.00276969070546329,
0.0173187255859375,
0.00819811038672924,
0.029868273064494133,
-0.01275841798633337,
-0.0012510385131463408,
-0.0216179471462965,
-0.010991733521223068,
0.01014755479991436,
-0.010817675851285458,
-0.016256975010037422,
0.00374441291205585,
0.046717043966054916,
-0.03878001868724823,
0.008237273432314396,
-0.03637802600860596,
-0.08487045764923096,
-0.006113770883530378,
-0.07275605201721191,
0.030842995271086693,
0.06767357140779495,
0.0031852528918534517,
-0.02927647903561592,
0.039893988519907,
0.03710906580090523,
0.00863325409591198,
-0.00048600128502584994,
-0.024646546691656113,
0.046020813286304474,
-0.009381701238453388,
-0.01239289715886116,
0.01441196445375681,
-0.020660629495978355,
0.0790221244096756,
-0.014873216859996319,
0.03787492215633392,
0.03503778204321861,
0.014934136532247066,
0.054410386830568314,
-0.007810832001268864,
-0.0027370548341423273,
-0.006971004419028759,
-0.02600419707596302,
0.07400926947593689,
-0.00612247409299016,
-0.00509988609701395,
0.05566360056400299,
-0.06130306422710419,
0.0395110622048378,
0.01864156313240528,
0.010913407430052757,
0.036308404058218,
-0.020956527441740036,
0.059249185025691986,
0.01281063538044691,
0.023689230903983116,
0.024890227243304253,
0.056081339716911316,
-0.008911745622754097,
0.01893746107816696,
-0.04835318401455879,
-0.0273270346224308,
0.00968630239367485,
-0.072616808116436,
0.08229440450668335,
-0.057682666927576065,
0.026160847395658493,
0.09162388741970062,
-0.013019504025578499,
0.06791725009679794,
-0.03637802600860596,
0.03211361542344093,
-0.05113810673356056,
-0.002878476632758975,
-0.04821394011378288,
0.04111238941550255,
-0.012566953897476196,
-0.00558724720031023,
0.018763402476906776,
0.03474188596010208,
-0.05284386873245239,
0.010913407430052757,
0.08716801553964615,
0.052078016102313995,
-0.03460263833403587,
0.022610073909163475,
0.017518891021609306,
0.0318177193403244,
-0.021426483988761902,
0.002467265585437417,
-0.03637802600860596,
-0.025743110105395317,
-0.01704893633723259,
-0.01321967039257288,
0.03850152716040611,
-0.005286997649818659,
-0.04410618171095848,
-0.021983467042446136,
-0.04483722150325775,
0.05434076488018036,
0.06976225972175598,
-0.015891453251242638,
0.03150441497564316,
0.030721155926585197,
-0.008280787616968155,
0.02459433116018772,
-0.008837771601974964,
-0.04633411765098572,
0.021235018968582153,
-0.0062051513232290745,
-0.035542551428079605,
-0.05514143034815788,
0.019964400678873062,
0.01634400337934494,
-0.023671824485063553,
0.013811465352773666,
-0.007058033253997564,
0.020208081230521202,
-0.002135468414053321,
0.001591538661159575,
-0.07212944328784943,
0.009990902617573738,
0.009816844947636127,
-0.025255749002099037,
-0.006914435885846615,
-0.0273270346224308,
0.03999842330813408,
-0.004995451308786869,
-0.007449662778526545,
-0.032862063497304916,
-0.02952015958726406,
-0.0017623326275497675,
-0.0029328695964068174,
-0.03136516734957695,
0.0157173965126276,
-0.043201081454753876,
-0.06488864868879318,
0.05810040608048439,
0.0161003228276968,
-0.0016622495604678988,
0.017710354179143906,
0.02186162769794464,
0.015029868111014366,
-0.010765458457171917,
0.002002749592065811,
0.02273191511631012,
-0.039685118943452835,
-0.03770086169242859,
-0.05103367194533348,
-0.0037661700043827295,
0.02736184559762478,
0.02053879015147686,
-0.04306183382868767,
0.026700425893068314,
-0.028162509202957153,
-0.022453421726822853,
-0.04121682420372963,
-0.04755251854658127,
0.009477432817220688,
0.03864077478647232,
-0.041251637041568756,
0.020817281678318977,
-0.008963963016867638,
-0.1033901795744896,
0.05113810673356056,
-0.07049330323934555,
0.005983227863907814,
-0.0928771048784256,
-0.026073819026350975,
-0.024907633662223816,
0.038710396736860275,
0.016918392851948738,
0.04135607182979584,
0.022575262933969498,
0.05552435666322708,
-0.009695004671812057,
0.03832747042179108,
-0.006118122488260269,
-0.027135569602251053,
0.006374857388436794,
0.012601765803992748,
0.05959730222821236,
0.015682583674788475,
-0.03145219758152962,
0.012984692119061947,
-0.0277099609375,
0.01231457106769085,
0.035925477743148804,
-0.042852967977523804,
-0.017092449590563774,
-0.002013628138229251,
-0.00338977063074708,
-0.02830175682902336,
0.01715337112545967,
0.07070217281579971,
-0.003861901583150029,
-0.050128571689128876,
-0.02205309085547924,
0.07108510285615921,
0.008520117029547691,
-0.021304642781615257,
0.02356739155948162,
-0.0928771048784256,
0.004982396960258484,
0.047099970281124115,
0.028475813567638397,
-0.06367024779319763,
0.03999842330813408,
-0.008054512552917004,
-0.060467589646577835,
-0.0060659050941467285,
0.004525496158748865,
0.00031466339714825153,
-0.07937023788690567,
-0.022314175963401794,
0.052809055894613266,
0.021287236362695694,
-0.040659841150045395,
0.015264846384525299,
0.026508962735533714,
-0.015499823726713657,
0.0036965468898415565,
-0.05517623946070671,
-0.0756802186369896,
0.030947430059313774,
0.02410697005689144,
-0.002878476632758975,
0.05733455345034599,
-0.022470828145742416,
-0.022766726091504097,
0.025186125189065933,
-0.04967602342367172,
-0.06213854253292084,
-0.036656517535448074,
0.013985523022711277,
0.04452391713857651,
-0.05190395936369896,
-0.005360972136259079,
0.008585387840867043,
-0.00644012913107872,
-0.01656157523393631,
-0.0246291421353817,
0.044071368873119354,
0.0075715030543506145,
-0.036656517535448074,
0.030425257980823517,
0.059144750237464905,
0.006927490234375,
-0.05535029619932175,
0.033297207206487656,
0.0370742566883564,
-0.042609285563230515,
-0.04469797760248184,
-0.03575141727924347,
0.023114841431379318,
-0.013080423697829247,
0.01107876282185316,
0.02776217833161354,
0.026508962735533714,
0.04668223112821579,
-0.04633411765098572,
0.03672613948583603,
-0.06509751826524734,
-0.018171606585383415,
0.0187285915017128,
-0.014551210217177868,
-0.01131374016404152,
-0.023201869800686836,
0.01305431593209505,
-0.00648799492046237,
-0.03790973126888275,
-0.0016328772762790322,
0.008737688884139061,
0.008189407177269459,
0.015238737687468529,
0.022958189249038696,
-0.012888960540294647,
-0.018067171797156334,
0.01492543425410986,
0.06004985049366951,
-0.01266268640756607,
0.05273943394422531,
0.05082480236887932,
-0.02288856729865074,
-0.04431505128741264,
-0.04581194370985031,
-0.010356423445045948,
-0.023793665692210197,
0.03905851021409035,
-0.015447606332600117,
-0.00960797630250454,
0.0020005737897008657,
-0.00022137943597044796,
0.03453301638364792,
-0.04891016706824303,
-0.04629930481314659,
0.01036512665450573,
0.0027979749720543623,
-0.02487282268702984,
0.032757628709077835,
0.004773527849465609,
-0.04497646912932396,
0.00526959216222167,
-0.016109025105834007,
0.009721113368868828,
0.030320823192596436,
-0.07178132981061935,
0.03240951523184776,
0.034811507910490036,
0.02941572479903698,
-0.002636971650645137,
0.01737094298005104,
-0.033488672226667404,
-0.01121800858527422,
-0.011357254348695278,
0.027640337124466896,
0.043932121247053146,
0.011165791191160679,
-0.0522172637283802,
-0.02683967351913452,
-0.04083389788866043,
0.02882392890751362,
0.06795206665992737,
-0.01492543425410986,
-0.01724039949476719,
-0.043444760143756866,
-0.0411820150911808,
0.05204320326447487,
0.025377588346600533,
-0.016578979790210724,
-0.03291428089141846,
0.05555916577577591,
0.016648603603243828,
-0.04824874922633171,
0.015987185761332512,
-0.025099096819758415,
0.026421934366226196,
0.01534317247569561,
-0.0005917956586927176,
0.007584557402879,
-0.009921279735863209,
-0.010469561442732811,
-0.005213023163378239,
-0.01724039949476719,
0.0050781285390257835,
0.06179042533040047,
0.043444760143756866,
-0.005500218365341425,
0.01429012417793274,
-0.018519721925258636,
-0.05444519966840744,
0.031730689108371735,
-0.03686538711190224,
0.0013870210386812687,
-0.032966498285532,
-0.04302702471613884,
-0.0003462113381829113,
-0.026230471208691597,
-0.01117449440062046,
0.00362257263623178,
0.03049488179385662,
-0.01127022597938776,
0.013820168562233448,
0.015795722603797913,
-0.024263620376586914,
0.04264409840106964,
0.03301871567964554,
0.03996361047029495,
0.04609043523669243,
0.03937181457877159,
0.020260296761989594,
0.08055382966995239,
-0.041738998144865036,
0.05945805460214615,
0.05273943394422531,
-0.02522093802690506,
-0.06603743135929108,
-0.046717043966054916,
-0.04198267683386803,
0.02473357692360878,
0.02189643867313862,
-0.0032418216578662395,
0.025342777371406555,
0.01109616830945015,
-0.026213064789772034
] |
10,062
|
sentence_transformers.SentenceTransformer
|
load
| null |
@staticmethod
def load(input_path):
return SentenceTransformer(input_path)
|
(input_path)
|
[
-0.020377106964588165,
-0.0403926819562912,
-0.007518166210502386,
-0.03424668312072754,
-0.05074556916952133,
-0.005073735024780035,
-0.017501305788755417,
0.06399068981409073,
0.05048263818025589,
0.024025265127420425,
0.041280072182416916,
-0.008413773030042648,
-0.027295462787151337,
0.03661305829882622,
-0.021691758185625076,
0.013006838038563728,
0.01512671448290348,
0.019095320254564285,
-0.044829633086919785,
-0.012218046933412552,
-0.030877888202667236,
-0.0019298680126667023,
0.00533666554838419,
0.01041861716657877,
0.0009259053040295839,
0.01651531644165516,
-0.0028121229261159897,
-0.028725147247314453,
0.0024012939538806677,
-0.0696108266711235,
0.006429470144212246,
0.0003420149441808462,
0.009769507683813572,
0.026325905695557594,
-0.03316209837794304,
-0.009424411691725254,
-0.015134931541979313,
-0.005620137322694063,
-0.0027566610369831324,
-0.001149293384514749,
0.01627703569829464,
-0.002551246667280793,
0.016605697572231293,
0.030171263962984085,
-0.020212775096297264,
-0.000421356235165149,
-0.05915934219956398,
0.00013788440264761448,
-0.03802631050348282,
0.008356256410479546,
0.004293160513043404,
-0.05534685030579567,
0.029826167970895767,
-0.0033831747714430094,
-0.047393206506967545,
0.011462122201919556,
-0.013886012136936188,
0.0656997337937355,
0.035068340599536896,
0.034904010593891144,
0.05794328823685646,
-0.010139253921806812,
0.043679311871528625,
0.06527247279882431,
-0.0067047253251075745,
0.04673587903380394,
0.007789313327521086,
0.009449061006307602,
0.009662692435085773,
0.00617064768448472,
-0.01078836340457201,
-0.02448539435863495,
0.012398811988532543,
0.04828059673309326,
0.03212680667638779,
0.031025787815451622,
-0.07375197857618332,
-0.014600853435695171,
0.02515915222465992,
0.038749366998672485,
0.009432627819478512,
-0.042561858892440796,
-0.05899500846862793,
-0.03031916171312332,
-0.014477605000138283,
-0.06783604621887207,
0.0796021819114685,
-0.06809897720813751,
-0.04032694920897484,
0.04673587903380394,
-0.06346482783555984,
0.05814048647880554,
-0.024288196116685867,
0.037697646766901016,
0.019062453880906105,
0.0034530155826359987,
0.0575488917529583,
0.0038967106956988573,
-0.0070744710974395275,
-0.012316646054387093,
-0.005825551692396402,
0.08992219716310501,
-0.041247207671403885,
0.04259472340345383,
0.011453906074166298,
0.006400711834430695,
-0.0038967106956988573,
-0.018191497772932053,
0.02762412466108799,
0.007131987251341343,
-0.05031830444931984,
0.024896223098039627,
-0.0019575990736484528,
0.05459092557430267,
-0.002532759215682745,
-0.10740707069635391,
0.0027689856942743063,
0.02667100355029106,
-0.06685005128383636,
0.041312940418720245,
-0.004038446582853794,
0.03293203189969063,
-0.10596095025539398,
0.006844406947493553,
0.016227735206484795,
-0.0019062453648075461,
0.02515915222465992,
-0.01962118037045002,
0.09051378816366196,
-0.06514100730419159,
0.03434528410434723,
-0.01102664414793253,
0.026391638442873955,
0.008635620586574078,
0.024863356724381447,
-0.018322963267564774,
0.016301684081554413,
0.01651531644165516,
-0.0378948450088501,
0.08019377291202545,
0.025109853595495224,
-0.01056651584804058,
0.04887218773365021,
-0.03924236074090004,
0.01651531644165516,
-0.0030955947004258633,
0.025569980964064598,
-0.025274185463786125,
-0.057285960763692856,
0.04542122781276703,
0.024896223098039627,
-0.02032780647277832,
-0.02285851165652275,
-0.020179908722639084,
0.007181286811828613,
-0.05774608999490738,
-0.020015576854348183,
-0.043482113629579544,
0.023729469627141953,
-0.017435573041439056,
-0.012472760863602161,
0.017008310183882713,
-0.06376062333583832,
0.03197890892624855,
0.00317776040174067,
-0.007341509684920311,
0.016260601580142975,
-0.003214735072106123,
-0.026720302179455757,
-0.029201706871390343,
-0.013976394198834896,
-0.015471810474991798,
-0.072963185608387,
0.03569280356168747,
0.08065389841794968,
-0.015677224844694138,
0.03179814666509628,
0.07717007398605347,
0.027574826031923294,
0.05557691305875778,
-0.008446639403700829,
0.03130514919757843,
-0.03255407139658928,
-0.007000521756708622,
0.022381950169801712,
0.04801766574382782,
-0.012480977922677994,
0.06576547026634216,
0.005747494287788868,
0.0060022082179784775,
0.02032780647277832,
0.003305117366835475,
0.006039182655513287,
-0.01955544948577881,
-0.020738635212183,
0.007707147393375635,
-0.08689849823713303,
-0.007781096734106541,
-0.046210017055273056,
0.01328620221465826,
0.004420517478138208,
0.023137874901294708,
0.06399068981409073,
-0.0016546128317713737,
-0.07381770759820938,
0.026112275198101997,
-0.05294761061668396,
0.06540393829345703,
-0.11371739953756332,
-0.006158323027193546,
0.0023622652515769005,
-0.0732918530702591,
0.023006409406661987,
-0.017649203538894653,
0.07401490956544876,
-0.05258607864379883,
-0.030368462204933167,
0.020689336583018303,
-0.031518783420324326,
-0.02147812768816948,
0.1340945065021515,
0.05061410367488861,
-0.0006126483785919845,
0.0016998039791360497,
0.02256271429359913,
-0.04926658421754837,
0.005985775031149387,
-0.034049488604068756,
-0.044763900339603424,
-0.028002087026834488,
0.038650769740343094,
-0.030877888202667236,
0.04226606339216232,
-0.01035288441926241,
0.021165898069739342,
-0.010558298788964748,
0.029218140989542007,
0.015176014043390751,
0.020508570596575737,
-0.028790878131985664,
-0.013713464140892029,
0.002278045518323779,
-0.025454949587583542,
-0.05413079634308815,
0.0031058653257787228,
0.0717799961566925,
0.030302729457616806,
-0.04200313240289688,
-0.031255852431058884,
-0.01237416174262762,
0.03559420257806778,
-0.0072634522803127766,
-0.022069720551371574,
0.038749366998672485,
0.02295711077749729,
-0.024978388100862503,
0.003974768333137035,
-0.029316740110516548,
0.02782132290303707,
-0.005883067846298218,
-0.019933411851525307,
-0.011766135692596436,
-0.008873901329934597,
0.042298927903175354,
-0.05860061198472977,
-0.02525775134563446,
-0.04042555019259453,
0.003079161513596773,
0.013384800404310226,
-0.05643143877387047,
0.008064568042755127,
0.08873900771141052,
-0.013820279389619827,
-0.004169911611825228,
0.006080265622586012,
-0.011503204703330994,
-0.027739157900214195,
-0.00201306096278131,
0.044961098581552505,
0.06974229216575623,
0.025586415082216263,
-0.016318118199706078,
-0.016186652705073357,
0.002510163700208068,
0.014937733300030231,
-0.03920949622988701,
-0.035166941583156586,
-0.04791906476020813,
-0.021050864830613136,
-0.058436281979084015,
0.02289137803018093,
0.019374683499336243,
0.013343717902898788,
-0.013360151089727879,
-0.01620308682322502,
-0.053473468869924545,
-0.07454077154397964,
-0.01712334156036377,
0.05524824932217598,
-0.05275041237473488,
-0.01621130295097828,
-0.018322963267564774,
0.03838783875107765,
0.01570187509059906,
-0.041312940418720245,
-0.01870092563331127,
-0.05748315900564194,
-0.01667964644730091,
-0.01611270383000374,
0.0030134289991110563,
-0.02560284733772278,
0.016252385452389717,
-0.0015991509426385164,
0.015323912724852562,
0.01952258311212063,
0.048642124980688095,
0.0011400497751310468,
0.04160873591899872,
0.03920949622988701,
0.023482970893383026,
-0.05081130191683769,
0.032701969146728516,
0.0027053074445575476,
-0.011388173326849937,
0.008438422344624996,
-0.009999572299420834,
0.09380041807889938,
-0.012135880999267101,
0.006039182655513287,
-0.024666158482432365,
0.022776346653699875,
-0.005837876349687576,
0.03802631050348282,
0.017452005296945572,
-0.05810761824250221,
-0.014157159253954887,
0.018175063654780388,
-0.0005659165908582509,
0.022973543033003807,
-0.026013676077127457,
0.06750737875699997,
-0.03169954568147659,
-0.03237330541014671,
0.009851673617959023,
0.0589621439576149,
-0.0060104248113930225,
-0.015537543222308159,
-0.03480541333556175,
0.051238562911748886,
-0.004568415693938732,
-0.014001043513417244,
-0.0006285679992288351,
0.044895365834236145,
0.02110016532242298,
-0.04141153767704964,
0.002458810107782483,
0.0055009969510138035,
0.010139253921806812,
-0.015496460720896721,
-0.07795886695384979,
0.013762762770056725,
0.015685440972447395,
-0.06803324073553085,
-0.0014635773841291666,
0.013212252408266068,
-0.02343367226421833,
0.01352448295801878,
-0.02957967109978199,
0.03487114608287811,
0.07749873399734497,
0.01705761067569256,
0.0019062453648075461,
-0.012160531245172024,
0.04808339849114418,
0.022266918793320656,
-0.021264495328068733,
-0.004543765913695097,
0.033885154873132706,
-0.019276084378361702,
0.05883067846298218,
-0.020442837849259377,
0.07263452559709549,
0.031354449689388275,
0.006528068799525499,
0.02954680472612381,
-0.04279192164540291,
0.028577247634530067,
0.042397528886795044,
0.04259472340345383,
-0.029530370607972145,
0.025208452716469765,
-0.021790357306599617,
-0.0030955947004258633,
-0.046012818813323975,
-0.003742649918422103,
-0.031075086444616318,
-0.04295625537633896,
0.04660441353917122,
0.01856946013867855,
0.027295462787151337,
-0.00521752517670393,
0.018799522891640663,
0.0023252908140420914,
0.04318631812930107,
-0.05028543993830681,
0.019900545477867126,
0.041280072182416916,
0.018109330907464027,
-0.000499156943988055,
0.008282307535409927,
0.043482113629579544,
0.048412058502435684,
-0.020607169717550278,
-0.023630870506167412,
-0.038913700729608536,
-0.0018590000690892339,
0.028051387518644333,
0.005620137322694063,
-0.02515915222465992,
0.022447682917118073,
-0.005550296511501074,
0.06934789568185806,
0.018322963267564774,
-0.012185180559754372,
0.015340345911681652,
0.021790357306599617,
-0.05413079634308815,
0.011733269318938255,
-0.0004639797261916101,
0.0004496007168199867,
-0.05018683895468712,
-0.05074556916952133,
-0.06339909136295319,
-0.04305485263466835,
0.01732053980231285,
-0.005685870070010424,
-0.022349083796143532,
-0.0036050223279744387,
-0.013023271225392818,
0.03326069563627243,
0.025849344208836555,
-0.01013103686273098,
0.05768035724759102,
0.01722194068133831,
0.011297790333628654,
-0.053374871611595154,
-0.06809897720813751,
0.049792446196079254,
0.003818653291091323,
-0.06481234729290009,
0.04141153767704964,
0.02957967109978199,
0.036448728293180466,
-0.0035125857684761286,
0.0055009969510138035,
-0.02083723433315754,
0.07933925092220306,
-0.037368983030319214,
-0.00829052459448576,
0.057088762521743774,
-0.047228872776031494,
0.027492661029100418,
0.09057952463626862,
-0.013195819221436977,
0.03526553884148598,
-0.04387651011347771,
-0.0382235087454319,
0.01323690265417099,
-0.0053079077042639256,
-0.05008824169635773,
0.02113303169608116,
-0.010763713158667088,
-0.023220041766762733,
-0.07874765247106552,
0.0018055923283100128,
0.021724624559283257,
-0.004695772659033537,
-0.02752552554011345,
-0.02026207372546196,
0.023893799632787704,
0.019308950752019882,
-0.05268467962741852,
-0.01333550177514553,
0.05653003603219986,
0.003913143649697304,
-0.007329185027629137,
0.00536953192204237,
0.0021424719598144293,
0.001549851498566568,
-0.00630622124299407,
-0.008898550644516945,
0.09616679698228836,
0.029596103355288506,
-0.06514100730419159,
0.005213416647166014,
0.005944692064076662,
-0.013146519660949707,
0.03242260590195656,
-0.01843799464404583,
-0.018733792006969452,
-0.014148942194879055,
-0.009654475376009941,
-0.01769850216805935,
-0.02478118985891342,
0.035101208835840225,
0.08854181319475174,
0.0021589051466435194,
-0.014395439065992832,
-0.04874072223901749,
-0.021494559943675995,
-0.0478862002491951,
-0.007830396294593811,
-0.0382235087454319,
-0.006786890793591738,
0.03179814666509628,
0.03059852495789528,
-0.030401328578591347,
0.060999851673841476,
-0.043843645602464676,
0.027344761416316032,
0.02941533923149109,
-0.00489707849919796,
-0.004391759168356657,
-0.065371073782444,
-0.012078365311026573,
-0.000243929578573443,
-0.009375112131237984,
-0.001504660351201892,
0.0382235087454319,
0.058436281979084015,
0.0296454019844532,
-0.059750933200120926,
0.02948107197880745,
0.046374350786209106,
0.00979415699839592,
0.047491803765296936,
-0.030746424570679665,
-0.0517972894012928,
0.04519116133451462,
0.005172334145754576,
-0.01671251282095909,
-0.031124386936426163,
-0.014272190630435944,
0.05439372733235359,
0.03303063288331032,
-0.021330228075385094,
-0.030582092702388763,
0.06474661082029343,
-0.00511481799185276,
0.04949664697051048,
-0.0432191863656044,
-0.046078551560640335,
-0.036317262798547745,
0.001346491277217865,
0.054623790085315704,
-0.059783801436424255,
-0.053374871611595154,
-0.005636570509523153,
-0.01776423491537571,
0.022234052419662476,
-0.014584421180188656,
-0.016088053584098816,
-0.013655947521328926,
0.03674452379345894,
-0.00098752963822335,
0.05574124678969383,
-0.0443037711083889,
0.03082858957350254,
-0.033375728875398636,
-0.022644881159067154,
0.08637263625860214,
0.001950409496203065,
0.005542079918086529,
0.03401662036776543,
-0.021954689174890518,
0.0817713513970375,
0.010188553482294083,
-0.0024978388100862503,
-0.010854095220565796,
0.016802895814180374,
0.012768557295203209,
0.029267439618706703,
-0.03549560531973839,
0.04966098070144653,
0.01769850216805935,
-0.07059681415557861,
0.014888433739542961,
0.023039275780320168,
-0.00408569211140275,
0.016350984573364258,
-0.03569280356168747,
-0.0012961647007614374,
0.007148420438170433,
0.0421345978975296,
0.02566858008503914,
-0.033720824867486954,
0.03477254509925842,
-0.016490666195750237,
0.0016289360355585814,
-0.09347175806760788,
-0.060835521668195724,
0.003138731699436903,
-0.02877444587647915,
0.04949664697051048,
0.016687864437699318,
-0.01333550177514553,
-0.017369840294122696,
0.0004965892294421792,
-0.009087531827390194,
0.047327473759651184,
-0.005229849833995104,
-0.028215719386935234,
0.016400283202528954,
-0.030499925836920738,
0.017435573041439056,
-0.014699452556669712,
-0.00615421449765563,
-0.049989644438028336,
0.026293039321899414,
-0.04456670209765434,
0.039833955466747284,
-0.03194604441523552,
-0.005677653476595879,
0.01237416174262762,
-0.03211037442088127,
0.036218661814928055,
0.022003987804055214,
-0.04259472340345383,
0.008832817897200584,
-0.05794328823685646,
0.031222986057400703,
-0.03904516622424126,
0.022349083796143532,
-0.015036332421004772,
0.05127142742276192,
0.008093326352536678,
0.009005365893244743,
0.011355306953191757,
0.023729469627141953,
0.01507741492241621,
-0.06415501981973648,
-0.02877444587647915,
-0.018322963267564774,
-0.024633292108774185,
-0.03450961410999298,
-0.026851767674088478,
-0.02916884236037731,
0.009366896003484726,
0.05432799458503723,
0.02391023375093937,
0.021790357306599617,
0.021461693570017815,
-0.0019247326999902725,
0.029218140989542007,
0.03595573082566261,
-0.01718907430768013,
0.057187363505363464,
-0.04312058538198471,
0.059783801436424255,
-0.023285774514079094,
0.005858418066054583,
0.0410500094294548,
0.007961860857903957,
-0.0017419139621779323,
0.0346410796046257,
-0.028314318507909775,
-0.024238895624876022,
0.01769850216805935,
0.003736487589776516,
0.01056651584804058,
-0.04052414745092392,
0.0196540467441082,
-0.010492566041648388,
-0.03022056259214878,
0.0016515315510332584,
-0.05919220671057701,
0.04141153767704964,
-0.07717007398605347,
0.04298911988735199,
0.023778768256306648,
-0.038552168756723404,
0.062051575630903244,
0.038683634251356125,
-0.00808921828866005,
-0.06034252792596817,
0.013820279389619827,
0.008343932218849659,
-0.021215196698904037,
0.0443037711083889,
-0.02586577832698822,
-0.03441101685166359,
0.05064696818590164,
-0.029316740110516548,
-0.05120569467544556,
0.06763884425163269,
0.006741699762642384,
0.005238066427409649,
-0.07624981552362442,
-0.026490237563848495,
0.014461171813309193,
0.038749366998672485,
-0.0453883595764637,
-0.030549226328730583,
-0.02948107197880745,
-0.042331796139478683,
-0.03612006455659866,
-0.03733611851930618,
0.03173241391777992,
-0.029793301597237587,
0.0031757063698023558,
0.04936518147587776,
-0.05012110620737076,
0.05189588665962219,
0.03477254509925842,
0.07855045795440674,
-0.016260601580142975,
-0.0446324348449707,
0.08242867887020111,
0.01732053980231285,
-0.026588836684823036,
0.021428827196359634,
-0.07355477660894394,
0.029941199347376823,
0.024156730622053146,
-0.05324340611696243,
-0.005525646731257439,
-0.04949664697051048,
-0.03005623072385788,
0.045979954302310944,
-0.011971550062298775,
-0.030417760834097862,
-0.013918878510594368,
-0.04916798695921898,
-0.012209830805659294,
-0.020147042348980904,
-0.05403219908475876,
-0.048576392233371735,
-0.025307051837444305,
0.016589265316724777,
-0.028642980381846428,
-0.010697980411350727,
0.004063096363097429,
0.013795629143714905,
0.005616029258817434,
0.03427955135703087,
-0.027196863666176796,
0.08308600634336472,
-0.000502751674503088,
-0.047393206506967545,
0.021264495328068733,
0.022168319672346115,
0.04328491911292076,
0.0008026566938497126,
0.031420182436704636,
0.036152929067611694,
-0.03493687883019447,
0.05620137229561806,
-0.0464729480445385,
-0.02039353922009468,
-0.03950529173016548,
-0.004227427765727043,
-0.06356342136859894,
0.02721329592168331,
-0.028823744505643845,
0.06034252792596817,
0.009662692435085773,
0.04515829682350159,
0.03447674959897995
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.